yodel-embeded-wallet 0.0.2 → 0.0.4

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.
package/dist/index.js CHANGED
@@ -1,2293 +1,11 @@
1
- function createCommonjsModule(fn) {
2
- var module = { exports: {} };
3
- return fn(module, module.exports), module.exports;
4
- }
1
+ var React = require('react');
5
2
 
6
- /**
7
- * @license React
8
- * react-jsx-runtime.production.js
9
- *
10
- * Copyright (c) Meta Platforms, Inc. and affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
- var REACT_ELEMENT_TYPE$1 = Symbol.for("react.transitional.element"),
16
- REACT_FRAGMENT_TYPE$1 = Symbol.for("react.fragment");
17
- function jsxProd(type, config, maybeKey) {
18
- var key = null;
19
- void 0 !== maybeKey && (key = "" + maybeKey);
20
- void 0 !== config.key && (key = "" + config.key);
21
- if ("key" in config) {
22
- maybeKey = {};
23
- for (var propName in config)
24
- "key" !== propName && (maybeKey[propName] = config[propName]);
25
- } else maybeKey = config;
26
- config = maybeKey.ref;
27
- return {
28
- $$typeof: REACT_ELEMENT_TYPE$1,
29
- type: type,
30
- key: key,
31
- ref: void 0 !== config ? config : null,
32
- props: maybeKey
33
- };
34
- }
35
- var Fragment$1 = REACT_FRAGMENT_TYPE$1;
36
- var jsx = jsxProd;
37
- var jsxs = jsxProd;
3
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
38
4
 
39
- var reactJsxRuntime_production = {
40
- Fragment: Fragment$1,
41
- jsx: jsx,
42
- jsxs: jsxs
43
- };
44
-
45
- /**
46
- * @license React
47
- * react.production.js
48
- *
49
- * Copyright (c) Meta Platforms, Inc. and affiliates.
50
- *
51
- * This source code is licensed under the MIT license found in the
52
- * LICENSE file in the root directory of this source tree.
53
- */
54
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
55
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
56
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
57
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
58
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
59
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
60
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
61
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
62
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
63
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
64
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
65
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
66
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
67
- function getIteratorFn(maybeIterable) {
68
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
69
- maybeIterable =
70
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
71
- maybeIterable["@@iterator"];
72
- return "function" === typeof maybeIterable ? maybeIterable : null;
73
- }
74
- var ReactNoopUpdateQueue = {
75
- isMounted: function () {
76
- return !1;
77
- },
78
- enqueueForceUpdate: function () {},
79
- enqueueReplaceState: function () {},
80
- enqueueSetState: function () {}
81
- },
82
- assign = Object.assign,
83
- emptyObject = {};
84
- function Component(props, context, updater) {
85
- this.props = props;
86
- this.context = context;
87
- this.refs = emptyObject;
88
- this.updater = updater || ReactNoopUpdateQueue;
89
- }
90
- Component.prototype.isReactComponent = {};
91
- Component.prototype.setState = function (partialState, callback) {
92
- if (
93
- "object" !== typeof partialState &&
94
- "function" !== typeof partialState &&
95
- null != partialState
96
- )
97
- throw Error(
98
- "takes an object of state variables to update or a function which returns an object of state variables."
99
- );
100
- this.updater.enqueueSetState(this, partialState, callback, "setState");
101
- };
102
- Component.prototype.forceUpdate = function (callback) {
103
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
104
- };
105
- function ComponentDummy() {}
106
- ComponentDummy.prototype = Component.prototype;
107
- function PureComponent(props, context, updater) {
108
- this.props = props;
109
- this.context = context;
110
- this.refs = emptyObject;
111
- this.updater = updater || ReactNoopUpdateQueue;
112
- }
113
- var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
114
- pureComponentPrototype.constructor = PureComponent;
115
- assign(pureComponentPrototype, Component.prototype);
116
- pureComponentPrototype.isPureReactComponent = !0;
117
- var isArrayImpl = Array.isArray;
118
- function noop() {}
119
- var ReactSharedInternals = { H: null, A: null, T: null, S: null },
120
- hasOwnProperty = Object.prototype.hasOwnProperty;
121
- function ReactElement(type, key, props) {
122
- var refProp = props.ref;
123
- return {
124
- $$typeof: REACT_ELEMENT_TYPE,
125
- type: type,
126
- key: key,
127
- ref: void 0 !== refProp ? refProp : null,
128
- props: props
129
- };
130
- }
131
- function cloneAndReplaceKey(oldElement, newKey) {
132
- return ReactElement(oldElement.type, newKey, oldElement.props);
133
- }
134
- function isValidElement(object) {
135
- return (
136
- "object" === typeof object &&
137
- null !== object &&
138
- object.$$typeof === REACT_ELEMENT_TYPE
139
- );
140
- }
141
- function escape(key) {
142
- var escaperLookup = { "=": "=0", ":": "=2" };
143
- return (
144
- "$" +
145
- key.replace(/[=:]/g, function (match) {
146
- return escaperLookup[match];
147
- })
148
- );
149
- }
150
- var userProvidedKeyEscapeRegex = /\/+/g;
151
- function getElementKey(element, index) {
152
- return "object" === typeof element && null !== element && null != element.key
153
- ? escape("" + element.key)
154
- : index.toString(36);
155
- }
156
- function resolveThenable(thenable) {
157
- switch (thenable.status) {
158
- case "fulfilled":
159
- return thenable.value;
160
- case "rejected":
161
- throw thenable.reason;
162
- default:
163
- switch (
164
- ("string" === typeof thenable.status
165
- ? thenable.then(noop, noop)
166
- : ((thenable.status = "pending"),
167
- thenable.then(
168
- function (fulfilledValue) {
169
- "pending" === thenable.status &&
170
- ((thenable.status = "fulfilled"),
171
- (thenable.value = fulfilledValue));
172
- },
173
- function (error) {
174
- "pending" === thenable.status &&
175
- ((thenable.status = "rejected"), (thenable.reason = error));
176
- }
177
- )),
178
- thenable.status)
179
- ) {
180
- case "fulfilled":
181
- return thenable.value;
182
- case "rejected":
183
- throw thenable.reason;
184
- }
185
- }
186
- throw thenable;
187
- }
188
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
189
- var type = typeof children;
190
- if ("undefined" === type || "boolean" === type) children = null;
191
- var invokeCallback = !1;
192
- if (null === children) invokeCallback = !0;
193
- else
194
- switch (type) {
195
- case "bigint":
196
- case "string":
197
- case "number":
198
- invokeCallback = !0;
199
- break;
200
- case "object":
201
- switch (children.$$typeof) {
202
- case REACT_ELEMENT_TYPE:
203
- case REACT_PORTAL_TYPE:
204
- invokeCallback = !0;
205
- break;
206
- case REACT_LAZY_TYPE:
207
- return (
208
- (invokeCallback = children._init),
209
- mapIntoArray(
210
- invokeCallback(children._payload),
211
- array,
212
- escapedPrefix,
213
- nameSoFar,
214
- callback
215
- )
216
- );
217
- }
218
- }
219
- if (invokeCallback)
220
- return (
221
- (callback = callback(children)),
222
- (invokeCallback =
223
- "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
224
- isArrayImpl(callback)
225
- ? ((escapedPrefix = ""),
226
- null != invokeCallback &&
227
- (escapedPrefix =
228
- invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
229
- mapIntoArray(callback, array, escapedPrefix, "", function (c) {
230
- return c;
231
- }))
232
- : null != callback &&
233
- (isValidElement(callback) &&
234
- (callback = cloneAndReplaceKey(
235
- callback,
236
- escapedPrefix +
237
- (null == callback.key ||
238
- (children && children.key === callback.key)
239
- ? ""
240
- : ("" + callback.key).replace(
241
- userProvidedKeyEscapeRegex,
242
- "$&/"
243
- ) + "/") +
244
- invokeCallback
245
- )),
246
- array.push(callback)),
247
- 1
248
- );
249
- invokeCallback = 0;
250
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
251
- if (isArrayImpl(children))
252
- for (var i = 0; i < children.length; i++)
253
- (nameSoFar = children[i]),
254
- (type = nextNamePrefix + getElementKey(nameSoFar, i)),
255
- (invokeCallback += mapIntoArray(
256
- nameSoFar,
257
- array,
258
- escapedPrefix,
259
- type,
260
- callback
261
- ));
262
- else if (((i = getIteratorFn(children)), "function" === typeof i))
263
- for (
264
- children = i.call(children), i = 0;
265
- !(nameSoFar = children.next()).done;
266
-
267
- )
268
- (nameSoFar = nameSoFar.value),
269
- (type = nextNamePrefix + getElementKey(nameSoFar, i++)),
270
- (invokeCallback += mapIntoArray(
271
- nameSoFar,
272
- array,
273
- escapedPrefix,
274
- type,
275
- callback
276
- ));
277
- else if ("object" === type) {
278
- if ("function" === typeof children.then)
279
- return mapIntoArray(
280
- resolveThenable(children),
281
- array,
282
- escapedPrefix,
283
- nameSoFar,
284
- callback
285
- );
286
- array = String(children);
287
- throw Error(
288
- "Objects are not valid as a React child (found: " +
289
- ("[object Object]" === array
290
- ? "object with keys {" + Object.keys(children).join(", ") + "}"
291
- : array) +
292
- "). If you meant to render a collection of children, use an array instead."
293
- );
294
- }
295
- return invokeCallback;
296
- }
297
- function mapChildren(children, func, context) {
298
- if (null == children) return children;
299
- var result = [],
300
- count = 0;
301
- mapIntoArray(children, result, "", "", function (child) {
302
- return func.call(context, child, count++);
303
- });
304
- return result;
305
- }
306
- function lazyInitializer(payload) {
307
- if (-1 === payload._status) {
308
- var ctor = payload._result;
309
- ctor = ctor();
310
- ctor.then(
311
- function (moduleObject) {
312
- if (0 === payload._status || -1 === payload._status)
313
- (payload._status = 1), (payload._result = moduleObject);
314
- },
315
- function (error) {
316
- if (0 === payload._status || -1 === payload._status)
317
- (payload._status = 2), (payload._result = error);
318
- }
319
- );
320
- -1 === payload._status && ((payload._status = 0), (payload._result = ctor));
321
- }
322
- if (1 === payload._status) return payload._result.default;
323
- throw payload._result;
324
- }
325
- var reportGlobalError =
326
- "function" === typeof reportError
327
- ? reportError
328
- : function (error) {
329
- if (
330
- "object" === typeof window &&
331
- "function" === typeof window.ErrorEvent
332
- ) {
333
- var event = new window.ErrorEvent("error", {
334
- bubbles: !0,
335
- cancelable: !0,
336
- message:
337
- "object" === typeof error &&
338
- null !== error &&
339
- "string" === typeof error.message
340
- ? String(error.message)
341
- : String(error),
342
- error: error
343
- });
344
- if (!window.dispatchEvent(event)) return;
345
- } else if (
346
- "object" === typeof process &&
347
- "function" === typeof process.emit
348
- ) {
349
- process.emit("uncaughtException", error);
350
- return;
351
- }
352
- console.error(error);
353
- },
354
- Children = {
355
- map: mapChildren,
356
- forEach: function (children, forEachFunc, forEachContext) {
357
- mapChildren(
358
- children,
359
- function () {
360
- forEachFunc.apply(this, arguments);
361
- },
362
- forEachContext
363
- );
364
- },
365
- count: function (children) {
366
- var n = 0;
367
- mapChildren(children, function () {
368
- n++;
369
- });
370
- return n;
371
- },
372
- toArray: function (children) {
373
- return (
374
- mapChildren(children, function (child) {
375
- return child;
376
- }) || []
377
- );
378
- },
379
- only: function (children) {
380
- if (!isValidElement(children))
381
- throw Error(
382
- "React.Children.only expected to receive a single React element child."
383
- );
384
- return children;
385
- }
386
- };
387
- var Activity = REACT_ACTIVITY_TYPE;
388
- var Children_1 = Children;
389
- var Component_1 = Component;
390
- var Fragment = REACT_FRAGMENT_TYPE;
391
- var Profiler = REACT_PROFILER_TYPE;
392
- var PureComponent_1 = PureComponent;
393
- var StrictMode = REACT_STRICT_MODE_TYPE;
394
- var Suspense = REACT_SUSPENSE_TYPE;
395
- var __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
396
- ReactSharedInternals;
397
- var __COMPILER_RUNTIME = {
398
- __proto__: null,
399
- c: function (size) {
400
- return ReactSharedInternals.H.useMemoCache(size);
401
- }
402
- };
403
- var cache = function (fn) {
404
- return function () {
405
- return fn.apply(null, arguments);
406
- };
407
- };
408
- var cacheSignal = function () {
409
- return null;
410
- };
411
- var cloneElement = function (element, config, children) {
412
- if (null === element || void 0 === element)
413
- throw Error(
414
- "The argument must be a React element, but you passed " + element + "."
415
- );
416
- var props = assign({}, element.props),
417
- key = element.key;
418
- if (null != config)
419
- for (propName in (void 0 !== config.key && (key = "" + config.key), config))
420
- !hasOwnProperty.call(config, propName) ||
421
- "key" === propName ||
422
- "__self" === propName ||
423
- "__source" === propName ||
424
- ("ref" === propName && void 0 === config.ref) ||
425
- (props[propName] = config[propName]);
426
- var propName = arguments.length - 2;
427
- if (1 === propName) props.children = children;
428
- else if (1 < propName) {
429
- for (var childArray = Array(propName), i = 0; i < propName; i++)
430
- childArray[i] = arguments[i + 2];
431
- props.children = childArray;
432
- }
433
- return ReactElement(element.type, key, props);
434
- };
435
- var createContext = function (defaultValue) {
436
- defaultValue = {
437
- $$typeof: REACT_CONTEXT_TYPE,
438
- _currentValue: defaultValue,
439
- _currentValue2: defaultValue,
440
- _threadCount: 0,
441
- Provider: null,
442
- Consumer: null
443
- };
444
- defaultValue.Provider = defaultValue;
445
- defaultValue.Consumer = {
446
- $$typeof: REACT_CONSUMER_TYPE,
447
- _context: defaultValue
448
- };
449
- return defaultValue;
450
- };
451
- var createElement = function (type, config, children) {
452
- var propName,
453
- props = {},
454
- key = null;
455
- if (null != config)
456
- for (propName in (void 0 !== config.key && (key = "" + config.key), config))
457
- hasOwnProperty.call(config, propName) &&
458
- "key" !== propName &&
459
- "__self" !== propName &&
460
- "__source" !== propName &&
461
- (props[propName] = config[propName]);
462
- var childrenLength = arguments.length - 2;
463
- if (1 === childrenLength) props.children = children;
464
- else if (1 < childrenLength) {
465
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
466
- childArray[i] = arguments[i + 2];
467
- props.children = childArray;
468
- }
469
- if (type && type.defaultProps)
470
- for (propName in ((childrenLength = type.defaultProps), childrenLength))
471
- void 0 === props[propName] &&
472
- (props[propName] = childrenLength[propName]);
473
- return ReactElement(type, key, props);
474
- };
475
- var createRef = function () {
476
- return { current: null };
477
- };
478
- var forwardRef = function (render) {
479
- return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
480
- };
481
- var isValidElement_1 = isValidElement;
482
- var lazy = function (ctor) {
483
- return {
484
- $$typeof: REACT_LAZY_TYPE,
485
- _payload: { _status: -1, _result: ctor },
486
- _init: lazyInitializer
487
- };
488
- };
489
- var memo = function (type, compare) {
490
- return {
491
- $$typeof: REACT_MEMO_TYPE,
492
- type: type,
493
- compare: void 0 === compare ? null : compare
494
- };
495
- };
496
- var startTransition = function (scope) {
497
- var prevTransition = ReactSharedInternals.T,
498
- currentTransition = {};
499
- ReactSharedInternals.T = currentTransition;
500
- try {
501
- var returnValue = scope(),
502
- onStartTransitionFinish = ReactSharedInternals.S;
503
- null !== onStartTransitionFinish &&
504
- onStartTransitionFinish(currentTransition, returnValue);
505
- "object" === typeof returnValue &&
506
- null !== returnValue &&
507
- "function" === typeof returnValue.then &&
508
- returnValue.then(noop, reportGlobalError);
509
- } catch (error) {
510
- reportGlobalError(error);
511
- } finally {
512
- null !== prevTransition &&
513
- null !== currentTransition.types &&
514
- (prevTransition.types = currentTransition.types),
515
- (ReactSharedInternals.T = prevTransition);
516
- }
517
- };
518
- var unstable_useCacheRefresh = function () {
519
- return ReactSharedInternals.H.useCacheRefresh();
520
- };
521
- var use = function (usable) {
522
- return ReactSharedInternals.H.use(usable);
523
- };
524
- var useActionState = function (action, initialState, permalink) {
525
- return ReactSharedInternals.H.useActionState(action, initialState, permalink);
526
- };
527
- var useCallback = function (callback, deps) {
528
- return ReactSharedInternals.H.useCallback(callback, deps);
529
- };
530
- var useContext = function (Context) {
531
- return ReactSharedInternals.H.useContext(Context);
532
- };
533
- var useDebugValue = function () {};
534
- var useDeferredValue = function (value, initialValue) {
535
- return ReactSharedInternals.H.useDeferredValue(value, initialValue);
536
- };
537
- var useEffect = function (create, deps) {
538
- return ReactSharedInternals.H.useEffect(create, deps);
539
- };
540
- var useEffectEvent = function (callback) {
541
- return ReactSharedInternals.H.useEffectEvent(callback);
542
- };
543
- var useId = function () {
544
- return ReactSharedInternals.H.useId();
545
- };
546
- var useImperativeHandle = function (ref, create, deps) {
547
- return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
548
- };
549
- var useInsertionEffect = function (create, deps) {
550
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
551
- };
552
- var useLayoutEffect = function (create, deps) {
553
- return ReactSharedInternals.H.useLayoutEffect(create, deps);
554
- };
555
- var useMemo = function (create, deps) {
556
- return ReactSharedInternals.H.useMemo(create, deps);
557
- };
558
- var useOptimistic = function (passthrough, reducer) {
559
- return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
560
- };
561
- var useReducer = function (reducer, initialArg, init) {
562
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
563
- };
564
- var useRef = function (initialValue) {
565
- return ReactSharedInternals.H.useRef(initialValue);
566
- };
567
- var useState = function (initialState) {
568
- return ReactSharedInternals.H.useState(initialState);
569
- };
570
- var useSyncExternalStore = function (
571
- subscribe,
572
- getSnapshot,
573
- getServerSnapshot
574
- ) {
575
- return ReactSharedInternals.H.useSyncExternalStore(
576
- subscribe,
577
- getSnapshot,
578
- getServerSnapshot
579
- );
580
- };
581
- var useTransition = function () {
582
- return ReactSharedInternals.H.useTransition();
583
- };
584
- var version = "19.2.3";
585
-
586
- var react_production = {
587
- Activity: Activity,
588
- Children: Children_1,
589
- Component: Component_1,
590
- Fragment: Fragment,
591
- Profiler: Profiler,
592
- PureComponent: PureComponent_1,
593
- StrictMode: StrictMode,
594
- Suspense: Suspense,
595
- __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE: __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
596
- __COMPILER_RUNTIME: __COMPILER_RUNTIME,
597
- cache: cache,
598
- cacheSignal: cacheSignal,
599
- cloneElement: cloneElement,
600
- createContext: createContext,
601
- createElement: createElement,
602
- createRef: createRef,
603
- forwardRef: forwardRef,
604
- isValidElement: isValidElement_1,
605
- lazy: lazy,
606
- memo: memo,
607
- startTransition: startTransition,
608
- unstable_useCacheRefresh: unstable_useCacheRefresh,
609
- use: use,
610
- useActionState: useActionState,
611
- useCallback: useCallback,
612
- useContext: useContext,
613
- useDebugValue: useDebugValue,
614
- useDeferredValue: useDeferredValue,
615
- useEffect: useEffect,
616
- useEffectEvent: useEffectEvent,
617
- useId: useId,
618
- useImperativeHandle: useImperativeHandle,
619
- useInsertionEffect: useInsertionEffect,
620
- useLayoutEffect: useLayoutEffect,
621
- useMemo: useMemo,
622
- useOptimistic: useOptimistic,
623
- useReducer: useReducer,
624
- useRef: useRef,
625
- useState: useState,
626
- useSyncExternalStore: useSyncExternalStore,
627
- useTransition: useTransition,
628
- version: version
629
- };
630
-
631
- /**
632
- * @license React
633
- * react.development.js
634
- *
635
- * Copyright (c) Meta Platforms, Inc. and affiliates.
636
- *
637
- * This source code is licensed under the MIT license found in the
638
- * LICENSE file in the root directory of this source tree.
639
- */
640
-
641
- var react_development = createCommonjsModule(function (module, exports) {
642
- "production" !== process.env.NODE_ENV &&
643
- (function () {
644
- function defineDeprecationWarning(methodName, info) {
645
- Object.defineProperty(Component.prototype, methodName, {
646
- get: function () {
647
- console.warn(
648
- "%s(...) is deprecated in plain JavaScript React classes. %s",
649
- info[0],
650
- info[1]
651
- );
652
- }
653
- });
654
- }
655
- function getIteratorFn(maybeIterable) {
656
- if (null === maybeIterable || "object" !== typeof maybeIterable)
657
- return null;
658
- maybeIterable =
659
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
660
- maybeIterable["@@iterator"];
661
- return "function" === typeof maybeIterable ? maybeIterable : null;
662
- }
663
- function warnNoop(publicInstance, callerName) {
664
- publicInstance =
665
- ((publicInstance = publicInstance.constructor) &&
666
- (publicInstance.displayName || publicInstance.name)) ||
667
- "ReactClass";
668
- var warningKey = publicInstance + "." + callerName;
669
- didWarnStateUpdateForUnmountedComponent[warningKey] ||
670
- (console.error(
671
- "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.",
672
- callerName,
673
- publicInstance
674
- ),
675
- (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));
676
- }
677
- function Component(props, context, updater) {
678
- this.props = props;
679
- this.context = context;
680
- this.refs = emptyObject;
681
- this.updater = updater || ReactNoopUpdateQueue;
682
- }
683
- function ComponentDummy() {}
684
- function PureComponent(props, context, updater) {
685
- this.props = props;
686
- this.context = context;
687
- this.refs = emptyObject;
688
- this.updater = updater || ReactNoopUpdateQueue;
689
- }
690
- function noop() {}
691
- function testStringCoercion(value) {
692
- return "" + value;
693
- }
694
- function checkKeyStringCoercion(value) {
695
- try {
696
- testStringCoercion(value);
697
- var JSCompiler_inline_result = !1;
698
- } catch (e) {
699
- JSCompiler_inline_result = !0;
700
- }
701
- if (JSCompiler_inline_result) {
702
- JSCompiler_inline_result = console;
703
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
704
- var JSCompiler_inline_result$jscomp$0 =
705
- ("function" === typeof Symbol &&
706
- Symbol.toStringTag &&
707
- value[Symbol.toStringTag]) ||
708
- value.constructor.name ||
709
- "Object";
710
- JSCompiler_temp_const.call(
711
- JSCompiler_inline_result,
712
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
713
- JSCompiler_inline_result$jscomp$0
714
- );
715
- return testStringCoercion(value);
716
- }
717
- }
718
- function getComponentNameFromType(type) {
719
- if (null == type) return null;
720
- if ("function" === typeof type)
721
- return type.$$typeof === REACT_CLIENT_REFERENCE
722
- ? null
723
- : type.displayName || type.name || null;
724
- if ("string" === typeof type) return type;
725
- switch (type) {
726
- case REACT_FRAGMENT_TYPE:
727
- return "Fragment";
728
- case REACT_PROFILER_TYPE:
729
- return "Profiler";
730
- case REACT_STRICT_MODE_TYPE:
731
- return "StrictMode";
732
- case REACT_SUSPENSE_TYPE:
733
- return "Suspense";
734
- case REACT_SUSPENSE_LIST_TYPE:
735
- return "SuspenseList";
736
- case REACT_ACTIVITY_TYPE:
737
- return "Activity";
738
- }
739
- if ("object" === typeof type)
740
- switch (
741
- ("number" === typeof type.tag &&
742
- console.error(
743
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
744
- ),
745
- type.$$typeof)
746
- ) {
747
- case REACT_PORTAL_TYPE:
748
- return "Portal";
749
- case REACT_CONTEXT_TYPE:
750
- return type.displayName || "Context";
751
- case REACT_CONSUMER_TYPE:
752
- return (type._context.displayName || "Context") + ".Consumer";
753
- case REACT_FORWARD_REF_TYPE:
754
- var innerType = type.render;
755
- type = type.displayName;
756
- type ||
757
- ((type = innerType.displayName || innerType.name || ""),
758
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
759
- return type;
760
- case REACT_MEMO_TYPE:
761
- return (
762
- (innerType = type.displayName || null),
763
- null !== innerType
764
- ? innerType
765
- : getComponentNameFromType(type.type) || "Memo"
766
- );
767
- case REACT_LAZY_TYPE:
768
- innerType = type._payload;
769
- type = type._init;
770
- try {
771
- return getComponentNameFromType(type(innerType));
772
- } catch (x) {}
773
- }
774
- return null;
775
- }
776
- function getTaskName(type) {
777
- if (type === REACT_FRAGMENT_TYPE) return "<>";
778
- if (
779
- "object" === typeof type &&
780
- null !== type &&
781
- type.$$typeof === REACT_LAZY_TYPE
782
- )
783
- return "<...>";
784
- try {
785
- var name = getComponentNameFromType(type);
786
- return name ? "<" + name + ">" : "<...>";
787
- } catch (x) {
788
- return "<...>";
789
- }
790
- }
791
- function getOwner() {
792
- var dispatcher = ReactSharedInternals.A;
793
- return null === dispatcher ? null : dispatcher.getOwner();
794
- }
795
- function UnknownOwner() {
796
- return Error("react-stack-top-frame");
797
- }
798
- function hasValidKey(config) {
799
- if (hasOwnProperty.call(config, "key")) {
800
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
801
- if (getter && getter.isReactWarning) return !1;
802
- }
803
- return void 0 !== config.key;
804
- }
805
- function defineKeyPropWarningGetter(props, displayName) {
806
- function warnAboutAccessingKey() {
807
- specialPropKeyWarningShown ||
808
- ((specialPropKeyWarningShown = !0),
809
- console.error(
810
- "%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)",
811
- displayName
812
- ));
813
- }
814
- warnAboutAccessingKey.isReactWarning = !0;
815
- Object.defineProperty(props, "key", {
816
- get: warnAboutAccessingKey,
817
- configurable: !0
818
- });
819
- }
820
- function elementRefGetterWithDeprecationWarning() {
821
- var componentName = getComponentNameFromType(this.type);
822
- didWarnAboutElementRef[componentName] ||
823
- ((didWarnAboutElementRef[componentName] = !0),
824
- console.error(
825
- "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."
826
- ));
827
- componentName = this.props.ref;
828
- return void 0 !== componentName ? componentName : null;
829
- }
830
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
831
- var refProp = props.ref;
832
- type = {
833
- $$typeof: REACT_ELEMENT_TYPE,
834
- type: type,
835
- key: key,
836
- props: props,
837
- _owner: owner
838
- };
839
- null !== (void 0 !== refProp ? refProp : null)
840
- ? Object.defineProperty(type, "ref", {
841
- enumerable: !1,
842
- get: elementRefGetterWithDeprecationWarning
843
- })
844
- : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
845
- type._store = {};
846
- Object.defineProperty(type._store, "validated", {
847
- configurable: !1,
848
- enumerable: !1,
849
- writable: !0,
850
- value: 0
851
- });
852
- Object.defineProperty(type, "_debugInfo", {
853
- configurable: !1,
854
- enumerable: !1,
855
- writable: !0,
856
- value: null
857
- });
858
- Object.defineProperty(type, "_debugStack", {
859
- configurable: !1,
860
- enumerable: !1,
861
- writable: !0,
862
- value: debugStack
863
- });
864
- Object.defineProperty(type, "_debugTask", {
865
- configurable: !1,
866
- enumerable: !1,
867
- writable: !0,
868
- value: debugTask
869
- });
870
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
871
- return type;
872
- }
873
- function cloneAndReplaceKey(oldElement, newKey) {
874
- newKey = ReactElement(
875
- oldElement.type,
876
- newKey,
877
- oldElement.props,
878
- oldElement._owner,
879
- oldElement._debugStack,
880
- oldElement._debugTask
881
- );
882
- oldElement._store &&
883
- (newKey._store.validated = oldElement._store.validated);
884
- return newKey;
885
- }
886
- function validateChildKeys(node) {
887
- isValidElement(node)
888
- ? node._store && (node._store.validated = 1)
889
- : "object" === typeof node &&
890
- null !== node &&
891
- node.$$typeof === REACT_LAZY_TYPE &&
892
- ("fulfilled" === node._payload.status
893
- ? isValidElement(node._payload.value) &&
894
- node._payload.value._store &&
895
- (node._payload.value._store.validated = 1)
896
- : node._store && (node._store.validated = 1));
897
- }
898
- function isValidElement(object) {
899
- return (
900
- "object" === typeof object &&
901
- null !== object &&
902
- object.$$typeof === REACT_ELEMENT_TYPE
903
- );
904
- }
905
- function escape(key) {
906
- var escaperLookup = { "=": "=0", ":": "=2" };
907
- return (
908
- "$" +
909
- key.replace(/[=:]/g, function (match) {
910
- return escaperLookup[match];
911
- })
912
- );
913
- }
914
- function getElementKey(element, index) {
915
- return "object" === typeof element &&
916
- null !== element &&
917
- null != element.key
918
- ? (checkKeyStringCoercion(element.key), escape("" + element.key))
919
- : index.toString(36);
920
- }
921
- function resolveThenable(thenable) {
922
- switch (thenable.status) {
923
- case "fulfilled":
924
- return thenable.value;
925
- case "rejected":
926
- throw thenable.reason;
927
- default:
928
- switch (
929
- ("string" === typeof thenable.status
930
- ? thenable.then(noop, noop)
931
- : ((thenable.status = "pending"),
932
- thenable.then(
933
- function (fulfilledValue) {
934
- "pending" === thenable.status &&
935
- ((thenable.status = "fulfilled"),
936
- (thenable.value = fulfilledValue));
937
- },
938
- function (error) {
939
- "pending" === thenable.status &&
940
- ((thenable.status = "rejected"),
941
- (thenable.reason = error));
942
- }
943
- )),
944
- thenable.status)
945
- ) {
946
- case "fulfilled":
947
- return thenable.value;
948
- case "rejected":
949
- throw thenable.reason;
950
- }
951
- }
952
- throw thenable;
953
- }
954
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
955
- var type = typeof children;
956
- if ("undefined" === type || "boolean" === type) children = null;
957
- var invokeCallback = !1;
958
- if (null === children) invokeCallback = !0;
959
- else
960
- switch (type) {
961
- case "bigint":
962
- case "string":
963
- case "number":
964
- invokeCallback = !0;
965
- break;
966
- case "object":
967
- switch (children.$$typeof) {
968
- case REACT_ELEMENT_TYPE:
969
- case REACT_PORTAL_TYPE:
970
- invokeCallback = !0;
971
- break;
972
- case REACT_LAZY_TYPE:
973
- return (
974
- (invokeCallback = children._init),
975
- mapIntoArray(
976
- invokeCallback(children._payload),
977
- array,
978
- escapedPrefix,
979
- nameSoFar,
980
- callback
981
- )
982
- );
983
- }
984
- }
985
- if (invokeCallback) {
986
- invokeCallback = children;
987
- callback = callback(invokeCallback);
988
- var childKey =
989
- "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
990
- isArrayImpl(callback)
991
- ? ((escapedPrefix = ""),
992
- null != childKey &&
993
- (escapedPrefix =
994
- childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
995
- mapIntoArray(callback, array, escapedPrefix, "", function (c) {
996
- return c;
997
- }))
998
- : null != callback &&
999
- (isValidElement(callback) &&
1000
- (null != callback.key &&
1001
- ((invokeCallback && invokeCallback.key === callback.key) ||
1002
- checkKeyStringCoercion(callback.key)),
1003
- (escapedPrefix = cloneAndReplaceKey(
1004
- callback,
1005
- escapedPrefix +
1006
- (null == callback.key ||
1007
- (invokeCallback && invokeCallback.key === callback.key)
1008
- ? ""
1009
- : ("" + callback.key).replace(
1010
- userProvidedKeyEscapeRegex,
1011
- "$&/"
1012
- ) + "/") +
1013
- childKey
1014
- )),
1015
- "" !== nameSoFar &&
1016
- null != invokeCallback &&
1017
- isValidElement(invokeCallback) &&
1018
- null == invokeCallback.key &&
1019
- invokeCallback._store &&
1020
- !invokeCallback._store.validated &&
1021
- (escapedPrefix._store.validated = 2),
1022
- (callback = escapedPrefix)),
1023
- array.push(callback));
1024
- return 1;
1025
- }
1026
- invokeCallback = 0;
1027
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
1028
- if (isArrayImpl(children))
1029
- for (var i = 0; i < children.length; i++)
1030
- (nameSoFar = children[i]),
1031
- (type = childKey + getElementKey(nameSoFar, i)),
1032
- (invokeCallback += mapIntoArray(
1033
- nameSoFar,
1034
- array,
1035
- escapedPrefix,
1036
- type,
1037
- callback
1038
- ));
1039
- else if (((i = getIteratorFn(children)), "function" === typeof i))
1040
- for (
1041
- i === children.entries &&
1042
- (didWarnAboutMaps ||
1043
- console.warn(
1044
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
1045
- ),
1046
- (didWarnAboutMaps = !0)),
1047
- children = i.call(children),
1048
- i = 0;
1049
- !(nameSoFar = children.next()).done;
1050
-
1051
- )
1052
- (nameSoFar = nameSoFar.value),
1053
- (type = childKey + getElementKey(nameSoFar, i++)),
1054
- (invokeCallback += mapIntoArray(
1055
- nameSoFar,
1056
- array,
1057
- escapedPrefix,
1058
- type,
1059
- callback
1060
- ));
1061
- else if ("object" === type) {
1062
- if ("function" === typeof children.then)
1063
- return mapIntoArray(
1064
- resolveThenable(children),
1065
- array,
1066
- escapedPrefix,
1067
- nameSoFar,
1068
- callback
1069
- );
1070
- array = String(children);
1071
- throw Error(
1072
- "Objects are not valid as a React child (found: " +
1073
- ("[object Object]" === array
1074
- ? "object with keys {" + Object.keys(children).join(", ") + "}"
1075
- : array) +
1076
- "). If you meant to render a collection of children, use an array instead."
1077
- );
1078
- }
1079
- return invokeCallback;
1080
- }
1081
- function mapChildren(children, func, context) {
1082
- if (null == children) return children;
1083
- var result = [],
1084
- count = 0;
1085
- mapIntoArray(children, result, "", "", function (child) {
1086
- return func.call(context, child, count++);
1087
- });
1088
- return result;
1089
- }
1090
- function lazyInitializer(payload) {
1091
- if (-1 === payload._status) {
1092
- var ioInfo = payload._ioInfo;
1093
- null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
1094
- ioInfo = payload._result;
1095
- var thenable = ioInfo();
1096
- thenable.then(
1097
- function (moduleObject) {
1098
- if (0 === payload._status || -1 === payload._status) {
1099
- payload._status = 1;
1100
- payload._result = moduleObject;
1101
- var _ioInfo = payload._ioInfo;
1102
- null != _ioInfo && (_ioInfo.end = performance.now());
1103
- void 0 === thenable.status &&
1104
- ((thenable.status = "fulfilled"),
1105
- (thenable.value = moduleObject));
1106
- }
1107
- },
1108
- function (error) {
1109
- if (0 === payload._status || -1 === payload._status) {
1110
- payload._status = 2;
1111
- payload._result = error;
1112
- var _ioInfo2 = payload._ioInfo;
1113
- null != _ioInfo2 && (_ioInfo2.end = performance.now());
1114
- void 0 === thenable.status &&
1115
- ((thenable.status = "rejected"), (thenable.reason = error));
1116
- }
1117
- }
1118
- );
1119
- ioInfo = payload._ioInfo;
1120
- if (null != ioInfo) {
1121
- ioInfo.value = thenable;
1122
- var displayName = thenable.displayName;
1123
- "string" === typeof displayName && (ioInfo.name = displayName);
1124
- }
1125
- -1 === payload._status &&
1126
- ((payload._status = 0), (payload._result = thenable));
1127
- }
1128
- if (1 === payload._status)
1129
- return (
1130
- (ioInfo = payload._result),
1131
- void 0 === ioInfo &&
1132
- console.error(
1133
- "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?",
1134
- ioInfo
1135
- ),
1136
- "default" in ioInfo ||
1137
- console.error(
1138
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
1139
- ioInfo
1140
- ),
1141
- ioInfo.default
1142
- );
1143
- throw payload._result;
1144
- }
1145
- function resolveDispatcher() {
1146
- var dispatcher = ReactSharedInternals.H;
1147
- null === dispatcher &&
1148
- console.error(
1149
- "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."
1150
- );
1151
- return dispatcher;
1152
- }
1153
- function releaseAsyncTransition() {
1154
- ReactSharedInternals.asyncTransitions--;
1155
- }
1156
- function enqueueTask(task) {
1157
- if (null === enqueueTaskImpl)
1158
- try {
1159
- var requireString = ("require" + Math.random()).slice(0, 7);
1160
- enqueueTaskImpl = (module && module[requireString]).call(
1161
- module,
1162
- "timers"
1163
- ).setImmediate;
1164
- } catch (_err) {
1165
- enqueueTaskImpl = function (callback) {
1166
- !1 === didWarnAboutMessageChannel &&
1167
- ((didWarnAboutMessageChannel = !0),
1168
- "undefined" === typeof MessageChannel &&
1169
- console.error(
1170
- "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."
1171
- ));
1172
- var channel = new MessageChannel();
1173
- channel.port1.onmessage = callback;
1174
- channel.port2.postMessage(void 0);
1175
- };
1176
- }
1177
- return enqueueTaskImpl(task);
1178
- }
1179
- function aggregateErrors(errors) {
1180
- return 1 < errors.length && "function" === typeof AggregateError
1181
- ? new AggregateError(errors)
1182
- : errors[0];
1183
- }
1184
- function popActScope(prevActQueue, prevActScopeDepth) {
1185
- prevActScopeDepth !== actScopeDepth - 1 &&
1186
- console.error(
1187
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1188
- );
1189
- actScopeDepth = prevActScopeDepth;
1190
- }
1191
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
1192
- var queue = ReactSharedInternals.actQueue;
1193
- if (null !== queue)
1194
- if (0 !== queue.length)
1195
- try {
1196
- flushActQueue(queue);
1197
- enqueueTask(function () {
1198
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1199
- });
1200
- return;
1201
- } catch (error) {
1202
- ReactSharedInternals.thrownErrors.push(error);
1203
- }
1204
- else ReactSharedInternals.actQueue = null;
1205
- 0 < ReactSharedInternals.thrownErrors.length
1206
- ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
1207
- (ReactSharedInternals.thrownErrors.length = 0),
1208
- reject(queue))
1209
- : resolve(returnValue);
1210
- }
1211
- function flushActQueue(queue) {
1212
- if (!isFlushing) {
1213
- isFlushing = !0;
1214
- var i = 0;
1215
- try {
1216
- for (; i < queue.length; i++) {
1217
- var callback = queue[i];
1218
- do {
1219
- ReactSharedInternals.didUsePromise = !1;
1220
- var continuation = callback(!1);
1221
- if (null !== continuation) {
1222
- if (ReactSharedInternals.didUsePromise) {
1223
- queue[i] = callback;
1224
- queue.splice(0, i);
1225
- return;
1226
- }
1227
- callback = continuation;
1228
- } else break;
1229
- } while (1);
1230
- }
1231
- queue.length = 0;
1232
- } catch (error) {
1233
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
1234
- } finally {
1235
- isFlushing = !1;
1236
- }
1237
- }
1238
- }
1239
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1240
- "function" ===
1241
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
1242
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1243
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1244
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1245
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1246
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1247
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
1248
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1249
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1250
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1251
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1252
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1253
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
1254
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1255
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1256
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
1257
- didWarnStateUpdateForUnmountedComponent = {},
1258
- ReactNoopUpdateQueue = {
1259
- isMounted: function () {
1260
- return !1;
1261
- },
1262
- enqueueForceUpdate: function (publicInstance) {
1263
- warnNoop(publicInstance, "forceUpdate");
1264
- },
1265
- enqueueReplaceState: function (publicInstance) {
1266
- warnNoop(publicInstance, "replaceState");
1267
- },
1268
- enqueueSetState: function (publicInstance) {
1269
- warnNoop(publicInstance, "setState");
1270
- }
1271
- },
1272
- assign = Object.assign,
1273
- emptyObject = {};
1274
- Object.freeze(emptyObject);
1275
- Component.prototype.isReactComponent = {};
1276
- Component.prototype.setState = function (partialState, callback) {
1277
- if (
1278
- "object" !== typeof partialState &&
1279
- "function" !== typeof partialState &&
1280
- null != partialState
1281
- )
1282
- throw Error(
1283
- "takes an object of state variables to update or a function which returns an object of state variables."
1284
- );
1285
- this.updater.enqueueSetState(this, partialState, callback, "setState");
1286
- };
1287
- Component.prototype.forceUpdate = function (callback) {
1288
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1289
- };
1290
- var deprecatedAPIs = {
1291
- isMounted: [
1292
- "isMounted",
1293
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1294
- ],
1295
- replaceState: [
1296
- "replaceState",
1297
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1298
- ]
1299
- };
1300
- for (fnName in deprecatedAPIs)
1301
- deprecatedAPIs.hasOwnProperty(fnName) &&
1302
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1303
- ComponentDummy.prototype = Component.prototype;
1304
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1305
- deprecatedAPIs.constructor = PureComponent;
1306
- assign(deprecatedAPIs, Component.prototype);
1307
- deprecatedAPIs.isPureReactComponent = !0;
1308
- var isArrayImpl = Array.isArray,
1309
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1310
- ReactSharedInternals = {
1311
- H: null,
1312
- A: null,
1313
- T: null,
1314
- S: null,
1315
- actQueue: null,
1316
- asyncTransitions: 0,
1317
- isBatchingLegacy: !1,
1318
- didScheduleLegacyUpdate: !1,
1319
- didUsePromise: !1,
1320
- thrownErrors: [],
1321
- getCurrentStack: null,
1322
- recentlyCreatedOwnerStacks: 0
1323
- },
1324
- hasOwnProperty = Object.prototype.hasOwnProperty,
1325
- createTask = console.createTask
1326
- ? console.createTask
1327
- : function () {
1328
- return null;
1329
- };
1330
- deprecatedAPIs = {
1331
- react_stack_bottom_frame: function (callStackForError) {
1332
- return callStackForError();
1333
- }
1334
- };
1335
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1336
- var didWarnAboutElementRef = {};
1337
- var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1338
- deprecatedAPIs,
1339
- UnknownOwner
1340
- )();
1341
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1342
- var didWarnAboutMaps = !1,
1343
- userProvidedKeyEscapeRegex = /\/+/g,
1344
- reportGlobalError =
1345
- "function" === typeof reportError
1346
- ? reportError
1347
- : function (error) {
1348
- if (
1349
- "object" === typeof window &&
1350
- "function" === typeof window.ErrorEvent
1351
- ) {
1352
- var event = new window.ErrorEvent("error", {
1353
- bubbles: !0,
1354
- cancelable: !0,
1355
- message:
1356
- "object" === typeof error &&
1357
- null !== error &&
1358
- "string" === typeof error.message
1359
- ? String(error.message)
1360
- : String(error),
1361
- error: error
1362
- });
1363
- if (!window.dispatchEvent(event)) return;
1364
- } else if (
1365
- "object" === typeof process &&
1366
- "function" === typeof process.emit
1367
- ) {
1368
- process.emit("uncaughtException", error);
1369
- return;
1370
- }
1371
- console.error(error);
1372
- },
1373
- didWarnAboutMessageChannel = !1,
1374
- enqueueTaskImpl = null,
1375
- actScopeDepth = 0,
1376
- didWarnNoAwaitAct = !1,
1377
- isFlushing = !1,
1378
- queueSeveralMicrotasks =
1379
- "function" === typeof queueMicrotask
1380
- ? function (callback) {
1381
- queueMicrotask(function () {
1382
- return queueMicrotask(callback);
1383
- });
1384
- }
1385
- : enqueueTask;
1386
- deprecatedAPIs = Object.freeze({
1387
- __proto__: null,
1388
- c: function (size) {
1389
- return resolveDispatcher().useMemoCache(size);
1390
- }
1391
- });
1392
- var fnName = {
1393
- map: mapChildren,
1394
- forEach: function (children, forEachFunc, forEachContext) {
1395
- mapChildren(
1396
- children,
1397
- function () {
1398
- forEachFunc.apply(this, arguments);
1399
- },
1400
- forEachContext
1401
- );
1402
- },
1403
- count: function (children) {
1404
- var n = 0;
1405
- mapChildren(children, function () {
1406
- n++;
1407
- });
1408
- return n;
1409
- },
1410
- toArray: function (children) {
1411
- return (
1412
- mapChildren(children, function (child) {
1413
- return child;
1414
- }) || []
1415
- );
1416
- },
1417
- only: function (children) {
1418
- if (!isValidElement(children))
1419
- throw Error(
1420
- "React.Children.only expected to receive a single React element child."
1421
- );
1422
- return children;
1423
- }
1424
- };
1425
- exports.Activity = REACT_ACTIVITY_TYPE;
1426
- exports.Children = fnName;
1427
- exports.Component = Component;
1428
- exports.Fragment = REACT_FRAGMENT_TYPE;
1429
- exports.Profiler = REACT_PROFILER_TYPE;
1430
- exports.PureComponent = PureComponent;
1431
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
1432
- exports.Suspense = REACT_SUSPENSE_TYPE;
1433
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
1434
- ReactSharedInternals;
1435
- exports.__COMPILER_RUNTIME = deprecatedAPIs;
1436
- exports.act = function (callback) {
1437
- var prevActQueue = ReactSharedInternals.actQueue,
1438
- prevActScopeDepth = actScopeDepth;
1439
- actScopeDepth++;
1440
- var queue = (ReactSharedInternals.actQueue =
1441
- null !== prevActQueue ? prevActQueue : []),
1442
- didAwaitActCall = !1;
1443
- try {
1444
- var result = callback();
1445
- } catch (error) {
1446
- ReactSharedInternals.thrownErrors.push(error);
1447
- }
1448
- if (0 < ReactSharedInternals.thrownErrors.length)
1449
- throw (
1450
- (popActScope(prevActQueue, prevActScopeDepth),
1451
- (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1452
- (ReactSharedInternals.thrownErrors.length = 0),
1453
- callback)
1454
- );
1455
- if (
1456
- null !== result &&
1457
- "object" === typeof result &&
1458
- "function" === typeof result.then
1459
- ) {
1460
- var thenable = result;
1461
- queueSeveralMicrotasks(function () {
1462
- didAwaitActCall ||
1463
- didWarnNoAwaitAct ||
1464
- ((didWarnNoAwaitAct = !0),
1465
- console.error(
1466
- "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 () => ...);"
1467
- ));
1468
- });
1469
- return {
1470
- then: function (resolve, reject) {
1471
- didAwaitActCall = !0;
1472
- thenable.then(
1473
- function (returnValue) {
1474
- popActScope(prevActQueue, prevActScopeDepth);
1475
- if (0 === prevActScopeDepth) {
1476
- try {
1477
- flushActQueue(queue),
1478
- enqueueTask(function () {
1479
- return recursivelyFlushAsyncActWork(
1480
- returnValue,
1481
- resolve,
1482
- reject
1483
- );
1484
- });
1485
- } catch (error$0) {
1486
- ReactSharedInternals.thrownErrors.push(error$0);
1487
- }
1488
- if (0 < ReactSharedInternals.thrownErrors.length) {
1489
- var _thrownError = aggregateErrors(
1490
- ReactSharedInternals.thrownErrors
1491
- );
1492
- ReactSharedInternals.thrownErrors.length = 0;
1493
- reject(_thrownError);
1494
- }
1495
- } else resolve(returnValue);
1496
- },
1497
- function (error) {
1498
- popActScope(prevActQueue, prevActScopeDepth);
1499
- 0 < ReactSharedInternals.thrownErrors.length
1500
- ? ((error = aggregateErrors(
1501
- ReactSharedInternals.thrownErrors
1502
- )),
1503
- (ReactSharedInternals.thrownErrors.length = 0),
1504
- reject(error))
1505
- : reject(error);
1506
- }
1507
- );
1508
- }
1509
- };
1510
- }
1511
- var returnValue$jscomp$0 = result;
1512
- popActScope(prevActQueue, prevActScopeDepth);
1513
- 0 === prevActScopeDepth &&
1514
- (flushActQueue(queue),
1515
- 0 !== queue.length &&
1516
- queueSeveralMicrotasks(function () {
1517
- didAwaitActCall ||
1518
- didWarnNoAwaitAct ||
1519
- ((didWarnNoAwaitAct = !0),
1520
- console.error(
1521
- "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(() => ...)"
1522
- ));
1523
- }),
1524
- (ReactSharedInternals.actQueue = null));
1525
- if (0 < ReactSharedInternals.thrownErrors.length)
1526
- throw (
1527
- ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1528
- (ReactSharedInternals.thrownErrors.length = 0),
1529
- callback)
1530
- );
1531
- return {
1532
- then: function (resolve, reject) {
1533
- didAwaitActCall = !0;
1534
- 0 === prevActScopeDepth
1535
- ? ((ReactSharedInternals.actQueue = queue),
1536
- enqueueTask(function () {
1537
- return recursivelyFlushAsyncActWork(
1538
- returnValue$jscomp$0,
1539
- resolve,
1540
- reject
1541
- );
1542
- }))
1543
- : resolve(returnValue$jscomp$0);
1544
- }
1545
- };
1546
- };
1547
- exports.cache = function (fn) {
1548
- return function () {
1549
- return fn.apply(null, arguments);
1550
- };
1551
- };
1552
- exports.cacheSignal = function () {
1553
- return null;
1554
- };
1555
- exports.captureOwnerStack = function () {
1556
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
1557
- return null === getCurrentStack ? null : getCurrentStack();
1558
- };
1559
- exports.cloneElement = function (element, config, children) {
1560
- if (null === element || void 0 === element)
1561
- throw Error(
1562
- "The argument must be a React element, but you passed " +
1563
- element +
1564
- "."
1565
- );
1566
- var props = assign({}, element.props),
1567
- key = element.key,
1568
- owner = element._owner;
1569
- if (null != config) {
1570
- var JSCompiler_inline_result;
1571
- a: {
1572
- if (
1573
- hasOwnProperty.call(config, "ref") &&
1574
- (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1575
- config,
1576
- "ref"
1577
- ).get) &&
1578
- JSCompiler_inline_result.isReactWarning
1579
- ) {
1580
- JSCompiler_inline_result = !1;
1581
- break a;
1582
- }
1583
- JSCompiler_inline_result = void 0 !== config.ref;
1584
- }
1585
- JSCompiler_inline_result && (owner = getOwner());
1586
- hasValidKey(config) &&
1587
- (checkKeyStringCoercion(config.key), (key = "" + config.key));
1588
- for (propName in config)
1589
- !hasOwnProperty.call(config, propName) ||
1590
- "key" === propName ||
1591
- "__self" === propName ||
1592
- "__source" === propName ||
1593
- ("ref" === propName && void 0 === config.ref) ||
1594
- (props[propName] = config[propName]);
1595
- }
1596
- var propName = arguments.length - 2;
1597
- if (1 === propName) props.children = children;
1598
- else if (1 < propName) {
1599
- JSCompiler_inline_result = Array(propName);
1600
- for (var i = 0; i < propName; i++)
1601
- JSCompiler_inline_result[i] = arguments[i + 2];
1602
- props.children = JSCompiler_inline_result;
1603
- }
1604
- props = ReactElement(
1605
- element.type,
1606
- key,
1607
- props,
1608
- owner,
1609
- element._debugStack,
1610
- element._debugTask
1611
- );
1612
- for (key = 2; key < arguments.length; key++)
1613
- validateChildKeys(arguments[key]);
1614
- return props;
1615
- };
1616
- exports.createContext = function (defaultValue) {
1617
- defaultValue = {
1618
- $$typeof: REACT_CONTEXT_TYPE,
1619
- _currentValue: defaultValue,
1620
- _currentValue2: defaultValue,
1621
- _threadCount: 0,
1622
- Provider: null,
1623
- Consumer: null
1624
- };
1625
- defaultValue.Provider = defaultValue;
1626
- defaultValue.Consumer = {
1627
- $$typeof: REACT_CONSUMER_TYPE,
1628
- _context: defaultValue
1629
- };
1630
- defaultValue._currentRenderer = null;
1631
- defaultValue._currentRenderer2 = null;
1632
- return defaultValue;
1633
- };
1634
- exports.createElement = function (type, config, children) {
1635
- for (var i = 2; i < arguments.length; i++)
1636
- validateChildKeys(arguments[i]);
1637
- i = {};
1638
- var key = null;
1639
- if (null != config)
1640
- for (propName in (didWarnAboutOldJSXRuntime ||
1641
- !("__self" in config) ||
1642
- "key" in config ||
1643
- ((didWarnAboutOldJSXRuntime = !0),
1644
- console.warn(
1645
- "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"
1646
- )),
1647
- hasValidKey(config) &&
1648
- (checkKeyStringCoercion(config.key), (key = "" + config.key)),
1649
- config))
1650
- hasOwnProperty.call(config, propName) &&
1651
- "key" !== propName &&
1652
- "__self" !== propName &&
1653
- "__source" !== propName &&
1654
- (i[propName] = config[propName]);
1655
- var childrenLength = arguments.length - 2;
1656
- if (1 === childrenLength) i.children = children;
1657
- else if (1 < childrenLength) {
1658
- for (
1659
- var childArray = Array(childrenLength), _i = 0;
1660
- _i < childrenLength;
1661
- _i++
1662
- )
1663
- childArray[_i] = arguments[_i + 2];
1664
- Object.freeze && Object.freeze(childArray);
1665
- i.children = childArray;
1666
- }
1667
- if (type && type.defaultProps)
1668
- for (propName in ((childrenLength = type.defaultProps), childrenLength))
1669
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1670
- key &&
1671
- defineKeyPropWarningGetter(
1672
- i,
1673
- "function" === typeof type
1674
- ? type.displayName || type.name || "Unknown"
1675
- : type
1676
- );
1677
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1678
- return ReactElement(
1679
- type,
1680
- key,
1681
- i,
1682
- getOwner(),
1683
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1684
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1685
- );
1686
- };
1687
- exports.createRef = function () {
1688
- var refObject = { current: null };
1689
- Object.seal(refObject);
1690
- return refObject;
1691
- };
1692
- exports.forwardRef = function (render) {
1693
- null != render && render.$$typeof === REACT_MEMO_TYPE
1694
- ? console.error(
1695
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1696
- )
1697
- : "function" !== typeof render
1698
- ? console.error(
1699
- "forwardRef requires a render function but was given %s.",
1700
- null === render ? "null" : typeof render
1701
- )
1702
- : 0 !== render.length &&
1703
- 2 !== render.length &&
1704
- console.error(
1705
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1706
- 1 === render.length
1707
- ? "Did you forget to use the ref parameter?"
1708
- : "Any additional parameter will be undefined."
1709
- );
1710
- null != render &&
1711
- null != render.defaultProps &&
1712
- console.error(
1713
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1714
- );
1715
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
1716
- ownName;
1717
- Object.defineProperty(elementType, "displayName", {
1718
- enumerable: !1,
1719
- configurable: !0,
1720
- get: function () {
1721
- return ownName;
1722
- },
1723
- set: function (name) {
1724
- ownName = name;
1725
- render.name ||
1726
- render.displayName ||
1727
- (Object.defineProperty(render, "name", { value: name }),
1728
- (render.displayName = name));
1729
- }
1730
- });
1731
- return elementType;
1732
- };
1733
- exports.isValidElement = isValidElement;
1734
- exports.lazy = function (ctor) {
1735
- ctor = { _status: -1, _result: ctor };
1736
- var lazyType = {
1737
- $$typeof: REACT_LAZY_TYPE,
1738
- _payload: ctor,
1739
- _init: lazyInitializer
1740
- },
1741
- ioInfo = {
1742
- name: "lazy",
1743
- start: -1,
1744
- end: -1,
1745
- value: null,
1746
- owner: null,
1747
- debugStack: Error("react-stack-top-frame"),
1748
- debugTask: console.createTask ? console.createTask("lazy()") : null
1749
- };
1750
- ctor._ioInfo = ioInfo;
1751
- lazyType._debugInfo = [{ awaited: ioInfo }];
1752
- return lazyType;
1753
- };
1754
- exports.memo = function (type, compare) {
1755
- null == type &&
1756
- console.error(
1757
- "memo: The first argument must be a component. Instead received: %s",
1758
- null === type ? "null" : typeof type
1759
- );
1760
- compare = {
1761
- $$typeof: REACT_MEMO_TYPE,
1762
- type: type,
1763
- compare: void 0 === compare ? null : compare
1764
- };
1765
- var ownName;
1766
- Object.defineProperty(compare, "displayName", {
1767
- enumerable: !1,
1768
- configurable: !0,
1769
- get: function () {
1770
- return ownName;
1771
- },
1772
- set: function (name) {
1773
- ownName = name;
1774
- type.name ||
1775
- type.displayName ||
1776
- (Object.defineProperty(type, "name", { value: name }),
1777
- (type.displayName = name));
1778
- }
1779
- });
1780
- return compare;
1781
- };
1782
- exports.startTransition = function (scope) {
1783
- var prevTransition = ReactSharedInternals.T,
1784
- currentTransition = {};
1785
- currentTransition._updatedFibers = new Set();
1786
- ReactSharedInternals.T = currentTransition;
1787
- try {
1788
- var returnValue = scope(),
1789
- onStartTransitionFinish = ReactSharedInternals.S;
1790
- null !== onStartTransitionFinish &&
1791
- onStartTransitionFinish(currentTransition, returnValue);
1792
- "object" === typeof returnValue &&
1793
- null !== returnValue &&
1794
- "function" === typeof returnValue.then &&
1795
- (ReactSharedInternals.asyncTransitions++,
1796
- returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
1797
- returnValue.then(noop, reportGlobalError));
1798
- } catch (error) {
1799
- reportGlobalError(error);
1800
- } finally {
1801
- null === prevTransition &&
1802
- currentTransition._updatedFibers &&
1803
- ((scope = currentTransition._updatedFibers.size),
1804
- currentTransition._updatedFibers.clear(),
1805
- 10 < scope &&
1806
- console.warn(
1807
- "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."
1808
- )),
1809
- null !== prevTransition &&
1810
- null !== currentTransition.types &&
1811
- (null !== prevTransition.types &&
1812
- prevTransition.types !== currentTransition.types &&
1813
- console.error(
1814
- "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."
1815
- ),
1816
- (prevTransition.types = currentTransition.types)),
1817
- (ReactSharedInternals.T = prevTransition);
1818
- }
1819
- };
1820
- exports.unstable_useCacheRefresh = function () {
1821
- return resolveDispatcher().useCacheRefresh();
1822
- };
1823
- exports.use = function (usable) {
1824
- return resolveDispatcher().use(usable);
1825
- };
1826
- exports.useActionState = function (action, initialState, permalink) {
1827
- return resolveDispatcher().useActionState(
1828
- action,
1829
- initialState,
1830
- permalink
1831
- );
1832
- };
1833
- exports.useCallback = function (callback, deps) {
1834
- return resolveDispatcher().useCallback(callback, deps);
1835
- };
1836
- exports.useContext = function (Context) {
1837
- var dispatcher = resolveDispatcher();
1838
- Context.$$typeof === REACT_CONSUMER_TYPE &&
1839
- console.error(
1840
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1841
- );
1842
- return dispatcher.useContext(Context);
1843
- };
1844
- exports.useDebugValue = function (value, formatterFn) {
1845
- return resolveDispatcher().useDebugValue(value, formatterFn);
1846
- };
1847
- exports.useDeferredValue = function (value, initialValue) {
1848
- return resolveDispatcher().useDeferredValue(value, initialValue);
1849
- };
1850
- exports.useEffect = function (create, deps) {
1851
- null == create &&
1852
- console.warn(
1853
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1854
- );
1855
- return resolveDispatcher().useEffect(create, deps);
1856
- };
1857
- exports.useEffectEvent = function (callback) {
1858
- return resolveDispatcher().useEffectEvent(callback);
1859
- };
1860
- exports.useId = function () {
1861
- return resolveDispatcher().useId();
1862
- };
1863
- exports.useImperativeHandle = function (ref, create, deps) {
1864
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
1865
- };
1866
- exports.useInsertionEffect = function (create, deps) {
1867
- null == create &&
1868
- console.warn(
1869
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1870
- );
1871
- return resolveDispatcher().useInsertionEffect(create, deps);
1872
- };
1873
- exports.useLayoutEffect = function (create, deps) {
1874
- null == create &&
1875
- console.warn(
1876
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1877
- );
1878
- return resolveDispatcher().useLayoutEffect(create, deps);
1879
- };
1880
- exports.useMemo = function (create, deps) {
1881
- return resolveDispatcher().useMemo(create, deps);
1882
- };
1883
- exports.useOptimistic = function (passthrough, reducer) {
1884
- return resolveDispatcher().useOptimistic(passthrough, reducer);
1885
- };
1886
- exports.useReducer = function (reducer, initialArg, init) {
1887
- return resolveDispatcher().useReducer(reducer, initialArg, init);
1888
- };
1889
- exports.useRef = function (initialValue) {
1890
- return resolveDispatcher().useRef(initialValue);
1891
- };
1892
- exports.useState = function (initialState) {
1893
- return resolveDispatcher().useState(initialState);
1894
- };
1895
- exports.useSyncExternalStore = function (
1896
- subscribe,
1897
- getSnapshot,
1898
- getServerSnapshot
1899
- ) {
1900
- return resolveDispatcher().useSyncExternalStore(
1901
- subscribe,
1902
- getSnapshot,
1903
- getServerSnapshot
1904
- );
1905
- };
1906
- exports.useTransition = function () {
1907
- return resolveDispatcher().useTransition();
1908
- };
1909
- exports.version = "19.2.3";
1910
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1911
- "function" ===
1912
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
1913
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1914
- })();
1915
- });
1916
-
1917
- var react = createCommonjsModule(function (module) {
1918
-
1919
- if (process.env.NODE_ENV === 'production') {
1920
- module.exports = react_production;
1921
- } else {
1922
- module.exports = react_development;
1923
- }
1924
- });
1925
-
1926
- /**
1927
- * @license React
1928
- * react-jsx-runtime.development.js
1929
- *
1930
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1931
- *
1932
- * This source code is licensed under the MIT license found in the
1933
- * LICENSE file in the root directory of this source tree.
1934
- */
1935
-
1936
- var reactJsxRuntime_development = createCommonjsModule(function (module, exports) {
1937
- "production" !== process.env.NODE_ENV &&
1938
- (function () {
1939
- function getComponentNameFromType(type) {
1940
- if (null == type) return null;
1941
- if ("function" === typeof type)
1942
- return type.$$typeof === REACT_CLIENT_REFERENCE
1943
- ? null
1944
- : type.displayName || type.name || null;
1945
- if ("string" === typeof type) return type;
1946
- switch (type) {
1947
- case REACT_FRAGMENT_TYPE:
1948
- return "Fragment";
1949
- case REACT_PROFILER_TYPE:
1950
- return "Profiler";
1951
- case REACT_STRICT_MODE_TYPE:
1952
- return "StrictMode";
1953
- case REACT_SUSPENSE_TYPE:
1954
- return "Suspense";
1955
- case REACT_SUSPENSE_LIST_TYPE:
1956
- return "SuspenseList";
1957
- case REACT_ACTIVITY_TYPE:
1958
- return "Activity";
1959
- }
1960
- if ("object" === typeof type)
1961
- switch (
1962
- ("number" === typeof type.tag &&
1963
- console.error(
1964
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1965
- ),
1966
- type.$$typeof)
1967
- ) {
1968
- case REACT_PORTAL_TYPE:
1969
- return "Portal";
1970
- case REACT_CONTEXT_TYPE:
1971
- return type.displayName || "Context";
1972
- case REACT_CONSUMER_TYPE:
1973
- return (type._context.displayName || "Context") + ".Consumer";
1974
- case REACT_FORWARD_REF_TYPE:
1975
- var innerType = type.render;
1976
- type = type.displayName;
1977
- type ||
1978
- ((type = innerType.displayName || innerType.name || ""),
1979
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
1980
- return type;
1981
- case REACT_MEMO_TYPE:
1982
- return (
1983
- (innerType = type.displayName || null),
1984
- null !== innerType
1985
- ? innerType
1986
- : getComponentNameFromType(type.type) || "Memo"
1987
- );
1988
- case REACT_LAZY_TYPE:
1989
- innerType = type._payload;
1990
- type = type._init;
1991
- try {
1992
- return getComponentNameFromType(type(innerType));
1993
- } catch (x) {}
1994
- }
1995
- return null;
1996
- }
1997
- function testStringCoercion(value) {
1998
- return "" + value;
1999
- }
2000
- function checkKeyStringCoercion(value) {
2001
- try {
2002
- testStringCoercion(value);
2003
- var JSCompiler_inline_result = !1;
2004
- } catch (e) {
2005
- JSCompiler_inline_result = !0;
2006
- }
2007
- if (JSCompiler_inline_result) {
2008
- JSCompiler_inline_result = console;
2009
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
2010
- var JSCompiler_inline_result$jscomp$0 =
2011
- ("function" === typeof Symbol &&
2012
- Symbol.toStringTag &&
2013
- value[Symbol.toStringTag]) ||
2014
- value.constructor.name ||
2015
- "Object";
2016
- JSCompiler_temp_const.call(
2017
- JSCompiler_inline_result,
2018
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2019
- JSCompiler_inline_result$jscomp$0
2020
- );
2021
- return testStringCoercion(value);
2022
- }
2023
- }
2024
- function getTaskName(type) {
2025
- if (type === REACT_FRAGMENT_TYPE) return "<>";
2026
- if (
2027
- "object" === typeof type &&
2028
- null !== type &&
2029
- type.$$typeof === REACT_LAZY_TYPE
2030
- )
2031
- return "<...>";
2032
- try {
2033
- var name = getComponentNameFromType(type);
2034
- return name ? "<" + name + ">" : "<...>";
2035
- } catch (x) {
2036
- return "<...>";
2037
- }
2038
- }
2039
- function getOwner() {
2040
- var dispatcher = ReactSharedInternals.A;
2041
- return null === dispatcher ? null : dispatcher.getOwner();
2042
- }
2043
- function UnknownOwner() {
2044
- return Error("react-stack-top-frame");
2045
- }
2046
- function hasValidKey(config) {
2047
- if (hasOwnProperty.call(config, "key")) {
2048
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2049
- if (getter && getter.isReactWarning) return !1;
2050
- }
2051
- return void 0 !== config.key;
2052
- }
2053
- function defineKeyPropWarningGetter(props, displayName) {
2054
- function warnAboutAccessingKey() {
2055
- specialPropKeyWarningShown ||
2056
- ((specialPropKeyWarningShown = !0),
2057
- console.error(
2058
- "%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)",
2059
- displayName
2060
- ));
2061
- }
2062
- warnAboutAccessingKey.isReactWarning = !0;
2063
- Object.defineProperty(props, "key", {
2064
- get: warnAboutAccessingKey,
2065
- configurable: !0
2066
- });
2067
- }
2068
- function elementRefGetterWithDeprecationWarning() {
2069
- var componentName = getComponentNameFromType(this.type);
2070
- didWarnAboutElementRef[componentName] ||
2071
- ((didWarnAboutElementRef[componentName] = !0),
2072
- console.error(
2073
- "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."
2074
- ));
2075
- componentName = this.props.ref;
2076
- return void 0 !== componentName ? componentName : null;
2077
- }
2078
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
2079
- var refProp = props.ref;
2080
- type = {
2081
- $$typeof: REACT_ELEMENT_TYPE,
2082
- type: type,
2083
- key: key,
2084
- props: props,
2085
- _owner: owner
2086
- };
2087
- null !== (void 0 !== refProp ? refProp : null)
2088
- ? Object.defineProperty(type, "ref", {
2089
- enumerable: !1,
2090
- get: elementRefGetterWithDeprecationWarning
2091
- })
2092
- : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
2093
- type._store = {};
2094
- Object.defineProperty(type._store, "validated", {
2095
- configurable: !1,
2096
- enumerable: !1,
2097
- writable: !0,
2098
- value: 0
2099
- });
2100
- Object.defineProperty(type, "_debugInfo", {
2101
- configurable: !1,
2102
- enumerable: !1,
2103
- writable: !0,
2104
- value: null
2105
- });
2106
- Object.defineProperty(type, "_debugStack", {
2107
- configurable: !1,
2108
- enumerable: !1,
2109
- writable: !0,
2110
- value: debugStack
2111
- });
2112
- Object.defineProperty(type, "_debugTask", {
2113
- configurable: !1,
2114
- enumerable: !1,
2115
- writable: !0,
2116
- value: debugTask
2117
- });
2118
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
2119
- return type;
2120
- }
2121
- function jsxDEVImpl(
2122
- type,
2123
- config,
2124
- maybeKey,
2125
- isStaticChildren,
2126
- debugStack,
2127
- debugTask
2128
- ) {
2129
- var children = config.children;
2130
- if (void 0 !== children)
2131
- if (isStaticChildren)
2132
- if (isArrayImpl(children)) {
2133
- for (
2134
- isStaticChildren = 0;
2135
- isStaticChildren < children.length;
2136
- isStaticChildren++
2137
- )
2138
- validateChildKeys(children[isStaticChildren]);
2139
- Object.freeze && Object.freeze(children);
2140
- } else
2141
- console.error(
2142
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2143
- );
2144
- else validateChildKeys(children);
2145
- if (hasOwnProperty.call(config, "key")) {
2146
- children = getComponentNameFromType(type);
2147
- var keys = Object.keys(config).filter(function (k) {
2148
- return "key" !== k;
2149
- });
2150
- isStaticChildren =
2151
- 0 < keys.length
2152
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
2153
- : "{key: someKey}";
2154
- didWarnAboutKeySpread[children + isStaticChildren] ||
2155
- ((keys =
2156
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
2157
- console.error(
2158
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
2159
- isStaticChildren,
2160
- children,
2161
- keys,
2162
- children
2163
- ),
2164
- (didWarnAboutKeySpread[children + isStaticChildren] = !0));
2165
- }
2166
- children = null;
2167
- void 0 !== maybeKey &&
2168
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
2169
- hasValidKey(config) &&
2170
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
2171
- if ("key" in config) {
2172
- maybeKey = {};
2173
- for (var propName in config)
2174
- "key" !== propName && (maybeKey[propName] = config[propName]);
2175
- } else maybeKey = config;
2176
- children &&
2177
- defineKeyPropWarningGetter(
2178
- maybeKey,
2179
- "function" === typeof type
2180
- ? type.displayName || type.name || "Unknown"
2181
- : type
2182
- );
2183
- return ReactElement(
2184
- type,
2185
- children,
2186
- maybeKey,
2187
- getOwner(),
2188
- debugStack,
2189
- debugTask
2190
- );
2191
- }
2192
- function validateChildKeys(node) {
2193
- isValidElement(node)
2194
- ? node._store && (node._store.validated = 1)
2195
- : "object" === typeof node &&
2196
- null !== node &&
2197
- node.$$typeof === REACT_LAZY_TYPE &&
2198
- ("fulfilled" === node._payload.status
2199
- ? isValidElement(node._payload.value) &&
2200
- node._payload.value._store &&
2201
- (node._payload.value._store.validated = 1)
2202
- : node._store && (node._store.validated = 1));
2203
- }
2204
- function isValidElement(object) {
2205
- return (
2206
- "object" === typeof object &&
2207
- null !== object &&
2208
- object.$$typeof === REACT_ELEMENT_TYPE
2209
- );
2210
- }
2211
- var React = react,
2212
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
2213
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
2214
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
2215
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
2216
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
2217
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2218
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
2219
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
2220
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
2221
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
2222
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
2223
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2224
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
2225
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2226
- ReactSharedInternals =
2227
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
2228
- hasOwnProperty = Object.prototype.hasOwnProperty,
2229
- isArrayImpl = Array.isArray,
2230
- createTask = console.createTask
2231
- ? console.createTask
2232
- : function () {
2233
- return null;
2234
- };
2235
- React = {
2236
- react_stack_bottom_frame: function (callStackForError) {
2237
- return callStackForError();
2238
- }
2239
- };
2240
- var specialPropKeyWarningShown;
2241
- var didWarnAboutElementRef = {};
2242
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
2243
- React,
2244
- UnknownOwner
2245
- )();
2246
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
2247
- var didWarnAboutKeySpread = {};
2248
- exports.Fragment = REACT_FRAGMENT_TYPE;
2249
- exports.jsx = function (type, config, maybeKey) {
2250
- var trackActualOwner =
2251
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2252
- return jsxDEVImpl(
2253
- type,
2254
- config,
2255
- maybeKey,
2256
- !1,
2257
- trackActualOwner
2258
- ? Error("react-stack-top-frame")
2259
- : unknownOwnerDebugStack,
2260
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2261
- );
2262
- };
2263
- exports.jsxs = function (type, config, maybeKey) {
2264
- var trackActualOwner =
2265
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2266
- return jsxDEVImpl(
2267
- type,
2268
- config,
2269
- maybeKey,
2270
- !0,
2271
- trackActualOwner
2272
- ? Error("react-stack-top-frame")
2273
- : unknownOwnerDebugStack,
2274
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2275
- );
2276
- };
2277
- })();
2278
- });
2279
-
2280
- var jsxRuntime = createCommonjsModule(function (module) {
2281
-
2282
- if (process.env.NODE_ENV === 'production') {
2283
- module.exports = reactJsxRuntime_production;
2284
- } else {
2285
- module.exports = reactJsxRuntime_development;
2286
- }
2287
- });
5
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
2288
6
 
2289
7
  var YodelEmbedWallet = function YodelEmbedWallet() {
2290
- return jsxRuntime.jsx("iframe", {
8
+ return React__default["default"].createElement("iframe", {
2291
9
  src: "https://portal-offline.yodelpassdev.com/wallet?IsEmbed=true",
2292
10
  height: "100%",
2293
11
  width: "100%",