@meshsdk/react 1.1.12 → 1.5.29

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.
Files changed (73) hide show
  1. package/README.md +3 -3
  2. package/dist/index.css +718 -0
  3. package/package.json +32 -62
  4. package/.babelrc +0 -6
  5. package/.storybook/main.cjs +0 -18
  6. package/.storybook/preview-head.html +0 -3
  7. package/.storybook/preview.cjs +0 -9
  8. package/dist/components/CardanoWallet/CardanoWallet.d.ts +0 -6
  9. package/dist/components/CardanoWallet/WalletBalance.d.ts +0 -7
  10. package/dist/components/CardanoWallet/index.d.ts +0 -1
  11. package/dist/components/ChevronDown/ChevronDown.d.ts +0 -2
  12. package/dist/components/ChevronDown/index.d.ts +0 -1
  13. package/dist/components/MenuItem/CheckMark.d.ts +0 -2
  14. package/dist/components/MenuItem/MenuItem.d.ts +0 -7
  15. package/dist/components/MenuItem/index.d.ts +0 -1
  16. package/dist/components/MeshBadge/MeshBadge.d.ts +0 -4
  17. package/dist/components/MeshBadge/MeshLogo.d.ts +0 -2
  18. package/dist/components/MeshBadge/index.d.ts +0 -1
  19. package/dist/components/StakeButton/StakeButton.d.ts +0 -5
  20. package/dist/components/StakeButton/index.d.ts +0 -1
  21. package/dist/components/index.d.ts +0 -3
  22. package/dist/contexts/WalletContext.d.ts +0 -22
  23. package/dist/contexts/index.d.ts +0 -6
  24. package/dist/hooks/index.d.ts +0 -9
  25. package/dist/hooks/useAddress.d.ts +0 -1
  26. package/dist/hooks/useAssets.d.ts +0 -2
  27. package/dist/hooks/useLovelace.d.ts +0 -1
  28. package/dist/hooks/useNetwork.d.ts +0 -1
  29. package/dist/hooks/useRewardAddress.d.ts +0 -1
  30. package/dist/hooks/useWallet.d.ts +0 -9
  31. package/dist/hooks/useWalletList.d.ts +0 -2
  32. package/dist/hooks/useWalletSubmit.d.ts +0 -6
  33. package/dist/hooks/useWalletTx.d.ts +0 -6
  34. package/dist/index.d.ts +0 -4
  35. package/dist/react.cjs +0 -100
  36. package/dist/react.js +0 -2501
  37. package/dist/resolvers/index.d.ts +0 -1
  38. package/dist/resolvers/resolveMedia.d.ts +0 -1
  39. package/postcss.config.js +0 -6
  40. package/src/components/CardanoWallet/CardanoWallet.tsx +0 -153
  41. package/src/components/CardanoWallet/WalletBalance.tsx +0 -34
  42. package/src/components/CardanoWallet/index.ts +0 -1
  43. package/src/components/ChevronDown/ChevronDown.tsx +0 -20
  44. package/src/components/ChevronDown/index.ts +0 -1
  45. package/src/components/MenuItem/CheckMark.tsx +0 -13
  46. package/src/components/MenuItem/MenuItem.tsx +0 -41
  47. package/src/components/MenuItem/index.ts +0 -1
  48. package/src/components/MeshBadge/MeshBadge.tsx +0 -23
  49. package/src/components/MeshBadge/MeshLogo.tsx +0 -13
  50. package/src/components/MeshBadge/index.ts +0 -1
  51. package/src/components/StakeButton/StakeButton.tsx +0 -170
  52. package/src/components/StakeButton/index.ts +0 -1
  53. package/src/components/index.ts +0 -3
  54. package/src/contexts/WalletContext.tsx +0 -74
  55. package/src/contexts/index.tsx +0 -19
  56. package/src/hooks/index.ts +0 -9
  57. package/src/hooks/useAddress.ts +0 -23
  58. package/src/hooks/useAssets.ts +0 -21
  59. package/src/hooks/useLovelace.ts +0 -20
  60. package/src/hooks/useNetwork.ts +0 -20
  61. package/src/hooks/useRewardAddress.ts +0 -23
  62. package/src/hooks/useWallet.ts +0 -30
  63. package/src/hooks/useWalletList.ts +0 -13
  64. package/src/hooks/useWalletSubmit.ts +0 -38
  65. package/src/hooks/useWalletTx.ts +0 -29
  66. package/src/index.ts +0 -4
  67. package/src/resolvers/index.ts +0 -1
  68. package/src/resolvers/resolveMedia.ts +0 -34
  69. package/src/types/twin.d.ts +0 -29
  70. package/tailwind.config.cjs +0 -9
  71. package/tsconfig.json +0 -103
  72. package/vite.config.js +0 -43
  73. package/vite.config.js.timestamp-1713618771534.mjs +0 -49
package/dist/react.js DELETED
@@ -1,2501 +0,0 @@
1
- import Ye, { useRef as Sr, useDebugValue as Ot, useContext as ye, createElement as Cr, createContext as Er, useState as Z, useCallback as ct, useEffect as Pe } from "react";
2
- import { BrowserWallet as qt, Transaction as _r } from "@meshsdk/core";
3
- var qe = { exports: {} }, B = {};
4
- /** @license React v16.13.1
5
- * react-is.production.min.js
6
- *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var It;
13
- function xr() {
14
- if (It)
15
- return B;
16
- It = 1;
17
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, P = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, D = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
18
- function T(d) {
19
- if (typeof d == "object" && d !== null) {
20
- var ae = d.$$typeof;
21
- switch (ae) {
22
- case n:
23
- switch (d = d.type, d) {
24
- case h:
25
- case g:
26
- case o:
27
- case c:
28
- case a:
29
- case C:
30
- return d;
31
- default:
32
- switch (d = d && d.$$typeof, d) {
33
- case f:
34
- case v:
35
- case E:
36
- case N:
37
- case s:
38
- return d;
39
- default:
40
- return ae;
41
- }
42
- }
43
- case t:
44
- return ae;
45
- }
46
- }
47
- }
48
- function _(d) {
49
- return T(d) === g;
50
- }
51
- return B.AsyncMode = h, B.ConcurrentMode = g, B.ContextConsumer = f, B.ContextProvider = s, B.Element = n, B.ForwardRef = v, B.Fragment = o, B.Lazy = E, B.Memo = N, B.Portal = t, B.Profiler = c, B.StrictMode = a, B.Suspense = C, B.isAsyncMode = function(d) {
52
- return _(d) || T(d) === h;
53
- }, B.isConcurrentMode = _, B.isContextConsumer = function(d) {
54
- return T(d) === f;
55
- }, B.isContextProvider = function(d) {
56
- return T(d) === s;
57
- }, B.isElement = function(d) {
58
- return typeof d == "object" && d !== null && d.$$typeof === n;
59
- }, B.isForwardRef = function(d) {
60
- return T(d) === v;
61
- }, B.isFragment = function(d) {
62
- return T(d) === o;
63
- }, B.isLazy = function(d) {
64
- return T(d) === E;
65
- }, B.isMemo = function(d) {
66
- return T(d) === N;
67
- }, B.isPortal = function(d) {
68
- return T(d) === t;
69
- }, B.isProfiler = function(d) {
70
- return T(d) === c;
71
- }, B.isStrictMode = function(d) {
72
- return T(d) === a;
73
- }, B.isSuspense = function(d) {
74
- return T(d) === C;
75
- }, B.isValidElementType = function(d) {
76
- return typeof d == "string" || typeof d == "function" || d === o || d === g || d === c || d === a || d === C || d === P || typeof d == "object" && d !== null && (d.$$typeof === E || d.$$typeof === N || d.$$typeof === s || d.$$typeof === f || d.$$typeof === v || d.$$typeof === x || d.$$typeof === M || d.$$typeof === y || d.$$typeof === D);
77
- }, B.typeOf = T, B;
78
- }
79
- var V = {};
80
- /** @license React v16.13.1
81
- * react-is.development.js
82
- *
83
- * Copyright (c) Facebook, Inc. and its affiliates.
84
- *
85
- * This source code is licensed under the MIT license found in the
86
- * LICENSE file in the root directory of this source tree.
87
- */
88
- var Nt;
89
- function Rr() {
90
- return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
91
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, P = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, D = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
92
- function T(l) {
93
- return typeof l == "string" || typeof l == "function" || l === o || l === g || l === c || l === a || l === C || l === P || typeof l == "object" && l !== null && (l.$$typeof === E || l.$$typeof === N || l.$$typeof === s || l.$$typeof === f || l.$$typeof === v || l.$$typeof === x || l.$$typeof === M || l.$$typeof === y || l.$$typeof === D);
94
- }
95
- function _(l) {
96
- if (typeof l == "object" && l !== null) {
97
- var X = l.$$typeof;
98
- switch (X) {
99
- case n:
100
- var J = l.type;
101
- switch (J) {
102
- case h:
103
- case g:
104
- case o:
105
- case c:
106
- case a:
107
- case C:
108
- return J;
109
- default:
110
- var O = J && J.$$typeof;
111
- switch (O) {
112
- case f:
113
- case v:
114
- case E:
115
- case N:
116
- case s:
117
- return O;
118
- default:
119
- return X;
120
- }
121
- }
122
- case t:
123
- return X;
124
- }
125
- }
126
- }
127
- var d = h, ae = g, he = f, ce = s, ue = n, me = v, we = o, ie = E, G = N, te = t, K = c, be = a, le = C, se = !1;
128
- function Se(l) {
129
- return se || (se = !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.")), ve(l) || _(l) === h;
130
- }
131
- function ve(l) {
132
- return _(l) === g;
133
- }
134
- function Ce(l) {
135
- return _(l) === f;
136
- }
137
- function S(l) {
138
- return _(l) === s;
139
- }
140
- function w(l) {
141
- return typeof l == "object" && l !== null && l.$$typeof === n;
142
- }
143
- function b(l) {
144
- return _(l) === v;
145
- }
146
- function A(l) {
147
- return _(l) === o;
148
- }
149
- function i(l) {
150
- return _(l) === E;
151
- }
152
- function W(l) {
153
- return _(l) === N;
154
- }
155
- function p(l) {
156
- return _(l) === t;
157
- }
158
- function U(l) {
159
- return _(l) === c;
160
- }
161
- function j(l) {
162
- return _(l) === a;
163
- }
164
- function L(l) {
165
- return _(l) === C;
166
- }
167
- V.AsyncMode = d, V.ConcurrentMode = ae, V.ContextConsumer = he, V.ContextProvider = ce, V.Element = ue, V.ForwardRef = me, V.Fragment = we, V.Lazy = ie, V.Memo = G, V.Portal = te, V.Profiler = K, V.StrictMode = be, V.Suspense = le, V.isAsyncMode = Se, V.isConcurrentMode = ve, V.isContextConsumer = Ce, V.isContextProvider = S, V.isElement = w, V.isForwardRef = b, V.isFragment = A, V.isLazy = i, V.isMemo = W, V.isPortal = p, V.isProfiler = U, V.isStrictMode = j, V.isSuspense = L, V.isValidElementType = T, V.typeOf = _;
168
- }()), V;
169
- }
170
- (function(e) {
171
- process.env.NODE_ENV === "production" ? e.exports = xr() : e.exports = Rr();
172
- })(qe);
173
- function kr(e) {
174
- function n(S, w, b, A, i) {
175
- for (var W = 0, p = 0, U = 0, j = 0, L, l, X = 0, J = 0, O, Q = O = L = 0, z = 0, re = 0, Ee = 0, oe = 0, je = b.length, xe = je - 1, pe, R = "", q = "", We = "", Re = "", _e; z < je; ) {
176
- if (l = b.charCodeAt(z), z === xe && p + j + U + W !== 0 && (p !== 0 && (l = p === 47 ? 10 : 47), j = U = W = 0, je++, xe++), p + j + U + W === 0) {
177
- if (z === xe && (0 < re && (R = R.replace(P, "")), 0 < R.trim().length)) {
178
- switch (l) {
179
- case 32:
180
- case 9:
181
- case 59:
182
- case 13:
183
- case 10:
184
- break;
185
- default:
186
- R += b.charAt(z);
187
- }
188
- l = 59;
189
- }
190
- switch (l) {
191
- case 123:
192
- for (R = R.trim(), L = R.charCodeAt(0), O = 1, oe = ++z; z < je; ) {
193
- switch (l = b.charCodeAt(z)) {
194
- case 123:
195
- O++;
196
- break;
197
- case 125:
198
- O--;
199
- break;
200
- case 47:
201
- switch (l = b.charCodeAt(z + 1)) {
202
- case 42:
203
- case 47:
204
- e: {
205
- for (Q = z + 1; Q < xe; ++Q)
206
- switch (b.charCodeAt(Q)) {
207
- case 47:
208
- if (l === 42 && b.charCodeAt(Q - 1) === 42 && z + 2 !== Q) {
209
- z = Q + 1;
210
- break e;
211
- }
212
- break;
213
- case 10:
214
- if (l === 47) {
215
- z = Q + 1;
216
- break e;
217
- }
218
- }
219
- z = Q;
220
- }
221
- }
222
- break;
223
- case 91:
224
- l++;
225
- case 40:
226
- l++;
227
- case 34:
228
- case 39:
229
- for (; z++ < xe && b.charCodeAt(z) !== l; )
230
- ;
231
- }
232
- if (O === 0)
233
- break;
234
- z++;
235
- }
236
- switch (O = b.substring(oe, z), L === 0 && (L = (R = R.replace(C, "").trim()).charCodeAt(0)), L) {
237
- case 64:
238
- switch (0 < re && (R = R.replace(P, "")), l = R.charCodeAt(1), l) {
239
- case 100:
240
- case 109:
241
- case 115:
242
- case 45:
243
- re = w;
244
- break;
245
- default:
246
- re = be;
247
- }
248
- if (O = n(w, re, O, l, i + 1), oe = O.length, 0 < se && (re = t(be, R, Ee), _e = f(3, O, re, w, G, ie, oe, l, i, A), R = re.join(""), _e !== void 0 && (oe = (O = _e.trim()).length) === 0 && (l = 0, O = "")), 0 < oe)
249
- switch (l) {
250
- case 115:
251
- R = R.replace(ae, s);
252
- case 100:
253
- case 109:
254
- case 45:
255
- O = R + "{" + O + "}";
256
- break;
257
- case 107:
258
- R = R.replace(y, "$1 $2"), O = R + "{" + O + "}", O = K === 1 || K === 2 && c("@" + O, 3) ? "@-webkit-" + O + "@" + O : "@" + O;
259
- break;
260
- default:
261
- O = R + O, A === 112 && (O = (q += O, ""));
262
- }
263
- else
264
- O = "";
265
- break;
266
- default:
267
- O = n(w, t(w, R, Ee), O, A, i + 1);
268
- }
269
- We += O, O = Ee = re = Q = L = 0, R = "", l = b.charCodeAt(++z);
270
- break;
271
- case 125:
272
- case 59:
273
- if (R = (0 < re ? R.replace(P, "") : R).trim(), 1 < (oe = R.length))
274
- switch (Q === 0 && (L = R.charCodeAt(0), L === 45 || 96 < L && 123 > L) && (oe = (R = R.replace(" ", ":")).length), 0 < se && (_e = f(1, R, w, S, G, ie, q.length, A, i, A)) !== void 0 && (oe = (R = _e.trim()).length) === 0 && (R = "\0\0"), L = R.charCodeAt(0), l = R.charCodeAt(1), L) {
275
- case 0:
276
- break;
277
- case 64:
278
- if (l === 105 || l === 99) {
279
- Re += R + b.charAt(z);
280
- break;
281
- }
282
- default:
283
- R.charCodeAt(oe - 1) !== 58 && (q += a(R, L, l, R.charCodeAt(2)));
284
- }
285
- Ee = re = Q = L = 0, R = "", l = b.charCodeAt(++z);
286
- }
287
- }
288
- switch (l) {
289
- case 13:
290
- case 10:
291
- p === 47 ? p = 0 : 1 + L === 0 && A !== 107 && 0 < R.length && (re = 1, R += "\0"), 0 < se * ve && f(0, R, w, S, G, ie, q.length, A, i, A), ie = 1, G++;
292
- break;
293
- case 59:
294
- case 125:
295
- if (p + j + U + W === 0) {
296
- ie++;
297
- break;
298
- }
299
- default:
300
- switch (ie++, pe = b.charAt(z), l) {
301
- case 9:
302
- case 32:
303
- if (j + W + p === 0)
304
- switch (X) {
305
- case 44:
306
- case 58:
307
- case 9:
308
- case 32:
309
- pe = "";
310
- break;
311
- default:
312
- l !== 32 && (pe = " ");
313
- }
314
- break;
315
- case 0:
316
- pe = "\\0";
317
- break;
318
- case 12:
319
- pe = "\\f";
320
- break;
321
- case 11:
322
- pe = "\\v";
323
- break;
324
- case 38:
325
- j + p + W === 0 && (re = Ee = 1, pe = "\f" + pe);
326
- break;
327
- case 108:
328
- if (j + p + W + te === 0 && 0 < Q)
329
- switch (z - Q) {
330
- case 2:
331
- X === 112 && b.charCodeAt(z - 3) === 58 && (te = X);
332
- case 8:
333
- J === 111 && (te = J);
334
- }
335
- break;
336
- case 58:
337
- j + p + W === 0 && (Q = z);
338
- break;
339
- case 44:
340
- p + U + j + W === 0 && (re = 1, pe += "\r");
341
- break;
342
- case 34:
343
- case 39:
344
- p === 0 && (j = j === l ? 0 : j === 0 ? l : j);
345
- break;
346
- case 91:
347
- j + p + U === 0 && W++;
348
- break;
349
- case 93:
350
- j + p + U === 0 && W--;
351
- break;
352
- case 41:
353
- j + p + W === 0 && U--;
354
- break;
355
- case 40:
356
- if (j + p + W === 0) {
357
- if (L === 0)
358
- switch (2 * X + 3 * J) {
359
- case 533:
360
- break;
361
- default:
362
- L = 1;
363
- }
364
- U++;
365
- }
366
- break;
367
- case 64:
368
- p + U + j + W + Q + O === 0 && (O = 1);
369
- break;
370
- case 42:
371
- case 47:
372
- if (!(0 < j + W + U))
373
- switch (p) {
374
- case 0:
375
- switch (2 * l + 3 * b.charCodeAt(z + 1)) {
376
- case 235:
377
- p = 47;
378
- break;
379
- case 220:
380
- oe = z, p = 42;
381
- }
382
- break;
383
- case 42:
384
- l === 47 && X === 42 && oe + 2 !== z && (b.charCodeAt(oe + 2) === 33 && (q += b.substring(oe, z + 1)), pe = "", p = 0);
385
- }
386
- }
387
- p === 0 && (R += pe);
388
- }
389
- J = X, X = l, z++;
390
- }
391
- if (oe = q.length, 0 < oe) {
392
- if (re = w, 0 < se && (_e = f(2, q, re, S, G, ie, oe, A, i, A), _e !== void 0 && (q = _e).length === 0))
393
- return Re + q + We;
394
- if (q = re.join(",") + "{" + q + "}", K * te !== 0) {
395
- switch (K !== 2 || c(q, 2) || (te = 0), te) {
396
- case 111:
397
- q = q.replace(_, ":-moz-$1") + q;
398
- break;
399
- case 112:
400
- q = q.replace(T, "::-webkit-input-$1") + q.replace(T, "::-moz-$1") + q.replace(T, ":-ms-input-$1") + q;
401
- }
402
- te = 0;
403
- }
404
- }
405
- return Re + q + We;
406
- }
407
- function t(S, w, b) {
408
- var A = w.trim().split(x);
409
- w = A;
410
- var i = A.length, W = S.length;
411
- switch (W) {
412
- case 0:
413
- case 1:
414
- var p = 0;
415
- for (S = W === 0 ? "" : S[0] + " "; p < i; ++p)
416
- w[p] = o(S, w[p], b).trim();
417
- break;
418
- default:
419
- var U = p = 0;
420
- for (w = []; p < i; ++p)
421
- for (var j = 0; j < W; ++j)
422
- w[U++] = o(S[j] + " ", A[p], b).trim();
423
- }
424
- return w;
425
- }
426
- function o(S, w, b) {
427
- var A = w.charCodeAt(0);
428
- switch (33 > A && (A = (w = w.trim()).charCodeAt(0)), A) {
429
- case 38:
430
- return w.replace(M, "$1" + S.trim());
431
- case 58:
432
- return S.trim() + w.replace(M, "$1" + S.trim());
433
- default:
434
- if (0 < 1 * b && 0 < w.indexOf("\f"))
435
- return w.replace(M, (S.charCodeAt(0) === 58 ? "" : "$1") + S.trim());
436
- }
437
- return S + w;
438
- }
439
- function a(S, w, b, A) {
440
- var i = S + ";", W = 2 * w + 3 * b + 4 * A;
441
- if (W === 944) {
442
- S = i.indexOf(":", 9) + 1;
443
- var p = i.substring(S, i.length - 1).trim();
444
- return p = i.substring(0, S).trim() + p + ";", K === 1 || K === 2 && c(p, 1) ? "-webkit-" + p + p : p;
445
- }
446
- if (K === 0 || K === 2 && !c(i, 1))
447
- return i;
448
- switch (W) {
449
- case 1015:
450
- return i.charCodeAt(10) === 97 ? "-webkit-" + i + i : i;
451
- case 951:
452
- return i.charCodeAt(3) === 116 ? "-webkit-" + i + i : i;
453
- case 963:
454
- return i.charCodeAt(5) === 110 ? "-webkit-" + i + i : i;
455
- case 1009:
456
- if (i.charCodeAt(4) !== 100)
457
- break;
458
- case 969:
459
- case 942:
460
- return "-webkit-" + i + i;
461
- case 978:
462
- return "-webkit-" + i + "-moz-" + i + i;
463
- case 1019:
464
- case 983:
465
- return "-webkit-" + i + "-moz-" + i + "-ms-" + i + i;
466
- case 883:
467
- if (i.charCodeAt(8) === 45)
468
- return "-webkit-" + i + i;
469
- if (0 < i.indexOf("image-set(", 11))
470
- return i.replace(we, "$1-webkit-$2") + i;
471
- break;
472
- case 932:
473
- if (i.charCodeAt(4) === 45)
474
- switch (i.charCodeAt(5)) {
475
- case 103:
476
- return "-webkit-box-" + i.replace("-grow", "") + "-webkit-" + i + "-ms-" + i.replace("grow", "positive") + i;
477
- case 115:
478
- return "-webkit-" + i + "-ms-" + i.replace("shrink", "negative") + i;
479
- case 98:
480
- return "-webkit-" + i + "-ms-" + i.replace("basis", "preferred-size") + i;
481
- }
482
- return "-webkit-" + i + "-ms-" + i + i;
483
- case 964:
484
- return "-webkit-" + i + "-ms-flex-" + i + i;
485
- case 1023:
486
- if (i.charCodeAt(8) !== 99)
487
- break;
488
- return p = i.substring(i.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + p + "-webkit-" + i + "-ms-flex-pack" + p + i;
489
- case 1005:
490
- return E.test(i) ? i.replace(N, ":-webkit-") + i.replace(N, ":-moz-") + i : i;
491
- case 1e3:
492
- switch (p = i.substring(13).trim(), w = p.indexOf("-") + 1, p.charCodeAt(0) + p.charCodeAt(w)) {
493
- case 226:
494
- p = i.replace(d, "tb");
495
- break;
496
- case 232:
497
- p = i.replace(d, "tb-rl");
498
- break;
499
- case 220:
500
- p = i.replace(d, "lr");
501
- break;
502
- default:
503
- return i;
504
- }
505
- return "-webkit-" + i + "-ms-" + p + i;
506
- case 1017:
507
- if (i.indexOf("sticky", 9) === -1)
508
- break;
509
- case 975:
510
- switch (w = (i = S).length - 10, p = (i.charCodeAt(w) === 33 ? i.substring(0, w) : i).substring(S.indexOf(":", 7) + 1).trim(), W = p.charCodeAt(0) + (p.charCodeAt(7) | 0)) {
511
- case 203:
512
- if (111 > p.charCodeAt(8))
513
- break;
514
- case 115:
515
- i = i.replace(p, "-webkit-" + p) + ";" + i;
516
- break;
517
- case 207:
518
- case 102:
519
- i = i.replace(p, "-webkit-" + (102 < W ? "inline-" : "") + "box") + ";" + i.replace(p, "-webkit-" + p) + ";" + i.replace(p, "-ms-" + p + "box") + ";" + i;
520
- }
521
- return i + ";";
522
- case 938:
523
- if (i.charCodeAt(5) === 45)
524
- switch (i.charCodeAt(6)) {
525
- case 105:
526
- return p = i.replace("-items", ""), "-webkit-" + i + "-webkit-box-" + p + "-ms-flex-" + p + i;
527
- case 115:
528
- return "-webkit-" + i + "-ms-flex-item-" + i.replace(ce, "") + i;
529
- default:
530
- return "-webkit-" + i + "-ms-flex-line-pack" + i.replace("align-content", "").replace(ce, "") + i;
531
- }
532
- break;
533
- case 973:
534
- case 989:
535
- if (i.charCodeAt(3) !== 45 || i.charCodeAt(4) === 122)
536
- break;
537
- case 931:
538
- case 953:
539
- if (me.test(S) === !0)
540
- return (p = S.substring(S.indexOf(":") + 1)).charCodeAt(0) === 115 ? a(S.replace("stretch", "fill-available"), w, b, A).replace(":fill-available", ":stretch") : i.replace(p, "-webkit-" + p) + i.replace(p, "-moz-" + p.replace("fill-", "")) + i;
541
- break;
542
- case 962:
543
- if (i = "-webkit-" + i + (i.charCodeAt(5) === 102 ? "-ms-" + i : "") + i, b + A === 211 && i.charCodeAt(13) === 105 && 0 < i.indexOf("transform", 10))
544
- return i.substring(0, i.indexOf(";", 27) + 1).replace(D, "$1-webkit-$2") + i;
545
- }
546
- return i;
547
- }
548
- function c(S, w) {
549
- var b = S.indexOf(w === 1 ? ":" : "{"), A = S.substring(0, w !== 3 ? b : 10);
550
- return b = S.substring(b + 1, S.length - 1), Se(w !== 2 ? A : A.replace(ue, "$1"), b, w);
551
- }
552
- function s(S, w) {
553
- var b = a(w, w.charCodeAt(0), w.charCodeAt(1), w.charCodeAt(2));
554
- return b !== w + ";" ? b.replace(he, " or ($1)").substring(4) : "(" + w + ")";
555
- }
556
- function f(S, w, b, A, i, W, p, U, j, L) {
557
- for (var l = 0, X = w, J; l < se; ++l)
558
- switch (J = le[l].call(v, S, X, b, A, i, W, p, U, j, L)) {
559
- case void 0:
560
- case !1:
561
- case !0:
562
- case null:
563
- break;
564
- default:
565
- X = J;
566
- }
567
- if (X !== w)
568
- return X;
569
- }
570
- function h(S) {
571
- switch (S) {
572
- case void 0:
573
- case null:
574
- se = le.length = 0;
575
- break;
576
- default:
577
- if (typeof S == "function")
578
- le[se++] = S;
579
- else if (typeof S == "object")
580
- for (var w = 0, b = S.length; w < b; ++w)
581
- h(S[w]);
582
- else
583
- ve = !!S | 0;
584
- }
585
- return h;
586
- }
587
- function g(S) {
588
- return S = S.prefix, S !== void 0 && (Se = null, S ? typeof S != "function" ? K = 1 : (K = 2, Se = S) : K = 0), g;
589
- }
590
- function v(S, w) {
591
- var b = S;
592
- if (33 > b.charCodeAt(0) && (b = b.trim()), Ce = b, b = [Ce], 0 < se) {
593
- var A = f(-1, w, b, b, G, ie, 0, 0, 0, 0);
594
- A !== void 0 && typeof A == "string" && (w = A);
595
- }
596
- var i = n(be, b, w, 0, 0);
597
- return 0 < se && (A = f(-2, i, b, b, G, ie, i.length, 0, 0, 0), A !== void 0 && (i = A)), Ce = "", te = 0, ie = G = 1, i;
598
- }
599
- var C = /^\0+/g, P = /[\0\r\f]/g, N = /: */g, E = /zoo|gra/, D = /([,: ])(transform)/g, x = /,\r+?/g, M = /([\t\r\n ])*\f?&/g, y = /@(k\w+)\s*(\S*)\s*/, T = /::(place)/g, _ = /:(read-only)/g, d = /[svh]\w+-[tblr]{2}/, ae = /\(\s*(.*)\s*\)/g, he = /([\s\S]*?);/g, ce = /-self|flex-/g, ue = /[^]*?(:[rp][el]a[\w-]+)[^]*/, me = /stretch|:\s*\w+\-(?:conte|avail)/, we = /([^-])(image-set\()/, ie = 1, G = 1, te = 0, K = 1, be = [], le = [], se = 0, Se = null, ve = 0, Ce = "";
600
- return v.use = h, v.set = g, e !== void 0 && g(e), v;
601
- }
602
- var Ar = {
603
- animationIterationCount: 1,
604
- borderImageOutset: 1,
605
- borderImageSlice: 1,
606
- borderImageWidth: 1,
607
- boxFlex: 1,
608
- boxFlexGroup: 1,
609
- boxOrdinalGroup: 1,
610
- columnCount: 1,
611
- columns: 1,
612
- flex: 1,
613
- flexGrow: 1,
614
- flexPositive: 1,
615
- flexShrink: 1,
616
- flexNegative: 1,
617
- flexOrder: 1,
618
- gridRow: 1,
619
- gridRowEnd: 1,
620
- gridRowSpan: 1,
621
- gridRowStart: 1,
622
- gridColumn: 1,
623
- gridColumnEnd: 1,
624
- gridColumnSpan: 1,
625
- gridColumnStart: 1,
626
- msGridRow: 1,
627
- msGridRowSpan: 1,
628
- msGridColumn: 1,
629
- msGridColumnSpan: 1,
630
- fontWeight: 1,
631
- lineHeight: 1,
632
- opacity: 1,
633
- order: 1,
634
- orphans: 1,
635
- tabSize: 1,
636
- widows: 1,
637
- zIndex: 1,
638
- zoom: 1,
639
- WebkitLineClamp: 1,
640
- fillOpacity: 1,
641
- floodOpacity: 1,
642
- stopOpacity: 1,
643
- strokeDasharray: 1,
644
- strokeDashoffset: 1,
645
- strokeMiterlimit: 1,
646
- strokeOpacity: 1,
647
- strokeWidth: 1
648
- };
649
- function Tr(e) {
650
- var n = /* @__PURE__ */ Object.create(null);
651
- return function(t) {
652
- return n[t] === void 0 && (n[t] = e(t)), n[t];
653
- };
654
- }
655
- var Pr = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Dt = /* @__PURE__ */ Tr(
656
- function(e) {
657
- return Pr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
658
- }
659
- ), vt = qe.exports, Or = {
660
- childContextTypes: !0,
661
- contextType: !0,
662
- contextTypes: !0,
663
- defaultProps: !0,
664
- displayName: !0,
665
- getDefaultProps: !0,
666
- getDerivedStateFromError: !0,
667
- getDerivedStateFromProps: !0,
668
- mixins: !0,
669
- propTypes: !0,
670
- type: !0
671
- }, Ir = {
672
- name: !0,
673
- length: !0,
674
- prototype: !0,
675
- caller: !0,
676
- callee: !0,
677
- arguments: !0,
678
- arity: !0
679
- }, Nr = {
680
- $$typeof: !0,
681
- render: !0,
682
- defaultProps: !0,
683
- displayName: !0,
684
- propTypes: !0
685
- }, Xt = {
686
- $$typeof: !0,
687
- compare: !0,
688
- defaultProps: !0,
689
- displayName: !0,
690
- propTypes: !0,
691
- type: !0
692
- }, gt = {};
693
- gt[vt.ForwardRef] = Nr;
694
- gt[vt.Memo] = Xt;
695
- function Mt(e) {
696
- return vt.isMemo(e) ? Xt : gt[e.$$typeof] || Or;
697
- }
698
- var Dr = Object.defineProperty, Mr = Object.getOwnPropertyNames, jt = Object.getOwnPropertySymbols, jr = Object.getOwnPropertyDescriptor, Wr = Object.getPrototypeOf, Wt = Object.prototype;
699
- function Kt(e, n, t) {
700
- if (typeof n != "string") {
701
- if (Wt) {
702
- var o = Wr(n);
703
- o && o !== Wt && Kt(e, o, t);
704
- }
705
- var a = Mr(n);
706
- jt && (a = a.concat(jt(n)));
707
- for (var c = Mt(e), s = Mt(n), f = 0; f < a.length; ++f) {
708
- var h = a[f];
709
- if (!Ir[h] && !(t && t[h]) && !(s && s[h]) && !(c && c[h])) {
710
- var g = jr(n, h);
711
- try {
712
- Dr(e, h, g);
713
- } catch {
714
- }
715
- }
716
- }
717
- }
718
- return e;
719
- }
720
- var $r = Kt;
721
- function Ae() {
722
- return (Ae = Object.assign || function(e) {
723
- for (var n = 1; n < arguments.length; n++) {
724
- var t = arguments[n];
725
- for (var o in t)
726
- Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
727
- }
728
- return e;
729
- }).apply(this, arguments);
730
- }
731
- var $t = function(e, n) {
732
- for (var t = [e[0]], o = 0, a = n.length; o < a; o += 1)
733
- t.push(n[o], e[o + 1]);
734
- return t;
735
- }, lt = function(e) {
736
- return e !== null && typeof e == "object" && (e.toString ? e.toString() : Object.prototype.toString.call(e)) === "[object Object]" && !qe.exports.typeOf(e);
737
- }, Qe = Object.freeze([]), Ie = Object.freeze({});
738
- function Ge(e) {
739
- return typeof e == "function";
740
- }
741
- function ut(e) {
742
- return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
743
- }
744
- function yt(e) {
745
- return e && typeof e.styledComponentId == "string";
746
- }
747
- var Fe = typeof process < "u" && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", wt = typeof window < "u" && "HTMLElement" in window, Lr = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Fr = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
748
-
749
- `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
750
-
751
- - Are you trying to reuse it across renders?
752
- - Are you accidentally calling collectStyles twice?
753
-
754
- `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
755
-
756
- `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
757
-
758
- - Does this error occur on the client and is your target falsy?
759
- - Does this error occur on the server and is the sheet falsy?
760
-
761
- `, 5: `The clone method cannot be used on the client!
762
-
763
- - Are you running in a client-like environment on the server?
764
- - Are you trying to run SSR on the client?
765
-
766
- `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
767
-
768
- - Are you using a custom target that isn't mounted?
769
- - Does your document not have a valid head element?
770
- - Have you accidentally removed a style tag manually?
771
-
772
- `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
773
-
774
- `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
775
-
776
- `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
777
-
778
- `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
779
-
780
- `, 14: `ThemeProvider: "theme" prop is required.
781
-
782
- `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
783
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
784
- as for instance in your render method then you may be running into this limitation.
785
-
786
- `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
787
- Has styled-components' style tag been unmounted or altered by another script?
788
- ` } : {};
789
- function zr() {
790
- for (var e = arguments.length <= 0 ? void 0 : arguments[0], n = [], t = 1, o = arguments.length; t < o; t += 1)
791
- n.push(t < 0 || arguments.length <= t ? void 0 : arguments[t]);
792
- return n.forEach(function(a) {
793
- e = e.replace(/%[a-z]/, a);
794
- }), e;
795
- }
796
- function Be(e) {
797
- for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
798
- t[o - 1] = arguments[o];
799
- throw process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (t.length > 0 ? " Args: " + t.join(", ") : "")) : new Error(zr.apply(void 0, [Fr[e]].concat(t)).trim());
800
- }
801
- var Yr = function() {
802
- function e(t) {
803
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
804
- }
805
- var n = e.prototype;
806
- return n.indexOfGroup = function(t) {
807
- for (var o = 0, a = 0; a < t; a++)
808
- o += this.groupSizes[a];
809
- return o;
810
- }, n.insertRules = function(t, o) {
811
- if (t >= this.groupSizes.length) {
812
- for (var a = this.groupSizes, c = a.length, s = c; t >= s; )
813
- (s <<= 1) < 0 && Be(16, "" + t);
814
- this.groupSizes = new Uint32Array(s), this.groupSizes.set(a), this.length = s;
815
- for (var f = c; f < s; f++)
816
- this.groupSizes[f] = 0;
817
- }
818
- for (var h = this.indexOfGroup(t + 1), g = 0, v = o.length; g < v; g++)
819
- this.tag.insertRule(h, o[g]) && (this.groupSizes[t]++, h++);
820
- }, n.clearGroup = function(t) {
821
- if (t < this.length) {
822
- var o = this.groupSizes[t], a = this.indexOfGroup(t), c = a + o;
823
- this.groupSizes[t] = 0;
824
- for (var s = a; s < c; s++)
825
- this.tag.deleteRule(a);
826
- }
827
- }, n.getGroup = function(t) {
828
- var o = "";
829
- if (t >= this.length || this.groupSizes[t] === 0)
830
- return o;
831
- for (var a = this.groupSizes[t], c = this.indexOfGroup(t), s = c + a, f = c; f < s; f++)
832
- o += this.tag.getRule(f) + `/*!sc*/
833
- `;
834
- return o;
835
- }, e;
836
- }(), Je = /* @__PURE__ */ new Map(), et = /* @__PURE__ */ new Map(), He = 1, Xe = function(e) {
837
- if (Je.has(e))
838
- return Je.get(e);
839
- for (; et.has(He); )
840
- He++;
841
- var n = He++;
842
- return process.env.NODE_ENV !== "production" && ((0 | n) < 0 || n > 1 << 30) && Be(16, "" + n), Je.set(e, n), et.set(n, e), n;
843
- }, Br = function(e) {
844
- return et.get(e);
845
- }, Vr = function(e, n) {
846
- n >= He && (He = n + 1), Je.set(e, n), et.set(n, e);
847
- }, Ur = "style[" + Fe + '][data-styled-version="5.3.6"]', Hr = new RegExp("^" + Fe + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), Gr = function(e, n, t) {
848
- for (var o, a = t.split(","), c = 0, s = a.length; c < s; c++)
849
- (o = a[c]) && e.registerName(n, o);
850
- }, qr = function(e, n) {
851
- for (var t = (n.textContent || "").split(`/*!sc*/
852
- `), o = [], a = 0, c = t.length; a < c; a++) {
853
- var s = t[a].trim();
854
- if (s) {
855
- var f = s.match(Hr);
856
- if (f) {
857
- var h = 0 | parseInt(f[1], 10), g = f[2];
858
- h !== 0 && (Vr(g, h), Gr(e, g, f[3]), e.getTag().insertRules(h, o)), o.length = 0;
859
- } else
860
- o.push(s);
861
- }
862
- }
863
- }, Xr = function() {
864
- return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
865
- }, Zt = function(e) {
866
- var n = document.head, t = e || n, o = document.createElement("style"), a = function(f) {
867
- for (var h = f.childNodes, g = h.length; g >= 0; g--) {
868
- var v = h[g];
869
- if (v && v.nodeType === 1 && v.hasAttribute(Fe))
870
- return v;
871
- }
872
- }(t), c = a !== void 0 ? a.nextSibling : null;
873
- o.setAttribute(Fe, "active"), o.setAttribute("data-styled-version", "5.3.6");
874
- var s = Xr();
875
- return s && o.setAttribute("nonce", s), t.insertBefore(o, c), o;
876
- }, Kr = function() {
877
- function e(t) {
878
- var o = this.element = Zt(t);
879
- o.appendChild(document.createTextNode("")), this.sheet = function(a) {
880
- if (a.sheet)
881
- return a.sheet;
882
- for (var c = document.styleSheets, s = 0, f = c.length; s < f; s++) {
883
- var h = c[s];
884
- if (h.ownerNode === a)
885
- return h;
886
- }
887
- Be(17);
888
- }(o), this.length = 0;
889
- }
890
- var n = e.prototype;
891
- return n.insertRule = function(t, o) {
892
- try {
893
- return this.sheet.insertRule(o, t), this.length++, !0;
894
- } catch {
895
- return !1;
896
- }
897
- }, n.deleteRule = function(t) {
898
- this.sheet.deleteRule(t), this.length--;
899
- }, n.getRule = function(t) {
900
- var o = this.sheet.cssRules[t];
901
- return o !== void 0 && typeof o.cssText == "string" ? o.cssText : "";
902
- }, e;
903
- }(), Zr = function() {
904
- function e(t) {
905
- var o = this.element = Zt(t);
906
- this.nodes = o.childNodes, this.length = 0;
907
- }
908
- var n = e.prototype;
909
- return n.insertRule = function(t, o) {
910
- if (t <= this.length && t >= 0) {
911
- var a = document.createTextNode(o), c = this.nodes[t];
912
- return this.element.insertBefore(a, c || null), this.length++, !0;
913
- }
914
- return !1;
915
- }, n.deleteRule = function(t) {
916
- this.element.removeChild(this.nodes[t]), this.length--;
917
- }, n.getRule = function(t) {
918
- return t < this.length ? this.nodes[t].textContent : "";
919
- }, e;
920
- }(), Jr = function() {
921
- function e(t) {
922
- this.rules = [], this.length = 0;
923
- }
924
- var n = e.prototype;
925
- return n.insertRule = function(t, o) {
926
- return t <= this.length && (this.rules.splice(t, 0, o), this.length++, !0);
927
- }, n.deleteRule = function(t) {
928
- this.rules.splice(t, 1), this.length--;
929
- }, n.getRule = function(t) {
930
- return t < this.length ? this.rules[t] : "";
931
- }, e;
932
- }(), Lt = wt, Qr = { isServer: !wt, useCSSOMInjection: !Lr }, Jt = function() {
933
- function e(t, o, a) {
934
- t === void 0 && (t = Ie), o === void 0 && (o = {}), this.options = Ae({}, Qr, {}, t), this.gs = o, this.names = new Map(a), this.server = !!t.isServer, !this.server && wt && Lt && (Lt = !1, function(c) {
935
- for (var s = document.querySelectorAll(Ur), f = 0, h = s.length; f < h; f++) {
936
- var g = s[f];
937
- g && g.getAttribute(Fe) !== "active" && (qr(c, g), g.parentNode && g.parentNode.removeChild(g));
938
- }
939
- }(this));
940
- }
941
- e.registerId = function(t) {
942
- return Xe(t);
943
- };
944
- var n = e.prototype;
945
- return n.reconstructWithOptions = function(t, o) {
946
- return o === void 0 && (o = !0), new e(Ae({}, this.options, {}, t), this.gs, o && this.names || void 0);
947
- }, n.allocateGSInstance = function(t) {
948
- return this.gs[t] = (this.gs[t] || 0) + 1;
949
- }, n.getTag = function() {
950
- return this.tag || (this.tag = (a = (o = this.options).isServer, c = o.useCSSOMInjection, s = o.target, t = a ? new Jr(s) : c ? new Kr(s) : new Zr(s), new Yr(t)));
951
- var t, o, a, c, s;
952
- }, n.hasNameForId = function(t, o) {
953
- return this.names.has(t) && this.names.get(t).has(o);
954
- }, n.registerName = function(t, o) {
955
- if (Xe(t), this.names.has(t))
956
- this.names.get(t).add(o);
957
- else {
958
- var a = /* @__PURE__ */ new Set();
959
- a.add(o), this.names.set(t, a);
960
- }
961
- }, n.insertRules = function(t, o, a) {
962
- this.registerName(t, o), this.getTag().insertRules(Xe(t), a);
963
- }, n.clearNames = function(t) {
964
- this.names.has(t) && this.names.get(t).clear();
965
- }, n.clearRules = function(t) {
966
- this.getTag().clearGroup(Xe(t)), this.clearNames(t);
967
- }, n.clearTag = function() {
968
- this.tag = void 0;
969
- }, n.toString = function() {
970
- return function(t) {
971
- for (var o = t.getTag(), a = o.length, c = "", s = 0; s < a; s++) {
972
- var f = Br(s);
973
- if (f !== void 0) {
974
- var h = t.names.get(f), g = o.getGroup(s);
975
- if (h && g && h.size) {
976
- var v = Fe + ".g" + s + '[id="' + f + '"]', C = "";
977
- h !== void 0 && h.forEach(function(P) {
978
- P.length > 0 && (C += P + ",");
979
- }), c += "" + g + v + '{content:"' + C + `"}/*!sc*/
980
- `;
981
- }
982
- }
983
- }
984
- return c;
985
- }(this);
986
- }, e;
987
- }(), en = /(a)(d)/gi, Ft = function(e) {
988
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
989
- };
990
- function dt(e) {
991
- var n, t = "";
992
- for (n = Math.abs(e); n > 52; n = n / 52 | 0)
993
- t = Ft(n % 52) + t;
994
- return (Ft(n % 52) + t).replace(en, "$1-$2");
995
- }
996
- var Ne = function(e, n) {
997
- for (var t = n.length; t; )
998
- e = 33 * e ^ n.charCodeAt(--t);
999
- return e;
1000
- }, Qt = function(e) {
1001
- return Ne(5381, e);
1002
- };
1003
- function tn(e) {
1004
- for (var n = 0; n < e.length; n += 1) {
1005
- var t = e[n];
1006
- if (Ge(t) && !yt(t))
1007
- return !1;
1008
- }
1009
- return !0;
1010
- }
1011
- var rn = Qt("5.3.6"), nn = function() {
1012
- function e(n, t, o) {
1013
- this.rules = n, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && tn(n), this.componentId = t, this.baseHash = Ne(rn, t), this.baseStyle = o, Jt.registerId(t);
1014
- }
1015
- return e.prototype.generateAndInjectStyles = function(n, t, o) {
1016
- var a = this.componentId, c = [];
1017
- if (this.baseStyle && c.push(this.baseStyle.generateAndInjectStyles(n, t, o)), this.isStatic && !o.hash)
1018
- if (this.staticRulesId && t.hasNameForId(a, this.staticRulesId))
1019
- c.push(this.staticRulesId);
1020
- else {
1021
- var s = ze(this.rules, n, t, o).join(""), f = dt(Ne(this.baseHash, s) >>> 0);
1022
- if (!t.hasNameForId(a, f)) {
1023
- var h = o(s, "." + f, void 0, a);
1024
- t.insertRules(a, f, h);
1025
- }
1026
- c.push(f), this.staticRulesId = f;
1027
- }
1028
- else {
1029
- for (var g = this.rules.length, v = Ne(this.baseHash, o.hash), C = "", P = 0; P < g; P++) {
1030
- var N = this.rules[P];
1031
- if (typeof N == "string")
1032
- C += N, process.env.NODE_ENV !== "production" && (v = Ne(v, N + P));
1033
- else if (N) {
1034
- var E = ze(N, n, t, o), D = Array.isArray(E) ? E.join("") : E;
1035
- v = Ne(v, D + P), C += D;
1036
- }
1037
- }
1038
- if (C) {
1039
- var x = dt(v >>> 0);
1040
- if (!t.hasNameForId(a, x)) {
1041
- var M = o(C, "." + x, void 0, a);
1042
- t.insertRules(a, x, M);
1043
- }
1044
- c.push(x);
1045
- }
1046
- }
1047
- return c.join(" ");
1048
- }, e;
1049
- }(), on = /^\s*\/\/.*$/gm, an = [":", "[", ".", "#"];
1050
- function sn(e) {
1051
- var n, t, o, a, c = e === void 0 ? Ie : e, s = c.options, f = s === void 0 ? Ie : s, h = c.plugins, g = h === void 0 ? Qe : h, v = new kr(f), C = [], P = function(D) {
1052
- function x(M) {
1053
- if (M)
1054
- try {
1055
- D(M + "}");
1056
- } catch {
1057
- }
1058
- }
1059
- return function(M, y, T, _, d, ae, he, ce, ue, me) {
1060
- switch (M) {
1061
- case 1:
1062
- if (ue === 0 && y.charCodeAt(0) === 64)
1063
- return D(y + ";"), "";
1064
- break;
1065
- case 2:
1066
- if (ce === 0)
1067
- return y + "/*|*/";
1068
- break;
1069
- case 3:
1070
- switch (ce) {
1071
- case 102:
1072
- case 112:
1073
- return D(T[0] + y), "";
1074
- default:
1075
- return y + (me === 0 ? "/*|*/" : "");
1076
- }
1077
- case -2:
1078
- y.split("/*|*/}").forEach(x);
1079
- }
1080
- };
1081
- }(function(D) {
1082
- C.push(D);
1083
- }), N = function(D, x, M) {
1084
- return x === 0 && an.indexOf(M[t.length]) !== -1 || M.match(a) ? D : "." + n;
1085
- };
1086
- function E(D, x, M, y) {
1087
- y === void 0 && (y = "&");
1088
- var T = D.replace(on, ""), _ = x && M ? M + " " + x + " { " + T + " }" : T;
1089
- return n = y, t = x, o = new RegExp("\\" + t + "\\b", "g"), a = new RegExp("(\\" + t + "\\b){2,}"), v(M || !x ? "" : x, _);
1090
- }
1091
- return v.use([].concat(g, [function(D, x, M) {
1092
- D === 2 && M.length && M[0].lastIndexOf(t) > 0 && (M[0] = M[0].replace(o, N));
1093
- }, P, function(D) {
1094
- if (D === -2) {
1095
- var x = C;
1096
- return C = [], x;
1097
- }
1098
- }])), E.hash = g.length ? g.reduce(function(D, x) {
1099
- return x.name || Be(15), Ne(D, x.name);
1100
- }, 5381).toString() : "", E;
1101
- }
1102
- var er = Ye.createContext();
1103
- er.Consumer;
1104
- var tr = Ye.createContext(), cn = (tr.Consumer, new Jt()), ft = sn();
1105
- function ln() {
1106
- return ye(er) || cn;
1107
- }
1108
- function un() {
1109
- return ye(tr) || ft;
1110
- }
1111
- var dn = function() {
1112
- function e(n, t) {
1113
- var o = this;
1114
- this.inject = function(a, c) {
1115
- c === void 0 && (c = ft);
1116
- var s = o.name + c.hash;
1117
- a.hasNameForId(o.id, s) || a.insertRules(o.id, s, c(o.rules, s, "@keyframes"));
1118
- }, this.toString = function() {
1119
- return Be(12, String(o.name));
1120
- }, this.name = n, this.id = "sc-keyframes-" + n, this.rules = t;
1121
- }
1122
- return e.prototype.getName = function(n) {
1123
- return n === void 0 && (n = ft), this.name + n.hash;
1124
- }, e;
1125
- }(), fn = /([A-Z])/, pn = /([A-Z])/g, hn = /^ms-/, mn = function(e) {
1126
- return "-" + e.toLowerCase();
1127
- };
1128
- function zt(e) {
1129
- return fn.test(e) ? e.replace(pn, mn).replace(hn, "-ms-") : e;
1130
- }
1131
- var Yt = function(e) {
1132
- return e == null || e === !1 || e === "";
1133
- };
1134
- function ze(e, n, t, o) {
1135
- if (Array.isArray(e)) {
1136
- for (var a, c = [], s = 0, f = e.length; s < f; s += 1)
1137
- (a = ze(e[s], n, t, o)) !== "" && (Array.isArray(a) ? c.push.apply(c, a) : c.push(a));
1138
- return c;
1139
- }
1140
- if (Yt(e))
1141
- return "";
1142
- if (yt(e))
1143
- return "." + e.styledComponentId;
1144
- if (Ge(e)) {
1145
- if (typeof (g = e) != "function" || g.prototype && g.prototype.isReactComponent || !n)
1146
- return e;
1147
- var h = e(n);
1148
- return process.env.NODE_ENV !== "production" && qe.exports.isElement(h) && console.warn(ut(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), ze(h, n, t, o);
1149
- }
1150
- var g;
1151
- return e instanceof dn ? t ? (e.inject(t, o), e.getName(o)) : e : lt(e) ? function v(C, P) {
1152
- var N, E, D = [];
1153
- for (var x in C)
1154
- C.hasOwnProperty(x) && !Yt(C[x]) && (Array.isArray(C[x]) && C[x].isCss || Ge(C[x]) ? D.push(zt(x) + ":", C[x], ";") : lt(C[x]) ? D.push.apply(D, v(C[x], x)) : D.push(zt(x) + ": " + (N = x, (E = C[x]) == null || typeof E == "boolean" || E === "" ? "" : typeof E != "number" || E === 0 || N in Ar ? String(E).trim() : E + "px") + ";"));
1155
- return P ? [P + " {"].concat(D, ["}"]) : D;
1156
- }(e) : e.toString();
1157
- }
1158
- var Bt = function(e) {
1159
- return Array.isArray(e) && (e.isCss = !0), e;
1160
- };
1161
- function vn(e) {
1162
- for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
1163
- t[o - 1] = arguments[o];
1164
- return Ge(e) || lt(e) ? Bt(ze($t(Qe, [e].concat(t)))) : t.length === 0 && e.length === 1 && typeof e[0] == "string" ? e : Bt(ze($t(e, t)));
1165
- }
1166
- var Vt = /invalid hook call/i, Ke = /* @__PURE__ */ new Set(), gn = function(e, n) {
1167
- if (process.env.NODE_ENV !== "production") {
1168
- var t = "The component " + e + (n ? ' with the id of "' + n + '"' : "") + ` has been created dynamically.
1169
- You may see this warning because you've called styled inside another component.
1170
- To resolve this only create new StyledComponents outside of any render method and function component.`, o = console.error;
1171
- try {
1172
- var a = !0;
1173
- console.error = function(c) {
1174
- if (Vt.test(c))
1175
- a = !1, Ke.delete(t);
1176
- else {
1177
- for (var s = arguments.length, f = new Array(s > 1 ? s - 1 : 0), h = 1; h < s; h++)
1178
- f[h - 1] = arguments[h];
1179
- o.apply(void 0, [c].concat(f));
1180
- }
1181
- }, Sr(), a && !Ke.has(t) && (console.warn(t), Ke.add(t));
1182
- } catch (c) {
1183
- Vt.test(c.message) && Ke.delete(t);
1184
- } finally {
1185
- console.error = o;
1186
- }
1187
- }
1188
- }, yn = function(e, n, t) {
1189
- return t === void 0 && (t = Ie), e.theme !== t.theme && e.theme || n || t.theme;
1190
- }, wn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, bn = /(^-|-$)/g;
1191
- function it(e) {
1192
- return e.replace(wn, "-").replace(bn, "");
1193
- }
1194
- var Sn = function(e) {
1195
- return dt(Qt(e) >>> 0);
1196
- };
1197
- function Ze(e) {
1198
- return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1199
- }
1200
- var pt = function(e) {
1201
- return typeof e == "function" || typeof e == "object" && e !== null && !Array.isArray(e);
1202
- }, Cn = function(e) {
1203
- return e !== "__proto__" && e !== "constructor" && e !== "prototype";
1204
- };
1205
- function En(e, n, t) {
1206
- var o = e[t];
1207
- pt(n) && pt(o) ? rr(o, n) : e[t] = n;
1208
- }
1209
- function rr(e) {
1210
- for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
1211
- t[o - 1] = arguments[o];
1212
- for (var a = 0, c = t; a < c.length; a++) {
1213
- var s = c[a];
1214
- if (pt(s))
1215
- for (var f in s)
1216
- Cn(f) && En(e, s[f], f);
1217
- }
1218
- return e;
1219
- }
1220
- var nr = Ye.createContext();
1221
- nr.Consumer;
1222
- var st = {};
1223
- function or(e, n, t) {
1224
- var o = yt(e), a = !Ze(e), c = n.attrs, s = c === void 0 ? Qe : c, f = n.componentId, h = f === void 0 ? function(y, T) {
1225
- var _ = typeof y != "string" ? "sc" : it(y);
1226
- st[_] = (st[_] || 0) + 1;
1227
- var d = _ + "-" + Sn("5.3.6" + _ + st[_]);
1228
- return T ? T + "-" + d : d;
1229
- }(n.displayName, n.parentComponentId) : f, g = n.displayName, v = g === void 0 ? function(y) {
1230
- return Ze(y) ? "styled." + y : "Styled(" + ut(y) + ")";
1231
- }(e) : g, C = n.displayName && n.componentId ? it(n.displayName) + "-" + n.componentId : n.componentId || h, P = o && e.attrs ? Array.prototype.concat(e.attrs, s).filter(Boolean) : s, N = n.shouldForwardProp;
1232
- o && e.shouldForwardProp && (N = n.shouldForwardProp ? function(y, T, _) {
1233
- return e.shouldForwardProp(y, T, _) && n.shouldForwardProp(y, T, _);
1234
- } : e.shouldForwardProp);
1235
- var E, D = new nn(t, C, o ? e.componentStyle : void 0), x = D.isStatic && s.length === 0, M = function(y, T) {
1236
- return function(_, d, ae, he) {
1237
- var ce = _.attrs, ue = _.componentStyle, me = _.defaultProps, we = _.foldedComponentIds, ie = _.shouldForwardProp, G = _.styledComponentId, te = _.target;
1238
- process.env.NODE_ENV !== "production" && Ot(G);
1239
- var K = function(A, i, W) {
1240
- A === void 0 && (A = Ie);
1241
- var p = Ae({}, i, { theme: A }), U = {};
1242
- return W.forEach(function(j) {
1243
- var L, l, X, J = j;
1244
- for (L in Ge(J) && (J = J(p)), J)
1245
- p[L] = U[L] = L === "className" ? (l = U[L], X = J[L], l && X ? l + " " + X : l || X) : J[L];
1246
- }), [p, U];
1247
- }(yn(d, ye(nr), me) || Ie, d, ce), be = K[0], le = K[1], se = function(A, i, W, p) {
1248
- var U = ln(), j = un(), L = i ? A.generateAndInjectStyles(Ie, U, j) : A.generateAndInjectStyles(W, U, j);
1249
- return process.env.NODE_ENV !== "production" && Ot(L), process.env.NODE_ENV !== "production" && !i && p && p(L), L;
1250
- }(ue, he, be, process.env.NODE_ENV !== "production" ? _.warnTooManyClasses : void 0), Se = ae, ve = le.$as || d.$as || le.as || d.as || te, Ce = Ze(ve), S = le !== d ? Ae({}, d, {}, le) : d, w = {};
1251
- for (var b in S)
1252
- b[0] !== "$" && b !== "as" && (b === "forwardedAs" ? w.as = S[b] : (ie ? ie(b, Dt, ve) : !Ce || Dt(b)) && (w[b] = S[b]));
1253
- return d.style && le.style !== d.style && (w.style = Ae({}, d.style, {}, le.style)), w.className = Array.prototype.concat(we, G, se !== G ? se : null, d.className, le.className).filter(Boolean).join(" "), w.ref = Se, Cr(ve, w);
1254
- }(E, y, T, x);
1255
- };
1256
- return M.displayName = v, (E = Ye.forwardRef(M)).attrs = P, E.componentStyle = D, E.displayName = v, E.shouldForwardProp = N, E.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : Qe, E.styledComponentId = C, E.target = o ? e.target : e, E.withComponent = function(y) {
1257
- var T = n.componentId, _ = function(ae, he) {
1258
- if (ae == null)
1259
- return {};
1260
- var ce, ue, me = {}, we = Object.keys(ae);
1261
- for (ue = 0; ue < we.length; ue++)
1262
- ce = we[ue], he.indexOf(ce) >= 0 || (me[ce] = ae[ce]);
1263
- return me;
1264
- }(n, ["componentId"]), d = T && T + "-" + (Ze(y) ? y : it(ut(y)));
1265
- return or(y, Ae({}, _, { attrs: P, componentId: d }), t);
1266
- }, Object.defineProperty(E, "defaultProps", { get: function() {
1267
- return this._foldedDefaultProps;
1268
- }, set: function(y) {
1269
- this._foldedDefaultProps = o ? rr({}, e.defaultProps, y) : y;
1270
- } }), process.env.NODE_ENV !== "production" && (gn(v, C), E.warnTooManyClasses = function(y, T) {
1271
- var _ = {}, d = !1;
1272
- return function(ae) {
1273
- if (!d && (_[ae] = !0, Object.keys(_).length >= 200)) {
1274
- var he = T ? ' with the id of "' + T + '"' : "";
1275
- console.warn("Over 200 classes were generated for component " + y + he + `.
1276
- Consider using the attrs method, together with a style object for frequently changed styles.
1277
- Example:
1278
- const Component = styled.div.attrs(props => ({
1279
- style: {
1280
- background: props.background,
1281
- },
1282
- }))\`width: 100%;\`
1283
-
1284
- <Component />`), d = !0, _ = {};
1285
- }
1286
- };
1287
- }(v, C)), E.toString = function() {
1288
- return "." + E.styledComponentId;
1289
- }, a && $r(E, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0, withComponent: !0 }), E;
1290
- }
1291
- var ht = function(e) {
1292
- return function n(t, o, a) {
1293
- if (a === void 0 && (a = Ie), !qe.exports.isValidElementType(o))
1294
- return Be(1, String(o));
1295
- var c = function() {
1296
- return t(o, a, vn.apply(void 0, arguments));
1297
- };
1298
- return c.withConfig = function(s) {
1299
- return n(t, o, Ae({}, a, {}, s));
1300
- }, c.attrs = function(s) {
1301
- return n(t, o, Ae({}, a, { attrs: Array.prototype.concat(a.attrs, s).filter(Boolean) }));
1302
- }, c;
1303
- }(or, e);
1304
- };
1305
- ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function(e) {
1306
- ht[e] = ht(e);
1307
- });
1308
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1309
- Perhaps you're looking to import 'styled-components/native'?
1310
- Read more about this at https://www.styled-components.com/docs/basics#react-native`), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, window["__styled-components-init__"] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1311
-
1312
- See https://s-c.sh/2BAXzed for more info.`), window["__styled-components-init__"] += 1);
1313
- const fe = ht, De = {
1314
- walletName: "",
1315
- walletInstance: {}
1316
- }, _n = () => {
1317
- const [e, n] = Z(void 0), [t, o] = Z(!1), [a, c] = Z(De.walletInstance), [s, f] = Z(De.walletName), h = ct(async (v) => {
1318
- o(!0);
1319
- try {
1320
- const C = await qt.enable(v);
1321
- c(C), f(v), n(void 0);
1322
- } catch (C) {
1323
- n(C), console.error(C);
1324
- }
1325
- o(!1);
1326
- }, []), g = ct(() => {
1327
- f(De.walletName), c(De.walletInstance);
1328
- }, []);
1329
- return {
1330
- hasConnectedWallet: De.walletName !== s,
1331
- connectedWalletInstance: a,
1332
- connectedWalletName: s,
1333
- connectingWallet: t,
1334
- connectWallet: h,
1335
- disconnect: g,
1336
- error: e
1337
- };
1338
- }, Oe = Er({
1339
- hasConnectedWallet: !1,
1340
- connectedWalletInstance: De.walletInstance,
1341
- connectedWalletName: De.walletName,
1342
- connectingWallet: !1
1343
- });
1344
- var tt = { exports: {} }, Ve = {};
1345
- /**
1346
- * @license React
1347
- * react-jsx-runtime.production.min.js
1348
- *
1349
- * Copyright (c) Facebook, Inc. and its affiliates.
1350
- *
1351
- * This source code is licensed under the MIT license found in the
1352
- * LICENSE file in the root directory of this source tree.
1353
- */
1354
- var Ut;
1355
- function xn() {
1356
- if (Ut)
1357
- return Ve;
1358
- Ut = 1;
1359
- var e = Ye, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
1360
- function s(f, h, g) {
1361
- var v, C = {}, P = null, N = null;
1362
- g !== void 0 && (P = "" + g), h.key !== void 0 && (P = "" + h.key), h.ref !== void 0 && (N = h.ref);
1363
- for (v in h)
1364
- o.call(h, v) && !c.hasOwnProperty(v) && (C[v] = h[v]);
1365
- if (f && f.defaultProps)
1366
- for (v in h = f.defaultProps, h)
1367
- C[v] === void 0 && (C[v] = h[v]);
1368
- return { $$typeof: n, type: f, key: P, ref: N, props: C, _owner: a.current };
1369
- }
1370
- return Ve.Fragment = t, Ve.jsx = s, Ve.jsxs = s, Ve;
1371
- }
1372
- var Ue = {};
1373
- /**
1374
- * @license React
1375
- * react-jsx-runtime.development.js
1376
- *
1377
- * Copyright (c) Facebook, Inc. and its affiliates.
1378
- *
1379
- * This source code is licensed under the MIT license found in the
1380
- * LICENSE file in the root directory of this source tree.
1381
- */
1382
- var Ht;
1383
- function Rn() {
1384
- return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
1385
- var e = Ye, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), E = Symbol.iterator, D = "@@iterator";
1386
- function x(r) {
1387
- if (r === null || typeof r != "object")
1388
- return null;
1389
- var u = E && r[E] || r[D];
1390
- return typeof u == "function" ? u : null;
1391
- }
1392
- var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1393
- function y(r) {
1394
- {
1395
- for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
1396
- m[k - 1] = arguments[k];
1397
- T("error", r, m);
1398
- }
1399
- }
1400
- function T(r, u, m) {
1401
- {
1402
- var k = M.ReactDebugCurrentFrame, Y = k.getStackAddendum();
1403
- Y !== "" && (u += "%s", m = m.concat([Y]));
1404
- var H = m.map(function(F) {
1405
- return String(F);
1406
- });
1407
- H.unshift("Warning: " + u), Function.prototype.apply.call(console[r], console, H);
1408
- }
1409
- }
1410
- var _ = !1, d = !1, ae = !1, he = !1, ce = !1, ue;
1411
- ue = Symbol.for("react.module.reference");
1412
- function me(r) {
1413
- return !!(typeof r == "string" || typeof r == "function" || r === o || r === c || ce || r === a || r === g || r === v || he || r === N || _ || d || ae || typeof r == "object" && r !== null && (r.$$typeof === P || r.$$typeof === C || r.$$typeof === s || r.$$typeof === f || r.$$typeof === h || r.$$typeof === ue || r.getModuleId !== void 0));
1414
- }
1415
- function we(r, u, m) {
1416
- var k = r.displayName;
1417
- if (k)
1418
- return k;
1419
- var Y = u.displayName || u.name || "";
1420
- return Y !== "" ? m + "(" + Y + ")" : m;
1421
- }
1422
- function ie(r) {
1423
- return r.displayName || "Context";
1424
- }
1425
- function G(r) {
1426
- if (r == null)
1427
- return null;
1428
- if (typeof r.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
1429
- return r.displayName || r.name || null;
1430
- if (typeof r == "string")
1431
- return r;
1432
- switch (r) {
1433
- case o:
1434
- return "Fragment";
1435
- case t:
1436
- return "Portal";
1437
- case c:
1438
- return "Profiler";
1439
- case a:
1440
- return "StrictMode";
1441
- case g:
1442
- return "Suspense";
1443
- case v:
1444
- return "SuspenseList";
1445
- }
1446
- if (typeof r == "object")
1447
- switch (r.$$typeof) {
1448
- case f:
1449
- var u = r;
1450
- return ie(u) + ".Consumer";
1451
- case s:
1452
- var m = r;
1453
- return ie(m._context) + ".Provider";
1454
- case h:
1455
- return we(r, r.render, "ForwardRef");
1456
- case C:
1457
- var k = r.displayName || null;
1458
- return k !== null ? k : G(r.type) || "Memo";
1459
- case P: {
1460
- var Y = r, H = Y._payload, F = Y._init;
1461
- try {
1462
- return G(F(H));
1463
- } catch {
1464
- return null;
1465
- }
1466
- }
1467
- }
1468
- return null;
1469
- }
1470
- var te = Object.assign, K = 0, be, le, se, Se, ve, Ce, S;
1471
- function w() {
1472
- }
1473
- w.__reactDisabledLog = !0;
1474
- function b() {
1475
- {
1476
- if (K === 0) {
1477
- be = console.log, le = console.info, se = console.warn, Se = console.error, ve = console.group, Ce = console.groupCollapsed, S = console.groupEnd;
1478
- var r = {
1479
- configurable: !0,
1480
- enumerable: !0,
1481
- value: w,
1482
- writable: !0
1483
- };
1484
- Object.defineProperties(console, {
1485
- info: r,
1486
- log: r,
1487
- warn: r,
1488
- error: r,
1489
- group: r,
1490
- groupCollapsed: r,
1491
- groupEnd: r
1492
- });
1493
- }
1494
- K++;
1495
- }
1496
- }
1497
- function A() {
1498
- {
1499
- if (K--, K === 0) {
1500
- var r = {
1501
- configurable: !0,
1502
- enumerable: !0,
1503
- writable: !0
1504
- };
1505
- Object.defineProperties(console, {
1506
- log: te({}, r, {
1507
- value: be
1508
- }),
1509
- info: te({}, r, {
1510
- value: le
1511
- }),
1512
- warn: te({}, r, {
1513
- value: se
1514
- }),
1515
- error: te({}, r, {
1516
- value: Se
1517
- }),
1518
- group: te({}, r, {
1519
- value: ve
1520
- }),
1521
- groupCollapsed: te({}, r, {
1522
- value: Ce
1523
- }),
1524
- groupEnd: te({}, r, {
1525
- value: S
1526
- })
1527
- });
1528
- }
1529
- K < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1530
- }
1531
- }
1532
- var i = M.ReactCurrentDispatcher, W;
1533
- function p(r, u, m) {
1534
- {
1535
- if (W === void 0)
1536
- try {
1537
- throw Error();
1538
- } catch (Y) {
1539
- var k = Y.stack.trim().match(/\n( *(at )?)/);
1540
- W = k && k[1] || "";
1541
- }
1542
- return `
1543
- ` + W + r;
1544
- }
1545
- }
1546
- var U = !1, j;
1547
- {
1548
- var L = typeof WeakMap == "function" ? WeakMap : Map;
1549
- j = new L();
1550
- }
1551
- function l(r, u) {
1552
- if (!r || U)
1553
- return "";
1554
- {
1555
- var m = j.get(r);
1556
- if (m !== void 0)
1557
- return m;
1558
- }
1559
- var k;
1560
- U = !0;
1561
- var Y = Error.prepareStackTrace;
1562
- Error.prepareStackTrace = void 0;
1563
- var H;
1564
- H = i.current, i.current = null, b();
1565
- try {
1566
- if (u) {
1567
- var F = function() {
1568
- throw Error();
1569
- };
1570
- if (Object.defineProperty(F.prototype, "props", {
1571
- set: function() {
1572
- throw Error();
1573
- }
1574
- }), typeof Reflect == "object" && Reflect.construct) {
1575
- try {
1576
- Reflect.construct(F, []);
1577
- } catch (ke) {
1578
- k = ke;
1579
- }
1580
- Reflect.construct(r, [], F);
1581
- } else {
1582
- try {
1583
- F.call();
1584
- } catch (ke) {
1585
- k = ke;
1586
- }
1587
- r.call(F.prototype);
1588
- }
1589
- } else {
1590
- try {
1591
- throw Error();
1592
- } catch (ke) {
1593
- k = ke;
1594
- }
1595
- r();
1596
- }
1597
- } catch (ke) {
1598
- if (ke && k && typeof ke.stack == "string") {
1599
- for (var $ = ke.stack.split(`
1600
- `), de = k.stack.split(`
1601
- `), ee = $.length - 1, ne = de.length - 1; ee >= 1 && ne >= 0 && $[ee] !== de[ne]; )
1602
- ne--;
1603
- for (; ee >= 1 && ne >= 0; ee--, ne--)
1604
- if ($[ee] !== de[ne]) {
1605
- if (ee !== 1 || ne !== 1)
1606
- do
1607
- if (ee--, ne--, ne < 0 || $[ee] !== de[ne]) {
1608
- var ge = `
1609
- ` + $[ee].replace(" at new ", " at ");
1610
- return r.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", r.displayName)), typeof r == "function" && j.set(r, ge), ge;
1611
- }
1612
- while (ee >= 1 && ne >= 0);
1613
- break;
1614
- }
1615
- }
1616
- } finally {
1617
- U = !1, i.current = H, A(), Error.prepareStackTrace = Y;
1618
- }
1619
- var Le = r ? r.displayName || r.name : "", Pt = Le ? p(Le) : "";
1620
- return typeof r == "function" && j.set(r, Pt), Pt;
1621
- }
1622
- function X(r, u, m) {
1623
- return l(r, !1);
1624
- }
1625
- function J(r) {
1626
- var u = r.prototype;
1627
- return !!(u && u.isReactComponent);
1628
- }
1629
- function O(r, u, m) {
1630
- if (r == null)
1631
- return "";
1632
- if (typeof r == "function")
1633
- return l(r, J(r));
1634
- if (typeof r == "string")
1635
- return p(r);
1636
- switch (r) {
1637
- case g:
1638
- return p("Suspense");
1639
- case v:
1640
- return p("SuspenseList");
1641
- }
1642
- if (typeof r == "object")
1643
- switch (r.$$typeof) {
1644
- case h:
1645
- return X(r.render);
1646
- case C:
1647
- return O(r.type, u, m);
1648
- case P: {
1649
- var k = r, Y = k._payload, H = k._init;
1650
- try {
1651
- return O(H(Y), u, m);
1652
- } catch {
1653
- }
1654
- }
1655
- }
1656
- return "";
1657
- }
1658
- var Q = Object.prototype.hasOwnProperty, z = {}, re = M.ReactDebugCurrentFrame;
1659
- function Ee(r) {
1660
- if (r) {
1661
- var u = r._owner, m = O(r.type, r._source, u ? u.type : null);
1662
- re.setExtraStackFrame(m);
1663
- } else
1664
- re.setExtraStackFrame(null);
1665
- }
1666
- function oe(r, u, m, k, Y) {
1667
- {
1668
- var H = Function.call.bind(Q);
1669
- for (var F in r)
1670
- if (H(r, F)) {
1671
- var $ = void 0;
1672
- try {
1673
- if (typeof r[F] != "function") {
1674
- var de = Error((k || "React class") + ": " + m + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1675
- throw de.name = "Invariant Violation", de;
1676
- }
1677
- $ = r[F](u, F, k, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1678
- } catch (ee) {
1679
- $ = ee;
1680
- }
1681
- $ && !($ instanceof Error) && (Ee(Y), 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).", k || "React class", m, F, typeof $), Ee(null)), $ instanceof Error && !($.message in z) && (z[$.message] = !0, Ee(Y), y("Failed %s type: %s", m, $.message), Ee(null));
1682
- }
1683
- }
1684
- }
1685
- var je = Array.isArray;
1686
- function xe(r) {
1687
- return je(r);
1688
- }
1689
- function pe(r) {
1690
- {
1691
- var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && r[Symbol.toStringTag] || r.constructor.name || "Object";
1692
- return m;
1693
- }
1694
- }
1695
- function R(r) {
1696
- try {
1697
- return q(r), !1;
1698
- } catch {
1699
- return !0;
1700
- }
1701
- }
1702
- function q(r) {
1703
- return "" + r;
1704
- }
1705
- function We(r) {
1706
- if (R(r))
1707
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pe(r)), q(r);
1708
- }
1709
- var Re = M.ReactCurrentOwner, _e = {
1710
- key: !0,
1711
- ref: !0,
1712
- __self: !0,
1713
- __source: !0
1714
- }, Ct, Et, rt;
1715
- rt = {};
1716
- function ir(r) {
1717
- if (Q.call(r, "ref")) {
1718
- var u = Object.getOwnPropertyDescriptor(r, "ref").get;
1719
- if (u && u.isReactWarning)
1720
- return !1;
1721
- }
1722
- return r.ref !== void 0;
1723
- }
1724
- function sr(r) {
1725
- if (Q.call(r, "key")) {
1726
- var u = Object.getOwnPropertyDescriptor(r, "key").get;
1727
- if (u && u.isReactWarning)
1728
- return !1;
1729
- }
1730
- return r.key !== void 0;
1731
- }
1732
- function cr(r, u) {
1733
- if (typeof r.ref == "string" && Re.current && u && Re.current.stateNode !== u) {
1734
- var m = G(Re.current.type);
1735
- rt[m] || (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', G(Re.current.type), r.ref), rt[m] = !0);
1736
- }
1737
- }
1738
- function lr(r, u) {
1739
- {
1740
- var m = function() {
1741
- Ct || (Ct = !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)", u));
1742
- };
1743
- m.isReactWarning = !0, Object.defineProperty(r, "key", {
1744
- get: m,
1745
- configurable: !0
1746
- });
1747
- }
1748
- }
1749
- function ur(r, u) {
1750
- {
1751
- var m = function() {
1752
- Et || (Et = !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)", u));
1753
- };
1754
- m.isReactWarning = !0, Object.defineProperty(r, "ref", {
1755
- get: m,
1756
- configurable: !0
1757
- });
1758
- }
1759
- }
1760
- var dr = function(r, u, m, k, Y, H, F) {
1761
- var $ = {
1762
- $$typeof: n,
1763
- type: r,
1764
- key: u,
1765
- ref: m,
1766
- props: F,
1767
- _owner: H
1768
- };
1769
- return $._store = {}, Object.defineProperty($._store, "validated", {
1770
- configurable: !1,
1771
- enumerable: !1,
1772
- writable: !0,
1773
- value: !1
1774
- }), Object.defineProperty($, "_self", {
1775
- configurable: !1,
1776
- enumerable: !1,
1777
- writable: !1,
1778
- value: k
1779
- }), Object.defineProperty($, "_source", {
1780
- configurable: !1,
1781
- enumerable: !1,
1782
- writable: !1,
1783
- value: Y
1784
- }), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
1785
- };
1786
- function fr(r, u, m, k, Y) {
1787
- {
1788
- var H, F = {}, $ = null, de = null;
1789
- m !== void 0 && (We(m), $ = "" + m), sr(u) && (We(u.key), $ = "" + u.key), ir(u) && (de = u.ref, cr(u, Y));
1790
- for (H in u)
1791
- Q.call(u, H) && !_e.hasOwnProperty(H) && (F[H] = u[H]);
1792
- if (r && r.defaultProps) {
1793
- var ee = r.defaultProps;
1794
- for (H in ee)
1795
- F[H] === void 0 && (F[H] = ee[H]);
1796
- }
1797
- if ($ || de) {
1798
- var ne = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
1799
- $ && lr(F, ne), de && ur(F, ne);
1800
- }
1801
- return dr(r, $, de, Y, k, Re.current, F);
1802
- }
1803
- }
1804
- var nt = M.ReactCurrentOwner, _t = M.ReactDebugCurrentFrame;
1805
- function $e(r) {
1806
- if (r) {
1807
- var u = r._owner, m = O(r.type, r._source, u ? u.type : null);
1808
- _t.setExtraStackFrame(m);
1809
- } else
1810
- _t.setExtraStackFrame(null);
1811
- }
1812
- var ot;
1813
- ot = !1;
1814
- function at(r) {
1815
- return typeof r == "object" && r !== null && r.$$typeof === n;
1816
- }
1817
- function xt() {
1818
- {
1819
- if (nt.current) {
1820
- var r = G(nt.current.type);
1821
- if (r)
1822
- return `
1823
-
1824
- Check the render method of \`` + r + "`.";
1825
- }
1826
- return "";
1827
- }
1828
- }
1829
- function pr(r) {
1830
- {
1831
- if (r !== void 0) {
1832
- var u = r.fileName.replace(/^.*[\\\/]/, ""), m = r.lineNumber;
1833
- return `
1834
-
1835
- Check your code at ` + u + ":" + m + ".";
1836
- }
1837
- return "";
1838
- }
1839
- }
1840
- var Rt = {};
1841
- function hr(r) {
1842
- {
1843
- var u = xt();
1844
- if (!u) {
1845
- var m = typeof r == "string" ? r : r.displayName || r.name;
1846
- m && (u = `
1847
-
1848
- Check the top-level render call using <` + m + ">.");
1849
- }
1850
- return u;
1851
- }
1852
- }
1853
- function kt(r, u) {
1854
- {
1855
- if (!r._store || r._store.validated || r.key != null)
1856
- return;
1857
- r._store.validated = !0;
1858
- var m = hr(u);
1859
- if (Rt[m])
1860
- return;
1861
- Rt[m] = !0;
1862
- var k = "";
1863
- r && r._owner && r._owner !== nt.current && (k = " It was passed a child from " + G(r._owner.type) + "."), $e(r), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, k), $e(null);
1864
- }
1865
- }
1866
- function At(r, u) {
1867
- {
1868
- if (typeof r != "object")
1869
- return;
1870
- if (xe(r))
1871
- for (var m = 0; m < r.length; m++) {
1872
- var k = r[m];
1873
- at(k) && kt(k, u);
1874
- }
1875
- else if (at(r))
1876
- r._store && (r._store.validated = !0);
1877
- else if (r) {
1878
- var Y = x(r);
1879
- if (typeof Y == "function" && Y !== r.entries)
1880
- for (var H = Y.call(r), F; !(F = H.next()).done; )
1881
- at(F.value) && kt(F.value, u);
1882
- }
1883
- }
1884
- }
1885
- function mr(r) {
1886
- {
1887
- var u = r.type;
1888
- if (u == null || typeof u == "string")
1889
- return;
1890
- var m;
1891
- if (typeof u == "function")
1892
- m = u.propTypes;
1893
- else if (typeof u == "object" && (u.$$typeof === h || u.$$typeof === C))
1894
- m = u.propTypes;
1895
- else
1896
- return;
1897
- if (m) {
1898
- var k = G(u);
1899
- oe(m, r.props, "prop", k, r);
1900
- } else if (u.PropTypes !== void 0 && !ot) {
1901
- ot = !0;
1902
- var Y = G(u);
1903
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
1904
- }
1905
- typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1906
- }
1907
- }
1908
- function vr(r) {
1909
- {
1910
- for (var u = Object.keys(r.props), m = 0; m < u.length; m++) {
1911
- var k = u[m];
1912
- if (k !== "children" && k !== "key") {
1913
- $e(r), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), $e(null);
1914
- break;
1915
- }
1916
- }
1917
- r.ref !== null && ($e(r), y("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
1918
- }
1919
- }
1920
- function Tt(r, u, m, k, Y, H) {
1921
- {
1922
- var F = me(r);
1923
- if (!F) {
1924
- var $ = "";
1925
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1926
- var de = pr(Y);
1927
- de ? $ += de : $ += xt();
1928
- var ee;
1929
- r === null ? ee = "null" : xe(r) ? ee = "array" : r !== void 0 && r.$$typeof === n ? (ee = "<" + (G(r.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof r, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, $);
1930
- }
1931
- var ne = fr(r, u, m, Y, H);
1932
- if (ne == null)
1933
- return ne;
1934
- if (F) {
1935
- var ge = u.children;
1936
- if (ge !== void 0)
1937
- if (k)
1938
- if (xe(ge)) {
1939
- for (var Le = 0; Le < ge.length; Le++)
1940
- At(ge[Le], r);
1941
- Object.freeze && Object.freeze(ge);
1942
- } else
1943
- 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.");
1944
- else
1945
- At(ge, r);
1946
- }
1947
- return r === o ? vr(ne) : mr(ne), ne;
1948
- }
1949
- }
1950
- function gr(r, u, m) {
1951
- return Tt(r, u, m, !0);
1952
- }
1953
- function yr(r, u, m) {
1954
- return Tt(r, u, m, !1);
1955
- }
1956
- var wr = yr, br = gr;
1957
- Ue.Fragment = o, Ue.jsx = wr, Ue.jsxs = br;
1958
- }()), Ue;
1959
- }
1960
- (function(e) {
1961
- process.env.NODE_ENV === "production" ? e.exports = xn() : e.exports = Rn();
1962
- })(tt);
1963
- const Te = tt.exports.Fragment, I = tt.exports.jsx, Me = tt.exports.jsxs, Xn = (e, n) => {
1964
- const t = _n();
1965
- return /* @__PURE__ */ I(Oe.Provider, {
1966
- value: t,
1967
- children: /* @__PURE__ */ I(Te, {
1968
- children: e.children
1969
- })
1970
- });
1971
- }, Kn = (e = 0) => {
1972
- const [n, t] = Z(), {
1973
- hasConnectedWallet: o,
1974
- connectedWalletName: a,
1975
- connectedWalletInstance: c
1976
- } = ye(Oe);
1977
- return Pe(() => {
1978
- o && c.getUsedAddresses().then((s) => {
1979
- s[e] && t(s[e]);
1980
- });
1981
- }, [e, a]), n;
1982
- }, Zn = () => {
1983
- const [e, n] = Z(), {
1984
- hasConnectedWallet: t,
1985
- connectedWalletName: o,
1986
- connectedWalletInstance: a
1987
- } = ye(Oe);
1988
- return Pe(() => {
1989
- t && a.getAssets().then(n);
1990
- }, [o]), e;
1991
- }, bt = () => {
1992
- const [e, n] = Z([]);
1993
- return Pe(() => {
1994
- n(qt.getInstalledWallets());
1995
- }, []), e;
1996
- }, kn = () => {
1997
- const [e, n] = Z(), {
1998
- hasConnectedWallet: t,
1999
- connectedWalletName: o,
2000
- connectedWalletInstance: a
2001
- } = ye(Oe);
2002
- return Pe(() => {
2003
- t && a.getLovelace().then(n);
2004
- }, [o]), e;
2005
- }, Jn = () => {
2006
- const [e, n] = Z(), {
2007
- hasConnectedWallet: t,
2008
- connectedWalletName: o,
2009
- connectedWalletInstance: a
2010
- } = ye(Oe);
2011
- return Pe(() => {
2012
- t && a.getNetworkId().then(n);
2013
- }, [o]), e;
2014
- }, An = (e = 0) => {
2015
- const [n, t] = Z(), {
2016
- hasConnectedWallet: o,
2017
- connectedWalletName: a,
2018
- connectedWalletInstance: c
2019
- } = ye(Oe);
2020
- return Pe(() => {
2021
- o && c.getRewardAddresses().then((s) => {
2022
- s[e] && t(s[e]);
2023
- });
2024
- }, [e, a]), n;
2025
- }, St = () => {
2026
- const {
2027
- hasConnectedWallet: e,
2028
- connectedWalletName: n,
2029
- connectedWalletInstance: t,
2030
- connectingWallet: o,
2031
- connectWallet: a,
2032
- disconnect: c,
2033
- error: s
2034
- } = ye(Oe);
2035
- if (a === void 0 || c === void 0)
2036
- throw new Error("Can't call useWallet outside of the WalletProvider context");
2037
- return {
2038
- name: n,
2039
- connecting: o,
2040
- connected: e,
2041
- wallet: t,
2042
- connect: a,
2043
- disconnect: c,
2044
- error: s
2045
- };
2046
- }, Qn = () => {
2047
- const [e, n] = Z(), [t, o] = Z(), [a, c] = Z(!1), {
2048
- hasConnectedWallet: s,
2049
- connectedWalletInstance: f
2050
- } = ye(Oe), h = ct(async (g) => {
2051
- c(!0);
2052
- try {
2053
- if (s) {
2054
- const v = await f.submitTx(g);
2055
- n(void 0), o(v);
2056
- }
2057
- throw new Error("Please make sure to connect a wallet before calling useWalletSubmit");
2058
- } catch (v) {
2059
- n(v), console.error(v);
2060
- }
2061
- c(!1);
2062
- }, []);
2063
- return {
2064
- error: e,
2065
- result: t,
2066
- submitting: a,
2067
- submitTx: h
2068
- };
2069
- }, Tn = (e = {}) => {
2070
- const {
2071
- era: n,
2072
- parameters: t
2073
- } = e, {
2074
- hasConnectedWallet: o,
2075
- connectedWalletInstance: a
2076
- } = ye(Oe), [c] = Z(() => {
2077
- if (o)
2078
- return new _r({
2079
- initiator: a,
2080
- parameters: t,
2081
- era: n
2082
- });
2083
- throw new Error("Please make sure to connect a wallet before calling useWalletTx");
2084
- });
2085
- return c;
2086
- }, Pn = fe.svg.withConfig({
2087
- displayName: "CheckMark__StyledCheckMark",
2088
- componentId: "sc-bdkad9-0"
2089
- })({
2090
- margin: "0.5rem",
2091
- height: "1.5rem"
2092
- }), On = () => /* @__PURE__ */ I(Pn, {
2093
- fill: "currentColor",
2094
- viewBox: "0 0 512 512",
2095
- xmlns: "http://www.w3.org/2000/svg",
2096
- children: /* @__PURE__ */ I("path", {
2097
- d: "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"
2098
- })
2099
- }), In = fe.div.withConfig({
2100
- displayName: "MenuItem__StyledItem",
2101
- componentId: "sc-obisy3-0"
2102
- })({
2103
- display: "flex",
2104
- cursor: "pointer",
2105
- alignItems: "center",
2106
- paddingLeft: "1rem",
2107
- paddingRight: "1rem",
2108
- paddingTop: "0.5rem",
2109
- paddingBottom: "0.5rem",
2110
- opacity: "0.8",
2111
- ":hover": {
2112
- opacity: "1"
2113
- }
2114
- }), Nn = fe.img.withConfig({
2115
- displayName: "MenuItem__StyledIcon",
2116
- componentId: "sc-obisy3-1"
2117
- })({
2118
- margin: "0.25rem",
2119
- height: "2rem",
2120
- paddingRight: "0.5rem"
2121
- }), Dn = fe.span.withConfig({
2122
- displayName: "MenuItem__StyledName",
2123
- componentId: "sc-obisy3-2"
2124
- })({
2125
- fontSize: "1.25rem",
2126
- lineHeight: "1.75rem",
2127
- fontWeight: "400"
2128
- }), Mn = fe.span.withConfig({
2129
- displayName: "MenuItem__StyledActive",
2130
- componentId: "sc-obisy3-3"
2131
- })({
2132
- marginLeft: "auto"
2133
- }), mt = ({
2134
- icon: e,
2135
- label: n,
2136
- action: t,
2137
- active: o
2138
- }) => /* @__PURE__ */ Me(In, {
2139
- onClick: t,
2140
- children: [e && /* @__PURE__ */ I(Nn, {
2141
- src: e
2142
- }), /* @__PURE__ */ I(Dn, {
2143
- className: "mr-menu-item",
2144
- children: n.split(" ").map((a) => a.charAt(0).toUpperCase() + a.slice(1).toLowerCase()).join(" ")
2145
- }), o && /* @__PURE__ */ I(Mn, {
2146
- children: /* @__PURE__ */ I(On, {})
2147
- })]
2148
- }), jn = fe.svg.withConfig({
2149
- displayName: "ChevronDown__StyledChevronDown",
2150
- componentId: "sc-17n3mfh-0"
2151
- })({
2152
- margin: "0.5rem",
2153
- height: "1.5rem"
2154
- }), ar = () => /* @__PURE__ */ I(jn, {
2155
- fill: "none",
2156
- "aria-hidden": "true",
2157
- viewBox: "0 0 24 24",
2158
- stroke: "currentColor",
2159
- xmlns: "http://www.w3.org/2000/svg",
2160
- children: /* @__PURE__ */ I("path", {
2161
- strokeLinecap: "round",
2162
- strokeLinejoin: "round",
2163
- strokeWidth: "2",
2164
- d: "M19 9l-7 7-7-7"
2165
- })
2166
- }), Gt = fe.img.withConfig({
2167
- displayName: "WalletBalance__StyledIcon",
2168
- componentId: "sc-8if913-0"
2169
- })({
2170
- margin: "0.5rem",
2171
- height: "1.5rem"
2172
- }), Wn = fe.span.withConfig({
2173
- displayName: "WalletBalance__StyledSmall",
2174
- componentId: "sc-8if913-1"
2175
- })({
2176
- fontSize: "0.75rem",
2177
- lineHeight: "1rem"
2178
- }), $n = ({
2179
- connected: e,
2180
- name: n,
2181
- connecting: t,
2182
- label: o
2183
- }) => {
2184
- const a = bt().find((s) => s.name === n), c = kn();
2185
- return e && c && a?.icon ? /* @__PURE__ */ Me(Te, {
2186
- children: [/* @__PURE__ */ I(Gt, {
2187
- src: a.icon
2188
- }), "\u20B3", " ", parseInt((parseInt(c, 10) / 1e6).toString(), 10), ".", /* @__PURE__ */ I(Wn, {
2189
- children: c.substr(c.length - 6)
2190
- })]
2191
- }) : e && a?.icon ? /* @__PURE__ */ I(Te, {
2192
- children: /* @__PURE__ */ I(Gt, {
2193
- src: a.icon
2194
- })
2195
- }) : t ? /* @__PURE__ */ I(Te, {
2196
- children: "Connecting..."
2197
- }) : /* @__PURE__ */ Me(Te, {
2198
- children: [o, " ", /* @__PURE__ */ I(ar, {})]
2199
- });
2200
- }, Ln = fe.button.withConfig({
2201
- displayName: "CardanoWallet__StyledMenuButton",
2202
- componentId: "sc-13vl5pq-0"
2203
- })({
2204
- display: "flex",
2205
- width: "15rem",
2206
- alignItems: "center",
2207
- justifyContent: "center",
2208
- borderTopLeftRadius: "0.375rem",
2209
- borderTopRightRadius: "0.375rem",
2210
- borderWidth: "1px",
2211
- paddingLeft: "1rem",
2212
- paddingRight: "1rem",
2213
- paddingTop: "0.5rem",
2214
- paddingBottom: "0.5rem",
2215
- fontSize: "1.125rem",
2216
- lineHeight: "1.75rem",
2217
- fontWeight: "400",
2218
- "--tw-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
2219
- "--tw-shadow-colored": "0 1px 2px 0 var(--tw-shadow-color)",
2220
- boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
2221
- }), Fn = fe.div.withConfig({
2222
- displayName: "CardanoWallet__StyledMenuList",
2223
- componentId: "sc-13vl5pq-1"
2224
- })(({
2225
- hidden: e
2226
- }) => [{
2227
- position: "absolute",
2228
- width: "15rem",
2229
- borderBottomRightRadius: "0.375rem",
2230
- borderBottomLeftRadius: "0.375rem",
2231
- borderWidth: "1px",
2232
- textAlign: "center",
2233
- "--tw-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
2234
- "--tw-shadow-colored": "0 1px 2px 0 var(--tw-shadow-color)",
2235
- boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",
2236
- "--tw-backdrop-blur": "blur(8px)",
2237
- backdropFilter: "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)"
2238
- }, e && {
2239
- display: "none"
2240
- }]), eo = ({
2241
- label: e = "Connect Wallet",
2242
- onConnected: n = void 0,
2243
- isDark: t = !1
2244
- }) => {
2245
- const [o, a] = Z(!1), c = bt(), [s, f] = Z(!0), {
2246
- connect: h,
2247
- connecting: g,
2248
- connected: v,
2249
- disconnect: C,
2250
- name: P
2251
- } = St();
2252
- return Pe(() => {
2253
- v && n && n();
2254
- }, [v]), Pe(() => {
2255
- a(t);
2256
- }, [t]), /* @__PURE__ */ Me("div", {
2257
- style: {
2258
- width: "fit-content"
2259
- },
2260
- onMouseEnter: () => f(!1),
2261
- onMouseLeave: () => f(!0),
2262
- children: [/* @__PURE__ */ I(Ln, {
2263
- type: "button",
2264
- className: "mr-wallet-button",
2265
- style: {
2266
- backgroundColor: o ? "#1f1f1f" : "#fff",
2267
- color: o ? "#fff" : "#000"
2268
- },
2269
- onClick: () => f(!s),
2270
- children: /* @__PURE__ */ I($n, {
2271
- name: P,
2272
- connected: v,
2273
- connecting: g,
2274
- label: e
2275
- })
2276
- }), /* @__PURE__ */ I(Fn, {
2277
- hidden: s,
2278
- className: "mr-menu-list",
2279
- style: {
2280
- backgroundColor: o ? "#1f1f1f" : "#fff",
2281
- color: o ? "#fff" : "#000"
2282
- },
2283
- children: !v && c.length > 0 ? /* @__PURE__ */ I(Te, {
2284
- children: c.map((N, E) => /* @__PURE__ */ I(mt, {
2285
- icon: N.icon,
2286
- label: N.name,
2287
- action: () => {
2288
- h(N.name), f(!s);
2289
- },
2290
- active: P === N.name
2291
- }, E))
2292
- }) : c.length === 0 ? /* @__PURE__ */ I("span", {
2293
- children: "No Wallet Found"
2294
- }) : /* @__PURE__ */ I(Te, {
2295
- children: /* @__PURE__ */ I(mt, {
2296
- active: !1,
2297
- label: "disconnect",
2298
- action: C,
2299
- icon: void 0
2300
- })
2301
- })
2302
- })]
2303
- });
2304
- }, zn = fe.svg.withConfig({
2305
- displayName: "MeshLogo__StyledLogo",
2306
- componentId: "sc-1nwgent-0"
2307
- })({
2308
- height: "4rem",
2309
- padding: "0.5rem"
2310
- }), Yn = () => /* @__PURE__ */ I(zn, {
2311
- fill: "currentColor",
2312
- viewBox: "0 0 300 200",
2313
- xmlns: "http://www.w3.org/2000/svg",
2314
- children: /* @__PURE__ */ I("path", {
2315
- d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z"
2316
- })
2317
- }), Bn = fe.a.withConfig({
2318
- displayName: "MeshBadge__StyledLink",
2319
- componentId: "sc-fcpuc3-0"
2320
- })({
2321
- display: "flex",
2322
- maxWidth: "fit-content",
2323
- flexDirection: "column",
2324
- alignItems: "center",
2325
- borderRadius: "0.375rem",
2326
- borderWidth: "1px",
2327
- borderStyle: "solid",
2328
- borderColor: "currentColor",
2329
- padding: "0.25rem",
2330
- fontSize: "1.25rem",
2331
- lineHeight: "1.75rem",
2332
- fontWeight: "600",
2333
- "--tw-text-opacity": "1",
2334
- color: "rgb(68 64 60 / var(--tw-text-opacity))",
2335
- textDecorationLine: "none"
2336
- }), to = ({
2337
- dark: e = !1
2338
- }) => /* @__PURE__ */ Me(Bn, {
2339
- style: {
2340
- color: e ? "#EEEEEE" : "#111111",
2341
- backgroundColor: e ? "#111111" : "#EEEEEE"
2342
- },
2343
- href: "https://meshjs.dev/",
2344
- rel: "noopener noreferrer",
2345
- target: "_blank",
2346
- children: [/* @__PURE__ */ I(Yn, {}), "Mesh"]
2347
- }), Vn = fe.button.withConfig({
2348
- displayName: "StakeButton__StyledMenuButton",
2349
- componentId: "sc-2hlzah-0"
2350
- })({
2351
- display: "flex",
2352
- width: "15rem",
2353
- alignItems: "center",
2354
- justifyContent: "center",
2355
- borderTopLeftRadius: "0.375rem",
2356
- borderTopRightRadius: "0.375rem",
2357
- borderWidth: "1px",
2358
- paddingLeft: "1rem",
2359
- paddingRight: "1rem",
2360
- paddingTop: "0.5rem",
2361
- paddingBottom: "0.5rem",
2362
- fontSize: "1.125rem",
2363
- lineHeight: "1.75rem",
2364
- fontWeight: "400",
2365
- "--tw-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
2366
- "--tw-shadow-colored": "0 1px 2px 0 var(--tw-shadow-color)",
2367
- boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
2368
- }), Un = fe.div.withConfig({
2369
- displayName: "StakeButton__StyledMenuList",
2370
- componentId: "sc-2hlzah-1"
2371
- })(({
2372
- hidden: e
2373
- }) => [{
2374
- position: "absolute",
2375
- width: "15rem",
2376
- borderBottomRightRadius: "0.375rem",
2377
- borderBottomLeftRadius: "0.375rem",
2378
- borderWidth: "1px",
2379
- textAlign: "center",
2380
- "--tw-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
2381
- "--tw-shadow-colored": "0 1px 2px 0 var(--tw-shadow-color)",
2382
- boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",
2383
- "--tw-backdrop-blur": "blur(8px)",
2384
- backdropFilter: "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)"
2385
- }, e && {
2386
- display: "none"
2387
- }]), ro = ({
2388
- poolId: e,
2389
- onCheck: n
2390
- }) => {
2391
- const t = bt(), [o, a] = Z(!0), {
2392
- connect: c,
2393
- connecting: s,
2394
- connected: f,
2395
- name: h
2396
- } = St();
2397
- return /* @__PURE__ */ Me("div", {
2398
- style: {
2399
- width: "fit-content"
2400
- },
2401
- onMouseEnter: () => a(!1),
2402
- onMouseLeave: () => a(!0),
2403
- children: [/* @__PURE__ */ I(Vn, {
2404
- type: "button",
2405
- onClick: () => a(!o),
2406
- children: f ? /* @__PURE__ */ I(Hn, {
2407
- poolId: e,
2408
- onCheck: n
2409
- }) : s ? /* @__PURE__ */ I(Te, {
2410
- children: "Connecting..."
2411
- }) : /* @__PURE__ */ Me(Te, {
2412
- children: ["Connect Wallet ", /* @__PURE__ */ I(ar, {})]
2413
- })
2414
- }), /* @__PURE__ */ I(Un, {
2415
- hidden: o || f,
2416
- children: t.length > 0 ? t.map((g, v) => /* @__PURE__ */ I(mt, {
2417
- icon: g.icon,
2418
- label: g.name,
2419
- action: () => {
2420
- c(g.name), a(!o);
2421
- },
2422
- active: h === g.name
2423
- }, v)) : /* @__PURE__ */ I("span", {
2424
- children: "No Wallet Found"
2425
- })
2426
- })]
2427
- });
2428
- }, Hn = ({
2429
- poolId: e,
2430
- onCheck: n
2431
- }) => {
2432
- const t = Tn(), {
2433
- wallet: o
2434
- } = St(), a = An(), [c, s] = Z(), [f, h] = Z(!1), [g, v] = Z(), [C, P] = Z(!1), [N, E] = Z(!1), D = async () => {
2435
- try {
2436
- if (h(!0), a) {
2437
- const y = await n(a);
2438
- v(y);
2439
- }
2440
- h(!1);
2441
- } catch (y) {
2442
- s(y);
2443
- }
2444
- }, x = async () => {
2445
- P(!0), E(!1);
2446
- try {
2447
- if (a) {
2448
- const y = await t.registerStake(a).delegateStake(a, e).build(), T = await o.signTx(y), _ = await o.submitTx(T);
2449
- console.log("txHash", _), E(!0);
2450
- }
2451
- } catch (y) {
2452
- console.error("error", y), s(y);
2453
- }
2454
- P(!1);
2455
- }, M = async () => {
2456
- P(!0), E(!1);
2457
- try {
2458
- if (a) {
2459
- const y = await t.delegateStake(a, e).build(), T = await o.signTx(y), _ = await o.submitTx(T);
2460
- E(!0);
2461
- }
2462
- } catch (y) {
2463
- console.error("error", y), s(y);
2464
- }
2465
- P(!1);
2466
- };
2467
- return Pe(() => {
2468
- D();
2469
- }, [a]), f ? /* @__PURE__ */ I("span", {
2470
- children: "Checking..."
2471
- }) : C ? /* @__PURE__ */ I("span", {
2472
- children: "Loading..."
2473
- }) : N ? /* @__PURE__ */ I("span", {
2474
- children: "Stake Delegated"
2475
- }) : g?.active ? g.poolId === e ? /* @__PURE__ */ I("span", {
2476
- children: "Stake Delegated"
2477
- }) : /* @__PURE__ */ I("span", {
2478
- onClick: M,
2479
- children: "Delegate Stake"
2480
- }) : /* @__PURE__ */ I("span", {
2481
- onClick: x,
2482
- children: "Register Address"
2483
- });
2484
- }, no = (e, n = "https://infura-ipfs.io/ipfs/") => (Array.isArray(e) && (e = e.join("")), e.startsWith("data:image") ? e : e.startsWith("ipfs://") ? n + e.split("ipfs://")[1].split("ipfs/").slice(-1)[0] : e.startsWith("Qm") && e.length === 46 || e.startsWith("baf") && e.length === 59 ? n + e : e);
2485
- export {
2486
- eo as CardanoWallet,
2487
- to as MeshBadge,
2488
- Xn as MeshProvider,
2489
- ro as StakeButton,
2490
- Oe as WalletContext,
2491
- no as resolveMedia,
2492
- Kn as useAddress,
2493
- Zn as useAssets,
2494
- kn as useLovelace,
2495
- Jn as useNetwork,
2496
- An as useRewardAddress,
2497
- St as useWallet,
2498
- bt as useWalletList,
2499
- Qn as useWalletSubmit,
2500
- Tn as useWalletTx
2501
- };