/** * @license React * react-dom-profiling.profiling.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* Modernizr 3.0.0pre (Custom Build) | MIT */ "use strict"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); var Scheduler = require("scheduler"), React = require("react"), ReactDOM = require("react-dom"); function formatProdErrorMessage(code) { var url = "https://react.dev/errors/" + code; if (1 < arguments.length) { url += "?args[]=" + encodeURIComponent(arguments[1]); for (var i = 2; i < arguments.length; i++) url += "&args[]=" + encodeURIComponent(arguments[i]); } return ( "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } function isValidContainer(node) { return !( !node || (1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType) ); } var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"); Symbol.for("react.scope"); Symbol.for("react.debug_trace_mode"); var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); Symbol.for("react.legacy_hidden"); Symbol.for("react.tracing_marker"); var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator; function getIteratorFn(maybeIterable) { if (null === maybeIterable || "object" !== typeof maybeIterable) return null; maybeIterable = (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || maybeIterable["@@iterator"]; return "function" === typeof maybeIterable ? maybeIterable : null; } var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); function getComponentNameFromType(type) { if (null == type) return null; if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; if ("string" === typeof type) return type; switch (type) { case REACT_FRAGMENT_TYPE: return "Fragment"; case REACT_PORTAL_TYPE: return "Portal"; case REACT_PROFILER_TYPE: return "Profiler"; case REACT_STRICT_MODE_TYPE: return "StrictMode"; case REACT_SUSPENSE_TYPE: return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; } if ("object" === typeof type) switch (type.$$typeof) { case REACT_CONTEXT_TYPE: return (type.displayName || "Context") + ".Provider"; case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer"; case REACT_FORWARD_REF_TYPE: var innerType = type.render; type = type.displayName; type || ((type = innerType.displayName || innerType.name || ""), (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); return type; case REACT_MEMO_TYPE: return ( (innerType = type.displayName || null), null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo" ); case REACT_LAZY_TYPE: innerType = type._payload; type = type._init; try { return getComponentNameFromType(type(innerType)); } catch (x) {} } return null; } var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, assign = Object.assign, prefix, suffix; function describeBuiltInComponentFrame(name) { if (void 0 === prefix) try { throw Error(); } catch (x) { var match = x.stack.trim().match(/\n( *(at )?)/); prefix = (match && match[1]) || ""; suffix = -1 < x.stack.indexOf("\n at") ? " ()" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : ""; } return "\n" + prefix + name + suffix; } var reentry = !1; function describeNativeComponentFrame(fn, construct) { if (!fn || reentry) return ""; reentry = !0; var previousPrepareStackTrace = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { var RunInRootFrame = { DetermineComponentFrameRoot: function () { try { if (construct) { var Fake = function () { throw Error(); }; Object.defineProperty(Fake.prototype, "props", { set: function () { throw Error(); } }); if ("object" === typeof Reflect && Reflect.construct) { try { Reflect.construct(Fake, []); } catch (x) { var control = x; } Reflect.construct(fn, [], Fake); } else { try { Fake.call(); } catch (x$0) { control = x$0; } fn.call(Fake.prototype); } } else { try { throw Error(); } catch (x$1) { control = x$1; } (Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function () {}); } } catch (sample) { if (sample && control && "string" === typeof sample.stack) return [sample.stack, control.stack]; } return [null, null]; } }; RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; var namePropDescriptor = Object.getOwnPropertyDescriptor( RunInRootFrame.DetermineComponentFrameRoot, "name" ); namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty( RunInRootFrame.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" } ); var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1]; if (sampleStack && controlStack) { var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n"); for ( namePropDescriptor = RunInRootFrame = 0; RunInRootFrame < sampleLines.length && !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); ) RunInRootFrame++; for ( ; namePropDescriptor < controlLines.length && !controlLines[namePropDescriptor].includes( "DetermineComponentFrameRoot" ); ) namePropDescriptor++; if ( RunInRootFrame === sampleLines.length || namePropDescriptor === controlLines.length ) for ( RunInRootFrame = sampleLines.length - 1, namePropDescriptor = controlLines.length - 1; 1 <= RunInRootFrame && 0 <= namePropDescriptor && sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; ) namePropDescriptor--; for ( ; 1 <= RunInRootFrame && 0 <= namePropDescriptor; RunInRootFrame--, namePropDescriptor-- ) if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { do if ( (RunInRootFrame--, namePropDescriptor--, 0 > namePropDescriptor || sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) ) { var frame = "\n" + sampleLines[RunInRootFrame].replace(" at new ", " at "); fn.displayName && frame.includes("") && (frame = frame.replace("", fn.displayName)); return frame; } while (1 <= RunInRootFrame && 0 <= namePropDescriptor); } break; } } } finally { (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); } return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(previousPrepareStackTrace) : ""; } function describeFiber(fiber) { switch (fiber.tag) { case 26: case 27: case 5: return describeBuiltInComponentFrame(fiber.type); case 16: return describeBuiltInComponentFrame("Lazy"); case 13: return describeBuiltInComponentFrame("Suspense"); case 19: return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; case 11: return ( (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber ); case 1: return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; default: return ""; } } function getStackByFiberInDevAndProd(workInProgress) { try { var info = ""; do (info += describeFiber(workInProgress)), (workInProgress = workInProgress.return); while (workInProgress); return info; } catch (x) { return "\nError generating stack: " + x.message + "\n" + x.stack; } } function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; if (fiber.alternate) for (; node.return; ) node = node.return; else { fiber = node; do (node = fiber), 0 !== (node.flags & 4098) && (nearestMounted = node.return), (fiber = node.return); while (fiber); } return 3 === node.tag ? nearestMounted : null; } function getSuspenseInstanceFromFiber(fiber) { if (13 === fiber.tag) { var suspenseState = fiber.memoizedState; null === suspenseState && ((fiber = fiber.alternate), null !== fiber && (suspenseState = fiber.memoizedState)); if (null !== suspenseState) return suspenseState.dehydrated; } return null; } function assertIsMounted(fiber) { if (getNearestMountedFiber(fiber) !== fiber) throw Error(formatProdErrorMessage(188)); } function findCurrentFiberUsingSlowPath(fiber) { var alternate = fiber.alternate; if (!alternate) { alternate = getNearestMountedFiber(fiber); if (null === alternate) throw Error(formatProdErrorMessage(188)); return alternate !== fiber ? null : fiber; } for (var a = fiber, b = alternate; ; ) { var parentA = a.return; if (null === parentA) break; var parentB = parentA.alternate; if (null === parentB) { b = parentA.return; if (null !== b) { a = b; continue; } break; } if (parentA.child === parentB.child) { for (parentB = parentA.child; parentB; ) { if (parentB === a) return assertIsMounted(parentA), fiber; if (parentB === b) return assertIsMounted(parentA), alternate; parentB = parentB.sibling; } throw Error(formatProdErrorMessage(188)); } if (a.return !== b.return) (a = parentA), (b = parentB); else { for (var didFindChild = !1, child$2 = parentA.child; child$2; ) { if (child$2 === a) { didFindChild = !0; a = parentA; b = parentB; break; } if (child$2 === b) { didFindChild = !0; b = parentA; a = parentB; break; } child$2 = child$2.sibling; } if (!didFindChild) { for (child$2 = parentB.child; child$2; ) { if (child$2 === a) { didFindChild = !0; a = parentB; b = parentA; break; } if (child$2 === b) { didFindChild = !0; b = parentB; a = parentA; break; } child$2 = child$2.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } } if (a.alternate !== b) throw Error(formatProdErrorMessage(190)); } if (3 !== a.tag) throw Error(formatProdErrorMessage(188)); return a.stateNode.current === a ? fiber : alternate; } function findCurrentHostFiberImpl(node) { var tag = node.tag; if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; for (node = node.child; null !== node; ) { tag = findCurrentHostFiberImpl(node); if (null !== tag) return tag; node = node.sibling; } return null; } var isArrayImpl = Array.isArray, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, sharedNotPendingObject = { pending: !1, data: null, method: null, action: null }, valueStack = [], index = -1; function createCursor(defaultValue) { return { current: defaultValue }; } function pop(cursor) { 0 > index || ((cursor.current = valueStack[index]), (valueStack[index] = null), index--); } function push(cursor, value) { index++; valueStack[index] = cursor.current; cursor.current = value; } var contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null); function pushHostContainer(fiber, nextRootInstance) { push(rootInstanceStackCursor, nextRootInstance); push(contextFiberStackCursor, fiber); push(contextStackCursor, null); fiber = nextRootInstance.nodeType; switch (fiber) { case 9: case 11: nextRootInstance = (nextRootInstance = nextRootInstance.documentElement) ? (nextRootInstance = nextRootInstance.namespaceURI) ? getOwnHostContext(nextRootInstance) : 0 : 0; break; default: if ( ((fiber = 8 === fiber ? nextRootInstance.parentNode : nextRootInstance), (nextRootInstance = fiber.tagName), (fiber = fiber.namespaceURI)) ) (fiber = getOwnHostContext(fiber)), (nextRootInstance = getChildHostContextProd(fiber, nextRootInstance)); else switch (nextRootInstance) { case "svg": nextRootInstance = 1; break; case "math": nextRootInstance = 2; break; default: nextRootInstance = 0; } } pop(contextStackCursor); push(contextStackCursor, nextRootInstance); } function popHostContainer() { pop(contextStackCursor); pop(contextFiberStackCursor); pop(rootInstanceStackCursor); } function pushHostContext(fiber) { null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber); var context = contextStackCursor.current; var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type); context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor, JSCompiler_inline_result)); } function popHostContext(fiber) { contextFiberStackCursor.current === fiber && (pop(contextStackCursor), pop(contextFiberStackCursor)); hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor), (HostTransitionContext._currentValue = sharedNotPendingObject)); } var hasOwnProperty = Object.prototype.hasOwnProperty, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now$1 = Scheduler.unstable_now, getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, NormalPriority$1 = Scheduler.unstable_NormalPriority, LowPriority = Scheduler.unstable_LowPriority, IdlePriority = Scheduler.unstable_IdlePriority, log$1 = Scheduler.log, unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue, rendererID = null, injectedHook = null, injectedProfilingHooks = null, isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__; function onCommitRoot(root, eventPriority) { if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { var didError = 128 === (root.current.flags & 128); switch (eventPriority) { case 2: var schedulerPriority = ImmediatePriority; break; case 8: schedulerPriority = UserBlockingPriority; break; case 32: schedulerPriority = NormalPriority$1; break; case 268435456: schedulerPriority = IdlePriority; break; default: schedulerPriority = NormalPriority$1; } injectedHook.onCommitFiberRoot( rendererID, root, schedulerPriority, didError ); } catch (err) {} } function setIsStrictModeForDevtools(newIsStrictMode) { "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { injectedHook.setStrictMode(rendererID, newIsStrictMode); } catch (err) {} } function markCommitStopped() { null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markCommitStopped && injectedProfilingHooks.markCommitStopped(); } function markComponentRenderStarted(fiber) { null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentRenderStarted && injectedProfilingHooks.markComponentRenderStarted(fiber); } function markComponentRenderStopped() { null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentRenderStopped && injectedProfilingHooks.markComponentRenderStopped(); } function markRenderStarted(lanes) { null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderStarted && injectedProfilingHooks.markRenderStarted(lanes); } function markRenderStopped() { null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderStopped && injectedProfilingHooks.markRenderStopped(); } function markStateUpdateScheduled(fiber, lane) { null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markStateUpdateScheduled && injectedProfilingHooks.markStateUpdateScheduled(fiber, lane); } var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log = Math.log, LN2 = Math.LN2; function clz32Fallback(x) { x >>>= 0; return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; } function getLabelForLane(lane) { 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 & 4194176) return "Transition"; if (lane & 62914560) return "Retry"; if (lane & 67108864) return "SelectiveHydration"; if (lane & 134217728) return "IdleHydration"; if (lane & 268435456) return "Idle"; if (lane & 536870912) return "Offscreen"; if (lane & 1073741824) return "Deferred"; } var nextTransitionLane = 128, nextRetryLane = 4194304; function getHighestPriorityLanes(lanes) { var pendingSyncLanes = lanes & 42; if (0 !== pendingSyncLanes) return pendingSyncLanes; switch (lanes & -lanes) { case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: return 64; case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return lanes & 4194176; case 4194304: case 8388608: case 16777216: case 33554432: return lanes & 62914560; case 67108864: return 67108864; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 0; default: return lanes; } } function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, warmLanes = root.warmLanes; root = 0 !== root.finishedLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) : ((pingedLanes &= nonIdlePendingLanes), 0 !== pingedLanes ? (nextLanes = getHighestPriorityLanes(pingedLanes)) : root || ((warmLanes = nonIdlePendingLanes & ~warmLanes), 0 !== warmLanes && (nextLanes = getHighestPriorityLanes(warmLanes))))) : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), 0 !== nonIdlePendingLanes ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) : 0 !== pingedLanes ? (nextLanes = getHighestPriorityLanes(pingedLanes)) : root || ((warmLanes = pendingLanes & ~warmLanes), 0 !== warmLanes && (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), (warmLanes = wipLanes & -wipLanes), suspendedLanes >= warmLanes || (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } function checkIfRootIsPrerendering(root, renderLanes) { return ( 0 === (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & renderLanes) ); } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: case 2: case 4: case 8: return currentTime + 250; case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return currentTime + 5e3; case 4194304: case 8388608: case 16777216: case 33554432: return -1; case 67108864: case 134217728: case 268435456: case 536870912: case 1073741824: return -1; default: return -1; } } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; 0 === (nextTransitionLane & 4194176) && (nextTransitionLane = 128); return lane; } function claimNextRetryLane() { var lane = nextRetryLane; nextRetryLane <<= 1; 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); return lane; } function createLaneMap(initial) { for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); return laneMap; } function markRootUpdated$1(root, updateLane) { root.pendingLanes |= updateLane; 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } function markRootFinished( root, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; var entanglements = root.entanglements, expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { var index$7 = 31 - clz32(remainingLanes), lane = 1 << index$7; entanglements[index$7] = 0; expirationTimes[index$7] = -1; var hiddenUpdatesForLane = hiddenUpdates[index$7]; if (null !== hiddenUpdatesForLane) for ( hiddenUpdates[index$7] = null, index$7 = 0; index$7 < hiddenUpdatesForLane.length; index$7++ ) { var update = hiddenUpdatesForLane[index$7]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); 0 !== suspendedRetryLanes && 0 === updatedLanes && 0 !== root.tag && (root.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; root.suspendedLanes &= ~spawnedLane; var spawnedLaneIndex = 31 - clz32(spawnedLane); root.entangledLanes |= spawnedLane; root.entanglements[spawnedLaneIndex] = root.entanglements[spawnedLaneIndex] | 1073741824 | (entangledLanes & 4194218); } function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { var index$8 = 31 - clz32(rootEntangledLanes), lane = 1 << index$8; (lane & entangledLanes) | (root[index$8] & entangledLanes) && (root[index$8] |= entangledLanes); rootEntangledLanes &= ~lane; } } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { var index$10 = 31 - clz32(lanes), lane = 1 << index$10; root[index$10].add(fiber); lanes &= ~lane; } } function movePendingFibersToMemoized(root, lanes) { if (isDevToolsPresent) for ( var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, memoizedUpdaters = root.memoizedUpdaters; 0 < lanes; ) { var index$11 = 31 - clz32(lanes); root = 1 << index$11; index$11 = pendingUpdatersLaneMap[index$11]; 0 < index$11.size && (index$11.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), index$11.clear()); lanes &= ~root; } } function lanesToEventPriority(lanes) { lanes &= -lanes; return 2 < lanes ? 8 < lanes ? 0 !== (lanes & 134217727) ? 32 : 268435456 : 8 : 2; } function resolveUpdatePriority() { var updatePriority = ReactDOMSharedInternals.p; if (0 !== updatePriority) return updatePriority; updatePriority = window.event; return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type); } function runWithPriority(priority, fn) { var previousPriority = ReactDOMSharedInternals.p; try { return (ReactDOMSharedInternals.p = priority), fn(); } finally { ReactDOMSharedInternals.p = previousPriority; } } var randomKey = Math.random().toString(36).slice(2), internalInstanceKey = "__reactFiber$" + randomKey, internalPropsKey = "__reactProps$" + randomKey, internalContainerInstanceKey = "__reactContainer$" + randomKey, internalEventHandlersKey = "__reactEvents$" + randomKey, internalEventHandlerListenersKey = "__reactListeners$" + randomKey, internalEventHandlesSetKey = "__reactHandles$" + randomKey, internalRootNodeResourcesKey = "__reactResources$" + randomKey, internalHoistableMarker = "__reactMarker$" + randomKey; function detachDeletedInstance(node) { delete node[internalInstanceKey]; delete node[internalPropsKey]; delete node[internalEventHandlersKey]; delete node[internalEventHandlerListenersKey]; delete node[internalEventHandlesSetKey]; } function getClosestInstanceFromNode(targetNode) { var targetInst = targetNode[internalInstanceKey]; if (targetInst) return targetInst; for (var parentNode = targetNode.parentNode; parentNode; ) { if ( (targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]) ) { parentNode = targetInst.alternate; if ( null !== targetInst.child || (null !== parentNode && null !== parentNode.child) ) for ( targetNode = getParentSuspenseInstance(targetNode); null !== targetNode; ) { if ((parentNode = targetNode[internalInstanceKey])) return parentNode; targetNode = getParentSuspenseInstance(targetNode); } return targetInst; } targetNode = parentNode; parentNode = targetNode.parentNode; } return null; } function getInstanceFromNode(node) { if ( (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) ) { var tag = node.tag; if ( 5 === tag || 6 === tag || 13 === tag || 26 === tag || 27 === tag || 3 === tag ) return node; } return null; } function getNodeFromInstance(inst) { var tag = inst.tag; if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode; throw Error(formatProdErrorMessage(33)); } function getResourcesFromRoot(root) { var resources = root[internalRootNodeResourcesKey]; resources || (resources = root[internalRootNodeResourcesKey] = { hoistableStyles: new Map(), hoistableScripts: new Map() }); return resources; } function markNodeAsHoistable(node) { node[internalHoistableMarker] = !0; } var allNativeEvents = new Set(), registrationNameDependencies = {}; function registerTwoPhaseEvent(registrationName, dependencies) { registerDirectEvent(registrationName, dependencies); registerDirectEvent(registrationName + "Capture", dependencies); } function registerDirectEvent(registrationName, dependencies) { registrationNameDependencies[registrationName] = dependencies; for ( registrationName = 0; registrationName < dependencies.length; registrationName++ ) allNativeEvents.add(dependencies[registrationName]); } var canUseDOM = !( "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ), VALID_ATTRIBUTE_NAME_REGEX = RegExp( "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" ), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}; function isAttributeNameSafe(attributeName) { if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) return !0; if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) return (validatedAttributeNameCache[attributeName] = !0); illegalAttributeNameCache[attributeName] = !0; return !1; } function setValueForAttribute(node, name, value) { if (isAttributeNameSafe(name)) if (null === value) node.removeAttribute(name); else { switch (typeof value) { case "undefined": case "function": case "symbol": node.removeAttribute(name); return; case "boolean": var prefix$12 = name.toLowerCase().slice(0, 5); if ("data-" !== prefix$12 && "aria-" !== prefix$12) { node.removeAttribute(name); return; } } node.setAttribute(name, "" + value); } } function setValueForKnownAttribute(node, name, value) { if (null === value) node.removeAttribute(name); else { switch (typeof value) { case "undefined": case "function": case "symbol": case "boolean": node.removeAttribute(name); return; } node.setAttribute(name, "" + value); } } function setValueForNamespacedAttribute(node, namespace, name, value) { if (null === value) node.removeAttribute(name); else { switch (typeof value) { case "undefined": case "function": case "symbol": case "boolean": node.removeAttribute(name); return; } node.setAttributeNS(namespace, name, "" + value); } } function getToStringValue(value) { switch (typeof value) { case "bigint": case "boolean": case "number": case "string": case "undefined": return value; case "object": return value; default: return ""; } } function isCheckable(elem) { var type = elem.type; return ( (elem = elem.nodeName) && "input" === elem.toLowerCase() && ("checkbox" === type || "radio" === type) ); } function trackValueOnNode(node) { var valueField = isCheckable(node) ? "checked" : "value", descriptor = Object.getOwnPropertyDescriptor( node.constructor.prototype, valueField ), currentValue = "" + node[valueField]; if ( !node.hasOwnProperty(valueField) && "undefined" !== typeof descriptor && "function" === typeof descriptor.get && "function" === typeof descriptor.set ) { var get = descriptor.get, set = descriptor.set; Object.defineProperty(node, valueField, { configurable: !0, get: function () { return get.call(this); }, set: function (value) { currentValue = "" + value; set.call(this, value); } }); Object.defineProperty(node, valueField, { enumerable: descriptor.enumerable }); return { getValue: function () { return currentValue; }, setValue: function (value) { currentValue = "" + value; }, stopTracking: function () { node._valueTracker = null; delete node[valueField]; } }; } } function track(node) { node._valueTracker || (node._valueTracker = trackValueOnNode(node)); } function updateValueIfChanged(node) { if (!node) return !1; var tracker = node._valueTracker; if (!tracker) return !0; var lastValue = tracker.getValue(); var value = ""; node && (value = isCheckable(node) ? node.checked ? "true" : "false" : node.value); node = value; return node !== lastValue ? (tracker.setValue(node), !0) : !1; } function getActiveElement(doc) { doc = doc || ("undefined" !== typeof document ? document : void 0); if ("undefined" === typeof doc) return null; try { return doc.activeElement || doc.body; } catch (e) { return doc.body; } } var escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g; function escapeSelectorAttributeValueInsideDoubleQuotes(value) { return value.replace( escapeSelectorAttributeValueInsideDoubleQuotesRegex, function (ch) { return "\\" + ch.charCodeAt(0).toString(16) + " "; } ); } function updateInput( element, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name ) { element.name = ""; null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type ? (element.type = type) : element.removeAttribute("type"); if (null != value) if ("number" === type) { if ((0 === value && "" === element.value) || element.value != value) element.value = "" + getToStringValue(value); } else element.value !== "" + getToStringValue(value) && (element.value = "" + getToStringValue(value)); else ("submit" !== type && "reset" !== type) || element.removeAttribute("value"); null != value ? setDefaultValue(element, type, getToStringValue(value)) : null != defaultValue ? setDefaultValue(element, type, getToStringValue(defaultValue)) : null != lastDefaultValue && element.removeAttribute("value"); null == checked && null != defaultChecked && (element.defaultChecked = !!defaultChecked); null != checked && (element.checked = checked && "function" !== typeof checked && "symbol" !== typeof checked); null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name ? (element.name = "" + getToStringValue(name)) : element.removeAttribute("name"); } function initInput( element, value, defaultValue, checked, defaultChecked, type, name, isHydrating ) { null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type && (element.type = type); if (null != value || null != defaultValue) { if ( !( ("submit" !== type && "reset" !== type) || (void 0 !== value && null !== value) ) ) return; defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; value = null != value ? "" + getToStringValue(value) : defaultValue; isHydrating || value === element.value || (element.value = value); element.defaultValue = value; } checked = null != checked ? checked : defaultChecked; checked = "function" !== typeof checked && "symbol" !== typeof checked && !!checked; element.checked = isHydrating ? element.checked : !!checked; element.defaultChecked = !!checked; null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name && (element.name = name); } function setDefaultValue(node, type, value) { ("number" === type && getActiveElement(node.ownerDocument) === node) || node.defaultValue === "" + value || (node.defaultValue = "" + value); } function updateOptions(node, multiple, propValue, setDefaultSelected) { node = node.options; if (multiple) { multiple = {}; for (var i = 0; i < propValue.length; i++) multiple["$" + propValue[i]] = !0; for (propValue = 0; propValue < node.length; propValue++) (i = multiple.hasOwnProperty("$" + node[propValue].value)), node[propValue].selected !== i && (node[propValue].selected = i), i && setDefaultSelected && (node[propValue].defaultSelected = !0); } else { propValue = "" + getToStringValue(propValue); multiple = null; for (i = 0; i < node.length; i++) { if (node[i].value === propValue) { node[i].selected = !0; setDefaultSelected && (node[i].defaultSelected = !0); return; } null !== multiple || node[i].disabled || (multiple = node[i]); } null !== multiple && (multiple.selected = !0); } } function updateTextarea(element, value, defaultValue) { if ( null != value && ((value = "" + getToStringValue(value)), value !== element.value && (element.value = value), null == defaultValue) ) { element.defaultValue !== value && (element.defaultValue = value); return; } element.defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; } function initTextarea(element, value, defaultValue, children) { if (null == value) { if (null != children) { if (null != defaultValue) throw Error(formatProdErrorMessage(92)); if (isArrayImpl(children)) { if (1 < children.length) throw Error(formatProdErrorMessage(93)); children = children[0]; } defaultValue = children; } null == defaultValue && (defaultValue = ""); value = defaultValue; } defaultValue = getToStringValue(value); element.defaultValue = defaultValue; children = element.textContent; children === defaultValue && "" !== children && null !== children && (element.value = children); } function setTextContent(node, text) { if (text) { var firstChild = node.firstChild; if ( firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType ) { firstChild.nodeValue = text; return; } } node.textContent = text; } var unitlessNumbers = new Set( "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split( " " ) ); function setValueForStyle(style, styleName, value) { var isCustomProperty = 0 === styleName.indexOf("--"); null == value || "boolean" === typeof value || "" === value ? isCustomProperty ? style.setProperty(styleName, "") : "float" === styleName ? (style.cssFloat = "") : (style[styleName] = "") : isCustomProperty ? style.setProperty(styleName, value) : "number" !== typeof value || 0 === value || unitlessNumbers.has(styleName) ? "float" === styleName ? (style.cssFloat = value) : (style[styleName] = ("" + value).trim()) : (style[styleName] = value + "px"); } function setValueForStyles(node, styles, prevStyles) { if (null != styles && "object" !== typeof styles) throw Error(formatProdErrorMessage(62)); node = node.style; if (null != prevStyles) { for (var styleName in prevStyles) !prevStyles.hasOwnProperty(styleName) || (null != styles && styles.hasOwnProperty(styleName)) || (0 === styleName.indexOf("--") ? node.setProperty(styleName, "") : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); for (var styleName$18 in styles) (styleName = styles[styleName$18]), styles.hasOwnProperty(styleName$18) && prevStyles[styleName$18] !== styleName && setValueForStyle(node, styleName$18, styleName); } else for (var styleName$19 in styles) styles.hasOwnProperty(styleName$19) && setValueForStyle(node, styleName$19, styles[styleName$19]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; switch (tagName) { case "annotation-xml": case "color-profile": case "font-face": case "font-face-src": case "font-face-uri": case "font-face-format": case "font-face-name": case "missing-glyph": return !1; default: return !0; } } var aliases = new Map([ ["acceptCharset", "accept-charset"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"], ["crossOrigin", "crossorigin"], ["accentHeight", "accent-height"], ["alignmentBaseline", "alignment-baseline"], ["arabicForm", "arabic-form"], ["baselineShift", "baseline-shift"], ["capHeight", "cap-height"], ["clipPath", "clip-path"], ["clipRule", "clip-rule"], ["colorInterpolation", "color-interpolation"], ["colorInterpolationFilters", "color-interpolation-filters"], ["colorProfile", "color-profile"], ["colorRendering", "color-rendering"], ["dominantBaseline", "dominant-baseline"], ["enableBackground", "enable-background"], ["fillOpacity", "fill-opacity"], ["fillRule", "fill-rule"], ["floodColor", "flood-color"], ["floodOpacity", "flood-opacity"], ["fontFamily", "font-family"], ["fontSize", "font-size"], ["fontSizeAdjust", "font-size-adjust"], ["fontStretch", "font-stretch"], ["fontStyle", "font-style"], ["fontVariant", "font-variant"], ["fontWeight", "font-weight"], ["glyphName", "glyph-name"], ["glyphOrientationHorizontal", "glyph-orientation-horizontal"], ["glyphOrientationVertical", "glyph-orientation-vertical"], ["horizAdvX", "horiz-adv-x"], ["horizOriginX", "horiz-origin-x"], ["imageRendering", "image-rendering"], ["letterSpacing", "letter-spacing"], ["lightingColor", "lighting-color"], ["markerEnd", "marker-end"], ["markerMid", "marker-mid"], ["markerStart", "marker-start"], ["overlinePosition", "overline-position"], ["overlineThickness", "overline-thickness"], ["paintOrder", "paint-order"], ["panose-1", "panose-1"], ["pointerEvents", "pointer-events"], ["renderingIntent", "rendering-intent"], ["shapeRendering", "shape-rendering"], ["stopColor", "stop-color"], ["stopOpacity", "stop-opacity"], ["strikethroughPosition", "strikethrough-position"], ["strikethroughThickness", "strikethrough-thickness"], ["strokeDasharray", "stroke-dasharray"], ["strokeDashoffset", "stroke-dashoffset"], ["strokeLinecap", "stroke-linecap"], ["strokeLinejoin", "stroke-linejoin"], ["strokeMiterlimit", "stroke-miterlimit"], ["strokeOpacity", "stroke-opacity"], ["strokeWidth", "stroke-width"], ["textAnchor", "text-anchor"], ["textDecoration", "text-decoration"], ["textRendering", "text-rendering"], ["transformOrigin", "transform-origin"], ["underlinePosition", "underline-position"], ["underlineThickness", "underline-thickness"], ["unicodeBidi", "unicode-bidi"], ["unicodeRange", "unicode-range"], ["unitsPerEm", "units-per-em"], ["vAlphabetic", "v-alphabetic"], ["vHanging", "v-hanging"], ["vIdeographic", "v-ideographic"], ["vMathematical", "v-mathematical"], ["vectorEffect", "vector-effect"], ["vertAdvY", "vert-adv-y"], ["vertOriginX", "vert-origin-x"], ["vertOriginY", "vert-origin-y"], ["wordSpacing", "word-spacing"], ["writingMode", "writing-mode"], ["xmlnsXlink", "xmlns:xlink"], ["xHeight", "x-height"] ]), isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i; function sanitizeURL(url) { return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url; } var currentReplayingEvent = null; function getEventTarget(nativeEvent) { nativeEvent = nativeEvent.target || nativeEvent.srcElement || window; nativeEvent.correspondingUseElement && (nativeEvent = nativeEvent.correspondingUseElement); return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent; } var restoreTarget = null, restoreQueue = null; function restoreStateOfTarget(target) { var internalInstance = getInstanceFromNode(target); if (internalInstance && (target = internalInstance.stateNode)) { var props = target[internalPropsKey] || null; a: switch (((target = internalInstance.stateNode), internalInstance.type)) { case "input": updateInput( target, props.value, props.defaultValue, props.defaultValue, props.checked, props.defaultChecked, props.type, props.name ); internalInstance = props.name; if ("radio" === props.type && null != internalInstance) { for (props = target; props.parentNode; ) props = props.parentNode; props = props.querySelectorAll( 'input[name="' + escapeSelectorAttributeValueInsideDoubleQuotes( "" + internalInstance ) + '"][type="radio"]' ); for ( internalInstance = 0; internalInstance < props.length; internalInstance++ ) { var otherNode = props[internalInstance]; if (otherNode !== target && otherNode.form === target.form) { var otherProps = otherNode[internalPropsKey] || null; if (!otherProps) throw Error(formatProdErrorMessage(90)); updateInput( otherNode, otherProps.value, otherProps.defaultValue, otherProps.defaultValue, otherProps.checked, otherProps.defaultChecked, otherProps.type, otherProps.name ); } } for ( internalInstance = 0; internalInstance < props.length; internalInstance++ ) (otherNode = props[internalInstance]), otherNode.form === target.form && updateValueIfChanged(otherNode); } break a; case "textarea": updateTextarea(target, props.value, props.defaultValue); break a; case "select": (internalInstance = props.value), null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, !1); } } } var isInsideEventHandler = !1; function batchedUpdates$2(fn, a, b) { if (isInsideEventHandler) return fn(a, b); isInsideEventHandler = !0; try { var JSCompiler_inline_result = fn(a); return JSCompiler_inline_result; } finally { if ( ((isInsideEventHandler = !1), null !== restoreTarget || null !== restoreQueue) ) if ( (flushSyncWork$1(), restoreTarget && ((a = restoreTarget), (fn = restoreQueue), (restoreQueue = restoreTarget = null), restoreStateOfTarget(a), fn)) ) for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]); } } function getListener(inst, registrationName) { var stateNode = inst.stateNode; if (null === stateNode) return null; var props = stateNode[internalPropsKey] || null; if (null === props) return null; stateNode = props[registrationName]; a: switch (registrationName) { case "onClick": case "onClickCapture": case "onDoubleClick": case "onDoubleClickCapture": case "onMouseDown": case "onMouseDownCapture": case "onMouseMove": case "onMouseMoveCapture": case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": (props = !props.disabled) || ((inst = inst.type), (props = !( "button" === inst || "input" === inst || "select" === inst || "textarea" === inst ))); inst = !props; break a; default: inst = !1; } if (inst) return null; if (stateNode && "function" !== typeof stateNode) throw Error( formatProdErrorMessage(231, registrationName, typeof stateNode) ); return stateNode; } var passiveBrowserEventsSupported = !1; if (canUseDOM) try { var options = {}; Object.defineProperty(options, "passive", { get: function () { passiveBrowserEventsSupported = !0; } }); window.addEventListener("test", options, options); window.removeEventListener("test", options, options); } catch (e) { passiveBrowserEventsSupported = !1; } var root = null, startText = null, fallbackText = null; function getData() { if (fallbackText) return fallbackText; var start, startValue = startText, startLength = startValue.length, end, endValue = "value" in root ? root.value : root.textContent, endLength = endValue.length; for ( start = 0; start < startLength && startValue[start] === endValue[start]; start++ ); var minEnd = startLength - start; for ( end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++ ); return (fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0)); } function getEventCharCode(nativeEvent) { var keyCode = nativeEvent.keyCode; "charCode" in nativeEvent ? ((nativeEvent = nativeEvent.charCode), 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13)) : (nativeEvent = keyCode); 10 === nativeEvent && (nativeEvent = 13); return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0; } function functionThatReturnsTrue() { return !0; } function functionThatReturnsFalse() { return !1; } function createSyntheticEvent(Interface) { function SyntheticBaseEvent( reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget ) { this._reactName = reactName; this._targetInst = targetInst; this.type = reactEventType; this.nativeEvent = nativeEvent; this.target = nativeEventTarget; this.currentTarget = null; for (var propName in Interface) Interface.hasOwnProperty(propName) && ((reactName = Interface[propName]), (this[propName] = reactName ? reactName(nativeEvent) : nativeEvent[propName])); this.isDefaultPrevented = ( null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue ) ? functionThatReturnsTrue : functionThatReturnsFalse; this.isPropagationStopped = functionThatReturnsFalse; return this; } assign(SyntheticBaseEvent.prototype, { preventDefault: function () { this.defaultPrevented = !0; var event = this.nativeEvent; event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), (this.isDefaultPrevented = functionThatReturnsTrue)); }, stopPropagation: function () { var event = this.nativeEvent; event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), (this.isPropagationStopped = functionThatReturnsTrue)); }, persist: function () {}, isPersistent: functionThatReturnsTrue }); return SyntheticBaseEvent; } var EventInterface = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function (event) { return event.timeStamp || Date.now(); }, defaultPrevented: 0, isTrusted: 0 }, SyntheticEvent = createSyntheticEvent(EventInterface), UIEventInterface = assign({}, EventInterface, { view: 0, detail: 0 }), SyntheticUIEvent = createSyntheticEvent(UIEventInterface), lastMovementX, lastMovementY, lastMouseEvent, MouseEventInterface = assign({}, UIEventInterface, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: getEventModifierState, button: 0, buttons: 0, relatedTarget: function (event) { return void 0 === event.relatedTarget ? event.fromElement === event.srcElement ? event.toElement : event.fromElement : event.relatedTarget; }, movementX: function (event) { if ("movementX" in event) return event.movementX; event !== lastMouseEvent && (lastMouseEvent && "mousemove" === event.type ? ((lastMovementX = event.screenX - lastMouseEvent.screenX), (lastMovementY = event.screenY - lastMouseEvent.screenY)) : (lastMovementY = lastMovementX = 0), (lastMouseEvent = event)); return lastMovementX; }, movementY: function (event) { return "movementY" in event ? event.movementY : lastMovementY; } }), SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface), DragEventInterface = assign({}, MouseEventInterface, { dataTransfer: 0 }), SyntheticDragEvent = createSyntheticEvent(DragEventInterface), FocusEventInterface = assign({}, UIEventInterface, { relatedTarget: 0 }), SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface), AnimationEventInterface = assign({}, EventInterface, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface), ClipboardEventInterface = assign({}, EventInterface, { clipboardData: function (event) { return "clipboardData" in event ? event.clipboardData : window.clipboardData; } }), SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface), CompositionEventInterface = assign({}, EventInterface, { data: 0 }), SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface), normalizeKey = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, translateToKey = { 8: "Backspace", 9: "Tab", 12: "Clear", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 224: "Meta" }, modifierKeyToProp = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function modifierStateGetter(keyArg) { var nativeEvent = this.nativeEvent; return nativeEvent.getModifierState ? nativeEvent.getModifierState(keyArg) : (keyArg = modifierKeyToProp[keyArg]) ? !!nativeEvent[keyArg] : !1; } function getEventModifierState() { return modifierStateGetter; } var KeyboardEventInterface = assign({}, UIEventInterface, { key: function (nativeEvent) { if (nativeEvent.key) { var key = normalizeKey[nativeEvent.key] || nativeEvent.key; if ("Unidentified" !== key) return key; } return "keypress" === nativeEvent.type ? ((nativeEvent = getEventCharCode(nativeEvent)), 13 === nativeEvent ? "Enter" : String.fromCharCode(nativeEvent)) : "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : ""; }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: getEventModifierState, charCode: function (event) { return "keypress" === event.type ? getEventCharCode(event) : 0; }, keyCode: function (event) { return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; }, which: function (event) { return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; } }), SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface), PointerEventInterface = assign({}, MouseEventInterface, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface), TouchEventInterface = assign({}, UIEventInterface, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: getEventModifierState }), SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface), TransitionEventInterface = assign({}, EventInterface, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface), WheelEventInterface = assign({}, MouseEventInterface, { deltaX: function (event) { return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0; }, deltaY: function (event) { return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0; }, deltaZ: 0, deltaMode: 0 }), SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface), ToggleEventInterface = assign({}, EventInterface, { newState: 0, oldState: 0 }), SyntheticToggleEvent = createSyntheticEvent(ToggleEventInterface), END_KEYCODES = [9, 13, 27, 32], canUseCompositionEvent = canUseDOM && "CompositionEvent" in window, documentMode = null; canUseDOM && "documentMode" in document && (documentMode = document.documentMode); var canUseTextInputEvent = canUseDOM && "TextEvent" in window && !documentMode, useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || (documentMode && 8 < documentMode && 11 >= documentMode)), SPACEBAR_CHAR = String.fromCharCode(32), hasSpaceKeypress = !1; function isFallbackCompositionEnd(domEventName, nativeEvent) { switch (domEventName) { case "keyup": return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode); case "keydown": return 229 !== nativeEvent.keyCode; case "keypress": case "mousedown": case "focusout": return !0; default: return !1; } } function getDataFromCustomEvent(nativeEvent) { nativeEvent = nativeEvent.detail; return "object" === typeof nativeEvent && "data" in nativeEvent ? nativeEvent.data : null; } var isComposing = !1; function getNativeBeforeInputChars(domEventName, nativeEvent) { switch (domEventName) { case "compositionend": return getDataFromCustomEvent(nativeEvent); case "keypress": if (32 !== nativeEvent.which) return null; hasSpaceKeypress = !0; return SPACEBAR_CHAR; case "textInput": return ( (domEventName = nativeEvent.data), domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName ); default: return null; } } function getFallbackBeforeInputChars(domEventName, nativeEvent) { if (isComposing) return "compositionend" === domEventName || (!canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) ? ((domEventName = getData()), (fallbackText = startText = root = null), (isComposing = !1), domEventName) : null; switch (domEventName) { case "paste": return null; case "keypress": if ( !(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) || (nativeEvent.ctrlKey && nativeEvent.altKey) ) { if (nativeEvent.char && 1 < nativeEvent.char.length) return nativeEvent.char; if (nativeEvent.which) return String.fromCharCode(nativeEvent.which); } return null; case "compositionend": return useFallbackCompositionData && "ko" !== nativeEvent.locale ? null : nativeEvent.data; default: return null; } } var supportedInputTypes = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; function isTextInputElement(elem) { var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName ? !0 : !1; } function createAndAccumulateChangeEvent( dispatchQueue, inst, nativeEvent, target ) { restoreTarget ? restoreQueue ? restoreQueue.push(target) : (restoreQueue = [target]) : (restoreTarget = target); inst = accumulateTwoPhaseListeners(inst, "onChange"); 0 < inst.length && ((nativeEvent = new SyntheticEvent( "onChange", "change", null, nativeEvent, target )), dispatchQueue.push({ event: nativeEvent, listeners: inst })); } var activeElement$1 = null, activeElementInst$1 = null; function runEventInBatch(dispatchQueue) { processDispatchQueue(dispatchQueue, 0); } function getInstIfValueChanged(targetInst) { var targetNode = getNodeFromInstance(targetInst); if (updateValueIfChanged(targetNode)) return targetInst; } function getTargetInstForChangeEvent(domEventName, targetInst) { if ("change" === domEventName) return targetInst; } var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$299; if (canUseDOM) { var isSupported$jscomp$inline_435 = "oninput" in document; if (!isSupported$jscomp$inline_435) { var element$jscomp$inline_436 = document.createElement("div"); element$jscomp$inline_436.setAttribute("oninput", "return;"); isSupported$jscomp$inline_435 = "function" === typeof element$jscomp$inline_436.oninput; } JSCompiler_inline_result$jscomp$299 = isSupported$jscomp$inline_435; } else JSCompiler_inline_result$jscomp$299 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$299 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { activeElement$1 && (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), (activeElementInst$1 = activeElement$1 = null)); } function handlePropertyChange(nativeEvent) { if ( "value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst$1) ) { var dispatchQueue = []; createAndAccumulateChangeEvent( dispatchQueue, activeElementInst$1, nativeEvent, getEventTarget(nativeEvent) ); batchedUpdates$2(runEventInBatch, dispatchQueue); } } function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { "focusin" === domEventName ? (stopWatchingForValueChange(), (activeElement$1 = target), (activeElementInst$1 = targetInst), activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange(); } function getTargetInstForInputEventPolyfill(domEventName) { if ( "selectionchange" === domEventName || "keyup" === domEventName || "keydown" === domEventName ) return getInstIfValueChanged(activeElementInst$1); } function getTargetInstForClickEvent(domEventName, targetInst) { if ("click" === domEventName) return getInstIfValueChanged(targetInst); } function getTargetInstForInputOrChangeEvent(domEventName, targetInst) { if ("input" === domEventName || "change" === domEventName) return getInstIfValueChanged(targetInst); } function is(x, y) { return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); } var objectIs = "function" === typeof Object.is ? Object.is : is; function shallowEqual(objA, objB) { if (objectIs(objA, objB)) return !0; if ( "object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB ) return !1; var keysA = Object.keys(objA), keysB = Object.keys(objB); if (keysA.length !== keysB.length) return !1; for (keysB = 0; keysB < keysA.length; keysB++) { var currentKey = keysA[keysB]; if ( !hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]) ) return !1; } return !0; } function getLeafNode(node) { for (; node && node.firstChild; ) node = node.firstChild; return node; } function getNodeForCharacterOffset(root, offset) { var node = getLeafNode(root); root = 0; for (var nodeEnd; node; ) { if (3 === node.nodeType) { nodeEnd = root + node.textContent.length; if (root <= offset && nodeEnd >= offset) return { node: node, offset: offset - root }; root = nodeEnd; } a: { for (; node; ) { if (node.nextSibling) { node = node.nextSibling; break a; } node = node.parentNode; } node = void 0; } node = getLeafNode(node); } } function containsNode(outerNode, innerNode) { return outerNode && innerNode ? outerNode === innerNode ? !0 : outerNode && 3 === outerNode.nodeType ? !1 : innerNode && 3 === innerNode.nodeType ? containsNode(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : outerNode.compareDocumentPosition ? !!(outerNode.compareDocumentPosition(innerNode) & 16) : !1 : !1; } function getActiveElementDeep(containerInfo) { containerInfo = null != containerInfo && null != containerInfo.ownerDocument && null != containerInfo.ownerDocument.defaultView ? containerInfo.ownerDocument.defaultView : window; for ( var element = getActiveElement(containerInfo.document); element instanceof containerInfo.HTMLIFrameElement; ) { try { var JSCompiler_inline_result = "string" === typeof element.contentWindow.location.href; } catch (err) { JSCompiler_inline_result = !1; } if (JSCompiler_inline_result) containerInfo = element.contentWindow; else break; element = getActiveElement(containerInfo.document); } return element; } function hasSelectionCapabilities(elem) { var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); return ( nodeName && (("input" === nodeName && ("text" === elem.type || "search" === elem.type || "tel" === elem.type || "url" === elem.type || "password" === elem.type)) || "textarea" === nodeName || "true" === elem.contentEditable) ); } function restoreSelection(priorSelectionInformation, containerInfo) { var curFocusedElem = getActiveElementDeep(containerInfo); containerInfo = priorSelectionInformation.focusedElem; var priorSelectionRange = priorSelectionInformation.selectionRange; if ( curFocusedElem !== containerInfo && containerInfo && containerInfo.ownerDocument && containsNode(containerInfo.ownerDocument.documentElement, containerInfo) ) { if (null !== priorSelectionRange && hasSelectionCapabilities(containerInfo)) if ( ((priorSelectionInformation = priorSelectionRange.start), (curFocusedElem = priorSelectionRange.end), void 0 === curFocusedElem && (curFocusedElem = priorSelectionInformation), "selectionStart" in containerInfo) ) (containerInfo.selectionStart = priorSelectionInformation), (containerInfo.selectionEnd = Math.min( curFocusedElem, containerInfo.value.length )); else if ( ((curFocusedElem = ((priorSelectionInformation = containerInfo.ownerDocument || document) && priorSelectionInformation.defaultView) || window), curFocusedElem.getSelection) ) { curFocusedElem = curFocusedElem.getSelection(); var length = containerInfo.textContent.length, start = Math.min(priorSelectionRange.start, length); priorSelectionRange = void 0 === priorSelectionRange.end ? start : Math.min(priorSelectionRange.end, length); !curFocusedElem.extend && start > priorSelectionRange && ((length = priorSelectionRange), (priorSelectionRange = start), (start = length)); length = getNodeForCharacterOffset(containerInfo, start); var endMarker = getNodeForCharacterOffset( containerInfo, priorSelectionRange ); length && endMarker && (1 !== curFocusedElem.rangeCount || curFocusedElem.anchorNode !== length.node || curFocusedElem.anchorOffset !== length.offset || curFocusedElem.focusNode !== endMarker.node || curFocusedElem.focusOffset !== endMarker.offset) && ((priorSelectionInformation = priorSelectionInformation.createRange()), priorSelectionInformation.setStart(length.node, length.offset), curFocusedElem.removeAllRanges(), start > priorSelectionRange ? (curFocusedElem.addRange(priorSelectionInformation), curFocusedElem.extend(endMarker.node, endMarker.offset)) : (priorSelectionInformation.setEnd( endMarker.node, endMarker.offset ), curFocusedElem.addRange(priorSelectionInformation))); } priorSelectionInformation = []; for ( curFocusedElem = containerInfo; (curFocusedElem = curFocusedElem.parentNode); ) 1 === curFocusedElem.nodeType && priorSelectionInformation.push({ element: curFocusedElem, left: curFocusedElem.scrollLeft, top: curFocusedElem.scrollTop }); "function" === typeof containerInfo.focus && containerInfo.focus(); for ( containerInfo = 0; containerInfo < priorSelectionInformation.length; containerInfo++ ) (curFocusedElem = priorSelectionInformation[containerInfo]), (curFocusedElem.element.scrollLeft = curFocusedElem.left), (curFocusedElem.element.scrollTop = curFocusedElem.top); } } var skipSelectionChangeEvent = canUseDOM && "documentMode" in document && 11 >= document.documentMode, activeElement = null, activeElementInst = null, lastSelection = null, mouseDown = !1; function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { var doc = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget.document : 9 === nativeEventTarget.nodeType ? nativeEventTarget : nativeEventTarget.ownerDocument; mouseDown || null == activeElement || activeElement !== getActiveElement(doc) || ((doc = activeElement), "selectionStart" in doc && hasSelectionCapabilities(doc) ? (doc = { start: doc.selectionStart, end: doc.selectionEnd }) : ((doc = ( (doc.ownerDocument && doc.ownerDocument.defaultView) || window ).getSelection()), (doc = { anchorNode: doc.anchorNode, anchorOffset: doc.anchorOffset, focusNode: doc.focusNode, focusOffset: doc.focusOffset })), (lastSelection && shallowEqual(lastSelection, doc)) || ((lastSelection = doc), (doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect")), 0 < doc.length && ((nativeEvent = new SyntheticEvent( "onSelect", "select", null, nativeEvent, nativeEventTarget )), dispatchQueue.push({ event: nativeEvent, listeners: doc }), (nativeEvent.target = activeElement)))); } function makePrefixMap(styleProp, eventName) { var prefixes = {}; prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); prefixes["Webkit" + styleProp] = "webkit" + eventName; prefixes["Moz" + styleProp] = "moz" + eventName; return prefixes; } var vendorPrefixes = { animationend: makePrefixMap("Animation", "AnimationEnd"), animationiteration: makePrefixMap("Animation", "AnimationIteration"), animationstart: makePrefixMap("Animation", "AnimationStart"), transitionrun: makePrefixMap("Transition", "TransitionRun"), transitionstart: makePrefixMap("Transition", "TransitionStart"), transitioncancel: makePrefixMap("Transition", "TransitionCancel"), transitionend: makePrefixMap("Transition", "TransitionEnd") }, prefixedEventNames = {}, style = {}; canUseDOM && ((style = document.createElement("div").style), "AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation, delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition); function getVendorPrefixedEventName(eventName) { if (prefixedEventNames[eventName]) return prefixedEventNames[eventName]; if (!vendorPrefixes[eventName]) return eventName; var prefixMap = vendorPrefixes[eventName], styleProp; for (styleProp in prefixMap) if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) return (prefixedEventNames[eventName] = prefixMap[styleProp]); return eventName; } var ANIMATION_END = getVendorPrefixedEventName("animationend"), ANIMATION_ITERATION = getVendorPrefixedEventName("animationiteration"), ANIMATION_START = getVendorPrefixedEventName("animationstart"), TRANSITION_RUN = getVendorPrefixedEventName("transitionrun"), TRANSITION_START = getVendorPrefixedEventName("transitionstart"), TRANSITION_CANCEL = getVendorPrefixedEventName("transitioncancel"), TRANSITION_END = getVendorPrefixedEventName("transitionend"), topLevelEventsToReactNames = new Map(), simpleEventPluginEvents = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split( " " ); function registerSimpleEvent(domEventName, reactName) { topLevelEventsToReactNames.set(domEventName, reactName); registerTwoPhaseEvent(reactName, [domEventName]); } var concurrentQueues = [], concurrentQueuesIndex = 0, concurrentlyUpdatedLanes = 0; function finishQueueingConcurrentUpdates() { for ( var endIndex = concurrentQueuesIndex, i = (concurrentlyUpdatedLanes = concurrentQueuesIndex = 0); i < endIndex; ) { var fiber = concurrentQueues[i]; concurrentQueues[i++] = null; var queue = concurrentQueues[i]; concurrentQueues[i++] = null; var update = concurrentQueues[i]; concurrentQueues[i++] = null; var lane = concurrentQueues[i]; concurrentQueues[i++] = null; if (null !== queue && null !== update) { var pending = queue.pending; null === pending ? (update.next = update) : ((update.next = pending.next), (pending.next = update)); queue.pending = update; } 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); } } function enqueueUpdate$1(fiber, queue, update, lane) { concurrentQueues[concurrentQueuesIndex++] = fiber; concurrentQueues[concurrentQueuesIndex++] = queue; concurrentQueues[concurrentQueuesIndex++] = update; concurrentQueues[concurrentQueuesIndex++] = lane; concurrentlyUpdatedLanes |= lane; fiber.lanes |= lane; fiber = fiber.alternate; null !== fiber && (fiber.lanes |= lane); } function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { enqueueUpdate$1(fiber, queue, update, lane); return getRootForUpdatedFiber(fiber); } function enqueueConcurrentRenderForLane(fiber, lane) { enqueueUpdate$1(fiber, null, null, lane); return getRootForUpdatedFiber(fiber); } function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { sourceFiber.lanes |= lane; var alternate = sourceFiber.alternate; null !== alternate && (alternate.lanes |= lane); for (var isHidden = !1, parent = sourceFiber.return; null !== parent; ) (parent.childLanes |= lane), (alternate = parent.alternate), null !== alternate && (alternate.childLanes |= lane), 22 === parent.tag && ((sourceFiber = parent.stateNode), null === sourceFiber || sourceFiber._visibility & 1 || (isHidden = !0)), (sourceFiber = parent), (parent = parent.return); isHidden && null !== update && 3 === sourceFiber.tag && ((parent = sourceFiber.stateNode), (isHidden = 31 - clz32(lane)), (parent = parent.hiddenUpdates), (sourceFiber = parent[isHidden]), null === sourceFiber ? (parent[isHidden] = [update]) : sourceFiber.push(update), (update.lane = lane | 536870912)); } function getRootForUpdatedFiber(sourceFiber) { if (50 < nestedUpdateCount) throw ( ((nestedUpdateCount = 0), (rootWithNestedUpdates = null), Error(formatProdErrorMessage(185))) ); for (var parent = sourceFiber.return; null !== parent; ) (sourceFiber = parent), (parent = sourceFiber.return); return 3 === sourceFiber.tag ? sourceFiber.stateNode : null; } var emptyContextObject = {}, now = Scheduler.unstable_now, commitStartTime = -0, profilerStartTime = -1.1, profilerEffectDuration = -0; function pushNestedEffectDurations() { var prevEffectDuration = profilerEffectDuration; profilerEffectDuration = 0; return prevEffectDuration; } function popNestedEffectDurations(prevEffectDuration) { var elapsedTime = profilerEffectDuration; profilerEffectDuration = prevEffectDuration; return elapsedTime; } function bubbleNestedEffectDurations(prevEffectDuration) { var elapsedTime = profilerEffectDuration; profilerEffectDuration += prevEffectDuration; return elapsedTime; } var currentUpdateIsNested = !1, nestedUpdateScheduled = !1; function startProfilerTimer(fiber) { profilerStartTime = now(); 0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime); } function stopProfilerTimerIfRunningAndRecordDuration(fiber) { if (0 <= profilerStartTime) { var elapsedTime = now() - profilerStartTime; fiber.actualDuration += elapsedTime; fiber.selfBaseDuration = elapsedTime; profilerStartTime = -1; } } function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) { if (0 <= profilerStartTime) { var elapsedTime = now() - profilerStartTime; fiber.actualDuration += elapsedTime; profilerStartTime = -1; } } function recordEffectDuration() { if (0 <= profilerStartTime) { var elapsedTime = now() - profilerStartTime; profilerStartTime = -1; profilerEffectDuration += elapsedTime; } } function startEffectTimer() { profilerStartTime = now(); } function transferActualDuration(fiber) { for (var child = fiber.child; child; ) (fiber.actualDuration += child.actualDuration), (child = child.sibling); } var CapturedStacks = new WeakMap(); function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { var existing = CapturedStacks.get(value); if (void 0 !== existing) return existing; source = { value: value, source: source, stack: getStackByFiberInDevAndProd(source) }; CapturedStacks.set(value, source); return source; } return { value: value, source: source, stack: getStackByFiberInDevAndProd(source) }; } var forkStack = [], forkStackIndex = 0, treeForkProvider = null, treeForkCount = 0, idStack = [], idStackIndex = 0, treeContextProvider = null, treeContextId = 1, treeContextOverflow = ""; function pushTreeFork(workInProgress, totalChildren) { forkStack[forkStackIndex++] = treeForkCount; forkStack[forkStackIndex++] = treeForkProvider; treeForkProvider = workInProgress; treeForkCount = totalChildren; } function pushTreeId(workInProgress, totalChildren, index) { idStack[idStackIndex++] = treeContextId; idStack[idStackIndex++] = treeContextOverflow; idStack[idStackIndex++] = treeContextProvider; treeContextProvider = workInProgress; var baseIdWithLeadingBit = treeContextId; workInProgress = treeContextOverflow; var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1; baseIdWithLeadingBit &= ~(1 << baseLength); index += 1; var length = 32 - clz32(totalChildren) + baseLength; if (30 < length) { var numberOfOverflowBits = baseLength - (baseLength % 5); length = ( baseIdWithLeadingBit & ((1 << numberOfOverflowBits) - 1) ).toString(32); baseIdWithLeadingBit >>= numberOfOverflowBits; baseLength -= numberOfOverflowBits; treeContextId = (1 << (32 - clz32(totalChildren) + baseLength)) | (index << baseLength) | baseIdWithLeadingBit; treeContextOverflow = length + workInProgress; } else (treeContextId = (1 << length) | (index << baseLength) | baseIdWithLeadingBit), (treeContextOverflow = workInProgress); } function pushMaterializedTreeId(workInProgress) { null !== workInProgress.return && (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0)); } function popTreeContext(workInProgress) { for (; workInProgress === treeForkProvider; ) (treeForkProvider = forkStack[--forkStackIndex]), (forkStack[forkStackIndex] = null), (treeForkCount = forkStack[--forkStackIndex]), (forkStack[forkStackIndex] = null); for (; workInProgress === treeContextProvider; ) (treeContextProvider = idStack[--idStackIndex]), (idStack[idStackIndex] = null), (treeContextOverflow = idStack[--idStackIndex]), (idStack[idStackIndex] = null), (treeContextId = idStack[--idStackIndex]), (idStack[idStackIndex] = null); } var hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = !1, hydrationErrors = null, rootOrSingletonContext = !1, HydrationMismatchException = Error(formatProdErrorMessage(519)); function throwOnHydrationMismatch(fiber) { var error = Error(formatProdErrorMessage(418, "")); queueHydrationError(createCapturedValueAtFiber(error, fiber)); throw HydrationMismatchException; } function prepareToHydrateHostInstance(fiber) { var instance = fiber.stateNode, type = fiber.type, props = fiber.memoizedProps; instance[internalInstanceKey] = fiber; instance[internalPropsKey] = props; switch (type) { case "dialog": listenToNonDelegatedEvent("cancel", instance); listenToNonDelegatedEvent("close", instance); break; case "iframe": case "object": case "embed": listenToNonDelegatedEvent("load", instance); break; case "video": case "audio": for (type = 0; type < mediaEventTypes.length; type++) listenToNonDelegatedEvent(mediaEventTypes[type], instance); break; case "source": listenToNonDelegatedEvent("error", instance); break; case "img": case "image": case "link": listenToNonDelegatedEvent("error", instance); listenToNonDelegatedEvent("load", instance); break; case "details": listenToNonDelegatedEvent("toggle", instance); break; case "input": listenToNonDelegatedEvent("invalid", instance); initInput( instance, props.value, props.defaultValue, props.checked, props.defaultChecked, props.type, props.name, !0 ); track(instance); break; case "select": listenToNonDelegatedEvent("invalid", instance); break; case "textarea": listenToNonDelegatedEvent("invalid", instance), initTextarea(instance, props.value, props.defaultValue, props.children), track(instance); } type = props.children; ("string" !== typeof type && "number" !== typeof type && "bigint" !== typeof type) || instance.textContent === "" + type || !0 === props.suppressHydrationWarning || checkForUnmatchedText(instance.textContent, type) ? (null != props.popover && (listenToNonDelegatedEvent("beforetoggle", instance), listenToNonDelegatedEvent("toggle", instance)), null != props.onScroll && listenToNonDelegatedEvent("scroll", instance), null != props.onScrollEnd && listenToNonDelegatedEvent("scrollend", instance), null != props.onClick && (instance.onclick = noop$2), (instance = !0)) : (instance = !1); instance || throwOnHydrationMismatch(fiber); } function popToNextHostParent(fiber) { for (hydrationParentFiber = fiber.return; hydrationParentFiber; ) switch (hydrationParentFiber.tag) { case 3: case 27: rootOrSingletonContext = !0; return; case 5: case 13: rootOrSingletonContext = !1; return; default: hydrationParentFiber = hydrationParentFiber.return; } } function popHydrationState(fiber) { if (fiber !== hydrationParentFiber) return !1; if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1; var shouldClear = !1, JSCompiler_temp; if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) { if ((JSCompiler_temp = 5 === fiber.tag)) (JSCompiler_temp = fiber.type), (JSCompiler_temp = !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) || shouldSetTextContent(fiber.type, fiber.memoizedProps)); JSCompiler_temp = !JSCompiler_temp; } JSCompiler_temp && (shouldClear = !0); shouldClear && nextHydratableInstance && throwOnHydrationMismatch(fiber); popToNextHostParent(fiber); if (13 === fiber.tag) { fiber = fiber.memoizedState; fiber = null !== fiber ? fiber.dehydrated : null; if (!fiber) throw Error(formatProdErrorMessage(317)); a: { fiber = fiber.nextSibling; for (shouldClear = 0; fiber; ) { if (8 === fiber.nodeType) if (((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)) { if (0 === shouldClear) { nextHydratableInstance = getNextHydratable(fiber.nextSibling); break a; } shouldClear--; } else ("$" !== JSCompiler_temp && "$!" !== JSCompiler_temp && "$?" !== JSCompiler_temp) || shouldClear++; fiber = fiber.nextSibling; } nextHydratableInstance = null; } } else nextHydratableInstance = hydrationParentFiber ? getNextHydratable(fiber.stateNode.nextSibling) : null; return !0; } function resetHydrationState() { nextHydratableInstance = hydrationParentFiber = null; isHydrating = !1; } function queueHydrationError(error) { null === hydrationErrors ? (hydrationErrors = [error]) : hydrationErrors.push(error); } var SuspenseException = Error(formatProdErrorMessage(460)), SuspenseyCommitException = Error(formatProdErrorMessage(474)), noopSuspenseyCommitThenable = { then: function () {} }; function isThenableResolved(thenable) { thenable = thenable.status; return "fulfilled" === thenable || "rejected" === thenable; } function noop$4() {} function trackUsedThenable(thenableState, thenable, index) { index = thenableState[index]; void 0 === index ? thenableState.push(thenable) : index !== thenable && (thenable.then(noop$4, noop$4), (thenable = index)); switch (thenable.status) { case "fulfilled": return thenable.value; case "rejected": thenableState = thenable.reason; if (thenableState === SuspenseException) throw Error(formatProdErrorMessage(483)); throw thenableState; default: if ("string" === typeof thenable.status) thenable.then(noop$4, noop$4); else { thenableState = workInProgressRoot; if (null !== thenableState && 100 < thenableState.shellSuspendCounter) throw Error(formatProdErrorMessage(482)); thenableState = thenable; thenableState.status = "pending"; thenableState.then( function (fulfilledValue) { if ("pending" === thenable.status) { var fulfilledThenable = thenable; fulfilledThenable.status = "fulfilled"; fulfilledThenable.value = fulfilledValue; } }, function (error) { if ("pending" === thenable.status) { var rejectedThenable = thenable; rejectedThenable.status = "rejected"; rejectedThenable.reason = error; } } ); } switch (thenable.status) { case "fulfilled": return thenable.value; case "rejected": thenableState = thenable.reason; if (thenableState === SuspenseException) throw Error(formatProdErrorMessage(483)); throw thenableState; } suspendedThenable = thenable; throw SuspenseException; } } var suspendedThenable = null; function getSuspendedThenable() { if (null === suspendedThenable) throw Error(formatProdErrorMessage(459)); var thenable = suspendedThenable; suspendedThenable = null; return thenable; } var thenableState$1 = null, thenableIndexCounter$1 = 0; function unwrapThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } function coerceRef(workInProgress, element) { element = element.props.ref; workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( 31, "[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber ) ); } function resolveLazy(lazyType) { var init = lazyType._init; return init(lazyType._payload); } function createChildReconciler(shouldTrackSideEffects) { function deleteChild(returnFiber, childToDelete) { if (shouldTrackSideEffects) { var deletions = returnFiber.deletions; null === deletions ? ((returnFiber.deletions = [childToDelete]), (returnFiber.flags |= 16)) : deletions.push(childToDelete); } } function deleteRemainingChildren(returnFiber, currentFirstChild) { if (!shouldTrackSideEffects) return null; for (; null !== currentFirstChild; ) deleteChild(returnFiber, currentFirstChild), (currentFirstChild = currentFirstChild.sibling); return null; } function mapRemainingChildren(currentFirstChild) { for (var existingChildren = new Map(); null !== currentFirstChild; ) null !== currentFirstChild.key ? existingChildren.set(currentFirstChild.key, currentFirstChild) : existingChildren.set(currentFirstChild.index, currentFirstChild), (currentFirstChild = currentFirstChild.sibling); return existingChildren; } function useFiber(fiber, pendingProps) { fiber = createWorkInProgress(fiber, pendingProps); fiber.index = 0; fiber.sibling = null; return fiber; } function placeChild(newFiber, lastPlacedIndex, newIndex) { newFiber.index = newIndex; if (!shouldTrackSideEffects) return (newFiber.flags |= 1048576), lastPlacedIndex; newIndex = newFiber.alternate; if (null !== newIndex) return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex ? ((newFiber.flags |= 33554434), lastPlacedIndex) : newIndex ); newFiber.flags |= 33554434; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 33554434); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { if (null === current || 6 !== current.tag) return ( (current = createFiberFromText(textContent, returnFiber.mode, lanes)), (current.return = returnFiber), current ); current = useFiber(current, textContent); current.return = returnFiber; return current; } function updateElement(returnFiber, current, element, lanes) { var elementType = element.type; if (elementType === REACT_FRAGMENT_TYPE) return updateFragment( returnFiber, current, element.props.children, lanes, element.key ); if ( null !== current && (current.elementType === elementType || ("object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type)) ) return ( (current = useFiber(current, element.props)), coerceRef(current, element), (current.return = returnFiber), current ); current = createFiberFromTypeAndProps( element.type, element.key, element.props, null, returnFiber.mode, lanes ); coerceRef(current, element); current.return = returnFiber; return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation ) return ( (current = createFiberFromPortal(portal, returnFiber.mode, lanes)), (current.return = returnFiber), current ); current = useFiber(current, portal.children || []); current.return = returnFiber; return current; } function updateFragment(returnFiber, current, fragment, lanes, key) { if (null === current || 7 !== current.tag) return ( (current = createFiberFromFragment( fragment, returnFiber.mode, lanes, key )), (current.return = returnFiber), current ); current = useFiber(current, fragment); current.return = returnFiber; return current; } function createChild(returnFiber, newChild, lanes) { if ( ("string" === typeof newChild && "" !== newChild) || "number" === typeof newChild || "bigint" === typeof newChild ) return ( (newChild = createFiberFromText( "" + newChild, returnFiber.mode, lanes )), (newChild.return = returnFiber), newChild ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: return ( (lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes )), coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); case REACT_PORTAL_TYPE: return ( (newChild = createFiberFromPortal( newChild, returnFiber.mode, lanes )), (newChild.return = returnFiber), newChild ); case REACT_LAZY_TYPE: var init = newChild._init; newChild = init(newChild._payload); return createChild(returnFiber, newChild, lanes); } if (isArrayImpl(newChild) || getIteratorFn(newChild)) return ( (newChild = createFiberFromFragment( newChild, returnFiber.mode, lanes, null )), (newChild.return = returnFiber), newChild ); if ("function" === typeof newChild.then) return createChild(returnFiber, unwrapThenable(newChild), lanes); if (newChild.$$typeof === REACT_CONTEXT_TYPE) return createChild( returnFiber, readContextDuringReconciliation(returnFiber, newChild), lanes ); throwOnInvalidObjectType(returnFiber, newChild); } return null; } function updateSlot(returnFiber, oldFiber, newChild, lanes) { var key = null !== oldFiber ? oldFiber.key : null; if ( ("string" === typeof newChild && "" !== newChild) || "number" === typeof newChild || "bigint" === typeof newChild ) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; case REACT_PORTAL_TYPE: return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; case REACT_LAZY_TYPE: return ( (key = newChild._init), (newChild = key(newChild._payload)), updateSlot(returnFiber, oldFiber, newChild, lanes) ); } if (isArrayImpl(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null); if ("function" === typeof newChild.then) return updateSlot( returnFiber, oldFiber, unwrapThenable(newChild), lanes ); if (newChild.$$typeof === REACT_CONTEXT_TYPE) return updateSlot( returnFiber, oldFiber, readContextDuringReconciliation(returnFiber, newChild), lanes ); throwOnInvalidObjectType(returnFiber, newChild); } return null; } function updateFromMap( existingChildren, returnFiber, newIdx, newChild, lanes ) { if ( ("string" === typeof newChild && "" !== newChild) || "number" === typeof newChild || "bigint" === typeof newChild ) return ( (existingChildren = existingChildren.get(newIdx) || null), updateTextNode(returnFiber, existingChildren, "" + newChild, lanes) ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: return ( (existingChildren = existingChildren.get( null === newChild.key ? newIdx : newChild.key ) || null), updateElement(returnFiber, existingChildren, newChild, lanes) ); case REACT_PORTAL_TYPE: return ( (existingChildren = existingChildren.get( null === newChild.key ? newIdx : newChild.key ) || null), updatePortal(returnFiber, existingChildren, newChild, lanes) ); case REACT_LAZY_TYPE: var init = newChild._init; newChild = init(newChild._payload); return updateFromMap( existingChildren, returnFiber, newIdx, newChild, lanes ); } if (isArrayImpl(newChild) || getIteratorFn(newChild)) return ( (existingChildren = existingChildren.get(newIdx) || null), updateFragment(returnFiber, existingChildren, newChild, lanes, null) ); if ("function" === typeof newChild.then) return updateFromMap( existingChildren, returnFiber, newIdx, unwrapThenable(newChild), lanes ); if (newChild.$$typeof === REACT_CONTEXT_TYPE) return updateFromMap( existingChildren, returnFiber, newIdx, readContextDuringReconciliation(returnFiber, newChild), lanes ); throwOnInvalidObjectType(returnFiber, newChild); } return null; } function reconcileChildrenArray( returnFiber, currentFirstChild, newChildren, lanes ) { for ( var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = (currentFirstChild = 0), nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++ ) { oldFiber.index > newIdx ? ((nextOldFiber = oldFiber), (oldFiber = null)) : (nextOldFiber = oldFiber.sibling); var newFiber = updateSlot( returnFiber, oldFiber, newChildren[newIdx], lanes ); if (null === newFiber) { null === oldFiber && (oldFiber = nextOldFiber); break; } shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); null === previousNewFiber ? (resultingFirstChild = newFiber) : (previousNewFiber.sibling = newFiber); previousNewFiber = newFiber; oldFiber = nextOldFiber; } if (newIdx === newChildren.length) return ( deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild ); if (null === oldFiber) { for (; newIdx < newChildren.length; newIdx++) (oldFiber = createChild(returnFiber, newChildren[newIdx], lanes)), null !== oldFiber && ((currentFirstChild = placeChild( oldFiber, currentFirstChild, newIdx )), null === previousNewFiber ? (resultingFirstChild = oldFiber) : (previousNewFiber.sibling = oldFiber), (previousNewFiber = oldFiber)); isHydrating && pushTreeFork(returnFiber, newIdx); return resultingFirstChild; } for ( oldFiber = mapRemainingChildren(oldFiber); newIdx < newChildren.length; newIdx++ ) (nextOldFiber = updateFromMap( oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes )), null !== nextOldFiber && (shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete( null === nextOldFiber.key ? newIdx : nextOldFiber.key ), (currentFirstChild = placeChild( nextOldFiber, currentFirstChild, newIdx )), null === previousNewFiber ? (resultingFirstChild = nextOldFiber) : (previousNewFiber.sibling = nextOldFiber), (previousNewFiber = nextOldFiber)); shouldTrackSideEffects && oldFiber.forEach(function (child) { return deleteChild(returnFiber, child); }); isHydrating && pushTreeFork(returnFiber, newIdx); return resultingFirstChild; } function reconcileChildrenIterator( returnFiber, currentFirstChild, newChildren, lanes ) { if (null == newChildren) throw Error(formatProdErrorMessage(151)); for ( var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = (currentFirstChild = 0), nextOldFiber = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, step = newChildren.next() ) { oldFiber.index > newIdx ? ((nextOldFiber = oldFiber), (oldFiber = null)) : (nextOldFiber = oldFiber.sibling); var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); if (null === newFiber) { null === oldFiber && (oldFiber = nextOldFiber); break; } shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); null === previousNewFiber ? (resultingFirstChild = newFiber) : (previousNewFiber.sibling = newFiber); previousNewFiber = newFiber; oldFiber = nextOldFiber; } if (step.done) return ( deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild ); if (null === oldFiber) { for (; !step.done; newIdx++, step = newChildren.next()) (step = createChild(returnFiber, step.value, lanes)), null !== step && ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)), null === previousNewFiber ? (resultingFirstChild = step) : (previousNewFiber.sibling = step), (previousNewFiber = step)); isHydrating && pushTreeFork(returnFiber, newIdx); return resultingFirstChild; } for ( oldFiber = mapRemainingChildren(oldFiber); !step.done; newIdx++, step = newChildren.next() ) (step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes)), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), (currentFirstChild = placeChild(step, currentFirstChild, newIdx)), null === previousNewFiber ? (resultingFirstChild = step) : (previousNewFiber.sibling = step), (previousNewFiber = step)); shouldTrackSideEffects && oldFiber.forEach(function (child) { return deleteChild(returnFiber, child); }); isHydrating && pushTreeFork(returnFiber, newIdx); return resultingFirstChild; } function reconcileChildFibersImpl( returnFiber, currentFirstChild, newChild, lanes ) { "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { for (var key = newChild.key; null !== currentFirstChild; ) { if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { if (7 === currentFirstChild.tag) { deleteRemainingChildren( returnFiber, currentFirstChild.sibling ); lanes = useFiber( currentFirstChild, newChild.props.children ); lanes.return = returnFiber; returnFiber = lanes; break a; } } else if ( currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === currentFirstChild.type) ) { deleteRemainingChildren( returnFiber, currentFirstChild.sibling ); lanes = useFiber(currentFirstChild, newChild.props); coerceRef(lanes, newChild); lanes.return = returnFiber; returnFiber = lanes; break a; } deleteRemainingChildren(returnFiber, currentFirstChild); break; } else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), (lanes.return = returnFiber), (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes )), coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { for (key = newChild.key; null !== currentFirstChild; ) { if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation ) { deleteRemainingChildren( returnFiber, currentFirstChild.sibling ); lanes = useFiber(currentFirstChild, newChild.children || []); lanes.return = returnFiber; returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); break; } else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); lanes.return = returnFiber; returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( (key = newChild._init), (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, newChild, lanes ) ); } if (isArrayImpl(newChild)) return reconcileChildrenArray( returnFiber, currentFirstChild, newChild, lanes ); if (getIteratorFn(newChild)) { key = getIteratorFn(newChild); if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, newChild, lanes ); } if ("function" === typeof newChild.then) return reconcileChildFibersImpl( returnFiber, currentFirstChild, unwrapThenable(newChild), lanes ); if (newChild.$$typeof === REACT_CONTEXT_TYPE) return reconcileChildFibersImpl( returnFiber, currentFirstChild, readContextDuringReconciliation(returnFiber, newChild), lanes ); throwOnInvalidObjectType(returnFiber, newChild); } return ("string" === typeof newChild && "" !== newChild) || "number" === typeof newChild || "bigint" === typeof newChild ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), (lanes = useFiber(currentFirstChild, newChild)), (lanes.return = returnFiber), (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), (lanes.return = returnFiber), (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } return function (returnFiber, currentFirstChild, newChild, lanes) { try { thenableIndexCounter$1 = 0; var firstChildFiber = reconcileChildFibersImpl( returnFiber, currentFirstChild, newChild, lanes ); thenableState$1 = null; return firstChildFiber; } catch (x) { if (x === SuspenseException) throw x; var fiber = createFiberImplClass(29, x, null, returnFiber.mode); fiber.lanes = lanes; fiber.return = returnFiber; return fiber; } finally { } }; } var reconcileChildFibers = createChildReconciler(!0), mountChildFibers = createChildReconciler(!1), currentTreeHiddenStackCursor = createCursor(null), prevEntangledRenderLanesCursor = createCursor(0); function pushHiddenContext(fiber, context) { fiber = entangledRenderLanes; push(prevEntangledRenderLanesCursor, fiber); push(currentTreeHiddenStackCursor, context); entangledRenderLanes = fiber | context.baseLanes; } function reuseHiddenContextOnStack() { push(prevEntangledRenderLanesCursor, entangledRenderLanes); push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current); } function popHiddenContext() { entangledRenderLanes = prevEntangledRenderLanesCursor.current; pop(currentTreeHiddenStackCursor); pop(prevEntangledRenderLanesCursor); } var suspenseHandlerStackCursor = createCursor(null), shellBoundary = null; function pushPrimaryTreeSuspenseHandler(handler) { var current = handler.alternate; push(suspenseStackCursor, suspenseStackCursor.current & 1); push(suspenseHandlerStackCursor, handler); null === shellBoundary && (null === current || null !== currentTreeHiddenStackCursor.current ? (shellBoundary = handler) : null !== current.memoizedState && (shellBoundary = handler)); } function pushOffscreenSuspenseHandler(fiber) { if (22 === fiber.tag) { if ( (push(suspenseStackCursor, suspenseStackCursor.current), push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { var current = fiber.alternate; null !== current && null !== current.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); } function reuseSuspenseHandlerOnStack() { push(suspenseStackCursor, suspenseStackCursor.current); push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current); } function popSuspenseHandler(fiber) { pop(suspenseHandlerStackCursor); shellBoundary === fiber && (shellBoundary = null); pop(suspenseStackCursor); } var suspenseStackCursor = createCursor(0); function findFirstSuspended(row) { for (var node = row; null !== node; ) { if (13 === node.tag) { var state = node.memoizedState; if ( null !== state && ((state = state.dehydrated), null === state || "$?" === state.data || "$!" === state.data) ) return node; } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { if (0 !== (node.flags & 128)) return node; } else if (null !== node.child) { node.child.return = node; node = node.child; continue; } if (node === row) break; for (; null === node.sibling; ) { if (null === node.return || node.return === row) return null; node = node.return; } node.sibling.return = node.return; node = node.sibling; } return null; } var AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function () { var listeners = [], signal = (this.signal = { aborted: !1, addEventListener: function (type, listener) { listeners.push(listener); } }); this.abort = function () { signal.aborted = !0; listeners.forEach(function (listener) { return listener(); }); }; }, scheduleCallback$2 = Scheduler.unstable_scheduleCallback, NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { $$typeof: REACT_CONTEXT_TYPE, Consumer: null, Provider: null, _currentValue: null, _currentValue2: null, _threadCount: 0 }; function createCache() { return { controller: new AbortControllerLocal(), data: new Map(), refCount: 0 }; } function releaseCache(cache) { cache.refCount--; 0 === cache.refCount && scheduleCallback$2(NormalPriority, function () { cache.controller.abort(); }); } var currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null; function entangleAsyncAction(transition, thenable) { if (null === currentEntangledListeners) { var entangledListeners = (currentEntangledListeners = []); currentEntangledPendingCount = 0; currentEntangledLane = requestTransitionLane(); currentEntangledActionThenable = { status: "pending", value: void 0, then: function (resolve) { entangledListeners.push(resolve); } }; } currentEntangledPendingCount++; thenable.then(pingEngtangledActionScope, pingEngtangledActionScope); return thenable; } function pingEngtangledActionScope() { if ( 0 === --currentEntangledPendingCount && null !== currentEntangledListeners ) { null !== currentEntangledActionThenable && (currentEntangledActionThenable.status = "fulfilled"); var listeners = currentEntangledListeners; currentEntangledListeners = null; currentEntangledLane = 0; currentEntangledActionThenable = null; for (var i = 0; i < listeners.length; i++) (0, listeners[i])(); } } function chainThenableValue(thenable, result) { var listeners = [], thenableWithOverride = { status: "pending", value: null, reason: null, then: function (resolve) { listeners.push(resolve); } }; thenable.then( function () { thenableWithOverride.status = "fulfilled"; thenableWithOverride.value = result; for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result); }, function (error) { thenableWithOverride.status = "rejected"; thenableWithOverride.reason = error; for (error = 0; error < listeners.length; error++) (0, listeners[error])(void 0); } ); return thenableWithOverride; } var prevOnStartTransitionFinish = ReactSharedInternals.S; ReactSharedInternals.S = function (transition, returnValue) { "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && entangleAsyncAction(transition, returnValue); null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue); }; var resumedCache = createCursor(null); function peekCacheFromPool() { var cacheResumedFromPreviousRender = resumedCache.current; return null !== cacheResumedFromPreviousRender ? cacheResumedFromPreviousRender : workInProgressRoot.pooledCache; } function pushTransition(offscreenWorkInProgress, prevCachePool) { null === prevCachePool ? push(resumedCache, resumedCache.current) : push(resumedCache, prevCachePool.pool); } function getSuspendedCache() { var cacheFromPool = peekCacheFromPool(); return null === cacheFromPool ? null : { parent: CacheContext._currentValue, pool: cacheFromPool }; } var renderLanes = 0, currentlyRenderingFiber$1 = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1, shouldDoubleInvokeUserFnsInHooksDEV = !1, localIdCounter = 0, thenableIndexCounter = 0, thenableState = null, globalClientIdCounter = 0; function throwInvalidHookError() { throw Error(formatProdErrorMessage(321)); } function areHookInputsEqual(nextDeps, prevDeps) { if (null === prevDeps) return !1; for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) if (!objectIs(nextDeps[i], prevDeps[i])) return !1; return !0; } function renderWithHooks( current, workInProgress, Component, props, secondArg, nextRenderLanes ) { renderLanes = nextRenderLanes; currentlyRenderingFiber$1 = workInProgress; workInProgress.memoizedState = null; workInProgress.updateQueue = null; workInProgress.lanes = 0; ReactSharedInternals.H = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate; shouldDoubleInvokeUserFnsInHooksDEV = !1; nextRenderLanes = Component(props, secondArg); shouldDoubleInvokeUserFnsInHooksDEV = !1; didScheduleRenderPhaseUpdateDuringThisPass && (nextRenderLanes = renderWithHooksAgain( workInProgress, Component, props, secondArg )); finishRenderingHooks(current); return nextRenderLanes; } function finishRenderingHooks(current) { ReactSharedInternals.H = ContextOnlyDispatcher; var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; renderLanes = 0; workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdate = !1; thenableIndexCounter = 0; thenableState = null; if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300)); null === current || didReceiveUpdate || ((current = current.dependencies), null !== current && checkIfContextChanged(current) && (didReceiveUpdate = !0)); } function renderWithHooksAgain(workInProgress, Component, props, secondArg) { currentlyRenderingFiber$1 = workInProgress; var numberOfReRenders = 0; do { didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null); thenableIndexCounter = 0; didScheduleRenderPhaseUpdateDuringThisPass = !1; if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301)); numberOfReRenders += 1; workInProgressHook = currentHook = null; if (null != workInProgress.updateQueue) { var children = workInProgress.updateQueue; children.lastEffect = null; children.events = null; children.stores = null; null != children.memoCache && (children.memoCache.index = 0); } ReactSharedInternals.H = HooksDispatcherOnRerender; children = Component(props, secondArg); } while (didScheduleRenderPhaseUpdateDuringThisPass); return children; } function TransitionAwareHostComponent() { var dispatcher = ReactSharedInternals.H, maybeThenable = dispatcher.useState()[0]; maybeThenable = "function" === typeof maybeThenable.then ? useThenable(maybeThenable) : maybeThenable; dispatcher = dispatcher.useState()[0]; (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher && (currentlyRenderingFiber$1.flags |= 1024); return maybeThenable; } function checkDidRenderIdHook() { var didRenderIdHook = 0 !== localIdCounter; localIdCounter = 0; return didRenderIdHook; } function bailoutHooks(current, workInProgress, lanes) { workInProgress.updateQueue = current.updateQueue; workInProgress.flags &= -2053; current.lanes &= ~lanes; } function resetHooksOnUnwind(workInProgress) { if (didScheduleRenderPhaseUpdate) { for ( workInProgress = workInProgress.memoizedState; null !== workInProgress; ) { var queue = workInProgress.queue; null !== queue && (queue.pending = null); workInProgress = workInProgress.next; } didScheduleRenderPhaseUpdate = !1; } renderLanes = 0; workInProgressHook = currentHook = currentlyRenderingFiber$1 = null; didScheduleRenderPhaseUpdateDuringThisPass = !1; thenableIndexCounter = localIdCounter = 0; thenableState = null; } function mountWorkInProgressHook() { var hook = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; null === workInProgressHook ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook) : (workInProgressHook = workInProgressHook.next = hook); return workInProgressHook; } function updateWorkInProgressHook() { if (null === currentHook) { var nextCurrentHook = currentlyRenderingFiber$1.alternate; nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; } else nextCurrentHook = currentHook.next; var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next; if (null !== nextWorkInProgressHook) (workInProgressHook = nextWorkInProgressHook), (currentHook = nextCurrentHook); else { if (null === nextCurrentHook) { if (null === currentlyRenderingFiber$1.alternate) throw Error(formatProdErrorMessage(467)); throw Error(formatProdErrorMessage(310)); } currentHook = nextCurrentHook; nextCurrentHook = { memoizedState: currentHook.memoizedState, baseState: currentHook.baseState, baseQueue: currentHook.baseQueue, queue: currentHook.queue, next: null }; null === workInProgressHook ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = nextCurrentHook) : (workInProgressHook = workInProgressHook.next = nextCurrentHook); } return workInProgressHook; } var createFunctionComponentUpdateQueue; createFunctionComponentUpdateQueue = function () { return { lastEffect: null, events: null, stores: null, memoCache: null }; }; function useThenable(thenable) { var index = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); thenable = trackUsedThenable(thenableState, thenable, index); index = currentlyRenderingFiber$1; null === (null === workInProgressHook ? index.memoizedState : workInProgressHook.next) && ((index = index.alternate), (ReactSharedInternals.H = null === index || null === index.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate)); return thenable; } function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) return useThenable(usable); if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable); } throw Error(formatProdErrorMessage(438, String(usable))); } function useMemoCache(size) { var memoCache = null, updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { var current = currentlyRenderingFiber$1.alternate; null !== current && ((current = current.updateQueue), null !== current && ((current = current.memoCache), null != current && (memoCache = { data: current.data.map(function (array) { return array.slice(); }), index: 0 }))); } null == memoCache && (memoCache = { data: [], index: 0 }); null === updateQueue && ((updateQueue = createFunctionComponentUpdateQueue()), (currentlyRenderingFiber$1.updateQueue = updateQueue)); updateQueue.memoCache = memoCache; updateQueue = memoCache.data[memoCache.index]; if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0; current < size; current++ ) updateQueue[current] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } function basicStateReducer(state, action) { return "function" === typeof action ? action(state) : action; } function updateReducer(reducer) { var hook = updateWorkInProgressHook(); return updateReducerImpl(hook, currentHook, reducer); } function updateReducerImpl(hook, current, reducer) { var queue = hook.queue; if (null === queue) throw Error(formatProdErrorMessage(311)); queue.lastRenderedReducer = reducer; var baseQueue = hook.baseQueue, pendingQueue = queue.pending; if (null !== pendingQueue) { if (null !== baseQueue) { var baseFirst = baseQueue.next; baseQueue.next = pendingQueue.next; pendingQueue.next = baseFirst; } current.baseQueue = baseQueue = pendingQueue; queue.pending = null; } pendingQueue = hook.baseState; if (null === baseQueue) hook.memoizedState = pendingQueue; else { current = baseQueue.next; var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, didReadFromEntangledAsyncAction$56 = !1; do { var updateLane = update.lane & -536870913; if ( updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane ) { var revertLane = update.revertLane; if (0 === revertLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { lane: 0, revertLane: 0, action: update.action, hasEagerState: update.hasEagerState, eagerState: update.eagerState, next: null }), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction$56 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction$56 = !0); continue; } else (updateLane = { lane: 0, revertLane: update.revertLane, action: update.action, hasEagerState: update.hasEagerState, eagerState: update.eagerState, next: null }), null === newBaseQueueLast ? ((newBaseQueueFirst = newBaseQueueLast = updateLane), (baseFirst = pendingQueue)) : (newBaseQueueLast = newBaseQueueLast.next = updateLane), (currentlyRenderingFiber$1.lanes |= revertLane), (workInProgressRootSkippedLanes |= revertLane); updateLane = update.action; shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane); pendingQueue = update.hasEagerState ? update.eagerState : reducer(pendingQueue, updateLane); } else (revertLane = { lane: updateLane, revertLane: update.revertLane, action: update.action, hasEagerState: update.hasEagerState, eagerState: update.eagerState, next: null }), null === newBaseQueueLast ? ((newBaseQueueFirst = newBaseQueueLast = revertLane), (baseFirst = pendingQueue)) : (newBaseQueueLast = newBaseQueueLast.next = revertLane), (currentlyRenderingFiber$1.lanes |= updateLane), (workInProgressRootSkippedLanes |= updateLane); update = update.next; } while (null !== update && update !== current); null === newBaseQueueLast ? (baseFirst = pendingQueue) : (newBaseQueueLast.next = newBaseQueueFirst); if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), didReadFromEntangledAsyncAction$56 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; hook.memoizedState = pendingQueue; hook.baseState = baseFirst; hook.baseQueue = newBaseQueueLast; queue.lastRenderedState = pendingQueue; } null === baseQueue && (queue.lanes = 0); return [hook.memoizedState, queue.dispatch]; } function rerenderReducer(reducer) { var hook = updateWorkInProgressHook(), queue = hook.queue; if (null === queue) throw Error(formatProdErrorMessage(311)); queue.lastRenderedReducer = reducer; var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState; if (null !== lastRenderPhaseUpdate) { queue.pending = null; var update = (lastRenderPhaseUpdate = lastRenderPhaseUpdate.next); do (newState = reducer(newState, update.action)), (update = update.next); while (update !== lastRenderPhaseUpdate); objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); hook.memoizedState = newState; null === hook.baseQueue && (hook.baseState = newState); queue.lastRenderedState = newState; } return [newState, dispatch]; } function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { var fiber = currentlyRenderingFiber$1, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating; if (isHydrating$jscomp$0) { if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407)); getServerSnapshot = getServerSnapshot(); } else getServerSnapshot = getSnapshot(); var snapshotChanged = !objectIs( (currentHook || hook).memoizedState, getServerSnapshot ); snapshotChanged && ((hook.memoizedState = getServerSnapshot), (didReceiveUpdate = !0)); hook = hook.queue; updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [ subscribe ]); if ( hook.getSnapshot !== getSnapshot || snapshotChanged || (null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) ) { fiber.flags |= 2048; pushEffect( 9, updateStoreInstance.bind( null, fiber, hook, getServerSnapshot, getSnapshot ), { destroy: void 0 }, null ); if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349)); isHydrating$jscomp$0 || 0 !== (renderLanes & 60) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } return getServerSnapshot; } function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { fiber.flags |= 16384; fiber = { getSnapshot: getSnapshot, value: renderedSnapshot }; getSnapshot = currentlyRenderingFiber$1.updateQueue; null === getSnapshot ? ((getSnapshot = createFunctionComponentUpdateQueue()), (currentlyRenderingFiber$1.updateQueue = getSnapshot), (getSnapshot.stores = [fiber])) : ((renderedSnapshot = getSnapshot.stores), null === renderedSnapshot ? (getSnapshot.stores = [fiber]) : renderedSnapshot.push(fiber)); } function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { inst.value = nextSnapshot; inst.getSnapshot = getSnapshot; checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); } function subscribeToStore(fiber, inst, subscribe) { return subscribe(function () { checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); }); } function checkIfSnapshotChanged(inst) { var latestGetSnapshot = inst.getSnapshot; inst = inst.value; try { var nextValue = latestGetSnapshot(); return !objectIs(inst, nextValue); } catch (error) { return !0; } } function forceStoreRerender(fiber) { var root = enqueueConcurrentRenderForLane(fiber, 2); null !== root && scheduleUpdateOnFiber(root, fiber, 2); } function mountStateImpl(initialState) { var hook = mountWorkInProgressHook(); if ("function" === typeof initialState) { var initialStateInitializer = initialState; initialState = initialStateInitializer(); if (shouldDoubleInvokeUserFnsInHooksDEV) { setIsStrictModeForDevtools(!0); try { initialStateInitializer(); } finally { setIsStrictModeForDevtools(!1); } } } hook.memoizedState = hook.baseState = initialState; hook.queue = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: basicStateReducer, lastRenderedState: initialState }; return hook; } function updateOptimisticImpl(hook, current, passthrough, reducer) { hook.baseState = passthrough; return updateReducerImpl( hook, currentHook, "function" === typeof reducer ? reducer : basicStateReducer ); } function dispatchActionState( fiber, actionQueue, setPendingState, setState, payload ) { if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485)); fiber = actionQueue.action; if (null !== fiber) { var actionNode = { payload: payload, action: fiber, next: null, isTransition: !0, status: "pending", value: null, reason: null, listeners: [], then: function (listener) { actionNode.listeners.push(listener); } }; null !== ReactSharedInternals.T ? setPendingState(!0) : (actionNode.isTransition = !1); setState(actionNode); setPendingState = actionQueue.pending; null === setPendingState ? ((actionNode.next = actionQueue.pending = actionNode), runActionStateAction(actionQueue, actionNode)) : ((actionNode.next = setPendingState.next), (actionQueue.pending = setPendingState.next = actionNode)); } } function runActionStateAction(actionQueue, node) { var action = node.action, payload = node.payload, prevState = actionQueue.state; if (node.isTransition) { var prevTransition = ReactSharedInternals.T, currentTransition = {}; ReactSharedInternals.T = currentTransition; try { var returnValue = action(prevState, payload), onStartTransitionFinish = ReactSharedInternals.S; null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); handleActionReturnValue(actionQueue, node, returnValue); } catch (error) { onActionError(actionQueue, node, error); } finally { ReactSharedInternals.T = prevTransition; } } else try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); } catch (error$62) { onActionError(actionQueue, node, error$62); } } function handleActionReturnValue(actionQueue, node, returnValue) { null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then ? returnValue.then( function (nextState) { onActionSuccess(actionQueue, node, nextState); }, function (error) { return onActionError(actionQueue, node, error); } ) : onActionSuccess(actionQueue, node, returnValue); } function onActionSuccess(actionQueue, actionNode, nextState) { actionNode.status = "fulfilled"; actionNode.value = nextState; notifyActionListeners(actionNode); actionQueue.state = nextState; actionNode = actionQueue.pending; null !== actionNode && ((nextState = actionNode.next), nextState === actionNode ? (actionQueue.pending = null) : ((nextState = nextState.next), (actionNode.next = nextState), runActionStateAction(actionQueue, nextState))); } function onActionError(actionQueue, actionNode, error) { var last = actionQueue.pending; actionQueue.pending = null; if (null !== last) { last = last.next; do (actionNode.status = "rejected"), (actionNode.reason = error), notifyActionListeners(actionNode), (actionNode = actionNode.next); while (actionNode !== last); } actionQueue.action = null; } function notifyActionListeners(actionNode) { actionNode = actionNode.listeners; for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])(); } function actionStateReducer(oldState, newState) { return newState; } function mountActionState(action, initialStateProp) { if (isHydrating) { var ssrFormState = workInProgressRoot.formState; if (null !== ssrFormState) { a: { var JSCompiler_inline_result = currentlyRenderingFiber$1; if (isHydrating) { if (nextHydratableInstance) { b: { var JSCompiler_inline_result$jscomp$0 = nextHydratableInstance; for ( var inRootOrSingleton = rootOrSingletonContext; 8 !== JSCompiler_inline_result$jscomp$0.nodeType; ) { if (!inRootOrSingleton) { JSCompiler_inline_result$jscomp$0 = null; break b; } JSCompiler_inline_result$jscomp$0 = getNextHydratable( JSCompiler_inline_result$jscomp$0.nextSibling ); if (null === JSCompiler_inline_result$jscomp$0) { JSCompiler_inline_result$jscomp$0 = null; break b; } } inRootOrSingleton = JSCompiler_inline_result$jscomp$0.data; JSCompiler_inline_result$jscomp$0 = "F!" === inRootOrSingleton || "F" === inRootOrSingleton ? JSCompiler_inline_result$jscomp$0 : null; } if (JSCompiler_inline_result$jscomp$0) { nextHydratableInstance = getNextHydratable( JSCompiler_inline_result$jscomp$0.nextSibling ); JSCompiler_inline_result = "F!" === JSCompiler_inline_result$jscomp$0.data; break a; } } throwOnHydrationMismatch(JSCompiler_inline_result); } JSCompiler_inline_result = !1; } JSCompiler_inline_result && (initialStateProp = ssrFormState[0]); } } ssrFormState = mountWorkInProgressHook(); ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp; JSCompiler_inline_result = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: actionStateReducer, lastRenderedState: initialStateProp }; ssrFormState.queue = JSCompiler_inline_result; ssrFormState = dispatchSetState.bind( null, currentlyRenderingFiber$1, JSCompiler_inline_result ); JSCompiler_inline_result.dispatch = ssrFormState; JSCompiler_inline_result = mountStateImpl(!1); inRootOrSingleton = dispatchOptimisticSetState.bind( null, currentlyRenderingFiber$1, !1, JSCompiler_inline_result.queue ); JSCompiler_inline_result = mountWorkInProgressHook(); JSCompiler_inline_result$jscomp$0 = { state: initialStateProp, dispatch: null, action: action, pending: null }; JSCompiler_inline_result.queue = JSCompiler_inline_result$jscomp$0; ssrFormState = dispatchActionState.bind( null, currentlyRenderingFiber$1, JSCompiler_inline_result$jscomp$0, inRootOrSingleton, ssrFormState ); JSCompiler_inline_result$jscomp$0.dispatch = ssrFormState; JSCompiler_inline_result.memoizedState = action; return [initialStateProp, ssrFormState, !1]; } function updateActionState(action) { var stateHook = updateWorkInProgressHook(); return updateActionStateImpl(stateHook, currentHook, action); } function updateActionStateImpl(stateHook, currentStateHook, action) { currentStateHook = updateReducerImpl( stateHook, currentStateHook, actionStateReducer )[0]; stateHook = updateReducer(basicStateReducer)[0]; currentStateHook = "object" === typeof currentStateHook && null !== currentStateHook && "function" === typeof currentStateHook.then ? useThenable(currentStateHook) : currentStateHook; var actionQueueHook = updateWorkInProgressHook(), actionQueue = actionQueueHook.queue, dispatch = actionQueue.dispatch; action !== actionQueueHook.memoizedState && ((currentlyRenderingFiber$1.flags |= 2048), pushEffect( 9, actionStateActionEffect.bind(null, actionQueue, action), { destroy: void 0 }, null )); return [currentStateHook, dispatch, stateHook]; } function actionStateActionEffect(actionQueue, action) { actionQueue.action = action; } function rerenderActionState(action) { var stateHook = updateWorkInProgressHook(), currentStateHook = currentHook; if (null !== currentStateHook) return updateActionStateImpl(stateHook, currentStateHook, action); updateWorkInProgressHook(); stateHook = stateHook.memoizedState; currentStateHook = updateWorkInProgressHook(); var dispatch = currentStateHook.queue.dispatch; currentStateHook.memoizedState = action; return [stateHook, dispatch, !1]; } function pushEffect(tag, create, inst, deps) { tag = { tag: tag, create: create, inst: inst, deps: deps, next: null }; create = currentlyRenderingFiber$1.updateQueue; null === create && ((create = createFunctionComponentUpdateQueue()), (currentlyRenderingFiber$1.updateQueue = create)); inst = create.lastEffect; null === inst ? (create.lastEffect = tag.next = tag) : ((deps = inst.next), (inst.next = tag), (tag.next = deps), (create.lastEffect = tag)); return tag; } function updateRef() { return updateWorkInProgressHook().memoizedState; } function mountEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = mountWorkInProgressHook(); currentlyRenderingFiber$1.flags |= fiberFlags; hook.memoizedState = pushEffect( 1 | hookFlags, create, { destroy: void 0 }, void 0 === deps ? null : deps ); } function updateEffectImpl(fiberFlags, hookFlags, create, deps) { var hook = updateWorkInProgressHook(); deps = void 0 === deps ? null : deps; var inst = hook.memoizedState.inst; null !== currentHook && null !== deps && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? (hook.memoizedState = pushEffect(hookFlags, create, inst, deps)) : ((currentlyRenderingFiber$1.flags |= fiberFlags), (hook.memoizedState = pushEffect(1 | hookFlags, create, inst, deps))); } function mountEffect(create, deps) { mountEffectImpl(8390656, 8, create, deps); } function updateEffect(create, deps) { updateEffectImpl(2048, 8, create, deps); } function updateInsertionEffect(create, deps) { return updateEffectImpl(4, 2, create, deps); } function updateLayoutEffect(create, deps) { return updateEffectImpl(4, 4, create, deps); } function imperativeHandleEffect(create, ref) { if ("function" === typeof ref) { create = create(); var refCleanup = ref(create); return function () { "function" === typeof refCleanup ? refCleanup() : ref(null); }; } if (null !== ref && void 0 !== ref) return ( (create = create()), (ref.current = create), function () { ref.current = null; } ); } function updateImperativeHandle(ref, create, deps) { deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); } function mountDebugValue() {} function updateCallback(callback, deps) { var hook = updateWorkInProgressHook(); deps = void 0 === deps ? null : deps; var prevState = hook.memoizedState; if (null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; hook.memoizedState = [callback, deps]; return callback; } function updateMemo(nextCreate, deps) { var hook = updateWorkInProgressHook(); deps = void 0 === deps ? null : deps; var prevState = hook.memoizedState; if (null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; prevState = nextCreate(); if (shouldDoubleInvokeUserFnsInHooksDEV) { setIsStrictModeForDevtools(!0); try { nextCreate(); } finally { setIsStrictModeForDevtools(!1); } } hook.memoizedState = [prevState, deps]; return prevState; } function mountDeferredValueImpl(hook, value, initialValue) { if (void 0 === initialValue || 0 !== (renderLanes & 1073741824)) return (hook.memoizedState = value); hook.memoizedState = initialValue; hook = requestDeferredLane(); currentlyRenderingFiber$1.lanes |= hook; workInProgressRootSkippedLanes |= hook; return initialValue; } function updateDeferredValueImpl(hook, prevValue, value, initialValue) { if (objectIs(value, prevValue)) return value; if (null !== currentTreeHiddenStackCursor.current) return ( (hook = mountDeferredValueImpl(hook, value, initialValue)), objectIs(hook, prevValue) || (didReceiveUpdate = !0), hook ); if (0 === (renderLanes & 42)) return (didReceiveUpdate = !0), (hook.memoizedState = value); hook = requestDeferredLane(); currentlyRenderingFiber$1.lanes |= hook; workInProgressRootSkippedLanes |= hook; return prevValue; } function startTransition(fiber, queue, pendingState, finishedState, callback) { var previousPriority = ReactDOMSharedInternals.p; ReactDOMSharedInternals.p = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; var prevTransition = ReactSharedInternals.T, currentTransition = {}; ReactSharedInternals.T = currentTransition; dispatchOptimisticSetState(fiber, !1, queue, pendingState); try { var returnValue = callback(), onStartTransitionFinish = ReactSharedInternals.S; null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); if ( null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then ) { var thenableForFinishedState = chainThenableValue( returnValue, finishedState ); dispatchSetStateInternal( fiber, queue, thenableForFinishedState, requestUpdateLane(fiber) ); } else dispatchSetStateInternal( fiber, queue, finishedState, requestUpdateLane(fiber) ); } catch (error) { dispatchSetStateInternal( fiber, queue, { then: function () {}, status: "rejected", reason: error }, requestUpdateLane() ); } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition); } } function noop$3() {} function startHostTransition(formFiber, pendingState, action, formData) { if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476)); var queue = ensureFormComponentIsStateful(formFiber).queue; startTransition( formFiber, queue, pendingState, sharedNotPendingObject, null === action ? noop$3 : function () { requestFormReset$2(formFiber); return action(formData); } ); } function ensureFormComponentIsStateful(formFiber) { var existingStateHook = formFiber.memoizedState; if (null !== existingStateHook) return existingStateHook; existingStateHook = { memoizedState: sharedNotPendingObject, baseState: sharedNotPendingObject, baseQueue: null, queue: { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: basicStateReducer, lastRenderedState: sharedNotPendingObject }, next: null }; var initialResetState = {}; existingStateHook.next = { memoizedState: initialResetState, baseState: initialResetState, baseQueue: null, queue: { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: basicStateReducer, lastRenderedState: initialResetState }, next: null }; formFiber.memoizedState = existingStateHook; formFiber = formFiber.alternate; null !== formFiber && (formFiber.memoizedState = existingStateHook); return existingStateHook; } function requestFormReset$2(formFiber) { var resetStateQueue = ensureFormComponentIsStateful(formFiber).next.queue; dispatchSetStateInternal(formFiber, resetStateQueue, {}, requestUpdateLane()); } function useHostTransitionStatus() { return readContext(HostTransitionContext); } function updateId() { return updateWorkInProgressHook().memoizedState; } function updateRefresh() { return updateWorkInProgressHook().memoizedState; } function refreshCache(fiber) { for (var provider = fiber.return; null !== provider; ) { switch (provider.tag) { case 24: case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); var root$65 = enqueueUpdate(provider, fiber, lane); null !== root$65 && (scheduleUpdateOnFiber(root$65, provider, lane), entangleTransitions(root$65, provider, lane)); provider = { cache: createCache() }; fiber.payload = provider; return; } provider = provider.return; } } function dispatchReducerAction(fiber, queue, action) { var lane = requestUpdateLane(); action = { lane: lane, revertLane: 0, action: action, hasEagerState: !1, eagerState: null, next: null }; isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, action) : ((action = enqueueConcurrentHookUpdate(fiber, queue, action, lane)), null !== action && (scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane))); markStateUpdateScheduled(fiber, lane); } function dispatchSetState(fiber, queue, action) { var lane = requestUpdateLane(); dispatchSetStateInternal(fiber, queue, action, lane); markStateUpdateScheduled(fiber, lane); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { lane: lane, revertLane: 0, action: action, hasEagerState: !1, eagerState: null, next: null }; if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update); else { var alternate = fiber.alternate; if ( 0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && ((alternate = queue.lastRenderedReducer), null !== alternate) ) try { var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action); update.hasEagerState = !0; update.eagerState = eagerState; if (objectIs(eagerState, currentState)) return ( enqueueUpdate$1(fiber, queue, update, 0), null === workInProgressRoot && finishQueueingConcurrentUpdates(), !1 ); } catch (error) { } finally { } action = enqueueConcurrentHookUpdate(fiber, queue, update, lane); if (null !== action) return ( scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), !0 ); } return !1; } function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) { action = { lane: 2, revertLane: requestTransitionLane(), action: action, hasEagerState: !1, eagerState: null, next: null }; if (isRenderPhaseUpdate(fiber)) { if (throwIfDuringRender) throw Error(formatProdErrorMessage(479)); } else (throwIfDuringRender = enqueueConcurrentHookUpdate( fiber, queue, action, 2 )), null !== throwIfDuringRender && scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2); markStateUpdateScheduled(fiber, 2); } function isRenderPhaseUpdate(fiber) { var alternate = fiber.alternate; return ( fiber === currentlyRenderingFiber$1 || (null !== alternate && alternate === currentlyRenderingFiber$1) ); } function enqueueRenderPhaseUpdate(queue, update) { didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; var pending = queue.pending; null === pending ? (update.next = update) : ((update.next = pending.next), (pending.next = update)); queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { if (0 !== (lane & 4194176)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; queue.lanes = lane; markRootEntangled(root, lane); } } var ContextOnlyDispatcher = { readContext: readContext, use: use, useCallback: throwInvalidHookError, useContext: throwInvalidHookError, useEffect: throwInvalidHookError, useImperativeHandle: throwInvalidHookError, useLayoutEffect: throwInvalidHookError, useInsertionEffect: throwInvalidHookError, useMemo: throwInvalidHookError, useReducer: throwInvalidHookError, useRef: throwInvalidHookError, useState: throwInvalidHookError, useDebugValue: throwInvalidHookError, useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, useId: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; ContextOnlyDispatcher.useFormState = throwInvalidHookError; ContextOnlyDispatcher.useActionState = throwInvalidHookError; ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, useCallback: function (callback, deps) { mountWorkInProgressHook().memoizedState = [ callback, void 0 === deps ? null : deps ]; return callback; }, useContext: readContext, useEffect: mountEffect, useImperativeHandle: function (ref, create, deps) { deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; mountEffectImpl( 4194308, 4, imperativeHandleEffect.bind(null, create, ref), deps ); }, useLayoutEffect: function (create, deps) { return mountEffectImpl(4194308, 4, create, deps); }, useInsertionEffect: function (create, deps) { mountEffectImpl(4, 2, create, deps); }, useMemo: function (nextCreate, deps) { var hook = mountWorkInProgressHook(); deps = void 0 === deps ? null : deps; var nextValue = nextCreate(); if (shouldDoubleInvokeUserFnsInHooksDEV) { setIsStrictModeForDevtools(!0); try { nextCreate(); } finally { setIsStrictModeForDevtools(!1); } } hook.memoizedState = [nextValue, deps]; return nextValue; }, useReducer: function (reducer, initialArg, init) { var hook = mountWorkInProgressHook(); if (void 0 !== init) { var initialState = init(initialArg); if (shouldDoubleInvokeUserFnsInHooksDEV) { setIsStrictModeForDevtools(!0); try { init(initialArg); } finally { setIsStrictModeForDevtools(!1); } } } else initialState = initialArg; hook.memoizedState = hook.baseState = initialState; reducer = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: reducer, lastRenderedState: initialState }; hook.queue = reducer; reducer = reducer.dispatch = dispatchReducerAction.bind( null, currentlyRenderingFiber$1, reducer ); return [hook.memoizedState, reducer]; }, useRef: function (initialValue) { var hook = mountWorkInProgressHook(); initialValue = { current: initialValue }; return (hook.memoizedState = initialValue); }, useState: function (initialState) { initialState = mountStateImpl(initialState); var queue = initialState.queue, dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue); queue.dispatch = dispatch; return [initialState.memoizedState, dispatch]; }, useDebugValue: mountDebugValue, useDeferredValue: function (value, initialValue) { var hook = mountWorkInProgressHook(); return mountDeferredValueImpl(hook, value, initialValue); }, useTransition: function () { var stateHook = mountStateImpl(!1); stateHook = startTransition.bind( null, currentlyRenderingFiber$1, stateHook.queue, !0, !1 ); mountWorkInProgressHook().memoizedState = stateHook; return [!1, stateHook]; }, useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) { var fiber = currentlyRenderingFiber$1, hook = mountWorkInProgressHook(); if (isHydrating) { if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407)); getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349)); 0 !== (workInProgressRootRenderLanes & 60) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; var inst = { value: getServerSnapshot, getSnapshot: getSnapshot }; hook.queue = inst; mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [ subscribe ]); fiber.flags |= 2048; pushEffect( 9, updateStoreInstance.bind( null, fiber, inst, getServerSnapshot, getSnapshot ), { destroy: void 0 }, null ); return getServerSnapshot; }, useId: function () { var hook = mountWorkInProgressHook(), identifierPrefix = workInProgressRoot.identifierPrefix; if (isHydrating) { var JSCompiler_inline_result = treeContextOverflow; var idWithLeadingBit = treeContextId; JSCompiler_inline_result = ( idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1)) ).toString(32) + JSCompiler_inline_result; identifierPrefix = ":" + identifierPrefix + "R" + JSCompiler_inline_result; JSCompiler_inline_result = localIdCounter++; 0 < JSCompiler_inline_result && (identifierPrefix += "H" + JSCompiler_inline_result.toString(32)); identifierPrefix += ":"; } else (JSCompiler_inline_result = globalClientIdCounter++), (identifierPrefix = ":" + identifierPrefix + "r" + JSCompiler_inline_result.toString(32) + ":"); return (hook.memoizedState = identifierPrefix); }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); } }; HooksDispatcherOnMount.useMemoCache = useMemoCache; HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; HooksDispatcherOnMount.useFormState = mountActionState; HooksDispatcherOnMount.useActionState = mountActionState; HooksDispatcherOnMount.useOptimistic = function (passthrough) { var hook = mountWorkInProgressHook(); hook.memoizedState = hook.baseState = passthrough; var queue = { pending: null, lanes: 0, dispatch: null, lastRenderedReducer: null, lastRenderedState: null }; hook.queue = queue; hook = dispatchOptimisticSetState.bind( null, currentlyRenderingFiber$1, !0, queue ); queue.dispatch = hook; return [passthrough, hook]; }; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, useCallback: updateCallback, useContext: readContext, useEffect: updateEffect, useImperativeHandle: updateImperativeHandle, useInsertionEffect: updateInsertionEffect, useLayoutEffect: updateLayoutEffect, useMemo: updateMemo, useReducer: updateReducer, useRef: updateRef, useState: function () { return updateReducer(basicStateReducer); }, useDebugValue: mountDebugValue, useDeferredValue: function (value, initialValue) { var hook = updateWorkInProgressHook(); return updateDeferredValueImpl( hook, currentHook.memoizedState, value, initialValue ); }, useTransition: function () { var booleanOrThenable = updateReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; return [ "boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), start ]; }, useSyncExternalStore: updateSyncExternalStore, useId: updateId }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; HooksDispatcherOnUpdate.useFormState = updateActionState; HooksDispatcherOnUpdate.useActionState = updateActionState; HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); }; var HooksDispatcherOnRerender = { readContext: readContext, use: use, useCallback: updateCallback, useContext: readContext, useEffect: updateEffect, useImperativeHandle: updateImperativeHandle, useInsertionEffect: updateInsertionEffect, useLayoutEffect: updateLayoutEffect, useMemo: updateMemo, useReducer: rerenderReducer, useRef: updateRef, useState: function () { return rerenderReducer(basicStateReducer); }, useDebugValue: mountDebugValue, useDeferredValue: function (value, initialValue) { var hook = updateWorkInProgressHook(); return null === currentHook ? mountDeferredValueImpl(hook, value, initialValue) : updateDeferredValueImpl( hook, currentHook.memoizedState, value, initialValue ); }, useTransition: function () { var booleanOrThenable = rerenderReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; return [ "boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), start ]; }, useSyncExternalStore: updateSyncExternalStore, useId: updateId }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; HooksDispatcherOnRerender.useFormState = rerenderActionState; HooksDispatcherOnRerender.useActionState = rerenderActionState; HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { var hook = updateWorkInProgressHook(); if (null !== currentHook) return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; }; function applyDerivedStateFromProps( workInProgress, ctor, getDerivedStateFromProps, nextProps ) { ctor = workInProgress.memoizedState; getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor); getDerivedStateFromProps = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? ctor : assign({}, ctor, getDerivedStateFromProps); workInProgress.memoizedState = getDerivedStateFromProps; 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = getDerivedStateFromProps); } var classComponentUpdater = { isMounted: function (component) { return (component = component._reactInternals) ? getNearestMountedFiber(component) === component : !1; }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), update = createUpdate(lane); update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); markStateUpdateScheduled(inst, lane); }, enqueueReplaceState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), update = createUpdate(lane); update.tag = 1; update.payload = payload; void 0 !== callback && null !== callback && (update.callback = callback); payload = enqueueUpdate(inst, update, lane); null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); markStateUpdateScheduled(inst, lane); }, enqueueForceUpdate: function (inst, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), update = createUpdate(lane); update.tag = 2; void 0 !== callback && null !== callback && (update.callback = callback); callback = enqueueUpdate(inst, update, lane); null !== callback && (scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane)); null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markForceUpdateScheduled && injectedProfilingHooks.markForceUpdateScheduled(inst, lane); } }; function checkShouldComponentUpdate( workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext ) { workInProgress = workInProgress.stateNode; return "function" === typeof workInProgress.shouldComponentUpdate ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; } function callComponentWillReceiveProps( workInProgress, instance, newProps, nextContext ) { workInProgress = instance.state; "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); } function resolveClassComponentProps(Component, baseProps) { var newProps = baseProps; if ("ref" in baseProps) { newProps = {}; for (var propName in baseProps) "ref" !== propName && (newProps[propName] = baseProps[propName]); } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); for (var propName$69 in Component) void 0 === newProps[propName$69] && (newProps[propName$69] = Component[propName$69]); } return newProps; } var reportGlobalError = "function" === typeof reportError ? reportError : function (error) { if ( "object" === typeof window && "function" === typeof window.ErrorEvent ) { var event = new window.ErrorEvent("error", { bubbles: !0, cancelable: !0, message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error), error: error }); if (!window.dispatchEvent(event)) return; } else if ( "object" === typeof process && "function" === typeof process.emit ) { process.emit("uncaughtException", error); return; } console.error(error); }; function defaultOnUncaughtError(error) { reportGlobalError(error); } function defaultOnCaughtError(error) { console.error(error); } function defaultOnRecoverableError(error) { reportGlobalError(error); } function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); } catch (e$70) { setTimeout(function () { throw e$70; }); } } function logCaughtError(root, boundary, errorInfo) { try { var onCaughtError = root.onCaughtError; onCaughtError(errorInfo.value, { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); } catch (e$71) { setTimeout(function () { throw e$71; }); } } function createRootErrorUpdate(root, errorInfo, lane) { lane = createUpdate(lane); lane.tag = 3; lane.payload = { element: null }; lane.callback = function () { logUncaughtError(root, errorInfo); }; return lane; } function createClassErrorUpdate(lane) { lane = createUpdate(lane); lane.tag = 3; return lane; } function initializeClassErrorUpdate(update, root, fiber, errorInfo) { var getDerivedStateFromError = fiber.type.getDerivedStateFromError; if ("function" === typeof getDerivedStateFromError) { var error = errorInfo.value; update.payload = function () { return getDerivedStateFromError(error); }; update.callback = function () { logCaughtError(root, fiber, errorInfo); }; } var inst = fiber.stateNode; null !== inst && "function" === typeof inst.componentDidCatch && (update.callback = function () { logCaughtError(root, fiber, errorInfo); "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this])) : legacyErrorBoundariesThatAlreadyFailed.add(this)); var stack = errorInfo.stack; this.componentDidCatch(errorInfo.value, { componentStack: null !== stack ? stack : "" }); }); } function throwException( root, returnFiber, sourceFiber, value, rootRenderLanes ) { sourceFiber.flags |= 32768; isDevToolsPresent && restorePendingUpdaters(root, rootRenderLanes); if ( null !== value && "object" === typeof value && "function" === typeof value.then ) { returnFiber = sourceFiber.alternate; null !== returnFiber && propagateParentContextChanges( returnFiber, sourceFiber, rootRenderLanes, !0 ); sourceFiber = suspenseHandlerStackCursor.current; if (null !== sourceFiber) { switch (sourceFiber.tag) { case 13: return ( null === shellBoundary ? renderDidSuspendDelayIfPossible() : null === sourceFiber.alternate && 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3), (sourceFiber.flags &= -257), (sourceFiber.flags |= 65536), (sourceFiber.lanes = rootRenderLanes), value === noopSuspenseyCommitThenable ? (sourceFiber.flags |= 16384) : ((returnFiber = sourceFiber.updateQueue), null === returnFiber ? (sourceFiber.updateQueue = new Set([value])) : returnFiber.add(value), attachPingListener(root, value, rootRenderLanes)), !1 ); case 22: return ( (sourceFiber.flags |= 65536), value === noopSuspenseyCommitThenable ? (sourceFiber.flags |= 16384) : ((returnFiber = sourceFiber.updateQueue), null === returnFiber ? ((returnFiber = { transitions: null, markerInstances: null, retryQueue: new Set([value]) }), (sourceFiber.updateQueue = returnFiber)) : ((sourceFiber = returnFiber.retryQueue), null === sourceFiber ? (returnFiber.retryQueue = new Set([value])) : sourceFiber.add(value)), attachPingListener(root, value, rootRenderLanes)), !1 ); } throw Error(formatProdErrorMessage(435, sourceFiber.tag)); } attachPingListener(root, value, rootRenderLanes); renderDidSuspendDelayIfPossible(); return !1; } if (isHydrating) return ( (returnFiber = suspenseHandlerStackCursor.current), null !== returnFiber ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256), (returnFiber.flags |= 65536), (returnFiber.lanes = rootRenderLanes), value !== HydrationMismatchException && ((root = Error(formatProdErrorMessage(422), { cause: value })), queueHydrationError(createCapturedValueAtFiber(root, sourceFiber)))) : (value !== HydrationMismatchException && ((returnFiber = Error(formatProdErrorMessage(423), { cause: value })), queueHydrationError( createCapturedValueAtFiber(returnFiber, sourceFiber) )), (root = root.current.alternate), (root.flags |= 65536), (rootRenderLanes &= -rootRenderLanes), (root.lanes |= rootRenderLanes), (value = createCapturedValueAtFiber(value, sourceFiber)), (rootRenderLanes = createRootErrorUpdate( root.stateNode, value, rootRenderLanes )), enqueueCapturedUpdate(root, rootRenderLanes), 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2)), !1 ); var wrapperError = Error(formatProdErrorMessage(520), { cause: value }); wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber); null === workInProgressRootConcurrentErrors ? (workInProgressRootConcurrentErrors = [wrapperError]) : workInProgressRootConcurrentErrors.push(wrapperError); 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2); if (null === returnFiber) return !0; value = createCapturedValueAtFiber(value, sourceFiber); sourceFiber = returnFiber; do { switch (sourceFiber.tag) { case 3: return ( (sourceFiber.flags |= 65536), (root = rootRenderLanes & -rootRenderLanes), (sourceFiber.lanes |= root), (root = createRootErrorUpdate(sourceFiber.stateNode, value, root)), enqueueCapturedUpdate(sourceFiber, root), !1 ); case 1: if ( ((returnFiber = sourceFiber.type), (wrapperError = sourceFiber.stateNode), 0 === (sourceFiber.flags & 128) && ("function" === typeof returnFiber.getDerivedStateFromError || (null !== wrapperError && "function" === typeof wrapperError.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError))))) ) return ( (sourceFiber.flags |= 65536), (rootRenderLanes &= -rootRenderLanes), (sourceFiber.lanes |= rootRenderLanes), (rootRenderLanes = createClassErrorUpdate(rootRenderLanes)), initializeClassErrorUpdate( rootRenderLanes, root, sourceFiber, value ), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), !1 ); } sourceFiber = sourceFiber.return; } while (null !== sourceFiber); return !1; } var SelectiveHydrationException = Error(formatProdErrorMessage(461)), didReceiveUpdate = !1; function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers( workInProgress, current.child, nextChildren, renderLanes ); } function updateForwardRef( current, workInProgress, Component, nextProps, renderLanes ) { Component = Component.render; var ref = workInProgress.ref; if ("ref" in nextProps) { var propsWithoutRef = {}; for (var key in nextProps) "ref" !== key && (propsWithoutRef[key] = nextProps[key]); } else propsWithoutRef = nextProps; prepareToReadContext(workInProgress); markComponentRenderStarted(workInProgress); nextProps = renderWithHooks( current, workInProgress, Component, propsWithoutRef, ref, renderLanes ); key = checkDidRenderIdHook(); markComponentRenderStopped(); if (null !== current && !didReceiveUpdate) return ( bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) ); isHydrating && key && pushMaterializedTreeId(workInProgress); workInProgress.flags |= 1; reconcileChildren(current, workInProgress, nextProps, renderLanes); return workInProgress.child; } function updateMemoComponent( current, workInProgress, Component, nextProps, renderLanes ) { if (null === current) { var type = Component.type; if ( "function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare ) return ( (workInProgress.tag = 15), (workInProgress.type = type), updateSimpleMemoComponent( current, workInProgress, type, nextProps, renderLanes ) ); current = createFiberFromTypeAndProps( Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes ); current.ref = workInProgress.ref; current.return = workInProgress; return (workInProgress.child = current); } type = current.child; if (!checkScheduledUpdateOrContext(current, renderLanes)) { var prevProps = type.memoizedProps; Component = Component.compare; Component = null !== Component ? Component : shallowEqual; if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } workInProgress.flags |= 1; current = createWorkInProgress(type, nextProps); current.ref = workInProgress.ref; current.return = workInProgress; return (workInProgress.child = current); } function updateSimpleMemoComponent( current, workInProgress, Component, nextProps, renderLanes ) { if (null !== current) { var prevProps = current.memoizedProps; if ( shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref ) if ( ((didReceiveUpdate = !1), (workInProgress.pendingProps = nextProps = prevProps), checkScheduledUpdateOrContext(current, renderLanes)) ) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0); else return ( (workInProgress.lanes = current.lanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) ); } return updateFunctionComponent( current, workInProgress, Component, nextProps, renderLanes ); } function updateOffscreenComponent(current, workInProgress, renderLanes) { var nextProps = workInProgress.pendingProps, nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; markRef(current, workInProgress); if ("hidden" === nextProps.mode || nextIsDetached) { if (0 !== (workInProgress.flags & 128)) { nextProps = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes; if (null !== current) { nextChildren = workInProgress.child = current.child; for (nextIsDetached = 0; null !== nextChildren; ) (nextIsDetached = nextIsDetached | nextChildren.lanes | nextChildren.childLanes), (nextChildren = nextChildren.sibling); workInProgress.childLanes = nextIsDetached & ~nextProps; } else (workInProgress.childLanes = 0), (workInProgress.child = null); return deferHiddenOffscreenComponent( current, workInProgress, nextProps, renderLanes ); } if (0 !== (renderLanes & 536870912)) (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }), null !== current && pushTransition( workInProgress, null !== prevState ? prevState.cachePool : null ), null !== prevState ? pushHiddenContext(workInProgress, prevState) : reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress); else return ( (workInProgress.lanes = workInProgress.childLanes = 536870912), deferHiddenOffscreenComponent( current, workInProgress, null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, renderLanes ) ); } else null !== prevState ? (pushTransition(workInProgress, prevState.cachePool), pushHiddenContext(workInProgress, prevState), reuseSuspenseHandlerOnStack(workInProgress), (workInProgress.memoizedState = null)) : (null !== current && pushTransition(workInProgress, null), reuseHiddenContextOnStack(), reuseSuspenseHandlerOnStack(workInProgress)); reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; } function deferHiddenOffscreenComponent( current, workInProgress, nextBaseLanes, renderLanes ) { var JSCompiler_inline_result = peekCacheFromPool(); JSCompiler_inline_result = null === JSCompiler_inline_result ? null : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result }; workInProgress.memoizedState = { baseLanes: nextBaseLanes, cachePool: JSCompiler_inline_result }; null !== current && pushTransition(workInProgress, null); reuseHiddenContextOnStack(); pushOffscreenSuspenseHandler(workInProgress); null !== current && propagateParentContextChanges(current, workInProgress, renderLanes, !0); return null; } function markRef(current, workInProgress) { var ref = workInProgress.ref; if (null === ref) null !== current && null !== current.ref && (workInProgress.flags |= 2097664); else { if ("function" !== typeof ref && "object" !== typeof ref) throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) workInProgress.flags |= 2097664; } } function updateFunctionComponent( current, workInProgress, Component, nextProps, renderLanes ) { prepareToReadContext(workInProgress); markComponentRenderStarted(workInProgress); Component = renderWithHooks( current, workInProgress, Component, nextProps, void 0, renderLanes ); nextProps = checkDidRenderIdHook(); markComponentRenderStopped(); if (null !== current && !didReceiveUpdate) return ( bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) ); isHydrating && nextProps && pushMaterializedTreeId(workInProgress); workInProgress.flags |= 1; reconcileChildren(current, workInProgress, Component, renderLanes); return workInProgress.child; } function replayFunctionComponent( current, workInProgress, nextProps, Component, secondArg, renderLanes ) { prepareToReadContext(workInProgress); markComponentRenderStarted(workInProgress); workInProgress.updateQueue = null; nextProps = renderWithHooksAgain( workInProgress, Component, nextProps, secondArg ); finishRenderingHooks(current); Component = checkDidRenderIdHook(); markComponentRenderStopped(); if (null !== current && !didReceiveUpdate) return ( bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) ); isHydrating && Component && pushMaterializedTreeId(workInProgress); workInProgress.flags |= 1; reconcileChildren(current, workInProgress, nextProps, renderLanes); return workInProgress.child; } function updateClassComponent( current, workInProgress, Component, nextProps, renderLanes ) { prepareToReadContext(workInProgress); if (null === workInProgress.stateNode) { var context = emptyContextObject, contextType = Component.contextType; "object" === typeof contextType && null !== contextType && (context = readContext(contextType)); context = new Component(nextProps, context); workInProgress.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null; context.updater = classComponentUpdater; workInProgress.stateNode = context; context._reactInternals = workInProgress; context = workInProgress.stateNode; context.props = nextProps; context.state = workInProgress.memoizedState; context.refs = {}; initializeUpdateQueue(workInProgress); contextType = Component.contextType; context.context = "object" === typeof contextType && null !== contextType ? readContext(contextType) : emptyContextObject; context.state = workInProgress.memoizedState; contextType = Component.getDerivedStateFromProps; "function" === typeof contextType && (applyDerivedStateFromProps( workInProgress, Component, contextType, nextProps ), (context.state = workInProgress.memoizedState)); "function" === typeof Component.getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate || ("function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount) || ((contextType = context.state), "function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress, nextProps, context, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction(), (context.state = workInProgress.memoizedState)); "function" === typeof context.componentDidMount && (workInProgress.flags |= 4194308); nextProps = !0; } else if (null === current) { context = workInProgress.stateNode; var unresolvedOldProps = workInProgress.memoizedProps, oldProps = resolveClassComponentProps(Component, unresolvedOldProps); context.props = oldProps; var oldContext = context.context, contextType$jscomp$0 = Component.contextType; contextType = emptyContextObject; "object" === typeof contextType$jscomp$0 && null !== contextType$jscomp$0 && (contextType = readContext(contextType$jscomp$0)); var getDerivedStateFromProps = Component.getDerivedStateFromProps; contextType$jscomp$0 = "function" === typeof getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate; unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps; contextType$jscomp$0 || ("function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps) || ((unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps( workInProgress, context, nextProps, contextType )); hasForceUpdate = !1; var oldState = workInProgress.memoizedState; context.state = oldState; processUpdateQueue(workInProgress, nextProps, context, renderLanes); suspendIfUpdateReadFromEntangledAsyncAction(); oldContext = workInProgress.memoizedState; unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps( workInProgress, Component, getDerivedStateFromProps, nextProps ), (oldContext = workInProgress.memoizedState)), (oldProps = hasForceUpdate || checkShouldComponentUpdate( workInProgress, Component, oldProps, nextProps, oldState, oldContext, contextType )) ? (contextType$jscomp$0 || ("function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount) || ("function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount()), "function" === typeof context.componentDidMount && (workInProgress.flags |= 4194308)) : ("function" === typeof context.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = oldContext)), (context.props = nextProps), (context.state = oldContext), (context.context = contextType), (nextProps = oldProps)) : ("function" === typeof context.componentDidMount && (workInProgress.flags |= 4194308), (nextProps = !1)); } else { context = workInProgress.stateNode; cloneUpdateQueue(current, workInProgress); contextType = workInProgress.memoizedProps; contextType$jscomp$0 = resolveClassComponentProps(Component, contextType); context.props = contextType$jscomp$0; getDerivedStateFromProps = workInProgress.pendingProps; oldState = context.context; oldContext = Component.contextType; oldProps = emptyContextObject; "object" === typeof oldContext && null !== oldContext && (oldProps = readContext(oldContext)); unresolvedOldProps = Component.getDerivedStateFromProps; (oldContext = "function" === typeof unresolvedOldProps || "function" === typeof context.getSnapshotBeforeUpdate) || ("function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps) || ((contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps( workInProgress, context, nextProps, oldProps )); hasForceUpdate = !1; oldState = workInProgress.memoizedState; context.state = oldState; processUpdateQueue(workInProgress, nextProps, context, renderLanes); suspendIfUpdateReadFromEntangledAsyncAction(); var newState = workInProgress.memoizedState; contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || (null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies)) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps( workInProgress, Component, unresolvedOldProps, nextProps ), (newState = workInProgress.memoizedState)), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate( workInProgress, Component, contextType$jscomp$0, nextProps, oldState, newState, oldProps ) || (null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies))) ? (oldContext || ("function" !== typeof context.UNSAFE_componentWillUpdate && "function" !== typeof context.componentWillUpdate) || ("function" === typeof context.componentWillUpdate && context.componentWillUpdate(nextProps, newState, oldProps), "function" === typeof context.UNSAFE_componentWillUpdate && context.UNSAFE_componentWillUpdate( nextProps, newState, oldProps )), "function" === typeof context.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof context.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof context.componentDidUpdate || (contextType === current.memoizedProps && oldState === current.memoizedState) || (workInProgress.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || (contextType === current.memoizedProps && oldState === current.memoizedState) || (workInProgress.flags |= 1024), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = newState)), (context.props = nextProps), (context.state = newState), (context.context = oldProps), (nextProps = contextType$jscomp$0)) : ("function" !== typeof context.componentDidUpdate || (contextType === current.memoizedProps && oldState === current.memoizedState) || (workInProgress.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || (contextType === current.memoizedProps && oldState === current.memoizedState) || (workInProgress.flags |= 1024), (nextProps = !1)); } context = nextProps; markRef(current, workInProgress); nextProps = 0 !== (workInProgress.flags & 128); context || nextProps ? ((context = workInProgress.stateNode), nextProps && "function" !== typeof Component.getDerivedStateFromError ? ((Component = null), (profilerStartTime = -1)) : (markComponentRenderStarted(workInProgress), (Component = context.render()), markComponentRenderStopped()), (workInProgress.flags |= 1), null !== current && nextProps ? ((workInProgress.child = reconcileChildFibers( workInProgress, current.child, null, renderLanes )), (workInProgress.child = reconcileChildFibers( workInProgress, null, Component, renderLanes ))) : reconcileChildren(current, workInProgress, Component, renderLanes), (workInProgress.memoizedState = context.state), (current = workInProgress.child)) : (current = bailoutOnAlreadyFinishedWork( current, workInProgress, renderLanes )); return current; } function mountHostRootWithoutHydrating( current, workInProgress, nextChildren, renderLanes ) { resetHydrationState(); workInProgress.flags |= 256; reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; } var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 }; function mountSuspenseOffscreenState(renderLanes) { return { baseLanes: renderLanes, cachePool: getSuspendedCache() }; } function getRemainingWorkInPrimaryTree( current, primaryTreeDidDefer, renderLanes ) { current = null !== current ? current.childLanes & ~renderLanes : 0; primaryTreeDidDefer && (current |= workInProgressDeferredLane); return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { var nextProps = workInProgress.pendingProps, showFallback = !1, didSuspend = 0 !== (workInProgress.flags & 128), JSCompiler_temp; (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & 2)); JSCompiler_temp && ((showFallback = !0), (workInProgress.flags &= -129)); JSCompiler_temp = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { var nextInstance = nextHydratableInstance, JSCompiler_temp$jscomp$0; if ((JSCompiler_temp$jscomp$0 = nextInstance)) { c: { JSCompiler_temp$jscomp$0 = nextInstance; for ( nextInstance = rootOrSingletonContext; 8 !== JSCompiler_temp$jscomp$0.nodeType; ) { if (!nextInstance) { nextInstance = null; break c; } JSCompiler_temp$jscomp$0 = getNextHydratable( JSCompiler_temp$jscomp$0.nextSibling ); if (null === JSCompiler_temp$jscomp$0) { nextInstance = null; break c; } } nextInstance = JSCompiler_temp$jscomp$0; } null !== nextInstance ? ((workInProgress.memoizedState = { dehydrated: nextInstance, treeContext: null !== treeContextProvider ? { id: treeContextId, overflow: treeContextOverflow } : null, retryLane: 536870912 }), (JSCompiler_temp$jscomp$0 = createFiberImplClass( 18, null, null, 0 )), (JSCompiler_temp$jscomp$0.stateNode = nextInstance), (JSCompiler_temp$jscomp$0.return = workInProgress), (workInProgress.child = JSCompiler_temp$jscomp$0), (hydrationParentFiber = workInProgress), (nextHydratableInstance = null), (JSCompiler_temp$jscomp$0 = !0)) : (JSCompiler_temp$jscomp$0 = !1); } JSCompiler_temp$jscomp$0 || throwOnHydrationMismatch(workInProgress); } nextInstance = workInProgress.memoizedState; if ( null !== nextInstance && ((nextInstance = nextInstance.dehydrated), null !== nextInstance) ) return ( "$!" === nextInstance.data ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } nextInstance = nextProps.children; nextProps = nextProps.fallback; if (showFallback) return ( reuseSuspenseHandlerOnStack(workInProgress), (showFallback = workInProgress.mode), (nextInstance = mountWorkInProgressOffscreenFiber( { mode: "hidden", children: nextInstance }, showFallback )), (nextProps = createFiberFromFragment( nextProps, showFallback, renderLanes, null )), (nextInstance.return = workInProgress), (nextProps.return = workInProgress), (nextInstance.sibling = nextProps), (workInProgress.child = nextInstance), (showFallback = workInProgress.child), (showFallback.memoizedState = mountSuspenseOffscreenState(renderLanes)), (showFallback.childLanes = getRemainingWorkInPrimaryTree( current, JSCompiler_temp, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), nextProps ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren(workInProgress, nextInstance); } JSCompiler_temp$jscomp$0 = current.memoizedState; if ( null !== JSCompiler_temp$jscomp$0 && ((nextInstance = JSCompiler_temp$jscomp$0.dehydrated), null !== nextInstance) ) { if (didSuspend) workInProgress.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress), (workInProgress.flags &= -257), (workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, renderLanes ))) : null !== workInProgress.memoizedState ? (reuseSuspenseHandlerOnStack(workInProgress), (workInProgress.child = current.child), (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), (showFallback = nextProps.fallback), (nextInstance = workInProgress.mode), (nextProps = mountWorkInProgressOffscreenFiber( { mode: "visible", children: nextProps.children }, nextInstance )), (showFallback = createFiberFromFragment( showFallback, nextInstance, renderLanes, null )), (showFallback.flags |= 2), (nextProps.return = workInProgress), (showFallback.return = workInProgress), (nextProps.sibling = showFallback), (workInProgress.child = nextProps), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), (nextProps = workInProgress.child), (nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes)), (nextProps.childLanes = getRemainingWorkInPrimaryTree( current, JSCompiler_temp, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = showFallback)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), "$!" === nextInstance.data) ) { JSCompiler_temp = nextInstance.nextSibling && nextInstance.nextSibling.dataset; if (JSCompiler_temp) var digest = JSCompiler_temp.dgst; JSCompiler_temp = digest; nextProps = Error(formatProdErrorMessage(419)); nextProps.stack = ""; nextProps.digest = JSCompiler_temp; queueHydrationError({ value: nextProps, source: null, stack: null }); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, renderLanes ); } else if ( (didReceiveUpdate || propagateParentContextChanges(current, workInProgress, renderLanes, !1), (JSCompiler_temp = 0 !== (renderLanes & current.childLanes)), didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; if (null !== JSCompiler_temp) { nextProps = renderLanes & -renderLanes; if (0 !== (nextProps & 42)) nextProps = 1; else switch (nextProps) { case 2: nextProps = 1; break; case 8: nextProps = 4; break; case 32: nextProps = 16; break; case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: nextProps = 64; break; case 268435456: nextProps = 134217728; break; default: nextProps = 0; } nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 : nextProps; if (0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) throw ( ((JSCompiler_temp$jscomp$0.retryLane = nextProps), enqueueConcurrentRenderForLane(current, nextProps), scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), SelectiveHydrationException) ); } "$?" === nextInstance.data || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, renderLanes ); } else "$?" === nextInstance.data ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), (workInProgress = retryDehydratedSuspenseBoundary.bind( null, current )), (nextInstance._reactRetry = workInProgress), (workInProgress = null)) : ((current = JSCompiler_temp$jscomp$0.treeContext), (nextHydratableInstance = getNextHydratable( nextInstance.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), (hydrationErrors = null), (rootOrSingletonContext = !1), null !== current && ((idStack[idStackIndex++] = treeContextId), (idStack[idStackIndex++] = treeContextOverflow), (idStack[idStackIndex++] = treeContextProvider), (treeContextId = current.id), (treeContextOverflow = current.overflow), (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, nextProps.children )), (workInProgress.flags |= 4096)); return workInProgress; } if (showFallback) return ( reuseSuspenseHandlerOnStack(workInProgress), (showFallback = nextProps.fallback), (nextInstance = workInProgress.mode), (JSCompiler_temp$jscomp$0 = current.child), (digest = JSCompiler_temp$jscomp$0.sibling), (nextProps = createWorkInProgress(JSCompiler_temp$jscomp$0, { mode: "hidden", children: nextProps.children })), (nextProps.subtreeFlags = JSCompiler_temp$jscomp$0.subtreeFlags & 31457280), null !== digest ? (showFallback = createWorkInProgress(digest, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, nextInstance, renderLanes, null )), (showFallback.flags |= 2)), (showFallback.return = workInProgress), (nextProps.return = workInProgress), (nextProps.sibling = showFallback), (workInProgress.child = nextProps), (nextProps = showFallback), (showFallback = workInProgress.child), (nextInstance = current.child.memoizedState), null === nextInstance ? (nextInstance = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp$jscomp$0 = nextInstance.cachePool), null !== JSCompiler_temp$jscomp$0 ? ((digest = CacheContext._currentValue), (JSCompiler_temp$jscomp$0 = JSCompiler_temp$jscomp$0.parent !== digest ? { parent: digest, pool: digest } : JSCompiler_temp$jscomp$0)) : (JSCompiler_temp$jscomp$0 = getSuspendedCache()), (nextInstance = { baseLanes: nextInstance.baseLanes | renderLanes, cachePool: JSCompiler_temp$jscomp$0 })), (showFallback.memoizedState = nextInstance), (showFallback.childLanes = getRemainingWorkInPrimaryTree( current, JSCompiler_temp, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), nextProps ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", children: nextProps.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && ((JSCompiler_temp = workInProgress.deletions), null === JSCompiler_temp ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) : JSCompiler_temp.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; } function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { primaryChildren = mountWorkInProgressOffscreenFiber( { mode: "visible", children: primaryChildren }, workInProgress.mode ); primaryChildren.return = workInProgress; return (workInProgress.child = primaryChildren); } function mountWorkInProgressOffscreenFiber(offscreenProps, mode) { return createFiberFromOffscreen(offscreenProps, mode, 0, null); } function retrySuspenseComponentWithoutHydrating( current, workInProgress, renderLanes ) { reconcileChildFibers(workInProgress, current.child, null, renderLanes); current = mountSuspensePrimaryChildren( workInProgress, workInProgress.pendingProps.children ); current.flags |= 2; workInProgress.memoizedState = null; return current; } function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { fiber.lanes |= renderLanes; var alternate = fiber.alternate; null !== alternate && (alternate.lanes |= renderLanes); scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); } function initSuspenseListRenderState( workInProgress, isBackwards, tail, lastContentRow, tailMode ) { var renderState = workInProgress.memoizedState; null === renderState ? (workInProgress.memoizedState = { isBackwards: isBackwards, rendering: null, renderingStartTime: 0, last: lastContentRow, tail: tail, tailMode: tailMode }) : ((renderState.isBackwards = isBackwards), (renderState.rendering = null), (renderState.renderingStartTime = 0), (renderState.last = lastContentRow), (renderState.tail = tail), (renderState.tailMode = tailMode)); } function updateSuspenseListComponent(current, workInProgress, renderLanes) { var nextProps = workInProgress.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail; reconcileChildren(current, workInProgress, nextProps.children, renderLanes); nextProps = suspenseStackCursor.current; if (0 !== (nextProps & 2)) (nextProps = (nextProps & 1) | 2), (workInProgress.flags |= 128); else { if (null !== current && 0 !== (current.flags & 128)) a: for (current = workInProgress.child; null !== current; ) { if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); else if (null !== current.child) { current.child.return = current; current = current.child; continue; } if (current === workInProgress) break a; for (; null === current.sibling; ) { if (null === current.return || current.return === workInProgress) break a; current = current.return; } current.sibling.return = current.return; current = current.sibling; } nextProps &= 1; } push(suspenseStackCursor, nextProps); switch (revealOrder) { case "forwards": renderLanes = workInProgress.child; for (revealOrder = null; null !== renderLanes; ) (current = renderLanes.alternate), null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), (renderLanes = renderLanes.sibling); renderLanes = revealOrder; null === renderLanes ? ((revealOrder = workInProgress.child), (workInProgress.child = null)) : ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null)); initSuspenseListRenderState( workInProgress, !1, revealOrder, renderLanes, tailMode ); break; case "backwards": renderLanes = null; revealOrder = workInProgress.child; for (workInProgress.child = null; null !== revealOrder; ) { current = revealOrder.alternate; if (null !== current && null === findFirstSuspended(current)) { workInProgress.child = revealOrder; break; } current = revealOrder.sibling; revealOrder.sibling = renderLanes; renderLanes = revealOrder; revealOrder = current; } initSuspenseListRenderState( workInProgress, !0, renderLanes, null, tailMode ); break; case "together": initSuspenseListRenderState(workInProgress, !1, null, null, void 0); break; default: workInProgress.memoizedState = null; } return workInProgress.child; } function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { null !== current && (workInProgress.dependencies = current.dependencies); profilerStartTime = -1; workInProgressRootSkippedLanes |= workInProgress.lanes; if (0 === (renderLanes & workInProgress.childLanes)) if (null !== current) { if ( (propagateParentContextChanges( current, workInProgress, renderLanes, !1 ), 0 === (renderLanes & workInProgress.childLanes)) ) return null; } else return null; if (null !== current && workInProgress.child !== current.child) throw Error(formatProdErrorMessage(153)); if (null !== workInProgress.child) { current = workInProgress.child; renderLanes = createWorkInProgress(current, current.pendingProps); workInProgress.child = renderLanes; for (renderLanes.return = workInProgress; null !== current.sibling; ) (current = current.sibling), (renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps)), (renderLanes.return = workInProgress); renderLanes.sibling = null; } return workInProgress.child; } function checkScheduledUpdateOrContext(current, renderLanes) { if (0 !== (current.lanes & renderLanes)) return !0; current = current.dependencies; return null !== current && checkIfContextChanged(current) ? !0 : !1; } function attemptEarlyBailoutIfNoScheduledUpdate( current, workInProgress, renderLanes ) { switch (workInProgress.tag) { case 3: pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); pushProvider(workInProgress, CacheContext, current.memoizedState.cache); resetHydrationState(); break; case 27: case 5: pushHostContext(workInProgress); break; case 4: pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); break; case 10: pushProvider( workInProgress, workInProgress.type, workInProgress.memoizedProps.value ); break; case 12: 0 !== (renderLanes & workInProgress.childLanes) && (workInProgress.flags |= 4); workInProgress.flags |= 2048; var stateNode = workInProgress.stateNode; stateNode.effectDuration = -0; stateNode.passiveEffectDuration = -0; break; case 13: stateNode = workInProgress.memoizedState; if (null !== stateNode) { if (null !== stateNode.dehydrated) return ( pushPrimaryTreeSuspenseHandler(workInProgress), (workInProgress.flags |= 128), null ); if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); pushPrimaryTreeSuspenseHandler(workInProgress); current = bailoutOnAlreadyFinishedWork( current, workInProgress, renderLanes ); return null !== current ? current.sibling : null; } pushPrimaryTreeSuspenseHandler(workInProgress); break; case 19: var didSuspendBefore = 0 !== (current.flags & 128); stateNode = 0 !== (renderLanes & workInProgress.childLanes); stateNode || (propagateParentContextChanges( current, workInProgress, renderLanes, !1 ), (stateNode = 0 !== (renderLanes & workInProgress.childLanes))); if (didSuspendBefore) { if (stateNode) return updateSuspenseListComponent( current, workInProgress, renderLanes ); workInProgress.flags |= 128; } didSuspendBefore = workInProgress.memoizedState; null !== didSuspendBefore && ((didSuspendBefore.rendering = null), (didSuspendBefore.tail = null), (didSuspendBefore.lastEffect = null)); push(suspenseStackCursor, suspenseStackCursor.current); if (stateNode) break; else return null; case 22: case 23: return ( (workInProgress.lanes = 0), updateOffscreenComponent(current, workInProgress, renderLanes) ); case 24: pushProvider(workInProgress, CacheContext, current.memoizedState.cache); } return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); } function beginWork(current, workInProgress, renderLanes) { if (null !== current) if (current.memoizedProps !== workInProgress.pendingProps) didReceiveUpdate = !0; else { if ( !checkScheduledUpdateOrContext(current, renderLanes) && 0 === (workInProgress.flags & 128) ) return ( (didReceiveUpdate = !1), attemptEarlyBailoutIfNoScheduledUpdate( current, workInProgress, renderLanes ) ); didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; } else (didReceiveUpdate = !1), isHydrating && 0 !== (workInProgress.flags & 1048576) && pushTreeId(workInProgress, treeForkCount, workInProgress.index); workInProgress.lanes = 0; switch (workInProgress.tag) { case 16: a: { current = workInProgress.pendingProps; var lazyComponent = workInProgress.elementType, init = lazyComponent._init; lazyComponent = init(lazyComponent._payload); workInProgress.type = lazyComponent; if ("function" === typeof lazyComponent) shouldConstruct(lazyComponent) ? ((current = resolveClassComponentProps(lazyComponent, current)), (workInProgress.tag = 1), (workInProgress = updateClassComponent( null, workInProgress, lazyComponent, current, renderLanes ))) : ((workInProgress.tag = 0), (workInProgress = updateFunctionComponent( null, workInProgress, lazyComponent, current, renderLanes ))); else { if (void 0 !== lazyComponent && null !== lazyComponent) if ( ((init = lazyComponent.$$typeof), init === REACT_FORWARD_REF_TYPE) ) { workInProgress.tag = 11; workInProgress = updateForwardRef( null, workInProgress, lazyComponent, current, renderLanes ); break a; } else if (init === REACT_MEMO_TYPE) { workInProgress.tag = 14; workInProgress = updateMemoComponent( null, workInProgress, lazyComponent, current, renderLanes ); break a; } workInProgress = getComponentNameFromType(lazyComponent) || lazyComponent; throw Error(formatProdErrorMessage(306, workInProgress, "")); } } return workInProgress; case 0: return updateFunctionComponent( current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes ); case 1: return ( (lazyComponent = workInProgress.type), (init = resolveClassComponentProps( lazyComponent, workInProgress.pendingProps )), updateClassComponent( current, workInProgress, lazyComponent, init, renderLanes ) ); case 3: a: { pushHostContainer( workInProgress, workInProgress.stateNode.containerInfo ); if (null === current) throw Error(formatProdErrorMessage(387)); var nextProps = workInProgress.pendingProps; init = workInProgress.memoizedState; lazyComponent = init.element; cloneUpdateQueue(current, workInProgress); processUpdateQueue(workInProgress, nextProps, null, renderLanes); var nextState = workInProgress.memoizedState; nextProps = nextState.cache; pushProvider(workInProgress, CacheContext, nextProps); nextProps !== init.cache && propagateContextChanges( workInProgress, [CacheContext], renderLanes, !0 ); suspendIfUpdateReadFromEntangledAsyncAction(); nextProps = nextState.element; if (init.isDehydrated) if ( ((init = { element: nextProps, isDehydrated: !1, cache: nextState.cache }), (workInProgress.updateQueue.baseState = init), (workInProgress.memoizedState = init), workInProgress.flags & 256) ) { workInProgress = mountHostRootWithoutHydrating( current, workInProgress, nextProps, renderLanes ); break a; } else if (nextProps !== lazyComponent) { lazyComponent = createCapturedValueAtFiber( Error(formatProdErrorMessage(424)), workInProgress ); queueHydrationError(lazyComponent); workInProgress = mountHostRootWithoutHydrating( current, workInProgress, nextProps, renderLanes ); break a; } else for ( nextHydratableInstance = getNextHydratable( workInProgress.stateNode.containerInfo.firstChild ), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !0, renderLanes = mountChildFibers( workInProgress, null, nextProps, renderLanes ), workInProgress.child = renderLanes; renderLanes; ) (renderLanes.flags = (renderLanes.flags & -3) | 4096), (renderLanes = renderLanes.sibling); else { resetHydrationState(); if (nextProps === lazyComponent) { workInProgress = bailoutOnAlreadyFinishedWork( current, workInProgress, renderLanes ); break a; } reconcileChildren(current, workInProgress, nextProps, renderLanes); } workInProgress = workInProgress.child; } return workInProgress; case 26: return ( markRef(current, workInProgress), null === current ? (renderLanes = getResource( workInProgress.type, null, workInProgress.pendingProps, null )) ? (workInProgress.memoizedState = renderLanes) : isHydrating || ((renderLanes = workInProgress.type), (current = workInProgress.pendingProps), (lazyComponent = getOwnerDocumentFromRootContainer( rootInstanceStackCursor.current ).createElement(renderLanes)), (lazyComponent[internalInstanceKey] = workInProgress), (lazyComponent[internalPropsKey] = current), setInitialProperties(lazyComponent, renderLanes, current), markNodeAsHoistable(lazyComponent), (workInProgress.stateNode = lazyComponent)) : (workInProgress.memoizedState = getResource( workInProgress.type, current.memoizedProps, workInProgress.pendingProps, current.memoizedState )), null ); case 27: return ( pushHostContext(workInProgress), null === current && isHydrating && ((lazyComponent = workInProgress.stateNode = resolveSingletonInstance( workInProgress.type, workInProgress.pendingProps, rootInstanceStackCursor.current )), (hydrationParentFiber = workInProgress), (rootOrSingletonContext = !0), (nextHydratableInstance = getNextHydratable( lazyComponent.firstChild ))), (lazyComponent = workInProgress.pendingProps.children), null !== current || isHydrating ? reconcileChildren( current, workInProgress, lazyComponent, renderLanes ) : (workInProgress.child = reconcileChildFibers( workInProgress, null, lazyComponent, renderLanes )), markRef(current, workInProgress), workInProgress.child ); case 5: if (null === current && isHydrating) { if ((init = lazyComponent = nextHydratableInstance)) (lazyComponent = canHydrateInstance( lazyComponent, workInProgress.type, workInProgress.pendingProps, rootOrSingletonContext )), null !== lazyComponent ? ((workInProgress.stateNode = lazyComponent), (hydrationParentFiber = workInProgress), (nextHydratableInstance = getNextHydratable( lazyComponent.firstChild )), (rootOrSingletonContext = !1), (init = !0)) : (init = !1); init || throwOnHydrationMismatch(workInProgress); } pushHostContext(workInProgress); init = workInProgress.type; nextProps = workInProgress.pendingProps; nextState = null !== current ? current.memoizedProps : null; lazyComponent = nextProps.children; shouldSetTextContent(init, nextProps) ? (lazyComponent = null) : null !== nextState && shouldSetTextContent(init, nextState) && (workInProgress.flags |= 32); null !== workInProgress.memoizedState && ((init = renderWithHooks( current, workInProgress, TransitionAwareHostComponent, null, null, renderLanes )), (HostTransitionContext._currentValue = init)); markRef(current, workInProgress); reconcileChildren(current, workInProgress, lazyComponent, renderLanes); return workInProgress.child; case 6: if (null === current && isHydrating) { if ((current = renderLanes = nextHydratableInstance)) (renderLanes = canHydrateTextInstance( renderLanes, workInProgress.pendingProps, rootOrSingletonContext )), null !== renderLanes ? ((workInProgress.stateNode = renderLanes), (hydrationParentFiber = workInProgress), (nextHydratableInstance = null), (current = !0)) : (current = !1); current || throwOnHydrationMismatch(workInProgress); } return null; case 13: return updateSuspenseComponent(current, workInProgress, renderLanes); case 4: return ( pushHostContainer( workInProgress, workInProgress.stateNode.containerInfo ), (lazyComponent = workInProgress.pendingProps), null === current ? (workInProgress.child = reconcileChildFibers( workInProgress, null, lazyComponent, renderLanes )) : reconcileChildren( current, workInProgress, lazyComponent, renderLanes ), workInProgress.child ); case 11: return updateForwardRef( current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes ); case 7: return ( reconcileChildren( current, workInProgress, workInProgress.pendingProps, renderLanes ), workInProgress.child ); case 8: return ( reconcileChildren( current, workInProgress, workInProgress.pendingProps.children, renderLanes ), workInProgress.child ); case 12: return ( (workInProgress.flags |= 4), (workInProgress.flags |= 2048), (lazyComponent = workInProgress.stateNode), (lazyComponent.effectDuration = -0), (lazyComponent.passiveEffectDuration = -0), reconcileChildren( current, workInProgress, workInProgress.pendingProps.children, renderLanes ), workInProgress.child ); case 10: return ( (lazyComponent = workInProgress.pendingProps), pushProvider(workInProgress, workInProgress.type, lazyComponent.value), reconcileChildren( current, workInProgress, lazyComponent.children, renderLanes ), workInProgress.child ); case 9: return ( (init = workInProgress.type._context), (lazyComponent = workInProgress.pendingProps.children), prepareToReadContext(workInProgress), (init = readContext(init)), markComponentRenderStarted(workInProgress), (lazyComponent = lazyComponent(init)), markComponentRenderStopped(), (workInProgress.flags |= 1), reconcileChildren(current, workInProgress, lazyComponent, renderLanes), workInProgress.child ); case 14: return updateMemoComponent( current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes ); case 15: return updateSimpleMemoComponent( current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes ); case 19: return updateSuspenseListComponent(current, workInProgress, renderLanes); case 22: return updateOffscreenComponent(current, workInProgress, renderLanes); case 24: return ( prepareToReadContext(workInProgress), (lazyComponent = readContext(CacheContext)), null === current ? ((init = peekCacheFromPool()), null === init && ((init = workInProgressRoot), (nextProps = createCache()), (init.pooledCache = nextProps), nextProps.refCount++, null !== nextProps && (init.pooledCacheLanes |= renderLanes), (init = nextProps)), (workInProgress.memoizedState = { parent: lazyComponent, cache: init }), initializeUpdateQueue(workInProgress), pushProvider(workInProgress, CacheContext, init)) : (0 !== (current.lanes & renderLanes) && (cloneUpdateQueue(current, workInProgress), processUpdateQueue(workInProgress, null, null, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction()), (init = current.memoizedState), (nextProps = workInProgress.memoizedState), init.parent !== lazyComponent ? ((init = { parent: lazyComponent, cache: lazyComponent }), (workInProgress.memoizedState = init), 0 === workInProgress.lanes && (workInProgress.memoizedState = workInProgress.updateQueue.baseState = init), pushProvider(workInProgress, CacheContext, lazyComponent)) : ((lazyComponent = nextProps.cache), pushProvider(workInProgress, CacheContext, lazyComponent), lazyComponent !== init.cache && propagateContextChanges( workInProgress, [CacheContext], renderLanes, !0 ))), reconcileChildren( current, workInProgress, workInProgress.pendingProps.children, renderLanes ), workInProgress.child ); case 29: throw workInProgress.pendingProps; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } var valueCursor = createCursor(null), currentlyRenderingFiber = null, lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue); context._currentValue = nextValue; } function popProvider(context) { context._currentValue = valueCursor.current; pop(valueCursor); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { for (; null !== parent; ) { var alternate = parent.alternate; (parent.childLanes & renderLanes) !== renderLanes ? ((parent.childLanes |= renderLanes), null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); if (parent === propagationRoot) break; parent = parent.return; } } function propagateContextChanges( workInProgress, contexts, renderLanes, forcePropagateEntireTree ) { var fiber = workInProgress.child; null !== fiber && (fiber.return = workInProgress); for (; null !== fiber; ) { var list = fiber.dependencies; if (null !== list) { var nextFiber = fiber.child; list = list.firstContext; a: for (; null !== list; ) { var dependency = list; list = fiber; for (var i = 0; i < contexts.length; i++) if (dependency.context === contexts[i]) { list.lanes |= renderLanes; dependency = list.alternate; null !== dependency && (dependency.lanes |= renderLanes); scheduleContextWorkOnParentPath( list.return, renderLanes, workInProgress ); forcePropagateEntireTree || (nextFiber = null); break a; } list = dependency.next; } } else if (18 === fiber.tag) { nextFiber = fiber.return; if (null === nextFiber) throw Error(formatProdErrorMessage(341)); nextFiber.lanes |= renderLanes; list = nextFiber.alternate; null !== list && (list.lanes |= renderLanes); scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress); nextFiber = null; } else nextFiber = fiber.child; if (null !== nextFiber) nextFiber.return = fiber; else for (nextFiber = fiber; null !== nextFiber; ) { if (nextFiber === workInProgress) { nextFiber = null; break; } fiber = nextFiber.sibling; if (null !== fiber) { fiber.return = nextFiber.return; nextFiber = fiber; break; } nextFiber = nextFiber.return; } fiber = nextFiber; } } function propagateParentContextChanges( current, workInProgress, renderLanes, forcePropagateEntireTree ) { current = null; for ( var parent = workInProgress, isInsidePropagationBailout = !1; null !== parent; ) { if (!isInsidePropagationBailout) if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0; else if (0 !== (parent.flags & 262144)) break; if (10 === parent.tag) { var currentParent = parent.alternate; if (null === currentParent) throw Error(formatProdErrorMessage(387)); currentParent = currentParent.memoizedProps; if (null !== currentParent) { var context = parent.type; objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : (current = [context])); } } else if (parent === hostTransitionProviderCursor.current) { currentParent = parent.alternate; if (null === currentParent) throw Error(formatProdErrorMessage(387)); currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (null !== current ? current.push(HostTransitionContext) : (current = [HostTransitionContext])); } parent = parent.return; } null !== current && propagateContextChanges( workInProgress, current, renderLanes, forcePropagateEntireTree ); workInProgress.flags |= 262144; } function checkIfContextChanged(currentDependencies) { for ( currentDependencies = currentDependencies.firstContext; null !== currentDependencies; ) { if ( !objectIs( currentDependencies.context._currentValue, currentDependencies.memoizedValue ) ) return !0; currentDependencies = currentDependencies.next; } return !1; } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } function readContext(context) { return readContextForConsumer(currentlyRenderingFiber, context); } function readContextDuringReconciliation(consumer, context) { null === currentlyRenderingFiber && prepareToReadContext(consumer); return readContextForConsumer(consumer, context); } function readContextForConsumer(consumer, context) { var value = context._currentValue; context = { context: context, memoizedValue: value, next: null }; if (null === lastContextDependency) { if (null === consumer) throw Error(formatProdErrorMessage(308)); lastContextDependency = context; consumer.dependencies = { lanes: 0, firstContext: context }; consumer.flags |= 524288; } else lastContextDependency = lastContextDependency.next = context; return value; } var hasForceUpdate = !1; function initializeUpdateQueue(fiber) { fiber.updateQueue = { baseState: fiber.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, lanes: 0, hiddenCallbacks: null }, callbacks: null }; } function cloneUpdateQueue(current, workInProgress) { current = current.updateQueue; workInProgress.updateQueue === current && (workInProgress.updateQueue = { baseState: current.baseState, firstBaseUpdate: current.firstBaseUpdate, lastBaseUpdate: current.lastBaseUpdate, shared: current.shared, callbacks: null }); } function createUpdate(lane) { return { lane: lane, tag: 0, payload: null, callback: null, next: null }; } function enqueueUpdate(fiber, update, lane) { var updateQueue = fiber.updateQueue; if (null === updateQueue) return null; updateQueue = updateQueue.shared; if (0 !== (executionContext & 2)) { var pending = updateQueue.pending; null === pending ? (update.next = update) : ((update.next = pending.next), (pending.next = update)); updateQueue.pending = update; update = getRootForUpdatedFiber(fiber); markUpdateLaneFromFiberToRoot(fiber, null, lane); return update; } enqueueUpdate$1(fiber, updateQueue, update, lane); return getRootForUpdatedFiber(fiber); } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194176))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; fiber.lanes = lane; markRootEntangled(root, lane); } } function enqueueCapturedUpdate(workInProgress, capturedUpdate) { var queue = workInProgress.updateQueue, current = workInProgress.alternate; if ( null !== current && ((current = current.updateQueue), queue === current) ) { var newFirst = null, newLast = null; queue = queue.firstBaseUpdate; if (null !== queue) { do { var clone = { lane: queue.lane, tag: queue.tag, payload: queue.payload, callback: null, next: null }; null === newLast ? (newFirst = newLast = clone) : (newLast = newLast.next = clone); queue = queue.next; } while (null !== queue); null === newLast ? (newFirst = newLast = capturedUpdate) : (newLast = newLast.next = capturedUpdate); } else newFirst = newLast = capturedUpdate; queue = { baseState: current.baseState, firstBaseUpdate: newFirst, lastBaseUpdate: newLast, shared: current.shared, callbacks: current.callbacks }; workInProgress.updateQueue = queue; return; } workInProgress = queue.lastBaseUpdate; null === workInProgress ? (queue.firstBaseUpdate = capturedUpdate) : (workInProgress.next = capturedUpdate); queue.lastBaseUpdate = capturedUpdate; } var didReadFromEntangledAsyncAction = !1; function suspendIfUpdateReadFromEntangledAsyncAction() { if (didReadFromEntangledAsyncAction) { var entangledActionThenable = currentEntangledActionThenable; if (null !== entangledActionThenable) throw entangledActionThenable; } } function processUpdateQueue( workInProgress$jscomp$0, props, instance$jscomp$0, renderLanes ) { didReadFromEntangledAsyncAction = !1; var queue = workInProgress$jscomp$0.updateQueue; hasForceUpdate = !1; var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending; if (null !== pendingQueue) { queue.shared.pending = null; var lastPendingUpdate = pendingQueue, firstPendingUpdate = lastPendingUpdate.next; lastPendingUpdate.next = null; null === lastBaseUpdate ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; var current = workInProgress$jscomp$0.alternate; null !== current && ((current = current.updateQueue), (pendingQueue = current.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue ? (current.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), (current.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; current = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, isHiddenUpdate = updateLane !== pendingQueue.lane; if ( isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane ) { 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); null !== current && (current = current.next = { lane: 0, tag: pendingQueue.tag, payload: pendingQueue.payload, callback: null, next: null }); a: { var workInProgress = workInProgress$jscomp$0, update = pendingQueue; updateLane = props; var instance = instance$jscomp$0; switch (update.tag) { case 1: workInProgress = update.payload; if ("function" === typeof workInProgress) { newState = workInProgress.call(instance, newState, updateLane); break a; } newState = workInProgress; break a; case 3: workInProgress.flags = (workInProgress.flags & -65537) | 128; case 0: workInProgress = update.payload; updateLane = "function" === typeof workInProgress ? workInProgress.call(instance, newState, updateLane) : workInProgress; if (null === updateLane || void 0 === updateLane) break a; newState = assign({}, newState, updateLane); break a; case 2: hasForceUpdate = !0; } } updateLane = pendingQueue.callback; null !== updateLane && ((workInProgress$jscomp$0.flags |= 64), isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192), (isHiddenUpdate = queue.callbacks), null === isHiddenUpdate ? (queue.callbacks = [updateLane]) : isHiddenUpdate.push(updateLane)); } else (isHiddenUpdate = { lane: updateLane, tag: pendingQueue.tag, payload: pendingQueue.payload, callback: pendingQueue.callback, next: null }), null === current ? ((firstPendingUpdate = current = isHiddenUpdate), (lastPendingUpdate = newState)) : (current = current.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) if (((pendingQueue = queue.shared.pending), null === pendingQueue)) break; else (isHiddenUpdate = pendingQueue), (pendingQueue = isHiddenUpdate.next), (isHiddenUpdate.next = null), (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); null === current && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; queue.lastBaseUpdate = current; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; workInProgress$jscomp$0.memoizedState = newState; } } function callCallback(callback, context) { if ("function" !== typeof callback) throw Error(formatProdErrorMessage(191, callback)); callback.call(context); } function commitCallbacks(updateQueue, context) { var callbacks = updateQueue.callbacks; if (null !== callbacks) for ( updateQueue.callbacks = null, updateQueue = 0; updateQueue < callbacks.length; updateQueue++ ) callCallback(callbacks[updateQueue], context); } function shouldProfile(current) { return 0 !== (current.mode & 2); } function commitHookLayoutEffects(finishedWork, hookFlags) { shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork); } function commitHookLayoutUnmountEffects( finishedWork, nearestMountedAncestor, hookFlags ) { shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount( hookFlags, finishedWork, nearestMountedAncestor ), recordEffectDuration()) : commitHookEffectListUnmount( hookFlags, finishedWork, nearestMountedAncestor ); } function commitHookEffectListMount(flags, finishedWork) { try { var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; if (null !== lastEffect) { var firstEffect = lastEffect.next; updateQueue = firstEffect; do { if ((updateQueue.tag & flags) === flags) { 0 !== (flags & 8) ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted && injectedProfilingHooks.markComponentPassiveEffectMountStarted( finishedWork ) : 0 !== (flags & 4) && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted && injectedProfilingHooks.markComponentLayoutEffectMountStarted( finishedWork ); lastEffect = void 0; var create = updateQueue.create, inst = updateQueue.inst; lastEffect = create(); inst.destroy = lastEffect; 0 !== (flags & 8) ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped && injectedProfilingHooks.markComponentPassiveEffectMountStopped() : 0 !== (flags & 4) && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped && injectedProfilingHooks.markComponentLayoutEffectMountStopped(); } updateQueue = updateQueue.next; } while (updateQueue !== firstEffect); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function commitHookEffectListUnmount( flags, finishedWork, nearestMountedAncestor$jscomp$0 ) { try { var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; if (null !== lastEffect) { var firstEffect = lastEffect.next; updateQueue = firstEffect; do { if ((updateQueue.tag & flags) === flags) { var inst = updateQueue.inst, destroy = inst.destroy; if (void 0 !== destroy) { inst.destroy = void 0; 0 !== (flags & 8) ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted && injectedProfilingHooks.markComponentPassiveEffectUnmountStarted( finishedWork ) : 0 !== (flags & 4) && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted && injectedProfilingHooks.markComponentLayoutEffectUnmountStarted( finishedWork ); lastEffect = finishedWork; var nearestMountedAncestor = nearestMountedAncestor$jscomp$0; try { destroy(); } catch (error) { captureCommitPhaseError( lastEffect, nearestMountedAncestor, error ); } 0 !== (flags & 8) ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped && injectedProfilingHooks.markComponentPassiveEffectUnmountStopped() : 0 !== (flags & 4) && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped && injectedProfilingHooks.markComponentLayoutEffectUnmountStopped(); } } updateQueue = updateQueue.next; } while (updateQueue !== firstEffect); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function commitHookPassiveMountEffects(finishedWork, hookFlags) { shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork); } function commitHookPassiveUnmountEffects( finishedWork, nearestMountedAncestor, hookFlags ) { shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount( hookFlags, finishedWork, nearestMountedAncestor ), recordEffectDuration()) : commitHookEffectListUnmount( hookFlags, finishedWork, nearestMountedAncestor ); } function commitClassCallbacks(finishedWork) { var updateQueue = finishedWork.updateQueue; if (null !== updateQueue) { var instance = finishedWork.stateNode; try { commitCallbacks(updateQueue, instance); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } } function safelyCallComponentWillUnmount( current, nearestMountedAncestor, instance ) { instance.props = resolveClassComponentProps( current.type, current.memoizedProps ); instance.state = current.memoizedState; if (shouldProfile(current)) { startEffectTimer(); try { instance.componentWillUnmount(); } catch (error) { captureCommitPhaseError(current, nearestMountedAncestor, error); } recordEffectDuration(); } else try { instance.componentWillUnmount(); } catch (error$117) { captureCommitPhaseError(current, nearestMountedAncestor, error$117); } } function safelyAttachRef(current, nearestMountedAncestor) { try { var ref = current.ref; if (null !== ref) { var instance = current.stateNode; switch (current.tag) { case 26: case 27: case 5: var instanceToUse = instance; break; default: instanceToUse = instance; } if ("function" === typeof ref) if (shouldProfile(current)) try { startEffectTimer(), (current.refCleanup = ref(instanceToUse)); } finally { recordEffectDuration(); } else current.refCleanup = ref(instanceToUse); else ref.current = instanceToUse; } } catch (error) { captureCommitPhaseError(current, nearestMountedAncestor, error); } } function safelyDetachRef(current, nearestMountedAncestor) { var ref = current.ref, refCleanup = current.refCleanup; if (null !== ref) if ("function" === typeof refCleanup) try { if (shouldProfile(current)) try { startEffectTimer(), refCleanup(); } finally { recordEffectDuration(current); } else refCleanup(); } catch (error) { captureCommitPhaseError(current, nearestMountedAncestor, error); } finally { (current.refCleanup = null), (current = current.alternate), null != current && (current.refCleanup = null); } else if ("function" === typeof ref) try { if (shouldProfile(current)) try { startEffectTimer(), ref(null); } finally { recordEffectDuration(current); } else ref(null); } catch (error$118) { captureCommitPhaseError(current, nearestMountedAncestor, error$118); } else ref.current = null; } function commitProfilerUpdate( finishedWork, current, commitStartTime, effectDuration ) { try { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id, onCommit = _finishedWork$memoize.onCommit, onRender = _finishedWork$memoize.onRender; current = null === current ? "mount" : "update"; currentUpdateIsNested && (current = "nested-update"); "function" === typeof onRender && onRender( id, current, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitStartTime ); "function" === typeof onCommit && onCommit( finishedWork.memoizedProps.id, current, effectDuration, commitStartTime ); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function commitHostMount(finishedWork) { var type = finishedWork.type, props = finishedWork.memoizedProps, instance = finishedWork.stateNode; try { a: switch (type) { case "button": case "input": case "select": case "textarea": props.autoFocus && instance.focus(); break a; case "img": props.src ? (instance.src = props.src) : props.srcSet && (instance.srcset = props.srcSet); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function commitHostUpdate(finishedWork, newProps, oldProps) { try { var domElement = finishedWork.stateNode; updateProperties(domElement, finishedWork.type, oldProps, newProps); domElement[internalPropsKey] = newProps; } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function isHostParent(fiber) { return ( 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || 27 === fiber.tag || 4 === fiber.tag ); } function getHostSibling(fiber) { a: for (;;) { for (; null === fiber.sibling; ) { if (null === fiber.return || isHostParent(fiber.return)) return null; fiber = fiber.return; } fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 27 !== fiber.tag && 18 !== fiber.tag; ) { if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); } if (!(fiber.flags & 2)) return fiber.stateNode; } } function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; if (5 === tag || 6 === tag) (node = node.stateNode), before ? 8 === parent.nodeType ? parent.parentNode.insertBefore(node, before) : parent.insertBefore(node, before) : (8 === parent.nodeType ? ((before = parent.parentNode), before.insertBefore(node, parent)) : ((before = parent), before.appendChild(node)), (parent = parent._reactRootContainer), (null !== parent && void 0 !== parent) || null !== before.onclick || (before.onclick = noop$2)); else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; null !== node; ) insertOrAppendPlacementNodeIntoContainer(node, before, parent), (node = node.sibling); } function insertOrAppendPlacementNode(node, before, parent) { var tag = node.tag; if (5 === tag || 6 === tag) (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node); else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node; ) insertOrAppendPlacementNode(node, before, parent), (node = node.sibling); } var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null, inProgressLanes = null, inProgressRoot = null, shouldFireAfterActiveInstanceBlur = !1; function commitBeforeMutationEffects(root, firstChild) { root = root.containerInfo; eventsEnabled = _enabled; root = getActiveElementDeep(root); if (hasSelectionCapabilities(root)) { if ("selectionStart" in root) var JSCompiler_temp = { start: root.selectionStart, end: root.selectionEnd }; else a: { JSCompiler_temp = ((JSCompiler_temp = root.ownerDocument) && JSCompiler_temp.defaultView) || window; var selection = JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); if (selection && 0 !== selection.rangeCount) { JSCompiler_temp = selection.anchorNode; var anchorOffset = selection.anchorOffset, focusNode = selection.focusNode; selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; } catch (e$22) { JSCompiler_temp = null; break a; } var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = root, parentNode = null; b: for (;;) { for (var next; ; ) { node !== JSCompiler_temp || (0 !== anchorOffset && 3 !== node.nodeType) || (start = length + anchorOffset); node !== focusNode || (0 !== selection && 3 !== node.nodeType) || (end = length + selection); 3 === node.nodeType && (length += node.nodeValue.length); if (null === (next = node.firstChild)) break; parentNode = node; node = next; } for (;;) { if (node === root) break b; parentNode === JSCompiler_temp && ++indexWithinAnchor === anchorOffset && (start = length); parentNode === focusNode && ++indexWithinFocus === selection && (end = length); if (null !== (next = node.nextSibling)) break; node = parentNode; parentNode = node.parentNode; } node = next; } JSCompiler_temp = -1 === start || -1 === end ? null : { start: start, end: end }; } else JSCompiler_temp = null; } JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; } else JSCompiler_temp = null; selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp }; _enabled = !1; for (nextEffect = firstChild; null !== nextEffect; ) if ( ((firstChild = nextEffect), (root = firstChild.child), 0 !== (firstChild.subtreeFlags & 1028) && null !== root) ) (root.return = firstChild), (nextEffect = root); else for (; null !== nextEffect; ) { firstChild = nextEffect; focusNode = firstChild.alternate; root = firstChild.flags; switch (firstChild.tag) { case 0: break; case 11: case 15: break; case 1: if (0 !== (root & 1024) && null !== focusNode) { root = void 0; JSCompiler_temp = firstChild; anchorOffset = focusNode.memoizedProps; focusNode = focusNode.memoizedState; selection = JSCompiler_temp.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( JSCompiler_temp.type, anchorOffset, JSCompiler_temp.elementType === JSCompiler_temp.type ); root = selection.getSnapshotBeforeUpdate( resolvedPrevProps, focusNode ); selection.__reactInternalSnapshotBeforeUpdate = root; } catch (error) { captureCommitPhaseError( JSCompiler_temp, JSCompiler_temp.return, error ); } } break; case 3: if (0 !== (root & 1024)) if ( ((root = firstChild.stateNode.containerInfo), (JSCompiler_temp = root.nodeType), 9 === JSCompiler_temp) ) clearContainerSparingly(root); else if (1 === JSCompiler_temp) switch (root.nodeName) { case "HEAD": case "HTML": case "BODY": clearContainerSparingly(root); break; default: root.textContent = ""; } break; case 5: case 26: case 27: case 6: case 4: case 17: break; default: if (0 !== (root & 1024)) throw Error(formatProdErrorMessage(163)); } root = firstChild.sibling; if (null !== root) { root.return = firstChild.return; nextEffect = root; break; } nextEffect = firstChild.return; } resolvedPrevProps = shouldFireAfterActiveInstanceBlur; shouldFireAfterActiveInstanceBlur = !1; return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; switch (finishedWork.tag) { case 0: case 11: case 15: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitHookLayoutEffects(finishedWork, 5); break; case 1: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); if (flags & 4) if (((finishedRoot = finishedWork.stateNode), null === current)) if (shouldProfile(finishedWork)) { startEffectTimer(); try { finishedRoot.componentDidMount(); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } recordEffectDuration(); } else try { finishedRoot.componentDidMount(); } catch (error$114) { captureCommitPhaseError( finishedWork, finishedWork.return, error$114 ); } else { var prevProps = resolveClassComponentProps( finishedWork.type, current.memoizedProps ); current = current.memoizedState; if (shouldProfile(finishedWork)) { startEffectTimer(); try { finishedRoot.componentDidUpdate( prevProps, current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); } catch (error$115) { captureCommitPhaseError( finishedWork, finishedWork.return, error$115 ); } recordEffectDuration(); } else try { finishedRoot.componentDidUpdate( prevProps, current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); } catch (error$116) { captureCommitPhaseError( finishedWork, finishedWork.return, error$116 ); } } flags & 64 && commitClassCallbacks(finishedWork); flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); break; case 3: current = pushNestedEffectDurations(); recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); if (flags & 64 && ((flags = finishedWork.updateQueue), null !== flags)) { prevProps = null; if (null !== finishedWork.child) switch (finishedWork.child.tag) { case 27: case 5: prevProps = finishedWork.child.stateNode; break; case 1: prevProps = finishedWork.child.stateNode; } try { commitCallbacks(flags, prevProps); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } finishedRoot.effectDuration += popNestedEffectDurations(current); break; case 26: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); break; case 27: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); break; case 12: flags & 4 ? ((flags = pushNestedEffectDurations()), recursivelyTraverseLayoutEffects(finishedRoot, finishedWork), (finishedRoot = finishedWork.stateNode), (finishedRoot.effectDuration += bubbleNestedEffectDurations(flags)), commitProfilerUpdate( finishedWork, current, commitStartTime, finishedRoot.effectDuration )) : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); break; case 13: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); break; case 22: prevProps = null !== finishedWork.memoizedState || offscreenSubtreeIsHidden; if (!prevProps) { current = (null !== current && null !== current.memoizedState) || offscreenSubtreeWasHidden; var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; offscreenSubtreeIsHidden = prevProps; (offscreenSubtreeWasHidden = current) && !prevOffscreenSubtreeWasHidden ? recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, 0 !== (finishedWork.subtreeFlags & 8772) ) : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; } flags & 512 && ("manual" === finishedWork.memoizedProps.mode ? safelyAttachRef(finishedWork, finishedWork.return) : safelyDetachRef(finishedWork, finishedWork.return)); break; default: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); } } function detachFiberAfterEffects(fiber) { var alternate = fiber.alternate; null !== alternate && ((fiber.alternate = null), detachFiberAfterEffects(alternate)); fiber.child = null; fiber.deletions = null; fiber.sibling = null; 5 === fiber.tag && ((alternate = fiber.stateNode), null !== alternate && detachDeletedInstance(alternate)); fiber.stateNode = null; fiber.return = null; fiber.dependencies = null; fiber.memoizedProps = null; fiber.memoizedState = null; fiber.pendingProps = null; fiber.stateNode = null; fiber.updateQueue = null; } var hostParent = null, hostParentIsContainer = !1; function recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, parent ) { for (parent = parent.child; null !== parent; ) commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), (parent = parent.sibling); } function commitDeletionEffectsOnFiber( finishedRoot, nearestMountedAncestor, deletedFiber ) { if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); } catch (err) {} switch (deletedFiber.tag) { case 26: offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); deletedFiber.memoizedState ? deletedFiber.memoizedState.count-- : deletedFiber.stateNode && ((deletedFiber = deletedFiber.stateNode), deletedFiber.parentNode.removeChild(deletedFiber)); break; case 27: offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; hostParent = deletedFiber.stateNode; recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); deletedFiber = deletedFiber.stateNode; for ( nearestMountedAncestor = deletedFiber.attributes; nearestMountedAncestor.length; ) deletedFiber.removeAttributeNode(nearestMountedAncestor[0]); detachDeletedInstance(deletedFiber); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; case 5: offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; var prevHostParentIsContainer$126 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); hostParent = prevHostParentIsContainer; hostParentIsContainer = prevHostParentIsContainer$126; if (null !== hostParent) if (hostParentIsContainer) try { (finishedRoot = hostParent), (prevHostParent = deletedFiber.stateNode), 8 === finishedRoot.nodeType ? finishedRoot.parentNode.removeChild(prevHostParent) : finishedRoot.removeChild(prevHostParent); } catch (error) { captureCommitPhaseError( deletedFiber, nearestMountedAncestor, error ); } else try { hostParent.removeChild(deletedFiber.stateNode); } catch (error) { captureCommitPhaseError( deletedFiber, nearestMountedAncestor, error ); } break; case 18: null !== hostParent && (hostParentIsContainer ? ((nearestMountedAncestor = hostParent), (deletedFiber = deletedFiber.stateNode), 8 === nearestMountedAncestor.nodeType ? clearSuspenseBoundary( nearestMountedAncestor.parentNode, deletedFiber ) : 1 === nearestMountedAncestor.nodeType && clearSuspenseBoundary(nearestMountedAncestor, deletedFiber), retryIfBlockedOn(nearestMountedAncestor)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; case 4: prevHostParent = hostParent; prevHostParentIsContainer = hostParentIsContainer; hostParent = deletedFiber.stateNode.containerInfo; hostParentIsContainer = !0; recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; case 0: case 11: case 14: case 15: offscreenSubtreeWasHidden || commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor); offscreenSubtreeWasHidden || commitHookLayoutUnmountEffects(deletedFiber, nearestMountedAncestor, 4); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); break; case 1: offscreenSubtreeWasHidden || (safelyDetachRef(deletedFiber, nearestMountedAncestor), (prevHostParent = deletedFiber.stateNode), "function" === typeof prevHostParent.componentWillUnmount && safelyCallComponentWillUnmount( deletedFiber, nearestMountedAncestor, prevHostParent )); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); break; case 21: recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); break; case 22: offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); offscreenSubtreeWasHidden = (prevHostParent = offscreenSubtreeWasHidden) || null !== deletedFiber.memoizedState; recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); offscreenSubtreeWasHidden = prevHostParent; break; default: recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); } } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if ( null === finishedWork.memoizedState && ((finishedRoot = finishedWork.alternate), null !== finishedRoot && ((finishedRoot = finishedRoot.memoizedState), null !== finishedRoot && ((finishedRoot = finishedRoot.dehydrated), null !== finishedRoot))) ) try { retryIfBlockedOn(finishedRoot); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function getRetryCache(finishedWork) { switch (finishedWork.tag) { case 13: case 19: var retryCache = finishedWork.stateNode; null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); return retryCache; case 22: return ( (finishedWork = finishedWork.stateNode), (retryCache = finishedWork._retryCache), null === retryCache && (retryCache = finishedWork._retryCache = new PossiblyWeakSet()), retryCache ); default: throw Error(formatProdErrorMessage(435, finishedWork.tag)); } } function attachSuspenseRetryListeners(finishedWork, wakeables) { var retryCache = getRetryCache(finishedWork); wakeables.forEach(function (wakeable) { var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); if (!retryCache.has(wakeable)) { retryCache.add(wakeable); if (isDevToolsPresent) if (null !== inProgressLanes && null !== inProgressRoot) restorePendingUpdaters(inProgressRoot, inProgressLanes); else throw Error(formatProdErrorMessage(413)); wakeable.then(retry, retry); } }); } function commitMutationEffects(root, finishedWork, committedLanes) { inProgressLanes = committedLanes; inProgressRoot = root; commitMutationEffectsOnFiber(finishedWork, root); inProgressRoot = inProgressLanes = null; } function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { var deletions = parentFiber.deletions; if (null !== deletions) for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i], root = root$jscomp$0, returnFiber = parentFiber, parent = returnFiber; a: for (; null !== parent; ) { switch (parent.tag) { case 27: case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; break a; case 3: hostParent = parent.stateNode.containerInfo; hostParentIsContainer = !0; break a; case 4: hostParent = parent.stateNode.containerInfo; hostParentIsContainer = !0; break a; } parent = parent.return; } if (null === hostParent) throw Error(formatProdErrorMessage(160)); commitDeletionEffectsOnFiber(root, returnFiber, childToDelete); hostParent = null; hostParentIsContainer = !1; root = childToDelete.alternate; null !== root && (root.return = null); childToDelete.return = null; } if (parentFiber.subtreeFlags & 13878) for (parentFiber = parentFiber.child; null !== parentFiber; ) commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), (parentFiber = parentFiber.sibling); } var currentHoistableRoot = null; function commitMutationEffectsOnFiber(finishedWork, root) { var current = finishedWork.alternate, flags = finishedWork.flags; switch (finishedWork.tag) { case 0: case 11: case 14: case 15: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); flags & 4 && (commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork), commitHookLayoutUnmountEffects(finishedWork, finishedWork.return, 5)); break; case 1: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); flags & 64 && offscreenSubtreeIsHidden && ((finishedWork = finishedWork.updateQueue), null !== finishedWork && ((flags = finishedWork.callbacks), null !== flags && ((current = finishedWork.shared.hiddenCallbacks), (finishedWork.shared.hiddenCallbacks = null === current ? flags : current.concat(flags))))); break; case 26: var hoistableRoot = currentHoistableRoot; recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); if (flags & 4) if ( ((root = null !== current ? current.memoizedState : null), (flags = finishedWork.memoizedState), null === current) ) if (null === flags) if (null === finishedWork.stateNode) { a: { flags = finishedWork.type; current = finishedWork.memoizedProps; root = hoistableRoot.ownerDocument || hoistableRoot; b: switch (flags) { case "title": hoistableRoot = root.getElementsByTagName("title")[0]; if ( !hoistableRoot || hoistableRoot[internalHoistableMarker] || hoistableRoot[internalInstanceKey] || "http://www.w3.org/2000/svg" === hoistableRoot.namespaceURI || hoistableRoot.hasAttribute("itemprop") ) (hoistableRoot = root.createElement(flags)), root.head.insertBefore( hoistableRoot, root.querySelector("head > title") ); setInitialProperties(hoistableRoot, flags, current); hoistableRoot[internalInstanceKey] = finishedWork; markNodeAsHoistable(hoistableRoot); flags = hoistableRoot; break a; case "link": var maybeNodes = getHydratableHoistableCache( "link", "href", root ).get(flags + (current.href || "")); if (maybeNodes) for (var i = 0; i < maybeNodes.length; i++) if ( ((hoistableRoot = maybeNodes[i]), hoistableRoot.getAttribute("href") === (null == current.href ? null : current.href) && hoistableRoot.getAttribute("rel") === (null == current.rel ? null : current.rel) && hoistableRoot.getAttribute("title") === (null == current.title ? null : current.title) && hoistableRoot.getAttribute("crossorigin") === (null == current.crossOrigin ? null : current.crossOrigin)) ) { maybeNodes.splice(i, 1); break b; } hoistableRoot = root.createElement(flags); setInitialProperties(hoistableRoot, flags, current); root.head.appendChild(hoistableRoot); break; case "meta": if ( (maybeNodes = getHydratableHoistableCache( "meta", "content", root ).get(flags + (current.content || ""))) ) for (i = 0; i < maybeNodes.length; i++) if ( ((hoistableRoot = maybeNodes[i]), hoistableRoot.getAttribute("content") === (null == current.content ? null : "" + current.content) && hoistableRoot.getAttribute("name") === (null == current.name ? null : current.name) && hoistableRoot.getAttribute("property") === (null == current.property ? null : current.property) && hoistableRoot.getAttribute("http-equiv") === (null == current.httpEquiv ? null : current.httpEquiv) && hoistableRoot.getAttribute("charset") === (null == current.charSet ? null : current.charSet)) ) { maybeNodes.splice(i, 1); break b; } hoistableRoot = root.createElement(flags); setInitialProperties(hoistableRoot, flags, current); root.head.appendChild(hoistableRoot); break; default: throw Error(formatProdErrorMessage(468, flags)); } hoistableRoot[internalInstanceKey] = finishedWork; markNodeAsHoistable(hoistableRoot); flags = hoistableRoot; } finishedWork.stateNode = flags; } else mountHoistable( hoistableRoot, finishedWork.type, finishedWork.stateNode ); else finishedWork.stateNode = acquireResource( hoistableRoot, flags, finishedWork.memoizedProps ); else root !== flags ? (null === root ? null !== current.stateNode && ((current = current.stateNode), current.parentNode.removeChild(current)) : root.count--, null === flags ? mountHoistable( hoistableRoot, finishedWork.type, finishedWork.stateNode ) : acquireResource( hoistableRoot, flags, finishedWork.memoizedProps )) : null === flags && null !== finishedWork.stateNode && commitHostUpdate( finishedWork, finishedWork.memoizedProps, current.memoizedProps ); break; case 27: if (flags & 4 && null === finishedWork.alternate) { hoistableRoot = finishedWork.stateNode; maybeNodes = finishedWork.memoizedProps; try { for (var node = hoistableRoot.firstChild; node; ) { var nextNode = node.nextSibling, nodeName = node.nodeName; node[internalHoistableMarker] || "HEAD" === nodeName || "BODY" === nodeName || "SCRIPT" === nodeName || "STYLE" === nodeName || ("LINK" === nodeName && "stylesheet" === node.rel.toLowerCase()) || hoistableRoot.removeChild(node); node = nextNode; } for ( var type = finishedWork.type, attributes = hoistableRoot.attributes; attributes.length; ) hoistableRoot.removeAttributeNode(attributes[0]); setInitialProperties(hoistableRoot, type, maybeNodes); hoistableRoot[internalInstanceKey] = finishedWork; hoistableRoot[internalPropsKey] = maybeNodes; } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } case 5: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); if (finishedWork.flags & 32) { root = finishedWork.stateNode; try { setTextContent(root, ""); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } flags & 4 && null != finishedWork.stateNode && ((root = finishedWork.memoizedProps), commitHostUpdate( finishedWork, root, null !== current ? current.memoizedProps : root )); flags & 1024 && (needsFormReset = !0); break; case 6: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); if (flags & 4) { if (null === finishedWork.stateNode) throw Error(formatProdErrorMessage(162)); flags = finishedWork.memoizedProps; current = finishedWork.stateNode; try { current.nodeValue = flags; } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } break; case 3: hoistableRoot = pushNestedEffectDurations(); tagCaches = null; maybeNodes = currentHoistableRoot; currentHoistableRoot = getHoistableRoot(root.containerInfo); recursivelyTraverseMutationEffects(root, finishedWork); currentHoistableRoot = maybeNodes; commitReconciliationEffects(finishedWork); if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); root.effectDuration += popNestedEffectDurations(hoistableRoot); break; case 4: flags = currentHoistableRoot; currentHoistableRoot = getHoistableRoot( finishedWork.stateNode.containerInfo ); recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); currentHoistableRoot = flags; break; case 12: flags = pushNestedEffectDurations(); recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); finishedWork.stateNode.effectDuration += bubbleNestedEffectDurations(flags); break; case 13: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); finishedWork.child.flags & 8192 && (null !== finishedWork.memoizedState) !== (null !== current && null !== current.memoizedState) && (globalMostRecentFallbackTime = now$1()); flags & 4 && ((flags = finishedWork.updateQueue), null !== flags && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; case 22: flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); node = null !== finishedWork.memoizedState; nextNode = null !== current && null !== current.memoizedState; nodeName = offscreenSubtreeIsHidden; type = offscreenSubtreeWasHidden; offscreenSubtreeIsHidden = nodeName || node; offscreenSubtreeWasHidden = type || nextNode; recursivelyTraverseMutationEffects(root, finishedWork); offscreenSubtreeWasHidden = type; offscreenSubtreeIsHidden = nodeName; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; root._visibility &= -3; root._visibility |= root._pendingVisibility & 2; if ( flags & 8192 && ((root._visibility = node ? root._visibility & -2 : root._visibility | 1), node && ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), null === current || nextNode || root || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { if (5 === root.tag || 26 === root.tag || 27 === root.tag) { if (null === current) { nextNode = current = root; try { if (((hoistableRoot = nextNode.stateNode), node)) (maybeNodes = hoistableRoot.style), "function" === typeof maybeNodes.setProperty ? maybeNodes.setProperty("display", "none", "important") : (maybeNodes.display = "none"); else { i = nextNode.stateNode; var styleProp = nextNode.memoizedProps.style, display = void 0 !== styleProp && null !== styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null; i.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim(); } } catch (error) { captureCommitPhaseError(nextNode, nextNode.return, error); } } } else if (6 === root.tag) { if (null === current) { nextNode = root; try { nextNode.stateNode.nodeValue = node ? "" : nextNode.memoizedProps; } catch (error) { captureCommitPhaseError(nextNode, nextNode.return, error); } } } else if ( ((22 !== root.tag && 23 !== root.tag) || null === root.memoizedState || root === finishedWork) && null !== root.child ) { root.child.return = root; root = root.child; continue; } if (root === finishedWork) break a; for (; null === root.sibling; ) { if (null === root.return || root.return === finishedWork) break a; current === root && (current = null); root = root.return; } current === root && (current = null); root.sibling.return = root.return; root = root.sibling; } flags & 4 && ((flags = finishedWork.updateQueue), null !== flags && ((current = flags.retryQueue), null !== current && ((flags.retryQueue = null), attachSuspenseRetryListeners(finishedWork, current)))); break; case 19: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); flags & 4 && ((flags = finishedWork.updateQueue), null !== flags && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; case 21: break; default: recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); } } function commitReconciliationEffects(finishedWork) { var flags = finishedWork.flags; if (flags & 2) { try { if (27 !== finishedWork.tag) { a: { for (var parent = finishedWork.return; null !== parent; ) { if (isHostParent(parent)) { var JSCompiler_inline_result = parent; break a; } parent = parent.return; } throw Error(formatProdErrorMessage(160)); } switch (JSCompiler_inline_result.tag) { case 27: var parent$jscomp$0 = JSCompiler_inline_result.stateNode, before = getHostSibling(finishedWork); insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: var parent$119 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && (setTextContent(parent$119, ""), (JSCompiler_inline_result.flags &= -33)); var before$120 = getHostSibling(finishedWork); insertOrAppendPlacementNode(finishedWork, before$120, parent$119); break; case 3: case 4: var parent$121 = JSCompiler_inline_result.stateNode.containerInfo, before$122 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, before$122, parent$121 ); break; default: throw Error(formatProdErrorMessage(161)); } } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } finishedWork.flags &= -3; } flags & 4096 && (finishedWork.flags &= -4097); } function recursivelyResetForms(parentFiber) { if (parentFiber.subtreeFlags & 1024) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var fiber = parentFiber; recursivelyResetForms(fiber); 5 === fiber.tag && fiber.flags & 1024 && fiber.stateNode.reset(); parentFiber = parentFiber.sibling; } } function commitLayoutEffects(finishedWork, root, committedLanes) { inProgressLanes = committedLanes; inProgressRoot = root; commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); inProgressRoot = inProgressLanes = null; } function recursivelyTraverseLayoutEffects(root, parentFiber) { if (parentFiber.subtreeFlags & 8772) for (parentFiber = parentFiber.child; null !== parentFiber; ) commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), (parentFiber = parentFiber.sibling); } function recursivelyTraverseDisappearLayoutEffects(parentFiber) { for (parentFiber = parentFiber.child; null !== parentFiber; ) { var finishedWork = parentFiber; switch (finishedWork.tag) { case 0: case 11: case 14: case 15: commitHookLayoutUnmountEffects(finishedWork, finishedWork.return, 4); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; case 1: safelyDetachRef(finishedWork, finishedWork.return); var instance = finishedWork.stateNode; "function" === typeof instance.componentWillUnmount && safelyCallComponentWillUnmount( finishedWork, finishedWork.return, instance ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; case 26: case 27: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; case 22: safelyDetachRef(finishedWork, finishedWork.return); null === finishedWork.memoizedState && recursivelyTraverseDisappearLayoutEffects(finishedWork); break; default: recursivelyTraverseDisappearLayoutEffects(finishedWork); } parentFiber = parentFiber.sibling; } } function recursivelyTraverseReappearLayoutEffects( finishedRoot$jscomp$0, parentFiber, includeWorkInProgressEffects ) { includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { var current = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; switch (finishedWork.tag) { case 0: case 11: case 15: recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); commitHookLayoutEffects(finishedWork, 4); break; case 1: recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); current = finishedWork; finishedRoot = current.stateNode; if ("function" === typeof finishedRoot.componentDidMount) try { finishedRoot.componentDidMount(); } catch (error) { captureCommitPhaseError(current, current.return, error); } current = finishedWork; finishedRoot = current.updateQueue; if (null !== finishedRoot) { var instance = current.stateNode; try { var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0; finishedRoot < hiddenCallbacks.length; finishedRoot++ ) callCallback(hiddenCallbacks[finishedRoot], instance); } catch (error) { captureCommitPhaseError(current, current.return, error); } } includeWorkInProgressEffects && flags & 64 && commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; case 26: case 27: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); includeWorkInProgressEffects && null === current && flags & 4 && commitHostMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; case 12: includeWorkInProgressEffects && flags & 4 ? ((flags = pushNestedEffectDurations()), recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ), (finishedRoot = finishedWork.stateNode), (finishedRoot.effectDuration += bubbleNestedEffectDurations(flags)), commitProfilerUpdate( finishedWork, current, commitStartTime, finishedRoot.effectDuration )) : recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); break; case 13: recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); includeWorkInProgressEffects && flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); break; case 22: null === finishedWork.memoizedState && recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); safelyAttachRef(finishedWork, finishedWork.return); break; default: recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); } parentFiber = parentFiber.sibling; } } function commitOffscreenPassiveMountEffects(current, finishedWork) { var previousCache = null; null !== current && null !== current.memoizedState && null !== current.memoizedState.cachePool && (previousCache = current.memoizedState.cachePool.pool); current = null; null !== finishedWork.memoizedState && null !== finishedWork.memoizedState.cachePool && (current = finishedWork.memoizedState.cachePool.pool); current !== previousCache && (null != current && current.refCount++, null != previousCache && releaseCache(previousCache)); } function commitCachePassiveMountEffect(current, finishedWork) { current = null; null !== finishedWork.alternate && (current = finishedWork.alternate.memoizedState.cache); finishedWork = finishedWork.memoizedState.cache; finishedWork !== current && (finishedWork.refCount++, null != current && releaseCache(current)); } function recursivelyTraversePassiveMountEffects( root, parentFiber, committedLanes, committedTransitions ) { if (parentFiber.subtreeFlags & 10256) for (parentFiber = parentFiber.child; null !== parentFiber; ) commitPassiveMountOnFiber( root, parentFiber, committedLanes, committedTransitions ), (parentFiber = parentFiber.sibling); } function commitPassiveMountOnFiber( finishedRoot, finishedWork, committedLanes, committedTransitions ) { var flags = finishedWork.flags; switch (finishedWork.tag) { case 0: case 11: case 15: recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, committedLanes, committedTransitions ); flags & 2048 && commitHookPassiveMountEffects(finishedWork, 9); break; case 3: var prevEffectDuration = pushNestedEffectDurations(); recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, committedLanes, committedTransitions ); flags & 2048 && ((committedLanes = null), null !== finishedWork.alternate && (committedLanes = finishedWork.alternate.memoizedState.cache), (finishedWork = finishedWork.memoizedState.cache), finishedWork !== committedLanes && (finishedWork.refCount++, null != committedLanes && releaseCache(committedLanes))); finishedRoot.passiveEffectDuration += popNestedEffectDurations(prevEffectDuration); break; case 12: if (flags & 2048) { flags = pushNestedEffectDurations(); recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, committedLanes, committedTransitions ); finishedRoot = finishedWork.stateNode; finishedRoot.passiveEffectDuration += bubbleNestedEffectDurations(flags); try { prevEffectDuration = finishedWork.memoizedProps; var id = prevEffectDuration.id, onPostCommit = prevEffectDuration.onPostCommit, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof onPostCommit && onPostCommit( id, phase, finishedRoot.passiveEffectDuration, commitStartTime ); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } else recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, committedLanes, committedTransitions ); break; case 23: break; case 22: prevEffectDuration = finishedWork.stateNode; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, committedLanes, committedTransitions ) : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork) : prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, committedLanes, committedTransitions ) : ((prevEffectDuration._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, committedLanes, committedTransitions, 0 !== (finishedWork.subtreeFlags & 10256) )); flags & 2048 && commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork ); break; case 24: recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, committedLanes, committedTransitions ); flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; default: recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, committedLanes, committedTransitions ); } } function recursivelyTraverseReconnectPassiveEffects( finishedRoot$jscomp$0, parentFiber, committedLanes$jscomp$0, committedTransitions$jscomp$0, includeWorkInProgressEffects ) { includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 10256); for (parentFiber = parentFiber.child; null !== parentFiber; ) { var finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, committedLanes = committedLanes$jscomp$0, committedTransitions = committedTransitions$jscomp$0, flags = finishedWork.flags; switch (finishedWork.tag) { case 0: case 11: case 15: recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects ); commitHookPassiveMountEffects(finishedWork, 8); break; case 23: break; case 22: var instance = finishedWork.stateNode; null !== finishedWork.memoizedState ? instance._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects ) : recursivelyTraverseAtomicPassiveEffects( finishedRoot, finishedWork ) : ((instance._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects )); includeWorkInProgressEffects && flags & 2048 && commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork ); break; case 24: recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects ); includeWorkInProgressEffects && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; default: recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects ); } parentFiber = parentFiber.sibling; } } function recursivelyTraverseAtomicPassiveEffects( finishedRoot$jscomp$0, parentFiber ) { if (parentFiber.subtreeFlags & 10256) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; switch (finishedWork.tag) { case 22: recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); flags & 2048 && commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork ); break; case 24: recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; default: recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); } parentFiber = parentFiber.sibling; } } var suspenseyCommitFlag = 8192; function recursivelyAccumulateSuspenseyCommit(parentFiber) { if (parentFiber.subtreeFlags & suspenseyCommitFlag) for (parentFiber = parentFiber.child; null !== parentFiber; ) accumulateSuspenseyCommitOnFiber(parentFiber), (parentFiber = parentFiber.sibling); } function accumulateSuspenseyCommitOnFiber(fiber) { switch (fiber.tag) { case 26: recursivelyAccumulateSuspenseyCommit(fiber); fiber.flags & suspenseyCommitFlag && null !== fiber.memoizedState && suspendResource( currentHoistableRoot, fiber.memoizedState, fiber.memoizedProps ); break; case 5: recursivelyAccumulateSuspenseyCommit(fiber); break; case 3: case 4: var previousHoistableRoot = currentHoistableRoot; currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo); recursivelyAccumulateSuspenseyCommit(fiber); currentHoistableRoot = previousHoistableRoot; break; case 22: null === fiber.memoizedState && ((previousHoistableRoot = fiber.alternate), null !== previousHoistableRoot && null !== previousHoistableRoot.memoizedState ? ((previousHoistableRoot = suspenseyCommitFlag), (suspenseyCommitFlag = 16777216), recursivelyAccumulateSuspenseyCommit(fiber), (suspenseyCommitFlag = previousHoistableRoot)) : recursivelyAccumulateSuspenseyCommit(fiber)); break; default: recursivelyAccumulateSuspenseyCommit(fiber); } } function detachAlternateSiblings(parentFiber) { var previousFiber = parentFiber.alternate; if ( null !== previousFiber && ((parentFiber = previousFiber.child), null !== parentFiber) ) { previousFiber.child = null; do (previousFiber = parentFiber.sibling), (parentFiber.sibling = null), (parentFiber = previousFiber); while (null !== parentFiber); } } function recursivelyTraversePassiveUnmountEffects(parentFiber) { var deletions = parentFiber.deletions; if (0 !== (parentFiber.flags & 16)) { if (null !== deletions) for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; nextEffect = childToDelete; commitPassiveUnmountEffectsInsideOfDeletedTree_begin( childToDelete, parentFiber ); } detachAlternateSiblings(parentFiber); } if (parentFiber.subtreeFlags & 10256) for (parentFiber = parentFiber.child; null !== parentFiber; ) commitPassiveUnmountOnFiber(parentFiber), (parentFiber = parentFiber.sibling); } function commitPassiveUnmountOnFiber(finishedWork) { switch (finishedWork.tag) { case 0: case 11: case 15: recursivelyTraversePassiveUnmountEffects(finishedWork); finishedWork.flags & 2048 && commitHookPassiveUnmountEffects(finishedWork, finishedWork.return, 9); break; case 3: var prevEffectDuration = pushNestedEffectDurations(); recursivelyTraversePassiveUnmountEffects(finishedWork); finishedWork.stateNode.passiveEffectDuration += popNestedEffectDurations(prevEffectDuration); break; case 12: prevEffectDuration = pushNestedEffectDurations(); recursivelyTraversePassiveUnmountEffects(finishedWork); finishedWork.stateNode.passiveEffectDuration += bubbleNestedEffectDurations(prevEffectDuration); break; case 22: prevEffectDuration = finishedWork.stateNode; null !== finishedWork.memoizedState && prevEffectDuration._visibility & 4 && (null === finishedWork.return || 13 !== finishedWork.return.tag) ? ((prevEffectDuration._visibility &= -5), recursivelyTraverseDisconnectPassiveEffects(finishedWork)) : recursivelyTraversePassiveUnmountEffects(finishedWork); break; default: recursivelyTraversePassiveUnmountEffects(finishedWork); } } function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { var deletions = parentFiber.deletions; if (0 !== (parentFiber.flags & 16)) { if (null !== deletions) for (var i = 0; i < deletions.length; i++) { var childToDelete = deletions[i]; nextEffect = childToDelete; commitPassiveUnmountEffectsInsideOfDeletedTree_begin( childToDelete, parentFiber ); } detachAlternateSiblings(parentFiber); } for (parentFiber = parentFiber.child; null !== parentFiber; ) { deletions = parentFiber; switch (deletions.tag) { case 0: case 11: case 15: commitHookPassiveUnmountEffects(deletions, deletions.return, 8); recursivelyTraverseDisconnectPassiveEffects(deletions); break; case 22: i = deletions.stateNode; i._visibility & 4 && ((i._visibility &= -5), recursivelyTraverseDisconnectPassiveEffects(deletions)); break; default: recursivelyTraverseDisconnectPassiveEffects(deletions); } parentFiber = parentFiber.sibling; } } function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( deletedSubtreeRoot, nearestMountedAncestor ) { for (; null !== nextEffect; ) { var fiber = nextEffect; switch (fiber.tag) { case 0: case 11: case 15: commitHookPassiveUnmountEffects(fiber, nearestMountedAncestor, 8); break; case 23: case 22: if ( null !== fiber.memoizedState && null !== fiber.memoizedState.cachePool ) { var cache = fiber.memoizedState.cachePool.pool; null != cache && cache.refCount++; } break; case 24: releaseCache(fiber.memoizedState.cache); } cache = fiber.child; if (null !== cache) (cache.return = fiber), (nextEffect = cache); else a: for (fiber = deletedSubtreeRoot; null !== nextEffect; ) { cache = nextEffect; var sibling = cache.sibling, returnFiber = cache.return; detachFiberAfterEffects(cache); if (cache === fiber) { nextEffect = null; break a; } if (null !== sibling) { sibling.return = returnFiber; nextEffect = sibling; break a; } nextEffect = returnFiber; } } } function FiberNode(tag, pendingProps, key, mode) { this.tag = tag; this.key = key; this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; this.index = 0; this.refCleanup = this.ref = null; this.pendingProps = pendingProps; this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; this.mode = mode; this.subtreeFlags = this.flags = 0; this.deletions = null; this.childLanes = this.lanes = 0; this.alternate = null; this.actualDuration = -0; this.actualStartTime = -1.1; this.treeBaseDuration = this.selfBaseDuration = -0; } function createFiberImplClass(tag, pendingProps, key, mode) { return new FiberNode(tag, pendingProps, key, mode); } function shouldConstruct(Component) { Component = Component.prototype; return !(!Component || !Component.isReactComponent); } function createWorkInProgress(current, pendingProps) { var workInProgress = current.alternate; null === workInProgress ? ((workInProgress = createFiberImplClass( current.tag, pendingProps, current.key, current.mode )), (workInProgress.elementType = current.elementType), (workInProgress.type = current.type), (workInProgress.stateNode = current.stateNode), (workInProgress.alternate = current), (current.alternate = workInProgress)) : ((workInProgress.pendingProps = pendingProps), (workInProgress.type = current.type), (workInProgress.flags = 0), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); workInProgress.flags = current.flags & 31457280; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; workInProgress.memoizedProps = current.memoizedProps; workInProgress.memoizedState = current.memoizedState; workInProgress.updateQueue = current.updateQueue; pendingProps = current.dependencies; workInProgress.dependencies = null === pendingProps ? null : { lanes: pendingProps.lanes, firstContext: pendingProps.firstContext }; workInProgress.sibling = current.sibling; workInProgress.index = current.index; workInProgress.ref = current.ref; workInProgress.refCleanup = current.refCleanup; workInProgress.selfBaseDuration = current.selfBaseDuration; workInProgress.treeBaseDuration = current.treeBaseDuration; return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { workInProgress.flags &= 31457282; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), (workInProgress.lanes = renderLanes), (workInProgress.child = null), (workInProgress.subtreeFlags = 0), (workInProgress.memoizedProps = null), (workInProgress.memoizedState = null), (workInProgress.updateQueue = null), (workInProgress.dependencies = null), (workInProgress.stateNode = null), (workInProgress.selfBaseDuration = 0), (workInProgress.treeBaseDuration = 0)) : ((workInProgress.childLanes = current.childLanes), (workInProgress.lanes = current.lanes), (workInProgress.child = current.child), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null), (workInProgress.memoizedProps = current.memoizedProps), (workInProgress.memoizedState = current.memoizedState), (workInProgress.updateQueue = current.updateQueue), (workInProgress.type = current.type), (renderLanes = current.dependencies), (workInProgress.dependencies = null === renderLanes ? null : { lanes: renderLanes.lanes, firstContext: renderLanes.firstContext }), (workInProgress.selfBaseDuration = current.selfBaseDuration), (workInProgress.treeBaseDuration = current.treeBaseDuration)); return workInProgress; } function createFiberFromTypeAndProps( type, key, pendingProps, owner, mode, lanes ) { var fiberTag = 0; owner = type; if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1); else if ("string" === typeof type) fiberTag = isHostHoistableType( type, pendingProps, contextStackCursor.current ) ? 26 : "html" === type || "head" === type || "body" === type ? 27 : 5; else a: switch (type) { case REACT_FRAGMENT_TYPE: return createFiberFromFragment(pendingProps.children, mode, lanes, key); case REACT_STRICT_MODE_TYPE: fiberTag = 8; mode |= 24; break; case REACT_PROFILER_TYPE: return ( (type = createFiberImplClass(12, pendingProps, key, mode | 2)), (type.elementType = REACT_PROFILER_TYPE), (type.lanes = lanes), (type.stateNode = { effectDuration: 0, passiveEffectDuration: 0 }), type ); case REACT_SUSPENSE_TYPE: return ( (type = createFiberImplClass(13, pendingProps, key, mode)), (type.elementType = REACT_SUSPENSE_TYPE), (type.lanes = lanes), type ); case REACT_SUSPENSE_LIST_TYPE: return ( (type = createFiberImplClass(19, pendingProps, key, mode)), (type.elementType = REACT_SUSPENSE_LIST_TYPE), (type.lanes = lanes), type ); case REACT_OFFSCREEN_TYPE: return createFiberFromOffscreen(pendingProps, mode, lanes, key); default: if ("object" === typeof type && null !== type) switch (type.$$typeof) { case REACT_PROVIDER_TYPE: case REACT_CONTEXT_TYPE: fiberTag = 10; break a; case REACT_CONSUMER_TYPE: fiberTag = 9; break a; case REACT_FORWARD_REF_TYPE: fiberTag = 11; break a; case REACT_MEMO_TYPE: fiberTag = 14; break a; case REACT_LAZY_TYPE: fiberTag = 16; owner = null; break a; } fiberTag = 29; pendingProps = Error( formatProdErrorMessage(130, null === type ? "null" : typeof type, "") ); owner = null; } key = createFiberImplClass(fiberTag, pendingProps, key, mode); key.elementType = type; key.type = owner; key.lanes = lanes; return key; } function createFiberFromFragment(elements, mode, lanes, key) { elements = createFiberImplClass(7, elements, key, mode); elements.lanes = lanes; return elements; } function createFiberFromOffscreen(pendingProps, mode, lanes, key) { pendingProps = createFiberImplClass(22, pendingProps, key, mode); pendingProps.elementType = REACT_OFFSCREEN_TYPE; pendingProps.lanes = lanes; var primaryChildInstance = { _visibility: 1, _pendingVisibility: 1, _pendingMarkers: null, _retryCache: null, _transitions: null, _current: null, detach: function () { var fiber = primaryChildInstance._current; if (null === fiber) throw Error(formatProdErrorMessage(456)); if (0 === (primaryChildInstance._pendingVisibility & 2)) { var root = enqueueConcurrentRenderForLane(fiber, 2); null !== root && ((primaryChildInstance._pendingVisibility |= 2), scheduleUpdateOnFiber(root, fiber, 2)); } }, attach: function () { var fiber = primaryChildInstance._current; if (null === fiber) throw Error(formatProdErrorMessage(456)); if (0 !== (primaryChildInstance._pendingVisibility & 2)) { var root = enqueueConcurrentRenderForLane(fiber, 2); null !== root && ((primaryChildInstance._pendingVisibility &= -3), scheduleUpdateOnFiber(root, fiber, 2)); } } }; pendingProps.stateNode = primaryChildInstance; return pendingProps; } function createFiberFromText(content, mode, lanes) { content = createFiberImplClass(6, content, null, mode); content.lanes = lanes; return content; } function createFiberFromPortal(portal, mode, lanes) { mode = createFiberImplClass( 4, null !== portal.children ? portal.children : [], portal.key, mode ); mode.lanes = lanes; mode.stateNode = { containerInfo: portal.containerInfo, pendingChildren: null, implementation: portal.implementation }; return mode; } function markUpdate(workInProgress) { workInProgress.flags |= 4; } function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) { resource = suspenseHandlerStackCursor.current; if ( null !== resource && ((workInProgressRootRenderLanes & 4194176) === workInProgressRootRenderLanes ? null !== shellBoundary : ((workInProgressRootRenderLanes & 62914560) !== workInProgressRootRenderLanes && 0 === (workInProgressRootRenderLanes & 536870912)) || resource !== shellBoundary) ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); workInProgress.flags |= 8192; } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), (workInProgress.lanes |= retryQueue), (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) switch (renderState.tailMode) { case "hidden": hasRenderedATailFallback = renderState.tail; for (var lastTailNode = null; null !== hasRenderedATailFallback; ) null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), (hasRenderedATailFallback = hasRenderedATailFallback.sibling); null === lastTailNode ? (renderState.tail = null) : (lastTailNode.sibling = null); break; case "collapsed": lastTailNode = renderState.tail; for (var lastTailNode$141 = null; null !== lastTailNode; ) null !== lastTailNode.alternate && (lastTailNode$141 = lastTailNode), (lastTailNode = lastTailNode.sibling); null === lastTailNode$141 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) : (lastTailNode$141.sibling = null); } } function bubbleProperties(completedWork) { var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0; if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( var treeBaseDuration$143 = completedWork.selfBaseDuration, child$144 = completedWork.child; null !== child$144; ) (newChildLanes |= child$144.lanes | child$144.childLanes), (subtreeFlags |= child$144.subtreeFlags & 31457280), (subtreeFlags |= child$144.flags & 31457280), (treeBaseDuration$143 += child$144.treeBaseDuration), (child$144 = child$144.sibling); completedWork.treeBaseDuration = treeBaseDuration$143; } else for ( treeBaseDuration$143 = completedWork.child; null !== treeBaseDuration$143; ) (newChildLanes |= treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes), (subtreeFlags |= treeBaseDuration$143.subtreeFlags & 31457280), (subtreeFlags |= treeBaseDuration$143.flags & 31457280), (treeBaseDuration$143.return = completedWork), (treeBaseDuration$143 = treeBaseDuration$143.sibling); else if (0 !== (completedWork.mode & 2)) { treeBaseDuration$143 = completedWork.actualDuration; child$144 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), (treeBaseDuration$143 += child.actualDuration), (child$144 += child.treeBaseDuration), (child = child.sibling); completedWork.actualDuration = treeBaseDuration$143; completedWork.treeBaseDuration = child$144; } else for ( treeBaseDuration$143 = completedWork.child; null !== treeBaseDuration$143; ) (newChildLanes |= treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes), (subtreeFlags |= treeBaseDuration$143.subtreeFlags), (subtreeFlags |= treeBaseDuration$143.flags), (treeBaseDuration$143.return = completedWork), (treeBaseDuration$143 = treeBaseDuration$143.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; } function completeWork(current, workInProgress, renderLanes) { var newProps = workInProgress.pendingProps; popTreeContext(workInProgress); switch (workInProgress.tag) { case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return bubbleProperties(workInProgress), null; case 1: return bubbleProperties(workInProgress), null; case 3: renderLanes = workInProgress.stateNode; newProps = null; null !== current && (newProps = current.memoizedState.cache); workInProgress.memoizedState.cache !== newProps && (workInProgress.flags |= 2048); popProvider(CacheContext); popHostContainer(); renderLanes.pendingContext && ((renderLanes.context = renderLanes.pendingContext), (renderLanes.pendingContext = null)); if (null === current || null === current.child) popHydrationState(workInProgress) ? markUpdate(workInProgress) : null === current || (current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256)) || ((workInProgress.flags |= 1024), null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), (hydrationErrors = null))); bubbleProperties(workInProgress); return null; case 26: return ( (renderLanes = workInProgress.memoizedState), null === current ? (markUpdate(workInProgress), null !== renderLanes ? (bubbleProperties(workInProgress), preloadResourceAndSuspendIfNeeded(workInProgress, renderLanes)) : (bubbleProperties(workInProgress), (workInProgress.flags &= -16777217))) : renderLanes ? renderLanes !== current.memoizedState ? (markUpdate(workInProgress), bubbleProperties(workInProgress), preloadResourceAndSuspendIfNeeded(workInProgress, renderLanes)) : (bubbleProperties(workInProgress), (workInProgress.flags &= -16777217)) : (current.memoizedProps !== newProps && markUpdate(workInProgress), bubbleProperties(workInProgress), (workInProgress.flags &= -16777217)), null ); case 27: popHostContext(workInProgress); renderLanes = rootInstanceStackCursor.current; var type = workInProgress.type; if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) throw Error(formatProdErrorMessage(166)); bubbleProperties(workInProgress); return null; } current = contextStackCursor.current; popHydrationState(workInProgress) ? prepareToHydrateHostInstance(workInProgress, current) : ((current = resolveSingletonInstance(type, newProps, renderLanes)), (workInProgress.stateNode = current), markUpdate(workInProgress)); } bubbleProperties(workInProgress); return null; case 5: popHostContext(workInProgress); renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); else { if (!newProps) { if (null === workInProgress.stateNode) throw Error(formatProdErrorMessage(166)); bubbleProperties(workInProgress); return null; } current = contextStackCursor.current; if (popHydrationState(workInProgress)) prepareToHydrateHostInstance(workInProgress, current); else { type = getOwnerDocumentFromRootContainer( rootInstanceStackCursor.current ); switch (current) { case 1: current = type.createElementNS( "http://www.w3.org/2000/svg", renderLanes ); break; case 2: current = type.createElementNS( "http://www.w3.org/1998/Math/MathML", renderLanes ); break; default: switch (renderLanes) { case "svg": current = type.createElementNS( "http://www.w3.org/2000/svg", renderLanes ); break; case "math": current = type.createElementNS( "http://www.w3.org/1998/Math/MathML", renderLanes ); break; case "script": current = type.createElement("div"); current.innerHTML = "