@minimalstuff/ui 0.0.31 → 1.0.0-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js DELETED
@@ -1,2656 +0,0 @@
1
- import D from "@emotion/styled";
2
- import * as te from "react";
3
- import ne, { useEffect as Er, createContext as ct, useContext as xr, useState as me, useRef as lt, Fragment as sn, forwardRef as cn } from "react";
4
- import { keyframes as wr, useTheme as ut, ThemeProvider as ln, css as Ye, Global as un } from "@emotion/react";
5
- import { useHotkeys as fn } from "react-hotkeys-hook";
6
- import dn from "hex-rgb";
7
- import ft from "tinycolor2";
8
- import { createPortal as pn } from "react-dom";
9
- import mn from "react-toggle";
10
- import hn from "react-select";
11
- import Ur from "js-cookie";
12
- const wa = D.button(
13
- ({ theme: e, danger: r = !1, secondary: t = !1 }) => {
14
- const o = r ? e.colors.red.default : e.colors.blue.default, a = r ? e.colors.red.dark : e.colors.blue.dark, i = t ? o : e.colors.white, l = t ? "transparent" : o;
15
- return {
16
- cursor: "pointer",
17
- width: "100%",
18
- textTransform: "uppercase",
19
- fontSize: e.fontSizes.m,
20
- color: i,
21
- background: l,
22
- padding: "0.75em",
23
- border: `1px solid ${o}`,
24
- borderRadius: e.borders.radius.m,
25
- transition: e.transitions.delay.fast,
26
- "&:disabled": {
27
- cursor: "not-allowed",
28
- opacity: "0.5"
29
- },
30
- "&:not(:disabled):hover": {
31
- background: t ? e.colors.secondary : a,
32
- borderColor: t ? e.colors.secondary : a
33
- }
34
- };
35
- }
36
- );
37
- var mr = { exports: {} }, Se = {};
38
- /**
39
- * @license React
40
- * react-jsx-runtime.production.min.js
41
- *
42
- * Copyright (c) Facebook, Inc. and its affiliates.
43
- *
44
- * This source code is licensed under the MIT license found in the
45
- * LICENSE file in the root directory of this source tree.
46
- */
47
- var Br;
48
- function vn() {
49
- if (Br) return Se;
50
- Br = 1;
51
- var e = ne, r = 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, i = { key: !0, ref: !0, __self: !0, __source: !0 };
52
- function l(c, d, v) {
53
- var p, h = {}, g = null, j = null;
54
- v !== void 0 && (g = "" + v), d.key !== void 0 && (g = "" + d.key), d.ref !== void 0 && (j = d.ref);
55
- for (p in d) o.call(d, p) && !i.hasOwnProperty(p) && (h[p] = d[p]);
56
- if (c && c.defaultProps) for (p in d = c.defaultProps, d) h[p] === void 0 && (h[p] = d[p]);
57
- return { $$typeof: r, type: c, key: g, ref: j, props: h, _owner: a.current };
58
- }
59
- return Se.Fragment = t, Se.jsx = l, Se.jsxs = l, Se;
60
- }
61
- var Ce = {};
62
- /**
63
- * @license React
64
- * react-jsx-runtime.development.js
65
- *
66
- * Copyright (c) Facebook, Inc. and its affiliates.
67
- *
68
- * This source code is licensed under the MIT license found in the
69
- * LICENSE file in the root directory of this source tree.
70
- */
71
- var Gr;
72
- function bn() {
73
- return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
74
- var e = ne, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), $ = Symbol.iterator, x = "@@iterator";
75
- function M(n) {
76
- if (n === null || typeof n != "object")
77
- return null;
78
- var s = $ && n[$] || n[x];
79
- return typeof s == "function" ? s : null;
80
- }
81
- var _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
82
- function y(n) {
83
- {
84
- for (var s = arguments.length, f = new Array(s > 1 ? s - 1 : 0), b = 1; b < s; b++)
85
- f[b - 1] = arguments[b];
86
- A("error", n, f);
87
- }
88
- }
89
- function A(n, s, f) {
90
- {
91
- var b = _.ReactDebugCurrentFrame, R = b.getStackAddendum();
92
- R !== "" && (s += "%s", f = f.concat([R]));
93
- var N = f.map(function(w) {
94
- return String(w);
95
- });
96
- N.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, N);
97
- }
98
- }
99
- var I = !1, u = !1, Y = !1, P = !1, rr = !1, $e;
100
- $e = Symbol.for("react.module.reference");
101
- function tr(n) {
102
- return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || rr || n === a || n === v || n === p || P || n === j || I || u || Y || typeof n == "object" && n !== null && (n.$$typeof === g || n.$$typeof === h || n.$$typeof === l || n.$$typeof === c || n.$$typeof === d || // This needs to include all possible module reference object
103
- // types supported by any Flight configuration anywhere since
104
- // we don't know which Flight build this will end up being used
105
- // with.
106
- n.$$typeof === $e || n.getModuleId !== void 0));
107
- }
108
- function nr(n, s, f) {
109
- var b = n.displayName;
110
- if (b)
111
- return b;
112
- var R = s.displayName || s.name || "";
113
- return R !== "" ? f + "(" + R + ")" : f;
114
- }
115
- function Ne(n) {
116
- return n.displayName || "Context";
117
- }
118
- function H(n) {
119
- if (n == null)
120
- return null;
121
- if (typeof n.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
122
- return n.displayName || n.name || null;
123
- if (typeof n == "string")
124
- return n;
125
- switch (n) {
126
- case o:
127
- return "Fragment";
128
- case t:
129
- return "Portal";
130
- case i:
131
- return "Profiler";
132
- case a:
133
- return "StrictMode";
134
- case v:
135
- return "Suspense";
136
- case p:
137
- return "SuspenseList";
138
- }
139
- if (typeof n == "object")
140
- switch (n.$$typeof) {
141
- case c:
142
- var s = n;
143
- return Ne(s) + ".Consumer";
144
- case l:
145
- var f = n;
146
- return Ne(f._context) + ".Provider";
147
- case d:
148
- return nr(n, n.render, "ForwardRef");
149
- case h:
150
- var b = n.displayName || null;
151
- return b !== null ? b : H(n.type) || "Memo";
152
- case g: {
153
- var R = n, N = R._payload, w = R._init;
154
- try {
155
- return H(w(N));
156
- } catch {
157
- return null;
158
- }
159
- }
160
- }
161
- return null;
162
- }
163
- var re = Object.assign, oe = 0, je, Ie, ve, De, be, Fe, Me;
164
- function Le() {
165
- }
166
- Le.__reactDisabledLog = !0;
167
- function or() {
168
- {
169
- if (oe === 0) {
170
- je = console.log, Ie = console.info, ve = console.warn, De = console.error, be = console.group, Fe = console.groupCollapsed, Me = console.groupEnd;
171
- var n = {
172
- configurable: !0,
173
- enumerable: !0,
174
- value: Le,
175
- writable: !0
176
- };
177
- Object.defineProperties(console, {
178
- info: n,
179
- log: n,
180
- warn: n,
181
- error: n,
182
- group: n,
183
- groupCollapsed: n,
184
- groupEnd: n
185
- });
186
- }
187
- oe++;
188
- }
189
- }
190
- function ar() {
191
- {
192
- if (oe--, oe === 0) {
193
- var n = {
194
- configurable: !0,
195
- enumerable: !0,
196
- writable: !0
197
- };
198
- Object.defineProperties(console, {
199
- log: re({}, n, {
200
- value: je
201
- }),
202
- info: re({}, n, {
203
- value: Ie
204
- }),
205
- warn: re({}, n, {
206
- value: ve
207
- }),
208
- error: re({}, n, {
209
- value: De
210
- }),
211
- group: re({}, n, {
212
- value: be
213
- }),
214
- groupCollapsed: re({}, n, {
215
- value: Fe
216
- }),
217
- groupEnd: re({}, n, {
218
- value: Me
219
- })
220
- });
221
- }
222
- oe < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
223
- }
224
- }
225
- var ge = _.ReactCurrentDispatcher, ye;
226
- function se(n, s, f) {
227
- {
228
- if (ye === void 0)
229
- try {
230
- throw Error();
231
- } catch (R) {
232
- var b = R.stack.trim().match(/\n( *(at )?)/);
233
- ye = b && b[1] || "";
234
- }
235
- return `
236
- ` + ye + n;
237
- }
238
- }
239
- var Ee = !1, ce;
240
- {
241
- var ir = typeof WeakMap == "function" ? WeakMap : Map;
242
- ce = new ir();
243
- }
244
- function m(n, s) {
245
- if (!n || Ee)
246
- return "";
247
- {
248
- var f = ce.get(n);
249
- if (f !== void 0)
250
- return f;
251
- }
252
- var b;
253
- Ee = !0;
254
- var R = Error.prepareStackTrace;
255
- Error.prepareStackTrace = void 0;
256
- var N;
257
- N = ge.current, ge.current = null, or();
258
- try {
259
- if (s) {
260
- var w = function() {
261
- throw Error();
262
- };
263
- if (Object.defineProperty(w.prototype, "props", {
264
- set: function() {
265
- throw Error();
266
- }
267
- }), typeof Reflect == "object" && Reflect.construct) {
268
- try {
269
- Reflect.construct(w, []);
270
- } catch (B) {
271
- b = B;
272
- }
273
- Reflect.construct(n, [], w);
274
- } else {
275
- try {
276
- w.call();
277
- } catch (B) {
278
- b = B;
279
- }
280
- n.call(w.prototype);
281
- }
282
- } else {
283
- try {
284
- throw Error();
285
- } catch (B) {
286
- b = B;
287
- }
288
- n();
289
- }
290
- } catch (B) {
291
- if (B && b && typeof B.stack == "string") {
292
- for (var E = B.stack.split(`
293
- `), U = b.stack.split(`
294
- `), F = E.length - 1, L = U.length - 1; F >= 1 && L >= 0 && E[F] !== U[L]; )
295
- L--;
296
- for (; F >= 1 && L >= 0; F--, L--)
297
- if (E[F] !== U[L]) {
298
- if (F !== 1 || L !== 1)
299
- do
300
- if (F--, L--, L < 0 || E[F] !== U[L]) {
301
- var K = `
302
- ` + E[F].replace(" at new ", " at ");
303
- return n.displayName && K.includes("<anonymous>") && (K = K.replace("<anonymous>", n.displayName)), typeof n == "function" && ce.set(n, K), K;
304
- }
305
- while (F >= 1 && L >= 0);
306
- break;
307
- }
308
- }
309
- } finally {
310
- Ee = !1, ge.current = N, ar(), Error.prepareStackTrace = R;
311
- }
312
- var fe = n ? n.displayName || n.name : "", ie = fe ? se(fe) : "";
313
- return typeof n == "function" && ce.set(n, ie), ie;
314
- }
315
- function xe(n, s, f) {
316
- return m(n, !1);
317
- }
318
- function le(n) {
319
- var s = n.prototype;
320
- return !!(s && s.isReactComponent);
321
- }
322
- function ae(n, s, f) {
323
- if (n == null)
324
- return "";
325
- if (typeof n == "function")
326
- return m(n, le(n));
327
- if (typeof n == "string")
328
- return se(n);
329
- switch (n) {
330
- case v:
331
- return se("Suspense");
332
- case p:
333
- return se("SuspenseList");
334
- }
335
- if (typeof n == "object")
336
- switch (n.$$typeof) {
337
- case d:
338
- return xe(n.render);
339
- case h:
340
- return ae(n.type, s, f);
341
- case g: {
342
- var b = n, R = b._payload, N = b._init;
343
- try {
344
- return ae(N(R), s, f);
345
- } catch {
346
- }
347
- }
348
- }
349
- return "";
350
- }
351
- var we = Object.prototype.hasOwnProperty, Ar = {}, $r = _.ReactDebugCurrentFrame;
352
- function Ve(n) {
353
- if (n) {
354
- var s = n._owner, f = ae(n.type, n._source, s ? s.type : null);
355
- $r.setExtraStackFrame(f);
356
- } else
357
- $r.setExtraStackFrame(null);
358
- }
359
- function Mt(n, s, f, b, R) {
360
- {
361
- var N = Function.call.bind(we);
362
- for (var w in n)
363
- if (N(n, w)) {
364
- var E = void 0;
365
- try {
366
- if (typeof n[w] != "function") {
367
- var U = Error((b || "React class") + ": " + f + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
368
- throw U.name = "Invariant Violation", U;
369
- }
370
- E = n[w](s, w, b, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
371
- } catch (F) {
372
- E = F;
373
- }
374
- E && !(E instanceof Error) && (Ve(R), 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).", b || "React class", f, w, typeof E), Ve(null)), E instanceof Error && !(E.message in Ar) && (Ar[E.message] = !0, Ve(R), y("Failed %s type: %s", f, E.message), Ve(null));
375
- }
376
- }
377
- }
378
- var Lt = Array.isArray;
379
- function sr(n) {
380
- return Lt(n);
381
- }
382
- function Vt(n) {
383
- {
384
- var s = typeof Symbol == "function" && Symbol.toStringTag, f = s && n[Symbol.toStringTag] || n.constructor.name || "Object";
385
- return f;
386
- }
387
- }
388
- function Yt(n) {
389
- try {
390
- return Nr(n), !1;
391
- } catch {
392
- return !0;
393
- }
394
- }
395
- function Nr(n) {
396
- return "" + n;
397
- }
398
- function jr(n) {
399
- if (Yt(n))
400
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Vt(n)), Nr(n);
401
- }
402
- var _e = _.ReactCurrentOwner, Wt = {
403
- key: !0,
404
- ref: !0,
405
- __self: !0,
406
- __source: !0
407
- }, Ir, Dr, cr;
408
- cr = {};
409
- function zt(n) {
410
- if (we.call(n, "ref")) {
411
- var s = Object.getOwnPropertyDescriptor(n, "ref").get;
412
- if (s && s.isReactWarning)
413
- return !1;
414
- }
415
- return n.ref !== void 0;
416
- }
417
- function Ut(n) {
418
- if (we.call(n, "key")) {
419
- var s = Object.getOwnPropertyDescriptor(n, "key").get;
420
- if (s && s.isReactWarning)
421
- return !1;
422
- }
423
- return n.key !== void 0;
424
- }
425
- function Bt(n, s) {
426
- if (typeof n.ref == "string" && _e.current && s && _e.current.stateNode !== s) {
427
- var f = H(_e.current.type);
428
- cr[f] || (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', H(_e.current.type), n.ref), cr[f] = !0);
429
- }
430
- }
431
- function Gt(n, s) {
432
- {
433
- var f = function() {
434
- Ir || (Ir = !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)", s));
435
- };
436
- f.isReactWarning = !0, Object.defineProperty(n, "key", {
437
- get: f,
438
- configurable: !0
439
- });
440
- }
441
- }
442
- function qt(n, s) {
443
- {
444
- var f = function() {
445
- Dr || (Dr = !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)", s));
446
- };
447
- f.isReactWarning = !0, Object.defineProperty(n, "ref", {
448
- get: f,
449
- configurable: !0
450
- });
451
- }
452
- }
453
- var Ht = function(n, s, f, b, R, N, w) {
454
- var E = {
455
- // This tag allows us to uniquely identify this as a React Element
456
- $$typeof: r,
457
- // Built-in properties that belong on the element
458
- type: n,
459
- key: s,
460
- ref: f,
461
- props: w,
462
- // Record the component responsible for creating this element.
463
- _owner: N
464
- };
465
- return E._store = {}, Object.defineProperty(E._store, "validated", {
466
- configurable: !1,
467
- enumerable: !1,
468
- writable: !0,
469
- value: !1
470
- }), Object.defineProperty(E, "_self", {
471
- configurable: !1,
472
- enumerable: !1,
473
- writable: !1,
474
- value: b
475
- }), Object.defineProperty(E, "_source", {
476
- configurable: !1,
477
- enumerable: !1,
478
- writable: !1,
479
- value: R
480
- }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
481
- };
482
- function Kt(n, s, f, b, R) {
483
- {
484
- var N, w = {}, E = null, U = null;
485
- f !== void 0 && (jr(f), E = "" + f), Ut(s) && (jr(s.key), E = "" + s.key), zt(s) && (U = s.ref, Bt(s, R));
486
- for (N in s)
487
- we.call(s, N) && !Wt.hasOwnProperty(N) && (w[N] = s[N]);
488
- if (n && n.defaultProps) {
489
- var F = n.defaultProps;
490
- for (N in F)
491
- w[N] === void 0 && (w[N] = F[N]);
492
- }
493
- if (E || U) {
494
- var L = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
495
- E && Gt(w, L), U && qt(w, L);
496
- }
497
- return Ht(n, E, U, R, b, _e.current, w);
498
- }
499
- }
500
- var lr = _.ReactCurrentOwner, Fr = _.ReactDebugCurrentFrame;
501
- function ue(n) {
502
- if (n) {
503
- var s = n._owner, f = ae(n.type, n._source, s ? s.type : null);
504
- Fr.setExtraStackFrame(f);
505
- } else
506
- Fr.setExtraStackFrame(null);
507
- }
508
- var ur;
509
- ur = !1;
510
- function fr(n) {
511
- return typeof n == "object" && n !== null && n.$$typeof === r;
512
- }
513
- function Mr() {
514
- {
515
- if (lr.current) {
516
- var n = H(lr.current.type);
517
- if (n)
518
- return `
519
-
520
- Check the render method of \`` + n + "`.";
521
- }
522
- return "";
523
- }
524
- }
525
- function Jt(n) {
526
- return "";
527
- }
528
- var Lr = {};
529
- function Zt(n) {
530
- {
531
- var s = Mr();
532
- if (!s) {
533
- var f = typeof n == "string" ? n : n.displayName || n.name;
534
- f && (s = `
535
-
536
- Check the top-level render call using <` + f + ">.");
537
- }
538
- return s;
539
- }
540
- }
541
- function Vr(n, s) {
542
- {
543
- if (!n._store || n._store.validated || n.key != null)
544
- return;
545
- n._store.validated = !0;
546
- var f = Zt(s);
547
- if (Lr[f])
548
- return;
549
- Lr[f] = !0;
550
- var b = "";
551
- n && n._owner && n._owner !== lr.current && (b = " It was passed a child from " + H(n._owner.type) + "."), ue(n), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, b), ue(null);
552
- }
553
- }
554
- function Yr(n, s) {
555
- {
556
- if (typeof n != "object")
557
- return;
558
- if (sr(n))
559
- for (var f = 0; f < n.length; f++) {
560
- var b = n[f];
561
- fr(b) && Vr(b, s);
562
- }
563
- else if (fr(n))
564
- n._store && (n._store.validated = !0);
565
- else if (n) {
566
- var R = M(n);
567
- if (typeof R == "function" && R !== n.entries)
568
- for (var N = R.call(n), w; !(w = N.next()).done; )
569
- fr(w.value) && Vr(w.value, s);
570
- }
571
- }
572
- }
573
- function Xt(n) {
574
- {
575
- var s = n.type;
576
- if (s == null || typeof s == "string")
577
- return;
578
- var f;
579
- if (typeof s == "function")
580
- f = s.propTypes;
581
- else if (typeof s == "object" && (s.$$typeof === d || // Note: Memo only checks outer props here.
582
- // Inner props are checked in the reconciler.
583
- s.$$typeof === h))
584
- f = s.propTypes;
585
- else
586
- return;
587
- if (f) {
588
- var b = H(s);
589
- Mt(f, n.props, "prop", b, n);
590
- } else if (s.PropTypes !== void 0 && !ur) {
591
- ur = !0;
592
- var R = H(s);
593
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
594
- }
595
- typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
596
- }
597
- }
598
- function Qt(n) {
599
- {
600
- for (var s = Object.keys(n.props), f = 0; f < s.length; f++) {
601
- var b = s[f];
602
- if (b !== "children" && b !== "key") {
603
- ue(n), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ue(null);
604
- break;
605
- }
606
- }
607
- n.ref !== null && (ue(n), y("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
608
- }
609
- }
610
- var Wr = {};
611
- function zr(n, s, f, b, R, N) {
612
- {
613
- var w = tr(n);
614
- if (!w) {
615
- var E = "";
616
- (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
617
- var U = Jt();
618
- U ? E += U : E += Mr();
619
- var F;
620
- n === null ? F = "null" : sr(n) ? F = "array" : n !== void 0 && n.$$typeof === r ? (F = "<" + (H(n.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : F = typeof n, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, E);
621
- }
622
- var L = Kt(n, s, f, R, N);
623
- if (L == null)
624
- return L;
625
- if (w) {
626
- var K = s.children;
627
- if (K !== void 0)
628
- if (b)
629
- if (sr(K)) {
630
- for (var fe = 0; fe < K.length; fe++)
631
- Yr(K[fe], n);
632
- Object.freeze && Object.freeze(K);
633
- } else
634
- 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.");
635
- else
636
- Yr(K, n);
637
- }
638
- if (we.call(s, "key")) {
639
- var ie = H(n), B = Object.keys(s).filter(function(an) {
640
- return an !== "key";
641
- }), dr = B.length > 0 ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}";
642
- if (!Wr[ie + dr]) {
643
- var on = B.length > 0 ? "{" + B.join(": ..., ") + ": ...}" : "{}";
644
- y(`A props object containing a "key" prop is being spread into JSX:
645
- let props = %s;
646
- <%s {...props} />
647
- React keys must be passed directly to JSX without using spread:
648
- let props = %s;
649
- <%s key={someKey} {...props} />`, dr, ie, on, ie), Wr[ie + dr] = !0;
650
- }
651
- }
652
- return n === o ? Qt(L) : Xt(L), L;
653
- }
654
- }
655
- function en(n, s, f) {
656
- return zr(n, s, f, !0);
657
- }
658
- function rn(n, s, f) {
659
- return zr(n, s, f, !1);
660
- }
661
- var tn = rn, nn = en;
662
- Ce.Fragment = o, Ce.jsx = tn, Ce.jsxs = nn;
663
- }()), Ce;
664
- }
665
- process.env.NODE_ENV === "production" ? mr.exports = vn() : mr.exports = bn();
666
- var k = mr.exports;
667
- wr({
668
- "0%": {
669
- opacity: 0
670
- },
671
- "100%": {
672
- opacity: 1
673
- }
674
- });
675
- wr({
676
- to: {
677
- transform: "rotate(0deg)"
678
- },
679
- from: {
680
- transform: "rotate(360deg)"
681
- }
682
- });
683
- const gn = wr({
684
- from: {
685
- opacity: 0,
686
- transform: "scale(0.95)"
687
- },
688
- to: {
689
- opacity: 1,
690
- transform: "scale(1)"
691
- }
692
- }), _r = D.div(({ theme: e }) => ({
693
- animation: `${e.transitions.delay.normal} ${gn} both`
694
- })), yn = D(_r)(
695
- ({ show: e, theme: r }) => ({
696
- zIndex: 99,
697
- position: "absolute",
698
- top: "calc(100% + 0.5em)",
699
- right: 0,
700
- minWidth: "175px",
701
- backgroundColor: e ? r.colors.secondary : r.colors.background,
702
- border: `2px solid ${r.colors.secondary}`,
703
- borderRadius: r.borders.radius.m,
704
- boxShadow: r.colors.boxShadow,
705
- display: e ? "flex" : "none",
706
- flexDirection: "column",
707
- overflow: "hidden"
708
- })
709
- ), En = D.div(({ theme: e }) => ({
710
- height: "auto",
711
- width: "auto",
712
- color: e.colors.font,
713
- display: "flex",
714
- gap: "0.35em"
715
- }));
716
- function dt(e, r) {
717
- Er(() => {
718
- function t(o) {
719
- var a;
720
- e != null && e.current && !((a = e.current) != null && a.contains(o.target)) && r();
721
- }
722
- return document.addEventListener("mousedown", t), () => document.removeEventListener("mousedown", t);
723
- }, [e, r]);
724
- }
725
- const xn = "escape", wn = "ArrowUp", _n = "ArrowDown", Sn = {
726
- ARROW_DOWN: _n,
727
- ARROW_UP: wn,
728
- ESCAPE_KEY: xn
729
- }, Cn = {
730
- globalHotkeysEnabled: !0,
731
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
732
- setGlobalHotkeysEnabled: (e) => {
733
- }
734
- }, Rn = ct(
735
- Cn
736
- ), pt = () => xr(Rn);
737
- function mt(e, r, { enabled: t, disableGlobalCheck: o } = {
738
- enabled: !0,
739
- disableGlobalCheck: !1
740
- }) {
741
- const { globalHotkeysEnabled: a } = pt();
742
- return fn(
743
- Sn[e],
744
- (i) => {
745
- i.preventDefault(), r();
746
- },
747
- {
748
- enabled: o ? t : t && a,
749
- enableOnFormTags: ["INPUT"]
750
- }
751
- );
752
- }
753
- const Tn = (e = !1) => {
754
- const [r, t] = me(e);
755
- return {
756
- isShowing: r,
757
- toggle: () => t((l) => !l),
758
- open: () => t(!0),
759
- close: () => t(!1)
760
- };
761
- }, On = D.div(
762
- ({ opened: e, theme: r, svgSize: t = 24 }) => ({
763
- cursor: "pointer",
764
- userSelect: "none",
765
- position: "relative",
766
- minWidth: "fit-content",
767
- width: "fit-content",
768
- maxWidth: "250px",
769
- backgroundColor: e ? r.colors.secondary : r.colors.background,
770
- padding: "4px",
771
- borderRadius: r.borders.radius.m,
772
- "&:hover": {
773
- backgroundColor: r.colors.secondary
774
- },
775
- "& svg": {
776
- height: `${t}px`,
777
- width: `${t}px`
778
- }
779
- })
780
- );
781
- function _a({
782
- children: e,
783
- label: r,
784
- className: t,
785
- svgSize: o
786
- }) {
787
- const a = lt(null), { isShowing: i, toggle: l, close: c } = Tn();
788
- return dt(a, c), mt("ESCAPE_KEY", c, { disableGlobalCheck: !0 }), /* @__PURE__ */ k.jsxs(
789
- On,
790
- {
791
- opened: i,
792
- onClick: l,
793
- ref: a,
794
- className: t,
795
- svgSize: o,
796
- children: [
797
- /* @__PURE__ */ k.jsx(En, { children: r }),
798
- /* @__PURE__ */ k.jsx(yn, { show: i, children: e })
799
- ]
800
- }
801
- );
802
- }
803
- const ht = D("div", {
804
- shouldForwardProp: (e) => e !== "danger"
805
- })(({ theme: e, danger: r }) => ({
806
- fontSize: "14px",
807
- whiteSpace: "nowrap",
808
- color: r ? e.colors.red.default : e.colors.blue.default,
809
- padding: "8px 12px",
810
- borderRadius: e.borders.radius.m,
811
- "&:hover": {
812
- backgroundColor: e.colors.background
813
- }
814
- })), Sa = D(ht)({
815
- display: "flex",
816
- gap: "0.75em",
817
- alignItems: "center"
818
- }), Ca = D(ht.withComponent("a"))({
819
- width: "100%",
820
- display: "flex",
821
- gap: "0.75em",
822
- alignItems: "center"
823
- });
824
- function Ra({
825
- children: e,
826
- title: r,
827
- ...t
828
- }) {
829
- return /* @__PURE__ */ k.jsx("a", { target: "_blank", rel: "noreferrer", title: r, ...t, children: e });
830
- }
831
- const kn = D.div({
832
- width: "100%",
833
- display: "flex",
834
- flex: 1,
835
- alignItems: "center",
836
- flexDirection: "column"
837
- }), Pn = D(_r)(({ theme: e }) => ({
838
- minWidth: "500px",
839
- background: e.colors.background,
840
- padding: "1em",
841
- borderRadius: e.borders.radius.m,
842
- marginTop: "6em",
843
- display: "flex",
844
- alignItems: "center",
845
- justifyContent: "center",
846
- flexDirection: "column",
847
- boxShadow: e.colors.boxShadow,
848
- [`@media (max-width: ${e.medias.mobile})`]: {
849
- maxHeight: "calc(100% - 2em)",
850
- width: "calc(100% - 2em)",
851
- minWidth: "unset",
852
- marginTop: "1em"
853
- }
854
- })), An = D.h3({
855
- width: "100%",
856
- margin: 0,
857
- marginBottom: "0.75em",
858
- display: "flex",
859
- alignItems: "center",
860
- justifyContent: "space-between"
861
- }), $n = D.button(({ theme: e }) => ({
862
- cursor: "pointer",
863
- color: e.colors.blue.default,
864
- backgroundColor: "transparent",
865
- border: 0,
866
- padding: 0,
867
- margin: 0
868
- })), Q = (e, r) => `rgba(${dn(e, { format: "array" }).slice(0, -1).join(",")},${r})`;
869
- function X(e) {
870
- const r = ft(e.color);
871
- if (!r.isValid())
872
- throw new Error("Invalid color provided");
873
- return {
874
- lightest: We({
875
- ...e,
876
- multiplicator: 2,
877
- type: "lighten"
878
- }),
879
- light: We({
880
- ...e,
881
- multiplicator: 1,
882
- type: "lighten"
883
- }),
884
- default: r.toString(),
885
- dark: We({
886
- ...e,
887
- multiplicator: 1,
888
- type: "darken"
889
- }),
890
- darkest: We({
891
- ...e,
892
- multiplicator: 2,
893
- type: "darken"
894
- })
895
- };
896
- }
897
- function We({
898
- color: e,
899
- fadeStep: r = 15,
900
- multiplicator: t,
901
- type: o
902
- }) {
903
- return ft(e)[o](r * t).toString();
904
- }
905
- const Nn = D.div(({ theme: e }) => ({
906
- zIndex: 9999,
907
- position: "absolute",
908
- top: 0,
909
- left: 0,
910
- height: "100%",
911
- width: "100%",
912
- background: Q(e.colors.black, 0.35),
913
- backdropFilter: "blur(0.1em)",
914
- display: "flex",
915
- alignItems: "center",
916
- flexDirection: "column",
917
- transition: e.transitions.delay.normal
918
- }));
919
- var vt = {
920
- color: void 0,
921
- size: void 0,
922
- className: void 0,
923
- style: void 0,
924
- attr: void 0
925
- }, qr = ne.createContext && /* @__PURE__ */ ne.createContext(vt), jn = ["attr", "size", "title"];
926
- function In(e, r) {
927
- if (e == null) return {};
928
- var t = Dn(e, r), o, a;
929
- if (Object.getOwnPropertySymbols) {
930
- var i = Object.getOwnPropertySymbols(e);
931
- for (a = 0; a < i.length; a++)
932
- o = i[a], !(r.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
933
- }
934
- return t;
935
- }
936
- function Dn(e, r) {
937
- if (e == null) return {};
938
- var t = {};
939
- for (var o in e)
940
- if (Object.prototype.hasOwnProperty.call(e, o)) {
941
- if (r.indexOf(o) >= 0) continue;
942
- t[o] = e[o];
943
- }
944
- return t;
945
- }
946
- function qe() {
947
- return qe = Object.assign ? Object.assign.bind() : function(e) {
948
- for (var r = 1; r < arguments.length; r++) {
949
- var t = arguments[r];
950
- for (var o in t)
951
- Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
952
- }
953
- return e;
954
- }, qe.apply(this, arguments);
955
- }
956
- function Hr(e, r) {
957
- var t = Object.keys(e);
958
- if (Object.getOwnPropertySymbols) {
959
- var o = Object.getOwnPropertySymbols(e);
960
- r && (o = o.filter(function(a) {
961
- return Object.getOwnPropertyDescriptor(e, a).enumerable;
962
- })), t.push.apply(t, o);
963
- }
964
- return t;
965
- }
966
- function He(e) {
967
- for (var r = 1; r < arguments.length; r++) {
968
- var t = arguments[r] != null ? arguments[r] : {};
969
- r % 2 ? Hr(Object(t), !0).forEach(function(o) {
970
- Fn(e, o, t[o]);
971
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Hr(Object(t)).forEach(function(o) {
972
- Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
973
- });
974
- }
975
- return e;
976
- }
977
- function Fn(e, r, t) {
978
- return r = Mn(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
979
- }
980
- function Mn(e) {
981
- var r = Ln(e, "string");
982
- return typeof r == "symbol" ? r : r + "";
983
- }
984
- function Ln(e, r) {
985
- if (typeof e != "object" || !e) return e;
986
- var t = e[Symbol.toPrimitive];
987
- if (t !== void 0) {
988
- var o = t.call(e, r || "default");
989
- if (typeof o != "object") return o;
990
- throw new TypeError("@@toPrimitive must return a primitive value.");
991
- }
992
- return (r === "string" ? String : Number)(e);
993
- }
994
- function bt(e) {
995
- return e && e.map((r, t) => /* @__PURE__ */ ne.createElement(r.tag, He({
996
- key: t
997
- }, r.attr), bt(r.child)));
998
- }
999
- function Vn(e) {
1000
- return (r) => /* @__PURE__ */ ne.createElement(Yn, qe({
1001
- attr: He({}, e.attr)
1002
- }, r), bt(e.child));
1003
- }
1004
- function Yn(e) {
1005
- var r = (t) => {
1006
- var {
1007
- attr: o,
1008
- size: a,
1009
- title: i
1010
- } = e, l = In(e, jn), c = a || t.size || "1em", d;
1011
- return t.className && (d = t.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ ne.createElement("svg", qe({
1012
- stroke: "currentColor",
1013
- fill: "currentColor",
1014
- strokeWidth: "0"
1015
- }, t.attr, o, l, {
1016
- className: d,
1017
- style: He(He({
1018
- color: e.color || t.color
1019
- }, t.style), e.style),
1020
- height: c,
1021
- width: c,
1022
- xmlns: "http://www.w3.org/2000/svg"
1023
- }), i && /* @__PURE__ */ ne.createElement("title", null, i), e.children);
1024
- };
1025
- return qr !== void 0 ? /* @__PURE__ */ ne.createElement(qr.Consumer, null, (t) => r(t)) : r(vt);
1026
- }
1027
- function Wn(e) {
1028
- return Vn({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z" }, child: [] }] })(e);
1029
- }
1030
- const zn = D.p(({ lines: e = 1 }) => e > 1 ? {
1031
- overflow: "hidden",
1032
- display: "-webkit-box",
1033
- WebkitLineClamp: e,
1034
- WebkitBoxOrient: "vertical"
1035
- } : {
1036
- textOverflow: "ellipsis",
1037
- whiteSpace: "nowrap",
1038
- overflow: "hidden"
1039
- });
1040
- function Ta({
1041
- title: e,
1042
- children: r,
1043
- opened: t = !0,
1044
- hideCloseBtn: o = !1,
1045
- className: a,
1046
- close: i
1047
- }) {
1048
- const l = lt(null), { setGlobalHotkeysEnabled: c } = pt();
1049
- return dt(l, i), mt("ESCAPE_KEY", i, { disableGlobalCheck: !0 }), Er(
1050
- () => c(!t),
1051
- [t, c]
1052
- ), typeof window > "u" ? /* @__PURE__ */ k.jsx(sn, {}) : t && pn(
1053
- /* @__PURE__ */ k.jsx(Nn, { children: /* @__PURE__ */ k.jsxs(Pn, { className: a, ref: l, children: [
1054
- (!o || e) && /* @__PURE__ */ k.jsxs(An, { children: [
1055
- e && /* @__PURE__ */ k.jsx(zn, { children: e }),
1056
- !o && /* @__PURE__ */ k.jsx(
1057
- $n,
1058
- {
1059
- onClick: i,
1060
- style: { marginLeft: e ? "unset" : "auto" },
1061
- children: /* @__PURE__ */ k.jsx(Wn, { size: 20 })
1062
- }
1063
- )
1064
- ] }),
1065
- /* @__PURE__ */ k.jsx(kn, { children: r })
1066
- ] }) }),
1067
- document.body
1068
- );
1069
- }
1070
- const Oa = D.img(({ theme: e, size: r = 48 }) => {
1071
- const t = Q(e.colors.black, 0.1);
1072
- return {
1073
- height: `${r}px`,
1074
- width: `${r}px`,
1075
- borderRadius: "50%",
1076
- "&:hover": {
1077
- boxShadow: `0 1px 3px 0 ${t}, 0 1px 2px -1px ${t}`
1078
- }
1079
- };
1080
- }), Un = D.li(
1081
- ({ theme: e, active: r, danger: t }) => {
1082
- const o = t ? e.colors.red.default : e.colors.blue.default;
1083
- return {
1084
- userSelect: "none",
1085
- cursor: "pointer",
1086
- backgroundColor: r ? Q(o, 0.15) : e.colors.secondary,
1087
- padding: "10px 20px",
1088
- border: `1px solid ${r ? Q(o, 0.1) : e.colors.secondary}`,
1089
- borderBottom: `1px solid ${r ? Q(o, 0.25) : e.colors.secondary}`,
1090
- display: "flex",
1091
- gap: "0.35em",
1092
- alignItems: "center",
1093
- transition: ".075s"
1094
- };
1095
- }
1096
- ), Bn = D.ul({
1097
- padding: 0,
1098
- margin: 0,
1099
- display: "flex",
1100
- listStyle: "none"
1101
- }), Gn = D.div(({ theme: e }) => ({
1102
- zIndex: 1,
1103
- position: "relative",
1104
- border: `1px solid ${Q(e.colors.blue.default, 0.25)}`,
1105
- padding: "20px",
1106
- marginTop: "-1px"
1107
- }));
1108
- function ka({ tabs: e }) {
1109
- const [r, t] = me(0), o = (a) => {
1110
- t(a);
1111
- };
1112
- return /* @__PURE__ */ k.jsxs("div", { children: [
1113
- /* @__PURE__ */ k.jsx(Bn, { children: e.map(({ title: a, icon: i, danger: l }, c) => /* @__PURE__ */ k.jsxs(
1114
- Un,
1115
- {
1116
- active: c === r,
1117
- onClick: () => o(c),
1118
- danger: l ?? !1,
1119
- children: [
1120
- !!i && /* @__PURE__ */ k.jsx(i, { size: 20 }),
1121
- a
1122
- ]
1123
- },
1124
- c
1125
- )) }),
1126
- /* @__PURE__ */ k.jsx(Gn, { children: /* @__PURE__ */ k.jsx(_r, { children: e[r].content }) }, e[r].title)
1127
- ] });
1128
- }
1129
- function qn(e) {
1130
- if (e.sheet)
1131
- return e.sheet;
1132
- for (var r = 0; r < document.styleSheets.length; r++)
1133
- if (document.styleSheets[r].ownerNode === e)
1134
- return document.styleSheets[r];
1135
- }
1136
- function Hn(e) {
1137
- var r = document.createElement("style");
1138
- return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
1139
- }
1140
- var Kn = /* @__PURE__ */ function() {
1141
- function e(t) {
1142
- var o = this;
1143
- this._insertTag = function(a) {
1144
- var i;
1145
- o.tags.length === 0 ? o.insertionPoint ? i = o.insertionPoint.nextSibling : o.prepend ? i = o.container.firstChild : i = o.before : i = o.tags[o.tags.length - 1].nextSibling, o.container.insertBefore(a, i), o.tags.push(a);
1146
- }, this.isSpeedy = t.speedy === void 0 ? process.env.NODE_ENV === "production" : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
1147
- }
1148
- var r = e.prototype;
1149
- return r.hydrate = function(o) {
1150
- o.forEach(this._insertTag);
1151
- }, r.insert = function(o) {
1152
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Hn(this));
1153
- var a = this.tags[this.tags.length - 1];
1154
- if (process.env.NODE_ENV !== "production") {
1155
- var i = o.charCodeAt(0) === 64 && o.charCodeAt(1) === 105;
1156
- i && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
1157
- ` + o + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !i;
1158
- }
1159
- if (this.isSpeedy) {
1160
- var l = qn(a);
1161
- try {
1162
- l.insertRule(o, l.cssRules.length);
1163
- } catch (c) {
1164
- process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(o) && console.error('There was a problem inserting the following rule: "' + o + '"', c);
1165
- }
1166
- } else
1167
- a.appendChild(document.createTextNode(o));
1168
- this.ctr++;
1169
- }, r.flush = function() {
1170
- this.tags.forEach(function(o) {
1171
- return o.parentNode && o.parentNode.removeChild(o);
1172
- }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
1173
- }, e;
1174
- }(), z = "-ms-", Ke = "-moz-", S = "-webkit-", Sr = "comm", Cr = "rule", Rr = "decl", Jn = "@import", gt = "@keyframes", Zn = "@layer", Xn = Math.abs, Ze = String.fromCharCode, Qn = Object.assign;
1175
- function eo(e, r) {
1176
- return W(e, 0) ^ 45 ? (((r << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
1177
- }
1178
- function yt(e) {
1179
- return e.trim();
1180
- }
1181
- function ro(e, r) {
1182
- return (e = r.exec(e)) ? e[0] : e;
1183
- }
1184
- function C(e, r, t) {
1185
- return e.replace(r, t);
1186
- }
1187
- function hr(e, r) {
1188
- return e.indexOf(r);
1189
- }
1190
- function W(e, r) {
1191
- return e.charCodeAt(r) | 0;
1192
- }
1193
- function Oe(e, r, t) {
1194
- return e.slice(r, t);
1195
- }
1196
- function Z(e) {
1197
- return e.length;
1198
- }
1199
- function Tr(e) {
1200
- return e.length;
1201
- }
1202
- function ze(e, r) {
1203
- return r.push(e), e;
1204
- }
1205
- function to(e, r) {
1206
- return e.map(r).join("");
1207
- }
1208
- var Xe = 1, pe = 1, Et = 0, G = 0, V = 0, he = "";
1209
- function Qe(e, r, t, o, a, i, l) {
1210
- return { value: e, root: r, parent: t, type: o, props: a, children: i, line: Xe, column: pe, length: l, return: "" };
1211
- }
1212
- function Re(e, r) {
1213
- return Qn(Qe("", null, null, "", null, null, 0), e, { length: -e.length }, r);
1214
- }
1215
- function no() {
1216
- return V;
1217
- }
1218
- function oo() {
1219
- return V = G > 0 ? W(he, --G) : 0, pe--, V === 10 && (pe = 1, Xe--), V;
1220
- }
1221
- function q() {
1222
- return V = G < Et ? W(he, G++) : 0, pe++, V === 10 && (pe = 1, Xe++), V;
1223
- }
1224
- function ee() {
1225
- return W(he, G);
1226
- }
1227
- function Ue() {
1228
- return G;
1229
- }
1230
- function Ae(e, r) {
1231
- return Oe(he, e, r);
1232
- }
1233
- function ke(e) {
1234
- switch (e) {
1235
- case 0:
1236
- case 9:
1237
- case 10:
1238
- case 13:
1239
- case 32:
1240
- return 5;
1241
- case 33:
1242
- case 43:
1243
- case 44:
1244
- case 47:
1245
- case 62:
1246
- case 64:
1247
- case 126:
1248
- case 59:
1249
- case 123:
1250
- case 125:
1251
- return 4;
1252
- case 58:
1253
- return 3;
1254
- case 34:
1255
- case 39:
1256
- case 40:
1257
- case 91:
1258
- return 2;
1259
- case 41:
1260
- case 93:
1261
- return 1;
1262
- }
1263
- return 0;
1264
- }
1265
- function xt(e) {
1266
- return Xe = pe = 1, Et = Z(he = e), G = 0, [];
1267
- }
1268
- function wt(e) {
1269
- return he = "", e;
1270
- }
1271
- function Be(e) {
1272
- return yt(Ae(G - 1, vr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1273
- }
1274
- function ao(e) {
1275
- for (; (V = ee()) && V < 33; )
1276
- q();
1277
- return ke(e) > 2 || ke(V) > 3 ? "" : " ";
1278
- }
1279
- function io(e, r) {
1280
- for (; --r && q() && !(V < 48 || V > 102 || V > 57 && V < 65 || V > 70 && V < 97); )
1281
- ;
1282
- return Ae(e, Ue() + (r < 6 && ee() == 32 && q() == 32));
1283
- }
1284
- function vr(e) {
1285
- for (; q(); )
1286
- switch (V) {
1287
- case e:
1288
- return G;
1289
- case 34:
1290
- case 39:
1291
- e !== 34 && e !== 39 && vr(V);
1292
- break;
1293
- case 40:
1294
- e === 41 && vr(e);
1295
- break;
1296
- case 92:
1297
- q();
1298
- break;
1299
- }
1300
- return G;
1301
- }
1302
- function so(e, r) {
1303
- for (; q() && e + V !== 57; )
1304
- if (e + V === 84 && ee() === 47)
1305
- break;
1306
- return "/*" + Ae(r, G - 1) + "*" + Ze(e === 47 ? e : q());
1307
- }
1308
- function co(e) {
1309
- for (; !ke(ee()); )
1310
- q();
1311
- return Ae(e, G);
1312
- }
1313
- function lo(e) {
1314
- return wt(Ge("", null, null, null, [""], e = xt(e), 0, [0], e));
1315
- }
1316
- function Ge(e, r, t, o, a, i, l, c, d) {
1317
- for (var v = 0, p = 0, h = l, g = 0, j = 0, $ = 0, x = 1, M = 1, _ = 1, y = 0, A = "", I = a, u = i, Y = o, P = A; M; )
1318
- switch ($ = y, y = q()) {
1319
- case 40:
1320
- if ($ != 108 && W(P, h - 1) == 58) {
1321
- hr(P += C(Be(y), "&", "&\f"), "&\f") != -1 && (_ = -1);
1322
- break;
1323
- }
1324
- case 34:
1325
- case 39:
1326
- case 91:
1327
- P += Be(y);
1328
- break;
1329
- case 9:
1330
- case 10:
1331
- case 13:
1332
- case 32:
1333
- P += ao($);
1334
- break;
1335
- case 92:
1336
- P += io(Ue() - 1, 7);
1337
- continue;
1338
- case 47:
1339
- switch (ee()) {
1340
- case 42:
1341
- case 47:
1342
- ze(uo(so(q(), Ue()), r, t), d);
1343
- break;
1344
- default:
1345
- P += "/";
1346
- }
1347
- break;
1348
- case 123 * x:
1349
- c[v++] = Z(P) * _;
1350
- case 125 * x:
1351
- case 59:
1352
- case 0:
1353
- switch (y) {
1354
- case 0:
1355
- case 125:
1356
- M = 0;
1357
- case 59 + p:
1358
- _ == -1 && (P = C(P, /\f/g, "")), j > 0 && Z(P) - h && ze(j > 32 ? Jr(P + ";", o, t, h - 1) : Jr(C(P, " ", "") + ";", o, t, h - 2), d);
1359
- break;
1360
- case 59:
1361
- P += ";";
1362
- default:
1363
- if (ze(Y = Kr(P, r, t, v, p, a, c, A, I = [], u = [], h), i), y === 123)
1364
- if (p === 0)
1365
- Ge(P, r, Y, Y, I, i, h, c, u);
1366
- else
1367
- switch (g === 99 && W(P, 3) === 110 ? 100 : g) {
1368
- case 100:
1369
- case 108:
1370
- case 109:
1371
- case 115:
1372
- Ge(e, Y, Y, o && ze(Kr(e, Y, Y, 0, 0, a, c, A, a, I = [], h), u), a, u, h, c, o ? I : u);
1373
- break;
1374
- default:
1375
- Ge(P, Y, Y, Y, [""], u, 0, c, u);
1376
- }
1377
- }
1378
- v = p = j = 0, x = _ = 1, A = P = "", h = l;
1379
- break;
1380
- case 58:
1381
- h = 1 + Z(P), j = $;
1382
- default:
1383
- if (x < 1) {
1384
- if (y == 123)
1385
- --x;
1386
- else if (y == 125 && x++ == 0 && oo() == 125)
1387
- continue;
1388
- }
1389
- switch (P += Ze(y), y * x) {
1390
- case 38:
1391
- _ = p > 0 ? 1 : (P += "\f", -1);
1392
- break;
1393
- case 44:
1394
- c[v++] = (Z(P) - 1) * _, _ = 1;
1395
- break;
1396
- case 64:
1397
- ee() === 45 && (P += Be(q())), g = ee(), p = h = Z(A = P += co(Ue())), y++;
1398
- break;
1399
- case 45:
1400
- $ === 45 && Z(P) == 2 && (x = 0);
1401
- }
1402
- }
1403
- return i;
1404
- }
1405
- function Kr(e, r, t, o, a, i, l, c, d, v, p) {
1406
- for (var h = a - 1, g = a === 0 ? i : [""], j = Tr(g), $ = 0, x = 0, M = 0; $ < o; ++$)
1407
- for (var _ = 0, y = Oe(e, h + 1, h = Xn(x = l[$])), A = e; _ < j; ++_)
1408
- (A = yt(x > 0 ? g[_] + " " + y : C(y, /&\f/g, g[_]))) && (d[M++] = A);
1409
- return Qe(e, r, t, a === 0 ? Cr : c, d, v, p);
1410
- }
1411
- function uo(e, r, t) {
1412
- return Qe(e, r, t, Sr, Ze(no()), Oe(e, 2, -2), 0);
1413
- }
1414
- function Jr(e, r, t, o) {
1415
- return Qe(e, r, t, Rr, Oe(e, 0, o), Oe(e, o + 1, -1), o);
1416
- }
1417
- function de(e, r) {
1418
- for (var t = "", o = Tr(e), a = 0; a < o; a++)
1419
- t += r(e[a], a, e, r) || "";
1420
- return t;
1421
- }
1422
- function fo(e, r, t, o) {
1423
- switch (e.type) {
1424
- case Zn:
1425
- if (e.children.length) break;
1426
- case Jn:
1427
- case Rr:
1428
- return e.return = e.return || e.value;
1429
- case Sr:
1430
- return "";
1431
- case gt:
1432
- return e.return = e.value + "{" + de(e.children, o) + "}";
1433
- case Cr:
1434
- e.value = e.props.join(",");
1435
- }
1436
- return Z(t = de(e.children, o)) ? e.return = e.value + "{" + t + "}" : "";
1437
- }
1438
- function po(e) {
1439
- var r = Tr(e);
1440
- return function(t, o, a, i) {
1441
- for (var l = "", c = 0; c < r; c++)
1442
- l += e[c](t, o, a, i) || "";
1443
- return l;
1444
- };
1445
- }
1446
- function mo(e) {
1447
- return function(r) {
1448
- r.root || (r = r.return) && e(r);
1449
- };
1450
- }
1451
- function ho(e) {
1452
- var r = /* @__PURE__ */ Object.create(null);
1453
- return function(t) {
1454
- return r[t] === void 0 && (r[t] = e(t)), r[t];
1455
- };
1456
- }
1457
- var vo = function(r, t, o) {
1458
- for (var a = 0, i = 0; a = i, i = ee(), a === 38 && i === 12 && (t[o] = 1), !ke(i); )
1459
- q();
1460
- return Ae(r, G);
1461
- }, bo = function(r, t) {
1462
- var o = -1, a = 44;
1463
- do
1464
- switch (ke(a)) {
1465
- case 0:
1466
- a === 38 && ee() === 12 && (t[o] = 1), r[o] += vo(G - 1, t, o);
1467
- break;
1468
- case 2:
1469
- r[o] += Be(a);
1470
- break;
1471
- case 4:
1472
- if (a === 44) {
1473
- r[++o] = ee() === 58 ? "&\f" : "", t[o] = r[o].length;
1474
- break;
1475
- }
1476
- default:
1477
- r[o] += Ze(a);
1478
- }
1479
- while (a = q());
1480
- return r;
1481
- }, go = function(r, t) {
1482
- return wt(bo(xt(r), t));
1483
- }, Zr = /* @__PURE__ */ new WeakMap(), yo = function(r) {
1484
- if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
1485
- // negative .length indicates that this rule has been already prefixed
1486
- r.length < 1)) {
1487
- for (var t = r.value, o = r.parent, a = r.column === o.column && r.line === o.line; o.type !== "rule"; )
1488
- if (o = o.parent, !o) return;
1489
- if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Zr.get(o)) && !a) {
1490
- Zr.set(r, !0);
1491
- for (var i = [], l = go(t, i), c = o.props, d = 0, v = 0; d < l.length; d++)
1492
- for (var p = 0; p < c.length; p++, v++)
1493
- r.props[v] = i[d] ? l[d].replace(/&\f/g, c[p]) : c[p] + " " + l[d];
1494
- }
1495
- }
1496
- }, Eo = function(r) {
1497
- if (r.type === "decl") {
1498
- var t = r.value;
1499
- // charcode for l
1500
- t.charCodeAt(0) === 108 && // charcode for b
1501
- t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
1502
- }
1503
- }, xo = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", wo = function(r) {
1504
- return r.type === "comm" && r.children.indexOf(xo) > -1;
1505
- }, _o = function(r) {
1506
- return function(t, o, a) {
1507
- if (!(t.type !== "rule" || r.compat)) {
1508
- var i = t.value.match(/(:first|:nth|:nth-last)-child/g);
1509
- if (i) {
1510
- for (var l = !!t.parent, c = l ? t.parent.children : (
1511
- // global rule at the root level
1512
- a
1513
- ), d = c.length - 1; d >= 0; d--) {
1514
- var v = c[d];
1515
- if (v.line < t.line)
1516
- break;
1517
- if (v.column < t.column) {
1518
- if (wo(v))
1519
- return;
1520
- break;
1521
- }
1522
- }
1523
- i.forEach(function(p) {
1524
- console.error('The pseudo class "' + p + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + p.split("-child")[0] + '-of-type".');
1525
- });
1526
- }
1527
- }
1528
- };
1529
- }, _t = function(r) {
1530
- return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;
1531
- }, So = function(r, t) {
1532
- for (var o = r - 1; o >= 0; o--)
1533
- if (!_t(t[o]))
1534
- return !0;
1535
- return !1;
1536
- }, Xr = function(r) {
1537
- r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
1538
- }, Co = function(r, t, o) {
1539
- _t(r) && (r.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), Xr(r)) : So(t, o) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), Xr(r)));
1540
- };
1541
- function St(e, r) {
1542
- switch (eo(e, r)) {
1543
- case 5103:
1544
- return S + "print-" + e + e;
1545
- case 5737:
1546
- case 4201:
1547
- case 3177:
1548
- case 3433:
1549
- case 1641:
1550
- case 4457:
1551
- case 2921:
1552
- case 5572:
1553
- case 6356:
1554
- case 5844:
1555
- case 3191:
1556
- case 6645:
1557
- case 3005:
1558
- case 6391:
1559
- case 5879:
1560
- case 5623:
1561
- case 6135:
1562
- case 4599:
1563
- case 4855:
1564
- case 4215:
1565
- case 6389:
1566
- case 5109:
1567
- case 5365:
1568
- case 5621:
1569
- case 3829:
1570
- return S + e + e;
1571
- case 5349:
1572
- case 4246:
1573
- case 4810:
1574
- case 6968:
1575
- case 2756:
1576
- return S + e + Ke + e + z + e + e;
1577
- case 6828:
1578
- case 4268:
1579
- return S + e + z + e + e;
1580
- case 6165:
1581
- return S + e + z + "flex-" + e + e;
1582
- case 5187:
1583
- return S + e + C(e, /(\w+).+(:[^]+)/, S + "box-$1$2" + z + "flex-$1$2") + e;
1584
- case 5443:
1585
- return S + e + z + "flex-item-" + C(e, /flex-|-self/, "") + e;
1586
- case 4675:
1587
- return S + e + z + "flex-line-pack" + C(e, /align-content|flex-|-self/, "") + e;
1588
- case 5548:
1589
- return S + e + z + C(e, "shrink", "negative") + e;
1590
- case 5292:
1591
- return S + e + z + C(e, "basis", "preferred-size") + e;
1592
- case 6060:
1593
- return S + "box-" + C(e, "-grow", "") + S + e + z + C(e, "grow", "positive") + e;
1594
- case 4554:
1595
- return S + C(e, /([^-])(transform)/g, "$1" + S + "$2") + e;
1596
- case 6187:
1597
- return C(C(C(e, /(zoom-|grab)/, S + "$1"), /(image-set)/, S + "$1"), e, "") + e;
1598
- case 5495:
1599
- case 3959:
1600
- return C(e, /(image-set\([^]*)/, S + "$1$`$1");
1601
- case 4968:
1602
- return C(C(e, /(.+:)(flex-)?(.*)/, S + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + S + e + e;
1603
- case 4095:
1604
- case 3583:
1605
- case 4068:
1606
- case 2532:
1607
- return C(e, /(.+)-inline(.+)/, S + "$1$2") + e;
1608
- case 8116:
1609
- case 7059:
1610
- case 5753:
1611
- case 5535:
1612
- case 5445:
1613
- case 5701:
1614
- case 4933:
1615
- case 4677:
1616
- case 5533:
1617
- case 5789:
1618
- case 5021:
1619
- case 4765:
1620
- if (Z(e) - 1 - r > 6) switch (W(e, r + 1)) {
1621
- case 109:
1622
- if (W(e, r + 4) !== 45) break;
1623
- case 102:
1624
- return C(e, /(.+:)(.+)-([^]+)/, "$1" + S + "$2-$3$1" + Ke + (W(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
1625
- case 115:
1626
- return ~hr(e, "stretch") ? St(C(e, "stretch", "fill-available"), r) + e : e;
1627
- }
1628
- break;
1629
- case 4949:
1630
- if (W(e, r + 1) !== 115) break;
1631
- case 6444:
1632
- switch (W(e, Z(e) - 3 - (~hr(e, "!important") && 10))) {
1633
- case 107:
1634
- return C(e, ":", ":" + S) + e;
1635
- case 101:
1636
- return C(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + S + (W(e, 14) === 45 ? "inline-" : "") + "box$3$1" + S + "$2$3$1" + z + "$2box$3") + e;
1637
- }
1638
- break;
1639
- case 5936:
1640
- switch (W(e, r + 11)) {
1641
- case 114:
1642
- return S + e + z + C(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1643
- case 108:
1644
- return S + e + z + C(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1645
- case 45:
1646
- return S + e + z + C(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1647
- }
1648
- return S + e + z + e + e;
1649
- }
1650
- return e;
1651
- }
1652
- var Ro = function(r, t, o, a) {
1653
- if (r.length > -1 && !r.return) switch (r.type) {
1654
- case Rr:
1655
- r.return = St(r.value, r.length);
1656
- break;
1657
- case gt:
1658
- return de([Re(r, {
1659
- value: C(r.value, "@", "@" + S)
1660
- })], a);
1661
- case Cr:
1662
- if (r.length) return to(r.props, function(i) {
1663
- switch (ro(i, /(::plac\w+|:read-\w+)/)) {
1664
- case ":read-only":
1665
- case ":read-write":
1666
- return de([Re(r, {
1667
- props: [C(i, /:(read-\w+)/, ":" + Ke + "$1")]
1668
- })], a);
1669
- case "::placeholder":
1670
- return de([Re(r, {
1671
- props: [C(i, /:(plac\w+)/, ":" + S + "input-$1")]
1672
- }), Re(r, {
1673
- props: [C(i, /:(plac\w+)/, ":" + Ke + "$1")]
1674
- }), Re(r, {
1675
- props: [C(i, /:(plac\w+)/, z + "input-$1")]
1676
- })], a);
1677
- }
1678
- return "";
1679
- });
1680
- }
1681
- }, To = [Ro], Oo = function(r) {
1682
- var t = r.key;
1683
- if (process.env.NODE_ENV !== "production" && !t)
1684
- throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
1685
- If multiple caches share the same key they might "fight" for each other's style elements.`);
1686
- if (t === "css") {
1687
- var o = document.querySelectorAll("style[data-emotion]:not([data-s])");
1688
- Array.prototype.forEach.call(o, function(x) {
1689
- var M = x.getAttribute("data-emotion");
1690
- M.indexOf(" ") !== -1 && (document.head.appendChild(x), x.setAttribute("data-s", ""));
1691
- });
1692
- }
1693
- var a = r.stylisPlugins || To;
1694
- if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(t))
1695
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + t + '" was passed');
1696
- var i = {}, l, c = [];
1697
- l = r.container || document.head, Array.prototype.forEach.call(
1698
- // this means we will ignore elements which don't have a space in them which
1699
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1700
- document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
1701
- function(x) {
1702
- for (var M = x.getAttribute("data-emotion").split(" "), _ = 1; _ < M.length; _++)
1703
- i[M[_]] = !0;
1704
- c.push(x);
1705
- }
1706
- );
1707
- var d, v = [yo, Eo];
1708
- process.env.NODE_ENV !== "production" && v.push(_o({
1709
- get compat() {
1710
- return $.compat;
1711
- }
1712
- }), Co);
1713
- {
1714
- var p, h = [fo, process.env.NODE_ENV !== "production" ? function(x) {
1715
- x.root || (x.return ? p.insert(x.return) : x.value && x.type !== Sr && p.insert(x.value + "{}"));
1716
- } : mo(function(x) {
1717
- p.insert(x);
1718
- })], g = po(v.concat(a, h)), j = function(M) {
1719
- return de(lo(M), g);
1720
- };
1721
- d = function(M, _, y, A) {
1722
- p = y, process.env.NODE_ENV !== "production" && _.map !== void 0 && (p = {
1723
- insert: function(u) {
1724
- y.insert(u + _.map);
1725
- }
1726
- }), j(M ? M + "{" + _.styles + "}" : _.styles), A && ($.inserted[_.name] = !0);
1727
- };
1728
- }
1729
- var $ = {
1730
- key: t,
1731
- sheet: new Kn({
1732
- key: t,
1733
- container: l,
1734
- nonce: r.nonce,
1735
- speedy: r.speedy,
1736
- prepend: r.prepend,
1737
- insertionPoint: r.insertionPoint
1738
- }),
1739
- nonce: r.nonce,
1740
- inserted: i,
1741
- registered: {},
1742
- insert: d
1743
- };
1744
- return $.sheet.hydrate(c), $;
1745
- }, br = { exports: {} }, T = {};
1746
- /** @license React v16.13.1
1747
- * react-is.production.min.js
1748
- *
1749
- * Copyright (c) Facebook, Inc. and its affiliates.
1750
- *
1751
- * This source code is licensed under the MIT license found in the
1752
- * LICENSE file in the root directory of this source tree.
1753
- */
1754
- var Qr;
1755
- function ko() {
1756
- if (Qr) return T;
1757
- Qr = 1;
1758
- var e = typeof Symbol == "function" && Symbol.for, r = 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, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, j = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
1759
- function A(u) {
1760
- if (typeof u == "object" && u !== null) {
1761
- var Y = u.$$typeof;
1762
- switch (Y) {
1763
- case r:
1764
- switch (u = u.type, u) {
1765
- case d:
1766
- case v:
1767
- case o:
1768
- case i:
1769
- case a:
1770
- case h:
1771
- return u;
1772
- default:
1773
- switch (u = u && u.$$typeof, u) {
1774
- case c:
1775
- case p:
1776
- case $:
1777
- case j:
1778
- case l:
1779
- return u;
1780
- default:
1781
- return Y;
1782
- }
1783
- }
1784
- case t:
1785
- return Y;
1786
- }
1787
- }
1788
- }
1789
- function I(u) {
1790
- return A(u) === v;
1791
- }
1792
- return T.AsyncMode = d, T.ConcurrentMode = v, T.ContextConsumer = c, T.ContextProvider = l, T.Element = r, T.ForwardRef = p, T.Fragment = o, T.Lazy = $, T.Memo = j, T.Portal = t, T.Profiler = i, T.StrictMode = a, T.Suspense = h, T.isAsyncMode = function(u) {
1793
- return I(u) || A(u) === d;
1794
- }, T.isConcurrentMode = I, T.isContextConsumer = function(u) {
1795
- return A(u) === c;
1796
- }, T.isContextProvider = function(u) {
1797
- return A(u) === l;
1798
- }, T.isElement = function(u) {
1799
- return typeof u == "object" && u !== null && u.$$typeof === r;
1800
- }, T.isForwardRef = function(u) {
1801
- return A(u) === p;
1802
- }, T.isFragment = function(u) {
1803
- return A(u) === o;
1804
- }, T.isLazy = function(u) {
1805
- return A(u) === $;
1806
- }, T.isMemo = function(u) {
1807
- return A(u) === j;
1808
- }, T.isPortal = function(u) {
1809
- return A(u) === t;
1810
- }, T.isProfiler = function(u) {
1811
- return A(u) === i;
1812
- }, T.isStrictMode = function(u) {
1813
- return A(u) === a;
1814
- }, T.isSuspense = function(u) {
1815
- return A(u) === h;
1816
- }, T.isValidElementType = function(u) {
1817
- return typeof u == "string" || typeof u == "function" || u === o || u === v || u === i || u === a || u === h || u === g || typeof u == "object" && u !== null && (u.$$typeof === $ || u.$$typeof === j || u.$$typeof === l || u.$$typeof === c || u.$$typeof === p || u.$$typeof === M || u.$$typeof === _ || u.$$typeof === y || u.$$typeof === x);
1818
- }, T.typeOf = A, T;
1819
- }
1820
- var O = {};
1821
- /** @license React v16.13.1
1822
- * react-is.development.js
1823
- *
1824
- * Copyright (c) Facebook, Inc. and its affiliates.
1825
- *
1826
- * This source code is licensed under the MIT license found in the
1827
- * LICENSE file in the root directory of this source tree.
1828
- */
1829
- var et;
1830
- function Po() {
1831
- return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
1832
- var e = typeof Symbol == "function" && Symbol.for, r = 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, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, j = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
1833
- function A(m) {
1834
- return typeof m == "string" || typeof m == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1835
- m === o || m === v || m === i || m === a || m === h || m === g || typeof m == "object" && m !== null && (m.$$typeof === $ || m.$$typeof === j || m.$$typeof === l || m.$$typeof === c || m.$$typeof === p || m.$$typeof === M || m.$$typeof === _ || m.$$typeof === y || m.$$typeof === x);
1836
- }
1837
- function I(m) {
1838
- if (typeof m == "object" && m !== null) {
1839
- var xe = m.$$typeof;
1840
- switch (xe) {
1841
- case r:
1842
- var le = m.type;
1843
- switch (le) {
1844
- case d:
1845
- case v:
1846
- case o:
1847
- case i:
1848
- case a:
1849
- case h:
1850
- return le;
1851
- default:
1852
- var ae = le && le.$$typeof;
1853
- switch (ae) {
1854
- case c:
1855
- case p:
1856
- case $:
1857
- case j:
1858
- case l:
1859
- return ae;
1860
- default:
1861
- return xe;
1862
- }
1863
- }
1864
- case t:
1865
- return xe;
1866
- }
1867
- }
1868
- }
1869
- var u = d, Y = v, P = c, rr = l, $e = r, tr = p, nr = o, Ne = $, H = j, re = t, oe = i, je = a, Ie = h, ve = !1;
1870
- function De(m) {
1871
- return ve || (ve = !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.")), be(m) || I(m) === d;
1872
- }
1873
- function be(m) {
1874
- return I(m) === v;
1875
- }
1876
- function Fe(m) {
1877
- return I(m) === c;
1878
- }
1879
- function Me(m) {
1880
- return I(m) === l;
1881
- }
1882
- function Le(m) {
1883
- return typeof m == "object" && m !== null && m.$$typeof === r;
1884
- }
1885
- function or(m) {
1886
- return I(m) === p;
1887
- }
1888
- function ar(m) {
1889
- return I(m) === o;
1890
- }
1891
- function ge(m) {
1892
- return I(m) === $;
1893
- }
1894
- function ye(m) {
1895
- return I(m) === j;
1896
- }
1897
- function se(m) {
1898
- return I(m) === t;
1899
- }
1900
- function Ee(m) {
1901
- return I(m) === i;
1902
- }
1903
- function ce(m) {
1904
- return I(m) === a;
1905
- }
1906
- function ir(m) {
1907
- return I(m) === h;
1908
- }
1909
- O.AsyncMode = u, O.ConcurrentMode = Y, O.ContextConsumer = P, O.ContextProvider = rr, O.Element = $e, O.ForwardRef = tr, O.Fragment = nr, O.Lazy = Ne, O.Memo = H, O.Portal = re, O.Profiler = oe, O.StrictMode = je, O.Suspense = Ie, O.isAsyncMode = De, O.isConcurrentMode = be, O.isContextConsumer = Fe, O.isContextProvider = Me, O.isElement = Le, O.isForwardRef = or, O.isFragment = ar, O.isLazy = ge, O.isMemo = ye, O.isPortal = se, O.isProfiler = Ee, O.isStrictMode = ce, O.isSuspense = ir, O.isValidElementType = A, O.typeOf = I;
1910
- }()), O;
1911
- }
1912
- process.env.NODE_ENV === "production" ? br.exports = ko() : br.exports = Po();
1913
- var Ao = br.exports, Ct = Ao, $o = {
1914
- $$typeof: !0,
1915
- render: !0,
1916
- defaultProps: !0,
1917
- displayName: !0,
1918
- propTypes: !0
1919
- }, No = {
1920
- $$typeof: !0,
1921
- compare: !0,
1922
- defaultProps: !0,
1923
- displayName: !0,
1924
- propTypes: !0,
1925
- type: !0
1926
- }, Rt = {};
1927
- Rt[Ct.ForwardRef] = $o;
1928
- Rt[Ct.Memo] = No;
1929
- var jo = !0;
1930
- function Io(e, r, t) {
1931
- var o = "";
1932
- return t.split(" ").forEach(function(a) {
1933
- e[a] !== void 0 ? r.push(e[a] + ";") : o += a + " ";
1934
- }), o;
1935
- }
1936
- var Tt = function(r, t, o) {
1937
- var a = r.key + "-" + t.name;
1938
- // we only need to add the styles to the registered cache if the
1939
- // class name could be used further down
1940
- // the tree but if it's a string tag, we know it won't
1941
- // so we don't have to add it to registered cache.
1942
- // this improves memory usage since we can avoid storing the whole style string
1943
- (o === !1 || // we need to always store it if we're in compat mode and
1944
- // in node since emotion-server relies on whether a style is in
1945
- // the registered cache to know whether a style is global or not
1946
- // also, note that this check will be dead code eliminated in the browser
1947
- jo === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
1948
- }, Do = function(r, t, o) {
1949
- Tt(r, t, o);
1950
- var a = r.key + "-" + t.name;
1951
- if (r.inserted[t.name] === void 0) {
1952
- var i = t;
1953
- do
1954
- r.insert(t === i ? "." + a : "", i, r.sheet, !0), i = i.next;
1955
- while (i !== void 0);
1956
- }
1957
- };
1958
- function Fo(e) {
1959
- for (var r = 0, t, o = 0, a = e.length; a >= 4; ++o, a -= 4)
1960
- t = e.charCodeAt(o) & 255 | (e.charCodeAt(++o) & 255) << 8 | (e.charCodeAt(++o) & 255) << 16 | (e.charCodeAt(++o) & 255) << 24, t = /* Math.imul(k, m): */
1961
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
1962
- t >>> 24, r = /* Math.imul(k, m): */
1963
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1964
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
1965
- switch (a) {
1966
- case 3:
1967
- r ^= (e.charCodeAt(o + 2) & 255) << 16;
1968
- case 2:
1969
- r ^= (e.charCodeAt(o + 1) & 255) << 8;
1970
- case 1:
1971
- r ^= e.charCodeAt(o) & 255, r = /* Math.imul(h, m): */
1972
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
1973
- }
1974
- return r ^= r >>> 13, r = /* Math.imul(h, m): */
1975
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
1976
- }
1977
- var Mo = {
1978
- animationIterationCount: 1,
1979
- aspectRatio: 1,
1980
- borderImageOutset: 1,
1981
- borderImageSlice: 1,
1982
- borderImageWidth: 1,
1983
- boxFlex: 1,
1984
- boxFlexGroup: 1,
1985
- boxOrdinalGroup: 1,
1986
- columnCount: 1,
1987
- columns: 1,
1988
- flex: 1,
1989
- flexGrow: 1,
1990
- flexPositive: 1,
1991
- flexShrink: 1,
1992
- flexNegative: 1,
1993
- flexOrder: 1,
1994
- gridRow: 1,
1995
- gridRowEnd: 1,
1996
- gridRowSpan: 1,
1997
- gridRowStart: 1,
1998
- gridColumn: 1,
1999
- gridColumnEnd: 1,
2000
- gridColumnSpan: 1,
2001
- gridColumnStart: 1,
2002
- msGridRow: 1,
2003
- msGridRowSpan: 1,
2004
- msGridColumn: 1,
2005
- msGridColumnSpan: 1,
2006
- fontWeight: 1,
2007
- lineHeight: 1,
2008
- opacity: 1,
2009
- order: 1,
2010
- orphans: 1,
2011
- tabSize: 1,
2012
- widows: 1,
2013
- zIndex: 1,
2014
- zoom: 1,
2015
- WebkitLineClamp: 1,
2016
- // SVG-related properties
2017
- fillOpacity: 1,
2018
- floodOpacity: 1,
2019
- stopOpacity: 1,
2020
- strokeDasharray: 1,
2021
- strokeDashoffset: 1,
2022
- strokeMiterlimit: 1,
2023
- strokeOpacity: 1,
2024
- strokeWidth: 1
2025
- }, rt = `You have illegal escape sequence in your template literal, most likely inside content's property value.
2026
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
2027
- You can read more about this here:
2028
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, Lo = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Vo = /[A-Z]|^ms/g, Ot = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Or = function(r) {
2029
- return r.charCodeAt(1) === 45;
2030
- }, tt = function(r) {
2031
- return r != null && typeof r != "boolean";
2032
- }, pr = /* @__PURE__ */ ho(function(e) {
2033
- return Or(e) ? e : e.replace(Vo, "-$&").toLowerCase();
2034
- }), Je = function(r, t) {
2035
- switch (r) {
2036
- case "animation":
2037
- case "animationName":
2038
- if (typeof t == "string")
2039
- return t.replace(Ot, function(o, a, i) {
2040
- return J = {
2041
- name: a,
2042
- styles: i,
2043
- next: J
2044
- }, a;
2045
- });
2046
- }
2047
- return Mo[r] !== 1 && !Or(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
2048
- };
2049
- if (process.env.NODE_ENV !== "production") {
2050
- var Yo = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Wo = ["normal", "none", "initial", "inherit", "unset"], zo = Je, Uo = /^-ms-/, Bo = /-(.)/g, nt = {};
2051
- Je = function(r, t) {
2052
- if (r === "content" && (typeof t != "string" || Wo.indexOf(t) === -1 && !Yo.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")))
2053
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + t + "\"'`");
2054
- var o = zo(r, t);
2055
- return o !== "" && !Or(r) && r.indexOf("-") !== -1 && nt[r] === void 0 && (nt[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace(Uo, "ms-").replace(Bo, function(a, i) {
2056
- return i.toUpperCase();
2057
- }) + "?")), o;
2058
- };
2059
- }
2060
- var kt = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
2061
- function Pe(e, r, t) {
2062
- if (t == null)
2063
- return "";
2064
- if (t.__emotion_styles !== void 0) {
2065
- if (process.env.NODE_ENV !== "production" && t.toString() === "NO_COMPONENT_SELECTOR")
2066
- throw new Error(kt);
2067
- return t;
2068
- }
2069
- switch (typeof t) {
2070
- case "boolean":
2071
- return "";
2072
- case "object": {
2073
- if (t.anim === 1)
2074
- return J = {
2075
- name: t.name,
2076
- styles: t.styles,
2077
- next: J
2078
- }, t.name;
2079
- if (t.styles !== void 0) {
2080
- var o = t.next;
2081
- if (o !== void 0)
2082
- for (; o !== void 0; )
2083
- J = {
2084
- name: o.name,
2085
- styles: o.styles,
2086
- next: J
2087
- }, o = o.next;
2088
- var a = t.styles + ";";
2089
- return process.env.NODE_ENV !== "production" && t.map !== void 0 && (a += t.map), a;
2090
- }
2091
- return Go(e, r, t);
2092
- }
2093
- case "function": {
2094
- if (e !== void 0) {
2095
- var i = J, l = t(e);
2096
- return J = i, Pe(e, r, l);
2097
- } else process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
2098
- break;
2099
- }
2100
- case "string":
2101
- if (process.env.NODE_ENV !== "production") {
2102
- var c = [], d = t.replace(Ot, function(v, p, h) {
2103
- var g = "animation" + c.length;
2104
- return c.push("const " + g + " = keyframes`" + h.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + g + "}";
2105
- });
2106
- c.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(c, ["`" + d + "`"]).join(`
2107
- `) + `
2108
-
2109
- You should wrap it with \`css\` like this:
2110
-
2111
- ` + ("css`" + d + "`"));
2112
- }
2113
- break;
2114
- }
2115
- return t;
2116
- }
2117
- function Go(e, r, t) {
2118
- var o = "";
2119
- if (Array.isArray(t))
2120
- for (var a = 0; a < t.length; a++)
2121
- o += Pe(e, r, t[a]) + ";";
2122
- else
2123
- for (var i in t) {
2124
- var l = t[i];
2125
- if (typeof l != "object")
2126
- tt(l) && (o += pr(i) + ":" + Je(i, l) + ";");
2127
- else {
2128
- if (i === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
2129
- throw new Error(kt);
2130
- if (Array.isArray(l) && typeof l[0] == "string" && r == null)
2131
- for (var c = 0; c < l.length; c++)
2132
- tt(l[c]) && (o += pr(i) + ":" + Je(i, l[c]) + ";");
2133
- else {
2134
- var d = Pe(e, r, l);
2135
- switch (i) {
2136
- case "animation":
2137
- case "animationName": {
2138
- o += pr(i) + ":" + d + ";";
2139
- break;
2140
- }
2141
- default:
2142
- process.env.NODE_ENV !== "production" && i === "undefined" && console.error(Lo), o += i + "{" + d + "}";
2143
- }
2144
- }
2145
- }
2146
- }
2147
- return o;
2148
- }
2149
- var ot = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Pt;
2150
- process.env.NODE_ENV !== "production" && (Pt = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
2151
- var J, at = function(r, t, o) {
2152
- if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
2153
- return r[0];
2154
- var a = !0, i = "";
2155
- J = void 0;
2156
- var l = r[0];
2157
- l == null || l.raw === void 0 ? (a = !1, i += Pe(o, t, l)) : (process.env.NODE_ENV !== "production" && l[0] === void 0 && console.error(rt), i += l[0]);
2158
- for (var c = 1; c < r.length; c++)
2159
- i += Pe(o, t, r[c]), a && (process.env.NODE_ENV !== "production" && l[c] === void 0 && console.error(rt), i += l[c]);
2160
- var d;
2161
- process.env.NODE_ENV !== "production" && (i = i.replace(Pt, function(g) {
2162
- return d = g, "";
2163
- })), ot.lastIndex = 0;
2164
- for (var v = "", p; (p = ot.exec(i)) !== null; )
2165
- v += "-" + // $FlowFixMe we know it's not null
2166
- p[1];
2167
- var h = Fo(i) + v;
2168
- return process.env.NODE_ENV !== "production" ? {
2169
- name: h,
2170
- styles: i,
2171
- map: d,
2172
- next: J,
2173
- toString: function() {
2174
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2175
- }
2176
- } : {
2177
- name: h,
2178
- styles: i,
2179
- next: J
2180
- };
2181
- }, qo = function(r) {
2182
- return r();
2183
- }, Ho = te.useInsertionEffect ? te.useInsertionEffect : !1, Ko = Ho || qo, er = {}.hasOwnProperty, kr = /* @__PURE__ */ te.createContext(
2184
- // we're doing this to avoid preconstruct's dead code elimination in this one case
2185
- // because this module is primarily intended for the browser and node
2186
- // but it's also required in react native and similar environments sometimes
2187
- // and we could have a special build just for that
2188
- // but this is much easier and the native packages
2189
- // might use a different theme context in the future anyway
2190
- typeof HTMLElement < "u" ? /* @__PURE__ */ Oo({
2191
- key: "css"
2192
- }) : null
2193
- );
2194
- process.env.NODE_ENV !== "production" && (kr.displayName = "EmotionCacheContext");
2195
- kr.Provider;
2196
- var Jo = function(r) {
2197
- return /* @__PURE__ */ cn(function(t, o) {
2198
- var a = xr(kr);
2199
- return r(t, a, o);
2200
- });
2201
- }, At = /* @__PURE__ */ te.createContext({});
2202
- process.env.NODE_ENV !== "production" && (At.displayName = "EmotionThemeContext");
2203
- var it = function(r) {
2204
- var t = r.split(".");
2205
- return t[t.length - 1];
2206
- }, Zo = function(r) {
2207
- var t = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);
2208
- if (t || (t = /^([A-Za-z0-9$.]+)@/.exec(r), t)) return it(t[1]);
2209
- }, Xo = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), Qo = function(r) {
2210
- return r.replace(/\$/g, "-");
2211
- }, ea = function(r) {
2212
- if (r)
2213
- for (var t = r.split(`
2214
- `), o = 0; o < t.length; o++) {
2215
- var a = Zo(t[o]);
2216
- if (a) {
2217
- if (Xo.has(a)) break;
2218
- if (/^[A-Z]/.test(a)) return Qo(a);
2219
- }
2220
- }
2221
- }, gr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", yr = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", $t = function(r, t) {
2222
- if (process.env.NODE_ENV !== "production" && typeof t.css == "string" && // check if there is a css declaration
2223
- t.css.indexOf(":") !== -1)
2224
- throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + t.css + "`");
2225
- var o = {};
2226
- for (var a in t)
2227
- er.call(t, a) && (o[a] = t[a]);
2228
- if (o[gr] = r, process.env.NODE_ENV !== "production" && t.css && (typeof t.css != "object" || typeof t.css.name != "string" || t.css.name.indexOf("-") === -1)) {
2229
- var i = ea(new Error().stack);
2230
- i && (o[yr] = i);
2231
- }
2232
- return o;
2233
- }, ra = function(r) {
2234
- var t = r.cache, o = r.serialized, a = r.isStringTag;
2235
- return Tt(t, o, a), Ko(function() {
2236
- return Do(t, o, a);
2237
- }), null;
2238
- }, Nt = /* @__PURE__ */ Jo(function(e, r, t) {
2239
- var o = e.css;
2240
- typeof o == "string" && r.registered[o] !== void 0 && (o = r.registered[o]);
2241
- var a = e[gr], i = [o], l = "";
2242
- typeof e.className == "string" ? l = Io(r.registered, i, e.className) : e.className != null && (l = e.className + " ");
2243
- var c = at(i, void 0, te.useContext(At));
2244
- if (process.env.NODE_ENV !== "production" && c.name.indexOf("-") === -1) {
2245
- var d = e[yr];
2246
- d && (c = at([c, "label:" + d + ";"]));
2247
- }
2248
- l += r.key + "-" + c.name;
2249
- var v = {};
2250
- for (var p in e)
2251
- er.call(e, p) && p !== "css" && p !== gr && (process.env.NODE_ENV === "production" || p !== yr) && (v[p] = e[p]);
2252
- return v.ref = t, v.className = l, /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(ra, {
2253
- cache: r,
2254
- serialized: c,
2255
- isStringTag: typeof a == "string"
2256
- }), /* @__PURE__ */ te.createElement(a, v));
2257
- });
2258
- process.env.NODE_ENV !== "production" && (Nt.displayName = "EmotionCssPropInternal");
2259
- var jt = Nt;
2260
- function Te(e, r, t) {
2261
- return er.call(r, "css") ? k.jsx(jt, $t(e, r), t) : k.jsx(e, r, t);
2262
- }
2263
- function It(e, r, t) {
2264
- return er.call(r, "css") ? k.jsxs(jt, $t(e, r), t) : k.jsxs(e, r, t);
2265
- }
2266
- const Pr = D("div", {
2267
- shouldForwardProp: (e) => e !== "required" && e !== "inline" && e !== "reverse"
2268
- })(({ theme: e, required: r, inline: t, reverse: o }) => ({
2269
- display: "flex",
2270
- gap: "0.25em",
2271
- alignItems: t ? "center" : "flex-start",
2272
- flexDirection: `${t ? "row" : "column"}${o ? "-reverse" : ""}`,
2273
- "& label": {
2274
- position: "relative",
2275
- userSelect: "none",
2276
- width: "fit-content"
2277
- },
2278
- "& label::after": {
2279
- position: "absolute",
2280
- top: 0,
2281
- right: "-0.75em",
2282
- color: e.colors.red.default,
2283
- content: r ? '"*"' : '""'
2284
- }
2285
- })), Dt = D.p(({ theme: e }) => ({
2286
- fontSize: "12px",
2287
- color: e.colors.red.default
2288
- }));
2289
- function Pa({
2290
- name: e,
2291
- label: r,
2292
- checked: t = !1,
2293
- errors: o = [],
2294
- onChange: a,
2295
- required: i = !1,
2296
- reverse: l,
2297
- inline: c,
2298
- ...d
2299
- }) {
2300
- const [v, p] = me(t);
2301
- function h({ target: g }) {
2302
- p(g.checked), a && a(g.name, g.checked);
2303
- }
2304
- return /* @__PURE__ */ It(Pr, { inline: c, reverse: l, required: i, children: [
2305
- r && /* @__PURE__ */ Te("label", { htmlFor: e, title: r, children: r }),
2306
- /* @__PURE__ */ Te(
2307
- mn,
2308
- {
2309
- ...d,
2310
- onChange: h,
2311
- checked: v,
2312
- placeholder: d.placeholder ?? "Type something...",
2313
- name: e,
2314
- id: e,
2315
- css: { width: "fit-content" }
2316
- }
2317
- ),
2318
- o.length > 0 && o.map((g) => /* @__PURE__ */ Te(Dt, { children: g }, g))
2319
- ] });
2320
- }
2321
- const Aa = D.form({
2322
- width: "100%",
2323
- display: "flex",
2324
- gap: "1em",
2325
- flexDirection: "column"
2326
- }), ta = D.input(({ theme: e }) => ({
2327
- width: "100%",
2328
- color: e.colors.font,
2329
- backgroundColor: e.colors.secondary,
2330
- padding: "0.75em 1em",
2331
- border: `1px solid ${Q(e.colors.grey.default, 0.25)}`,
2332
- borderBottom: `2px solid ${Q(e.colors.grey.default, 0.25)}`,
2333
- borderRadius: e.borders.radius.m,
2334
- transition: e.transitions.delay.normal,
2335
- "&:focus": {
2336
- borderBottom: `2px solid ${e.colors.blue.default}`
2337
- },
2338
- "&:disabled": {
2339
- opacity: 0.85
2340
- },
2341
- "&::placeholder": {
2342
- fontStyle: "italic",
2343
- color: e.colors.grey.default
2344
- }
2345
- }));
2346
- function $a({
2347
- name: e,
2348
- label: r,
2349
- value: t = "",
2350
- errors: o = [],
2351
- onChange: a,
2352
- required: i = !1,
2353
- formFieldClassname: l,
2354
- ...c
2355
- }) {
2356
- const [d, v] = me(t), p = ({ target: h }) => {
2357
- v(h.value), a && a(h.name, h.value);
2358
- };
2359
- return Er(() => {
2360
- v(t);
2361
- }, [t]), /* @__PURE__ */ k.jsxs(Pr, { className: l, required: i, children: [
2362
- r && /* @__PURE__ */ k.jsx("label", { htmlFor: e, title: r, children: r }),
2363
- /* @__PURE__ */ k.jsx(
2364
- ta,
2365
- {
2366
- ...c,
2367
- name: e,
2368
- onChange: p,
2369
- value: d,
2370
- placeholder: c.placeholder || r || "Type something..."
2371
- }
2372
- ),
2373
- o.length > 0 && o.map((h) => /* @__PURE__ */ k.jsx(Dt, { children: h }, h))
2374
- ] });
2375
- }
2376
- function Na({
2377
- name: e,
2378
- label: r,
2379
- value: t,
2380
- options: o,
2381
- onChangeCallback: a,
2382
- formatOptionLabel: i,
2383
- required: l = !1,
2384
- ...c
2385
- }) {
2386
- const d = ut(), [v, p] = me(
2387
- () => o.find((g) => g.value === t) ?? null
2388
- ), h = (g) => {
2389
- a == null || a(g.value), p(g);
2390
- };
2391
- return /* @__PURE__ */ It(Pr, { required: l, children: [
2392
- r && /* @__PURE__ */ Te("label", { htmlFor: e, title: `${e} field`, children: r }),
2393
- /* @__PURE__ */ Te(
2394
- hn,
2395
- {
2396
- onChange: (g) => h(g),
2397
- options: o,
2398
- isDisabled: c.disabled,
2399
- menuPlacement: "auto",
2400
- formatOptionLabel: i ? (g, j) => i(g, j) : void 0,
2401
- css: { width: "100%", color: d.colors.black },
2402
- className: c.className,
2403
- value: v
2404
- }
2405
- )
2406
- ] });
2407
- }
2408
- const st = "__minimstuff_dark_theme__", na = !0, oa = {
2409
- radius: {
2410
- xs: "1px",
2411
- s: "2px",
2412
- m: "3px",
2413
- l: "4px",
2414
- xl: "5px"
2415
- }
2416
- }, aa = {
2417
- xs: "10px",
2418
- s: "12px",
2419
- m: "14px",
2420
- l: "16px",
2421
- xl: "18px"
2422
- }, ia = {
2423
- mobile: "768px",
2424
- tablet: "1024px",
2425
- small_desktop: "1280px",
2426
- medium_desktop: "1440px",
2427
- large_desktop: "1920px",
2428
- xlarge_desktop: "2560px"
2429
- }, sa = {
2430
- delay: {
2431
- fast: "0.075s",
2432
- normal: "0.15s",
2433
- slow: "0.3s"
2434
- }
2435
- }, ca = {
2436
- borders: oa,
2437
- medias: ia,
2438
- transitions: sa,
2439
- fontSizes: aa
2440
- }, la = {
2441
- font: "#f0eef6",
2442
- background: "#222831",
2443
- secondary: "#323a47",
2444
- black: "#333333",
2445
- white: "#ffffff",
2446
- grey: X({
2447
- color: "#aaaaaa"
2448
- }),
2449
- blue: X({
2450
- color: "#4fadfc"
2451
- }),
2452
- green: X({
2453
- color: "#09b909"
2454
- }),
2455
- red: X({ color: "red" }),
2456
- yellow: X({ color: "#ffc107" }),
2457
- boxShadow: `0 0 1em 0 ${Q("#111", 0.4)}`
2458
- }, ua = {
2459
- font: "#333",
2460
- background: "#f0eef6",
2461
- secondary: "#fff",
2462
- black: "#333",
2463
- white: "#ffffff",
2464
- grey: X({
2465
- color: "#777777"
2466
- }),
2467
- blue: X({
2468
- color: "#3f88c5"
2469
- }),
2470
- green: X({
2471
- color: "green"
2472
- }),
2473
- red: X({
2474
- color: "red"
2475
- }),
2476
- yellow: X({
2477
- color: "#ffc107"
2478
- }),
2479
- boxShadow: `0 0 1em 0 ${Q("#aaa", 0.4)}`
2480
- }, Ft = ct({
2481
- isDarkTheme: !0,
2482
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2483
- toggleDarkTheme: (e) => {
2484
- }
2485
- });
2486
- function ja({
2487
- children: e,
2488
- onPreferenceChange: r
2489
- }) {
2490
- const [t, o] = me(() => {
2491
- const i = Ur.get(st);
2492
- return i ? i === "true" : na;
2493
- }), a = (i) => {
2494
- o(i), r == null || r(i), Ur.set(st, String(i));
2495
- };
2496
- return /* @__PURE__ */ k.jsx(
2497
- ln,
2498
- {
2499
- theme: {
2500
- ...ca,
2501
- colors: t ? la : ua
2502
- },
2503
- children: /* @__PURE__ */ k.jsxs(
2504
- Ft.Provider,
2505
- {
2506
- value: {
2507
- isDarkTheme: t,
2508
- toggleDarkTheme: a
2509
- },
2510
- children: [
2511
- /* @__PURE__ */ k.jsx(fa, {}),
2512
- e
2513
- ]
2514
- }
2515
- )
2516
- }
2517
- );
2518
- }
2519
- function fa() {
2520
- const e = ut(), r = Ye({
2521
- "*": {
2522
- boxSizing: "border-box",
2523
- outline: 0,
2524
- margin: 0,
2525
- padding: 0,
2526
- scrollBehavior: "smooth"
2527
- },
2528
- ".reset": {
2529
- backgroundColor: "inherit",
2530
- color: "inherit",
2531
- padding: 0,
2532
- margin: 0,
2533
- border: 0
2534
- },
2535
- a: {
2536
- width: "fit-content",
2537
- color: e.colors.blue.default,
2538
- textDecoration: "none",
2539
- borderBottom: "1px solid transparent"
2540
- },
2541
- b: {
2542
- fontWeight: 600,
2543
- letterSpacing: "0.5px"
2544
- },
2545
- "h1, h2, h3, h4, h5, h6": {
2546
- fontWeight: "500",
2547
- color: e.colors.blue.default
2548
- },
2549
- kbd: {
2550
- textShadow: "0 1px 0 #fff",
2551
- fontSize: "12px",
2552
- color: "rgb(51, 51, 51)",
2553
- backgroundColor: "rgb(247, 247, 247)",
2554
- padding: "0.25em 0.5em",
2555
- borderRadius: "3px",
2556
- border: "1px solid rgb(204, 204, 204)",
2557
- boxShadow: "0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset",
2558
- display: "inline-block"
2559
- },
2560
- hr: {
2561
- width: "100%",
2562
- marginBlock: "1em",
2563
- border: 0,
2564
- borderTop: `1px solid ${e.colors.background}`
2565
- }
2566
- }), t = Ye({
2567
- "html, body, #app": {
2568
- height: "100svh",
2569
- width: "100%",
2570
- fontFamily: "'Poppins', sans-serif",
2571
- fontSize: "14px",
2572
- color: e.colors.font,
2573
- backgroundColor: e.colors.background,
2574
- display: "flex",
2575
- alignItems: "center",
2576
- flexDirection: "column"
2577
- }
2578
- }), o = Ye({
2579
- /* width */
2580
- "::-webkit-scrollbar": {
2581
- height: "0.45em",
2582
- width: "0.45em"
2583
- },
2584
- /* Track */
2585
- "::-webkit-scrollbar-track": {
2586
- borderRadius: e.borders.radius.m
2587
- },
2588
- /* Handle */
2589
- "::-webkit-scrollbar-thumb": {
2590
- background: e.colors.blue.default,
2591
- borderRadius: e.borders.radius.m,
2592
- "&:hover": {
2593
- background: e.colors.blue.dark
2594
- }
2595
- }
2596
- }), a = Ye({
2597
- table: {
2598
- height: "auto",
2599
- width: "100%",
2600
- borderCollapse: "collapse",
2601
- borderRadius: e.borders.radius.m,
2602
- overflow: "hidden"
2603
- },
2604
- th: {
2605
- textAlign: "center",
2606
- fontWeight: 400,
2607
- backgroundColor: e.colors.secondary
2608
- },
2609
- "td, th": {
2610
- padding: "0.45em"
2611
- },
2612
- "th, td": {
2613
- whiteSpace: "nowrap"
2614
- },
2615
- "tr:nth-of-type(even)": {
2616
- backgroundColor: e.colors.secondary
2617
- }
2618
- });
2619
- return /* @__PURE__ */ k.jsx(un, { styles: [r, t, o, a] });
2620
- }
2621
- const Ia = () => xr(Ft);
2622
- export {
2623
- wa as Button,
2624
- Pa as Checkbox,
2625
- _a as Dropdown,
2626
- yn as DropdownContainer,
2627
- Sa as DropdownItemButton,
2628
- Ca as DropdownItemLink,
2629
- En as DropdownLabel,
2630
- Ra as ExternalLink,
2631
- Aa as Form,
2632
- Ta as Modal,
2633
- kn as ModalBody,
2634
- $n as ModalCloseBtn,
2635
- Pn as ModalContainer,
2636
- An as ModalHeader,
2637
- Nn as ModalWrapper,
2638
- Oa as RoundedImage,
2639
- Na as Selector,
2640
- fa as StyleReset,
2641
- Un as TabItem,
2642
- Bn as TabList,
2643
- Gn as TabPanel,
2644
- ka as Tabs,
2645
- zn as TextEllipsis,
2646
- $a as Textbox,
2647
- ja as ThemeContextProvider,
2648
- Ft as _ThemeContext,
2649
- X as generateFadedColors,
2650
- Q as rgba,
2651
- dt as useClickOutside,
2652
- pt as useGlobalHotkeys,
2653
- mt as useShortcut,
2654
- Ia as useThemeSwitcher,
2655
- Tn as useToggle
2656
- };