diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js index 04c1e4c0a2914..f8867ebcff64a 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js @@ -109,9 +109,9 @@ if (__DEV__) { var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, false is used for a new modern build. + var enableRenderableContext = true; function getWrappedName(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -193,30 +193,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName(context) + ".Provider"; - } else { - return getContextName(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef"); @@ -356,8 +347,8 @@ if (__DEV__) { type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || - (!enableRenderableContext && type.$$typeof === REACT_PROVIDER_TYPE) || - (enableRenderableContext && type.$$typeof === REACT_CONSUMER_TYPE) || + !enableRenderableContext || + type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js index 8834cd692f391..50d493325c362 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js @@ -109,9 +109,9 @@ if (__DEV__) { var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, true is used for a new modern build. + var enableRenderableContext = true; function getWrappedName(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -193,30 +193,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName(context) + ".Provider"; - } else { - return getContextName(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef"); @@ -356,8 +347,8 @@ if (__DEV__) { type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || - (!enableRenderableContext && type.$$typeof === REACT_PROVIDER_TYPE) || - (enableRenderableContext && type.$$typeof === REACT_CONSUMER_TYPE) || + !enableRenderableContext || + type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 5eebc819f27a0..3a5119457a91d 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -239d06e2b8b0f2dabd6bc154e5f24d594ac5840d +6c3b8dbfed6f879440f484bd0bf801fac67ec684 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index e8abb1f59c54e..e1a15760fe6a2 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -24,7 +24,7 @@ if (__DEV__) { ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = "18.3.0-www-classic-aa607e2a"; + var ReactVersion = "18.3.0-www-classic-c6726149"; // ATTENTION // When adding new symbols to this file, @@ -475,9 +475,9 @@ if (__DEV__) { var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, false is used for a new modern build. + var enableRenderableContext = true; function getWrappedName(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -559,30 +559,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName(context) + ".Provider"; - } else { - return getContextName(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef"); @@ -731,8 +722,8 @@ if (__DEV__) { type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || - (!enableRenderableContext && type.$$typeof === REACT_PROVIDER_TYPE) || - (enableRenderableContext && type.$$typeof === REACT_CONSUMER_TYPE) || + !enableRenderableContext || + type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used @@ -2640,70 +2631,12 @@ if (__DEV__) { Consumer: null }; - if (enableRenderableContext) { + { context.Provider = context; context.Consumer = { $$typeof: REACT_CONSUMER_TYPE, _context: context }; - } else { - context.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: context - }; - - { - var Consumer = { - $$typeof: REACT_CONTEXT_TYPE, - _context: context - }; - Object.defineProperties(Consumer, { - Provider: { - get: function () { - return context.Provider; - }, - set: function (_Provider) { - context.Provider = _Provider; - } - }, - _currentValue: { - get: function () { - return context._currentValue; - }, - set: function (_currentValue) { - context._currentValue = _currentValue; - } - }, - _currentValue2: { - get: function () { - return context._currentValue2; - }, - set: function (_currentValue2) { - context._currentValue2 = _currentValue2; - } - }, - _threadCount: { - get: function () { - return context._threadCount; - }, - set: function (_threadCount) { - context._threadCount = _threadCount; - } - }, - Consumer: { - get: function () { - return context.Consumer; - } - }, - displayName: { - get: function () { - return context.displayName; - }, - set: function (displayName) {} - } - }); - context.Consumer = Consumer; - } } { diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index e1aa643d86d9c..8caf115b28f0a 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -24,7 +24,7 @@ if (__DEV__) { ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = "18.3.0-www-modern-4cd900b7"; + var ReactVersion = "18.3.0-www-modern-91b2c91d"; // ATTENTION // When adding new symbols to this file, @@ -475,9 +475,9 @@ if (__DEV__) { var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, true is used for a new modern build. + var enableRenderableContext = true; function getWrappedName(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -559,30 +559,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName(context) + ".Provider"; - } else { - return getContextName(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef"); @@ -731,8 +722,8 @@ if (__DEV__) { type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || - (!enableRenderableContext && type.$$typeof === REACT_PROVIDER_TYPE) || - (enableRenderableContext && type.$$typeof === REACT_CONSUMER_TYPE) || + !enableRenderableContext || + type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used @@ -2596,70 +2587,12 @@ if (__DEV__) { Consumer: null }; - if (enableRenderableContext) { + { context.Provider = context; context.Consumer = { $$typeof: REACT_CONSUMER_TYPE, _context: context }; - } else { - context.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: context - }; - - { - var Consumer = { - $$typeof: REACT_CONTEXT_TYPE, - _context: context - }; - Object.defineProperties(Consumer, { - Provider: { - get: function () { - return context.Provider; - }, - set: function (_Provider) { - context.Provider = _Provider; - } - }, - _currentValue: { - get: function () { - return context._currentValue; - }, - set: function (_currentValue) { - context._currentValue = _currentValue; - } - }, - _currentValue2: { - get: function () { - return context._currentValue2; - }, - set: function (_currentValue2) { - context._currentValue2 = _currentValue2; - } - }, - _threadCount: { - get: function () { - return context._threadCount; - }, - set: function (_threadCount) { - context._threadCount = _threadCount; - } - }, - Consumer: { - get: function () { - return context.Consumer; - } - }, - displayName: { - get: function () { - return context.displayName; - }, - set: function (displayName) {} - } - }); - context.Consumer = Consumer; - } } { diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index de9512e55a231..e7576eddceb70 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -16,7 +16,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"), 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"), @@ -84,7 +83,6 @@ pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, dynamicFeatureFlags = require("ReactFeatureFlags"), enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, ReactCurrentDispatcher = { current: null }, ReactCurrentCache = { current: null }, @@ -476,17 +474,11 @@ exports.createContext = function (defaultValue) { Provider: null, Consumer: null }; - enableRenderableContext - ? ((defaultValue.Provider = defaultValue), - (defaultValue.Consumer = { - $$typeof: REACT_CONSUMER_TYPE, - _context: defaultValue - })) - : ((defaultValue.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: defaultValue - }), - (defaultValue.Consumer = defaultValue)); + defaultValue.Provider = defaultValue; + defaultValue.Consumer = { + $$typeof: REACT_CONSUMER_TYPE, + _context: defaultValue + }; return defaultValue; }; exports.createElement = createElement; @@ -633,4 +625,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-classic-49416855"; +exports.version = "18.3.0-www-classic-2523b446"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 5ea48d7eef647..1aad9a029aecb 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -16,7 +16,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"), 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"), @@ -83,7 +82,6 @@ pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, dynamicFeatureFlags = require("ReactFeatureFlags"), enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, ReactCurrentDispatcher = { current: null }, ReactCurrentCache = { current: null }, @@ -437,17 +435,11 @@ exports.createContext = function (defaultValue) { Provider: null, Consumer: null }; - enableRenderableContext - ? ((defaultValue.Provider = defaultValue), - (defaultValue.Consumer = { - $$typeof: REACT_CONSUMER_TYPE, - _context: defaultValue - })) - : ((defaultValue.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: defaultValue - }), - (defaultValue.Consumer = defaultValue)); + defaultValue.Provider = defaultValue; + defaultValue.Consumer = { + $$typeof: REACT_CONSUMER_TYPE, + _context: defaultValue + }; return defaultValue; }; exports.createElement = function (type, config, children) { @@ -625,4 +617,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-modern-255fbb6a"; +exports.version = "18.3.0-www-modern-cc766bda"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index f99b686258098..fd63703624a03 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -20,7 +20,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"), 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"), @@ -88,7 +87,6 @@ pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, dynamicFeatureFlags = require("ReactFeatureFlags"), enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, ReactCurrentDispatcher = { current: null }, ReactCurrentCache = { current: null }, @@ -480,17 +478,11 @@ exports.createContext = function (defaultValue) { Provider: null, Consumer: null }; - enableRenderableContext - ? ((defaultValue.Provider = defaultValue), - (defaultValue.Consumer = { - $$typeof: REACT_CONSUMER_TYPE, - _context: defaultValue - })) - : ((defaultValue.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: defaultValue - }), - (defaultValue.Consumer = defaultValue)); + defaultValue.Provider = defaultValue; + defaultValue.Consumer = { + $$typeof: REACT_CONSUMER_TYPE, + _context: defaultValue + }; return defaultValue; }; exports.createElement = createElement; @@ -637,7 +629,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-classic-f58f8aa5"; +exports.version = "18.3.0-www-classic-48808038"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index 727205579d61c..67eaea175144a 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -20,7 +20,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"), 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"), @@ -87,7 +86,6 @@ pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, dynamicFeatureFlags = require("ReactFeatureFlags"), enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, ReactCurrentDispatcher = { current: null }, ReactCurrentCache = { current: null }, @@ -441,17 +439,11 @@ exports.createContext = function (defaultValue) { Provider: null, Consumer: null }; - enableRenderableContext - ? ((defaultValue.Provider = defaultValue), - (defaultValue.Consumer = { - $$typeof: REACT_CONSUMER_TYPE, - _context: defaultValue - })) - : ((defaultValue.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: defaultValue - }), - (defaultValue.Consumer = defaultValue)); + defaultValue.Provider = defaultValue; + defaultValue.Consumer = { + $$typeof: REACT_CONSUMER_TYPE, + _context: defaultValue + }; return defaultValue; }; exports.createElement = function (type, config, children) { @@ -629,7 +621,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-modern-1944f24a"; +exports.version = "18.3.0-www-modern-4a897bb7"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 928e7c9f11ec1..5aeae7c4d8342 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "18.3.0-www-classic-b016f7a6"; + var ReactVersion = "18.3.0-www-classic-361724d4"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -187,7 +187,6 @@ if (__DEV__) { dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, useModernStrictMode = dynamicFeatureFlags.useModernStrictMode, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, false is used for a new modern build. @@ -354,30 +353,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName$1(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName$1(context) + ".Provider"; - } else { - return getContextName$1(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName$1(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName$1(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName$1(type, type.render, "ForwardRef"); @@ -430,23 +420,15 @@ if (__DEV__) { case CacheComponent: return "Cache"; - case ContextConsumer: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - var context = type; - return getContextName(context) + ".Consumer"; - } + case ContextConsumer: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } - case ContextProvider: - if (enableRenderableContext) { - var _context = type; - return getContextName(_context) + ".Provider"; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case ContextProvider: { + var _context = type; + return getContextName(_context) + ".Provider"; + } case DehydratedFragment: return "DehydratedFragment"; @@ -17427,10 +17409,8 @@ if (__DEV__) { function updateContextProvider(current, workInProgress, renderLanes) { var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } var newProps = workInProgress.pendingProps; @@ -17484,17 +17464,9 @@ if (__DEV__) { function updateContextConsumer(current, workInProgress, renderLanes) { var context; - if (enableRenderableContext) { + { var consumerType = workInProgress.type; context = consumerType._context; - } else { - context = workInProgress.type; - - { - if (context._context !== undefined) { - context = context._context; - } - } } var newProps = workInProgress.pendingProps; @@ -17740,10 +17712,8 @@ if (__DEV__) { var newValue = workInProgress.memoizedProps.value; var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } pushProvider(workInProgress, context, newValue); @@ -18716,10 +18686,8 @@ if (__DEV__) { if (oldProps !== null) { var context = void 0; - if (enableRenderableContext) { + { context = parent.type; - } else { - context = parent.type._context; } var newProps = parent.pendingProps; @@ -19258,10 +19226,7 @@ if (__DEV__) { } function collectNearestContextValues(node, context, childContextValues) { - if ( - node.tag === ContextProvider && - (enableRenderableContext ? node.type : node.type._context) === context - ) { + if (node.tag === ContextProvider && node.type === context) { var contextValue = node.memoizedProps.value; childContextValues.push(contextValue); } else { @@ -20110,10 +20075,8 @@ if (__DEV__) { // Pop provider fiber var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } popProvider(context, workInProgress); @@ -20599,10 +20562,8 @@ if (__DEV__) { case ContextProvider: var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } popProvider(context, workInProgress); @@ -20698,10 +20659,8 @@ if (__DEV__) { case ContextProvider: var context; - if (enableRenderableContext) { + { context = interruptedWork.type; - } else { - context = interruptedWork.type._context; } popProvider(context, interruptedWork); @@ -29641,27 +29600,18 @@ if (__DEV__) { if (typeof type === "object" && type !== null) { switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = ContextProvider; - break getTag; - } // Fall through - case REACT_CONTEXT_TYPE: - if (enableRenderableContext) { - fiberTag = ContextProvider; - break getTag; - } else { - fiberTag = ContextConsumer; - break getTag; - } + case REACT_CONTEXT_TYPE: { + fiberTag = ContextProvider; + break getTag; + } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = ContextConsumer; - break getTag; - } + case REACT_CONSUMER_TYPE: { + fiberTag = ContextConsumer; + break getTag; + } // Fall through diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 1b62c3153fb00..8f982570866a1 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "18.3.0-www-modern-09bf94a7"; + var ReactVersion = "18.3.0-www-modern-1f3124f7"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -187,7 +187,6 @@ if (__DEV__) { dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, useModernStrictMode = dynamicFeatureFlags.useModernStrictMode, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, true is used for a new modern build. @@ -354,30 +353,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName$1(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName$1(context) + ".Provider"; - } else { - return getContextName$1(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName$1(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName$1(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName$1(type, type.render, "ForwardRef"); @@ -430,23 +420,15 @@ if (__DEV__) { case CacheComponent: return "Cache"; - case ContextConsumer: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - var context = type; - return getContextName(context) + ".Consumer"; - } + case ContextConsumer: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } - case ContextProvider: - if (enableRenderableContext) { - var _context = type; - return getContextName(_context) + ".Provider"; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case ContextProvider: { + var _context = type; + return getContextName(_context) + ".Provider"; + } case DehydratedFragment: return "DehydratedFragment"; @@ -17121,10 +17103,8 @@ if (__DEV__) { function updateContextProvider(current, workInProgress, renderLanes) { var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } var newProps = workInProgress.pendingProps; @@ -17178,17 +17158,9 @@ if (__DEV__) { function updateContextConsumer(current, workInProgress, renderLanes) { var context; - if (enableRenderableContext) { + { var consumerType = workInProgress.type; context = consumerType._context; - } else { - context = workInProgress.type; - - { - if (context._context !== undefined) { - context = context._context; - } - } } var newProps = workInProgress.pendingProps; @@ -17428,10 +17400,8 @@ if (__DEV__) { var newValue = workInProgress.memoizedProps.value; var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } pushProvider(workInProgress, context, newValue); @@ -18404,10 +18374,8 @@ if (__DEV__) { if (oldProps !== null) { var context = void 0; - if (enableRenderableContext) { + { context = parent.type; - } else { - context = parent.type._context; } var newProps = parent.pendingProps; @@ -18946,10 +18914,7 @@ if (__DEV__) { } function collectNearestContextValues(node, context, childContextValues) { - if ( - node.tag === ContextProvider && - (enableRenderableContext ? node.type : node.type._context) === context - ) { + if (node.tag === ContextProvider && node.type === context) { var contextValue = node.memoizedProps.value; childContextValues.push(contextValue); } else { @@ -19791,10 +19756,8 @@ if (__DEV__) { // Pop provider fiber var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } popProvider(context, workInProgress); @@ -20265,10 +20228,8 @@ if (__DEV__) { case ContextProvider: var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } popProvider(context, workInProgress); @@ -20357,10 +20318,8 @@ if (__DEV__) { case ContextProvider: var context; - if (enableRenderableContext) { + { context = interruptedWork.type; - } else { - context = interruptedWork.type._context; } popProvider(context, interruptedWork); @@ -29291,27 +29250,18 @@ if (__DEV__) { if (typeof type === "object" && type !== null) { switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = ContextProvider; - break getTag; - } // Fall through - case REACT_CONTEXT_TYPE: - if (enableRenderableContext) { - fiberTag = ContextProvider; - break getTag; - } else { - fiberTag = ContextConsumer; - break getTag; - } + case REACT_CONTEXT_TYPE: { + fiberTag = ContextProvider; + break getTag; + } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = ContextConsumer; - break getTag; - } + case REACT_CONSUMER_TYPE: { + fiberTag = ContextConsumer; + break getTag; + } // Fall through diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index ca1787d1b8082..9907d28e921f4 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -83,7 +83,6 @@ var ReactSharedInternals = transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), @@ -141,17 +140,10 @@ function getComponentNameFromType(type) { } if ("object" === typeof type) switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; + return (type.displayName || "Context") + ".Provider"; case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; + return (type._context.displayName || "Context") + ".Consumer"; case REACT_FORWARD_REF_TYPE: var innerType = type.render; type = type.displayName; @@ -181,13 +173,9 @@ function getComponentNameFromFiber(fiber) { case 24: return "Cache"; case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; + return (type._context.displayName || "Context") + ".Consumer"; case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; + return (type.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: @@ -287,36 +275,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$1 = parentA.child; child$1; ) { - if (child$1 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$1 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$1 = child$1.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$1 = parentB.child; child$1; ) { - if (child$1 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$1 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$1 = child$1.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -588,18 +576,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$5 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$5; - remainingLanes[index$5] = 0; - expirationTimes[index$5] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$5]; + var index$4 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$4; + remainingLanes[index$4] = 0; + expirationTimes[index$4] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$4]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$5] = null, index$5 = 0; - index$5 < hiddenUpdatesForLane.length; - index$5++ + hiddenUpdates[index$4] = null, index$4 = 0; + index$4 < hiddenUpdatesForLane.length; + index$4++ ) { - var update = hiddenUpdatesForLane[index$5]; + var update = hiddenUpdatesForLane[index$4]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -619,21 +607,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$6 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$6; - (lane & entangledLanes) | (root[index$6] & entangledLanes) && - (root[index$6] |= entangledLanes); + var index$5 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$5; + (lane & entangledLanes) | (root[index$5] & entangledLanes) && + (root[index$5] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$8 = 31 - clz32(lanes), - lane = 1 << index$8; - index$8 = root.transitionLanes[index$8]; - null !== index$8 && - index$8.forEach(function (transition) { + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + index$7 = root.transitionLanes[index$7]; + null !== index$7 && + index$7.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -643,10 +631,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - null !== root.transitionLanes[index$9] && - (root.transitionLanes[index$9] = null); + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + null !== root.transitionLanes[index$8] && + (root.transitionLanes[index$8] = null); lanes &= ~lane; } } @@ -1067,35 +1055,35 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { if (!onlyLegacy || 0 === root.tag) { - var workInProgressRootRenderLanes$11 = workInProgressRootRenderLanes, + var workInProgressRootRenderLanes$10 = workInProgressRootRenderLanes, nextLanes = getNextLanes( root, - root === workInProgressRoot ? workInProgressRootRenderLanes$11 : 0 + root === workInProgressRoot ? workInProgressRootRenderLanes$10 : 0 ); if (0 !== (nextLanes & 3)) try { didPerformSomeWork = !0; - workInProgressRootRenderLanes$11 = root; + workInProgressRootRenderLanes$10 = root; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); if (!flushPassiveEffects()) { var exitStatus = renderRootSync( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, nextLanes ); if ( - 0 !== workInProgressRootRenderLanes$11.tag && + 0 !== workInProgressRootRenderLanes$10.tag && 2 === exitStatus ) { var originallyAttemptedLanes = nextLanes, errorRetryLanes = getLanesToRetrySynchronouslyOnError( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, originallyAttemptedLanes ); 0 !== errorRetryLanes && ((nextLanes = errorRetryLanes), (exitStatus = recoverFromConcurrentError( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, originallyAttemptedLanes, errorRetryLanes ))); @@ -1103,34 +1091,34 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { if (1 === exitStatus) throw ( ((originallyAttemptedLanes = workInProgressRootFatalError), - prepareFreshStack(workInProgressRootRenderLanes$11, 0), + prepareFreshStack(workInProgressRootRenderLanes$10, 0), markRootSuspended( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, nextLanes, 0 ), - ensureRootIsScheduled(workInProgressRootRenderLanes$11), + ensureRootIsScheduled(workInProgressRootRenderLanes$10), originallyAttemptedLanes) ); 6 === exitStatus ? markRootSuspended( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, nextLanes, workInProgressDeferredLane ) - : ((workInProgressRootRenderLanes$11.finishedWork = - workInProgressRootRenderLanes$11.current.alternate), - (workInProgressRootRenderLanes$11.finishedLanes = + : ((workInProgressRootRenderLanes$10.finishedWork = + workInProgressRootRenderLanes$10.current.alternate), + (workInProgressRootRenderLanes$10.finishedLanes = nextLanes), commitRoot( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane )); } - ensureRootIsScheduled(workInProgressRootRenderLanes$11); + ensureRootIsScheduled(workInProgressRootRenderLanes$10); } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } @@ -1186,12 +1174,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$3 = 31 - clz32(pendingLanes), - lane = 1 << index$3, - expirationTime = expirationTimes[index$3]; + var index$2 = 31 - clz32(pendingLanes), + lane = 1 << index$2, + expirationTime = expirationTimes[index$2]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$3] = computeExpirationTime(lane, currentTime); + expirationTimes[index$2] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1619,16 +1607,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { Fake.call(); - } catch (x$17) { - control = x$17; + } catch (x$16) { + control = x$16; } fn.call(Fake.prototype); } } else { try { throw Error(); - } catch (x$18) { - control = x$18; + } catch (x$17) { + control = x$17; } (Fake = fn()) && "function" === typeof Fake.catch && @@ -2890,7 +2878,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$32 = !1; + didReadFromEntangledAsyncAction$31 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2911,11 +2899,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$32 = !0); + (didReadFromEntangledAsyncAction$31 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$32 = !0); + (didReadFromEntangledAsyncAction$31 = !0); continue; } else (updateLane = { @@ -2961,7 +2949,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$32 && + didReadFromEntangledAsyncAction$31 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -5540,9 +5528,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( case 10: pushProvider( workInProgress, - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context, + workInProgress.type, workInProgress.memoizedProps.value ); break; @@ -5793,9 +5779,7 @@ function propagateParentContextChanges( if (null === currentParent) throw Error(formatProdErrorMessage(387)); currentParent = currentParent.memoizedProps; if (null !== currentParent) { - var context = enableRenderableContext - ? parent.type - : parent.type._context; + var context = parent.type; objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : (current = [context])); } @@ -6018,10 +6002,7 @@ function collectNearestChildContextValues( var node = startingChild, context = context$jscomp$0, childContextValues = childContextValues$jscomp$0; - if ( - 10 === node.tag && - (enableRenderableContext ? node.type : node.type._context) === context - ) + if (10 === node.tag && node.type === context) childContextValues.push(node.memoizedProps.value); else { var child = node.child; @@ -6083,14 +6064,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$78 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$78 = lastTailNode), + for (var lastTailNode$77 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$77 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$78 + null === lastTailNode$77 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$78.sibling = null); + : (lastTailNode$77.sibling = null); } } function bubbleProperties(completedWork) { @@ -6100,19 +6081,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$79 = completedWork.child; null !== child$79; ) - (newChildLanes |= child$79.lanes | child$79.childLanes), - (subtreeFlags |= child$79.subtreeFlags & 31457280), - (subtreeFlags |= child$79.flags & 31457280), - (child$79.return = completedWork), - (child$79 = child$79.sibling); + for (var child$78 = completedWork.child; null !== child$78; ) + (newChildLanes |= child$78.lanes | child$78.childLanes), + (subtreeFlags |= child$78.subtreeFlags & 31457280), + (subtreeFlags |= child$78.flags & 31457280), + (child$78.return = completedWork), + (child$78 = child$78.sibling); else - for (child$79 = completedWork.child; null !== child$79; ) - (newChildLanes |= child$79.lanes | child$79.childLanes), - (subtreeFlags |= child$79.subtreeFlags), - (subtreeFlags |= child$79.flags), - (child$79.return = completedWork), - (child$79 = child$79.sibling); + for (child$78 = completedWork.child; null !== child$78; ) + (newChildLanes |= child$78.lanes | child$78.childLanes), + (subtreeFlags |= child$78.subtreeFlags), + (subtreeFlags |= child$78.flags), + (child$78.return = completedWork), + (child$78 = child$78.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6286,11 +6267,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$83 = null; + var cache$82 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$83 = newProps.memoizedState.cachePool.pool); - cache$83 !== instance && (newProps.flags |= 2048); + (cache$82 = newProps.memoizedState.cachePool.pool); + cache$82 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -6305,13 +6286,7 @@ function completeWork(current, workInProgress, renderLanes) { return popHostContainer(), bubbleProperties(workInProgress), null; case 10: return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - bubbleProperties(workInProgress), - null + popProvider(workInProgress.type), bubbleProperties(workInProgress), null ); case 17: return ( @@ -6324,8 +6299,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$83 = instance.rendering; - if (null === cache$83) + cache$82 = instance.rendering; + if (null === cache$82) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -6333,11 +6308,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$83 = findFirstSuspended(current); - if (null !== cache$83) { + cache$82 = findFirstSuspended(current); + if (null !== cache$82) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$83.updateQueue; + current = cache$82.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -6362,7 +6337,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$83)), null !== current)) { + if (((current = findFirstSuspended(cache$82)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -6372,7 +6347,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$83.alternate) + !cache$82.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -6384,13 +6359,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 4194304)); instance.isBackwards - ? ((cache$83.sibling = workInProgress.child), - (workInProgress.child = cache$83)) + ? ((cache$82.sibling = workInProgress.child), + (workInProgress.child = cache$82)) : ((current = instance.last), null !== current - ? (current.sibling = cache$83) - : (workInProgress.child = cache$83), - (instance.last = cache$83)); + ? (current.sibling = cache$82) + : (workInProgress.child = cache$82), + (instance.last = cache$82)); } if (null !== instance.tail) return ( @@ -6523,14 +6498,7 @@ function unwindWork(current, workInProgress) { case 4: return popHostContainer(), null; case 10: - return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - null - ); + return popProvider(workInProgress.type), null; case 22: case 23: return ( @@ -6587,11 +6555,7 @@ function unwindInterruptedWork(current, interruptedWork) { pop(suspenseStackCursor); break; case 10: - popProvider( - enableRenderableContext - ? interruptedWork.type - : interruptedWork.type._context - ); + popProvider(interruptedWork.type); break; case 22: case 23: @@ -6655,8 +6619,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$101) { - captureCommitPhaseError(current, nearestMountedAncestor, error$101); + } catch (error$100) { + captureCommitPhaseError(current, nearestMountedAncestor, error$100); } else ref.current = null; } @@ -6858,11 +6822,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$102) { + } catch (error$101) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$102 + error$101 ); } } @@ -7455,8 +7419,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$110) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$110); + } catch (error$109) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$109); } } break; @@ -7490,8 +7454,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { finishedWork.updateQueue = null; try { flags._applyProps(flags, newProps, current); - } catch (error$113) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$113); + } catch (error$112) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$112); } } break; @@ -7527,8 +7491,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$115) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$115); + } catch (error$114) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$114); } flags = finishedWork.updateQueue; null !== flags && @@ -7668,12 +7632,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$105 = JSCompiler_inline_result.stateNode.containerInfo, - before$106 = getHostSibling(finishedWork); + var parent$104 = JSCompiler_inline_result.stateNode.containerInfo, + before$105 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$106, - parent$105 + before$105, + parent$104 ); break; default: @@ -8134,9 +8098,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$121 = finishedWork.stateNode; + var instance$120 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$121._visibility & 4 + ? instance$120._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8149,7 +8113,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$121._visibility |= 4), + : ((instance$120._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8157,7 +8121,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$121._visibility |= 4), + : ((instance$120._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8170,7 +8134,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$121 + instance$120 ); break; case 24: @@ -8622,11 +8586,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing) ) { var transitionLanesMap = root.transitionLanes, - index$7 = 31 - clz32(lane), - transitions = transitionLanesMap[index$7]; + index$6 = 31 - clz32(lane), + transitions = transitionLanesMap[index$6]; null === transitions && (transitions = new Set()); transitions.add(transition); - transitionLanesMap[index$7] = transitions; + transitionLanesMap[index$6] = transitions; } } root === workInProgressRoot && @@ -8875,9 +8839,9 @@ function markRootSuspended(root, suspendedLanes, spawnedLane) { 0 < lanes; ) { - var index$4 = 31 - clz32(lanes), - lane = 1 << index$4; - expirationTimes[index$4] = -1; + var index$3 = 31 - clz32(lanes), + lane = 1 << index$3; + expirationTimes[index$3] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -8934,9 +8898,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$2 = 31 - clz32(allEntangledLanes), - lane = 1 << index$2; - lanes |= root[index$2]; + var index$1 = 31 - clz32(allEntangledLanes), + lane = 1 << index$1; + lanes |= root[index$1]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -9032,8 +8996,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$129) { - handleThrow(root, thrownValue$129); + } catch (thrownValue$128) { + handleThrow(root, thrownValue$128); } while (1); lanes && root.shellSuspendCounter++; @@ -9138,8 +9102,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$131) { - handleThrow(root, thrownValue$131); + } catch (thrownValue$130) { + handleThrow(root, thrownValue$130); } while (1); resetContextDependencies(); @@ -9874,9 +9838,7 @@ beginWork = function (current, workInProgress, renderLanes) { ); case 10: a: { - Component = enableRenderableContext - ? workInProgress.type - : workInProgress.type._context; + Component = workInProgress.type; context = workInProgress.pendingProps; nextProps = workInProgress.memoizedProps; nextCache = context.value; @@ -9906,9 +9868,7 @@ beginWork = function (current, workInProgress, renderLanes) { return workInProgress; case 9: return ( - (context = enableRenderableContext - ? workInProgress.type._context - : workInProgress.type), + (context = workInProgress.type._context), (Component = workInProgress.pendingProps.children), prepareToReadContext(workInProgress, renderLanes), (context = readContext(context)), @@ -10262,18 +10222,12 @@ function createFiberFromTypeAndProps( if ("object" === typeof type && null !== type) switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = 10; - break a; - } case REACT_CONTEXT_TYPE: - fiberTag = enableRenderableContext ? 10 : 9; + fiberTag = 10; break a; case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = 9; - break a; - } + fiberTag = 9; + break a; case REACT_FORWARD_REF_TYPE: fiberTag = 11; break a; @@ -10589,19 +10543,19 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component), - devToolsConfig$jscomp$inline_1140 = { + devToolsConfig$jscomp$inline_1139 = { findFiberByHostInstance: function () { return null; }, bundleType: 0, - version: "18.3.0-www-classic-36516bcc", + version: "18.3.0-www-classic-930e803f", rendererPackageName: "react-art" }; -var internals$jscomp$inline_1320 = { - bundleType: devToolsConfig$jscomp$inline_1140.bundleType, - version: devToolsConfig$jscomp$inline_1140.version, - rendererPackageName: devToolsConfig$jscomp$inline_1140.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1140.rendererConfig, +var internals$jscomp$inline_1319 = { + bundleType: devToolsConfig$jscomp$inline_1139.bundleType, + version: devToolsConfig$jscomp$inline_1139.version, + rendererPackageName: devToolsConfig$jscomp$inline_1139.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1139.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -10618,26 +10572,26 @@ var internals$jscomp$inline_1320 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1140.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1139.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-36516bcc" + reconcilerVersion: "18.3.0-www-classic-930e803f" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1321 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1320 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1321.isDisabled && - hook$jscomp$inline_1321.supportsFiber + !hook$jscomp$inline_1320.isDisabled && + hook$jscomp$inline_1320.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1321.inject( - internals$jscomp$inline_1320 + (rendererID = hook$jscomp$inline_1320.inject( + internals$jscomp$inline_1319 )), - (injectedHook = hook$jscomp$inline_1321); + (injectedHook = hook$jscomp$inline_1320); } catch (err) {} } var Path = Mode$1.Path; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index b11e58662f2de..030a2104010ce 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -83,7 +83,6 @@ var ReactSharedInternals = transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), @@ -161,36 +160,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$1 = parentA.child; child$1; ) { - if (child$1 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$1 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$1 = child$1.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$1 = parentB.child; child$1; ) { - if (child$1 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$1 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$1 = child$1.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -462,18 +461,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$5 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$5; - remainingLanes[index$5] = 0; - expirationTimes[index$5] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$5]; + var index$4 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$4; + remainingLanes[index$4] = 0; + expirationTimes[index$4] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$4]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$5] = null, index$5 = 0; - index$5 < hiddenUpdatesForLane.length; - index$5++ + hiddenUpdates[index$4] = null, index$4 = 0; + index$4 < hiddenUpdatesForLane.length; + index$4++ ) { - var update = hiddenUpdatesForLane[index$5]; + var update = hiddenUpdatesForLane[index$4]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -493,21 +492,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$6 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$6; - (lane & entangledLanes) | (root[index$6] & entangledLanes) && - (root[index$6] |= entangledLanes); + var index$5 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$5; + (lane & entangledLanes) | (root[index$5] & entangledLanes) && + (root[index$5] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$8 = 31 - clz32(lanes), - lane = 1 << index$8; - index$8 = root.transitionLanes[index$8]; - null !== index$8 && - index$8.forEach(function (transition) { + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + index$7 = root.transitionLanes[index$7]; + null !== index$7 && + index$7.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -517,10 +516,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - null !== root.transitionLanes[index$9] && - (root.transitionLanes[index$9] = null); + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + null !== root.transitionLanes[index$8] && + (root.transitionLanes[index$8] = null); lanes &= ~lane; } } @@ -863,35 +862,35 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { if (!onlyLegacy || 0 === root.tag) { - var workInProgressRootRenderLanes$11 = workInProgressRootRenderLanes, + var workInProgressRootRenderLanes$10 = workInProgressRootRenderLanes, nextLanes = getNextLanes( root, - root === workInProgressRoot ? workInProgressRootRenderLanes$11 : 0 + root === workInProgressRoot ? workInProgressRootRenderLanes$10 : 0 ); if (0 !== (nextLanes & 3)) try { didPerformSomeWork = !0; - workInProgressRootRenderLanes$11 = root; + workInProgressRootRenderLanes$10 = root; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); if (!flushPassiveEffects()) { var exitStatus = renderRootSync( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, nextLanes ); if ( - 0 !== workInProgressRootRenderLanes$11.tag && + 0 !== workInProgressRootRenderLanes$10.tag && 2 === exitStatus ) { var originallyAttemptedLanes = nextLanes, errorRetryLanes = getLanesToRetrySynchronouslyOnError( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, originallyAttemptedLanes ); 0 !== errorRetryLanes && ((nextLanes = errorRetryLanes), (exitStatus = recoverFromConcurrentError( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, originallyAttemptedLanes, errorRetryLanes ))); @@ -899,34 +898,34 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { if (1 === exitStatus) throw ( ((originallyAttemptedLanes = workInProgressRootFatalError), - prepareFreshStack(workInProgressRootRenderLanes$11, 0), + prepareFreshStack(workInProgressRootRenderLanes$10, 0), markRootSuspended( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, nextLanes, 0 ), - ensureRootIsScheduled(workInProgressRootRenderLanes$11), + ensureRootIsScheduled(workInProgressRootRenderLanes$10), originallyAttemptedLanes) ); 6 === exitStatus ? markRootSuspended( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, nextLanes, workInProgressDeferredLane ) - : ((workInProgressRootRenderLanes$11.finishedWork = - workInProgressRootRenderLanes$11.current.alternate), - (workInProgressRootRenderLanes$11.finishedLanes = + : ((workInProgressRootRenderLanes$10.finishedWork = + workInProgressRootRenderLanes$10.current.alternate), + (workInProgressRootRenderLanes$10.finishedLanes = nextLanes), commitRoot( - workInProgressRootRenderLanes$11, + workInProgressRootRenderLanes$10, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane )); } - ensureRootIsScheduled(workInProgressRootRenderLanes$11); + ensureRootIsScheduled(workInProgressRootRenderLanes$10); } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } @@ -982,12 +981,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$3 = 31 - clz32(pendingLanes), - lane = 1 << index$3, - expirationTime = expirationTimes[index$3]; + var index$2 = 31 - clz32(pendingLanes), + lane = 1 << index$2, + expirationTime = expirationTimes[index$2]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$3] = computeExpirationTime(lane, currentTime); + expirationTimes[index$2] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1415,16 +1414,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { Fake.call(); - } catch (x$17) { - control = x$17; + } catch (x$16) { + control = x$16; } fn.call(Fake.prototype); } } else { try { throw Error(); - } catch (x$18) { - control = x$18; + } catch (x$17) { + control = x$17; } (Fake = fn()) && "function" === typeof Fake.catch && @@ -2686,7 +2685,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$32 = !1; + didReadFromEntangledAsyncAction$31 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2707,11 +2706,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$32 = !0); + (didReadFromEntangledAsyncAction$31 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$32 = !0); + (didReadFromEntangledAsyncAction$31 = !0); continue; } else (updateLane = { @@ -2757,7 +2756,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$32 && + didReadFromEntangledAsyncAction$31 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -5285,9 +5284,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( case 10: pushProvider( workInProgress, - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context, + workInProgress.type, workInProgress.memoizedProps.value ); break; @@ -5538,9 +5535,7 @@ function propagateParentContextChanges( if (null === currentParent) throw Error(formatProdErrorMessage(387)); currentParent = currentParent.memoizedProps; if (null !== currentParent) { - var context = enableRenderableContext - ? parent.type - : parent.type._context; + var context = parent.type; objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : (current = [context])); } @@ -5763,10 +5758,7 @@ function collectNearestChildContextValues( var node = startingChild, context = context$jscomp$0, childContextValues = childContextValues$jscomp$0; - if ( - 10 === node.tag && - (enableRenderableContext ? node.type : node.type._context) === context - ) + if (10 === node.tag && node.type === context) childContextValues.push(node.memoizedProps.value); else { var child = node.child; @@ -5828,14 +5820,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$78 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$78 = lastTailNode), + for (var lastTailNode$77 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$77 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$78 + null === lastTailNode$77 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$78.sibling = null); + : (lastTailNode$77.sibling = null); } } function bubbleProperties(completedWork) { @@ -5845,19 +5837,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$79 = completedWork.child; null !== child$79; ) - (newChildLanes |= child$79.lanes | child$79.childLanes), - (subtreeFlags |= child$79.subtreeFlags & 31457280), - (subtreeFlags |= child$79.flags & 31457280), - (child$79.return = completedWork), - (child$79 = child$79.sibling); + for (var child$78 = completedWork.child; null !== child$78; ) + (newChildLanes |= child$78.lanes | child$78.childLanes), + (subtreeFlags |= child$78.subtreeFlags & 31457280), + (subtreeFlags |= child$78.flags & 31457280), + (child$78.return = completedWork), + (child$78 = child$78.sibling); else - for (child$79 = completedWork.child; null !== child$79; ) - (newChildLanes |= child$79.lanes | child$79.childLanes), - (subtreeFlags |= child$79.subtreeFlags), - (subtreeFlags |= child$79.flags), - (child$79.return = completedWork), - (child$79 = child$79.sibling); + for (child$78 = completedWork.child; null !== child$78; ) + (newChildLanes |= child$78.lanes | child$78.childLanes), + (subtreeFlags |= child$78.subtreeFlags), + (subtreeFlags |= child$78.flags), + (child$78.return = completedWork), + (child$78 = child$78.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6025,11 +6017,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$83 = null; + var cache$82 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$83 = newProps.memoizedState.cachePool.pool); - cache$83 !== instance && (newProps.flags |= 2048); + (cache$82 = newProps.memoizedState.cachePool.pool); + cache$82 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -6044,13 +6036,7 @@ function completeWork(current, workInProgress, renderLanes) { return popHostContainer(), bubbleProperties(workInProgress), null; case 10: return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - bubbleProperties(workInProgress), - null + popProvider(workInProgress.type), bubbleProperties(workInProgress), null ); case 17: return bubbleProperties(workInProgress), null; @@ -6059,8 +6045,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$83 = instance.rendering; - if (null === cache$83) + cache$82 = instance.rendering; + if (null === cache$82) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -6068,11 +6054,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$83 = findFirstSuspended(current); - if (null !== cache$83) { + cache$82 = findFirstSuspended(current); + if (null !== cache$82) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$83.updateQueue; + current = cache$82.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -6097,7 +6083,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$83)), null !== current)) { + if (((current = findFirstSuspended(cache$82)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -6107,7 +6093,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$83.alternate) + !cache$82.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -6119,13 +6105,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 4194304)); instance.isBackwards - ? ((cache$83.sibling = workInProgress.child), - (workInProgress.child = cache$83)) + ? ((cache$82.sibling = workInProgress.child), + (workInProgress.child = cache$82)) : ((current = instance.last), null !== current - ? (current.sibling = cache$83) - : (workInProgress.child = cache$83), - (instance.last = cache$83)); + ? (current.sibling = cache$82) + : (workInProgress.child = cache$82), + (instance.last = cache$82)); } if (null !== instance.tail) return ( @@ -6255,14 +6241,7 @@ function unwindWork(current, workInProgress) { case 4: return popHostContainer(), null; case 10: - return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - null - ); + return popProvider(workInProgress.type), null; case 22: case 23: return ( @@ -6313,11 +6292,7 @@ function unwindInterruptedWork(current, interruptedWork) { pop(suspenseStackCursor); break; case 10: - popProvider( - enableRenderableContext - ? interruptedWork.type - : interruptedWork.type._context - ); + popProvider(interruptedWork.type); break; case 22: case 23: @@ -6381,8 +6356,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$100) { - captureCommitPhaseError(current, nearestMountedAncestor, error$100); + } catch (error$99) { + captureCommitPhaseError(current, nearestMountedAncestor, error$99); } else ref.current = null; } @@ -6584,11 +6559,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$101) { + } catch (error$100) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$101 + error$100 ); } } @@ -7181,8 +7156,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$109) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$109); + } catch (error$108) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$108); } } break; @@ -7216,8 +7191,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { finishedWork.updateQueue = null; try { flags._applyProps(flags, newProps, current); - } catch (error$112) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$112); + } catch (error$111) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$111); } } break; @@ -7253,8 +7228,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$114) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$114); + } catch (error$113) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$113); } flags = finishedWork.updateQueue; null !== flags && @@ -7394,12 +7369,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$104 = JSCompiler_inline_result.stateNode.containerInfo, - before$105 = getHostSibling(finishedWork); + var parent$103 = JSCompiler_inline_result.stateNode.containerInfo, + before$104 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$105, - parent$104 + before$104, + parent$103 ); break; default: @@ -7860,9 +7835,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$120 = finishedWork.stateNode; + var instance$119 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$120._visibility & 4 + ? instance$119._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7875,7 +7850,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$120._visibility |= 4), + : ((instance$119._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7883,7 +7858,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$120._visibility |= 4), + : ((instance$119._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7896,7 +7871,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$120 + instance$119 ); break; case 24: @@ -8348,11 +8323,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing) ) { var transitionLanesMap = root.transitionLanes, - index$7 = 31 - clz32(lane), - transitions = transitionLanesMap[index$7]; + index$6 = 31 - clz32(lane), + transitions = transitionLanesMap[index$6]; null === transitions && (transitions = new Set()); transitions.add(transition); - transitionLanesMap[index$7] = transitions; + transitionLanesMap[index$6] = transitions; } } root === workInProgressRoot && @@ -8601,9 +8576,9 @@ function markRootSuspended(root, suspendedLanes, spawnedLane) { 0 < lanes; ) { - var index$4 = 31 - clz32(lanes), - lane = 1 << index$4; - expirationTimes[index$4] = -1; + var index$3 = 31 - clz32(lanes), + lane = 1 << index$3; + expirationTimes[index$3] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -8660,9 +8635,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$2 = 31 - clz32(allEntangledLanes), - lane = 1 << index$2; - lanes |= root[index$2]; + var index$1 = 31 - clz32(allEntangledLanes), + lane = 1 << index$1; + lanes |= root[index$1]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -8758,8 +8733,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$128) { - handleThrow(root, thrownValue$128); + } catch (thrownValue$127) { + handleThrow(root, thrownValue$127); } while (1); lanes && root.shellSuspendCounter++; @@ -8864,8 +8839,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$130) { - handleThrow(root, thrownValue$130); + } catch (thrownValue$129) { + handleThrow(root, thrownValue$129); } while (1); resetContextDependencies(); @@ -9583,9 +9558,7 @@ beginWork = function (current, workInProgress, renderLanes) { ); case 10: a: { - Component = enableRenderableContext - ? workInProgress.type - : workInProgress.type._context; + Component = workInProgress.type; init = workInProgress.pendingProps; nextProps = workInProgress.memoizedProps; nextCache = init.value; @@ -9607,9 +9580,7 @@ beginWork = function (current, workInProgress, renderLanes) { return workInProgress; case 9: return ( - (init = enableRenderableContext - ? workInProgress.type._context - : workInProgress.type), + (init = workInProgress.type._context), (Component = workInProgress.pendingProps.children), prepareToReadContext(workInProgress, renderLanes), (init = readContext(init)), @@ -9957,18 +9928,12 @@ function createFiberFromTypeAndProps( if ("object" === typeof type && null !== type) switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = 10; - break a; - } case REACT_CONTEXT_TYPE: - fiberTag = enableRenderableContext ? 10 : 9; + fiberTag = 10; break a; case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = 9; - break a; - } + fiberTag = 9; + break a; case REACT_FORWARD_REF_TYPE: fiberTag = 11; break a; @@ -10244,19 +10209,19 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component), - devToolsConfig$jscomp$inline_1120 = { + devToolsConfig$jscomp$inline_1119 = { findFiberByHostInstance: function () { return null; }, bundleType: 0, - version: "18.3.0-www-modern-630a2790", + version: "18.3.0-www-modern-078ca32a", rendererPackageName: "react-art" }; -var internals$jscomp$inline_1300 = { - bundleType: devToolsConfig$jscomp$inline_1120.bundleType, - version: devToolsConfig$jscomp$inline_1120.version, - rendererPackageName: devToolsConfig$jscomp$inline_1120.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1120.rendererConfig, +var internals$jscomp$inline_1299 = { + bundleType: devToolsConfig$jscomp$inline_1119.bundleType, + version: devToolsConfig$jscomp$inline_1119.version, + rendererPackageName: devToolsConfig$jscomp$inline_1119.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1119.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -10273,26 +10238,26 @@ var internals$jscomp$inline_1300 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1120.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1119.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-630a2790" + reconcilerVersion: "18.3.0-www-modern-078ca32a" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1301 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1300 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1301.isDisabled && - hook$jscomp$inline_1301.supportsFiber + !hook$jscomp$inline_1300.isDisabled && + hook$jscomp$inline_1300.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1301.inject( - internals$jscomp$inline_1300 + (rendererID = hook$jscomp$inline_1300.inject( + internals$jscomp$inline_1299 )), - (injectedHook = hook$jscomp$inline_1301); + (injectedHook = hook$jscomp$inline_1300); } catch (err) {} } var Path = Mode$1.Path; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 331d0c84ad6f2..f6ff6bf3b7382 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -152,7 +152,6 @@ if (__DEV__) { dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, useModernStrictMode = dynamicFeatureFlags.useModernStrictMode, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, enableClientRenderFallbackOnTextMismatch = @@ -322,30 +321,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName$1(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName$1(context) + ".Provider"; - } else { - return getContextName$1(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName$1(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName$1(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName$1(type, type.render, "ForwardRef"); @@ -398,23 +388,15 @@ if (__DEV__) { case CacheComponent: return "Cache"; - case ContextConsumer: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - var context = type; - return getContextName(context) + ".Consumer"; - } + case ContextConsumer: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } - case ContextProvider: - if (enableRenderableContext) { - var _context = type; - return getContextName(_context) + ".Provider"; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case ContextProvider: { + var _context = type; + return getContextName(_context) + ".Provider"; + } case DehydratedFragment: return "DehydratedFragment"; @@ -22636,10 +22618,8 @@ if (__DEV__) { function updateContextProvider(current, workInProgress, renderLanes) { var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } var newProps = workInProgress.pendingProps; @@ -22693,17 +22673,9 @@ if (__DEV__) { function updateContextConsumer(current, workInProgress, renderLanes) { var context; - if (enableRenderableContext) { + { var consumerType = workInProgress.type; context = consumerType._context; - } else { - context = workInProgress.type; - - { - if (context._context !== undefined) { - context = context._context; - } - } } var newProps = workInProgress.pendingProps; @@ -22951,10 +22923,8 @@ if (__DEV__) { var newValue = workInProgress.memoizedProps.value; var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } pushProvider(workInProgress, context, newValue); @@ -23945,10 +23915,8 @@ if (__DEV__) { if (oldProps !== null) { var context = void 0; - if (enableRenderableContext) { + { context = parent.type; - } else { - context = parent.type._context; } var newProps = parent.pendingProps; @@ -24487,10 +24455,7 @@ if (__DEV__) { } function collectNearestContextValues(node, context, childContextValues) { - if ( - node.tag === ContextProvider && - (enableRenderableContext ? node.type : node.type._context) === context - ) { + if (node.tag === ContextProvider && node.type === context) { var contextValue = node.memoizedProps.value; childContextValues.push(contextValue); } else { @@ -25539,10 +25504,8 @@ if (__DEV__) { // Pop provider fiber var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } popProvider(context, workInProgress); @@ -26036,10 +25999,8 @@ if (__DEV__) { case ContextProvider: var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } popProvider(context, workInProgress); @@ -26141,10 +26102,8 @@ if (__DEV__) { case ContextProvider: var context; - if (enableRenderableContext) { + { context = interruptedWork.type; - } else { - context = interruptedWork.type._context; } popProvider(context, interruptedWork); @@ -35581,27 +35540,18 @@ if (__DEV__) { if (typeof type === "object" && type !== null) { switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = ContextProvider; - break getTag; - } // Fall through - case REACT_CONTEXT_TYPE: - if (enableRenderableContext) { - fiberTag = ContextProvider; - break getTag; - } else { - fiberTag = ContextConsumer; - break getTag; - } + case REACT_CONTEXT_TYPE: { + fiberTag = ContextProvider; + break getTag; + } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = ContextConsumer; - break getTag; - } + case REACT_CONSUMER_TYPE: { + fiberTag = ContextConsumer; + break getTag; + } // Fall through @@ -36034,7 +35984,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-classic-2b05077c"; + var ReactVersion = "18.3.0-www-classic-530ae50f"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 4ccc18151b232..5bb4f4535f43d 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -138,7 +138,6 @@ if (__DEV__) { dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, useModernStrictMode = dynamicFeatureFlags.useModernStrictMode, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, enableClientRenderFallbackOnTextMismatch = @@ -3439,30 +3438,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName$1(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName$1(context) + ".Provider"; - } else { - return getContextName$1(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName$1(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName$1(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName$1(type, type.render, "ForwardRef"); @@ -3515,23 +3505,15 @@ if (__DEV__) { case CacheComponent: return "Cache"; - case ContextConsumer: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - var context = type; - return getContextName(context) + ".Consumer"; - } + case ContextConsumer: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } - case ContextProvider: - if (enableRenderableContext) { - var _context = type; - return getContextName(_context) + ".Provider"; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case ContextProvider: { + var _context = type; + return getContextName(_context) + ".Provider"; + } case DehydratedFragment: return "DehydratedFragment"; @@ -22516,10 +22498,8 @@ if (__DEV__) { function updateContextProvider(current, workInProgress, renderLanes) { var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } var newProps = workInProgress.pendingProps; @@ -22573,17 +22553,9 @@ if (__DEV__) { function updateContextConsumer(current, workInProgress, renderLanes) { var context; - if (enableRenderableContext) { + { var consumerType = workInProgress.type; context = consumerType._context; - } else { - context = workInProgress.type; - - { - if (context._context !== undefined) { - context = context._context; - } - } } var newProps = workInProgress.pendingProps; @@ -22825,10 +22797,8 @@ if (__DEV__) { var newValue = workInProgress.memoizedProps.value; var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } pushProvider(workInProgress, context, newValue); @@ -23819,10 +23789,8 @@ if (__DEV__) { if (oldProps !== null) { var context = void 0; - if (enableRenderableContext) { + { context = parent.type; - } else { - context = parent.type._context; } var newProps = parent.pendingProps; @@ -24361,10 +24329,7 @@ if (__DEV__) { } function collectNearestContextValues(node, context, childContextValues) { - if ( - node.tag === ContextProvider && - (enableRenderableContext ? node.type : node.type._context) === context - ) { + if (node.tag === ContextProvider && node.type === context) { var contextValue = node.memoizedProps.value; childContextValues.push(contextValue); } else { @@ -25406,10 +25371,8 @@ if (__DEV__) { // Pop provider fiber var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } popProvider(context, workInProgress); @@ -25888,10 +25851,8 @@ if (__DEV__) { case ContextProvider: var context; - if (enableRenderableContext) { + { context = workInProgress.type; - } else { - context = workInProgress.type._context; } popProvider(context, workInProgress); @@ -25986,10 +25947,8 @@ if (__DEV__) { case ContextProvider: var context; - if (enableRenderableContext) { + { context = interruptedWork.type; - } else { - context = interruptedWork.type._context; } popProvider(context, interruptedWork); @@ -35417,27 +35376,18 @@ if (__DEV__) { if (typeof type === "object" && type !== null) { switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = ContextProvider; - break getTag; - } // Fall through - case REACT_CONTEXT_TYPE: - if (enableRenderableContext) { - fiberTag = ContextProvider; - break getTag; - } else { - fiberTag = ContextConsumer; - break getTag; - } + case REACT_CONTEXT_TYPE: { + fiberTag = ContextProvider; + break getTag; + } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = ContextConsumer; - break getTag; - } + case REACT_CONSUMER_TYPE: { + fiberTag = ContextConsumer; + break getTag; + } // Fall through @@ -35870,7 +35820,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-modern-fab74e20"; + var ReactVersion = "18.3.0-www-modern-47456a78"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 18e189bad75a7..5d96a4c461e4f 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -62,7 +62,6 @@ var ReactSharedInternals = transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, enableClientRenderFallbackOnTextMismatch = dynamicFeatureFlags.enableClientRenderFallbackOnTextMismatch, @@ -122,17 +121,10 @@ function getComponentNameFromType(type) { } if ("object" === typeof type) switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; + return (type.displayName || "Context") + ".Provider"; case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; + return (type._context.displayName || "Context") + ".Consumer"; case REACT_FORWARD_REF_TYPE: var innerType = type.render; type = type.displayName; @@ -162,13 +154,9 @@ function getComponentNameFromFiber(fiber) { case 24: return "Cache"; case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; + return (type._context.displayName || "Context") + ".Consumer"; case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; + return (type.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: @@ -278,36 +266,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$1 = parentA.child; child$1; ) { - if (child$1 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$1 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$1 = child$1.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$1 = parentB.child; child$1; ) { - if (child$1 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$1 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$1 = child$1.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -652,18 +640,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$5 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$5; - remainingLanes[index$5] = 0; - expirationTimes[index$5] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$5]; + var index$4 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$4; + remainingLanes[index$4] = 0; + expirationTimes[index$4] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$4]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$5] = null, index$5 = 0; - index$5 < hiddenUpdatesForLane.length; - index$5++ + hiddenUpdates[index$4] = null, index$4 = 0; + index$4 < hiddenUpdatesForLane.length; + index$4++ ) { - var update = hiddenUpdatesForLane[index$5]; + var update = hiddenUpdatesForLane[index$4]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -683,10 +671,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$6 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$6; - (lane & entangledLanes) | (root[index$6] & entangledLanes) && - (root[index$6] |= entangledLanes); + var index$5 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$5; + (lane & entangledLanes) | (root[index$5] & entangledLanes) && + (root[index$5] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -701,11 +689,11 @@ function upgradePendingLanesToSync(root, lanesToUpgrade) { function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - index$9 = root.transitionLanes[index$9]; - null !== index$9 && - index$9.forEach(function (transition) { + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + index$8 = root.transitionLanes[index$8]; + null !== index$8 && + index$8.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -715,10 +703,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$10 = 31 - clz32(lanes), - lane = 1 << index$10; - null !== root.transitionLanes[index$10] && - (root.transitionLanes[index$10] = null); + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + null !== root.transitionLanes[index$9] && + (root.transitionLanes[index$9] = null); lanes &= ~lane; } } @@ -789,8 +777,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$11 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$11 && "aria-" !== prefix$11) { + var prefix$10 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$10 && "aria-" !== prefix$10) { node.removeAttribute(name); return; } @@ -872,16 +860,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { Fake.call(); - } catch (x$12) { - control = x$12; + } catch (x$11) { + control = x$11; } fn.call(Fake.prototype); } } else { try { throw Error(); - } catch (x$13) { - control = x$13; + } catch (x$12) { + control = x$12; } (Fake = fn()) && "function" === typeof Fake.catch && @@ -1347,15 +1335,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$19 in styles) - (styleName = styles[styleName$19]), - styles.hasOwnProperty(styleName$19) && - prevStyles[styleName$19] !== styleName && - setValueForStyle(node, styleName$19, styleName); + for (var styleName$18 in styles) + (styleName = styles[styleName$18]), + styles.hasOwnProperty(styleName$18) && + prevStyles[styleName$18] !== styleName && + setValueForStyle(node, styleName$18, styleName); } else - for (var styleName$20 in styles) - styles.hasOwnProperty(styleName$20) && - setValueForStyle(node, styleName$20, styles[styleName$20]); + for (var styleName$19 in styles) + styles.hasOwnProperty(styleName$19) && + setValueForStyle(node, styleName$19, styles[styleName$19]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1965,39 +1953,39 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$26 = firstScheduledRoot; null !== root$26; ) { - if (!onlyLegacy || 0 === root$26.tag) { - var workInProgressRootRenderLanes$28 = workInProgressRootRenderLanes, + for (var root$25 = firstScheduledRoot; null !== root$25; ) { + if (!onlyLegacy || 0 === root$25.tag) { + var workInProgressRootRenderLanes$27 = workInProgressRootRenderLanes, nextLanes = getNextLanes( - root$26, - root$26 === workInProgressRoot - ? workInProgressRootRenderLanes$28 + root$25, + root$25 === workInProgressRoot + ? workInProgressRootRenderLanes$27 : 0 ); if (0 !== (nextLanes & 3)) try { didPerformSomeWork = !0; - workInProgressRootRenderLanes$28 = root$26; + workInProgressRootRenderLanes$27 = root$25; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); if (!flushPassiveEffects()) { var exitStatus = renderRootSync( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, nextLanes ); if ( - 0 !== workInProgressRootRenderLanes$28.tag && + 0 !== workInProgressRootRenderLanes$27.tag && 2 === exitStatus ) { var originallyAttemptedLanes = nextLanes, errorRetryLanes = getLanesToRetrySynchronouslyOnError( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, originallyAttemptedLanes ); 0 !== errorRetryLanes && ((nextLanes = errorRetryLanes), (exitStatus = recoverFromConcurrentError( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, originallyAttemptedLanes, errorRetryLanes ))); @@ -2005,39 +1993,39 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { if (1 === exitStatus) throw ( ((originallyAttemptedLanes = workInProgressRootFatalError), - prepareFreshStack(workInProgressRootRenderLanes$28, 0), + prepareFreshStack(workInProgressRootRenderLanes$27, 0), markRootSuspended( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, nextLanes, 0 ), - ensureRootIsScheduled(workInProgressRootRenderLanes$28), + ensureRootIsScheduled(workInProgressRootRenderLanes$27), originallyAttemptedLanes) ); 6 === exitStatus ? markRootSuspended( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, nextLanes, workInProgressDeferredLane ) - : ((workInProgressRootRenderLanes$28.finishedWork = - workInProgressRootRenderLanes$28.current.alternate), - (workInProgressRootRenderLanes$28.finishedLanes = + : ((workInProgressRootRenderLanes$27.finishedWork = + workInProgressRootRenderLanes$27.current.alternate), + (workInProgressRootRenderLanes$27.finishedLanes = nextLanes), commitRoot( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane )); } - ensureRootIsScheduled(workInProgressRootRenderLanes$28); + ensureRootIsScheduled(workInProgressRootRenderLanes$27); } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } } - root$26 = root$26.next; + root$25 = root$25.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -2094,12 +2082,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$3 = 31 - clz32(pendingLanes), - lane = 1 << index$3, - expirationTime = expirationTimes[index$3]; + var index$2 = 31 - clz32(pendingLanes), + lane = 1 << index$2, + expirationTime = expirationTimes[index$2]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$3] = computeExpirationTime(lane, currentTime); + expirationTimes[index$2] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -3643,7 +3631,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$53 = !1; + didReadFromEntangledAsyncAction$52 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3664,11 +3652,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$53 = !0); + (didReadFromEntangledAsyncAction$52 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$53 = !0); + (didReadFromEntangledAsyncAction$52 = !0); continue; } else (updateLane = { @@ -3714,7 +3702,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$53 && + didReadFromEntangledAsyncAction$52 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4179,14 +4167,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$63 = enqueueUpdate(provider, fiber, lane); - null !== root$63 && - (scheduleUpdateOnFiber(root$63, provider, lane), - entangleTransitions(root$63, provider, lane)); + var root$62 = enqueueUpdate(provider, fiber, lane); + null !== root$62 && + (scheduleUpdateOnFiber(root$62, provider, lane), + entangleTransitions(root$62, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$63 && + null !== root$62 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4426,15 +4414,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$56 = workInProgressRoot; - if (null === root$56) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$56, workInProgressRootRenderLanes) || + var root$55 = workInProgressRoot; + if (null === root$55) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$55, workInProgressRootRenderLanes) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$56 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$56; - mountEffect(subscribeToStore.bind(null, fiber, root$56, subscribe), [ + root$55 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$55; + mountEffect(subscribeToStore.bind(null, fiber, root$55, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4443,7 +4431,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$56, + root$55, getServerSnapshot, getSnapshot ), @@ -5247,10 +5235,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$73 = workInProgress.stateNode; + root$72 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$73.incompleteTransitions.has(transition)) { + if (!root$72.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5258,11 +5246,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$73.incompleteTransitions.set(transition, markerInstance); + root$72.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$73.incompleteTransitions.forEach(function (markerInstance) { + root$72.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -6530,9 +6518,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( case 10: pushProvider( workInProgress, - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context, + workInProgress.type, workInProgress.memoizedProps.value ); break; @@ -6783,9 +6769,7 @@ function propagateParentContextChanges( if (null === currentParent) throw Error(formatProdErrorMessage(387)); currentParent = currentParent.memoizedProps; if (null !== currentParent) { - var context = enableRenderableContext - ? parent.type - : parent.type._context; + var context = parent.type; objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : (current = [context])); } @@ -7008,10 +6992,7 @@ function collectNearestChildContextValues( var node = startingChild, context = context$jscomp$0, childContextValues = childContextValues$jscomp$0; - if ( - 10 === node.tag && - (enableRenderableContext ? node.type : node.type._context) === context - ) + if (10 === node.tag && node.type === context) childContextValues.push(node.memoizedProps.value); else { var child = node.child; @@ -7100,14 +7081,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$112 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$112 = lastTailNode), + for (var lastTailNode$111 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$111 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$112 + null === lastTailNode$111 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$112.sibling = null); + : (lastTailNode$111.sibling = null); } } function bubbleProperties(completedWork) { @@ -7117,19 +7098,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$113 = completedWork.child; null !== child$113; ) - (newChildLanes |= child$113.lanes | child$113.childLanes), - (subtreeFlags |= child$113.subtreeFlags & 31457280), - (subtreeFlags |= child$113.flags & 31457280), - (child$113.return = completedWork), - (child$113 = child$113.sibling); + for (var child$112 = completedWork.child; null !== child$112; ) + (newChildLanes |= child$112.lanes | child$112.childLanes), + (subtreeFlags |= child$112.subtreeFlags & 31457280), + (subtreeFlags |= child$112.flags & 31457280), + (child$112.return = completedWork), + (child$112 = child$112.sibling); else - for (child$113 = completedWork.child; null !== child$113; ) - (newChildLanes |= child$113.lanes | child$113.childLanes), - (subtreeFlags |= child$113.subtreeFlags), - (subtreeFlags |= child$113.flags), - (child$113.return = completedWork), - (child$113 = child$113.sibling); + for (child$112 = completedWork.child; null !== child$112; ) + (newChildLanes |= child$112.lanes | child$112.childLanes), + (subtreeFlags |= child$112.subtreeFlags), + (subtreeFlags |= child$112.flags), + (child$112.return = completedWork), + (child$112 = child$112.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7408,16 +7389,16 @@ function completeWork(current, workInProgress, renderLanes) { break; case 27: case 5: - var isConcurrentMode$24 = 0 !== (currentResource.mode & 1); + var isConcurrentMode$23 = 0 !== (currentResource.mode & 1); !0 !== currentResource.memoizedProps.suppressHydrationWarning && checkForUnmatchedText( current.nodeValue, renderLanes, - isConcurrentMode$24 + isConcurrentMode$23 ); if ( - isConcurrentMode$24 && + isConcurrentMode$23 && enableClientRenderFallbackOnTextMismatch ) { current = !1; @@ -7491,11 +7472,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (currentResource = newProps.alternate.memoizedState.cachePool.pool), - (isConcurrentMode$24 = null), + (isConcurrentMode$23 = null), null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (isConcurrentMode$24 = newProps.memoizedState.cachePool.pool), - isConcurrentMode$24 !== currentResource && (newProps.flags |= 2048)); + (isConcurrentMode$23 = newProps.memoizedState.cachePool.pool), + isConcurrentMode$23 !== currentResource && (newProps.flags |= 2048)); renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), renderLanes && (workInProgress.child.flags |= 8192)); @@ -7515,13 +7496,7 @@ function completeWork(current, workInProgress, renderLanes) { ); case 10: return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - bubbleProperties(workInProgress), - null + popProvider(workInProgress.type), bubbleProperties(workInProgress), null ); case 17: return ( @@ -7535,8 +7510,8 @@ function completeWork(current, workInProgress, renderLanes) { if (null === currentResource) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - isConcurrentMode$24 = currentResource.rendering; - if (null === isConcurrentMode$24) + isConcurrentMode$23 = currentResource.rendering; + if (null === isConcurrentMode$23) if (newProps) cutOffTailIfNeeded(currentResource, !1); else { if ( @@ -7544,11 +7519,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - isConcurrentMode$24 = findFirstSuspended(current); - if (null !== isConcurrentMode$24) { + isConcurrentMode$23 = findFirstSuspended(current); + if (null !== isConcurrentMode$23) { workInProgress.flags |= 128; cutOffTailIfNeeded(currentResource, !1); - current = isConcurrentMode$24.updateQueue; + current = isConcurrentMode$23.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7574,7 +7549,7 @@ function completeWork(current, workInProgress, renderLanes) { else { if (!newProps) if ( - ((current = findFirstSuspended(isConcurrentMode$24)), + ((current = findFirstSuspended(isConcurrentMode$23)), null !== current) ) { if ( @@ -7586,7 +7561,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(currentResource, !0), null === currentResource.tail && "hidden" === currentResource.tailMode && - !isConcurrentMode$24.alternate && + !isConcurrentMode$23.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7599,13 +7574,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(currentResource, !1), (workInProgress.lanes = 4194304)); currentResource.isBackwards - ? ((isConcurrentMode$24.sibling = workInProgress.child), - (workInProgress.child = isConcurrentMode$24)) + ? ((isConcurrentMode$23.sibling = workInProgress.child), + (workInProgress.child = isConcurrentMode$23)) : ((current = currentResource.last), null !== current - ? (current.sibling = isConcurrentMode$24) - : (workInProgress.child = isConcurrentMode$24), - (currentResource.last = isConcurrentMode$24)); + ? (current.sibling = isConcurrentMode$23) + : (workInProgress.child = isConcurrentMode$23), + (currentResource.last = isConcurrentMode$23)); } if (null !== currentResource.tail) return ( @@ -7739,14 +7714,7 @@ function unwindWork(current, workInProgress) { case 4: return popHostContainer(), null; case 10: - return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - null - ); + return popProvider(workInProgress.type), null; case 22: case 23: return ( @@ -7804,11 +7772,7 @@ function unwindInterruptedWork(current, interruptedWork) { pop(suspenseStackCursor); break; case 10: - popProvider( - enableRenderableContext - ? interruptedWork.type - : interruptedWork.type._context - ); + popProvider(interruptedWork.type); break; case 22: case 23: @@ -7912,8 +7876,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$143) { - captureCommitPhaseError(current, nearestMountedAncestor, error$143); + } catch (error$142) { + captureCommitPhaseError(current, nearestMountedAncestor, error$142); } else ref.current = null; } @@ -7950,7 +7914,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$193) { + } catch (e$192) { JSCompiler_temp = null; break a; } @@ -8216,11 +8180,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$145) { + } catch (error$144) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$145 + error$144 ); } } @@ -8900,8 +8864,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$158) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$158); + } catch (error$157) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$157); } } break; @@ -9073,11 +9037,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$159) { + } catch (error$158) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$159 + error$158 ); } } @@ -9115,8 +9079,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$160) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$160); + } catch (error$159) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$159); } } if (flags & 4 && ((flags = finishedWork.stateNode), null != flags)) { @@ -9127,8 +9091,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$163) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$163); + } catch (error$162) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$162); } } break; @@ -9142,8 +9106,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$164) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$164); + } catch (error$163) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$163); } } break; @@ -9157,8 +9121,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$165) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$165); + } catch (error$164) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$164); } break; case 4: @@ -9188,8 +9152,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$167) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$167); + } catch (error$166) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$166); } current = finishedWork.updateQueue; null !== current && @@ -9267,11 +9231,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$148) { + } catch (error$147) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$148 + error$147 ); } } else if ( @@ -9346,21 +9310,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$149 = JSCompiler_inline_result.stateNode; + var parent$148 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$149, ""), + (setTextContent(parent$148, ""), (JSCompiler_inline_result.flags &= -33)); - var before$150 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$150, parent$149); + var before$149 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$149, parent$148); break; case 3: case 4: - var parent$151 = JSCompiler_inline_result.stateNode.containerInfo, - before$152 = getHostSibling(finishedWork); + var parent$150 = JSCompiler_inline_result.stateNode.containerInfo, + before$151 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$152, - parent$151 + before$151, + parent$150 ); break; default: @@ -9830,9 +9794,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$174 = finishedWork.stateNode; + var instance$173 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$174._visibility & 4 + ? instance$173._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9845,7 +9809,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$174._visibility |= 4), + : ((instance$173._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9853,7 +9817,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$174._visibility |= 4), + : ((instance$173._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9866,7 +9830,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$174 + instance$173 ); break; case 24: @@ -10341,11 +10305,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing) ) { var transitionLanesMap = root.transitionLanes, - index$8 = 31 - clz32(lane), - transitions = transitionLanesMap[index$8]; + index$7 = 31 - clz32(lane), + transitions = transitionLanesMap[index$7]; null === transitions && (transitions = new Set()); transitions.add(transition); - transitionLanesMap[index$8] = transitions; + transitionLanesMap[index$7] = transitions; } } root === workInProgressRoot && @@ -10611,9 +10575,9 @@ function markRootSuspended(root, suspendedLanes, spawnedLane) { 0 < lanes; ) { - var index$4 = 31 - clz32(lanes), - lane = 1 << index$4; - expirationTimes[index$4] = -1; + var index$3 = 31 - clz32(lanes), + lane = 1 << index$3; + expirationTimes[index$3] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10705,9 +10669,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$2 = 31 - clz32(allEntangledLanes), - lane = 1 << index$2; - lanes |= root[index$2]; + var index$1 = 31 - clz32(allEntangledLanes), + lane = 1 << index$1; + lanes |= root[index$1]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -10810,8 +10774,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$182) { - handleThrow(root, thrownValue$182); + } catch (thrownValue$181) { + handleThrow(root, thrownValue$181); } while (1); lanes && root.shellSuspendCounter++; @@ -10916,8 +10880,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$184) { - handleThrow(root, thrownValue$184); + } catch (thrownValue$183) { + handleThrow(root, thrownValue$183); } while (1); resetContextDependencies(); @@ -11140,12 +11104,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$188 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$187 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$188 && + shouldFireAfterActiveInstanceBlur$187 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11226,7 +11190,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$189 = rootWithPendingPassiveEffects, + var root$188 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11242,7 +11206,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$189, remainingLanes); + releaseRootPooledCache(root$188, remainingLanes); } } return !1; @@ -11849,9 +11813,7 @@ beginWork = function (current, workInProgress, renderLanes) { ); case 10: a: { - Component = enableRenderableContext - ? workInProgress.type - : workInProgress.type._context; + Component = workInProgress.type; context = workInProgress.pendingProps; prevState = workInProgress.memoizedProps; nextState = context.value; @@ -11881,9 +11843,7 @@ beginWork = function (current, workInProgress, renderLanes) { return workInProgress; case 9: return ( - (context = enableRenderableContext - ? workInProgress.type._context - : workInProgress.type), + (context = workInProgress.type._context), (Component = workInProgress.pendingProps.children), prepareToReadContext(workInProgress, renderLanes), (context = readContext(context)), @@ -12246,18 +12206,12 @@ function createFiberFromTypeAndProps( if ("object" === typeof type && null !== type) switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = 10; - break a; - } case REACT_CONTEXT_TYPE: - fiberTag = enableRenderableContext ? 10 : 9; + fiberTag = 10; break a; case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = 9; - break a; - } + fiberTag = 9; + break a; case REACT_FORWARD_REF_TYPE: fiberTag = 11; break a; @@ -12560,12 +12514,12 @@ function getPublicRootInstance(container) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$191 = fiber.stateNode; - if (root$191.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$191.pendingLanes); + var root$190 = fiber.stateNode; + if (root$190.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$190.pendingLanes); 0 !== lanes && - (upgradePendingLanesToSync(root$191, lanes), - ensureRootIsScheduled(root$191), + (upgradePendingLanesToSync(root$190, lanes), + ensureRootIsScheduled(root$190), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13131,19 +13085,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$352; + var JSCompiler_inline_result$jscomp$351; if (canUseDOM) { - var isSupported$jscomp$inline_1551 = "oninput" in document; - if (!isSupported$jscomp$inline_1551) { - var element$jscomp$inline_1552 = document.createElement("div"); - element$jscomp$inline_1552.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1551 = - "function" === typeof element$jscomp$inline_1552.oninput; + var isSupported$jscomp$inline_1550 = "oninput" in document; + if (!isSupported$jscomp$inline_1550) { + var element$jscomp$inline_1551 = document.createElement("div"); + element$jscomp$inline_1551.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1550 = + "function" === typeof element$jscomp$inline_1551.oninput; } - JSCompiler_inline_result$jscomp$352 = isSupported$jscomp$inline_1551; - } else JSCompiler_inline_result$jscomp$352 = !1; + JSCompiler_inline_result$jscomp$351 = isSupported$jscomp$inline_1550; + } else JSCompiler_inline_result$jscomp$351 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$352 && + JSCompiler_inline_result$jscomp$351 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13515,20 +13469,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1592 = 0; - i$jscomp$inline_1592 < simpleEventPluginEvents.length; - i$jscomp$inline_1592++ + var i$jscomp$inline_1591 = 0; + i$jscomp$inline_1591 < simpleEventPluginEvents.length; + i$jscomp$inline_1591++ ) { - var eventName$jscomp$inline_1593 = - simpleEventPluginEvents[i$jscomp$inline_1592], - domEventName$jscomp$inline_1594 = - eventName$jscomp$inline_1593.toLowerCase(), - capitalizedEvent$jscomp$inline_1595 = - eventName$jscomp$inline_1593[0].toUpperCase() + - eventName$jscomp$inline_1593.slice(1); + var eventName$jscomp$inline_1592 = + simpleEventPluginEvents[i$jscomp$inline_1591], + domEventName$jscomp$inline_1593 = + eventName$jscomp$inline_1592.toLowerCase(), + capitalizedEvent$jscomp$inline_1594 = + eventName$jscomp$inline_1592[0].toUpperCase() + + eventName$jscomp$inline_1592.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1594, - "on" + capitalizedEvent$jscomp$inline_1595 + domEventName$jscomp$inline_1593, + "on" + capitalizedEvent$jscomp$inline_1594 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15003,14 +14957,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$220 in nextProps) { - var propKey = nextProps[propKey$220]; - lastProp = lastProps[propKey$220]; + for (var propKey$219 in nextProps) { + var propKey = nextProps[propKey$219]; + lastProp = lastProps[propKey$219]; if ( - nextProps.hasOwnProperty(propKey$220) && + nextProps.hasOwnProperty(propKey$219) && (null != propKey || null != lastProp) ) - switch (propKey$220) { + switch (propKey$219) { case "type": type = propKey; break; @@ -15039,7 +14993,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$220, + propKey$219, propKey, nextProps, lastProp @@ -15058,7 +15012,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$220 = null; + propKey = value = defaultValue = propKey$219 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15089,7 +15043,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$220 = type; + propKey$219 = type; break; case "defaultValue": defaultValue = type; @@ -15110,15 +15064,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$220 - ? updateOptions(domElement, !!lastProps, propKey$220, !1) + null != propKey$219 + ? updateOptions(domElement, !!lastProps, propKey$219, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$220 = null; + propKey = propKey$219 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15142,7 +15096,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$220 = name; + propKey$219 = name; break; case "defaultValue": propKey = name; @@ -15156,17 +15110,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$220, propKey); + updateTextarea(domElement, propKey$219, propKey); return; case "option": - for (var propKey$236 in lastProps) + for (var propKey$235 in lastProps) if ( - ((propKey$220 = lastProps[propKey$236]), - lastProps.hasOwnProperty(propKey$236) && - null != propKey$220 && - !nextProps.hasOwnProperty(propKey$236)) + ((propKey$219 = lastProps[propKey$235]), + lastProps.hasOwnProperty(propKey$235) && + null != propKey$219 && + !nextProps.hasOwnProperty(propKey$235)) ) - switch (propKey$236) { + switch (propKey$235) { case "selected": domElement.selected = !1; break; @@ -15174,33 +15128,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$236, + propKey$235, null, nextProps, - propKey$220 + propKey$219 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$220 = nextProps[lastDefaultValue]), + ((propKey$219 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$220 !== propKey && - (null != propKey$220 || null != propKey)) + propKey$219 !== propKey && + (null != propKey$219 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$220 && - "function" !== typeof propKey$220 && - "symbol" !== typeof propKey$220; + propKey$219 && + "function" !== typeof propKey$219 && + "symbol" !== typeof propKey$219; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$220, + propKey$219, nextProps, propKey ); @@ -15221,24 +15175,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$241 in lastProps) - (propKey$220 = lastProps[propKey$241]), - lastProps.hasOwnProperty(propKey$241) && - null != propKey$220 && - !nextProps.hasOwnProperty(propKey$241) && - setProp(domElement, tag, propKey$241, null, nextProps, propKey$220); + for (var propKey$240 in lastProps) + (propKey$219 = lastProps[propKey$240]), + lastProps.hasOwnProperty(propKey$240) && + null != propKey$219 && + !nextProps.hasOwnProperty(propKey$240) && + setProp(domElement, tag, propKey$240, null, nextProps, propKey$219); for (checked in nextProps) if ( - ((propKey$220 = nextProps[checked]), + ((propKey$219 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$220 !== propKey && - (null != propKey$220 || null != propKey)) + propKey$219 !== propKey && + (null != propKey$219 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$220) + if (null != propKey$219) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15246,7 +15200,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$220, + propKey$219, nextProps, propKey ); @@ -15254,49 +15208,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$246 in lastProps) - (propKey$220 = lastProps[propKey$246]), - lastProps.hasOwnProperty(propKey$246) && - null != propKey$220 && - !nextProps.hasOwnProperty(propKey$246) && + for (var propKey$245 in lastProps) + (propKey$219 = lastProps[propKey$245]), + lastProps.hasOwnProperty(propKey$245) && + null != propKey$219 && + !nextProps.hasOwnProperty(propKey$245) && setPropOnCustomElement( domElement, tag, - propKey$246, + propKey$245, null, nextProps, - propKey$220 + propKey$219 ); for (defaultChecked in nextProps) - (propKey$220 = nextProps[defaultChecked]), + (propKey$219 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$220 === propKey || - (null == propKey$220 && null == propKey) || + propKey$219 === propKey || + (null == propKey$219 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$220, + propKey$219, nextProps, propKey ); return; } } - for (var propKey$251 in lastProps) - (propKey$220 = lastProps[propKey$251]), - lastProps.hasOwnProperty(propKey$251) && - null != propKey$220 && - !nextProps.hasOwnProperty(propKey$251) && - setProp(domElement, tag, propKey$251, null, nextProps, propKey$220); + for (var propKey$250 in lastProps) + (propKey$219 = lastProps[propKey$250]), + lastProps.hasOwnProperty(propKey$250) && + null != propKey$219 && + !nextProps.hasOwnProperty(propKey$250) && + setProp(domElement, tag, propKey$250, null, nextProps, propKey$219); for (lastProp in nextProps) - (propKey$220 = nextProps[lastProp]), + (propKey$219 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$220 === propKey || - (null == propKey$220 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$220, nextProps, propKey); + propKey$219 === propKey || + (null == propKey$219 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$219, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15943,17 +15897,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$259 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$260 = styles$259.get(type); - resource$260 || + var styles$258 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$259 = styles$258.get(type); + resource$259 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$260 = { + (resource$259 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$259.set(type, resource$260), + styles$258.set(type, resource$259), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -15968,9 +15922,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$260.state + resource$259.state )); - return resource$260; + return resource$259; } return null; case "script": @@ -16053,37 +16007,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$264 = hoistableRoot.querySelector( + var instance$263 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$264) + if (instance$263) return ( (resource.state.loading |= 4), - (resource.instance = instance$264), - markNodeAsHoistable(instance$264), - instance$264 + (resource.instance = instance$263), + markNodeAsHoistable(instance$263), + instance$263 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$264 = ( + instance$263 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$264); - var linkInstance = instance$264; + markNodeAsHoistable(instance$263); + var linkInstance = instance$263; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$264, "link", instance); + setInitialProperties(instance$263, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$264, props.precedence, hoistableRoot); - return (resource.instance = instance$264); + insertStylesheet(instance$263, props.precedence, hoistableRoot); + return (resource.instance = instance$263); case "script": - instance$264 = getScriptKey(props.src); + instance$263 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$264) + getScriptSelectorFromKey(instance$263) )) ) return ( @@ -16092,7 +16046,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$264))) + if ((styleProps = preloadPropsMap.get(instance$263))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17105,11 +17059,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$286); + var instance = getPublicRootInstance(root$285); originalCallback.call(instance); }; } - var root$286 = createHydrationContainer( + var root$285 = createHydrationContainer( initialChildren, callback, container, @@ -17122,23 +17076,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$286; - container[internalContainerInstanceKey] = root$286.current; + container._reactRootContainer = root$285; + container[internalContainerInstanceKey] = root$285.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$286; + return root$285; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$287 = callback; + var originalCallback$286 = callback; callback = function () { - var instance = getPublicRootInstance(root$288); - originalCallback$287.call(instance); + var instance = getPublicRootInstance(root$287); + originalCallback$286.call(instance); }; } - var root$288 = createFiberRoot( + var root$287 = createFiberRoot( container, 0, !1, @@ -17151,15 +17105,15 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$288; - container[internalContainerInstanceKey] = root$288.current; + container._reactRootContainer = root$287; + container[internalContainerInstanceKey] = root$287.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$288, parentComponent, callback); + updateContainer(initialChildren, root$287, parentComponent, callback); }); - return root$288; + return root$287; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -17224,17 +17178,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1819 = { +var devToolsConfig$jscomp$inline_1818 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-f5fa67ad", + version: "18.3.0-www-classic-c3ec4175", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2179 = { - bundleType: devToolsConfig$jscomp$inline_1819.bundleType, - version: devToolsConfig$jscomp$inline_1819.version, - rendererPackageName: devToolsConfig$jscomp$inline_1819.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1819.rendererConfig, +var internals$jscomp$inline_2178 = { + bundleType: devToolsConfig$jscomp$inline_1818.bundleType, + version: devToolsConfig$jscomp$inline_1818.version, + rendererPackageName: devToolsConfig$jscomp$inline_1818.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1818.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -17250,26 +17204,26 @@ var internals$jscomp$inline_2179 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1819.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1818.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-f5fa67ad" + reconcilerVersion: "18.3.0-www-classic-c3ec4175" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2180 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2179 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2180.isDisabled && - hook$jscomp$inline_2180.supportsFiber + !hook$jscomp$inline_2179.isDisabled && + hook$jscomp$inline_2179.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2180.inject( - internals$jscomp$inline_2179 + (rendererID = hook$jscomp$inline_2179.inject( + internals$jscomp$inline_2178 )), - (injectedHook = hook$jscomp$inline_2180); + (injectedHook = hook$jscomp$inline_2179); } catch (err) {} } assign(Internals, { @@ -17600,4 +17554,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-classic-f5fa67ad"; +exports.version = "18.3.0-www-classic-c3ec4175"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 3bbb25c8780ef..f187dd8f35289 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -65,7 +65,6 @@ var assign = Object.assign, transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, enableClientRenderFallbackOnTextMismatch = dynamicFeatureFlags.enableClientRenderFallbackOnTextMismatch, @@ -1181,15 +1180,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$18 in styles) - (styleName = styles[styleName$18]), - styles.hasOwnProperty(styleName$18) && - prevStyles[styleName$18] !== styleName && - setValueForStyle(node, styleName$18, styleName); + for (var styleName$17 in styles) + (styleName = styles[styleName$17]), + styles.hasOwnProperty(styleName$17) && + prevStyles[styleName$17] !== styleName && + setValueForStyle(node, styleName$17, styleName); } else - for (var styleName$19 in styles) - styles.hasOwnProperty(styleName$19) && - setValueForStyle(node, styleName$19, styles[styleName$19]); + for (var styleName$18 in styles) + styles.hasOwnProperty(styleName$18) && + setValueForStyle(node, styleName$18, styles[styleName$18]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1444,36 +1443,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$21 = parentA.child; child$21; ) { - if (child$21 === a) { + for (var didFindChild = !1, child$20 = parentA.child; child$20; ) { + if (child$20 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$21 === b) { + if (child$20 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$21 = child$21.sibling; + child$20 = child$20.sibling; } if (!didFindChild) { - for (child$21 = parentB.child; child$21; ) { - if (child$21 === a) { + for (child$20 = parentB.child; child$20; ) { + if (child$20 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$21 === b) { + if (child$20 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$21 = child$21.sibling; + child$20 = child$20.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -1848,39 +1847,39 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$26 = firstScheduledRoot; null !== root$26; ) { - if (!onlyLegacy || 0 === root$26.tag) { - var workInProgressRootRenderLanes$28 = workInProgressRootRenderLanes, + for (var root$25 = firstScheduledRoot; null !== root$25; ) { + if (!onlyLegacy || 0 === root$25.tag) { + var workInProgressRootRenderLanes$27 = workInProgressRootRenderLanes, nextLanes = getNextLanes( - root$26, - root$26 === workInProgressRoot - ? workInProgressRootRenderLanes$28 + root$25, + root$25 === workInProgressRoot + ? workInProgressRootRenderLanes$27 : 0 ); if (0 !== (nextLanes & 3)) try { didPerformSomeWork = !0; - workInProgressRootRenderLanes$28 = root$26; + workInProgressRootRenderLanes$27 = root$25; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); if (!flushPassiveEffects()) { var exitStatus = renderRootSync( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, nextLanes ); if ( - 0 !== workInProgressRootRenderLanes$28.tag && + 0 !== workInProgressRootRenderLanes$27.tag && 2 === exitStatus ) { var originallyAttemptedLanes = nextLanes, errorRetryLanes = getLanesToRetrySynchronouslyOnError( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, originallyAttemptedLanes ); 0 !== errorRetryLanes && ((nextLanes = errorRetryLanes), (exitStatus = recoverFromConcurrentError( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, originallyAttemptedLanes, errorRetryLanes ))); @@ -1888,39 +1887,39 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { if (1 === exitStatus) throw ( ((originallyAttemptedLanes = workInProgressRootFatalError), - prepareFreshStack(workInProgressRootRenderLanes$28, 0), + prepareFreshStack(workInProgressRootRenderLanes$27, 0), markRootSuspended( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, nextLanes, 0 ), - ensureRootIsScheduled(workInProgressRootRenderLanes$28), + ensureRootIsScheduled(workInProgressRootRenderLanes$27), originallyAttemptedLanes) ); 6 === exitStatus ? markRootSuspended( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, nextLanes, workInProgressDeferredLane ) - : ((workInProgressRootRenderLanes$28.finishedWork = - workInProgressRootRenderLanes$28.current.alternate), - (workInProgressRootRenderLanes$28.finishedLanes = + : ((workInProgressRootRenderLanes$27.finishedWork = + workInProgressRootRenderLanes$27.current.alternate), + (workInProgressRootRenderLanes$27.finishedLanes = nextLanes), commitRoot( - workInProgressRootRenderLanes$28, + workInProgressRootRenderLanes$27, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane )); } - ensureRootIsScheduled(workInProgressRootRenderLanes$28); + ensureRootIsScheduled(workInProgressRootRenderLanes$27); } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } } - root$26 = root$26.next; + root$25 = root$25.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -3526,7 +3525,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$53 = !1; + didReadFromEntangledAsyncAction$52 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3547,11 +3546,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$53 = !0); + (didReadFromEntangledAsyncAction$52 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$53 = !0); + (didReadFromEntangledAsyncAction$52 = !0); continue; } else (updateLane = { @@ -3597,7 +3596,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$53 && + didReadFromEntangledAsyncAction$52 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4062,14 +4061,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$63 = enqueueUpdate(provider, fiber, lane); - null !== root$63 && - (scheduleUpdateOnFiber(root$63, provider, lane), - entangleTransitions(root$63, provider, lane)); + var root$62 = enqueueUpdate(provider, fiber, lane); + null !== root$62 && + (scheduleUpdateOnFiber(root$62, provider, lane), + entangleTransitions(root$62, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$63 && + null !== root$62 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4309,15 +4308,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$56 = workInProgressRoot; - if (null === root$56) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$56, workInProgressRootRenderLanes) || + var root$55 = workInProgressRoot; + if (null === root$55) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$55, workInProgressRootRenderLanes) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$56 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$56; - mountEffect(subscribeToStore.bind(null, fiber, root$56, subscribe), [ + root$55 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$55; + mountEffect(subscribeToStore.bind(null, fiber, root$55, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4326,7 +4325,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$56, + root$55, getServerSnapshot, getSnapshot ), @@ -5115,10 +5114,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$73 = workInProgress.stateNode; + root$72 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$73.incompleteTransitions.has(transition)) { + if (!root$72.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5126,11 +5125,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$73.incompleteTransitions.set(transition, markerInstance); + root$72.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$73.incompleteTransitions.forEach(function (markerInstance) { + root$72.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -6362,9 +6361,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( case 10: pushProvider( workInProgress, - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context, + workInProgress.type, workInProgress.memoizedProps.value ); break; @@ -6615,9 +6612,7 @@ function propagateParentContextChanges( if (null === currentParent) throw Error(formatProdErrorMessage(387)); currentParent = currentParent.memoizedProps; if (null !== currentParent) { - var context = enableRenderableContext - ? parent.type - : parent.type._context; + var context = parent.type; objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : (current = [context])); } @@ -6840,10 +6835,7 @@ function collectNearestChildContextValues( var node = startingChild, context = context$jscomp$0, childContextValues = childContextValues$jscomp$0; - if ( - 10 === node.tag && - (enableRenderableContext ? node.type : node.type._context) === context - ) + if (10 === node.tag && node.type === context) childContextValues.push(node.memoizedProps.value); else { var child = node.child; @@ -6932,14 +6924,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$112 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$112 = lastTailNode), + for (var lastTailNode$111 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$111 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$112 + null === lastTailNode$111 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$112.sibling = null); + : (lastTailNode$111.sibling = null); } } function bubbleProperties(completedWork) { @@ -6949,19 +6941,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$113 = completedWork.child; null !== child$113; ) - (newChildLanes |= child$113.lanes | child$113.childLanes), - (subtreeFlags |= child$113.subtreeFlags & 31457280), - (subtreeFlags |= child$113.flags & 31457280), - (child$113.return = completedWork), - (child$113 = child$113.sibling); + for (var child$112 = completedWork.child; null !== child$112; ) + (newChildLanes |= child$112.lanes | child$112.childLanes), + (subtreeFlags |= child$112.subtreeFlags & 31457280), + (subtreeFlags |= child$112.flags & 31457280), + (child$112.return = completedWork), + (child$112 = child$112.sibling); else - for (child$113 = completedWork.child; null !== child$113; ) - (newChildLanes |= child$113.lanes | child$113.childLanes), - (subtreeFlags |= child$113.subtreeFlags), - (subtreeFlags |= child$113.flags), - (child$113.return = completedWork), - (child$113 = child$113.sibling); + for (child$112 = completedWork.child; null !== child$112; ) + (newChildLanes |= child$112.lanes | child$112.childLanes), + (subtreeFlags |= child$112.subtreeFlags), + (subtreeFlags |= child$112.flags), + (child$112.return = completedWork), + (child$112 = child$112.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7234,16 +7226,16 @@ function completeWork(current, workInProgress, renderLanes) { break; case 27: case 5: - var isConcurrentMode$24 = 0 !== (currentResource.mode & 1); + var isConcurrentMode$23 = 0 !== (currentResource.mode & 1); !0 !== currentResource.memoizedProps.suppressHydrationWarning && checkForUnmatchedText( current.nodeValue, renderLanes, - isConcurrentMode$24 + isConcurrentMode$23 ); if ( - isConcurrentMode$24 && + isConcurrentMode$23 && enableClientRenderFallbackOnTextMismatch ) { current = !1; @@ -7317,11 +7309,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (currentResource = newProps.alternate.memoizedState.cachePool.pool), - (isConcurrentMode$24 = null), + (isConcurrentMode$23 = null), null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (isConcurrentMode$24 = newProps.memoizedState.cachePool.pool), - isConcurrentMode$24 !== currentResource && (newProps.flags |= 2048)); + (isConcurrentMode$23 = newProps.memoizedState.cachePool.pool), + isConcurrentMode$23 !== currentResource && (newProps.flags |= 2048)); renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), renderLanes && (workInProgress.child.flags |= 8192)); @@ -7341,13 +7333,7 @@ function completeWork(current, workInProgress, renderLanes) { ); case 10: return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - bubbleProperties(workInProgress), - null + popProvider(workInProgress.type), bubbleProperties(workInProgress), null ); case 17: return bubbleProperties(workInProgress), null; @@ -7357,8 +7343,8 @@ function completeWork(current, workInProgress, renderLanes) { if (null === currentResource) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - isConcurrentMode$24 = currentResource.rendering; - if (null === isConcurrentMode$24) + isConcurrentMode$23 = currentResource.rendering; + if (null === isConcurrentMode$23) if (newProps) cutOffTailIfNeeded(currentResource, !1); else { if ( @@ -7366,11 +7352,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - isConcurrentMode$24 = findFirstSuspended(current); - if (null !== isConcurrentMode$24) { + isConcurrentMode$23 = findFirstSuspended(current); + if (null !== isConcurrentMode$23) { workInProgress.flags |= 128; cutOffTailIfNeeded(currentResource, !1); - current = isConcurrentMode$24.updateQueue; + current = isConcurrentMode$23.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7396,7 +7382,7 @@ function completeWork(current, workInProgress, renderLanes) { else { if (!newProps) if ( - ((current = findFirstSuspended(isConcurrentMode$24)), + ((current = findFirstSuspended(isConcurrentMode$23)), null !== current) ) { if ( @@ -7408,7 +7394,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(currentResource, !0), null === currentResource.tail && "hidden" === currentResource.tailMode && - !isConcurrentMode$24.alternate && + !isConcurrentMode$23.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7421,13 +7407,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(currentResource, !1), (workInProgress.lanes = 4194304)); currentResource.isBackwards - ? ((isConcurrentMode$24.sibling = workInProgress.child), - (workInProgress.child = isConcurrentMode$24)) + ? ((isConcurrentMode$23.sibling = workInProgress.child), + (workInProgress.child = isConcurrentMode$23)) : ((current = currentResource.last), null !== current - ? (current.sibling = isConcurrentMode$24) - : (workInProgress.child = isConcurrentMode$24), - (currentResource.last = isConcurrentMode$24)); + ? (current.sibling = isConcurrentMode$23) + : (workInProgress.child = isConcurrentMode$23), + (currentResource.last = isConcurrentMode$23)); } if (null !== currentResource.tail) return ( @@ -7558,14 +7544,7 @@ function unwindWork(current, workInProgress) { case 4: return popHostContainer(), null; case 10: - return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - null - ); + return popProvider(workInProgress.type), null; case 22: case 23: return ( @@ -7617,11 +7596,7 @@ function unwindInterruptedWork(current, interruptedWork) { pop(suspenseStackCursor); break; case 10: - popProvider( - enableRenderableContext - ? interruptedWork.type - : interruptedWork.type._context - ); + popProvider(interruptedWork.type); break; case 22: case 23: @@ -7725,8 +7700,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$142) { - captureCommitPhaseError(current, nearestMountedAncestor, error$142); + } catch (error$141) { + captureCommitPhaseError(current, nearestMountedAncestor, error$141); } else ref.current = null; } @@ -7763,7 +7738,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$199) { + } catch (e$198) { JSCompiler_temp = null; break a; } @@ -8042,11 +8017,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$144) { + } catch (error$143) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$144 + error$143 ); } } @@ -8726,8 +8701,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$157) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$157); + } catch (error$156) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$156); } } break; @@ -8899,11 +8874,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$158) { + } catch (error$157) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$158 + error$157 ); } } @@ -8941,8 +8916,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$159) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$159); + } catch (error$158) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$158); } } if (flags & 4 && ((flags = finishedWork.stateNode), null != flags)) { @@ -8953,8 +8928,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$162) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$162); + } catch (error$161) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$161); } } break; @@ -8968,8 +8943,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$163) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$163); + } catch (error$162) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$162); } } break; @@ -8983,8 +8958,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$164) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$164); + } catch (error$163) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$163); } break; case 4: @@ -9014,8 +8989,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$166) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$166); + } catch (error$165) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$165); } current = finishedWork.updateQueue; null !== current && @@ -9093,11 +9068,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$147) { + } catch (error$146) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$147 + error$146 ); } } else if ( @@ -9172,21 +9147,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$148 = JSCompiler_inline_result.stateNode; + var parent$147 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$148, ""), + (setTextContent(parent$147, ""), (JSCompiler_inline_result.flags &= -33)); - var before$149 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$149, parent$148); + var before$148 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$148, parent$147); break; case 3: case 4: - var parent$150 = JSCompiler_inline_result.stateNode.containerInfo, - before$151 = getHostSibling(finishedWork); + var parent$149 = JSCompiler_inline_result.stateNode.containerInfo, + before$150 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$151, - parent$150 + before$150, + parent$149 ); break; default: @@ -9656,9 +9631,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$173 = finishedWork.stateNode; + var instance$172 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$173._visibility & 4 + ? instance$172._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9671,7 +9646,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$173._visibility |= 4), + : ((instance$172._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9679,7 +9654,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$173._visibility |= 4), + : ((instance$172._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9692,7 +9667,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$173 + instance$172 ); break; case 24: @@ -10636,8 +10611,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$181) { - handleThrow(root, thrownValue$181); + } catch (thrownValue$180) { + handleThrow(root, thrownValue$180); } while (1); lanes && root.shellSuspendCounter++; @@ -10742,8 +10717,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$183) { - handleThrow(root, thrownValue$183); + } catch (thrownValue$182) { + handleThrow(root, thrownValue$182); } while (1); resetContextDependencies(); @@ -10962,12 +10937,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$187 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$186 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$187 && + shouldFireAfterActiveInstanceBlur$186 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11048,7 +11023,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$188 = rootWithPendingPassiveEffects, + var root$187 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11064,7 +11039,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$188, remainingLanes); + releaseRootPooledCache(root$187, remainingLanes); } } return !1; @@ -11661,9 +11636,7 @@ beginWork = function (current, workInProgress, renderLanes) { ); case 10: a: { - Component = enableRenderableContext - ? workInProgress.type - : workInProgress.type._context; + Component = workInProgress.type; init = workInProgress.pendingProps; prevState = workInProgress.memoizedProps; nextState = init.value; @@ -11685,9 +11658,7 @@ beginWork = function (current, workInProgress, renderLanes) { return workInProgress; case 9: return ( - (init = enableRenderableContext - ? workInProgress.type._context - : workInProgress.type), + (init = workInProgress.type._context), (Component = workInProgress.pendingProps.children), prepareToReadContext(workInProgress, renderLanes), (init = readContext(init)), @@ -12044,18 +12015,12 @@ function createFiberFromTypeAndProps( if ("object" === typeof type && null !== type) switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = 10; - break a; - } case REACT_CONTEXT_TYPE: - fiberTag = enableRenderableContext ? 10 : 9; + fiberTag = 10; break a; case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = 9; - break a; - } + fiberTag = 9; + break a; case REACT_FORWARD_REF_TYPE: fiberTag = 11; break a; @@ -12270,12 +12235,12 @@ function updateContainer(element, container, parentComponent, callback) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$190 = fiber.stateNode; - if (root$190.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$190.pendingLanes); + var root$189 = fiber.stateNode; + if (root$189.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$189.pendingLanes); 0 !== lanes && - (upgradePendingLanesToSync(root$190, lanes), - ensureRootIsScheduled(root$190), + (upgradePendingLanesToSync(root$189, lanes), + ensureRootIsScheduled(root$189), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13487,19 +13452,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$350; + var JSCompiler_inline_result$jscomp$349; if (canUseDOM) { - var isSupported$jscomp$inline_1551 = "oninput" in document; - if (!isSupported$jscomp$inline_1551) { - var element$jscomp$inline_1552 = document.createElement("div"); - element$jscomp$inline_1552.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1551 = - "function" === typeof element$jscomp$inline_1552.oninput; + var isSupported$jscomp$inline_1550 = "oninput" in document; + if (!isSupported$jscomp$inline_1550) { + var element$jscomp$inline_1551 = document.createElement("div"); + element$jscomp$inline_1551.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1550 = + "function" === typeof element$jscomp$inline_1551.oninput; } - JSCompiler_inline_result$jscomp$350 = isSupported$jscomp$inline_1551; - } else JSCompiler_inline_result$jscomp$350 = !1; + JSCompiler_inline_result$jscomp$349 = isSupported$jscomp$inline_1550; + } else JSCompiler_inline_result$jscomp$349 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$350 && + JSCompiler_inline_result$jscomp$349 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13808,20 +13773,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1592 = 0; - i$jscomp$inline_1592 < simpleEventPluginEvents.length; - i$jscomp$inline_1592++ + var i$jscomp$inline_1591 = 0; + i$jscomp$inline_1591 < simpleEventPluginEvents.length; + i$jscomp$inline_1591++ ) { - var eventName$jscomp$inline_1593 = - simpleEventPluginEvents[i$jscomp$inline_1592], - domEventName$jscomp$inline_1594 = - eventName$jscomp$inline_1593.toLowerCase(), - capitalizedEvent$jscomp$inline_1595 = - eventName$jscomp$inline_1593[0].toUpperCase() + - eventName$jscomp$inline_1593.slice(1); + var eventName$jscomp$inline_1592 = + simpleEventPluginEvents[i$jscomp$inline_1591], + domEventName$jscomp$inline_1593 = + eventName$jscomp$inline_1592.toLowerCase(), + capitalizedEvent$jscomp$inline_1594 = + eventName$jscomp$inline_1592[0].toUpperCase() + + eventName$jscomp$inline_1592.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1594, - "on" + capitalizedEvent$jscomp$inline_1595 + domEventName$jscomp$inline_1593, + "on" + capitalizedEvent$jscomp$inline_1594 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15295,14 +15260,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$226 in nextProps) { - var propKey = nextProps[propKey$226]; - lastProp = lastProps[propKey$226]; + for (var propKey$225 in nextProps) { + var propKey = nextProps[propKey$225]; + lastProp = lastProps[propKey$225]; if ( - nextProps.hasOwnProperty(propKey$226) && + nextProps.hasOwnProperty(propKey$225) && (null != propKey || null != lastProp) ) - switch (propKey$226) { + switch (propKey$225) { case "type": type = propKey; break; @@ -15331,7 +15296,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$226, + propKey$225, propKey, nextProps, lastProp @@ -15350,7 +15315,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$226 = null; + propKey = value = defaultValue = propKey$225 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15381,7 +15346,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$226 = type; + propKey$225 = type; break; case "defaultValue": defaultValue = type; @@ -15402,15 +15367,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$226 - ? updateOptions(domElement, !!lastProps, propKey$226, !1) + null != propKey$225 + ? updateOptions(domElement, !!lastProps, propKey$225, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$226 = null; + propKey = propKey$225 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15434,7 +15399,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$226 = name; + propKey$225 = name; break; case "defaultValue": propKey = name; @@ -15448,17 +15413,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$226, propKey); + updateTextarea(domElement, propKey$225, propKey); return; case "option": - for (var propKey$242 in lastProps) + for (var propKey$241 in lastProps) if ( - ((propKey$226 = lastProps[propKey$242]), - lastProps.hasOwnProperty(propKey$242) && - null != propKey$226 && - !nextProps.hasOwnProperty(propKey$242)) + ((propKey$225 = lastProps[propKey$241]), + lastProps.hasOwnProperty(propKey$241) && + null != propKey$225 && + !nextProps.hasOwnProperty(propKey$241)) ) - switch (propKey$242) { + switch (propKey$241) { case "selected": domElement.selected = !1; break; @@ -15466,33 +15431,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$242, + propKey$241, null, nextProps, - propKey$226 + propKey$225 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$226 = nextProps[lastDefaultValue]), + ((propKey$225 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$226 !== propKey && - (null != propKey$226 || null != propKey)) + propKey$225 !== propKey && + (null != propKey$225 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$226 && - "function" !== typeof propKey$226 && - "symbol" !== typeof propKey$226; + propKey$225 && + "function" !== typeof propKey$225 && + "symbol" !== typeof propKey$225; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$226, + propKey$225, nextProps, propKey ); @@ -15513,24 +15478,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$247 in lastProps) - (propKey$226 = lastProps[propKey$247]), - lastProps.hasOwnProperty(propKey$247) && - null != propKey$226 && - !nextProps.hasOwnProperty(propKey$247) && - setProp(domElement, tag, propKey$247, null, nextProps, propKey$226); + for (var propKey$246 in lastProps) + (propKey$225 = lastProps[propKey$246]), + lastProps.hasOwnProperty(propKey$246) && + null != propKey$225 && + !nextProps.hasOwnProperty(propKey$246) && + setProp(domElement, tag, propKey$246, null, nextProps, propKey$225); for (checked in nextProps) if ( - ((propKey$226 = nextProps[checked]), + ((propKey$225 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$226 !== propKey && - (null != propKey$226 || null != propKey)) + propKey$225 !== propKey && + (null != propKey$225 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$226) + if (null != propKey$225) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15538,7 +15503,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$226, + propKey$225, nextProps, propKey ); @@ -15546,49 +15511,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$252 in lastProps) - (propKey$226 = lastProps[propKey$252]), - lastProps.hasOwnProperty(propKey$252) && - null != propKey$226 && - !nextProps.hasOwnProperty(propKey$252) && + for (var propKey$251 in lastProps) + (propKey$225 = lastProps[propKey$251]), + lastProps.hasOwnProperty(propKey$251) && + null != propKey$225 && + !nextProps.hasOwnProperty(propKey$251) && setPropOnCustomElement( domElement, tag, - propKey$252, + propKey$251, null, nextProps, - propKey$226 + propKey$225 ); for (defaultChecked in nextProps) - (propKey$226 = nextProps[defaultChecked]), + (propKey$225 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$226 === propKey || - (null == propKey$226 && null == propKey) || + propKey$225 === propKey || + (null == propKey$225 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$226, + propKey$225, nextProps, propKey ); return; } } - for (var propKey$257 in lastProps) - (propKey$226 = lastProps[propKey$257]), - lastProps.hasOwnProperty(propKey$257) && - null != propKey$226 && - !nextProps.hasOwnProperty(propKey$257) && - setProp(domElement, tag, propKey$257, null, nextProps, propKey$226); + for (var propKey$256 in lastProps) + (propKey$225 = lastProps[propKey$256]), + lastProps.hasOwnProperty(propKey$256) && + null != propKey$225 && + !nextProps.hasOwnProperty(propKey$256) && + setProp(domElement, tag, propKey$256, null, nextProps, propKey$225); for (lastProp in nextProps) - (propKey$226 = nextProps[lastProp]), + (propKey$225 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$226 === propKey || - (null == propKey$226 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$226, nextProps, propKey); + propKey$225 === propKey || + (null == propKey$225 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$225, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16221,17 +16186,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$265 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$266 = styles$265.get(type); - resource$266 || + var styles$264 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$265 = styles$264.get(type); + resource$265 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$266 = { + (resource$265 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$265.set(type, resource$266), + styles$264.set(type, resource$265), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -16246,9 +16211,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$266.state + resource$265.state )); - return resource$266; + return resource$265; } return null; case "script": @@ -16331,37 +16296,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$270 = hoistableRoot.querySelector( + var instance$269 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$270) + if (instance$269) return ( (resource.state.loading |= 4), - (resource.instance = instance$270), - markNodeAsHoistable(instance$270), - instance$270 + (resource.instance = instance$269), + markNodeAsHoistable(instance$269), + instance$269 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$270 = ( + instance$269 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$270); - var linkInstance = instance$270; + markNodeAsHoistable(instance$269); + var linkInstance = instance$269; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$270, "link", instance); + setInitialProperties(instance$269, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$270, props.precedence, hoistableRoot); - return (resource.instance = instance$270); + insertStylesheet(instance$269, props.precedence, hoistableRoot); + return (resource.instance = instance$269); case "script": - instance$270 = getScriptKey(props.src); + instance$269 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$270) + getScriptSelectorFromKey(instance$269) )) ) return ( @@ -16370,7 +16335,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$270))) + if ((styleProps = preloadPropsMap.get(instance$269))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16740,17 +16705,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1778 = { +var devToolsConfig$jscomp$inline_1777 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-fa4c8945", + version: "18.3.0-www-modern-03e48c28", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2143 = { - bundleType: devToolsConfig$jscomp$inline_1778.bundleType, - version: devToolsConfig$jscomp$inline_1778.version, - rendererPackageName: devToolsConfig$jscomp$inline_1778.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1778.rendererConfig, +var internals$jscomp$inline_2142 = { + bundleType: devToolsConfig$jscomp$inline_1777.bundleType, + version: devToolsConfig$jscomp$inline_1777.version, + rendererPackageName: devToolsConfig$jscomp$inline_1777.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1777.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16767,26 +16732,26 @@ var internals$jscomp$inline_2143 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1778.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1777.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-fa4c8945" + reconcilerVersion: "18.3.0-www-modern-03e48c28" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2144 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2143 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2144.isDisabled && - hook$jscomp$inline_2144.supportsFiber + !hook$jscomp$inline_2143.isDisabled && + hook$jscomp$inline_2143.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2144.inject( - internals$jscomp$inline_2143 + (rendererID = hook$jscomp$inline_2143.inject( + internals$jscomp$inline_2142 )), - (injectedHook = hook$jscomp$inline_2144); + (injectedHook = hook$jscomp$inline_2143); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -17045,4 +17010,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-modern-fa4c8945"; +exports.version = "18.3.0-www-modern-03e48c28"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 3a6b281124a80..0d886ac4b5d19 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -66,7 +66,6 @@ var ReactSharedInternals = transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, enableClientRenderFallbackOnTextMismatch = dynamicFeatureFlags.enableClientRenderFallbackOnTextMismatch, @@ -129,17 +128,10 @@ function getComponentNameFromType(type) { } if ("object" === typeof type) switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; + return (type.displayName || "Context") + ".Provider"; case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; + return (type._context.displayName || "Context") + ".Consumer"; case REACT_FORWARD_REF_TYPE: var innerType = type.render; type = type.displayName; @@ -169,13 +161,9 @@ function getComponentNameFromFiber(fiber) { case 24: return "Cache"; case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; + return (type._context.displayName || "Context") + ".Consumer"; case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; + return (type.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: @@ -285,36 +273,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$1 = parentA.child; child$1; ) { - if (child$1 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$1 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$1 = child$1.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$1 = parentB.child; child$1; ) { - if (child$1 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$1 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$1 = child$1.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -506,7 +494,7 @@ function injectProfilingHooks(profilingHooks) { } function getLaneLabelMap() { if (enableSchedulingProfiler) { - for (var map = new Map(), lane = 1, index$2 = 0; 31 > index$2; index$2++) { + for (var map = new Map(), lane = 1, index$1 = 0; 31 > index$1; index$1++) { var label = getLabelForLane(lane); map.set(lane, label); lane *= 2; @@ -760,18 +748,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$6 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$6; - remainingLanes[index$6] = 0; - expirationTimes[index$6] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$6]; + var index$5 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$5; + remainingLanes[index$5] = 0; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$5]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$6] = null, index$6 = 0; - index$6 < hiddenUpdatesForLane.length; - index$6++ + hiddenUpdates[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$6]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -791,10 +779,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$7 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$7; - (lane & entangledLanes) | (root[index$7] & entangledLanes) && - (root[index$7] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -809,9 +797,9 @@ function upgradePendingLanesToSync(root, lanesToUpgrade) { function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - root[index$9].add(fiber); + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + root[index$8].add(fiber); lanes &= ~lane; } } @@ -823,27 +811,27 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$10 = 31 - clz32(lanes); - root = 1 << index$10; - index$10 = pendingUpdatersLaneMap[index$10]; - 0 < index$10.size && - (index$10.forEach(function (fiber) { + var index$9 = 31 - clz32(lanes); + root = 1 << index$9; + index$9 = pendingUpdatersLaneMap[index$9]; + 0 < index$9.size && + (index$9.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$10.clear()); + index$9.clear()); lanes &= ~root; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$11 = 31 - clz32(lanes), + lane = 1 << index$11; + index$11 = root.transitionLanes[index$11]; + null !== index$11 && + index$11.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -853,10 +841,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$12 = 31 - clz32(lanes), + lane = 1 << index$12; + null !== root.transitionLanes[index$12] && + (root.transitionLanes[index$12] = null); lanes &= ~lane; } } @@ -927,8 +915,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$14 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$14 && "aria-" !== prefix$14) { + var prefix$13 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$13 && "aria-" !== prefix$13) { node.removeAttribute(name); return; } @@ -1010,16 +998,16 @@ function describeNativeComponentFrame(fn, construct) { } else { try { Fake.call(); - } catch (x$15) { - control = x$15; + } catch (x$14) { + control = x$14; } fn.call(Fake.prototype); } } else { try { throw Error(); - } catch (x$16) { - control = x$16; + } catch (x$15) { + control = x$15; } (Fake = fn()) && "function" === typeof Fake.catch && @@ -1485,15 +1473,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$22 in styles) - (styleName = styles[styleName$22]), - styles.hasOwnProperty(styleName$22) && - prevStyles[styleName$22] !== styleName && - setValueForStyle(node, styleName$22, styleName); + for (var styleName$21 in styles) + (styleName = styles[styleName$21]), + styles.hasOwnProperty(styleName$21) && + prevStyles[styleName$21] !== styleName && + setValueForStyle(node, styleName$21, styleName); } else - for (var styleName$23 in styles) - styles.hasOwnProperty(styleName$23) && - setValueForStyle(node, styleName$23, styles[styleName$23]); + for (var styleName$22 in styles) + styles.hasOwnProperty(styleName$22) && + setValueForStyle(node, styleName$22, styles[styleName$22]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -2103,41 +2091,41 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$29 = firstScheduledRoot; null !== root$29; ) { - if (!onlyLegacy || 0 === root$29.tag) { - var workInProgressRootRenderLanes$31 = workInProgressRootRenderLanes, + for (var root$28 = firstScheduledRoot; null !== root$28; ) { + if (!onlyLegacy || 0 === root$28.tag) { + var workInProgressRootRenderLanes$30 = workInProgressRootRenderLanes, nextLanes = getNextLanes( - root$29, - root$29 === workInProgressRoot - ? workInProgressRootRenderLanes$31 + root$28, + root$28 === workInProgressRoot + ? workInProgressRootRenderLanes$30 : 0 ); if (0 !== (nextLanes & 3)) try { didPerformSomeWork = !0; - workInProgressRootRenderLanes$31 = root$29; + workInProgressRootRenderLanes$30 = root$28; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); if (!flushPassiveEffects()) { currentUpdateIsNested = nestedUpdateScheduled; nestedUpdateScheduled = !1; var exitStatus = renderRootSync( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, nextLanes ); if ( - 0 !== workInProgressRootRenderLanes$31.tag && + 0 !== workInProgressRootRenderLanes$30.tag && 2 === exitStatus ) { var originallyAttemptedLanes = nextLanes, errorRetryLanes = getLanesToRetrySynchronouslyOnError( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, originallyAttemptedLanes ); 0 !== errorRetryLanes && ((nextLanes = errorRetryLanes), (exitStatus = recoverFromConcurrentError( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, originallyAttemptedLanes, errorRetryLanes ))); @@ -2145,39 +2133,39 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { if (1 === exitStatus) throw ( ((originallyAttemptedLanes = workInProgressRootFatalError), - prepareFreshStack(workInProgressRootRenderLanes$31, 0), + prepareFreshStack(workInProgressRootRenderLanes$30, 0), markRootSuspended( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, nextLanes, 0 ), - ensureRootIsScheduled(workInProgressRootRenderLanes$31), + ensureRootIsScheduled(workInProgressRootRenderLanes$30), originallyAttemptedLanes) ); 6 === exitStatus ? markRootSuspended( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, nextLanes, workInProgressDeferredLane ) - : ((workInProgressRootRenderLanes$31.finishedWork = - workInProgressRootRenderLanes$31.current.alternate), - (workInProgressRootRenderLanes$31.finishedLanes = + : ((workInProgressRootRenderLanes$30.finishedWork = + workInProgressRootRenderLanes$30.current.alternate), + (workInProgressRootRenderLanes$30.finishedLanes = nextLanes), commitRoot( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane )); } - ensureRootIsScheduled(workInProgressRootRenderLanes$31); + ensureRootIsScheduled(workInProgressRootRenderLanes$30); } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } } - root$29 = root$29.next; + root$28 = root$28.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -2234,12 +2222,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$4 = 31 - clz32(pendingLanes), - lane = 1 << index$4, - expirationTime = expirationTimes[index$4]; + var index$3 = 31 - clz32(pendingLanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$4] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -3783,7 +3771,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$56 = !1; + didReadFromEntangledAsyncAction$55 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3804,11 +3792,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$55 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$55 = !0); continue; } else (updateLane = { @@ -3854,7 +3842,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$56 && + didReadFromEntangledAsyncAction$55 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4319,14 +4307,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$66 = enqueueUpdate(provider, fiber, lane); - null !== root$66 && - (scheduleUpdateOnFiber(root$66, provider, lane), - entangleTransitions(root$66, provider, lane)); + var root$65 = enqueueUpdate(provider, fiber, lane); + null !== root$65 && + (scheduleUpdateOnFiber(root$65, provider, lane), + entangleTransitions(root$65, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$66 && + null !== root$65 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4569,15 +4557,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$59 = workInProgressRoot; - if (null === root$59) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$59, workInProgressRootRenderLanes) || + var root$58 = workInProgressRoot; + if (null === root$58) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$58, workInProgressRootRenderLanes) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$59 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$59; - mountEffect(subscribeToStore.bind(null, fiber, root$59, subscribe), [ + root$58 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$58; + mountEffect(subscribeToStore.bind(null, fiber, root$58, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4586,7 +4574,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$59, + root$58, getServerSnapshot, getSnapshot ), @@ -5460,10 +5448,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$78 = workInProgress.stateNode; + root$77 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$78.incompleteTransitions.has(transition)) { + if (!root$77.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5471,11 +5459,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$78.incompleteTransitions.set(transition, markerInstance); + root$77.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$78.incompleteTransitions.forEach(function (markerInstance) { + root$77.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -6767,9 +6755,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( case 10: pushProvider( workInProgress, - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context, + workInProgress.type, workInProgress.memoizedProps.value ); break; @@ -7027,9 +7013,7 @@ function propagateParentContextChanges( if (null === currentParent) throw Error(formatProdErrorMessage(387)); currentParent = currentParent.memoizedProps; if (null !== currentParent) { - var context = enableRenderableContext - ? parent.type - : parent.type._context; + var context = parent.type; objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : (current = [context])); } @@ -7252,10 +7236,7 @@ function collectNearestChildContextValues( var node = startingChild, context = context$jscomp$0, childContextValues = childContextValues$jscomp$0; - if ( - 10 === node.tag && - (enableRenderableContext ? node.type : node.type._context) === context - ) + if (10 === node.tag && node.type === context) childContextValues.push(node.memoizedProps.value); else { var child = node.child; @@ -7344,14 +7325,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$118 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$118 = lastTailNode), + for (var lastTailNode$117 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$117 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$118 + null === lastTailNode$117 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$118.sibling = null); + : (lastTailNode$117.sibling = null); } } function bubbleProperties(completedWork) { @@ -7363,53 +7344,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$120 = completedWork.selfBaseDuration, - child$121 = completedWork.child; - null !== child$121; + var treeBaseDuration$119 = completedWork.selfBaseDuration, + child$120 = completedWork.child; + null !== child$120; ) - (newChildLanes |= child$121.lanes | child$121.childLanes), - (subtreeFlags |= child$121.subtreeFlags & 31457280), - (subtreeFlags |= child$121.flags & 31457280), - (treeBaseDuration$120 += child$121.treeBaseDuration), - (child$121 = child$121.sibling); - completedWork.treeBaseDuration = treeBaseDuration$120; + (newChildLanes |= child$120.lanes | child$120.childLanes), + (subtreeFlags |= child$120.subtreeFlags & 31457280), + (subtreeFlags |= child$120.flags & 31457280), + (treeBaseDuration$119 += child$120.treeBaseDuration), + (child$120 = child$120.sibling); + completedWork.treeBaseDuration = treeBaseDuration$119; } else for ( - treeBaseDuration$120 = completedWork.child; - null !== treeBaseDuration$120; + treeBaseDuration$119 = completedWork.child; + null !== treeBaseDuration$119; ) (newChildLanes |= - treeBaseDuration$120.lanes | treeBaseDuration$120.childLanes), - (subtreeFlags |= treeBaseDuration$120.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$120.flags & 31457280), - (treeBaseDuration$120.return = completedWork), - (treeBaseDuration$120 = treeBaseDuration$120.sibling); + treeBaseDuration$119.lanes | treeBaseDuration$119.childLanes), + (subtreeFlags |= treeBaseDuration$119.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$119.flags & 31457280), + (treeBaseDuration$119.return = completedWork), + (treeBaseDuration$119 = treeBaseDuration$119.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$120 = completedWork.actualDuration; - child$121 = completedWork.selfBaseDuration; + treeBaseDuration$119 = completedWork.actualDuration; + child$120 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$120 += child.actualDuration), - (child$121 += child.treeBaseDuration), + (treeBaseDuration$119 += child.actualDuration), + (child$120 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$120; - completedWork.treeBaseDuration = child$121; + completedWork.actualDuration = treeBaseDuration$119; + completedWork.treeBaseDuration = child$120; } else for ( - treeBaseDuration$120 = completedWork.child; - null !== treeBaseDuration$120; + treeBaseDuration$119 = completedWork.child; + null !== treeBaseDuration$119; ) (newChildLanes |= - treeBaseDuration$120.lanes | treeBaseDuration$120.childLanes), - (subtreeFlags |= treeBaseDuration$120.subtreeFlags), - (subtreeFlags |= treeBaseDuration$120.flags), - (treeBaseDuration$120.return = completedWork), - (treeBaseDuration$120 = treeBaseDuration$120.sibling); + treeBaseDuration$119.lanes | treeBaseDuration$119.childLanes), + (subtreeFlags |= treeBaseDuration$119.subtreeFlags), + (subtreeFlags |= treeBaseDuration$119.flags), + (treeBaseDuration$119.return = completedWork), + (treeBaseDuration$119 = treeBaseDuration$119.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7688,16 +7669,16 @@ function completeWork(current, workInProgress, renderLanes) { break; case 27: case 5: - var isConcurrentMode$27 = 0 !== (currentResource.mode & 1); + var isConcurrentMode$26 = 0 !== (currentResource.mode & 1); !0 !== currentResource.memoizedProps.suppressHydrationWarning && checkForUnmatchedText( current.nodeValue, renderLanes, - isConcurrentMode$27 + isConcurrentMode$26 ); if ( - isConcurrentMode$27 && + isConcurrentMode$26 && enableClientRenderFallbackOnTextMismatch ) { current = !1; @@ -7789,11 +7770,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (currentResource = newProps.alternate.memoizedState.cachePool.pool), - (isConcurrentMode$27 = null), + (isConcurrentMode$26 = null), null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (isConcurrentMode$27 = newProps.memoizedState.cachePool.pool), - isConcurrentMode$27 !== currentResource && (newProps.flags |= 2048)); + (isConcurrentMode$26 = newProps.memoizedState.cachePool.pool), + isConcurrentMode$26 !== currentResource && (newProps.flags |= 2048)); renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), renderLanes && (workInProgress.child.flags |= 8192)); @@ -7818,13 +7799,7 @@ function completeWork(current, workInProgress, renderLanes) { ); case 10: return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - bubbleProperties(workInProgress), - null + popProvider(workInProgress.type), bubbleProperties(workInProgress), null ); case 17: return ( @@ -7838,8 +7813,8 @@ function completeWork(current, workInProgress, renderLanes) { if (null === currentResource) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - isConcurrentMode$27 = currentResource.rendering; - if (null === isConcurrentMode$27) + isConcurrentMode$26 = currentResource.rendering; + if (null === isConcurrentMode$26) if (newProps) cutOffTailIfNeeded(currentResource, !1); else { if ( @@ -7847,11 +7822,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - isConcurrentMode$27 = findFirstSuspended(current); - if (null !== isConcurrentMode$27) { + isConcurrentMode$26 = findFirstSuspended(current); + if (null !== isConcurrentMode$26) { workInProgress.flags |= 128; cutOffTailIfNeeded(currentResource, !1); - current = isConcurrentMode$27.updateQueue; + current = isConcurrentMode$26.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7877,7 +7852,7 @@ function completeWork(current, workInProgress, renderLanes) { else { if (!newProps) if ( - ((current = findFirstSuspended(isConcurrentMode$27)), + ((current = findFirstSuspended(isConcurrentMode$26)), null !== current) ) { if ( @@ -7889,7 +7864,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(currentResource, !0), null === currentResource.tail && "hidden" === currentResource.tailMode && - !isConcurrentMode$27.alternate && + !isConcurrentMode$26.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7902,13 +7877,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(currentResource, !1), (workInProgress.lanes = 4194304)); currentResource.isBackwards - ? ((isConcurrentMode$27.sibling = workInProgress.child), - (workInProgress.child = isConcurrentMode$27)) + ? ((isConcurrentMode$26.sibling = workInProgress.child), + (workInProgress.child = isConcurrentMode$26)) : ((current = currentResource.last), null !== current - ? (current.sibling = isConcurrentMode$27) - : (workInProgress.child = isConcurrentMode$27), - (currentResource.last = isConcurrentMode$27)); + ? (current.sibling = isConcurrentMode$26) + : (workInProgress.child = isConcurrentMode$26), + (currentResource.last = isConcurrentMode$26)); } if (null !== currentResource.tail) return ( @@ -8048,14 +8023,7 @@ function unwindWork(current, workInProgress) { case 4: return popHostContainer(), null; case 10: - return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - null - ); + return popProvider(workInProgress.type), null; case 22: case 23: return ( @@ -8116,11 +8084,7 @@ function unwindInterruptedWork(current, interruptedWork) { pop(suspenseStackCursor); break; case 10: - popProvider( - enableRenderableContext - ? interruptedWork.type - : interruptedWork.type._context - ); + popProvider(interruptedWork.type); break; case 22: case 23: @@ -8258,8 +8222,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$154) { - captureCommitPhaseError(current, nearestMountedAncestor, error$154); + } catch (error$153) { + captureCommitPhaseError(current, nearestMountedAncestor, error$153); } else ref.current = null; } @@ -8296,7 +8260,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$214) { + } catch (e$213) { JSCompiler_temp = null; break a; } @@ -8553,11 +8517,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$156 = commitTime, + var commitTime$155 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$156); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$155); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -8584,8 +8548,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$158) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$158); + } catch (error$157) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$157); } } function commitClassCallbacks(finishedWork) { @@ -8684,11 +8648,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$159) { + } catch (error$158) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$159 + error$158 ); } else { @@ -8705,11 +8669,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$160) { + } catch (error$159) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$160 + error$159 ); } recordLayoutEffectDuration(finishedWork); @@ -8720,11 +8684,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$161) { + } catch (error$160) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$161 + error$160 ); } } @@ -9430,22 +9394,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$176) { + } catch (error$175) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$176 + error$175 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$177) { + } catch (error$176) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$177 + error$176 ); } } @@ -9618,11 +9582,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$178) { + } catch (error$177) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$178 + error$177 ); } } @@ -9660,8 +9624,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$179) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$179); + } catch (error$178) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$178); } } if (flags & 4 && ((flags = finishedWork.stateNode), null != flags)) { @@ -9672,8 +9636,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$182) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$182); + } catch (error$181) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$181); } } break; @@ -9687,8 +9651,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$183) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$183); + } catch (error$182) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$182); } } break; @@ -9702,8 +9666,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$184) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$184); + } catch (error$183) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$183); } break; case 4: @@ -9733,8 +9697,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$186) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$186); + } catch (error$185) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$185); } current = finishedWork.updateQueue; null !== current && @@ -9812,11 +9776,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$166) { + } catch (error$165) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$166 + error$165 ); } } else if ( @@ -9891,21 +9855,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$167 = JSCompiler_inline_result.stateNode; + var parent$166 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$167, ""), + (setTextContent(parent$166, ""), (JSCompiler_inline_result.flags &= -33)); - var before$168 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$168, parent$167); + var before$167 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$167, parent$166); break; case 3: case 4: - var parent$169 = JSCompiler_inline_result.stateNode.containerInfo, - before$170 = getHostSibling(finishedWork); + var parent$168 = JSCompiler_inline_result.stateNode.containerInfo, + before$169 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$170, - parent$169 + before$169, + parent$168 ); break; default: @@ -10097,8 +10061,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$189) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$189); + } catch (error$188) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$188); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -10397,9 +10361,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$194 = finishedWork.stateNode; + var instance$193 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$194._visibility & 4 + ? instance$193._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10412,7 +10376,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$194._visibility |= 4), + : ((instance$193._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10420,7 +10384,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$194._visibility |= 4), + : ((instance$193._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10433,7 +10397,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$194 + instance$193 ); break; case 24: @@ -11216,9 +11180,9 @@ function markRootSuspended(root, suspendedLanes, spawnedLane) { 0 < lanes; ) { - var index$5 = 31 - clz32(lanes), - lane = 1 << index$5; - expirationTimes[index$5] = -1; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4; + expirationTimes[index$4] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11310,9 +11274,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$3 = 31 - clz32(allEntangledLanes), - lane = 1 << index$3; - lanes |= root[index$3]; + var index$2 = 31 - clz32(allEntangledLanes), + lane = 1 << index$2; + lanes |= root[index$2]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11453,8 +11417,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$202) { - handleThrow(root, thrownValue$202); + } catch (thrownValue$201) { + handleThrow(root, thrownValue$201); } while (1); lanes && root.shellSuspendCounter++; @@ -11570,8 +11534,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$204) { - handleThrow(root, thrownValue$204); + } catch (thrownValue$203) { + handleThrow(root, thrownValue$203); } while (1); resetContextDependencies(); @@ -11828,7 +11792,7 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$208 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$207 = commitBeforeMutationEffects( root, finishedWork ); @@ -11836,7 +11800,7 @@ function commitRootImpl( enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$208 && + shouldFireAfterActiveInstanceBlur$207 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11932,7 +11896,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$209 = rootWithPendingPassiveEffects, + var root$208 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11948,7 +11912,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$209, remainingLanes); + releaseRootPooledCache(root$208, remainingLanes); } } return !1; @@ -12588,9 +12552,7 @@ beginWork = function (current, workInProgress, renderLanes) { ); case 10: a: { - Component = enableRenderableContext - ? workInProgress.type - : workInProgress.type._context; + Component = workInProgress.type; context = workInProgress.pendingProps; prevState = workInProgress.memoizedProps; nextState = context.value; @@ -12620,9 +12582,7 @@ beginWork = function (current, workInProgress, renderLanes) { return workInProgress; case 9: return ( - (context = enableRenderableContext - ? workInProgress.type._context - : workInProgress.type), + (context = workInProgress.type._context), (Component = workInProgress.pendingProps.children), prepareToReadContext(workInProgress, renderLanes), (context = readContext(context)), @@ -13005,18 +12965,12 @@ function createFiberFromTypeAndProps( if ("object" === typeof type && null !== type) switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = 10; - break a; - } case REACT_CONTEXT_TYPE: - fiberTag = enableRenderableContext ? 10 : 9; + fiberTag = 10; break a; case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = 9; - break a; - } + fiberTag = 9; + break a; case REACT_FORWARD_REF_TYPE: fiberTag = 11; break a; @@ -13329,12 +13283,12 @@ function getPublicRootInstance(container) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$212 = fiber.stateNode; - if (root$212.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$212.pendingLanes); + var root$211 = fiber.stateNode; + if (root$211.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$211.pendingLanes); 0 !== lanes && - (upgradePendingLanesToSync(root$212, lanes), - ensureRootIsScheduled(root$212), + (upgradePendingLanesToSync(root$211, lanes), + ensureRootIsScheduled(root$211), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now$1() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -13900,19 +13854,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$373; + var JSCompiler_inline_result$jscomp$372; if (canUseDOM) { - var isSupported$jscomp$inline_1636 = "oninput" in document; - if (!isSupported$jscomp$inline_1636) { - var element$jscomp$inline_1637 = document.createElement("div"); - element$jscomp$inline_1637.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1636 = - "function" === typeof element$jscomp$inline_1637.oninput; + var isSupported$jscomp$inline_1635 = "oninput" in document; + if (!isSupported$jscomp$inline_1635) { + var element$jscomp$inline_1636 = document.createElement("div"); + element$jscomp$inline_1636.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1635 = + "function" === typeof element$jscomp$inline_1636.oninput; } - JSCompiler_inline_result$jscomp$373 = isSupported$jscomp$inline_1636; - } else JSCompiler_inline_result$jscomp$373 = !1; + JSCompiler_inline_result$jscomp$372 = isSupported$jscomp$inline_1635; + } else JSCompiler_inline_result$jscomp$372 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$373 && + JSCompiler_inline_result$jscomp$372 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -14284,20 +14238,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1677 = 0; - i$jscomp$inline_1677 < simpleEventPluginEvents.length; - i$jscomp$inline_1677++ + var i$jscomp$inline_1676 = 0; + i$jscomp$inline_1676 < simpleEventPluginEvents.length; + i$jscomp$inline_1676++ ) { - var eventName$jscomp$inline_1678 = - simpleEventPluginEvents[i$jscomp$inline_1677], - domEventName$jscomp$inline_1679 = - eventName$jscomp$inline_1678.toLowerCase(), - capitalizedEvent$jscomp$inline_1680 = - eventName$jscomp$inline_1678[0].toUpperCase() + - eventName$jscomp$inline_1678.slice(1); + var eventName$jscomp$inline_1677 = + simpleEventPluginEvents[i$jscomp$inline_1676], + domEventName$jscomp$inline_1678 = + eventName$jscomp$inline_1677.toLowerCase(), + capitalizedEvent$jscomp$inline_1679 = + eventName$jscomp$inline_1677[0].toUpperCase() + + eventName$jscomp$inline_1677.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1679, - "on" + capitalizedEvent$jscomp$inline_1680 + domEventName$jscomp$inline_1678, + "on" + capitalizedEvent$jscomp$inline_1679 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15772,14 +15726,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$241 in nextProps) { - var propKey = nextProps[propKey$241]; - lastProp = lastProps[propKey$241]; + for (var propKey$240 in nextProps) { + var propKey = nextProps[propKey$240]; + lastProp = lastProps[propKey$240]; if ( - nextProps.hasOwnProperty(propKey$241) && + nextProps.hasOwnProperty(propKey$240) && (null != propKey || null != lastProp) ) - switch (propKey$241) { + switch (propKey$240) { case "type": type = propKey; break; @@ -15808,7 +15762,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$241, + propKey$240, propKey, nextProps, lastProp @@ -15827,7 +15781,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$241 = null; + propKey = value = defaultValue = propKey$240 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15858,7 +15812,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$241 = type; + propKey$240 = type; break; case "defaultValue": defaultValue = type; @@ -15879,15 +15833,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$241 - ? updateOptions(domElement, !!lastProps, propKey$241, !1) + null != propKey$240 + ? updateOptions(domElement, !!lastProps, propKey$240, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$241 = null; + propKey = propKey$240 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15911,7 +15865,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$241 = name; + propKey$240 = name; break; case "defaultValue": propKey = name; @@ -15925,17 +15879,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$241, propKey); + updateTextarea(domElement, propKey$240, propKey); return; case "option": - for (var propKey$257 in lastProps) + for (var propKey$256 in lastProps) if ( - ((propKey$241 = lastProps[propKey$257]), - lastProps.hasOwnProperty(propKey$257) && - null != propKey$241 && - !nextProps.hasOwnProperty(propKey$257)) + ((propKey$240 = lastProps[propKey$256]), + lastProps.hasOwnProperty(propKey$256) && + null != propKey$240 && + !nextProps.hasOwnProperty(propKey$256)) ) - switch (propKey$257) { + switch (propKey$256) { case "selected": domElement.selected = !1; break; @@ -15943,33 +15897,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$257, + propKey$256, null, nextProps, - propKey$241 + propKey$240 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$241 = nextProps[lastDefaultValue]), + ((propKey$240 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$241 !== propKey && - (null != propKey$241 || null != propKey)) + propKey$240 !== propKey && + (null != propKey$240 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$241 && - "function" !== typeof propKey$241 && - "symbol" !== typeof propKey$241; + propKey$240 && + "function" !== typeof propKey$240 && + "symbol" !== typeof propKey$240; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$241, + propKey$240, nextProps, propKey ); @@ -15990,24 +15944,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$262 in lastProps) - (propKey$241 = lastProps[propKey$262]), - lastProps.hasOwnProperty(propKey$262) && - null != propKey$241 && - !nextProps.hasOwnProperty(propKey$262) && - setProp(domElement, tag, propKey$262, null, nextProps, propKey$241); + for (var propKey$261 in lastProps) + (propKey$240 = lastProps[propKey$261]), + lastProps.hasOwnProperty(propKey$261) && + null != propKey$240 && + !nextProps.hasOwnProperty(propKey$261) && + setProp(domElement, tag, propKey$261, null, nextProps, propKey$240); for (checked in nextProps) if ( - ((propKey$241 = nextProps[checked]), + ((propKey$240 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$241 !== propKey && - (null != propKey$241 || null != propKey)) + propKey$240 !== propKey && + (null != propKey$240 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$241) + if (null != propKey$240) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -16015,7 +15969,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$241, + propKey$240, nextProps, propKey ); @@ -16023,49 +15977,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$267 in lastProps) - (propKey$241 = lastProps[propKey$267]), - lastProps.hasOwnProperty(propKey$267) && - null != propKey$241 && - !nextProps.hasOwnProperty(propKey$267) && + for (var propKey$266 in lastProps) + (propKey$240 = lastProps[propKey$266]), + lastProps.hasOwnProperty(propKey$266) && + null != propKey$240 && + !nextProps.hasOwnProperty(propKey$266) && setPropOnCustomElement( domElement, tag, - propKey$267, + propKey$266, null, nextProps, - propKey$241 + propKey$240 ); for (defaultChecked in nextProps) - (propKey$241 = nextProps[defaultChecked]), + (propKey$240 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$241 === propKey || - (null == propKey$241 && null == propKey) || + propKey$240 === propKey || + (null == propKey$240 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$241, + propKey$240, nextProps, propKey ); return; } } - for (var propKey$272 in lastProps) - (propKey$241 = lastProps[propKey$272]), - lastProps.hasOwnProperty(propKey$272) && - null != propKey$241 && - !nextProps.hasOwnProperty(propKey$272) && - setProp(domElement, tag, propKey$272, null, nextProps, propKey$241); + for (var propKey$271 in lastProps) + (propKey$240 = lastProps[propKey$271]), + lastProps.hasOwnProperty(propKey$271) && + null != propKey$240 && + !nextProps.hasOwnProperty(propKey$271) && + setProp(domElement, tag, propKey$271, null, nextProps, propKey$240); for (lastProp in nextProps) - (propKey$241 = nextProps[lastProp]), + (propKey$240 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$241 === propKey || - (null == propKey$241 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$241, nextProps, propKey); + propKey$240 === propKey || + (null == propKey$240 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$240, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16712,17 +16666,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$280 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$281 = styles$280.get(type); - resource$281 || + var styles$279 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$280 = styles$279.get(type); + resource$280 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$281 = { + (resource$280 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$280.set(type, resource$281), + styles$279.set(type, resource$280), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -16737,9 +16691,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$281.state + resource$280.state )); - return resource$281; + return resource$280; } return null; case "script": @@ -16822,37 +16776,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$285 = hoistableRoot.querySelector( + var instance$284 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$285) + if (instance$284) return ( (resource.state.loading |= 4), - (resource.instance = instance$285), - markNodeAsHoistable(instance$285), - instance$285 + (resource.instance = instance$284), + markNodeAsHoistable(instance$284), + instance$284 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$285 = ( + instance$284 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$285); - var linkInstance = instance$285; + markNodeAsHoistable(instance$284); + var linkInstance = instance$284; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$285, "link", instance); + setInitialProperties(instance$284, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$285, props.precedence, hoistableRoot); - return (resource.instance = instance$285); + insertStylesheet(instance$284, props.precedence, hoistableRoot); + return (resource.instance = instance$284); case "script": - instance$285 = getScriptKey(props.src); + instance$284 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$285) + getScriptSelectorFromKey(instance$284) )) ) return ( @@ -16861,7 +16815,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$285))) + if ((styleProps = preloadPropsMap.get(instance$284))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17874,11 +17828,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$307); + var instance = getPublicRootInstance(root$306); originalCallback.call(instance); }; } - var root$307 = createHydrationContainer( + var root$306 = createHydrationContainer( initialChildren, callback, container, @@ -17891,23 +17845,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$307; - container[internalContainerInstanceKey] = root$307.current; + container._reactRootContainer = root$306; + container[internalContainerInstanceKey] = root$306.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$307; + return root$306; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$308 = callback; + var originalCallback$307 = callback; callback = function () { - var instance = getPublicRootInstance(root$309); - originalCallback$308.call(instance); + var instance = getPublicRootInstance(root$308); + originalCallback$307.call(instance); }; } - var root$309 = createFiberRoot( + var root$308 = createFiberRoot( container, 0, !1, @@ -17920,15 +17874,15 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$309; - container[internalContainerInstanceKey] = root$309.current; + container._reactRootContainer = root$308; + container[internalContainerInstanceKey] = root$308.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$309, parentComponent, callback); + updateContainer(initialChildren, root$308, parentComponent, callback); }); - return root$309; + return root$308; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -17993,10 +17947,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1904 = { +var devToolsConfig$jscomp$inline_1903 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-d97439ec", + version: "18.3.0-www-classic-a6e3a333", rendererPackageName: "react-dom" }; (function (internals) { @@ -18014,10 +17968,10 @@ var devToolsConfig$jscomp$inline_1904 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1904.bundleType, - version: devToolsConfig$jscomp$inline_1904.version, - rendererPackageName: devToolsConfig$jscomp$inline_1904.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1904.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1903.bundleType, + version: devToolsConfig$jscomp$inline_1903.version, + rendererPackageName: devToolsConfig$jscomp$inline_1903.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1903.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -18033,14 +17987,14 @@ var devToolsConfig$jscomp$inline_1904 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1904.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1903.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-d97439ec" + reconcilerVersion: "18.3.0-www-classic-a6e3a333" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -18370,7 +18324,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-classic-d97439ec"; +exports.version = "18.3.0-www-classic-a6e3a333"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 6b79fcb86ed7a..ddc93bf4d6305 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -69,7 +69,6 @@ var assign = Object.assign, transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, enableInfiniteRenderLoopDetection = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, enableClientRenderFallbackOnTextMismatch = dynamicFeatureFlags.enableClientRenderFallbackOnTextMismatch, @@ -1319,15 +1318,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$21 in styles) - (styleName = styles[styleName$21]), - styles.hasOwnProperty(styleName$21) && - prevStyles[styleName$21] !== styleName && - setValueForStyle(node, styleName$21, styleName); + for (var styleName$20 in styles) + (styleName = styles[styleName$20]), + styles.hasOwnProperty(styleName$20) && + prevStyles[styleName$20] !== styleName && + setValueForStyle(node, styleName$20, styleName); } else - for (var styleName$22 in styles) - styles.hasOwnProperty(styleName$22) && - setValueForStyle(node, styleName$22, styles[styleName$22]); + for (var styleName$21 in styles) + styles.hasOwnProperty(styleName$21) && + setValueForStyle(node, styleName$21, styles[styleName$21]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1582,36 +1581,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$24 = parentA.child; child$24; ) { - if (child$24 === a) { + for (var didFindChild = !1, child$23 = parentA.child; child$23; ) { + if (child$23 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$24 === b) { + if (child$23 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$24 = child$24.sibling; + child$23 = child$23.sibling; } if (!didFindChild) { - for (child$24 = parentB.child; child$24; ) { - if (child$24 === a) { + for (child$23 = parentB.child; child$23; ) { + if (child$23 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$24 === b) { + if (child$23 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$24 = child$24.sibling; + child$23 = child$23.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -1986,41 +1985,41 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$29 = firstScheduledRoot; null !== root$29; ) { - if (!onlyLegacy || 0 === root$29.tag) { - var workInProgressRootRenderLanes$31 = workInProgressRootRenderLanes, + for (var root$28 = firstScheduledRoot; null !== root$28; ) { + if (!onlyLegacy || 0 === root$28.tag) { + var workInProgressRootRenderLanes$30 = workInProgressRootRenderLanes, nextLanes = getNextLanes( - root$29, - root$29 === workInProgressRoot - ? workInProgressRootRenderLanes$31 + root$28, + root$28 === workInProgressRoot + ? workInProgressRootRenderLanes$30 : 0 ); if (0 !== (nextLanes & 3)) try { didPerformSomeWork = !0; - workInProgressRootRenderLanes$31 = root$29; + workInProgressRootRenderLanes$30 = root$28; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); if (!flushPassiveEffects()) { currentUpdateIsNested = nestedUpdateScheduled; nestedUpdateScheduled = !1; var exitStatus = renderRootSync( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, nextLanes ); if ( - 0 !== workInProgressRootRenderLanes$31.tag && + 0 !== workInProgressRootRenderLanes$30.tag && 2 === exitStatus ) { var originallyAttemptedLanes = nextLanes, errorRetryLanes = getLanesToRetrySynchronouslyOnError( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, originallyAttemptedLanes ); 0 !== errorRetryLanes && ((nextLanes = errorRetryLanes), (exitStatus = recoverFromConcurrentError( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, originallyAttemptedLanes, errorRetryLanes ))); @@ -2028,39 +2027,39 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { if (1 === exitStatus) throw ( ((originallyAttemptedLanes = workInProgressRootFatalError), - prepareFreshStack(workInProgressRootRenderLanes$31, 0), + prepareFreshStack(workInProgressRootRenderLanes$30, 0), markRootSuspended( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, nextLanes, 0 ), - ensureRootIsScheduled(workInProgressRootRenderLanes$31), + ensureRootIsScheduled(workInProgressRootRenderLanes$30), originallyAttemptedLanes) ); 6 === exitStatus ? markRootSuspended( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, nextLanes, workInProgressDeferredLane ) - : ((workInProgressRootRenderLanes$31.finishedWork = - workInProgressRootRenderLanes$31.current.alternate), - (workInProgressRootRenderLanes$31.finishedLanes = + : ((workInProgressRootRenderLanes$30.finishedWork = + workInProgressRootRenderLanes$30.current.alternate), + (workInProgressRootRenderLanes$30.finishedLanes = nextLanes), commitRoot( - workInProgressRootRenderLanes$31, + workInProgressRootRenderLanes$30, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane )); } - ensureRootIsScheduled(workInProgressRootRenderLanes$31); + ensureRootIsScheduled(workInProgressRootRenderLanes$30); } catch (error) { null === errors ? (errors = [error]) : errors.push(error); } } - root$29 = root$29.next; + root$28 = root$28.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -3666,7 +3665,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$56 = !1; + didReadFromEntangledAsyncAction$55 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3687,11 +3686,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$55 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$55 = !0); continue; } else (updateLane = { @@ -3737,7 +3736,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$56 && + didReadFromEntangledAsyncAction$55 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4202,14 +4201,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$66 = enqueueUpdate(provider, fiber, lane); - null !== root$66 && - (scheduleUpdateOnFiber(root$66, provider, lane), - entangleTransitions(root$66, provider, lane)); + var root$65 = enqueueUpdate(provider, fiber, lane); + null !== root$65 && + (scheduleUpdateOnFiber(root$65, provider, lane), + entangleTransitions(root$65, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$66 && + null !== root$65 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4452,15 +4451,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$59 = workInProgressRoot; - if (null === root$59) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$59, workInProgressRootRenderLanes) || + var root$58 = workInProgressRoot; + if (null === root$58) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$58, workInProgressRootRenderLanes) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$59 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$59; - mountEffect(subscribeToStore.bind(null, fiber, root$59, subscribe), [ + root$58 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$58; + mountEffect(subscribeToStore.bind(null, fiber, root$58, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4469,7 +4468,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$59, + root$58, getServerSnapshot, getSnapshot ), @@ -5328,10 +5327,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$78 = workInProgress.stateNode; + root$77 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$78.incompleteTransitions.has(transition)) { + if (!root$77.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5339,11 +5338,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$78.incompleteTransitions.set(transition, markerInstance); + root$77.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$78.incompleteTransitions.forEach(function (markerInstance) { + root$77.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -6593,9 +6592,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate( case 10: pushProvider( workInProgress, - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context, + workInProgress.type, workInProgress.memoizedProps.value ); break; @@ -6853,9 +6850,7 @@ function propagateParentContextChanges( if (null === currentParent) throw Error(formatProdErrorMessage(387)); currentParent = currentParent.memoizedProps; if (null !== currentParent) { - var context = enableRenderableContext - ? parent.type - : parent.type._context; + var context = parent.type; objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : (current = [context])); } @@ -7078,10 +7073,7 @@ function collectNearestChildContextValues( var node = startingChild, context = context$jscomp$0, childContextValues = childContextValues$jscomp$0; - if ( - 10 === node.tag && - (enableRenderableContext ? node.type : node.type._context) === context - ) + if (10 === node.tag && node.type === context) childContextValues.push(node.memoizedProps.value); else { var child = node.child; @@ -7170,14 +7162,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$118 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$118 = lastTailNode), + for (var lastTailNode$117 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$117 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$118 + null === lastTailNode$117 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$118.sibling = null); + : (lastTailNode$117.sibling = null); } } function bubbleProperties(completedWork) { @@ -7189,53 +7181,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$120 = completedWork.selfBaseDuration, - child$121 = completedWork.child; - null !== child$121; + var treeBaseDuration$119 = completedWork.selfBaseDuration, + child$120 = completedWork.child; + null !== child$120; ) - (newChildLanes |= child$121.lanes | child$121.childLanes), - (subtreeFlags |= child$121.subtreeFlags & 31457280), - (subtreeFlags |= child$121.flags & 31457280), - (treeBaseDuration$120 += child$121.treeBaseDuration), - (child$121 = child$121.sibling); - completedWork.treeBaseDuration = treeBaseDuration$120; + (newChildLanes |= child$120.lanes | child$120.childLanes), + (subtreeFlags |= child$120.subtreeFlags & 31457280), + (subtreeFlags |= child$120.flags & 31457280), + (treeBaseDuration$119 += child$120.treeBaseDuration), + (child$120 = child$120.sibling); + completedWork.treeBaseDuration = treeBaseDuration$119; } else for ( - treeBaseDuration$120 = completedWork.child; - null !== treeBaseDuration$120; + treeBaseDuration$119 = completedWork.child; + null !== treeBaseDuration$119; ) (newChildLanes |= - treeBaseDuration$120.lanes | treeBaseDuration$120.childLanes), - (subtreeFlags |= treeBaseDuration$120.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$120.flags & 31457280), - (treeBaseDuration$120.return = completedWork), - (treeBaseDuration$120 = treeBaseDuration$120.sibling); + treeBaseDuration$119.lanes | treeBaseDuration$119.childLanes), + (subtreeFlags |= treeBaseDuration$119.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$119.flags & 31457280), + (treeBaseDuration$119.return = completedWork), + (treeBaseDuration$119 = treeBaseDuration$119.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$120 = completedWork.actualDuration; - child$121 = completedWork.selfBaseDuration; + treeBaseDuration$119 = completedWork.actualDuration; + child$120 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$120 += child.actualDuration), - (child$121 += child.treeBaseDuration), + (treeBaseDuration$119 += child.actualDuration), + (child$120 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$120; - completedWork.treeBaseDuration = child$121; + completedWork.actualDuration = treeBaseDuration$119; + completedWork.treeBaseDuration = child$120; } else for ( - treeBaseDuration$120 = completedWork.child; - null !== treeBaseDuration$120; + treeBaseDuration$119 = completedWork.child; + null !== treeBaseDuration$119; ) (newChildLanes |= - treeBaseDuration$120.lanes | treeBaseDuration$120.childLanes), - (subtreeFlags |= treeBaseDuration$120.subtreeFlags), - (subtreeFlags |= treeBaseDuration$120.flags), - (treeBaseDuration$120.return = completedWork), - (treeBaseDuration$120 = treeBaseDuration$120.sibling); + treeBaseDuration$119.lanes | treeBaseDuration$119.childLanes), + (subtreeFlags |= treeBaseDuration$119.subtreeFlags), + (subtreeFlags |= treeBaseDuration$119.flags), + (treeBaseDuration$119.return = completedWork), + (treeBaseDuration$119 = treeBaseDuration$119.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7508,16 +7500,16 @@ function completeWork(current, workInProgress, renderLanes) { break; case 27: case 5: - var isConcurrentMode$27 = 0 !== (currentResource.mode & 1); + var isConcurrentMode$26 = 0 !== (currentResource.mode & 1); !0 !== currentResource.memoizedProps.suppressHydrationWarning && checkForUnmatchedText( current.nodeValue, renderLanes, - isConcurrentMode$27 + isConcurrentMode$26 ); if ( - isConcurrentMode$27 && + isConcurrentMode$26 && enableClientRenderFallbackOnTextMismatch ) { current = !1; @@ -7609,11 +7601,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (currentResource = newProps.alternate.memoizedState.cachePool.pool), - (isConcurrentMode$27 = null), + (isConcurrentMode$26 = null), null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (isConcurrentMode$27 = newProps.memoizedState.cachePool.pool), - isConcurrentMode$27 !== currentResource && (newProps.flags |= 2048)); + (isConcurrentMode$26 = newProps.memoizedState.cachePool.pool), + isConcurrentMode$26 !== currentResource && (newProps.flags |= 2048)); renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), renderLanes && (workInProgress.child.flags |= 8192)); @@ -7638,13 +7630,7 @@ function completeWork(current, workInProgress, renderLanes) { ); case 10: return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - bubbleProperties(workInProgress), - null + popProvider(workInProgress.type), bubbleProperties(workInProgress), null ); case 17: return bubbleProperties(workInProgress), null; @@ -7654,8 +7640,8 @@ function completeWork(current, workInProgress, renderLanes) { if (null === currentResource) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - isConcurrentMode$27 = currentResource.rendering; - if (null === isConcurrentMode$27) + isConcurrentMode$26 = currentResource.rendering; + if (null === isConcurrentMode$26) if (newProps) cutOffTailIfNeeded(currentResource, !1); else { if ( @@ -7663,11 +7649,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - isConcurrentMode$27 = findFirstSuspended(current); - if (null !== isConcurrentMode$27) { + isConcurrentMode$26 = findFirstSuspended(current); + if (null !== isConcurrentMode$26) { workInProgress.flags |= 128; cutOffTailIfNeeded(currentResource, !1); - current = isConcurrentMode$27.updateQueue; + current = isConcurrentMode$26.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7693,7 +7679,7 @@ function completeWork(current, workInProgress, renderLanes) { else { if (!newProps) if ( - ((current = findFirstSuspended(isConcurrentMode$27)), + ((current = findFirstSuspended(isConcurrentMode$26)), null !== current) ) { if ( @@ -7705,7 +7691,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(currentResource, !0), null === currentResource.tail && "hidden" === currentResource.tailMode && - !isConcurrentMode$27.alternate && + !isConcurrentMode$26.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7718,13 +7704,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(currentResource, !1), (workInProgress.lanes = 4194304)); currentResource.isBackwards - ? ((isConcurrentMode$27.sibling = workInProgress.child), - (workInProgress.child = isConcurrentMode$27)) + ? ((isConcurrentMode$26.sibling = workInProgress.child), + (workInProgress.child = isConcurrentMode$26)) : ((current = currentResource.last), null !== current - ? (current.sibling = isConcurrentMode$27) - : (workInProgress.child = isConcurrentMode$27), - (currentResource.last = isConcurrentMode$27)); + ? (current.sibling = isConcurrentMode$26) + : (workInProgress.child = isConcurrentMode$26), + (currentResource.last = isConcurrentMode$26)); } if (null !== currentResource.tail) return ( @@ -7861,14 +7847,7 @@ function unwindWork(current, workInProgress) { case 4: return popHostContainer(), null; case 10: - return ( - popProvider( - enableRenderableContext - ? workInProgress.type - : workInProgress.type._context - ), - null - ); + return popProvider(workInProgress.type), null; case 22: case 23: return ( @@ -7923,11 +7902,7 @@ function unwindInterruptedWork(current, interruptedWork) { pop(suspenseStackCursor); break; case 10: - popProvider( - enableRenderableContext - ? interruptedWork.type - : interruptedWork.type._context - ); + popProvider(interruptedWork.type); break; case 22: case 23: @@ -8065,8 +8040,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$153) { - captureCommitPhaseError(current, nearestMountedAncestor, error$153); + } catch (error$152) { + captureCommitPhaseError(current, nearestMountedAncestor, error$152); } else ref.current = null; } @@ -8103,7 +8078,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$220) { + } catch (e$219) { JSCompiler_temp = null; break a; } @@ -8373,11 +8348,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$155 = commitTime, + var commitTime$154 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$155); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$154); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -8404,8 +8379,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$157) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$157); + } catch (error$156) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$156); } } function commitClassCallbacks(finishedWork) { @@ -8504,11 +8479,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$158) { + } catch (error$157) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$158 + error$157 ); } else { @@ -8525,11 +8500,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$159) { + } catch (error$158) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$159 + error$158 ); } recordLayoutEffectDuration(finishedWork); @@ -8540,11 +8515,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$160) { + } catch (error$159) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$160 + error$159 ); } } @@ -9250,22 +9225,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$175) { + } catch (error$174) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$175 + error$174 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$176) { + } catch (error$175) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$176 + error$175 ); } } @@ -9438,11 +9413,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$177) { + } catch (error$176) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$177 + error$176 ); } } @@ -9480,8 +9455,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$178) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$178); + } catch (error$177) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$177); } } if (flags & 4 && ((flags = finishedWork.stateNode), null != flags)) { @@ -9492,8 +9467,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$181) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$181); + } catch (error$180) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$180); } } break; @@ -9507,8 +9482,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$182) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$182); + } catch (error$181) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$181); } } break; @@ -9522,8 +9497,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$183) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$183); + } catch (error$182) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$182); } break; case 4: @@ -9553,8 +9528,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$185) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$185); + } catch (error$184) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$184); } current = finishedWork.updateQueue; null !== current && @@ -9632,11 +9607,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$165) { + } catch (error$164) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$165 + error$164 ); } } else if ( @@ -9711,21 +9686,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$166 = JSCompiler_inline_result.stateNode; + var parent$165 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$166, ""), + (setTextContent(parent$165, ""), (JSCompiler_inline_result.flags &= -33)); - var before$167 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$167, parent$166); + var before$166 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$166, parent$165); break; case 3: case 4: - var parent$168 = JSCompiler_inline_result.stateNode.containerInfo, - before$169 = getHostSibling(finishedWork); + var parent$167 = JSCompiler_inline_result.stateNode.containerInfo, + before$168 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$169, - parent$168 + before$168, + parent$167 ); break; default: @@ -9917,8 +9892,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$188) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$188); + } catch (error$187) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$187); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -10217,9 +10192,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$193 = finishedWork.stateNode; + var instance$192 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$193._visibility & 4 + ? instance$192._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10232,7 +10207,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$193._visibility |= 4), + : ((instance$192._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10240,7 +10215,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$193._visibility |= 4), + : ((instance$192._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10253,7 +10228,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$193 + instance$192 ); break; case 24: @@ -11273,8 +11248,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$201) { - handleThrow(root, thrownValue$201); + } catch (thrownValue$200) { + handleThrow(root, thrownValue$200); } while (1); lanes && root.shellSuspendCounter++; @@ -11390,8 +11365,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$203) { - handleThrow(root, thrownValue$203); + } catch (thrownValue$202) { + handleThrow(root, thrownValue$202); } while (1); resetContextDependencies(); @@ -11644,7 +11619,7 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$207 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$206 = commitBeforeMutationEffects( root, finishedWork ); @@ -11652,7 +11627,7 @@ function commitRootImpl( enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$207 && + shouldFireAfterActiveInstanceBlur$206 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11748,7 +11723,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$208 = rootWithPendingPassiveEffects, + var root$207 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -11764,7 +11739,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), - releaseRootPooledCache(root$208, remainingLanes); + releaseRootPooledCache(root$207, remainingLanes); } } return !1; @@ -12394,9 +12369,7 @@ beginWork = function (current, workInProgress, renderLanes) { ); case 10: a: { - Component = enableRenderableContext - ? workInProgress.type - : workInProgress.type._context; + Component = workInProgress.type; init = workInProgress.pendingProps; prevState = workInProgress.memoizedProps; nextState = init.value; @@ -12418,9 +12391,7 @@ beginWork = function (current, workInProgress, renderLanes) { return workInProgress; case 9: return ( - (init = enableRenderableContext - ? workInProgress.type._context - : workInProgress.type), + (init = workInProgress.type._context), (Component = workInProgress.pendingProps.children), prepareToReadContext(workInProgress, renderLanes), (init = readContext(init)), @@ -12797,18 +12768,12 @@ function createFiberFromTypeAndProps( if ("object" === typeof type && null !== type) switch (type.$$typeof) { case REACT_PROVIDER_TYPE: - if (!enableRenderableContext) { - fiberTag = 10; - break a; - } case REACT_CONTEXT_TYPE: - fiberTag = enableRenderableContext ? 10 : 9; + fiberTag = 10; break a; case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - fiberTag = 9; - break a; - } + fiberTag = 9; + break a; case REACT_FORWARD_REF_TYPE: fiberTag = 11; break a; @@ -13033,12 +12998,12 @@ function updateContainer(element, container, parentComponent, callback) { function attemptSynchronousHydration(fiber) { switch (fiber.tag) { case 3: - var root$211 = fiber.stateNode; - if (root$211.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$211.pendingLanes); + var root$210 = fiber.stateNode; + if (root$210.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$210.pendingLanes); 0 !== lanes && - (upgradePendingLanesToSync(root$211, lanes), - ensureRootIsScheduled(root$211), + (upgradePendingLanesToSync(root$210, lanes), + ensureRootIsScheduled(root$210), 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now$1() + 500), flushSyncWorkAcrossRoots_impl(!1))); @@ -14250,19 +14215,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$371; + var JSCompiler_inline_result$jscomp$370; if (canUseDOM) { - var isSupported$jscomp$inline_1636 = "oninput" in document; - if (!isSupported$jscomp$inline_1636) { - var element$jscomp$inline_1637 = document.createElement("div"); - element$jscomp$inline_1637.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1636 = - "function" === typeof element$jscomp$inline_1637.oninput; + var isSupported$jscomp$inline_1635 = "oninput" in document; + if (!isSupported$jscomp$inline_1635) { + var element$jscomp$inline_1636 = document.createElement("div"); + element$jscomp$inline_1636.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1635 = + "function" === typeof element$jscomp$inline_1636.oninput; } - JSCompiler_inline_result$jscomp$371 = isSupported$jscomp$inline_1636; - } else JSCompiler_inline_result$jscomp$371 = !1; + JSCompiler_inline_result$jscomp$370 = isSupported$jscomp$inline_1635; + } else JSCompiler_inline_result$jscomp$370 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$371 && + JSCompiler_inline_result$jscomp$370 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -14571,20 +14536,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_1677 = 0; - i$jscomp$inline_1677 < simpleEventPluginEvents.length; - i$jscomp$inline_1677++ + var i$jscomp$inline_1676 = 0; + i$jscomp$inline_1676 < simpleEventPluginEvents.length; + i$jscomp$inline_1676++ ) { - var eventName$jscomp$inline_1678 = - simpleEventPluginEvents[i$jscomp$inline_1677], - domEventName$jscomp$inline_1679 = - eventName$jscomp$inline_1678.toLowerCase(), - capitalizedEvent$jscomp$inline_1680 = - eventName$jscomp$inline_1678[0].toUpperCase() + - eventName$jscomp$inline_1678.slice(1); + var eventName$jscomp$inline_1677 = + simpleEventPluginEvents[i$jscomp$inline_1676], + domEventName$jscomp$inline_1678 = + eventName$jscomp$inline_1677.toLowerCase(), + capitalizedEvent$jscomp$inline_1679 = + eventName$jscomp$inline_1677[0].toUpperCase() + + eventName$jscomp$inline_1677.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1679, - "on" + capitalizedEvent$jscomp$inline_1680 + domEventName$jscomp$inline_1678, + "on" + capitalizedEvent$jscomp$inline_1679 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -16058,14 +16023,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$247 in nextProps) { - var propKey = nextProps[propKey$247]; - lastProp = lastProps[propKey$247]; + for (var propKey$246 in nextProps) { + var propKey = nextProps[propKey$246]; + lastProp = lastProps[propKey$246]; if ( - nextProps.hasOwnProperty(propKey$247) && + nextProps.hasOwnProperty(propKey$246) && (null != propKey || null != lastProp) ) - switch (propKey$247) { + switch (propKey$246) { case "type": type = propKey; break; @@ -16094,7 +16059,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$247, + propKey$246, propKey, nextProps, lastProp @@ -16113,7 +16078,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$247 = null; + propKey = value = defaultValue = propKey$246 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -16144,7 +16109,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$247 = type; + propKey$246 = type; break; case "defaultValue": defaultValue = type; @@ -16165,15 +16130,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$247 - ? updateOptions(domElement, !!lastProps, propKey$247, !1) + null != propKey$246 + ? updateOptions(domElement, !!lastProps, propKey$246, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$247 = null; + propKey = propKey$246 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -16197,7 +16162,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$247 = name; + propKey$246 = name; break; case "defaultValue": propKey = name; @@ -16211,17 +16176,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$247, propKey); + updateTextarea(domElement, propKey$246, propKey); return; case "option": - for (var propKey$263 in lastProps) + for (var propKey$262 in lastProps) if ( - ((propKey$247 = lastProps[propKey$263]), - lastProps.hasOwnProperty(propKey$263) && - null != propKey$247 && - !nextProps.hasOwnProperty(propKey$263)) + ((propKey$246 = lastProps[propKey$262]), + lastProps.hasOwnProperty(propKey$262) && + null != propKey$246 && + !nextProps.hasOwnProperty(propKey$262)) ) - switch (propKey$263) { + switch (propKey$262) { case "selected": domElement.selected = !1; break; @@ -16229,33 +16194,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$263, + propKey$262, null, nextProps, - propKey$247 + propKey$246 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$247 = nextProps[lastDefaultValue]), + ((propKey$246 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$247 !== propKey && - (null != propKey$247 || null != propKey)) + propKey$246 !== propKey && + (null != propKey$246 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$247 && - "function" !== typeof propKey$247 && - "symbol" !== typeof propKey$247; + propKey$246 && + "function" !== typeof propKey$246 && + "symbol" !== typeof propKey$246; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$247, + propKey$246, nextProps, propKey ); @@ -16276,24 +16241,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$268 in lastProps) - (propKey$247 = lastProps[propKey$268]), - lastProps.hasOwnProperty(propKey$268) && - null != propKey$247 && - !nextProps.hasOwnProperty(propKey$268) && - setProp(domElement, tag, propKey$268, null, nextProps, propKey$247); + for (var propKey$267 in lastProps) + (propKey$246 = lastProps[propKey$267]), + lastProps.hasOwnProperty(propKey$267) && + null != propKey$246 && + !nextProps.hasOwnProperty(propKey$267) && + setProp(domElement, tag, propKey$267, null, nextProps, propKey$246); for (checked in nextProps) if ( - ((propKey$247 = nextProps[checked]), + ((propKey$246 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$247 !== propKey && - (null != propKey$247 || null != propKey)) + propKey$246 !== propKey && + (null != propKey$246 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$247) + if (null != propKey$246) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -16301,7 +16266,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$247, + propKey$246, nextProps, propKey ); @@ -16309,49 +16274,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$273 in lastProps) - (propKey$247 = lastProps[propKey$273]), - lastProps.hasOwnProperty(propKey$273) && - null != propKey$247 && - !nextProps.hasOwnProperty(propKey$273) && + for (var propKey$272 in lastProps) + (propKey$246 = lastProps[propKey$272]), + lastProps.hasOwnProperty(propKey$272) && + null != propKey$246 && + !nextProps.hasOwnProperty(propKey$272) && setPropOnCustomElement( domElement, tag, - propKey$273, + propKey$272, null, nextProps, - propKey$247 + propKey$246 ); for (defaultChecked in nextProps) - (propKey$247 = nextProps[defaultChecked]), + (propKey$246 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$247 === propKey || - (null == propKey$247 && null == propKey) || + propKey$246 === propKey || + (null == propKey$246 && null == propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$247, + propKey$246, nextProps, propKey ); return; } } - for (var propKey$278 in lastProps) - (propKey$247 = lastProps[propKey$278]), - lastProps.hasOwnProperty(propKey$278) && - null != propKey$247 && - !nextProps.hasOwnProperty(propKey$278) && - setProp(domElement, tag, propKey$278, null, nextProps, propKey$247); + for (var propKey$277 in lastProps) + (propKey$246 = lastProps[propKey$277]), + lastProps.hasOwnProperty(propKey$277) && + null != propKey$246 && + !nextProps.hasOwnProperty(propKey$277) && + setProp(domElement, tag, propKey$277, null, nextProps, propKey$246); for (lastProp in nextProps) - (propKey$247 = nextProps[lastProp]), + (propKey$246 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$247 === propKey || - (null == propKey$247 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$247, nextProps, propKey); + propKey$246 === propKey || + (null == propKey$246 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$246, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16984,17 +16949,17 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$286 = getResourcesFromRoot(currentProps).hoistableStyles, - resource$287 = styles$286.get(type); - resource$287 || + var styles$285 = getResourcesFromRoot(currentProps).hoistableStyles, + resource$286 = styles$285.get(type); + resource$286 || ((currentProps = currentProps.ownerDocument || currentProps), - (resource$287 = { + (resource$286 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$286.set(type, resource$287), + styles$285.set(type, resource$286), preloadPropsMap.has(type) || preloadStylesheet( currentProps, @@ -17009,9 +16974,9 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }, - resource$287.state + resource$286.state )); - return resource$287; + return resource$286; } return null; case "script": @@ -17094,37 +17059,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$291 = hoistableRoot.querySelector( + var instance$290 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$291) + if (instance$290) return ( (resource.state.loading |= 4), - (resource.instance = instance$291), - markNodeAsHoistable(instance$291), - instance$291 + (resource.instance = instance$290), + markNodeAsHoistable(instance$290), + instance$290 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$291 = ( + instance$290 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$291); - var linkInstance = instance$291; + markNodeAsHoistable(instance$290); + var linkInstance = instance$290; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$291, "link", instance); + setInitialProperties(instance$290, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$291, props.precedence, hoistableRoot); - return (resource.instance = instance$291); + insertStylesheet(instance$290, props.precedence, hoistableRoot); + return (resource.instance = instance$290); case "script": - instance$291 = getScriptKey(props.src); + instance$290 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$291) + getScriptSelectorFromKey(instance$290) )) ) return ( @@ -17133,7 +17098,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$291))) + if ((styleProps = preloadPropsMap.get(instance$290))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17503,10 +17468,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1863 = { +var devToolsConfig$jscomp$inline_1862 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-09bf94a7", + version: "18.3.0-www-modern-1f3124f7", rendererPackageName: "react-dom" }; (function (internals) { @@ -17524,10 +17489,10 @@ var devToolsConfig$jscomp$inline_1863 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1863.bundleType, - version: devToolsConfig$jscomp$inline_1863.version, - rendererPackageName: devToolsConfig$jscomp$inline_1863.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1863.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1862.bundleType, + version: devToolsConfig$jscomp$inline_1862.version, + rendererPackageName: devToolsConfig$jscomp$inline_1862.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1862.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -17544,14 +17509,14 @@ var devToolsConfig$jscomp$inline_1863 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1863.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1862.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-09bf94a7" + reconcilerVersion: "18.3.0-www-modern-1f3124f7" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { @@ -17809,7 +17774,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-modern-09bf94a7"; +exports.version = "18.3.0-www-modern-1f3124f7"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 98a609905fce3..c2e0c7869e8ec 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "18.3.0-www-classic-e9f80209"; + var ReactVersion = "18.3.0-www-classic-a992081e"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -681,7 +681,6 @@ if (__DEV__) { var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, false is used for a new modern build. var enableFloat = true; @@ -8564,30 +8563,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName(context) + ".Provider"; - } else { - return getContextName(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef"); @@ -12387,35 +12377,18 @@ if (__DEV__) { return; } - case REACT_PROVIDER_TYPE: { - if (!enableRenderableContext) { - var context = type._context; - renderContextProvider(request, task, keyPath, context, props); - return; - } // Fall through - } + case REACT_PROVIDER_TYPE: case REACT_CONTEXT_TYPE: { - if (enableRenderableContext) { + { var _context = type; renderContextProvider(request, task, keyPath, _context, props); return; - } else { - var _context2 = type; - - { - if (_context2._context !== undefined) { - _context2 = _context2._context; - } - } - - renderContextConsumer(request, task, keyPath, _context2, props); - return; } } case REACT_CONSUMER_TYPE: { - if (enableRenderableContext) { + { var _context3 = type._context; renderContextConsumer(request, task, keyPath, _context3, props); return; diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index b9e09a966612b..b4723efc3d544 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "18.3.0-www-modern-cf8281b5"; + var ReactVersion = "18.3.0-www-modern-f380c655"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -681,7 +681,6 @@ if (__DEV__) { var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, true is used for a new modern build. var enableFloat = true; @@ -8564,30 +8563,21 @@ if (__DEV__) { } switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) { - return null; - } else { - var provider = type; - return getContextName(provider._context) + ".Provider"; - } + case REACT_PROVIDER_TYPE: { + return null; + } case REACT_CONTEXT_TYPE: var context = type; - if (enableRenderableContext) { + { return getContextName(context) + ".Provider"; - } else { - return getContextName(context) + ".Consumer"; } - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) { - var consumer = type; - return getContextName(consumer._context) + ".Consumer"; - } else { - return null; - } + case REACT_CONSUMER_TYPE: { + var consumer = type; + return getContextName(consumer._context) + ".Consumer"; + } case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef"); @@ -12297,35 +12287,18 @@ if (__DEV__) { return; } - case REACT_PROVIDER_TYPE: { - if (!enableRenderableContext) { - var context = type._context; - renderContextProvider(request, task, keyPath, context, props); - return; - } // Fall through - } + case REACT_PROVIDER_TYPE: case REACT_CONTEXT_TYPE: { - if (enableRenderableContext) { + { var _context = type; renderContextProvider(request, task, keyPath, _context, props); return; - } else { - var _context2 = type; - - { - if (_context2._context !== undefined) { - _context2 = _context2._context; - } - } - - renderContextConsumer(request, task, keyPath, _context2, props); - return; } } case REACT_CONSUMER_TYPE: { - if (enableRenderableContext) { + { var _context3 = type._context; renderContextConsumer(request, task, keyPath, _context3, props); return; diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 04604e92a7617..c45cdbcd1fe63 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -132,7 +132,6 @@ var assign = Object.assign, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, hasOwnProperty = Object.prototype.hasOwnProperty, VALID_ATTRIBUTE_NAME_REGEX = RegExp( @@ -2593,16 +2592,16 @@ function createRenderState(resumableState, generateStaticMarkup) { "\x3c/script>" ); bootstrapScriptContent = idPrefix + "P:"; - var JSCompiler_object_inline_segmentPrefix_1596 = idPrefix + "S:"; + var JSCompiler_object_inline_segmentPrefix_1611 = idPrefix + "S:"; idPrefix += "B:"; - var JSCompiler_object_inline_preconnects_1610 = new Set(), - JSCompiler_object_inline_fontPreloads_1611 = new Set(), - JSCompiler_object_inline_highImagePreloads_1612 = new Set(), - JSCompiler_object_inline_styles_1613 = new Map(), - JSCompiler_object_inline_bootstrapScripts_1614 = new Set(), - JSCompiler_object_inline_scripts_1615 = new Set(), - JSCompiler_object_inline_bulkPreloads_1616 = new Set(), - JSCompiler_object_inline_preloads_1617 = { + var JSCompiler_object_inline_preconnects_1625 = new Set(), + JSCompiler_object_inline_fontPreloads_1626 = new Set(), + JSCompiler_object_inline_highImagePreloads_1627 = new Set(), + JSCompiler_object_inline_styles_1628 = new Map(), + JSCompiler_object_inline_bootstrapScripts_1629 = new Set(), + JSCompiler_object_inline_scripts_1630 = new Set(), + JSCompiler_object_inline_bulkPreloads_1631 = new Set(), + JSCompiler_object_inline_preloads_1632 = { images: new Map(), stylesheets: new Map(), scripts: new Map(), @@ -2639,7 +2638,7 @@ function createRenderState(resumableState, generateStaticMarkup) { scriptConfig.moduleScriptResources[href] = null; scriptConfig = []; pushLinkImpl(scriptConfig, props); - JSCompiler_object_inline_bootstrapScripts_1614.add(scriptConfig); + JSCompiler_object_inline_bootstrapScripts_1629.add(scriptConfig); bootstrapChunks.push('