mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Resubmit Add HydrationSyncLane (#25878)
Depends on #25876
Resubmit #25711 again(previously reverted in #25812), and added the fix
for unwinding in selective hydration during a hydration on the sync
lane.
DiffTrain build for [fabef7a6b7](https://github.com/facebook/react/commit/fabef7a6b71798fe2477720e59d090a0e74e0009)
[View git log for this commit](https://github.com/facebook/react/commits/fabef7a6b71798fe2477720e59d090a0e74e0009)
This commit is contained in:
@@ -1 +1 @@
|
||||
7efa9e59707b341f10fab79724e0fca373187925
|
||||
fabef7a6b71798fe2477720e59d090a0e74e0009
|
||||
|
||||
@@ -1 +1 @@
|
||||
7efa9e59707b341f10fab79724e0fca373187925
|
||||
fabef7a6b71798fe2477720e59d090a0e74e0009
|
||||
|
||||
@@ -27,7 +27,7 @@ if (
|
||||
}
|
||||
"use strict";
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-classic-fabef7a6b-20221215";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
|
||||
@@ -27,7 +27,7 @@ if (
|
||||
}
|
||||
"use strict";
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-modern-fabef7a6b-20221215";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
|
||||
@@ -643,4 +643,4 @@ exports.useSyncExternalStore = function(
|
||||
);
|
||||
};
|
||||
exports.useTransition = useTransition;
|
||||
exports.version = "18.3.0-www-classic-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-www-classic-fabef7a6b-20221215";
|
||||
|
||||
@@ -635,4 +635,4 @@ exports.useSyncExternalStore = function(
|
||||
);
|
||||
};
|
||||
exports.useTransition = useTransition;
|
||||
exports.version = "18.3.0-www-modern-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-www-modern-fabef7a6b-20221215";
|
||||
|
||||
@@ -654,7 +654,7 @@ exports.useSyncExternalStore = function(
|
||||
);
|
||||
};
|
||||
exports.useTransition = useTransition;
|
||||
exports.version = "18.3.0-www-classic-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-www-classic-fabef7a6b-20221215";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
@@ -646,7 +646,7 @@ exports.useSyncExternalStore = function(
|
||||
);
|
||||
};
|
||||
exports.useTransition = useTransition;
|
||||
exports.version = "18.3.0-www-modern-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-www-modern-fabef7a6b-20221215";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
|
||||
return self;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-classic-fabef7a6b-20221215";
|
||||
|
||||
var LegacyRoot = 0;
|
||||
var ConcurrentRoot = 1;
|
||||
@@ -1579,91 +1579,91 @@ var NoLanes =
|
||||
var NoLane =
|
||||
/* */
|
||||
0;
|
||||
var SyncHydrationLane =
|
||||
/* */
|
||||
1;
|
||||
var SyncLane =
|
||||
/* */
|
||||
1;
|
||||
2;
|
||||
var InputContinuousHydrationLane =
|
||||
/* */
|
||||
2;
|
||||
4;
|
||||
var InputContinuousLane =
|
||||
/* */
|
||||
4;
|
||||
8;
|
||||
var DefaultHydrationLane =
|
||||
/* */
|
||||
8;
|
||||
16;
|
||||
var DefaultLane =
|
||||
/* */
|
||||
16;
|
||||
32;
|
||||
var TransitionHydrationLane =
|
||||
/* */
|
||||
32;
|
||||
64;
|
||||
var TransitionLanes =
|
||||
/* */
|
||||
4194240;
|
||||
8388480;
|
||||
var TransitionLane1 =
|
||||
/* */
|
||||
64;
|
||||
128;
|
||||
var TransitionLane2 =
|
||||
/* */
|
||||
128;
|
||||
256;
|
||||
var TransitionLane3 =
|
||||
/* */
|
||||
256;
|
||||
512;
|
||||
var TransitionLane4 =
|
||||
/* */
|
||||
512;
|
||||
1024;
|
||||
var TransitionLane5 =
|
||||
/* */
|
||||
1024;
|
||||
2048;
|
||||
var TransitionLane6 =
|
||||
/* */
|
||||
2048;
|
||||
4096;
|
||||
var TransitionLane7 =
|
||||
/* */
|
||||
4096;
|
||||
8192;
|
||||
var TransitionLane8 =
|
||||
/* */
|
||||
8192;
|
||||
16384;
|
||||
var TransitionLane9 =
|
||||
/* */
|
||||
16384;
|
||||
32768;
|
||||
var TransitionLane10 =
|
||||
/* */
|
||||
32768;
|
||||
65536;
|
||||
var TransitionLane11 =
|
||||
/* */
|
||||
65536;
|
||||
131072;
|
||||
var TransitionLane12 =
|
||||
/* */
|
||||
131072;
|
||||
262144;
|
||||
var TransitionLane13 =
|
||||
/* */
|
||||
262144;
|
||||
524288;
|
||||
var TransitionLane14 =
|
||||
/* */
|
||||
524288;
|
||||
1048576;
|
||||
var TransitionLane15 =
|
||||
/* */
|
||||
1048576;
|
||||
2097152;
|
||||
var TransitionLane16 =
|
||||
/* */
|
||||
2097152;
|
||||
4194304;
|
||||
var RetryLanes =
|
||||
/* */
|
||||
130023424;
|
||||
125829120;
|
||||
var RetryLane1 =
|
||||
/* */
|
||||
4194304;
|
||||
8388608;
|
||||
var RetryLane2 =
|
||||
/* */
|
||||
8388608;
|
||||
16777216;
|
||||
var RetryLane3 =
|
||||
/* */
|
||||
16777216;
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
33554432;
|
||||
var RetryLane5 =
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
67108864;
|
||||
var SomeRetryLane = RetryLane1;
|
||||
@@ -1686,6 +1686,10 @@ var OffscreenLane =
|
||||
|
||||
function getLabelForLane(lane) {
|
||||
if (enableSchedulingProfiler) {
|
||||
if (lane & SyncHydrationLane) {
|
||||
return "SyncHydrationLane";
|
||||
}
|
||||
|
||||
if (lane & SyncLane) {
|
||||
return "Sync";
|
||||
}
|
||||
@@ -1741,6 +1745,9 @@ var nextRetryLane = RetryLane1;
|
||||
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (getHighestPriorityLane(lanes)) {
|
||||
case SyncHydrationLane:
|
||||
return SyncHydrationLane;
|
||||
|
||||
case SyncLane:
|
||||
return SyncLane;
|
||||
|
||||
@@ -1781,7 +1788,6 @@ function getHighestPriorityLanes(lanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
return lanes & RetryLanes;
|
||||
|
||||
case SelectiveHydrationLane:
|
||||
@@ -1942,6 +1948,7 @@ function getMostRecentEventTime(root, lanes) {
|
||||
|
||||
function computeExpirationTime(lane, currentTime) {
|
||||
switch (lane) {
|
||||
case SyncHydrationLane:
|
||||
case SyncLane:
|
||||
case InputContinuousHydrationLane:
|
||||
case InputContinuousLane:
|
||||
@@ -1981,7 +1988,6 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
// TODO: Retries should be allowed to expire if they are CPU bound for
|
||||
// too long, but when I made this change it caused a spike in browser
|
||||
// crashes. There must be some other underlying bug; not super urgent but
|
||||
@@ -2064,6 +2070,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
|
||||
return NoLanes;
|
||||
}
|
||||
function includesSyncLane(lanes) {
|
||||
return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes;
|
||||
}
|
||||
function includesNonIdleWork(lanes) {
|
||||
return (lanes & NonIdleLanes) !== NoLanes;
|
||||
}
|
||||
@@ -2071,6 +2080,8 @@ function includesOnlyRetries(lanes) {
|
||||
return (lanes & RetryLanes) === lanes;
|
||||
}
|
||||
function includesOnlyNonUrgentLanes(lanes) {
|
||||
// TODO: Should hydration lanes be included here? This function is only
|
||||
// used in `updateDeferredValueImpl`.
|
||||
var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
|
||||
return (lanes & UrgentLanes) === NoLanes;
|
||||
}
|
||||
@@ -2308,6 +2319,10 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
var lane;
|
||||
|
||||
switch (renderLane) {
|
||||
case SyncLane:
|
||||
lane = SyncHydrationLane;
|
||||
break;
|
||||
|
||||
case InputContinuousLane:
|
||||
lane = InputContinuousHydrationLane;
|
||||
break;
|
||||
@@ -2336,7 +2351,6 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
lane = TransitionHydrationLane;
|
||||
break;
|
||||
|
||||
@@ -23460,7 +23474,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
// TODO: Temporary until we confirm this warning is not fired.
|
||||
if (
|
||||
existingCallbackNode == null &&
|
||||
existingCallbackPriority !== SyncLane
|
||||
!includesSyncLane(existingCallbackPriority)
|
||||
) {
|
||||
error(
|
||||
"Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."
|
||||
@@ -23478,7 +23492,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
|
||||
var newCallbackNode;
|
||||
|
||||
if (newCallbackPriority === SyncLane) {
|
||||
if (includesSyncLane(newCallbackPriority)) {
|
||||
// Special case: Sync React callbacks are scheduled on a special
|
||||
// internal queue
|
||||
if (root.tag === LegacyRoot) {
|
||||
@@ -24015,7 +24029,7 @@ function performSyncWorkOnRoot(root) {
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, NoLanes);
|
||||
|
||||
if (!includesSomeLane(lanes, SyncLane)) {
|
||||
if (!includesSyncLane(lanes)) {
|
||||
// There's no remaining sync work left.
|
||||
ensureRootIsScheduled(root, now());
|
||||
return null;
|
||||
@@ -25317,16 +25331,13 @@ function commitRootImpl(
|
||||
// currently schedule the callback in multiple places, will wait until those
|
||||
// are consolidated.
|
||||
|
||||
if (
|
||||
includesSomeLane(pendingPassiveEffectsLanes, SyncLane) &&
|
||||
root.tag !== LegacyRoot
|
||||
) {
|
||||
if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) {
|
||||
flushPassiveEffects();
|
||||
} // Read this again, since a passive effect might have updated it
|
||||
|
||||
remainingLanes = root.pendingLanes;
|
||||
|
||||
if (includesSomeLane(remainingLanes, SyncLane)) {
|
||||
if (includesSyncLane(remainingLanes)) {
|
||||
{
|
||||
markNestedUpdateScheduled();
|
||||
} // Count the number of times the root synchronously re-renders without
|
||||
|
||||
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
|
||||
return self;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-modern-fabef7a6b-20221215";
|
||||
|
||||
var LegacyRoot = 0;
|
||||
var ConcurrentRoot = 1;
|
||||
@@ -1576,91 +1576,91 @@ var NoLanes =
|
||||
var NoLane =
|
||||
/* */
|
||||
0;
|
||||
var SyncHydrationLane =
|
||||
/* */
|
||||
1;
|
||||
var SyncLane =
|
||||
/* */
|
||||
1;
|
||||
2;
|
||||
var InputContinuousHydrationLane =
|
||||
/* */
|
||||
2;
|
||||
4;
|
||||
var InputContinuousLane =
|
||||
/* */
|
||||
4;
|
||||
8;
|
||||
var DefaultHydrationLane =
|
||||
/* */
|
||||
8;
|
||||
16;
|
||||
var DefaultLane =
|
||||
/* */
|
||||
16;
|
||||
32;
|
||||
var TransitionHydrationLane =
|
||||
/* */
|
||||
32;
|
||||
64;
|
||||
var TransitionLanes =
|
||||
/* */
|
||||
4194240;
|
||||
8388480;
|
||||
var TransitionLane1 =
|
||||
/* */
|
||||
64;
|
||||
128;
|
||||
var TransitionLane2 =
|
||||
/* */
|
||||
128;
|
||||
256;
|
||||
var TransitionLane3 =
|
||||
/* */
|
||||
256;
|
||||
512;
|
||||
var TransitionLane4 =
|
||||
/* */
|
||||
512;
|
||||
1024;
|
||||
var TransitionLane5 =
|
||||
/* */
|
||||
1024;
|
||||
2048;
|
||||
var TransitionLane6 =
|
||||
/* */
|
||||
2048;
|
||||
4096;
|
||||
var TransitionLane7 =
|
||||
/* */
|
||||
4096;
|
||||
8192;
|
||||
var TransitionLane8 =
|
||||
/* */
|
||||
8192;
|
||||
16384;
|
||||
var TransitionLane9 =
|
||||
/* */
|
||||
16384;
|
||||
32768;
|
||||
var TransitionLane10 =
|
||||
/* */
|
||||
32768;
|
||||
65536;
|
||||
var TransitionLane11 =
|
||||
/* */
|
||||
65536;
|
||||
131072;
|
||||
var TransitionLane12 =
|
||||
/* */
|
||||
131072;
|
||||
262144;
|
||||
var TransitionLane13 =
|
||||
/* */
|
||||
262144;
|
||||
524288;
|
||||
var TransitionLane14 =
|
||||
/* */
|
||||
524288;
|
||||
1048576;
|
||||
var TransitionLane15 =
|
||||
/* */
|
||||
1048576;
|
||||
2097152;
|
||||
var TransitionLane16 =
|
||||
/* */
|
||||
2097152;
|
||||
4194304;
|
||||
var RetryLanes =
|
||||
/* */
|
||||
130023424;
|
||||
125829120;
|
||||
var RetryLane1 =
|
||||
/* */
|
||||
4194304;
|
||||
8388608;
|
||||
var RetryLane2 =
|
||||
/* */
|
||||
8388608;
|
||||
16777216;
|
||||
var RetryLane3 =
|
||||
/* */
|
||||
16777216;
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
33554432;
|
||||
var RetryLane5 =
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
67108864;
|
||||
var SomeRetryLane = RetryLane1;
|
||||
@@ -1683,6 +1683,10 @@ var OffscreenLane =
|
||||
|
||||
function getLabelForLane(lane) {
|
||||
if (enableSchedulingProfiler) {
|
||||
if (lane & SyncHydrationLane) {
|
||||
return "SyncHydrationLane";
|
||||
}
|
||||
|
||||
if (lane & SyncLane) {
|
||||
return "Sync";
|
||||
}
|
||||
@@ -1738,6 +1742,9 @@ var nextRetryLane = RetryLane1;
|
||||
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (getHighestPriorityLane(lanes)) {
|
||||
case SyncHydrationLane:
|
||||
return SyncHydrationLane;
|
||||
|
||||
case SyncLane:
|
||||
return SyncLane;
|
||||
|
||||
@@ -1778,7 +1785,6 @@ function getHighestPriorityLanes(lanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
return lanes & RetryLanes;
|
||||
|
||||
case SelectiveHydrationLane:
|
||||
@@ -1939,6 +1945,7 @@ function getMostRecentEventTime(root, lanes) {
|
||||
|
||||
function computeExpirationTime(lane, currentTime) {
|
||||
switch (lane) {
|
||||
case SyncHydrationLane:
|
||||
case SyncLane:
|
||||
case InputContinuousHydrationLane:
|
||||
case InputContinuousLane:
|
||||
@@ -1978,7 +1985,6 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
// TODO: Retries should be allowed to expire if they are CPU bound for
|
||||
// too long, but when I made this change it caused a spike in browser
|
||||
// crashes. There must be some other underlying bug; not super urgent but
|
||||
@@ -2061,6 +2067,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
|
||||
return NoLanes;
|
||||
}
|
||||
function includesSyncLane(lanes) {
|
||||
return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes;
|
||||
}
|
||||
function includesNonIdleWork(lanes) {
|
||||
return (lanes & NonIdleLanes) !== NoLanes;
|
||||
}
|
||||
@@ -2068,6 +2077,8 @@ function includesOnlyRetries(lanes) {
|
||||
return (lanes & RetryLanes) === lanes;
|
||||
}
|
||||
function includesOnlyNonUrgentLanes(lanes) {
|
||||
// TODO: Should hydration lanes be included here? This function is only
|
||||
// used in `updateDeferredValueImpl`.
|
||||
var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
|
||||
return (lanes & UrgentLanes) === NoLanes;
|
||||
}
|
||||
@@ -2305,6 +2316,10 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
var lane;
|
||||
|
||||
switch (renderLane) {
|
||||
case SyncLane:
|
||||
lane = SyncHydrationLane;
|
||||
break;
|
||||
|
||||
case InputContinuousLane:
|
||||
lane = InputContinuousHydrationLane;
|
||||
break;
|
||||
@@ -2333,7 +2348,6 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
lane = TransitionHydrationLane;
|
||||
break;
|
||||
|
||||
@@ -23149,7 +23163,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
// TODO: Temporary until we confirm this warning is not fired.
|
||||
if (
|
||||
existingCallbackNode == null &&
|
||||
existingCallbackPriority !== SyncLane
|
||||
!includesSyncLane(existingCallbackPriority)
|
||||
) {
|
||||
error(
|
||||
"Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."
|
||||
@@ -23167,7 +23181,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
|
||||
var newCallbackNode;
|
||||
|
||||
if (newCallbackPriority === SyncLane) {
|
||||
if (includesSyncLane(newCallbackPriority)) {
|
||||
// Special case: Sync React callbacks are scheduled on a special
|
||||
// internal queue
|
||||
if (root.tag === LegacyRoot) {
|
||||
@@ -23704,7 +23718,7 @@ function performSyncWorkOnRoot(root) {
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, NoLanes);
|
||||
|
||||
if (!includesSomeLane(lanes, SyncLane)) {
|
||||
if (!includesSyncLane(lanes)) {
|
||||
// There's no remaining sync work left.
|
||||
ensureRootIsScheduled(root, now());
|
||||
return null;
|
||||
@@ -25006,16 +25020,13 @@ function commitRootImpl(
|
||||
// currently schedule the callback in multiple places, will wait until those
|
||||
// are consolidated.
|
||||
|
||||
if (
|
||||
includesSomeLane(pendingPassiveEffectsLanes, SyncLane) &&
|
||||
root.tag !== LegacyRoot
|
||||
) {
|
||||
if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) {
|
||||
flushPassiveEffects();
|
||||
} // Read this again, since a passive effect might have updated it
|
||||
|
||||
remainingLanes = root.pendingLanes;
|
||||
|
||||
if (includesSomeLane(remainingLanes, SyncLane)) {
|
||||
if (includesSyncLane(remainingLanes)) {
|
||||
{
|
||||
markNestedUpdateScheduled();
|
||||
} // Count the number of times the root synchronously re-renders without
|
||||
|
||||
@@ -391,8 +391,8 @@ function clz32Fallback(x) {
|
||||
x >>>= 0;
|
||||
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
||||
}
|
||||
var nextTransitionLane = 64,
|
||||
nextRetryLane = 4194304;
|
||||
var nextTransitionLane = 128,
|
||||
nextRetryLane = 8388608;
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (lanes & -lanes) {
|
||||
case 1:
|
||||
@@ -408,6 +408,7 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 32:
|
||||
return 32;
|
||||
case 64:
|
||||
return 64;
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -423,13 +424,13 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return lanes & 4194240;
|
||||
case 4194304:
|
||||
return lanes & 8388480;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
return lanes & 130023424;
|
||||
return lanes & 125829120;
|
||||
case 134217728:
|
||||
return 134217728;
|
||||
case 268435456:
|
||||
@@ -470,12 +471,12 @@ function getNextLanes(root, wipLanes) {
|
||||
((suspendedLanes = nextLanes & -nextLanes),
|
||||
(pingedLanes = wipLanes & -wipLanes),
|
||||
suspendedLanes >= pingedLanes ||
|
||||
(16 === suspendedLanes && 0 !== (pingedLanes & 4194240)))
|
||||
(32 === suspendedLanes && 0 !== (pingedLanes & 8388480)))
|
||||
)
|
||||
return wipLanes;
|
||||
0 === (root.current.mode & 32) &&
|
||||
0 !== (nextLanes & 4) &&
|
||||
(nextLanes |= pendingLanes & 16);
|
||||
0 !== (nextLanes & 8) &&
|
||||
(nextLanes |= pendingLanes & 32);
|
||||
wipLanes = root.entangledLanes;
|
||||
if (0 !== wipLanes)
|
||||
for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; )
|
||||
@@ -490,8 +491,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return currentTime + 250;
|
||||
case 8:
|
||||
return currentTime + 250;
|
||||
case 16:
|
||||
case 32:
|
||||
case 64:
|
||||
@@ -510,8 +511,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return currentTime + 5e3;
|
||||
case 4194304:
|
||||
return currentTime + 5e3;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
@@ -532,12 +533,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
||||
}
|
||||
function includesBlockingLane(root, lanes) {
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60);
|
||||
}
|
||||
function claimNextTransitionLane() {
|
||||
var lane = nextTransitionLane;
|
||||
nextTransitionLane <<= 1;
|
||||
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
||||
0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128);
|
||||
return lane;
|
||||
}
|
||||
function createLaneMap(initial) {
|
||||
@@ -620,13 +621,13 @@ function clearTransitionsForLanes(root, lanes) {
|
||||
var currentUpdatePriority = 0;
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 1 < lanes
|
||||
? 4 < lanes
|
||||
return 2 < lanes
|
||||
? 8 < lanes
|
||||
? 0 !== (lanes & 268435455)
|
||||
? 16
|
||||
? 32
|
||||
: 536870912
|
||||
: 4
|
||||
: 1;
|
||||
: 8
|
||||
: 2;
|
||||
}
|
||||
function shim() {
|
||||
throw Error(formatProdErrorMessage(305));
|
||||
@@ -991,7 +992,7 @@ function flushSyncCallbacks() {
|
||||
previousUpdatePriority = currentUpdatePriority;
|
||||
try {
|
||||
var queue = syncQueue;
|
||||
for (currentUpdatePriority = 1; i < queue.length; i++) {
|
||||
for (currentUpdatePriority = 2; i < queue.length; i++) {
|
||||
var callback = queue[i];
|
||||
do callback = callback(!0);
|
||||
while (null !== callback);
|
||||
@@ -1184,7 +1185,7 @@ function enqueueUpdate$1(fiber, update, lane) {
|
||||
}
|
||||
function entangleTransitions(root, fiber, lane) {
|
||||
fiber = fiber.updateQueue;
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) {
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) {
|
||||
var queueLanes = fiber.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -2686,8 +2687,8 @@ function checkIfSnapshotChanged(inst) {
|
||||
}
|
||||
}
|
||||
function forceStoreRerender(fiber) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1);
|
||||
}
|
||||
function mountState(initialState) {
|
||||
var hook = mountWorkInProgressHook();
|
||||
@@ -2838,7 +2839,7 @@ function updateMemo(nextCreate, deps) {
|
||||
return nextCreate;
|
||||
}
|
||||
function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
if (0 === (renderLanes & 21))
|
||||
if (0 === (renderLanes & 42))
|
||||
return (
|
||||
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
||||
(hook.memoizedState = value)
|
||||
@@ -2853,7 +2854,7 @@ function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
function startTransition(setPending, callback, options) {
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority =
|
||||
0 !== previousPriority && 4 > previousPriority ? previousPriority : 4;
|
||||
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
||||
setPending(!0);
|
||||
var prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = {};
|
||||
@@ -2972,7 +2973,7 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
||||
queue.pending = update;
|
||||
}
|
||||
function entangleTransitionUpdate(root, queue, lane) {
|
||||
if (0 !== (lane & 4194240)) {
|
||||
if (0 !== (lane & 8388480)) {
|
||||
var queueLanes = queue.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -4194,7 +4195,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
(workInProgress.lanes = 8388608),
|
||||
current
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
@@ -4452,13 +4453,15 @@ function updateDehydratedSuspenseComponent(
|
||||
nextProps = workInProgressRoot;
|
||||
if (null !== nextProps) {
|
||||
switch (renderLanes & -renderLanes) {
|
||||
case 4:
|
||||
didSuspend = 2;
|
||||
case 2:
|
||||
didSuspend = 1;
|
||||
break;
|
||||
case 16:
|
||||
didSuspend = 8;
|
||||
case 8:
|
||||
didSuspend = 4;
|
||||
break;
|
||||
case 32:
|
||||
didSuspend = 16;
|
||||
break;
|
||||
case 64:
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -4479,7 +4482,7 @@ function updateDehydratedSuspenseComponent(
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
didSuspend = 32;
|
||||
didSuspend = 64;
|
||||
break;
|
||||
case 536870912:
|
||||
didSuspend = 268435456;
|
||||
@@ -5523,7 +5526,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(instance, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
}
|
||||
else {
|
||||
if (!newProps)
|
||||
@@ -5551,7 +5554,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(instance, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
instance.isBackwards
|
||||
? ((JSCompiler_inline_result.sibling = workInProgress.child),
|
||||
(workInProgress.child = JSCompiler_inline_result))
|
||||
@@ -6523,20 +6526,20 @@ function detachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 === (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility |= 2),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 !== (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility &= -3),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachSuspenseRetryListeners(finishedWork, wakeables) {
|
||||
@@ -7710,7 +7713,7 @@ function requestEventTime() {
|
||||
: (currentEventTime = now());
|
||||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (
|
||||
!deferRenderPhaseUpdateToNextBatch &&
|
||||
0 !== (executionContext & 2) &&
|
||||
@@ -7724,7 +7727,7 @@ function requestUpdateLane(fiber) {
|
||||
currentEventTransitionLane
|
||||
);
|
||||
fiber = currentUpdatePriority;
|
||||
return 0 !== fiber ? fiber : 16;
|
||||
return 0 !== fiber ? fiber : 32;
|
||||
}
|
||||
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
2 === workInProgressSuspendedReason &&
|
||||
@@ -7756,7 +7759,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes);
|
||||
}
|
||||
ensureRootIsScheduled(root, eventTime);
|
||||
1 === lane &&
|
||||
2 === lane &&
|
||||
0 === executionContext &&
|
||||
0 === (fiber.mode & 1) &&
|
||||
((workInProgressRootRenderTargetTime = now() + 500),
|
||||
@@ -7769,7 +7772,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
suspendedLanes = root.suspendedLanes,
|
||||
pingedLanes = root.pingedLanes,
|
||||
expirationTimes = root.expirationTimes,
|
||||
lanes = root.pendingLanes & -130023425;
|
||||
lanes = root.pendingLanes & -125829121;
|
||||
0 < lanes;
|
||||
|
||||
) {
|
||||
@@ -7795,7 +7798,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
root.callbackPriority !== currentTime)
|
||||
) {
|
||||
null != existingCallbackNode && cancelCallback(existingCallbackNode);
|
||||
if (1 === currentTime)
|
||||
if (0 !== (currentTime & 3))
|
||||
0 === root.tag
|
||||
? ((existingCallbackNode = performSyncWorkOnRoot.bind(null, root)),
|
||||
(includesLegacySyncCallbacks = !0),
|
||||
@@ -7810,13 +7813,13 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
(existingCallbackNode = null);
|
||||
else {
|
||||
switch (lanesToEventPriority(suspendedLanes)) {
|
||||
case 1:
|
||||
case 2:
|
||||
existingCallbackNode = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
existingCallbackNode = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
existingCallbackNode = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -7919,7 +7922,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
case 3:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if (
|
||||
(lanes & 130023424) === lanes &&
|
||||
(lanes & 125829120) === lanes &&
|
||||
((didTimeout = globalMostRecentFallbackTime + 500 - now()),
|
||||
10 < didTimeout)
|
||||
) {
|
||||
@@ -7950,7 +7953,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
break;
|
||||
case 4:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if ((lanes & 4194240) === lanes) break;
|
||||
if ((lanes & 8388480) === lanes) break;
|
||||
didTimeout = root.eventTimes;
|
||||
for (originallyAttemptedLanes = -1; 0 < lanes; )
|
||||
(errorRetryLanes$128 = 31 - clz32(lanes)),
|
||||
@@ -8093,7 +8096,7 @@ function performSyncWorkOnRoot(root) {
|
||||
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, 0);
|
||||
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
||||
if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null;
|
||||
var exitStatus = renderRootSync(root, lanes);
|
||||
if (0 !== root.tag && 2 === exitStatus) {
|
||||
var originallyAttemptedLanes = lanes,
|
||||
@@ -8190,7 +8193,7 @@ function handleThrow(root, thrownValue) {
|
||||
}
|
||||
function shouldAttemptToSuspendUntilDataResolves() {
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes
|
||||
)
|
||||
return !0;
|
||||
@@ -8200,7 +8203,7 @@ function shouldAttemptToSuspendUntilDataResolves() {
|
||||
)
|
||||
return !1;
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 4194240) ===
|
||||
(workInProgressRootRenderLanes & 8388480) ===
|
||||
workInProgressRootRenderLanes
|
||||
) {
|
||||
var suspenseHandler = suspenseHandlerStackCursor.current;
|
||||
@@ -8463,11 +8466,11 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) {
|
||||
if (1 === unitOfWork.tag)
|
||||
if (null === unitOfWork.alternate) unitOfWork.tag = 17;
|
||||
else {
|
||||
var update = createUpdate(-1, 1);
|
||||
var update = createUpdate(-1, 2);
|
||||
update.tag = 2;
|
||||
enqueueUpdate$1(unitOfWork, update, 1);
|
||||
enqueueUpdate$1(unitOfWork, update, 2);
|
||||
}
|
||||
unitOfWork.lanes |= 1;
|
||||
unitOfWork.lanes |= 2;
|
||||
}
|
||||
else
|
||||
(suspenseBoundary.flags |= 65536),
|
||||
@@ -8606,7 +8609,7 @@ function commitRoot(root, recoverableErrors, transitions) {
|
||||
prevTransition = ReactCurrentBatchConfig$2.transition;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$2.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -8657,7 +8660,7 @@ function commitRootImpl(
|
||||
transitions = ReactCurrentBatchConfig$2.transition;
|
||||
ReactCurrentBatchConfig$2.transition = null;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority = 1;
|
||||
currentUpdatePriority = 2;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
ReactCurrentOwner$2.current = null;
|
||||
@@ -8696,11 +8699,11 @@ function commitRootImpl(
|
||||
(root = firstUncaughtError),
|
||||
(firstUncaughtError = null),
|
||||
root);
|
||||
0 !== (pendingPassiveEffectsLanes & 1) &&
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
remainingLanes = root.pendingLanes;
|
||||
0 !== (remainingLanes & 1)
|
||||
0 !== (remainingLanes & 3)
|
||||
? root === rootWithNestedUpdates
|
||||
? nestedUpdateCount++
|
||||
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
||||
@@ -8720,7 +8723,7 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
|
||||
renderPriority = 16 > renderPriority ? 16 : renderPriority;
|
||||
renderPriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
var prevTransition = ReactCurrentBatchConfig$2.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
@@ -8776,11 +8779,11 @@ function flushPassiveEffectsImpl() {
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== rootFiber &&
|
||||
(markRootUpdated(rootFiber, 1, sourceFiber),
|
||||
(markRootUpdated(rootFiber, 2, sourceFiber),
|
||||
ensureRootIsScheduled(rootFiber, sourceFiber));
|
||||
}
|
||||
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
@@ -8814,16 +8817,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
sourceFiber = createClassErrorUpdate(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
nearestMountedAncestor = enqueueUpdate$1(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== nearestMountedAncestor &&
|
||||
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
||||
(markRootUpdated(nearestMountedAncestor, 2, sourceFiber),
|
||||
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
||||
break;
|
||||
}
|
||||
@@ -8856,7 +8859,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
(workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
|
||||
(4 === workInProgressRootExitStatus ||
|
||||
(3 === workInProgressRootExitStatus &&
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes &&
|
||||
500 > now() - globalMostRecentFallbackTime)
|
||||
? prepareFreshStack(root, 0)
|
||||
@@ -8866,10 +8869,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
||||
0 === retryLane &&
|
||||
(0 === (boundaryFiber.mode & 1)
|
||||
? (retryLane = 1)
|
||||
? (retryLane = 2)
|
||||
: ((retryLane = nextRetryLane),
|
||||
(nextRetryLane <<= 1),
|
||||
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
||||
0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608)));
|
||||
var eventTime = requestEventTime();
|
||||
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
||||
null !== boundaryFiber &&
|
||||
@@ -9824,7 +9827,7 @@ var slice = Array.prototype.slice,
|
||||
return null;
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-7efa9e597-20221215",
|
||||
version: "18.3.0-www-classic-fabef7a6b-20221215",
|
||||
rendererPackageName: "react-art"
|
||||
};
|
||||
var internals$jscomp$inline_1338 = {
|
||||
@@ -9855,7 +9858,7 @@ var internals$jscomp$inline_1338 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-next-7efa9e597-20221215"
|
||||
reconcilerVersion: "18.3.0-next-fabef7a6b-20221215"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1339 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
@@ -275,8 +275,8 @@ function clz32Fallback(x) {
|
||||
x >>>= 0;
|
||||
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
||||
}
|
||||
var nextTransitionLane = 64,
|
||||
nextRetryLane = 4194304;
|
||||
var nextTransitionLane = 128,
|
||||
nextRetryLane = 8388608;
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (lanes & -lanes) {
|
||||
case 1:
|
||||
@@ -292,6 +292,7 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 32:
|
||||
return 32;
|
||||
case 64:
|
||||
return 64;
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -307,13 +308,13 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return lanes & 4194240;
|
||||
case 4194304:
|
||||
return lanes & 8388480;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
return lanes & 130023424;
|
||||
return lanes & 125829120;
|
||||
case 134217728:
|
||||
return 134217728;
|
||||
case 268435456:
|
||||
@@ -354,12 +355,12 @@ function getNextLanes(root, wipLanes) {
|
||||
((suspendedLanes = nextLanes & -nextLanes),
|
||||
(pingedLanes = wipLanes & -wipLanes),
|
||||
suspendedLanes >= pingedLanes ||
|
||||
(16 === suspendedLanes && 0 !== (pingedLanes & 4194240)))
|
||||
(32 === suspendedLanes && 0 !== (pingedLanes & 8388480)))
|
||||
)
|
||||
return wipLanes;
|
||||
0 === (root.current.mode & 32) &&
|
||||
0 !== (nextLanes & 4) &&
|
||||
(nextLanes |= pendingLanes & 16);
|
||||
0 !== (nextLanes & 8) &&
|
||||
(nextLanes |= pendingLanes & 32);
|
||||
wipLanes = root.entangledLanes;
|
||||
if (0 !== wipLanes)
|
||||
for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; )
|
||||
@@ -374,8 +375,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return currentTime + 250;
|
||||
case 8:
|
||||
return currentTime + 250;
|
||||
case 16:
|
||||
case 32:
|
||||
case 64:
|
||||
@@ -394,8 +395,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return currentTime + 5e3;
|
||||
case 4194304:
|
||||
return currentTime + 5e3;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
@@ -416,12 +417,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
||||
}
|
||||
function includesBlockingLane(root, lanes) {
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60);
|
||||
}
|
||||
function claimNextTransitionLane() {
|
||||
var lane = nextTransitionLane;
|
||||
nextTransitionLane <<= 1;
|
||||
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
||||
0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128);
|
||||
return lane;
|
||||
}
|
||||
function createLaneMap(initial) {
|
||||
@@ -504,13 +505,13 @@ function clearTransitionsForLanes(root, lanes) {
|
||||
var currentUpdatePriority = 0;
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 1 < lanes
|
||||
? 4 < lanes
|
||||
return 2 < lanes
|
||||
? 8 < lanes
|
||||
? 0 !== (lanes & 268435455)
|
||||
? 16
|
||||
? 32
|
||||
: 536870912
|
||||
: 4
|
||||
: 1;
|
||||
: 8
|
||||
: 2;
|
||||
}
|
||||
function shim() {
|
||||
throw Error(formatProdErrorMessage(305));
|
||||
@@ -798,7 +799,7 @@ function flushSyncCallbacks() {
|
||||
previousUpdatePriority = currentUpdatePriority;
|
||||
try {
|
||||
var queue = syncQueue;
|
||||
for (currentUpdatePriority = 1; i < queue.length; i++) {
|
||||
for (currentUpdatePriority = 2; i < queue.length; i++) {
|
||||
var callback = queue[i];
|
||||
do callback = callback(!0);
|
||||
while (null !== callback);
|
||||
@@ -991,7 +992,7 @@ function enqueueUpdate$1(fiber, update, lane) {
|
||||
}
|
||||
function entangleTransitions(root, fiber, lane) {
|
||||
fiber = fiber.updateQueue;
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) {
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) {
|
||||
var queueLanes = fiber.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -2493,8 +2494,8 @@ function checkIfSnapshotChanged(inst) {
|
||||
}
|
||||
}
|
||||
function forceStoreRerender(fiber) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1);
|
||||
}
|
||||
function mountState(initialState) {
|
||||
var hook = mountWorkInProgressHook();
|
||||
@@ -2645,7 +2646,7 @@ function updateMemo(nextCreate, deps) {
|
||||
return nextCreate;
|
||||
}
|
||||
function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
if (0 === (renderLanes & 21))
|
||||
if (0 === (renderLanes & 42))
|
||||
return (
|
||||
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
||||
(hook.memoizedState = value)
|
||||
@@ -2660,7 +2661,7 @@ function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
function startTransition(setPending, callback, options) {
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority =
|
||||
0 !== previousPriority && 4 > previousPriority ? previousPriority : 4;
|
||||
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
||||
setPending(!0);
|
||||
var prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = {};
|
||||
@@ -2779,7 +2780,7 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
||||
queue.pending = update;
|
||||
}
|
||||
function entangleTransitionUpdate(root, queue, lane) {
|
||||
if (0 !== (lane & 4194240)) {
|
||||
if (0 !== (lane & 8388480)) {
|
||||
var queueLanes = queue.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -3951,7 +3952,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
(workInProgress.lanes = 8388608),
|
||||
current
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
@@ -4209,13 +4210,15 @@ function updateDehydratedSuspenseComponent(
|
||||
nextProps = workInProgressRoot;
|
||||
if (null !== nextProps) {
|
||||
switch (renderLanes & -renderLanes) {
|
||||
case 4:
|
||||
didSuspend = 2;
|
||||
case 2:
|
||||
didSuspend = 1;
|
||||
break;
|
||||
case 16:
|
||||
didSuspend = 8;
|
||||
case 8:
|
||||
didSuspend = 4;
|
||||
break;
|
||||
case 32:
|
||||
didSuspend = 16;
|
||||
break;
|
||||
case 64:
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -4236,7 +4239,7 @@ function updateDehydratedSuspenseComponent(
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
didSuspend = 32;
|
||||
didSuspend = 64;
|
||||
break;
|
||||
case 536870912:
|
||||
didSuspend = 268435456;
|
||||
@@ -5266,7 +5269,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(instance, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
}
|
||||
else {
|
||||
if (!newProps)
|
||||
@@ -5294,7 +5297,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(instance, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
instance.isBackwards
|
||||
? ((JSCompiler_inline_result.sibling = workInProgress.child),
|
||||
(workInProgress.child = JSCompiler_inline_result))
|
||||
@@ -6257,20 +6260,20 @@ function detachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 === (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility |= 2),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 !== (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility &= -3),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachSuspenseRetryListeners(finishedWork, wakeables) {
|
||||
@@ -7444,7 +7447,7 @@ function requestEventTime() {
|
||||
: (currentEventTime = now());
|
||||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (
|
||||
!deferRenderPhaseUpdateToNextBatch &&
|
||||
0 !== (executionContext & 2) &&
|
||||
@@ -7458,7 +7461,7 @@ function requestUpdateLane(fiber) {
|
||||
currentEventTransitionLane
|
||||
);
|
||||
fiber = currentUpdatePriority;
|
||||
return 0 !== fiber ? fiber : 16;
|
||||
return 0 !== fiber ? fiber : 32;
|
||||
}
|
||||
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
2 === workInProgressSuspendedReason &&
|
||||
@@ -7490,7 +7493,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes);
|
||||
}
|
||||
ensureRootIsScheduled(root, eventTime);
|
||||
1 === lane &&
|
||||
2 === lane &&
|
||||
0 === executionContext &&
|
||||
0 === (fiber.mode & 1) &&
|
||||
((workInProgressRootRenderTargetTime = now() + 500),
|
||||
@@ -7503,7 +7506,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
suspendedLanes = root.suspendedLanes,
|
||||
pingedLanes = root.pingedLanes,
|
||||
expirationTimes = root.expirationTimes,
|
||||
lanes = root.pendingLanes & -130023425;
|
||||
lanes = root.pendingLanes & -125829121;
|
||||
0 < lanes;
|
||||
|
||||
) {
|
||||
@@ -7529,7 +7532,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
root.callbackPriority !== currentTime)
|
||||
) {
|
||||
null != existingCallbackNode && cancelCallback(existingCallbackNode);
|
||||
if (1 === currentTime)
|
||||
if (0 !== (currentTime & 3))
|
||||
0 === root.tag
|
||||
? ((existingCallbackNode = performSyncWorkOnRoot.bind(null, root)),
|
||||
(includesLegacySyncCallbacks = !0),
|
||||
@@ -7544,13 +7547,13 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
(existingCallbackNode = null);
|
||||
else {
|
||||
switch (lanesToEventPriority(suspendedLanes)) {
|
||||
case 1:
|
||||
case 2:
|
||||
existingCallbackNode = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
existingCallbackNode = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
existingCallbackNode = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -7653,7 +7656,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
case 3:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if (
|
||||
(lanes & 130023424) === lanes &&
|
||||
(lanes & 125829120) === lanes &&
|
||||
((didTimeout = globalMostRecentFallbackTime + 500 - now()),
|
||||
10 < didTimeout)
|
||||
) {
|
||||
@@ -7684,7 +7687,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
break;
|
||||
case 4:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if ((lanes & 4194240) === lanes) break;
|
||||
if ((lanes & 8388480) === lanes) break;
|
||||
didTimeout = root.eventTimes;
|
||||
for (originallyAttemptedLanes = -1; 0 < lanes; )
|
||||
(errorRetryLanes$128 = 31 - clz32(lanes)),
|
||||
@@ -7827,7 +7830,7 @@ function performSyncWorkOnRoot(root) {
|
||||
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, 0);
|
||||
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
||||
if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null;
|
||||
var exitStatus = renderRootSync(root, lanes);
|
||||
if (0 !== root.tag && 2 === exitStatus) {
|
||||
var originallyAttemptedLanes = lanes,
|
||||
@@ -7924,7 +7927,7 @@ function handleThrow(root, thrownValue) {
|
||||
}
|
||||
function shouldAttemptToSuspendUntilDataResolves() {
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes
|
||||
)
|
||||
return !0;
|
||||
@@ -7934,7 +7937,7 @@ function shouldAttemptToSuspendUntilDataResolves() {
|
||||
)
|
||||
return !1;
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 4194240) ===
|
||||
(workInProgressRootRenderLanes & 8388480) ===
|
||||
workInProgressRootRenderLanes
|
||||
) {
|
||||
var suspenseHandler = suspenseHandlerStackCursor.current;
|
||||
@@ -8197,11 +8200,11 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) {
|
||||
if (1 === unitOfWork.tag)
|
||||
if (null === unitOfWork.alternate) unitOfWork.tag = 17;
|
||||
else {
|
||||
var update = createUpdate(-1, 1);
|
||||
var update = createUpdate(-1, 2);
|
||||
update.tag = 2;
|
||||
enqueueUpdate$1(unitOfWork, update, 1);
|
||||
enqueueUpdate$1(unitOfWork, update, 2);
|
||||
}
|
||||
unitOfWork.lanes |= 1;
|
||||
unitOfWork.lanes |= 2;
|
||||
}
|
||||
else
|
||||
(suspenseBoundary.flags |= 65536),
|
||||
@@ -8340,7 +8343,7 @@ function commitRoot(root, recoverableErrors, transitions) {
|
||||
prevTransition = ReactCurrentBatchConfig$2.transition;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$2.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -8391,7 +8394,7 @@ function commitRootImpl(
|
||||
transitions = ReactCurrentBatchConfig$2.transition;
|
||||
ReactCurrentBatchConfig$2.transition = null;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority = 1;
|
||||
currentUpdatePriority = 2;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
ReactCurrentOwner$2.current = null;
|
||||
@@ -8430,11 +8433,11 @@ function commitRootImpl(
|
||||
(root = firstUncaughtError),
|
||||
(firstUncaughtError = null),
|
||||
root);
|
||||
0 !== (pendingPassiveEffectsLanes & 1) &&
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
remainingLanes = root.pendingLanes;
|
||||
0 !== (remainingLanes & 1)
|
||||
0 !== (remainingLanes & 3)
|
||||
? root === rootWithNestedUpdates
|
||||
? nestedUpdateCount++
|
||||
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
||||
@@ -8454,7 +8457,7 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
|
||||
renderPriority = 16 > renderPriority ? 16 : renderPriority;
|
||||
renderPriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
var prevTransition = ReactCurrentBatchConfig$2.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
@@ -8510,11 +8513,11 @@ function flushPassiveEffectsImpl() {
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== rootFiber &&
|
||||
(markRootUpdated(rootFiber, 1, sourceFiber),
|
||||
(markRootUpdated(rootFiber, 2, sourceFiber),
|
||||
ensureRootIsScheduled(rootFiber, sourceFiber));
|
||||
}
|
||||
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
@@ -8548,16 +8551,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
sourceFiber = createClassErrorUpdate(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
nearestMountedAncestor = enqueueUpdate$1(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== nearestMountedAncestor &&
|
||||
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
||||
(markRootUpdated(nearestMountedAncestor, 2, sourceFiber),
|
||||
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
||||
break;
|
||||
}
|
||||
@@ -8590,7 +8593,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
(workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
|
||||
(4 === workInProgressRootExitStatus ||
|
||||
(3 === workInProgressRootExitStatus &&
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes &&
|
||||
500 > now() - globalMostRecentFallbackTime)
|
||||
? prepareFreshStack(root, 0)
|
||||
@@ -8600,10 +8603,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
||||
0 === retryLane &&
|
||||
(0 === (boundaryFiber.mode & 1)
|
||||
? (retryLane = 1)
|
||||
? (retryLane = 2)
|
||||
: ((retryLane = nextRetryLane),
|
||||
(nextRetryLane <<= 1),
|
||||
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
||||
0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608)));
|
||||
var eventTime = requestEventTime();
|
||||
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
||||
null !== boundaryFiber &&
|
||||
@@ -9491,7 +9494,7 @@ var slice = Array.prototype.slice,
|
||||
return null;
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-7efa9e597-20221215",
|
||||
version: "18.3.0-www-modern-fabef7a6b-20221215",
|
||||
rendererPackageName: "react-art"
|
||||
};
|
||||
var internals$jscomp$inline_1329 = {
|
||||
@@ -9522,7 +9525,7 @@ var internals$jscomp$inline_1329 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-next-7efa9e597-20221215"
|
||||
reconcilerVersion: "18.3.0-next-fabef7a6b-20221215"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1330 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
@@ -7990,91 +7990,91 @@ var NoLanes =
|
||||
var NoLane =
|
||||
/* */
|
||||
0;
|
||||
var SyncHydrationLane =
|
||||
/* */
|
||||
1;
|
||||
var SyncLane =
|
||||
/* */
|
||||
1;
|
||||
2;
|
||||
var InputContinuousHydrationLane =
|
||||
/* */
|
||||
2;
|
||||
4;
|
||||
var InputContinuousLane =
|
||||
/* */
|
||||
4;
|
||||
8;
|
||||
var DefaultHydrationLane =
|
||||
/* */
|
||||
8;
|
||||
16;
|
||||
var DefaultLane =
|
||||
/* */
|
||||
16;
|
||||
32;
|
||||
var TransitionHydrationLane =
|
||||
/* */
|
||||
32;
|
||||
64;
|
||||
var TransitionLanes =
|
||||
/* */
|
||||
4194240;
|
||||
8388480;
|
||||
var TransitionLane1 =
|
||||
/* */
|
||||
64;
|
||||
128;
|
||||
var TransitionLane2 =
|
||||
/* */
|
||||
128;
|
||||
256;
|
||||
var TransitionLane3 =
|
||||
/* */
|
||||
256;
|
||||
512;
|
||||
var TransitionLane4 =
|
||||
/* */
|
||||
512;
|
||||
1024;
|
||||
var TransitionLane5 =
|
||||
/* */
|
||||
1024;
|
||||
2048;
|
||||
var TransitionLane6 =
|
||||
/* */
|
||||
2048;
|
||||
4096;
|
||||
var TransitionLane7 =
|
||||
/* */
|
||||
4096;
|
||||
8192;
|
||||
var TransitionLane8 =
|
||||
/* */
|
||||
8192;
|
||||
16384;
|
||||
var TransitionLane9 =
|
||||
/* */
|
||||
16384;
|
||||
32768;
|
||||
var TransitionLane10 =
|
||||
/* */
|
||||
32768;
|
||||
65536;
|
||||
var TransitionLane11 =
|
||||
/* */
|
||||
65536;
|
||||
131072;
|
||||
var TransitionLane12 =
|
||||
/* */
|
||||
131072;
|
||||
262144;
|
||||
var TransitionLane13 =
|
||||
/* */
|
||||
262144;
|
||||
524288;
|
||||
var TransitionLane14 =
|
||||
/* */
|
||||
524288;
|
||||
1048576;
|
||||
var TransitionLane15 =
|
||||
/* */
|
||||
1048576;
|
||||
2097152;
|
||||
var TransitionLane16 =
|
||||
/* */
|
||||
2097152;
|
||||
4194304;
|
||||
var RetryLanes =
|
||||
/* */
|
||||
130023424;
|
||||
125829120;
|
||||
var RetryLane1 =
|
||||
/* */
|
||||
4194304;
|
||||
8388608;
|
||||
var RetryLane2 =
|
||||
/* */
|
||||
8388608;
|
||||
16777216;
|
||||
var RetryLane3 =
|
||||
/* */
|
||||
16777216;
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
33554432;
|
||||
var RetryLane5 =
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
67108864;
|
||||
var SomeRetryLane = RetryLane1;
|
||||
@@ -8097,6 +8097,10 @@ var OffscreenLane =
|
||||
|
||||
function getLabelForLane(lane) {
|
||||
if (enableSchedulingProfiler) {
|
||||
if (lane & SyncHydrationLane) {
|
||||
return "SyncHydrationLane";
|
||||
}
|
||||
|
||||
if (lane & SyncLane) {
|
||||
return "Sync";
|
||||
}
|
||||
@@ -8152,6 +8156,9 @@ var nextRetryLane = RetryLane1;
|
||||
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (getHighestPriorityLane(lanes)) {
|
||||
case SyncHydrationLane:
|
||||
return SyncHydrationLane;
|
||||
|
||||
case SyncLane:
|
||||
return SyncLane;
|
||||
|
||||
@@ -8192,7 +8199,6 @@ function getHighestPriorityLanes(lanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
return lanes & RetryLanes;
|
||||
|
||||
case SelectiveHydrationLane:
|
||||
@@ -8353,6 +8359,7 @@ function getMostRecentEventTime(root, lanes) {
|
||||
|
||||
function computeExpirationTime(lane, currentTime) {
|
||||
switch (lane) {
|
||||
case SyncHydrationLane:
|
||||
case SyncLane:
|
||||
case InputContinuousHydrationLane:
|
||||
case InputContinuousLane:
|
||||
@@ -8392,7 +8399,6 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
// TODO: Retries should be allowed to expire if they are CPU bound for
|
||||
// too long, but when I made this change it caused a spike in browser
|
||||
// crashes. There must be some other underlying bug; not super urgent but
|
||||
@@ -8480,6 +8486,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
|
||||
return NoLanes;
|
||||
}
|
||||
function includesSyncLane(lanes) {
|
||||
return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes;
|
||||
}
|
||||
function includesNonIdleWork(lanes) {
|
||||
return (lanes & NonIdleLanes) !== NoLanes;
|
||||
}
|
||||
@@ -8487,6 +8496,8 @@ function includesOnlyRetries(lanes) {
|
||||
return (lanes & RetryLanes) === lanes;
|
||||
}
|
||||
function includesOnlyNonUrgentLanes(lanes) {
|
||||
// TODO: Should hydration lanes be included here? This function is only
|
||||
// used in `updateDeferredValueImpl`.
|
||||
var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
|
||||
return (lanes & UrgentLanes) === NoLanes;
|
||||
}
|
||||
@@ -8728,6 +8739,10 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
var lane;
|
||||
|
||||
switch (renderLane) {
|
||||
case SyncLane:
|
||||
lane = SyncHydrationLane;
|
||||
break;
|
||||
|
||||
case InputContinuousLane:
|
||||
lane = InputContinuousHydrationLane;
|
||||
break;
|
||||
@@ -8756,7 +8771,6 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
lane = TransitionHydrationLane;
|
||||
break;
|
||||
|
||||
@@ -38375,7 +38389,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
// TODO: Temporary until we confirm this warning is not fired.
|
||||
if (
|
||||
existingCallbackNode == null &&
|
||||
existingCallbackPriority !== SyncLane
|
||||
!includesSyncLane(existingCallbackPriority)
|
||||
) {
|
||||
error(
|
||||
"Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."
|
||||
@@ -38393,7 +38407,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
|
||||
var newCallbackNode;
|
||||
|
||||
if (newCallbackPriority === SyncLane) {
|
||||
if (includesSyncLane(newCallbackPriority)) {
|
||||
// Special case: Sync React callbacks are scheduled on a special
|
||||
// internal queue
|
||||
if (root.tag === LegacyRoot) {
|
||||
@@ -38950,7 +38964,7 @@ function performSyncWorkOnRoot(root) {
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, NoLanes);
|
||||
|
||||
if (!includesSomeLane(lanes, SyncLane)) {
|
||||
if (!includesSyncLane(lanes)) {
|
||||
// There's no remaining sync work left.
|
||||
ensureRootIsScheduled(root, now());
|
||||
return null;
|
||||
@@ -40339,16 +40353,13 @@ function commitRootImpl(
|
||||
// currently schedule the callback in multiple places, will wait until those
|
||||
// are consolidated.
|
||||
|
||||
if (
|
||||
includesSomeLane(pendingPassiveEffectsLanes, SyncLane) &&
|
||||
root.tag !== LegacyRoot
|
||||
) {
|
||||
if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) {
|
||||
flushPassiveEffects();
|
||||
} // Read this again, since a passive effect might have updated it
|
||||
|
||||
remainingLanes = root.pendingLanes;
|
||||
|
||||
if (includesSomeLane(remainingLanes, SyncLane)) {
|
||||
if (includesSyncLane(remainingLanes)) {
|
||||
{
|
||||
markNestedUpdateScheduled();
|
||||
} // Count the number of times the root synchronously re-renders without
|
||||
@@ -42631,7 +42642,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-classic-fabef7a6b-20221215";
|
||||
|
||||
function createPortal(
|
||||
children,
|
||||
|
||||
@@ -6159,91 +6159,91 @@ var NoLanes =
|
||||
var NoLane =
|
||||
/* */
|
||||
0;
|
||||
var SyncHydrationLane =
|
||||
/* */
|
||||
1;
|
||||
var SyncLane =
|
||||
/* */
|
||||
1;
|
||||
2;
|
||||
var InputContinuousHydrationLane =
|
||||
/* */
|
||||
2;
|
||||
4;
|
||||
var InputContinuousLane =
|
||||
/* */
|
||||
4;
|
||||
8;
|
||||
var DefaultHydrationLane =
|
||||
/* */
|
||||
8;
|
||||
16;
|
||||
var DefaultLane =
|
||||
/* */
|
||||
16;
|
||||
32;
|
||||
var TransitionHydrationLane =
|
||||
/* */
|
||||
32;
|
||||
64;
|
||||
var TransitionLanes =
|
||||
/* */
|
||||
4194240;
|
||||
8388480;
|
||||
var TransitionLane1 =
|
||||
/* */
|
||||
64;
|
||||
128;
|
||||
var TransitionLane2 =
|
||||
/* */
|
||||
128;
|
||||
256;
|
||||
var TransitionLane3 =
|
||||
/* */
|
||||
256;
|
||||
512;
|
||||
var TransitionLane4 =
|
||||
/* */
|
||||
512;
|
||||
1024;
|
||||
var TransitionLane5 =
|
||||
/* */
|
||||
1024;
|
||||
2048;
|
||||
var TransitionLane6 =
|
||||
/* */
|
||||
2048;
|
||||
4096;
|
||||
var TransitionLane7 =
|
||||
/* */
|
||||
4096;
|
||||
8192;
|
||||
var TransitionLane8 =
|
||||
/* */
|
||||
8192;
|
||||
16384;
|
||||
var TransitionLane9 =
|
||||
/* */
|
||||
16384;
|
||||
32768;
|
||||
var TransitionLane10 =
|
||||
/* */
|
||||
32768;
|
||||
65536;
|
||||
var TransitionLane11 =
|
||||
/* */
|
||||
65536;
|
||||
131072;
|
||||
var TransitionLane12 =
|
||||
/* */
|
||||
131072;
|
||||
262144;
|
||||
var TransitionLane13 =
|
||||
/* */
|
||||
262144;
|
||||
524288;
|
||||
var TransitionLane14 =
|
||||
/* */
|
||||
524288;
|
||||
1048576;
|
||||
var TransitionLane15 =
|
||||
/* */
|
||||
1048576;
|
||||
2097152;
|
||||
var TransitionLane16 =
|
||||
/* */
|
||||
2097152;
|
||||
4194304;
|
||||
var RetryLanes =
|
||||
/* */
|
||||
130023424;
|
||||
125829120;
|
||||
var RetryLane1 =
|
||||
/* */
|
||||
4194304;
|
||||
8388608;
|
||||
var RetryLane2 =
|
||||
/* */
|
||||
8388608;
|
||||
16777216;
|
||||
var RetryLane3 =
|
||||
/* */
|
||||
16777216;
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
33554432;
|
||||
var RetryLane5 =
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
67108864;
|
||||
var SomeRetryLane = RetryLane1;
|
||||
@@ -6266,6 +6266,10 @@ var OffscreenLane =
|
||||
|
||||
function getLabelForLane(lane) {
|
||||
if (enableSchedulingProfiler) {
|
||||
if (lane & SyncHydrationLane) {
|
||||
return "SyncHydrationLane";
|
||||
}
|
||||
|
||||
if (lane & SyncLane) {
|
||||
return "Sync";
|
||||
}
|
||||
@@ -6321,6 +6325,9 @@ var nextRetryLane = RetryLane1;
|
||||
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (getHighestPriorityLane(lanes)) {
|
||||
case SyncHydrationLane:
|
||||
return SyncHydrationLane;
|
||||
|
||||
case SyncLane:
|
||||
return SyncLane;
|
||||
|
||||
@@ -6361,7 +6368,6 @@ function getHighestPriorityLanes(lanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
return lanes & RetryLanes;
|
||||
|
||||
case SelectiveHydrationLane:
|
||||
@@ -6522,6 +6528,7 @@ function getMostRecentEventTime(root, lanes) {
|
||||
|
||||
function computeExpirationTime(lane, currentTime) {
|
||||
switch (lane) {
|
||||
case SyncHydrationLane:
|
||||
case SyncLane:
|
||||
case InputContinuousHydrationLane:
|
||||
case InputContinuousLane:
|
||||
@@ -6561,7 +6568,6 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
// TODO: Retries should be allowed to expire if they are CPU bound for
|
||||
// too long, but when I made this change it caused a spike in browser
|
||||
// crashes. There must be some other underlying bug; not super urgent but
|
||||
@@ -6649,6 +6655,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
|
||||
return NoLanes;
|
||||
}
|
||||
function includesSyncLane(lanes) {
|
||||
return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes;
|
||||
}
|
||||
function includesNonIdleWork(lanes) {
|
||||
return (lanes & NonIdleLanes) !== NoLanes;
|
||||
}
|
||||
@@ -6656,6 +6665,8 @@ function includesOnlyRetries(lanes) {
|
||||
return (lanes & RetryLanes) === lanes;
|
||||
}
|
||||
function includesOnlyNonUrgentLanes(lanes) {
|
||||
// TODO: Should hydration lanes be included here? This function is only
|
||||
// used in `updateDeferredValueImpl`.
|
||||
var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
|
||||
return (lanes & UrgentLanes) === NoLanes;
|
||||
}
|
||||
@@ -6897,6 +6908,10 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
var lane;
|
||||
|
||||
switch (renderLane) {
|
||||
case SyncLane:
|
||||
lane = SyncHydrationLane;
|
||||
break;
|
||||
|
||||
case InputContinuousLane:
|
||||
lane = InputContinuousHydrationLane;
|
||||
break;
|
||||
@@ -6925,7 +6940,6 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
lane = TransitionHydrationLane;
|
||||
break;
|
||||
|
||||
@@ -38099,7 +38113,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
// TODO: Temporary until we confirm this warning is not fired.
|
||||
if (
|
||||
existingCallbackNode == null &&
|
||||
existingCallbackPriority !== SyncLane
|
||||
!includesSyncLane(existingCallbackPriority)
|
||||
) {
|
||||
error(
|
||||
"Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."
|
||||
@@ -38117,7 +38131,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
|
||||
var newCallbackNode;
|
||||
|
||||
if (newCallbackPriority === SyncLane) {
|
||||
if (includesSyncLane(newCallbackPriority)) {
|
||||
// Special case: Sync React callbacks are scheduled on a special
|
||||
// internal queue
|
||||
if (root.tag === LegacyRoot) {
|
||||
@@ -38674,7 +38688,7 @@ function performSyncWorkOnRoot(root) {
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, NoLanes);
|
||||
|
||||
if (!includesSomeLane(lanes, SyncLane)) {
|
||||
if (!includesSyncLane(lanes)) {
|
||||
// There's no remaining sync work left.
|
||||
ensureRootIsScheduled(root, now());
|
||||
return null;
|
||||
@@ -40063,16 +40077,13 @@ function commitRootImpl(
|
||||
// currently schedule the callback in multiple places, will wait until those
|
||||
// are consolidated.
|
||||
|
||||
if (
|
||||
includesSomeLane(pendingPassiveEffectsLanes, SyncLane) &&
|
||||
root.tag !== LegacyRoot
|
||||
) {
|
||||
if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) {
|
||||
flushPassiveEffects();
|
||||
} // Read this again, since a passive effect might have updated it
|
||||
|
||||
remainingLanes = root.pendingLanes;
|
||||
|
||||
if (includesSomeLane(remainingLanes, SyncLane)) {
|
||||
if (includesSyncLane(remainingLanes)) {
|
||||
{
|
||||
markNestedUpdateScheduled();
|
||||
} // Count the number of times the root synchronously re-renders without
|
||||
@@ -42355,7 +42366,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-modern-fabef7a6b-20221215";
|
||||
|
||||
function createPortal(
|
||||
children,
|
||||
|
||||
@@ -1583,8 +1583,8 @@ function clz32Fallback(x) {
|
||||
x >>>= 0;
|
||||
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
||||
}
|
||||
var nextTransitionLane = 64,
|
||||
nextRetryLane = 4194304;
|
||||
var nextTransitionLane = 128,
|
||||
nextRetryLane = 8388608;
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (lanes & -lanes) {
|
||||
case 1:
|
||||
@@ -1600,6 +1600,7 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 32:
|
||||
return 32;
|
||||
case 64:
|
||||
return 64;
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -1615,13 +1616,13 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return lanes & 4194240;
|
||||
case 4194304:
|
||||
return lanes & 8388480;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
return lanes & 130023424;
|
||||
return lanes & 125829120;
|
||||
case 134217728:
|
||||
return 134217728;
|
||||
case 268435456:
|
||||
@@ -1662,12 +1663,12 @@ function getNextLanes(root, wipLanes) {
|
||||
((suspendedLanes = nextLanes & -nextLanes),
|
||||
(pingedLanes = wipLanes & -wipLanes),
|
||||
suspendedLanes >= pingedLanes ||
|
||||
(16 === suspendedLanes && 0 !== (pingedLanes & 4194240)))
|
||||
(32 === suspendedLanes && 0 !== (pingedLanes & 8388480)))
|
||||
)
|
||||
return wipLanes;
|
||||
0 === (root.current.mode & 32) &&
|
||||
0 !== (nextLanes & 4) &&
|
||||
(nextLanes |= pendingLanes & 16);
|
||||
0 !== (nextLanes & 8) &&
|
||||
(nextLanes |= pendingLanes & 32);
|
||||
wipLanes = root.entangledLanes;
|
||||
if (0 !== wipLanes)
|
||||
for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; )
|
||||
@@ -1682,8 +1683,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return currentTime + 250;
|
||||
case 8:
|
||||
return currentTime + 250;
|
||||
case 16:
|
||||
case 32:
|
||||
case 64:
|
||||
@@ -1702,8 +1703,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return currentTime + 5e3;
|
||||
case 4194304:
|
||||
return currentTime + 5e3;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
@@ -1723,7 +1724,7 @@ function markStarvedLanesAsExpired(root, currentTime) {
|
||||
var suspendedLanes = root.suspendedLanes,
|
||||
pingedLanes = root.pingedLanes,
|
||||
expirationTimes = root.expirationTimes,
|
||||
lanes = root.pendingLanes & -130023425;
|
||||
lanes = root.pendingLanes & -125829121;
|
||||
0 < lanes;
|
||||
|
||||
) {
|
||||
@@ -1743,12 +1744,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
||||
}
|
||||
function includesBlockingLane(root, lanes) {
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60);
|
||||
}
|
||||
function claimNextTransitionLane() {
|
||||
var lane = nextTransitionLane;
|
||||
nextTransitionLane <<= 1;
|
||||
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
||||
0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128);
|
||||
return lane;
|
||||
}
|
||||
function createLaneMap(initial) {
|
||||
@@ -1839,13 +1840,13 @@ function runWithPriority(priority, fn) {
|
||||
}
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 1 < lanes
|
||||
? 4 < lanes
|
||||
return 2 < lanes
|
||||
? 8 < lanes
|
||||
? 0 !== (lanes & 268435455)
|
||||
? 16
|
||||
? 32
|
||||
: 536870912
|
||||
: 4
|
||||
: 1;
|
||||
: 8
|
||||
: 2;
|
||||
}
|
||||
var Internals = {
|
||||
usingClientEntryPoint: !1,
|
||||
@@ -4938,10 +4939,10 @@ function createEventListenerWrapperWithPriority(
|
||||
eventSystemFlags
|
||||
) {
|
||||
switch (getEventPriority(domEventName)) {
|
||||
case 1:
|
||||
case 2:
|
||||
var listenerWrapper = dispatchDiscreteEvent;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
listenerWrapper = dispatchContinuousEvent;
|
||||
break;
|
||||
default:
|
||||
@@ -4964,7 +4965,7 @@ function dispatchDiscreteEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -4981,7 +4982,7 @@ function dispatchContinuousEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 4),
|
||||
(currentUpdatePriority = 8),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -5203,7 +5204,7 @@ function getEventPriority(domEventName) {
|
||||
case "popstate":
|
||||
case "select":
|
||||
case "selectstart":
|
||||
return 1;
|
||||
return 2;
|
||||
case "drag":
|
||||
case "dragenter":
|
||||
case "dragexit":
|
||||
@@ -5223,23 +5224,23 @@ function getEventPriority(domEventName) {
|
||||
case "mouseleave":
|
||||
case "pointerenter":
|
||||
case "pointerleave":
|
||||
return 4;
|
||||
return 8;
|
||||
case "message":
|
||||
switch (getCurrentPriorityLevel()) {
|
||||
case ImmediatePriority:
|
||||
return 1;
|
||||
return 2;
|
||||
case UserBlockingPriority:
|
||||
return 4;
|
||||
return 8;
|
||||
case NormalPriority:
|
||||
case LowPriority:
|
||||
return 16;
|
||||
return 32;
|
||||
case IdlePriority:
|
||||
return 536870912;
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
}
|
||||
var emptyContextObject = {},
|
||||
@@ -5337,7 +5338,7 @@ function flushSyncCallbacks() {
|
||||
previousUpdatePriority = currentUpdatePriority;
|
||||
try {
|
||||
var queue = syncQueue;
|
||||
for (currentUpdatePriority = 1; i < queue.length; i++) {
|
||||
for (currentUpdatePriority = 2; i < queue.length; i++) {
|
||||
var callback = queue[i];
|
||||
do callback = callback(!0);
|
||||
while (null !== callback);
|
||||
@@ -5831,7 +5832,7 @@ function enqueueUpdate$1(fiber, update, lane) {
|
||||
}
|
||||
function entangleTransitions(root, fiber, lane) {
|
||||
fiber = fiber.updateQueue;
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) {
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) {
|
||||
var queueLanes = fiber.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -7305,8 +7306,8 @@ function checkIfSnapshotChanged(inst) {
|
||||
}
|
||||
}
|
||||
function forceStoreRerender(fiber) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1);
|
||||
}
|
||||
function mountState(initialState) {
|
||||
var hook = mountWorkInProgressHook();
|
||||
@@ -7457,7 +7458,7 @@ function updateMemo(nextCreate, deps) {
|
||||
return nextCreate;
|
||||
}
|
||||
function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
if (0 === (renderLanes & 21))
|
||||
if (0 === (renderLanes & 42))
|
||||
return (
|
||||
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
||||
(hook.memoizedState = value)
|
||||
@@ -7472,7 +7473,7 @@ function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
function startTransition(setPending, callback, options) {
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority =
|
||||
0 !== previousPriority && 4 > previousPriority ? previousPriority : 4;
|
||||
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
||||
setPending(!0);
|
||||
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
||||
ReactCurrentBatchConfig$1.transition = {};
|
||||
@@ -7591,7 +7592,7 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
||||
queue.pending = update;
|
||||
}
|
||||
function entangleTransitionUpdate(root, queue, lane) {
|
||||
if (0 !== (lane & 4194240)) {
|
||||
if (0 !== (lane & 8388480)) {
|
||||
var queueLanes = queue.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -8113,10 +8114,10 @@ function markSuspenseBoundaryShouldCapture(
|
||||
1 === sourceFiber.tag &&
|
||||
(null === sourceFiber.alternate
|
||||
? (sourceFiber.tag = 17)
|
||||
: ((returnFiber = createUpdate(-1, 1)),
|
||||
: ((returnFiber = createUpdate(-1, 2)),
|
||||
(returnFiber.tag = 2),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 1))),
|
||||
(sourceFiber.lanes |= 1)),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 2))),
|
||||
(sourceFiber.lanes |= 2)),
|
||||
suspenseBoundary
|
||||
);
|
||||
suspenseBoundary.flags |= 65536;
|
||||
@@ -8855,9 +8856,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)
|
||||
return (
|
||||
0 === (workInProgress.mode & 1)
|
||||
? (workInProgress.lanes = 1)
|
||||
? (workInProgress.lanes = 2)
|
||||
: "$!" === current.data
|
||||
? (workInProgress.lanes = 8)
|
||||
? (workInProgress.lanes = 16)
|
||||
: (workInProgress.lanes = 1073741824),
|
||||
null
|
||||
);
|
||||
@@ -8909,7 +8910,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
(workInProgress.lanes = 8388608),
|
||||
current
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
@@ -9164,13 +9165,15 @@ function updateDehydratedSuspenseComponent(
|
||||
nextProps = workInProgressRoot;
|
||||
if (null !== nextProps) {
|
||||
switch (renderLanes & -renderLanes) {
|
||||
case 4:
|
||||
suspenseInstance = 2;
|
||||
case 2:
|
||||
suspenseInstance = 1;
|
||||
break;
|
||||
case 16:
|
||||
suspenseInstance = 8;
|
||||
case 8:
|
||||
suspenseInstance = 4;
|
||||
break;
|
||||
case 32:
|
||||
suspenseInstance = 16;
|
||||
break;
|
||||
case 64:
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -9191,7 +9194,7 @@ function updateDehydratedSuspenseComponent(
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
suspenseInstance = 32;
|
||||
suspenseInstance = 64;
|
||||
break;
|
||||
case 536870912:
|
||||
suspenseInstance = 268435456;
|
||||
@@ -10467,7 +10470,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
}
|
||||
else {
|
||||
if (!newProps)
|
||||
@@ -10496,7 +10499,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
type.isBackwards
|
||||
? ((JSCompiler_inline_result.sibling = workInProgress.child),
|
||||
(workInProgress.child = JSCompiler_inline_result))
|
||||
@@ -11671,20 +11674,20 @@ function detachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 === (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility |= 2),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 !== (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility &= -3),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachSuspenseRetryListeners(finishedWork, wakeables) {
|
||||
@@ -13021,7 +13024,7 @@ function requestEventTime() {
|
||||
: (currentEventTime = now());
|
||||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (
|
||||
!deferRenderPhaseUpdateToNextBatch &&
|
||||
0 !== (executionContext & 2) &&
|
||||
@@ -13037,7 +13040,7 @@ function requestUpdateLane(fiber) {
|
||||
fiber = currentUpdatePriority;
|
||||
if (0 !== fiber) return fiber;
|
||||
fiber = window.event;
|
||||
fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type);
|
||||
fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type);
|
||||
return fiber;
|
||||
}
|
||||
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
@@ -13070,7 +13073,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes);
|
||||
}
|
||||
ensureRootIsScheduled(root, eventTime);
|
||||
1 === lane &&
|
||||
2 === lane &&
|
||||
0 === executionContext &&
|
||||
0 === (fiber.mode & 1) &&
|
||||
(resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks());
|
||||
@@ -13092,7 +13095,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
root.callbackPriority !== currentTime)
|
||||
) {
|
||||
null != existingCallbackNode && cancelCallback(existingCallbackNode);
|
||||
if (1 === currentTime)
|
||||
if (0 !== (currentTime & 3))
|
||||
0 === root.tag
|
||||
? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root))
|
||||
: scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)),
|
||||
@@ -13102,13 +13105,13 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
(existingCallbackNode = null);
|
||||
else {
|
||||
switch (lanesToEventPriority(nextLanes)) {
|
||||
case 1:
|
||||
case 2:
|
||||
existingCallbackNode = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
existingCallbackNode = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
existingCallbackNode = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -13211,7 +13214,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
case 3:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if (
|
||||
(lanes & 130023424) === lanes &&
|
||||
(lanes & 125829120) === lanes &&
|
||||
((didTimeout = globalMostRecentFallbackTime + 500 - now()),
|
||||
10 < didTimeout)
|
||||
) {
|
||||
@@ -13242,7 +13245,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
break;
|
||||
case 4:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if ((lanes & 4194240) === lanes) break;
|
||||
if ((lanes & 8388480) === lanes) break;
|
||||
didTimeout = root.eventTimes;
|
||||
for (originallyAttemptedLanes = -1; 0 < lanes; )
|
||||
(errorRetryLanes$216 = 31 - clz32(lanes)),
|
||||
@@ -13384,7 +13387,7 @@ function performSyncWorkOnRoot(root) {
|
||||
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, 0);
|
||||
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
||||
if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null;
|
||||
var exitStatus = renderRootSync(root, lanes);
|
||||
if (0 !== root.tag && 2 === exitStatus) {
|
||||
var originallyAttemptedLanes = lanes,
|
||||
@@ -13444,7 +13447,7 @@ function flushSync(fn) {
|
||||
try {
|
||||
if (
|
||||
((ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn)
|
||||
)
|
||||
return fn();
|
||||
@@ -13516,7 +13519,7 @@ function handleThrow(root, thrownValue) {
|
||||
}
|
||||
function shouldAttemptToSuspendUntilDataResolves() {
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes
|
||||
)
|
||||
return !0;
|
||||
@@ -13526,7 +13529,7 @@ function shouldAttemptToSuspendUntilDataResolves() {
|
||||
)
|
||||
return !1;
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 4194240) ===
|
||||
(workInProgressRootRenderLanes & 8388480) ===
|
||||
workInProgressRootRenderLanes
|
||||
) {
|
||||
var suspenseHandler = suspenseHandlerStackCursor.current;
|
||||
@@ -13939,7 +13942,7 @@ function commitRoot(root, recoverableErrors, transitions) {
|
||||
prevTransition = ReactCurrentBatchConfig$3.transition;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -13990,7 +13993,7 @@ function commitRootImpl(
|
||||
transitions = ReactCurrentBatchConfig$3.transition;
|
||||
ReactCurrentBatchConfig$3.transition = null;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority = 1;
|
||||
currentUpdatePriority = 2;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
ReactCurrentOwner$2.current = null;
|
||||
@@ -14039,11 +14042,11 @@ function commitRootImpl(
|
||||
(root = firstUncaughtError),
|
||||
(firstUncaughtError = null),
|
||||
root);
|
||||
0 !== (pendingPassiveEffectsLanes & 1) &&
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
remainingLanes = root.pendingLanes;
|
||||
0 !== (remainingLanes & 1)
|
||||
0 !== (remainingLanes & 3)
|
||||
? root === rootWithNestedUpdates
|
||||
? nestedUpdateCount++
|
||||
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
||||
@@ -14080,7 +14083,7 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
|
||||
renderPriority = 16 > renderPriority ? 16 : renderPriority;
|
||||
renderPriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
var prevTransition = ReactCurrentBatchConfig$3.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
@@ -14136,11 +14139,11 @@ function flushPassiveEffectsImpl() {
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== rootFiber &&
|
||||
(markRootUpdated(rootFiber, 1, sourceFiber),
|
||||
(markRootUpdated(rootFiber, 2, sourceFiber),
|
||||
ensureRootIsScheduled(rootFiber, sourceFiber));
|
||||
}
|
||||
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
@@ -14174,16 +14177,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
sourceFiber = createClassErrorUpdate(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
nearestMountedAncestor = enqueueUpdate$1(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== nearestMountedAncestor &&
|
||||
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
||||
(markRootUpdated(nearestMountedAncestor, 2, sourceFiber),
|
||||
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
||||
break;
|
||||
}
|
||||
@@ -14216,7 +14219,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
(workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
|
||||
(4 === workInProgressRootExitStatus ||
|
||||
(3 === workInProgressRootExitStatus &&
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes &&
|
||||
500 > now() - globalMostRecentFallbackTime)
|
||||
? prepareFreshStack(root, 0)
|
||||
@@ -14226,10 +14229,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
||||
0 === retryLane &&
|
||||
(0 === (boundaryFiber.mode & 1)
|
||||
? (retryLane = 1)
|
||||
? (retryLane = 2)
|
||||
: ((retryLane = nextRetryLane),
|
||||
(nextRetryLane <<= 1),
|
||||
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
||||
0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608)));
|
||||
var eventTime = requestEventTime();
|
||||
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
||||
null !== boundaryFiber &&
|
||||
@@ -15483,7 +15486,7 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
if (root$227.current.memoizedState.isDehydrated) {
|
||||
var lanes = getHighestPriorityLanes(root$227.pendingLanes);
|
||||
0 !== lanes &&
|
||||
(markRootEntangled(root$227, lanes | 1),
|
||||
(markRootEntangled(root$227, lanes | 2),
|
||||
ensureRootIsScheduled(root$227, now()),
|
||||
0 === (executionContext & 6) &&
|
||||
(resetRenderTimer(), flushSyncCallbacks()));
|
||||
@@ -15491,23 +15494,23 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
break;
|
||||
case 13:
|
||||
flushSync(function() {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
}),
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptDiscreteHydration = function(fiber) {
|
||||
if (13 === fiber.tag) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptContinuousHydration = function(fiber) {
|
||||
@@ -15577,7 +15580,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1770 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-7efa9e597-20221215",
|
||||
version: "18.3.0-www-classic-fabef7a6b-20221215",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2157 = {
|
||||
@@ -15607,7 +15610,7 @@ var internals$jscomp$inline_2157 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-next-7efa9e597-20221215"
|
||||
reconcilerVersion: "18.3.0-next-fabef7a6b-20221215"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2158 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -15821,7 +15824,7 @@ exports.unstable_flushControlled = function(fn) {
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn();
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -15849,4 +15852,4 @@ exports.unstable_renderSubtreeIntoContainer = function(
|
||||
);
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-next-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-next-fabef7a6b-20221215";
|
||||
|
||||
@@ -1288,8 +1288,8 @@ function clz32Fallback(x) {
|
||||
x >>>= 0;
|
||||
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
||||
}
|
||||
var nextTransitionLane = 64,
|
||||
nextRetryLane = 4194304;
|
||||
var nextTransitionLane = 128,
|
||||
nextRetryLane = 8388608;
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (lanes & -lanes) {
|
||||
case 1:
|
||||
@@ -1305,6 +1305,7 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 32:
|
||||
return 32;
|
||||
case 64:
|
||||
return 64;
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -1320,13 +1321,13 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return lanes & 4194240;
|
||||
case 4194304:
|
||||
return lanes & 8388480;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
return lanes & 130023424;
|
||||
return lanes & 125829120;
|
||||
case 134217728:
|
||||
return 134217728;
|
||||
case 268435456:
|
||||
@@ -1367,12 +1368,12 @@ function getNextLanes(root, wipLanes) {
|
||||
((suspendedLanes = nextLanes & -nextLanes),
|
||||
(pingedLanes = wipLanes & -wipLanes),
|
||||
suspendedLanes >= pingedLanes ||
|
||||
(16 === suspendedLanes && 0 !== (pingedLanes & 4194240)))
|
||||
(32 === suspendedLanes && 0 !== (pingedLanes & 8388480)))
|
||||
)
|
||||
return wipLanes;
|
||||
0 === (root.current.mode & 32) &&
|
||||
0 !== (nextLanes & 4) &&
|
||||
(nextLanes |= pendingLanes & 16);
|
||||
0 !== (nextLanes & 8) &&
|
||||
(nextLanes |= pendingLanes & 32);
|
||||
wipLanes = root.entangledLanes;
|
||||
if (0 !== wipLanes)
|
||||
for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; )
|
||||
@@ -1387,8 +1388,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return currentTime + 250;
|
||||
case 8:
|
||||
return currentTime + 250;
|
||||
case 16:
|
||||
case 32:
|
||||
case 64:
|
||||
@@ -1407,8 +1408,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return currentTime + 5e3;
|
||||
case 4194304:
|
||||
return currentTime + 5e3;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
@@ -1428,7 +1429,7 @@ function markStarvedLanesAsExpired(root, currentTime) {
|
||||
var suspendedLanes = root.suspendedLanes,
|
||||
pingedLanes = root.pingedLanes,
|
||||
expirationTimes = root.expirationTimes,
|
||||
lanes = root.pendingLanes & -130023425;
|
||||
lanes = root.pendingLanes & -125829121;
|
||||
0 < lanes;
|
||||
|
||||
) {
|
||||
@@ -1448,12 +1449,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
||||
}
|
||||
function includesBlockingLane(root, lanes) {
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60);
|
||||
}
|
||||
function claimNextTransitionLane() {
|
||||
var lane = nextTransitionLane;
|
||||
nextTransitionLane <<= 1;
|
||||
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
||||
0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128);
|
||||
return lane;
|
||||
}
|
||||
function createLaneMap(initial) {
|
||||
@@ -1544,13 +1545,13 @@ function runWithPriority(priority, fn) {
|
||||
}
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 1 < lanes
|
||||
? 4 < lanes
|
||||
return 2 < lanes
|
||||
? 8 < lanes
|
||||
? 0 !== (lanes & 268435455)
|
||||
? 16
|
||||
? 32
|
||||
: 536870912
|
||||
: 4
|
||||
: 1;
|
||||
: 8
|
||||
: 2;
|
||||
}
|
||||
var _attemptSynchronousHydration,
|
||||
attemptDiscreteHydration,
|
||||
@@ -1919,10 +1920,10 @@ function createEventListenerWrapperWithPriority(
|
||||
eventSystemFlags
|
||||
) {
|
||||
switch (getEventPriority(domEventName)) {
|
||||
case 1:
|
||||
case 2:
|
||||
var listenerWrapper = dispatchDiscreteEvent;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
listenerWrapper = dispatchContinuousEvent;
|
||||
break;
|
||||
default:
|
||||
@@ -1945,7 +1946,7 @@ function dispatchDiscreteEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -1962,7 +1963,7 @@ function dispatchContinuousEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 4),
|
||||
(currentUpdatePriority = 8),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -2184,7 +2185,7 @@ function getEventPriority(domEventName) {
|
||||
case "popstate":
|
||||
case "select":
|
||||
case "selectstart":
|
||||
return 1;
|
||||
return 2;
|
||||
case "drag":
|
||||
case "dragenter":
|
||||
case "dragexit":
|
||||
@@ -2204,23 +2205,23 @@ function getEventPriority(domEventName) {
|
||||
case "mouseleave":
|
||||
case "pointerenter":
|
||||
case "pointerleave":
|
||||
return 4;
|
||||
return 8;
|
||||
case "message":
|
||||
switch (getCurrentPriorityLevel()) {
|
||||
case ImmediatePriority:
|
||||
return 1;
|
||||
return 2;
|
||||
case UserBlockingPriority:
|
||||
return 4;
|
||||
return 8;
|
||||
case NormalPriority:
|
||||
case LowPriority:
|
||||
return 16;
|
||||
return 32;
|
||||
case IdlePriority:
|
||||
return 536870912;
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
}
|
||||
function addEventBubbleListener(target, eventType, listener) {
|
||||
@@ -5188,7 +5189,7 @@ function flushSyncCallbacks() {
|
||||
previousUpdatePriority = currentUpdatePriority;
|
||||
try {
|
||||
var queue = syncQueue;
|
||||
for (currentUpdatePriority = 1; i < queue.length; i++) {
|
||||
for (currentUpdatePriority = 2; i < queue.length; i++) {
|
||||
var callback = queue[i];
|
||||
do callback = callback(!0);
|
||||
while (null !== callback);
|
||||
@@ -5682,7 +5683,7 @@ function enqueueUpdate$1(fiber, update, lane) {
|
||||
}
|
||||
function entangleTransitions(root, fiber, lane) {
|
||||
fiber = fiber.updateQueue;
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) {
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) {
|
||||
var queueLanes = fiber.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -7156,8 +7157,8 @@ function checkIfSnapshotChanged(inst) {
|
||||
}
|
||||
}
|
||||
function forceStoreRerender(fiber) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1);
|
||||
}
|
||||
function mountState(initialState) {
|
||||
var hook = mountWorkInProgressHook();
|
||||
@@ -7308,7 +7309,7 @@ function updateMemo(nextCreate, deps) {
|
||||
return nextCreate;
|
||||
}
|
||||
function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
if (0 === (renderLanes & 21))
|
||||
if (0 === (renderLanes & 42))
|
||||
return (
|
||||
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
||||
(hook.memoizedState = value)
|
||||
@@ -7323,7 +7324,7 @@ function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
function startTransition(setPending, callback, options) {
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority =
|
||||
0 !== previousPriority && 4 > previousPriority ? previousPriority : 4;
|
||||
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
||||
setPending(!0);
|
||||
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
||||
ReactCurrentBatchConfig$1.transition = {};
|
||||
@@ -7442,7 +7443,7 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
||||
queue.pending = update;
|
||||
}
|
||||
function entangleTransitionUpdate(root, queue, lane) {
|
||||
if (0 !== (lane & 4194240)) {
|
||||
if (0 !== (lane & 8388480)) {
|
||||
var queueLanes = queue.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -7950,10 +7951,10 @@ function markSuspenseBoundaryShouldCapture(
|
||||
1 === sourceFiber.tag &&
|
||||
(null === sourceFiber.alternate
|
||||
? (sourceFiber.tag = 17)
|
||||
: ((returnFiber = createUpdate(-1, 1)),
|
||||
: ((returnFiber = createUpdate(-1, 2)),
|
||||
(returnFiber.tag = 2),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 1))),
|
||||
(sourceFiber.lanes |= 1)),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 2))),
|
||||
(sourceFiber.lanes |= 2)),
|
||||
suspenseBoundary
|
||||
);
|
||||
suspenseBoundary.flags |= 65536;
|
||||
@@ -8656,9 +8657,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)
|
||||
return (
|
||||
0 === (workInProgress.mode & 1)
|
||||
? (workInProgress.lanes = 1)
|
||||
? (workInProgress.lanes = 2)
|
||||
: "$!" === current.data
|
||||
? (workInProgress.lanes = 8)
|
||||
? (workInProgress.lanes = 16)
|
||||
: (workInProgress.lanes = 1073741824),
|
||||
null
|
||||
);
|
||||
@@ -8710,7 +8711,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
(workInProgress.lanes = 8388608),
|
||||
current
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
@@ -8965,13 +8966,15 @@ function updateDehydratedSuspenseComponent(
|
||||
nextProps = workInProgressRoot;
|
||||
if (null !== nextProps) {
|
||||
switch (renderLanes & -renderLanes) {
|
||||
case 4:
|
||||
suspenseInstance = 2;
|
||||
case 2:
|
||||
suspenseInstance = 1;
|
||||
break;
|
||||
case 16:
|
||||
suspenseInstance = 8;
|
||||
case 8:
|
||||
suspenseInstance = 4;
|
||||
break;
|
||||
case 32:
|
||||
suspenseInstance = 16;
|
||||
break;
|
||||
case 64:
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -8992,7 +8995,7 @@ function updateDehydratedSuspenseComponent(
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
suspenseInstance = 32;
|
||||
suspenseInstance = 64;
|
||||
break;
|
||||
case 536870912:
|
||||
suspenseInstance = 268435456;
|
||||
@@ -10254,7 +10257,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
}
|
||||
else {
|
||||
if (!newProps)
|
||||
@@ -10283,7 +10286,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
type.isBackwards
|
||||
? ((JSCompiler_inline_result.sibling = workInProgress.child),
|
||||
(workInProgress.child = JSCompiler_inline_result))
|
||||
@@ -11449,20 +11452,20 @@ function detachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 === (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility |= 2),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 !== (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility &= -3),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachSuspenseRetryListeners(finishedWork, wakeables) {
|
||||
@@ -12799,7 +12802,7 @@ function requestEventTime() {
|
||||
: (currentEventTime = now());
|
||||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (
|
||||
!deferRenderPhaseUpdateToNextBatch &&
|
||||
0 !== (executionContext & 2) &&
|
||||
@@ -12815,7 +12818,7 @@ function requestUpdateLane(fiber) {
|
||||
fiber = currentUpdatePriority;
|
||||
if (0 !== fiber) return fiber;
|
||||
fiber = window.event;
|
||||
fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type);
|
||||
fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type);
|
||||
return fiber;
|
||||
}
|
||||
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
@@ -12848,7 +12851,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes);
|
||||
}
|
||||
ensureRootIsScheduled(root, eventTime);
|
||||
1 === lane &&
|
||||
2 === lane &&
|
||||
0 === executionContext &&
|
||||
0 === (fiber.mode & 1) &&
|
||||
(resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks());
|
||||
@@ -12870,7 +12873,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
root.callbackPriority !== currentTime)
|
||||
) {
|
||||
null != existingCallbackNode && cancelCallback(existingCallbackNode);
|
||||
if (1 === currentTime)
|
||||
if (0 !== (currentTime & 3))
|
||||
0 === root.tag
|
||||
? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root))
|
||||
: scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)),
|
||||
@@ -12880,13 +12883,13 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
(existingCallbackNode = null);
|
||||
else {
|
||||
switch (lanesToEventPriority(nextLanes)) {
|
||||
case 1:
|
||||
case 2:
|
||||
existingCallbackNode = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
existingCallbackNode = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
existingCallbackNode = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -12989,7 +12992,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
case 3:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if (
|
||||
(lanes & 130023424) === lanes &&
|
||||
(lanes & 125829120) === lanes &&
|
||||
((didTimeout = globalMostRecentFallbackTime + 500 - now()),
|
||||
10 < didTimeout)
|
||||
) {
|
||||
@@ -13020,7 +13023,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
break;
|
||||
case 4:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if ((lanes & 4194240) === lanes) break;
|
||||
if ((lanes & 8388480) === lanes) break;
|
||||
didTimeout = root.eventTimes;
|
||||
for (originallyAttemptedLanes = -1; 0 < lanes; )
|
||||
(errorRetryLanes$217 = 31 - clz32(lanes)),
|
||||
@@ -13162,7 +13165,7 @@ function performSyncWorkOnRoot(root) {
|
||||
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, 0);
|
||||
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
||||
if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null;
|
||||
var exitStatus = renderRootSync(root, lanes);
|
||||
if (0 !== root.tag && 2 === exitStatus) {
|
||||
var originallyAttemptedLanes = lanes,
|
||||
@@ -13222,7 +13225,7 @@ function flushSync(fn) {
|
||||
try {
|
||||
if (
|
||||
((ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn)
|
||||
)
|
||||
return fn();
|
||||
@@ -13294,7 +13297,7 @@ function handleThrow(root, thrownValue) {
|
||||
}
|
||||
function shouldAttemptToSuspendUntilDataResolves() {
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes
|
||||
)
|
||||
return !0;
|
||||
@@ -13304,7 +13307,7 @@ function shouldAttemptToSuspendUntilDataResolves() {
|
||||
)
|
||||
return !1;
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 4194240) ===
|
||||
(workInProgressRootRenderLanes & 8388480) ===
|
||||
workInProgressRootRenderLanes
|
||||
) {
|
||||
var suspenseHandler = suspenseHandlerStackCursor.current;
|
||||
@@ -13717,7 +13720,7 @@ function commitRoot(root, recoverableErrors, transitions) {
|
||||
prevTransition = ReactCurrentBatchConfig$3.transition;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -13768,7 +13771,7 @@ function commitRootImpl(
|
||||
transitions = ReactCurrentBatchConfig$3.transition;
|
||||
ReactCurrentBatchConfig$3.transition = null;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority = 1;
|
||||
currentUpdatePriority = 2;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
ReactCurrentOwner$2.current = null;
|
||||
@@ -13817,11 +13820,11 @@ function commitRootImpl(
|
||||
(root = firstUncaughtError),
|
||||
(firstUncaughtError = null),
|
||||
root);
|
||||
0 !== (pendingPassiveEffectsLanes & 1) &&
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
remainingLanes = root.pendingLanes;
|
||||
0 !== (remainingLanes & 1)
|
||||
0 !== (remainingLanes & 3)
|
||||
? root === rootWithNestedUpdates
|
||||
? nestedUpdateCount++
|
||||
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
||||
@@ -13858,7 +13861,7 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
|
||||
renderPriority = 16 > renderPriority ? 16 : renderPriority;
|
||||
renderPriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
var prevTransition = ReactCurrentBatchConfig$3.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
@@ -13914,11 +13917,11 @@ function flushPassiveEffectsImpl() {
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== rootFiber &&
|
||||
(markRootUpdated(rootFiber, 1, sourceFiber),
|
||||
(markRootUpdated(rootFiber, 2, sourceFiber),
|
||||
ensureRootIsScheduled(rootFiber, sourceFiber));
|
||||
}
|
||||
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
@@ -13952,16 +13955,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
sourceFiber = createClassErrorUpdate(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
nearestMountedAncestor = enqueueUpdate$1(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== nearestMountedAncestor &&
|
||||
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
||||
(markRootUpdated(nearestMountedAncestor, 2, sourceFiber),
|
||||
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
||||
break;
|
||||
}
|
||||
@@ -13994,7 +13997,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
(workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
|
||||
(4 === workInProgressRootExitStatus ||
|
||||
(3 === workInProgressRootExitStatus &&
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes &&
|
||||
500 > now() - globalMostRecentFallbackTime)
|
||||
? prepareFreshStack(root, 0)
|
||||
@@ -14004,10 +14007,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
||||
0 === retryLane &&
|
||||
(0 === (boundaryFiber.mode & 1)
|
||||
? (retryLane = 1)
|
||||
? (retryLane = 2)
|
||||
: ((retryLane = nextRetryLane),
|
||||
(nextRetryLane <<= 1),
|
||||
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
||||
0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608)));
|
||||
var eventTime = requestEventTime();
|
||||
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
||||
null !== boundaryFiber &&
|
||||
@@ -15044,7 +15047,7 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
if (root$228.current.memoizedState.isDehydrated) {
|
||||
var lanes = getHighestPriorityLanes(root$228.pendingLanes);
|
||||
0 !== lanes &&
|
||||
(markRootEntangled(root$228, lanes | 1),
|
||||
(markRootEntangled(root$228, lanes | 2),
|
||||
ensureRootIsScheduled(root$228, now()),
|
||||
0 === (executionContext & 6) &&
|
||||
(resetRenderTimer(), flushSyncCallbacks()));
|
||||
@@ -15052,23 +15055,23 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
break;
|
||||
case 13:
|
||||
flushSync(function() {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
}),
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptDiscreteHydration = function(fiber) {
|
||||
if (13 === fiber.tag) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptContinuousHydration = function(fiber) {
|
||||
@@ -15138,7 +15141,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1738 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-7efa9e597-20221215",
|
||||
version: "18.3.0-www-modern-fabef7a6b-20221215",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2132 = {
|
||||
@@ -15169,7 +15172,7 @@ var internals$jscomp$inline_2132 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-next-7efa9e597-20221215"
|
||||
reconcilerVersion: "18.3.0-next-fabef7a6b-20221215"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2133 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -15347,7 +15350,7 @@ exports.unstable_flushControlled = function(fn) {
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn();
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -15357,4 +15360,4 @@ exports.unstable_flushControlled = function(fn) {
|
||||
}
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-next-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-next-fabef7a6b-20221215";
|
||||
|
||||
@@ -1586,13 +1586,13 @@ function onCommitRoot(root, eventPriority) {
|
||||
try {
|
||||
var didError = 128 === (root.current.flags & 128);
|
||||
switch (eventPriority) {
|
||||
case 1:
|
||||
case 2:
|
||||
var schedulerPriority = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
schedulerPriority = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
schedulerPriority = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -1686,22 +1686,23 @@ function clz32Fallback(x) {
|
||||
}
|
||||
function getLabelForLane(lane) {
|
||||
if (enableSchedulingProfiler) {
|
||||
if (lane & 1) return "Sync";
|
||||
if (lane & 2) return "InputContinuousHydration";
|
||||
if (lane & 4) return "InputContinuous";
|
||||
if (lane & 8) return "DefaultHydration";
|
||||
if (lane & 16) return "Default";
|
||||
if (lane & 32) return "TransitionHydration";
|
||||
if (lane & 4194240) return "Transition";
|
||||
if (lane & 130023424) return "Retry";
|
||||
if (lane & 1) return "SyncHydrationLane";
|
||||
if (lane & 2) return "Sync";
|
||||
if (lane & 4) return "InputContinuousHydration";
|
||||
if (lane & 8) return "InputContinuous";
|
||||
if (lane & 16) return "DefaultHydration";
|
||||
if (lane & 32) return "Default";
|
||||
if (lane & 64) return "TransitionHydration";
|
||||
if (lane & 8388480) return "Transition";
|
||||
if (lane & 125829120) return "Retry";
|
||||
if (lane & 134217728) return "SelectiveHydration";
|
||||
if (lane & 268435456) return "IdleHydration";
|
||||
if (lane & 536870912) return "Idle";
|
||||
if (lane & 1073741824) return "Offscreen";
|
||||
}
|
||||
}
|
||||
var nextTransitionLane = 64,
|
||||
nextRetryLane = 4194304;
|
||||
var nextTransitionLane = 128,
|
||||
nextRetryLane = 8388608;
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (lanes & -lanes) {
|
||||
case 1:
|
||||
@@ -1717,6 +1718,7 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 32:
|
||||
return 32;
|
||||
case 64:
|
||||
return 64;
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -1732,13 +1734,13 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return lanes & 4194240;
|
||||
case 4194304:
|
||||
return lanes & 8388480;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
return lanes & 130023424;
|
||||
return lanes & 125829120;
|
||||
case 134217728:
|
||||
return 134217728;
|
||||
case 268435456:
|
||||
@@ -1779,12 +1781,12 @@ function getNextLanes(root, wipLanes) {
|
||||
((suspendedLanes = nextLanes & -nextLanes),
|
||||
(pingedLanes = wipLanes & -wipLanes),
|
||||
suspendedLanes >= pingedLanes ||
|
||||
(16 === suspendedLanes && 0 !== (pingedLanes & 4194240)))
|
||||
(32 === suspendedLanes && 0 !== (pingedLanes & 8388480)))
|
||||
)
|
||||
return wipLanes;
|
||||
0 === (root.current.mode & 32) &&
|
||||
0 !== (nextLanes & 4) &&
|
||||
(nextLanes |= pendingLanes & 16);
|
||||
0 !== (nextLanes & 8) &&
|
||||
(nextLanes |= pendingLanes & 32);
|
||||
wipLanes = root.entangledLanes;
|
||||
if (0 !== wipLanes)
|
||||
for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; )
|
||||
@@ -1799,8 +1801,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return currentTime + 250;
|
||||
case 8:
|
||||
return currentTime + 250;
|
||||
case 16:
|
||||
case 32:
|
||||
case 64:
|
||||
@@ -1819,8 +1821,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return currentTime + 5e3;
|
||||
case 4194304:
|
||||
return currentTime + 5e3;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
@@ -1840,7 +1842,7 @@ function markStarvedLanesAsExpired(root, currentTime) {
|
||||
var suspendedLanes = root.suspendedLanes,
|
||||
pingedLanes = root.pingedLanes,
|
||||
expirationTimes = root.expirationTimes,
|
||||
lanes = root.pendingLanes & -130023425;
|
||||
lanes = root.pendingLanes & -125829121;
|
||||
0 < lanes;
|
||||
|
||||
) {
|
||||
@@ -1860,12 +1862,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
||||
}
|
||||
function includesBlockingLane(root, lanes) {
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60);
|
||||
}
|
||||
function claimNextTransitionLane() {
|
||||
var lane = nextTransitionLane;
|
||||
nextTransitionLane <<= 1;
|
||||
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
||||
0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128);
|
||||
return lane;
|
||||
}
|
||||
function createLaneMap(initial) {
|
||||
@@ -1986,13 +1988,13 @@ function runWithPriority(priority, fn) {
|
||||
}
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 1 < lanes
|
||||
? 4 < lanes
|
||||
return 2 < lanes
|
||||
? 8 < lanes
|
||||
? 0 !== (lanes & 268435455)
|
||||
? 16
|
||||
? 32
|
||||
: 536870912
|
||||
: 4
|
||||
: 1;
|
||||
: 8
|
||||
: 2;
|
||||
}
|
||||
var Internals = {
|
||||
usingClientEntryPoint: !1,
|
||||
@@ -5085,10 +5087,10 @@ function createEventListenerWrapperWithPriority(
|
||||
eventSystemFlags
|
||||
) {
|
||||
switch (getEventPriority(domEventName)) {
|
||||
case 1:
|
||||
case 2:
|
||||
var listenerWrapper = dispatchDiscreteEvent;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
listenerWrapper = dispatchContinuousEvent;
|
||||
break;
|
||||
default:
|
||||
@@ -5111,7 +5113,7 @@ function dispatchDiscreteEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -5128,7 +5130,7 @@ function dispatchContinuousEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 4),
|
||||
(currentUpdatePriority = 8),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -5350,7 +5352,7 @@ function getEventPriority(domEventName) {
|
||||
case "popstate":
|
||||
case "select":
|
||||
case "selectstart":
|
||||
return 1;
|
||||
return 2;
|
||||
case "drag":
|
||||
case "dragenter":
|
||||
case "dragexit":
|
||||
@@ -5370,23 +5372,23 @@ function getEventPriority(domEventName) {
|
||||
case "mouseleave":
|
||||
case "pointerenter":
|
||||
case "pointerleave":
|
||||
return 4;
|
||||
return 8;
|
||||
case "message":
|
||||
switch (getCurrentPriorityLevel()) {
|
||||
case ImmediatePriority:
|
||||
return 1;
|
||||
return 2;
|
||||
case UserBlockingPriority:
|
||||
return 4;
|
||||
return 8;
|
||||
case NormalPriority:
|
||||
case LowPriority:
|
||||
return 16;
|
||||
return 32;
|
||||
case IdlePriority:
|
||||
return 536870912;
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
}
|
||||
var emptyContextObject = {},
|
||||
@@ -5484,7 +5486,7 @@ function flushSyncCallbacks() {
|
||||
previousUpdatePriority = currentUpdatePriority;
|
||||
try {
|
||||
var queue = syncQueue;
|
||||
for (currentUpdatePriority = 1; i < queue.length; i++) {
|
||||
for (currentUpdatePriority = 2; i < queue.length; i++) {
|
||||
var callback = queue[i];
|
||||
do callback = callback(!0);
|
||||
while (null !== callback);
|
||||
@@ -5978,7 +5980,7 @@ function enqueueUpdate$1(fiber, update, lane) {
|
||||
}
|
||||
function entangleTransitions(root, fiber, lane) {
|
||||
fiber = fiber.updateQueue;
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) {
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) {
|
||||
var queueLanes = fiber.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -7452,8 +7454,8 @@ function checkIfSnapshotChanged(inst) {
|
||||
}
|
||||
}
|
||||
function forceStoreRerender(fiber) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1);
|
||||
}
|
||||
function mountState(initialState) {
|
||||
var hook = mountWorkInProgressHook();
|
||||
@@ -7604,7 +7606,7 @@ function updateMemo(nextCreate, deps) {
|
||||
return nextCreate;
|
||||
}
|
||||
function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
if (0 === (renderLanes & 21))
|
||||
if (0 === (renderLanes & 42))
|
||||
return (
|
||||
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
||||
(hook.memoizedState = value)
|
||||
@@ -7619,7 +7621,7 @@ function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
function startTransition(setPending, callback, options) {
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority =
|
||||
0 !== previousPriority && 4 > previousPriority ? previousPriority : 4;
|
||||
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
||||
setPending(!0);
|
||||
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
||||
ReactCurrentBatchConfig$1.transition = {};
|
||||
@@ -7740,7 +7742,7 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
||||
queue.pending = update;
|
||||
}
|
||||
function entangleTransitionUpdate(root, queue, lane) {
|
||||
if (0 !== (lane & 4194240)) {
|
||||
if (0 !== (lane & 8388480)) {
|
||||
var queueLanes = queue.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -8331,10 +8333,10 @@ function markSuspenseBoundaryShouldCapture(
|
||||
1 === sourceFiber.tag &&
|
||||
(null === sourceFiber.alternate
|
||||
? (sourceFiber.tag = 17)
|
||||
: ((returnFiber = createUpdate(-1, 1)),
|
||||
: ((returnFiber = createUpdate(-1, 2)),
|
||||
(returnFiber.tag = 2),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 1))),
|
||||
(sourceFiber.lanes |= 1)),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 2))),
|
||||
(sourceFiber.lanes |= 2)),
|
||||
suspenseBoundary
|
||||
);
|
||||
suspenseBoundary.flags |= 65536;
|
||||
@@ -9086,9 +9088,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)
|
||||
return (
|
||||
0 === (workInProgress.mode & 1)
|
||||
? (workInProgress.lanes = 1)
|
||||
? (workInProgress.lanes = 2)
|
||||
: "$!" === current.data
|
||||
? (workInProgress.lanes = 8)
|
||||
? (workInProgress.lanes = 16)
|
||||
: (workInProgress.lanes = 1073741824),
|
||||
null
|
||||
);
|
||||
@@ -9140,7 +9142,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
(workInProgress.lanes = 8388608),
|
||||
current
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
@@ -9405,13 +9407,15 @@ function updateDehydratedSuspenseComponent(
|
||||
nextProps = workInProgressRoot;
|
||||
if (null !== nextProps) {
|
||||
switch (renderLanes & -renderLanes) {
|
||||
case 4:
|
||||
suspenseInstance = 2;
|
||||
case 2:
|
||||
suspenseInstance = 1;
|
||||
break;
|
||||
case 16:
|
||||
suspenseInstance = 8;
|
||||
case 8:
|
||||
suspenseInstance = 4;
|
||||
break;
|
||||
case 32:
|
||||
suspenseInstance = 16;
|
||||
break;
|
||||
case 64:
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -9432,7 +9436,7 @@ function updateDehydratedSuspenseComponent(
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
suspenseInstance = 32;
|
||||
suspenseInstance = 64;
|
||||
break;
|
||||
case 536870912:
|
||||
suspenseInstance = 268435456;
|
||||
@@ -10775,7 +10779,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
}
|
||||
else {
|
||||
if (!newProps)
|
||||
@@ -10804,7 +10808,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
type.isBackwards
|
||||
? ((JSCompiler_inline_result.sibling = workInProgress.child),
|
||||
(workInProgress.child = JSCompiler_inline_result))
|
||||
@@ -12191,20 +12195,20 @@ function detachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 === (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility |= 2),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 !== (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility &= -3),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachSuspenseRetryListeners(finishedWork, wakeables) {
|
||||
@@ -13613,7 +13617,7 @@ function requestEventTime() {
|
||||
: (currentEventTime = now());
|
||||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (
|
||||
!deferRenderPhaseUpdateToNextBatch &&
|
||||
0 !== (executionContext & 2) &&
|
||||
@@ -13629,7 +13633,7 @@ function requestUpdateLane(fiber) {
|
||||
fiber = currentUpdatePriority;
|
||||
if (0 !== fiber) return fiber;
|
||||
fiber = window.event;
|
||||
fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type);
|
||||
fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type);
|
||||
return fiber;
|
||||
}
|
||||
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
@@ -13678,7 +13682,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes);
|
||||
}
|
||||
ensureRootIsScheduled(root, eventTime);
|
||||
1 === lane &&
|
||||
2 === lane &&
|
||||
0 === executionContext &&
|
||||
0 === (fiber.mode & 1) &&
|
||||
(resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks());
|
||||
@@ -13700,7 +13704,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
root.callbackPriority !== currentTime)
|
||||
) {
|
||||
null != existingCallbackNode && cancelCallback(existingCallbackNode);
|
||||
if (1 === currentTime)
|
||||
if (0 !== (currentTime & 3))
|
||||
0 === root.tag
|
||||
? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root))
|
||||
: scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)),
|
||||
@@ -13710,13 +13714,13 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
(existingCallbackNode = null);
|
||||
else {
|
||||
switch (lanesToEventPriority(nextLanes)) {
|
||||
case 1:
|
||||
case 2:
|
||||
existingCallbackNode = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
existingCallbackNode = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
existingCallbackNode = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -13820,7 +13824,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
case 3:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if (
|
||||
(lanes & 130023424) === lanes &&
|
||||
(lanes & 125829120) === lanes &&
|
||||
((didTimeout = globalMostRecentFallbackTime + 500 - now()),
|
||||
10 < didTimeout)
|
||||
) {
|
||||
@@ -13851,7 +13855,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
break;
|
||||
case 4:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if ((lanes & 4194240) === lanes) break;
|
||||
if ((lanes & 8388480) === lanes) break;
|
||||
didTimeout = root.eventTimes;
|
||||
for (originallyAttemptedLanes = -1; 0 < lanes; )
|
||||
(errorRetryLanes$236 = 31 - clz32(lanes)),
|
||||
@@ -13995,7 +13999,7 @@ function performSyncWorkOnRoot(root) {
|
||||
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, 0);
|
||||
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
||||
if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null;
|
||||
var exitStatus = renderRootSync(root, lanes);
|
||||
if (0 !== root.tag && 2 === exitStatus) {
|
||||
var originallyAttemptedLanes = lanes,
|
||||
@@ -14055,7 +14059,7 @@ function flushSync(fn) {
|
||||
try {
|
||||
if (
|
||||
((ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn)
|
||||
)
|
||||
return fn();
|
||||
@@ -14148,7 +14152,7 @@ function handleThrow(root, thrownValue) {
|
||||
}
|
||||
function shouldAttemptToSuspendUntilDataResolves() {
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes
|
||||
)
|
||||
return !0;
|
||||
@@ -14158,7 +14162,7 @@ function shouldAttemptToSuspendUntilDataResolves() {
|
||||
)
|
||||
return !1;
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 4194240) ===
|
||||
(workInProgressRootRenderLanes & 8388480) ===
|
||||
workInProgressRootRenderLanes
|
||||
) {
|
||||
var suspenseHandler = suspenseHandlerStackCursor.current;
|
||||
@@ -14623,7 +14627,7 @@ function commitRoot(root, recoverableErrors, transitions) {
|
||||
prevTransition = ReactCurrentBatchConfig$3.transition;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -14680,7 +14684,7 @@ function commitRootImpl(
|
||||
transitions = ReactCurrentBatchConfig$3.transition;
|
||||
ReactCurrentBatchConfig$3.transition = null;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority = 1;
|
||||
currentUpdatePriority = 2;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
ReactCurrentOwner$2.current = null;
|
||||
@@ -14745,11 +14749,11 @@ function commitRootImpl(
|
||||
(root = firstUncaughtError),
|
||||
(firstUncaughtError = null),
|
||||
root);
|
||||
0 !== (pendingPassiveEffectsLanes & 1) &&
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
remainingLanes = root.pendingLanes;
|
||||
0 !== (remainingLanes & 1)
|
||||
0 !== (remainingLanes & 3)
|
||||
? ((nestedUpdateScheduled = !0),
|
||||
root === rootWithNestedUpdates
|
||||
? nestedUpdateCount++
|
||||
@@ -14788,7 +14792,7 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
|
||||
renderPriority = 16 > renderPriority ? 16 : renderPriority;
|
||||
renderPriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
var prevTransition = ReactCurrentBatchConfig$3.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
@@ -14870,11 +14874,11 @@ function flushPassiveEffectsImpl() {
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== rootFiber &&
|
||||
(markRootUpdated(rootFiber, 1, sourceFiber),
|
||||
(markRootUpdated(rootFiber, 2, sourceFiber),
|
||||
ensureRootIsScheduled(rootFiber, sourceFiber));
|
||||
}
|
||||
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
@@ -14908,16 +14912,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
sourceFiber = createClassErrorUpdate(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
nearestMountedAncestor = enqueueUpdate$1(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== nearestMountedAncestor &&
|
||||
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
||||
(markRootUpdated(nearestMountedAncestor, 2, sourceFiber),
|
||||
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
||||
break;
|
||||
}
|
||||
@@ -14951,7 +14955,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
(workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
|
||||
(4 === workInProgressRootExitStatus ||
|
||||
(3 === workInProgressRootExitStatus &&
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes &&
|
||||
500 > now() - globalMostRecentFallbackTime)
|
||||
? prepareFreshStack(root, 0)
|
||||
@@ -14961,10 +14965,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
||||
0 === retryLane &&
|
||||
(0 === (boundaryFiber.mode & 1)
|
||||
? (retryLane = 1)
|
||||
? (retryLane = 2)
|
||||
: ((retryLane = nextRetryLane),
|
||||
(nextRetryLane <<= 1),
|
||||
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
||||
0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608)));
|
||||
var eventTime = requestEventTime();
|
||||
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
||||
null !== boundaryFiber &&
|
||||
@@ -16254,7 +16258,7 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
if (root$248.current.memoizedState.isDehydrated) {
|
||||
var lanes = getHighestPriorityLanes(root$248.pendingLanes);
|
||||
0 !== lanes &&
|
||||
(markRootEntangled(root$248, lanes | 1),
|
||||
(markRootEntangled(root$248, lanes | 2),
|
||||
ensureRootIsScheduled(root$248, now()),
|
||||
0 === (executionContext & 6) &&
|
||||
(resetRenderTimer(), flushSyncCallbacks()));
|
||||
@@ -16262,23 +16266,23 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
break;
|
||||
case 13:
|
||||
flushSync(function() {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
}),
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptDiscreteHydration = function(fiber) {
|
||||
if (13 === fiber.tag) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptContinuousHydration = function(fiber) {
|
||||
@@ -16348,7 +16352,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1844 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-7efa9e597-20221215",
|
||||
version: "18.3.0-www-classic-fabef7a6b-20221215",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
(function(internals) {
|
||||
@@ -16392,7 +16396,7 @@ var devToolsConfig$jscomp$inline_1844 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-next-7efa9e597-20221215"
|
||||
reconcilerVersion: "18.3.0-next-fabef7a6b-20221215"
|
||||
});
|
||||
assign(Internals, {
|
||||
ReactBrowserEventEmitter: {
|
||||
@@ -16593,7 +16597,7 @@ exports.unstable_flushControlled = function(fn) {
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn();
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -16621,7 +16625,7 @@ exports.unstable_renderSubtreeIntoContainer = function(
|
||||
);
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-next-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-next-fabef7a6b-20221215";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
@@ -1291,13 +1291,13 @@ function onCommitRoot(root, eventPriority) {
|
||||
try {
|
||||
var didError = 128 === (root.current.flags & 128);
|
||||
switch (eventPriority) {
|
||||
case 1:
|
||||
case 2:
|
||||
var schedulerPriority = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
schedulerPriority = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
schedulerPriority = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -1387,22 +1387,23 @@ function clz32Fallback(x) {
|
||||
}
|
||||
function getLabelForLane(lane) {
|
||||
if (enableSchedulingProfiler) {
|
||||
if (lane & 1) return "Sync";
|
||||
if (lane & 2) return "InputContinuousHydration";
|
||||
if (lane & 4) return "InputContinuous";
|
||||
if (lane & 8) return "DefaultHydration";
|
||||
if (lane & 16) return "Default";
|
||||
if (lane & 32) return "TransitionHydration";
|
||||
if (lane & 4194240) return "Transition";
|
||||
if (lane & 130023424) return "Retry";
|
||||
if (lane & 1) return "SyncHydrationLane";
|
||||
if (lane & 2) return "Sync";
|
||||
if (lane & 4) return "InputContinuousHydration";
|
||||
if (lane & 8) return "InputContinuous";
|
||||
if (lane & 16) return "DefaultHydration";
|
||||
if (lane & 32) return "Default";
|
||||
if (lane & 64) return "TransitionHydration";
|
||||
if (lane & 8388480) return "Transition";
|
||||
if (lane & 125829120) return "Retry";
|
||||
if (lane & 134217728) return "SelectiveHydration";
|
||||
if (lane & 268435456) return "IdleHydration";
|
||||
if (lane & 536870912) return "Idle";
|
||||
if (lane & 1073741824) return "Offscreen";
|
||||
}
|
||||
}
|
||||
var nextTransitionLane = 64,
|
||||
nextRetryLane = 4194304;
|
||||
var nextTransitionLane = 128,
|
||||
nextRetryLane = 8388608;
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (lanes & -lanes) {
|
||||
case 1:
|
||||
@@ -1418,6 +1419,7 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 32:
|
||||
return 32;
|
||||
case 64:
|
||||
return 64;
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -1433,13 +1435,13 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return lanes & 4194240;
|
||||
case 4194304:
|
||||
return lanes & 8388480;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
return lanes & 130023424;
|
||||
return lanes & 125829120;
|
||||
case 134217728:
|
||||
return 134217728;
|
||||
case 268435456:
|
||||
@@ -1480,12 +1482,12 @@ function getNextLanes(root, wipLanes) {
|
||||
((suspendedLanes = nextLanes & -nextLanes),
|
||||
(pingedLanes = wipLanes & -wipLanes),
|
||||
suspendedLanes >= pingedLanes ||
|
||||
(16 === suspendedLanes && 0 !== (pingedLanes & 4194240)))
|
||||
(32 === suspendedLanes && 0 !== (pingedLanes & 8388480)))
|
||||
)
|
||||
return wipLanes;
|
||||
0 === (root.current.mode & 32) &&
|
||||
0 !== (nextLanes & 4) &&
|
||||
(nextLanes |= pendingLanes & 16);
|
||||
0 !== (nextLanes & 8) &&
|
||||
(nextLanes |= pendingLanes & 32);
|
||||
wipLanes = root.entangledLanes;
|
||||
if (0 !== wipLanes)
|
||||
for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; )
|
||||
@@ -1500,8 +1502,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return currentTime + 250;
|
||||
case 8:
|
||||
return currentTime + 250;
|
||||
case 16:
|
||||
case 32:
|
||||
case 64:
|
||||
@@ -1520,8 +1522,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return currentTime + 5e3;
|
||||
case 4194304:
|
||||
return currentTime + 5e3;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
@@ -1541,7 +1543,7 @@ function markStarvedLanesAsExpired(root, currentTime) {
|
||||
var suspendedLanes = root.suspendedLanes,
|
||||
pingedLanes = root.pingedLanes,
|
||||
expirationTimes = root.expirationTimes,
|
||||
lanes = root.pendingLanes & -130023425;
|
||||
lanes = root.pendingLanes & -125829121;
|
||||
0 < lanes;
|
||||
|
||||
) {
|
||||
@@ -1561,12 +1563,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
||||
}
|
||||
function includesBlockingLane(root, lanes) {
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60);
|
||||
}
|
||||
function claimNextTransitionLane() {
|
||||
var lane = nextTransitionLane;
|
||||
nextTransitionLane <<= 1;
|
||||
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
||||
0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128);
|
||||
return lane;
|
||||
}
|
||||
function createLaneMap(initial) {
|
||||
@@ -1687,13 +1689,13 @@ function runWithPriority(priority, fn) {
|
||||
}
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 1 < lanes
|
||||
? 4 < lanes
|
||||
return 2 < lanes
|
||||
? 8 < lanes
|
||||
? 0 !== (lanes & 268435455)
|
||||
? 16
|
||||
? 32
|
||||
: 536870912
|
||||
: 4
|
||||
: 1;
|
||||
: 8
|
||||
: 2;
|
||||
}
|
||||
var _attemptSynchronousHydration,
|
||||
attemptDiscreteHydration,
|
||||
@@ -2062,10 +2064,10 @@ function createEventListenerWrapperWithPriority(
|
||||
eventSystemFlags
|
||||
) {
|
||||
switch (getEventPriority(domEventName)) {
|
||||
case 1:
|
||||
case 2:
|
||||
var listenerWrapper = dispatchDiscreteEvent;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
listenerWrapper = dispatchContinuousEvent;
|
||||
break;
|
||||
default:
|
||||
@@ -2088,7 +2090,7 @@ function dispatchDiscreteEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -2105,7 +2107,7 @@ function dispatchContinuousEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 4),
|
||||
(currentUpdatePriority = 8),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -2327,7 +2329,7 @@ function getEventPriority(domEventName) {
|
||||
case "popstate":
|
||||
case "select":
|
||||
case "selectstart":
|
||||
return 1;
|
||||
return 2;
|
||||
case "drag":
|
||||
case "dragenter":
|
||||
case "dragexit":
|
||||
@@ -2347,23 +2349,23 @@ function getEventPriority(domEventName) {
|
||||
case "mouseleave":
|
||||
case "pointerenter":
|
||||
case "pointerleave":
|
||||
return 4;
|
||||
return 8;
|
||||
case "message":
|
||||
switch (getCurrentPriorityLevel()) {
|
||||
case ImmediatePriority:
|
||||
return 1;
|
||||
return 2;
|
||||
case UserBlockingPriority:
|
||||
return 4;
|
||||
return 8;
|
||||
case NormalPriority:
|
||||
case LowPriority:
|
||||
return 16;
|
||||
return 32;
|
||||
case IdlePriority:
|
||||
return 536870912;
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
}
|
||||
function addEventBubbleListener(target, eventType, listener) {
|
||||
@@ -5331,7 +5333,7 @@ function flushSyncCallbacks() {
|
||||
previousUpdatePriority = currentUpdatePriority;
|
||||
try {
|
||||
var queue = syncQueue;
|
||||
for (currentUpdatePriority = 1; i < queue.length; i++) {
|
||||
for (currentUpdatePriority = 2; i < queue.length; i++) {
|
||||
var callback = queue[i];
|
||||
do callback = callback(!0);
|
||||
while (null !== callback);
|
||||
@@ -5825,7 +5827,7 @@ function enqueueUpdate$1(fiber, update, lane) {
|
||||
}
|
||||
function entangleTransitions(root, fiber, lane) {
|
||||
fiber = fiber.updateQueue;
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) {
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) {
|
||||
var queueLanes = fiber.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -7299,8 +7301,8 @@ function checkIfSnapshotChanged(inst) {
|
||||
}
|
||||
}
|
||||
function forceStoreRerender(fiber) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1);
|
||||
}
|
||||
function mountState(initialState) {
|
||||
var hook = mountWorkInProgressHook();
|
||||
@@ -7451,7 +7453,7 @@ function updateMemo(nextCreate, deps) {
|
||||
return nextCreate;
|
||||
}
|
||||
function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
if (0 === (renderLanes & 21))
|
||||
if (0 === (renderLanes & 42))
|
||||
return (
|
||||
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
||||
(hook.memoizedState = value)
|
||||
@@ -7466,7 +7468,7 @@ function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
function startTransition(setPending, callback, options) {
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority =
|
||||
0 !== previousPriority && 4 > previousPriority ? previousPriority : 4;
|
||||
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
||||
setPending(!0);
|
||||
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
||||
ReactCurrentBatchConfig$1.transition = {};
|
||||
@@ -7587,7 +7589,7 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
||||
queue.pending = update;
|
||||
}
|
||||
function entangleTransitionUpdate(root, queue, lane) {
|
||||
if (0 !== (lane & 4194240)) {
|
||||
if (0 !== (lane & 8388480)) {
|
||||
var queueLanes = queue.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -8164,10 +8166,10 @@ function markSuspenseBoundaryShouldCapture(
|
||||
1 === sourceFiber.tag &&
|
||||
(null === sourceFiber.alternate
|
||||
? (sourceFiber.tag = 17)
|
||||
: ((returnFiber = createUpdate(-1, 1)),
|
||||
: ((returnFiber = createUpdate(-1, 2)),
|
||||
(returnFiber.tag = 2),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 1))),
|
||||
(sourceFiber.lanes |= 1)),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 2))),
|
||||
(sourceFiber.lanes |= 2)),
|
||||
suspenseBoundary
|
||||
);
|
||||
suspenseBoundary.flags |= 65536;
|
||||
@@ -8877,9 +8879,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)
|
||||
return (
|
||||
0 === (workInProgress.mode & 1)
|
||||
? (workInProgress.lanes = 1)
|
||||
? (workInProgress.lanes = 2)
|
||||
: "$!" === current.data
|
||||
? (workInProgress.lanes = 8)
|
||||
? (workInProgress.lanes = 16)
|
||||
: (workInProgress.lanes = 1073741824),
|
||||
null
|
||||
);
|
||||
@@ -8931,7 +8933,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
(workInProgress.lanes = 8388608),
|
||||
current
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
@@ -9196,13 +9198,15 @@ function updateDehydratedSuspenseComponent(
|
||||
nextProps = workInProgressRoot;
|
||||
if (null !== nextProps) {
|
||||
switch (renderLanes & -renderLanes) {
|
||||
case 4:
|
||||
suspenseInstance = 2;
|
||||
case 2:
|
||||
suspenseInstance = 1;
|
||||
break;
|
||||
case 16:
|
||||
suspenseInstance = 8;
|
||||
case 8:
|
||||
suspenseInstance = 4;
|
||||
break;
|
||||
case 32:
|
||||
suspenseInstance = 16;
|
||||
break;
|
||||
case 64:
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -9223,7 +9227,7 @@ function updateDehydratedSuspenseComponent(
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
suspenseInstance = 32;
|
||||
suspenseInstance = 64;
|
||||
break;
|
||||
case 536870912:
|
||||
suspenseInstance = 268435456;
|
||||
@@ -10552,7 +10556,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
}
|
||||
else {
|
||||
if (!newProps)
|
||||
@@ -10581,7 +10585,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
type.isBackwards
|
||||
? ((JSCompiler_inline_result.sibling = workInProgress.child),
|
||||
(workInProgress.child = JSCompiler_inline_result))
|
||||
@@ -11959,20 +11963,20 @@ function detachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 === (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility |= 2),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachOffscreenInstance(instance) {
|
||||
var fiber = instance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 !== (instance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((instance._pendingVisibility &= -3),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
function attachSuspenseRetryListeners(finishedWork, wakeables) {
|
||||
@@ -13381,7 +13385,7 @@ function requestEventTime() {
|
||||
: (currentEventTime = now());
|
||||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (
|
||||
!deferRenderPhaseUpdateToNextBatch &&
|
||||
0 !== (executionContext & 2) &&
|
||||
@@ -13397,7 +13401,7 @@ function requestUpdateLane(fiber) {
|
||||
fiber = currentUpdatePriority;
|
||||
if (0 !== fiber) return fiber;
|
||||
fiber = window.event;
|
||||
fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type);
|
||||
fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type);
|
||||
return fiber;
|
||||
}
|
||||
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
@@ -13446,7 +13450,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes);
|
||||
}
|
||||
ensureRootIsScheduled(root, eventTime);
|
||||
1 === lane &&
|
||||
2 === lane &&
|
||||
0 === executionContext &&
|
||||
0 === (fiber.mode & 1) &&
|
||||
(resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks());
|
||||
@@ -13468,7 +13472,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
root.callbackPriority !== currentTime)
|
||||
) {
|
||||
null != existingCallbackNode && cancelCallback(existingCallbackNode);
|
||||
if (1 === currentTime)
|
||||
if (0 !== (currentTime & 3))
|
||||
0 === root.tag
|
||||
? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root))
|
||||
: scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)),
|
||||
@@ -13478,13 +13482,13 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
(existingCallbackNode = null);
|
||||
else {
|
||||
switch (lanesToEventPriority(nextLanes)) {
|
||||
case 1:
|
||||
case 2:
|
||||
existingCallbackNode = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
existingCallbackNode = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
existingCallbackNode = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -13588,7 +13592,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
case 3:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if (
|
||||
(lanes & 130023424) === lanes &&
|
||||
(lanes & 125829120) === lanes &&
|
||||
((didTimeout = globalMostRecentFallbackTime + 500 - now()),
|
||||
10 < didTimeout)
|
||||
) {
|
||||
@@ -13619,7 +13623,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
break;
|
||||
case 4:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if ((lanes & 4194240) === lanes) break;
|
||||
if ((lanes & 8388480) === lanes) break;
|
||||
didTimeout = root.eventTimes;
|
||||
for (originallyAttemptedLanes = -1; 0 < lanes; )
|
||||
(errorRetryLanes$237 = 31 - clz32(lanes)),
|
||||
@@ -13763,7 +13767,7 @@ function performSyncWorkOnRoot(root) {
|
||||
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, 0);
|
||||
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
||||
if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null;
|
||||
var exitStatus = renderRootSync(root, lanes);
|
||||
if (0 !== root.tag && 2 === exitStatus) {
|
||||
var originallyAttemptedLanes = lanes,
|
||||
@@ -13823,7 +13827,7 @@ function flushSync(fn) {
|
||||
try {
|
||||
if (
|
||||
((ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn)
|
||||
)
|
||||
return fn();
|
||||
@@ -13916,7 +13920,7 @@ function handleThrow(root, thrownValue) {
|
||||
}
|
||||
function shouldAttemptToSuspendUntilDataResolves() {
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes
|
||||
)
|
||||
return !0;
|
||||
@@ -13926,7 +13930,7 @@ function shouldAttemptToSuspendUntilDataResolves() {
|
||||
)
|
||||
return !1;
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 4194240) ===
|
||||
(workInProgressRootRenderLanes & 8388480) ===
|
||||
workInProgressRootRenderLanes
|
||||
) {
|
||||
var suspenseHandler = suspenseHandlerStackCursor.current;
|
||||
@@ -14391,7 +14395,7 @@ function commitRoot(root, recoverableErrors, transitions) {
|
||||
prevTransition = ReactCurrentBatchConfig$3.transition;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -14448,7 +14452,7 @@ function commitRootImpl(
|
||||
transitions = ReactCurrentBatchConfig$3.transition;
|
||||
ReactCurrentBatchConfig$3.transition = null;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority = 1;
|
||||
currentUpdatePriority = 2;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
ReactCurrentOwner$2.current = null;
|
||||
@@ -14513,11 +14517,11 @@ function commitRootImpl(
|
||||
(root = firstUncaughtError),
|
||||
(firstUncaughtError = null),
|
||||
root);
|
||||
0 !== (pendingPassiveEffectsLanes & 1) &&
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
remainingLanes = root.pendingLanes;
|
||||
0 !== (remainingLanes & 1)
|
||||
0 !== (remainingLanes & 3)
|
||||
? ((nestedUpdateScheduled = !0),
|
||||
root === rootWithNestedUpdates
|
||||
? nestedUpdateCount++
|
||||
@@ -14556,7 +14560,7 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
|
||||
renderPriority = 16 > renderPriority ? 16 : renderPriority;
|
||||
renderPriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
var prevTransition = ReactCurrentBatchConfig$3.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
@@ -14638,11 +14642,11 @@ function flushPassiveEffectsImpl() {
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== rootFiber &&
|
||||
(markRootUpdated(rootFiber, 1, sourceFiber),
|
||||
(markRootUpdated(rootFiber, 2, sourceFiber),
|
||||
ensureRootIsScheduled(rootFiber, sourceFiber));
|
||||
}
|
||||
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
@@ -14676,16 +14680,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
sourceFiber = createClassErrorUpdate(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
nearestMountedAncestor = enqueueUpdate$1(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== nearestMountedAncestor &&
|
||||
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
||||
(markRootUpdated(nearestMountedAncestor, 2, sourceFiber),
|
||||
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
||||
break;
|
||||
}
|
||||
@@ -14719,7 +14723,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
(workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
|
||||
(4 === workInProgressRootExitStatus ||
|
||||
(3 === workInProgressRootExitStatus &&
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes &&
|
||||
500 > now() - globalMostRecentFallbackTime)
|
||||
? prepareFreshStack(root, 0)
|
||||
@@ -14729,10 +14733,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
||||
0 === retryLane &&
|
||||
(0 === (boundaryFiber.mode & 1)
|
||||
? (retryLane = 1)
|
||||
? (retryLane = 2)
|
||||
: ((retryLane = nextRetryLane),
|
||||
(nextRetryLane <<= 1),
|
||||
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
||||
0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608)));
|
||||
var eventTime = requestEventTime();
|
||||
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
||||
null !== boundaryFiber &&
|
||||
@@ -15805,7 +15809,7 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
if (root$249.current.memoizedState.isDehydrated) {
|
||||
var lanes = getHighestPriorityLanes(root$249.pendingLanes);
|
||||
0 !== lanes &&
|
||||
(markRootEntangled(root$249, lanes | 1),
|
||||
(markRootEntangled(root$249, lanes | 2),
|
||||
ensureRootIsScheduled(root$249, now()),
|
||||
0 === (executionContext & 6) &&
|
||||
(resetRenderTimer(), flushSyncCallbacks()));
|
||||
@@ -15813,23 +15817,23 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
break;
|
||||
case 13:
|
||||
flushSync(function() {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
}),
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptDiscreteHydration = function(fiber) {
|
||||
if (13 === fiber.tag) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptContinuousHydration = function(fiber) {
|
||||
@@ -15899,7 +15903,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1812 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-7efa9e597-20221215",
|
||||
version: "18.3.0-www-modern-fabef7a6b-20221215",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
(function(internals) {
|
||||
@@ -15944,7 +15948,7 @@ var devToolsConfig$jscomp$inline_1812 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-next-7efa9e597-20221215"
|
||||
reconcilerVersion: "18.3.0-next-fabef7a6b-20221215"
|
||||
});
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
|
||||
exports.createPortal = function(children, container) {
|
||||
@@ -16109,7 +16113,7 @@ exports.unstable_flushControlled = function(fn) {
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn();
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -16119,7 +16123,7 @@ exports.unstable_flushControlled = function(fn) {
|
||||
}
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-next-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-next-fabef7a6b-20221215";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
@@ -19,7 +19,7 @@ if (__DEV__) {
|
||||
var React = require("react");
|
||||
var ReactDOM = require("react-dom");
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-classic-fabef7a6b-20221215";
|
||||
|
||||
// This refers to a WWW module.
|
||||
var warningWWW = require("warning");
|
||||
|
||||
@@ -19,7 +19,7 @@ if (__DEV__) {
|
||||
var React = require("react");
|
||||
var ReactDOM = require("react-dom");
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-modern-fabef7a6b-20221215";
|
||||
|
||||
// This refers to a WWW module.
|
||||
var warningWWW = require("warning");
|
||||
|
||||
@@ -3633,4 +3633,4 @@ exports.renderToString = function(children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-www-classic-fabef7a6b-20221215";
|
||||
|
||||
@@ -3546,4 +3546,4 @@ exports.renderToString = function(children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-www-modern-fabef7a6b-20221215";
|
||||
|
||||
@@ -7651,91 +7651,91 @@ var NoLanes =
|
||||
var NoLane =
|
||||
/* */
|
||||
0;
|
||||
var SyncHydrationLane =
|
||||
/* */
|
||||
1;
|
||||
var SyncLane =
|
||||
/* */
|
||||
1;
|
||||
2;
|
||||
var InputContinuousHydrationLane =
|
||||
/* */
|
||||
2;
|
||||
4;
|
||||
var InputContinuousLane =
|
||||
/* */
|
||||
4;
|
||||
8;
|
||||
var DefaultHydrationLane =
|
||||
/* */
|
||||
8;
|
||||
16;
|
||||
var DefaultLane =
|
||||
/* */
|
||||
16;
|
||||
32;
|
||||
var TransitionHydrationLane =
|
||||
/* */
|
||||
32;
|
||||
64;
|
||||
var TransitionLanes =
|
||||
/* */
|
||||
4194240;
|
||||
8388480;
|
||||
var TransitionLane1 =
|
||||
/* */
|
||||
64;
|
||||
128;
|
||||
var TransitionLane2 =
|
||||
/* */
|
||||
128;
|
||||
256;
|
||||
var TransitionLane3 =
|
||||
/* */
|
||||
256;
|
||||
512;
|
||||
var TransitionLane4 =
|
||||
/* */
|
||||
512;
|
||||
1024;
|
||||
var TransitionLane5 =
|
||||
/* */
|
||||
1024;
|
||||
2048;
|
||||
var TransitionLane6 =
|
||||
/* */
|
||||
2048;
|
||||
4096;
|
||||
var TransitionLane7 =
|
||||
/* */
|
||||
4096;
|
||||
8192;
|
||||
var TransitionLane8 =
|
||||
/* */
|
||||
8192;
|
||||
16384;
|
||||
var TransitionLane9 =
|
||||
/* */
|
||||
16384;
|
||||
32768;
|
||||
var TransitionLane10 =
|
||||
/* */
|
||||
32768;
|
||||
65536;
|
||||
var TransitionLane11 =
|
||||
/* */
|
||||
65536;
|
||||
131072;
|
||||
var TransitionLane12 =
|
||||
/* */
|
||||
131072;
|
||||
262144;
|
||||
var TransitionLane13 =
|
||||
/* */
|
||||
262144;
|
||||
524288;
|
||||
var TransitionLane14 =
|
||||
/* */
|
||||
524288;
|
||||
1048576;
|
||||
var TransitionLane15 =
|
||||
/* */
|
||||
1048576;
|
||||
2097152;
|
||||
var TransitionLane16 =
|
||||
/* */
|
||||
2097152;
|
||||
4194304;
|
||||
var RetryLanes =
|
||||
/* */
|
||||
130023424;
|
||||
125829120;
|
||||
var RetryLane1 =
|
||||
/* */
|
||||
4194304;
|
||||
8388608;
|
||||
var RetryLane2 =
|
||||
/* */
|
||||
8388608;
|
||||
16777216;
|
||||
var RetryLane3 =
|
||||
/* */
|
||||
16777216;
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
33554432;
|
||||
var RetryLane5 =
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
67108864;
|
||||
var SomeRetryLane = RetryLane1;
|
||||
@@ -7760,6 +7760,9 @@ var nextRetryLane = RetryLane1;
|
||||
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (getHighestPriorityLane(lanes)) {
|
||||
case SyncHydrationLane:
|
||||
return SyncHydrationLane;
|
||||
|
||||
case SyncLane:
|
||||
return SyncLane;
|
||||
|
||||
@@ -7800,7 +7803,6 @@ function getHighestPriorityLanes(lanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
return lanes & RetryLanes;
|
||||
|
||||
case SelectiveHydrationLane:
|
||||
@@ -7961,6 +7963,7 @@ function getMostRecentEventTime(root, lanes) {
|
||||
|
||||
function computeExpirationTime(lane, currentTime) {
|
||||
switch (lane) {
|
||||
case SyncHydrationLane:
|
||||
case SyncLane:
|
||||
case InputContinuousHydrationLane:
|
||||
case InputContinuousLane:
|
||||
@@ -8000,7 +8003,6 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
// TODO: Retries should be allowed to expire if they are CPU bound for
|
||||
// too long, but when I made this change it caused a spike in browser
|
||||
// crashes. There must be some other underlying bug; not super urgent but
|
||||
@@ -8088,6 +8090,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
|
||||
return NoLanes;
|
||||
}
|
||||
function includesSyncLane(lanes) {
|
||||
return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes;
|
||||
}
|
||||
function includesNonIdleWork(lanes) {
|
||||
return (lanes & NonIdleLanes) !== NoLanes;
|
||||
}
|
||||
@@ -8095,6 +8100,8 @@ function includesOnlyRetries(lanes) {
|
||||
return (lanes & RetryLanes) === lanes;
|
||||
}
|
||||
function includesOnlyNonUrgentLanes(lanes) {
|
||||
// TODO: Should hydration lanes be included here? This function is only
|
||||
// used in `updateDeferredValueImpl`.
|
||||
var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
|
||||
return (lanes & UrgentLanes) === NoLanes;
|
||||
}
|
||||
@@ -8336,6 +8343,10 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
var lane;
|
||||
|
||||
switch (renderLane) {
|
||||
case SyncLane:
|
||||
lane = SyncHydrationLane;
|
||||
break;
|
||||
|
||||
case InputContinuousLane:
|
||||
lane = InputContinuousHydrationLane;
|
||||
break;
|
||||
@@ -8364,7 +8375,6 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
lane = TransitionHydrationLane;
|
||||
break;
|
||||
|
||||
@@ -27517,7 +27527,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
// TODO: Temporary until we confirm this warning is not fired.
|
||||
if (
|
||||
existingCallbackNode == null &&
|
||||
existingCallbackPriority !== SyncLane
|
||||
!includesSyncLane(existingCallbackPriority)
|
||||
) {
|
||||
error(
|
||||
"Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."
|
||||
@@ -27535,7 +27545,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
|
||||
var newCallbackNode;
|
||||
|
||||
if (newCallbackPriority === SyncLane) {
|
||||
if (includesSyncLane(newCallbackPriority)) {
|
||||
// Special case: Sync React callbacks are scheduled on a special
|
||||
// internal queue
|
||||
if (root.tag === LegacyRoot) {
|
||||
@@ -28085,7 +28095,7 @@ function performSyncWorkOnRoot(root) {
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, NoLanes);
|
||||
|
||||
if (!includesSomeLane(lanes, SyncLane)) {
|
||||
if (!includesSyncLane(lanes)) {
|
||||
// There's no remaining sync work left.
|
||||
ensureRootIsScheduled(root, now());
|
||||
return null;
|
||||
@@ -29259,16 +29269,13 @@ function commitRootImpl(
|
||||
// currently schedule the callback in multiple places, will wait until those
|
||||
// are consolidated.
|
||||
|
||||
if (
|
||||
includesSomeLane(pendingPassiveEffectsLanes, SyncLane) &&
|
||||
root.tag !== LegacyRoot
|
||||
) {
|
||||
if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) {
|
||||
flushPassiveEffects();
|
||||
} // Read this again, since a passive effect might have updated it
|
||||
|
||||
remainingLanes = root.pendingLanes;
|
||||
|
||||
if (includesSomeLane(remainingLanes, SyncLane)) {
|
||||
if (includesSyncLane(remainingLanes)) {
|
||||
// finishing. If there are too many, it indicates an infinite update loop.
|
||||
|
||||
if (root === rootWithNestedUpdates) {
|
||||
@@ -31160,7 +31167,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-classic-fabef7a6b-20221215";
|
||||
|
||||
function createPortal(
|
||||
children,
|
||||
|
||||
@@ -5774,91 +5774,91 @@ var NoLanes =
|
||||
var NoLane =
|
||||
/* */
|
||||
0;
|
||||
var SyncHydrationLane =
|
||||
/* */
|
||||
1;
|
||||
var SyncLane =
|
||||
/* */
|
||||
1;
|
||||
2;
|
||||
var InputContinuousHydrationLane =
|
||||
/* */
|
||||
2;
|
||||
4;
|
||||
var InputContinuousLane =
|
||||
/* */
|
||||
4;
|
||||
8;
|
||||
var DefaultHydrationLane =
|
||||
/* */
|
||||
8;
|
||||
16;
|
||||
var DefaultLane =
|
||||
/* */
|
||||
16;
|
||||
32;
|
||||
var TransitionHydrationLane =
|
||||
/* */
|
||||
32;
|
||||
64;
|
||||
var TransitionLanes =
|
||||
/* */
|
||||
4194240;
|
||||
8388480;
|
||||
var TransitionLane1 =
|
||||
/* */
|
||||
64;
|
||||
128;
|
||||
var TransitionLane2 =
|
||||
/* */
|
||||
128;
|
||||
256;
|
||||
var TransitionLane3 =
|
||||
/* */
|
||||
256;
|
||||
512;
|
||||
var TransitionLane4 =
|
||||
/* */
|
||||
512;
|
||||
1024;
|
||||
var TransitionLane5 =
|
||||
/* */
|
||||
1024;
|
||||
2048;
|
||||
var TransitionLane6 =
|
||||
/* */
|
||||
2048;
|
||||
4096;
|
||||
var TransitionLane7 =
|
||||
/* */
|
||||
4096;
|
||||
8192;
|
||||
var TransitionLane8 =
|
||||
/* */
|
||||
8192;
|
||||
16384;
|
||||
var TransitionLane9 =
|
||||
/* */
|
||||
16384;
|
||||
32768;
|
||||
var TransitionLane10 =
|
||||
/* */
|
||||
32768;
|
||||
65536;
|
||||
var TransitionLane11 =
|
||||
/* */
|
||||
65536;
|
||||
131072;
|
||||
var TransitionLane12 =
|
||||
/* */
|
||||
131072;
|
||||
262144;
|
||||
var TransitionLane13 =
|
||||
/* */
|
||||
262144;
|
||||
524288;
|
||||
var TransitionLane14 =
|
||||
/* */
|
||||
524288;
|
||||
1048576;
|
||||
var TransitionLane15 =
|
||||
/* */
|
||||
1048576;
|
||||
2097152;
|
||||
var TransitionLane16 =
|
||||
/* */
|
||||
2097152;
|
||||
4194304;
|
||||
var RetryLanes =
|
||||
/* */
|
||||
130023424;
|
||||
125829120;
|
||||
var RetryLane1 =
|
||||
/* */
|
||||
4194304;
|
||||
8388608;
|
||||
var RetryLane2 =
|
||||
/* */
|
||||
8388608;
|
||||
16777216;
|
||||
var RetryLane3 =
|
||||
/* */
|
||||
16777216;
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
33554432;
|
||||
var RetryLane5 =
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
67108864;
|
||||
var SomeRetryLane = RetryLane1;
|
||||
@@ -5883,6 +5883,9 @@ var nextRetryLane = RetryLane1;
|
||||
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (getHighestPriorityLane(lanes)) {
|
||||
case SyncHydrationLane:
|
||||
return SyncHydrationLane;
|
||||
|
||||
case SyncLane:
|
||||
return SyncLane;
|
||||
|
||||
@@ -5923,7 +5926,6 @@ function getHighestPriorityLanes(lanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
return lanes & RetryLanes;
|
||||
|
||||
case SelectiveHydrationLane:
|
||||
@@ -6084,6 +6086,7 @@ function getMostRecentEventTime(root, lanes) {
|
||||
|
||||
function computeExpirationTime(lane, currentTime) {
|
||||
switch (lane) {
|
||||
case SyncHydrationLane:
|
||||
case SyncLane:
|
||||
case InputContinuousHydrationLane:
|
||||
case InputContinuousLane:
|
||||
@@ -6123,7 +6126,6 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
// TODO: Retries should be allowed to expire if they are CPU bound for
|
||||
// too long, but when I made this change it caused a spike in browser
|
||||
// crashes. There must be some other underlying bug; not super urgent but
|
||||
@@ -6211,6 +6213,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
|
||||
return NoLanes;
|
||||
}
|
||||
function includesSyncLane(lanes) {
|
||||
return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes;
|
||||
}
|
||||
function includesNonIdleWork(lanes) {
|
||||
return (lanes & NonIdleLanes) !== NoLanes;
|
||||
}
|
||||
@@ -6218,6 +6223,8 @@ function includesOnlyRetries(lanes) {
|
||||
return (lanes & RetryLanes) === lanes;
|
||||
}
|
||||
function includesOnlyNonUrgentLanes(lanes) {
|
||||
// TODO: Should hydration lanes be included here? This function is only
|
||||
// used in `updateDeferredValueImpl`.
|
||||
var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
|
||||
return (lanes & UrgentLanes) === NoLanes;
|
||||
}
|
||||
@@ -6459,6 +6466,10 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
var lane;
|
||||
|
||||
switch (renderLane) {
|
||||
case SyncLane:
|
||||
lane = SyncHydrationLane;
|
||||
break;
|
||||
|
||||
case InputContinuousLane:
|
||||
lane = InputContinuousHydrationLane;
|
||||
break;
|
||||
@@ -6487,7 +6498,6 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
lane = TransitionHydrationLane;
|
||||
break;
|
||||
|
||||
@@ -34805,7 +34815,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
// TODO: Temporary until we confirm this warning is not fired.
|
||||
if (
|
||||
existingCallbackNode == null &&
|
||||
existingCallbackPriority !== SyncLane
|
||||
!includesSyncLane(existingCallbackPriority)
|
||||
) {
|
||||
error(
|
||||
"Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."
|
||||
@@ -34823,7 +34833,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
|
||||
var newCallbackNode;
|
||||
|
||||
if (newCallbackPriority === SyncLane) {
|
||||
if (includesSyncLane(newCallbackPriority)) {
|
||||
// Special case: Sync React callbacks are scheduled on a special
|
||||
// internal queue
|
||||
if (root.tag === LegacyRoot) {
|
||||
@@ -35373,7 +35383,7 @@ function performSyncWorkOnRoot(root) {
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, NoLanes);
|
||||
|
||||
if (!includesSomeLane(lanes, SyncLane)) {
|
||||
if (!includesSyncLane(lanes)) {
|
||||
// There's no remaining sync work left.
|
||||
ensureRootIsScheduled(root, now());
|
||||
return null;
|
||||
@@ -36547,16 +36557,13 @@ function commitRootImpl(
|
||||
// currently schedule the callback in multiple places, will wait until those
|
||||
// are consolidated.
|
||||
|
||||
if (
|
||||
includesSomeLane(pendingPassiveEffectsLanes, SyncLane) &&
|
||||
root.tag !== LegacyRoot
|
||||
) {
|
||||
if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) {
|
||||
flushPassiveEffects();
|
||||
} // Read this again, since a passive effect might have updated it
|
||||
|
||||
remainingLanes = root.pendingLanes;
|
||||
|
||||
if (includesSomeLane(remainingLanes, SyncLane)) {
|
||||
if (includesSyncLane(remainingLanes)) {
|
||||
// finishing. If there are too many, it indicates an infinite update loop.
|
||||
|
||||
if (root === rootWithNestedUpdates) {
|
||||
@@ -38448,7 +38455,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-modern-fabef7a6b-20221215";
|
||||
|
||||
function createPortal(
|
||||
children,
|
||||
|
||||
@@ -1606,8 +1606,8 @@ function clz32Fallback(x) {
|
||||
x >>>= 0;
|
||||
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
||||
}
|
||||
var nextTransitionLane = 64,
|
||||
nextRetryLane = 4194304;
|
||||
var nextTransitionLane = 128,
|
||||
nextRetryLane = 8388608;
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (lanes & -lanes) {
|
||||
case 1:
|
||||
@@ -1623,6 +1623,7 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 32:
|
||||
return 32;
|
||||
case 64:
|
||||
return 64;
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -1638,13 +1639,13 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return lanes & 4194240;
|
||||
case 4194304:
|
||||
return lanes & 8388480;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
return lanes & 130023424;
|
||||
return lanes & 125829120;
|
||||
case 134217728:
|
||||
return 134217728;
|
||||
case 268435456:
|
||||
@@ -1685,12 +1686,12 @@ function getNextLanes(root, wipLanes) {
|
||||
((suspendedLanes = nextLanes & -nextLanes),
|
||||
(pingedLanes = wipLanes & -wipLanes),
|
||||
suspendedLanes >= pingedLanes ||
|
||||
(16 === suspendedLanes && 0 !== (pingedLanes & 4194240)))
|
||||
(32 === suspendedLanes && 0 !== (pingedLanes & 8388480)))
|
||||
)
|
||||
return wipLanes;
|
||||
0 === (root.current.mode & 32) &&
|
||||
0 !== (nextLanes & 4) &&
|
||||
(nextLanes |= pendingLanes & 16);
|
||||
0 !== (nextLanes & 8) &&
|
||||
(nextLanes |= pendingLanes & 32);
|
||||
wipLanes = root.entangledLanes;
|
||||
if (0 !== wipLanes)
|
||||
for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; )
|
||||
@@ -1705,8 +1706,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return currentTime + 250;
|
||||
case 8:
|
||||
return currentTime + 250;
|
||||
case 16:
|
||||
case 32:
|
||||
case 64:
|
||||
@@ -1725,8 +1726,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return currentTime + 5e3;
|
||||
case 4194304:
|
||||
return currentTime + 5e3;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
@@ -1746,7 +1747,7 @@ function markStarvedLanesAsExpired(root, currentTime) {
|
||||
var suspendedLanes = root.suspendedLanes,
|
||||
pingedLanes = root.pingedLanes,
|
||||
expirationTimes = root.expirationTimes,
|
||||
lanes = root.pendingLanes & -130023425;
|
||||
lanes = root.pendingLanes & -125829121;
|
||||
0 < lanes;
|
||||
|
||||
) {
|
||||
@@ -1766,12 +1767,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
||||
}
|
||||
function includesBlockingLane(root, lanes) {
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60);
|
||||
}
|
||||
function claimNextTransitionLane() {
|
||||
var lane = nextTransitionLane;
|
||||
nextTransitionLane <<= 1;
|
||||
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
||||
0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128);
|
||||
return lane;
|
||||
}
|
||||
function createLaneMap(initial) {
|
||||
@@ -1838,13 +1839,13 @@ function runWithPriority(priority, fn) {
|
||||
}
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 1 < lanes
|
||||
? 4 < lanes
|
||||
return 2 < lanes
|
||||
? 8 < lanes
|
||||
? 0 !== (lanes & 268435455)
|
||||
? 16
|
||||
? 32
|
||||
: 536870912
|
||||
: 4
|
||||
: 1;
|
||||
: 8
|
||||
: 2;
|
||||
}
|
||||
var Internals = {
|
||||
usingClientEntryPoint: !1,
|
||||
@@ -1964,7 +1965,7 @@ function flushSyncCallbacks() {
|
||||
previousUpdatePriority = currentUpdatePriority;
|
||||
try {
|
||||
var queue = syncQueue;
|
||||
for (currentUpdatePriority = 1; i < queue.length; i++) {
|
||||
for (currentUpdatePriority = 2; i < queue.length; i++) {
|
||||
var callback = queue[i];
|
||||
do callback = callback(!0);
|
||||
while (null !== callback);
|
||||
@@ -2494,7 +2495,7 @@ function enqueueUpdate$1(fiber, update, lane) {
|
||||
}
|
||||
function entangleTransitions(root, fiber, lane) {
|
||||
fiber = fiber.updateQueue;
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) {
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) {
|
||||
var queueLanes = fiber.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -3949,8 +3950,8 @@ function checkIfSnapshotChanged(inst) {
|
||||
}
|
||||
}
|
||||
function forceStoreRerender(fiber) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1);
|
||||
}
|
||||
function mountState(initialState) {
|
||||
var hook = mountWorkInProgressHook();
|
||||
@@ -4079,7 +4080,7 @@ function updateMemo(nextCreate, deps) {
|
||||
return nextCreate;
|
||||
}
|
||||
function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
if (0 === (renderLanes & 21))
|
||||
if (0 === (renderLanes & 42))
|
||||
return (
|
||||
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
||||
(hook.memoizedState = value)
|
||||
@@ -4094,7 +4095,7 @@ function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
function startTransition(setPending, callback) {
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority =
|
||||
0 !== previousPriority && 4 > previousPriority ? previousPriority : 4;
|
||||
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
||||
setPending(!0);
|
||||
var prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = {};
|
||||
@@ -4208,7 +4209,7 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
||||
queue.pending = update;
|
||||
}
|
||||
function entangleTransitionUpdate(root, queue, lane) {
|
||||
if (0 !== (lane & 4194240)) {
|
||||
if (0 !== (lane & 8388480)) {
|
||||
var queueLanes = queue.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -4709,10 +4710,10 @@ function markSuspenseBoundaryShouldCapture(
|
||||
1 === sourceFiber.tag &&
|
||||
(null === sourceFiber.alternate
|
||||
? (sourceFiber.tag = 17)
|
||||
: ((returnFiber = createUpdate(-1, 1)),
|
||||
: ((returnFiber = createUpdate(-1, 2)),
|
||||
(returnFiber.tag = 2),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 1))),
|
||||
(sourceFiber.lanes |= 1)),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 2))),
|
||||
(sourceFiber.lanes |= 2)),
|
||||
suspenseBoundary
|
||||
);
|
||||
suspenseBoundary.flags |= 65536;
|
||||
@@ -5285,9 +5286,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)
|
||||
return (
|
||||
0 === (workInProgress.mode & 1)
|
||||
? (workInProgress.lanes = 1)
|
||||
? (workInProgress.lanes = 2)
|
||||
: "$!" === current.data
|
||||
? (workInProgress.lanes = 8)
|
||||
? (workInProgress.lanes = 16)
|
||||
: (workInProgress.lanes = 1073741824),
|
||||
null
|
||||
);
|
||||
@@ -5323,7 +5324,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
(workInProgress.lanes = 8388608),
|
||||
current
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
@@ -5552,13 +5553,15 @@ function updateDehydratedSuspenseComponent(
|
||||
nextProps = workInProgressRoot;
|
||||
if (null !== nextProps) {
|
||||
switch (renderLanes & -renderLanes) {
|
||||
case 4:
|
||||
suspenseInstance = 2;
|
||||
case 2:
|
||||
suspenseInstance = 1;
|
||||
break;
|
||||
case 16:
|
||||
suspenseInstance = 8;
|
||||
case 8:
|
||||
suspenseInstance = 4;
|
||||
break;
|
||||
case 32:
|
||||
suspenseInstance = 16;
|
||||
break;
|
||||
case 64:
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -5579,7 +5582,7 @@ function updateDehydratedSuspenseComponent(
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
suspenseInstance = 32;
|
||||
suspenseInstance = 64;
|
||||
break;
|
||||
case 536870912:
|
||||
suspenseInstance = 268435456;
|
||||
@@ -6667,7 +6670,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
}
|
||||
else {
|
||||
if (!newProps)
|
||||
@@ -6696,7 +6699,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
type.isBackwards
|
||||
? ((JSCompiler_inline_result.sibling = workInProgress.child),
|
||||
(workInProgress.child = JSCompiler_inline_result))
|
||||
@@ -8924,7 +8927,7 @@ function requestEventTime() {
|
||||
: (currentEventTime = now());
|
||||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
|
||||
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
||||
if (null !== ReactCurrentBatchConfig$1.transition)
|
||||
@@ -8936,7 +8939,7 @@ function requestUpdateLane(fiber) {
|
||||
fiber = currentUpdatePriority;
|
||||
if (0 !== fiber) return fiber;
|
||||
fiber = window.event;
|
||||
fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type);
|
||||
fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type);
|
||||
return fiber;
|
||||
}
|
||||
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
@@ -8952,7 +8955,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
4 === workInProgressRootExitStatus &&
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
||||
ensureRootIsScheduled(root, eventTime),
|
||||
1 === lane &&
|
||||
2 === lane &&
|
||||
0 === executionContext &&
|
||||
0 === (fiber.mode & 1) &&
|
||||
(resetRenderTimer(),
|
||||
@@ -8974,7 +8977,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
root.callbackPriority !== currentTime)
|
||||
) {
|
||||
null != existingCallbackNode && cancelCallback(existingCallbackNode);
|
||||
if (1 === currentTime)
|
||||
if (0 !== (currentTime & 3))
|
||||
0 === root.tag
|
||||
? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root))
|
||||
: scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)),
|
||||
@@ -8984,13 +8987,13 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
(existingCallbackNode = null);
|
||||
else {
|
||||
switch (lanesToEventPriority(nextLanes)) {
|
||||
case 1:
|
||||
case 2:
|
||||
existingCallbackNode = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
existingCallbackNode = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
existingCallbackNode = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -9093,7 +9096,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
case 3:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if (
|
||||
(lanes & 130023424) === lanes &&
|
||||
(lanes & 125829120) === lanes &&
|
||||
((didTimeout = globalMostRecentFallbackTime + 500 - now()),
|
||||
10 < didTimeout)
|
||||
) {
|
||||
@@ -9124,7 +9127,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
break;
|
||||
case 4:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if ((lanes & 4194240) === lanes) break;
|
||||
if ((lanes & 8388480) === lanes) break;
|
||||
didTimeout = root.eventTimes;
|
||||
for (originallyAttemptedLanes = -1; 0 < lanes; )
|
||||
(errorRetryLanes$149 = 31 - clz32(lanes)),
|
||||
@@ -9266,7 +9269,7 @@ function performSyncWorkOnRoot(root) {
|
||||
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, 0);
|
||||
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
||||
if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null;
|
||||
var exitStatus = renderRootSync(root, lanes);
|
||||
if (0 !== root.tag && 2 === exitStatus) {
|
||||
var originallyAttemptedLanes = lanes,
|
||||
@@ -9326,7 +9329,7 @@ function flushSync(fn) {
|
||||
try {
|
||||
if (
|
||||
((ReactCurrentBatchConfig$2.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn)
|
||||
)
|
||||
return fn();
|
||||
@@ -9398,7 +9401,7 @@ function handleThrow(root, thrownValue) {
|
||||
}
|
||||
function shouldAttemptToSuspendUntilDataResolves() {
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes
|
||||
)
|
||||
return !0;
|
||||
@@ -9408,7 +9411,7 @@ function shouldAttemptToSuspendUntilDataResolves() {
|
||||
)
|
||||
return !1;
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 4194240) ===
|
||||
(workInProgressRootRenderLanes & 8388480) ===
|
||||
workInProgressRootRenderLanes
|
||||
) {
|
||||
var suspenseHandler = suspenseHandlerStackCursor.current;
|
||||
@@ -9806,7 +9809,7 @@ function commitRoot(root, recoverableErrors, transitions) {
|
||||
prevTransition = ReactCurrentBatchConfig$2.transition;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$2.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -9857,7 +9860,7 @@ function commitRootImpl(
|
||||
transitions = ReactCurrentBatchConfig$2.transition;
|
||||
ReactCurrentBatchConfig$2.transition = null;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority = 1;
|
||||
currentUpdatePriority = 2;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
ReactCurrentOwner$2.current = null;
|
||||
@@ -9906,11 +9909,11 @@ function commitRootImpl(
|
||||
(root = firstUncaughtError),
|
||||
(firstUncaughtError = null),
|
||||
root);
|
||||
0 !== (pendingPassiveEffectsLanes & 1) &&
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
remainingLanes = root.pendingLanes;
|
||||
0 !== (remainingLanes & 1)
|
||||
0 !== (remainingLanes & 3)
|
||||
? root === rootWithNestedUpdates
|
||||
? nestedUpdateCount++
|
||||
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
||||
@@ -9930,7 +9933,7 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
||||
priority = 16 > renderPriority ? 16 : renderPriority;
|
||||
priority = 32 > renderPriority ? 32 : renderPriority;
|
||||
renderPriority = ReactCurrentBatchConfig$2.transition;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
@@ -9973,11 +9976,11 @@ function flushPassiveEffects() {
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== rootFiber &&
|
||||
(markRootUpdated(rootFiber, 1, sourceFiber),
|
||||
(markRootUpdated(rootFiber, 2, sourceFiber),
|
||||
ensureRootIsScheduled(rootFiber, sourceFiber));
|
||||
}
|
||||
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
@@ -10005,16 +10008,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
sourceFiber = createClassErrorUpdate(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
nearestMountedAncestor = enqueueUpdate$1(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== nearestMountedAncestor &&
|
||||
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
||||
(markRootUpdated(nearestMountedAncestor, 2, sourceFiber),
|
||||
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
||||
break;
|
||||
}
|
||||
@@ -10047,7 +10050,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
(workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
|
||||
(4 === workInProgressRootExitStatus ||
|
||||
(3 === workInProgressRootExitStatus &&
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes &&
|
||||
500 > now() - globalMostRecentFallbackTime)
|
||||
? prepareFreshStack(root, 0)
|
||||
@@ -10057,10 +10060,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
||||
0 === retryLane &&
|
||||
(0 === (boundaryFiber.mode & 1)
|
||||
? (retryLane = 1)
|
||||
? (retryLane = 2)
|
||||
: ((retryLane = nextRetryLane),
|
||||
(nextRetryLane <<= 1),
|
||||
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
||||
0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608)));
|
||||
var eventTime = requestEventTime();
|
||||
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
||||
null !== boundaryFiber &&
|
||||
@@ -10814,20 +10817,20 @@ function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
|
||||
var fiber = primaryChildInstance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 === (primaryChildInstance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((primaryChildInstance._pendingVisibility |= 2),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
},
|
||||
attach: function() {
|
||||
var fiber = primaryChildInstance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 !== (primaryChildInstance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((primaryChildInstance._pendingVisibility &= -3),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -11277,7 +11280,7 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
if (root$160.current.memoizedState.isDehydrated) {
|
||||
var lanes = getHighestPriorityLanes(root$160.pendingLanes);
|
||||
0 !== lanes &&
|
||||
(markRootEntangled(root$160, lanes | 1),
|
||||
(markRootEntangled(root$160, lanes | 2),
|
||||
ensureRootIsScheduled(root$160, now()),
|
||||
0 === (executionContext & 6) &&
|
||||
(resetRenderTimer(), flushSyncCallbacks()));
|
||||
@@ -11285,13 +11288,13 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
break;
|
||||
case 13:
|
||||
flushSync(function() {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
}),
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptContinuousHydration$1 = function(fiber) {
|
||||
@@ -11361,7 +11364,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1538 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-7efa9e597-20221215",
|
||||
version: "18.3.0-www-classic-fabef7a6b-20221215",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2070 = {
|
||||
@@ -11391,7 +11394,7 @@ var internals$jscomp$inline_2070 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-next-7efa9e597-20221215"
|
||||
reconcilerVersion: "18.3.0-next-fabef7a6b-20221215"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2071 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -14276,10 +14279,10 @@ function createEventListenerWrapperWithPriority(
|
||||
eventSystemFlags
|
||||
) {
|
||||
switch (getEventPriority(domEventName)) {
|
||||
case 1:
|
||||
case 2:
|
||||
var listenerWrapper = dispatchDiscreteEvent;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
listenerWrapper = dispatchContinuousEvent;
|
||||
break;
|
||||
default:
|
||||
@@ -14302,7 +14305,7 @@ function dispatchDiscreteEvent(
|
||||
prevTransition = ReactCurrentBatchConfig$3.transition;
|
||||
ReactCurrentBatchConfig$3.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -14319,7 +14322,7 @@ function dispatchContinuousEvent(
|
||||
prevTransition = ReactCurrentBatchConfig$3.transition;
|
||||
ReactCurrentBatchConfig$3.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 4),
|
||||
(currentUpdatePriority = 8),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -14479,7 +14482,7 @@ function getEventPriority(domEventName) {
|
||||
case "popstate":
|
||||
case "select":
|
||||
case "selectstart":
|
||||
return 1;
|
||||
return 2;
|
||||
case "drag":
|
||||
case "dragenter":
|
||||
case "dragexit":
|
||||
@@ -14499,23 +14502,23 @@ function getEventPriority(domEventName) {
|
||||
case "mouseleave":
|
||||
case "pointerenter":
|
||||
case "pointerleave":
|
||||
return 4;
|
||||
return 8;
|
||||
case "message":
|
||||
switch (getCurrentPriorityLevel()) {
|
||||
case ImmediatePriority:
|
||||
return 1;
|
||||
return 2;
|
||||
case UserBlockingPriority:
|
||||
return 4;
|
||||
return 8;
|
||||
case NormalPriority:
|
||||
case LowPriority:
|
||||
return 16;
|
||||
return 32;
|
||||
case IdlePriority:
|
||||
return 536870912;
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
}
|
||||
assign(Internals, {
|
||||
@@ -14852,7 +14855,7 @@ exports.unstable_flushControlled = function(fn) {
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$2.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn();
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -14880,4 +14883,4 @@ exports.unstable_renderSubtreeIntoContainer = function(
|
||||
);
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-next-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-next-fabef7a6b-20221215";
|
||||
|
||||
@@ -1347,8 +1347,8 @@ function clz32Fallback(x) {
|
||||
x >>>= 0;
|
||||
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
||||
}
|
||||
var nextTransitionLane = 64,
|
||||
nextRetryLane = 4194304;
|
||||
var nextTransitionLane = 128,
|
||||
nextRetryLane = 8388608;
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (lanes & -lanes) {
|
||||
case 1:
|
||||
@@ -1364,6 +1364,7 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 32:
|
||||
return 32;
|
||||
case 64:
|
||||
return 64;
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -1379,13 +1380,13 @@ function getHighestPriorityLanes(lanes) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return lanes & 4194240;
|
||||
case 4194304:
|
||||
return lanes & 8388480;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
return lanes & 130023424;
|
||||
return lanes & 125829120;
|
||||
case 134217728:
|
||||
return 134217728;
|
||||
case 268435456:
|
||||
@@ -1426,12 +1427,12 @@ function getNextLanes(root, wipLanes) {
|
||||
((suspendedLanes = nextLanes & -nextLanes),
|
||||
(pingedLanes = wipLanes & -wipLanes),
|
||||
suspendedLanes >= pingedLanes ||
|
||||
(16 === suspendedLanes && 0 !== (pingedLanes & 4194240)))
|
||||
(32 === suspendedLanes && 0 !== (pingedLanes & 8388480)))
|
||||
)
|
||||
return wipLanes;
|
||||
0 === (root.current.mode & 32) &&
|
||||
0 !== (nextLanes & 4) &&
|
||||
(nextLanes |= pendingLanes & 16);
|
||||
0 !== (nextLanes & 8) &&
|
||||
(nextLanes |= pendingLanes & 32);
|
||||
wipLanes = root.entangledLanes;
|
||||
if (0 !== wipLanes)
|
||||
for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; )
|
||||
@@ -1446,8 +1447,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return currentTime + 250;
|
||||
case 8:
|
||||
return currentTime + 250;
|
||||
case 16:
|
||||
case 32:
|
||||
case 64:
|
||||
@@ -1466,8 +1467,8 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case 524288:
|
||||
case 1048576:
|
||||
case 2097152:
|
||||
return currentTime + 5e3;
|
||||
case 4194304:
|
||||
return currentTime + 5e3;
|
||||
case 8388608:
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
@@ -1487,7 +1488,7 @@ function markStarvedLanesAsExpired(root, currentTime) {
|
||||
var suspendedLanes = root.suspendedLanes,
|
||||
pingedLanes = root.pingedLanes,
|
||||
expirationTimes = root.expirationTimes,
|
||||
lanes = root.pendingLanes & -130023425;
|
||||
lanes = root.pendingLanes & -125829121;
|
||||
0 < lanes;
|
||||
|
||||
) {
|
||||
@@ -1507,12 +1508,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
||||
}
|
||||
function includesBlockingLane(root, lanes) {
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
||||
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60);
|
||||
}
|
||||
function claimNextTransitionLane() {
|
||||
var lane = nextTransitionLane;
|
||||
nextTransitionLane <<= 1;
|
||||
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
||||
0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128);
|
||||
return lane;
|
||||
}
|
||||
function createLaneMap(initial) {
|
||||
@@ -1579,13 +1580,13 @@ function runWithPriority(priority, fn) {
|
||||
}
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 1 < lanes
|
||||
? 4 < lanes
|
||||
return 2 < lanes
|
||||
? 8 < lanes
|
||||
? 0 !== (lanes & 268435455)
|
||||
? 16
|
||||
? 32
|
||||
: 536870912
|
||||
: 4
|
||||
: 1;
|
||||
: 8
|
||||
: 2;
|
||||
}
|
||||
var _attemptSynchronousHydration,
|
||||
attemptContinuousHydration,
|
||||
@@ -1867,7 +1868,7 @@ function dispatchDiscreteEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -1884,7 +1885,7 @@ function dispatchContinuousEvent(
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
try {
|
||||
(currentUpdatePriority = 4),
|
||||
(currentUpdatePriority = 8),
|
||||
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -2044,7 +2045,7 @@ function getEventPriority(domEventName) {
|
||||
case "popstate":
|
||||
case "select":
|
||||
case "selectstart":
|
||||
return 1;
|
||||
return 2;
|
||||
case "drag":
|
||||
case "dragenter":
|
||||
case "dragexit":
|
||||
@@ -2064,23 +2065,23 @@ function getEventPriority(domEventName) {
|
||||
case "mouseleave":
|
||||
case "pointerenter":
|
||||
case "pointerleave":
|
||||
return 4;
|
||||
return 8;
|
||||
case "message":
|
||||
switch (getCurrentPriorityLevel()) {
|
||||
case ImmediatePriority:
|
||||
return 1;
|
||||
return 2;
|
||||
case UserBlockingPriority:
|
||||
return 4;
|
||||
return 8;
|
||||
case NormalPriority:
|
||||
case LowPriority:
|
||||
return 16;
|
||||
return 32;
|
||||
case IdlePriority:
|
||||
return 536870912;
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
default:
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
}
|
||||
var root = null,
|
||||
@@ -3051,10 +3052,10 @@ function addTrappedEventListener(
|
||||
isCapturePhaseListener
|
||||
) {
|
||||
switch (getEventPriority(domEventName)) {
|
||||
case 1:
|
||||
case 2:
|
||||
var listenerWrapper = dispatchDiscreteEvent;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
listenerWrapper = dispatchContinuousEvent;
|
||||
break;
|
||||
default:
|
||||
@@ -5032,7 +5033,7 @@ function flushSyncCallbacks() {
|
||||
previousUpdatePriority = currentUpdatePriority;
|
||||
try {
|
||||
var queue = syncQueue;
|
||||
for (currentUpdatePriority = 1; i < queue.length; i++) {
|
||||
for (currentUpdatePriority = 2; i < queue.length; i++) {
|
||||
var callback = queue[i];
|
||||
do callback = callback(!0);
|
||||
while (null !== callback);
|
||||
@@ -5522,7 +5523,7 @@ function enqueueUpdate$1(fiber, update, lane) {
|
||||
}
|
||||
function entangleTransitions(root, fiber, lane) {
|
||||
fiber = fiber.updateQueue;
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) {
|
||||
if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) {
|
||||
var queueLanes = fiber.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -6955,8 +6956,8 @@ function checkIfSnapshotChanged(inst) {
|
||||
}
|
||||
}
|
||||
function forceStoreRerender(fiber) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1);
|
||||
}
|
||||
function mountState(initialState) {
|
||||
var hook = mountWorkInProgressHook();
|
||||
@@ -7085,7 +7086,7 @@ function updateMemo(nextCreate, deps) {
|
||||
return nextCreate;
|
||||
}
|
||||
function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
if (0 === (renderLanes & 21))
|
||||
if (0 === (renderLanes & 42))
|
||||
return (
|
||||
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
||||
(hook.memoizedState = value)
|
||||
@@ -7100,7 +7101,7 @@ function updateDeferredValueImpl(hook, prevValue, value) {
|
||||
function startTransition(setPending, callback) {
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority =
|
||||
0 !== previousPriority && 4 > previousPriority ? previousPriority : 4;
|
||||
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
||||
setPending(!0);
|
||||
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
||||
ReactCurrentBatchConfig$1.transition = {};
|
||||
@@ -7214,7 +7215,7 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
||||
queue.pending = update;
|
||||
}
|
||||
function entangleTransitionUpdate(root, queue, lane) {
|
||||
if (0 !== (lane & 4194240)) {
|
||||
if (0 !== (lane & 8388480)) {
|
||||
var queueLanes = queue.lanes;
|
||||
queueLanes &= root.pendingLanes;
|
||||
lane |= queueLanes;
|
||||
@@ -7701,10 +7702,10 @@ function markSuspenseBoundaryShouldCapture(
|
||||
1 === sourceFiber.tag &&
|
||||
(null === sourceFiber.alternate
|
||||
? (sourceFiber.tag = 17)
|
||||
: ((returnFiber = createUpdate(-1, 1)),
|
||||
: ((returnFiber = createUpdate(-1, 2)),
|
||||
(returnFiber.tag = 2),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 1))),
|
||||
(sourceFiber.lanes |= 1)),
|
||||
enqueueUpdate$1(sourceFiber, returnFiber, 2))),
|
||||
(sourceFiber.lanes |= 2)),
|
||||
suspenseBoundary
|
||||
);
|
||||
suspenseBoundary.flags |= 65536;
|
||||
@@ -8241,9 +8242,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)
|
||||
return (
|
||||
0 === (workInProgress.mode & 1)
|
||||
? (workInProgress.lanes = 1)
|
||||
? (workInProgress.lanes = 2)
|
||||
: "$!" === current.data
|
||||
? (workInProgress.lanes = 8)
|
||||
? (workInProgress.lanes = 16)
|
||||
: (workInProgress.lanes = 1073741824),
|
||||
null
|
||||
);
|
||||
@@ -8279,7 +8280,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
(workInProgress.lanes = 8388608),
|
||||
current
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
@@ -8508,13 +8509,15 @@ function updateDehydratedSuspenseComponent(
|
||||
nextProps = workInProgressRoot;
|
||||
if (null !== nextProps) {
|
||||
switch (renderLanes & -renderLanes) {
|
||||
case 4:
|
||||
suspenseInstance = 2;
|
||||
case 2:
|
||||
suspenseInstance = 1;
|
||||
break;
|
||||
case 16:
|
||||
suspenseInstance = 8;
|
||||
case 8:
|
||||
suspenseInstance = 4;
|
||||
break;
|
||||
case 32:
|
||||
suspenseInstance = 16;
|
||||
break;
|
||||
case 64:
|
||||
case 128:
|
||||
case 256:
|
||||
case 512:
|
||||
@@ -8535,7 +8538,7 @@ function updateDehydratedSuspenseComponent(
|
||||
case 16777216:
|
||||
case 33554432:
|
||||
case 67108864:
|
||||
suspenseInstance = 32;
|
||||
suspenseInstance = 64;
|
||||
break;
|
||||
case 536870912:
|
||||
suspenseInstance = 268435456;
|
||||
@@ -9609,7 +9612,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
}
|
||||
else {
|
||||
if (!newProps)
|
||||
@@ -9638,7 +9641,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
||||
((workInProgress.flags |= 128),
|
||||
(newProps = !0),
|
||||
cutOffTailIfNeeded(type, !1),
|
||||
(workInProgress.lanes = 4194304));
|
||||
(workInProgress.lanes = 8388608));
|
||||
type.isBackwards
|
||||
? ((JSCompiler_inline_result.sibling = workInProgress.child),
|
||||
(workInProgress.child = JSCompiler_inline_result))
|
||||
@@ -11818,7 +11821,7 @@ function requestEventTime() {
|
||||
: (currentEventTime = now());
|
||||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
|
||||
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
||||
if (null !== ReactCurrentBatchConfig$2.transition)
|
||||
@@ -11830,7 +11833,7 @@ function requestUpdateLane(fiber) {
|
||||
fiber = currentUpdatePriority;
|
||||
if (0 !== fiber) return fiber;
|
||||
fiber = window.event;
|
||||
fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type);
|
||||
fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type);
|
||||
return fiber;
|
||||
}
|
||||
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
@@ -11846,7 +11849,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
||||
4 === workInProgressRootExitStatus &&
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
||||
ensureRootIsScheduled(root, eventTime),
|
||||
1 === lane &&
|
||||
2 === lane &&
|
||||
0 === executionContext &&
|
||||
0 === (fiber.mode & 1) &&
|
||||
(resetRenderTimer(),
|
||||
@@ -11868,7 +11871,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
root.callbackPriority !== currentTime)
|
||||
) {
|
||||
null != existingCallbackNode && cancelCallback(existingCallbackNode);
|
||||
if (1 === currentTime)
|
||||
if (0 !== (currentTime & 3))
|
||||
0 === root.tag
|
||||
? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root))
|
||||
: scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)),
|
||||
@@ -11878,13 +11881,13 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
(existingCallbackNode = null);
|
||||
else {
|
||||
switch (lanesToEventPriority(nextLanes)) {
|
||||
case 1:
|
||||
case 2:
|
||||
existingCallbackNode = ImmediatePriority;
|
||||
break;
|
||||
case 4:
|
||||
case 8:
|
||||
existingCallbackNode = UserBlockingPriority;
|
||||
break;
|
||||
case 16:
|
||||
case 32:
|
||||
existingCallbackNode = NormalPriority;
|
||||
break;
|
||||
case 536870912:
|
||||
@@ -11987,7 +11990,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
case 3:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if (
|
||||
(lanes & 130023424) === lanes &&
|
||||
(lanes & 125829120) === lanes &&
|
||||
((didTimeout = globalMostRecentFallbackTime + 500 - now()),
|
||||
10 < didTimeout)
|
||||
) {
|
||||
@@ -12018,7 +12021,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
||||
break;
|
||||
case 4:
|
||||
markRootSuspended$1(root, lanes);
|
||||
if ((lanes & 4194240) === lanes) break;
|
||||
if ((lanes & 8388480) === lanes) break;
|
||||
didTimeout = root.eventTimes;
|
||||
for (originallyAttemptedLanes = -1; 0 < lanes; )
|
||||
(errorRetryLanes$195 = 31 - clz32(lanes)),
|
||||
@@ -12160,7 +12163,7 @@ function performSyncWorkOnRoot(root) {
|
||||
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, 0);
|
||||
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
||||
if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null;
|
||||
var exitStatus = renderRootSync(root, lanes);
|
||||
if (0 !== root.tag && 2 === exitStatus) {
|
||||
var originallyAttemptedLanes = lanes,
|
||||
@@ -12220,7 +12223,7 @@ function flushSync(fn) {
|
||||
try {
|
||||
if (
|
||||
((ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn)
|
||||
)
|
||||
return fn();
|
||||
@@ -12292,7 +12295,7 @@ function handleThrow(root, thrownValue) {
|
||||
}
|
||||
function shouldAttemptToSuspendUntilDataResolves() {
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes
|
||||
)
|
||||
return !0;
|
||||
@@ -12302,7 +12305,7 @@ function shouldAttemptToSuspendUntilDataResolves() {
|
||||
)
|
||||
return !1;
|
||||
if (
|
||||
(workInProgressRootRenderLanes & 4194240) ===
|
||||
(workInProgressRootRenderLanes & 8388480) ===
|
||||
workInProgressRootRenderLanes
|
||||
) {
|
||||
var suspenseHandler = suspenseHandlerStackCursor.current;
|
||||
@@ -12700,7 +12703,7 @@ function commitRoot(root, recoverableErrors, transitions) {
|
||||
prevTransition = ReactCurrentBatchConfig$3.transition;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -12751,7 +12754,7 @@ function commitRootImpl(
|
||||
transitions = ReactCurrentBatchConfig$3.transition;
|
||||
ReactCurrentBatchConfig$3.transition = null;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
currentUpdatePriority = 1;
|
||||
currentUpdatePriority = 2;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
ReactCurrentOwner$2.current = null;
|
||||
@@ -12800,11 +12803,11 @@ function commitRootImpl(
|
||||
(root = firstUncaughtError),
|
||||
(firstUncaughtError = null),
|
||||
root);
|
||||
0 !== (pendingPassiveEffectsLanes & 1) &&
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
remainingLanes = root.pendingLanes;
|
||||
0 !== (remainingLanes & 1)
|
||||
0 !== (remainingLanes & 3)
|
||||
? root === rootWithNestedUpdates
|
||||
? nestedUpdateCount++
|
||||
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
||||
@@ -12824,7 +12827,7 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
||||
priority = 16 > renderPriority ? 16 : renderPriority;
|
||||
priority = 32 > renderPriority ? 32 : renderPriority;
|
||||
renderPriority = ReactCurrentBatchConfig$3.transition;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
@@ -12867,11 +12870,11 @@ function flushPassiveEffects() {
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2);
|
||||
rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== rootFiber &&
|
||||
(markRootUpdated(rootFiber, 1, sourceFiber),
|
||||
(markRootUpdated(rootFiber, 2, sourceFiber),
|
||||
ensureRootIsScheduled(rootFiber, sourceFiber));
|
||||
}
|
||||
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
@@ -12899,16 +12902,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
||||
sourceFiber = createClassErrorUpdate(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
nearestMountedAncestor = enqueueUpdate$1(
|
||||
nearestMountedAncestor,
|
||||
sourceFiber,
|
||||
1
|
||||
2
|
||||
);
|
||||
sourceFiber = requestEventTime();
|
||||
null !== nearestMountedAncestor &&
|
||||
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
||||
(markRootUpdated(nearestMountedAncestor, 2, sourceFiber),
|
||||
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
||||
break;
|
||||
}
|
||||
@@ -12941,7 +12944,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
(workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
|
||||
(4 === workInProgressRootExitStatus ||
|
||||
(3 === workInProgressRootExitStatus &&
|
||||
(workInProgressRootRenderLanes & 130023424) ===
|
||||
(workInProgressRootRenderLanes & 125829120) ===
|
||||
workInProgressRootRenderLanes &&
|
||||
500 > now() - globalMostRecentFallbackTime)
|
||||
? prepareFreshStack(root, 0)
|
||||
@@ -12951,10 +12954,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
||||
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
||||
0 === retryLane &&
|
||||
(0 === (boundaryFiber.mode & 1)
|
||||
? (retryLane = 1)
|
||||
? (retryLane = 2)
|
||||
: ((retryLane = nextRetryLane),
|
||||
(nextRetryLane <<= 1),
|
||||
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
||||
0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608)));
|
||||
var eventTime = requestEventTime();
|
||||
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
||||
null !== boundaryFiber &&
|
||||
@@ -13683,20 +13686,20 @@ function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
|
||||
var fiber = primaryChildInstance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 === (primaryChildInstance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((primaryChildInstance._pendingVisibility |= 2),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
},
|
||||
attach: function() {
|
||||
var fiber = primaryChildInstance._current;
|
||||
if (null === fiber) throw Error(formatProdErrorMessage(456));
|
||||
if (0 !== (primaryChildInstance._pendingVisibility & 2)) {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
null !== root &&
|
||||
((primaryChildInstance._pendingVisibility &= -3),
|
||||
scheduleUpdateOnFiber(root, fiber, 1, -1));
|
||||
scheduleUpdateOnFiber(root, fiber, 2, -1));
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -13909,7 +13912,7 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
if (root$206.current.memoizedState.isDehydrated) {
|
||||
var lanes = getHighestPriorityLanes(root$206.pendingLanes);
|
||||
0 !== lanes &&
|
||||
(markRootEntangled(root$206, lanes | 1),
|
||||
(markRootEntangled(root$206, lanes | 2),
|
||||
ensureRootIsScheduled(root$206, now()),
|
||||
0 === (executionContext & 6) &&
|
||||
(resetRenderTimer(), flushSyncCallbacks()));
|
||||
@@ -13917,13 +13920,13 @@ _attemptSynchronousHydration = function(fiber) {
|
||||
break;
|
||||
case 13:
|
||||
flushSync(function() {
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 1);
|
||||
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
||||
if (null !== root) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(root, fiber, 1, eventTime);
|
||||
scheduleUpdateOnFiber(root, fiber, 2, eventTime);
|
||||
}
|
||||
}),
|
||||
markRetryLaneIfNotHydrated(fiber, 1);
|
||||
markRetryLaneIfNotHydrated(fiber, 2);
|
||||
}
|
||||
};
|
||||
attemptContinuousHydration = function(fiber) {
|
||||
@@ -13993,7 +13996,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1693 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-7efa9e597-20221215",
|
||||
version: "18.3.0-www-modern-fabef7a6b-20221215",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2095 = {
|
||||
@@ -14024,7 +14027,7 @@ var internals$jscomp$inline_2095 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-next-7efa9e597-20221215"
|
||||
reconcilerVersion: "18.3.0-next-fabef7a6b-20221215"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2096 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -14337,7 +14340,7 @@ exports.unstable_flushControlled = function(fn) {
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig$3.transition = null),
|
||||
(currentUpdatePriority = 1),
|
||||
(currentUpdatePriority = 2),
|
||||
fn();
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
@@ -14347,4 +14350,4 @@ exports.unstable_flushControlled = function(fn) {
|
||||
}
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-next-7efa9e597-20221215";
|
||||
exports.version = "18.3.0-next-fabef7a6b-20221215";
|
||||
|
||||
@@ -1158,91 +1158,91 @@ var NoLanes =
|
||||
var NoLane =
|
||||
/* */
|
||||
0;
|
||||
var SyncHydrationLane =
|
||||
/* */
|
||||
1;
|
||||
var SyncLane =
|
||||
/* */
|
||||
1;
|
||||
2;
|
||||
var InputContinuousHydrationLane =
|
||||
/* */
|
||||
2;
|
||||
4;
|
||||
var InputContinuousLane =
|
||||
/* */
|
||||
4;
|
||||
8;
|
||||
var DefaultHydrationLane =
|
||||
/* */
|
||||
8;
|
||||
16;
|
||||
var DefaultLane =
|
||||
/* */
|
||||
16;
|
||||
32;
|
||||
var TransitionHydrationLane =
|
||||
/* */
|
||||
32;
|
||||
64;
|
||||
var TransitionLanes =
|
||||
/* */
|
||||
4194240;
|
||||
8388480;
|
||||
var TransitionLane1 =
|
||||
/* */
|
||||
64;
|
||||
128;
|
||||
var TransitionLane2 =
|
||||
/* */
|
||||
128;
|
||||
256;
|
||||
var TransitionLane3 =
|
||||
/* */
|
||||
256;
|
||||
512;
|
||||
var TransitionLane4 =
|
||||
/* */
|
||||
512;
|
||||
1024;
|
||||
var TransitionLane5 =
|
||||
/* */
|
||||
1024;
|
||||
2048;
|
||||
var TransitionLane6 =
|
||||
/* */
|
||||
2048;
|
||||
4096;
|
||||
var TransitionLane7 =
|
||||
/* */
|
||||
4096;
|
||||
8192;
|
||||
var TransitionLane8 =
|
||||
/* */
|
||||
8192;
|
||||
16384;
|
||||
var TransitionLane9 =
|
||||
/* */
|
||||
16384;
|
||||
32768;
|
||||
var TransitionLane10 =
|
||||
/* */
|
||||
32768;
|
||||
65536;
|
||||
var TransitionLane11 =
|
||||
/* */
|
||||
65536;
|
||||
131072;
|
||||
var TransitionLane12 =
|
||||
/* */
|
||||
131072;
|
||||
262144;
|
||||
var TransitionLane13 =
|
||||
/* */
|
||||
262144;
|
||||
524288;
|
||||
var TransitionLane14 =
|
||||
/* */
|
||||
524288;
|
||||
1048576;
|
||||
var TransitionLane15 =
|
||||
/* */
|
||||
1048576;
|
||||
2097152;
|
||||
var TransitionLane16 =
|
||||
/* */
|
||||
2097152;
|
||||
4194304;
|
||||
var RetryLanes =
|
||||
/* */
|
||||
130023424;
|
||||
125829120;
|
||||
var RetryLane1 =
|
||||
/* */
|
||||
4194304;
|
||||
8388608;
|
||||
var RetryLane2 =
|
||||
/* */
|
||||
8388608;
|
||||
16777216;
|
||||
var RetryLane3 =
|
||||
/* */
|
||||
16777216;
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
33554432;
|
||||
var RetryLane5 =
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
67108864;
|
||||
var SomeRetryLane = RetryLane1;
|
||||
@@ -1267,6 +1267,9 @@ var nextRetryLane = RetryLane1;
|
||||
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (getHighestPriorityLane(lanes)) {
|
||||
case SyncHydrationLane:
|
||||
return SyncHydrationLane;
|
||||
|
||||
case SyncLane:
|
||||
return SyncLane;
|
||||
|
||||
@@ -1307,7 +1310,6 @@ function getHighestPriorityLanes(lanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
return lanes & RetryLanes;
|
||||
|
||||
case SelectiveHydrationLane:
|
||||
@@ -1468,6 +1470,7 @@ function getMostRecentEventTime(root, lanes) {
|
||||
|
||||
function computeExpirationTime(lane, currentTime) {
|
||||
switch (lane) {
|
||||
case SyncHydrationLane:
|
||||
case SyncLane:
|
||||
case InputContinuousHydrationLane:
|
||||
case InputContinuousLane:
|
||||
@@ -1507,7 +1510,6 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
// TODO: Retries should be allowed to expire if they are CPU bound for
|
||||
// too long, but when I made this change it caused a spike in browser
|
||||
// crashes. There must be some other underlying bug; not super urgent but
|
||||
@@ -1590,6 +1592,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
|
||||
return NoLanes;
|
||||
}
|
||||
function includesSyncLane(lanes) {
|
||||
return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes;
|
||||
}
|
||||
function includesNonIdleWork(lanes) {
|
||||
return (lanes & NonIdleLanes) !== NoLanes;
|
||||
}
|
||||
@@ -1597,6 +1602,8 @@ function includesOnlyRetries(lanes) {
|
||||
return (lanes & RetryLanes) === lanes;
|
||||
}
|
||||
function includesOnlyNonUrgentLanes(lanes) {
|
||||
// TODO: Should hydration lanes be included here? This function is only
|
||||
// used in `updateDeferredValueImpl`.
|
||||
var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
|
||||
return (lanes & UrgentLanes) === NoLanes;
|
||||
}
|
||||
@@ -1834,6 +1841,10 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
var lane;
|
||||
|
||||
switch (renderLane) {
|
||||
case SyncLane:
|
||||
lane = SyncHydrationLane;
|
||||
break;
|
||||
|
||||
case InputContinuousLane:
|
||||
lane = InputContinuousHydrationLane;
|
||||
break;
|
||||
@@ -1862,7 +1873,6 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
lane = TransitionHydrationLane;
|
||||
break;
|
||||
|
||||
@@ -20160,7 +20170,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
// TODO: Temporary until we confirm this warning is not fired.
|
||||
if (
|
||||
existingCallbackNode == null &&
|
||||
existingCallbackPriority !== SyncLane
|
||||
!includesSyncLane(existingCallbackPriority)
|
||||
) {
|
||||
error(
|
||||
"Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."
|
||||
@@ -20178,7 +20188,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
|
||||
var newCallbackNode;
|
||||
|
||||
if (newCallbackPriority === SyncLane) {
|
||||
if (includesSyncLane(newCallbackPriority)) {
|
||||
// Special case: Sync React callbacks are scheduled on a special
|
||||
// internal queue
|
||||
if (root.tag === LegacyRoot) {
|
||||
@@ -20715,7 +20725,7 @@ function performSyncWorkOnRoot(root) {
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, NoLanes);
|
||||
|
||||
if (!includesSomeLane(lanes, SyncLane)) {
|
||||
if (!includesSyncLane(lanes)) {
|
||||
// There's no remaining sync work left.
|
||||
ensureRootIsScheduled(root, now());
|
||||
return null;
|
||||
@@ -21877,16 +21887,13 @@ function commitRootImpl(
|
||||
// currently schedule the callback in multiple places, will wait until those
|
||||
// are consolidated.
|
||||
|
||||
if (
|
||||
includesSomeLane(pendingPassiveEffectsLanes, SyncLane) &&
|
||||
root.tag !== LegacyRoot
|
||||
) {
|
||||
if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) {
|
||||
flushPassiveEffects();
|
||||
} // Read this again, since a passive effect might have updated it
|
||||
|
||||
remainingLanes = root.pendingLanes;
|
||||
|
||||
if (includesSomeLane(remainingLanes, SyncLane)) {
|
||||
if (includesSyncLane(remainingLanes)) {
|
||||
{
|
||||
markNestedUpdateScheduled();
|
||||
} // Count the number of times the root synchronously re-renders without
|
||||
@@ -23860,7 +23867,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-classic-fabef7a6b-20221215";
|
||||
|
||||
var didWarnAboutNestedUpdates;
|
||||
|
||||
|
||||
@@ -1158,91 +1158,91 @@ var NoLanes =
|
||||
var NoLane =
|
||||
/* */
|
||||
0;
|
||||
var SyncHydrationLane =
|
||||
/* */
|
||||
1;
|
||||
var SyncLane =
|
||||
/* */
|
||||
1;
|
||||
2;
|
||||
var InputContinuousHydrationLane =
|
||||
/* */
|
||||
2;
|
||||
4;
|
||||
var InputContinuousLane =
|
||||
/* */
|
||||
4;
|
||||
8;
|
||||
var DefaultHydrationLane =
|
||||
/* */
|
||||
8;
|
||||
16;
|
||||
var DefaultLane =
|
||||
/* */
|
||||
16;
|
||||
32;
|
||||
var TransitionHydrationLane =
|
||||
/* */
|
||||
32;
|
||||
64;
|
||||
var TransitionLanes =
|
||||
/* */
|
||||
4194240;
|
||||
8388480;
|
||||
var TransitionLane1 =
|
||||
/* */
|
||||
64;
|
||||
128;
|
||||
var TransitionLane2 =
|
||||
/* */
|
||||
128;
|
||||
256;
|
||||
var TransitionLane3 =
|
||||
/* */
|
||||
256;
|
||||
512;
|
||||
var TransitionLane4 =
|
||||
/* */
|
||||
512;
|
||||
1024;
|
||||
var TransitionLane5 =
|
||||
/* */
|
||||
1024;
|
||||
2048;
|
||||
var TransitionLane6 =
|
||||
/* */
|
||||
2048;
|
||||
4096;
|
||||
var TransitionLane7 =
|
||||
/* */
|
||||
4096;
|
||||
8192;
|
||||
var TransitionLane8 =
|
||||
/* */
|
||||
8192;
|
||||
16384;
|
||||
var TransitionLane9 =
|
||||
/* */
|
||||
16384;
|
||||
32768;
|
||||
var TransitionLane10 =
|
||||
/* */
|
||||
32768;
|
||||
65536;
|
||||
var TransitionLane11 =
|
||||
/* */
|
||||
65536;
|
||||
131072;
|
||||
var TransitionLane12 =
|
||||
/* */
|
||||
131072;
|
||||
262144;
|
||||
var TransitionLane13 =
|
||||
/* */
|
||||
262144;
|
||||
524288;
|
||||
var TransitionLane14 =
|
||||
/* */
|
||||
524288;
|
||||
1048576;
|
||||
var TransitionLane15 =
|
||||
/* */
|
||||
1048576;
|
||||
2097152;
|
||||
var TransitionLane16 =
|
||||
/* */
|
||||
2097152;
|
||||
4194304;
|
||||
var RetryLanes =
|
||||
/* */
|
||||
130023424;
|
||||
125829120;
|
||||
var RetryLane1 =
|
||||
/* */
|
||||
4194304;
|
||||
8388608;
|
||||
var RetryLane2 =
|
||||
/* */
|
||||
8388608;
|
||||
16777216;
|
||||
var RetryLane3 =
|
||||
/* */
|
||||
16777216;
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
33554432;
|
||||
var RetryLane5 =
|
||||
var RetryLane4 =
|
||||
/* */
|
||||
67108864;
|
||||
var SomeRetryLane = RetryLane1;
|
||||
@@ -1267,6 +1267,9 @@ var nextRetryLane = RetryLane1;
|
||||
|
||||
function getHighestPriorityLanes(lanes) {
|
||||
switch (getHighestPriorityLane(lanes)) {
|
||||
case SyncHydrationLane:
|
||||
return SyncHydrationLane;
|
||||
|
||||
case SyncLane:
|
||||
return SyncLane;
|
||||
|
||||
@@ -1307,7 +1310,6 @@ function getHighestPriorityLanes(lanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
return lanes & RetryLanes;
|
||||
|
||||
case SelectiveHydrationLane:
|
||||
@@ -1468,6 +1470,7 @@ function getMostRecentEventTime(root, lanes) {
|
||||
|
||||
function computeExpirationTime(lane, currentTime) {
|
||||
switch (lane) {
|
||||
case SyncHydrationLane:
|
||||
case SyncLane:
|
||||
case InputContinuousHydrationLane:
|
||||
case InputContinuousLane:
|
||||
@@ -1507,7 +1510,6 @@ function computeExpirationTime(lane, currentTime) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
// TODO: Retries should be allowed to expire if they are CPU bound for
|
||||
// too long, but when I made this change it caused a spike in browser
|
||||
// crashes. There must be some other underlying bug; not super urgent but
|
||||
@@ -1590,6 +1592,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {
|
||||
|
||||
return NoLanes;
|
||||
}
|
||||
function includesSyncLane(lanes) {
|
||||
return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes;
|
||||
}
|
||||
function includesNonIdleWork(lanes) {
|
||||
return (lanes & NonIdleLanes) !== NoLanes;
|
||||
}
|
||||
@@ -1597,6 +1602,8 @@ function includesOnlyRetries(lanes) {
|
||||
return (lanes & RetryLanes) === lanes;
|
||||
}
|
||||
function includesOnlyNonUrgentLanes(lanes) {
|
||||
// TODO: Should hydration lanes be included here? This function is only
|
||||
// used in `updateDeferredValueImpl`.
|
||||
var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
|
||||
return (lanes & UrgentLanes) === NoLanes;
|
||||
}
|
||||
@@ -1834,6 +1841,10 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
var lane;
|
||||
|
||||
switch (renderLane) {
|
||||
case SyncLane:
|
||||
lane = SyncHydrationLane;
|
||||
break;
|
||||
|
||||
case InputContinuousLane:
|
||||
lane = InputContinuousHydrationLane;
|
||||
break;
|
||||
@@ -1862,7 +1873,6 @@ function getBumpedLaneForHydration(root, renderLanes) {
|
||||
case RetryLane2:
|
||||
case RetryLane3:
|
||||
case RetryLane4:
|
||||
case RetryLane5:
|
||||
lane = TransitionHydrationLane;
|
||||
break;
|
||||
|
||||
@@ -20160,7 +20170,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
// TODO: Temporary until we confirm this warning is not fired.
|
||||
if (
|
||||
existingCallbackNode == null &&
|
||||
existingCallbackPriority !== SyncLane
|
||||
!includesSyncLane(existingCallbackPriority)
|
||||
) {
|
||||
error(
|
||||
"Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."
|
||||
@@ -20178,7 +20188,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
||||
|
||||
var newCallbackNode;
|
||||
|
||||
if (newCallbackPriority === SyncLane) {
|
||||
if (includesSyncLane(newCallbackPriority)) {
|
||||
// Special case: Sync React callbacks are scheduled on a special
|
||||
// internal queue
|
||||
if (root.tag === LegacyRoot) {
|
||||
@@ -20715,7 +20725,7 @@ function performSyncWorkOnRoot(root) {
|
||||
flushPassiveEffects();
|
||||
var lanes = getNextLanes(root, NoLanes);
|
||||
|
||||
if (!includesSomeLane(lanes, SyncLane)) {
|
||||
if (!includesSyncLane(lanes)) {
|
||||
// There's no remaining sync work left.
|
||||
ensureRootIsScheduled(root, now());
|
||||
return null;
|
||||
@@ -21877,16 +21887,13 @@ function commitRootImpl(
|
||||
// currently schedule the callback in multiple places, will wait until those
|
||||
// are consolidated.
|
||||
|
||||
if (
|
||||
includesSomeLane(pendingPassiveEffectsLanes, SyncLane) &&
|
||||
root.tag !== LegacyRoot
|
||||
) {
|
||||
if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) {
|
||||
flushPassiveEffects();
|
||||
} // Read this again, since a passive effect might have updated it
|
||||
|
||||
remainingLanes = root.pendingLanes;
|
||||
|
||||
if (includesSomeLane(remainingLanes, SyncLane)) {
|
||||
if (includesSyncLane(remainingLanes)) {
|
||||
{
|
||||
markNestedUpdateScheduled();
|
||||
} // Count the number of times the root synchronously re-renders without
|
||||
@@ -23860,7 +23867,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-7efa9e597-20221215";
|
||||
var ReactVersion = "18.3.0-www-modern-fabef7a6b-20221215";
|
||||
|
||||
var didWarnAboutNestedUpdates;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user