@cleartrip/ct-design-container 3.0.0 → 3.1.0-SNAPSHOT-test.6

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.
@@ -1,12 +1,28 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('styled-components')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', 'styled-components'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemContainer = {}, global.jsxRuntime, global.React, global.styled));
5
- })(this, (function (exports, jsxRuntime, react, styled) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('@cleartrip/ct-design-style-manager')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', '@cleartrip/ct-design-style-manager'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemContainer = {}, global.jsxRuntime, global.React, global.ctDesignStyleManager));
5
+ })(this, (function (exports, jsxRuntime, React, ctDesignStyleManager) { 'use strict';
6
6
 
7
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
8
24
 
9
- var styled__default = /*#__PURE__*/_interopDefault(styled);
25
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
10
26
 
11
27
  /******************************************************************************
12
28
  Copyright (c) Microsoft Corporation.
@@ -22,7 +38,7 @@
22
38
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
39
  PERFORMANCE OF THIS SOFTWARE.
24
40
  ***************************************************************************** */
25
- /* global Reflect, Promise, SuppressedError, Symbol */
41
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
26
42
 
27
43
  var __assign = function () {
28
44
  __assign = Object.assign || function __assign(t) {
@@ -42,23 +58,2104 @@
42
58
  }
43
59
  return t;
44
60
  }
61
+ function __spreadArray(to, from, pack) {
62
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
63
+ if (ar || !(i in from)) {
64
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
65
+ ar[i] = from[i];
66
+ }
67
+ }
68
+ return to.concat(ar || Array.prototype.slice.call(from));
69
+ }
45
70
  typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
46
71
  var e = new Error(message);
47
72
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
48
73
  };
49
74
 
75
+ function _extends$1() {
76
+ return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
77
+ for (var e = 1; e < arguments.length; e++) {
78
+ var t = arguments[e];
79
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
80
+ }
81
+ return n;
82
+ }, _extends$1.apply(null, arguments);
83
+ }
84
+
85
+ var isDevelopment$3 = false;
86
+
87
+ /*
88
+
89
+ Based off glamor's StyleSheet, thanks Sunil ❤️
90
+
91
+ high performance StyleSheet for css-in-js systems
92
+
93
+ - uses multiple style tags behind the scenes for millions of rules
94
+ - uses `insertRule` for appending in production for *much* faster performance
95
+
96
+ // usage
97
+
98
+ import { StyleSheet } from '@emotion/sheet'
99
+
100
+ let styleSheet = new StyleSheet({ key: '', container: document.head })
101
+
102
+ styleSheet.insert('#box { border: 1px solid red; }')
103
+ - appends a css rule into the stylesheet
104
+
105
+ styleSheet.flush()
106
+ - empties the stylesheet of all its contents
107
+
108
+ */
109
+
110
+ function sheetForTag(tag) {
111
+ if (tag.sheet) {
112
+ return tag.sheet;
113
+ } // this weirdness brought to you by firefox
114
+
115
+ /* istanbul ignore next */
116
+
117
+ for (var i = 0; i < document.styleSheets.length; i++) {
118
+ if (document.styleSheets[i].ownerNode === tag) {
119
+ return document.styleSheets[i];
120
+ }
121
+ } // this function should always return with a value
122
+ // TS can't understand it though so we make it stop complaining here
123
+
124
+ return undefined;
125
+ }
126
+ function createStyleElement(options) {
127
+ var tag = document.createElement('style');
128
+ tag.setAttribute('data-emotion', options.key);
129
+ if (options.nonce !== undefined) {
130
+ tag.setAttribute('nonce', options.nonce);
131
+ }
132
+ tag.appendChild(document.createTextNode(''));
133
+ tag.setAttribute('data-s', '');
134
+ return tag;
135
+ }
136
+ var StyleSheet = /*#__PURE__*/function () {
137
+ // Using Node instead of HTMLElement since container may be a ShadowRoot
138
+ function StyleSheet(options) {
139
+ var _this = this;
140
+ this._insertTag = function (tag) {
141
+ var before;
142
+ if (_this.tags.length === 0) {
143
+ if (_this.insertionPoint) {
144
+ before = _this.insertionPoint.nextSibling;
145
+ } else if (_this.prepend) {
146
+ before = _this.container.firstChild;
147
+ } else {
148
+ before = _this.before;
149
+ }
150
+ } else {
151
+ before = _this.tags[_this.tags.length - 1].nextSibling;
152
+ }
153
+ _this.container.insertBefore(tag, before);
154
+ _this.tags.push(tag);
155
+ };
156
+ this.isSpeedy = options.speedy === undefined ? !isDevelopment$3 : options.speedy;
157
+ this.tags = [];
158
+ this.ctr = 0;
159
+ this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
160
+
161
+ this.key = options.key;
162
+ this.container = options.container;
163
+ this.prepend = options.prepend;
164
+ this.insertionPoint = options.insertionPoint;
165
+ this.before = null;
166
+ }
167
+ var _proto = StyleSheet.prototype;
168
+ _proto.hydrate = function hydrate(nodes) {
169
+ nodes.forEach(this._insertTag);
170
+ };
171
+ _proto.insert = function insert(rule) {
172
+ // the max length is how many rules we have per style tag, it's 65000 in speedy mode
173
+ // it's 1 in dev because we insert source maps that map a single rule to a location
174
+ // and you can only have one source map per style tag
175
+ if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
176
+ this._insertTag(createStyleElement(this));
177
+ }
178
+ var tag = this.tags[this.tags.length - 1];
179
+ if (this.isSpeedy) {
180
+ var sheet = sheetForTag(tag);
181
+ try {
182
+ // this is the ultrafast version, works across browsers
183
+ // the big drawback is that the css won't be editable in devtools
184
+ sheet.insertRule(rule, sheet.cssRules.length);
185
+ } catch (e) {}
186
+ } else {
187
+ tag.appendChild(document.createTextNode(rule));
188
+ }
189
+ this.ctr++;
190
+ };
191
+ _proto.flush = function flush() {
192
+ this.tags.forEach(function (tag) {
193
+ var _tag$parentNode;
194
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
195
+ });
196
+ this.tags = [];
197
+ this.ctr = 0;
198
+ };
199
+ return StyleSheet;
200
+ }();
201
+
202
+ var stylisExports = {};
203
+ var stylis = {
204
+ get exports(){ return stylisExports; },
205
+ set exports(v){ stylisExports = v; },
206
+ };
207
+
208
+ (function (module, exports) {
209
+ (function (e, r) {
210
+ r(exports) ;
211
+ })(this, function (e) {
212
+
213
+ var r = "-ms-";
214
+ var a = "-moz-";
215
+ var c = "-webkit-";
216
+ var n = "comm";
217
+ var t = "rule";
218
+ var s = "decl";
219
+ var i = "@page";
220
+ var u = "@media";
221
+ var o = "@import";
222
+ var f = "@charset";
223
+ var l = "@viewport";
224
+ var p = "@supports";
225
+ var h = "@document";
226
+ var v = "@namespace";
227
+ var d = "@keyframes";
228
+ var b = "@font-face";
229
+ var w = "@counter-style";
230
+ var m = "@font-feature-values";
231
+ var g = "@layer";
232
+ var k = Math.abs;
233
+ var $ = String.fromCharCode;
234
+ var x = Object.assign;
235
+ function E(e, r) {
236
+ return M(e, 0) ^ 45 ? (((r << 2 ^ M(e, 0)) << 2 ^ M(e, 1)) << 2 ^ M(e, 2)) << 2 ^ M(e, 3) : 0;
237
+ }
238
+ function y(e) {
239
+ return e.trim();
240
+ }
241
+ function T(e, r) {
242
+ return (e = r.exec(e)) ? e[0] : e;
243
+ }
244
+ function A(e, r, a) {
245
+ return e.replace(r, a);
246
+ }
247
+ function O(e, r) {
248
+ return e.indexOf(r);
249
+ }
250
+ function M(e, r) {
251
+ return e.charCodeAt(r) | 0;
252
+ }
253
+ function C(e, r, a) {
254
+ return e.slice(r, a);
255
+ }
256
+ function R(e) {
257
+ return e.length;
258
+ }
259
+ function S(e) {
260
+ return e.length;
261
+ }
262
+ function z(e, r) {
263
+ return r.push(e), e;
264
+ }
265
+ function N(e, r) {
266
+ return e.map(r).join("");
267
+ }
268
+ e.line = 1;
269
+ e.column = 1;
270
+ e.length = 0;
271
+ e.position = 0;
272
+ e.character = 0;
273
+ e.characters = "";
274
+ function P(r, a, c, n, t, s, i) {
275
+ return {
276
+ value: r,
277
+ root: a,
278
+ parent: c,
279
+ type: n,
280
+ props: t,
281
+ children: s,
282
+ line: e.line,
283
+ column: e.column,
284
+ length: i,
285
+ return: ""
286
+ };
287
+ }
288
+ function j(e, r) {
289
+ return x(P("", null, null, "", null, null, 0), e, {
290
+ length: -e.length
291
+ }, r);
292
+ }
293
+ function U() {
294
+ return e.character;
295
+ }
296
+ function _() {
297
+ e.character = e.position > 0 ? M(e.characters, --e.position) : 0;
298
+ if (e.column--, e.character === 10) e.column = 1, e.line--;
299
+ return e.character;
300
+ }
301
+ function F() {
302
+ e.character = e.position < e.length ? M(e.characters, e.position++) : 0;
303
+ if (e.column++, e.character === 10) e.column = 1, e.line++;
304
+ return e.character;
305
+ }
306
+ function I() {
307
+ return M(e.characters, e.position);
308
+ }
309
+ function L() {
310
+ return e.position;
311
+ }
312
+ function D(r, a) {
313
+ return C(e.characters, r, a);
314
+ }
315
+ function Y(e) {
316
+ switch (e) {
317
+ case 0:
318
+ case 9:
319
+ case 10:
320
+ case 13:
321
+ case 32:
322
+ return 5;
323
+ case 33:
324
+ case 43:
325
+ case 44:
326
+ case 47:
327
+ case 62:
328
+ case 64:
329
+ case 126:
330
+ case 59:
331
+ case 123:
332
+ case 125:
333
+ return 4;
334
+ case 58:
335
+ return 3;
336
+ case 34:
337
+ case 39:
338
+ case 40:
339
+ case 91:
340
+ return 2;
341
+ case 41:
342
+ case 93:
343
+ return 1;
344
+ }
345
+ return 0;
346
+ }
347
+ function K(r) {
348
+ return e.line = e.column = 1, e.length = R(e.characters = r), e.position = 0, [];
349
+ }
350
+ function V(r) {
351
+ return e.characters = "", r;
352
+ }
353
+ function W(r) {
354
+ return y(D(e.position - 1, q(r === 91 ? r + 2 : r === 40 ? r + 1 : r)));
355
+ }
356
+ function B(e) {
357
+ return V(H(K(e)));
358
+ }
359
+ function G(r) {
360
+ while (e.character = I()) if (e.character < 33) F();else break;
361
+ return Y(r) > 2 || Y(e.character) > 3 ? "" : " ";
362
+ }
363
+ function H(r) {
364
+ while (F()) switch (Y(e.character)) {
365
+ case 0:
366
+ z(Q(e.position - 1), r);
367
+ break;
368
+ case 2:
369
+ z(W(e.character), r);
370
+ break;
371
+ default:
372
+ z($(e.character), r);
373
+ }
374
+ return r;
375
+ }
376
+ function Z(r, a) {
377
+ while (--a && F()) if (e.character < 48 || e.character > 102 || e.character > 57 && e.character < 65 || e.character > 70 && e.character < 97) break;
378
+ return D(r, L() + (a < 6 && I() == 32 && F() == 32));
379
+ }
380
+ function q(r) {
381
+ while (F()) switch (e.character) {
382
+ case r:
383
+ return e.position;
384
+ case 34:
385
+ case 39:
386
+ if (r !== 34 && r !== 39) q(e.character);
387
+ break;
388
+ case 40:
389
+ if (r === 41) q(r);
390
+ break;
391
+ case 92:
392
+ F();
393
+ break;
394
+ }
395
+ return e.position;
396
+ }
397
+ function J(r, a) {
398
+ while (F()) if (r + e.character === 47 + 10) break;else if (r + e.character === 42 + 42 && I() === 47) break;
399
+ return "/*" + D(a, e.position - 1) + "*" + $(r === 47 ? r : F());
400
+ }
401
+ function Q(r) {
402
+ while (!Y(I())) F();
403
+ return D(r, e.position);
404
+ }
405
+ function X(e) {
406
+ return V(ee("", null, null, null, [""], e = K(e), 0, [0], e));
407
+ }
408
+ function ee(e, r, a, c, n, t, s, i, u) {
409
+ var o = 0;
410
+ var f = 0;
411
+ var l = s;
412
+ var p = 0;
413
+ var h = 0;
414
+ var v = 0;
415
+ var d = 1;
416
+ var b = 1;
417
+ var w = 1;
418
+ var m = 0;
419
+ var g = "";
420
+ var k = n;
421
+ var x = t;
422
+ var E = c;
423
+ var y = g;
424
+ while (b) switch (v = m, m = F()) {
425
+ case 40:
426
+ if (v != 108 && M(y, l - 1) == 58) {
427
+ if (O(y += A(W(m), "&", "&\f"), "&\f") != -1) w = -1;
428
+ break;
429
+ }
430
+ case 34:
431
+ case 39:
432
+ case 91:
433
+ y += W(m);
434
+ break;
435
+ case 9:
436
+ case 10:
437
+ case 13:
438
+ case 32:
439
+ y += G(v);
440
+ break;
441
+ case 92:
442
+ y += Z(L() - 1, 7);
443
+ continue;
444
+ case 47:
445
+ switch (I()) {
446
+ case 42:
447
+ case 47:
448
+ z(ae(J(F(), L()), r, a), u);
449
+ break;
450
+ default:
451
+ y += "/";
452
+ }
453
+ break;
454
+ case 123 * d:
455
+ i[o++] = R(y) * w;
456
+ case 125 * d:
457
+ case 59:
458
+ case 0:
459
+ switch (m) {
460
+ case 0:
461
+ case 125:
462
+ b = 0;
463
+ case 59 + f:
464
+ if (w == -1) y = A(y, /\f/g, "");
465
+ if (h > 0 && R(y) - l) z(h > 32 ? ce(y + ";", c, a, l - 1) : ce(A(y, " ", "") + ";", c, a, l - 2), u);
466
+ break;
467
+ case 59:
468
+ y += ";";
469
+ default:
470
+ z(E = re(y, r, a, o, f, n, i, g, k = [], x = [], l), t);
471
+ if (m === 123) if (f === 0) ee(y, r, E, E, k, t, l, i, x);else switch (p === 99 && M(y, 3) === 110 ? 100 : p) {
472
+ case 100:
473
+ case 108:
474
+ case 109:
475
+ case 115:
476
+ ee(e, E, E, c && z(re(e, E, E, 0, 0, n, i, g, n, k = [], l), x), n, x, l, i, c ? k : x);
477
+ break;
478
+ default:
479
+ ee(y, E, E, E, [""], x, 0, i, x);
480
+ }
481
+ }
482
+ o = f = h = 0, d = w = 1, g = y = "", l = s;
483
+ break;
484
+ case 58:
485
+ l = 1 + R(y), h = v;
486
+ default:
487
+ if (d < 1) if (m == 123) --d;else if (m == 125 && d++ == 0 && _() == 125) continue;
488
+ switch (y += $(m), m * d) {
489
+ case 38:
490
+ w = f > 0 ? 1 : (y += "\f", -1);
491
+ break;
492
+ case 44:
493
+ i[o++] = (R(y) - 1) * w, w = 1;
494
+ break;
495
+ case 64:
496
+ if (I() === 45) y += W(F());
497
+ p = I(), f = l = R(g = y += Q(L())), m++;
498
+ break;
499
+ case 45:
500
+ if (v === 45 && R(y) == 2) d = 0;
501
+ }
502
+ }
503
+ return t;
504
+ }
505
+ function re(e, r, a, c, n, s, i, u, o, f, l) {
506
+ var p = n - 1;
507
+ var h = n === 0 ? s : [""];
508
+ var v = S(h);
509
+ for (var d = 0, b = 0, w = 0; d < c; ++d) for (var m = 0, g = C(e, p + 1, p = k(b = i[d])), $ = e; m < v; ++m) if ($ = y(b > 0 ? h[m] + " " + g : A(g, /&\f/g, h[m]))) o[w++] = $;
510
+ return P(e, r, a, n === 0 ? t : u, o, f, l);
511
+ }
512
+ function ae(e, r, a) {
513
+ return P(e, r, a, n, $(U()), C(e, 2, -2), 0);
514
+ }
515
+ function ce(e, r, a, c) {
516
+ return P(e, r, a, s, C(e, 0, c), C(e, c + 1, -1), c);
517
+ }
518
+ function ne(e, n, t) {
519
+ switch (E(e, n)) {
520
+ case 5103:
521
+ return c + "print-" + e + e;
522
+ case 5737:
523
+ case 4201:
524
+ case 3177:
525
+ case 3433:
526
+ case 1641:
527
+ case 4457:
528
+ case 2921:
529
+ case 5572:
530
+ case 6356:
531
+ case 5844:
532
+ case 3191:
533
+ case 6645:
534
+ case 3005:
535
+ case 6391:
536
+ case 5879:
537
+ case 5623:
538
+ case 6135:
539
+ case 4599:
540
+ case 4855:
541
+ case 4215:
542
+ case 6389:
543
+ case 5109:
544
+ case 5365:
545
+ case 5621:
546
+ case 3829:
547
+ return c + e + e;
548
+ case 4789:
549
+ return a + e + e;
550
+ case 5349:
551
+ case 4246:
552
+ case 4810:
553
+ case 6968:
554
+ case 2756:
555
+ return c + e + a + e + r + e + e;
556
+ case 5936:
557
+ switch (M(e, n + 11)) {
558
+ case 114:
559
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
560
+ case 108:
561
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
562
+ case 45:
563
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
564
+ }
565
+ case 6828:
566
+ case 4268:
567
+ case 2903:
568
+ return c + e + r + e + e;
569
+ case 6165:
570
+ return c + e + r + "flex-" + e + e;
571
+ case 5187:
572
+ return c + e + A(e, /(\w+).+(:[^]+)/, c + "box-$1$2" + r + "flex-$1$2") + e;
573
+ case 5443:
574
+ return c + e + r + "flex-item-" + A(e, /flex-|-self/g, "") + (!T(e, /flex-|baseline/) ? r + "grid-row-" + A(e, /flex-|-self/g, "") : "") + e;
575
+ case 4675:
576
+ return c + e + r + "flex-line-pack" + A(e, /align-content|flex-|-self/g, "") + e;
577
+ case 5548:
578
+ return c + e + r + A(e, "shrink", "negative") + e;
579
+ case 5292:
580
+ return c + e + r + A(e, "basis", "preferred-size") + e;
581
+ case 6060:
582
+ return c + "box-" + A(e, "-grow", "") + c + e + r + A(e, "grow", "positive") + e;
583
+ case 4554:
584
+ return c + A(e, /([^-])(transform)/g, "$1" + c + "$2") + e;
585
+ case 6187:
586
+ return A(A(A(e, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), e, "") + e;
587
+ case 5495:
588
+ case 3959:
589
+ return A(e, /(image-set\([^]*)/, c + "$1" + "$`$1");
590
+ case 4968:
591
+ return A(A(e, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + r + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + c + e + e;
592
+ case 4200:
593
+ if (!T(e, /flex-|baseline/)) return r + "grid-column-align" + C(e, n) + e;
594
+ break;
595
+ case 2592:
596
+ case 3360:
597
+ return r + A(e, "template-", "") + e;
598
+ case 4384:
599
+ case 3616:
600
+ if (t && t.some(function (e, r) {
601
+ return n = r, T(e.props, /grid-\w+-end/);
602
+ })) {
603
+ return ~O(e + (t = t[n].value), "span") ? e : r + A(e, "-start", "") + e + r + "grid-row-span:" + (~O(t, "span") ? T(t, /\d+/) : +T(t, /\d+/) - +T(e, /\d+/)) + ";";
604
+ }
605
+ return r + A(e, "-start", "") + e;
606
+ case 4896:
607
+ case 4128:
608
+ return t && t.some(function (e) {
609
+ return T(e.props, /grid-\w+-start/);
610
+ }) ? e : r + A(A(e, "-end", "-span"), "span ", "") + e;
611
+ case 4095:
612
+ case 3583:
613
+ case 4068:
614
+ case 2532:
615
+ return A(e, /(.+)-inline(.+)/, c + "$1$2") + e;
616
+ case 8116:
617
+ case 7059:
618
+ case 5753:
619
+ case 5535:
620
+ case 5445:
621
+ case 5701:
622
+ case 4933:
623
+ case 4677:
624
+ case 5533:
625
+ case 5789:
626
+ case 5021:
627
+ case 4765:
628
+ if (R(e) - 1 - n > 6) switch (M(e, n + 1)) {
629
+ case 109:
630
+ if (M(e, n + 4) !== 45) break;
631
+ case 102:
632
+ return A(e, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3" + "$1" + a + (M(e, n + 3) == 108 ? "$3" : "$2-$3")) + e;
633
+ case 115:
634
+ return ~O(e, "stretch") ? ne(A(e, "stretch", "fill-available"), n, t) + e : e;
635
+ }
636
+ break;
637
+ case 5152:
638
+ case 5920:
639
+ return A(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (a, c, n, t, s, i, u) {
640
+ return r + c + ":" + n + u + (t ? r + c + "-span:" + (s ? i : +i - +n) + u : "") + e;
641
+ });
642
+ case 4949:
643
+ if (M(e, n + 6) === 121) return A(e, ":", ":" + c) + e;
644
+ break;
645
+ case 6444:
646
+ switch (M(e, M(e, 14) === 45 ? 18 : 11)) {
647
+ case 120:
648
+ return A(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + c + (M(e, 14) === 45 ? "inline-" : "") + "box$3" + "$1" + c + "$2$3" + "$1" + r + "$2box$3") + e;
649
+ case 100:
650
+ return A(e, ":", ":" + r) + e;
651
+ }
652
+ break;
653
+ case 5719:
654
+ case 2647:
655
+ case 2135:
656
+ case 3927:
657
+ case 2391:
658
+ return A(e, "scroll-", "scroll-snap-") + e;
659
+ }
660
+ return e;
661
+ }
662
+ function te(e, r) {
663
+ var a = "";
664
+ var c = S(e);
665
+ for (var n = 0; n < c; n++) a += r(e[n], n, e, r) || "";
666
+ return a;
667
+ }
668
+ function se(e, r, a, c) {
669
+ switch (e.type) {
670
+ case g:
671
+ if (e.children.length) break;
672
+ case o:
673
+ case s:
674
+ return e.return = e.return || e.value;
675
+ case n:
676
+ return "";
677
+ case d:
678
+ return e.return = e.value + "{" + te(e.children, c) + "}";
679
+ case t:
680
+ e.value = e.props.join(",");
681
+ }
682
+ return R(a = te(e.children, c)) ? e.return = e.value + "{" + a + "}" : "";
683
+ }
684
+ function ie(e) {
685
+ var r = S(e);
686
+ return function (a, c, n, t) {
687
+ var s = "";
688
+ for (var i = 0; i < r; i++) s += e[i](a, c, n, t) || "";
689
+ return s;
690
+ };
691
+ }
692
+ function ue(e) {
693
+ return function (r) {
694
+ if (!r.root) if (r = r.return) e(r);
695
+ };
696
+ }
697
+ function oe(e, n, i, u) {
698
+ if (e.length > -1) if (!e.return) switch (e.type) {
699
+ case s:
700
+ e.return = ne(e.value, e.length, i);
701
+ return;
702
+ case d:
703
+ return te([j(e, {
704
+ value: A(e.value, "@", "@" + c)
705
+ })], u);
706
+ case t:
707
+ if (e.length) return N(e.props, function (n) {
708
+ switch (T(n, /(::plac\w+|:read-\w+)/)) {
709
+ case ":read-only":
710
+ case ":read-write":
711
+ return te([j(e, {
712
+ props: [A(n, /:(read-\w+)/, ":" + a + "$1")]
713
+ })], u);
714
+ case "::placeholder":
715
+ return te([j(e, {
716
+ props: [A(n, /:(plac\w+)/, ":" + c + "input-$1")]
717
+ }), j(e, {
718
+ props: [A(n, /:(plac\w+)/, ":" + a + "$1")]
719
+ }), j(e, {
720
+ props: [A(n, /:(plac\w+)/, r + "input-$1")]
721
+ })], u);
722
+ }
723
+ return "";
724
+ });
725
+ }
726
+ }
727
+ function fe(e) {
728
+ switch (e.type) {
729
+ case t:
730
+ e.props = e.props.map(function (r) {
731
+ return N(B(r), function (r, a, c) {
732
+ switch (M(r, 0)) {
733
+ case 12:
734
+ return C(r, 1, R(r));
735
+ case 0:
736
+ case 40:
737
+ case 43:
738
+ case 62:
739
+ case 126:
740
+ return r;
741
+ case 58:
742
+ if (c[++a] === "global") c[a] = "", c[++a] = "\f" + C(c[a], a = 1, -1);
743
+ case 32:
744
+ return a === 1 ? "" : r;
745
+ default:
746
+ switch (a) {
747
+ case 0:
748
+ e = r;
749
+ return S(c) > 1 ? "" : r;
750
+ case a = S(c) - 1:
751
+ case 2:
752
+ return a === 2 ? r + e + e : r + e;
753
+ default:
754
+ return r;
755
+ }
756
+ }
757
+ });
758
+ });
759
+ }
760
+ }
761
+ e.CHARSET = f;
762
+ e.COMMENT = n;
763
+ e.COUNTER_STYLE = w;
764
+ e.DECLARATION = s;
765
+ e.DOCUMENT = h;
766
+ e.FONT_FACE = b;
767
+ e.FONT_FEATURE_VALUES = m;
768
+ e.IMPORT = o;
769
+ e.KEYFRAMES = d;
770
+ e.LAYER = g;
771
+ e.MEDIA = u;
772
+ e.MOZ = a;
773
+ e.MS = r;
774
+ e.NAMESPACE = v;
775
+ e.PAGE = i;
776
+ e.RULESET = t;
777
+ e.SUPPORTS = p;
778
+ e.VIEWPORT = l;
779
+ e.WEBKIT = c;
780
+ e.abs = k;
781
+ e.alloc = K;
782
+ e.append = z;
783
+ e.assign = x;
784
+ e.caret = L;
785
+ e.char = U;
786
+ e.charat = M;
787
+ e.combine = N;
788
+ e.comment = ae;
789
+ e.commenter = J;
790
+ e.compile = X;
791
+ e.copy = j;
792
+ e.dealloc = V;
793
+ e.declaration = ce;
794
+ e.delimit = W;
795
+ e.delimiter = q;
796
+ e.escaping = Z;
797
+ e.from = $;
798
+ e.hash = E;
799
+ e.identifier = Q;
800
+ e.indexof = O;
801
+ e.match = T;
802
+ e.middleware = ie;
803
+ e.namespace = fe;
804
+ e.next = F;
805
+ e.node = P;
806
+ e.parse = ee;
807
+ e.peek = I;
808
+ e.prefix = ne;
809
+ e.prefixer = oe;
810
+ e.prev = _;
811
+ e.replace = A;
812
+ e.ruleset = re;
813
+ e.rulesheet = ue;
814
+ e.serialize = te;
815
+ e.sizeof = S;
816
+ e.slice = D;
817
+ e.stringify = se;
818
+ e.strlen = R;
819
+ e.substr = C;
820
+ e.token = Y;
821
+ e.tokenize = B;
822
+ e.tokenizer = H;
823
+ e.trim = y;
824
+ e.whitespace = G;
825
+ Object.defineProperty(e, "__esModule", {
826
+ value: true
827
+ });
828
+ });
829
+ })(stylis, stylisExports);
830
+
831
+ var weakMemoize = function weakMemoize(func) {
832
+ var cache = new WeakMap();
833
+ return function (arg) {
834
+ if (cache.has(arg)) {
835
+ // Use non-null assertion because we just checked that the cache `has` it
836
+ // This allows us to remove `undefined` from the return value
837
+ return cache.get(arg);
838
+ }
839
+ var ret = func(arg);
840
+ cache.set(arg, ret);
841
+ return ret;
842
+ };
843
+ };
844
+
845
+ function memoize(fn) {
846
+ var cache = Object.create(null);
847
+ return function (arg) {
848
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
849
+ return cache[arg];
850
+ };
851
+ }
852
+
853
+ var isBrowser$4 = typeof document !== 'undefined';
854
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
855
+ var previous = 0;
856
+ var character = 0;
857
+ while (true) {
858
+ previous = character;
859
+ character = stylisExports.peek(); // &\f
860
+
861
+ if (previous === 38 && character === 12) {
862
+ points[index] = 1;
863
+ }
864
+ if (stylisExports.token(character)) {
865
+ break;
866
+ }
867
+ stylisExports.next();
868
+ }
869
+ return stylisExports.slice(begin, stylisExports.position);
870
+ };
871
+ var toRules = function toRules(parsed, points) {
872
+ // pretend we've started with a comma
873
+ var index = -1;
874
+ var character = 44;
875
+ do {
876
+ switch (stylisExports.token(character)) {
877
+ case 0:
878
+ // &\f
879
+ if (character === 38 && stylisExports.peek() === 12) {
880
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
881
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
882
+ // and when it should just concatenate the outer and inner selectors
883
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
884
+ points[index] = 1;
885
+ }
886
+ parsed[index] += identifierWithPointTracking(stylisExports.position - 1, points, index);
887
+ break;
888
+ case 2:
889
+ parsed[index] += stylisExports.delimit(character);
890
+ break;
891
+ case 4:
892
+ // comma
893
+ if (character === 44) {
894
+ // colon
895
+ parsed[++index] = stylisExports.peek() === 58 ? '&\f' : '';
896
+ points[index] = parsed[index].length;
897
+ break;
898
+ }
899
+
900
+ // fallthrough
901
+
902
+ default:
903
+ parsed[index] += stylisExports.from(character);
904
+ }
905
+ } while (character = stylisExports.next());
906
+ return parsed;
907
+ };
908
+ var getRules = function getRules(value, points) {
909
+ return stylisExports.dealloc(toRules(stylisExports.alloc(value), points));
910
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
911
+
912
+ var fixedElements = /* #__PURE__ */new WeakMap();
913
+ var compat = function compat(element) {
914
+ if (element.type !== 'rule' || !element.parent ||
915
+ // positive .length indicates that this rule contains pseudo
916
+ // negative .length indicates that this rule has been already prefixed
917
+ element.length < 1) {
918
+ return;
919
+ }
920
+ var value = element.value;
921
+ var parent = element.parent;
922
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
923
+ while (parent.type !== 'rule') {
924
+ parent = parent.parent;
925
+ if (!parent) return;
926
+ } // short-circuit for the simplest case
927
+
928
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
929
+ /* colon */ && !fixedElements.get(parent)) {
930
+ return;
931
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
932
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
933
+
934
+ if (isImplicitRule) {
935
+ return;
936
+ }
937
+ fixedElements.set(element, true);
938
+ var points = [];
939
+ var rules = getRules(value, points);
940
+ var parentRules = parent.props;
941
+ for (var i = 0, k = 0; i < rules.length; i++) {
942
+ for (var j = 0; j < parentRules.length; j++, k++) {
943
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
944
+ }
945
+ }
946
+ };
947
+ var removeLabel = function removeLabel(element) {
948
+ if (element.type === 'decl') {
949
+ var value = element.value;
950
+ if (
951
+ // charcode for l
952
+ value.charCodeAt(0) === 108 &&
953
+ // charcode for b
954
+ value.charCodeAt(2) === 98) {
955
+ // this ignores label
956
+ element["return"] = '';
957
+ element.value = '';
958
+ }
959
+ }
960
+ };
961
+
962
+ /* eslint-disable no-fallthrough */
963
+
964
+ function prefix(value, length) {
965
+ switch (stylisExports.hash(value, length)) {
966
+ // color-adjust
967
+ case 5103:
968
+ return stylisExports.WEBKIT + 'print-' + value + value;
969
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
970
+
971
+ case 5737:
972
+ case 4201:
973
+ case 3177:
974
+ case 3433:
975
+ case 1641:
976
+ case 4457:
977
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
978
+
979
+ case 5572:
980
+ case 6356:
981
+ case 5844:
982
+ case 3191:
983
+ case 6645:
984
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
985
+
986
+ case 6391:
987
+ case 5879:
988
+ case 5623:
989
+ case 6135:
990
+ case 4599:
991
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
992
+
993
+ case 4215:
994
+ case 6389:
995
+ case 5109:
996
+ case 5365:
997
+ case 5621:
998
+ case 3829:
999
+ return stylisExports.WEBKIT + value + value;
1000
+ // appearance, user-select, transform, hyphens, text-size-adjust
1001
+
1002
+ case 5349:
1003
+ case 4246:
1004
+ case 4810:
1005
+ case 6968:
1006
+ case 2756:
1007
+ return stylisExports.WEBKIT + value + stylisExports.MOZ + value + stylisExports.MS + value + value;
1008
+ // flex, flex-direction
1009
+
1010
+ case 6828:
1011
+ case 4268:
1012
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1013
+ // order
1014
+
1015
+ case 6165:
1016
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-' + value + value;
1017
+ // align-items
1018
+
1019
+ case 5187:
1020
+ return stylisExports.WEBKIT + value + stylisExports.replace(value, /(\w+).+(:[^]+)/, stylisExports.WEBKIT + 'box-$1$2' + stylisExports.MS + 'flex-$1$2') + value;
1021
+ // align-self
1022
+
1023
+ case 5443:
1024
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-item-' + stylisExports.replace(value, /flex-|-self/, '') + value;
1025
+ // align-content
1026
+
1027
+ case 4675:
1028
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-line-pack' + stylisExports.replace(value, /align-content|flex-|-self/, '') + value;
1029
+ // flex-shrink
1030
+
1031
+ case 5548:
1032
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'shrink', 'negative') + value;
1033
+ // flex-basis
1034
+
1035
+ case 5292:
1036
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'basis', 'preferred-size') + value;
1037
+ // flex-grow
1038
+
1039
+ case 6060:
1040
+ return stylisExports.WEBKIT + 'box-' + stylisExports.replace(value, '-grow', '') + stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'grow', 'positive') + value;
1041
+ // transition
1042
+
1043
+ case 4554:
1044
+ return stylisExports.WEBKIT + stylisExports.replace(value, /([^-])(transform)/g, '$1' + stylisExports.WEBKIT + '$2') + value;
1045
+ // cursor
1046
+
1047
+ case 6187:
1048
+ return stylisExports.replace(stylisExports.replace(stylisExports.replace(value, /(zoom-|grab)/, stylisExports.WEBKIT + '$1'), /(image-set)/, stylisExports.WEBKIT + '$1'), value, '') + value;
1049
+ // background, background-image
1050
+
1051
+ case 5495:
1052
+ case 3959:
1053
+ return stylisExports.replace(value, /(image-set\([^]*)/, stylisExports.WEBKIT + '$1' + '$`$1');
1054
+ // justify-content
1055
+
1056
+ case 4968:
1057
+ return stylisExports.replace(stylisExports.replace(value, /(.+:)(flex-)?(.*)/, stylisExports.WEBKIT + 'box-pack:$3' + stylisExports.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylisExports.WEBKIT + value + value;
1058
+ // (margin|padding)-inline-(start|end)
1059
+
1060
+ case 4095:
1061
+ case 3583:
1062
+ case 4068:
1063
+ case 2532:
1064
+ return stylisExports.replace(value, /(.+)-inline(.+)/, stylisExports.WEBKIT + '$1$2') + value;
1065
+ // (min|max)?(width|height|inline-size|block-size)
1066
+
1067
+ case 8116:
1068
+ case 7059:
1069
+ case 5753:
1070
+ case 5535:
1071
+ case 5445:
1072
+ case 5701:
1073
+ case 4933:
1074
+ case 4677:
1075
+ case 5533:
1076
+ case 5789:
1077
+ case 5021:
1078
+ case 4765:
1079
+ // stretch, max-content, min-content, fill-available
1080
+ if (stylisExports.strlen(value) - 1 - length > 6) switch (stylisExports.charat(value, length + 1)) {
1081
+ // (m)ax-content, (m)in-content
1082
+ case 109:
1083
+ // -
1084
+ if (stylisExports.charat(value, length + 4) !== 45) break;
1085
+ // (f)ill-available, (f)it-content
1086
+
1087
+ case 102:
1088
+ return stylisExports.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylisExports.WEBKIT + '$2-$3' + '$1' + stylisExports.MOZ + (stylisExports.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
1089
+ // (s)tretch
1090
+
1091
+ case 115:
1092
+ return ~stylisExports.indexof(value, 'stretch') ? prefix(stylisExports.replace(value, 'stretch', 'fill-available'), length) + value : value;
1093
+ }
1094
+ break;
1095
+ // position: sticky
1096
+
1097
+ case 4949:
1098
+ // (s)ticky?
1099
+ if (stylisExports.charat(value, length + 1) !== 115) break;
1100
+ // display: (flex|inline-flex)
1101
+
1102
+ case 6444:
1103
+ switch (stylisExports.charat(value, stylisExports.strlen(value) - 3 - (~stylisExports.indexof(value, '!important') && 10))) {
1104
+ // stic(k)y
1105
+ case 107:
1106
+ return stylisExports.replace(value, ':', ':' + stylisExports.WEBKIT) + value;
1107
+ // (inline-)?fl(e)x
1108
+
1109
+ case 101:
1110
+ return stylisExports.replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylisExports.WEBKIT + (stylisExports.charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylisExports.WEBKIT + '$2$3' + '$1' + stylisExports.MS + '$2box$3') + value;
1111
+ }
1112
+ break;
1113
+ // writing-mode
1114
+
1115
+ case 5936:
1116
+ switch (stylisExports.charat(value, length + 11)) {
1117
+ // vertical-l(r)
1118
+ case 114:
1119
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
1120
+ // vertical-r(l)
1121
+
1122
+ case 108:
1123
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
1124
+ // horizontal(-)tb
1125
+
1126
+ case 45:
1127
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
1128
+ }
1129
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1130
+ }
1131
+ return value;
1132
+ }
1133
+ var prefixer = function prefixer(element, index, children, callback) {
1134
+ if (element.length > -1) if (!element["return"]) switch (element.type) {
1135
+ case stylisExports.DECLARATION:
1136
+ element["return"] = prefix(element.value, element.length);
1137
+ break;
1138
+ case stylisExports.KEYFRAMES:
1139
+ return stylisExports.serialize([stylisExports.copy(element, {
1140
+ value: stylisExports.replace(element.value, '@', '@' + stylisExports.WEBKIT)
1141
+ })], callback);
1142
+ case stylisExports.RULESET:
1143
+ if (element.length) return stylisExports.combine(element.props, function (value) {
1144
+ switch (stylisExports.match(value, /(::plac\w+|:read-\w+)/)) {
1145
+ // :read-(only|write)
1146
+ case ':read-only':
1147
+ case ':read-write':
1148
+ return stylisExports.serialize([stylisExports.copy(element, {
1149
+ props: [stylisExports.replace(value, /:(read-\w+)/, ':' + stylisExports.MOZ + '$1')]
1150
+ })], callback);
1151
+ // :placeholder
1152
+
1153
+ case '::placeholder':
1154
+ return stylisExports.serialize([stylisExports.copy(element, {
1155
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.WEBKIT + 'input-$1')]
1156
+ }), stylisExports.copy(element, {
1157
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.MOZ + '$1')]
1158
+ }), stylisExports.copy(element, {
1159
+ props: [stylisExports.replace(value, /:(plac\w+)/, stylisExports.MS + 'input-$1')]
1160
+ })], callback);
1161
+ }
1162
+ return '';
1163
+ });
1164
+ }
1165
+ };
1166
+ var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
1167
+ return memoize(function () {
1168
+ return {};
1169
+ });
1170
+ });
1171
+ var defaultStylisPlugins = [prefixer];
1172
+ var createCache = function createCache(options) {
1173
+ var key = options.key;
1174
+ if (isBrowser$4 && key === 'css') {
1175
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1176
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1177
+ // note this very very intentionally targets all style elements regardless of the key to ensure
1178
+ // that creating a cache works inside of render of a React component
1179
+
1180
+ Array.prototype.forEach.call(ssrStyles, function (node) {
1181
+ // we want to only move elements which have a space in the data-emotion attribute value
1182
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
1183
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
1184
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
1185
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
1186
+ // will not result in the Emotion 10 styles being destroyed
1187
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
1188
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
1189
+ return;
1190
+ }
1191
+ document.head.appendChild(node);
1192
+ node.setAttribute('data-s', '');
1193
+ });
1194
+ }
1195
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1196
+ var inserted = {};
1197
+ var container;
1198
+ var nodesToHydrate = [];
1199
+ if (isBrowser$4) {
1200
+ container = options.container || document.head;
1201
+ Array.prototype.forEach.call(
1202
+ // this means we will ignore elements which don't have a space in them which
1203
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1204
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
1205
+ var attrib = node.getAttribute("data-emotion").split(' ');
1206
+ for (var i = 1; i < attrib.length; i++) {
1207
+ inserted[attrib[i]] = true;
1208
+ }
1209
+ nodesToHydrate.push(node);
1210
+ });
1211
+ }
1212
+ var _insert;
1213
+ var omnipresentPlugins = [compat, removeLabel];
1214
+ if (!getServerStylisCache) {
1215
+ var currentSheet;
1216
+ var finalizingPlugins = [stylisExports.stringify, stylisExports.rulesheet(function (rule) {
1217
+ currentSheet.insert(rule);
1218
+ })];
1219
+ var serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1220
+ var stylis = function stylis(styles) {
1221
+ return stylisExports.serialize(stylisExports.compile(styles), serializer);
1222
+ };
1223
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1224
+ currentSheet = sheet;
1225
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1226
+ if (shouldCache) {
1227
+ cache.inserted[serialized.name] = true;
1228
+ }
1229
+ };
1230
+ } else {
1231
+ var _finalizingPlugins = [stylisExports.stringify];
1232
+ var _serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
1233
+ var _stylis = function _stylis(styles) {
1234
+ return stylisExports.serialize(stylisExports.compile(styles), _serializer);
1235
+ };
1236
+ var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
1237
+ var getRules = function getRules(selector, serialized) {
1238
+ var name = serialized.name;
1239
+ if (serverStylisCache[name] === undefined) {
1240
+ serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1241
+ }
1242
+ return serverStylisCache[name];
1243
+ };
1244
+ _insert = function _insert(selector, serialized, sheet, shouldCache) {
1245
+ var name = serialized.name;
1246
+ var rules = getRules(selector, serialized);
1247
+ if (cache.compat === undefined) {
1248
+ // in regular mode, we don't set the styles on the inserted cache
1249
+ // since we don't need to and that would be wasting memory
1250
+ // we return them so that they are rendered in a style tag
1251
+ if (shouldCache) {
1252
+ cache.inserted[name] = true;
1253
+ }
1254
+ return rules;
1255
+ } else {
1256
+ // in compat mode, we put the styles on the inserted cache so
1257
+ // that emotion-server can pull out the styles
1258
+ // except when we don't want to cache it which was in Global but now
1259
+ // is nowhere but we don't want to do a major right now
1260
+ // and just in case we're going to leave the case here
1261
+ // it's also not affecting client side bundle size
1262
+ // so it's really not a big deal
1263
+ if (shouldCache) {
1264
+ cache.inserted[name] = rules;
1265
+ } else {
1266
+ return rules;
1267
+ }
1268
+ }
1269
+ };
1270
+ }
1271
+ var cache = {
1272
+ key: key,
1273
+ sheet: new StyleSheet({
1274
+ key: key,
1275
+ container: container,
1276
+ nonce: options.nonce,
1277
+ speedy: options.speedy,
1278
+ prepend: options.prepend,
1279
+ insertionPoint: options.insertionPoint
1280
+ }),
1281
+ nonce: options.nonce,
1282
+ inserted: inserted,
1283
+ registered: {},
1284
+ insert: _insert
1285
+ };
1286
+ cache.sheet.hydrate(nodesToHydrate);
1287
+ return cache;
1288
+ };
1289
+
1290
+ var reactIsExports = {};
1291
+ var reactIs$1 = {
1292
+ get exports(){ return reactIsExports; },
1293
+ set exports(v){ reactIsExports = v; },
1294
+ };
1295
+
1296
+ var reactIs_production_min = {};
1297
+
1298
+ /** @license React v16.13.1
1299
+ * react-is.production.min.js
1300
+ *
1301
+ * Copyright (c) Facebook, Inc. and its affiliates.
1302
+ *
1303
+ * This source code is licensed under the MIT license found in the
1304
+ * LICENSE file in the root directory of this source tree.
1305
+ */
1306
+ var hasRequiredReactIs_production_min;
1307
+ function requireReactIs_production_min() {
1308
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
1309
+ hasRequiredReactIs_production_min = 1;
1310
+ var b = "function" === typeof Symbol && Symbol.for,
1311
+ c = b ? Symbol.for("react.element") : 60103,
1312
+ d = b ? Symbol.for("react.portal") : 60106,
1313
+ e = b ? Symbol.for("react.fragment") : 60107,
1314
+ f = b ? Symbol.for("react.strict_mode") : 60108,
1315
+ g = b ? Symbol.for("react.profiler") : 60114,
1316
+ h = b ? Symbol.for("react.provider") : 60109,
1317
+ k = b ? Symbol.for("react.context") : 60110,
1318
+ l = b ? Symbol.for("react.async_mode") : 60111,
1319
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
1320
+ n = b ? Symbol.for("react.forward_ref") : 60112,
1321
+ p = b ? Symbol.for("react.suspense") : 60113,
1322
+ q = b ? Symbol.for("react.suspense_list") : 60120,
1323
+ r = b ? Symbol.for("react.memo") : 60115,
1324
+ t = b ? Symbol.for("react.lazy") : 60116,
1325
+ v = b ? Symbol.for("react.block") : 60121,
1326
+ w = b ? Symbol.for("react.fundamental") : 60117,
1327
+ x = b ? Symbol.for("react.responder") : 60118,
1328
+ y = b ? Symbol.for("react.scope") : 60119;
1329
+ function z(a) {
1330
+ if ("object" === typeof a && null !== a) {
1331
+ var u = a.$$typeof;
1332
+ switch (u) {
1333
+ case c:
1334
+ switch (a = a.type, a) {
1335
+ case l:
1336
+ case m:
1337
+ case e:
1338
+ case g:
1339
+ case f:
1340
+ case p:
1341
+ return a;
1342
+ default:
1343
+ switch (a = a && a.$$typeof, a) {
1344
+ case k:
1345
+ case n:
1346
+ case t:
1347
+ case r:
1348
+ case h:
1349
+ return a;
1350
+ default:
1351
+ return u;
1352
+ }
1353
+ }
1354
+ case d:
1355
+ return u;
1356
+ }
1357
+ }
1358
+ }
1359
+ function A(a) {
1360
+ return z(a) === m;
1361
+ }
1362
+ reactIs_production_min.AsyncMode = l;
1363
+ reactIs_production_min.ConcurrentMode = m;
1364
+ reactIs_production_min.ContextConsumer = k;
1365
+ reactIs_production_min.ContextProvider = h;
1366
+ reactIs_production_min.Element = c;
1367
+ reactIs_production_min.ForwardRef = n;
1368
+ reactIs_production_min.Fragment = e;
1369
+ reactIs_production_min.Lazy = t;
1370
+ reactIs_production_min.Memo = r;
1371
+ reactIs_production_min.Portal = d;
1372
+ reactIs_production_min.Profiler = g;
1373
+ reactIs_production_min.StrictMode = f;
1374
+ reactIs_production_min.Suspense = p;
1375
+ reactIs_production_min.isAsyncMode = function (a) {
1376
+ return A(a) || z(a) === l;
1377
+ };
1378
+ reactIs_production_min.isConcurrentMode = A;
1379
+ reactIs_production_min.isContextConsumer = function (a) {
1380
+ return z(a) === k;
1381
+ };
1382
+ reactIs_production_min.isContextProvider = function (a) {
1383
+ return z(a) === h;
1384
+ };
1385
+ reactIs_production_min.isElement = function (a) {
1386
+ return "object" === typeof a && null !== a && a.$$typeof === c;
1387
+ };
1388
+ reactIs_production_min.isForwardRef = function (a) {
1389
+ return z(a) === n;
1390
+ };
1391
+ reactIs_production_min.isFragment = function (a) {
1392
+ return z(a) === e;
1393
+ };
1394
+ reactIs_production_min.isLazy = function (a) {
1395
+ return z(a) === t;
1396
+ };
1397
+ reactIs_production_min.isMemo = function (a) {
1398
+ return z(a) === r;
1399
+ };
1400
+ reactIs_production_min.isPortal = function (a) {
1401
+ return z(a) === d;
1402
+ };
1403
+ reactIs_production_min.isProfiler = function (a) {
1404
+ return z(a) === g;
1405
+ };
1406
+ reactIs_production_min.isStrictMode = function (a) {
1407
+ return z(a) === f;
1408
+ };
1409
+ reactIs_production_min.isSuspense = function (a) {
1410
+ return z(a) === p;
1411
+ };
1412
+ reactIs_production_min.isValidElementType = function (a) {
1413
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
1414
+ };
1415
+ reactIs_production_min.typeOf = z;
1416
+ return reactIs_production_min;
1417
+ }
1418
+
1419
+ (function (module) {
1420
+
1421
+ {
1422
+ module.exports = requireReactIs_production_min();
1423
+ }
1424
+ })(reactIs$1);
1425
+
1426
+ var reactIs = reactIsExports;
1427
+ var FORWARD_REF_STATICS = {
1428
+ '$$typeof': true,
1429
+ render: true,
1430
+ defaultProps: true,
1431
+ displayName: true,
1432
+ propTypes: true
1433
+ };
1434
+ var MEMO_STATICS = {
1435
+ '$$typeof': true,
1436
+ compare: true,
1437
+ defaultProps: true,
1438
+ displayName: true,
1439
+ propTypes: true,
1440
+ type: true
1441
+ };
1442
+ var TYPE_STATICS = {};
1443
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1444
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1445
+
1446
+ var isBrowser$3 = typeof document !== 'undefined';
1447
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1448
+ var rawClassName = '';
1449
+ classNames.split(' ').forEach(function (className) {
1450
+ if (registered[className] !== undefined) {
1451
+ registeredStyles.push(registered[className] + ";");
1452
+ } else if (className) {
1453
+ rawClassName += className + " ";
1454
+ }
1455
+ });
1456
+ return rawClassName;
1457
+ }
1458
+ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
1459
+ var className = cache.key + "-" + serialized.name;
1460
+ if (
1461
+ // we only need to add the styles to the registered cache if the
1462
+ // class name could be used further down
1463
+ // the tree but if it's a string tag, we know it won't
1464
+ // so we don't have to add it to registered cache.
1465
+ // this improves memory usage since we can avoid storing the whole style string
1466
+ (isStringTag === false ||
1467
+ // we need to always store it if we're in compat mode and
1468
+ // in node since emotion-server relies on whether a style is in
1469
+ // the registered cache to know whether a style is global or not
1470
+ // also, note that this check will be dead code eliminated in the browser
1471
+ isBrowser$3 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
1472
+ cache.registered[className] = serialized.styles;
1473
+ }
1474
+ };
1475
+ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
1476
+ registerStyles(cache, serialized, isStringTag);
1477
+ var className = cache.key + "-" + serialized.name;
1478
+ if (cache.inserted[serialized.name] === undefined) {
1479
+ var stylesForSSR = '';
1480
+ var current = serialized;
1481
+ do {
1482
+ var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
1483
+ if (!isBrowser$3 && maybeStyles !== undefined) {
1484
+ stylesForSSR += maybeStyles;
1485
+ }
1486
+ current = current.next;
1487
+ } while (current !== undefined);
1488
+ if (!isBrowser$3 && stylesForSSR.length !== 0) {
1489
+ return stylesForSSR;
1490
+ }
1491
+ }
1492
+ };
1493
+
1494
+ /* eslint-disable */
1495
+ // Inspired by https://github.com/garycourt/murmurhash-js
1496
+ // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
1497
+ function murmur2(str) {
1498
+ // 'm' and 'r' are mixing constants generated offline.
1499
+ // They're not really 'magic', they just happen to work well.
1500
+ // const m = 0x5bd1e995;
1501
+ // const r = 24;
1502
+ // Initialize the hash
1503
+ var h = 0; // Mix 4 bytes at a time into the hash
1504
+
1505
+ var k,
1506
+ i = 0,
1507
+ len = str.length;
1508
+ for (; len >= 4; ++i, len -= 4) {
1509
+ k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
1510
+ k = /* Math.imul(k, m): */
1511
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
1512
+ k ^= /* k >>> r: */
1513
+ k >>> 24;
1514
+ h = /* Math.imul(k, m): */
1515
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */
1516
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1517
+ } // Handle the last few bytes of the input array
1518
+
1519
+ switch (len) {
1520
+ case 3:
1521
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
1522
+ case 2:
1523
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
1524
+ case 1:
1525
+ h ^= str.charCodeAt(i) & 0xff;
1526
+ h = /* Math.imul(h, m): */
1527
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1528
+ } // Do a few final mixes of the hash to ensure the last few
1529
+ // bytes are well-incorporated.
1530
+
1531
+ h ^= h >>> 13;
1532
+ h = /* Math.imul(h, m): */
1533
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1534
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1535
+ }
1536
+
1537
+ var unitlessKeys = {
1538
+ animationIterationCount: 1,
1539
+ aspectRatio: 1,
1540
+ borderImageOutset: 1,
1541
+ borderImageSlice: 1,
1542
+ borderImageWidth: 1,
1543
+ boxFlex: 1,
1544
+ boxFlexGroup: 1,
1545
+ boxOrdinalGroup: 1,
1546
+ columnCount: 1,
1547
+ columns: 1,
1548
+ flex: 1,
1549
+ flexGrow: 1,
1550
+ flexPositive: 1,
1551
+ flexShrink: 1,
1552
+ flexNegative: 1,
1553
+ flexOrder: 1,
1554
+ gridRow: 1,
1555
+ gridRowEnd: 1,
1556
+ gridRowSpan: 1,
1557
+ gridRowStart: 1,
1558
+ gridColumn: 1,
1559
+ gridColumnEnd: 1,
1560
+ gridColumnSpan: 1,
1561
+ gridColumnStart: 1,
1562
+ msGridRow: 1,
1563
+ msGridRowSpan: 1,
1564
+ msGridColumn: 1,
1565
+ msGridColumnSpan: 1,
1566
+ fontWeight: 1,
1567
+ lineHeight: 1,
1568
+ opacity: 1,
1569
+ order: 1,
1570
+ orphans: 1,
1571
+ scale: 1,
1572
+ tabSize: 1,
1573
+ widows: 1,
1574
+ zIndex: 1,
1575
+ zoom: 1,
1576
+ WebkitLineClamp: 1,
1577
+ // SVG-related properties
1578
+ fillOpacity: 1,
1579
+ floodOpacity: 1,
1580
+ stopOpacity: 1,
1581
+ strokeDasharray: 1,
1582
+ strokeDashoffset: 1,
1583
+ strokeMiterlimit: 1,
1584
+ strokeOpacity: 1,
1585
+ strokeWidth: 1
1586
+ };
1587
+
1588
+ var isDevelopment$2 = false;
1589
+ var hyphenateRegex = /[A-Z]|^ms/g;
1590
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1591
+ var isCustomProperty = function isCustomProperty(property) {
1592
+ return property.charCodeAt(1) === 45;
1593
+ };
1594
+ var isProcessableValue = function isProcessableValue(value) {
1595
+ return value != null && typeof value !== 'boolean';
1596
+ };
1597
+ var processStyleName = /* #__PURE__ */memoize(function (styleName) {
1598
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
1599
+ });
1600
+ var processStyleValue = function processStyleValue(key, value) {
1601
+ switch (key) {
1602
+ case 'animation':
1603
+ case 'animationName':
1604
+ {
1605
+ if (typeof value === 'string') {
1606
+ return value.replace(animationRegex, function (match, p1, p2) {
1607
+ cursor = {
1608
+ name: p1,
1609
+ styles: p2,
1610
+ next: cursor
1611
+ };
1612
+ return p1;
1613
+ });
1614
+ }
1615
+ }
1616
+ }
1617
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
1618
+ return value + 'px';
1619
+ }
1620
+ return value;
1621
+ };
1622
+ var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
1623
+ function handleInterpolation(mergedProps, registered, interpolation) {
1624
+ if (interpolation == null) {
1625
+ return '';
1626
+ }
1627
+ var componentSelector = interpolation;
1628
+ if (componentSelector.__emotion_styles !== undefined) {
1629
+ return componentSelector;
1630
+ }
1631
+ switch (typeof interpolation) {
1632
+ case 'boolean':
1633
+ {
1634
+ return '';
1635
+ }
1636
+ case 'object':
1637
+ {
1638
+ var keyframes = interpolation;
1639
+ if (keyframes.anim === 1) {
1640
+ cursor = {
1641
+ name: keyframes.name,
1642
+ styles: keyframes.styles,
1643
+ next: cursor
1644
+ };
1645
+ return keyframes.name;
1646
+ }
1647
+ var serializedStyles = interpolation;
1648
+ if (serializedStyles.styles !== undefined) {
1649
+ var next = serializedStyles.next;
1650
+ if (next !== undefined) {
1651
+ // not the most efficient thing ever but this is a pretty rare case
1652
+ // and there will be very few iterations of this generally
1653
+ while (next !== undefined) {
1654
+ cursor = {
1655
+ name: next.name,
1656
+ styles: next.styles,
1657
+ next: cursor
1658
+ };
1659
+ next = next.next;
1660
+ }
1661
+ }
1662
+ var styles = serializedStyles.styles + ";";
1663
+ return styles;
1664
+ }
1665
+ return createStringFromObject(mergedProps, registered, interpolation);
1666
+ }
1667
+ case 'function':
1668
+ {
1669
+ if (mergedProps !== undefined) {
1670
+ var previousCursor = cursor;
1671
+ var result = interpolation(mergedProps);
1672
+ cursor = previousCursor;
1673
+ return handleInterpolation(mergedProps, registered, result);
1674
+ }
1675
+ break;
1676
+ }
1677
+ } // finalize string values (regular strings and functions interpolated into css calls)
1678
+
1679
+ var asString = interpolation;
1680
+ if (registered == null) {
1681
+ return asString;
1682
+ }
1683
+ var cached = registered[asString];
1684
+ return cached !== undefined ? cached : asString;
1685
+ }
1686
+ function createStringFromObject(mergedProps, registered, obj) {
1687
+ var string = '';
1688
+ if (Array.isArray(obj)) {
1689
+ for (var i = 0; i < obj.length; i++) {
1690
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1691
+ }
1692
+ } else {
1693
+ for (var key in obj) {
1694
+ var value = obj[key];
1695
+ if (typeof value !== 'object') {
1696
+ var asString = value;
1697
+ if (registered != null && registered[asString] !== undefined) {
1698
+ string += key + "{" + registered[asString] + "}";
1699
+ } else if (isProcessableValue(asString)) {
1700
+ string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
1701
+ }
1702
+ } else {
1703
+ if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$2) {
1704
+ throw new Error(noComponentSelectorMessage);
1705
+ }
1706
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
1707
+ for (var _i = 0; _i < value.length; _i++) {
1708
+ if (isProcessableValue(value[_i])) {
1709
+ string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
1710
+ }
1711
+ }
1712
+ } else {
1713
+ var interpolated = handleInterpolation(mergedProps, registered, value);
1714
+ switch (key) {
1715
+ case 'animation':
1716
+ case 'animationName':
1717
+ {
1718
+ string += processStyleName(key) + ":" + interpolated + ";";
1719
+ break;
1720
+ }
1721
+ default:
1722
+ {
1723
+ string += key + "{" + interpolated + "}";
1724
+ }
1725
+ }
1726
+ }
1727
+ }
1728
+ }
1729
+ }
1730
+ return string;
1731
+ }
1732
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
1733
+ // keyframes are stored on the SerializedStyles object as a linked list
1734
+
1735
+ var cursor;
1736
+ function serializeStyles(args, registered, mergedProps) {
1737
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
1738
+ return args[0];
1739
+ }
1740
+ var stringMode = true;
1741
+ var styles = '';
1742
+ cursor = undefined;
1743
+ var strings = args[0];
1744
+ if (strings == null || strings.raw === undefined) {
1745
+ stringMode = false;
1746
+ styles += handleInterpolation(mergedProps, registered, strings);
1747
+ } else {
1748
+ var asTemplateStringsArr = strings;
1749
+ styles += asTemplateStringsArr[0];
1750
+ } // we start at 1 since we've already handled the first arg
1751
+
1752
+ for (var i = 1; i < args.length; i++) {
1753
+ styles += handleInterpolation(mergedProps, registered, args[i]);
1754
+ if (stringMode) {
1755
+ var templateStringsArr = strings;
1756
+ styles += templateStringsArr[i];
1757
+ }
1758
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
1759
+
1760
+ labelPattern.lastIndex = 0;
1761
+ var identifierName = '';
1762
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
1763
+
1764
+ while ((match = labelPattern.exec(styles)) !== null) {
1765
+ identifierName += '-' + match[1];
1766
+ }
1767
+ var name = murmur2(styles) + identifierName;
1768
+ return {
1769
+ name: name,
1770
+ styles: styles,
1771
+ next: cursor
1772
+ };
1773
+ }
1774
+
1775
+ var isBrowser$2 = typeof document !== 'undefined';
1776
+ var syncFallback = function syncFallback(create) {
1777
+ return create();
1778
+ };
1779
+ var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
1780
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
1781
+
1782
+ var isDevelopment$1 = false;
1783
+ var isBrowser$1 = typeof document !== 'undefined';
1784
+ var EmotionCacheContext = /* #__PURE__ */React__namespace.createContext(
1785
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
1786
+ // because this module is primarily intended for the browser and node
1787
+ // but it's also required in react native and similar environments sometimes
1788
+ // and we could have a special build just for that
1789
+ // but this is much easier and the native packages
1790
+ // might use a different theme context in the future anyway
1791
+ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
1792
+ key: 'css'
1793
+ }) : null);
1794
+ EmotionCacheContext.Provider;
1795
+ var withEmotionCache = function withEmotionCache(func) {
1796
+ return /*#__PURE__*/React.forwardRef(function (props, ref) {
1797
+ // the cache will never be null in the browser
1798
+ var cache = React.useContext(EmotionCacheContext);
1799
+ return func(props, cache, ref);
1800
+ });
1801
+ };
1802
+ if (!isBrowser$1) {
1803
+ withEmotionCache = function withEmotionCache(func) {
1804
+ return function (props) {
1805
+ var cache = React.useContext(EmotionCacheContext);
1806
+ if (cache === null) {
1807
+ // yes, we're potentially creating this on every render
1808
+ // it doesn't actually matter though since it's only on the server
1809
+ // so there will only every be a single render
1810
+ // that could change in the future because of suspense and etc. but for now,
1811
+ // this works and i don't want to optimise for a future thing that we aren't sure about
1812
+ cache = createCache({
1813
+ key: 'css'
1814
+ });
1815
+ return /*#__PURE__*/React__namespace.createElement(EmotionCacheContext.Provider, {
1816
+ value: cache
1817
+ }, func(props, cache));
1818
+ } else {
1819
+ return func(props, cache);
1820
+ }
1821
+ };
1822
+ };
1823
+ }
1824
+ var ThemeContext = /* #__PURE__ */React__namespace.createContext({});
1825
+ var hasOwn = {}.hasOwnProperty;
1826
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
1827
+ var createEmotionProps = function createEmotionProps(type, props) {
1828
+ var newProps = {};
1829
+ for (var _key in props) {
1830
+ if (hasOwn.call(props, _key)) {
1831
+ newProps[_key] = props[_key];
1832
+ }
1833
+ }
1834
+ newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
1835
+
1836
+ return newProps;
1837
+ };
1838
+ var Insertion$1 = function Insertion(_ref) {
1839
+ var cache = _ref.cache,
1840
+ serialized = _ref.serialized,
1841
+ isStringTag = _ref.isStringTag;
1842
+ registerStyles(cache, serialized, isStringTag);
1843
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
1844
+ return insertStyles(cache, serialized, isStringTag);
1845
+ });
1846
+ if (!isBrowser$1 && rules !== undefined) {
1847
+ var _ref2;
1848
+ var serializedNames = serialized.name;
1849
+ var next = serialized.next;
1850
+ while (next !== undefined) {
1851
+ serializedNames += ' ' + next.name;
1852
+ next = next.next;
1853
+ }
1854
+ return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
1855
+ __html: rules
1856
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
1857
+ }
1858
+ return null;
1859
+ };
1860
+ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
1861
+ var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
1862
+ // not passing the registered cache to serializeStyles because it would
1863
+ // make certain babel optimisations not possible
1864
+
1865
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
1866
+ cssProp = cache.registered[cssProp];
1867
+ }
1868
+ var WrappedComponent = props[typePropName];
1869
+ var registeredStyles = [cssProp];
1870
+ var className = '';
1871
+ if (typeof props.className === 'string') {
1872
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
1873
+ } else if (props.className != null) {
1874
+ className = props.className + " ";
1875
+ }
1876
+ var serialized = serializeStyles(registeredStyles, undefined, React__namespace.useContext(ThemeContext));
1877
+ className += cache.key + "-" + serialized.name;
1878
+ var newProps = {};
1879
+ for (var _key2 in props) {
1880
+ if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && !isDevelopment$1) {
1881
+ newProps[_key2] = props[_key2];
1882
+ }
1883
+ }
1884
+ newProps.className = className;
1885
+ if (ref) {
1886
+ newProps.ref = ref;
1887
+ }
1888
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion$1, {
1889
+ cache: cache,
1890
+ serialized: serialized,
1891
+ isStringTag: typeof WrappedComponent === 'string'
1892
+ }), /*#__PURE__*/React__namespace.createElement(WrappedComponent, newProps));
1893
+ });
1894
+ var Emotion$1 = Emotion;
1895
+
1896
+ var _extendsExports = {};
1897
+ var _extends = {
1898
+ get exports(){ return _extendsExports; },
1899
+ set exports(v){ _extendsExports = v; },
1900
+ };
1901
+
1902
+ (function (module) {
1903
+ function _extends() {
1904
+ return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
1905
+ for (var e = 1; e < arguments.length; e++) {
1906
+ var t = arguments[e];
1907
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1908
+ }
1909
+ return n;
1910
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
1911
+ }
1912
+ module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
1913
+ })(_extends);
1914
+
1915
+ var jsx = function jsx(type, props) {
1916
+ // eslint-disable-next-line prefer-rest-params
1917
+ var args = arguments;
1918
+ if (props == null || !hasOwn.call(props, 'css')) {
1919
+ return React__namespace.createElement.apply(undefined, args);
1920
+ }
1921
+ var argsLength = args.length;
1922
+ var createElementArgArray = new Array(argsLength);
1923
+ createElementArgArray[0] = Emotion$1;
1924
+ createElementArgArray[1] = createEmotionProps(type, props);
1925
+ for (var i = 2; i < argsLength; i++) {
1926
+ createElementArgArray[i] = args[i];
1927
+ }
1928
+ return React__namespace.createElement.apply(null, createElementArgArray);
1929
+ };
1930
+ (function (_jsx) {
1931
+ var JSX;
1932
+ (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
1933
+ })(jsx || (jsx = {}));
1934
+
1935
+ // eslint-disable-next-line no-undef
1936
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
1937
+
1938
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
1939
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
1940
+ /* o */ && prop.charCodeAt(1) === 110
1941
+ /* n */ && prop.charCodeAt(2) < 91;
1942
+ }
1943
+ /* Z+1 */);
1944
+
1945
+ var isBrowser = typeof document !== 'undefined';
1946
+ var isDevelopment = false;
1947
+ var testOmitPropsOnStringTag = isPropValid;
1948
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {
1949
+ return key !== 'theme';
1950
+ };
1951
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {
1952
+ return typeof tag === 'string' &&
1953
+ // 96 is one less than the char code
1954
+ // for "a" so this is checking that
1955
+ // it's a lowercase character
1956
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
1957
+ };
1958
+ var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {
1959
+ var shouldForwardProp;
1960
+ if (options) {
1961
+ var optionsShouldForwardProp = options.shouldForwardProp;
1962
+ shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {
1963
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
1964
+ } : optionsShouldForwardProp;
1965
+ }
1966
+ if (typeof shouldForwardProp !== 'function' && isReal) {
1967
+ shouldForwardProp = tag.__emotion_forwardProp;
1968
+ }
1969
+ return shouldForwardProp;
1970
+ };
1971
+ var Insertion = function Insertion(_ref) {
1972
+ var cache = _ref.cache,
1973
+ serialized = _ref.serialized,
1974
+ isStringTag = _ref.isStringTag;
1975
+ registerStyles(cache, serialized, isStringTag);
1976
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
1977
+ return insertStyles(cache, serialized, isStringTag);
1978
+ });
1979
+ if (!isBrowser && rules !== undefined) {
1980
+ var _ref2;
1981
+ var serializedNames = serialized.name;
1982
+ var next = serialized.next;
1983
+ while (next !== undefined) {
1984
+ serializedNames += ' ' + next.name;
1985
+ next = next.next;
1986
+ }
1987
+ return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
1988
+ __html: rules
1989
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
1990
+ }
1991
+ return null;
1992
+ };
1993
+ var createStyled = function createStyled(tag, options) {
1994
+ var isReal = tag.__emotion_real === tag;
1995
+ var baseTag = isReal && tag.__emotion_base || tag;
1996
+ var identifierName;
1997
+ var targetClassName;
1998
+ if (options !== undefined) {
1999
+ identifierName = options.label;
2000
+ targetClassName = options.target;
2001
+ }
2002
+ var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
2003
+ var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
2004
+ var shouldUseAs = !defaultShouldForwardProp('as');
2005
+ return function () {
2006
+ // eslint-disable-next-line prefer-rest-params
2007
+ var args = arguments;
2008
+ var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];
2009
+ if (identifierName !== undefined) {
2010
+ styles.push("label:" + identifierName + ";");
2011
+ }
2012
+ if (args[0] == null || args[0].raw === undefined) {
2013
+ // eslint-disable-next-line prefer-spread
2014
+ styles.push.apply(styles, args);
2015
+ } else {
2016
+ var templateStringsArr = args[0];
2017
+ styles.push(templateStringsArr[0]);
2018
+ var len = args.length;
2019
+ var i = 1;
2020
+ for (; i < len; i++) {
2021
+ styles.push(args[i], templateStringsArr[i]);
2022
+ }
2023
+ }
2024
+ var Styled = withEmotionCache(function (props, cache, ref) {
2025
+ var FinalTag = shouldUseAs && props.as || baseTag;
2026
+ var className = '';
2027
+ var classInterpolations = [];
2028
+ var mergedProps = props;
2029
+ if (props.theme == null) {
2030
+ mergedProps = {};
2031
+ for (var key in props) {
2032
+ mergedProps[key] = props[key];
2033
+ }
2034
+ mergedProps.theme = React__namespace.useContext(ThemeContext);
2035
+ }
2036
+ if (typeof props.className === 'string') {
2037
+ className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
2038
+ } else if (props.className != null) {
2039
+ className = props.className + " ";
2040
+ }
2041
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
2042
+ className += cache.key + "-" + serialized.name;
2043
+ if (targetClassName !== undefined) {
2044
+ className += " " + targetClassName;
2045
+ }
2046
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
2047
+ var newProps = {};
2048
+ for (var _key in props) {
2049
+ if (shouldUseAs && _key === 'as') continue;
2050
+ if (finalShouldForwardProp(_key)) {
2051
+ newProps[_key] = props[_key];
2052
+ }
2053
+ }
2054
+ newProps.className = className;
2055
+ if (ref) {
2056
+ newProps.ref = ref;
2057
+ }
2058
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
2059
+ cache: cache,
2060
+ serialized: serialized,
2061
+ isStringTag: typeof FinalTag === 'string'
2062
+ }), /*#__PURE__*/React__namespace.createElement(FinalTag, newProps));
2063
+ });
2064
+ Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
2065
+ Styled.defaultProps = tag.defaultProps;
2066
+ Styled.__emotion_real = Styled;
2067
+ Styled.__emotion_base = baseTag;
2068
+ Styled.__emotion_styles = styles;
2069
+ Styled.__emotion_forwardProp = shouldForwardProp;
2070
+ Object.defineProperty(Styled, 'toString', {
2071
+ value: function value() {
2072
+ if (targetClassName === undefined && isDevelopment) {
2073
+ return 'NO_COMPONENT_SELECTOR';
2074
+ }
2075
+ return "." + targetClassName;
2076
+ }
2077
+ });
2078
+ Styled.withComponent = function (nextTag, nextOptions) {
2079
+ var newStyled = createStyled(nextTag, _extends$1({}, options, nextOptions, {
2080
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2081
+ }));
2082
+ return newStyled.apply(void 0, styles);
2083
+ };
2084
+ return Styled;
2085
+ };
2086
+ };
2087
+
2088
+ var tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr',
2089
+ // SVG
2090
+ 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
2091
+
2092
+ // bind it to avoid mutating the original function
2093
+ var styled = createStyled.bind(null);
2094
+ tags.forEach(function (tagName) {
2095
+ styled[tagName] = styled(tagName);
2096
+ });
2097
+
50
2098
  var getContainerStyles = function (_a) {
51
2099
  var alignItems = _a.alignItems, borderRadius = _a.borderRadius, boxShadow = _a.boxShadow, bottom = _a.bottom, display = _a.display, flex = _a.flex, justifyContent = _a.justifyContent, flexWrap = _a.flexWrap, flexDirection = _a.flexDirection, rowGap = _a.rowGap, columnGap = _a.columnGap, left = _a.left, position = _a.position, right = _a.right, top = _a.top, zIndex = _a.zIndex, paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom, paddingLeft = _a.paddingLeft, paddingRight = _a.paddingRight, marginTop = _a.marginTop, marginBottom = _a.marginBottom, marginLeft = _a.marginLeft, marginRight = _a.marginRight, backgroundColor = _a.backgroundColor, cursor = _a.cursor, width = _a.width, height = _a.height, wordBreak = _a.wordBreak; _a.theme; var textAlign = _a.textAlign, gridTemplateColumns = _a.gridTemplateColumns, rest = __rest(_a, ["alignItems", "borderRadius", "boxShadow", "bottom", "display", "flex", "justifyContent", "flexWrap", "flexDirection", "rowGap", "columnGap", "left", "position", "right", "top", "zIndex", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "marginTop", "marginBottom", "marginLeft", "marginRight", "backgroundColor", "cursor", "width", "height", "wordBreak", "theme", "textAlign", "gridTemplateColumns"]);
52
2100
  return __assign({ alignItems: alignItems, borderRadius: borderRadius, boxShadow: boxShadow, bottom: bottom, display: display, flex: flex, justifyContent: justifyContent, flexWrap: flexWrap, flexDirection: flexDirection, rowGap: rowGap, columnGap: columnGap, left: left, position: position, right: right, top: top, zIndex: zIndex, paddingTop: paddingTop, paddingBottom: paddingBottom, paddingLeft: paddingLeft, paddingRight: paddingRight, marginTop: marginTop, marginBottom: marginBottom, marginLeft: marginLeft, marginRight: marginRight, backgroundColor: backgroundColor, cursor: cursor, width: width, height: height, wordBreak: wordBreak, textAlign: textAlign, gridTemplateColumns: gridTemplateColumns }, rest);
53
2101
  };
54
2102
 
55
- var StyledContainer = styled__default.default.div(function (_a) {
56
- var css = _a.css; _a.children; var rest = __rest(_a, ["css", "children"]);
2103
+ var staticContainerStyles = ctDesignStyleManager.makeStyles(function () {
2104
+ return {
2105
+ root: {
2106
+ flexDirection: 'column',
2107
+ },
2108
+ };
2109
+ });
2110
+ var StyledContainer = styled.div(function (_a) {
2111
+ _a.id; var css = _a.css; _a.children; _a.onClick; _a.onAnimationEnd; _a.onAnimationStart; _a.onDoubleClick; _a.onBlur; _a.onTouchStart; _a.onTouchEnd; _a.onMouseEnter; _a.onMouseLeave; _a.onFocus; _a.onKeyDown; _a.onPointerEnter; _a.onPointerLeave; _a.onTouchCancel; _a.onTouchMove; var rest = __rest(_a, ["id", "css", "children", "onClick", "onAnimationEnd", "onAnimationStart", "onDoubleClick", "onBlur", "onTouchStart", "onTouchEnd", "onMouseEnter", "onMouseLeave", "onFocus", "onKeyDown", "onPointerEnter", "onPointerLeave", "onTouchCancel", "onTouchMove"]);
57
2112
  return getContainerStyles(__assign(__assign({}, rest), css));
58
2113
  });
59
- var Container = react.forwardRef(function (_a, forwardedRef) {
60
- var as = _a.as, children = _a.children, rest = __rest(_a, ["as", "children"]);
61
- return (jsxRuntime.jsx(StyledContainer, __assign({ as: as, ref: forwardedRef }, rest, { children: children })));
2114
+ var Container = React.forwardRef(function (_a, forwardedRef) {
2115
+ var id = _a.id, _b = _a.as, as = _b === void 0 ? 'div' : _b, children = _a.children, styleConfig = _a.styleConfig, rest = __rest(_a, ["id", "as", "children", "styleConfig"]);
2116
+ var localRef = React.useRef(null);
2117
+ var handleFocus = React.useCallback(function () {
2118
+ var _a;
2119
+ (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.focus();
2120
+ }, []);
2121
+ var handleGetBoundingRect = React.useCallback(function (callback) {
2122
+ var _a;
2123
+ var rect = (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
2124
+ if (rect) {
2125
+ callback === null || callback === void 0 ? void 0 : callback({
2126
+ x: rect.x,
2127
+ y: rect.y,
2128
+ width: rect.width,
2129
+ height: rect.height,
2130
+ });
2131
+ }
2132
+ }, []);
2133
+ var handleAddEventListener = React.useCallback(function (type, listener, options) {
2134
+ var _a;
2135
+ (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener(type, listener, options);
2136
+ }, []);
2137
+ var handleRemoveEventListener = React.useCallback(function (type, listener, options) {
2138
+ var _a;
2139
+ (_a = localRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener(type, listener, options);
2140
+ }, []);
2141
+ React.useImperativeHandle(forwardedRef, function () { return ({
2142
+ focus: handleFocus,
2143
+ getBoundingRectWithCallback: handleGetBoundingRect,
2144
+ getElementRef: function () { return localRef; },
2145
+ addEventListener: handleAddEventListener,
2146
+ removeEventListener: handleRemoveEventListener,
2147
+ get style() {
2148
+ var _a;
2149
+ return ((_a = localRef.current) === null || _a === void 0 ? void 0 : _a.style) || {};
2150
+ },
2151
+ get offsetWidth() {
2152
+ var _a;
2153
+ return ((_a = localRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth) || 0;
2154
+ },
2155
+ }); }, [handleFocus, handleGetBoundingRect, handleAddEventListener, handleRemoveEventListener]);
2156
+ var _c = (styleConfig || {}).root, rootStyles = _c === void 0 ? [] : _c;
2157
+ var mergedRootStyles = ctDesignStyleManager.useWebMergeStyles(__spreadArray([staticContainerStyles.root], rootStyles, true), [rootStyles]);
2158
+ return (jsxRuntime.jsx(StyledContainer, __assign({ id: id, ref: localRef, as: as, className: mergedRootStyles }, rest, { children: children })));
62
2159
  });
63
2160
 
64
2161
  exports.Container = Container;