@dxyl/dom 1.0.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.
@@ -0,0 +1,1284 @@
1
+ /**
2
+ * @license React
3
+ * react.development.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ (function () {
13
+ const exports=window.React={}
14
+ function defineDeprecationWarning(methodName, info) {
15
+ Object.defineProperty(Component.prototype, methodName, {
16
+ get: function () {
17
+ console.warn(
18
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
19
+ info[0],
20
+ info[1]
21
+ );
22
+ }
23
+ });
24
+ }
25
+ function getIteratorFn(maybeIterable) {
26
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
27
+ return null;
28
+ maybeIterable =
29
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
30
+ maybeIterable["@@iterator"];
31
+ return "function" === typeof maybeIterable ? maybeIterable : null;
32
+ }
33
+ function warnNoop(publicInstance, callerName) {
34
+ publicInstance =
35
+ ((publicInstance = publicInstance.constructor) &&
36
+ (publicInstance.displayName || publicInstance.name)) ||
37
+ "ReactClass";
38
+ var warningKey = publicInstance + "." + callerName;
39
+ didWarnStateUpdateForUnmountedComponent[warningKey] ||
40
+ (console.error(
41
+ "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
42
+ callerName,
43
+ publicInstance
44
+ ),
45
+ (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));
46
+ }
47
+ function Component(props, context, updater) {
48
+ this.props = props;
49
+ this.context = context;
50
+ this.refs = emptyObject;
51
+ this.updater = updater || ReactNoopUpdateQueue;
52
+ }
53
+ function ComponentDummy() {}
54
+ function PureComponent(props, context, updater) {
55
+ this.props = props;
56
+ this.context = context;
57
+ this.refs = emptyObject;
58
+ this.updater = updater || ReactNoopUpdateQueue;
59
+ }
60
+ function noop() {}
61
+ function testStringCoercion(value) {
62
+ return "" + value;
63
+ }
64
+ function checkKeyStringCoercion(value) {
65
+ try {
66
+ testStringCoercion(value);
67
+ var JSCompiler_inline_result = !1;
68
+ } catch (e) {
69
+ JSCompiler_inline_result = !0;
70
+ }
71
+ if (JSCompiler_inline_result) {
72
+ JSCompiler_inline_result = console;
73
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
74
+ var JSCompiler_inline_result$jscomp$0 =
75
+ ("function" === typeof Symbol &&
76
+ Symbol.toStringTag &&
77
+ value[Symbol.toStringTag]) ||
78
+ value.constructor.name ||
79
+ "Object";
80
+ JSCompiler_temp_const.call(
81
+ JSCompiler_inline_result,
82
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
83
+ JSCompiler_inline_result$jscomp$0
84
+ );
85
+ return testStringCoercion(value);
86
+ }
87
+ }
88
+ function getComponentNameFromType(type) {
89
+ if (null == type) return null;
90
+ if ("function" === typeof type)
91
+ return type.$$typeof === REACT_CLIENT_REFERENCE
92
+ ? null
93
+ : type.displayName || type.name || null;
94
+ if ("string" === typeof type) return type;
95
+ switch (type) {
96
+ case REACT_FRAGMENT_TYPE:
97
+ return "Fragment";
98
+ case REACT_PROFILER_TYPE:
99
+ return "Profiler";
100
+ case REACT_STRICT_MODE_TYPE:
101
+ return "StrictMode";
102
+ case REACT_SUSPENSE_TYPE:
103
+ return "Suspense";
104
+ case REACT_SUSPENSE_LIST_TYPE:
105
+ return "SuspenseList";
106
+ case REACT_ACTIVITY_TYPE:
107
+ return "Activity";
108
+ }
109
+ if ("object" === typeof type)
110
+ switch (
111
+ ("number" === typeof type.tag &&
112
+ console.error(
113
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
114
+ ),
115
+ type.$$typeof)
116
+ ) {
117
+ case REACT_PORTAL_TYPE:
118
+ return "Portal";
119
+ case REACT_CONTEXT_TYPE:
120
+ return type.displayName || "Context";
121
+ case REACT_CONSUMER_TYPE:
122
+ return (type._context.displayName || "Context") + ".Consumer";
123
+ case REACT_FORWARD_REF_TYPE:
124
+ var innerType = type.render;
125
+ type = type.displayName;
126
+ type ||
127
+ ((type = innerType.displayName || innerType.name || ""),
128
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
129
+ return type;
130
+ case REACT_MEMO_TYPE:
131
+ return (
132
+ (innerType = type.displayName || null),
133
+ null !== innerType
134
+ ? innerType
135
+ : getComponentNameFromType(type.type) || "Memo"
136
+ );
137
+ case REACT_LAZY_TYPE:
138
+ innerType = type._payload;
139
+ type = type._init;
140
+ try {
141
+ return getComponentNameFromType(type(innerType));
142
+ } catch (x) {}
143
+ }
144
+ return null;
145
+ }
146
+ function getTaskName(type) {
147
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
148
+ if (
149
+ "object" === typeof type &&
150
+ null !== type &&
151
+ type.$$typeof === REACT_LAZY_TYPE
152
+ )
153
+ return "<...>";
154
+ try {
155
+ var name = getComponentNameFromType(type);
156
+ return name ? "<" + name + ">" : "<...>";
157
+ } catch (x) {
158
+ return "<...>";
159
+ }
160
+ }
161
+ function getOwner() {
162
+ var dispatcher = ReactSharedInternals.A;
163
+ return null === dispatcher ? null : dispatcher.getOwner();
164
+ }
165
+ function UnknownOwner() {
166
+ return Error("react-stack-top-frame");
167
+ }
168
+ function hasValidKey(config) {
169
+ if (hasOwnProperty.call(config, "key")) {
170
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
171
+ if (getter && getter.isReactWarning) return !1;
172
+ }
173
+ return void 0 !== config.key;
174
+ }
175
+ function defineKeyPropWarningGetter(props, displayName) {
176
+ function warnAboutAccessingKey() {
177
+ specialPropKeyWarningShown ||
178
+ ((specialPropKeyWarningShown = !0),
179
+ console.error(
180
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
181
+ displayName
182
+ ));
183
+ }
184
+ warnAboutAccessingKey.isReactWarning = !0;
185
+ Object.defineProperty(props, "key", {
186
+ get: warnAboutAccessingKey,
187
+ configurable: !0
188
+ });
189
+ }
190
+ function elementRefGetterWithDeprecationWarning() {
191
+ var componentName = getComponentNameFromType(this.type);
192
+ didWarnAboutElementRef[componentName] ||
193
+ ((didWarnAboutElementRef[componentName] = !0),
194
+ console.error(
195
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
196
+ ));
197
+ componentName = this.props.ref;
198
+ return void 0 !== componentName ? componentName : null;
199
+ }
200
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
201
+ var refProp = props.ref;
202
+ type = {
203
+ $$typeof: REACT_ELEMENT_TYPE,
204
+ type: type,
205
+ key: key,
206
+ props: props,
207
+ _owner: owner
208
+ };
209
+ null !== (void 0 !== refProp ? refProp : null)
210
+ ? Object.defineProperty(type, "ref", {
211
+ enumerable: !1,
212
+ get: elementRefGetterWithDeprecationWarning
213
+ })
214
+ : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
215
+ type._store = {};
216
+ Object.defineProperty(type._store, "validated", {
217
+ configurable: !1,
218
+ enumerable: !1,
219
+ writable: !0,
220
+ value: 0
221
+ });
222
+ Object.defineProperty(type, "_debugInfo", {
223
+ configurable: !1,
224
+ enumerable: !1,
225
+ writable: !0,
226
+ value: null
227
+ });
228
+ Object.defineProperty(type, "_debugStack", {
229
+ configurable: !1,
230
+ enumerable: !1,
231
+ writable: !0,
232
+ value: debugStack
233
+ });
234
+ Object.defineProperty(type, "_debugTask", {
235
+ configurable: !1,
236
+ enumerable: !1,
237
+ writable: !0,
238
+ value: debugTask
239
+ });
240
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
241
+ return type;
242
+ }
243
+ function cloneAndReplaceKey(oldElement, newKey) {
244
+ newKey = ReactElement(
245
+ oldElement.type,
246
+ newKey,
247
+ oldElement.props,
248
+ oldElement._owner,
249
+ oldElement._debugStack,
250
+ oldElement._debugTask
251
+ );
252
+ oldElement._store &&
253
+ (newKey._store.validated = oldElement._store.validated);
254
+ return newKey;
255
+ }
256
+ function validateChildKeys(node) {
257
+ isValidElement(node)
258
+ ? node._store && (node._store.validated = 1)
259
+ : "object" === typeof node &&
260
+ null !== node &&
261
+ node.$$typeof === REACT_LAZY_TYPE &&
262
+ ("fulfilled" === node._payload.status
263
+ ? isValidElement(node._payload.value) &&
264
+ node._payload.value._store &&
265
+ (node._payload.value._store.validated = 1)
266
+ : node._store && (node._store.validated = 1));
267
+ }
268
+ function isValidElement(object) {
269
+ return (
270
+ "object" === typeof object &&
271
+ null !== object &&
272
+ object.$$typeof === REACT_ELEMENT_TYPE
273
+ );
274
+ }
275
+ function escape(key) {
276
+ var escaperLookup = { "=": "=0", ":": "=2" };
277
+ return (
278
+ "$" +
279
+ key.replace(/[=:]/g, function (match) {
280
+ return escaperLookup[match];
281
+ })
282
+ );
283
+ }
284
+ function getElementKey(element, index) {
285
+ return "object" === typeof element &&
286
+ null !== element &&
287
+ null != element.key
288
+ ? (checkKeyStringCoercion(element.key), escape("" + element.key))
289
+ : index.toString(36);
290
+ }
291
+ function resolveThenable(thenable) {
292
+ switch (thenable.status) {
293
+ case "fulfilled":
294
+ return thenable.value;
295
+ case "rejected":
296
+ throw thenable.reason;
297
+ default:
298
+ switch (
299
+ ("string" === typeof thenable.status
300
+ ? thenable.then(noop, noop)
301
+ : ((thenable.status = "pending"),
302
+ thenable.then(
303
+ function (fulfilledValue) {
304
+ "pending" === thenable.status &&
305
+ ((thenable.status = "fulfilled"),
306
+ (thenable.value = fulfilledValue));
307
+ },
308
+ function (error) {
309
+ "pending" === thenable.status &&
310
+ ((thenable.status = "rejected"),
311
+ (thenable.reason = error));
312
+ }
313
+ )),
314
+ thenable.status)
315
+ ) {
316
+ case "fulfilled":
317
+ return thenable.value;
318
+ case "rejected":
319
+ throw thenable.reason;
320
+ }
321
+ }
322
+ throw thenable;
323
+ }
324
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
325
+ var type = typeof children;
326
+ if ("undefined" === type || "boolean" === type) children = null;
327
+ var invokeCallback = !1;
328
+ if (null === children) invokeCallback = !0;
329
+ else
330
+ switch (type) {
331
+ case "bigint":
332
+ case "string":
333
+ case "number":
334
+ invokeCallback = !0;
335
+ break;
336
+ case "object":
337
+ switch (children.$$typeof) {
338
+ case REACT_ELEMENT_TYPE:
339
+ case REACT_PORTAL_TYPE:
340
+ invokeCallback = !0;
341
+ break;
342
+ case REACT_LAZY_TYPE:
343
+ return (
344
+ (invokeCallback = children._init),
345
+ mapIntoArray(
346
+ invokeCallback(children._payload),
347
+ array,
348
+ escapedPrefix,
349
+ nameSoFar,
350
+ callback
351
+ )
352
+ );
353
+ }
354
+ }
355
+ if (invokeCallback) {
356
+ invokeCallback = children;
357
+ callback = callback(invokeCallback);
358
+ var childKey =
359
+ "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
360
+ isArrayImpl(callback)
361
+ ? ((escapedPrefix = ""),
362
+ null != childKey &&
363
+ (escapedPrefix =
364
+ childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
365
+ mapIntoArray(callback, array, escapedPrefix, "", function (c) {
366
+ return c;
367
+ }))
368
+ : null != callback &&
369
+ (isValidElement(callback) &&
370
+ (null != callback.key &&
371
+ ((invokeCallback && invokeCallback.key === callback.key) ||
372
+ checkKeyStringCoercion(callback.key)),
373
+ (escapedPrefix = cloneAndReplaceKey(
374
+ callback,
375
+ escapedPrefix +
376
+ (null == callback.key ||
377
+ (invokeCallback && invokeCallback.key === callback.key)
378
+ ? ""
379
+ : ("" + callback.key).replace(
380
+ userProvidedKeyEscapeRegex,
381
+ "$&/"
382
+ ) + "/") +
383
+ childKey
384
+ )),
385
+ "" !== nameSoFar &&
386
+ null != invokeCallback &&
387
+ isValidElement(invokeCallback) &&
388
+ null == invokeCallback.key &&
389
+ invokeCallback._store &&
390
+ !invokeCallback._store.validated &&
391
+ (escapedPrefix._store.validated = 2),
392
+ (callback = escapedPrefix)),
393
+ array.push(callback));
394
+ return 1;
395
+ }
396
+ invokeCallback = 0;
397
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
398
+ if (isArrayImpl(children))
399
+ for (var i = 0; i < children.length; i++)
400
+ (nameSoFar = children[i]),
401
+ (type = childKey + getElementKey(nameSoFar, i)),
402
+ (invokeCallback += mapIntoArray(
403
+ nameSoFar,
404
+ array,
405
+ escapedPrefix,
406
+ type,
407
+ callback
408
+ ));
409
+ else if (((i = getIteratorFn(children)), "function" === typeof i))
410
+ for (
411
+ i === children.entries &&
412
+ (didWarnAboutMaps ||
413
+ console.warn(
414
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
415
+ ),
416
+ (didWarnAboutMaps = !0)),
417
+ children = i.call(children),
418
+ i = 0;
419
+ !(nameSoFar = children.next()).done;
420
+
421
+ )
422
+ (nameSoFar = nameSoFar.value),
423
+ (type = childKey + getElementKey(nameSoFar, i++)),
424
+ (invokeCallback += mapIntoArray(
425
+ nameSoFar,
426
+ array,
427
+ escapedPrefix,
428
+ type,
429
+ callback
430
+ ));
431
+ else if ("object" === type) {
432
+ if ("function" === typeof children.then)
433
+ return mapIntoArray(
434
+ resolveThenable(children),
435
+ array,
436
+ escapedPrefix,
437
+ nameSoFar,
438
+ callback
439
+ );
440
+ array = String(children);
441
+ throw Error(
442
+ "Objects are not valid as a React child (found: " +
443
+ ("[object Object]" === array
444
+ ? "object with keys {" + Object.keys(children).join(", ") + "}"
445
+ : array) +
446
+ "). If you meant to render a collection of children, use an array instead."
447
+ );
448
+ }
449
+ return invokeCallback;
450
+ }
451
+ function mapChildren(children, func, context) {
452
+ if (null == children) return children;
453
+ var result = [],
454
+ count = 0;
455
+ mapIntoArray(children, result, "", "", function (child) {
456
+ return func.call(context, child, count++);
457
+ });
458
+ return result;
459
+ }
460
+ function lazyInitializer(payload) {
461
+ if (-1 === payload._status) {
462
+ var ioInfo = payload._ioInfo;
463
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
464
+ ioInfo = payload._result;
465
+ var thenable = ioInfo();
466
+ thenable.then(
467
+ function (moduleObject) {
468
+ if (0 === payload._status || -1 === payload._status) {
469
+ payload._status = 1;
470
+ payload._result = moduleObject;
471
+ var _ioInfo = payload._ioInfo;
472
+ null != _ioInfo && (_ioInfo.end = performance.now());
473
+ void 0 === thenable.status &&
474
+ ((thenable.status = "fulfilled"),
475
+ (thenable.value = moduleObject));
476
+ }
477
+ },
478
+ function (error) {
479
+ if (0 === payload._status || -1 === payload._status) {
480
+ payload._status = 2;
481
+ payload._result = error;
482
+ var _ioInfo2 = payload._ioInfo;
483
+ null != _ioInfo2 && (_ioInfo2.end = performance.now());
484
+ void 0 === thenable.status &&
485
+ ((thenable.status = "rejected"), (thenable.reason = error));
486
+ }
487
+ }
488
+ );
489
+ ioInfo = payload._ioInfo;
490
+ if (null != ioInfo) {
491
+ ioInfo.value = thenable;
492
+ var displayName = thenable.displayName;
493
+ "string" === typeof displayName && (ioInfo.name = displayName);
494
+ }
495
+ -1 === payload._status &&
496
+ ((payload._status = 0), (payload._result = thenable));
497
+ }
498
+ if (1 === payload._status)
499
+ return (
500
+ (ioInfo = payload._result),
501
+ void 0 === ioInfo &&
502
+ console.error(
503
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
504
+ ioInfo
505
+ ),
506
+ "default" in ioInfo ||
507
+ console.error(
508
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
509
+ ioInfo
510
+ ),
511
+ ioInfo.default
512
+ );
513
+ throw payload._result;
514
+ }
515
+ function resolveDispatcher() {
516
+ var dispatcher = ReactSharedInternals.H;
517
+ null === dispatcher &&
518
+ console.error(
519
+ "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
520
+ );
521
+ return dispatcher;
522
+ }
523
+ function releaseAsyncTransition() {
524
+ ReactSharedInternals.asyncTransitions--;
525
+ }
526
+ function enqueueTask(task) {
527
+ if (null === enqueueTaskImpl)
528
+ try {
529
+ var requireString = ("require" + Math.random()).slice(0, 7);
530
+ enqueueTaskImpl = (module && module[requireString]).call(
531
+ module,
532
+ "timers"
533
+ ).setImmediate;
534
+ } catch (_err) {
535
+ enqueueTaskImpl = function (callback) {
536
+ !1 === didWarnAboutMessageChannel &&
537
+ ((didWarnAboutMessageChannel = !0),
538
+ "undefined" === typeof MessageChannel &&
539
+ console.error(
540
+ "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
541
+ ));
542
+ var channel = new MessageChannel();
543
+ channel.port1.onmessage = callback;
544
+ channel.port2.postMessage(void 0);
545
+ };
546
+ }
547
+ return enqueueTaskImpl(task);
548
+ }
549
+ function aggregateErrors(errors) {
550
+ return 1 < errors.length && "function" === typeof AggregateError
551
+ ? new AggregateError(errors)
552
+ : errors[0];
553
+ }
554
+ function popActScope(prevActQueue, prevActScopeDepth) {
555
+ prevActScopeDepth !== actScopeDepth - 1 &&
556
+ console.error(
557
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
558
+ );
559
+ actScopeDepth = prevActScopeDepth;
560
+ }
561
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
562
+ var queue = ReactSharedInternals.actQueue;
563
+ if (null !== queue)
564
+ if (0 !== queue.length)
565
+ try {
566
+ flushActQueue(queue);
567
+ enqueueTask(function () {
568
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
569
+ });
570
+ return;
571
+ } catch (error) {
572
+ ReactSharedInternals.thrownErrors.push(error);
573
+ }
574
+ else ReactSharedInternals.actQueue = null;
575
+ 0 < ReactSharedInternals.thrownErrors.length
576
+ ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
577
+ (ReactSharedInternals.thrownErrors.length = 0),
578
+ reject(queue))
579
+ : resolve(returnValue);
580
+ }
581
+ function flushActQueue(queue) {
582
+ if (!isFlushing) {
583
+ isFlushing = !0;
584
+ var i = 0;
585
+ try {
586
+ for (; i < queue.length; i++) {
587
+ var callback = queue[i];
588
+ do {
589
+ ReactSharedInternals.didUsePromise = !1;
590
+ var continuation = callback(!1);
591
+ if (null !== continuation) {
592
+ if (ReactSharedInternals.didUsePromise) {
593
+ queue[i] = callback;
594
+ queue.splice(0, i);
595
+ return;
596
+ }
597
+ callback = continuation;
598
+ } else break;
599
+ } while (1);
600
+ }
601
+ queue.length = 0;
602
+ } catch (error) {
603
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
604
+ } finally {
605
+ isFlushing = !1;
606
+ }
607
+ }
608
+ }
609
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
610
+ "function" ===
611
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
612
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
613
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
614
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
615
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
616
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
617
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
618
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
619
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
620
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
621
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
622
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
623
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
624
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
625
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
626
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
627
+ didWarnStateUpdateForUnmountedComponent = {},
628
+ ReactNoopUpdateQueue = {
629
+ isMounted: function () {
630
+ return !1;
631
+ },
632
+ enqueueForceUpdate: function (publicInstance) {
633
+ warnNoop(publicInstance, "forceUpdate");
634
+ },
635
+ enqueueReplaceState: function (publicInstance) {
636
+ warnNoop(publicInstance, "replaceState");
637
+ },
638
+ enqueueSetState: function (publicInstance) {
639
+ warnNoop(publicInstance, "setState");
640
+ }
641
+ },
642
+ assign = Object.assign,
643
+ emptyObject = {};
644
+ Object.freeze(emptyObject);
645
+ Component.prototype.isReactComponent = {};
646
+ Component.prototype.setState = function (partialState, callback) {
647
+ if (
648
+ "object" !== typeof partialState &&
649
+ "function" !== typeof partialState &&
650
+ null != partialState
651
+ )
652
+ throw Error(
653
+ "takes an object of state variables to update or a function which returns an object of state variables."
654
+ );
655
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
656
+ };
657
+ Component.prototype.forceUpdate = function (callback) {
658
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
659
+ };
660
+ var deprecatedAPIs = {
661
+ isMounted: [
662
+ "isMounted",
663
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
664
+ ],
665
+ replaceState: [
666
+ "replaceState",
667
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
668
+ ]
669
+ };
670
+ for (fnName in deprecatedAPIs)
671
+ deprecatedAPIs.hasOwnProperty(fnName) &&
672
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
673
+ ComponentDummy.prototype = Component.prototype;
674
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
675
+ deprecatedAPIs.constructor = PureComponent;
676
+ assign(deprecatedAPIs, Component.prototype);
677
+ deprecatedAPIs.isPureReactComponent = !0;
678
+ var isArrayImpl = Array.isArray,
679
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
680
+ ReactSharedInternals = {
681
+ H: null,
682
+ A: null,
683
+ T: null,
684
+ S: null,
685
+ actQueue: null,
686
+ asyncTransitions: 0,
687
+ isBatchingLegacy: !1,
688
+ didScheduleLegacyUpdate: !1,
689
+ didUsePromise: !1,
690
+ thrownErrors: [],
691
+ getCurrentStack: null,
692
+ recentlyCreatedOwnerStacks: 0
693
+ },
694
+ hasOwnProperty = Object.prototype.hasOwnProperty,
695
+ createTask = console.createTask
696
+ ? console.createTask
697
+ : function () {
698
+ return null;
699
+ };
700
+ deprecatedAPIs = {
701
+ react_stack_bottom_frame: function (callStackForError) {
702
+ return callStackForError();
703
+ }
704
+ };
705
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
706
+ var didWarnAboutElementRef = {};
707
+ var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
708
+ deprecatedAPIs,
709
+ UnknownOwner
710
+ )();
711
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
712
+ var didWarnAboutMaps = !1,
713
+ userProvidedKeyEscapeRegex = /\/+/g,
714
+ reportGlobalError =
715
+ "function" === typeof reportError
716
+ ? reportError
717
+ : function (error) {
718
+ if (
719
+ "object" === typeof window &&
720
+ "function" === typeof window.ErrorEvent
721
+ ) {
722
+ var event = new window.ErrorEvent("error", {
723
+ bubbles: !0,
724
+ cancelable: !0,
725
+ message:
726
+ "object" === typeof error &&
727
+ null !== error &&
728
+ "string" === typeof error.message
729
+ ? String(error.message)
730
+ : String(error),
731
+ error: error
732
+ });
733
+ if (!window.dispatchEvent(event)) return;
734
+ } else if (
735
+ "object" === typeof process &&
736
+ "function" === typeof process.emit
737
+ ) {
738
+ process.emit("uncaughtException", error);
739
+ return;
740
+ }
741
+ console.error(error);
742
+ },
743
+ didWarnAboutMessageChannel = !1,
744
+ enqueueTaskImpl = null,
745
+ actScopeDepth = 0,
746
+ didWarnNoAwaitAct = !1,
747
+ isFlushing = !1,
748
+ queueSeveralMicrotasks =
749
+ "function" === typeof queueMicrotask
750
+ ? function (callback) {
751
+ queueMicrotask(function () {
752
+ return queueMicrotask(callback);
753
+ });
754
+ }
755
+ : enqueueTask;
756
+ deprecatedAPIs = Object.freeze({
757
+ __proto__: null,
758
+ c: function (size) {
759
+ return resolveDispatcher().useMemoCache(size);
760
+ }
761
+ });
762
+ var fnName = {
763
+ map: mapChildren,
764
+ forEach: function (children, forEachFunc, forEachContext) {
765
+ mapChildren(
766
+ children,
767
+ function () {
768
+ forEachFunc.apply(this, arguments);
769
+ },
770
+ forEachContext
771
+ );
772
+ },
773
+ count: function (children) {
774
+ var n = 0;
775
+ mapChildren(children, function () {
776
+ n++;
777
+ });
778
+ return n;
779
+ },
780
+ toArray: function (children) {
781
+ return (
782
+ mapChildren(children, function (child) {
783
+ return child;
784
+ }) || []
785
+ );
786
+ },
787
+ only: function (children) {
788
+ if (!isValidElement(children))
789
+ throw Error(
790
+ "React.Children.only expected to receive a single React element child."
791
+ );
792
+ return children;
793
+ }
794
+ };
795
+ exports.Activity = REACT_ACTIVITY_TYPE;
796
+ exports.Children = fnName;
797
+ exports.Component = Component;
798
+ exports.Fragment = REACT_FRAGMENT_TYPE;
799
+ exports.Profiler = REACT_PROFILER_TYPE;
800
+ exports.PureComponent = PureComponent;
801
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
802
+ exports.Suspense = REACT_SUSPENSE_TYPE;
803
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
804
+ ReactSharedInternals;
805
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
806
+ exports.act = function (callback) {
807
+ var prevActQueue = ReactSharedInternals.actQueue,
808
+ prevActScopeDepth = actScopeDepth;
809
+ actScopeDepth++;
810
+ var queue = (ReactSharedInternals.actQueue =
811
+ null !== prevActQueue ? prevActQueue : []),
812
+ didAwaitActCall = !1;
813
+ try {
814
+ var result = callback();
815
+ } catch (error) {
816
+ ReactSharedInternals.thrownErrors.push(error);
817
+ }
818
+ if (0 < ReactSharedInternals.thrownErrors.length)
819
+ throw (
820
+ (popActScope(prevActQueue, prevActScopeDepth),
821
+ (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
822
+ (ReactSharedInternals.thrownErrors.length = 0),
823
+ callback)
824
+ );
825
+ if (
826
+ null !== result &&
827
+ "object" === typeof result &&
828
+ "function" === typeof result.then
829
+ ) {
830
+ var thenable = result;
831
+ queueSeveralMicrotasks(function () {
832
+ didAwaitActCall ||
833
+ didWarnNoAwaitAct ||
834
+ ((didWarnNoAwaitAct = !0),
835
+ console.error(
836
+ "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
837
+ ));
838
+ });
839
+ return {
840
+ then: function (resolve, reject) {
841
+ didAwaitActCall = !0;
842
+ thenable.then(
843
+ function (returnValue) {
844
+ popActScope(prevActQueue, prevActScopeDepth);
845
+ if (0 === prevActScopeDepth) {
846
+ try {
847
+ flushActQueue(queue),
848
+ enqueueTask(function () {
849
+ return recursivelyFlushAsyncActWork(
850
+ returnValue,
851
+ resolve,
852
+ reject
853
+ );
854
+ });
855
+ } catch (error$0) {
856
+ ReactSharedInternals.thrownErrors.push(error$0);
857
+ }
858
+ if (0 < ReactSharedInternals.thrownErrors.length) {
859
+ var _thrownError = aggregateErrors(
860
+ ReactSharedInternals.thrownErrors
861
+ );
862
+ ReactSharedInternals.thrownErrors.length = 0;
863
+ reject(_thrownError);
864
+ }
865
+ } else resolve(returnValue);
866
+ },
867
+ function (error) {
868
+ popActScope(prevActQueue, prevActScopeDepth);
869
+ 0 < ReactSharedInternals.thrownErrors.length
870
+ ? ((error = aggregateErrors(
871
+ ReactSharedInternals.thrownErrors
872
+ )),
873
+ (ReactSharedInternals.thrownErrors.length = 0),
874
+ reject(error))
875
+ : reject(error);
876
+ }
877
+ );
878
+ }
879
+ };
880
+ }
881
+ var returnValue$jscomp$0 = result;
882
+ popActScope(prevActQueue, prevActScopeDepth);
883
+ 0 === prevActScopeDepth &&
884
+ (flushActQueue(queue),
885
+ 0 !== queue.length &&
886
+ queueSeveralMicrotasks(function () {
887
+ didAwaitActCall ||
888
+ didWarnNoAwaitAct ||
889
+ ((didWarnNoAwaitAct = !0),
890
+ console.error(
891
+ "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
892
+ ));
893
+ }),
894
+ (ReactSharedInternals.actQueue = null));
895
+ if (0 < ReactSharedInternals.thrownErrors.length)
896
+ throw (
897
+ ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
898
+ (ReactSharedInternals.thrownErrors.length = 0),
899
+ callback)
900
+ );
901
+ return {
902
+ then: function (resolve, reject) {
903
+ didAwaitActCall = !0;
904
+ 0 === prevActScopeDepth
905
+ ? ((ReactSharedInternals.actQueue = queue),
906
+ enqueueTask(function () {
907
+ return recursivelyFlushAsyncActWork(
908
+ returnValue$jscomp$0,
909
+ resolve,
910
+ reject
911
+ );
912
+ }))
913
+ : resolve(returnValue$jscomp$0);
914
+ }
915
+ };
916
+ };
917
+ exports.cache = function (fn) {
918
+ return function () {
919
+ return fn.apply(null, arguments);
920
+ };
921
+ };
922
+ exports.cacheSignal = function () {
923
+ return null;
924
+ };
925
+ exports.captureOwnerStack = function () {
926
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
927
+ return null === getCurrentStack ? null : getCurrentStack();
928
+ };
929
+ exports.cloneElement = function (element, config, children) {
930
+ if (null === element || void 0 === element)
931
+ throw Error(
932
+ "The argument must be a React element, but you passed " +
933
+ element +
934
+ "."
935
+ );
936
+ var props = assign({}, element.props),
937
+ key = element.key,
938
+ owner = element._owner;
939
+ if (null != config) {
940
+ var JSCompiler_inline_result;
941
+ a: {
942
+ if (
943
+ hasOwnProperty.call(config, "ref") &&
944
+ (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
945
+ config,
946
+ "ref"
947
+ ).get) &&
948
+ JSCompiler_inline_result.isReactWarning
949
+ ) {
950
+ JSCompiler_inline_result = !1;
951
+ break a;
952
+ }
953
+ JSCompiler_inline_result = void 0 !== config.ref;
954
+ }
955
+ JSCompiler_inline_result && (owner = getOwner());
956
+ hasValidKey(config) &&
957
+ (checkKeyStringCoercion(config.key), (key = "" + config.key));
958
+ for (propName in config)
959
+ !hasOwnProperty.call(config, propName) ||
960
+ "key" === propName ||
961
+ "__self" === propName ||
962
+ "__source" === propName ||
963
+ ("ref" === propName && void 0 === config.ref) ||
964
+ (props[propName] = config[propName]);
965
+ }
966
+ var propName = arguments.length - 2;
967
+ if (1 === propName) props.children = children;
968
+ else if (1 < propName) {
969
+ JSCompiler_inline_result = Array(propName);
970
+ for (var i = 0; i < propName; i++)
971
+ JSCompiler_inline_result[i] = arguments[i + 2];
972
+ props.children = JSCompiler_inline_result;
973
+ }
974
+ props = ReactElement(
975
+ element.type,
976
+ key,
977
+ props,
978
+ owner,
979
+ element._debugStack,
980
+ element._debugTask
981
+ );
982
+ for (key = 2; key < arguments.length; key++)
983
+ validateChildKeys(arguments[key]);
984
+ return props;
985
+ };
986
+ exports.createContext = function (defaultValue) {
987
+ defaultValue = {
988
+ $$typeof: REACT_CONTEXT_TYPE,
989
+ _currentValue: defaultValue,
990
+ _currentValue2: defaultValue,
991
+ _threadCount: 0,
992
+ Provider: null,
993
+ Consumer: null
994
+ };
995
+ defaultValue.Provider = defaultValue;
996
+ defaultValue.Consumer = {
997
+ $$typeof: REACT_CONSUMER_TYPE,
998
+ _context: defaultValue
999
+ };
1000
+ defaultValue._currentRenderer = null;
1001
+ defaultValue._currentRenderer2 = null;
1002
+ return defaultValue;
1003
+ };
1004
+ exports.createElement = function (type, config, children) {
1005
+ for (var i = 2; i < arguments.length; i++)
1006
+ validateChildKeys(arguments[i]);
1007
+ i = {};
1008
+ var key = null;
1009
+ if (null != config)
1010
+ for (propName in (didWarnAboutOldJSXRuntime ||
1011
+ !("__self" in config) ||
1012
+ "key" in config ||
1013
+ ((didWarnAboutOldJSXRuntime = !0),
1014
+ console.warn(
1015
+ "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1016
+ )),
1017
+ hasValidKey(config) &&
1018
+ (checkKeyStringCoercion(config.key), (key = "" + config.key)),
1019
+ config))
1020
+ hasOwnProperty.call(config, propName) &&
1021
+ "key" !== propName &&
1022
+ "__self" !== propName &&
1023
+ "__source" !== propName &&
1024
+ (i[propName] = config[propName]);
1025
+ var childrenLength = arguments.length - 2;
1026
+ if (1 === childrenLength) i.children = children;
1027
+ else if (1 < childrenLength) {
1028
+ for (
1029
+ var childArray = Array(childrenLength), _i = 0;
1030
+ _i < childrenLength;
1031
+ _i++
1032
+ )
1033
+ childArray[_i] = arguments[_i + 2];
1034
+ Object.freeze && Object.freeze(childArray);
1035
+ i.children = childArray;
1036
+ }
1037
+ if (type && type.defaultProps)
1038
+ for (propName in ((childrenLength = type.defaultProps), childrenLength))
1039
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1040
+ key &&
1041
+ defineKeyPropWarningGetter(
1042
+ i,
1043
+ "function" === typeof type
1044
+ ? type.displayName || type.name || "Unknown"
1045
+ : type
1046
+ );
1047
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1048
+ return ReactElement(
1049
+ type,
1050
+ key,
1051
+ i,
1052
+ getOwner(),
1053
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1054
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1055
+ );
1056
+ };
1057
+ exports.createRef = function () {
1058
+ var refObject = { current: null };
1059
+ Object.seal(refObject);
1060
+ return refObject;
1061
+ };
1062
+ exports.forwardRef = function (render) {
1063
+ null != render && render.$$typeof === REACT_MEMO_TYPE
1064
+ ? console.error(
1065
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1066
+ )
1067
+ : "function" !== typeof render
1068
+ ? console.error(
1069
+ "forwardRef requires a render function but was given %s.",
1070
+ null === render ? "null" : typeof render
1071
+ )
1072
+ : 0 !== render.length &&
1073
+ 2 !== render.length &&
1074
+ console.error(
1075
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1076
+ 1 === render.length
1077
+ ? "Did you forget to use the ref parameter?"
1078
+ : "Any additional parameter will be undefined."
1079
+ );
1080
+ null != render &&
1081
+ null != render.defaultProps &&
1082
+ console.error(
1083
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1084
+ );
1085
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
1086
+ ownName;
1087
+ Object.defineProperty(elementType, "displayName", {
1088
+ enumerable: !1,
1089
+ configurable: !0,
1090
+ get: function () {
1091
+ return ownName;
1092
+ },
1093
+ set: function (name) {
1094
+ ownName = name;
1095
+ render.name ||
1096
+ render.displayName ||
1097
+ (Object.defineProperty(render, "name", { value: name }),
1098
+ (render.displayName = name));
1099
+ }
1100
+ });
1101
+ return elementType;
1102
+ };
1103
+ exports.isValidElement = isValidElement;
1104
+ exports.lazy = function (ctor) {
1105
+ ctor = { _status: -1, _result: ctor };
1106
+ var lazyType = {
1107
+ $$typeof: REACT_LAZY_TYPE,
1108
+ _payload: ctor,
1109
+ _init: lazyInitializer
1110
+ },
1111
+ ioInfo = {
1112
+ name: "lazy",
1113
+ start: -1,
1114
+ end: -1,
1115
+ value: null,
1116
+ owner: null,
1117
+ debugStack: Error("react-stack-top-frame"),
1118
+ debugTask: console.createTask ? console.createTask("lazy()") : null
1119
+ };
1120
+ ctor._ioInfo = ioInfo;
1121
+ lazyType._debugInfo = [{ awaited: ioInfo }];
1122
+ return lazyType;
1123
+ };
1124
+ exports.memo = function (type, compare) {
1125
+ null == type &&
1126
+ console.error(
1127
+ "memo: The first argument must be a component. Instead received: %s",
1128
+ null === type ? "null" : typeof type
1129
+ );
1130
+ compare = {
1131
+ $$typeof: REACT_MEMO_TYPE,
1132
+ type: type,
1133
+ compare: void 0 === compare ? null : compare
1134
+ };
1135
+ var ownName;
1136
+ Object.defineProperty(compare, "displayName", {
1137
+ enumerable: !1,
1138
+ configurable: !0,
1139
+ get: function () {
1140
+ return ownName;
1141
+ },
1142
+ set: function (name) {
1143
+ ownName = name;
1144
+ type.name ||
1145
+ type.displayName ||
1146
+ (Object.defineProperty(type, "name", { value: name }),
1147
+ (type.displayName = name));
1148
+ }
1149
+ });
1150
+ return compare;
1151
+ };
1152
+ exports.startTransition = function (scope) {
1153
+ var prevTransition = ReactSharedInternals.T,
1154
+ currentTransition = {};
1155
+ currentTransition._updatedFibers = new Set();
1156
+ ReactSharedInternals.T = currentTransition;
1157
+ try {
1158
+ var returnValue = scope(),
1159
+ onStartTransitionFinish = ReactSharedInternals.S;
1160
+ null !== onStartTransitionFinish &&
1161
+ onStartTransitionFinish(currentTransition, returnValue);
1162
+ "object" === typeof returnValue &&
1163
+ null !== returnValue &&
1164
+ "function" === typeof returnValue.then &&
1165
+ (ReactSharedInternals.asyncTransitions++,
1166
+ returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
1167
+ returnValue.then(noop, reportGlobalError));
1168
+ } catch (error) {
1169
+ reportGlobalError(error);
1170
+ } finally {
1171
+ null === prevTransition &&
1172
+ currentTransition._updatedFibers &&
1173
+ ((scope = currentTransition._updatedFibers.size),
1174
+ currentTransition._updatedFibers.clear(),
1175
+ 10 < scope &&
1176
+ console.warn(
1177
+ "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1178
+ )),
1179
+ null !== prevTransition &&
1180
+ null !== currentTransition.types &&
1181
+ (null !== prevTransition.types &&
1182
+ prevTransition.types !== currentTransition.types &&
1183
+ console.error(
1184
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1185
+ ),
1186
+ (prevTransition.types = currentTransition.types)),
1187
+ (ReactSharedInternals.T = prevTransition);
1188
+ }
1189
+ };
1190
+ exports.unstable_useCacheRefresh = function () {
1191
+ return resolveDispatcher().useCacheRefresh();
1192
+ };
1193
+ exports.use = function (usable) {
1194
+ return resolveDispatcher().use(usable);
1195
+ };
1196
+ exports.useActionState = function (action, initialState, permalink) {
1197
+ return resolveDispatcher().useActionState(
1198
+ action,
1199
+ initialState,
1200
+ permalink
1201
+ );
1202
+ };
1203
+ exports.useCallback = function (callback, deps) {
1204
+ return resolveDispatcher().useCallback(callback, deps);
1205
+ };
1206
+ exports.useContext = function (Context) {
1207
+ var dispatcher = resolveDispatcher();
1208
+ Context.$$typeof === REACT_CONSUMER_TYPE &&
1209
+ console.error(
1210
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1211
+ );
1212
+ return dispatcher.useContext(Context);
1213
+ };
1214
+ exports.useDebugValue = function (value, formatterFn) {
1215
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1216
+ };
1217
+ exports.useDeferredValue = function (value, initialValue) {
1218
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1219
+ };
1220
+ exports.useEffect = function (create, deps) {
1221
+ null == create &&
1222
+ console.warn(
1223
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1224
+ );
1225
+ return resolveDispatcher().useEffect(create, deps);
1226
+ };
1227
+ exports.useEffectEvent = function (callback) {
1228
+ return resolveDispatcher().useEffectEvent(callback);
1229
+ };
1230
+ exports.useId = function () {
1231
+ return resolveDispatcher().useId();
1232
+ };
1233
+ exports.useImperativeHandle = function (ref, create, deps) {
1234
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1235
+ };
1236
+ exports.useInsertionEffect = function (create, deps) {
1237
+ null == create &&
1238
+ console.warn(
1239
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1240
+ );
1241
+ return resolveDispatcher().useInsertionEffect(create, deps);
1242
+ };
1243
+ exports.useLayoutEffect = function (create, deps) {
1244
+ null == create &&
1245
+ console.warn(
1246
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1247
+ );
1248
+ return resolveDispatcher().useLayoutEffect(create, deps);
1249
+ };
1250
+ exports.useMemo = function (create, deps) {
1251
+ return resolveDispatcher().useMemo(create, deps);
1252
+ };
1253
+ exports.useOptimistic = function (passthrough, reducer) {
1254
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1255
+ };
1256
+ exports.useReducer = function (reducer, initialArg, init) {
1257
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1258
+ };
1259
+ exports.useRef = function (initialValue) {
1260
+ return resolveDispatcher().useRef(initialValue);
1261
+ };
1262
+ exports.useState = function (initialState) {
1263
+ return resolveDispatcher().useState(initialState);
1264
+ };
1265
+ exports.useSyncExternalStore = function (
1266
+ subscribe,
1267
+ getSnapshot,
1268
+ getServerSnapshot
1269
+ ) {
1270
+ return resolveDispatcher().useSyncExternalStore(
1271
+ subscribe,
1272
+ getSnapshot,
1273
+ getServerSnapshot
1274
+ );
1275
+ };
1276
+ exports.useTransition = function () {
1277
+ return resolveDispatcher().useTransition();
1278
+ };
1279
+ exports.version = "19.2.4-canary-90ab3f89-20260126";
1280
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1281
+ "function" ===
1282
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
1283
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1284
+ })();