@loopr-ai/craft 0.1.0 → 0.2.0

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 (33) hide show
  1. package/dist/TransitionGroupContext-ee5b34c9.js +132 -0
  2. package/dist/assets/theme.css +1 -0
  3. package/dist/components/cell/Button/index.d.ts +19 -4
  4. package/dist/components/cell/Button/index.js +1209 -4
  5. package/dist/components/cell/ProgressBar/index.d.ts +27 -0
  6. package/dist/components/cell/ProgressBar/index.js +325 -0
  7. package/dist/components/cell/Search/index.d.ts +25 -0
  8. package/dist/components/cell/Search/index.js +26539 -0
  9. package/dist/components/cell/Typography/index.d.ts +20 -0
  10. package/dist/components/cell/Typography/index.js +217 -0
  11. package/dist/createTheme-eb26b87a.js +2221 -0
  12. package/dist/emotion-react.browser.esm-ff33c213.js +439 -0
  13. package/dist/exactProp-0925aa6f.js +13 -0
  14. package/dist/global/colors.d.ts +16 -0
  15. package/dist/global/colors.js +22 -0
  16. package/dist/global/constants.js +1 -0
  17. package/dist/global/enums.js +1 -0
  18. package/dist/global/interfaces.d.ts +6 -0
  19. package/dist/global/interfaces.js +1 -0
  20. package/dist/global/theme.d.ts +35 -0
  21. package/dist/global/theme.js +76 -0
  22. package/dist/main.d.ts +6 -2
  23. package/dist/main.js +8 -2
  24. package/dist/providers/CraftThemeProvider.d.ts +16 -0
  25. package/dist/providers/CraftThemeProvider.js +128 -0
  26. package/dist/providers/index.d.ts +2 -0
  27. package/dist/providers/index.js +4 -0
  28. package/dist/styled-b8bfdd6b.js +699 -0
  29. package/dist/useTheme-a9e2b32c.js +10 -0
  30. package/dist/useThemeWithoutDefault-188598a8.js +950 -0
  31. package/package.json +24 -3
  32. package/dist/components/cell/Input/index.d.ts +0 -5
  33. package/dist/components/cell/Input/index.js +0 -6
@@ -0,0 +1,950 @@
1
+ import * as k from "react";
2
+ import { forwardRef as Ie, useContext as $e } from "react";
3
+ const Pr = "$$material";
4
+ function Te(e) {
5
+ var r = /* @__PURE__ */ Object.create(null);
6
+ return function(n) {
7
+ return r[n] === void 0 && (r[n] = e(n)), r[n];
8
+ };
9
+ }
10
+ function De(e) {
11
+ if (e.sheet)
12
+ return e.sheet;
13
+ for (var r = 0; r < document.styleSheets.length; r++)
14
+ if (document.styleSheets[r].ownerNode === e)
15
+ return document.styleSheets[r];
16
+ }
17
+ function Pe(e) {
18
+ var r = document.createElement("style");
19
+ 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;
20
+ }
21
+ var Ve = /* @__PURE__ */ function() {
22
+ function e(n) {
23
+ var t = this;
24
+ this._insertTag = function(s) {
25
+ var a;
26
+ t.tags.length === 0 ? t.insertionPoint ? a = t.insertionPoint.nextSibling : t.prepend ? a = t.container.firstChild : a = t.before : a = t.tags[t.tags.length - 1].nextSibling, t.container.insertBefore(s, a), t.tags.push(s);
27
+ }, this.isSpeedy = n.speedy === void 0 ? process.env.NODE_ENV === "production" : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
28
+ }
29
+ var r = e.prototype;
30
+ return r.hydrate = function(t) {
31
+ t.forEach(this._insertTag);
32
+ }, r.insert = function(t) {
33
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Pe(this));
34
+ var s = this.tags[this.tags.length - 1];
35
+ if (process.env.NODE_ENV !== "production") {
36
+ var a = t.charCodeAt(0) === 64 && t.charCodeAt(1) === 105;
37
+ a && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
38
+ ` + t + "\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 || !a;
39
+ }
40
+ if (this.isSpeedy) {
41
+ var i = De(s);
42
+ try {
43
+ i.insertRule(t, i.cssRules.length);
44
+ } catch (o) {
45
+ 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(t) && console.error('There was a problem inserting the following rule: "' + t + '"', o);
46
+ }
47
+ } else
48
+ s.appendChild(document.createTextNode(t));
49
+ this.ctr++;
50
+ }, r.flush = function() {
51
+ this.tags.forEach(function(t) {
52
+ return t.parentNode && t.parentNode.removeChild(t);
53
+ }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
54
+ }, e;
55
+ }(), b = "-ms-", B = "-moz-", f = "-webkit-", re = "comm", ne = "rule", te = "decl", Me = "@import", Ee = "@keyframes", Le = "@layer", We = Math.abs, H = String.fromCharCode, ze = Object.assign;
56
+ function Fe(e, r) {
57
+ return E(e, 0) ^ 45 ? (((r << 2 ^ E(e, 0)) << 2 ^ E(e, 1)) << 2 ^ E(e, 2)) << 2 ^ E(e, 3) : 0;
58
+ }
59
+ function be(e) {
60
+ return e.trim();
61
+ }
62
+ function Ye(e, r) {
63
+ return (e = r.exec(e)) ? e[0] : e;
64
+ }
65
+ function u(e, r, n) {
66
+ return e.replace(r, n);
67
+ }
68
+ function X(e, r) {
69
+ return e.indexOf(r);
70
+ }
71
+ function E(e, r) {
72
+ return e.charCodeAt(r) | 0;
73
+ }
74
+ function W(e, r, n) {
75
+ return e.slice(r, n);
76
+ }
77
+ function I(e) {
78
+ return e.length;
79
+ }
80
+ function se(e) {
81
+ return e.length;
82
+ }
83
+ function U(e, r) {
84
+ return r.push(e), e;
85
+ }
86
+ function Ue(e, r) {
87
+ return e.map(r).join("");
88
+ }
89
+ var J = 1, P = 1, we = 0, O = 0, g = 0, V = "";
90
+ function Z(e, r, n, t, s, a, i) {
91
+ return { value: e, root: r, parent: n, type: t, props: s, children: a, line: J, column: P, length: i, return: "" };
92
+ }
93
+ function L(e, r) {
94
+ return ze(Z("", null, null, "", null, null, 0), e, { length: -e.length }, r);
95
+ }
96
+ function je() {
97
+ return g;
98
+ }
99
+ function qe() {
100
+ return g = O > 0 ? E(V, --O) : 0, P--, g === 10 && (P = 1, J--), g;
101
+ }
102
+ function C() {
103
+ return g = O < we ? E(V, O++) : 0, P++, g === 10 && (P = 1, J++), g;
104
+ }
105
+ function $() {
106
+ return E(V, O);
107
+ }
108
+ function j() {
109
+ return O;
110
+ }
111
+ function Y(e, r) {
112
+ return W(V, e, r);
113
+ }
114
+ function z(e) {
115
+ switch (e) {
116
+ case 0:
117
+ case 9:
118
+ case 10:
119
+ case 13:
120
+ case 32:
121
+ return 5;
122
+ case 33:
123
+ case 43:
124
+ case 44:
125
+ case 47:
126
+ case 62:
127
+ case 64:
128
+ case 126:
129
+ case 59:
130
+ case 123:
131
+ case 125:
132
+ return 4;
133
+ case 58:
134
+ return 3;
135
+ case 34:
136
+ case 39:
137
+ case 40:
138
+ case 91:
139
+ return 2;
140
+ case 41:
141
+ case 93:
142
+ return 1;
143
+ }
144
+ return 0;
145
+ }
146
+ function xe(e) {
147
+ return J = P = 1, we = I(V = e), O = 0, [];
148
+ }
149
+ function Ne(e) {
150
+ return V = "", e;
151
+ }
152
+ function q(e) {
153
+ return be(Y(O - 1, ee(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
154
+ }
155
+ function Ge(e) {
156
+ for (; (g = $()) && g < 33; )
157
+ C();
158
+ return z(e) > 2 || z(g) > 3 ? "" : " ";
159
+ }
160
+ function Be(e, r) {
161
+ for (; --r && C() && !(g < 48 || g > 102 || g > 57 && g < 65 || g > 70 && g < 97); )
162
+ ;
163
+ return Y(e, j() + (r < 6 && $() == 32 && C() == 32));
164
+ }
165
+ function ee(e) {
166
+ for (; C(); )
167
+ switch (g) {
168
+ case e:
169
+ return O;
170
+ case 34:
171
+ case 39:
172
+ e !== 34 && e !== 39 && ee(g);
173
+ break;
174
+ case 40:
175
+ e === 41 && ee(e);
176
+ break;
177
+ case 92:
178
+ C();
179
+ break;
180
+ }
181
+ return O;
182
+ }
183
+ function Ke(e, r) {
184
+ for (; C() && e + g !== 47 + 10; )
185
+ if (e + g === 42 + 42 && $() === 47)
186
+ break;
187
+ return "/*" + Y(r, O - 1) + "*" + H(e === 47 ? e : C());
188
+ }
189
+ function He(e) {
190
+ for (; !z($()); )
191
+ C();
192
+ return Y(e, O);
193
+ }
194
+ function Je(e) {
195
+ return Ne(G("", null, null, null, [""], e = xe(e), 0, [0], e));
196
+ }
197
+ function G(e, r, n, t, s, a, i, o, l) {
198
+ for (var h = 0, c = 0, y = i, w = 0, S = 0, x = 0, d = 1, N = 1, m = 1, v = 0, A = "", M = s, T = a, R = t, p = A; N; )
199
+ switch (x = v, v = C()) {
200
+ case 40:
201
+ if (x != 108 && E(p, y - 1) == 58) {
202
+ X(p += u(q(v), "&", "&\f"), "&\f") != -1 && (m = -1);
203
+ break;
204
+ }
205
+ case 34:
206
+ case 39:
207
+ case 91:
208
+ p += q(v);
209
+ break;
210
+ case 9:
211
+ case 10:
212
+ case 13:
213
+ case 32:
214
+ p += Ge(x);
215
+ break;
216
+ case 92:
217
+ p += Be(j() - 1, 7);
218
+ continue;
219
+ case 47:
220
+ switch ($()) {
221
+ case 42:
222
+ case 47:
223
+ U(Ze(Ke(C(), j()), r, n), l);
224
+ break;
225
+ default:
226
+ p += "/";
227
+ }
228
+ break;
229
+ case 123 * d:
230
+ o[h++] = I(p) * m;
231
+ case 125 * d:
232
+ case 59:
233
+ case 0:
234
+ switch (v) {
235
+ case 0:
236
+ case 125:
237
+ N = 0;
238
+ case 59 + c:
239
+ m == -1 && (p = u(p, /\f/g, "")), S > 0 && I(p) - y && U(S > 32 ? fe(p + ";", t, n, y - 1) : fe(u(p, " ", "") + ";", t, n, y - 2), l);
240
+ break;
241
+ case 59:
242
+ p += ";";
243
+ default:
244
+ if (U(R = ce(p, r, n, h, c, s, o, A, M = [], T = [], y), a), v === 123)
245
+ if (c === 0)
246
+ G(p, r, R, R, M, a, y, o, T);
247
+ else
248
+ switch (w === 99 && E(p, 3) === 110 ? 100 : w) {
249
+ case 100:
250
+ case 108:
251
+ case 109:
252
+ case 115:
253
+ G(e, R, R, t && U(ce(e, R, R, 0, 0, s, o, A, s, M = [], y), T), s, T, y, o, t ? M : T);
254
+ break;
255
+ default:
256
+ G(p, R, R, R, [""], T, 0, o, T);
257
+ }
258
+ }
259
+ h = c = S = 0, d = m = 1, A = p = "", y = i;
260
+ break;
261
+ case 58:
262
+ y = 1 + I(p), S = x;
263
+ default:
264
+ if (d < 1) {
265
+ if (v == 123)
266
+ --d;
267
+ else if (v == 125 && d++ == 0 && qe() == 125)
268
+ continue;
269
+ }
270
+ switch (p += H(v), v * d) {
271
+ case 38:
272
+ m = c > 0 ? 1 : (p += "\f", -1);
273
+ break;
274
+ case 44:
275
+ o[h++] = (I(p) - 1) * m, m = 1;
276
+ break;
277
+ case 64:
278
+ $() === 45 && (p += q(C())), w = $(), c = y = I(A = p += He(j())), v++;
279
+ break;
280
+ case 45:
281
+ x === 45 && I(p) == 2 && (d = 0);
282
+ }
283
+ }
284
+ return a;
285
+ }
286
+ function ce(e, r, n, t, s, a, i, o, l, h, c) {
287
+ for (var y = s - 1, w = s === 0 ? a : [""], S = se(w), x = 0, d = 0, N = 0; x < t; ++x)
288
+ for (var m = 0, v = W(e, y + 1, y = We(d = i[x])), A = e; m < S; ++m)
289
+ (A = be(d > 0 ? w[m] + " " + v : u(v, /&\f/g, w[m]))) && (l[N++] = A);
290
+ return Z(e, r, n, s === 0 ? ne : o, l, h, c);
291
+ }
292
+ function Ze(e, r, n) {
293
+ return Z(e, r, n, re, H(je()), W(e, 2, -2), 0);
294
+ }
295
+ function fe(e, r, n, t) {
296
+ return Z(e, r, n, te, W(e, 0, t), W(e, t + 1, -1), t);
297
+ }
298
+ function D(e, r) {
299
+ for (var n = "", t = se(e), s = 0; s < t; s++)
300
+ n += r(e[s], s, e, r) || "";
301
+ return n;
302
+ }
303
+ function Qe(e, r, n, t) {
304
+ switch (e.type) {
305
+ case Le:
306
+ if (e.children.length)
307
+ break;
308
+ case Me:
309
+ case te:
310
+ return e.return = e.return || e.value;
311
+ case re:
312
+ return "";
313
+ case Ee:
314
+ return e.return = e.value + "{" + D(e.children, t) + "}";
315
+ case ne:
316
+ e.value = e.props.join(",");
317
+ }
318
+ return I(n = D(e.children, t)) ? e.return = e.value + "{" + n + "}" : "";
319
+ }
320
+ function Xe(e) {
321
+ var r = se(e);
322
+ return function(n, t, s, a) {
323
+ for (var i = "", o = 0; o < r; o++)
324
+ i += e[o](n, t, s, a) || "";
325
+ return i;
326
+ };
327
+ }
328
+ function er(e) {
329
+ return function(r) {
330
+ r.root || (r = r.return) && e(r);
331
+ };
332
+ }
333
+ var rr = function(r, n, t) {
334
+ for (var s = 0, a = 0; s = a, a = $(), s === 38 && a === 12 && (n[t] = 1), !z(a); )
335
+ C();
336
+ return Y(r, O);
337
+ }, nr = function(r, n) {
338
+ var t = -1, s = 44;
339
+ do
340
+ switch (z(s)) {
341
+ case 0:
342
+ s === 38 && $() === 12 && (n[t] = 1), r[t] += rr(O - 1, n, t);
343
+ break;
344
+ case 2:
345
+ r[t] += q(s);
346
+ break;
347
+ case 4:
348
+ if (s === 44) {
349
+ r[++t] = $() === 58 ? "&\f" : "", n[t] = r[t].length;
350
+ break;
351
+ }
352
+ default:
353
+ r[t] += H(s);
354
+ }
355
+ while (s = C());
356
+ return r;
357
+ }, tr = function(r, n) {
358
+ return Ne(nr(xe(r), n));
359
+ }, ue = /* @__PURE__ */ new WeakMap(), sr = function(r) {
360
+ if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
361
+ // negative .length indicates that this rule has been already prefixed
362
+ r.length < 1)) {
363
+ for (var n = r.value, t = r.parent, s = r.column === t.column && r.line === t.line; t.type !== "rule"; )
364
+ if (t = t.parent, !t)
365
+ return;
366
+ if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !ue.get(t)) && !s) {
367
+ ue.set(r, !0);
368
+ for (var a = [], i = tr(n, a), o = t.props, l = 0, h = 0; l < i.length; l++)
369
+ for (var c = 0; c < o.length; c++, h++)
370
+ r.props[h] = a[l] ? i[l].replace(/&\f/g, o[c]) : o[c] + " " + i[l];
371
+ }
372
+ }
373
+ }, ar = function(r) {
374
+ if (r.type === "decl") {
375
+ var n = r.value;
376
+ // charcode for l
377
+ n.charCodeAt(0) === 108 && // charcode for b
378
+ n.charCodeAt(2) === 98 && (r.return = "", r.value = "");
379
+ }
380
+ }, ir = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", or = function(r) {
381
+ return r.type === "comm" && r.children.indexOf(ir) > -1;
382
+ }, cr = function(r) {
383
+ return function(n, t, s) {
384
+ if (!(n.type !== "rule" || r.compat)) {
385
+ var a = n.value.match(/(:first|:nth|:nth-last)-child/g);
386
+ if (a) {
387
+ for (var i = !!n.parent, o = i ? n.parent.children : (
388
+ // global rule at the root level
389
+ s
390
+ ), l = o.length - 1; l >= 0; l--) {
391
+ var h = o[l];
392
+ if (h.line < n.line)
393
+ break;
394
+ if (h.column < n.column) {
395
+ if (or(h))
396
+ return;
397
+ break;
398
+ }
399
+ }
400
+ a.forEach(function(c) {
401
+ console.error('The pseudo class "' + c + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + c.split("-child")[0] + '-of-type".');
402
+ });
403
+ }
404
+ }
405
+ };
406
+ }, Oe = function(r) {
407
+ return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;
408
+ }, fr = function(r, n) {
409
+ for (var t = r - 1; t >= 0; t--)
410
+ if (!Oe(n[t]))
411
+ return !0;
412
+ return !1;
413
+ }, le = function(r) {
414
+ r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
415
+ }, ur = function(r, n, t) {
416
+ Oe(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."), le(r)) : fr(n, t) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), le(r)));
417
+ };
418
+ function Ce(e, r) {
419
+ switch (Fe(e, r)) {
420
+ case 5103:
421
+ return f + "print-" + e + e;
422
+ case 5737:
423
+ case 4201:
424
+ case 3177:
425
+ case 3433:
426
+ case 1641:
427
+ case 4457:
428
+ case 2921:
429
+ case 5572:
430
+ case 6356:
431
+ case 5844:
432
+ case 3191:
433
+ case 6645:
434
+ case 3005:
435
+ case 6391:
436
+ case 5879:
437
+ case 5623:
438
+ case 6135:
439
+ case 4599:
440
+ case 4855:
441
+ case 4215:
442
+ case 6389:
443
+ case 5109:
444
+ case 5365:
445
+ case 5621:
446
+ case 3829:
447
+ return f + e + e;
448
+ case 5349:
449
+ case 4246:
450
+ case 4810:
451
+ case 6968:
452
+ case 2756:
453
+ return f + e + B + e + b + e + e;
454
+ case 6828:
455
+ case 4268:
456
+ return f + e + b + e + e;
457
+ case 6165:
458
+ return f + e + b + "flex-" + e + e;
459
+ case 5187:
460
+ return f + e + u(e, /(\w+).+(:[^]+)/, f + "box-$1$2" + b + "flex-$1$2") + e;
461
+ case 5443:
462
+ return f + e + b + "flex-item-" + u(e, /flex-|-self/, "") + e;
463
+ case 4675:
464
+ return f + e + b + "flex-line-pack" + u(e, /align-content|flex-|-self/, "") + e;
465
+ case 5548:
466
+ return f + e + b + u(e, "shrink", "negative") + e;
467
+ case 5292:
468
+ return f + e + b + u(e, "basis", "preferred-size") + e;
469
+ case 6060:
470
+ return f + "box-" + u(e, "-grow", "") + f + e + b + u(e, "grow", "positive") + e;
471
+ case 4554:
472
+ return f + u(e, /([^-])(transform)/g, "$1" + f + "$2") + e;
473
+ case 6187:
474
+ return u(u(u(e, /(zoom-|grab)/, f + "$1"), /(image-set)/, f + "$1"), e, "") + e;
475
+ case 5495:
476
+ case 3959:
477
+ return u(e, /(image-set\([^]*)/, f + "$1$`$1");
478
+ case 4968:
479
+ return u(u(e, /(.+:)(flex-)?(.*)/, f + "box-pack:$3" + b + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + f + e + e;
480
+ case 4095:
481
+ case 3583:
482
+ case 4068:
483
+ case 2532:
484
+ return u(e, /(.+)-inline(.+)/, f + "$1$2") + e;
485
+ case 8116:
486
+ case 7059:
487
+ case 5753:
488
+ case 5535:
489
+ case 5445:
490
+ case 5701:
491
+ case 4933:
492
+ case 4677:
493
+ case 5533:
494
+ case 5789:
495
+ case 5021:
496
+ case 4765:
497
+ if (I(e) - 1 - r > 6)
498
+ switch (E(e, r + 1)) {
499
+ case 109:
500
+ if (E(e, r + 4) !== 45)
501
+ break;
502
+ case 102:
503
+ return u(e, /(.+:)(.+)-([^]+)/, "$1" + f + "$2-$3$1" + B + (E(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
504
+ case 115:
505
+ return ~X(e, "stretch") ? Ce(u(e, "stretch", "fill-available"), r) + e : e;
506
+ }
507
+ break;
508
+ case 4949:
509
+ if (E(e, r + 1) !== 115)
510
+ break;
511
+ case 6444:
512
+ switch (E(e, I(e) - 3 - (~X(e, "!important") && 10))) {
513
+ case 107:
514
+ return u(e, ":", ":" + f) + e;
515
+ case 101:
516
+ return u(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + f + (E(e, 14) === 45 ? "inline-" : "") + "box$3$1" + f + "$2$3$1" + b + "$2box$3") + e;
517
+ }
518
+ break;
519
+ case 5936:
520
+ switch (E(e, r + 11)) {
521
+ case 114:
522
+ return f + e + b + u(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
523
+ case 108:
524
+ return f + e + b + u(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
525
+ case 45:
526
+ return f + e + b + u(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
527
+ }
528
+ return f + e + b + e + e;
529
+ }
530
+ return e;
531
+ }
532
+ var lr = function(r, n, t, s) {
533
+ if (r.length > -1 && !r.return)
534
+ switch (r.type) {
535
+ case te:
536
+ r.return = Ce(r.value, r.length);
537
+ break;
538
+ case Ee:
539
+ return D([L(r, {
540
+ value: u(r.value, "@", "@" + f)
541
+ })], s);
542
+ case ne:
543
+ if (r.length)
544
+ return Ue(r.props, function(a) {
545
+ switch (Ye(a, /(::plac\w+|:read-\w+)/)) {
546
+ case ":read-only":
547
+ case ":read-write":
548
+ return D([L(r, {
549
+ props: [u(a, /:(read-\w+)/, ":" + B + "$1")]
550
+ })], s);
551
+ case "::placeholder":
552
+ return D([L(r, {
553
+ props: [u(a, /:(plac\w+)/, ":" + f + "input-$1")]
554
+ }), L(r, {
555
+ props: [u(a, /:(plac\w+)/, ":" + B + "$1")]
556
+ }), L(r, {
557
+ props: [u(a, /:(plac\w+)/, b + "input-$1")]
558
+ })], s);
559
+ }
560
+ return "";
561
+ });
562
+ }
563
+ }, dr = [lr], hr = function(r) {
564
+ var n = r.key;
565
+ if (process.env.NODE_ENV !== "production" && !n)
566
+ 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.
567
+ If multiple caches share the same key they might "fight" for each other's style elements.`);
568
+ if (n === "css") {
569
+ var t = document.querySelectorAll("style[data-emotion]:not([data-s])");
570
+ Array.prototype.forEach.call(t, function(d) {
571
+ var N = d.getAttribute("data-emotion");
572
+ N.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
573
+ });
574
+ }
575
+ var s = r.stylisPlugins || dr;
576
+ if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(n))
577
+ throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + n + '" was passed');
578
+ var a = {}, i, o = [];
579
+ i = r.container || document.head, Array.prototype.forEach.call(
580
+ // this means we will ignore elements which don't have a space in them which
581
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
582
+ document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
583
+ function(d) {
584
+ for (var N = d.getAttribute("data-emotion").split(" "), m = 1; m < N.length; m++)
585
+ a[N[m]] = !0;
586
+ o.push(d);
587
+ }
588
+ );
589
+ var l, h = [sr, ar];
590
+ process.env.NODE_ENV !== "production" && h.push(cr({
591
+ get compat() {
592
+ return x.compat;
593
+ }
594
+ }), ur);
595
+ {
596
+ var c, y = [Qe, process.env.NODE_ENV !== "production" ? function(d) {
597
+ d.root || (d.return ? c.insert(d.return) : d.value && d.type !== re && c.insert(d.value + "{}"));
598
+ } : er(function(d) {
599
+ c.insert(d);
600
+ })], w = Xe(h.concat(s, y)), S = function(N) {
601
+ return D(Je(N), w);
602
+ };
603
+ l = function(N, m, v, A) {
604
+ c = v, process.env.NODE_ENV !== "production" && m.map !== void 0 && (c = {
605
+ insert: function(T) {
606
+ v.insert(T + m.map);
607
+ }
608
+ }), S(N ? N + "{" + m.styles + "}" : m.styles), A && (x.inserted[m.name] = !0);
609
+ };
610
+ }
611
+ var x = {
612
+ key: n,
613
+ sheet: new Ve({
614
+ key: n,
615
+ container: i,
616
+ nonce: r.nonce,
617
+ speedy: r.speedy,
618
+ prepend: r.prepend,
619
+ insertionPoint: r.insertionPoint
620
+ }),
621
+ nonce: r.nonce,
622
+ inserted: a,
623
+ registered: {},
624
+ insert: l
625
+ };
626
+ return x.sheet.hydrate(o), x;
627
+ }, pr = !0;
628
+ function mr(e, r, n) {
629
+ var t = "";
630
+ return n.split(" ").forEach(function(s) {
631
+ e[s] !== void 0 ? r.push(e[s] + ";") : t += s + " ";
632
+ }), t;
633
+ }
634
+ var Se = function(r, n, t) {
635
+ var s = r.key + "-" + n.name;
636
+ // we only need to add the styles to the registered cache if the
637
+ // class name could be used further down
638
+ // the tree but if it's a string tag, we know it won't
639
+ // so we don't have to add it to registered cache.
640
+ // this improves memory usage since we can avoid storing the whole style string
641
+ (t === !1 || // we need to always store it if we're in compat mode and
642
+ // in node since emotion-server relies on whether a style is in
643
+ // the registered cache to know whether a style is global or not
644
+ // also, note that this check will be dead code eliminated in the browser
645
+ pr === !1) && r.registered[s] === void 0 && (r.registered[s] = n.styles);
646
+ }, yr = function(r, n, t) {
647
+ Se(r, n, t);
648
+ var s = r.key + "-" + n.name;
649
+ if (r.inserted[n.name] === void 0) {
650
+ var a = n;
651
+ do
652
+ r.insert(n === a ? "." + s : "", a, r.sheet, !0), a = a.next;
653
+ while (a !== void 0);
654
+ }
655
+ };
656
+ function gr(e) {
657
+ for (var r = 0, n, t = 0, s = e.length; s >= 4; ++t, s -= 4)
658
+ n = e.charCodeAt(t) & 255 | (e.charCodeAt(++t) & 255) << 8 | (e.charCodeAt(++t) & 255) << 16 | (e.charCodeAt(++t) & 255) << 24, n = /* Math.imul(k, m): */
659
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
660
+ n >>> 24, r = /* Math.imul(k, m): */
661
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
662
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
663
+ switch (s) {
664
+ case 3:
665
+ r ^= (e.charCodeAt(t + 2) & 255) << 16;
666
+ case 2:
667
+ r ^= (e.charCodeAt(t + 1) & 255) << 8;
668
+ case 1:
669
+ r ^= e.charCodeAt(t) & 255, r = /* Math.imul(h, m): */
670
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
671
+ }
672
+ return r ^= r >>> 13, r = /* Math.imul(h, m): */
673
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
674
+ }
675
+ var vr = {
676
+ animationIterationCount: 1,
677
+ aspectRatio: 1,
678
+ borderImageOutset: 1,
679
+ borderImageSlice: 1,
680
+ borderImageWidth: 1,
681
+ boxFlex: 1,
682
+ boxFlexGroup: 1,
683
+ boxOrdinalGroup: 1,
684
+ columnCount: 1,
685
+ columns: 1,
686
+ flex: 1,
687
+ flexGrow: 1,
688
+ flexPositive: 1,
689
+ flexShrink: 1,
690
+ flexNegative: 1,
691
+ flexOrder: 1,
692
+ gridRow: 1,
693
+ gridRowEnd: 1,
694
+ gridRowSpan: 1,
695
+ gridRowStart: 1,
696
+ gridColumn: 1,
697
+ gridColumnEnd: 1,
698
+ gridColumnSpan: 1,
699
+ gridColumnStart: 1,
700
+ msGridRow: 1,
701
+ msGridRowSpan: 1,
702
+ msGridColumn: 1,
703
+ msGridColumnSpan: 1,
704
+ fontWeight: 1,
705
+ lineHeight: 1,
706
+ opacity: 1,
707
+ order: 1,
708
+ orphans: 1,
709
+ tabSize: 1,
710
+ widows: 1,
711
+ zIndex: 1,
712
+ zoom: 1,
713
+ WebkitLineClamp: 1,
714
+ // SVG-related properties
715
+ fillOpacity: 1,
716
+ floodOpacity: 1,
717
+ stopOpacity: 1,
718
+ strokeDasharray: 1,
719
+ strokeDashoffset: 1,
720
+ strokeMiterlimit: 1,
721
+ strokeOpacity: 1,
722
+ strokeWidth: 1
723
+ }, de = `You have illegal escape sequence in your template literal, most likely inside content's property value.
724
+ 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';".
725
+ You can read more about this here:
726
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, Er = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", br = /[A-Z]|^ms/g, _e = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ae = function(r) {
727
+ return r.charCodeAt(1) === 45;
728
+ }, he = function(r) {
729
+ return r != null && typeof r != "boolean";
730
+ }, Q = /* @__PURE__ */ Te(function(e) {
731
+ return ae(e) ? e : e.replace(br, "-$&").toLowerCase();
732
+ }), K = function(r, n) {
733
+ switch (r) {
734
+ case "animation":
735
+ case "animationName":
736
+ if (typeof n == "string")
737
+ return n.replace(_e, function(t, s, a) {
738
+ return _ = {
739
+ name: s,
740
+ styles: a,
741
+ next: _
742
+ }, s;
743
+ });
744
+ }
745
+ return vr[r] !== 1 && !ae(r) && typeof n == "number" && n !== 0 ? n + "px" : n;
746
+ };
747
+ if (process.env.NODE_ENV !== "production") {
748
+ var wr = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, xr = ["normal", "none", "initial", "inherit", "unset"], Nr = K, Or = /^-ms-/, Cr = /-(.)/g, pe = {};
749
+ K = function(r, n) {
750
+ if (r === "content" && (typeof n != "string" || xr.indexOf(n) === -1 && !wr.test(n) && (n.charAt(0) !== n.charAt(n.length - 1) || n.charAt(0) !== '"' && n.charAt(0) !== "'")))
751
+ throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + n + "\"'`");
752
+ var t = Nr(r, n);
753
+ return t !== "" && !ae(r) && r.indexOf("-") !== -1 && pe[r] === void 0 && (pe[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace(Or, "ms-").replace(Cr, function(s, a) {
754
+ return a.toUpperCase();
755
+ }) + "?")), t;
756
+ };
757
+ }
758
+ var ke = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
759
+ function F(e, r, n) {
760
+ if (n == null)
761
+ return "";
762
+ if (n.__emotion_styles !== void 0) {
763
+ if (process.env.NODE_ENV !== "production" && n.toString() === "NO_COMPONENT_SELECTOR")
764
+ throw new Error(ke);
765
+ return n;
766
+ }
767
+ switch (typeof n) {
768
+ case "boolean":
769
+ return "";
770
+ case "object": {
771
+ if (n.anim === 1)
772
+ return _ = {
773
+ name: n.name,
774
+ styles: n.styles,
775
+ next: _
776
+ }, n.name;
777
+ if (n.styles !== void 0) {
778
+ var t = n.next;
779
+ if (t !== void 0)
780
+ for (; t !== void 0; )
781
+ _ = {
782
+ name: t.name,
783
+ styles: t.styles,
784
+ next: _
785
+ }, t = t.next;
786
+ var s = n.styles + ";";
787
+ return process.env.NODE_ENV !== "production" && n.map !== void 0 && (s += n.map), s;
788
+ }
789
+ return Sr(e, r, n);
790
+ }
791
+ case "function": {
792
+ if (e !== void 0) {
793
+ var a = _, i = n(e);
794
+ return _ = a, F(e, r, i);
795
+ } else
796
+ 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}`");
797
+ break;
798
+ }
799
+ case "string":
800
+ if (process.env.NODE_ENV !== "production") {
801
+ var o = [], l = n.replace(_e, function(c, y, w) {
802
+ var S = "animation" + o.length;
803
+ return o.push("const " + S + " = keyframes`" + w.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + S + "}";
804
+ });
805
+ o.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(o, ["`" + l + "`"]).join(`
806
+ `) + `
807
+
808
+ You should wrap it with \`css\` like this:
809
+
810
+ ` + ("css`" + l + "`"));
811
+ }
812
+ break;
813
+ }
814
+ if (r == null)
815
+ return n;
816
+ var h = r[n];
817
+ return h !== void 0 ? h : n;
818
+ }
819
+ function Sr(e, r, n) {
820
+ var t = "";
821
+ if (Array.isArray(n))
822
+ for (var s = 0; s < n.length; s++)
823
+ t += F(e, r, n[s]) + ";";
824
+ else
825
+ for (var a in n) {
826
+ var i = n[a];
827
+ if (typeof i != "object")
828
+ r != null && r[i] !== void 0 ? t += a + "{" + r[i] + "}" : he(i) && (t += Q(a) + ":" + K(a, i) + ";");
829
+ else {
830
+ if (a === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
831
+ throw new Error(ke);
832
+ if (Array.isArray(i) && typeof i[0] == "string" && (r == null || r[i[0]] === void 0))
833
+ for (var o = 0; o < i.length; o++)
834
+ he(i[o]) && (t += Q(a) + ":" + K(a, i[o]) + ";");
835
+ else {
836
+ var l = F(e, r, i);
837
+ switch (a) {
838
+ case "animation":
839
+ case "animationName": {
840
+ t += Q(a) + ":" + l + ";";
841
+ break;
842
+ }
843
+ default:
844
+ process.env.NODE_ENV !== "production" && a === "undefined" && console.error(Er), t += a + "{" + l + "}";
845
+ }
846
+ }
847
+ }
848
+ }
849
+ return t;
850
+ }
851
+ var me = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Ae;
852
+ process.env.NODE_ENV !== "production" && (Ae = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
853
+ var _, ye = function(r, n, t) {
854
+ if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
855
+ return r[0];
856
+ var s = !0, a = "";
857
+ _ = void 0;
858
+ var i = r[0];
859
+ i == null || i.raw === void 0 ? (s = !1, a += F(t, n, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(de), a += i[0]);
860
+ for (var o = 1; o < r.length; o++)
861
+ a += F(t, n, r[o]), s && (process.env.NODE_ENV !== "production" && i[o] === void 0 && console.error(de), a += i[o]);
862
+ var l;
863
+ process.env.NODE_ENV !== "production" && (a = a.replace(Ae, function(w) {
864
+ return l = w, "";
865
+ })), me.lastIndex = 0;
866
+ for (var h = "", c; (c = me.exec(a)) !== null; )
867
+ h += "-" + // $FlowFixMe we know it's not null
868
+ c[1];
869
+ var y = gr(a) + h;
870
+ return process.env.NODE_ENV !== "production" ? {
871
+ name: y,
872
+ styles: a,
873
+ map: l,
874
+ next: _,
875
+ toString: function() {
876
+ 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).";
877
+ }
878
+ } : {
879
+ name: y,
880
+ styles: a,
881
+ next: _
882
+ };
883
+ }, _r = function(r) {
884
+ return r();
885
+ }, Re = k["useInsertionEffect"] ? k["useInsertionEffect"] : !1, kr = Re || _r, Vr = Re || k.useLayoutEffect, Ar = {}.hasOwnProperty, ie = /* @__PURE__ */ k.createContext(
886
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
887
+ // because this module is primarily intended for the browser and node
888
+ // but it's also required in react native and similar environments sometimes
889
+ // and we could have a special build just for that
890
+ // but this is much easier and the native packages
891
+ // might use a different theme context in the future anyway
892
+ typeof HTMLElement < "u" ? /* @__PURE__ */ hr({
893
+ key: "css"
894
+ }) : null
895
+ );
896
+ process.env.NODE_ENV !== "production" && (ie.displayName = "EmotionCacheContext");
897
+ ie.Provider;
898
+ var Rr = function(r) {
899
+ return /* @__PURE__ */ Ie(function(n, t) {
900
+ var s = $e(ie);
901
+ return r(n, s, t);
902
+ });
903
+ }, oe = /* @__PURE__ */ k.createContext({});
904
+ process.env.NODE_ENV !== "production" && (oe.displayName = "EmotionThemeContext");
905
+ var ge = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ve = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Ir = function(r) {
906
+ var n = r.cache, t = r.serialized, s = r.isStringTag;
907
+ return Se(n, t, s), kr(function() {
908
+ return yr(n, t, s);
909
+ }), null;
910
+ }, $r = /* @__PURE__ */ Rr(function(e, r, n) {
911
+ var t = e.css;
912
+ typeof t == "string" && r.registered[t] !== void 0 && (t = r.registered[t]);
913
+ var s = e[ge], a = [t], i = "";
914
+ typeof e.className == "string" ? i = mr(r.registered, a, e.className) : e.className != null && (i = e.className + " ");
915
+ var o = ye(a, void 0, k.useContext(oe));
916
+ if (process.env.NODE_ENV !== "production" && o.name.indexOf("-") === -1) {
917
+ var l = e[ve];
918
+ l && (o = ye([o, "label:" + l + ";"]));
919
+ }
920
+ i += r.key + "-" + o.name;
921
+ var h = {};
922
+ for (var c in e)
923
+ Ar.call(e, c) && c !== "css" && c !== ge && (process.env.NODE_ENV === "production" || c !== ve) && (h[c] = e[c]);
924
+ return h.ref = n, h.className = i, /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(Ir, {
925
+ cache: r,
926
+ serialized: o,
927
+ isStringTag: typeof s == "string"
928
+ }), /* @__PURE__ */ k.createElement(s, h));
929
+ });
930
+ process.env.NODE_ENV !== "production" && ($r.displayName = "EmotionCssPropInternal");
931
+ function Tr(e) {
932
+ return Object.keys(e).length === 0;
933
+ }
934
+ function Mr(e = null) {
935
+ const r = k.useContext(oe);
936
+ return !r || Tr(r) ? e : r;
937
+ }
938
+ export {
939
+ Pr as T,
940
+ oe as a,
941
+ kr as b,
942
+ Mr as c,
943
+ mr as g,
944
+ yr as i,
945
+ Te as m,
946
+ Se as r,
947
+ ye as s,
948
+ Vr as u,
949
+ Rr as w
950
+ };