@fox-dls/carousels 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
- import React, { useRef, useState } from 'react';
1
+ import React, { useContext, createElement, Fragment as Fragment$2, createContext, forwardRef, useRef, useState } from 'react';
2
+ import { Fragment as Fragment$3, jsx as jsx$1, jsxs as jsxs$1 } from 'react/jsx-runtime';
3
3
  import styled, { css } from 'styled-components';
4
4
  import SwiperCore, { Navigation, Pagination } from 'swiper';
5
5
  import { Swiper, SwiperSlide } from 'swiper/react';
@@ -48,6 +48,2352 @@ function _taggedTemplateLiteralLoose(strings, raw) {
48
48
  return strings;
49
49
  }
50
50
 
51
+ /*
52
+
53
+ Based off glamor's StyleSheet, thanks Sunil ❤️
54
+
55
+ high performance StyleSheet for css-in-js systems
56
+
57
+ - uses multiple style tags behind the scenes for millions of rules
58
+ - uses `insertRule` for appending in production for *much* faster performance
59
+
60
+ // usage
61
+
62
+ import { StyleSheet } from '@emotion/sheet'
63
+
64
+ let styleSheet = new StyleSheet({ key: '', container: document.head })
65
+
66
+ styleSheet.insert('#box { border: 1px solid red; }')
67
+ - appends a css rule into the stylesheet
68
+
69
+ styleSheet.flush()
70
+ - empties the stylesheet of all its contents
71
+
72
+ */
73
+ // $FlowFixMe
74
+ function sheetForTag(tag) {
75
+ if (tag.sheet) {
76
+ // $FlowFixMe
77
+ return tag.sheet;
78
+ } // this weirdness brought to you by firefox
79
+
80
+ /* istanbul ignore next */
81
+
82
+
83
+ for (var i = 0; i < document.styleSheets.length; i++) {
84
+ if (document.styleSheets[i].ownerNode === tag) {
85
+ // $FlowFixMe
86
+ return document.styleSheets[i];
87
+ }
88
+ }
89
+ }
90
+
91
+ function createStyleElement(options) {
92
+ var tag = document.createElement('style');
93
+ tag.setAttribute('data-emotion', options.key);
94
+
95
+ if (options.nonce !== undefined) {
96
+ tag.setAttribute('nonce', options.nonce);
97
+ }
98
+
99
+ tag.appendChild(document.createTextNode(''));
100
+ tag.setAttribute('data-s', '');
101
+ return tag;
102
+ }
103
+
104
+ var StyleSheet = /*#__PURE__*/function () {
105
+ function StyleSheet(options) {
106
+ var _this = this;
107
+
108
+ this._insertTag = function (tag) {
109
+ var before;
110
+
111
+ if (_this.tags.length === 0) {
112
+ if (_this.insertionPoint) {
113
+ before = _this.insertionPoint.nextSibling;
114
+ } else if (_this.prepend) {
115
+ before = _this.container.firstChild;
116
+ } else {
117
+ before = _this.before;
118
+ }
119
+ } else {
120
+ before = _this.tags[_this.tags.length - 1].nextSibling;
121
+ }
122
+
123
+ _this.container.insertBefore(tag, before);
124
+
125
+ _this.tags.push(tag);
126
+ };
127
+
128
+ this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;
129
+ this.tags = [];
130
+ this.ctr = 0;
131
+ this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
132
+
133
+ this.key = options.key;
134
+ this.container = options.container;
135
+ this.prepend = options.prepend;
136
+ this.insertionPoint = options.insertionPoint;
137
+ this.before = null;
138
+ }
139
+
140
+ var _proto = StyleSheet.prototype;
141
+
142
+ _proto.hydrate = function hydrate(nodes) {
143
+ nodes.forEach(this._insertTag);
144
+ };
145
+
146
+ _proto.insert = function insert(rule) {
147
+ // the max length is how many rules we have per style tag, it's 65000 in speedy mode
148
+ // it's 1 in dev because we insert source maps that map a single rule to a location
149
+ // and you can only have one source map per style tag
150
+ if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
151
+ this._insertTag(createStyleElement(this));
152
+ }
153
+
154
+ var tag = this.tags[this.tags.length - 1];
155
+
156
+ if (process.env.NODE_ENV !== 'production') {
157
+ var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
158
+
159
+ if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
160
+ // this would only cause problem in speedy mode
161
+ // but we don't want enabling speedy to affect the observable behavior
162
+ // so we report this error at all times
163
+ console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');
164
+ }
165
+
166
+ this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
167
+ }
168
+
169
+ if (this.isSpeedy) {
170
+ var sheet = sheetForTag(tag);
171
+
172
+ try {
173
+ // this is the ultrafast version, works across browsers
174
+ // the big drawback is that the css won't be editable in devtools
175
+ sheet.insertRule(rule, sheet.cssRules.length);
176
+ } catch (e) {
177
+ if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(rule)) {
178
+ console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
179
+ }
180
+ }
181
+ } else {
182
+ tag.appendChild(document.createTextNode(rule));
183
+ }
184
+
185
+ this.ctr++;
186
+ };
187
+
188
+ _proto.flush = function flush() {
189
+ // $FlowFixMe
190
+ this.tags.forEach(function (tag) {
191
+ return tag.parentNode && tag.parentNode.removeChild(tag);
192
+ });
193
+ this.tags = [];
194
+ this.ctr = 0;
195
+
196
+ if (process.env.NODE_ENV !== 'production') {
197
+ this._alreadyInsertedOrderInsensitiveRule = false;
198
+ }
199
+ };
200
+
201
+ return StyleSheet;
202
+ }();
203
+
204
+ var MS = '-ms-';
205
+ var MOZ = '-moz-';
206
+ var WEBKIT = '-webkit-';
207
+ var COMMENT = 'comm';
208
+ var RULESET = 'rule';
209
+ var DECLARATION = 'decl';
210
+ var IMPORT = '@import';
211
+ var KEYFRAMES = '@keyframes';
212
+
213
+ /**
214
+ * @param {number}
215
+ * @return {number}
216
+ */
217
+ var abs = Math.abs;
218
+ /**
219
+ * @param {number}
220
+ * @return {string}
221
+ */
222
+
223
+ var from = String.fromCharCode;
224
+ /**
225
+ * @param {string} value
226
+ * @param {number} length
227
+ * @return {number}
228
+ */
229
+
230
+ function hash(value, length) {
231
+ return (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3);
232
+ }
233
+ /**
234
+ * @param {string} value
235
+ * @return {string}
236
+ */
237
+
238
+ function trim(value) {
239
+ return value.trim();
240
+ }
241
+ /**
242
+ * @param {string} value
243
+ * @param {RegExp} pattern
244
+ * @return {string?}
245
+ */
246
+
247
+ function match(value, pattern) {
248
+ return (value = pattern.exec(value)) ? value[0] : value;
249
+ }
250
+ /**
251
+ * @param {string} value
252
+ * @param {(string|RegExp)} pattern
253
+ * @param {string} replacement
254
+ * @return {string}
255
+ */
256
+
257
+ function replace(value, pattern, replacement) {
258
+ return value.replace(pattern, replacement);
259
+ }
260
+ /**
261
+ * @param {string} value
262
+ * @param {string} value
263
+ * @return {number}
264
+ */
265
+
266
+ function indexof(value, search) {
267
+ return value.indexOf(search);
268
+ }
269
+ /**
270
+ * @param {string} value
271
+ * @param {number} index
272
+ * @return {number}
273
+ */
274
+
275
+ function charat(value, index) {
276
+ return value.charCodeAt(index) | 0;
277
+ }
278
+ /**
279
+ * @param {string} value
280
+ * @param {number} begin
281
+ * @param {number} end
282
+ * @return {string}
283
+ */
284
+
285
+ function substr(value, begin, end) {
286
+ return value.slice(begin, end);
287
+ }
288
+ /**
289
+ * @param {string} value
290
+ * @return {number}
291
+ */
292
+
293
+ function strlen(value) {
294
+ return value.length;
295
+ }
296
+ /**
297
+ * @param {any[]} value
298
+ * @return {number}
299
+ */
300
+
301
+ function sizeof(value) {
302
+ return value.length;
303
+ }
304
+ /**
305
+ * @param {any} value
306
+ * @param {any[]} array
307
+ * @return {any}
308
+ */
309
+
310
+ function append(value, array) {
311
+ return array.push(value), value;
312
+ }
313
+ /**
314
+ * @param {string[]} array
315
+ * @param {function} callback
316
+ * @return {string}
317
+ */
318
+
319
+ function combine(array, callback) {
320
+ return array.map(callback).join('');
321
+ }
322
+
323
+ var line = 1;
324
+ var column = 1;
325
+ var length = 0;
326
+ var position = 0;
327
+ var character = 0;
328
+ var characters = '';
329
+ /**
330
+ * @param {string} value
331
+ * @param {object} root
332
+ * @param {object?} parent
333
+ * @param {string} type
334
+ * @param {string[]} props
335
+ * @param {object[]} children
336
+ * @param {number} length
337
+ */
338
+
339
+ function node(value, root, parent, type, props, children, length) {
340
+ return {
341
+ value: value,
342
+ root: root,
343
+ parent: parent,
344
+ type: type,
345
+ props: props,
346
+ children: children,
347
+ line: line,
348
+ column: column,
349
+ length: length,
350
+ "return": ''
351
+ };
352
+ }
353
+ /**
354
+ * @param {string} value
355
+ * @param {object} root
356
+ * @param {string} type
357
+ */
358
+
359
+ function copy(value, root, type) {
360
+ return node(value, root.root, root.parent, type, root.props, root.children, 0);
361
+ }
362
+ /**
363
+ * @return {number}
364
+ */
365
+
366
+ function _char() {
367
+ return character;
368
+ }
369
+ function prev() {
370
+ character = position > 0 ? charat(characters, --position) : 0;
371
+ if (column--, character === 10) column = 1, line--;
372
+ return character;
373
+ }
374
+ /**
375
+ * @return {number}
376
+ */
377
+
378
+ function next() {
379
+ character = position < length ? charat(characters, position++) : 0;
380
+ if (column++, character === 10) column = 1, line++;
381
+ return character;
382
+ }
383
+ /**
384
+ * @return {number}
385
+ */
386
+
387
+ function peek() {
388
+ return charat(characters, position);
389
+ }
390
+ /**
391
+ * @return {number}
392
+ */
393
+
394
+ function caret() {
395
+ return position;
396
+ }
397
+ /**
398
+ * @param {number} begin
399
+ * @param {number} end
400
+ * @return {string}
401
+ */
402
+
403
+ function slice(begin, end) {
404
+ return substr(characters, begin, end);
405
+ }
406
+ /**
407
+ * @param {number} type
408
+ * @return {number}
409
+ */
410
+
411
+ function token(type) {
412
+ switch (type) {
413
+ // \0 \t \n \r \s whitespace token
414
+ case 0:
415
+ case 9:
416
+ case 10:
417
+ case 13:
418
+ case 32:
419
+ return 5;
420
+ // ! + , / > @ ~ isolate token
421
+
422
+ case 33:
423
+ case 43:
424
+ case 44:
425
+ case 47:
426
+ case 62:
427
+ case 64:
428
+ case 126: // ; { } breakpoint token
429
+
430
+ case 59:
431
+ case 123:
432
+ case 125:
433
+ return 4;
434
+ // : accompanied token
435
+
436
+ case 58:
437
+ return 3;
438
+ // " ' ( [ opening delimit token
439
+
440
+ case 34:
441
+ case 39:
442
+ case 40:
443
+ case 91:
444
+ return 2;
445
+ // ) ] closing delimit token
446
+
447
+ case 41:
448
+ case 93:
449
+ return 1;
450
+ }
451
+
452
+ return 0;
453
+ }
454
+ /**
455
+ * @param {string} value
456
+ * @return {any[]}
457
+ */
458
+
459
+ function alloc(value) {
460
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
461
+ }
462
+ /**
463
+ * @param {any} value
464
+ * @return {any}
465
+ */
466
+
467
+ function dealloc(value) {
468
+ return characters = '', value;
469
+ }
470
+ /**
471
+ * @param {number} type
472
+ * @return {string}
473
+ */
474
+
475
+ function delimit(type) {
476
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
477
+ }
478
+ /**
479
+ * @param {number} type
480
+ * @return {string}
481
+ */
482
+
483
+ function whitespace(type) {
484
+ while (character = peek()) {
485
+ if (character < 33) next();else break;
486
+ }
487
+
488
+ return token(type) > 2 || token(character) > 3 ? '' : ' ';
489
+ }
490
+ /**
491
+ * @param {number} index
492
+ * @param {number} count
493
+ * @return {string}
494
+ */
495
+
496
+ function escaping(index, count) {
497
+ while (--count && next()) {
498
+ // not 0-9 A-F a-f
499
+ if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
500
+ }
501
+
502
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
503
+ }
504
+ /**
505
+ * @param {number} type
506
+ * @return {number}
507
+ */
508
+
509
+ function delimiter(type) {
510
+ while (next()) {
511
+ switch (character) {
512
+ // ] ) " '
513
+ case type:
514
+ return position;
515
+ // " '
516
+
517
+ case 34:
518
+ case 39:
519
+ return delimiter(type === 34 || type === 39 ? type : character);
520
+ // (
521
+
522
+ case 40:
523
+ if (type === 41) delimiter(type);
524
+ break;
525
+ // \
526
+
527
+ case 92:
528
+ next();
529
+ break;
530
+ }
531
+ }
532
+
533
+ return position;
534
+ }
535
+ /**
536
+ * @param {number} type
537
+ * @param {number} index
538
+ * @return {number}
539
+ */
540
+
541
+ function commenter(type, index) {
542
+ while (next()) {
543
+ // //
544
+ if (type + character === 47 + 10) break; // /*
545
+ else if (type + character === 42 + 42 && peek() === 47) break;
546
+ }
547
+
548
+ return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next());
549
+ }
550
+ /**
551
+ * @param {number} index
552
+ * @return {string}
553
+ */
554
+
555
+ function identifier(index) {
556
+ while (!token(peek())) {
557
+ next();
558
+ }
559
+
560
+ return slice(index, position);
561
+ }
562
+
563
+ /**
564
+ * @param {string} value
565
+ * @return {object[]}
566
+ */
567
+
568
+ function compile(value) {
569
+ return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value));
570
+ }
571
+ /**
572
+ * @param {string} value
573
+ * @param {object} root
574
+ * @param {object?} parent
575
+ * @param {string[]} rule
576
+ * @param {string[]} rules
577
+ * @param {string[]} rulesets
578
+ * @param {number[]} pseudo
579
+ * @param {number[]} points
580
+ * @param {string[]} declarations
581
+ * @return {object}
582
+ */
583
+
584
+ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
585
+ var index = 0;
586
+ var offset = 0;
587
+ var length = pseudo;
588
+ var atrule = 0;
589
+ var property = 0;
590
+ var previous = 0;
591
+ var variable = 1;
592
+ var scanning = 1;
593
+ var ampersand = 1;
594
+ var character = 0;
595
+ var type = '';
596
+ var props = rules;
597
+ var children = rulesets;
598
+ var reference = rule;
599
+ var characters = type;
600
+
601
+ while (scanning) {
602
+ switch (previous = character, character = next()) {
603
+ // " ' [ (
604
+ case 34:
605
+ case 39:
606
+ case 91:
607
+ case 40:
608
+ characters += delimit(character);
609
+ break;
610
+ // \t \n \r \s
611
+
612
+ case 9:
613
+ case 10:
614
+ case 13:
615
+ case 32:
616
+ characters += whitespace(previous);
617
+ break;
618
+ // \
619
+
620
+ case 92:
621
+ characters += escaping(caret() - 1, 7);
622
+ continue;
623
+ // /
624
+
625
+ case 47:
626
+ switch (peek()) {
627
+ case 42:
628
+ case 47:
629
+ append(comment(commenter(next(), caret()), root, parent), declarations);
630
+ break;
631
+
632
+ default:
633
+ characters += '/';
634
+ }
635
+
636
+ break;
637
+ // {
638
+
639
+ case 123 * variable:
640
+ points[index++] = strlen(characters) * ampersand;
641
+ // } ; \0
642
+
643
+ case 125 * variable:
644
+ case 59:
645
+ case 0:
646
+ switch (character) {
647
+ // \0 }
648
+ case 0:
649
+ case 125:
650
+ scanning = 0;
651
+ // ;
652
+
653
+ case 59 + offset:
654
+ if (property > 0 && strlen(characters) - length) append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
655
+ break;
656
+ // @ ;
657
+
658
+ case 59:
659
+ characters += ';';
660
+ // { rule/at-rule
661
+
662
+ default:
663
+ append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets);
664
+ if (character === 123) if (offset === 0) parse(characters, root, reference, reference, props, rulesets, length, points, children);else switch (atrule) {
665
+ // d m s
666
+ case 100:
667
+ case 109:
668
+ case 115:
669
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
670
+ break;
671
+
672
+ default:
673
+ parse(characters, reference, reference, reference, [''], children, length, points, children);
674
+ }
675
+ }
676
+
677
+ index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
678
+ break;
679
+ // :
680
+
681
+ case 58:
682
+ length = 1 + strlen(characters), property = previous;
683
+
684
+ default:
685
+ if (variable < 1) if (character == 123) --variable;else if (character == 125 && variable++ == 0 && prev() == 125) continue;
686
+
687
+ switch (characters += from(character), character * variable) {
688
+ // &
689
+ case 38:
690
+ ampersand = offset > 0 ? 1 : (characters += '\f', -1);
691
+ break;
692
+ // ,
693
+
694
+ case 44:
695
+ points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
696
+ break;
697
+ // @
698
+
699
+ case 64:
700
+ // -
701
+ if (peek() === 45) characters += delimit(next());
702
+ atrule = peek(), offset = strlen(type = characters += identifier(caret())), character++;
703
+ break;
704
+ // -
705
+
706
+ case 45:
707
+ if (previous === 45 && strlen(characters) == 2) variable = 0;
708
+ }
709
+
710
+ }
711
+ }
712
+
713
+ return rulesets;
714
+ }
715
+ /**
716
+ * @param {string} value
717
+ * @param {object} root
718
+ * @param {object?} parent
719
+ * @param {number} index
720
+ * @param {number} offset
721
+ * @param {string[]} rules
722
+ * @param {number[]} points
723
+ * @param {string} type
724
+ * @param {string[]} props
725
+ * @param {string[]} children
726
+ * @param {number} length
727
+ * @return {object}
728
+ */
729
+
730
+ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length) {
731
+ var post = offset - 1;
732
+ var rule = offset === 0 ? rules : [''];
733
+ var size = sizeof(rule);
734
+
735
+ for (var i = 0, j = 0, k = 0; i < index; ++i) {
736
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) {
737
+ if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x]))) props[k++] = z;
738
+ }
739
+ }
740
+
741
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length);
742
+ }
743
+ /**
744
+ * @param {number} value
745
+ * @param {object} root
746
+ * @param {object?} parent
747
+ * @return {object}
748
+ */
749
+
750
+ function comment(value, root, parent) {
751
+ return node(value, root, parent, COMMENT, from(_char()), substr(value, 2, -2), 0);
752
+ }
753
+ /**
754
+ * @param {string} value
755
+ * @param {object} root
756
+ * @param {object?} parent
757
+ * @param {number} length
758
+ * @return {object}
759
+ */
760
+
761
+ function declaration(value, root, parent, length) {
762
+ return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length);
763
+ }
764
+
765
+ /**
766
+ * @param {string} value
767
+ * @param {number} length
768
+ * @return {string}
769
+ */
770
+
771
+ function prefix(value, length) {
772
+ switch (hash(value, length)) {
773
+ // color-adjust
774
+ case 5103:
775
+ return WEBKIT + 'print-' + value + value;
776
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
777
+
778
+ case 5737:
779
+ case 4201:
780
+ case 3177:
781
+ case 3433:
782
+ case 1641:
783
+ case 4457:
784
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
785
+
786
+ case 5572:
787
+ case 6356:
788
+ case 5844:
789
+ case 3191:
790
+ case 6645:
791
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
792
+
793
+ case 6391:
794
+ case 5879:
795
+ case 5623:
796
+ case 6135:
797
+ case 4599:
798
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
799
+
800
+ case 4215:
801
+ case 6389:
802
+ case 5109:
803
+ case 5365:
804
+ case 5621:
805
+ case 3829:
806
+ return WEBKIT + value + value;
807
+ // appearance, user-select, transform, hyphens, text-size-adjust
808
+
809
+ case 5349:
810
+ case 4246:
811
+ case 4810:
812
+ case 6968:
813
+ case 2756:
814
+ return WEBKIT + value + MOZ + value + MS + value + value;
815
+ // flex, flex-direction
816
+
817
+ case 6828:
818
+ case 4268:
819
+ return WEBKIT + value + MS + value + value;
820
+ // order
821
+
822
+ case 6165:
823
+ return WEBKIT + value + MS + 'flex-' + value + value;
824
+ // align-items
825
+
826
+ case 5187:
827
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
828
+ // align-self
829
+
830
+ case 5443:
831
+ return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
832
+ // align-content
833
+
834
+ case 4675:
835
+ return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
836
+ // flex-shrink
837
+
838
+ case 5548:
839
+ return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
840
+ // flex-basis
841
+
842
+ case 5292:
843
+ return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
844
+ // flex-grow
845
+
846
+ case 6060:
847
+ return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
848
+ // transition
849
+
850
+ case 4554:
851
+ return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
852
+ // cursor
853
+
854
+ case 6187:
855
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
856
+ // background, background-image
857
+
858
+ case 5495:
859
+ case 3959:
860
+ return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
861
+ // justify-content
862
+
863
+ case 4968:
864
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
865
+ // (margin|padding)-inline-(start|end)
866
+
867
+ case 4095:
868
+ case 3583:
869
+ case 4068:
870
+ case 2532:
871
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
872
+ // (min|max)?(width|height|inline-size|block-size)
873
+
874
+ case 8116:
875
+ case 7059:
876
+ case 5753:
877
+ case 5535:
878
+ case 5445:
879
+ case 5701:
880
+ case 4933:
881
+ case 4677:
882
+ case 5533:
883
+ case 5789:
884
+ case 5021:
885
+ case 4765:
886
+ // stretch, max-content, min-content, fill-available
887
+ if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
888
+ // (m)ax-content, (m)in-content
889
+ case 109:
890
+ // -
891
+ if (charat(value, length + 4) !== 45) break;
892
+ // (f)ill-available, (f)it-content
893
+
894
+ case 102:
895
+ return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
896
+ // (s)tretch
897
+
898
+ case 115:
899
+ return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
900
+ }
901
+ break;
902
+ // position: sticky
903
+
904
+ case 4949:
905
+ // (s)ticky?
906
+ if (charat(value, length + 1) !== 115) break;
907
+ // display: (flex|inline-flex)
908
+
909
+ case 6444:
910
+ switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
911
+ // stic(k)y
912
+ case 107:
913
+ return replace(value, ':', ':' + WEBKIT) + value;
914
+ // (inline-)?fl(e)x
915
+
916
+ case 101:
917
+ return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
918
+ }
919
+
920
+ break;
921
+ // writing-mode
922
+
923
+ case 5936:
924
+ switch (charat(value, length + 11)) {
925
+ // vertical-l(r)
926
+ case 114:
927
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
928
+ // vertical-r(l)
929
+
930
+ case 108:
931
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
932
+ // horizontal(-)tb
933
+
934
+ case 45:
935
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
936
+ }
937
+
938
+ return WEBKIT + value + MS + value + value;
939
+ }
940
+
941
+ return value;
942
+ }
943
+
944
+ /**
945
+ * @param {object[]} children
946
+ * @param {function} callback
947
+ * @return {string}
948
+ */
949
+
950
+ function serialize(children, callback) {
951
+ var output = '';
952
+ var length = sizeof(children);
953
+
954
+ for (var i = 0; i < length; i++) {
955
+ output += callback(children[i], i, children, callback) || '';
956
+ }
957
+
958
+ return output;
959
+ }
960
+ /**
961
+ * @param {object} element
962
+ * @param {number} index
963
+ * @param {object[]} children
964
+ * @param {function} callback
965
+ * @return {string}
966
+ */
967
+
968
+ function stringify(element, index, children, callback) {
969
+ switch (element.type) {
970
+ case IMPORT:
971
+ case DECLARATION:
972
+ return element["return"] = element["return"] || element.value;
973
+
974
+ case COMMENT:
975
+ return '';
976
+
977
+ case RULESET:
978
+ element.value = element.props.join(',');
979
+ }
980
+
981
+ return strlen(children = serialize(element.children, callback)) ? element["return"] = element.value + '{' + children + '}' : '';
982
+ }
983
+
984
+ /**
985
+ * @param {function[]} collection
986
+ * @return {function}
987
+ */
988
+
989
+ function middleware(collection) {
990
+ var length = sizeof(collection);
991
+ return function (element, index, children, callback) {
992
+ var output = '';
993
+
994
+ for (var i = 0; i < length; i++) {
995
+ output += collection[i](element, index, children, callback) || '';
996
+ }
997
+
998
+ return output;
999
+ };
1000
+ }
1001
+ /**
1002
+ * @param {function} callback
1003
+ * @return {function}
1004
+ */
1005
+
1006
+ function rulesheet(callback) {
1007
+ return function (element) {
1008
+ if (!element.root) if (element = element["return"]) callback(element);
1009
+ };
1010
+ }
1011
+ /**
1012
+ * @param {object} element
1013
+ * @param {number} index
1014
+ * @param {object[]} children
1015
+ * @param {function} callback
1016
+ */
1017
+
1018
+ function prefixer(element, index, children, callback) {
1019
+ if (!element["return"]) switch (element.type) {
1020
+ case DECLARATION:
1021
+ element["return"] = prefix(element.value, element.length);
1022
+ break;
1023
+
1024
+ case KEYFRAMES:
1025
+ return serialize([copy(replace(element.value, '@', '@' + WEBKIT), element, '')], callback);
1026
+
1027
+ case RULESET:
1028
+ if (element.length) return combine(element.props, function (value) {
1029
+ switch (match(value, /(::plac\w+|:read-\w+)/)) {
1030
+ // :read-(only|write)
1031
+ case ':read-only':
1032
+ case ':read-write':
1033
+ return serialize([copy(replace(value, /:(read-\w+)/, ':' + MOZ + '$1'), element, '')], callback);
1034
+ // :placeholder
1035
+
1036
+ case '::placeholder':
1037
+ return serialize([copy(replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1'), element, ''), copy(replace(value, /:(plac\w+)/, ':' + MOZ + '$1'), element, ''), copy(replace(value, /:(plac\w+)/, MS + 'input-$1'), element, '')], callback);
1038
+ }
1039
+
1040
+ return '';
1041
+ });
1042
+ }
1043
+ }
1044
+
1045
+ var last = function last(arr) {
1046
+ return arr.length ? arr[arr.length - 1] : null;
1047
+ }; // based on https://github.com/thysultan/stylis.js/blob/e6843c373ebcbbfade25ebcc23f540ed8508da0a/src/Tokenizer.js#L239-L244
1048
+
1049
+
1050
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
1051
+ var previous = 0;
1052
+ var character = 0;
1053
+
1054
+ while (true) {
1055
+ previous = character;
1056
+ character = peek(); // &\f
1057
+
1058
+ if (previous === 38 && character === 12) {
1059
+ points[index] = 1;
1060
+ }
1061
+
1062
+ if (token(character)) {
1063
+ break;
1064
+ }
1065
+
1066
+ next();
1067
+ }
1068
+
1069
+ return slice(begin, position);
1070
+ };
1071
+
1072
+ var toRules = function toRules(parsed, points) {
1073
+ // pretend we've started with a comma
1074
+ var index = -1;
1075
+ var character = 44;
1076
+
1077
+ do {
1078
+ switch (token(character)) {
1079
+ case 0:
1080
+ // &\f
1081
+ if (character === 38 && peek() === 12) {
1082
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
1083
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
1084
+ // and when it should just concatenate the outer and inner selectors
1085
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
1086
+ points[index] = 1;
1087
+ }
1088
+
1089
+ parsed[index] += identifierWithPointTracking(position - 1, points, index);
1090
+ break;
1091
+
1092
+ case 2:
1093
+ parsed[index] += delimit(character);
1094
+ break;
1095
+
1096
+ case 4:
1097
+ // comma
1098
+ if (character === 44) {
1099
+ // colon
1100
+ parsed[++index] = peek() === 58 ? '&\f' : '';
1101
+ points[index] = parsed[index].length;
1102
+ break;
1103
+ }
1104
+
1105
+ // fallthrough
1106
+
1107
+ default:
1108
+ parsed[index] += from(character);
1109
+ }
1110
+ } while (character = next());
1111
+
1112
+ return parsed;
1113
+ };
1114
+
1115
+ var getRules = function getRules(value, points) {
1116
+ return dealloc(toRules(alloc(value), points));
1117
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
1118
+
1119
+
1120
+ var fixedElements = /* #__PURE__ */new WeakMap();
1121
+
1122
+ var compat = function compat(element) {
1123
+ if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not
1124
+ !element.length) {
1125
+ return;
1126
+ }
1127
+
1128
+ var value = element.value,
1129
+ parent = element.parent;
1130
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
1131
+
1132
+ while (parent.type !== 'rule') {
1133
+ parent = parent.parent;
1134
+ if (!parent) return;
1135
+ } // short-circuit for the simplest case
1136
+
1137
+
1138
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
1139
+ /* colon */
1140
+ && !fixedElements.get(parent)) {
1141
+ return;
1142
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
1143
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
1144
+
1145
+
1146
+ if (isImplicitRule) {
1147
+ return;
1148
+ }
1149
+
1150
+ fixedElements.set(element, true);
1151
+ var points = [];
1152
+ var rules = getRules(value, points);
1153
+ var parentRules = parent.props;
1154
+
1155
+ for (var i = 0, k = 0; i < rules.length; i++) {
1156
+ for (var j = 0; j < parentRules.length; j++, k++) {
1157
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1158
+ }
1159
+ }
1160
+ };
1161
+
1162
+ var removeLabel = function removeLabel(element) {
1163
+ if (element.type === 'decl') {
1164
+ var value = element.value;
1165
+
1166
+ if ( // charcode for l
1167
+ value.charCodeAt(0) === 108 && // charcode for b
1168
+ value.charCodeAt(2) === 98) {
1169
+ // this ignores label
1170
+ element["return"] = '';
1171
+ element.value = '';
1172
+ }
1173
+ }
1174
+ };
1175
+
1176
+ var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
1177
+
1178
+ var isIgnoringComment = function isIgnoringComment(element) {
1179
+ return !!element && element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
1180
+ };
1181
+
1182
+ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
1183
+ return function (element, index, children) {
1184
+ if (element.type !== 'rule') return;
1185
+ var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
1186
+
1187
+ if (unsafePseudoClasses && cache.compat !== true) {
1188
+ var prevElement = index > 0 ? children[index - 1] : null;
1189
+
1190
+ if (prevElement && isIgnoringComment(last(prevElement.children))) {
1191
+ return;
1192
+ }
1193
+
1194
+ unsafePseudoClasses.forEach(function (unsafePseudoClass) {
1195
+ console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
1196
+ });
1197
+ }
1198
+ };
1199
+ };
1200
+
1201
+ var isImportRule = function isImportRule(element) {
1202
+ return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
1203
+ };
1204
+
1205
+ var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
1206
+ for (var i = index - 1; i >= 0; i--) {
1207
+ if (!isImportRule(children[i])) {
1208
+ return true;
1209
+ }
1210
+ }
1211
+
1212
+ return false;
1213
+ }; // use this to remove incorrect elements from further processing
1214
+ // so they don't get handed to the `sheet` (or anything else)
1215
+ // as that could potentially lead to additional logs which in turn could be overhelming to the user
1216
+
1217
+
1218
+ var nullifyElement = function nullifyElement(element) {
1219
+ element.type = '';
1220
+ element.value = '';
1221
+ element["return"] = '';
1222
+ element.children = '';
1223
+ element.props = '';
1224
+ };
1225
+
1226
+ var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
1227
+ if (!isImportRule(element)) {
1228
+ return;
1229
+ }
1230
+
1231
+ if (element.parent) {
1232
+ console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
1233
+ nullifyElement(element);
1234
+ } else if (isPrependedWithRegularRules(index, children)) {
1235
+ console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
1236
+ nullifyElement(element);
1237
+ }
1238
+ };
1239
+
1240
+ var defaultStylisPlugins = [prefixer];
1241
+
1242
+ var createCache = function createCache(options) {
1243
+ var key = options.key;
1244
+
1245
+ if (process.env.NODE_ENV !== 'production' && !key) {
1246
+ throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
1247
+ }
1248
+
1249
+ if (key === 'css') {
1250
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1251
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1252
+ // note this very very intentionally targets all style elements regardless of the key to ensure
1253
+ // that creating a cache works inside of render of a React component
1254
+
1255
+ Array.prototype.forEach.call(ssrStyles, function (node) {
1256
+ // we want to only move elements which have a space in the data-emotion attribute value
1257
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
1258
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
1259
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
1260
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
1261
+ // will not result in the Emotion 10 styles being destroyed
1262
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
1263
+
1264
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
1265
+ return;
1266
+ }
1267
+
1268
+ document.head.appendChild(node);
1269
+ node.setAttribute('data-s', '');
1270
+ });
1271
+ }
1272
+
1273
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1274
+
1275
+ if (process.env.NODE_ENV !== 'production') {
1276
+ // $FlowFixMe
1277
+ if (/[^a-z-]/.test(key)) {
1278
+ throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
1279
+ }
1280
+ }
1281
+
1282
+ var inserted = {}; // $FlowFixMe
1283
+
1284
+ var container;
1285
+ var nodesToHydrate = [];
1286
+ {
1287
+ container = options.container || document.head;
1288
+ Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
1289
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1290
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
1291
+ var attrib = node.getAttribute("data-emotion").split(' '); // $FlowFixMe
1292
+
1293
+ for (var i = 1; i < attrib.length; i++) {
1294
+ inserted[attrib[i]] = true;
1295
+ }
1296
+
1297
+ nodesToHydrate.push(node);
1298
+ });
1299
+ }
1300
+
1301
+ var _insert;
1302
+
1303
+ var omnipresentPlugins = [compat, removeLabel];
1304
+
1305
+ if (process.env.NODE_ENV !== 'production') {
1306
+ omnipresentPlugins.push(createUnsafeSelectorsAlarm({
1307
+ get compat() {
1308
+ return cache.compat;
1309
+ }
1310
+
1311
+ }), incorrectImportAlarm);
1312
+ }
1313
+
1314
+ {
1315
+ var currentSheet;
1316
+ var finalizingPlugins = [stringify, process.env.NODE_ENV !== 'production' ? function (element) {
1317
+ if (!element.root) {
1318
+ if (element["return"]) {
1319
+ currentSheet.insert(element["return"]);
1320
+ } else if (element.value && element.type !== COMMENT) {
1321
+ // insert empty rule in non-production environments
1322
+ // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
1323
+ currentSheet.insert(element.value + "{}");
1324
+ }
1325
+ }
1326
+ } : rulesheet(function (rule) {
1327
+ currentSheet.insert(rule);
1328
+ })];
1329
+ var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1330
+
1331
+ var stylis = function stylis(styles) {
1332
+ return serialize(compile(styles), serializer);
1333
+ };
1334
+
1335
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1336
+ currentSheet = sheet;
1337
+
1338
+ if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
1339
+ currentSheet = {
1340
+ insert: function insert(rule) {
1341
+ sheet.insert(rule + serialized.map);
1342
+ }
1343
+ };
1344
+ }
1345
+
1346
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1347
+
1348
+ if (shouldCache) {
1349
+ cache.inserted[serialized.name] = true;
1350
+ }
1351
+ };
1352
+ }
1353
+ var cache = {
1354
+ key: key,
1355
+ sheet: new StyleSheet({
1356
+ key: key,
1357
+ container: container,
1358
+ nonce: options.nonce,
1359
+ speedy: options.speedy,
1360
+ prepend: options.prepend,
1361
+ insertionPoint: options.insertionPoint
1362
+ }),
1363
+ nonce: options.nonce,
1364
+ inserted: inserted,
1365
+ registered: {},
1366
+ insert: _insert
1367
+ };
1368
+ cache.sheet.hydrate(nodesToHydrate);
1369
+ return cache;
1370
+ };
1371
+
1372
+ function createCommonjsModule(fn) {
1373
+ var module = { exports: {} };
1374
+ return fn(module, module.exports), module.exports;
1375
+ }
1376
+
1377
+ /** @license React v16.13.1
1378
+ * react-is.production.min.js
1379
+ *
1380
+ * Copyright (c) Facebook, Inc. and its affiliates.
1381
+ *
1382
+ * This source code is licensed under the MIT license found in the
1383
+ * LICENSE file in the root directory of this source tree.
1384
+ */
1385
+
1386
+ var b = "function" === typeof Symbol && Symbol["for"],
1387
+ c = b ? Symbol["for"]("react.element") : 60103,
1388
+ d = b ? Symbol["for"]("react.portal") : 60106,
1389
+ e = b ? Symbol["for"]("react.fragment") : 60107,
1390
+ f = b ? Symbol["for"]("react.strict_mode") : 60108,
1391
+ g = b ? Symbol["for"]("react.profiler") : 60114,
1392
+ h = b ? Symbol["for"]("react.provider") : 60109,
1393
+ k = b ? Symbol["for"]("react.context") : 60110,
1394
+ l = b ? Symbol["for"]("react.async_mode") : 60111,
1395
+ m = b ? Symbol["for"]("react.concurrent_mode") : 60111,
1396
+ n = b ? Symbol["for"]("react.forward_ref") : 60112,
1397
+ p = b ? Symbol["for"]("react.suspense") : 60113,
1398
+ q = b ? Symbol["for"]("react.suspense_list") : 60120,
1399
+ r = b ? Symbol["for"]("react.memo") : 60115,
1400
+ t = b ? Symbol["for"]("react.lazy") : 60116,
1401
+ v = b ? Symbol["for"]("react.block") : 60121,
1402
+ w = b ? Symbol["for"]("react.fundamental") : 60117,
1403
+ x = b ? Symbol["for"]("react.responder") : 60118,
1404
+ y = b ? Symbol["for"]("react.scope") : 60119;
1405
+
1406
+ function z(a) {
1407
+ if ("object" === typeof a && null !== a) {
1408
+ var u = a.$$typeof;
1409
+
1410
+ switch (u) {
1411
+ case c:
1412
+ switch (a = a.type, a) {
1413
+ case l:
1414
+ case m:
1415
+ case e:
1416
+ case g:
1417
+ case f:
1418
+ case p:
1419
+ return a;
1420
+
1421
+ default:
1422
+ switch (a = a && a.$$typeof, a) {
1423
+ case k:
1424
+ case n:
1425
+ case t:
1426
+ case r:
1427
+ case h:
1428
+ return a;
1429
+
1430
+ default:
1431
+ return u;
1432
+ }
1433
+
1434
+ }
1435
+
1436
+ case d:
1437
+ return u;
1438
+ }
1439
+ }
1440
+ }
1441
+
1442
+ function A(a) {
1443
+ return z(a) === m;
1444
+ }
1445
+
1446
+ var AsyncMode = l;
1447
+ var ConcurrentMode = m;
1448
+ var ContextConsumer = k;
1449
+ var ContextProvider = h;
1450
+ var Element = c;
1451
+ var ForwardRef = n;
1452
+ var Fragment$1 = e;
1453
+ var Lazy = t;
1454
+ var Memo = r;
1455
+ var Portal = d;
1456
+ var Profiler = g;
1457
+ var StrictMode = f;
1458
+ var Suspense = p;
1459
+
1460
+ var isAsyncMode = function isAsyncMode(a) {
1461
+ return A(a) || z(a) === l;
1462
+ };
1463
+
1464
+ var isConcurrentMode = A;
1465
+
1466
+ var isContextConsumer = function isContextConsumer(a) {
1467
+ return z(a) === k;
1468
+ };
1469
+
1470
+ var isContextProvider = function isContextProvider(a) {
1471
+ return z(a) === h;
1472
+ };
1473
+
1474
+ var isElement = function isElement(a) {
1475
+ return "object" === typeof a && null !== a && a.$$typeof === c;
1476
+ };
1477
+
1478
+ var isForwardRef = function isForwardRef(a) {
1479
+ return z(a) === n;
1480
+ };
1481
+
1482
+ var isFragment = function isFragment(a) {
1483
+ return z(a) === e;
1484
+ };
1485
+
1486
+ var isLazy = function isLazy(a) {
1487
+ return z(a) === t;
1488
+ };
1489
+
1490
+ var isMemo = function isMemo(a) {
1491
+ return z(a) === r;
1492
+ };
1493
+
1494
+ var isPortal = function isPortal(a) {
1495
+ return z(a) === d;
1496
+ };
1497
+
1498
+ var isProfiler = function isProfiler(a) {
1499
+ return z(a) === g;
1500
+ };
1501
+
1502
+ var isStrictMode = function isStrictMode(a) {
1503
+ return z(a) === f;
1504
+ };
1505
+
1506
+ var isSuspense = function isSuspense(a) {
1507
+ return z(a) === p;
1508
+ };
1509
+
1510
+ var isValidElementType = function isValidElementType(a) {
1511
+ 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);
1512
+ };
1513
+
1514
+ var typeOf = z;
1515
+ var reactIs_production_min = {
1516
+ AsyncMode: AsyncMode,
1517
+ ConcurrentMode: ConcurrentMode,
1518
+ ContextConsumer: ContextConsumer,
1519
+ ContextProvider: ContextProvider,
1520
+ Element: Element,
1521
+ ForwardRef: ForwardRef,
1522
+ Fragment: Fragment$1,
1523
+ Lazy: Lazy,
1524
+ Memo: Memo,
1525
+ Portal: Portal,
1526
+ Profiler: Profiler,
1527
+ StrictMode: StrictMode,
1528
+ Suspense: Suspense,
1529
+ isAsyncMode: isAsyncMode,
1530
+ isConcurrentMode: isConcurrentMode,
1531
+ isContextConsumer: isContextConsumer,
1532
+ isContextProvider: isContextProvider,
1533
+ isElement: isElement,
1534
+ isForwardRef: isForwardRef,
1535
+ isFragment: isFragment,
1536
+ isLazy: isLazy,
1537
+ isMemo: isMemo,
1538
+ isPortal: isPortal,
1539
+ isProfiler: isProfiler,
1540
+ isStrictMode: isStrictMode,
1541
+ isSuspense: isSuspense,
1542
+ isValidElementType: isValidElementType,
1543
+ typeOf: typeOf
1544
+ };
1545
+
1546
+ /** @license React v16.13.1
1547
+ * react-is.development.js
1548
+ *
1549
+ * Copyright (c) Facebook, Inc. and its affiliates.
1550
+ *
1551
+ * This source code is licensed under the MIT license found in the
1552
+ * LICENSE file in the root directory of this source tree.
1553
+ */
1554
+ var reactIs_development = createCommonjsModule(function (module, exports) {
1555
+
1556
+ if (process.env.NODE_ENV !== "production") {
1557
+ (function () {
1558
+ // nor polyfill, then a plain number is used for performance.
1559
+
1560
+ var hasSymbol = typeof Symbol === 'function' && Symbol["for"];
1561
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol["for"]('react.element') : 0xeac7;
1562
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol["for"]('react.portal') : 0xeaca;
1563
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol["for"]('react.fragment') : 0xeacb;
1564
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol["for"]('react.strict_mode') : 0xeacc;
1565
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol["for"]('react.profiler') : 0xead2;
1566
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol["for"]('react.provider') : 0xeacd;
1567
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol["for"]('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1568
+ // (unstable) APIs that have been removed. Can we remove the symbols?
1569
+
1570
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol["for"]('react.async_mode') : 0xeacf;
1571
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol["for"]('react.concurrent_mode') : 0xeacf;
1572
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol["for"]('react.forward_ref') : 0xead0;
1573
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol["for"]('react.suspense') : 0xead1;
1574
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol["for"]('react.suspense_list') : 0xead8;
1575
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol["for"]('react.memo') : 0xead3;
1576
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol["for"]('react.lazy') : 0xead4;
1577
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol["for"]('react.block') : 0xead9;
1578
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol["for"]('react.fundamental') : 0xead5;
1579
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol["for"]('react.responder') : 0xead6;
1580
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol["for"]('react.scope') : 0xead7;
1581
+
1582
+ function isValidElementType(type) {
1583
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1584
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1585
+ }
1586
+
1587
+ function typeOf(object) {
1588
+ if (typeof object === 'object' && object !== null) {
1589
+ var $$typeof = object.$$typeof;
1590
+
1591
+ switch ($$typeof) {
1592
+ case REACT_ELEMENT_TYPE:
1593
+ var type = object.type;
1594
+
1595
+ switch (type) {
1596
+ case REACT_ASYNC_MODE_TYPE:
1597
+ case REACT_CONCURRENT_MODE_TYPE:
1598
+ case REACT_FRAGMENT_TYPE:
1599
+ case REACT_PROFILER_TYPE:
1600
+ case REACT_STRICT_MODE_TYPE:
1601
+ case REACT_SUSPENSE_TYPE:
1602
+ return type;
1603
+
1604
+ default:
1605
+ var $$typeofType = type && type.$$typeof;
1606
+
1607
+ switch ($$typeofType) {
1608
+ case REACT_CONTEXT_TYPE:
1609
+ case REACT_FORWARD_REF_TYPE:
1610
+ case REACT_LAZY_TYPE:
1611
+ case REACT_MEMO_TYPE:
1612
+ case REACT_PROVIDER_TYPE:
1613
+ return $$typeofType;
1614
+
1615
+ default:
1616
+ return $$typeof;
1617
+ }
1618
+
1619
+ }
1620
+
1621
+ case REACT_PORTAL_TYPE:
1622
+ return $$typeof;
1623
+ }
1624
+ }
1625
+
1626
+ return undefined;
1627
+ } // AsyncMode is deprecated along with isAsyncMode
1628
+
1629
+
1630
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
1631
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1632
+ var ContextConsumer = REACT_CONTEXT_TYPE;
1633
+ var ContextProvider = REACT_PROVIDER_TYPE;
1634
+ var Element = REACT_ELEMENT_TYPE;
1635
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
1636
+ var Fragment = REACT_FRAGMENT_TYPE;
1637
+ var Lazy = REACT_LAZY_TYPE;
1638
+ var Memo = REACT_MEMO_TYPE;
1639
+ var Portal = REACT_PORTAL_TYPE;
1640
+ var Profiler = REACT_PROFILER_TYPE;
1641
+ var StrictMode = REACT_STRICT_MODE_TYPE;
1642
+ var Suspense = REACT_SUSPENSE_TYPE;
1643
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1644
+
1645
+ function isAsyncMode(object) {
1646
+ {
1647
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1648
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1649
+
1650
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1651
+ }
1652
+ }
1653
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1654
+ }
1655
+
1656
+ function isConcurrentMode(object) {
1657
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1658
+ }
1659
+
1660
+ function isContextConsumer(object) {
1661
+ return typeOf(object) === REACT_CONTEXT_TYPE;
1662
+ }
1663
+
1664
+ function isContextProvider(object) {
1665
+ return typeOf(object) === REACT_PROVIDER_TYPE;
1666
+ }
1667
+
1668
+ function isElement(object) {
1669
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1670
+ }
1671
+
1672
+ function isForwardRef(object) {
1673
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
1674
+ }
1675
+
1676
+ function isFragment(object) {
1677
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
1678
+ }
1679
+
1680
+ function isLazy(object) {
1681
+ return typeOf(object) === REACT_LAZY_TYPE;
1682
+ }
1683
+
1684
+ function isMemo(object) {
1685
+ return typeOf(object) === REACT_MEMO_TYPE;
1686
+ }
1687
+
1688
+ function isPortal(object) {
1689
+ return typeOf(object) === REACT_PORTAL_TYPE;
1690
+ }
1691
+
1692
+ function isProfiler(object) {
1693
+ return typeOf(object) === REACT_PROFILER_TYPE;
1694
+ }
1695
+
1696
+ function isStrictMode(object) {
1697
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
1698
+ }
1699
+
1700
+ function isSuspense(object) {
1701
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
1702
+ }
1703
+
1704
+ exports.AsyncMode = AsyncMode;
1705
+ exports.ConcurrentMode = ConcurrentMode;
1706
+ exports.ContextConsumer = ContextConsumer;
1707
+ exports.ContextProvider = ContextProvider;
1708
+ exports.Element = Element;
1709
+ exports.ForwardRef = ForwardRef;
1710
+ exports.Fragment = Fragment;
1711
+ exports.Lazy = Lazy;
1712
+ exports.Memo = Memo;
1713
+ exports.Portal = Portal;
1714
+ exports.Profiler = Profiler;
1715
+ exports.StrictMode = StrictMode;
1716
+ exports.Suspense = Suspense;
1717
+ exports.isAsyncMode = isAsyncMode;
1718
+ exports.isConcurrentMode = isConcurrentMode;
1719
+ exports.isContextConsumer = isContextConsumer;
1720
+ exports.isContextProvider = isContextProvider;
1721
+ exports.isElement = isElement;
1722
+ exports.isForwardRef = isForwardRef;
1723
+ exports.isFragment = isFragment;
1724
+ exports.isLazy = isLazy;
1725
+ exports.isMemo = isMemo;
1726
+ exports.isPortal = isPortal;
1727
+ exports.isProfiler = isProfiler;
1728
+ exports.isStrictMode = isStrictMode;
1729
+ exports.isSuspense = isSuspense;
1730
+ exports.isValidElementType = isValidElementType;
1731
+ exports.typeOf = typeOf;
1732
+ })();
1733
+ }
1734
+ });
1735
+
1736
+ var reactIs = createCommonjsModule(function (module) {
1737
+
1738
+ if (process.env.NODE_ENV === 'production') {
1739
+ module.exports = reactIs_production_min;
1740
+ } else {
1741
+ module.exports = reactIs_development;
1742
+ }
1743
+ });
1744
+
1745
+ var FORWARD_REF_STATICS = {
1746
+ '$$typeof': true,
1747
+ render: true,
1748
+ defaultProps: true,
1749
+ displayName: true,
1750
+ propTypes: true
1751
+ };
1752
+ var MEMO_STATICS = {
1753
+ '$$typeof': true,
1754
+ compare: true,
1755
+ defaultProps: true,
1756
+ displayName: true,
1757
+ propTypes: true,
1758
+ type: true
1759
+ };
1760
+ var TYPE_STATICS = {};
1761
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1762
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1763
+
1764
+ var isBrowser = "object" !== 'undefined';
1765
+
1766
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1767
+ var rawClassName = '';
1768
+ classNames.split(' ').forEach(function (className) {
1769
+ if (registered[className] !== undefined) {
1770
+ registeredStyles.push(registered[className] + ";");
1771
+ } else {
1772
+ rawClassName += className + " ";
1773
+ }
1774
+ });
1775
+ return rawClassName;
1776
+ }
1777
+
1778
+ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
1779
+ var className = cache.key + "-" + serialized.name;
1780
+
1781
+ if ( // we only need to add the styles to the registered cache if the
1782
+ // class name could be used further down
1783
+ // the tree but if it's a string tag, we know it won't
1784
+ // so we don't have to add it to registered cache.
1785
+ // this improves memory usage since we can avoid storing the whole style string
1786
+ (isStringTag === false || // we need to always store it if we're in compat mode and
1787
+ // in node since emotion-server relies on whether a style is in
1788
+ // the registered cache to know whether a style is global or not
1789
+ // also, note that this check will be dead code eliminated in the browser
1790
+ isBrowser === false) && cache.registered[className] === undefined) {
1791
+ cache.registered[className] = serialized.styles;
1792
+ }
1793
+
1794
+ if (cache.inserted[serialized.name] === undefined) {
1795
+ var current = serialized;
1796
+
1797
+ do {
1798
+ cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
1799
+ current = current.next;
1800
+ } while (current !== undefined);
1801
+ }
1802
+ };
1803
+
1804
+ /* eslint-disable */
1805
+ // Inspired by https://github.com/garycourt/murmurhash-js
1806
+ // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
1807
+ function murmur2(str) {
1808
+ // 'm' and 'r' are mixing constants generated offline.
1809
+ // They're not really 'magic', they just happen to work well.
1810
+ // const m = 0x5bd1e995;
1811
+ // const r = 24;
1812
+ // Initialize the hash
1813
+ var h = 0; // Mix 4 bytes at a time into the hash
1814
+
1815
+ var k,
1816
+ i = 0,
1817
+ len = str.length;
1818
+
1819
+ for (; len >= 4; ++i, len -= 4) {
1820
+ k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
1821
+ k =
1822
+ /* Math.imul(k, m): */
1823
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
1824
+ k ^=
1825
+ /* k >>> r: */
1826
+ k >>> 24;
1827
+ h =
1828
+ /* Math.imul(k, m): */
1829
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
1830
+ /* Math.imul(h, m): */
1831
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1832
+ } // Handle the last few bytes of the input array
1833
+
1834
+
1835
+ switch (len) {
1836
+ case 3:
1837
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
1838
+
1839
+ case 2:
1840
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
1841
+
1842
+ case 1:
1843
+ h ^= str.charCodeAt(i) & 0xff;
1844
+ h =
1845
+ /* Math.imul(h, m): */
1846
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1847
+ } // Do a few final mixes of the hash to ensure the last few
1848
+ // bytes are well-incorporated.
1849
+
1850
+
1851
+ h ^= h >>> 13;
1852
+ h =
1853
+ /* Math.imul(h, m): */
1854
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1855
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1856
+ }
1857
+
1858
+ var unitlessKeys = {
1859
+ animationIterationCount: 1,
1860
+ borderImageOutset: 1,
1861
+ borderImageSlice: 1,
1862
+ borderImageWidth: 1,
1863
+ boxFlex: 1,
1864
+ boxFlexGroup: 1,
1865
+ boxOrdinalGroup: 1,
1866
+ columnCount: 1,
1867
+ columns: 1,
1868
+ flex: 1,
1869
+ flexGrow: 1,
1870
+ flexPositive: 1,
1871
+ flexShrink: 1,
1872
+ flexNegative: 1,
1873
+ flexOrder: 1,
1874
+ gridRow: 1,
1875
+ gridRowEnd: 1,
1876
+ gridRowSpan: 1,
1877
+ gridRowStart: 1,
1878
+ gridColumn: 1,
1879
+ gridColumnEnd: 1,
1880
+ gridColumnSpan: 1,
1881
+ gridColumnStart: 1,
1882
+ msGridRow: 1,
1883
+ msGridRowSpan: 1,
1884
+ msGridColumn: 1,
1885
+ msGridColumnSpan: 1,
1886
+ fontWeight: 1,
1887
+ lineHeight: 1,
1888
+ opacity: 1,
1889
+ order: 1,
1890
+ orphans: 1,
1891
+ tabSize: 1,
1892
+ widows: 1,
1893
+ zIndex: 1,
1894
+ zoom: 1,
1895
+ WebkitLineClamp: 1,
1896
+ // SVG-related properties
1897
+ fillOpacity: 1,
1898
+ floodOpacity: 1,
1899
+ stopOpacity: 1,
1900
+ strokeDasharray: 1,
1901
+ strokeDashoffset: 1,
1902
+ strokeMiterlimit: 1,
1903
+ strokeOpacity: 1,
1904
+ strokeWidth: 1
1905
+ };
1906
+
1907
+ function memoize(fn) {
1908
+ var cache = Object.create(null);
1909
+ return function (arg) {
1910
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
1911
+ return cache[arg];
1912
+ };
1913
+ }
1914
+
1915
+ var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
1916
+ var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
1917
+ var hyphenateRegex = /[A-Z]|^ms/g;
1918
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1919
+
1920
+ var isCustomProperty = function isCustomProperty(property) {
1921
+ return property.charCodeAt(1) === 45;
1922
+ };
1923
+
1924
+ var isProcessableValue = function isProcessableValue(value) {
1925
+ return value != null && typeof value !== 'boolean';
1926
+ };
1927
+
1928
+ var processStyleName = /* #__PURE__ */memoize(function (styleName) {
1929
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
1930
+ });
1931
+
1932
+ var processStyleValue = function processStyleValue(key, value) {
1933
+ switch (key) {
1934
+ case 'animation':
1935
+ case 'animationName':
1936
+ {
1937
+ if (typeof value === 'string') {
1938
+ return value.replace(animationRegex, function (match, p1, p2) {
1939
+ cursor = {
1940
+ name: p1,
1941
+ styles: p2,
1942
+ next: cursor
1943
+ };
1944
+ return p1;
1945
+ });
1946
+ }
1947
+ }
1948
+ }
1949
+
1950
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
1951
+ return value + 'px';
1952
+ }
1953
+
1954
+ return value;
1955
+ };
1956
+
1957
+ if (process.env.NODE_ENV !== 'production') {
1958
+ var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1959
+ var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
1960
+ var oldProcessStyleValue = processStyleValue;
1961
+ var msPattern = /^-ms-/;
1962
+ var hyphenPattern = /-(.)/g;
1963
+ var hyphenatedCache = {};
1964
+
1965
+ processStyleValue = function processStyleValue(key, value) {
1966
+ if (key === 'content') {
1967
+ if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
1968
+ throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
1969
+ }
1970
+ }
1971
+
1972
+ var processed = oldProcessStyleValue(key, value);
1973
+
1974
+ if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
1975
+ hyphenatedCache[key] = true;
1976
+ console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
1977
+ return _char.toUpperCase();
1978
+ }) + "?");
1979
+ }
1980
+
1981
+ return processed;
1982
+ };
1983
+ }
1984
+
1985
+ function handleInterpolation(mergedProps, registered, interpolation) {
1986
+ if (interpolation == null) {
1987
+ return '';
1988
+ }
1989
+
1990
+ if (interpolation.__emotion_styles !== undefined) {
1991
+ if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
1992
+ throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
1993
+ }
1994
+
1995
+ return interpolation;
1996
+ }
1997
+
1998
+ switch (typeof interpolation) {
1999
+ case 'boolean':
2000
+ {
2001
+ return '';
2002
+ }
2003
+
2004
+ case 'object':
2005
+ {
2006
+ if (interpolation.anim === 1) {
2007
+ cursor = {
2008
+ name: interpolation.name,
2009
+ styles: interpolation.styles,
2010
+ next: cursor
2011
+ };
2012
+ return interpolation.name;
2013
+ }
2014
+
2015
+ if (interpolation.styles !== undefined) {
2016
+ var next = interpolation.next;
2017
+
2018
+ if (next !== undefined) {
2019
+ // not the most efficient thing ever but this is a pretty rare case
2020
+ // and there will be very few iterations of this generally
2021
+ while (next !== undefined) {
2022
+ cursor = {
2023
+ name: next.name,
2024
+ styles: next.styles,
2025
+ next: cursor
2026
+ };
2027
+ next = next.next;
2028
+ }
2029
+ }
2030
+
2031
+ var styles = interpolation.styles + ";";
2032
+
2033
+ if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
2034
+ styles += interpolation.map;
2035
+ }
2036
+
2037
+ return styles;
2038
+ }
2039
+
2040
+ return createStringFromObject(mergedProps, registered, interpolation);
2041
+ }
2042
+
2043
+ case 'function':
2044
+ {
2045
+ if (mergedProps !== undefined) {
2046
+ var previousCursor = cursor;
2047
+ var result = interpolation(mergedProps);
2048
+ cursor = previousCursor;
2049
+ return handleInterpolation(mergedProps, registered, result);
2050
+ } else if (process.env.NODE_ENV !== 'production') {
2051
+ console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
2052
+ }
2053
+
2054
+ break;
2055
+ }
2056
+
2057
+ case 'string':
2058
+ if (process.env.NODE_ENV !== 'production') {
2059
+ var matched = [];
2060
+ var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
2061
+ var fakeVarName = "animation" + matched.length;
2062
+ matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
2063
+ return "${" + fakeVarName + "}";
2064
+ });
2065
+
2066
+ if (matched.length) {
2067
+ console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
2068
+ }
2069
+ }
2070
+
2071
+ break;
2072
+ } // finalize string values (regular strings and functions interpolated into css calls)
2073
+
2074
+
2075
+ if (registered == null) {
2076
+ return interpolation;
2077
+ }
2078
+
2079
+ var cached = registered[interpolation];
2080
+ return cached !== undefined ? cached : interpolation;
2081
+ }
2082
+
2083
+ function createStringFromObject(mergedProps, registered, obj) {
2084
+ var string = '';
2085
+
2086
+ if (Array.isArray(obj)) {
2087
+ for (var i = 0; i < obj.length; i++) {
2088
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
2089
+ }
2090
+ } else {
2091
+ for (var _key in obj) {
2092
+ var value = obj[_key];
2093
+
2094
+ if (typeof value !== 'object') {
2095
+ if (registered != null && registered[value] !== undefined) {
2096
+ string += _key + "{" + registered[value] + "}";
2097
+ } else if (isProcessableValue(value)) {
2098
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
2099
+ }
2100
+ } else {
2101
+ if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
2102
+ throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
2103
+ }
2104
+
2105
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
2106
+ for (var _i = 0; _i < value.length; _i++) {
2107
+ if (isProcessableValue(value[_i])) {
2108
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
2109
+ }
2110
+ }
2111
+ } else {
2112
+ var interpolated = handleInterpolation(mergedProps, registered, value);
2113
+
2114
+ switch (_key) {
2115
+ case 'animation':
2116
+ case 'animationName':
2117
+ {
2118
+ string += processStyleName(_key) + ":" + interpolated + ";";
2119
+ break;
2120
+ }
2121
+
2122
+ default:
2123
+ {
2124
+ if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
2125
+ console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
2126
+ }
2127
+
2128
+ string += _key + "{" + interpolated + "}";
2129
+ }
2130
+ }
2131
+ }
2132
+ }
2133
+ }
2134
+ }
2135
+
2136
+ return string;
2137
+ }
2138
+
2139
+ var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
2140
+ var sourceMapPattern;
2141
+
2142
+ if (process.env.NODE_ENV !== 'production') {
2143
+ sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
2144
+ } // this is the cursor for keyframes
2145
+ // keyframes are stored on the SerializedStyles object as a linked list
2146
+
2147
+
2148
+ var cursor;
2149
+
2150
+ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
2151
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
2152
+ return args[0];
2153
+ }
2154
+
2155
+ var stringMode = true;
2156
+ var styles = '';
2157
+ cursor = undefined;
2158
+ var strings = args[0];
2159
+
2160
+ if (strings == null || strings.raw === undefined) {
2161
+ stringMode = false;
2162
+ styles += handleInterpolation(mergedProps, registered, strings);
2163
+ } else {
2164
+ if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
2165
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
2166
+ }
2167
+
2168
+ styles += strings[0];
2169
+ } // we start at 1 since we've already handled the first arg
2170
+
2171
+
2172
+ for (var i = 1; i < args.length; i++) {
2173
+ styles += handleInterpolation(mergedProps, registered, args[i]);
2174
+
2175
+ if (stringMode) {
2176
+ if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
2177
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
2178
+ }
2179
+
2180
+ styles += strings[i];
2181
+ }
2182
+ }
2183
+
2184
+ var sourceMap;
2185
+
2186
+ if (process.env.NODE_ENV !== 'production') {
2187
+ styles = styles.replace(sourceMapPattern, function (match) {
2188
+ sourceMap = match;
2189
+ return '';
2190
+ });
2191
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
2192
+
2193
+
2194
+ labelPattern.lastIndex = 0;
2195
+ var identifierName = '';
2196
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
2197
+
2198
+ while ((match = labelPattern.exec(styles)) !== null) {
2199
+ identifierName += '-' + // $FlowFixMe we know it's not null
2200
+ match[1];
2201
+ }
2202
+
2203
+ var name = murmur2(styles) + identifierName;
2204
+
2205
+ if (process.env.NODE_ENV !== 'production') {
2206
+ // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
2207
+ return {
2208
+ name: name,
2209
+ styles: styles,
2210
+ map: sourceMap,
2211
+ next: cursor,
2212
+ toString: function toString() {
2213
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2214
+ }
2215
+ };
2216
+ }
2217
+
2218
+ return {
2219
+ name: name,
2220
+ styles: styles,
2221
+ next: cursor
2222
+ };
2223
+ };
2224
+
2225
+ var hasOwnProperty = {}.hasOwnProperty;
2226
+ var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
2227
+ // because this module is primarily intended for the browser and node
2228
+ // but it's also required in react native and similar environments sometimes
2229
+ // and we could have a special build just for that
2230
+ // but this is much easier and the native packages
2231
+ // might use a different theme context in the future anyway
2232
+ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
2233
+ key: 'css'
2234
+ }) : null);
2235
+
2236
+ if (process.env.NODE_ENV !== 'production') {
2237
+ EmotionCacheContext.displayName = 'EmotionCacheContext';
2238
+ }
2239
+
2240
+ var withEmotionCache = function withEmotionCache(func) {
2241
+ // $FlowFixMe
2242
+ return /*#__PURE__*/forwardRef(function (props, ref) {
2243
+ // the cache will never be null in the browser
2244
+ var cache = useContext(EmotionCacheContext);
2245
+ return func(props, cache, ref);
2246
+ });
2247
+ };
2248
+
2249
+ var ThemeContext = /* #__PURE__ */createContext({});
2250
+
2251
+ if (process.env.NODE_ENV !== 'production') {
2252
+ ThemeContext.displayName = 'EmotionThemeContext';
2253
+ }
2254
+
2255
+ var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {
2256
+ // V8
2257
+ var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line);
2258
+
2259
+ if (match) {
2260
+ // The match may be something like 'Object.createEmotionProps'
2261
+ var parts = match[1].split('.');
2262
+ return parts[parts.length - 1];
2263
+ } // Safari / Firefox
2264
+
2265
+
2266
+ match = /^([A-Za-z0-9$.]+)@/.exec(line);
2267
+ if (match) return match[1];
2268
+ return undefined;
2269
+ };
2270
+
2271
+ var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS
2272
+ // identifiers, thus we only need to replace what is a valid character for JS,
2273
+ // but not for CSS.
2274
+
2275
+ var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
2276
+ return identifier.replace(/\$/g, '-');
2277
+ };
2278
+
2279
+ var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {
2280
+ if (!stackTrace) return undefined;
2281
+ var lines = stackTrace.split('\n');
2282
+
2283
+ for (var i = 0; i < lines.length; i++) {
2284
+ var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error"
2285
+
2286
+ if (!functionName) continue; // If we reach one of these, we have gone too far and should quit
2287
+
2288
+ if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an
2289
+ // uppercase letter
2290
+
2291
+ if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);
2292
+ }
2293
+
2294
+ return undefined;
2295
+ };
2296
+
2297
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
2298
+ var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
2299
+
2300
+ var createEmotionProps = function createEmotionProps(type, props) {
2301
+ if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
2302
+ props.css.indexOf(':') !== -1) {
2303
+ throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`");
2304
+ }
2305
+
2306
+ var newProps = {};
2307
+
2308
+ for (var key in props) {
2309
+ if (hasOwnProperty.call(props, key)) {
2310
+ newProps[key] = props[key];
2311
+ }
2312
+ }
2313
+
2314
+ newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when
2315
+ // the label hasn't already been computed
2316
+
2317
+ if (process.env.NODE_ENV !== 'production' && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {
2318
+ var label = getLabelFromStackTrace(new Error().stack);
2319
+ if (label) newProps[labelPropName] = label;
2320
+ }
2321
+
2322
+ return newProps;
2323
+ };
2324
+
2325
+ var Noop = function Noop() {
2326
+ return null;
2327
+ };
2328
+
2329
+ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2330
+ var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
2331
+ // not passing the registered cache to serializeStyles because it would
2332
+ // make certain babel optimisations not possible
2333
+
2334
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
2335
+ cssProp = cache.registered[cssProp];
2336
+ }
2337
+
2338
+ var type = props[typePropName];
2339
+ var registeredStyles = [cssProp];
2340
+ var className = '';
2341
+
2342
+ if (typeof props.className === 'string') {
2343
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
2344
+ } else if (props.className != null) {
2345
+ className = props.className + " ";
2346
+ }
2347
+
2348
+ var serialized = serializeStyles(registeredStyles, undefined, useContext(ThemeContext));
2349
+
2350
+ if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
2351
+ var labelFromStack = props[labelPropName];
2352
+
2353
+ if (labelFromStack) {
2354
+ serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);
2355
+ }
2356
+ }
2357
+
2358
+ insertStyles(cache, serialized, typeof type === 'string');
2359
+ className += cache.key + "-" + serialized.name;
2360
+ var newProps = {};
2361
+
2362
+ for (var key in props) {
2363
+ if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
2364
+ newProps[key] = props[key];
2365
+ }
2366
+ }
2367
+
2368
+ newProps.ref = ref;
2369
+ newProps.className = className;
2370
+ var ele = /*#__PURE__*/createElement(type, newProps);
2371
+ var possiblyStyleElement = /*#__PURE__*/createElement(Noop, null);
2372
+ return /*#__PURE__*/createElement(Fragment$2, null, possiblyStyleElement, ele);
2373
+ });
2374
+
2375
+ if (process.env.NODE_ENV !== 'production') {
2376
+ Emotion.displayName = 'EmotionCssPropInternal';
2377
+ }
2378
+
2379
+ var Fragment = Fragment$3;
2380
+
2381
+ function jsx(type, props, key) {
2382
+ if (!hasOwnProperty.call(props, 'css')) {
2383
+ return jsx$1(type, props, key);
2384
+ }
2385
+
2386
+ return jsx$1(Emotion, createEmotionProps(type, props), key);
2387
+ }
2388
+
2389
+ function jsxs(type, props, key) {
2390
+ if (!hasOwnProperty.call(props, 'css')) {
2391
+ return jsxs$1(type, props, key);
2392
+ }
2393
+
2394
+ return jsxs$1(Emotion, createEmotionProps(type, props), key);
2395
+ }
2396
+
51
2397
  var CarouselSwiper$3 = /*#__PURE__*/styled(Swiper).withConfig({
52
2398
  displayName: "styles__CarouselSwiper",
53
2399
  componentId: "sc-1sue7gh-1"