yodel-embeded-wallet 0.0.2 → 0.0.5

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