@cleartrip/ct-design-animate 2.0.0 → 4.0.0-SNAPSHOT-rnfinaltest.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,12 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('styled-components')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'styled-components'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemAnimate = {}, global.jsxRuntime, global.styled));
5
- })(this, (function (exports, jsxRuntime, styled) { 'use strict';
6
-
7
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
-
9
- var styled__default = /*#__PURE__*/_interopDefault(styled);
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('@cleartrip/ct-design-style-manager')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', '@cleartrip/ct-design-style-manager'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemAnimate = {}, global.jsxRuntime, global.ctDesignStyleManager));
5
+ })(this, (function (exports, jsxRuntime, ctDesignStyleManager) { 'use strict';
10
6
 
11
7
  /******************************************************************************
12
8
  Copyright (c) Microsoft Corporation.
@@ -22,18 +18,8 @@
22
18
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
19
  PERFORMANCE OF THIS SOFTWARE.
24
20
  ***************************************************************************** */
25
- /* global Reflect, Promise, SuppressedError, Symbol */
21
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
26
22
 
27
- var __assign = function () {
28
- __assign = Object.assign || function __assign(t) {
29
- for (var s, i = 1, n = arguments.length; i < n; i++) {
30
- s = arguments[i];
31
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
32
- }
33
- return t;
34
- };
35
- return __assign.apply(this, arguments);
36
- };
37
23
  function __rest(s, e) {
38
24
  var t = {};
39
25
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -42,52 +28,1708 @@
42
28
  }
43
29
  return t;
44
30
  }
45
- function __makeTemplateObject(cooked, raw) {
46
- if (Object.defineProperty) {
47
- Object.defineProperty(cooked, "raw", {
48
- value: raw
49
- });
50
- } else {
51
- cooked.raw = raw;
52
- }
53
- return cooked;
54
- }
55
31
  typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
56
32
  var e = new Error(message);
57
33
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
58
34
  };
59
35
 
60
- exports.AnimationVariant = void 0;
61
- (function (AnimationVariant) {
62
- AnimationVariant["SHAKE"] = "SHAKE";
63
- })(exports.AnimationVariant || (exports.AnimationVariant = {}));
36
+ var isDevelopment$1 = false;
64
37
 
65
- var shakeKeyFrame = styled.keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n 10%,\n 90% {\n transform: translate3d(-1px, 0, 0);\n }\n\n 20%,\n 80% {\n transform: translate3d(2px, 0, 0);\n }\n\n 30%,\n 50%,\n 70% {\n transform: translate3d(-4px, 0, 0);\n }\n\n 40%,\n 60% {\n transform: translate3d(4px, 0, 0);\n }\n"], ["\n 10%,\n 90% {\n transform: translate3d(-1px, 0, 0);\n }\n\n 20%,\n 80% {\n transform: translate3d(2px, 0, 0);\n }\n\n 30%,\n 50%,\n 70% {\n transform: translate3d(-4px, 0, 0);\n }\n\n 40%,\n 60% {\n transform: translate3d(4px, 0, 0);\n }\n"])));
66
- var getAnimationPropsFromVariant = function (variant) {
67
- switch (variant) {
68
- case exports.AnimationVariant.SHAKE: {
69
- return styled.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n animation: ", " 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;\n transform: translate3d(0, 0, 0);\n backface-visibility: hidden;\n perspective: 1000px;\n "], ["\n animation: ", " 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;\n transform: translate3d(0, 0, 0);\n backface-visibility: hidden;\n perspective: 1000px;\n "])), shakeKeyFrame);
38
+ /*
39
+
40
+ Based off glamor's StyleSheet, thanks Sunil ❤️
41
+
42
+ high performance StyleSheet for css-in-js systems
43
+
44
+ - uses multiple style tags behind the scenes for millions of rules
45
+ - uses `insertRule` for appending in production for *much* faster performance
46
+
47
+ // usage
48
+
49
+ import { StyleSheet } from '@emotion/sheet'
50
+
51
+ let styleSheet = new StyleSheet({ key: '', container: document.head })
52
+
53
+ styleSheet.insert('#box { border: 1px solid red; }')
54
+ - appends a css rule into the stylesheet
55
+
56
+ styleSheet.flush()
57
+ - empties the stylesheet of all its contents
58
+
59
+ */
60
+
61
+ function sheetForTag(tag) {
62
+ if (tag.sheet) {
63
+ return tag.sheet;
64
+ } // this weirdness brought to you by firefox
65
+
66
+ /* istanbul ignore next */
67
+
68
+ for (var i = 0; i < document.styleSheets.length; i++) {
69
+ if (document.styleSheets[i].ownerNode === tag) {
70
+ return document.styleSheets[i];
71
+ }
72
+ } // this function should always return with a value
73
+ // TS can't understand it though so we make it stop complaining here
74
+
75
+ return undefined;
76
+ }
77
+ function createStyleElement(options) {
78
+ var tag = document.createElement('style');
79
+ tag.setAttribute('data-emotion', options.key);
80
+ if (options.nonce !== undefined) {
81
+ tag.setAttribute('nonce', options.nonce);
82
+ }
83
+ tag.appendChild(document.createTextNode(''));
84
+ tag.setAttribute('data-s', '');
85
+ return tag;
86
+ }
87
+ var StyleSheet = /*#__PURE__*/function () {
88
+ // Using Node instead of HTMLElement since container may be a ShadowRoot
89
+ function StyleSheet(options) {
90
+ var _this = this;
91
+ this._insertTag = function (tag) {
92
+ var before;
93
+ if (_this.tags.length === 0) {
94
+ if (_this.insertionPoint) {
95
+ before = _this.insertionPoint.nextSibling;
96
+ } else if (_this.prepend) {
97
+ before = _this.container.firstChild;
98
+ } else {
99
+ before = _this.before;
100
+ }
101
+ } else {
102
+ before = _this.tags[_this.tags.length - 1].nextSibling;
103
+ }
104
+ _this.container.insertBefore(tag, before);
105
+ _this.tags.push(tag);
106
+ };
107
+ this.isSpeedy = options.speedy === undefined ? !isDevelopment$1 : options.speedy;
108
+ this.tags = [];
109
+ this.ctr = 0;
110
+ this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
111
+
112
+ this.key = options.key;
113
+ this.container = options.container;
114
+ this.prepend = options.prepend;
115
+ this.insertionPoint = options.insertionPoint;
116
+ this.before = null;
117
+ }
118
+ var _proto = StyleSheet.prototype;
119
+ _proto.hydrate = function hydrate(nodes) {
120
+ nodes.forEach(this._insertTag);
121
+ };
122
+ _proto.insert = function insert(rule) {
123
+ // the max length is how many rules we have per style tag, it's 65000 in speedy mode
124
+ // it's 1 in dev because we insert source maps that map a single rule to a location
125
+ // and you can only have one source map per style tag
126
+ if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
127
+ this._insertTag(createStyleElement(this));
128
+ }
129
+ var tag = this.tags[this.tags.length - 1];
130
+ if (this.isSpeedy) {
131
+ var sheet = sheetForTag(tag);
132
+ try {
133
+ // this is the ultrafast version, works across browsers
134
+ // the big drawback is that the css won't be editable in devtools
135
+ sheet.insertRule(rule, sheet.cssRules.length);
136
+ } catch (e) {}
137
+ } else {
138
+ tag.appendChild(document.createTextNode(rule));
139
+ }
140
+ this.ctr++;
141
+ };
142
+ _proto.flush = function flush() {
143
+ this.tags.forEach(function (tag) {
144
+ var _tag$parentNode;
145
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
146
+ });
147
+ this.tags = [];
148
+ this.ctr = 0;
149
+ };
150
+ return StyleSheet;
151
+ }();
152
+
153
+ var stylisExports = {};
154
+ var stylis = {
155
+ get exports(){ return stylisExports; },
156
+ set exports(v){ stylisExports = v; },
157
+ };
158
+
159
+ (function (module, exports) {
160
+ (function (e, r) {
161
+ r(exports) ;
162
+ })(this, function (e) {
163
+
164
+ var r = "-ms-";
165
+ var a = "-moz-";
166
+ var c = "-webkit-";
167
+ var n = "comm";
168
+ var t = "rule";
169
+ var s = "decl";
170
+ var i = "@page";
171
+ var u = "@media";
172
+ var o = "@import";
173
+ var f = "@charset";
174
+ var l = "@viewport";
175
+ var p = "@supports";
176
+ var h = "@document";
177
+ var v = "@namespace";
178
+ var d = "@keyframes";
179
+ var b = "@font-face";
180
+ var w = "@counter-style";
181
+ var m = "@font-feature-values";
182
+ var g = "@layer";
183
+ var k = Math.abs;
184
+ var $ = String.fromCharCode;
185
+ var x = Object.assign;
186
+ function E(e, r) {
187
+ return M(e, 0) ^ 45 ? (((r << 2 ^ M(e, 0)) << 2 ^ M(e, 1)) << 2 ^ M(e, 2)) << 2 ^ M(e, 3) : 0;
188
+ }
189
+ function y(e) {
190
+ return e.trim();
191
+ }
192
+ function T(e, r) {
193
+ return (e = r.exec(e)) ? e[0] : e;
194
+ }
195
+ function A(e, r, a) {
196
+ return e.replace(r, a);
197
+ }
198
+ function O(e, r) {
199
+ return e.indexOf(r);
200
+ }
201
+ function M(e, r) {
202
+ return e.charCodeAt(r) | 0;
203
+ }
204
+ function C(e, r, a) {
205
+ return e.slice(r, a);
206
+ }
207
+ function R(e) {
208
+ return e.length;
209
+ }
210
+ function S(e) {
211
+ return e.length;
212
+ }
213
+ function z(e, r) {
214
+ return r.push(e), e;
215
+ }
216
+ function N(e, r) {
217
+ return e.map(r).join("");
218
+ }
219
+ e.line = 1;
220
+ e.column = 1;
221
+ e.length = 0;
222
+ e.position = 0;
223
+ e.character = 0;
224
+ e.characters = "";
225
+ function P(r, a, c, n, t, s, i) {
226
+ return {
227
+ value: r,
228
+ root: a,
229
+ parent: c,
230
+ type: n,
231
+ props: t,
232
+ children: s,
233
+ line: e.line,
234
+ column: e.column,
235
+ length: i,
236
+ return: ""
237
+ };
238
+ }
239
+ function j(e, r) {
240
+ return x(P("", null, null, "", null, null, 0), e, {
241
+ length: -e.length
242
+ }, r);
243
+ }
244
+ function U() {
245
+ return e.character;
246
+ }
247
+ function _() {
248
+ e.character = e.position > 0 ? M(e.characters, --e.position) : 0;
249
+ if (e.column--, e.character === 10) e.column = 1, e.line--;
250
+ return e.character;
251
+ }
252
+ function F() {
253
+ e.character = e.position < e.length ? M(e.characters, e.position++) : 0;
254
+ if (e.column++, e.character === 10) e.column = 1, e.line++;
255
+ return e.character;
256
+ }
257
+ function I() {
258
+ return M(e.characters, e.position);
259
+ }
260
+ function L() {
261
+ return e.position;
262
+ }
263
+ function D(r, a) {
264
+ return C(e.characters, r, a);
265
+ }
266
+ function Y(e) {
267
+ switch (e) {
268
+ case 0:
269
+ case 9:
270
+ case 10:
271
+ case 13:
272
+ case 32:
273
+ return 5;
274
+ case 33:
275
+ case 43:
276
+ case 44:
277
+ case 47:
278
+ case 62:
279
+ case 64:
280
+ case 126:
281
+ case 59:
282
+ case 123:
283
+ case 125:
284
+ return 4;
285
+ case 58:
286
+ return 3;
287
+ case 34:
288
+ case 39:
289
+ case 40:
290
+ case 91:
291
+ return 2;
292
+ case 41:
293
+ case 93:
294
+ return 1;
295
+ }
296
+ return 0;
297
+ }
298
+ function K(r) {
299
+ return e.line = e.column = 1, e.length = R(e.characters = r), e.position = 0, [];
300
+ }
301
+ function V(r) {
302
+ return e.characters = "", r;
303
+ }
304
+ function W(r) {
305
+ return y(D(e.position - 1, q(r === 91 ? r + 2 : r === 40 ? r + 1 : r)));
306
+ }
307
+ function B(e) {
308
+ return V(H(K(e)));
309
+ }
310
+ function G(r) {
311
+ while (e.character = I()) if (e.character < 33) F();else break;
312
+ return Y(r) > 2 || Y(e.character) > 3 ? "" : " ";
313
+ }
314
+ function H(r) {
315
+ while (F()) switch (Y(e.character)) {
316
+ case 0:
317
+ z(Q(e.position - 1), r);
318
+ break;
319
+ case 2:
320
+ z(W(e.character), r);
321
+ break;
322
+ default:
323
+ z($(e.character), r);
324
+ }
325
+ return r;
326
+ }
327
+ function Z(r, a) {
328
+ while (--a && F()) if (e.character < 48 || e.character > 102 || e.character > 57 && e.character < 65 || e.character > 70 && e.character < 97) break;
329
+ return D(r, L() + (a < 6 && I() == 32 && F() == 32));
330
+ }
331
+ function q(r) {
332
+ while (F()) switch (e.character) {
333
+ case r:
334
+ return e.position;
335
+ case 34:
336
+ case 39:
337
+ if (r !== 34 && r !== 39) q(e.character);
338
+ break;
339
+ case 40:
340
+ if (r === 41) q(r);
341
+ break;
342
+ case 92:
343
+ F();
344
+ break;
345
+ }
346
+ return e.position;
347
+ }
348
+ function J(r, a) {
349
+ while (F()) if (r + e.character === 47 + 10) break;else if (r + e.character === 42 + 42 && I() === 47) break;
350
+ return "/*" + D(a, e.position - 1) + "*" + $(r === 47 ? r : F());
351
+ }
352
+ function Q(r) {
353
+ while (!Y(I())) F();
354
+ return D(r, e.position);
355
+ }
356
+ function X(e) {
357
+ return V(ee("", null, null, null, [""], e = K(e), 0, [0], e));
358
+ }
359
+ function ee(e, r, a, c, n, t, s, i, u) {
360
+ var o = 0;
361
+ var f = 0;
362
+ var l = s;
363
+ var p = 0;
364
+ var h = 0;
365
+ var v = 0;
366
+ var d = 1;
367
+ var b = 1;
368
+ var w = 1;
369
+ var m = 0;
370
+ var g = "";
371
+ var k = n;
372
+ var x = t;
373
+ var E = c;
374
+ var y = g;
375
+ while (b) switch (v = m, m = F()) {
376
+ case 40:
377
+ if (v != 108 && M(y, l - 1) == 58) {
378
+ if (O(y += A(W(m), "&", "&\f"), "&\f") != -1) w = -1;
379
+ break;
380
+ }
381
+ case 34:
382
+ case 39:
383
+ case 91:
384
+ y += W(m);
385
+ break;
386
+ case 9:
387
+ case 10:
388
+ case 13:
389
+ case 32:
390
+ y += G(v);
391
+ break;
392
+ case 92:
393
+ y += Z(L() - 1, 7);
394
+ continue;
395
+ case 47:
396
+ switch (I()) {
397
+ case 42:
398
+ case 47:
399
+ z(ae(J(F(), L()), r, a), u);
400
+ break;
401
+ default:
402
+ y += "/";
403
+ }
404
+ break;
405
+ case 123 * d:
406
+ i[o++] = R(y) * w;
407
+ case 125 * d:
408
+ case 59:
409
+ case 0:
410
+ switch (m) {
411
+ case 0:
412
+ case 125:
413
+ b = 0;
414
+ case 59 + f:
415
+ if (w == -1) y = A(y, /\f/g, "");
416
+ if (h > 0 && R(y) - l) z(h > 32 ? ce(y + ";", c, a, l - 1) : ce(A(y, " ", "") + ";", c, a, l - 2), u);
417
+ break;
418
+ case 59:
419
+ y += ";";
420
+ default:
421
+ z(E = re(y, r, a, o, f, n, i, g, k = [], x = [], l), t);
422
+ 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) {
423
+ case 100:
424
+ case 108:
425
+ case 109:
426
+ case 115:
427
+ 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);
428
+ break;
429
+ default:
430
+ ee(y, E, E, E, [""], x, 0, i, x);
431
+ }
432
+ }
433
+ o = f = h = 0, d = w = 1, g = y = "", l = s;
434
+ break;
435
+ case 58:
436
+ l = 1 + R(y), h = v;
437
+ default:
438
+ if (d < 1) if (m == 123) --d;else if (m == 125 && d++ == 0 && _() == 125) continue;
439
+ switch (y += $(m), m * d) {
440
+ case 38:
441
+ w = f > 0 ? 1 : (y += "\f", -1);
442
+ break;
443
+ case 44:
444
+ i[o++] = (R(y) - 1) * w, w = 1;
445
+ break;
446
+ case 64:
447
+ if (I() === 45) y += W(F());
448
+ p = I(), f = l = R(g = y += Q(L())), m++;
449
+ break;
450
+ case 45:
451
+ if (v === 45 && R(y) == 2) d = 0;
452
+ }
453
+ }
454
+ return t;
455
+ }
456
+ function re(e, r, a, c, n, s, i, u, o, f, l) {
457
+ var p = n - 1;
458
+ var h = n === 0 ? s : [""];
459
+ var v = S(h);
460
+ 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++] = $;
461
+ return P(e, r, a, n === 0 ? t : u, o, f, l);
462
+ }
463
+ function ae(e, r, a) {
464
+ return P(e, r, a, n, $(U()), C(e, 2, -2), 0);
465
+ }
466
+ function ce(e, r, a, c) {
467
+ return P(e, r, a, s, C(e, 0, c), C(e, c + 1, -1), c);
468
+ }
469
+ function ne(e, n, t) {
470
+ switch (E(e, n)) {
471
+ case 5103:
472
+ return c + "print-" + e + e;
473
+ case 5737:
474
+ case 4201:
475
+ case 3177:
476
+ case 3433:
477
+ case 1641:
478
+ case 4457:
479
+ case 2921:
480
+ case 5572:
481
+ case 6356:
482
+ case 5844:
483
+ case 3191:
484
+ case 6645:
485
+ case 3005:
486
+ case 6391:
487
+ case 5879:
488
+ case 5623:
489
+ case 6135:
490
+ case 4599:
491
+ case 4855:
492
+ case 4215:
493
+ case 6389:
494
+ case 5109:
495
+ case 5365:
496
+ case 5621:
497
+ case 3829:
498
+ return c + e + e;
499
+ case 4789:
500
+ return a + e + e;
501
+ case 5349:
502
+ case 4246:
503
+ case 4810:
504
+ case 6968:
505
+ case 2756:
506
+ return c + e + a + e + r + e + e;
507
+ case 5936:
508
+ switch (M(e, n + 11)) {
509
+ case 114:
510
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
511
+ case 108:
512
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
513
+ case 45:
514
+ return c + e + r + A(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
515
+ }
516
+ case 6828:
517
+ case 4268:
518
+ case 2903:
519
+ return c + e + r + e + e;
520
+ case 6165:
521
+ return c + e + r + "flex-" + e + e;
522
+ case 5187:
523
+ return c + e + A(e, /(\w+).+(:[^]+)/, c + "box-$1$2" + r + "flex-$1$2") + e;
524
+ case 5443:
525
+ return c + e + r + "flex-item-" + A(e, /flex-|-self/g, "") + (!T(e, /flex-|baseline/) ? r + "grid-row-" + A(e, /flex-|-self/g, "") : "") + e;
526
+ case 4675:
527
+ return c + e + r + "flex-line-pack" + A(e, /align-content|flex-|-self/g, "") + e;
528
+ case 5548:
529
+ return c + e + r + A(e, "shrink", "negative") + e;
530
+ case 5292:
531
+ return c + e + r + A(e, "basis", "preferred-size") + e;
532
+ case 6060:
533
+ return c + "box-" + A(e, "-grow", "") + c + e + r + A(e, "grow", "positive") + e;
534
+ case 4554:
535
+ return c + A(e, /([^-])(transform)/g, "$1" + c + "$2") + e;
536
+ case 6187:
537
+ return A(A(A(e, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), e, "") + e;
538
+ case 5495:
539
+ case 3959:
540
+ return A(e, /(image-set\([^]*)/, c + "$1" + "$`$1");
541
+ case 4968:
542
+ return A(A(e, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + r + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + c + e + e;
543
+ case 4200:
544
+ if (!T(e, /flex-|baseline/)) return r + "grid-column-align" + C(e, n) + e;
545
+ break;
546
+ case 2592:
547
+ case 3360:
548
+ return r + A(e, "template-", "") + e;
549
+ case 4384:
550
+ case 3616:
551
+ if (t && t.some(function (e, r) {
552
+ return n = r, T(e.props, /grid-\w+-end/);
553
+ })) {
554
+ 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+/)) + ";";
555
+ }
556
+ return r + A(e, "-start", "") + e;
557
+ case 4896:
558
+ case 4128:
559
+ return t && t.some(function (e) {
560
+ return T(e.props, /grid-\w+-start/);
561
+ }) ? e : r + A(A(e, "-end", "-span"), "span ", "") + e;
562
+ case 4095:
563
+ case 3583:
564
+ case 4068:
565
+ case 2532:
566
+ return A(e, /(.+)-inline(.+)/, c + "$1$2") + e;
567
+ case 8116:
568
+ case 7059:
569
+ case 5753:
570
+ case 5535:
571
+ case 5445:
572
+ case 5701:
573
+ case 4933:
574
+ case 4677:
575
+ case 5533:
576
+ case 5789:
577
+ case 5021:
578
+ case 4765:
579
+ if (R(e) - 1 - n > 6) switch (M(e, n + 1)) {
580
+ case 109:
581
+ if (M(e, n + 4) !== 45) break;
582
+ case 102:
583
+ return A(e, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3" + "$1" + a + (M(e, n + 3) == 108 ? "$3" : "$2-$3")) + e;
584
+ case 115:
585
+ return ~O(e, "stretch") ? ne(A(e, "stretch", "fill-available"), n, t) + e : e;
586
+ }
587
+ break;
588
+ case 5152:
589
+ case 5920:
590
+ return A(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (a, c, n, t, s, i, u) {
591
+ return r + c + ":" + n + u + (t ? r + c + "-span:" + (s ? i : +i - +n) + u : "") + e;
592
+ });
593
+ case 4949:
594
+ if (M(e, n + 6) === 121) return A(e, ":", ":" + c) + e;
595
+ break;
596
+ case 6444:
597
+ switch (M(e, M(e, 14) === 45 ? 18 : 11)) {
598
+ case 120:
599
+ return A(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + c + (M(e, 14) === 45 ? "inline-" : "") + "box$3" + "$1" + c + "$2$3" + "$1" + r + "$2box$3") + e;
600
+ case 100:
601
+ return A(e, ":", ":" + r) + e;
602
+ }
603
+ break;
604
+ case 5719:
605
+ case 2647:
606
+ case 2135:
607
+ case 3927:
608
+ case 2391:
609
+ return A(e, "scroll-", "scroll-snap-") + e;
610
+ }
611
+ return e;
612
+ }
613
+ function te(e, r) {
614
+ var a = "";
615
+ var c = S(e);
616
+ for (var n = 0; n < c; n++) a += r(e[n], n, e, r) || "";
617
+ return a;
618
+ }
619
+ function se(e, r, a, c) {
620
+ switch (e.type) {
621
+ case g:
622
+ if (e.children.length) break;
623
+ case o:
624
+ case s:
625
+ return e.return = e.return || e.value;
626
+ case n:
627
+ return "";
628
+ case d:
629
+ return e.return = e.value + "{" + te(e.children, c) + "}";
630
+ case t:
631
+ e.value = e.props.join(",");
632
+ }
633
+ return R(a = te(e.children, c)) ? e.return = e.value + "{" + a + "}" : "";
634
+ }
635
+ function ie(e) {
636
+ var r = S(e);
637
+ return function (a, c, n, t) {
638
+ var s = "";
639
+ for (var i = 0; i < r; i++) s += e[i](a, c, n, t) || "";
640
+ return s;
641
+ };
642
+ }
643
+ function ue(e) {
644
+ return function (r) {
645
+ if (!r.root) if (r = r.return) e(r);
646
+ };
647
+ }
648
+ function oe(e, n, i, u) {
649
+ if (e.length > -1) if (!e.return) switch (e.type) {
650
+ case s:
651
+ e.return = ne(e.value, e.length, i);
652
+ return;
653
+ case d:
654
+ return te([j(e, {
655
+ value: A(e.value, "@", "@" + c)
656
+ })], u);
657
+ case t:
658
+ if (e.length) return N(e.props, function (n) {
659
+ switch (T(n, /(::plac\w+|:read-\w+)/)) {
660
+ case ":read-only":
661
+ case ":read-write":
662
+ return te([j(e, {
663
+ props: [A(n, /:(read-\w+)/, ":" + a + "$1")]
664
+ })], u);
665
+ case "::placeholder":
666
+ return te([j(e, {
667
+ props: [A(n, /:(plac\w+)/, ":" + c + "input-$1")]
668
+ }), j(e, {
669
+ props: [A(n, /:(plac\w+)/, ":" + a + "$1")]
670
+ }), j(e, {
671
+ props: [A(n, /:(plac\w+)/, r + "input-$1")]
672
+ })], u);
673
+ }
674
+ return "";
675
+ });
676
+ }
677
+ }
678
+ function fe(e) {
679
+ switch (e.type) {
680
+ case t:
681
+ e.props = e.props.map(function (r) {
682
+ return N(B(r), function (r, a, c) {
683
+ switch (M(r, 0)) {
684
+ case 12:
685
+ return C(r, 1, R(r));
686
+ case 0:
687
+ case 40:
688
+ case 43:
689
+ case 62:
690
+ case 126:
691
+ return r;
692
+ case 58:
693
+ if (c[++a] === "global") c[a] = "", c[++a] = "\f" + C(c[a], a = 1, -1);
694
+ case 32:
695
+ return a === 1 ? "" : r;
696
+ default:
697
+ switch (a) {
698
+ case 0:
699
+ e = r;
700
+ return S(c) > 1 ? "" : r;
701
+ case a = S(c) - 1:
702
+ case 2:
703
+ return a === 2 ? r + e + e : r + e;
704
+ default:
705
+ return r;
706
+ }
707
+ }
708
+ });
709
+ });
710
+ }
711
+ }
712
+ e.CHARSET = f;
713
+ e.COMMENT = n;
714
+ e.COUNTER_STYLE = w;
715
+ e.DECLARATION = s;
716
+ e.DOCUMENT = h;
717
+ e.FONT_FACE = b;
718
+ e.FONT_FEATURE_VALUES = m;
719
+ e.IMPORT = o;
720
+ e.KEYFRAMES = d;
721
+ e.LAYER = g;
722
+ e.MEDIA = u;
723
+ e.MOZ = a;
724
+ e.MS = r;
725
+ e.NAMESPACE = v;
726
+ e.PAGE = i;
727
+ e.RULESET = t;
728
+ e.SUPPORTS = p;
729
+ e.VIEWPORT = l;
730
+ e.WEBKIT = c;
731
+ e.abs = k;
732
+ e.alloc = K;
733
+ e.append = z;
734
+ e.assign = x;
735
+ e.caret = L;
736
+ e.char = U;
737
+ e.charat = M;
738
+ e.combine = N;
739
+ e.comment = ae;
740
+ e.commenter = J;
741
+ e.compile = X;
742
+ e.copy = j;
743
+ e.dealloc = V;
744
+ e.declaration = ce;
745
+ e.delimit = W;
746
+ e.delimiter = q;
747
+ e.escaping = Z;
748
+ e.from = $;
749
+ e.hash = E;
750
+ e.identifier = Q;
751
+ e.indexof = O;
752
+ e.match = T;
753
+ e.middleware = ie;
754
+ e.namespace = fe;
755
+ e.next = F;
756
+ e.node = P;
757
+ e.parse = ee;
758
+ e.peek = I;
759
+ e.prefix = ne;
760
+ e.prefixer = oe;
761
+ e.prev = _;
762
+ e.replace = A;
763
+ e.ruleset = re;
764
+ e.rulesheet = ue;
765
+ e.serialize = te;
766
+ e.sizeof = S;
767
+ e.slice = D;
768
+ e.stringify = se;
769
+ e.strlen = R;
770
+ e.substr = C;
771
+ e.token = Y;
772
+ e.tokenize = B;
773
+ e.tokenizer = H;
774
+ e.trim = y;
775
+ e.whitespace = G;
776
+ Object.defineProperty(e, "__esModule", {
777
+ value: true
778
+ });
779
+ });
780
+ })(stylis, stylisExports);
781
+
782
+ var weakMemoize = function weakMemoize(func) {
783
+ var cache = new WeakMap();
784
+ return function (arg) {
785
+ if (cache.has(arg)) {
786
+ // Use non-null assertion because we just checked that the cache `has` it
787
+ // This allows us to remove `undefined` from the return value
788
+ return cache.get(arg);
789
+ }
790
+ var ret = func(arg);
791
+ cache.set(arg, ret);
792
+ return ret;
793
+ };
794
+ };
795
+
796
+ function memoize(fn) {
797
+ var cache = Object.create(null);
798
+ return function (arg) {
799
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
800
+ return cache[arg];
801
+ };
802
+ }
803
+
804
+ var isBrowser$1 = typeof document !== 'undefined';
805
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
806
+ var previous = 0;
807
+ var character = 0;
808
+ while (true) {
809
+ previous = character;
810
+ character = stylisExports.peek(); // &\f
811
+
812
+ if (previous === 38 && character === 12) {
813
+ points[index] = 1;
814
+ }
815
+ if (stylisExports.token(character)) {
816
+ break;
817
+ }
818
+ stylisExports.next();
819
+ }
820
+ return stylisExports.slice(begin, stylisExports.position);
821
+ };
822
+ var toRules = function toRules(parsed, points) {
823
+ // pretend we've started with a comma
824
+ var index = -1;
825
+ var character = 44;
826
+ do {
827
+ switch (stylisExports.token(character)) {
828
+ case 0:
829
+ // &\f
830
+ if (character === 38 && stylisExports.peek() === 12) {
831
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
832
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
833
+ // and when it should just concatenate the outer and inner selectors
834
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
835
+ points[index] = 1;
836
+ }
837
+ parsed[index] += identifierWithPointTracking(stylisExports.position - 1, points, index);
838
+ break;
839
+ case 2:
840
+ parsed[index] += stylisExports.delimit(character);
841
+ break;
842
+ case 4:
843
+ // comma
844
+ if (character === 44) {
845
+ // colon
846
+ parsed[++index] = stylisExports.peek() === 58 ? '&\f' : '';
847
+ points[index] = parsed[index].length;
848
+ break;
70
849
  }
850
+
851
+ // fallthrough
852
+
853
+ default:
854
+ parsed[index] += stylisExports.from(character);
71
855
  }
856
+ } while (character = stylisExports.next());
857
+ return parsed;
858
+ };
859
+ var getRules = function getRules(value, points) {
860
+ return stylisExports.dealloc(toRules(stylisExports.alloc(value), points));
861
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
862
+
863
+ var fixedElements = /* #__PURE__ */new WeakMap();
864
+ var compat = function compat(element) {
865
+ if (element.type !== 'rule' || !element.parent ||
866
+ // positive .length indicates that this rule contains pseudo
867
+ // negative .length indicates that this rule has been already prefixed
868
+ element.length < 1) {
869
+ return;
870
+ }
871
+ var value = element.value;
872
+ var parent = element.parent;
873
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
874
+ while (parent.type !== 'rule') {
875
+ parent = parent.parent;
876
+ if (!parent) return;
877
+ } // short-circuit for the simplest case
878
+
879
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
880
+ /* colon */ && !fixedElements.get(parent)) {
881
+ return;
882
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
883
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
884
+
885
+ if (isImplicitRule) {
886
+ return;
887
+ }
888
+ fixedElements.set(element, true);
889
+ var points = [];
890
+ var rules = getRules(value, points);
891
+ var parentRules = parent.props;
892
+ for (var i = 0, k = 0; i < rules.length; i++) {
893
+ for (var j = 0; j < parentRules.length; j++, k++) {
894
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
895
+ }
896
+ }
897
+ };
898
+ var removeLabel = function removeLabel(element) {
899
+ if (element.type === 'decl') {
900
+ var value = element.value;
901
+ if (
902
+ // charcode for l
903
+ value.charCodeAt(0) === 108 &&
904
+ // charcode for b
905
+ value.charCodeAt(2) === 98) {
906
+ // this ignores label
907
+ element["return"] = '';
908
+ element.value = '';
909
+ }
910
+ }
911
+ };
912
+
913
+ /* eslint-disable no-fallthrough */
914
+
915
+ function prefix(value, length) {
916
+ switch (stylisExports.hash(value, length)) {
917
+ // color-adjust
918
+ case 5103:
919
+ return stylisExports.WEBKIT + 'print-' + value + value;
920
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
921
+
922
+ case 5737:
923
+ case 4201:
924
+ case 3177:
925
+ case 3433:
926
+ case 1641:
927
+ case 4457:
928
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
929
+
930
+ case 5572:
931
+ case 6356:
932
+ case 5844:
933
+ case 3191:
934
+ case 6645:
935
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
936
+
937
+ case 6391:
938
+ case 5879:
939
+ case 5623:
940
+ case 6135:
941
+ case 4599:
942
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
943
+
944
+ case 4215:
945
+ case 6389:
946
+ case 5109:
947
+ case 5365:
948
+ case 5621:
949
+ case 3829:
950
+ return stylisExports.WEBKIT + value + value;
951
+ // appearance, user-select, transform, hyphens, text-size-adjust
952
+
953
+ case 5349:
954
+ case 4246:
955
+ case 4810:
956
+ case 6968:
957
+ case 2756:
958
+ return stylisExports.WEBKIT + value + stylisExports.MOZ + value + stylisExports.MS + value + value;
959
+ // flex, flex-direction
960
+
961
+ case 6828:
962
+ case 4268:
963
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
964
+ // order
965
+
966
+ case 6165:
967
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-' + value + value;
968
+ // align-items
969
+
970
+ case 5187:
971
+ return stylisExports.WEBKIT + value + stylisExports.replace(value, /(\w+).+(:[^]+)/, stylisExports.WEBKIT + 'box-$1$2' + stylisExports.MS + 'flex-$1$2') + value;
972
+ // align-self
973
+
974
+ case 5443:
975
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-item-' + stylisExports.replace(value, /flex-|-self/, '') + value;
976
+ // align-content
977
+
978
+ case 4675:
979
+ return stylisExports.WEBKIT + value + stylisExports.MS + 'flex-line-pack' + stylisExports.replace(value, /align-content|flex-|-self/, '') + value;
980
+ // flex-shrink
981
+
982
+ case 5548:
983
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'shrink', 'negative') + value;
984
+ // flex-basis
985
+
986
+ case 5292:
987
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'basis', 'preferred-size') + value;
988
+ // flex-grow
989
+
990
+ case 6060:
991
+ return stylisExports.WEBKIT + 'box-' + stylisExports.replace(value, '-grow', '') + stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, 'grow', 'positive') + value;
992
+ // transition
993
+
994
+ case 4554:
995
+ return stylisExports.WEBKIT + stylisExports.replace(value, /([^-])(transform)/g, '$1' + stylisExports.WEBKIT + '$2') + value;
996
+ // cursor
997
+
998
+ case 6187:
999
+ return stylisExports.replace(stylisExports.replace(stylisExports.replace(value, /(zoom-|grab)/, stylisExports.WEBKIT + '$1'), /(image-set)/, stylisExports.WEBKIT + '$1'), value, '') + value;
1000
+ // background, background-image
1001
+
1002
+ case 5495:
1003
+ case 3959:
1004
+ return stylisExports.replace(value, /(image-set\([^]*)/, stylisExports.WEBKIT + '$1' + '$`$1');
1005
+ // justify-content
1006
+
1007
+ case 4968:
1008
+ return stylisExports.replace(stylisExports.replace(value, /(.+:)(flex-)?(.*)/, stylisExports.WEBKIT + 'box-pack:$3' + stylisExports.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylisExports.WEBKIT + value + value;
1009
+ // (margin|padding)-inline-(start|end)
1010
+
1011
+ case 4095:
1012
+ case 3583:
1013
+ case 4068:
1014
+ case 2532:
1015
+ return stylisExports.replace(value, /(.+)-inline(.+)/, stylisExports.WEBKIT + '$1$2') + value;
1016
+ // (min|max)?(width|height|inline-size|block-size)
1017
+
1018
+ case 8116:
1019
+ case 7059:
1020
+ case 5753:
1021
+ case 5535:
1022
+ case 5445:
1023
+ case 5701:
1024
+ case 4933:
1025
+ case 4677:
1026
+ case 5533:
1027
+ case 5789:
1028
+ case 5021:
1029
+ case 4765:
1030
+ // stretch, max-content, min-content, fill-available
1031
+ if (stylisExports.strlen(value) - 1 - length > 6) switch (stylisExports.charat(value, length + 1)) {
1032
+ // (m)ax-content, (m)in-content
1033
+ case 109:
1034
+ // -
1035
+ if (stylisExports.charat(value, length + 4) !== 45) break;
1036
+ // (f)ill-available, (f)it-content
1037
+
1038
+ case 102:
1039
+ return stylisExports.replace(value, /(.+:)(.+)-([^]+)/, '$1' + stylisExports.WEBKIT + '$2-$3' + '$1' + stylisExports.MOZ + (stylisExports.charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
1040
+ // (s)tretch
1041
+
1042
+ case 115:
1043
+ return ~stylisExports.indexof(value, 'stretch') ? prefix(stylisExports.replace(value, 'stretch', 'fill-available'), length) + value : value;
1044
+ }
1045
+ break;
1046
+ // position: sticky
1047
+
1048
+ case 4949:
1049
+ // (s)ticky?
1050
+ if (stylisExports.charat(value, length + 1) !== 115) break;
1051
+ // display: (flex|inline-flex)
1052
+
1053
+ case 6444:
1054
+ switch (stylisExports.charat(value, stylisExports.strlen(value) - 3 - (~stylisExports.indexof(value, '!important') && 10))) {
1055
+ // stic(k)y
1056
+ case 107:
1057
+ return stylisExports.replace(value, ':', ':' + stylisExports.WEBKIT) + value;
1058
+ // (inline-)?fl(e)x
1059
+
1060
+ case 101:
1061
+ 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;
1062
+ }
1063
+ break;
1064
+ // writing-mode
1065
+
1066
+ case 5936:
1067
+ switch (stylisExports.charat(value, length + 11)) {
1068
+ // vertical-l(r)
1069
+ case 114:
1070
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
1071
+ // vertical-r(l)
1072
+
1073
+ case 108:
1074
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
1075
+ // horizontal(-)tb
1076
+
1077
+ case 45:
1078
+ return stylisExports.WEBKIT + value + stylisExports.MS + stylisExports.replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
1079
+ }
1080
+ return stylisExports.WEBKIT + value + stylisExports.MS + value + value;
1081
+ }
1082
+ return value;
1083
+ }
1084
+ var prefixer = function prefixer(element, index, children, callback) {
1085
+ if (element.length > -1) if (!element["return"]) switch (element.type) {
1086
+ case stylisExports.DECLARATION:
1087
+ element["return"] = prefix(element.value, element.length);
1088
+ break;
1089
+ case stylisExports.KEYFRAMES:
1090
+ return stylisExports.serialize([stylisExports.copy(element, {
1091
+ value: stylisExports.replace(element.value, '@', '@' + stylisExports.WEBKIT)
1092
+ })], callback);
1093
+ case stylisExports.RULESET:
1094
+ if (element.length) return stylisExports.combine(element.props, function (value) {
1095
+ switch (stylisExports.match(value, /(::plac\w+|:read-\w+)/)) {
1096
+ // :read-(only|write)
1097
+ case ':read-only':
1098
+ case ':read-write':
1099
+ return stylisExports.serialize([stylisExports.copy(element, {
1100
+ props: [stylisExports.replace(value, /:(read-\w+)/, ':' + stylisExports.MOZ + '$1')]
1101
+ })], callback);
1102
+ // :placeholder
1103
+
1104
+ case '::placeholder':
1105
+ return stylisExports.serialize([stylisExports.copy(element, {
1106
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.WEBKIT + 'input-$1')]
1107
+ }), stylisExports.copy(element, {
1108
+ props: [stylisExports.replace(value, /:(plac\w+)/, ':' + stylisExports.MOZ + '$1')]
1109
+ }), stylisExports.copy(element, {
1110
+ props: [stylisExports.replace(value, /:(plac\w+)/, stylisExports.MS + 'input-$1')]
1111
+ })], callback);
1112
+ }
1113
+ return '';
1114
+ });
1115
+ }
1116
+ };
1117
+ var getServerStylisCache = isBrowser$1 ? undefined : weakMemoize(function () {
1118
+ return memoize(function () {
1119
+ return {};
1120
+ });
1121
+ });
1122
+ var defaultStylisPlugins = [prefixer];
1123
+ var createCache = function createCache(options) {
1124
+ var key = options.key;
1125
+ if (isBrowser$1 && key === 'css') {
1126
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1127
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1128
+ // note this very very intentionally targets all style elements regardless of the key to ensure
1129
+ // that creating a cache works inside of render of a React component
1130
+
1131
+ Array.prototype.forEach.call(ssrStyles, function (node) {
1132
+ // we want to only move elements which have a space in the data-emotion attribute value
1133
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
1134
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
1135
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
1136
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
1137
+ // will not result in the Emotion 10 styles being destroyed
1138
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
1139
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
1140
+ return;
1141
+ }
1142
+ document.head.appendChild(node);
1143
+ node.setAttribute('data-s', '');
1144
+ });
1145
+ }
1146
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1147
+ var inserted = {};
1148
+ var container;
1149
+ var nodesToHydrate = [];
1150
+ if (isBrowser$1) {
1151
+ container = options.container || document.head;
1152
+ Array.prototype.forEach.call(
1153
+ // this means we will ignore elements which don't have a space in them which
1154
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1155
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
1156
+ var attrib = node.getAttribute("data-emotion").split(' ');
1157
+ for (var i = 1; i < attrib.length; i++) {
1158
+ inserted[attrib[i]] = true;
1159
+ }
1160
+ nodesToHydrate.push(node);
1161
+ });
1162
+ }
1163
+ var _insert;
1164
+ var omnipresentPlugins = [compat, removeLabel];
1165
+ if (!getServerStylisCache) {
1166
+ var currentSheet;
1167
+ var finalizingPlugins = [stylisExports.stringify, stylisExports.rulesheet(function (rule) {
1168
+ currentSheet.insert(rule);
1169
+ })];
1170
+ var serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1171
+ var stylis = function stylis(styles) {
1172
+ return stylisExports.serialize(stylisExports.compile(styles), serializer);
1173
+ };
1174
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1175
+ currentSheet = sheet;
1176
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1177
+ if (shouldCache) {
1178
+ cache.inserted[serialized.name] = true;
1179
+ }
1180
+ };
1181
+ } else {
1182
+ var _finalizingPlugins = [stylisExports.stringify];
1183
+ var _serializer = stylisExports.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
1184
+ var _stylis = function _stylis(styles) {
1185
+ return stylisExports.serialize(stylisExports.compile(styles), _serializer);
1186
+ };
1187
+ var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
1188
+ var getRules = function getRules(selector, serialized) {
1189
+ var name = serialized.name;
1190
+ if (serverStylisCache[name] === undefined) {
1191
+ serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1192
+ }
1193
+ return serverStylisCache[name];
1194
+ };
1195
+ _insert = function _insert(selector, serialized, sheet, shouldCache) {
1196
+ var name = serialized.name;
1197
+ var rules = getRules(selector, serialized);
1198
+ if (cache.compat === undefined) {
1199
+ // in regular mode, we don't set the styles on the inserted cache
1200
+ // since we don't need to and that would be wasting memory
1201
+ // we return them so that they are rendered in a style tag
1202
+ if (shouldCache) {
1203
+ cache.inserted[name] = true;
1204
+ }
1205
+ return rules;
1206
+ } else {
1207
+ // in compat mode, we put the styles on the inserted cache so
1208
+ // that emotion-server can pull out the styles
1209
+ // except when we don't want to cache it which was in Global but now
1210
+ // is nowhere but we don't want to do a major right now
1211
+ // and just in case we're going to leave the case here
1212
+ // it's also not affecting client side bundle size
1213
+ // so it's really not a big deal
1214
+ if (shouldCache) {
1215
+ cache.inserted[name] = rules;
1216
+ } else {
1217
+ return rules;
1218
+ }
1219
+ }
1220
+ };
1221
+ }
1222
+ var cache = {
1223
+ key: key,
1224
+ sheet: new StyleSheet({
1225
+ key: key,
1226
+ container: container,
1227
+ nonce: options.nonce,
1228
+ speedy: options.speedy,
1229
+ prepend: options.prepend,
1230
+ insertionPoint: options.insertionPoint
1231
+ }),
1232
+ nonce: options.nonce,
1233
+ inserted: inserted,
1234
+ registered: {},
1235
+ insert: _insert
1236
+ };
1237
+ cache.sheet.hydrate(nodesToHydrate);
1238
+ return cache;
72
1239
  };
73
- var StyledAnimation = styled__default.default.div(function (_a) {
74
- var variant = _a.variant, _b = _a.show, show = _b === void 0 ? false : _b, _c = _a.css, styleCss = _c === void 0 ? {} : _c;
75
- var Animation = show ? getAnimationPropsFromVariant(variant) : '';
76
- return styled.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n animation-duration: 1s;\n animation-fill-mode: both;\n ", "\n ", ";\n "], ["\n animation-duration: 1s;\n animation-fill-mode: both;\n ", "\n ", ";\n "])), Animation, styleCss);
1240
+
1241
+ /* eslint-disable */
1242
+ // Inspired by https://github.com/garycourt/murmurhash-js
1243
+ // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
1244
+ function murmur2(str) {
1245
+ // 'm' and 'r' are mixing constants generated offline.
1246
+ // They're not really 'magic', they just happen to work well.
1247
+ // const m = 0x5bd1e995;
1248
+ // const r = 24;
1249
+ // Initialize the hash
1250
+ var h = 0; // Mix 4 bytes at a time into the hash
1251
+
1252
+ var k,
1253
+ i = 0,
1254
+ len = str.length;
1255
+ for (; len >= 4; ++i, len -= 4) {
1256
+ k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
1257
+ k = /* Math.imul(k, m): */
1258
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
1259
+ k ^= /* k >>> r: */
1260
+ k >>> 24;
1261
+ h = /* Math.imul(k, m): */
1262
+ (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */
1263
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1264
+ } // Handle the last few bytes of the input array
1265
+
1266
+ switch (len) {
1267
+ case 3:
1268
+ h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
1269
+ case 2:
1270
+ h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
1271
+ case 1:
1272
+ h ^= str.charCodeAt(i) & 0xff;
1273
+ h = /* Math.imul(h, m): */
1274
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1275
+ } // Do a few final mixes of the hash to ensure the last few
1276
+ // bytes are well-incorporated.
1277
+
1278
+ h ^= h >>> 13;
1279
+ h = /* Math.imul(h, m): */
1280
+ (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
1281
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1282
+ }
1283
+
1284
+ var unitlessKeys = {
1285
+ animationIterationCount: 1,
1286
+ aspectRatio: 1,
1287
+ borderImageOutset: 1,
1288
+ borderImageSlice: 1,
1289
+ borderImageWidth: 1,
1290
+ boxFlex: 1,
1291
+ boxFlexGroup: 1,
1292
+ boxOrdinalGroup: 1,
1293
+ columnCount: 1,
1294
+ columns: 1,
1295
+ flex: 1,
1296
+ flexGrow: 1,
1297
+ flexPositive: 1,
1298
+ flexShrink: 1,
1299
+ flexNegative: 1,
1300
+ flexOrder: 1,
1301
+ gridRow: 1,
1302
+ gridRowEnd: 1,
1303
+ gridRowSpan: 1,
1304
+ gridRowStart: 1,
1305
+ gridColumn: 1,
1306
+ gridColumnEnd: 1,
1307
+ gridColumnSpan: 1,
1308
+ gridColumnStart: 1,
1309
+ msGridRow: 1,
1310
+ msGridRowSpan: 1,
1311
+ msGridColumn: 1,
1312
+ msGridColumnSpan: 1,
1313
+ fontWeight: 1,
1314
+ lineHeight: 1,
1315
+ opacity: 1,
1316
+ order: 1,
1317
+ orphans: 1,
1318
+ scale: 1,
1319
+ tabSize: 1,
1320
+ widows: 1,
1321
+ zIndex: 1,
1322
+ zoom: 1,
1323
+ WebkitLineClamp: 1,
1324
+ // SVG-related properties
1325
+ fillOpacity: 1,
1326
+ floodOpacity: 1,
1327
+ stopOpacity: 1,
1328
+ strokeDasharray: 1,
1329
+ strokeDashoffset: 1,
1330
+ strokeMiterlimit: 1,
1331
+ strokeOpacity: 1,
1332
+ strokeWidth: 1
1333
+ };
1334
+
1335
+ var isDevelopment = false;
1336
+ var hyphenateRegex = /[A-Z]|^ms/g;
1337
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1338
+ var isCustomProperty = function isCustomProperty(property) {
1339
+ return property.charCodeAt(1) === 45;
1340
+ };
1341
+ var isProcessableValue = function isProcessableValue(value) {
1342
+ return value != null && typeof value !== 'boolean';
1343
+ };
1344
+ var processStyleName = /* #__PURE__ */memoize(function (styleName) {
1345
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
77
1346
  });
78
- var templateObject_1, templateObject_2, templateObject_3;
1347
+ var processStyleValue = function processStyleValue(key, value) {
1348
+ switch (key) {
1349
+ case 'animation':
1350
+ case 'animationName':
1351
+ {
1352
+ if (typeof value === 'string') {
1353
+ return value.replace(animationRegex, function (match, p1, p2) {
1354
+ cursor = {
1355
+ name: p1,
1356
+ styles: p2,
1357
+ next: cursor
1358
+ };
1359
+ return p1;
1360
+ });
1361
+ }
1362
+ }
1363
+ }
1364
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
1365
+ return value + 'px';
1366
+ }
1367
+ return value;
1368
+ };
1369
+ var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
1370
+ function handleInterpolation(mergedProps, registered, interpolation) {
1371
+ if (interpolation == null) {
1372
+ return '';
1373
+ }
1374
+ var componentSelector = interpolation;
1375
+ if (componentSelector.__emotion_styles !== undefined) {
1376
+ return componentSelector;
1377
+ }
1378
+ switch (typeof interpolation) {
1379
+ case 'boolean':
1380
+ {
1381
+ return '';
1382
+ }
1383
+ case 'object':
1384
+ {
1385
+ var keyframes = interpolation;
1386
+ if (keyframes.anim === 1) {
1387
+ cursor = {
1388
+ name: keyframes.name,
1389
+ styles: keyframes.styles,
1390
+ next: cursor
1391
+ };
1392
+ return keyframes.name;
1393
+ }
1394
+ var serializedStyles = interpolation;
1395
+ if (serializedStyles.styles !== undefined) {
1396
+ var next = serializedStyles.next;
1397
+ if (next !== undefined) {
1398
+ // not the most efficient thing ever but this is a pretty rare case
1399
+ // and there will be very few iterations of this generally
1400
+ while (next !== undefined) {
1401
+ cursor = {
1402
+ name: next.name,
1403
+ styles: next.styles,
1404
+ next: cursor
1405
+ };
1406
+ next = next.next;
1407
+ }
1408
+ }
1409
+ var styles = serializedStyles.styles + ";";
1410
+ return styles;
1411
+ }
1412
+ return createStringFromObject(mergedProps, registered, interpolation);
1413
+ }
1414
+ case 'function':
1415
+ {
1416
+ if (mergedProps !== undefined) {
1417
+ var previousCursor = cursor;
1418
+ var result = interpolation(mergedProps);
1419
+ cursor = previousCursor;
1420
+ return handleInterpolation(mergedProps, registered, result);
1421
+ }
1422
+ break;
1423
+ }
1424
+ } // finalize string values (regular strings and functions interpolated into css calls)
1425
+
1426
+ var asString = interpolation;
1427
+ if (registered == null) {
1428
+ return asString;
1429
+ }
1430
+ var cached = registered[asString];
1431
+ return cached !== undefined ? cached : asString;
1432
+ }
1433
+ function createStringFromObject(mergedProps, registered, obj) {
1434
+ var string = '';
1435
+ if (Array.isArray(obj)) {
1436
+ for (var i = 0; i < obj.length; i++) {
1437
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1438
+ }
1439
+ } else {
1440
+ for (var key in obj) {
1441
+ var value = obj[key];
1442
+ if (typeof value !== 'object') {
1443
+ var asString = value;
1444
+ if (registered != null && registered[asString] !== undefined) {
1445
+ string += key + "{" + registered[asString] + "}";
1446
+ } else if (isProcessableValue(asString)) {
1447
+ string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
1448
+ }
1449
+ } else {
1450
+ if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {
1451
+ throw new Error(noComponentSelectorMessage);
1452
+ }
1453
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
1454
+ for (var _i = 0; _i < value.length; _i++) {
1455
+ if (isProcessableValue(value[_i])) {
1456
+ string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
1457
+ }
1458
+ }
1459
+ } else {
1460
+ var interpolated = handleInterpolation(mergedProps, registered, value);
1461
+ switch (key) {
1462
+ case 'animation':
1463
+ case 'animationName':
1464
+ {
1465
+ string += processStyleName(key) + ":" + interpolated + ";";
1466
+ break;
1467
+ }
1468
+ default:
1469
+ {
1470
+ string += key + "{" + interpolated + "}";
1471
+ }
1472
+ }
1473
+ }
1474
+ }
1475
+ }
1476
+ }
1477
+ return string;
1478
+ }
1479
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
1480
+ // keyframes are stored on the SerializedStyles object as a linked list
1481
+
1482
+ var cursor;
1483
+ function serializeStyles(args, registered, mergedProps) {
1484
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
1485
+ return args[0];
1486
+ }
1487
+ var stringMode = true;
1488
+ var styles = '';
1489
+ cursor = undefined;
1490
+ var strings = args[0];
1491
+ if (strings == null || strings.raw === undefined) {
1492
+ stringMode = false;
1493
+ styles += handleInterpolation(mergedProps, registered, strings);
1494
+ } else {
1495
+ var asTemplateStringsArr = strings;
1496
+ styles += asTemplateStringsArr[0];
1497
+ } // we start at 1 since we've already handled the first arg
1498
+
1499
+ for (var i = 1; i < args.length; i++) {
1500
+ styles += handleInterpolation(mergedProps, registered, args[i]);
1501
+ if (stringMode) {
1502
+ var templateStringsArr = strings;
1503
+ styles += templateStringsArr[i];
1504
+ }
1505
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
1506
+
1507
+ labelPattern.lastIndex = 0;
1508
+ var identifierName = '';
1509
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
1510
+
1511
+ while ((match = labelPattern.exec(styles)) !== null) {
1512
+ identifierName += '-' + match[1];
1513
+ }
1514
+ var name = murmur2(styles) + identifierName;
1515
+ return {
1516
+ name: name,
1517
+ styles: styles,
1518
+ next: cursor
1519
+ };
1520
+ }
1521
+
1522
+ var isBrowser = typeof document !== 'undefined';
1523
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1524
+ var rawClassName = '';
1525
+ classNames.split(' ').forEach(function (className) {
1526
+ if (registered[className] !== undefined) {
1527
+ registeredStyles.push(registered[className] + ";");
1528
+ } else if (className) {
1529
+ rawClassName += className + " ";
1530
+ }
1531
+ });
1532
+ return rawClassName;
1533
+ }
1534
+ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
1535
+ var className = cache.key + "-" + serialized.name;
1536
+ if (
1537
+ // we only need to add the styles to the registered cache if the
1538
+ // class name could be used further down
1539
+ // the tree but if it's a string tag, we know it won't
1540
+ // so we don't have to add it to registered cache.
1541
+ // this improves memory usage since we can avoid storing the whole style string
1542
+ (isStringTag === false ||
1543
+ // we need to always store it if we're in compat mode and
1544
+ // in node since emotion-server relies on whether a style is in
1545
+ // the registered cache to know whether a style is global or not
1546
+ // also, note that this check will be dead code eliminated in the browser
1547
+ isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
1548
+ cache.registered[className] = serialized.styles;
1549
+ }
1550
+ };
1551
+ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
1552
+ registerStyles(cache, serialized, isStringTag);
1553
+ var className = cache.key + "-" + serialized.name;
1554
+ if (cache.inserted[serialized.name] === undefined) {
1555
+ var stylesForSSR = '';
1556
+ var current = serialized;
1557
+ do {
1558
+ var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
1559
+ if (!isBrowser && maybeStyles !== undefined) {
1560
+ stylesForSSR += maybeStyles;
1561
+ }
1562
+ current = current.next;
1563
+ } while (current !== undefined);
1564
+ if (!isBrowser && stylesForSSR.length !== 0) {
1565
+ return stylesForSSR;
1566
+ }
1567
+ }
1568
+ };
1569
+
1570
+ function insertWithoutScoping(cache, serialized) {
1571
+ if (cache.inserted[serialized.name] === undefined) {
1572
+ return cache.insert('', serialized, cache.sheet, true);
1573
+ }
1574
+ }
1575
+ function merge(registered, css, className) {
1576
+ var registeredStyles = [];
1577
+ var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
1578
+ if (registeredStyles.length < 2) {
1579
+ return className;
1580
+ }
1581
+ return rawClassName + css(registeredStyles);
1582
+ }
1583
+ var createEmotion = function createEmotion(options) {
1584
+ var cache = createCache(options);
1585
+ cache.sheet.speedy = function (value) {
1586
+ this.isSpeedy = value;
1587
+ };
1588
+ cache.compat = true;
1589
+ var css = function css() {
1590
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1591
+ args[_key] = arguments[_key];
1592
+ }
1593
+ var serialized = serializeStyles(args, cache.registered, undefined);
1594
+ insertStyles(cache, serialized, false);
1595
+ return cache.key + "-" + serialized.name;
1596
+ };
1597
+ var keyframes = function keyframes() {
1598
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1599
+ args[_key2] = arguments[_key2];
1600
+ }
1601
+ var serialized = serializeStyles(args, cache.registered);
1602
+ var animation = "animation-" + serialized.name;
1603
+ insertWithoutScoping(cache, {
1604
+ name: serialized.name,
1605
+ styles: "@keyframes " + animation + "{" + serialized.styles + "}"
1606
+ });
1607
+ return animation;
1608
+ };
1609
+ var injectGlobal = function injectGlobal() {
1610
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1611
+ args[_key3] = arguments[_key3];
1612
+ }
1613
+ var serialized = serializeStyles(args, cache.registered);
1614
+ insertWithoutScoping(cache, serialized);
1615
+ };
1616
+ var cx = function cx() {
1617
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
1618
+ args[_key4] = arguments[_key4];
1619
+ }
1620
+ return merge(cache.registered, css, classnames(args));
1621
+ };
1622
+ return {
1623
+ css: css,
1624
+ cx: cx,
1625
+ injectGlobal: injectGlobal,
1626
+ keyframes: keyframes,
1627
+ hydrate: function hydrate(ids) {
1628
+ ids.forEach(function (key) {
1629
+ cache.inserted[key] = true;
1630
+ });
1631
+ },
1632
+ flush: function flush() {
1633
+ cache.registered = {};
1634
+ cache.inserted = {};
1635
+ cache.sheet.flush();
1636
+ },
1637
+ sheet: cache.sheet,
1638
+ cache: cache,
1639
+ getRegisteredStyles: getRegisteredStyles.bind(null, cache.registered),
1640
+ merge: merge.bind(null, cache.registered, css)
1641
+ };
1642
+ };
1643
+ var classnames = function classnames(args) {
1644
+ var cls = '';
1645
+ for (var i = 0; i < args.length; i++) {
1646
+ var arg = args[i];
1647
+ if (arg == null) continue;
1648
+ var toAdd = void 0;
1649
+ switch (typeof arg) {
1650
+ case 'boolean':
1651
+ break;
1652
+ case 'object':
1653
+ {
1654
+ if (Array.isArray(arg)) {
1655
+ toAdd = classnames(arg);
1656
+ } else {
1657
+ toAdd = '';
1658
+ for (var k in arg) {
1659
+ if (arg[k] && k) {
1660
+ toAdd && (toAdd += ' ');
1661
+ toAdd += k;
1662
+ }
1663
+ }
1664
+ }
1665
+ break;
1666
+ }
1667
+ default:
1668
+ {
1669
+ toAdd = arg;
1670
+ }
1671
+ }
1672
+ if (toAdd) {
1673
+ cls && (cls += ' ');
1674
+ cls += toAdd;
1675
+ }
1676
+ }
1677
+ return cls;
1678
+ };
1679
+
1680
+ var _createEmotion = createEmotion({
1681
+ key: 'css'
1682
+ }),
1683
+ keyframes = _createEmotion.keyframes,
1684
+ css = _createEmotion.css;
1685
+
1686
+ const shakeKeyFrame = keyframes `
1687
+ 10%,
1688
+ 90% {
1689
+ transform: translate3d(-1px, 0, 0);
1690
+ }
1691
+
1692
+ 20%,
1693
+ 80% {
1694
+ transform: translate3d(2px, 0, 0);
1695
+ }
1696
+
1697
+ 30%,
1698
+ 50%,
1699
+ 70% {
1700
+ transform: translate3d(-4px, 0, 0);
1701
+ }
79
1702
 
80
- var Shake = function (_a) {
81
- var children = _a.children, animate = _a.animate, styleConfig = _a.styleConfig;
82
- var _b = (styleConfig !== null && styleConfig !== void 0 ? styleConfig : {}).root, root = _b === void 0 ? {} : _b;
83
- return (jsxRuntime.jsx(StyledAnimation, __assign({ css: root === null || root === void 0 ? void 0 : root.css, variant: exports.AnimationVariant.SHAKE, show: animate }, { children: children })));
1703
+ 40%,
1704
+ 60% {
1705
+ transform: translate3d(4px, 0, 0);
1706
+ }
1707
+ `;
1708
+
1709
+ const shakeClassName = css `
1710
+ animation-duration: 1s;
1711
+ animation-fill-mode: both;
1712
+ animation: ${shakeKeyFrame} 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
1713
+ transform: translate3d(0, 0, 0);
1714
+ backface-visibility: hidden;
1715
+ perspective: 1000px;
1716
+ `;
1717
+ const Shake = ({ children, styleConfig }) => {
1718
+ const { root = [] } = styleConfig !== null && styleConfig !== void 0 ? styleConfig : {};
1719
+ const rootClassName = ctDesignStyleManager.useWebMergeStyles([...root, shakeClassName], [root, shakeClassName]);
1720
+ return jsxRuntime.jsx("div", { className: rootClassName, children: children });
84
1721
  };
85
1722
 
86
- var Animate = function (_a) {
87
- var variant = _a.variant, props = __rest(_a, ["variant"]);
1723
+ exports.AnimationVariant = void 0;
1724
+ (function (AnimationVariant) {
1725
+ AnimationVariant["SHAKE"] = "SHAKE";
1726
+ })(exports.AnimationVariant || (exports.AnimationVariant = {}));
1727
+
1728
+ const Animate = (_a) => {
1729
+ var { variant } = _a, props = __rest(_a, ["variant"]);
88
1730
  switch (variant) {
89
1731
  case exports.AnimationVariant.SHAKE:
90
- return jsxRuntime.jsx(Shake, __assign({}, props));
1732
+ return jsxRuntime.jsx(Shake, Object.assign({}, props));
91
1733
  default:
92
1734
  return jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.children });
93
1735
  }