react-dom 19.1.0-canary-4dff0e62-20241213 → 19.1.0-canary-e06c72fc-20241215

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.
@@ -51,7 +51,6 @@ var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
51
51
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
52
52
  REACT_LAZY_TYPE = Symbol.for("react.lazy");
53
53
  Symbol.for("react.scope");
54
- Symbol.for("react.debug_trace_mode");
55
54
  var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
56
55
  Symbol.for("react.legacy_hidden");
57
56
  Symbol.for("react.tracing_marker");
@@ -284,13 +283,11 @@ function describeFiber(fiber) {
284
283
  return describeBuiltInComponentFrame("SuspenseList");
285
284
  case 0:
286
285
  case 15:
287
- return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber;
286
+ return describeNativeComponentFrame(fiber.type, !1);
288
287
  case 11:
289
- return (
290
- (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber
291
- );
288
+ return describeNativeComponentFrame(fiber.type.render, !1);
292
289
  case 1:
293
- return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber;
290
+ return describeNativeComponentFrame(fiber.type, !0);
294
291
  default:
295
292
  return "";
296
293
  }
@@ -928,12 +925,7 @@ function registerDirectEvent(registrationName, dependencies) {
928
925
  )
929
926
  allNativeEvents.add(dependencies[registrationName]);
930
927
  }
931
- var canUseDOM = !(
932
- "undefined" === typeof window ||
933
- "undefined" === typeof window.document ||
934
- "undefined" === typeof window.document.createElement
935
- ),
936
- VALID_ATTRIBUTE_NAME_REGEX = RegExp(
928
+ var VALID_ATTRIBUTE_NAME_REGEX = RegExp(
937
929
  "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
938
930
  ),
939
931
  illegalAttributeNameCache = {},
@@ -1542,7 +1534,12 @@ function getListener(inst, registrationName) {
1542
1534
  );
1543
1535
  return stateNode;
1544
1536
  }
1545
- var passiveBrowserEventsSupported = !1;
1537
+ var canUseDOM = !(
1538
+ "undefined" === typeof window ||
1539
+ "undefined" === typeof window.document ||
1540
+ "undefined" === typeof window.document.createElement
1541
+ ),
1542
+ passiveBrowserEventsSupported = !1;
1546
1543
  if (canUseDOM)
1547
1544
  try {
1548
1545
  var options = {};
@@ -2029,19 +2026,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
2029
2026
  }
2030
2027
  var isInputEventSupported = !1;
2031
2028
  if (canUseDOM) {
2032
- var JSCompiler_inline_result$jscomp$282;
2029
+ var JSCompiler_inline_result$jscomp$279;
2033
2030
  if (canUseDOM) {
2034
- var isSupported$jscomp$inline_418 = "oninput" in document;
2035
- if (!isSupported$jscomp$inline_418) {
2036
- var element$jscomp$inline_419 = document.createElement("div");
2037
- element$jscomp$inline_419.setAttribute("oninput", "return;");
2038
- isSupported$jscomp$inline_418 =
2039
- "function" === typeof element$jscomp$inline_419.oninput;
2031
+ var isSupported$jscomp$inline_409 = "oninput" in document;
2032
+ if (!isSupported$jscomp$inline_409) {
2033
+ var element$jscomp$inline_410 = document.createElement("div");
2034
+ element$jscomp$inline_410.setAttribute("oninput", "return;");
2035
+ isSupported$jscomp$inline_409 =
2036
+ "function" === typeof element$jscomp$inline_410.oninput;
2040
2037
  }
2041
- JSCompiler_inline_result$jscomp$282 = isSupported$jscomp$inline_418;
2042
- } else JSCompiler_inline_result$jscomp$282 = !1;
2038
+ JSCompiler_inline_result$jscomp$279 = isSupported$jscomp$inline_409;
2039
+ } else JSCompiler_inline_result$jscomp$279 = !1;
2043
2040
  isInputEventSupported =
2044
- JSCompiler_inline_result$jscomp$282 &&
2041
+ JSCompiler_inline_result$jscomp$279 &&
2045
2042
  (!document.documentMode || 9 < document.documentMode);
2046
2043
  }
2047
2044
  function stopWatchingForValueChange() {
@@ -3094,10 +3091,9 @@ function updateWorkInProgressHook() {
3094
3091
  }
3095
3092
  return workInProgressHook;
3096
3093
  }
3097
- var createFunctionComponentUpdateQueue;
3098
- createFunctionComponentUpdateQueue = function () {
3094
+ function createFunctionComponentUpdateQueue() {
3099
3095
  return { lastEffect: null, events: null, stores: null, memoCache: null };
3100
- };
3096
+ }
3101
3097
  function useThenable(thenable) {
3102
3098
  var index = thenableIndexCounter$1;
3103
3099
  thenableIndexCounter$1 += 1;
@@ -4025,321 +4021,326 @@ function entangleTransitionUpdate(root, queue, lane) {
4025
4021
  }
4026
4022
  }
4027
4023
  var ContextOnlyDispatcher = {
4028
- readContext: readContext,
4029
- use: use,
4030
- useCallback: throwInvalidHookError,
4031
- useContext: throwInvalidHookError,
4032
- useEffect: throwInvalidHookError,
4033
- useImperativeHandle: throwInvalidHookError,
4034
- useLayoutEffect: throwInvalidHookError,
4035
- useInsertionEffect: throwInvalidHookError,
4036
- useMemo: throwInvalidHookError,
4037
- useReducer: throwInvalidHookError,
4038
- useRef: throwInvalidHookError,
4039
- useState: throwInvalidHookError,
4040
- useDebugValue: throwInvalidHookError,
4041
- useDeferredValue: throwInvalidHookError,
4042
- useTransition: throwInvalidHookError,
4043
- useSyncExternalStore: throwInvalidHookError,
4044
- useId: throwInvalidHookError
4045
- };
4046
- ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
4047
- ContextOnlyDispatcher.useMemoCache = throwInvalidHookError;
4048
- ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError;
4049
- ContextOnlyDispatcher.useFormState = throwInvalidHookError;
4050
- ContextOnlyDispatcher.useActionState = throwInvalidHookError;
4051
- ContextOnlyDispatcher.useOptimistic = throwInvalidHookError;
4052
- var HooksDispatcherOnMount = {
4053
- readContext: readContext,
4054
- use: use,
4055
- useCallback: function (callback, deps) {
4056
- mountWorkInProgressHook().memoizedState = [
4057
- callback,
4058
- void 0 === deps ? null : deps
4059
- ];
4060
- return callback;
4061
- },
4062
- useContext: readContext,
4063
- useEffect: mountEffect,
4064
- useImperativeHandle: function (ref, create, deps) {
4065
- deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
4066
- mountEffectImpl(
4067
- 4194308,
4068
- 4,
4069
- imperativeHandleEffect.bind(null, create, ref),
4070
- deps
4071
- );
4072
- },
4073
- useLayoutEffect: function (create, deps) {
4074
- return mountEffectImpl(4194308, 4, create, deps);
4024
+ readContext: readContext,
4025
+ use: use,
4026
+ useCallback: throwInvalidHookError,
4027
+ useContext: throwInvalidHookError,
4028
+ useEffect: throwInvalidHookError,
4029
+ useImperativeHandle: throwInvalidHookError,
4030
+ useLayoutEffect: throwInvalidHookError,
4031
+ useInsertionEffect: throwInvalidHookError,
4032
+ useMemo: throwInvalidHookError,
4033
+ useReducer: throwInvalidHookError,
4034
+ useRef: throwInvalidHookError,
4035
+ useState: throwInvalidHookError,
4036
+ useDebugValue: throwInvalidHookError,
4037
+ useDeferredValue: throwInvalidHookError,
4038
+ useTransition: throwInvalidHookError,
4039
+ useSyncExternalStore: throwInvalidHookError,
4040
+ useId: throwInvalidHookError,
4041
+ useHostTransitionStatus: throwInvalidHookError,
4042
+ useFormState: throwInvalidHookError,
4043
+ useActionState: throwInvalidHookError,
4044
+ useOptimistic: throwInvalidHookError,
4045
+ useMemoCache: throwInvalidHookError,
4046
+ useCacheRefresh: throwInvalidHookError
4075
4047
  },
4076
- useInsertionEffect: function (create, deps) {
4077
- mountEffectImpl(4, 2, create, deps);
4078
- },
4079
- useMemo: function (nextCreate, deps) {
4080
- var hook = mountWorkInProgressHook();
4081
- deps = void 0 === deps ? null : deps;
4082
- var nextValue = nextCreate();
4083
- if (shouldDoubleInvokeUserFnsInHooksDEV) {
4084
- setIsStrictModeForDevtools(!0);
4085
- try {
4086
- nextCreate();
4087
- } finally {
4088
- setIsStrictModeForDevtools(!1);
4089
- }
4090
- }
4091
- hook.memoizedState = [nextValue, deps];
4092
- return nextValue;
4093
- },
4094
- useReducer: function (reducer, initialArg, init) {
4095
- var hook = mountWorkInProgressHook();
4096
- if (void 0 !== init) {
4097
- var initialState = init(initialArg);
4048
+ HooksDispatcherOnMount = {
4049
+ readContext: readContext,
4050
+ use: use,
4051
+ useCallback: function (callback, deps) {
4052
+ mountWorkInProgressHook().memoizedState = [
4053
+ callback,
4054
+ void 0 === deps ? null : deps
4055
+ ];
4056
+ return callback;
4057
+ },
4058
+ useContext: readContext,
4059
+ useEffect: mountEffect,
4060
+ useImperativeHandle: function (ref, create, deps) {
4061
+ deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
4062
+ mountEffectImpl(
4063
+ 4194308,
4064
+ 4,
4065
+ imperativeHandleEffect.bind(null, create, ref),
4066
+ deps
4067
+ );
4068
+ },
4069
+ useLayoutEffect: function (create, deps) {
4070
+ return mountEffectImpl(4194308, 4, create, deps);
4071
+ },
4072
+ useInsertionEffect: function (create, deps) {
4073
+ mountEffectImpl(4, 2, create, deps);
4074
+ },
4075
+ useMemo: function (nextCreate, deps) {
4076
+ var hook = mountWorkInProgressHook();
4077
+ deps = void 0 === deps ? null : deps;
4078
+ var nextValue = nextCreate();
4098
4079
  if (shouldDoubleInvokeUserFnsInHooksDEV) {
4099
4080
  setIsStrictModeForDevtools(!0);
4100
4081
  try {
4101
- init(initialArg);
4082
+ nextCreate();
4102
4083
  } finally {
4103
4084
  setIsStrictModeForDevtools(!1);
4104
4085
  }
4105
4086
  }
4106
- } else initialState = initialArg;
4107
- hook.memoizedState = hook.baseState = initialState;
4108
- reducer = {
4109
- pending: null,
4110
- lanes: 0,
4111
- dispatch: null,
4112
- lastRenderedReducer: reducer,
4113
- lastRenderedState: initialState
4114
- };
4115
- hook.queue = reducer;
4116
- reducer = reducer.dispatch = dispatchReducerAction.bind(
4117
- null,
4118
- currentlyRenderingFiber$1,
4119
- reducer
4120
- );
4121
- return [hook.memoizedState, reducer];
4122
- },
4123
- useRef: function (initialValue) {
4124
- var hook = mountWorkInProgressHook();
4125
- initialValue = { current: initialValue };
4126
- return (hook.memoizedState = initialValue);
4127
- },
4128
- useState: function (initialState) {
4129
- initialState = mountStateImpl(initialState);
4130
- var queue = initialState.queue,
4131
- dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue);
4132
- queue.dispatch = dispatch;
4133
- return [initialState.memoizedState, dispatch];
4134
- },
4135
- useDebugValue: mountDebugValue,
4136
- useDeferredValue: function (value, initialValue) {
4137
- var hook = mountWorkInProgressHook();
4138
- return mountDeferredValueImpl(hook, value, initialValue);
4139
- },
4140
- useTransition: function () {
4141
- var stateHook = mountStateImpl(!1);
4142
- stateHook = startTransition.bind(
4143
- null,
4144
- currentlyRenderingFiber$1,
4145
- stateHook.queue,
4146
- !0,
4147
- !1
4148
- );
4149
- mountWorkInProgressHook().memoizedState = stateHook;
4150
- return [!1, stateHook];
4151
- },
4152
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
4153
- var fiber = currentlyRenderingFiber$1,
4154
- hook = mountWorkInProgressHook();
4155
- if (isHydrating) {
4156
- if (void 0 === getServerSnapshot)
4157
- throw Error(formatProdErrorMessage(407));
4158
- getServerSnapshot = getServerSnapshot();
4159
- } else {
4160
- getServerSnapshot = getSnapshot();
4161
- if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));
4162
- 0 !== (workInProgressRootRenderLanes & 60) ||
4163
- pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
4164
- }
4165
- hook.memoizedState = getServerSnapshot;
4166
- var inst = { value: getServerSnapshot, getSnapshot: getSnapshot };
4167
- hook.queue = inst;
4168
- mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [
4169
- subscribe
4170
- ]);
4171
- fiber.flags |= 2048;
4172
- pushSimpleEffect(
4173
- 9,
4174
- createEffectInstance(),
4175
- updateStoreInstance.bind(
4087
+ hook.memoizedState = [nextValue, deps];
4088
+ return nextValue;
4089
+ },
4090
+ useReducer: function (reducer, initialArg, init) {
4091
+ var hook = mountWorkInProgressHook();
4092
+ if (void 0 !== init) {
4093
+ var initialState = init(initialArg);
4094
+ if (shouldDoubleInvokeUserFnsInHooksDEV) {
4095
+ setIsStrictModeForDevtools(!0);
4096
+ try {
4097
+ init(initialArg);
4098
+ } finally {
4099
+ setIsStrictModeForDevtools(!1);
4100
+ }
4101
+ }
4102
+ } else initialState = initialArg;
4103
+ hook.memoizedState = hook.baseState = initialState;
4104
+ reducer = {
4105
+ pending: null,
4106
+ lanes: 0,
4107
+ dispatch: null,
4108
+ lastRenderedReducer: reducer,
4109
+ lastRenderedState: initialState
4110
+ };
4111
+ hook.queue = reducer;
4112
+ reducer = reducer.dispatch = dispatchReducerAction.bind(
4176
4113
  null,
4177
- fiber,
4178
- inst,
4179
- getServerSnapshot,
4180
- getSnapshot
4181
- ),
4182
- null
4183
- );
4184
- return getServerSnapshot;
4185
- },
4186
- useId: function () {
4187
- var hook = mountWorkInProgressHook(),
4188
- identifierPrefix = workInProgressRoot.identifierPrefix;
4189
- if (isHydrating) {
4190
- var JSCompiler_inline_result = treeContextOverflow;
4191
- var idWithLeadingBit = treeContextId;
4192
- JSCompiler_inline_result =
4193
- (
4194
- idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))
4195
- ).toString(32) + JSCompiler_inline_result;
4196
- identifierPrefix =
4197
- ":" + identifierPrefix + "R" + JSCompiler_inline_result;
4198
- JSCompiler_inline_result = localIdCounter++;
4199
- 0 < JSCompiler_inline_result &&
4200
- (identifierPrefix += "H" + JSCompiler_inline_result.toString(32));
4201
- identifierPrefix += ":";
4202
- } else
4203
- (JSCompiler_inline_result = globalClientIdCounter++),
4204
- (identifierPrefix =
4205
- ":" +
4206
- identifierPrefix +
4207
- "r" +
4208
- JSCompiler_inline_result.toString(32) +
4209
- ":");
4210
- return (hook.memoizedState = identifierPrefix);
4211
- },
4212
- useCacheRefresh: function () {
4213
- return (mountWorkInProgressHook().memoizedState = refreshCache.bind(
4214
- null,
4215
- currentlyRenderingFiber$1
4216
- ));
4217
- }
4218
- };
4219
- HooksDispatcherOnMount.useMemoCache = useMemoCache;
4220
- HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus;
4221
- HooksDispatcherOnMount.useFormState = mountActionState;
4222
- HooksDispatcherOnMount.useActionState = mountActionState;
4223
- HooksDispatcherOnMount.useOptimistic = function (passthrough) {
4224
- var hook = mountWorkInProgressHook();
4225
- hook.memoizedState = hook.baseState = passthrough;
4226
- var queue = {
4227
- pending: null,
4228
- lanes: 0,
4229
- dispatch: null,
4230
- lastRenderedReducer: null,
4231
- lastRenderedState: null
4232
- };
4233
- hook.queue = queue;
4234
- hook = dispatchOptimisticSetState.bind(
4235
- null,
4236
- currentlyRenderingFiber$1,
4237
- !0,
4238
- queue
4239
- );
4240
- queue.dispatch = hook;
4241
- return [passthrough, hook];
4242
- };
4243
- var HooksDispatcherOnUpdate = {
4244
- readContext: readContext,
4245
- use: use,
4246
- useCallback: updateCallback,
4247
- useContext: readContext,
4248
- useEffect: updateEffect,
4249
- useImperativeHandle: updateImperativeHandle,
4250
- useInsertionEffect: updateInsertionEffect,
4251
- useLayoutEffect: updateLayoutEffect,
4252
- useMemo: updateMemo,
4253
- useReducer: updateReducer,
4254
- useRef: updateRef,
4255
- useState: function () {
4256
- return updateReducer(basicStateReducer);
4257
- },
4258
- useDebugValue: mountDebugValue,
4259
- useDeferredValue: function (value, initialValue) {
4260
- var hook = updateWorkInProgressHook();
4261
- return updateDeferredValueImpl(
4262
- hook,
4263
- currentHook.memoizedState,
4264
- value,
4265
- initialValue
4266
- );
4267
- },
4268
- useTransition: function () {
4269
- var booleanOrThenable = updateReducer(basicStateReducer)[0],
4270
- start = updateWorkInProgressHook().memoizedState;
4271
- return [
4272
- "boolean" === typeof booleanOrThenable
4273
- ? booleanOrThenable
4274
- : useThenable(booleanOrThenable),
4275
- start
4276
- ];
4277
- },
4278
- useSyncExternalStore: updateSyncExternalStore,
4279
- useId: updateId
4280
- };
4281
- HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh;
4282
- HooksDispatcherOnUpdate.useMemoCache = useMemoCache;
4283
- HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus;
4284
- HooksDispatcherOnUpdate.useFormState = updateActionState;
4285
- HooksDispatcherOnUpdate.useActionState = updateActionState;
4286
- HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) {
4287
- var hook = updateWorkInProgressHook();
4288
- return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
4289
- };
4290
- var HooksDispatcherOnRerender = {
4291
- readContext: readContext,
4292
- use: use,
4293
- useCallback: updateCallback,
4294
- useContext: readContext,
4295
- useEffect: updateEffect,
4296
- useImperativeHandle: updateImperativeHandle,
4297
- useInsertionEffect: updateInsertionEffect,
4298
- useLayoutEffect: updateLayoutEffect,
4299
- useMemo: updateMemo,
4300
- useReducer: rerenderReducer,
4301
- useRef: updateRef,
4302
- useState: function () {
4303
- return rerenderReducer(basicStateReducer);
4304
- },
4305
- useDebugValue: mountDebugValue,
4306
- useDeferredValue: function (value, initialValue) {
4307
- var hook = updateWorkInProgressHook();
4308
- return null === currentHook
4309
- ? mountDeferredValueImpl(hook, value, initialValue)
4310
- : updateDeferredValueImpl(
4311
- hook,
4312
- currentHook.memoizedState,
4313
- value,
4314
- initialValue
4114
+ currentlyRenderingFiber$1,
4115
+ reducer
4116
+ );
4117
+ return [hook.memoizedState, reducer];
4118
+ },
4119
+ useRef: function (initialValue) {
4120
+ var hook = mountWorkInProgressHook();
4121
+ initialValue = { current: initialValue };
4122
+ return (hook.memoizedState = initialValue);
4123
+ },
4124
+ useState: function (initialState) {
4125
+ initialState = mountStateImpl(initialState);
4126
+ var queue = initialState.queue,
4127
+ dispatch = dispatchSetState.bind(
4128
+ null,
4129
+ currentlyRenderingFiber$1,
4130
+ queue
4315
4131
  );
4132
+ queue.dispatch = dispatch;
4133
+ return [initialState.memoizedState, dispatch];
4134
+ },
4135
+ useDebugValue: mountDebugValue,
4136
+ useDeferredValue: function (value, initialValue) {
4137
+ var hook = mountWorkInProgressHook();
4138
+ return mountDeferredValueImpl(hook, value, initialValue);
4139
+ },
4140
+ useTransition: function () {
4141
+ var stateHook = mountStateImpl(!1);
4142
+ stateHook = startTransition.bind(
4143
+ null,
4144
+ currentlyRenderingFiber$1,
4145
+ stateHook.queue,
4146
+ !0,
4147
+ !1
4148
+ );
4149
+ mountWorkInProgressHook().memoizedState = stateHook;
4150
+ return [!1, stateHook];
4151
+ },
4152
+ useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
4153
+ var fiber = currentlyRenderingFiber$1,
4154
+ hook = mountWorkInProgressHook();
4155
+ if (isHydrating) {
4156
+ if (void 0 === getServerSnapshot)
4157
+ throw Error(formatProdErrorMessage(407));
4158
+ getServerSnapshot = getServerSnapshot();
4159
+ } else {
4160
+ getServerSnapshot = getSnapshot();
4161
+ if (null === workInProgressRoot)
4162
+ throw Error(formatProdErrorMessage(349));
4163
+ 0 !== (workInProgressRootRenderLanes & 60) ||
4164
+ pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
4165
+ }
4166
+ hook.memoizedState = getServerSnapshot;
4167
+ var inst = { value: getServerSnapshot, getSnapshot: getSnapshot };
4168
+ hook.queue = inst;
4169
+ mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [
4170
+ subscribe
4171
+ ]);
4172
+ fiber.flags |= 2048;
4173
+ pushSimpleEffect(
4174
+ 9,
4175
+ createEffectInstance(),
4176
+ updateStoreInstance.bind(
4177
+ null,
4178
+ fiber,
4179
+ inst,
4180
+ getServerSnapshot,
4181
+ getSnapshot
4182
+ ),
4183
+ null
4184
+ );
4185
+ return getServerSnapshot;
4186
+ },
4187
+ useId: function () {
4188
+ var hook = mountWorkInProgressHook(),
4189
+ identifierPrefix = workInProgressRoot.identifierPrefix;
4190
+ if (isHydrating) {
4191
+ var JSCompiler_inline_result = treeContextOverflow;
4192
+ var idWithLeadingBit = treeContextId;
4193
+ JSCompiler_inline_result =
4194
+ (
4195
+ idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))
4196
+ ).toString(32) + JSCompiler_inline_result;
4197
+ identifierPrefix =
4198
+ ":" + identifierPrefix + "R" + JSCompiler_inline_result;
4199
+ JSCompiler_inline_result = localIdCounter++;
4200
+ 0 < JSCompiler_inline_result &&
4201
+ (identifierPrefix += "H" + JSCompiler_inline_result.toString(32));
4202
+ identifierPrefix += ":";
4203
+ } else
4204
+ (JSCompiler_inline_result = globalClientIdCounter++),
4205
+ (identifierPrefix =
4206
+ ":" +
4207
+ identifierPrefix +
4208
+ "r" +
4209
+ JSCompiler_inline_result.toString(32) +
4210
+ ":");
4211
+ return (hook.memoizedState = identifierPrefix);
4212
+ },
4213
+ useHostTransitionStatus: useHostTransitionStatus,
4214
+ useFormState: mountActionState,
4215
+ useActionState: mountActionState,
4216
+ useOptimistic: function (passthrough) {
4217
+ var hook = mountWorkInProgressHook();
4218
+ hook.memoizedState = hook.baseState = passthrough;
4219
+ var queue = {
4220
+ pending: null,
4221
+ lanes: 0,
4222
+ dispatch: null,
4223
+ lastRenderedReducer: null,
4224
+ lastRenderedState: null
4225
+ };
4226
+ hook.queue = queue;
4227
+ hook = dispatchOptimisticSetState.bind(
4228
+ null,
4229
+ currentlyRenderingFiber$1,
4230
+ !0,
4231
+ queue
4232
+ );
4233
+ queue.dispatch = hook;
4234
+ return [passthrough, hook];
4235
+ },
4236
+ useMemoCache: useMemoCache,
4237
+ useCacheRefresh: function () {
4238
+ return (mountWorkInProgressHook().memoizedState = refreshCache.bind(
4239
+ null,
4240
+ currentlyRenderingFiber$1
4241
+ ));
4242
+ }
4316
4243
  },
4317
- useTransition: function () {
4318
- var booleanOrThenable = rerenderReducer(basicStateReducer)[0],
4319
- start = updateWorkInProgressHook().memoizedState;
4320
- return [
4321
- "boolean" === typeof booleanOrThenable
4322
- ? booleanOrThenable
4323
- : useThenable(booleanOrThenable),
4324
- start
4325
- ];
4244
+ HooksDispatcherOnUpdate = {
4245
+ readContext: readContext,
4246
+ use: use,
4247
+ useCallback: updateCallback,
4248
+ useContext: readContext,
4249
+ useEffect: updateEffect,
4250
+ useImperativeHandle: updateImperativeHandle,
4251
+ useInsertionEffect: updateInsertionEffect,
4252
+ useLayoutEffect: updateLayoutEffect,
4253
+ useMemo: updateMemo,
4254
+ useReducer: updateReducer,
4255
+ useRef: updateRef,
4256
+ useState: function () {
4257
+ return updateReducer(basicStateReducer);
4258
+ },
4259
+ useDebugValue: mountDebugValue,
4260
+ useDeferredValue: function (value, initialValue) {
4261
+ var hook = updateWorkInProgressHook();
4262
+ return updateDeferredValueImpl(
4263
+ hook,
4264
+ currentHook.memoizedState,
4265
+ value,
4266
+ initialValue
4267
+ );
4268
+ },
4269
+ useTransition: function () {
4270
+ var booleanOrThenable = updateReducer(basicStateReducer)[0],
4271
+ start = updateWorkInProgressHook().memoizedState;
4272
+ return [
4273
+ "boolean" === typeof booleanOrThenable
4274
+ ? booleanOrThenable
4275
+ : useThenable(booleanOrThenable),
4276
+ start
4277
+ ];
4278
+ },
4279
+ useSyncExternalStore: updateSyncExternalStore,
4280
+ useId: updateId,
4281
+ useHostTransitionStatus: useHostTransitionStatus,
4282
+ useFormState: updateActionState,
4283
+ useActionState: updateActionState,
4284
+ useOptimistic: function (passthrough, reducer) {
4285
+ var hook = updateWorkInProgressHook();
4286
+ return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
4287
+ },
4288
+ useMemoCache: useMemoCache,
4289
+ useCacheRefresh: updateRefresh
4326
4290
  },
4327
- useSyncExternalStore: updateSyncExternalStore,
4328
- useId: updateId
4329
- };
4330
- HooksDispatcherOnRerender.useCacheRefresh = updateRefresh;
4331
- HooksDispatcherOnRerender.useMemoCache = useMemoCache;
4332
- HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus;
4333
- HooksDispatcherOnRerender.useFormState = rerenderActionState;
4334
- HooksDispatcherOnRerender.useActionState = rerenderActionState;
4335
- HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) {
4336
- var hook = updateWorkInProgressHook();
4337
- if (null !== currentHook)
4338
- return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
4339
- hook.baseState = passthrough;
4340
- return [passthrough, hook.queue.dispatch];
4341
- };
4342
- var thenableState = null,
4291
+ HooksDispatcherOnRerender = {
4292
+ readContext: readContext,
4293
+ use: use,
4294
+ useCallback: updateCallback,
4295
+ useContext: readContext,
4296
+ useEffect: updateEffect,
4297
+ useImperativeHandle: updateImperativeHandle,
4298
+ useInsertionEffect: updateInsertionEffect,
4299
+ useLayoutEffect: updateLayoutEffect,
4300
+ useMemo: updateMemo,
4301
+ useReducer: rerenderReducer,
4302
+ useRef: updateRef,
4303
+ useState: function () {
4304
+ return rerenderReducer(basicStateReducer);
4305
+ },
4306
+ useDebugValue: mountDebugValue,
4307
+ useDeferredValue: function (value, initialValue) {
4308
+ var hook = updateWorkInProgressHook();
4309
+ return null === currentHook
4310
+ ? mountDeferredValueImpl(hook, value, initialValue)
4311
+ : updateDeferredValueImpl(
4312
+ hook,
4313
+ currentHook.memoizedState,
4314
+ value,
4315
+ initialValue
4316
+ );
4317
+ },
4318
+ useTransition: function () {
4319
+ var booleanOrThenable = rerenderReducer(basicStateReducer)[0],
4320
+ start = updateWorkInProgressHook().memoizedState;
4321
+ return [
4322
+ "boolean" === typeof booleanOrThenable
4323
+ ? booleanOrThenable
4324
+ : useThenable(booleanOrThenable),
4325
+ start
4326
+ ];
4327
+ },
4328
+ useSyncExternalStore: updateSyncExternalStore,
4329
+ useId: updateId,
4330
+ useHostTransitionStatus: useHostTransitionStatus,
4331
+ useFormState: rerenderActionState,
4332
+ useActionState: rerenderActionState,
4333
+ useOptimistic: function (passthrough, reducer) {
4334
+ var hook = updateWorkInProgressHook();
4335
+ if (null !== currentHook)
4336
+ return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
4337
+ hook.baseState = passthrough;
4338
+ return [passthrough, hook.queue.dispatch];
4339
+ },
4340
+ useMemoCache: useMemoCache,
4341
+ useCacheRefresh: updateRefresh
4342
+ },
4343
+ thenableState = null,
4343
4344
  thenableIndexCounter = 0;
4344
4345
  function unwrapThenable(thenable) {
4345
4346
  var index = thenableIndexCounter;
@@ -6108,7 +6109,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6108
6109
  )
6109
6110
  return (
6110
6111
  isSuspenseInstanceFallback(nextInstance)
6111
- ? (workInProgress.lanes = 16)
6112
+ ? (workInProgress.lanes = 32)
6112
6113
  : (workInProgress.lanes = 536870912),
6113
6114
  null
6114
6115
  );
@@ -11633,20 +11634,20 @@ function extractEvents$1(
11633
11634
  }
11634
11635
  }
11635
11636
  for (
11636
- var i$jscomp$inline_1436 = 0;
11637
- i$jscomp$inline_1436 < simpleEventPluginEvents.length;
11638
- i$jscomp$inline_1436++
11637
+ var i$jscomp$inline_1427 = 0;
11638
+ i$jscomp$inline_1427 < simpleEventPluginEvents.length;
11639
+ i$jscomp$inline_1427++
11639
11640
  ) {
11640
- var eventName$jscomp$inline_1437 =
11641
- simpleEventPluginEvents[i$jscomp$inline_1436],
11642
- domEventName$jscomp$inline_1438 =
11643
- eventName$jscomp$inline_1437.toLowerCase(),
11644
- capitalizedEvent$jscomp$inline_1439 =
11645
- eventName$jscomp$inline_1437[0].toUpperCase() +
11646
- eventName$jscomp$inline_1437.slice(1);
11641
+ var eventName$jscomp$inline_1428 =
11642
+ simpleEventPluginEvents[i$jscomp$inline_1427],
11643
+ domEventName$jscomp$inline_1429 =
11644
+ eventName$jscomp$inline_1428.toLowerCase(),
11645
+ capitalizedEvent$jscomp$inline_1430 =
11646
+ eventName$jscomp$inline_1428[0].toUpperCase() +
11647
+ eventName$jscomp$inline_1428.slice(1);
11647
11648
  registerSimpleEvent(
11648
- domEventName$jscomp$inline_1438,
11649
- "on" + capitalizedEvent$jscomp$inline_1439
11649
+ domEventName$jscomp$inline_1429,
11650
+ "on" + capitalizedEvent$jscomp$inline_1430
11650
11651
  );
11651
11652
  }
11652
11653
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -15107,16 +15108,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15107
15108
  0 === i && attemptExplicitHydrationTarget(target);
15108
15109
  }
15109
15110
  };
15110
- var isomorphicReactPackageVersion$jscomp$inline_1683 = React.version;
15111
+ var isomorphicReactPackageVersion$jscomp$inline_1674 = React.version;
15111
15112
  if (
15112
- "19.1.0-canary-4dff0e62-20241213" !==
15113
- isomorphicReactPackageVersion$jscomp$inline_1683
15113
+ "19.1.0-canary-e06c72fc-20241215" !==
15114
+ isomorphicReactPackageVersion$jscomp$inline_1674
15114
15115
  )
15115
15116
  throw Error(
15116
15117
  formatProdErrorMessage(
15117
15118
  527,
15118
- isomorphicReactPackageVersion$jscomp$inline_1683,
15119
- "19.1.0-canary-4dff0e62-20241213"
15119
+ isomorphicReactPackageVersion$jscomp$inline_1674,
15120
+ "19.1.0-canary-e06c72fc-20241215"
15120
15121
  )
15121
15122
  );
15122
15123
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15136,24 +15137,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15136
15137
  null === componentOrElement ? null : componentOrElement.stateNode;
15137
15138
  return componentOrElement;
15138
15139
  };
15139
- var internals$jscomp$inline_2159 = {
15140
+ var internals$jscomp$inline_2150 = {
15140
15141
  bundleType: 0,
15141
- version: "19.1.0-canary-4dff0e62-20241213",
15142
+ version: "19.1.0-canary-e06c72fc-20241215",
15142
15143
  rendererPackageName: "react-dom",
15143
15144
  currentDispatcherRef: ReactSharedInternals,
15144
- reconcilerVersion: "19.1.0-canary-4dff0e62-20241213"
15145
+ reconcilerVersion: "19.1.0-canary-e06c72fc-20241215"
15145
15146
  };
15146
15147
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15147
- var hook$jscomp$inline_2160 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15148
+ var hook$jscomp$inline_2151 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15148
15149
  if (
15149
- !hook$jscomp$inline_2160.isDisabled &&
15150
- hook$jscomp$inline_2160.supportsFiber
15150
+ !hook$jscomp$inline_2151.isDisabled &&
15151
+ hook$jscomp$inline_2151.supportsFiber
15151
15152
  )
15152
15153
  try {
15153
- (rendererID = hook$jscomp$inline_2160.inject(
15154
- internals$jscomp$inline_2159
15154
+ (rendererID = hook$jscomp$inline_2151.inject(
15155
+ internals$jscomp$inline_2150
15155
15156
  )),
15156
- (injectedHook = hook$jscomp$inline_2160);
15157
+ (injectedHook = hook$jscomp$inline_2151);
15157
15158
  } catch (err) {}
15158
15159
  }
15159
15160
  exports.createRoot = function (container, options) {
@@ -15247,4 +15248,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15247
15248
  listenToAllSupportedEvents(container);
15248
15249
  return new ReactDOMHydrationRoot(initialChildren);
15249
15250
  };
15250
- exports.version = "19.1.0-canary-4dff0e62-20241213";
15251
+ exports.version = "19.1.0-canary-e06c72fc-20241215";