grootify 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1344 @@
1
+ import lr, { useState as Mr, useEffect as Fr, useCallback as Yr } from "react";
2
+ function Wr(u) {
3
+ return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
4
+ }
5
+ var Te = { exports: {} }, me = {};
6
+ /**
7
+ * @license React
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its 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 Ze;
16
+ function qr() {
17
+ if (Ze) return me;
18
+ Ze = 1;
19
+ var u = lr, D = Symbol.for("react.element"), x = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, C = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
20
+ function O(l, p, P) {
21
+ var d, E = {}, k = null, F = null;
22
+ P !== void 0 && (k = "" + P), p.key !== void 0 && (k = "" + p.key), p.ref !== void 0 && (F = p.ref);
23
+ for (d in p) f.call(p, d) && !c.hasOwnProperty(d) && (E[d] = p[d]);
24
+ if (l && l.defaultProps) for (d in p = l.defaultProps, p) E[d] === void 0 && (E[d] = p[d]);
25
+ return { $$typeof: D, type: l, key: k, ref: F, props: E, _owner: C.current };
26
+ }
27
+ return me.Fragment = x, me.jsx = O, me.jsxs = O, me;
28
+ }
29
+ var Ee = {};
30
+ /**
31
+ * @license React
32
+ * react-jsx-runtime.development.js
33
+ *
34
+ * Copyright (c) Facebook, Inc. and its affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */
39
+ var Qe;
40
+ function Lr() {
41
+ return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
42
+ var u = lr, D = Symbol.for("react.element"), x = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), l = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), z = Symbol.iterator, M = "@@iterator";
43
+ function N(e) {
44
+ if (e === null || typeof e != "object")
45
+ return null;
46
+ var r = z && e[z] || e[M];
47
+ return typeof r == "function" ? r : null;
48
+ }
49
+ var U = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ function Y(e) {
51
+ {
52
+ for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
53
+ a[s - 1] = arguments[s];
54
+ V("error", e, a);
55
+ }
56
+ }
57
+ function V(e, r, a) {
58
+ {
59
+ var s = U.ReactDebugCurrentFrame, j = s.getStackAddendum();
60
+ j !== "" && (r += "%s", a = a.concat([j]));
61
+ var $ = a.map(function(S) {
62
+ return String(S);
63
+ });
64
+ $.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, $);
65
+ }
66
+ }
67
+ var q = !1, o = !1, re = !1, ve = !1, pe = !1, ie;
68
+ ie = Symbol.for("react.module.reference");
69
+ function ye(e) {
70
+ return !!(typeof e == "string" || typeof e == "function" || e === f || e === c || pe || e === C || e === P || e === d || ve || e === F || q || o || re || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === E || e.$$typeof === O || e.$$typeof === l || e.$$typeof === p || // This needs to include all possible module reference object
71
+ // types supported by any Flight configuration anywhere since
72
+ // we don't know which Flight build this will end up being used
73
+ // with.
74
+ e.$$typeof === ie || e.getModuleId !== void 0));
75
+ }
76
+ function ue(e, r, a) {
77
+ var s = e.displayName;
78
+ if (s)
79
+ return s;
80
+ var j = r.displayName || r.name || "";
81
+ return j !== "" ? a + "(" + j + ")" : a;
82
+ }
83
+ function se(e) {
84
+ return e.displayName || "Context";
85
+ }
86
+ function K(e) {
87
+ if (e == null)
88
+ return null;
89
+ if (typeof e.tag == "number" && Y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ return e.displayName || e.name || null;
91
+ if (typeof e == "string")
92
+ return e;
93
+ switch (e) {
94
+ case f:
95
+ return "Fragment";
96
+ case x:
97
+ return "Portal";
98
+ case c:
99
+ return "Profiler";
100
+ case C:
101
+ return "StrictMode";
102
+ case P:
103
+ return "Suspense";
104
+ case d:
105
+ return "SuspenseList";
106
+ }
107
+ if (typeof e == "object")
108
+ switch (e.$$typeof) {
109
+ case l:
110
+ var r = e;
111
+ return se(r) + ".Consumer";
112
+ case O:
113
+ var a = e;
114
+ return se(a._context) + ".Provider";
115
+ case p:
116
+ return ue(e, e.render, "ForwardRef");
117
+ case E:
118
+ var s = e.displayName || null;
119
+ return s !== null ? s : K(e.type) || "Memo";
120
+ case k: {
121
+ var j = e, $ = j._payload, S = j._init;
122
+ try {
123
+ return K(S($));
124
+ } catch {
125
+ return null;
126
+ }
127
+ }
128
+ }
129
+ return null;
130
+ }
131
+ var G = Object.assign, te = 0, H, ee, ne, fe, t, i, m;
132
+ function h() {
133
+ }
134
+ h.__reactDisabledLog = !0;
135
+ function v() {
136
+ {
137
+ if (te === 0) {
138
+ H = console.log, ee = console.info, ne = console.warn, fe = console.error, t = console.group, i = console.groupCollapsed, m = console.groupEnd;
139
+ var e = {
140
+ configurable: !0,
141
+ enumerable: !0,
142
+ value: h,
143
+ writable: !0
144
+ };
145
+ Object.defineProperties(console, {
146
+ info: e,
147
+ log: e,
148
+ warn: e,
149
+ error: e,
150
+ group: e,
151
+ groupCollapsed: e,
152
+ groupEnd: e
153
+ });
154
+ }
155
+ te++;
156
+ }
157
+ }
158
+ function _() {
159
+ {
160
+ if (te--, te === 0) {
161
+ var e = {
162
+ configurable: !0,
163
+ enumerable: !0,
164
+ writable: !0
165
+ };
166
+ Object.defineProperties(console, {
167
+ log: G({}, e, {
168
+ value: H
169
+ }),
170
+ info: G({}, e, {
171
+ value: ee
172
+ }),
173
+ warn: G({}, e, {
174
+ value: ne
175
+ }),
176
+ error: G({}, e, {
177
+ value: fe
178
+ }),
179
+ group: G({}, e, {
180
+ value: t
181
+ }),
182
+ groupCollapsed: G({}, e, {
183
+ value: i
184
+ }),
185
+ groupEnd: G({}, e, {
186
+ value: m
187
+ })
188
+ });
189
+ }
190
+ te < 0 && Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ }
192
+ }
193
+ var y = U.ReactCurrentDispatcher, b;
194
+ function g(e, r, a) {
195
+ {
196
+ if (b === void 0)
197
+ try {
198
+ throw Error();
199
+ } catch (j) {
200
+ var s = j.stack.trim().match(/\n( *(at )?)/);
201
+ b = s && s[1] || "";
202
+ }
203
+ return `
204
+ ` + b + e;
205
+ }
206
+ }
207
+ var w = !1, T;
208
+ {
209
+ var J = typeof WeakMap == "function" ? WeakMap : Map;
210
+ T = new J();
211
+ }
212
+ function n(e, r) {
213
+ if (!e || w)
214
+ return "";
215
+ {
216
+ var a = T.get(e);
217
+ if (a !== void 0)
218
+ return a;
219
+ }
220
+ var s;
221
+ w = !0;
222
+ var j = Error.prepareStackTrace;
223
+ Error.prepareStackTrace = void 0;
224
+ var $;
225
+ $ = y.current, y.current = null, v();
226
+ try {
227
+ if (r) {
228
+ var S = function() {
229
+ throw Error();
230
+ };
231
+ if (Object.defineProperty(S.prototype, "props", {
232
+ set: function() {
233
+ throw Error();
234
+ }
235
+ }), typeof Reflect == "object" && Reflect.construct) {
236
+ try {
237
+ Reflect.construct(S, []);
238
+ } catch (X) {
239
+ s = X;
240
+ }
241
+ Reflect.construct(e, [], S);
242
+ } else {
243
+ try {
244
+ S.call();
245
+ } catch (X) {
246
+ s = X;
247
+ }
248
+ e.call(S.prototype);
249
+ }
250
+ } else {
251
+ try {
252
+ throw Error();
253
+ } catch (X) {
254
+ s = X;
255
+ }
256
+ e();
257
+ }
258
+ } catch (X) {
259
+ if (X && s && typeof X.stack == "string") {
260
+ for (var R = X.stack.split(`
261
+ `), B = s.stack.split(`
262
+ `), W = R.length - 1, L = B.length - 1; W >= 1 && L >= 0 && R[W] !== B[L]; )
263
+ L--;
264
+ for (; W >= 1 && L >= 0; W--, L--)
265
+ if (R[W] !== B[L]) {
266
+ if (W !== 1 || L !== 1)
267
+ do
268
+ if (W--, L--, L < 0 || R[W] !== B[L]) {
269
+ var Q = `
270
+ ` + R[W].replace(" at new ", " at ");
271
+ return e.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", e.displayName)), typeof e == "function" && T.set(e, Q), Q;
272
+ }
273
+ while (W >= 1 && L >= 0);
274
+ break;
275
+ }
276
+ }
277
+ } finally {
278
+ w = !1, y.current = $, _(), Error.prepareStackTrace = j;
279
+ }
280
+ var de = e ? e.displayName || e.name : "", oe = de ? g(de) : "";
281
+ return typeof e == "function" && T.set(e, oe), oe;
282
+ }
283
+ function Z(e, r, a) {
284
+ return n(e, !1);
285
+ }
286
+ function ce(e) {
287
+ var r = e.prototype;
288
+ return !!(r && r.isReactComponent);
289
+ }
290
+ function ae(e, r, a) {
291
+ if (e == null)
292
+ return "";
293
+ if (typeof e == "function")
294
+ return n(e, ce(e));
295
+ if (typeof e == "string")
296
+ return g(e);
297
+ switch (e) {
298
+ case P:
299
+ return g("Suspense");
300
+ case d:
301
+ return g("SuspenseList");
302
+ }
303
+ if (typeof e == "object")
304
+ switch (e.$$typeof) {
305
+ case p:
306
+ return Z(e.render);
307
+ case E:
308
+ return ae(e.type, r, a);
309
+ case k: {
310
+ var s = e, j = s._payload, $ = s._init;
311
+ try {
312
+ return ae($(j), r, a);
313
+ } catch {
314
+ }
315
+ }
316
+ }
317
+ return "";
318
+ }
319
+ var be = Object.prototype.hasOwnProperty, We = {}, qe = U.ReactDebugCurrentFrame;
320
+ function ge(e) {
321
+ if (e) {
322
+ var r = e._owner, a = ae(e.type, e._source, r ? r.type : null);
323
+ qe.setExtraStackFrame(a);
324
+ } else
325
+ qe.setExtraStackFrame(null);
326
+ }
327
+ function pr(e, r, a, s, j) {
328
+ {
329
+ var $ = Function.call.bind(be);
330
+ for (var S in e)
331
+ if ($(e, S)) {
332
+ var R = void 0;
333
+ try {
334
+ if (typeof e[S] != "function") {
335
+ var B = Error((s || "React class") + ": " + a + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
336
+ throw B.name = "Invariant Violation", B;
337
+ }
338
+ R = e[S](r, S, s, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ } catch (W) {
340
+ R = W;
341
+ }
342
+ R && !(R instanceof Error) && (ge(j), Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", a, S, typeof R), ge(null)), R instanceof Error && !(R.message in We) && (We[R.message] = !0, ge(j), Y("Failed %s type: %s", a, R.message), ge(null));
343
+ }
344
+ }
345
+ }
346
+ var yr = Array.isArray;
347
+ function Oe(e) {
348
+ return yr(e);
349
+ }
350
+ function br(e) {
351
+ {
352
+ var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
353
+ return a;
354
+ }
355
+ }
356
+ function hr(e) {
357
+ try {
358
+ return Le(e), !1;
359
+ } catch {
360
+ return !0;
361
+ }
362
+ }
363
+ function Le(e) {
364
+ return "" + e;
365
+ }
366
+ function Ue(e) {
367
+ if (hr(e))
368
+ return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", br(e)), Le(e);
369
+ }
370
+ var he = U.ReactCurrentOwner, mr = {
371
+ key: !0,
372
+ ref: !0,
373
+ __self: !0,
374
+ __source: !0
375
+ }, Ve, Ne, Pe;
376
+ Pe = {};
377
+ function Er(e) {
378
+ if (be.call(e, "ref")) {
379
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
380
+ if (r && r.isReactWarning)
381
+ return !1;
382
+ }
383
+ return e.ref !== void 0;
384
+ }
385
+ function gr(e) {
386
+ if (be.call(e, "key")) {
387
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
388
+ if (r && r.isReactWarning)
389
+ return !1;
390
+ }
391
+ return e.key !== void 0;
392
+ }
393
+ function Tr(e, r) {
394
+ if (typeof e.ref == "string" && he.current && r && he.current.stateNode !== r) {
395
+ var a = K(he.current.type);
396
+ Pe[a] || (Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', K(he.current.type), e.ref), Pe[a] = !0);
397
+ }
398
+ }
399
+ function Rr(e, r) {
400
+ {
401
+ var a = function() {
402
+ Ve || (Ve = !0, Y("%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://reactjs.org/link/special-props)", r));
403
+ };
404
+ a.isReactWarning = !0, Object.defineProperty(e, "key", {
405
+ get: a,
406
+ configurable: !0
407
+ });
408
+ }
409
+ }
410
+ function _r(e, r) {
411
+ {
412
+ var a = function() {
413
+ Ne || (Ne = !0, Y("%s: `ref` 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://reactjs.org/link/special-props)", r));
414
+ };
415
+ a.isReactWarning = !0, Object.defineProperty(e, "ref", {
416
+ get: a,
417
+ configurable: !0
418
+ });
419
+ }
420
+ }
421
+ var Sr = function(e, r, a, s, j, $, S) {
422
+ var R = {
423
+ // This tag allows us to uniquely identify this as a React Element
424
+ $$typeof: D,
425
+ // Built-in properties that belong on the element
426
+ type: e,
427
+ key: r,
428
+ ref: a,
429
+ props: S,
430
+ // Record the component responsible for creating this element.
431
+ _owner: $
432
+ };
433
+ return R._store = {}, Object.defineProperty(R._store, "validated", {
434
+ configurable: !1,
435
+ enumerable: !1,
436
+ writable: !0,
437
+ value: !1
438
+ }), Object.defineProperty(R, "_self", {
439
+ configurable: !1,
440
+ enumerable: !1,
441
+ writable: !1,
442
+ value: s
443
+ }), Object.defineProperty(R, "_source", {
444
+ configurable: !1,
445
+ enumerable: !1,
446
+ writable: !1,
447
+ value: j
448
+ }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
449
+ };
450
+ function Or(e, r, a, s, j) {
451
+ {
452
+ var $, S = {}, R = null, B = null;
453
+ a !== void 0 && (Ue(a), R = "" + a), gr(r) && (Ue(r.key), R = "" + r.key), Er(r) && (B = r.ref, Tr(r, j));
454
+ for ($ in r)
455
+ be.call(r, $) && !mr.hasOwnProperty($) && (S[$] = r[$]);
456
+ if (e && e.defaultProps) {
457
+ var W = e.defaultProps;
458
+ for ($ in W)
459
+ S[$] === void 0 && (S[$] = W[$]);
460
+ }
461
+ if (R || B) {
462
+ var L = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
463
+ R && Rr(S, L), B && _r(S, L);
464
+ }
465
+ return Sr(e, R, B, j, s, he.current, S);
466
+ }
467
+ }
468
+ var we = U.ReactCurrentOwner, ze = U.ReactDebugCurrentFrame;
469
+ function le(e) {
470
+ if (e) {
471
+ var r = e._owner, a = ae(e.type, e._source, r ? r.type : null);
472
+ ze.setExtraStackFrame(a);
473
+ } else
474
+ ze.setExtraStackFrame(null);
475
+ }
476
+ var Ce;
477
+ Ce = !1;
478
+ function xe(e) {
479
+ return typeof e == "object" && e !== null && e.$$typeof === D;
480
+ }
481
+ function Je() {
482
+ {
483
+ if (we.current) {
484
+ var e = K(we.current.type);
485
+ if (e)
486
+ return `
487
+
488
+ Check the render method of \`` + e + "`.";
489
+ }
490
+ return "";
491
+ }
492
+ }
493
+ function Pr(e) {
494
+ return "";
495
+ }
496
+ var Be = {};
497
+ function wr(e) {
498
+ {
499
+ var r = Je();
500
+ if (!r) {
501
+ var a = typeof e == "string" ? e : e.displayName || e.name;
502
+ a && (r = `
503
+
504
+ Check the top-level render call using <` + a + ">.");
505
+ }
506
+ return r;
507
+ }
508
+ }
509
+ function Ke(e, r) {
510
+ {
511
+ if (!e._store || e._store.validated || e.key != null)
512
+ return;
513
+ e._store.validated = !0;
514
+ var a = wr(r);
515
+ if (Be[a])
516
+ return;
517
+ Be[a] = !0;
518
+ var s = "";
519
+ e && e._owner && e._owner !== we.current && (s = " It was passed a child from " + K(e._owner.type) + "."), le(e), Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, s), le(null);
520
+ }
521
+ }
522
+ function Ge(e, r) {
523
+ {
524
+ if (typeof e != "object")
525
+ return;
526
+ if (Oe(e))
527
+ for (var a = 0; a < e.length; a++) {
528
+ var s = e[a];
529
+ xe(s) && Ke(s, r);
530
+ }
531
+ else if (xe(e))
532
+ e._store && (e._store.validated = !0);
533
+ else if (e) {
534
+ var j = N(e);
535
+ if (typeof j == "function" && j !== e.entries)
536
+ for (var $ = j.call(e), S; !(S = $.next()).done; )
537
+ xe(S.value) && Ke(S.value, r);
538
+ }
539
+ }
540
+ }
541
+ function Cr(e) {
542
+ {
543
+ var r = e.type;
544
+ if (r == null || typeof r == "string")
545
+ return;
546
+ var a;
547
+ if (typeof r == "function")
548
+ a = r.propTypes;
549
+ else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
550
+ // Inner props are checked in the reconciler.
551
+ r.$$typeof === E))
552
+ a = r.propTypes;
553
+ else
554
+ return;
555
+ if (a) {
556
+ var s = K(r);
557
+ pr(a, e.props, "prop", s, e);
558
+ } else if (r.PropTypes !== void 0 && !Ce) {
559
+ Ce = !0;
560
+ var j = K(r);
561
+ Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
562
+ }
563
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
564
+ }
565
+ }
566
+ function xr(e) {
567
+ {
568
+ for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
569
+ var s = r[a];
570
+ if (s !== "children" && s !== "key") {
571
+ le(e), Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), le(null);
572
+ break;
573
+ }
574
+ }
575
+ e.ref !== null && (le(e), Y("Invalid attribute `ref` supplied to `React.Fragment`."), le(null));
576
+ }
577
+ }
578
+ var Xe = {};
579
+ function He(e, r, a, s, j, $) {
580
+ {
581
+ var S = ye(e);
582
+ if (!S) {
583
+ var R = "";
584
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
585
+ var B = Pr();
586
+ B ? R += B : R += Je();
587
+ var W;
588
+ e === null ? W = "null" : Oe(e) ? W = "array" : e !== void 0 && e.$$typeof === D ? (W = "<" + (K(e.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : W = typeof e, Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, R);
589
+ }
590
+ var L = Or(e, r, a, j, $);
591
+ if (L == null)
592
+ return L;
593
+ if (S) {
594
+ var Q = r.children;
595
+ if (Q !== void 0)
596
+ if (s)
597
+ if (Oe(Q)) {
598
+ for (var de = 0; de < Q.length; de++)
599
+ Ge(Q[de], e);
600
+ Object.freeze && Object.freeze(Q);
601
+ } else
602
+ Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
603
+ else
604
+ Ge(Q, e);
605
+ }
606
+ if (be.call(r, "key")) {
607
+ var oe = K(e), X = Object.keys(r).filter(function(Dr) {
608
+ return Dr !== "key";
609
+ }), je = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
610
+ if (!Xe[oe + je]) {
611
+ var $r = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
612
+ Y(`A props object containing a "key" prop is being spread into JSX:
613
+ let props = %s;
614
+ <%s {...props} />
615
+ React keys must be passed directly to JSX without using spread:
616
+ let props = %s;
617
+ <%s key={someKey} {...props} />`, je, oe, $r, oe), Xe[oe + je] = !0;
618
+ }
619
+ }
620
+ return e === f ? xr(L) : Cr(L), L;
621
+ }
622
+ }
623
+ function jr(e, r, a) {
624
+ return He(e, r, a, !0);
625
+ }
626
+ function Ar(e, r, a) {
627
+ return He(e, r, a, !1);
628
+ }
629
+ var Ir = Ar, kr = jr;
630
+ Ee.Fragment = f, Ee.jsx = Ir, Ee.jsxs = kr;
631
+ }()), Ee;
632
+ }
633
+ var er;
634
+ function Ur() {
635
+ return er || (er = 1, process.env.NODE_ENV === "production" ? Te.exports = qr() : Te.exports = Lr()), Te.exports;
636
+ }
637
+ var Ae = Ur(), Re = { exports: {} }, _e = { exports: {} }, A = {};
638
+ /** @license React v16.13.1
639
+ * react-is.production.min.js
640
+ *
641
+ * Copyright (c) Facebook, Inc. and its affiliates.
642
+ *
643
+ * This source code is licensed under the MIT license found in the
644
+ * LICENSE file in the root directory of this source tree.
645
+ */
646
+ var rr;
647
+ function Vr() {
648
+ if (rr) return A;
649
+ rr = 1;
650
+ var u = typeof Symbol == "function" && Symbol.for, D = u ? Symbol.for("react.element") : 60103, x = u ? Symbol.for("react.portal") : 60106, f = u ? Symbol.for("react.fragment") : 60107, C = u ? Symbol.for("react.strict_mode") : 60108, c = u ? Symbol.for("react.profiler") : 60114, O = u ? Symbol.for("react.provider") : 60109, l = u ? Symbol.for("react.context") : 60110, p = u ? Symbol.for("react.async_mode") : 60111, P = u ? Symbol.for("react.concurrent_mode") : 60111, d = u ? Symbol.for("react.forward_ref") : 60112, E = u ? Symbol.for("react.suspense") : 60113, k = u ? Symbol.for("react.suspense_list") : 60120, F = u ? Symbol.for("react.memo") : 60115, z = u ? Symbol.for("react.lazy") : 60116, M = u ? Symbol.for("react.block") : 60121, N = u ? Symbol.for("react.fundamental") : 60117, U = u ? Symbol.for("react.responder") : 60118, Y = u ? Symbol.for("react.scope") : 60119;
651
+ function V(o) {
652
+ if (typeof o == "object" && o !== null) {
653
+ var re = o.$$typeof;
654
+ switch (re) {
655
+ case D:
656
+ switch (o = o.type, o) {
657
+ case p:
658
+ case P:
659
+ case f:
660
+ case c:
661
+ case C:
662
+ case E:
663
+ return o;
664
+ default:
665
+ switch (o = o && o.$$typeof, o) {
666
+ case l:
667
+ case d:
668
+ case z:
669
+ case F:
670
+ case O:
671
+ return o;
672
+ default:
673
+ return re;
674
+ }
675
+ }
676
+ case x:
677
+ return re;
678
+ }
679
+ }
680
+ }
681
+ function q(o) {
682
+ return V(o) === P;
683
+ }
684
+ return A.AsyncMode = p, A.ConcurrentMode = P, A.ContextConsumer = l, A.ContextProvider = O, A.Element = D, A.ForwardRef = d, A.Fragment = f, A.Lazy = z, A.Memo = F, A.Portal = x, A.Profiler = c, A.StrictMode = C, A.Suspense = E, A.isAsyncMode = function(o) {
685
+ return q(o) || V(o) === p;
686
+ }, A.isConcurrentMode = q, A.isContextConsumer = function(o) {
687
+ return V(o) === l;
688
+ }, A.isContextProvider = function(o) {
689
+ return V(o) === O;
690
+ }, A.isElement = function(o) {
691
+ return typeof o == "object" && o !== null && o.$$typeof === D;
692
+ }, A.isForwardRef = function(o) {
693
+ return V(o) === d;
694
+ }, A.isFragment = function(o) {
695
+ return V(o) === f;
696
+ }, A.isLazy = function(o) {
697
+ return V(o) === z;
698
+ }, A.isMemo = function(o) {
699
+ return V(o) === F;
700
+ }, A.isPortal = function(o) {
701
+ return V(o) === x;
702
+ }, A.isProfiler = function(o) {
703
+ return V(o) === c;
704
+ }, A.isStrictMode = function(o) {
705
+ return V(o) === C;
706
+ }, A.isSuspense = function(o) {
707
+ return V(o) === E;
708
+ }, A.isValidElementType = function(o) {
709
+ return typeof o == "string" || typeof o == "function" || o === f || o === P || o === c || o === C || o === E || o === k || typeof o == "object" && o !== null && (o.$$typeof === z || o.$$typeof === F || o.$$typeof === O || o.$$typeof === l || o.$$typeof === d || o.$$typeof === N || o.$$typeof === U || o.$$typeof === Y || o.$$typeof === M);
710
+ }, A.typeOf = V, A;
711
+ }
712
+ var I = {};
713
+ /** @license React v16.13.1
714
+ * react-is.development.js
715
+ *
716
+ * Copyright (c) Facebook, Inc. and its affiliates.
717
+ *
718
+ * This source code is licensed under the MIT license found in the
719
+ * LICENSE file in the root directory of this source tree.
720
+ */
721
+ var tr;
722
+ function Nr() {
723
+ return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
724
+ var u = typeof Symbol == "function" && Symbol.for, D = u ? Symbol.for("react.element") : 60103, x = u ? Symbol.for("react.portal") : 60106, f = u ? Symbol.for("react.fragment") : 60107, C = u ? Symbol.for("react.strict_mode") : 60108, c = u ? Symbol.for("react.profiler") : 60114, O = u ? Symbol.for("react.provider") : 60109, l = u ? Symbol.for("react.context") : 60110, p = u ? Symbol.for("react.async_mode") : 60111, P = u ? Symbol.for("react.concurrent_mode") : 60111, d = u ? Symbol.for("react.forward_ref") : 60112, E = u ? Symbol.for("react.suspense") : 60113, k = u ? Symbol.for("react.suspense_list") : 60120, F = u ? Symbol.for("react.memo") : 60115, z = u ? Symbol.for("react.lazy") : 60116, M = u ? Symbol.for("react.block") : 60121, N = u ? Symbol.for("react.fundamental") : 60117, U = u ? Symbol.for("react.responder") : 60118, Y = u ? Symbol.for("react.scope") : 60119;
725
+ function V(n) {
726
+ return typeof n == "string" || typeof n == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
727
+ n === f || n === P || n === c || n === C || n === E || n === k || typeof n == "object" && n !== null && (n.$$typeof === z || n.$$typeof === F || n.$$typeof === O || n.$$typeof === l || n.$$typeof === d || n.$$typeof === N || n.$$typeof === U || n.$$typeof === Y || n.$$typeof === M);
728
+ }
729
+ function q(n) {
730
+ if (typeof n == "object" && n !== null) {
731
+ var Z = n.$$typeof;
732
+ switch (Z) {
733
+ case D:
734
+ var ce = n.type;
735
+ switch (ce) {
736
+ case p:
737
+ case P:
738
+ case f:
739
+ case c:
740
+ case C:
741
+ case E:
742
+ return ce;
743
+ default:
744
+ var ae = ce && ce.$$typeof;
745
+ switch (ae) {
746
+ case l:
747
+ case d:
748
+ case z:
749
+ case F:
750
+ case O:
751
+ return ae;
752
+ default:
753
+ return Z;
754
+ }
755
+ }
756
+ case x:
757
+ return Z;
758
+ }
759
+ }
760
+ }
761
+ var o = p, re = P, ve = l, pe = O, ie = D, ye = d, ue = f, se = z, K = F, G = x, te = c, H = C, ee = E, ne = !1;
762
+ function fe(n) {
763
+ return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), t(n) || q(n) === p;
764
+ }
765
+ function t(n) {
766
+ return q(n) === P;
767
+ }
768
+ function i(n) {
769
+ return q(n) === l;
770
+ }
771
+ function m(n) {
772
+ return q(n) === O;
773
+ }
774
+ function h(n) {
775
+ return typeof n == "object" && n !== null && n.$$typeof === D;
776
+ }
777
+ function v(n) {
778
+ return q(n) === d;
779
+ }
780
+ function _(n) {
781
+ return q(n) === f;
782
+ }
783
+ function y(n) {
784
+ return q(n) === z;
785
+ }
786
+ function b(n) {
787
+ return q(n) === F;
788
+ }
789
+ function g(n) {
790
+ return q(n) === x;
791
+ }
792
+ function w(n) {
793
+ return q(n) === c;
794
+ }
795
+ function T(n) {
796
+ return q(n) === C;
797
+ }
798
+ function J(n) {
799
+ return q(n) === E;
800
+ }
801
+ I.AsyncMode = o, I.ConcurrentMode = re, I.ContextConsumer = ve, I.ContextProvider = pe, I.Element = ie, I.ForwardRef = ye, I.Fragment = ue, I.Lazy = se, I.Memo = K, I.Portal = G, I.Profiler = te, I.StrictMode = H, I.Suspense = ee, I.isAsyncMode = fe, I.isConcurrentMode = t, I.isContextConsumer = i, I.isContextProvider = m, I.isElement = h, I.isForwardRef = v, I.isFragment = _, I.isLazy = y, I.isMemo = b, I.isPortal = g, I.isProfiler = w, I.isStrictMode = T, I.isSuspense = J, I.isValidElementType = V, I.typeOf = q;
802
+ }()), I;
803
+ }
804
+ var nr;
805
+ function dr() {
806
+ return nr || (nr = 1, process.env.NODE_ENV === "production" ? _e.exports = Vr() : _e.exports = Nr()), _e.exports;
807
+ }
808
+ /*
809
+ object-assign
810
+ (c) Sindre Sorhus
811
+ @license MIT
812
+ */
813
+ var Ie, ar;
814
+ function zr() {
815
+ if (ar) return Ie;
816
+ ar = 1;
817
+ var u = Object.getOwnPropertySymbols, D = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
818
+ function f(c) {
819
+ if (c == null)
820
+ throw new TypeError("Object.assign cannot be called with null or undefined");
821
+ return Object(c);
822
+ }
823
+ function C() {
824
+ try {
825
+ if (!Object.assign)
826
+ return !1;
827
+ var c = new String("abc");
828
+ if (c[5] = "de", Object.getOwnPropertyNames(c)[0] === "5")
829
+ return !1;
830
+ for (var O = {}, l = 0; l < 10; l++)
831
+ O["_" + String.fromCharCode(l)] = l;
832
+ var p = Object.getOwnPropertyNames(O).map(function(d) {
833
+ return O[d];
834
+ });
835
+ if (p.join("") !== "0123456789")
836
+ return !1;
837
+ var P = {};
838
+ return "abcdefghijklmnopqrst".split("").forEach(function(d) {
839
+ P[d] = d;
840
+ }), Object.keys(Object.assign({}, P)).join("") === "abcdefghijklmnopqrst";
841
+ } catch {
842
+ return !1;
843
+ }
844
+ }
845
+ return Ie = C() ? Object.assign : function(c, O) {
846
+ for (var l, p = f(c), P, d = 1; d < arguments.length; d++) {
847
+ l = Object(arguments[d]);
848
+ for (var E in l)
849
+ D.call(l, E) && (p[E] = l[E]);
850
+ if (u) {
851
+ P = u(l);
852
+ for (var k = 0; k < P.length; k++)
853
+ x.call(l, P[k]) && (p[P[k]] = l[P[k]]);
854
+ }
855
+ }
856
+ return p;
857
+ }, Ie;
858
+ }
859
+ var ke, or;
860
+ function Ye() {
861
+ if (or) return ke;
862
+ or = 1;
863
+ var u = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
864
+ return ke = u, ke;
865
+ }
866
+ var $e, ir;
867
+ function vr() {
868
+ return ir || (ir = 1, $e = Function.call.bind(Object.prototype.hasOwnProperty)), $e;
869
+ }
870
+ var De, ur;
871
+ function Jr() {
872
+ if (ur) return De;
873
+ ur = 1;
874
+ var u = function() {
875
+ };
876
+ if (process.env.NODE_ENV !== "production") {
877
+ var D = /* @__PURE__ */ Ye(), x = {}, f = /* @__PURE__ */ vr();
878
+ u = function(c) {
879
+ var O = "Warning: " + c;
880
+ typeof console < "u" && console.error(O);
881
+ try {
882
+ throw new Error(O);
883
+ } catch {
884
+ }
885
+ };
886
+ }
887
+ function C(c, O, l, p, P) {
888
+ if (process.env.NODE_ENV !== "production") {
889
+ for (var d in c)
890
+ if (f(c, d)) {
891
+ var E;
892
+ try {
893
+ if (typeof c[d] != "function") {
894
+ var k = Error(
895
+ (p || "React class") + ": " + l + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
896
+ );
897
+ throw k.name = "Invariant Violation", k;
898
+ }
899
+ E = c[d](O, d, p, l, null, D);
900
+ } catch (z) {
901
+ E = z;
902
+ }
903
+ if (E && !(E instanceof Error) && u(
904
+ (p || "React class") + ": type specification of " + l + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof E + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
905
+ ), E instanceof Error && !(E.message in x)) {
906
+ x[E.message] = !0;
907
+ var F = P ? P() : "";
908
+ u(
909
+ "Failed " + l + " type: " + E.message + (F ?? "")
910
+ );
911
+ }
912
+ }
913
+ }
914
+ }
915
+ return C.resetWarningCache = function() {
916
+ process.env.NODE_ENV !== "production" && (x = {});
917
+ }, De = C, De;
918
+ }
919
+ var Me, sr;
920
+ function Br() {
921
+ if (sr) return Me;
922
+ sr = 1;
923
+ var u = dr(), D = zr(), x = /* @__PURE__ */ Ye(), f = /* @__PURE__ */ vr(), C = /* @__PURE__ */ Jr(), c = function() {
924
+ };
925
+ process.env.NODE_ENV !== "production" && (c = function(l) {
926
+ var p = "Warning: " + l;
927
+ typeof console < "u" && console.error(p);
928
+ try {
929
+ throw new Error(p);
930
+ } catch {
931
+ }
932
+ });
933
+ function O() {
934
+ return null;
935
+ }
936
+ return Me = function(l, p) {
937
+ var P = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
938
+ function E(t) {
939
+ var i = t && (P && t[P] || t[d]);
940
+ if (typeof i == "function")
941
+ return i;
942
+ }
943
+ var k = "<<anonymous>>", F = {
944
+ array: U("array"),
945
+ bigint: U("bigint"),
946
+ bool: U("boolean"),
947
+ func: U("function"),
948
+ number: U("number"),
949
+ object: U("object"),
950
+ string: U("string"),
951
+ symbol: U("symbol"),
952
+ any: Y(),
953
+ arrayOf: V,
954
+ element: q(),
955
+ elementType: o(),
956
+ instanceOf: re,
957
+ node: ye(),
958
+ objectOf: pe,
959
+ oneOf: ve,
960
+ oneOfType: ie,
961
+ shape: se,
962
+ exact: K
963
+ };
964
+ function z(t, i) {
965
+ return t === i ? t !== 0 || 1 / t === 1 / i : t !== t && i !== i;
966
+ }
967
+ function M(t, i) {
968
+ this.message = t, this.data = i && typeof i == "object" ? i : {}, this.stack = "";
969
+ }
970
+ M.prototype = Error.prototype;
971
+ function N(t) {
972
+ if (process.env.NODE_ENV !== "production")
973
+ var i = {}, m = 0;
974
+ function h(_, y, b, g, w, T, J) {
975
+ if (g = g || k, T = T || b, J !== x) {
976
+ if (p) {
977
+ var n = new Error(
978
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
979
+ );
980
+ throw n.name = "Invariant Violation", n;
981
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
982
+ var Z = g + ":" + b;
983
+ !i[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
984
+ m < 3 && (c(
985
+ "You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" + g + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
986
+ ), i[Z] = !0, m++);
987
+ }
988
+ }
989
+ return y[b] == null ? _ ? y[b] === null ? new M("The " + w + " `" + T + "` is marked as required " + ("in `" + g + "`, but its value is `null`.")) : new M("The " + w + " `" + T + "` is marked as required in " + ("`" + g + "`, but its value is `undefined`.")) : null : t(y, b, g, w, T);
990
+ }
991
+ var v = h.bind(null, !1);
992
+ return v.isRequired = h.bind(null, !0), v;
993
+ }
994
+ function U(t) {
995
+ function i(m, h, v, _, y, b) {
996
+ var g = m[h], w = H(g);
997
+ if (w !== t) {
998
+ var T = ee(g);
999
+ return new M(
1000
+ "Invalid " + _ + " `" + y + "` of type " + ("`" + T + "` supplied to `" + v + "`, expected ") + ("`" + t + "`."),
1001
+ { expectedType: t }
1002
+ );
1003
+ }
1004
+ return null;
1005
+ }
1006
+ return N(i);
1007
+ }
1008
+ function Y() {
1009
+ return N(O);
1010
+ }
1011
+ function V(t) {
1012
+ function i(m, h, v, _, y) {
1013
+ if (typeof t != "function")
1014
+ return new M("Property `" + y + "` of component `" + v + "` has invalid PropType notation inside arrayOf.");
1015
+ var b = m[h];
1016
+ if (!Array.isArray(b)) {
1017
+ var g = H(b);
1018
+ return new M("Invalid " + _ + " `" + y + "` of type " + ("`" + g + "` supplied to `" + v + "`, expected an array."));
1019
+ }
1020
+ for (var w = 0; w < b.length; w++) {
1021
+ var T = t(b, w, v, _, y + "[" + w + "]", x);
1022
+ if (T instanceof Error)
1023
+ return T;
1024
+ }
1025
+ return null;
1026
+ }
1027
+ return N(i);
1028
+ }
1029
+ function q() {
1030
+ function t(i, m, h, v, _) {
1031
+ var y = i[m];
1032
+ if (!l(y)) {
1033
+ var b = H(y);
1034
+ return new M("Invalid " + v + " `" + _ + "` of type " + ("`" + b + "` supplied to `" + h + "`, expected a single ReactElement."));
1035
+ }
1036
+ return null;
1037
+ }
1038
+ return N(t);
1039
+ }
1040
+ function o() {
1041
+ function t(i, m, h, v, _) {
1042
+ var y = i[m];
1043
+ if (!u.isValidElementType(y)) {
1044
+ var b = H(y);
1045
+ return new M("Invalid " + v + " `" + _ + "` of type " + ("`" + b + "` supplied to `" + h + "`, expected a single ReactElement type."));
1046
+ }
1047
+ return null;
1048
+ }
1049
+ return N(t);
1050
+ }
1051
+ function re(t) {
1052
+ function i(m, h, v, _, y) {
1053
+ if (!(m[h] instanceof t)) {
1054
+ var b = t.name || k, g = fe(m[h]);
1055
+ return new M("Invalid " + _ + " `" + y + "` of type " + ("`" + g + "` supplied to `" + v + "`, expected ") + ("instance of `" + b + "`."));
1056
+ }
1057
+ return null;
1058
+ }
1059
+ return N(i);
1060
+ }
1061
+ function ve(t) {
1062
+ if (!Array.isArray(t))
1063
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? c(
1064
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1065
+ ) : c("Invalid argument supplied to oneOf, expected an array.")), O;
1066
+ function i(m, h, v, _, y) {
1067
+ for (var b = m[h], g = 0; g < t.length; g++)
1068
+ if (z(b, t[g]))
1069
+ return null;
1070
+ var w = JSON.stringify(t, function(J, n) {
1071
+ var Z = ee(n);
1072
+ return Z === "symbol" ? String(n) : n;
1073
+ });
1074
+ return new M("Invalid " + _ + " `" + y + "` of value `" + String(b) + "` " + ("supplied to `" + v + "`, expected one of " + w + "."));
1075
+ }
1076
+ return N(i);
1077
+ }
1078
+ function pe(t) {
1079
+ function i(m, h, v, _, y) {
1080
+ if (typeof t != "function")
1081
+ return new M("Property `" + y + "` of component `" + v + "` has invalid PropType notation inside objectOf.");
1082
+ var b = m[h], g = H(b);
1083
+ if (g !== "object")
1084
+ return new M("Invalid " + _ + " `" + y + "` of type " + ("`" + g + "` supplied to `" + v + "`, expected an object."));
1085
+ for (var w in b)
1086
+ if (f(b, w)) {
1087
+ var T = t(b, w, v, _, y + "." + w, x);
1088
+ if (T instanceof Error)
1089
+ return T;
1090
+ }
1091
+ return null;
1092
+ }
1093
+ return N(i);
1094
+ }
1095
+ function ie(t) {
1096
+ if (!Array.isArray(t))
1097
+ return process.env.NODE_ENV !== "production" && c("Invalid argument supplied to oneOfType, expected an instance of array."), O;
1098
+ for (var i = 0; i < t.length; i++) {
1099
+ var m = t[i];
1100
+ if (typeof m != "function")
1101
+ return c(
1102
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(m) + " at index " + i + "."
1103
+ ), O;
1104
+ }
1105
+ function h(v, _, y, b, g) {
1106
+ for (var w = [], T = 0; T < t.length; T++) {
1107
+ var J = t[T], n = J(v, _, y, b, g, x);
1108
+ if (n == null)
1109
+ return null;
1110
+ n.data && f(n.data, "expectedType") && w.push(n.data.expectedType);
1111
+ }
1112
+ var Z = w.length > 0 ? ", expected one of type [" + w.join(", ") + "]" : "";
1113
+ return new M("Invalid " + b + " `" + g + "` supplied to " + ("`" + y + "`" + Z + "."));
1114
+ }
1115
+ return N(h);
1116
+ }
1117
+ function ye() {
1118
+ function t(i, m, h, v, _) {
1119
+ return G(i[m]) ? null : new M("Invalid " + v + " `" + _ + "` supplied to " + ("`" + h + "`, expected a ReactNode."));
1120
+ }
1121
+ return N(t);
1122
+ }
1123
+ function ue(t, i, m, h, v) {
1124
+ return new M(
1125
+ (t || "React class") + ": " + i + " type `" + m + "." + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + v + "`."
1126
+ );
1127
+ }
1128
+ function se(t) {
1129
+ function i(m, h, v, _, y) {
1130
+ var b = m[h], g = H(b);
1131
+ if (g !== "object")
1132
+ return new M("Invalid " + _ + " `" + y + "` of type `" + g + "` " + ("supplied to `" + v + "`, expected `object`."));
1133
+ for (var w in t) {
1134
+ var T = t[w];
1135
+ if (typeof T != "function")
1136
+ return ue(v, _, y, w, ee(T));
1137
+ var J = T(b, w, v, _, y + "." + w, x);
1138
+ if (J)
1139
+ return J;
1140
+ }
1141
+ return null;
1142
+ }
1143
+ return N(i);
1144
+ }
1145
+ function K(t) {
1146
+ function i(m, h, v, _, y) {
1147
+ var b = m[h], g = H(b);
1148
+ if (g !== "object")
1149
+ return new M("Invalid " + _ + " `" + y + "` of type `" + g + "` " + ("supplied to `" + v + "`, expected `object`."));
1150
+ var w = D({}, m[h], t);
1151
+ for (var T in w) {
1152
+ var J = t[T];
1153
+ if (f(t, T) && typeof J != "function")
1154
+ return ue(v, _, y, T, ee(J));
1155
+ if (!J)
1156
+ return new M(
1157
+ "Invalid " + _ + " `" + y + "` key `" + T + "` supplied to `" + v + "`.\nBad object: " + JSON.stringify(m[h], null, " ") + `
1158
+ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
1159
+ );
1160
+ var n = J(b, T, v, _, y + "." + T, x);
1161
+ if (n)
1162
+ return n;
1163
+ }
1164
+ return null;
1165
+ }
1166
+ return N(i);
1167
+ }
1168
+ function G(t) {
1169
+ switch (typeof t) {
1170
+ case "number":
1171
+ case "string":
1172
+ case "undefined":
1173
+ return !0;
1174
+ case "boolean":
1175
+ return !t;
1176
+ case "object":
1177
+ if (Array.isArray(t))
1178
+ return t.every(G);
1179
+ if (t === null || l(t))
1180
+ return !0;
1181
+ var i = E(t);
1182
+ if (i) {
1183
+ var m = i.call(t), h;
1184
+ if (i !== t.entries) {
1185
+ for (; !(h = m.next()).done; )
1186
+ if (!G(h.value))
1187
+ return !1;
1188
+ } else
1189
+ for (; !(h = m.next()).done; ) {
1190
+ var v = h.value;
1191
+ if (v && !G(v[1]))
1192
+ return !1;
1193
+ }
1194
+ } else
1195
+ return !1;
1196
+ return !0;
1197
+ default:
1198
+ return !1;
1199
+ }
1200
+ }
1201
+ function te(t, i) {
1202
+ return t === "symbol" ? !0 : i ? i["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && i instanceof Symbol : !1;
1203
+ }
1204
+ function H(t) {
1205
+ var i = typeof t;
1206
+ return Array.isArray(t) ? "array" : t instanceof RegExp ? "object" : te(i, t) ? "symbol" : i;
1207
+ }
1208
+ function ee(t) {
1209
+ if (typeof t > "u" || t === null)
1210
+ return "" + t;
1211
+ var i = H(t);
1212
+ if (i === "object") {
1213
+ if (t instanceof Date)
1214
+ return "date";
1215
+ if (t instanceof RegExp)
1216
+ return "regexp";
1217
+ }
1218
+ return i;
1219
+ }
1220
+ function ne(t) {
1221
+ var i = ee(t);
1222
+ switch (i) {
1223
+ case "array":
1224
+ case "object":
1225
+ return "an " + i;
1226
+ case "boolean":
1227
+ case "date":
1228
+ case "regexp":
1229
+ return "a " + i;
1230
+ default:
1231
+ return i;
1232
+ }
1233
+ }
1234
+ function fe(t) {
1235
+ return !t.constructor || !t.constructor.name ? k : t.constructor.name;
1236
+ }
1237
+ return F.checkPropTypes = C, F.resetWarningCache = C.resetWarningCache, F.PropTypes = F, F;
1238
+ }, Me;
1239
+ }
1240
+ var Fe, fr;
1241
+ function Kr() {
1242
+ if (fr) return Fe;
1243
+ fr = 1;
1244
+ var u = /* @__PURE__ */ Ye();
1245
+ function D() {
1246
+ }
1247
+ function x() {
1248
+ }
1249
+ return x.resetWarningCache = D, Fe = function() {
1250
+ function f(O, l, p, P, d, E) {
1251
+ if (E !== u) {
1252
+ var k = new Error(
1253
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1254
+ );
1255
+ throw k.name = "Invariant Violation", k;
1256
+ }
1257
+ }
1258
+ f.isRequired = f;
1259
+ function C() {
1260
+ return f;
1261
+ }
1262
+ var c = {
1263
+ array: f,
1264
+ bigint: f,
1265
+ bool: f,
1266
+ func: f,
1267
+ number: f,
1268
+ object: f,
1269
+ string: f,
1270
+ symbol: f,
1271
+ any: f,
1272
+ arrayOf: C,
1273
+ element: f,
1274
+ elementType: f,
1275
+ instanceOf: C,
1276
+ node: f,
1277
+ objectOf: C,
1278
+ oneOf: C,
1279
+ oneOfType: C,
1280
+ shape: C,
1281
+ exact: C,
1282
+ checkPropTypes: x,
1283
+ resetWarningCache: D
1284
+ };
1285
+ return c.PropTypes = c, c;
1286
+ }, Fe;
1287
+ }
1288
+ var cr;
1289
+ function Gr() {
1290
+ if (cr) return Re.exports;
1291
+ if (cr = 1, process.env.NODE_ENV !== "production") {
1292
+ var u = dr(), D = !0;
1293
+ Re.exports = /* @__PURE__ */ Br()(u.isElement, D);
1294
+ } else
1295
+ Re.exports = /* @__PURE__ */ Kr()();
1296
+ return Re.exports;
1297
+ }
1298
+ var Xr = /* @__PURE__ */ Gr();
1299
+ const Se = /* @__PURE__ */ Wr(Xr), Hr = ({ type: u, text: D, showCloseButton: x = !1, onClose: f = null }) => {
1300
+ const [C, c] = Mr(!0);
1301
+ Fr(() => {
1302
+ if (!x) {
1303
+ const p = setTimeout(() => c(!1), 4e3);
1304
+ return () => clearTimeout(p);
1305
+ }
1306
+ }, [x]);
1307
+ const O = Yr(() => {
1308
+ c(!1), f == null || f();
1309
+ }, [f]);
1310
+ if (!C) return null;
1311
+ const l = {
1312
+ success: "bg-green-500",
1313
+ error: "bg-red-500",
1314
+ info: "bg-blue-500",
1315
+ warning: "bg-yellow-500"
1316
+ };
1317
+ return /* @__PURE__ */ Ae.jsxs(
1318
+ "div",
1319
+ {
1320
+ className: `fixed top-5 right-5 px-4 py-2 rounded shadow-lg text-white flex items-center ${l[u]}`,
1321
+ children: [
1322
+ /* @__PURE__ */ Ae.jsx("span", { className: "flex-1", children: D }),
1323
+ x && /* @__PURE__ */ Ae.jsx(
1324
+ "button",
1325
+ {
1326
+ onClick: O,
1327
+ className: "ml-3 text-lg",
1328
+ "aria-label": "Close notification",
1329
+ children: "×"
1330
+ }
1331
+ )
1332
+ ]
1333
+ }
1334
+ );
1335
+ };
1336
+ Hr.propTypes = {
1337
+ type: Se.oneOf(["success", "error", "info", "warning"]).isRequired,
1338
+ text: Se.string.isRequired,
1339
+ showCloseButton: Se.bool,
1340
+ onClose: Se.func
1341
+ };
1342
+ export {
1343
+ Hr as default
1344
+ };