@office-iss/react-native-win32 0.66.4 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/.eslintignore +2 -0
  2. package/.flowconfig +1 -1
  3. package/CHANGELOG.json +228 -46
  4. package/CHANGELOG.md +102 -25
  5. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
  6. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
  7. package/Libraries/Animated/AnimatedEvent.js +23 -4
  8. package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
  9. package/Libraries/Animated/components/AnimatedImage.js +3 -3
  10. package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
  11. package/Libraries/Animated/components/AnimatedText.js +3 -3
  12. package/Libraries/Animated/components/AnimatedView.js +1 -3
  13. package/Libraries/Animated/createAnimatedComponent.js +3 -34
  14. package/Libraries/Components/Button/ButtonWin32.js +2 -2
  15. package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
  16. package/Libraries/Components/Button.js +3 -0
  17. package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
  18. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
  19. package/Libraries/Components/EnterString.win32.js +3 -3
  20. package/Libraries/Components/EnterString.win32.js.map +1 -1
  21. package/Libraries/Components/Keyboard/Keyboard.js +2 -2
  22. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
  23. package/Libraries/Components/ScrollView/ScrollView.js +17 -16
  24. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
  25. package/Libraries/Components/Text/Tests/TextWin32Test.d.ts +0 -1
  26. package/Libraries/Components/Text/TextWin32.Props.d.ts +2 -2
  27. package/Libraries/Components/Text/TextWin32.Props.js.map +1 -1
  28. package/Libraries/Components/Text/TextWin32.js +1 -1
  29. package/Libraries/Components/Text/TextWin32.js.map +1 -1
  30. package/Libraries/Components/TextInput/Tests/TextInputTest.d.ts +0 -1
  31. package/Libraries/Components/TextInput/TextInput.win32.js +6 -6
  32. package/Libraries/Components/TextInput/TextInput.win32.js.map +1 -1
  33. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.d.ts +0 -1
  34. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js +1 -1
  35. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
  36. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +2 -2
  37. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js.map +1 -1
  38. package/Libraries/Components/Touchable/TouchableWin32.js +2 -2
  39. package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
  40. package/Libraries/Components/View/Tests/ViewWin32Test.d.ts +0 -1
  41. package/Libraries/Components/View/View.js +1 -1
  42. package/Libraries/Components/View/View.win32.js +1 -1
  43. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  44. package/Libraries/Components/View/ViewWin32.Props.d.ts +3 -6
  45. package/Libraries/Components/View/ViewWin32.Props.js.map +1 -1
  46. package/Libraries/Components/View/ViewWin32.js +5 -5
  47. package/Libraries/Components/View/ViewWin32.js.map +1 -1
  48. package/Libraries/Core/ExceptionsManager.js +45 -80
  49. package/Libraries/Core/ExtendedError.js +0 -1
  50. package/Libraries/Core/ReactNativeVersion.js +3 -3
  51. package/Libraries/Core/setUpBatchedBridge.js +1 -1
  52. package/Libraries/Core/setUpGlobals.js +2 -4
  53. package/Libraries/Core/setUpTimers.js +2 -2
  54. package/Libraries/Image/Image.ios.js +6 -0
  55. package/Libraries/Image/Image.win32.js +6 -0
  56. package/Libraries/Image/ImageBackground.js +10 -8
  57. package/Libraries/Image/ImageProps.js +28 -0
  58. package/Libraries/Image/Tests/ImageWin32Test.d.ts +0 -1
  59. package/Libraries/LogBox/Data/LogBoxData.js +18 -19
  60. package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
  61. package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
  62. package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
  63. package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
  64. package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
  65. package/Libraries/NewAppScreen/components/logo.png +0 -0
  66. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
  67. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
  68. package/Libraries/PersonaCoin/PersonaCoin.js +3 -2
  69. package/Libraries/PersonaCoin/PersonaCoin.js.map +1 -1
  70. package/Libraries/Pressability/Pressability.js +13 -13
  71. package/Libraries/Pressability/Pressability.win32.js +13 -13
  72. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
  73. package/Libraries/ReactNative/AppRegistry.js +4 -2
  74. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1569 -875
  75. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +529 -319
  76. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +570 -362
  77. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1592 -891
  78. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +521 -311
  79. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +562 -354
  80. package/Libraries/Share/Share.js +1 -1
  81. package/Libraries/StyleSheet/normalizeColor.js +2 -2
  82. package/Libraries/Text/TextProps.js +1 -7
  83. package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
  84. package/Libraries/Utilities/HMRClient.js +1 -1
  85. package/flow/global.js +45 -0
  86. package/index.js +15 -10
  87. package/index.win32.js +15 -10
  88. package/jest/mockModal.js +31 -0
  89. package/jest/preprocessor.js +7 -75
  90. package/jest/setup.js +5 -3
  91. package/overrides.json +8 -14
  92. package/package.json +19 -17
  93. package/rntypes/BatchedBridge.d.ts +23 -0
  94. package/rntypes/Devtools.d.ts +20 -0
  95. package/rntypes/LaunchScreen.d.ts +9 -0
  96. package/rntypes/globals.d.ts +496 -0
  97. package/rntypes/index.d.ts +9966 -0
  98. package/rntypes/legacy-properties.d.ts +266 -0
  99. package/src/Libraries/Components/Text/TextWin32.Props.ts +2 -2
  100. package/src/Libraries/Components/View/ViewWin32.Props.ts +6 -12
  101. package/src/rntypes/BatchedBridge.d.ts +23 -0
  102. package/src/rntypes/Devtools.d.ts +20 -0
  103. package/src/rntypes/LaunchScreen.d.ts +9 -0
  104. package/src/rntypes/globals.d.ts +496 -0
  105. package/src/rntypes/index.d.ts +9966 -0
  106. package/src/rntypes/legacy-properties.d.ts +266 -0
  107. package/src/typings-index.ts +11 -4
  108. package/typings-index.d.ts +3 -1
  109. package/typings-index.js +7 -5
  110. package/typings-index.js.map +1 -1
  111. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
  112. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
  113. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.win32.js +0 -30
  114. package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
  115. package/Libraries/Components/StaticContainer.react.js +0 -51
  116. package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
  117. package/Libraries/Interaction/InteractionMixin.js +0 -54
  118. package/Libraries/ReactNative/queryLayoutByID.js +0 -58
@@ -7,7 +7,7 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<f021bce2048d654b3e2e31276c91433c>>
10
+ * @generated SignedSource<<62430ecbf70b848b8677c9a80f79d347>>
11
11
  */
12
12
 
13
13
  "use strict";
@@ -783,18 +783,16 @@ function recomputePluginOrdering() {
783
783
  for (var pluginName in namesToPlugins) {
784
784
  var pluginModule = namesToPlugins[pluginName],
785
785
  pluginIndex = eventPluginOrder.indexOf(pluginName);
786
- if (!(-1 < pluginIndex))
786
+ if (-1 >= pluginIndex)
787
787
  throw Error(
788
788
  "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" +
789
- pluginName +
790
- "`."
789
+ (pluginName + "`.")
791
790
  );
792
791
  if (!plugins[pluginIndex]) {
793
792
  if (!pluginModule.extractEvents)
794
793
  throw Error(
795
794
  "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" +
796
- pluginName +
797
- "` does not."
795
+ (pluginName + "` does not.")
798
796
  );
799
797
  plugins[pluginIndex] = pluginModule;
800
798
  pluginIndex = pluginModule.eventTypes;
@@ -805,8 +803,7 @@ function recomputePluginOrdering() {
805
803
  if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0))
806
804
  throw Error(
807
805
  "EventPluginRegistry: More than one plugin attempted to publish the same event name, `" +
808
- eventName$jscomp$0 +
809
- "`."
806
+ (eventName$jscomp$0 + "`.")
810
807
  );
811
808
  eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;
812
809
  var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
@@ -846,8 +843,7 @@ function publishRegistrationName(registrationName, pluginModule) {
846
843
  if (registrationNameModules[registrationName])
847
844
  throw Error(
848
845
  "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" +
849
- registrationName +
850
- "`."
846
+ (registrationName + "`.")
851
847
  );
852
848
  registrationNameModules[registrationName] = pluginModule;
853
849
  }
@@ -931,7 +927,7 @@ eventPluginOrder = Array.prototype.slice.call([
931
927
  "ReactNativeBridgeEventPlugin"
932
928
  ]);
933
929
  recomputePluginOrdering();
934
- var injectedNamesToPlugins$jscomp$inline_229 = {
930
+ var injectedNamesToPlugins$jscomp$inline_227 = {
935
931
  ResponderEventPlugin: ResponderEventPlugin,
936
932
  ReactNativeBridgeEventPlugin: {
937
933
  eventTypes: {},
@@ -966,34 +962,33 @@ var injectedNamesToPlugins$jscomp$inline_229 = {
966
962
  }
967
963
  }
968
964
  },
969
- isOrderingDirty$jscomp$inline_230 = !1,
970
- pluginName$jscomp$inline_231;
971
- for (pluginName$jscomp$inline_231 in injectedNamesToPlugins$jscomp$inline_229)
965
+ isOrderingDirty$jscomp$inline_228 = !1,
966
+ pluginName$jscomp$inline_229;
967
+ for (pluginName$jscomp$inline_229 in injectedNamesToPlugins$jscomp$inline_227)
972
968
  if (
973
- injectedNamesToPlugins$jscomp$inline_229.hasOwnProperty(
974
- pluginName$jscomp$inline_231
969
+ injectedNamesToPlugins$jscomp$inline_227.hasOwnProperty(
970
+ pluginName$jscomp$inline_229
975
971
  )
976
972
  ) {
977
- var pluginModule$jscomp$inline_232 =
978
- injectedNamesToPlugins$jscomp$inline_229[pluginName$jscomp$inline_231];
973
+ var pluginModule$jscomp$inline_230 =
974
+ injectedNamesToPlugins$jscomp$inline_227[pluginName$jscomp$inline_229];
979
975
  if (
980
- !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_231) ||
981
- namesToPlugins[pluginName$jscomp$inline_231] !==
982
- pluginModule$jscomp$inline_232
976
+ !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_229) ||
977
+ namesToPlugins[pluginName$jscomp$inline_229] !==
978
+ pluginModule$jscomp$inline_230
983
979
  ) {
984
- if (namesToPlugins[pluginName$jscomp$inline_231])
980
+ if (namesToPlugins[pluginName$jscomp$inline_229])
985
981
  throw Error(
986
982
  "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
987
- pluginName$jscomp$inline_231 +
988
- "`."
983
+ (pluginName$jscomp$inline_229 + "`.")
989
984
  );
990
985
  namesToPlugins[
991
- pluginName$jscomp$inline_231
992
- ] = pluginModule$jscomp$inline_232;
993
- isOrderingDirty$jscomp$inline_230 = !0;
986
+ pluginName$jscomp$inline_229
987
+ ] = pluginModule$jscomp$inline_230;
988
+ isOrderingDirty$jscomp$inline_228 = !0;
994
989
  }
995
990
  }
996
- isOrderingDirty$jscomp$inline_230 && recomputePluginOrdering();
991
+ isOrderingDirty$jscomp$inline_228 && recomputePluginOrdering();
997
992
  function getInstanceFromInstance(instanceHandle) {
998
993
  return instanceHandle;
999
994
  }
@@ -1192,7 +1187,7 @@ function getNearestMountedFiber(fiber) {
1192
1187
  fiber = node;
1193
1188
  do
1194
1189
  (node = fiber),
1195
- 0 !== (node.flags & 2050) && (nearestMounted = node.return),
1190
+ 0 !== (node.flags & 4098) && (nearestMounted = node.return),
1196
1191
  (fiber = node.return);
1197
1192
  while (fiber);
1198
1193
  }
@@ -1781,6 +1776,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
1781
1776
  root = root.pendingLanes & -1073741825;
1782
1777
  return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
1783
1778
  }
1779
+ function includesBlockingLane(root, lanes) {
1780
+ return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
1781
+ }
1784
1782
  function createLaneMap(initial) {
1785
1783
  for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
1786
1784
  return laneMap;
@@ -2133,7 +2131,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
2133
2131
  : pop(didPerformWorkStackCursor);
2134
2132
  push(didPerformWorkStackCursor, didChange);
2135
2133
  }
2136
- var syncQueue = null,
2134
+ function is(x, y) {
2135
+ return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
2136
+ }
2137
+ var objectIs = "function" === typeof Object.is ? Object.is : is,
2138
+ syncQueue = null,
2137
2139
  includesLegacySyncCallbacks = !1,
2138
2140
  isFlushingSyncQueue = !1;
2139
2141
  function flushSyncCallbacks() {
@@ -2162,10 +2164,6 @@ function flushSyncCallbacks() {
2162
2164
  return null;
2163
2165
  }
2164
2166
  var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
2165
- function is(x, y) {
2166
- return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
2167
- }
2168
- var objectIs = "function" === typeof Object.is ? Object.is : is;
2169
2167
  function shallowEqual(objA, objB) {
2170
2168
  if (objectIs(objA, objB)) return !0;
2171
2169
  if (
@@ -2450,7 +2448,7 @@ function processUpdateQueue(
2450
2448
  newState = workInProgress;
2451
2449
  break a;
2452
2450
  case 3:
2453
- workInProgress.flags = (workInProgress.flags & -16385) | 128;
2451
+ workInProgress.flags = (workInProgress.flags & -65537) | 128;
2454
2452
  case 0:
2455
2453
  workInProgress = update.payload;
2456
2454
  updateLane =
@@ -2703,7 +2701,8 @@ function coerceRef(returnFiber, current, element) {
2703
2701
  returnFiber +
2704
2702
  ". This error is likely caused by a bug in React. Please file an issue."
2705
2703
  );
2706
- var stringRef = "" + returnFiber;
2704
+ var resolvedInst = inst,
2705
+ stringRef = "" + returnFiber;
2707
2706
  if (
2708
2707
  null !== current &&
2709
2708
  null !== current.ref &&
@@ -2712,8 +2711,8 @@ function coerceRef(returnFiber, current, element) {
2712
2711
  )
2713
2712
  return current.ref;
2714
2713
  current = function(value) {
2715
- var refs = inst.refs;
2716
- refs === emptyRefsObject && (refs = inst.refs = {});
2714
+ var refs = resolvedInst.refs;
2715
+ refs === emptyRefsObject && (refs = resolvedInst.refs = {});
2717
2716
  null === value ? delete refs[stringRef] : (refs[stringRef] = value);
2718
2717
  };
2719
2718
  current._stringRef = stringRef;
@@ -3412,7 +3411,7 @@ function renderWithHooks(
3412
3411
  nextRenderLanes = 0;
3413
3412
  do {
3414
3413
  didScheduleRenderPhaseUpdateDuringThisPass = !1;
3415
- if (!(25 > nextRenderLanes))
3414
+ if (25 <= nextRenderLanes)
3416
3415
  throw Error(
3417
3416
  "Too many re-renders. React limits the number of renders to prevent an infinite loop."
3418
3417
  );
@@ -3513,19 +3512,18 @@ function updateReducer(reducer) {
3513
3512
  (newBaseQueueLast = newBaseQueueLast.next = {
3514
3513
  lane: 0,
3515
3514
  action: update.action,
3516
- eagerReducer: update.eagerReducer,
3515
+ hasEagerState: update.hasEagerState,
3517
3516
  eagerState: update.eagerState,
3518
3517
  next: null
3519
3518
  }),
3520
- (current =
3521
- update.eagerReducer === reducer
3522
- ? update.eagerState
3523
- : reducer(current, update.action));
3519
+ (current = update.hasEagerState
3520
+ ? update.eagerState
3521
+ : reducer(current, update.action));
3524
3522
  else {
3525
3523
  var clone = {
3526
3524
  lane: updateLane,
3527
3525
  action: update.action,
3528
- eagerReducer: update.eagerReducer,
3526
+ hasEagerState: update.hasEagerState,
3529
3527
  eagerState: update.eagerState,
3530
3528
  next: null
3531
3529
  };
@@ -3665,7 +3663,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
3665
3663
  lastRenderedReducer: basicStateReducer,
3666
3664
  lastRenderedState: snapshot
3667
3665
  }),
3668
- (hook.dispatch = setSnapshot = dispatchAction.bind(
3666
+ (hook.dispatch = setSnapshot = dispatchSetState.bind(
3669
3667
  null,
3670
3668
  currentlyRenderingFiber$1,
3671
3669
  hook
@@ -3680,11 +3678,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
3680
3678
  var hook = updateWorkInProgressHook();
3681
3679
  return useMutableSource(hook, source, getSnapshot, subscribe);
3682
3680
  }
3681
+ function mountSyncExternalStore(subscribe, getSnapshot) {
3682
+ var fiber = currentlyRenderingFiber$1,
3683
+ hook = mountWorkInProgressHook();
3684
+ var nextSnapshot = getSnapshot();
3685
+ var root = workInProgressRoot;
3686
+ if (null === root)
3687
+ throw Error(
3688
+ "Expected a work-in-progress root. This is a bug in React. Please file an issue."
3689
+ );
3690
+ includesBlockingLane(root, renderLanes) ||
3691
+ pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
3692
+ hook.memoizedState = nextSnapshot;
3693
+ root = { value: nextSnapshot, getSnapshot: getSnapshot };
3694
+ hook.queue = root;
3695
+ mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [subscribe]);
3696
+ fiber.flags |= 2048;
3697
+ pushEffect(
3698
+ 9,
3699
+ updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
3700
+ void 0,
3701
+ null
3702
+ );
3703
+ return nextSnapshot;
3704
+ }
3705
+ function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
3706
+ fiber.flags |= 16384;
3707
+ fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
3708
+ getSnapshot = currentlyRenderingFiber$1.updateQueue;
3709
+ null === getSnapshot
3710
+ ? ((getSnapshot = { lastEffect: null, stores: null }),
3711
+ (currentlyRenderingFiber$1.updateQueue = getSnapshot),
3712
+ (getSnapshot.stores = [fiber]))
3713
+ : ((renderedSnapshot = getSnapshot.stores),
3714
+ null === renderedSnapshot
3715
+ ? (getSnapshot.stores = [fiber])
3716
+ : renderedSnapshot.push(fiber));
3717
+ }
3718
+ function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
3719
+ inst.value = nextSnapshot;
3720
+ inst.getSnapshot = getSnapshot;
3721
+ checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
3722
+ }
3723
+ function subscribeToStore(fiber, inst, subscribe) {
3724
+ return subscribe(function() {
3725
+ checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
3726
+ });
3727
+ }
3728
+ function checkIfSnapshotChanged(inst) {
3729
+ var latestGetSnapshot = inst.getSnapshot;
3730
+ inst = inst.value;
3731
+ try {
3732
+ var nextValue = latestGetSnapshot();
3733
+ return !objectIs(inst, nextValue);
3734
+ } catch (error) {
3735
+ return !0;
3736
+ }
3737
+ }
3683
3738
  function mountState(initialState) {
3684
3739
  var hook = mountWorkInProgressHook();
3685
3740
  "function" === typeof initialState && (initialState = initialState());
3686
3741
  hook.memoizedState = hook.baseState = initialState;
3687
- initialState = hook.queue = {
3742
+ initialState = {
3688
3743
  pending: null,
3689
3744
  interleaved: null,
3690
3745
  lanes: 0,
@@ -3692,7 +3747,8 @@ function mountState(initialState) {
3692
3747
  lastRenderedReducer: basicStateReducer,
3693
3748
  lastRenderedState: initialState
3694
3749
  };
3695
- initialState = initialState.dispatch = dispatchAction.bind(
3750
+ hook.queue = initialState;
3751
+ initialState = initialState.dispatch = dispatchSetState.bind(
3696
3752
  null,
3697
3753
  currentlyRenderingFiber$1,
3698
3754
  initialState
@@ -3703,7 +3759,7 @@ function pushEffect(tag, create, destroy, deps) {
3703
3759
  tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
3704
3760
  create = currentlyRenderingFiber$1.updateQueue;
3705
3761
  null === create
3706
- ? ((create = { lastEffect: null }),
3762
+ ? ((create = { lastEffect: null, stores: null }),
3707
3763
  (currentlyRenderingFiber$1.updateQueue = create),
3708
3764
  (create.lastEffect = tag.next = tag))
3709
3765
  : ((destroy = create.lastEffect),
@@ -3744,14 +3800,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
3744
3800
  hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
3745
3801
  }
3746
3802
  function mountEffect(create, deps) {
3747
- return mountEffectImpl(1049600, 4, create, deps);
3803
+ return mountEffectImpl(4196352, 8, create, deps);
3748
3804
  }
3749
3805
  function updateEffect(create, deps) {
3750
- return updateEffectImpl(1024, 4, create, deps);
3806
+ return updateEffectImpl(2048, 8, create, deps);
3751
3807
  }
3752
- function updateLayoutEffect(create, deps) {
3808
+ function updateInsertionEffect(create, deps) {
3753
3809
  return updateEffectImpl(4, 2, create, deps);
3754
3810
  }
3811
+ function updateLayoutEffect(create, deps) {
3812
+ return updateEffectImpl(4, 4, create, deps);
3813
+ }
3755
3814
  function imperativeHandleEffect(create, ref) {
3756
3815
  if ("function" === typeof ref)
3757
3816
  return (
@@ -3774,7 +3833,7 @@ function updateImperativeHandle(ref, create, deps) {
3774
3833
  deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
3775
3834
  return updateEffectImpl(
3776
3835
  4,
3777
- 2,
3836
+ 4,
3778
3837
  imperativeHandleEffect.bind(null, create, ref),
3779
3838
  deps
3780
3839
  );
@@ -3821,47 +3880,35 @@ function startTransition(setPending, callback) {
3821
3880
  (ReactCurrentBatchConfig$1.transition = prevTransition);
3822
3881
  }
3823
3882
  }
3824
- function dispatchAction(fiber, queue, action) {
3825
- var eventTime = requestEventTime(),
3826
- lane = requestUpdateLane(fiber),
3883
+ function dispatchReducerAction(fiber, queue, action) {
3884
+ var lane = requestUpdateLane(fiber);
3885
+ action = {
3886
+ lane: lane,
3887
+ action: action,
3888
+ hasEagerState: !1,
3889
+ eagerState: null,
3890
+ next: null
3891
+ };
3892
+ isRenderPhaseUpdate(fiber)
3893
+ ? enqueueRenderPhaseUpdate(queue, action)
3894
+ : (enqueueUpdate$1(fiber, queue, action),
3895
+ (action = requestEventTime()),
3896
+ (fiber = scheduleUpdateOnFiber(fiber, lane, action)),
3897
+ null !== fiber && entangleTransitionUpdate(fiber, queue, lane));
3898
+ }
3899
+ function dispatchSetState(fiber, queue, action) {
3900
+ var lane = requestUpdateLane(fiber),
3827
3901
  update = {
3828
3902
  lane: lane,
3829
3903
  action: action,
3830
- eagerReducer: null,
3904
+ hasEagerState: !1,
3831
3905
  eagerState: null,
3832
3906
  next: null
3833
- },
3834
- alternate = fiber.alternate;
3835
- if (
3836
- fiber === currentlyRenderingFiber$1 ||
3837
- (null !== alternate && alternate === currentlyRenderingFiber$1)
3838
- )
3839
- (didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0),
3840
- (lane = queue.pending),
3841
- null === lane
3842
- ? (update.next = update)
3843
- : ((update.next = lane.next), (lane.next = update)),
3844
- (queue.pending = update);
3907
+ };
3908
+ if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
3845
3909
  else {
3846
- if (
3847
- null !== workInProgressRoot &&
3848
- 0 !== (fiber.mode & 1) &&
3849
- 0 === (executionContext & 2)
3850
- ) {
3851
- var interleaved = queue.interleaved;
3852
- null === interleaved
3853
- ? ((update.next = update),
3854
- null === interleavedQueues
3855
- ? (interleavedQueues = [queue])
3856
- : interleavedQueues.push(queue))
3857
- : ((update.next = interleaved.next), (interleaved.next = update));
3858
- queue.interleaved = update;
3859
- } else
3860
- (interleaved = queue.pending),
3861
- null === interleaved
3862
- ? (update.next = update)
3863
- : ((update.next = interleaved.next), (interleaved.next = update)),
3864
- (queue.pending = update);
3910
+ enqueueUpdate$1(fiber, queue, update);
3911
+ var alternate = fiber.alternate;
3865
3912
  if (
3866
3913
  0 === fiber.lanes &&
3867
3914
  (null === alternate || 0 === alternate.lanes) &&
@@ -3870,20 +3917,57 @@ function dispatchAction(fiber, queue, action) {
3870
3917
  try {
3871
3918
  var currentState = queue.lastRenderedState,
3872
3919
  eagerState = alternate(currentState, action);
3873
- update.eagerReducer = alternate;
3920
+ update.hasEagerState = !0;
3874
3921
  update.eagerState = eagerState;
3875
3922
  if (objectIs(eagerState, currentState)) return;
3876
3923
  } catch (error) {
3877
3924
  } finally {
3878
3925
  }
3879
- update = scheduleUpdateOnFiber(fiber, lane, eventTime);
3880
- 0 !== (lane & 4194240) &&
3881
- null !== update &&
3882
- ((fiber = queue.lanes),
3883
- (fiber &= update.pendingLanes),
3884
- (lane |= fiber),
3885
- (queue.lanes = lane),
3886
- markRootEntangled(update, lane));
3926
+ action = requestEventTime();
3927
+ fiber = scheduleUpdateOnFiber(fiber, lane, action);
3928
+ null !== fiber && entangleTransitionUpdate(fiber, queue, lane);
3929
+ }
3930
+ }
3931
+ function isRenderPhaseUpdate(fiber) {
3932
+ var alternate = fiber.alternate;
3933
+ return (
3934
+ fiber === currentlyRenderingFiber$1 ||
3935
+ (null !== alternate && alternate === currentlyRenderingFiber$1)
3936
+ );
3937
+ }
3938
+ function enqueueRenderPhaseUpdate(queue, update) {
3939
+ didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
3940
+ var pending = queue.pending;
3941
+ null === pending
3942
+ ? (update.next = update)
3943
+ : ((update.next = pending.next), (pending.next = update));
3944
+ queue.pending = update;
3945
+ }
3946
+ function enqueueUpdate$1(fiber, queue, update) {
3947
+ null !== workInProgressRoot &&
3948
+ 0 !== (fiber.mode & 1) &&
3949
+ 0 === (executionContext & 2)
3950
+ ? ((fiber = queue.interleaved),
3951
+ null === fiber
3952
+ ? ((update.next = update),
3953
+ null === interleavedQueues
3954
+ ? (interleavedQueues = [queue])
3955
+ : interleavedQueues.push(queue))
3956
+ : ((update.next = fiber.next), (fiber.next = update)),
3957
+ (queue.interleaved = update))
3958
+ : ((fiber = queue.pending),
3959
+ null === fiber
3960
+ ? (update.next = update)
3961
+ : ((update.next = fiber.next), (fiber.next = update)),
3962
+ (queue.pending = update));
3963
+ }
3964
+ function entangleTransitionUpdate(root, queue, lane) {
3965
+ if (0 !== (lane & 4194240)) {
3966
+ var queueLanes = queue.lanes;
3967
+ queueLanes &= root.pendingLanes;
3968
+ lane |= queueLanes;
3969
+ queue.lanes = lane;
3970
+ markRootEntangled(root, lane);
3887
3971
  }
3888
3972
  }
3889
3973
  var ContextOnlyDispatcher = {
@@ -3892,6 +3976,7 @@ var ContextOnlyDispatcher = {
3892
3976
  useContext: throwInvalidHookError,
3893
3977
  useEffect: throwInvalidHookError,
3894
3978
  useImperativeHandle: throwInvalidHookError,
3979
+ useInsertionEffect: throwInvalidHookError,
3895
3980
  useLayoutEffect: throwInvalidHookError,
3896
3981
  useMemo: throwInvalidHookError,
3897
3982
  useReducer: throwInvalidHookError,
@@ -3901,6 +3986,7 @@ var ContextOnlyDispatcher = {
3901
3986
  useDeferredValue: throwInvalidHookError,
3902
3987
  useTransition: throwInvalidHookError,
3903
3988
  useMutableSource: throwInvalidHookError,
3989
+ useSyncExternalStore: throwInvalidHookError,
3904
3990
  useOpaqueIdentifier: throwInvalidHookError,
3905
3991
  unstable_isNewReconciler: !1
3906
3992
  },
@@ -3919,12 +4005,15 @@ var ContextOnlyDispatcher = {
3919
4005
  deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
3920
4006
  return mountEffectImpl(
3921
4007
  4,
3922
- 2,
4008
+ 4,
3923
4009
  imperativeHandleEffect.bind(null, create, ref),
3924
4010
  deps
3925
4011
  );
3926
4012
  },
3927
4013
  useLayoutEffect: function(create, deps) {
4014
+ return mountEffectImpl(4, 4, create, deps);
4015
+ },
4016
+ useInsertionEffect: function(create, deps) {
3928
4017
  return mountEffectImpl(4, 2, create, deps);
3929
4018
  },
3930
4019
  useMemo: function(nextCreate, deps) {
@@ -3938,7 +4027,7 @@ var ContextOnlyDispatcher = {
3938
4027
  var hook = mountWorkInProgressHook();
3939
4028
  initialArg = void 0 !== init ? init(initialArg) : initialArg;
3940
4029
  hook.memoizedState = hook.baseState = initialArg;
3941
- reducer = hook.queue = {
4030
+ reducer = {
3942
4031
  pending: null,
3943
4032
  interleaved: null,
3944
4033
  lanes: 0,
@@ -3946,7 +4035,8 @@ var ContextOnlyDispatcher = {
3946
4035
  lastRenderedReducer: reducer,
3947
4036
  lastRenderedState: initialArg
3948
4037
  };
3949
- reducer = reducer.dispatch = dispatchAction.bind(
4038
+ hook.queue = reducer;
4039
+ reducer = reducer.dispatch = dispatchReducerAction.bind(
3950
4040
  null,
3951
4041
  currentlyRenderingFiber$1,
3952
4042
  reducer
@@ -3994,6 +4084,7 @@ var ContextOnlyDispatcher = {
3994
4084
  };
3995
4085
  return useMutableSource(hook, source, getSnapshot, subscribe);
3996
4086
  },
4087
+ useSyncExternalStore: mountSyncExternalStore,
3997
4088
  useOpaqueIdentifier: function() {
3998
4089
  throw Error("Not yet implemented");
3999
4090
  },
@@ -4005,6 +4096,7 @@ var ContextOnlyDispatcher = {
4005
4096
  useContext: readContext,
4006
4097
  useEffect: updateEffect,
4007
4098
  useImperativeHandle: updateImperativeHandle,
4099
+ useInsertionEffect: updateInsertionEffect,
4008
4100
  useLayoutEffect: updateLayoutEffect,
4009
4101
  useMemo: updateMemo,
4010
4102
  useReducer: updateReducer,
@@ -4037,6 +4129,46 @@ var ContextOnlyDispatcher = {
4037
4129
  return [isPending, start];
4038
4130
  },
4039
4131
  useMutableSource: updateMutableSource,
4132
+ useSyncExternalStore: function(subscribe, getSnapshot) {
4133
+ var fiber = currentlyRenderingFiber$1,
4134
+ hook = updateWorkInProgressHook(),
4135
+ nextSnapshot = getSnapshot(),
4136
+ snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
4137
+ snapshotChanged &&
4138
+ ((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
4139
+ hook = hook.queue;
4140
+ updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
4141
+ subscribe
4142
+ ]);
4143
+ if (
4144
+ hook.getSnapshot !== getSnapshot ||
4145
+ snapshotChanged ||
4146
+ (null !== workInProgressHook &&
4147
+ workInProgressHook.memoizedState.tag & 1)
4148
+ ) {
4149
+ fiber.flags |= 2048;
4150
+ pushEffect(
4151
+ 9,
4152
+ updateStoreInstance.bind(
4153
+ null,
4154
+ fiber,
4155
+ hook,
4156
+ nextSnapshot,
4157
+ getSnapshot
4158
+ ),
4159
+ void 0,
4160
+ null
4161
+ );
4162
+ subscribe = workInProgressRoot;
4163
+ if (null === subscribe)
4164
+ throw Error(
4165
+ "Expected a work-in-progress root. This is a bug in React. Please file an issue."
4166
+ );
4167
+ includesBlockingLane(subscribe, renderLanes) ||
4168
+ pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
4169
+ }
4170
+ return nextSnapshot;
4171
+ },
4040
4172
  useOpaqueIdentifier: function() {
4041
4173
  return updateReducer(basicStateReducer)[0];
4042
4174
  },
@@ -4048,6 +4180,7 @@ var ContextOnlyDispatcher = {
4048
4180
  useContext: readContext,
4049
4181
  useEffect: updateEffect,
4050
4182
  useImperativeHandle: updateImperativeHandle,
4183
+ useInsertionEffect: updateInsertionEffect,
4051
4184
  useLayoutEffect: updateLayoutEffect,
4052
4185
  useMemo: updateMemo,
4053
4186
  useReducer: rerenderReducer,
@@ -4080,6 +4213,7 @@ var ContextOnlyDispatcher = {
4080
4213
  return [isPending, start];
4081
4214
  },
4082
4215
  useMutableSource: updateMutableSource,
4216
+ useSyncExternalStore: mountSyncExternalStore,
4083
4217
  useOpaqueIdentifier: function() {
4084
4218
  return rerenderReducer(basicStateReducer)[0];
4085
4219
  },
@@ -4223,7 +4357,7 @@ function hadNoMutationsEffects(current, completedWork) {
4223
4357
  if (null !== current && current.child === completedWork.child) return !0;
4224
4358
  if (0 !== (completedWork.flags & 16)) return !1;
4225
4359
  for (current = completedWork.child; null !== current; ) {
4226
- if (0 !== (current.flags & 6454) || 0 !== (current.subtreeFlags & 6454))
4360
+ if (0 !== (current.flags & 12854) || 0 !== (current.subtreeFlags & 12854))
4227
4361
  return !1;
4228
4362
  current = current.sibling;
4229
4363
  }
@@ -4387,14 +4521,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
4387
4521
  break;
4388
4522
  case "collapsed":
4389
4523
  lastTailNode = renderState.tail;
4390
- for (var lastTailNode$40 = null; null !== lastTailNode; )
4391
- null !== lastTailNode.alternate && (lastTailNode$40 = lastTailNode),
4524
+ for (var lastTailNode$37 = null; null !== lastTailNode; )
4525
+ null !== lastTailNode.alternate && (lastTailNode$37 = lastTailNode),
4392
4526
  (lastTailNode = lastTailNode.sibling);
4393
- null === lastTailNode$40
4527
+ null === lastTailNode$37
4394
4528
  ? hasRenderedATailFallback || null === renderState.tail
4395
4529
  ? (renderState.tail = null)
4396
4530
  : (renderState.tail.sibling = null)
4397
- : (lastTailNode$40.sibling = null);
4531
+ : (lastTailNode$37.sibling = null);
4398
4532
  }
4399
4533
  }
4400
4534
  function bubbleProperties(completedWork) {
@@ -4406,53 +4540,53 @@ function bubbleProperties(completedWork) {
4406
4540
  if (didBailout)
4407
4541
  if (0 !== (completedWork.mode & 2)) {
4408
4542
  for (
4409
- var treeBaseDuration$42 = completedWork.selfBaseDuration,
4410
- child$43 = completedWork.child;
4411
- null !== child$43;
4543
+ var treeBaseDuration$39 = completedWork.selfBaseDuration,
4544
+ child$40 = completedWork.child;
4545
+ null !== child$40;
4412
4546
 
4413
4547
  )
4414
- (newChildLanes |= child$43.lanes | child$43.childLanes),
4415
- (subtreeFlags |= child$43.subtreeFlags & 1835008),
4416
- (subtreeFlags |= child$43.flags & 1835008),
4417
- (treeBaseDuration$42 += child$43.treeBaseDuration),
4418
- (child$43 = child$43.sibling);
4419
- completedWork.treeBaseDuration = treeBaseDuration$42;
4548
+ (newChildLanes |= child$40.lanes | child$40.childLanes),
4549
+ (subtreeFlags |= child$40.subtreeFlags & 7340032),
4550
+ (subtreeFlags |= child$40.flags & 7340032),
4551
+ (treeBaseDuration$39 += child$40.treeBaseDuration),
4552
+ (child$40 = child$40.sibling);
4553
+ completedWork.treeBaseDuration = treeBaseDuration$39;
4420
4554
  } else
4421
4555
  for (
4422
- treeBaseDuration$42 = completedWork.child;
4423
- null !== treeBaseDuration$42;
4556
+ treeBaseDuration$39 = completedWork.child;
4557
+ null !== treeBaseDuration$39;
4424
4558
 
4425
4559
  )
4426
4560
  (newChildLanes |=
4427
- treeBaseDuration$42.lanes | treeBaseDuration$42.childLanes),
4428
- (subtreeFlags |= treeBaseDuration$42.subtreeFlags & 1835008),
4429
- (subtreeFlags |= treeBaseDuration$42.flags & 1835008),
4430
- (treeBaseDuration$42.return = completedWork),
4431
- (treeBaseDuration$42 = treeBaseDuration$42.sibling);
4561
+ treeBaseDuration$39.lanes | treeBaseDuration$39.childLanes),
4562
+ (subtreeFlags |= treeBaseDuration$39.subtreeFlags & 7340032),
4563
+ (subtreeFlags |= treeBaseDuration$39.flags & 7340032),
4564
+ (treeBaseDuration$39.return = completedWork),
4565
+ (treeBaseDuration$39 = treeBaseDuration$39.sibling);
4432
4566
  else if (0 !== (completedWork.mode & 2)) {
4433
- treeBaseDuration$42 = completedWork.actualDuration;
4434
- child$43 = completedWork.selfBaseDuration;
4567
+ treeBaseDuration$39 = completedWork.actualDuration;
4568
+ child$40 = completedWork.selfBaseDuration;
4435
4569
  for (var child = completedWork.child; null !== child; )
4436
4570
  (newChildLanes |= child.lanes | child.childLanes),
4437
4571
  (subtreeFlags |= child.subtreeFlags),
4438
4572
  (subtreeFlags |= child.flags),
4439
- (treeBaseDuration$42 += child.actualDuration),
4440
- (child$43 += child.treeBaseDuration),
4573
+ (treeBaseDuration$39 += child.actualDuration),
4574
+ (child$40 += child.treeBaseDuration),
4441
4575
  (child = child.sibling);
4442
- completedWork.actualDuration = treeBaseDuration$42;
4443
- completedWork.treeBaseDuration = child$43;
4576
+ completedWork.actualDuration = treeBaseDuration$39;
4577
+ completedWork.treeBaseDuration = child$40;
4444
4578
  } else
4445
4579
  for (
4446
- treeBaseDuration$42 = completedWork.child;
4447
- null !== treeBaseDuration$42;
4580
+ treeBaseDuration$39 = completedWork.child;
4581
+ null !== treeBaseDuration$39;
4448
4582
 
4449
4583
  )
4450
4584
  (newChildLanes |=
4451
- treeBaseDuration$42.lanes | treeBaseDuration$42.childLanes),
4452
- (subtreeFlags |= treeBaseDuration$42.subtreeFlags),
4453
- (subtreeFlags |= treeBaseDuration$42.flags),
4454
- (treeBaseDuration$42.return = completedWork),
4455
- (treeBaseDuration$42 = treeBaseDuration$42.sibling);
4585
+ treeBaseDuration$39.lanes | treeBaseDuration$39.childLanes),
4586
+ (subtreeFlags |= treeBaseDuration$39.subtreeFlags),
4587
+ (subtreeFlags |= treeBaseDuration$39.flags),
4588
+ (treeBaseDuration$39.return = completedWork),
4589
+ (treeBaseDuration$39 = treeBaseDuration$39.sibling);
4456
4590
  completedWork.subtreeFlags |= subtreeFlags;
4457
4591
  completedWork.childLanes = newChildLanes;
4458
4592
  return didBailout;
@@ -4479,7 +4613,7 @@ function completeSuspendedOffscreenHostContainer(current, workInProgress) {
4479
4613
  )),
4480
4614
  appendAllChildren(rootContainerInstance, workInProgress, !1, !1),
4481
4615
  (workInProgress.stateNode = rootContainerInstance),
4482
- null !== workInProgress.ref && (workInProgress.flags |= 256));
4616
+ null !== workInProgress.ref && (workInProgress.flags |= 512));
4483
4617
  bubbleProperties(workInProgress);
4484
4618
  }
4485
4619
  function completeWork(current, workInProgress, renderLanes) {
@@ -4513,8 +4647,8 @@ function completeWork(current, workInProgress, renderLanes) {
4513
4647
  ((newProps.context = newProps.pendingContext),
4514
4648
  (newProps.pendingContext = null)),
4515
4649
  (null !== current && null !== current.child) ||
4516
- newProps.hydrate ||
4517
- (workInProgress.flags |= 512),
4650
+ newProps.isDehydrated ||
4651
+ (workInProgress.flags |= 1024),
4518
4652
  updateHostContainer(current, workInProgress),
4519
4653
  bubbleProperties(workInProgress),
4520
4654
  null
@@ -4531,7 +4665,7 @@ function completeWork(current, workInProgress, renderLanes) {
4531
4665
  newProps,
4532
4666
  renderLanes
4533
4667
  ),
4534
- current.ref !== workInProgress.ref && (workInProgress.flags |= 256);
4668
+ current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
4535
4669
  else {
4536
4670
  if (!newProps) {
4537
4671
  if (null === workInProgress.stateNode)
@@ -4551,7 +4685,7 @@ function completeWork(current, workInProgress, renderLanes) {
4551
4685
  );
4552
4686
  appendAllChildren(current, workInProgress, !1, !1);
4553
4687
  workInProgress.stateNode = current;
4554
- null !== workInProgress.ref && (workInProgress.flags |= 256);
4688
+ null !== workInProgress.ref && (workInProgress.flags |= 512);
4555
4689
  }
4556
4690
  bubbleProperties(workInProgress);
4557
4691
  return null;
@@ -4595,7 +4729,7 @@ function completeWork(current, workInProgress, renderLanes) {
4595
4729
  if (
4596
4730
  newProps &&
4597
4731
  !renderLanes &&
4598
- ((workInProgress.child.flags |= 4096), 0 !== (workInProgress.mode & 1))
4732
+ ((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
4599
4733
  )
4600
4734
  if (
4601
4735
  (null === current &&
@@ -4607,7 +4741,8 @@ function completeWork(current, workInProgress, renderLanes) {
4607
4741
  else {
4608
4742
  if (
4609
4743
  0 === workInProgressRootExitStatus ||
4610
- 3 === workInProgressRootExitStatus
4744
+ 3 === workInProgressRootExitStatus ||
4745
+ 2 === workInProgressRootExitStatus
4611
4746
  )
4612
4747
  workInProgressRootExitStatus = 4;
4613
4748
  null === workInProgressRoot ||
@@ -4672,7 +4807,7 @@ function completeWork(current, workInProgress, renderLanes) {
4672
4807
  for (newProps = workInProgress.child; null !== newProps; )
4673
4808
  (renderLanes = newProps),
4674
4809
  (renderedTail = current),
4675
- (renderLanes.flags &= 1835010),
4810
+ (renderLanes.flags &= 7340034),
4676
4811
  (type = renderLanes.alternate),
4677
4812
  null === type
4678
4813
  ? ((renderLanes.childLanes = 0),
@@ -4778,7 +4913,7 @@ function completeWork(current, workInProgress, renderLanes) {
4778
4913
  (null !== current.memoizedState) !== renderLanes &&
4779
4914
  "unstable-defer-without-hiding" !== newProps.mode &&
4780
4915
  23 !== workInProgress.tag &&
4781
- (workInProgress.flags |= 4096),
4916
+ (workInProgress.flags |= 8192),
4782
4917
  renderLanes && 0 !== (workInProgress.mode & 1)
4783
4918
  ? 0 !== (subtreeRenderLanes & 1073741824) &&
4784
4919
  bubbleProperties(workInProgress)
@@ -4826,7 +4961,7 @@ function updateForwardRef(
4826
4961
  if (null !== current && !didReceiveUpdate)
4827
4962
  return (
4828
4963
  (workInProgress.updateQueue = current.updateQueue),
4829
- (workInProgress.flags &= -1029),
4964
+ (workInProgress.flags &= -2053),
4830
4965
  (current.lanes &= ~renderLanes),
4831
4966
  bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
4832
4967
  );
@@ -4900,7 +5035,7 @@ function updateSimpleMemoComponent(
4900
5035
  current.ref === workInProgress.ref
4901
5036
  )
4902
5037
  if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
4903
- 0 !== (current.flags & 32768) && (didReceiveUpdate = !0);
5038
+ 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
4904
5039
  else
4905
5040
  return (
4906
5041
  (workInProgress.lanes = current.lanes),
@@ -5003,7 +5138,7 @@ function markRef$1(current, workInProgress) {
5003
5138
  (null === current && null !== ref) ||
5004
5139
  (null !== current && current.ref !== ref)
5005
5140
  )
5006
- workInProgress.flags |= 256;
5141
+ workInProgress.flags |= 512;
5007
5142
  }
5008
5143
  function updateFunctionComponent(
5009
5144
  current,
@@ -5028,7 +5163,7 @@ function updateFunctionComponent(
5028
5163
  if (null !== current && !didReceiveUpdate)
5029
5164
  return (
5030
5165
  (workInProgress.updateQueue = current.updateQueue),
5031
- (workInProgress.flags &= -1029),
5166
+ (workInProgress.flags &= -2053),
5032
5167
  (current.lanes &= ~renderLanes),
5033
5168
  bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
5034
5169
  );
@@ -5204,7 +5339,7 @@ function updateClassComponent(
5204
5339
  "function" === typeof instance.componentDidUpdate &&
5205
5340
  (workInProgress.flags |= 4),
5206
5341
  "function" === typeof instance.getSnapshotBeforeUpdate &&
5207
- (workInProgress.flags |= 512))
5342
+ (workInProgress.flags |= 1024))
5208
5343
  : ("function" !== typeof instance.componentDidUpdate ||
5209
5344
  (oldProps === current.memoizedProps &&
5210
5345
  oldState === current.memoizedState) ||
@@ -5212,7 +5347,7 @@ function updateClassComponent(
5212
5347
  "function" !== typeof instance.getSnapshotBeforeUpdate ||
5213
5348
  (oldProps === current.memoizedProps &&
5214
5349
  oldState === current.memoizedState) ||
5215
- (workInProgress.flags |= 512),
5350
+ (workInProgress.flags |= 1024),
5216
5351
  (workInProgress.memoizedProps = nextProps),
5217
5352
  (workInProgress.memoizedState = newState)),
5218
5353
  (instance.props = nextProps),
@@ -5226,7 +5361,7 @@ function updateClassComponent(
5226
5361
  "function" !== typeof instance.getSnapshotBeforeUpdate ||
5227
5362
  (oldProps === current.memoizedProps &&
5228
5363
  oldState === current.memoizedState) ||
5229
- (workInProgress.flags |= 512),
5364
+ (workInProgress.flags |= 1024),
5230
5365
  (nextProps = !1));
5231
5366
  }
5232
5367
  return finishClassComponent(
@@ -5531,7 +5666,7 @@ function updateSuspenseFallbackChildren(
5531
5666
  primaryChildren
5532
5667
  ))),
5533
5668
  (current.subtreeFlags =
5534
- currentPrimaryChildFragment.subtreeFlags & 1835008));
5669
+ currentPrimaryChildFragment.subtreeFlags & 7340032));
5535
5670
  null !== currentFallbackChildFragment
5536
5671
  ? (fallbackChildren = createWorkInProgress(
5537
5672
  currentFallbackChildFragment,
@@ -5767,8 +5902,8 @@ function unwindWork(workInProgress) {
5767
5902
  case 1:
5768
5903
  isContextProvider(workInProgress.type) && popContext();
5769
5904
  var flags = workInProgress.flags;
5770
- return flags & 16384
5771
- ? ((workInProgress.flags = (flags & -16385) | 128),
5905
+ return flags & 65536
5906
+ ? ((workInProgress.flags = (flags & -65537) | 128),
5772
5907
  0 !== (workInProgress.mode & 2) &&
5773
5908
  transferActualDuration(workInProgress),
5774
5909
  workInProgress)
@@ -5783,7 +5918,7 @@ function unwindWork(workInProgress) {
5783
5918
  throw Error(
5784
5919
  "The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
5785
5920
  );
5786
- workInProgress.flags = (flags & -16385) | 128;
5921
+ workInProgress.flags = (flags & -65537) | 128;
5787
5922
  return workInProgress;
5788
5923
  case 5:
5789
5924
  return popHostContext(workInProgress), null;
@@ -5791,8 +5926,8 @@ function unwindWork(workInProgress) {
5791
5926
  return (
5792
5927
  pop(suspenseStackCursor),
5793
5928
  (flags = workInProgress.flags),
5794
- flags & 16384
5795
- ? ((workInProgress.flags = (flags & -16385) | 128),
5929
+ flags & 65536
5930
+ ? ((workInProgress.flags = (flags & -65537) | 128),
5796
5931
  0 !== (workInProgress.mode & 2) &&
5797
5932
  transferActualDuration(workInProgress),
5798
5933
  workInProgress)
@@ -5847,7 +5982,7 @@ function commitBeforeMutationEffects(root, firstChild) {
5847
5982
  if (
5848
5983
  ((root = nextEffect),
5849
5984
  (firstChild = root.child),
5850
- 0 !== (root.subtreeFlags & 516) && null !== firstChild)
5985
+ 0 !== (root.subtreeFlags & 1028) && null !== firstChild)
5851
5986
  )
5852
5987
  (firstChild.return = root), (nextEffect = firstChild);
5853
5988
  else
@@ -5855,7 +5990,7 @@ function commitBeforeMutationEffects(root, firstChild) {
5855
5990
  root = nextEffect;
5856
5991
  try {
5857
5992
  var current = root.alternate;
5858
- if (0 !== (root.flags & 512))
5993
+ if (0 !== (root.flags & 1024))
5859
5994
  switch (root.tag) {
5860
5995
  case 0:
5861
5996
  case 11:
@@ -5929,8 +6064,8 @@ function commitHookEffectListMount(tag, finishedWork) {
5929
6064
  var effect = (finishedWork = finishedWork.next);
5930
6065
  do {
5931
6066
  if ((effect.tag & tag) === tag) {
5932
- var create$89 = effect.create;
5933
- effect.destroy = create$89();
6067
+ var create$86 = effect.create;
6068
+ effect.destroy = create$86();
5934
6069
  }
5935
6070
  effect = effect.next;
5936
6071
  } while (effect !== finishedWork);
@@ -5958,14 +6093,16 @@ function commitWork(current, finishedWork) {
5958
6093
  case 11:
5959
6094
  case 14:
5960
6095
  case 15:
6096
+ commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
6097
+ commitHookEffectListMount(3, finishedWork);
5961
6098
  if (finishedWork.mode & 2)
5962
6099
  try {
5963
6100
  startLayoutEffectTimer(),
5964
- commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
6101
+ commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
5965
6102
  } finally {
5966
6103
  recordLayoutEffectDuration(finishedWork);
5967
6104
  }
5968
- else commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
6105
+ else commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
5969
6106
  return;
5970
6107
  case 12:
5971
6108
  return;
@@ -6055,8 +6192,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
6055
6192
  var _effect = effect,
6056
6193
  destroy = _effect.destroy,
6057
6194
  tag = _effect.tag;
6058
- void 0 !== destroy &&
6059
- 0 !== (tag & 2) &&
6195
+ void 0 === destroy ||
6196
+ (0 === (tag & 2) && 0 === (tag & 4)) ||
6060
6197
  (current.mode & 2
6061
6198
  ? (startLayoutEffectTimer(),
6062
6199
  safelyCallDestroy(current, root, destroy),
@@ -6117,14 +6254,14 @@ function commitMutationEffects(root, firstChild, committedLanes) {
6117
6254
  }
6118
6255
  }
6119
6256
  firstChild = root.child;
6120
- if (0 !== (root.subtreeFlags & 6454) && null !== firstChild)
6257
+ if (0 !== (root.subtreeFlags & 12854) && null !== firstChild)
6121
6258
  (firstChild.return = root), (nextEffect = firstChild);
6122
6259
  else
6123
6260
  for (; null !== nextEffect; ) {
6124
6261
  root = nextEffect;
6125
6262
  try {
6126
6263
  var flags = root.flags;
6127
- if (flags & 256) {
6264
+ if (flags & 512) {
6128
6265
  var current$jscomp$0 = root.alternate;
6129
6266
  if (null !== current$jscomp$0) {
6130
6267
  firstChild = current$jscomp$0;
@@ -6141,16 +6278,16 @@ function commitMutationEffects(root, firstChild, committedLanes) {
6141
6278
  else currentRef.current = null;
6142
6279
  }
6143
6280
  }
6144
- if (flags & 4096)
6281
+ if (flags & 8192)
6145
6282
  switch (root.tag) {
6146
6283
  case 13:
6147
6284
  if (null !== root.memoizedState) {
6148
- var current$95 = root.alternate;
6149
- if (null === current$95 || null === current$95.memoizedState)
6285
+ var current$92 = root.alternate;
6286
+ if (null === current$92 || null === current$92.memoizedState)
6150
6287
  globalMostRecentFallbackTime = now();
6151
6288
  }
6152
6289
  }
6153
- switch (flags & 2054) {
6290
+ switch (flags & 4102) {
6154
6291
  case 2:
6155
6292
  root.flags &= -3;
6156
6293
  break;
@@ -6158,11 +6295,11 @@ function commitMutationEffects(root, firstChild, committedLanes) {
6158
6295
  root.flags &= -3;
6159
6296
  commitWork(root.alternate, root);
6160
6297
  break;
6161
- case 2048:
6162
- root.flags &= -2049;
6298
+ case 4096:
6299
+ root.flags &= -4097;
6163
6300
  break;
6164
- case 2052:
6165
- root.flags &= -2049;
6301
+ case 4100:
6302
+ root.flags &= -4097;
6166
6303
  commitWork(root.alternate, root);
6167
6304
  break;
6168
6305
  case 4:
@@ -6189,16 +6326,16 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6189
6326
  if (
6190
6327
  ((root = nextEffect),
6191
6328
  (committedLanes = root.child),
6192
- 0 !== (root.subtreeFlags & 4420) && null !== committedLanes)
6329
+ 0 !== (root.subtreeFlags & 8772) && null !== committedLanes)
6193
6330
  )
6194
6331
  (committedLanes.return = root), (nextEffect = committedLanes);
6195
6332
  else
6196
6333
  for (root = finishedWork; null !== nextEffect; ) {
6197
6334
  committedLanes = nextEffect;
6198
- if (0 !== (committedLanes.flags & 4420)) {
6335
+ if (0 !== (committedLanes.flags & 8772)) {
6199
6336
  var current = committedLanes.alternate;
6200
6337
  try {
6201
- if (0 !== (committedLanes.flags & 4420))
6338
+ if (0 !== (committedLanes.flags & 8772))
6202
6339
  switch (committedLanes.tag) {
6203
6340
  case 0:
6204
6341
  case 11:
@@ -6206,11 +6343,11 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6206
6343
  if (committedLanes.mode & 2)
6207
6344
  try {
6208
6345
  startLayoutEffectTimer(),
6209
- commitHookEffectListMount(3, committedLanes);
6346
+ commitHookEffectListMount(5, committedLanes);
6210
6347
  } finally {
6211
6348
  recordLayoutEffectDuration(committedLanes);
6212
6349
  }
6213
- else commitHookEffectListMount(3, committedLanes);
6350
+ else commitHookEffectListMount(5, committedLanes);
6214
6351
  break;
6215
6352
  case 1:
6216
6353
  var instance = committedLanes.stateNode;
@@ -6256,22 +6393,22 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6256
6393
  commitUpdateQueue(committedLanes, updateQueue, instance);
6257
6394
  break;
6258
6395
  case 3:
6259
- var updateQueue$91 = committedLanes.updateQueue;
6260
- if (null !== updateQueue$91) {
6261
- var instance$92 = null;
6396
+ var updateQueue$88 = committedLanes.updateQueue;
6397
+ if (null !== updateQueue$88) {
6398
+ var instance$89 = null;
6262
6399
  if (null !== committedLanes.child)
6263
6400
  switch (committedLanes.child.tag) {
6264
6401
  case 5:
6265
- instance$92 =
6402
+ instance$89 =
6266
6403
  committedLanes.child.stateNode.canonical;
6267
6404
  break;
6268
6405
  case 1:
6269
- instance$92 = committedLanes.child.stateNode;
6406
+ instance$89 = committedLanes.child.stateNode;
6270
6407
  }
6271
6408
  commitUpdateQueue(
6272
6409
  committedLanes,
6273
- updateQueue$91,
6274
- instance$92
6410
+ updateQueue$88,
6411
+ instance$89
6275
6412
  );
6276
6413
  }
6277
6414
  break;
@@ -6287,7 +6424,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6287
6424
  onCommit = _finishedWork$memoize2.onCommit,
6288
6425
  onRender = _finishedWork$memoize2.onRender,
6289
6426
  effectDuration = committedLanes.stateNode.effectDuration;
6290
- instance$92 = commitTime;
6427
+ instance$89 = commitTime;
6291
6428
  current = null === current ? "mount" : "update";
6292
6429
  currentUpdateIsNested && (current = "nested-update");
6293
6430
  "function" === typeof onRender &&
@@ -6297,14 +6434,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6297
6434
  committedLanes.actualDuration,
6298
6435
  committedLanes.treeBaseDuration,
6299
6436
  committedLanes.actualStartTime,
6300
- instance$92
6437
+ instance$89
6301
6438
  );
6302
6439
  "function" === typeof onCommit &&
6303
6440
  onCommit(
6304
6441
  committedLanes.memoizedProps.id,
6305
6442
  current,
6306
6443
  effectDuration,
6307
- instance$92
6444
+ instance$89
6308
6445
  );
6309
6446
  enqueuePendingPassiveProfilerEffect(committedLanes);
6310
6447
  var parentFiber = committedLanes.return;
@@ -6333,28 +6470,28 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6333
6470
  "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
6334
6471
  );
6335
6472
  }
6336
- if (committedLanes.flags & 256) {
6337
- instance$92 = void 0;
6473
+ if (committedLanes.flags & 512) {
6474
+ instance$89 = void 0;
6338
6475
  current = committedLanes;
6339
6476
  var ref = current.ref;
6340
6477
  if (null !== ref) {
6341
6478
  var instance$jscomp$0 = current.stateNode;
6342
6479
  switch (current.tag) {
6343
6480
  case 5:
6344
- instance$92 = instance$jscomp$0.canonical;
6481
+ instance$89 = instance$jscomp$0.canonical;
6345
6482
  break;
6346
6483
  default:
6347
- instance$92 = instance$jscomp$0;
6484
+ instance$89 = instance$jscomp$0;
6348
6485
  }
6349
6486
  if ("function" === typeof ref)
6350
6487
  if (current.mode & 2)
6351
6488
  try {
6352
- startLayoutEffectTimer(), ref(instance$92);
6489
+ startLayoutEffectTimer(), ref(instance$89);
6353
6490
  } finally {
6354
6491
  recordLayoutEffectDuration(current);
6355
6492
  }
6356
- else ref(instance$92);
6357
- else ref.current = instance$92;
6493
+ else ref(instance$89);
6494
+ else ref.current = instance$89;
6358
6495
  }
6359
6496
  }
6360
6497
  } catch (error) {
@@ -6369,10 +6506,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6369
6506
  nextEffect = null;
6370
6507
  break;
6371
6508
  }
6372
- instance$92 = committedLanes.sibling;
6373
- if (null !== instance$92) {
6374
- instance$92.return = committedLanes.return;
6375
- nextEffect = instance$92;
6509
+ instance$89 = committedLanes.sibling;
6510
+ if (null !== instance$89) {
6511
+ instance$89.return = committedLanes.return;
6512
+ nextEffect = instance$89;
6376
6513
  break;
6377
6514
  }
6378
6515
  nextEffect = committedLanes.return;
@@ -6564,15 +6701,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
6564
6701
  root === workInProgressRoot ? workInProgressRootRenderLanes : 0
6565
6702
  );
6566
6703
  if (0 === lanes) return null;
6567
- var JSCompiler_inline_result =
6568
- 0 !== (lanes & root.expiredLanes)
6569
- ? !1
6570
- : 0 !== (root.current.mode & 32)
6571
- ? !0
6572
- : 0 === (lanes & 30);
6573
- if (JSCompiler_inline_result && !didTimeout) {
6704
+ if (
6705
+ includesBlockingLane(root, lanes) ||
6706
+ 0 !== (lanes & root.expiredLanes) ||
6707
+ didTimeout
6708
+ )
6709
+ didTimeout = renderRootSync(root, lanes);
6710
+ else {
6574
6711
  didTimeout = lanes;
6575
- JSCompiler_inline_result = executionContext;
6712
+ var prevExecutionContext = executionContext;
6576
6713
  executionContext |= 2;
6577
6714
  var prevDispatcher = pushDispatcher();
6578
6715
  if (
@@ -6599,30 +6736,44 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
6599
6736
  while (1);
6600
6737
  resetContextDependencies();
6601
6738
  ReactCurrentDispatcher$2.current = prevDispatcher;
6602
- executionContext = JSCompiler_inline_result;
6739
+ executionContext = prevExecutionContext;
6603
6740
  null !== workInProgress
6604
6741
  ? (didTimeout = 0)
6605
6742
  : ((workInProgressRoot = null),
6606
6743
  (workInProgressRootRenderLanes = 0),
6607
6744
  (didTimeout = workInProgressRootExitStatus));
6608
- } else didTimeout = renderRootSync(root, lanes);
6745
+ }
6609
6746
  if (0 !== didTimeout) {
6610
6747
  2 === didTimeout &&
6611
- ((JSCompiler_inline_result = executionContext),
6612
- (executionContext |= 8),
6613
- root.hydrate && ((root.hydrate = !1), shim(root.containerInfo)),
6614
- (prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
6615
- 0 !== prevDispatcher &&
6616
- ((lanes = prevDispatcher),
6617
- (didTimeout = renderRootSync(root, prevDispatcher))),
6618
- (executionContext = JSCompiler_inline_result));
6748
+ ((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
6749
+ 0 !== prevExecutionContext &&
6750
+ ((lanes = prevExecutionContext),
6751
+ (didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
6619
6752
  if (1 === didTimeout)
6620
6753
  throw ((originalCallbackNode = workInProgressRootFatalError),
6621
6754
  prepareFreshStack(root, 0),
6622
6755
  markRootSuspended$1(root, lanes),
6623
6756
  ensureRootIsScheduled(root, now()),
6624
6757
  originalCallbackNode);
6625
- root.finishedWork = root.current.alternate;
6758
+ prevDispatcher = !includesBlockingLane(root, lanes);
6759
+ prevExecutionContext = root.current.alternate;
6760
+ if (
6761
+ prevDispatcher &&
6762
+ !isRenderConsistentWithExternalStores(prevExecutionContext) &&
6763
+ ((didTimeout = renderRootSync(root, lanes)),
6764
+ 2 === didTimeout &&
6765
+ ((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
6766
+ 0 !== prevDispatcher &&
6767
+ ((lanes = prevDispatcher),
6768
+ (didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
6769
+ 1 === didTimeout)
6770
+ )
6771
+ throw ((originalCallbackNode = workInProgressRootFatalError),
6772
+ prepareFreshStack(root, 0),
6773
+ markRootSuspended$1(root, lanes),
6774
+ ensureRootIsScheduled(root, now()),
6775
+ originalCallbackNode);
6776
+ root.finishedWork = prevExecutionContext;
6626
6777
  root.finishedLanes = lanes;
6627
6778
  switch (didTimeout) {
6628
6779
  case 0:
@@ -6639,10 +6790,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
6639
6790
  10 < didTimeout)
6640
6791
  ) {
6641
6792
  if (0 !== getNextLanes(root, 0)) break;
6642
- JSCompiler_inline_result = root.suspendedLanes;
6643
- if ((JSCompiler_inline_result & lanes) !== lanes) {
6793
+ prevExecutionContext = root.suspendedLanes;
6794
+ if ((prevExecutionContext & lanes) !== lanes) {
6644
6795
  requestEventTime();
6645
- root.pingedLanes |= root.suspendedLanes & JSCompiler_inline_result;
6796
+ root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
6646
6797
  break;
6647
6798
  }
6648
6799
  root.timeoutHandle = scheduleTimeout(
@@ -6657,14 +6808,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
6657
6808
  markRootSuspended$1(root, lanes);
6658
6809
  if ((lanes & 4194240) === lanes) break;
6659
6810
  didTimeout = root.eventTimes;
6660
- for (JSCompiler_inline_result = -1; 0 < lanes; )
6811
+ for (prevExecutionContext = -1; 0 < lanes; )
6661
6812
  (memoizedUpdaters = 31 - clz32(lanes)),
6662
6813
  (prevDispatcher = 1 << memoizedUpdaters),
6663
6814
  (memoizedUpdaters = didTimeout[memoizedUpdaters]),
6664
- memoizedUpdaters > JSCompiler_inline_result &&
6665
- (JSCompiler_inline_result = memoizedUpdaters),
6815
+ memoizedUpdaters > prevExecutionContext &&
6816
+ (prevExecutionContext = memoizedUpdaters),
6666
6817
  (lanes &= ~prevDispatcher);
6667
- lanes = JSCompiler_inline_result;
6818
+ lanes = prevExecutionContext;
6668
6819
  lanes = now() - lanes;
6669
6820
  lanes =
6670
6821
  (120 > lanes
@@ -6701,6 +6852,48 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
6701
6852
  ? performConcurrentWorkOnRoot.bind(null, root)
6702
6853
  : null;
6703
6854
  }
6855
+ function recoverFromConcurrentError(root, errorRetryLanes) {
6856
+ var prevExecutionContext = executionContext;
6857
+ executionContext |= 8;
6858
+ root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
6859
+ root = renderRootSync(root, errorRetryLanes);
6860
+ executionContext = prevExecutionContext;
6861
+ return root;
6862
+ }
6863
+ function isRenderConsistentWithExternalStores(finishedWork) {
6864
+ for (var node = finishedWork; ; ) {
6865
+ if (node.flags & 16384) {
6866
+ var updateQueue = node.updateQueue;
6867
+ if (
6868
+ null !== updateQueue &&
6869
+ ((updateQueue = updateQueue.stores), null !== updateQueue)
6870
+ )
6871
+ for (var i = 0; i < updateQueue.length; i++) {
6872
+ var check = updateQueue[i],
6873
+ getSnapshot = check.getSnapshot;
6874
+ check = check.value;
6875
+ try {
6876
+ if (!objectIs(getSnapshot(), check)) return !1;
6877
+ } catch (error) {
6878
+ return !1;
6879
+ }
6880
+ }
6881
+ }
6882
+ updateQueue = node.child;
6883
+ if (node.subtreeFlags & 16384 && null !== updateQueue)
6884
+ (updateQueue.return = node), (node = updateQueue);
6885
+ else {
6886
+ if (node === finishedWork) break;
6887
+ for (; null === node.sibling; ) {
6888
+ if (null === node.return || node.return === finishedWork) return !0;
6889
+ node = node.return;
6890
+ }
6891
+ node.sibling.return = node.return;
6892
+ node = node.sibling;
6893
+ }
6894
+ }
6895
+ return !0;
6896
+ }
6704
6897
  function markRootSuspended$1(root, suspendedLanes) {
6705
6898
  suspendedLanes &= ~workInProgressRootPingedLanes;
6706
6899
  suspendedLanes &= ~workInProgressRootUpdatedLanes;
@@ -6725,7 +6918,7 @@ function performSyncWorkOnRoot(root) {
6725
6918
  if (0 !== root.tag && 2 === exitStatus) {
6726
6919
  var prevExecutionContext = executionContext;
6727
6920
  executionContext |= 8;
6728
- root.hydrate && ((root.hydrate = !1), shim(root.containerInfo));
6921
+ root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
6729
6922
  var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
6730
6923
  0 !== errorRetryLanes &&
6731
6924
  ((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
@@ -6852,7 +7045,7 @@ function handleError(root$jscomp$0, thrownValue) {
6852
7045
  sourceFiber = erroredWork,
6853
7046
  value = thrownValue;
6854
7047
  thrownValue = workInProgressRootRenderLanes;
6855
- sourceFiber.flags |= 8192;
7048
+ sourceFiber.flags |= 32768;
6856
7049
  isDevToolsPresent && restorePendingUpdaters(root, thrownValue);
6857
7050
  if (
6858
7051
  null !== value &&
@@ -6860,78 +7053,90 @@ function handleError(root$jscomp$0, thrownValue) {
6860
7053
  "function" === typeof value.then
6861
7054
  ) {
6862
7055
  var wakeable = value,
6863
- tag = sourceFiber.tag;
7056
+ sourceFiber$jscomp$0 = sourceFiber,
7057
+ tag = sourceFiber$jscomp$0.tag;
6864
7058
  if (
6865
- 0 === (sourceFiber.mode & 1) &&
7059
+ 0 === (sourceFiber$jscomp$0.mode & 1) &&
6866
7060
  (0 === tag || 11 === tag || 15 === tag)
6867
7061
  ) {
6868
- var currentSource = sourceFiber.alternate;
7062
+ var currentSource = sourceFiber$jscomp$0.alternate;
6869
7063
  currentSource
6870
- ? ((sourceFiber.updateQueue = currentSource.updateQueue),
6871
- (sourceFiber.memoizedState = currentSource.memoizedState),
6872
- (sourceFiber.lanes = currentSource.lanes))
6873
- : ((sourceFiber.updateQueue = null),
6874
- (sourceFiber.memoizedState = null));
7064
+ ? ((sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue),
7065
+ (sourceFiber$jscomp$0.memoizedState =
7066
+ currentSource.memoizedState),
7067
+ (sourceFiber$jscomp$0.lanes = currentSource.lanes))
7068
+ : ((sourceFiber$jscomp$0.updateQueue = null),
7069
+ (sourceFiber$jscomp$0.memoizedState = null));
6875
7070
  }
6876
- var hasInvisibleParentBoundary =
6877
- 0 !== (suspenseStackCursor.current & 1),
6878
- workInProgress$32 = returnFiber;
6879
- do {
6880
- var JSCompiler_temp;
6881
- if ((JSCompiler_temp = 13 === workInProgress$32.tag)) {
6882
- var nextState = workInProgress$32.memoizedState;
6883
- JSCompiler_temp =
6884
- null !== nextState
6885
- ? null !== nextState.dehydrated
7071
+ b: {
7072
+ sourceFiber$jscomp$0 = returnFiber;
7073
+ var sourceFiber$jscomp$1 = sourceFiber,
7074
+ rootRenderLanes = thrownValue,
7075
+ hasInvisibleParentBoundary =
7076
+ 0 !== (suspenseStackCursor.current & 1),
7077
+ node = sourceFiber$jscomp$0;
7078
+ do {
7079
+ var JSCompiler_temp;
7080
+ if ((JSCompiler_temp = 13 === node.tag)) {
7081
+ var nextState = node.memoizedState;
7082
+ JSCompiler_temp =
7083
+ null !== nextState
7084
+ ? null !== nextState.dehydrated
7085
+ ? !0
7086
+ : !1
7087
+ : !0 !== node.memoizedProps.unstable_avoidThisFallback
6886
7088
  ? !0
6887
- : !1
6888
- : !0 !==
6889
- workInProgress$32.memoizedProps.unstable_avoidThisFallback
6890
- ? !0
6891
- : hasInvisibleParentBoundary
6892
- ? !1
6893
- : !0;
6894
- }
6895
- if (JSCompiler_temp) {
6896
- var wakeables = workInProgress$32.updateQueue;
6897
- if (null === wakeables) {
6898
- var updateQueue = new Set();
6899
- updateQueue.add(wakeable);
6900
- workInProgress$32.updateQueue = updateQueue;
6901
- } else wakeables.add(wakeable);
6902
- if (
6903
- 0 === (workInProgress$32.mode & 1) &&
6904
- workInProgress$32 !== returnFiber
6905
- ) {
6906
- workInProgress$32.flags |= 128;
6907
- sourceFiber.flags |= 32768;
6908
- sourceFiber.flags &= -10053;
6909
- if (
6910
- enablePersistentOffscreenHostContainer &&
6911
- null === workInProgress$32.alternate
6912
- ) {
6913
- var offscreenContainer = workInProgress$32.child.child;
6914
- if (null !== offscreenContainer) {
6915
- var containerProps = getOffscreenContainerProps(
6916
- "hidden",
6917
- offscreenContainer.memoizedProps.children
6918
- );
6919
- offscreenContainer.pendingProps = containerProps;
6920
- offscreenContainer.memoizedProps = containerProps;
6921
- }
6922
- }
6923
- if (1 === sourceFiber.tag)
6924
- if (null === sourceFiber.alternate) sourceFiber.tag = 17;
7089
+ : hasInvisibleParentBoundary
7090
+ ? !1
7091
+ : !0;
7092
+ }
7093
+ if (JSCompiler_temp) {
7094
+ if (0 === (node.mode & 1)) {
7095
+ if (node === sourceFiber$jscomp$0) node.flags |= 65536;
6925
7096
  else {
6926
- var update = createUpdate(-1, 1);
6927
- update.tag = 2;
6928
- enqueueUpdate(sourceFiber, update);
7097
+ node.flags |= 128;
7098
+ sourceFiber$jscomp$1.flags |= 131072;
7099
+ sourceFiber$jscomp$1.flags &= -52805;
7100
+ if (
7101
+ enablePersistentOffscreenHostContainer &&
7102
+ null === node.alternate
7103
+ ) {
7104
+ var offscreenContainer = node.child.child;
7105
+ if (null !== offscreenContainer) {
7106
+ var containerProps = getOffscreenContainerProps(
7107
+ "hidden",
7108
+ offscreenContainer.memoizedProps.children
7109
+ );
7110
+ offscreenContainer.pendingProps = containerProps;
7111
+ offscreenContainer.memoizedProps = containerProps;
7112
+ }
7113
+ }
7114
+ if (1 === sourceFiber$jscomp$1.tag)
7115
+ if (null === sourceFiber$jscomp$1.alternate)
7116
+ sourceFiber$jscomp$1.tag = 17;
7117
+ else {
7118
+ var update = createUpdate(-1, 1);
7119
+ update.tag = 2;
7120
+ enqueueUpdate(sourceFiber$jscomp$1, update);
7121
+ }
7122
+ sourceFiber$jscomp$1.lanes |= 1;
6929
7123
  }
6930
- sourceFiber.lanes |= 1;
6931
- break a;
7124
+ var suspenseBoundary = node;
7125
+ break b;
7126
+ }
7127
+ node.flags |= 65536;
7128
+ node.lanes = rootRenderLanes;
7129
+ suspenseBoundary = node;
7130
+ break b;
6932
7131
  }
6933
- value = void 0;
6934
- sourceFiber = thrownValue;
7132
+ node = node.return;
7133
+ } while (null !== node);
7134
+ suspenseBoundary = null;
7135
+ }
7136
+ if (null !== suspenseBoundary) {
7137
+ value = void 0;
7138
+ sourceFiber = suspenseBoundary;
7139
+ if (sourceFiber.mode & 1) {
6935
7140
  var pingCache = root.pingCache;
6936
7141
  null === pingCache
6937
7142
  ? ((pingCache = root.pingCache = new PossiblyWeakMap()),
@@ -6940,72 +7145,75 @@ function handleError(root$jscomp$0, thrownValue) {
6940
7145
  : ((value = pingCache.get(wakeable)),
6941
7146
  void 0 === value &&
6942
7147
  ((value = new Set()), pingCache.set(wakeable, value)));
6943
- if (!value.has(sourceFiber)) {
6944
- value.add(sourceFiber);
7148
+ if (!value.has(thrownValue)) {
7149
+ value.add(thrownValue);
6945
7150
  var ping = pingSuspendedRoot.bind(
6946
7151
  null,
6947
7152
  root,
6948
7153
  wakeable,
6949
- sourceFiber
7154
+ thrownValue
6950
7155
  );
6951
- isDevToolsPresent && restorePendingUpdaters(root, sourceFiber);
7156
+ isDevToolsPresent && restorePendingUpdaters(root, thrownValue);
6952
7157
  wakeable.then(ping, ping);
6953
7158
  }
6954
- workInProgress$32.flags |= 16384;
6955
- workInProgress$32.lanes = thrownValue;
6956
- break a;
6957
7159
  }
6958
- workInProgress$32 = workInProgress$32.return;
6959
- } while (null !== workInProgress$32);
6960
- value = Error(
6961
- (getComponentNameFromFiber(sourceFiber) || "A React component") +
6962
- " suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
6963
- );
7160
+ var wakeables = sourceFiber.updateQueue;
7161
+ if (null === wakeables) {
7162
+ var updateQueue = new Set();
7163
+ updateQueue.add(wakeable);
7164
+ sourceFiber.updateQueue = updateQueue;
7165
+ } else wakeables.add(wakeable);
7166
+ break a;
7167
+ } else
7168
+ value = Error(
7169
+ (getComponentNameFromFiber(sourceFiber) || "A React component") +
7170
+ " suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
7171
+ );
6964
7172
  }
6965
- 5 !== workInProgressRootExitStatus &&
7173
+ 4 !== workInProgressRootExitStatus &&
6966
7174
  (workInProgressRootExitStatus = 2);
6967
7175
  value = createCapturedValue(value, sourceFiber);
6968
- workInProgress$32 = returnFiber;
7176
+ root = returnFiber;
6969
7177
  do {
6970
- switch (workInProgress$32.tag) {
7178
+ switch (root.tag) {
6971
7179
  case 3:
6972
- root = value;
6973
- workInProgress$32.flags |= 16384;
7180
+ wakeable = value;
7181
+ root.flags |= 65536;
6974
7182
  thrownValue &= -thrownValue;
6975
- workInProgress$32.lanes |= thrownValue;
6976
- var update$33 = createRootErrorUpdate(
6977
- workInProgress$32,
7183
+ root.lanes |= thrownValue;
7184
+ var update$jscomp$0 = createRootErrorUpdate(
6978
7185
  root,
7186
+ wakeable,
6979
7187
  thrownValue
6980
7188
  );
6981
- enqueueCapturedUpdate(workInProgress$32, update$33);
7189
+ enqueueCapturedUpdate(root, update$jscomp$0);
6982
7190
  break a;
6983
7191
  case 1:
6984
- root = value;
6985
- var ctor = workInProgress$32.type,
6986
- instance = workInProgress$32.stateNode;
7192
+ wakeable = value;
7193
+ var ctor = root.type,
7194
+ instance = root.stateNode;
6987
7195
  if (
6988
- 0 === (workInProgress$32.flags & 128) &&
7196
+ 0 === (root.flags & 128) &&
6989
7197
  ("function" === typeof ctor.getDerivedStateFromError ||
6990
7198
  (null !== instance &&
6991
7199
  "function" === typeof instance.componentDidCatch &&
6992
7200
  (null === legacyErrorBoundariesThatAlreadyFailed ||
6993
7201
  !legacyErrorBoundariesThatAlreadyFailed.has(instance))))
6994
7202
  ) {
6995
- workInProgress$32.flags |= 16384;
7203
+ root.flags |= 65536;
6996
7204
  thrownValue &= -thrownValue;
6997
- workInProgress$32.lanes |= thrownValue;
6998
- var update$36 = createClassErrorUpdate(
6999
- workInProgress$32,
7205
+ root.lanes |= thrownValue;
7206
+ var update$33 = createClassErrorUpdate(
7000
7207
  root,
7208
+ wakeable,
7001
7209
  thrownValue
7002
7210
  );
7003
- enqueueCapturedUpdate(workInProgress$32, update$36);
7211
+ enqueueCapturedUpdate(root, update$33);
7004
7212
  break a;
7005
7213
  }
7006
7214
  }
7007
- workInProgress$32 = workInProgress$32.return;
7008
- } while (null !== workInProgress$32);
7215
+ root = root.return;
7216
+ } while (null !== root);
7009
7217
  }
7010
7218
  completeUnitOfWork(erroredWork);
7011
7219
  } catch (yetAnotherThrownValue) {
@@ -7082,7 +7290,7 @@ function completeUnitOfWork(unitOfWork) {
7082
7290
  do {
7083
7291
  var current = completedWork.alternate;
7084
7292
  unitOfWork = completedWork.return;
7085
- if (0 === (completedWork.flags & 8192)) {
7293
+ if (0 === (completedWork.flags & 32768)) {
7086
7294
  if (0 === (completedWork.mode & 2))
7087
7295
  current = completeWork(current, completedWork, subtreeRenderLanes);
7088
7296
  else {
@@ -7099,7 +7307,7 @@ function completeUnitOfWork(unitOfWork) {
7099
7307
  } else {
7100
7308
  current = unwindWork(completedWork);
7101
7309
  if (null !== current) {
7102
- current.flags &= 8191;
7310
+ current.flags &= 32767;
7103
7311
  workInProgress = current;
7104
7312
  return;
7105
7313
  }
@@ -7111,7 +7319,7 @@ function completeUnitOfWork(unitOfWork) {
7111
7319
  completedWork.actualDuration = current;
7112
7320
  }
7113
7321
  null !== unitOfWork &&
7114
- ((unitOfWork.flags |= 8192),
7322
+ ((unitOfWork.flags |= 32768),
7115
7323
  (unitOfWork.subtreeFlags = 0),
7116
7324
  (unitOfWork.deletions = null));
7117
7325
  }
@@ -7158,16 +7366,16 @@ function commitRootImpl(root, renderPriorityLevel) {
7158
7366
  root === workInProgressRoot &&
7159
7367
  ((workInProgress = workInProgressRoot = null),
7160
7368
  (workInProgressRootRenderLanes = 0));
7161
- (0 === (finishedWork.subtreeFlags & 1040) &&
7162
- 0 === (finishedWork.flags & 1040)) ||
7369
+ (0 === (finishedWork.subtreeFlags & 2064) &&
7370
+ 0 === (finishedWork.flags & 2064)) ||
7163
7371
  rootDoesHavePassiveEffects ||
7164
7372
  ((rootDoesHavePassiveEffects = !0),
7165
7373
  scheduleCallback$1(NormalPriority, function() {
7166
7374
  flushPassiveEffects();
7167
7375
  return null;
7168
7376
  }));
7169
- remainingLanes = 0 !== (finishedWork.flags & 8054);
7170
- if (0 !== (finishedWork.subtreeFlags & 8054) || remainingLanes) {
7377
+ remainingLanes = 0 !== (finishedWork.flags & 15990);
7378
+ if (0 !== (finishedWork.subtreeFlags & 15990) || remainingLanes) {
7171
7379
  remainingLanes = ReactCurrentBatchConfig$2.transition;
7172
7380
  ReactCurrentBatchConfig$2.transition = 0;
7173
7381
  var previousPriority = currentUpdatePriority;
@@ -7191,12 +7399,6 @@ function commitRootImpl(root, renderPriorityLevel) {
7191
7399
  (pendingPassiveEffectsLanes = lanes));
7192
7400
  remainingLanes = root.pendingLanes;
7193
7401
  0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
7194
- 0 !== (remainingLanes & 1)
7195
- ? ((nestedUpdateScheduled = !0),
7196
- root === rootWithNestedUpdates
7197
- ? nestedUpdateCount++
7198
- : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
7199
- : (nestedUpdateCount = 0);
7200
7402
  onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
7201
7403
  isDevToolsPresent && root.memoizedUpdaters.clear();
7202
7404
  ensureRootIsScheduled(root, now());
@@ -7208,6 +7410,13 @@ function commitRootImpl(root, renderPriorityLevel) {
7208
7410
  0 !== (pendingPassiveEffectsLanes & 1) &&
7209
7411
  0 !== root.tag &&
7210
7412
  flushPassiveEffects();
7413
+ remainingLanes = root.pendingLanes;
7414
+ 0 !== (remainingLanes & 1)
7415
+ ? ((nestedUpdateScheduled = !0),
7416
+ root === rootWithNestedUpdates
7417
+ ? nestedUpdateCount++
7418
+ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
7419
+ : (nestedUpdateCount = 0);
7211
7420
  flushSyncCallbacks();
7212
7421
  return null;
7213
7422
  }
@@ -7246,9 +7455,9 @@ function flushPassiveEffects() {
7246
7455
  case 15:
7247
7456
  current.mode & 2
7248
7457
  ? ((passiveEffectStartTime = now$1()),
7249
- commitHookEffectListUnmount(4, current, fiber),
7458
+ commitHookEffectListUnmount(8, current, fiber),
7250
7459
  recordPassiveEffectDuration(current))
7251
- : commitHookEffectListUnmount(4, current, fiber);
7460
+ : commitHookEffectListUnmount(8, current, fiber);
7252
7461
  }
7253
7462
  var child$jscomp$0 = fiber$jscomp$0.child;
7254
7463
  if (null !== child$jscomp$0)
@@ -7288,21 +7497,21 @@ function flushPassiveEffects() {
7288
7497
  nextEffect = fiber;
7289
7498
  }
7290
7499
  }
7291
- if (0 !== (fiber.subtreeFlags & 1040) && null !== child)
7500
+ if (0 !== (fiber.subtreeFlags & 2064) && null !== child)
7292
7501
  (child.return = fiber), (nextEffect = child);
7293
7502
  else
7294
7503
  b: for (; null !== nextEffect; ) {
7295
7504
  fiber = nextEffect;
7296
- if (0 !== (fiber.flags & 1024))
7505
+ if (0 !== (fiber.flags & 2048))
7297
7506
  switch (((i = fiber), i.tag)) {
7298
7507
  case 0:
7299
7508
  case 11:
7300
7509
  case 15:
7301
7510
  i.mode & 2
7302
7511
  ? ((passiveEffectStartTime = now$1()),
7303
- commitHookEffectListUnmount(5, i, i.return),
7512
+ commitHookEffectListUnmount(9, i, i.return),
7304
7513
  recordPassiveEffectDuration(i))
7305
- : commitHookEffectListUnmount(5, i, i.return);
7514
+ : commitHookEffectListUnmount(9, i, i.return);
7306
7515
  }
7307
7516
  var sibling$jscomp$0 = fiber.sibling;
7308
7517
  if (null !== sibling$jscomp$0) {
@@ -7317,12 +7526,12 @@ function flushPassiveEffects() {
7317
7526
  for (nextEffect = finishedWork; null !== nextEffect; ) {
7318
7527
  child = nextEffect;
7319
7528
  var firstChild = child.child;
7320
- if (0 !== (child.subtreeFlags & 1040) && null !== firstChild)
7529
+ if (0 !== (child.subtreeFlags & 2064) && null !== firstChild)
7321
7530
  (firstChild.return = child), (nextEffect = firstChild);
7322
7531
  else
7323
7532
  b: for (child = finishedWork; null !== nextEffect; ) {
7324
7533
  deletions = nextEffect;
7325
- if (0 !== (deletions.flags & 1024))
7534
+ if (0 !== (deletions.flags & 2048))
7326
7535
  try {
7327
7536
  switch (((fiberToDelete = deletions), fiberToDelete.tag)) {
7328
7537
  case 0:
@@ -7331,11 +7540,11 @@ function flushPassiveEffects() {
7331
7540
  if (fiberToDelete.mode & 2) {
7332
7541
  passiveEffectStartTime = now$1();
7333
7542
  try {
7334
- commitHookEffectListMount(5, fiberToDelete);
7543
+ commitHookEffectListMount(9, fiberToDelete);
7335
7544
  } finally {
7336
7545
  recordPassiveEffectDuration(fiberToDelete);
7337
7546
  }
7338
- } else commitHookEffectListMount(5, fiberToDelete);
7547
+ } else commitHookEffectListMount(9, fiberToDelete);
7339
7548
  }
7340
7549
  } catch (error) {
7341
7550
  captureCommitPhaseError(deletions, deletions.return, error);
@@ -7530,7 +7739,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
7530
7739
  renderLanes
7531
7740
  )
7532
7741
  );
7533
- didReceiveUpdate = 0 !== (current.flags & 32768) ? !0 : !1;
7742
+ didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;
7534
7743
  }
7535
7744
  else didReceiveUpdate = !1;
7536
7745
  workInProgress.lanes = 0;
@@ -8011,7 +8220,7 @@ function createWorkInProgress(current, pendingProps) {
8011
8220
  (workInProgress.deletions = null),
8012
8221
  (workInProgress.actualDuration = 0),
8013
8222
  (workInProgress.actualStartTime = -1));
8014
- workInProgress.flags = current.flags & 1835008;
8223
+ workInProgress.flags = current.flags & 7340032;
8015
8224
  workInProgress.childLanes = current.childLanes;
8016
8225
  workInProgress.lanes = current.lanes;
8017
8226
  workInProgress.child = current.child;
@@ -8107,8 +8316,7 @@ function createFiberFromTypeAndProps(
8107
8316
  }
8108
8317
  throw Error(
8109
8318
  "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
8110
- (null == type ? type : typeof type) +
8111
- "."
8319
+ ((null == type ? type : typeof type) + ".")
8112
8320
  );
8113
8321
  }
8114
8322
  key = createFiber(fiberTag, pendingProps, key, mode);
@@ -8161,7 +8369,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
8161
8369
  this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
8162
8370
  this.timeoutHandle = -1;
8163
8371
  this.pendingContext = this.context = null;
8164
- this.hydrate = hydrate;
8372
+ this.isDehydrated = hydrate;
8165
8373
  this.callbackNode = null;
8166
8374
  this.callbackPriority = 0;
8167
8375
  this.eventTimes = createLaneMap(0);
@@ -8189,9 +8397,9 @@ function findHostInstance(component) {
8189
8397
  if (void 0 === fiber) {
8190
8398
  if ("function" === typeof component.render)
8191
8399
  throw Error("Unable to find node on an unmounted component.");
8400
+ component = Object.keys(component).join(",");
8192
8401
  throw Error(
8193
- "Argument appears to not be a ReactComponent. Keys: " +
8194
- Object.keys(component)
8402
+ "Argument appears to not be a ReactComponent. Keys: " + component
8195
8403
  );
8196
8404
  }
8197
8405
  component = findCurrentHostFiber(fiber);
@@ -8375,10 +8583,10 @@ batchedUpdatesImpl = function(fn, a) {
8375
8583
  }
8376
8584
  };
8377
8585
  var roots = new Map(),
8378
- devToolsConfig$jscomp$inline_978 = {
8586
+ devToolsConfig$jscomp$inline_965 = {
8379
8587
  findFiberByHostInstance: getInstanceFromInstance,
8380
8588
  bundleType: 0,
8381
- version: "18.0.0-bd5bf555e-20210823",
8589
+ version: "18.0.0-afcb9cdc9-20211008",
8382
8590
  rendererPackageName: "react-native-renderer",
8383
8591
  rendererConfig: {
8384
8592
  getInspectorDataForViewTag: function() {
@@ -8394,10 +8602,10 @@ var roots = new Map(),
8394
8602
  }
8395
8603
  };
8396
8604
  var internals$jscomp$inline_1239 = {
8397
- bundleType: devToolsConfig$jscomp$inline_978.bundleType,
8398
- version: devToolsConfig$jscomp$inline_978.version,
8399
- rendererPackageName: devToolsConfig$jscomp$inline_978.rendererPackageName,
8400
- rendererConfig: devToolsConfig$jscomp$inline_978.rendererConfig,
8605
+ bundleType: devToolsConfig$jscomp$inline_965.bundleType,
8606
+ version: devToolsConfig$jscomp$inline_965.version,
8607
+ rendererPackageName: devToolsConfig$jscomp$inline_965.rendererPackageName,
8608
+ rendererConfig: devToolsConfig$jscomp$inline_965.rendererConfig,
8401
8609
  overrideHookState: null,
8402
8610
  overrideHookStateDeletePath: null,
8403
8611
  overrideHookStateRenamePath: null,
@@ -8413,14 +8621,14 @@ var internals$jscomp$inline_1239 = {
8413
8621
  return null === fiber ? null : fiber.stateNode;
8414
8622
  },
8415
8623
  findFiberByHostInstance:
8416
- devToolsConfig$jscomp$inline_978.findFiberByHostInstance ||
8624
+ devToolsConfig$jscomp$inline_965.findFiberByHostInstance ||
8417
8625
  emptyFindFiberByHostInstance,
8418
8626
  findHostInstancesForRefresh: null,
8419
8627
  scheduleRefresh: null,
8420
8628
  scheduleRoot: null,
8421
8629
  setRefreshHandler: null,
8422
8630
  getCurrentFiber: null,
8423
- reconcilerVersion: "18.0.0-bd5bf555e-20210823"
8631
+ reconcilerVersion: "18.0.0-afcb9cdc9-20211008"
8424
8632
  };
8425
8633
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
8426
8634
  var hook$jscomp$inline_1240 = __REACT_DEVTOOLS_GLOBAL_HOOK__;