@cleartrip/ct-design-theme 3.21.0-SNAPSHOT-4.2.0-beta.31.0 → 3.21.0-SNAPSHOT-makeStyleTypeFix.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.
@@ -1,8 +1,28 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@cleartrip/ct-design-tokens'), require('styled-components'), require('react/jsx-runtime'), require('react')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@cleartrip/ct-design-tokens', 'styled-components', 'react/jsx-runtime', 'react'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemTheme = {}, global.ctDesignTokens, global.styledComponents, global.jsxRuntime, global.React));
5
- })(this, (function (exports, ctDesignTokens, styledComponents, jsxRuntime, react) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@cleartrip/ct-design-tokens'), require('react'), require('react/jsx-runtime')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@cleartrip/ct-design-tokens', 'react', 'react/jsx-runtime'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemTheme = {}, global.ctDesignTokens, global.React, global.jsxRuntime));
5
+ })(this, (function (exports, ctDesignTokens, React, jsxRuntime) { 'use strict';
6
+
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
+ }
24
+
25
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
6
26
 
7
27
  /******************************************************************************
8
28
  Copyright (c) Microsoft Corporation.
@@ -44,9 +64,6 @@
44
64
  enteringScreen: 225,
45
65
  leavingScreen: 195,
46
66
  };
47
- var opacity = {
48
- disabled: 0.5,
49
- };
50
67
  var easing = {
51
68
  easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
52
69
  easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
@@ -132,11 +149,6 @@
132
149
  pinaColada750: ctDesignTokens.colors.pinaColada750,
133
150
  neutral50: ctDesignTokens.colors.neutral50,
134
151
  coralpink: ctDesignTokens.colors.coralpink,
135
- pistagreen: ctDesignTokens.colors.pistagreen,
136
- pinaColada500: ctDesignTokens.colors.pinaColada500,
137
- green700: ctDesignTokens.colors.green700,
138
- neutral700: ctDesignTokens.colors.neutral700,
139
- neutral900: ctDesignTokens.colors.neutral900,
140
152
  },
141
153
  button: {
142
154
  outlinedPrimaryLabel: ctDesignTokens.colors.neutral900,
@@ -163,8 +175,6 @@
163
175
  containedDisabledBg: ctDesignTokens.colors.neutral300,
164
176
  containedNeutralLabel: ctDesignTokens.colors.neutral900,
165
177
  containedNeutralBg: ctDesignTokens.colors.neutral100,
166
- containedRoyalBlueLabel: ctDesignTokens.colors.neutral100,
167
- containedRoyalBlueBg: ctDesignTokens.colors.royalBlue,
168
178
  hover: hover$3,
169
179
  },
170
180
  chip: {
@@ -277,7 +287,6 @@
277
287
  pinaColada750: ctDesignTokens.colors.pinaColada750,
278
288
  pinaColada100: ctDesignTokens.colors.pinaColada100,
279
289
  brown: ctDesignTokens.colors.brown,
280
- green700: ctDesignTokens.colors.green700,
281
290
  },
282
291
  counter: counter$1,
283
292
  calendar: {
@@ -286,7 +295,6 @@
286
295
  selected: ctDesignTokens.colors.neutral900,
287
296
  },
288
297
  },
289
- opacity: opacity,
290
298
  elevation: __assign({}, ctDesignTokens.elevation),
291
299
  border: __assign({}, ctDesignTokens.border),
292
300
  spacing: __assign({}, ctDesignTokens.spacing),
@@ -315,11 +323,6 @@
315
323
  grapetini900: '',
316
324
  pinaColada750: '',
317
325
  alert: '',
318
- pinaColada500: '',
319
- pistagreen: '',
320
- green700: '',
321
- neutral700: '',
322
- neutral900: '',
323
326
  },
324
327
  zIndex: zIndex,
325
328
  };
@@ -415,6 +418,2050 @@
415
418
  };
416
419
  var SMTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { primary: ctDesignTokens.colors.superGrey800, secondary: ctDesignTokens.colors.superGrey500, tertiary: ctDesignTokens.colors.superGrey400, warning: ctDesignTokens.colors.systemRed500, disabled: ctDesignTokens.colors.superGrey400, subHeading: ctDesignTokens.colors.superGrey400, success: ctDesignTokens.colors.systemGreen500, link: ctDesignTokens.colors.superBlue500, link2: ctDesignTokens.colors.superBlue500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: ctDesignTokens.colors.superGrey700, outlinedPrimaryBorder: ctDesignTokens.colors.superGrey300, outlinedTertiaryLabel: ctDesignTokens.colors.superGrey700, outlinedTertiaryBorder: ctDesignTokens.colors.superGrey300, outlinedDisabledLabel: ctDesignTokens.colors.disabledText, containedSecondaryLabel: ctDesignTokens.colors.superGrey800, containedPrimaryBg: ctDesignTokens.colors.superBlue500, containedSecondaryBg: ctDesignTokens.colors.superGreen500, containedTertiaryLabel: ctDesignTokens.colors.superGrey300, containedDisabledLabel: ctDesignTokens.colors.disabledText, containedPrimaryLabel: ctDesignTokens.colors.neutral100, hover: hover }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: ctDesignTokens.colors.superBlue500, selectedPrimaryBorder: ctDesignTokens.colors.superBlue500, selectedPrimaryBg: ctDesignTokens.colors.superBlue25, disabledPrimaryLabel: ctDesignTokens.colors.superGrey400, nonSelectedPrimaryLabel: ctDesignTokens.colors.superGrey700, disabledPrimaryBg: ctDesignTokens.colors.superGrey200 }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: ctDesignTokens.colors.superGrey500, selectedPrimaryLabel: ctDesignTokens.colors.superBlue500 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: ctDesignTokens.colors.superBlue500, disabled: ctDesignTokens.colors.superGrey50, disabledDark: ctDesignTokens.colors.superGrey300, warning: ctDesignTokens.colors.systemRed500 }), border: __assign(__assign({}, BaseTheme.color.border), { primary: ctDesignTokens.colors.superBlue500, secondary: ctDesignTokens.colors.neutral900, disabledDark: ctDesignTokens.colors.superGrey300, defaultDark: ctDesignTokens.colors.superGrey400, default: ctDesignTokens.colors.superGrey300, disabled: ctDesignTokens.colors.superGrey200 }) }) });
417
420
 
421
+ function _extends$1() {
422
+ return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
423
+ for (var e = 1; e < arguments.length; e++) {
424
+ var t = arguments[e];
425
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
426
+ }
427
+ return n;
428
+ }, _extends$1.apply(null, arguments);
429
+ }
430
+
431
+ var isDevelopment$3 = false;
432
+
433
+ /*
434
+
435
+ Based off glamor's StyleSheet, thanks Sunil ❤️
436
+
437
+ high performance StyleSheet for css-in-js systems
438
+
439
+ - uses multiple style tags behind the scenes for millions of rules
440
+ - uses `insertRule` for appending in production for *much* faster performance
441
+
442
+ // usage
443
+
444
+ import { StyleSheet } from '@emotion/sheet'
445
+
446
+ let styleSheet = new StyleSheet({ key: '', container: document.head })
447
+
448
+ styleSheet.insert('#box { border: 1px solid red; }')
449
+ - appends a css rule into the stylesheet
450
+
451
+ styleSheet.flush()
452
+ - empties the stylesheet of all its contents
453
+
454
+ */
455
+
456
+ function sheetForTag(tag) {
457
+ if (tag.sheet) {
458
+ return tag.sheet;
459
+ } // this weirdness brought to you by firefox
460
+
461
+ /* istanbul ignore next */
462
+
463
+ for (var i = 0; i < document.styleSheets.length; i++) {
464
+ if (document.styleSheets[i].ownerNode === tag) {
465
+ return document.styleSheets[i];
466
+ }
467
+ } // this function should always return with a value
468
+ // TS can't understand it though so we make it stop complaining here
469
+
470
+ return undefined;
471
+ }
472
+ function createStyleElement(options) {
473
+ var tag = document.createElement('style');
474
+ tag.setAttribute('data-emotion', options.key);
475
+ if (options.nonce !== undefined) {
476
+ tag.setAttribute('nonce', options.nonce);
477
+ }
478
+ tag.appendChild(document.createTextNode(''));
479
+ tag.setAttribute('data-s', '');
480
+ return tag;
481
+ }
482
+ var StyleSheet = /*#__PURE__*/function () {
483
+ // Using Node instead of HTMLElement since container may be a ShadowRoot
484
+ function StyleSheet(options) {
485
+ var _this = this;
486
+ this._insertTag = function (tag) {
487
+ var before;
488
+ if (_this.tags.length === 0) {
489
+ if (_this.insertionPoint) {
490
+ before = _this.insertionPoint.nextSibling;
491
+ } else if (_this.prepend) {
492
+ before = _this.container.firstChild;
493
+ } else {
494
+ before = _this.before;
495
+ }
496
+ } else {
497
+ before = _this.tags[_this.tags.length - 1].nextSibling;
498
+ }
499
+ _this.container.insertBefore(tag, before);
500
+ _this.tags.push(tag);
501
+ };
502
+ this.isSpeedy = options.speedy === undefined ? !isDevelopment$3 : options.speedy;
503
+ this.tags = [];
504
+ this.ctr = 0;
505
+ this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
506
+
507
+ this.key = options.key;
508
+ this.container = options.container;
509
+ this.prepend = options.prepend;
510
+ this.insertionPoint = options.insertionPoint;
511
+ this.before = null;
512
+ }
513
+ var _proto = StyleSheet.prototype;
514
+ _proto.hydrate = function hydrate(nodes) {
515
+ nodes.forEach(this._insertTag);
516
+ };
517
+ _proto.insert = function insert(rule) {
518
+ // the max length is how many rules we have per style tag, it's 65000 in speedy mode
519
+ // it's 1 in dev because we insert source maps that map a single rule to a location
520
+ // and you can only have one source map per style tag
521
+ if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
522
+ this._insertTag(createStyleElement(this));
523
+ }
524
+ var tag = this.tags[this.tags.length - 1];
525
+ if (this.isSpeedy) {
526
+ var sheet = sheetForTag(tag);
527
+ try {
528
+ // this is the ultrafast version, works across browsers
529
+ // the big drawback is that the css won't be editable in devtools
530
+ sheet.insertRule(rule, sheet.cssRules.length);
531
+ } catch (e) {}
532
+ } else {
533
+ tag.appendChild(document.createTextNode(rule));
534
+ }
535
+ this.ctr++;
536
+ };
537
+ _proto.flush = function flush() {
538
+ this.tags.forEach(function (tag) {
539
+ var _tag$parentNode;
540
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
541
+ });
542
+ this.tags = [];
543
+ this.ctr = 0;
544
+ };
545
+ return StyleSheet;
546
+ }();
547
+
548
+ var stylisExports = {};
549
+ var stylis = {
550
+ get exports(){ return stylisExports; },
551
+ set exports(v){ stylisExports = v; },
552
+ };
553
+
554
+ (function (module, exports) {
555
+ (function (e, r) {
556
+ r(exports) ;
557
+ })(this, function (e) {
558
+
559
+ var r = "-ms-";
560
+ var a = "-moz-";
561
+ var c = "-webkit-";
562
+ var n = "comm";
563
+ var t = "rule";
564
+ var s = "decl";
565
+ var i = "@page";
566
+ var u = "@media";
567
+ var o = "@import";
568
+ var f = "@charset";
569
+ var l = "@viewport";
570
+ var p = "@supports";
571
+ var h = "@document";
572
+ var v = "@namespace";
573
+ var d = "@keyframes";
574
+ var b = "@font-face";
575
+ var w = "@counter-style";
576
+ var m = "@font-feature-values";
577
+ var g = "@layer";
578
+ var k = Math.abs;
579
+ var $ = String.fromCharCode;
580
+ var x = Object.assign;
581
+ function E(e, r) {
582
+ return M(e, 0) ^ 45 ? (((r << 2 ^ M(e, 0)) << 2 ^ M(e, 1)) << 2 ^ M(e, 2)) << 2 ^ M(e, 3) : 0;
583
+ }
584
+ function y(e) {
585
+ return e.trim();
586
+ }
587
+ function T(e, r) {
588
+ return (e = r.exec(e)) ? e[0] : e;
589
+ }
590
+ function A(e, r, a) {
591
+ return e.replace(r, a);
592
+ }
593
+ function O(e, r) {
594
+ return e.indexOf(r);
595
+ }
596
+ function M(e, r) {
597
+ return e.charCodeAt(r) | 0;
598
+ }
599
+ function C(e, r, a) {
600
+ return e.slice(r, a);
601
+ }
602
+ function R(e) {
603
+ return e.length;
604
+ }
605
+ function S(e) {
606
+ return e.length;
607
+ }
608
+ function z(e, r) {
609
+ return r.push(e), e;
610
+ }
611
+ function N(e, r) {
612
+ return e.map(r).join("");
613
+ }
614
+ e.line = 1;
615
+ e.column = 1;
616
+ e.length = 0;
617
+ e.position = 0;
618
+ e.character = 0;
619
+ e.characters = "";
620
+ function P(r, a, c, n, t, s, i) {
621
+ return {
622
+ value: r,
623
+ root: a,
624
+ parent: c,
625
+ type: n,
626
+ props: t,
627
+ children: s,
628
+ line: e.line,
629
+ column: e.column,
630
+ length: i,
631
+ return: ""
632
+ };
633
+ }
634
+ function j(e, r) {
635
+ return x(P("", null, null, "", null, null, 0), e, {
636
+ length: -e.length
637
+ }, r);
638
+ }
639
+ function U() {
640
+ return e.character;
641
+ }
642
+ function _() {
643
+ e.character = e.position > 0 ? M(e.characters, --e.position) : 0;
644
+ if (e.column--, e.character === 10) e.column = 1, e.line--;
645
+ return e.character;
646
+ }
647
+ function F() {
648
+ e.character = e.position < e.length ? M(e.characters, e.position++) : 0;
649
+ if (e.column++, e.character === 10) e.column = 1, e.line++;
650
+ return e.character;
651
+ }
652
+ function I() {
653
+ return M(e.characters, e.position);
654
+ }
655
+ function L() {
656
+ return e.position;
657
+ }
658
+ function D(r, a) {
659
+ return C(e.characters, r, a);
660
+ }
661
+ function Y(e) {
662
+ switch (e) {
663
+ case 0:
664
+ case 9:
665
+ case 10:
666
+ case 13:
667
+ case 32:
668
+ return 5;
669
+ case 33:
670
+ case 43:
671
+ case 44:
672
+ case 47:
673
+ case 62:
674
+ case 64:
675
+ case 126:
676
+ case 59:
677
+ case 123:
678
+ case 125:
679
+ return 4;
680
+ case 58:
681
+ return 3;
682
+ case 34:
683
+ case 39:
684
+ case 40:
685
+ case 91:
686
+ return 2;
687
+ case 41:
688
+ case 93:
689
+ return 1;
690
+ }
691
+ return 0;
692
+ }
693
+ function K(r) {
694
+ return e.line = e.column = 1, e.length = R(e.characters = r), e.position = 0, [];
695
+ }
696
+ function V(r) {
697
+ return e.characters = "", r;
698
+ }
699
+ function W(r) {
700
+ return y(D(e.position - 1, q(r === 91 ? r + 2 : r === 40 ? r + 1 : r)));
701
+ }
702
+ function B(e) {
703
+ return V(H(K(e)));
704
+ }
705
+ function G(r) {
706
+ while (e.character = I()) if (e.character < 33) F();else break;
707
+ return Y(r) > 2 || Y(e.character) > 3 ? "" : " ";
708
+ }
709
+ function H(r) {
710
+ while (F()) switch (Y(e.character)) {
711
+ case 0:
712
+ z(Q(e.position - 1), r);
713
+ break;
714
+ case 2:
715
+ z(W(e.character), r);
716
+ break;
717
+ default:
718
+ z($(e.character), r);
719
+ }
720
+ return r;
721
+ }
722
+ function Z(r, a) {
723
+ while (--a && F()) if (e.character < 48 || e.character > 102 || e.character > 57 && e.character < 65 || e.character > 70 && e.character < 97) break;
724
+ return D(r, L() + (a < 6 && I() == 32 && F() == 32));
725
+ }
726
+ function q(r) {
727
+ while (F()) switch (e.character) {
728
+ case r:
729
+ return e.position;
730
+ case 34:
731
+ case 39:
732
+ if (r !== 34 && r !== 39) q(e.character);
733
+ break;
734
+ case 40:
735
+ if (r === 41) q(r);
736
+ break;
737
+ case 92:
738
+ F();
739
+ break;
740
+ }
741
+ return e.position;
742
+ }
743
+ function J(r, a) {
744
+ while (F()) if (r + e.character === 47 + 10) break;else if (r + e.character === 42 + 42 && I() === 47) break;
745
+ return "/*" + D(a, e.position - 1) + "*" + $(r === 47 ? r : F());
746
+ }
747
+ function Q(r) {
748
+ while (!Y(I())) F();
749
+ return D(r, e.position);
750
+ }
751
+ function X(e) {
752
+ return V(ee("", null, null, null, [""], e = K(e), 0, [0], e));
753
+ }
754
+ function ee(e, r, a, c, n, t, s, i, u) {
755
+ var o = 0;
756
+ var f = 0;
757
+ var l = s;
758
+ var p = 0;
759
+ var h = 0;
760
+ var v = 0;
761
+ var d = 1;
762
+ var b = 1;
763
+ var w = 1;
764
+ var m = 0;
765
+ var g = "";
766
+ var k = n;
767
+ var x = t;
768
+ var E = c;
769
+ var y = g;
770
+ while (b) switch (v = m, m = F()) {
771
+ case 40:
772
+ if (v != 108 && M(y, l - 1) == 58) {
773
+ if (O(y += A(W(m), "&", "&\f"), "&\f") != -1) w = -1;
774
+ break;
775
+ }
776
+ case 34:
777
+ case 39:
778
+ case 91:
779
+ y += W(m);
780
+ break;
781
+ case 9:
782
+ case 10:
783
+ case 13:
784
+ case 32:
785
+ y += G(v);
786
+ break;
787
+ case 92:
788
+ y += Z(L() - 1, 7);
789
+ continue;
790
+ case 47:
791
+ switch (I()) {
792
+ case 42:
793
+ case 47:
794
+ z(ae(J(F(), L()), r, a), u);
795
+ break;
796
+ default:
797
+ y += "/";
798
+ }
799
+ break;
800
+ case 123 * d:
801
+ i[o++] = R(y) * w;
802
+ case 125 * d:
803
+ case 59:
804
+ case 0:
805
+ switch (m) {
806
+ case 0:
807
+ case 125:
808
+ b = 0;
809
+ case 59 + f:
810
+ if (w == -1) y = A(y, /\f/g, "");
811
+ if (h > 0 && R(y) - l) z(h > 32 ? ce(y + ";", c, a, l - 1) : ce(A(y, " ", "") + ";", c, a, l - 2), u);
812
+ break;
813
+ case 59:
814
+ y += ";";
815
+ default:
816
+ z(E = re(y, r, a, o, f, n, i, g, k = [], x = [], l), t);
817
+ 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) {
818
+ case 100:
819
+ case 108:
820
+ case 109:
821
+ case 115:
822
+ 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);
823
+ break;
824
+ default:
825
+ ee(y, E, E, E, [""], x, 0, i, x);
826
+ }
827
+ }
828
+ o = f = h = 0, d = w = 1, g = y = "", l = s;
829
+ break;
830
+ case 58:
831
+ l = 1 + R(y), h = v;
832
+ default:
833
+ if (d < 1) if (m == 123) --d;else if (m == 125 && d++ == 0 && _() == 125) continue;
834
+ switch (y += $(m), m * d) {
835
+ case 38:
836
+ w = f > 0 ? 1 : (y += "\f", -1);
837
+ break;
838
+ case 44:
839
+ i[o++] = (R(y) - 1) * w, w = 1;
840
+ break;
841
+ case 64:
842
+ if (I() === 45) y += W(F());
843
+ p = I(), f = l = R(g = y += Q(L())), m++;
844
+ break;
845
+ case 45:
846
+ if (v === 45 && R(y) == 2) d = 0;
847
+ }
848
+ }
849
+ return t;
850
+ }
851
+ function re(e, r, a, c, n, s, i, u, o, f, l) {
852
+ var p = n - 1;
853
+ var h = n === 0 ? s : [""];
854
+ var v = S(h);
855
+ 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++] = $;
856
+ return P(e, r, a, n === 0 ? t : u, o, f, l);
857
+ }
858
+ function ae(e, r, a) {
859
+ return P(e, r, a, n, $(U()), C(e, 2, -2), 0);
860
+ }
861
+ function ce(e, r, a, c) {
862
+ return P(e, r, a, s, C(e, 0, c), C(e, c + 1, -1), c);
863
+ }
864
+ function ne(e, n, t) {
865
+ switch (E(e, n)) {
866
+ case 5103:
867
+ return c + "print-" + e + e;
868
+ case 5737:
869
+ case 4201:
870
+ case 3177:
871
+ case 3433:
872
+ case 1641:
873
+ case 4457:
874
+ case 2921:
875
+ case 5572:
876
+ case 6356:
877
+ case 5844:
878
+ case 3191:
879
+ case 6645:
880
+ case 3005:
881
+ case 6391:
882
+ case 5879:
883
+ case 5623:
884
+ case 6135:
885
+ case 4599:
886
+ case 4855:
887
+ case 4215:
888
+ case 6389:
889
+ case 5109:
890
+ case 5365:
891
+ case 5621:
892
+ case 3829:
893
+ return c + e + e;
894
+ case 4789:
895
+ return a + e + e;
896
+ case 5349:
897
+ case 4246:
898
+ case 4810:
899
+ case 6968:
900
+ case 2756:
901
+ return c + e + a + e + r + e + e;
902
+ case 5936:
903
+ switch (M(e, n + 11)) {
904
+ case 114:
905
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
906
+ case 108:
907
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
908
+ case 45:
909
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
910
+ }
911
+ case 6828:
912
+ case 4268:
913
+ case 2903:
914
+ return c + e + r + e + e;
915
+ case 6165:
916
+ return c + e + r + "flex-" + e + e;
917
+ case 5187:
918
+ return c + e + A(e, /(\w+).+(:[^]+)/, c + "box-$1$2" + r + "flex-$1$2") + e;
919
+ case 5443:
920
+ return c + e + r + "flex-item-" + A(e, /flex-|-self/g, "") + (!T(e, /flex-|baseline/) ? r + "grid-row-" + A(e, /flex-|-self/g, "") : "") + e;
921
+ case 4675:
922
+ return c + e + r + "flex-line-pack" + A(e, /align-content|flex-|-self/g, "") + e;
923
+ case 5548:
924
+ return c + e + r + A(e, "shrink", "negative") + e;
925
+ case 5292:
926
+ return c + e + r + A(e, "basis", "preferred-size") + e;
927
+ case 6060:
928
+ return c + "box-" + A(e, "-grow", "") + c + e + r + A(e, "grow", "positive") + e;
929
+ case 4554:
930
+ return c + A(e, /([^-])(transform)/g, "$1" + c + "$2") + e;
931
+ case 6187:
932
+ return A(A(A(e, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), e, "") + e;
933
+ case 5495:
934
+ case 3959:
935
+ return A(e, /(image-set\([^]*)/, c + "$1" + "$`$1");
936
+ case 4968:
937
+ return A(A(e, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + r + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + c + e + e;
938
+ case 4200:
939
+ if (!T(e, /flex-|baseline/)) return r + "grid-column-align" + C(e, n) + e;
940
+ break;
941
+ case 2592:
942
+ case 3360:
943
+ return r + A(e, "template-", "") + e;
944
+ case 4384:
945
+ case 3616:
946
+ if (t && t.some(function (e, r) {
947
+ return n = r, T(e.props, /grid-\w+-end/);
948
+ })) {
949
+ 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+/)) + ";";
950
+ }
951
+ return r + A(e, "-start", "") + e;
952
+ case 4896:
953
+ case 4128:
954
+ return t && t.some(function (e) {
955
+ return T(e.props, /grid-\w+-start/);
956
+ }) ? e : r + A(A(e, "-end", "-span"), "span ", "") + e;
957
+ case 4095:
958
+ case 3583:
959
+ case 4068:
960
+ case 2532:
961
+ return A(e, /(.+)-inline(.+)/, c + "$1$2") + e;
962
+ case 8116:
963
+ case 7059:
964
+ case 5753:
965
+ case 5535:
966
+ case 5445:
967
+ case 5701:
968
+ case 4933:
969
+ case 4677:
970
+ case 5533:
971
+ case 5789:
972
+ case 5021:
973
+ case 4765:
974
+ if (R(e) - 1 - n > 6) switch (M(e, n + 1)) {
975
+ case 109:
976
+ if (M(e, n + 4) !== 45) break;
977
+ case 102:
978
+ return A(e, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3" + "$1" + a + (M(e, n + 3) == 108 ? "$3" : "$2-$3")) + e;
979
+ case 115:
980
+ return ~O(e, "stretch") ? ne(A(e, "stretch", "fill-available"), n, t) + e : e;
981
+ }
982
+ break;
983
+ case 5152:
984
+ case 5920:
985
+ return A(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (a, c, n, t, s, i, u) {
986
+ return r + c + ":" + n + u + (t ? r + c + "-span:" + (s ? i : +i - +n) + u : "") + e;
987
+ });
988
+ case 4949:
989
+ if (M(e, n + 6) === 121) return A(e, ":", ":" + c) + e;
990
+ break;
991
+ case 6444:
992
+ switch (M(e, M(e, 14) === 45 ? 18 : 11)) {
993
+ case 120:
994
+ return A(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + c + (M(e, 14) === 45 ? "inline-" : "") + "box$3" + "$1" + c + "$2$3" + "$1" + r + "$2box$3") + e;
995
+ case 100:
996
+ return A(e, ":", ":" + r) + e;
997
+ }
998
+ break;
999
+ case 5719:
1000
+ case 2647:
1001
+ case 2135:
1002
+ case 3927:
1003
+ case 2391:
1004
+ return A(e, "scroll-", "scroll-snap-") + e;
1005
+ }
1006
+ return e;
1007
+ }
1008
+ function te(e, r) {
1009
+ var a = "";
1010
+ var c = S(e);
1011
+ for (var n = 0; n < c; n++) a += r(e[n], n, e, r) || "";
1012
+ return a;
1013
+ }
1014
+ function se(e, r, a, c) {
1015
+ switch (e.type) {
1016
+ case g:
1017
+ if (e.children.length) break;
1018
+ case o:
1019
+ case s:
1020
+ return e.return = e.return || e.value;
1021
+ case n:
1022
+ return "";
1023
+ case d:
1024
+ return e.return = e.value + "{" + te(e.children, c) + "}";
1025
+ case t:
1026
+ e.value = e.props.join(",");
1027
+ }
1028
+ return R(a = te(e.children, c)) ? e.return = e.value + "{" + a + "}" : "";
1029
+ }
1030
+ function ie(e) {
1031
+ var r = S(e);
1032
+ return function (a, c, n, t) {
1033
+ var s = "";
1034
+ for (var i = 0; i < r; i++) s += e[i](a, c, n, t) || "";
1035
+ return s;
1036
+ };
1037
+ }
1038
+ function ue(e) {
1039
+ return function (r) {
1040
+ if (!r.root) if (r = r.return) e(r);
1041
+ };
1042
+ }
1043
+ function oe(e, n, i, u) {
1044
+ if (e.length > -1) if (!e.return) switch (e.type) {
1045
+ case s:
1046
+ e.return = ne(e.value, e.length, i);
1047
+ return;
1048
+ case d:
1049
+ return te([j(e, {
1050
+ value: A(e.value, "@", "@" + c)
1051
+ })], u);
1052
+ case t:
1053
+ if (e.length) return N(e.props, function (n) {
1054
+ switch (T(n, /(::plac\w+|:read-\w+)/)) {
1055
+ case ":read-only":
1056
+ case ":read-write":
1057
+ return te([j(e, {
1058
+ props: [A(n, /:(read-\w+)/, ":" + a + "$1")]
1059
+ })], u);
1060
+ case "::placeholder":
1061
+ return te([j(e, {
1062
+ props: [A(n, /:(plac\w+)/, ":" + c + "input-$1")]
1063
+ }), j(e, {
1064
+ props: [A(n, /:(plac\w+)/, ":" + a + "$1")]
1065
+ }), j(e, {
1066
+ props: [A(n, /:(plac\w+)/, r + "input-$1")]
1067
+ })], u);
1068
+ }
1069
+ return "";
1070
+ });
1071
+ }
1072
+ }
1073
+ function fe(e) {
1074
+ switch (e.type) {
1075
+ case t:
1076
+ e.props = e.props.map(function (r) {
1077
+ return N(B(r), function (r, a, c) {
1078
+ switch (M(r, 0)) {
1079
+ case 12:
1080
+ return C(r, 1, R(r));
1081
+ case 0:
1082
+ case 40:
1083
+ case 43:
1084
+ case 62:
1085
+ case 126:
1086
+ return r;
1087
+ case 58:
1088
+ if (c[++a] === "global") c[a] = "", c[++a] = "\f" + C(c[a], a = 1, -1);
1089
+ case 32:
1090
+ return a === 1 ? "" : r;
1091
+ default:
1092
+ switch (a) {
1093
+ case 0:
1094
+ e = r;
1095
+ return S(c) > 1 ? "" : r;
1096
+ case a = S(c) - 1:
1097
+ case 2:
1098
+ return a === 2 ? r + e + e : r + e;
1099
+ default:
1100
+ return r;
1101
+ }
1102
+ }
1103
+ });
1104
+ });
1105
+ }
1106
+ }
1107
+ e.CHARSET = f;
1108
+ e.COMMENT = n;
1109
+ e.COUNTER_STYLE = w;
1110
+ e.DECLARATION = s;
1111
+ e.DOCUMENT = h;
1112
+ e.FONT_FACE = b;
1113
+ e.FONT_FEATURE_VALUES = m;
1114
+ e.IMPORT = o;
1115
+ e.KEYFRAMES = d;
1116
+ e.LAYER = g;
1117
+ e.MEDIA = u;
1118
+ e.MOZ = a;
1119
+ e.MS = r;
1120
+ e.NAMESPACE = v;
1121
+ e.PAGE = i;
1122
+ e.RULESET = t;
1123
+ e.SUPPORTS = p;
1124
+ e.VIEWPORT = l;
1125
+ e.WEBKIT = c;
1126
+ e.abs = k;
1127
+ e.alloc = K;
1128
+ e.append = z;
1129
+ e.assign = x;
1130
+ e.caret = L;
1131
+ e.char = U;
1132
+ e.charat = M;
1133
+ e.combine = N;
1134
+ e.comment = ae;
1135
+ e.commenter = J;
1136
+ e.compile = X;
1137
+ e.copy = j;
1138
+ e.dealloc = V;
1139
+ e.declaration = ce;
1140
+ e.delimit = W;
1141
+ e.delimiter = q;
1142
+ e.escaping = Z;
1143
+ e.from = $;
1144
+ e.hash = E;
1145
+ e.identifier = Q;
1146
+ e.indexof = O;
1147
+ e.match = T;
1148
+ e.middleware = ie;
1149
+ e.namespace = fe;
1150
+ e.next = F;
1151
+ e.node = P;
1152
+ e.parse = ee;
1153
+ e.peek = I;
1154
+ e.prefix = ne;
1155
+ e.prefixer = oe;
1156
+ e.prev = _;
1157
+ e.replace = A;
1158
+ e.ruleset = re;
1159
+ e.rulesheet = ue;
1160
+ e.serialize = te;
1161
+ e.sizeof = S;
1162
+ e.slice = D;
1163
+ e.stringify = se;
1164
+ e.strlen = R;
1165
+ e.substr = C;
1166
+ e.token = Y;
1167
+ e.tokenize = B;
1168
+ e.tokenizer = H;
1169
+ e.trim = y;
1170
+ e.whitespace = G;
1171
+ Object.defineProperty(e, "__esModule", {
1172
+ value: true
1173
+ });
1174
+ });
1175
+ })(stylis, stylisExports);
1176
+
1177
+ var weakMemoize = function weakMemoize(func) {
1178
+ var cache = new WeakMap();
1179
+ return function (arg) {
1180
+ if (cache.has(arg)) {
1181
+ // Use non-null assertion because we just checked that the cache `has` it
1182
+ // This allows us to remove `undefined` from the return value
1183
+ return cache.get(arg);
1184
+ }
1185
+ var ret = func(arg);
1186
+ cache.set(arg, ret);
1187
+ return ret;
1188
+ };
1189
+ };
1190
+
1191
+ function memoize(fn) {
1192
+ var cache = Object.create(null);
1193
+ return function (arg) {
1194
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
1195
+ return cache[arg];
1196
+ };
1197
+ }
1198
+
1199
+ var isBrowser$4 = typeof document !== 'undefined';
1200
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
1201
+ var previous = 0;
1202
+ var character = 0;
1203
+ while (true) {
1204
+ previous = character;
1205
+ character = stylisExports.peek(); // &\f
1206
+
1207
+ if (previous === 38 && character === 12) {
1208
+ points[index] = 1;
1209
+ }
1210
+ if (stylisExports.token(character)) {
1211
+ break;
1212
+ }
1213
+ stylisExports.next();
1214
+ }
1215
+ return stylisExports.slice(begin, stylisExports.position);
1216
+ };
1217
+ var toRules = function toRules(parsed, points) {
1218
+ // pretend we've started with a comma
1219
+ var index = -1;
1220
+ var character = 44;
1221
+ do {
1222
+ switch (stylisExports.token(character)) {
1223
+ case 0:
1224
+ // &\f
1225
+ if (character === 38 && stylisExports.peek() === 12) {
1226
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
1227
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
1228
+ // and when it should just concatenate the outer and inner selectors
1229
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
1230
+ points[index] = 1;
1231
+ }
1232
+ parsed[index] += identifierWithPointTracking(stylisExports.position - 1, points, index);
1233
+ break;
1234
+ case 2:
1235
+ parsed[index] += stylisExports.delimit(character);
1236
+ break;
1237
+ case 4:
1238
+ // comma
1239
+ if (character === 44) {
1240
+ // colon
1241
+ parsed[++index] = stylisExports.peek() === 58 ? '&\f' : '';
1242
+ points[index] = parsed[index].length;
1243
+ break;
1244
+ }
1245
+
1246
+ // fallthrough
1247
+
1248
+ default:
1249
+ parsed[index] += stylisExports.from(character);
1250
+ }
1251
+ } while (character = stylisExports.next());
1252
+ return parsed;
1253
+ };
1254
+ var getRules = function getRules(value, points) {
1255
+ return stylisExports.dealloc(toRules(stylisExports.alloc(value), points));
1256
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
1257
+
1258
+ var fixedElements = /* #__PURE__ */new WeakMap();
1259
+ var compat = function compat(element) {
1260
+ if (element.type !== 'rule' || !element.parent ||
1261
+ // positive .length indicates that this rule contains pseudo
1262
+ // negative .length indicates that this rule has been already prefixed
1263
+ element.length < 1) {
1264
+ return;
1265
+ }
1266
+ var value = element.value;
1267
+ var parent = element.parent;
1268
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
1269
+ while (parent.type !== 'rule') {
1270
+ parent = parent.parent;
1271
+ if (!parent) return;
1272
+ } // short-circuit for the simplest case
1273
+
1274
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
1275
+ /* colon */ && !fixedElements.get(parent)) {
1276
+ return;
1277
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
1278
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
1279
+
1280
+ if (isImplicitRule) {
1281
+ return;
1282
+ }
1283
+ fixedElements.set(element, true);
1284
+ var points = [];
1285
+ var rules = getRules(value, points);
1286
+ var parentRules = parent.props;
1287
+ for (var i = 0, k = 0; i < rules.length; i++) {
1288
+ for (var j = 0; j < parentRules.length; j++, k++) {
1289
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1290
+ }
1291
+ }
1292
+ };
1293
+ var removeLabel = function removeLabel(element) {
1294
+ if (element.type === 'decl') {
1295
+ var value = element.value;
1296
+ if (
1297
+ // charcode for l
1298
+ value.charCodeAt(0) === 108 &&
1299
+ // charcode for b
1300
+ value.charCodeAt(2) === 98) {
1301
+ // this ignores label
1302
+ element["return"] = '';
1303
+ element.value = '';
1304
+ }
1305
+ }
1306
+ };
1307
+
1308
+ /* eslint-disable no-fallthrough */
1309
+
1310
+ function prefix(value, length) {
1311
+ switch (stylisExports.hash(value, length)) {
1312
+ // color-adjust
1313
+ case 5103:
1314
+ return stylisExports.WEBKIT + 'print-' + value + value;
1315
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
1316
+
1317
+ case 5737:
1318
+ case 4201:
1319
+ case 3177:
1320
+ case 3433:
1321
+ case 1641:
1322
+ case 4457:
1323
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
1324
+
1325
+ case 5572:
1326
+ case 6356:
1327
+ case 5844:
1328
+ case 3191:
1329
+ case 6645:
1330
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
1331
+
1332
+ case 6391:
1333
+ case 5879:
1334
+ case 5623:
1335
+ case 6135:
1336
+ case 4599:
1337
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
1338
+
1339
+ case 4215:
1340
+ case 6389:
1341
+ case 5109:
1342
+ case 5365:
1343
+ case 5621:
1344
+ case 3829:
1345
+ return stylisExports.WEBKIT + value + value;
1346
+ // appearance, user-select, transform, hyphens, text-size-adjust
1347
+
1348
+ case 5349:
1349
+ case 4246:
1350
+ case 4810:
1351
+ case 6968:
1352
+ case 2756:
1353
+ return stylisExports.WEBKIT + value + stylisExports.MOZ + value + stylisExports.MS + value + value;
1354
+ // flex, flex-direction
1355
+
1356
+ case 6828:
1357
+ case 4268:
1358
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1359
+ // order
1360
+
1361
+ case 6165:
1362
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-' + value + value;
1363
+ // align-items
1364
+
1365
+ case 5187:
1366
+ return stylisExports.WEBKIT + value + stylisExports.replace(value, /(\w+).+(:[^]+)/, stylisExports.WEBKIT + 'box-$1$2' + stylisExports.MS + 'flex-$1$2') + value;
1367
+ // align-self
1368
+
1369
+ case 5443:
1370
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-item-' + stylisExports.replace(value, /flex-|-self/, '') + value;
1371
+ // align-content
1372
+
1373
+ case 4675:
1374
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-line-pack' + stylisExports.replace(value, /align-content|flex-|-self/, '') + value;
1375
+ // flex-shrink
1376
+
1377
+ case 5548:
1378
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'shrink', 'negative') + value;
1379
+ // flex-basis
1380
+
1381
+ case 5292:
1382
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'basis', 'preferred-size') + value;
1383
+ // flex-grow
1384
+
1385
+ case 6060:
1386
+ return stylisExports.WEBKIT + 'box-' + stylisExports.replace(value, '-grow', '') + stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'grow', 'positive') + value;
1387
+ // transition
1388
+
1389
+ case 4554:
1390
+ return stylisExports.WEBKIT + stylisExports.replace(value, /([^-])(transform)/g, '$1' + stylisExports.WEBKIT + '$2') + value;
1391
+ // cursor
1392
+
1393
+ case 6187:
1394
+ return stylisExports.replace(stylisExports.replace(stylisExports.replace(value, /(zoom-|grab)/, stylisExports.WEBKIT + '$1'), /(image-set)/, stylisExports.WEBKIT + '$1'), value, '') + value;
1395
+ // background, background-image
1396
+
1397
+ case 5495:
1398
+ case 3959:
1399
+ return stylisExports.replace(value, /(image-set\([^]*)/, stylisExports.WEBKIT + '$1' + '$`$1');
1400
+ // justify-content
1401
+
1402
+ case 4968:
1403
+ return stylisExports.replace(stylisExports.replace(value, /(.+:)(flex-)?(.*)/, stylisExports.WEBKIT + 'box-pack:$3' + stylisExports.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylisExports.WEBKIT + value + value;
1404
+ // (margin|padding)-inline-(start|end)
1405
+
1406
+ case 4095:
1407
+ case 3583:
1408
+ case 4068:
1409
+ case 2532:
1410
+ return stylisExports.replace(value, /(.+)-inline(.+)/, stylisExports.WEBKIT + '$1$2') + value;
1411
+ // (min|max)?(width|height|inline-size|block-size)
1412
+
1413
+ case 8116:
1414
+ case 7059:
1415
+ case 5753:
1416
+ case 5535:
1417
+ case 5445:
1418
+ case 5701:
1419
+ case 4933:
1420
+ case 4677:
1421
+ case 5533:
1422
+ case 5789:
1423
+ case 5021:
1424
+ case 4765:
1425
+ // stretch, max-content, min-content, fill-available
1426
+ if (stylisExports.strlen(value) - 1 - length > 6) switch (stylisExports.charat(value, length + 1)) {
1427
+ // (m)ax-content, (m)in-content
1428
+ case 109:
1429
+ // -
1430
+ if (stylisExports.charat(value, length + 4) !== 45) break;
1431
+ // (f)ill-available, (f)it-content
1432
+
1433
+ case 102:
1434
+ return stylisExports.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylisExports.WEBKIT + '$2-$3' + '$1' + stylisExports.MOZ + (stylisExports.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
1435
+ // (s)tretch
1436
+
1437
+ case 115:
1438
+ return ~stylisExports.indexof(value, 'stretch') ? prefix(stylisExports.replace(value, 'stretch', 'fill-available'), length) + value : value;
1439
+ }
1440
+ break;
1441
+ // position: sticky
1442
+
1443
+ case 4949:
1444
+ // (s)ticky?
1445
+ if (stylisExports.charat(value, length + 1) !== 115) break;
1446
+ // display: (flex|inline-flex)
1447
+
1448
+ case 6444:
1449
+ switch (stylisExports.charat(value, stylisExports.strlen(value) - 3 - (~stylisExports.indexof(value, '!important') && 10))) {
1450
+ // stic(k)y
1451
+ case 107:
1452
+ return stylisExports.replace(value, ':', ':' + stylisExports.WEBKIT) + value;
1453
+ // (inline-)?fl(e)x
1454
+
1455
+ case 101:
1456
+ 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;
1457
+ }
1458
+ break;
1459
+ // writing-mode
1460
+
1461
+ case 5936:
1462
+ switch (stylisExports.charat(value, length + 11)) {
1463
+ // vertical-l(r)
1464
+ case 114:
1465
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
1466
+ // vertical-r(l)
1467
+
1468
+ case 108:
1469
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
1470
+ // horizontal(-)tb
1471
+
1472
+ case 45:
1473
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
1474
+ }
1475
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1476
+ }
1477
+ return value;
1478
+ }
1479
+ var prefixer = function prefixer(element, index, children, callback) {
1480
+ if (element.length > -1) if (!element["return"]) switch (element.type) {
1481
+ case stylisExports.DECLARATION:
1482
+ element["return"] = prefix(element.value, element.length);
1483
+ break;
1484
+ case stylisExports.KEYFRAMES:
1485
+ return stylisExports.serialize([stylisExports.copy(element, {
1486
+ value: stylisExports.replace(element.value, '@', '@' + stylisExports.WEBKIT)
1487
+ })], callback);
1488
+ case stylisExports.RULESET:
1489
+ if (element.length) return stylisExports.combine(element.props, function (value) {
1490
+ switch (stylisExports.match(value, /(::plac\w+|:read-\w+)/)) {
1491
+ // :read-(only|write)
1492
+ case ':read-only':
1493
+ case ':read-write':
1494
+ return stylisExports.serialize([stylisExports.copy(element, {
1495
+ props: [stylisExports.replace(value, /:(read-\w+)/, ':' + stylisExports.MOZ + '$1')]
1496
+ })], callback);
1497
+ // :placeholder
1498
+
1499
+ case '::placeholder':
1500
+ return stylisExports.serialize([stylisExports.copy(element, {
1501
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.WEBKIT + 'input-$1')]
1502
+ }), stylisExports.copy(element, {
1503
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.MOZ + '$1')]
1504
+ }), stylisExports.copy(element, {
1505
+ props: [stylisExports.replace(value, /:(plac\w+)/, stylisExports.MS + 'input-$1')]
1506
+ })], callback);
1507
+ }
1508
+ return '';
1509
+ });
1510
+ }
1511
+ };
1512
+ var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
1513
+ return memoize(function () {
1514
+ return {};
1515
+ });
1516
+ });
1517
+ var defaultStylisPlugins = [prefixer];
1518
+ var createCache = function createCache(options) {
1519
+ var key = options.key;
1520
+ if (isBrowser$4 && key === 'css') {
1521
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1522
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1523
+ // note this very very intentionally targets all style elements regardless of the key to ensure
1524
+ // that creating a cache works inside of render of a React component
1525
+
1526
+ Array.prototype.forEach.call(ssrStyles, function (node) {
1527
+ // we want to only move elements which have a space in the data-emotion attribute value
1528
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
1529
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
1530
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
1531
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
1532
+ // will not result in the Emotion 10 styles being destroyed
1533
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
1534
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
1535
+ return;
1536
+ }
1537
+ document.head.appendChild(node);
1538
+ node.setAttribute('data-s', '');
1539
+ });
1540
+ }
1541
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1542
+ var inserted = {};
1543
+ var container;
1544
+ var nodesToHydrate = [];
1545
+ if (isBrowser$4) {
1546
+ container = options.container || document.head;
1547
+ Array.prototype.forEach.call(
1548
+ // this means we will ignore elements which don't have a space in them which
1549
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1550
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
1551
+ var attrib = node.getAttribute("data-emotion").split(' ');
1552
+ for (var i = 1; i < attrib.length; i++) {
1553
+ inserted[attrib[i]] = true;
1554
+ }
1555
+ nodesToHydrate.push(node);
1556
+ });
1557
+ }
1558
+ var _insert;
1559
+ var omnipresentPlugins = [compat, removeLabel];
1560
+ if (!getServerStylisCache) {
1561
+ var currentSheet;
1562
+ var finalizingPlugins = [stylisExports.stringify, stylisExports.rulesheet(function (rule) {
1563
+ currentSheet.insert(rule);
1564
+ })];
1565
+ var serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1566
+ var stylis = function stylis(styles) {
1567
+ return stylisExports.serialize(stylisExports.compile(styles), serializer);
1568
+ };
1569
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1570
+ currentSheet = sheet;
1571
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1572
+ if (shouldCache) {
1573
+ cache.inserted[serialized.name] = true;
1574
+ }
1575
+ };
1576
+ } else {
1577
+ var _finalizingPlugins = [stylisExports.stringify];
1578
+ var _serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
1579
+ var _stylis = function _stylis(styles) {
1580
+ return stylisExports.serialize(stylisExports.compile(styles), _serializer);
1581
+ };
1582
+ var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
1583
+ var getRules = function getRules(selector, serialized) {
1584
+ var name = serialized.name;
1585
+ if (serverStylisCache[name] === undefined) {
1586
+ serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1587
+ }
1588
+ return serverStylisCache[name];
1589
+ };
1590
+ _insert = function _insert(selector, serialized, sheet, shouldCache) {
1591
+ var name = serialized.name;
1592
+ var rules = getRules(selector, serialized);
1593
+ if (cache.compat === undefined) {
1594
+ // in regular mode, we don't set the styles on the inserted cache
1595
+ // since we don't need to and that would be wasting memory
1596
+ // we return them so that they are rendered in a style tag
1597
+ if (shouldCache) {
1598
+ cache.inserted[name] = true;
1599
+ }
1600
+ return rules;
1601
+ } else {
1602
+ // in compat mode, we put the styles on the inserted cache so
1603
+ // that emotion-server can pull out the styles
1604
+ // except when we don't want to cache it which was in Global but now
1605
+ // is nowhere but we don't want to do a major right now
1606
+ // and just in case we're going to leave the case here
1607
+ // it's also not affecting client side bundle size
1608
+ // so it's really not a big deal
1609
+ if (shouldCache) {
1610
+ cache.inserted[name] = rules;
1611
+ } else {
1612
+ return rules;
1613
+ }
1614
+ }
1615
+ };
1616
+ }
1617
+ var cache = {
1618
+ key: key,
1619
+ sheet: new StyleSheet({
1620
+ key: key,
1621
+ container: container,
1622
+ nonce: options.nonce,
1623
+ speedy: options.speedy,
1624
+ prepend: options.prepend,
1625
+ insertionPoint: options.insertionPoint
1626
+ }),
1627
+ nonce: options.nonce,
1628
+ inserted: inserted,
1629
+ registered: {},
1630
+ insert: _insert
1631
+ };
1632
+ cache.sheet.hydrate(nodesToHydrate);
1633
+ return cache;
1634
+ };
1635
+
1636
+ var reactIsExports = {};
1637
+ var reactIs$1 = {
1638
+ get exports(){ return reactIsExports; },
1639
+ set exports(v){ reactIsExports = v; },
1640
+ };
1641
+
1642
+ var reactIs_production_min = {};
1643
+
1644
+ /** @license React v16.13.1
1645
+ * react-is.production.min.js
1646
+ *
1647
+ * Copyright (c) Facebook, Inc. and its affiliates.
1648
+ *
1649
+ * This source code is licensed under the MIT license found in the
1650
+ * LICENSE file in the root directory of this source tree.
1651
+ */
1652
+ var hasRequiredReactIs_production_min;
1653
+ function requireReactIs_production_min() {
1654
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
1655
+ hasRequiredReactIs_production_min = 1;
1656
+ var b = "function" === typeof Symbol && Symbol.for,
1657
+ c = b ? Symbol.for("react.element") : 60103,
1658
+ d = b ? Symbol.for("react.portal") : 60106,
1659
+ e = b ? Symbol.for("react.fragment") : 60107,
1660
+ f = b ? Symbol.for("react.strict_mode") : 60108,
1661
+ g = b ? Symbol.for("react.profiler") : 60114,
1662
+ h = b ? Symbol.for("react.provider") : 60109,
1663
+ k = b ? Symbol.for("react.context") : 60110,
1664
+ l = b ? Symbol.for("react.async_mode") : 60111,
1665
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
1666
+ n = b ? Symbol.for("react.forward_ref") : 60112,
1667
+ p = b ? Symbol.for("react.suspense") : 60113,
1668
+ q = b ? Symbol.for("react.suspense_list") : 60120,
1669
+ r = b ? Symbol.for("react.memo") : 60115,
1670
+ t = b ? Symbol.for("react.lazy") : 60116,
1671
+ v = b ? Symbol.for("react.block") : 60121,
1672
+ w = b ? Symbol.for("react.fundamental") : 60117,
1673
+ x = b ? Symbol.for("react.responder") : 60118,
1674
+ y = b ? Symbol.for("react.scope") : 60119;
1675
+ function z(a) {
1676
+ if ("object" === typeof a && null !== a) {
1677
+ var u = a.$$typeof;
1678
+ switch (u) {
1679
+ case c:
1680
+ switch (a = a.type, a) {
1681
+ case l:
1682
+ case m:
1683
+ case e:
1684
+ case g:
1685
+ case f:
1686
+ case p:
1687
+ return a;
1688
+ default:
1689
+ switch (a = a && a.$$typeof, a) {
1690
+ case k:
1691
+ case n:
1692
+ case t:
1693
+ case r:
1694
+ case h:
1695
+ return a;
1696
+ default:
1697
+ return u;
1698
+ }
1699
+ }
1700
+ case d:
1701
+ return u;
1702
+ }
1703
+ }
1704
+ }
1705
+ function A(a) {
1706
+ return z(a) === m;
1707
+ }
1708
+ reactIs_production_min.AsyncMode = l;
1709
+ reactIs_production_min.ConcurrentMode = m;
1710
+ reactIs_production_min.ContextConsumer = k;
1711
+ reactIs_production_min.ContextProvider = h;
1712
+ reactIs_production_min.Element = c;
1713
+ reactIs_production_min.ForwardRef = n;
1714
+ reactIs_production_min.Fragment = e;
1715
+ reactIs_production_min.Lazy = t;
1716
+ reactIs_production_min.Memo = r;
1717
+ reactIs_production_min.Portal = d;
1718
+ reactIs_production_min.Profiler = g;
1719
+ reactIs_production_min.StrictMode = f;
1720
+ reactIs_production_min.Suspense = p;
1721
+ reactIs_production_min.isAsyncMode = function (a) {
1722
+ return A(a) || z(a) === l;
1723
+ };
1724
+ reactIs_production_min.isConcurrentMode = A;
1725
+ reactIs_production_min.isContextConsumer = function (a) {
1726
+ return z(a) === k;
1727
+ };
1728
+ reactIs_production_min.isContextProvider = function (a) {
1729
+ return z(a) === h;
1730
+ };
1731
+ reactIs_production_min.isElement = function (a) {
1732
+ return "object" === typeof a && null !== a && a.$$typeof === c;
1733
+ };
1734
+ reactIs_production_min.isForwardRef = function (a) {
1735
+ return z(a) === n;
1736
+ };
1737
+ reactIs_production_min.isFragment = function (a) {
1738
+ return z(a) === e;
1739
+ };
1740
+ reactIs_production_min.isLazy = function (a) {
1741
+ return z(a) === t;
1742
+ };
1743
+ reactIs_production_min.isMemo = function (a) {
1744
+ return z(a) === r;
1745
+ };
1746
+ reactIs_production_min.isPortal = function (a) {
1747
+ return z(a) === d;
1748
+ };
1749
+ reactIs_production_min.isProfiler = function (a) {
1750
+ return z(a) === g;
1751
+ };
1752
+ reactIs_production_min.isStrictMode = function (a) {
1753
+ return z(a) === f;
1754
+ };
1755
+ reactIs_production_min.isSuspense = function (a) {
1756
+ return z(a) === p;
1757
+ };
1758
+ reactIs_production_min.isValidElementType = function (a) {
1759
+ 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);
1760
+ };
1761
+ reactIs_production_min.typeOf = z;
1762
+ return reactIs_production_min;
1763
+ }
1764
+
1765
+ (function (module) {
1766
+
1767
+ {
1768
+ module.exports = requireReactIs_production_min();
1769
+ }
1770
+ })(reactIs$1);
1771
+
1772
+ var reactIs = reactIsExports;
1773
+ var FORWARD_REF_STATICS = {
1774
+ '$$typeof': true,
1775
+ render: true,
1776
+ defaultProps: true,
1777
+ displayName: true,
1778
+ propTypes: true
1779
+ };
1780
+ var MEMO_STATICS = {
1781
+ '$$typeof': true,
1782
+ compare: true,
1783
+ defaultProps: true,
1784
+ displayName: true,
1785
+ propTypes: true,
1786
+ type: true
1787
+ };
1788
+ var TYPE_STATICS = {};
1789
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1790
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1791
+
1792
+ var isBrowser$3 = typeof document !== 'undefined';
1793
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1794
+ var rawClassName = '';
1795
+ classNames.split(' ').forEach(function (className) {
1796
+ if (registered[className] !== undefined) {
1797
+ registeredStyles.push(registered[className] + ";");
1798
+ } else if (className) {
1799
+ rawClassName += className + " ";
1800
+ }
1801
+ });
1802
+ return rawClassName;
1803
+ }
1804
+ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
1805
+ var className = cache.key + "-" + serialized.name;
1806
+ if (
1807
+ // we only need to add the styles to the registered cache if the
1808
+ // class name could be used further down
1809
+ // the tree but if it's a string tag, we know it won't
1810
+ // so we don't have to add it to registered cache.
1811
+ // this improves memory usage since we can avoid storing the whole style string
1812
+ (isStringTag === false ||
1813
+ // we need to always store it if we're in compat mode and
1814
+ // in node since emotion-server relies on whether a style is in
1815
+ // the registered cache to know whether a style is global or not
1816
+ // also, note that this check will be dead code eliminated in the browser
1817
+ isBrowser$3 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
1818
+ cache.registered[className] = serialized.styles;
1819
+ }
1820
+ };
1821
+ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
1822
+ registerStyles(cache, serialized, isStringTag);
1823
+ var className = cache.key + "-" + serialized.name;
1824
+ if (cache.inserted[serialized.name] === undefined) {
1825
+ var stylesForSSR = '';
1826
+ var current = serialized;
1827
+ do {
1828
+ var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
1829
+ if (!isBrowser$3 && maybeStyles !== undefined) {
1830
+ stylesForSSR += maybeStyles;
1831
+ }
1832
+ current = current.next;
1833
+ } while (current !== undefined);
1834
+ if (!isBrowser$3 && stylesForSSR.length !== 0) {
1835
+ return stylesForSSR;
1836
+ }
1837
+ }
1838
+ };
1839
+
1840
+ /* eslint-disable */
1841
+ // Inspired by https://github.com/garycourt/murmurhash-js
1842
+ // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
1843
+ function murmur2(str) {
1844
+ // 'm' and 'r' are mixing constants generated offline.
1845
+ // They're not really 'magic', they just happen to work well.
1846
+ // const m = 0x5bd1e995;
1847
+ // const r = 24;
1848
+ // Initialize the hash
1849
+ var h = 0; // Mix 4 bytes at a time into the hash
1850
+
1851
+ var k,
1852
+ i = 0,
1853
+ len = str.length;
1854
+ for (; len >= 4; ++i, len -= 4) {
1855
+ k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
1856
+ k = /* Math.imul(k, m): */
1857
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
1858
+ k ^= /* k >>> r: */
1859
+ k >>> 24;
1860
+ h = /* Math.imul(k, m): */
1861
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */
1862
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1863
+ } // Handle the last few bytes of the input array
1864
+
1865
+ switch (len) {
1866
+ case 3:
1867
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
1868
+ case 2:
1869
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
1870
+ case 1:
1871
+ h ^= str.charCodeAt(i) & 0xff;
1872
+ h = /* Math.imul(h, m): */
1873
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1874
+ } // Do a few final mixes of the hash to ensure the last few
1875
+ // bytes are well-incorporated.
1876
+
1877
+ h ^= h >>> 13;
1878
+ h = /* Math.imul(h, m): */
1879
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1880
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1881
+ }
1882
+
1883
+ var unitlessKeys = {
1884
+ animationIterationCount: 1,
1885
+ aspectRatio: 1,
1886
+ borderImageOutset: 1,
1887
+ borderImageSlice: 1,
1888
+ borderImageWidth: 1,
1889
+ boxFlex: 1,
1890
+ boxFlexGroup: 1,
1891
+ boxOrdinalGroup: 1,
1892
+ columnCount: 1,
1893
+ columns: 1,
1894
+ flex: 1,
1895
+ flexGrow: 1,
1896
+ flexPositive: 1,
1897
+ flexShrink: 1,
1898
+ flexNegative: 1,
1899
+ flexOrder: 1,
1900
+ gridRow: 1,
1901
+ gridRowEnd: 1,
1902
+ gridRowSpan: 1,
1903
+ gridRowStart: 1,
1904
+ gridColumn: 1,
1905
+ gridColumnEnd: 1,
1906
+ gridColumnSpan: 1,
1907
+ gridColumnStart: 1,
1908
+ msGridRow: 1,
1909
+ msGridRowSpan: 1,
1910
+ msGridColumn: 1,
1911
+ msGridColumnSpan: 1,
1912
+ fontWeight: 1,
1913
+ lineHeight: 1,
1914
+ opacity: 1,
1915
+ order: 1,
1916
+ orphans: 1,
1917
+ scale: 1,
1918
+ tabSize: 1,
1919
+ widows: 1,
1920
+ zIndex: 1,
1921
+ zoom: 1,
1922
+ WebkitLineClamp: 1,
1923
+ // SVG-related properties
1924
+ fillOpacity: 1,
1925
+ floodOpacity: 1,
1926
+ stopOpacity: 1,
1927
+ strokeDasharray: 1,
1928
+ strokeDashoffset: 1,
1929
+ strokeMiterlimit: 1,
1930
+ strokeOpacity: 1,
1931
+ strokeWidth: 1
1932
+ };
1933
+
1934
+ var isDevelopment$2 = false;
1935
+ var hyphenateRegex = /[A-Z]|^ms/g;
1936
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1937
+ var isCustomProperty = function isCustomProperty(property) {
1938
+ return property.charCodeAt(1) === 45;
1939
+ };
1940
+ var isProcessableValue = function isProcessableValue(value) {
1941
+ return value != null && typeof value !== 'boolean';
1942
+ };
1943
+ var processStyleName = /* #__PURE__ */memoize(function (styleName) {
1944
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
1945
+ });
1946
+ var processStyleValue = function processStyleValue(key, value) {
1947
+ switch (key) {
1948
+ case 'animation':
1949
+ case 'animationName':
1950
+ {
1951
+ if (typeof value === 'string') {
1952
+ return value.replace(animationRegex, function (match, p1, p2) {
1953
+ cursor = {
1954
+ name: p1,
1955
+ styles: p2,
1956
+ next: cursor
1957
+ };
1958
+ return p1;
1959
+ });
1960
+ }
1961
+ }
1962
+ }
1963
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
1964
+ return value + 'px';
1965
+ }
1966
+ return value;
1967
+ };
1968
+ var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
1969
+ function handleInterpolation(mergedProps, registered, interpolation) {
1970
+ if (interpolation == null) {
1971
+ return '';
1972
+ }
1973
+ var componentSelector = interpolation;
1974
+ if (componentSelector.__emotion_styles !== undefined) {
1975
+ return componentSelector;
1976
+ }
1977
+ switch (typeof interpolation) {
1978
+ case 'boolean':
1979
+ {
1980
+ return '';
1981
+ }
1982
+ case 'object':
1983
+ {
1984
+ var keyframes = interpolation;
1985
+ if (keyframes.anim === 1) {
1986
+ cursor = {
1987
+ name: keyframes.name,
1988
+ styles: keyframes.styles,
1989
+ next: cursor
1990
+ };
1991
+ return keyframes.name;
1992
+ }
1993
+ var serializedStyles = interpolation;
1994
+ if (serializedStyles.styles !== undefined) {
1995
+ var next = serializedStyles.next;
1996
+ if (next !== undefined) {
1997
+ // not the most efficient thing ever but this is a pretty rare case
1998
+ // and there will be very few iterations of this generally
1999
+ while (next !== undefined) {
2000
+ cursor = {
2001
+ name: next.name,
2002
+ styles: next.styles,
2003
+ next: cursor
2004
+ };
2005
+ next = next.next;
2006
+ }
2007
+ }
2008
+ var styles = serializedStyles.styles + ";";
2009
+ return styles;
2010
+ }
2011
+ return createStringFromObject(mergedProps, registered, interpolation);
2012
+ }
2013
+ case 'function':
2014
+ {
2015
+ if (mergedProps !== undefined) {
2016
+ var previousCursor = cursor;
2017
+ var result = interpolation(mergedProps);
2018
+ cursor = previousCursor;
2019
+ return handleInterpolation(mergedProps, registered, result);
2020
+ }
2021
+ break;
2022
+ }
2023
+ } // finalize string values (regular strings and functions interpolated into css calls)
2024
+
2025
+ var asString = interpolation;
2026
+ if (registered == null) {
2027
+ return asString;
2028
+ }
2029
+ var cached = registered[asString];
2030
+ return cached !== undefined ? cached : asString;
2031
+ }
2032
+ function createStringFromObject(mergedProps, registered, obj) {
2033
+ var string = '';
2034
+ if (Array.isArray(obj)) {
2035
+ for (var i = 0; i < obj.length; i++) {
2036
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
2037
+ }
2038
+ } else {
2039
+ for (var key in obj) {
2040
+ var value = obj[key];
2041
+ if (typeof value !== 'object') {
2042
+ var asString = value;
2043
+ if (registered != null && registered[asString] !== undefined) {
2044
+ string += key + "{" + registered[asString] + "}";
2045
+ } else if (isProcessableValue(asString)) {
2046
+ string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
2047
+ }
2048
+ } else {
2049
+ if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$2) {
2050
+ throw new Error(noComponentSelectorMessage);
2051
+ }
2052
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
2053
+ for (var _i = 0; _i < value.length; _i++) {
2054
+ if (isProcessableValue(value[_i])) {
2055
+ string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
2056
+ }
2057
+ }
2058
+ } else {
2059
+ var interpolated = handleInterpolation(mergedProps, registered, value);
2060
+ switch (key) {
2061
+ case 'animation':
2062
+ case 'animationName':
2063
+ {
2064
+ string += processStyleName(key) + ":" + interpolated + ";";
2065
+ break;
2066
+ }
2067
+ default:
2068
+ {
2069
+ string += key + "{" + interpolated + "}";
2070
+ }
2071
+ }
2072
+ }
2073
+ }
2074
+ }
2075
+ }
2076
+ return string;
2077
+ }
2078
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
2079
+ // keyframes are stored on the SerializedStyles object as a linked list
2080
+
2081
+ var cursor;
2082
+ function serializeStyles(args, registered, mergedProps) {
2083
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
2084
+ return args[0];
2085
+ }
2086
+ var stringMode = true;
2087
+ var styles = '';
2088
+ cursor = undefined;
2089
+ var strings = args[0];
2090
+ if (strings == null || strings.raw === undefined) {
2091
+ stringMode = false;
2092
+ styles += handleInterpolation(mergedProps, registered, strings);
2093
+ } else {
2094
+ var asTemplateStringsArr = strings;
2095
+ styles += asTemplateStringsArr[0];
2096
+ } // we start at 1 since we've already handled the first arg
2097
+
2098
+ for (var i = 1; i < args.length; i++) {
2099
+ styles += handleInterpolation(mergedProps, registered, args[i]);
2100
+ if (stringMode) {
2101
+ var templateStringsArr = strings;
2102
+ styles += templateStringsArr[i];
2103
+ }
2104
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
2105
+
2106
+ labelPattern.lastIndex = 0;
2107
+ var identifierName = '';
2108
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
2109
+
2110
+ while ((match = labelPattern.exec(styles)) !== null) {
2111
+ identifierName += '-' + match[1];
2112
+ }
2113
+ var name = murmur2(styles) + identifierName;
2114
+ return {
2115
+ name: name,
2116
+ styles: styles,
2117
+ next: cursor
2118
+ };
2119
+ }
2120
+
2121
+ var isBrowser$2 = typeof document !== 'undefined';
2122
+ var syncFallback = function syncFallback(create) {
2123
+ return create();
2124
+ };
2125
+ var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
2126
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
2127
+
2128
+ var isDevelopment$1 = false;
2129
+ var isBrowser$1 = typeof document !== 'undefined';
2130
+ var EmotionCacheContext = /* #__PURE__ */React__namespace.createContext(
2131
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
2132
+ // because this module is primarily intended for the browser and node
2133
+ // but it's also required in react native and similar environments sometimes
2134
+ // and we could have a special build just for that
2135
+ // but this is much easier and the native packages
2136
+ // might use a different theme context in the future anyway
2137
+ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
2138
+ key: 'css'
2139
+ }) : null);
2140
+ EmotionCacheContext.Provider;
2141
+ var withEmotionCache = function withEmotionCache(func) {
2142
+ return /*#__PURE__*/React.forwardRef(function (props, ref) {
2143
+ // the cache will never be null in the browser
2144
+ var cache = React.useContext(EmotionCacheContext);
2145
+ return func(props, cache, ref);
2146
+ });
2147
+ };
2148
+ if (!isBrowser$1) {
2149
+ withEmotionCache = function withEmotionCache(func) {
2150
+ return function (props) {
2151
+ var cache = React.useContext(EmotionCacheContext);
2152
+ if (cache === null) {
2153
+ // yes, we're potentially creating this on every render
2154
+ // it doesn't actually matter though since it's only on the server
2155
+ // so there will only every be a single render
2156
+ // that could change in the future because of suspense and etc. but for now,
2157
+ // this works and i don't want to optimise for a future thing that we aren't sure about
2158
+ cache = createCache({
2159
+ key: 'css'
2160
+ });
2161
+ return /*#__PURE__*/React__namespace.createElement(EmotionCacheContext.Provider, {
2162
+ value: cache
2163
+ }, func(props, cache));
2164
+ } else {
2165
+ return func(props, cache);
2166
+ }
2167
+ };
2168
+ };
2169
+ }
2170
+ var ThemeContext$1 = /* #__PURE__ */React__namespace.createContext({});
2171
+ var getTheme$1 = function getTheme(outerTheme, theme) {
2172
+ if (typeof theme === 'function') {
2173
+ var mergedTheme = theme(outerTheme);
2174
+ return mergedTheme;
2175
+ }
2176
+ return _extends$1({}, outerTheme, theme);
2177
+ };
2178
+ var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
2179
+ return weakMemoize(function (theme) {
2180
+ return getTheme$1(outerTheme, theme);
2181
+ });
2182
+ });
2183
+ var ThemeProvider$1 = function ThemeProvider(props) {
2184
+ var theme = React__namespace.useContext(ThemeContext$1);
2185
+ if (props.theme !== theme) {
2186
+ theme = createCacheWithTheme(theme)(props.theme);
2187
+ }
2188
+ return /*#__PURE__*/React__namespace.createElement(ThemeContext$1.Provider, {
2189
+ value: theme
2190
+ }, props.children);
2191
+ };
2192
+ var hasOwn = {}.hasOwnProperty;
2193
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
2194
+ var createEmotionProps = function createEmotionProps(type, props) {
2195
+ var newProps = {};
2196
+ for (var _key in props) {
2197
+ if (hasOwn.call(props, _key)) {
2198
+ newProps[_key] = props[_key];
2199
+ }
2200
+ }
2201
+ newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
2202
+
2203
+ return newProps;
2204
+ };
2205
+ var Insertion$1 = function Insertion(_ref) {
2206
+ var cache = _ref.cache,
2207
+ serialized = _ref.serialized,
2208
+ isStringTag = _ref.isStringTag;
2209
+ registerStyles(cache, serialized, isStringTag);
2210
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
2211
+ return insertStyles(cache, serialized, isStringTag);
2212
+ });
2213
+ if (!isBrowser$1 && rules !== undefined) {
2214
+ var _ref2;
2215
+ var serializedNames = serialized.name;
2216
+ var next = serialized.next;
2217
+ while (next !== undefined) {
2218
+ serializedNames += ' ' + next.name;
2219
+ next = next.next;
2220
+ }
2221
+ return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2222
+ __html: rules
2223
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
2224
+ }
2225
+ return null;
2226
+ };
2227
+ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2228
+ var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
2229
+ // not passing the registered cache to serializeStyles because it would
2230
+ // make certain babel optimisations not possible
2231
+
2232
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
2233
+ cssProp = cache.registered[cssProp];
2234
+ }
2235
+ var WrappedComponent = props[typePropName];
2236
+ var registeredStyles = [cssProp];
2237
+ var className = '';
2238
+ if (typeof props.className === 'string') {
2239
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
2240
+ } else if (props.className != null) {
2241
+ className = props.className + " ";
2242
+ }
2243
+ var serialized = serializeStyles(registeredStyles, undefined, React__namespace.useContext(ThemeContext$1));
2244
+ className += cache.key + "-" + serialized.name;
2245
+ var newProps = {};
2246
+ for (var _key2 in props) {
2247
+ if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && !isDevelopment$1) {
2248
+ newProps[_key2] = props[_key2];
2249
+ }
2250
+ }
2251
+ newProps.className = className;
2252
+ if (ref) {
2253
+ newProps.ref = ref;
2254
+ }
2255
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion$1, {
2256
+ cache: cache,
2257
+ serialized: serialized,
2258
+ isStringTag: typeof WrappedComponent === 'string'
2259
+ }), /*#__PURE__*/React__namespace.createElement(WrappedComponent, newProps));
2260
+ });
2261
+ var Emotion$1 = Emotion;
2262
+
2263
+ var _extendsExports = {};
2264
+ var _extends = {
2265
+ get exports(){ return _extendsExports; },
2266
+ set exports(v){ _extendsExports = v; },
2267
+ };
2268
+
2269
+ (function (module) {
2270
+ function _extends() {
2271
+ return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
2272
+ for (var e = 1; e < arguments.length; e++) {
2273
+ var t = arguments[e];
2274
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2275
+ }
2276
+ return n;
2277
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
2278
+ }
2279
+ module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
2280
+ })(_extends);
2281
+
2282
+ var jsx = function jsx(type, props) {
2283
+ // eslint-disable-next-line prefer-rest-params
2284
+ var args = arguments;
2285
+ if (props == null || !hasOwn.call(props, 'css')) {
2286
+ return React__namespace.createElement.apply(undefined, args);
2287
+ }
2288
+ var argsLength = args.length;
2289
+ var createElementArgArray = new Array(argsLength);
2290
+ createElementArgArray[0] = Emotion$1;
2291
+ createElementArgArray[1] = createEmotionProps(type, props);
2292
+ for (var i = 2; i < argsLength; i++) {
2293
+ createElementArgArray[i] = args[i];
2294
+ }
2295
+ return React__namespace.createElement.apply(null, createElementArgArray);
2296
+ };
2297
+ (function (_jsx) {
2298
+ var JSX;
2299
+ (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
2300
+ })(jsx || (jsx = {}));
2301
+
2302
+ // eslint-disable-next-line no-undef
2303
+ 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
2304
+
2305
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
2306
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
2307
+ /* o */ && prop.charCodeAt(1) === 110
2308
+ /* n */ && prop.charCodeAt(2) < 91;
2309
+ }
2310
+ /* Z+1 */);
2311
+
2312
+ var isBrowser = typeof document !== 'undefined';
2313
+ var isDevelopment = false;
2314
+ var testOmitPropsOnStringTag = isPropValid;
2315
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {
2316
+ return key !== 'theme';
2317
+ };
2318
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {
2319
+ return typeof tag === 'string' &&
2320
+ // 96 is one less than the char code
2321
+ // for "a" so this is checking that
2322
+ // it's a lowercase character
2323
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
2324
+ };
2325
+ var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {
2326
+ var shouldForwardProp;
2327
+ if (options) {
2328
+ var optionsShouldForwardProp = options.shouldForwardProp;
2329
+ shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {
2330
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
2331
+ } : optionsShouldForwardProp;
2332
+ }
2333
+ if (typeof shouldForwardProp !== 'function' && isReal) {
2334
+ shouldForwardProp = tag.__emotion_forwardProp;
2335
+ }
2336
+ return shouldForwardProp;
2337
+ };
2338
+ var Insertion = function Insertion(_ref) {
2339
+ var cache = _ref.cache,
2340
+ serialized = _ref.serialized,
2341
+ isStringTag = _ref.isStringTag;
2342
+ registerStyles(cache, serialized, isStringTag);
2343
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
2344
+ return insertStyles(cache, serialized, isStringTag);
2345
+ });
2346
+ if (!isBrowser && rules !== undefined) {
2347
+ var _ref2;
2348
+ var serializedNames = serialized.name;
2349
+ var next = serialized.next;
2350
+ while (next !== undefined) {
2351
+ serializedNames += ' ' + next.name;
2352
+ next = next.next;
2353
+ }
2354
+ return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2355
+ __html: rules
2356
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
2357
+ }
2358
+ return null;
2359
+ };
2360
+ var createStyled = function createStyled(tag, options) {
2361
+ var isReal = tag.__emotion_real === tag;
2362
+ var baseTag = isReal && tag.__emotion_base || tag;
2363
+ var identifierName;
2364
+ var targetClassName;
2365
+ if (options !== undefined) {
2366
+ identifierName = options.label;
2367
+ targetClassName = options.target;
2368
+ }
2369
+ var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
2370
+ var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
2371
+ var shouldUseAs = !defaultShouldForwardProp('as');
2372
+ return function () {
2373
+ // eslint-disable-next-line prefer-rest-params
2374
+ var args = arguments;
2375
+ var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];
2376
+ if (identifierName !== undefined) {
2377
+ styles.push("label:" + identifierName + ";");
2378
+ }
2379
+ if (args[0] == null || args[0].raw === undefined) {
2380
+ // eslint-disable-next-line prefer-spread
2381
+ styles.push.apply(styles, args);
2382
+ } else {
2383
+ var templateStringsArr = args[0];
2384
+ styles.push(templateStringsArr[0]);
2385
+ var len = args.length;
2386
+ var i = 1;
2387
+ for (; i < len; i++) {
2388
+ styles.push(args[i], templateStringsArr[i]);
2389
+ }
2390
+ }
2391
+ var Styled = withEmotionCache(function (props, cache, ref) {
2392
+ var FinalTag = shouldUseAs && props.as || baseTag;
2393
+ var className = '';
2394
+ var classInterpolations = [];
2395
+ var mergedProps = props;
2396
+ if (props.theme == null) {
2397
+ mergedProps = {};
2398
+ for (var key in props) {
2399
+ mergedProps[key] = props[key];
2400
+ }
2401
+ mergedProps.theme = React__namespace.useContext(ThemeContext$1);
2402
+ }
2403
+ if (typeof props.className === 'string') {
2404
+ className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
2405
+ } else if (props.className != null) {
2406
+ className = props.className + " ";
2407
+ }
2408
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
2409
+ className += cache.key + "-" + serialized.name;
2410
+ if (targetClassName !== undefined) {
2411
+ className += " " + targetClassName;
2412
+ }
2413
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
2414
+ var newProps = {};
2415
+ for (var _key in props) {
2416
+ if (shouldUseAs && _key === 'as') continue;
2417
+ if (finalShouldForwardProp(_key)) {
2418
+ newProps[_key] = props[_key];
2419
+ }
2420
+ }
2421
+ newProps.className = className;
2422
+ if (ref) {
2423
+ newProps.ref = ref;
2424
+ }
2425
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
2426
+ cache: cache,
2427
+ serialized: serialized,
2428
+ isStringTag: typeof FinalTag === 'string'
2429
+ }), /*#__PURE__*/React__namespace.createElement(FinalTag, newProps));
2430
+ });
2431
+ Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
2432
+ Styled.defaultProps = tag.defaultProps;
2433
+ Styled.__emotion_real = Styled;
2434
+ Styled.__emotion_base = baseTag;
2435
+ Styled.__emotion_styles = styles;
2436
+ Styled.__emotion_forwardProp = shouldForwardProp;
2437
+ Object.defineProperty(Styled, 'toString', {
2438
+ value: function value() {
2439
+ if (targetClassName === undefined && isDevelopment) {
2440
+ return 'NO_COMPONENT_SELECTOR';
2441
+ }
2442
+ return "." + targetClassName;
2443
+ }
2444
+ });
2445
+ Styled.withComponent = function (nextTag, nextOptions) {
2446
+ var newStyled = createStyled(nextTag, _extends$1({}, options, nextOptions, {
2447
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2448
+ }));
2449
+ return newStyled.apply(void 0, styles);
2450
+ };
2451
+ return Styled;
2452
+ };
2453
+ };
2454
+
2455
+ 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',
2456
+ // SVG
2457
+ 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
2458
+
2459
+ // bind it to avoid mutating the original function
2460
+ var styled = createStyled.bind(null);
2461
+ tags.forEach(function (tagName) {
2462
+ styled[tagName] = styled(tagName);
2463
+ });
2464
+
418
2465
  var getTheme = function (themeType) {
419
2466
  switch (themeType) {
420
2467
  case 'B2C': {
@@ -435,36 +2482,62 @@
435
2482
  }
436
2483
  };
437
2484
 
438
- var ThemeContext = react.createContext({
2485
+ var ThemeContext = React.createContext({
439
2486
  theme: B2CTheme,
440
2487
  platform: 'mobile',
441
2488
  });
442
2489
  var ThemeProvider = function (_a) {
443
2490
  var children = _a.children, _b = _a.theme, themeType = _b === void 0 ? 'B2C' : _b, _c = _a.platform, platform = _c === void 0 ? 'mobile' : _c;
444
2491
  var theme = getTheme(themeType);
445
- return (jsxRuntime.jsx(ThemeContext.Provider, __assign({ value: { theme: theme, platform: platform } }, { children: jsxRuntime.jsx(styledComponents.ThemeProvider, __assign({ theme: theme }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: children }) })) })));
2492
+ return (jsxRuntime.jsx(ThemeContext.Provider, __assign({ value: { theme: theme, platform: platform } }, { children: jsxRuntime.jsx(ThemeProvider$1, __assign({ theme: theme }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: children }) })) })));
446
2493
  };
447
2494
  ThemeProvider.defaultProps = {
448
2495
  children: null,
449
2496
  };
450
2497
 
451
2498
  var useTheme = function () {
452
- var themeContext = react.useContext(ThemeContext);
2499
+ var themeContext = React.useContext(ThemeContext);
453
2500
  var theme = (themeContext || { theme: B2CTheme }).theme;
454
2501
  return theme;
455
2502
  };
456
2503
 
457
2504
  var useThemeContext = function () {
458
- return react.useContext(ThemeContext);
2505
+ return React.useContext(ThemeContext);
459
2506
  };
460
2507
 
2508
+ var ThemeManagerClass = (function () {
2509
+ function ThemeManagerClass() {
2510
+ if (ThemeManagerClass.instance) {
2511
+ throw new Error('You can only create one instance!');
2512
+ }
2513
+ ThemeManagerClass.instance = this;
2514
+ this.theme = B2CTheme;
2515
+ }
2516
+ ThemeManagerClass.prototype.set = function (theme) {
2517
+ switch (theme) {
2518
+ case 'B2C':
2519
+ default: {
2520
+ this.theme = B2CTheme;
2521
+ break;
2522
+ }
2523
+ }
2524
+ };
2525
+ ThemeManagerClass.prototype.get = function () {
2526
+ return this.theme;
2527
+ };
2528
+ return ThemeManagerClass;
2529
+ }());
2530
+ var ThemeManager = Object.freeze(new ThemeManagerClass());
2531
+
461
2532
  exports.B2BTheme = B2BTheme;
462
2533
  exports.B2CTheme = B2CTheme;
463
2534
  exports.BaseTheme = BaseTheme;
464
2535
  exports.FKTheme = FKTheme;
465
2536
  exports.SMTheme = SMTheme;
466
2537
  exports.ThemeContext = ThemeContext;
2538
+ exports.ThemeManager = ThemeManager;
467
2539
  exports.ThemeProvider = ThemeProvider;
2540
+ exports.getTheme = getTheme;
468
2541
  exports.useTheme = useTheme;
469
2542
  exports.useThemeContext = useThemeContext;
470
2543