@ceed/ads 0.0.26 → 0.0.27

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.
@@ -0,0 +1,1787 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from2, except, desc) => {
11
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
12
+ for (let key of __getOwnPropNames(from2))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // ../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
28
+ var require_react_is_development = __commonJS({
29
+ "../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"(exports) {
30
+ "use strict";
31
+ if (true) {
32
+ (function() {
33
+ "use strict";
34
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
35
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
36
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
37
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
38
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
39
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
40
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
41
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
42
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
43
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
44
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
45
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
46
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
47
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
48
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
49
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
50
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
51
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
52
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
53
+ function isValidElementType(type) {
54
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
55
+ 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);
56
+ }
57
+ function typeOf(object) {
58
+ if (typeof object === "object" && object !== null) {
59
+ var $$typeof = object.$$typeof;
60
+ switch ($$typeof) {
61
+ case REACT_ELEMENT_TYPE:
62
+ var type = object.type;
63
+ switch (type) {
64
+ case REACT_ASYNC_MODE_TYPE:
65
+ case REACT_CONCURRENT_MODE_TYPE:
66
+ case REACT_FRAGMENT_TYPE:
67
+ case REACT_PROFILER_TYPE:
68
+ case REACT_STRICT_MODE_TYPE:
69
+ case REACT_SUSPENSE_TYPE:
70
+ return type;
71
+ default:
72
+ var $$typeofType = type && type.$$typeof;
73
+ switch ($$typeofType) {
74
+ case REACT_CONTEXT_TYPE:
75
+ case REACT_FORWARD_REF_TYPE:
76
+ case REACT_LAZY_TYPE:
77
+ case REACT_MEMO_TYPE:
78
+ case REACT_PROVIDER_TYPE:
79
+ return $$typeofType;
80
+ default:
81
+ return $$typeof;
82
+ }
83
+ }
84
+ case REACT_PORTAL_TYPE:
85
+ return $$typeof;
86
+ }
87
+ }
88
+ return void 0;
89
+ }
90
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
91
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
92
+ var ContextConsumer = REACT_CONTEXT_TYPE;
93
+ var ContextProvider = REACT_PROVIDER_TYPE;
94
+ var Element = REACT_ELEMENT_TYPE;
95
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
96
+ var Fragment4 = REACT_FRAGMENT_TYPE;
97
+ var Lazy = REACT_LAZY_TYPE;
98
+ var Memo = REACT_MEMO_TYPE;
99
+ var Portal = REACT_PORTAL_TYPE;
100
+ var Profiler = REACT_PROFILER_TYPE;
101
+ var StrictMode = REACT_STRICT_MODE_TYPE;
102
+ var Suspense = REACT_SUSPENSE_TYPE;
103
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
104
+ function isAsyncMode(object) {
105
+ {
106
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
107
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
108
+ 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.");
109
+ }
110
+ }
111
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
112
+ }
113
+ function isConcurrentMode(object) {
114
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
115
+ }
116
+ function isContextConsumer(object) {
117
+ return typeOf(object) === REACT_CONTEXT_TYPE;
118
+ }
119
+ function isContextProvider(object) {
120
+ return typeOf(object) === REACT_PROVIDER_TYPE;
121
+ }
122
+ function isElement(object) {
123
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
124
+ }
125
+ function isForwardRef(object) {
126
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
127
+ }
128
+ function isFragment(object) {
129
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
130
+ }
131
+ function isLazy(object) {
132
+ return typeOf(object) === REACT_LAZY_TYPE;
133
+ }
134
+ function isMemo(object) {
135
+ return typeOf(object) === REACT_MEMO_TYPE;
136
+ }
137
+ function isPortal(object) {
138
+ return typeOf(object) === REACT_PORTAL_TYPE;
139
+ }
140
+ function isProfiler(object) {
141
+ return typeOf(object) === REACT_PROFILER_TYPE;
142
+ }
143
+ function isStrictMode(object) {
144
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
145
+ }
146
+ function isSuspense(object) {
147
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
148
+ }
149
+ exports.AsyncMode = AsyncMode;
150
+ exports.ConcurrentMode = ConcurrentMode;
151
+ exports.ContextConsumer = ContextConsumer;
152
+ exports.ContextProvider = ContextProvider;
153
+ exports.Element = Element;
154
+ exports.ForwardRef = ForwardRef;
155
+ exports.Fragment = Fragment4;
156
+ exports.Lazy = Lazy;
157
+ exports.Memo = Memo;
158
+ exports.Portal = Portal;
159
+ exports.Profiler = Profiler;
160
+ exports.StrictMode = StrictMode;
161
+ exports.Suspense = Suspense;
162
+ exports.isAsyncMode = isAsyncMode;
163
+ exports.isConcurrentMode = isConcurrentMode;
164
+ exports.isContextConsumer = isContextConsumer;
165
+ exports.isContextProvider = isContextProvider;
166
+ exports.isElement = isElement;
167
+ exports.isForwardRef = isForwardRef;
168
+ exports.isFragment = isFragment;
169
+ exports.isLazy = isLazy;
170
+ exports.isMemo = isMemo;
171
+ exports.isPortal = isPortal;
172
+ exports.isProfiler = isProfiler;
173
+ exports.isStrictMode = isStrictMode;
174
+ exports.isSuspense = isSuspense;
175
+ exports.isValidElementType = isValidElementType;
176
+ exports.typeOf = typeOf;
177
+ })();
178
+ }
179
+ }
180
+ });
181
+
182
+ // ../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js
183
+ var require_react_is = __commonJS({
184
+ "../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js"(exports, module) {
185
+ "use strict";
186
+ if (false) {
187
+ module.exports = null;
188
+ } else {
189
+ module.exports = require_react_is_development();
190
+ }
191
+ }
192
+ });
193
+
194
+ // ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
195
+ var require_hoist_non_react_statics_cjs = __commonJS({
196
+ "../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
197
+ "use strict";
198
+ var reactIs = require_react_is();
199
+ var REACT_STATICS = {
200
+ childContextTypes: true,
201
+ contextType: true,
202
+ contextTypes: true,
203
+ defaultProps: true,
204
+ displayName: true,
205
+ getDefaultProps: true,
206
+ getDerivedStateFromError: true,
207
+ getDerivedStateFromProps: true,
208
+ mixins: true,
209
+ propTypes: true,
210
+ type: true
211
+ };
212
+ var KNOWN_STATICS = {
213
+ name: true,
214
+ length: true,
215
+ prototype: true,
216
+ caller: true,
217
+ callee: true,
218
+ arguments: true,
219
+ arity: true
220
+ };
221
+ var FORWARD_REF_STATICS = {
222
+ "$$typeof": true,
223
+ render: true,
224
+ defaultProps: true,
225
+ displayName: true,
226
+ propTypes: true
227
+ };
228
+ var MEMO_STATICS = {
229
+ "$$typeof": true,
230
+ compare: true,
231
+ defaultProps: true,
232
+ displayName: true,
233
+ propTypes: true,
234
+ type: true
235
+ };
236
+ var TYPE_STATICS = {};
237
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
238
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
239
+ function getStatics(component) {
240
+ if (reactIs.isMemo(component)) {
241
+ return MEMO_STATICS;
242
+ }
243
+ return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
244
+ }
245
+ var defineProperty = Object.defineProperty;
246
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
247
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
248
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
249
+ var getPrototypeOf = Object.getPrototypeOf;
250
+ var objectPrototype = Object.prototype;
251
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
252
+ if (typeof sourceComponent !== "string") {
253
+ if (objectPrototype) {
254
+ var inheritedComponent = getPrototypeOf(sourceComponent);
255
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
256
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
257
+ }
258
+ }
259
+ var keys = getOwnPropertyNames(sourceComponent);
260
+ if (getOwnPropertySymbols) {
261
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
262
+ }
263
+ var targetStatics = getStatics(targetComponent);
264
+ var sourceStatics = getStatics(sourceComponent);
265
+ for (var i = 0; i < keys.length; ++i) {
266
+ var key = keys[i];
267
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
268
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
269
+ try {
270
+ defineProperty(targetComponent, key, descriptor);
271
+ } catch (e) {
272
+ }
273
+ }
274
+ }
275
+ }
276
+ return targetComponent;
277
+ }
278
+ module.exports = hoistNonReactStatics;
279
+ }
280
+ });
281
+
282
+ // framer-components.tsx
283
+ import { addPropertyControls } from "framer";
284
+ import { useState } from "react";
285
+ import * as ADS from "https://www.unpkg.com/@ceed/ads@latest/framer";
286
+
287
+ // ../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js
288
+ import * as ReactJSXRuntime from "react/jsx-runtime";
289
+
290
+ // ../../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js
291
+ import * as React2 from "react";
292
+ import { useContext as useContext2, forwardRef as forwardRef2 } from "react";
293
+
294
+ // ../../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
295
+ function sheetForTag(tag) {
296
+ if (tag.sheet) {
297
+ return tag.sheet;
298
+ }
299
+ for (var i = 0; i < document.styleSheets.length; i++) {
300
+ if (document.styleSheets[i].ownerNode === tag) {
301
+ return document.styleSheets[i];
302
+ }
303
+ }
304
+ }
305
+ function createStyleElement(options) {
306
+ var tag = document.createElement("style");
307
+ tag.setAttribute("data-emotion", options.key);
308
+ if (options.nonce !== void 0) {
309
+ tag.setAttribute("nonce", options.nonce);
310
+ }
311
+ tag.appendChild(document.createTextNode(""));
312
+ tag.setAttribute("data-s", "");
313
+ return tag;
314
+ }
315
+ var StyleSheet = /* @__PURE__ */ function() {
316
+ function StyleSheet2(options) {
317
+ var _this = this;
318
+ this._insertTag = function(tag) {
319
+ var before;
320
+ if (_this.tags.length === 0) {
321
+ if (_this.insertionPoint) {
322
+ before = _this.insertionPoint.nextSibling;
323
+ } else if (_this.prepend) {
324
+ before = _this.container.firstChild;
325
+ } else {
326
+ before = _this.before;
327
+ }
328
+ } else {
329
+ before = _this.tags[_this.tags.length - 1].nextSibling;
330
+ }
331
+ _this.container.insertBefore(tag, before);
332
+ _this.tags.push(tag);
333
+ };
334
+ this.isSpeedy = options.speedy === void 0 ? false : options.speedy;
335
+ this.tags = [];
336
+ this.ctr = 0;
337
+ this.nonce = options.nonce;
338
+ this.key = options.key;
339
+ this.container = options.container;
340
+ this.prepend = options.prepend;
341
+ this.insertionPoint = options.insertionPoint;
342
+ this.before = null;
343
+ }
344
+ var _proto = StyleSheet2.prototype;
345
+ _proto.hydrate = function hydrate(nodes) {
346
+ nodes.forEach(this._insertTag);
347
+ };
348
+ _proto.insert = function insert(rule) {
349
+ if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
350
+ this._insertTag(createStyleElement(this));
351
+ }
352
+ var tag = this.tags[this.tags.length - 1];
353
+ if (true) {
354
+ var isImportRule3 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
355
+ if (isImportRule3 && this._alreadyInsertedOrderInsensitiveRule) {
356
+ 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.");
357
+ }
358
+ this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule3;
359
+ }
360
+ if (this.isSpeedy) {
361
+ var sheet = sheetForTag(tag);
362
+ try {
363
+ sheet.insertRule(rule, sheet.cssRules.length);
364
+ } catch (e) {
365
+ if (!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
366
+ console.error('There was a problem inserting the following rule: "' + rule + '"', e);
367
+ }
368
+ }
369
+ } else {
370
+ tag.appendChild(document.createTextNode(rule));
371
+ }
372
+ this.ctr++;
373
+ };
374
+ _proto.flush = function flush() {
375
+ this.tags.forEach(function(tag) {
376
+ return tag.parentNode && tag.parentNode.removeChild(tag);
377
+ });
378
+ this.tags = [];
379
+ this.ctr = 0;
380
+ if (true) {
381
+ this._alreadyInsertedOrderInsensitiveRule = false;
382
+ }
383
+ };
384
+ return StyleSheet2;
385
+ }();
386
+
387
+ // ../../node_modules/stylis/src/Enum.js
388
+ var MS = "-ms-";
389
+ var MOZ = "-moz-";
390
+ var WEBKIT = "-webkit-";
391
+ var COMMENT = "comm";
392
+ var RULESET = "rule";
393
+ var DECLARATION = "decl";
394
+ var IMPORT = "@import";
395
+ var KEYFRAMES = "@keyframes";
396
+ var LAYER = "@layer";
397
+
398
+ // ../../node_modules/stylis/src/Utility.js
399
+ var abs = Math.abs;
400
+ var from = String.fromCharCode;
401
+ var assign = Object.assign;
402
+ function hash(value, length2) {
403
+ return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
404
+ }
405
+ function trim(value) {
406
+ return value.trim();
407
+ }
408
+ function match(value, pattern) {
409
+ return (value = pattern.exec(value)) ? value[0] : value;
410
+ }
411
+ function replace(value, pattern, replacement) {
412
+ return value.replace(pattern, replacement);
413
+ }
414
+ function indexof(value, search) {
415
+ return value.indexOf(search);
416
+ }
417
+ function charat(value, index) {
418
+ return value.charCodeAt(index) | 0;
419
+ }
420
+ function substr(value, begin, end) {
421
+ return value.slice(begin, end);
422
+ }
423
+ function strlen(value) {
424
+ return value.length;
425
+ }
426
+ function sizeof(value) {
427
+ return value.length;
428
+ }
429
+ function append(value, array) {
430
+ return array.push(value), value;
431
+ }
432
+ function combine(array, callback) {
433
+ return array.map(callback).join("");
434
+ }
435
+
436
+ // ../../node_modules/stylis/src/Tokenizer.js
437
+ var line = 1;
438
+ var column = 1;
439
+ var length = 0;
440
+ var position = 0;
441
+ var character = 0;
442
+ var characters = "";
443
+ function node(value, root, parent, type, props, children, length2) {
444
+ return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
445
+ }
446
+ function copy(root, props) {
447
+ return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
448
+ }
449
+ function char() {
450
+ return character;
451
+ }
452
+ function prev() {
453
+ character = position > 0 ? charat(characters, --position) : 0;
454
+ if (column--, character === 10)
455
+ column = 1, line--;
456
+ return character;
457
+ }
458
+ function next() {
459
+ character = position < length ? charat(characters, position++) : 0;
460
+ if (column++, character === 10)
461
+ column = 1, line++;
462
+ return character;
463
+ }
464
+ function peek() {
465
+ return charat(characters, position);
466
+ }
467
+ function caret() {
468
+ return position;
469
+ }
470
+ function slice(begin, end) {
471
+ return substr(characters, begin, end);
472
+ }
473
+ function token(type) {
474
+ switch (type) {
475
+ case 0:
476
+ case 9:
477
+ case 10:
478
+ case 13:
479
+ case 32:
480
+ return 5;
481
+ case 33:
482
+ case 43:
483
+ case 44:
484
+ case 47:
485
+ case 62:
486
+ case 64:
487
+ case 126:
488
+ case 59:
489
+ case 123:
490
+ case 125:
491
+ return 4;
492
+ case 58:
493
+ return 3;
494
+ case 34:
495
+ case 39:
496
+ case 40:
497
+ case 91:
498
+ return 2;
499
+ case 41:
500
+ case 93:
501
+ return 1;
502
+ }
503
+ return 0;
504
+ }
505
+ function alloc(value) {
506
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
507
+ }
508
+ function dealloc(value) {
509
+ return characters = "", value;
510
+ }
511
+ function delimit(type) {
512
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
513
+ }
514
+ function whitespace(type) {
515
+ while (character = peek())
516
+ if (character < 33)
517
+ next();
518
+ else
519
+ break;
520
+ return token(type) > 2 || token(character) > 3 ? "" : " ";
521
+ }
522
+ function escaping(index, count) {
523
+ while (--count && next())
524
+ if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
525
+ break;
526
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
527
+ }
528
+ function delimiter(type) {
529
+ while (next())
530
+ switch (character) {
531
+ case type:
532
+ return position;
533
+ case 34:
534
+ case 39:
535
+ if (type !== 34 && type !== 39)
536
+ delimiter(character);
537
+ break;
538
+ case 40:
539
+ if (type === 41)
540
+ delimiter(type);
541
+ break;
542
+ case 92:
543
+ next();
544
+ break;
545
+ }
546
+ return position;
547
+ }
548
+ function commenter(type, index) {
549
+ while (next())
550
+ if (type + character === 47 + 10)
551
+ break;
552
+ else if (type + character === 42 + 42 && peek() === 47)
553
+ break;
554
+ return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
555
+ }
556
+ function identifier(index) {
557
+ while (!token(peek()))
558
+ next();
559
+ return slice(index, position);
560
+ }
561
+
562
+ // ../../node_modules/stylis/src/Parser.js
563
+ function compile(value) {
564
+ return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
565
+ }
566
+ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
567
+ var index = 0;
568
+ var offset = 0;
569
+ var length2 = pseudo;
570
+ var atrule = 0;
571
+ var property = 0;
572
+ var previous = 0;
573
+ var variable = 1;
574
+ var scanning = 1;
575
+ var ampersand = 1;
576
+ var character2 = 0;
577
+ var type = "";
578
+ var props = rules;
579
+ var children = rulesets;
580
+ var reference = rule;
581
+ var characters2 = type;
582
+ while (scanning)
583
+ switch (previous = character2, character2 = next()) {
584
+ case 40:
585
+ if (previous != 108 && charat(characters2, length2 - 1) == 58) {
586
+ if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
587
+ ampersand = -1;
588
+ break;
589
+ }
590
+ case 34:
591
+ case 39:
592
+ case 91:
593
+ characters2 += delimit(character2);
594
+ break;
595
+ case 9:
596
+ case 10:
597
+ case 13:
598
+ case 32:
599
+ characters2 += whitespace(previous);
600
+ break;
601
+ case 92:
602
+ characters2 += escaping(caret() - 1, 7);
603
+ continue;
604
+ case 47:
605
+ switch (peek()) {
606
+ case 42:
607
+ case 47:
608
+ append(comment(commenter(next(), caret()), root, parent), declarations);
609
+ break;
610
+ default:
611
+ characters2 += "/";
612
+ }
613
+ break;
614
+ case 123 * variable:
615
+ points[index++] = strlen(characters2) * ampersand;
616
+ case 125 * variable:
617
+ case 59:
618
+ case 0:
619
+ switch (character2) {
620
+ case 0:
621
+ case 125:
622
+ scanning = 0;
623
+ case 59 + offset:
624
+ if (ampersand == -1)
625
+ characters2 = replace(characters2, /\f/g, "");
626
+ if (property > 0 && strlen(characters2) - length2)
627
+ append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
628
+ break;
629
+ case 59:
630
+ characters2 += ";";
631
+ default:
632
+ append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets);
633
+ if (character2 === 123)
634
+ if (offset === 0)
635
+ parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
636
+ else
637
+ switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
638
+ case 100:
639
+ case 108:
640
+ case 109:
641
+ case 115:
642
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
643
+ break;
644
+ default:
645
+ parse(characters2, reference, reference, reference, [""], children, 0, points, children);
646
+ }
647
+ }
648
+ index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
649
+ break;
650
+ case 58:
651
+ length2 = 1 + strlen(characters2), property = previous;
652
+ default:
653
+ if (variable < 1) {
654
+ if (character2 == 123)
655
+ --variable;
656
+ else if (character2 == 125 && variable++ == 0 && prev() == 125)
657
+ continue;
658
+ }
659
+ switch (characters2 += from(character2), character2 * variable) {
660
+ case 38:
661
+ ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
662
+ break;
663
+ case 44:
664
+ points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
665
+ break;
666
+ case 64:
667
+ if (peek() === 45)
668
+ characters2 += delimit(next());
669
+ atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
670
+ break;
671
+ case 45:
672
+ if (previous === 45 && strlen(characters2) == 2)
673
+ variable = 0;
674
+ }
675
+ }
676
+ return rulesets;
677
+ }
678
+ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) {
679
+ var post = offset - 1;
680
+ var rule = offset === 0 ? rules : [""];
681
+ var size = sizeof(rule);
682
+ for (var i = 0, j = 0, k = 0; i < index; ++i)
683
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
684
+ if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
685
+ props[k++] = z;
686
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
687
+ }
688
+ function comment(value, root, parent) {
689
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
690
+ }
691
+ function declaration(value, root, parent, length2) {
692
+ return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
693
+ }
694
+
695
+ // ../../node_modules/stylis/src/Serializer.js
696
+ function serialize(children, callback) {
697
+ var output = "";
698
+ var length2 = sizeof(children);
699
+ for (var i = 0; i < length2; i++)
700
+ output += callback(children[i], i, children, callback) || "";
701
+ return output;
702
+ }
703
+ function stringify(element, index, children, callback) {
704
+ switch (element.type) {
705
+ case LAYER:
706
+ if (element.children.length)
707
+ break;
708
+ case IMPORT:
709
+ case DECLARATION:
710
+ return element.return = element.return || element.value;
711
+ case COMMENT:
712
+ return "";
713
+ case KEYFRAMES:
714
+ return element.return = element.value + "{" + serialize(element.children, callback) + "}";
715
+ case RULESET:
716
+ element.value = element.props.join(",");
717
+ }
718
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
719
+ }
720
+
721
+ // ../../node_modules/stylis/src/Middleware.js
722
+ function middleware(collection) {
723
+ var length2 = sizeof(collection);
724
+ return function(element, index, children, callback) {
725
+ var output = "";
726
+ for (var i = 0; i < length2; i++)
727
+ output += collection[i](element, index, children, callback) || "";
728
+ return output;
729
+ };
730
+ }
731
+
732
+ // ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
733
+ function memoize(fn) {
734
+ var cache = /* @__PURE__ */ Object.create(null);
735
+ return function(arg) {
736
+ if (cache[arg] === void 0)
737
+ cache[arg] = fn(arg);
738
+ return cache[arg];
739
+ };
740
+ }
741
+
742
+ // ../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
743
+ var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
744
+ var previous = 0;
745
+ var character2 = 0;
746
+ while (true) {
747
+ previous = character2;
748
+ character2 = peek();
749
+ if (previous === 38 && character2 === 12) {
750
+ points[index] = 1;
751
+ }
752
+ if (token(character2)) {
753
+ break;
754
+ }
755
+ next();
756
+ }
757
+ return slice(begin, position);
758
+ };
759
+ var toRules = function toRules2(parsed, points) {
760
+ var index = -1;
761
+ var character2 = 44;
762
+ do {
763
+ switch (token(character2)) {
764
+ case 0:
765
+ if (character2 === 38 && peek() === 12) {
766
+ points[index] = 1;
767
+ }
768
+ parsed[index] += identifierWithPointTracking(position - 1, points, index);
769
+ break;
770
+ case 2:
771
+ parsed[index] += delimit(character2);
772
+ break;
773
+ case 4:
774
+ if (character2 === 44) {
775
+ parsed[++index] = peek() === 58 ? "&\f" : "";
776
+ points[index] = parsed[index].length;
777
+ break;
778
+ }
779
+ default:
780
+ parsed[index] += from(character2);
781
+ }
782
+ } while (character2 = next());
783
+ return parsed;
784
+ };
785
+ var getRules = function getRules2(value, points) {
786
+ return dealloc(toRules(alloc(value), points));
787
+ };
788
+ var fixedElements = /* @__PURE__ */ new WeakMap();
789
+ var compat = function compat2(element) {
790
+ if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
791
+ // negative .length indicates that this rule has been already prefixed
792
+ element.length < 1) {
793
+ return;
794
+ }
795
+ var value = element.value, parent = element.parent;
796
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
797
+ while (parent.type !== "rule") {
798
+ parent = parent.parent;
799
+ if (!parent)
800
+ return;
801
+ }
802
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
803
+ return;
804
+ }
805
+ if (isImplicitRule) {
806
+ return;
807
+ }
808
+ fixedElements.set(element, true);
809
+ var points = [];
810
+ var rules = getRules(value, points);
811
+ var parentRules = parent.props;
812
+ for (var i = 0, k = 0; i < rules.length; i++) {
813
+ for (var j = 0; j < parentRules.length; j++, k++) {
814
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
815
+ }
816
+ }
817
+ };
818
+ var removeLabel = function removeLabel2(element) {
819
+ if (element.type === "decl") {
820
+ var value = element.value;
821
+ if (
822
+ // charcode for l
823
+ value.charCodeAt(0) === 108 && // charcode for b
824
+ value.charCodeAt(2) === 98
825
+ ) {
826
+ element["return"] = "";
827
+ element.value = "";
828
+ }
829
+ }
830
+ };
831
+ var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason";
832
+ var isIgnoringComment = function isIgnoringComment2(element) {
833
+ return element.type === "comm" && element.children.indexOf(ignoreFlag) > -1;
834
+ };
835
+ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache) {
836
+ return function(element, index, children) {
837
+ if (element.type !== "rule" || cache.compat)
838
+ return;
839
+ var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
840
+ if (unsafePseudoClasses) {
841
+ var isNested = !!element.parent;
842
+ var commentContainer = isNested ? element.parent.children : (
843
+ // global rule at the root level
844
+ children
845
+ );
846
+ for (var i = commentContainer.length - 1; i >= 0; i--) {
847
+ var node2 = commentContainer[i];
848
+ if (node2.line < element.line) {
849
+ break;
850
+ }
851
+ if (node2.column < element.column) {
852
+ if (isIgnoringComment(node2)) {
853
+ return;
854
+ }
855
+ break;
856
+ }
857
+ }
858
+ unsafePseudoClasses.forEach(function(unsafePseudoClass) {
859
+ console.error('The pseudo class "' + unsafePseudoClass + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + unsafePseudoClass.split("-child")[0] + '-of-type".');
860
+ });
861
+ }
862
+ };
863
+ };
864
+ var isImportRule = function isImportRule2(element) {
865
+ return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
866
+ };
867
+ var isPrependedWithRegularRules = function isPrependedWithRegularRules2(index, children) {
868
+ for (var i = index - 1; i >= 0; i--) {
869
+ if (!isImportRule(children[i])) {
870
+ return true;
871
+ }
872
+ }
873
+ return false;
874
+ };
875
+ var nullifyElement = function nullifyElement2(element) {
876
+ element.type = "";
877
+ element.value = "";
878
+ element["return"] = "";
879
+ element.children = "";
880
+ element.props = "";
881
+ };
882
+ var incorrectImportAlarm = function incorrectImportAlarm2(element, index, children) {
883
+ if (!isImportRule(element)) {
884
+ return;
885
+ }
886
+ if (element.parent) {
887
+ 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.");
888
+ nullifyElement(element);
889
+ } else if (isPrependedWithRegularRules(index, children)) {
890
+ console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
891
+ nullifyElement(element);
892
+ }
893
+ };
894
+ function prefix(value, length2) {
895
+ switch (hash(value, length2)) {
896
+ case 5103:
897
+ return WEBKIT + "print-" + value + value;
898
+ case 5737:
899
+ case 4201:
900
+ case 3177:
901
+ case 3433:
902
+ case 1641:
903
+ case 4457:
904
+ case 2921:
905
+ case 5572:
906
+ case 6356:
907
+ case 5844:
908
+ case 3191:
909
+ case 6645:
910
+ case 3005:
911
+ case 6391:
912
+ case 5879:
913
+ case 5623:
914
+ case 6135:
915
+ case 4599:
916
+ case 4855:
917
+ case 4215:
918
+ case 6389:
919
+ case 5109:
920
+ case 5365:
921
+ case 5621:
922
+ case 3829:
923
+ return WEBKIT + value + value;
924
+ case 5349:
925
+ case 4246:
926
+ case 4810:
927
+ case 6968:
928
+ case 2756:
929
+ return WEBKIT + value + MOZ + value + MS + value + value;
930
+ case 6828:
931
+ case 4268:
932
+ return WEBKIT + value + MS + value + value;
933
+ case 6165:
934
+ return WEBKIT + value + MS + "flex-" + value + value;
935
+ case 5187:
936
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
937
+ case 5443:
938
+ return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
939
+ case 4675:
940
+ return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
941
+ case 5548:
942
+ return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
943
+ case 5292:
944
+ return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
945
+ case 6060:
946
+ return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
947
+ case 4554:
948
+ return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
949
+ case 6187:
950
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
951
+ case 5495:
952
+ case 3959:
953
+ return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
954
+ case 4968:
955
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
956
+ case 4095:
957
+ case 3583:
958
+ case 4068:
959
+ case 2532:
960
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
961
+ case 8116:
962
+ case 7059:
963
+ case 5753:
964
+ case 5535:
965
+ case 5445:
966
+ case 5701:
967
+ case 4933:
968
+ case 4677:
969
+ case 5533:
970
+ case 5789:
971
+ case 5021:
972
+ case 4765:
973
+ if (strlen(value) - 1 - length2 > 6)
974
+ switch (charat(value, length2 + 1)) {
975
+ case 109:
976
+ if (charat(value, length2 + 4) !== 45)
977
+ break;
978
+ case 102:
979
+ return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
980
+ case 115:
981
+ return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
982
+ }
983
+ break;
984
+ case 4949:
985
+ if (charat(value, length2 + 1) !== 115)
986
+ break;
987
+ case 6444:
988
+ switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
989
+ case 107:
990
+ return replace(value, ":", ":" + WEBKIT) + value;
991
+ case 101:
992
+ return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
993
+ }
994
+ break;
995
+ case 5936:
996
+ switch (charat(value, length2 + 11)) {
997
+ case 114:
998
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
999
+ case 108:
1000
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
1001
+ case 45:
1002
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
1003
+ }
1004
+ return WEBKIT + value + MS + value + value;
1005
+ }
1006
+ return value;
1007
+ }
1008
+ var prefixer = function prefixer2(element, index, children, callback) {
1009
+ if (element.length > -1) {
1010
+ if (!element["return"])
1011
+ switch (element.type) {
1012
+ case DECLARATION:
1013
+ element["return"] = prefix(element.value, element.length);
1014
+ break;
1015
+ case KEYFRAMES:
1016
+ return serialize([copy(element, {
1017
+ value: replace(element.value, "@", "@" + WEBKIT)
1018
+ })], callback);
1019
+ case RULESET:
1020
+ if (element.length)
1021
+ return combine(element.props, function(value) {
1022
+ switch (match(value, /(::plac\w+|:read-\w+)/)) {
1023
+ case ":read-only":
1024
+ case ":read-write":
1025
+ return serialize([copy(element, {
1026
+ props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
1027
+ })], callback);
1028
+ case "::placeholder":
1029
+ return serialize([copy(element, {
1030
+ props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
1031
+ }), copy(element, {
1032
+ props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
1033
+ }), copy(element, {
1034
+ props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
1035
+ })], callback);
1036
+ }
1037
+ return "";
1038
+ });
1039
+ }
1040
+ }
1041
+ };
1042
+ var defaultStylisPlugins = [prefixer];
1043
+ var createCache = function createCache2(options) {
1044
+ var key = options.key;
1045
+ if (!key) {
1046
+ 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.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");
1047
+ }
1048
+ if (key === "css") {
1049
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
1050
+ Array.prototype.forEach.call(ssrStyles, function(node2) {
1051
+ var dataEmotionAttribute = node2.getAttribute("data-emotion");
1052
+ if (dataEmotionAttribute.indexOf(" ") === -1) {
1053
+ return;
1054
+ }
1055
+ document.head.appendChild(node2);
1056
+ node2.setAttribute("data-s", "");
1057
+ });
1058
+ }
1059
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1060
+ if (true) {
1061
+ if (/[^a-z-]/.test(key)) {
1062
+ throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
1063
+ }
1064
+ }
1065
+ var inserted = {};
1066
+ var container;
1067
+ var nodesToHydrate = [];
1068
+ {
1069
+ container = options.container || document.head;
1070
+ Array.prototype.forEach.call(
1071
+ // this means we will ignore elements which don't have a space in them which
1072
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1073
+ document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
1074
+ function(node2) {
1075
+ var attrib = node2.getAttribute("data-emotion").split(" ");
1076
+ for (var i = 1; i < attrib.length; i++) {
1077
+ inserted[attrib[i]] = true;
1078
+ }
1079
+ nodesToHydrate.push(node2);
1080
+ }
1081
+ );
1082
+ }
1083
+ var _insert;
1084
+ var omnipresentPlugins = [compat, removeLabel];
1085
+ if (true) {
1086
+ omnipresentPlugins.push(createUnsafeSelectorsAlarm({
1087
+ get compat() {
1088
+ return cache.compat;
1089
+ }
1090
+ }), incorrectImportAlarm);
1091
+ }
1092
+ {
1093
+ var currentSheet;
1094
+ var finalizingPlugins = [stringify, true ? function(element) {
1095
+ if (!element.root) {
1096
+ if (element["return"]) {
1097
+ currentSheet.insert(element["return"]);
1098
+ } else if (element.value && element.type !== COMMENT) {
1099
+ currentSheet.insert(element.value + "{}");
1100
+ }
1101
+ }
1102
+ } : rulesheet(function(rule) {
1103
+ currentSheet.insert(rule);
1104
+ })];
1105
+ var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1106
+ var stylis = function stylis2(styles) {
1107
+ return serialize(compile(styles), serializer);
1108
+ };
1109
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1110
+ currentSheet = sheet;
1111
+ if (serialized.map !== void 0) {
1112
+ currentSheet = {
1113
+ insert: function insert2(rule) {
1114
+ sheet.insert(rule + serialized.map);
1115
+ }
1116
+ };
1117
+ }
1118
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1119
+ if (shouldCache) {
1120
+ cache.inserted[serialized.name] = true;
1121
+ }
1122
+ };
1123
+ }
1124
+ var cache = {
1125
+ key,
1126
+ sheet: new StyleSheet({
1127
+ key,
1128
+ container,
1129
+ nonce: options.nonce,
1130
+ speedy: options.speedy,
1131
+ prepend: options.prepend,
1132
+ insertionPoint: options.insertionPoint
1133
+ }),
1134
+ nonce: options.nonce,
1135
+ inserted,
1136
+ registered: {},
1137
+ insert: _insert
1138
+ };
1139
+ cache.sheet.hydrate(nodesToHydrate);
1140
+ return cache;
1141
+ };
1142
+
1143
+ // ../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
1144
+ var isBrowser = true;
1145
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1146
+ var rawClassName = "";
1147
+ classNames.split(" ").forEach(function(className) {
1148
+ if (registered[className] !== void 0) {
1149
+ registeredStyles.push(registered[className] + ";");
1150
+ } else {
1151
+ rawClassName += className + " ";
1152
+ }
1153
+ });
1154
+ return rawClassName;
1155
+ }
1156
+ var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
1157
+ var className = cache.key + "-" + serialized.name;
1158
+ if (
1159
+ // we only need to add the styles to the registered cache if the
1160
+ // class name could be used further down
1161
+ // the tree but if it's a string tag, we know it won't
1162
+ // so we don't have to add it to registered cache.
1163
+ // this improves memory usage since we can avoid storing the whole style string
1164
+ (isStringTag === false || // we need to always store it if we're in compat mode and
1165
+ // in node since emotion-server relies on whether a style is in
1166
+ // the registered cache to know whether a style is global or not
1167
+ // also, note that this check will be dead code eliminated in the browser
1168
+ isBrowser === false) && cache.registered[className] === void 0
1169
+ ) {
1170
+ cache.registered[className] = serialized.styles;
1171
+ }
1172
+ };
1173
+ var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
1174
+ registerStyles(cache, serialized, isStringTag);
1175
+ var className = cache.key + "-" + serialized.name;
1176
+ if (cache.inserted[serialized.name] === void 0) {
1177
+ var current = serialized;
1178
+ do {
1179
+ cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
1180
+ current = current.next;
1181
+ } while (current !== void 0);
1182
+ }
1183
+ };
1184
+
1185
+ // ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
1186
+ function murmur2(str) {
1187
+ var h = 0;
1188
+ var k, i = 0, len = str.length;
1189
+ for (; len >= 4; ++i, len -= 4) {
1190
+ k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
1191
+ k = /* Math.imul(k, m): */
1192
+ (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
1193
+ k ^= /* k >>> r: */
1194
+ k >>> 24;
1195
+ h = /* Math.imul(k, m): */
1196
+ (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1197
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1198
+ }
1199
+ switch (len) {
1200
+ case 3:
1201
+ h ^= (str.charCodeAt(i + 2) & 255) << 16;
1202
+ case 2:
1203
+ h ^= (str.charCodeAt(i + 1) & 255) << 8;
1204
+ case 1:
1205
+ h ^= str.charCodeAt(i) & 255;
1206
+ h = /* Math.imul(h, m): */
1207
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1208
+ }
1209
+ h ^= h >>> 13;
1210
+ h = /* Math.imul(h, m): */
1211
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1212
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1213
+ }
1214
+
1215
+ // ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
1216
+ var unitlessKeys = {
1217
+ animationIterationCount: 1,
1218
+ aspectRatio: 1,
1219
+ borderImageOutset: 1,
1220
+ borderImageSlice: 1,
1221
+ borderImageWidth: 1,
1222
+ boxFlex: 1,
1223
+ boxFlexGroup: 1,
1224
+ boxOrdinalGroup: 1,
1225
+ columnCount: 1,
1226
+ columns: 1,
1227
+ flex: 1,
1228
+ flexGrow: 1,
1229
+ flexPositive: 1,
1230
+ flexShrink: 1,
1231
+ flexNegative: 1,
1232
+ flexOrder: 1,
1233
+ gridRow: 1,
1234
+ gridRowEnd: 1,
1235
+ gridRowSpan: 1,
1236
+ gridRowStart: 1,
1237
+ gridColumn: 1,
1238
+ gridColumnEnd: 1,
1239
+ gridColumnSpan: 1,
1240
+ gridColumnStart: 1,
1241
+ msGridRow: 1,
1242
+ msGridRowSpan: 1,
1243
+ msGridColumn: 1,
1244
+ msGridColumnSpan: 1,
1245
+ fontWeight: 1,
1246
+ lineHeight: 1,
1247
+ opacity: 1,
1248
+ order: 1,
1249
+ orphans: 1,
1250
+ tabSize: 1,
1251
+ widows: 1,
1252
+ zIndex: 1,
1253
+ zoom: 1,
1254
+ WebkitLineClamp: 1,
1255
+ // SVG-related properties
1256
+ fillOpacity: 1,
1257
+ floodOpacity: 1,
1258
+ stopOpacity: 1,
1259
+ strokeDasharray: 1,
1260
+ strokeDashoffset: 1,
1261
+ strokeMiterlimit: 1,
1262
+ strokeOpacity: 1,
1263
+ strokeWidth: 1
1264
+ };
1265
+
1266
+ // ../../node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
1267
+ var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
1268
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
1269
+ You can read more about this here:
1270
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
1271
+ 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).";
1272
+ var hyphenateRegex = /[A-Z]|^ms/g;
1273
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1274
+ var isCustomProperty = function isCustomProperty2(property) {
1275
+ return property.charCodeAt(1) === 45;
1276
+ };
1277
+ var isProcessableValue = function isProcessableValue2(value) {
1278
+ return value != null && typeof value !== "boolean";
1279
+ };
1280
+ var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
1281
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
1282
+ });
1283
+ var processStyleValue = function processStyleValue2(key, value) {
1284
+ switch (key) {
1285
+ case "animation":
1286
+ case "animationName": {
1287
+ if (typeof value === "string") {
1288
+ return value.replace(animationRegex, function(match2, p1, p2) {
1289
+ cursor = {
1290
+ name: p1,
1291
+ styles: p2,
1292
+ next: cursor
1293
+ };
1294
+ return p1;
1295
+ });
1296
+ }
1297
+ }
1298
+ }
1299
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
1300
+ return value + "px";
1301
+ }
1302
+ return value;
1303
+ };
1304
+ if (true) {
1305
+ contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1306
+ contentValues = ["normal", "none", "initial", "inherit", "unset"];
1307
+ oldProcessStyleValue = processStyleValue;
1308
+ msPattern = /^-ms-/;
1309
+ hyphenPattern = /-(.)/g;
1310
+ hyphenatedCache = {};
1311
+ processStyleValue = function processStyleValue3(key, value) {
1312
+ if (key === "content") {
1313
+ 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) !== "'")) {
1314
+ throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
1315
+ }
1316
+ }
1317
+ var processed = oldProcessStyleValue(key, value);
1318
+ if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
1319
+ hyphenatedCache[key] = true;
1320
+ 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) {
1321
+ return _char.toUpperCase();
1322
+ }) + "?");
1323
+ }
1324
+ return processed;
1325
+ };
1326
+ }
1327
+ var contentValuePattern;
1328
+ var contentValues;
1329
+ var oldProcessStyleValue;
1330
+ var msPattern;
1331
+ var hyphenPattern;
1332
+ var hyphenatedCache;
1333
+ var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
1334
+ function handleInterpolation(mergedProps, registered, interpolation) {
1335
+ if (interpolation == null) {
1336
+ return "";
1337
+ }
1338
+ if (interpolation.__emotion_styles !== void 0) {
1339
+ if (interpolation.toString() === "NO_COMPONENT_SELECTOR") {
1340
+ throw new Error(noComponentSelectorMessage);
1341
+ }
1342
+ return interpolation;
1343
+ }
1344
+ switch (typeof interpolation) {
1345
+ case "boolean": {
1346
+ return "";
1347
+ }
1348
+ case "object": {
1349
+ if (interpolation.anim === 1) {
1350
+ cursor = {
1351
+ name: interpolation.name,
1352
+ styles: interpolation.styles,
1353
+ next: cursor
1354
+ };
1355
+ return interpolation.name;
1356
+ }
1357
+ if (interpolation.styles !== void 0) {
1358
+ var next2 = interpolation.next;
1359
+ if (next2 !== void 0) {
1360
+ while (next2 !== void 0) {
1361
+ cursor = {
1362
+ name: next2.name,
1363
+ styles: next2.styles,
1364
+ next: cursor
1365
+ };
1366
+ next2 = next2.next;
1367
+ }
1368
+ }
1369
+ var styles = interpolation.styles + ";";
1370
+ if (interpolation.map !== void 0) {
1371
+ styles += interpolation.map;
1372
+ }
1373
+ return styles;
1374
+ }
1375
+ return createStringFromObject(mergedProps, registered, interpolation);
1376
+ }
1377
+ case "function": {
1378
+ if (mergedProps !== void 0) {
1379
+ var previousCursor = cursor;
1380
+ var result = interpolation(mergedProps);
1381
+ cursor = previousCursor;
1382
+ return handleInterpolation(mergedProps, registered, result);
1383
+ } else if (true) {
1384
+ console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
1385
+ }
1386
+ break;
1387
+ }
1388
+ case "string":
1389
+ if (true) {
1390
+ var matched = [];
1391
+ var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
1392
+ var fakeVarName = "animation" + matched.length;
1393
+ matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
1394
+ return "${" + fakeVarName + "}";
1395
+ });
1396
+ if (matched.length) {
1397
+ console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`"));
1398
+ }
1399
+ }
1400
+ break;
1401
+ }
1402
+ if (registered == null) {
1403
+ return interpolation;
1404
+ }
1405
+ var cached = registered[interpolation];
1406
+ return cached !== void 0 ? cached : interpolation;
1407
+ }
1408
+ function createStringFromObject(mergedProps, registered, obj) {
1409
+ var string = "";
1410
+ if (Array.isArray(obj)) {
1411
+ for (var i = 0; i < obj.length; i++) {
1412
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1413
+ }
1414
+ } else {
1415
+ for (var _key in obj) {
1416
+ var value = obj[_key];
1417
+ if (typeof value !== "object") {
1418
+ if (registered != null && registered[value] !== void 0) {
1419
+ string += _key + "{" + registered[value] + "}";
1420
+ } else if (isProcessableValue(value)) {
1421
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
1422
+ }
1423
+ } else {
1424
+ if (_key === "NO_COMPONENT_SELECTOR" && true) {
1425
+ throw new Error(noComponentSelectorMessage);
1426
+ }
1427
+ if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
1428
+ for (var _i = 0; _i < value.length; _i++) {
1429
+ if (isProcessableValue(value[_i])) {
1430
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
1431
+ }
1432
+ }
1433
+ } else {
1434
+ var interpolated = handleInterpolation(mergedProps, registered, value);
1435
+ switch (_key) {
1436
+ case "animation":
1437
+ case "animationName": {
1438
+ string += processStyleName(_key) + ":" + interpolated + ";";
1439
+ break;
1440
+ }
1441
+ default: {
1442
+ if (_key === "undefined") {
1443
+ console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
1444
+ }
1445
+ string += _key + "{" + interpolated + "}";
1446
+ }
1447
+ }
1448
+ }
1449
+ }
1450
+ }
1451
+ }
1452
+ return string;
1453
+ }
1454
+ var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1455
+ var sourceMapPattern;
1456
+ if (true) {
1457
+ sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
1458
+ }
1459
+ var cursor;
1460
+ var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
1461
+ if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
1462
+ return args[0];
1463
+ }
1464
+ var stringMode = true;
1465
+ var styles = "";
1466
+ cursor = void 0;
1467
+ var strings = args[0];
1468
+ if (strings == null || strings.raw === void 0) {
1469
+ stringMode = false;
1470
+ styles += handleInterpolation(mergedProps, registered, strings);
1471
+ } else {
1472
+ if (strings[0] === void 0) {
1473
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
1474
+ }
1475
+ styles += strings[0];
1476
+ }
1477
+ for (var i = 1; i < args.length; i++) {
1478
+ styles += handleInterpolation(mergedProps, registered, args[i]);
1479
+ if (stringMode) {
1480
+ if (strings[i] === void 0) {
1481
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
1482
+ }
1483
+ styles += strings[i];
1484
+ }
1485
+ }
1486
+ var sourceMap;
1487
+ if (true) {
1488
+ styles = styles.replace(sourceMapPattern, function(match3) {
1489
+ sourceMap = match3;
1490
+ return "";
1491
+ });
1492
+ }
1493
+ labelPattern.lastIndex = 0;
1494
+ var identifierName = "";
1495
+ var match2;
1496
+ while ((match2 = labelPattern.exec(styles)) !== null) {
1497
+ identifierName += "-" + // $FlowFixMe we know it's not null
1498
+ match2[1];
1499
+ }
1500
+ var name = murmur2(styles) + identifierName;
1501
+ if (true) {
1502
+ return {
1503
+ name,
1504
+ styles,
1505
+ map: sourceMap,
1506
+ next: cursor,
1507
+ toString: function toString() {
1508
+ 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).";
1509
+ }
1510
+ };
1511
+ }
1512
+ return {
1513
+ name,
1514
+ styles,
1515
+ next: cursor
1516
+ };
1517
+ };
1518
+
1519
+ // ../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
1520
+ import * as React from "react";
1521
+ var syncFallback = function syncFallback2(create) {
1522
+ return create();
1523
+ };
1524
+ var useInsertionEffect2 = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
1525
+ var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback;
1526
+
1527
+ // ../../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js
1528
+ var isBrowser2 = true;
1529
+ var hasOwn = {}.hasOwnProperty;
1530
+ var EmotionCacheContext = /* @__PURE__ */ React2.createContext(
1531
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
1532
+ // because this module is primarily intended for the browser and node
1533
+ // but it's also required in react native and similar environments sometimes
1534
+ // and we could have a special build just for that
1535
+ // but this is much easier and the native packages
1536
+ // might use a different theme context in the future anyway
1537
+ typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache({
1538
+ key: "css"
1539
+ }) : null
1540
+ );
1541
+ if (true) {
1542
+ EmotionCacheContext.displayName = "EmotionCacheContext";
1543
+ }
1544
+ var CacheProvider = EmotionCacheContext.Provider;
1545
+ var withEmotionCache = function withEmotionCache2(func) {
1546
+ return /* @__PURE__ */ forwardRef2(function(props, ref) {
1547
+ var cache = useContext2(EmotionCacheContext);
1548
+ return func(props, cache, ref);
1549
+ });
1550
+ };
1551
+ if (!isBrowser2) {
1552
+ withEmotionCache = function withEmotionCache3(func) {
1553
+ return function(props) {
1554
+ var cache = useContext2(EmotionCacheContext);
1555
+ if (cache === null) {
1556
+ cache = createCache({
1557
+ key: "css"
1558
+ });
1559
+ return /* @__PURE__ */ React2.createElement(EmotionCacheContext.Provider, {
1560
+ value: cache
1561
+ }, func(props, cache));
1562
+ } else {
1563
+ return func(props, cache);
1564
+ }
1565
+ };
1566
+ };
1567
+ }
1568
+ var ThemeContext = /* @__PURE__ */ React2.createContext({});
1569
+ if (true) {
1570
+ ThemeContext.displayName = "EmotionThemeContext";
1571
+ }
1572
+ var getLastPart = function getLastPart2(functionName) {
1573
+ var parts = functionName.split(".");
1574
+ return parts[parts.length - 1];
1575
+ };
1576
+ var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine2(line2) {
1577
+ var match2 = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line2);
1578
+ if (match2)
1579
+ return getLastPart(match2[1]);
1580
+ match2 = /^([A-Za-z0-9$.]+)@/.exec(line2);
1581
+ if (match2)
1582
+ return getLastPart(match2[1]);
1583
+ return void 0;
1584
+ };
1585
+ var internalReactFunctionNames = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]);
1586
+ var sanitizeIdentifier = function sanitizeIdentifier2(identifier2) {
1587
+ return identifier2.replace(/\$/g, "-");
1588
+ };
1589
+ var getLabelFromStackTrace = function getLabelFromStackTrace2(stackTrace) {
1590
+ if (!stackTrace)
1591
+ return void 0;
1592
+ var lines = stackTrace.split("\n");
1593
+ for (var i = 0; i < lines.length; i++) {
1594
+ var functionName = getFunctionNameFromStackTraceLine(lines[i]);
1595
+ if (!functionName)
1596
+ continue;
1597
+ if (internalReactFunctionNames.has(functionName))
1598
+ break;
1599
+ if (/^[A-Z]/.test(functionName))
1600
+ return sanitizeIdentifier(functionName);
1601
+ }
1602
+ return void 0;
1603
+ };
1604
+ var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
1605
+ var labelPropName = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__";
1606
+ var createEmotionProps = function createEmotionProps2(type, props) {
1607
+ if (typeof props.css === "string" && // check if there is a css declaration
1608
+ props.css.indexOf(":") !== -1) {
1609
+ 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 + "`");
1610
+ }
1611
+ var newProps = {};
1612
+ for (var key in props) {
1613
+ if (hasOwn.call(props, key)) {
1614
+ newProps[key] = props[key];
1615
+ }
1616
+ }
1617
+ newProps[typePropName] = type;
1618
+ if (!!props.css && (typeof props.css !== "object" || typeof props.css.name !== "string" || props.css.name.indexOf("-") === -1)) {
1619
+ var label = getLabelFromStackTrace(new Error().stack);
1620
+ if (label)
1621
+ newProps[labelPropName] = label;
1622
+ }
1623
+ return newProps;
1624
+ };
1625
+ var Insertion = function Insertion2(_ref) {
1626
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
1627
+ registerStyles(cache, serialized, isStringTag);
1628
+ useInsertionEffectAlwaysWithSyncFallback(function() {
1629
+ return insertStyles(cache, serialized, isStringTag);
1630
+ });
1631
+ return null;
1632
+ };
1633
+ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
1634
+ var cssProp = props.css;
1635
+ if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
1636
+ cssProp = cache.registered[cssProp];
1637
+ }
1638
+ var WrappedComponent = props[typePropName];
1639
+ var registeredStyles = [cssProp];
1640
+ var className = "";
1641
+ if (typeof props.className === "string") {
1642
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
1643
+ } else if (props.className != null) {
1644
+ className = props.className + " ";
1645
+ }
1646
+ var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext));
1647
+ if (serialized.name.indexOf("-") === -1) {
1648
+ var labelFromStack = props[labelPropName];
1649
+ if (labelFromStack) {
1650
+ serialized = serializeStyles([serialized, "label:" + labelFromStack + ";"]);
1651
+ }
1652
+ }
1653
+ className += cache.key + "-" + serialized.name;
1654
+ var newProps = {};
1655
+ for (var key in props) {
1656
+ if (hasOwn.call(props, key) && key !== "css" && key !== typePropName && key !== labelPropName) {
1657
+ newProps[key] = props[key];
1658
+ }
1659
+ }
1660
+ newProps.ref = ref;
1661
+ newProps.className = className;
1662
+ return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(Insertion, {
1663
+ cache,
1664
+ serialized,
1665
+ isStringTag: typeof WrappedComponent === "string"
1666
+ }), /* @__PURE__ */ React2.createElement(WrappedComponent, newProps));
1667
+ });
1668
+ if (true) {
1669
+ Emotion.displayName = "EmotionCssPropInternal";
1670
+ }
1671
+ var Emotion$1 = Emotion;
1672
+
1673
+ // ../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js
1674
+ import "react";
1675
+ var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
1676
+ var Fragment3 = ReactJSXRuntime.Fragment;
1677
+ function jsx2(type, props, key) {
1678
+ if (!hasOwn.call(props, "css")) {
1679
+ return ReactJSXRuntime.jsx(type, props, key);
1680
+ }
1681
+ return ReactJSXRuntime.jsx(Emotion$1, createEmotionProps(type, props), key);
1682
+ }
1683
+ function jsxs2(type, props, key) {
1684
+ if (!hasOwn.call(props, "css")) {
1685
+ return ReactJSXRuntime.jsxs(type, props, key);
1686
+ }
1687
+ return ReactJSXRuntime.jsxs(Emotion$1, createEmotionProps(type, props), key);
1688
+ }
1689
+
1690
+ // framer-components.tsx
1691
+ function Accordions2(props) {
1692
+ const { summaries, details, ...innerProps } = props;
1693
+ return /* @__PURE__ */ jsx2(ADS.ThemeProvider, { children: /* @__PURE__ */ jsx2(
1694
+ ADS.Accordions,
1695
+ {
1696
+ ...innerProps,
1697
+ items: summaries?.map((summary, i) => ({
1698
+ summary,
1699
+ details: details[i]
1700
+ }))
1701
+ }
1702
+ ) });
1703
+ }
1704
+ addPropertyControls(Accordions2, ADS.accordionsPropertyControls);
1705
+ function Avatar2(props) {
1706
+ const { text, image, ...innerProps } = props;
1707
+ return /* @__PURE__ */ jsx2(ADS.ThemeProvider, { children: /* @__PURE__ */ jsx2(ADS.Avatar, { src: image?.src || image?.srcSet, ...innerProps, children: text }) });
1708
+ }
1709
+ addPropertyControls(Avatar2, ADS.avatarPropertyControls);
1710
+ function Badge2(props) {
1711
+ return /* @__PURE__ */ jsx2(ADS.Badge, { ...props });
1712
+ }
1713
+ addPropertyControls(Badge2, ADS.badgePropertyControls);
1714
+ function Button2(props) {
1715
+ const { text, startDecorator, endDecorator, ...innerProps } = props;
1716
+ return /* @__PURE__ */ jsx2(ADS.ThemeProvider, { children: /* @__PURE__ */ jsx2(
1717
+ ADS.Button,
1718
+ {
1719
+ startDecorator: startDecorator[0],
1720
+ endDecorator: endDecorator[0],
1721
+ ...innerProps,
1722
+ children: text
1723
+ }
1724
+ ) });
1725
+ }
1726
+ addPropertyControls(Button2, { ...ADS.buttonPropertyControls });
1727
+ function withModal(Component) {
1728
+ return (props) => {
1729
+ const { modalContents, ...innerProps } = props;
1730
+ const [open, setOpen] = useState(false);
1731
+ return /* @__PURE__ */ jsxs2(Fragment3, { children: [
1732
+ /* @__PURE__ */ jsx2(Component, { ...innerProps, onClick: () => setOpen(true) }),
1733
+ open && /* @__PURE__ */ jsx2(
1734
+ ADS.Modal,
1735
+ {
1736
+ open,
1737
+ onClose: () => setOpen(false),
1738
+ disablePortal: true,
1739
+ sx: {
1740
+ display: "flex",
1741
+ justifyContent: "center",
1742
+ alignItems: "center"
1743
+ },
1744
+ children: /* @__PURE__ */ jsx2("div", { children: modalContents })
1745
+ }
1746
+ )
1747
+ ] });
1748
+ };
1749
+ }
1750
+ function withDrawer(Component) {
1751
+ return (props) => {
1752
+ const { modalContents, ...innerProps } = props;
1753
+ const [open, setOpen] = useState(false);
1754
+ return /* @__PURE__ */ jsxs2(Fragment3, { children: [
1755
+ /* @__PURE__ */ jsx2(Component, { ...innerProps, onClick: () => setOpen(true) }),
1756
+ /* @__PURE__ */ jsx2(
1757
+ ADS.InsetDrawer,
1758
+ {
1759
+ open,
1760
+ onClose: () => setOpen(false),
1761
+ disablePortal: true,
1762
+ children: modalContents
1763
+ }
1764
+ )
1765
+ ] });
1766
+ };
1767
+ }
1768
+ export {
1769
+ Accordions2 as Accordions,
1770
+ Avatar2 as Avatar,
1771
+ Badge2 as Badge,
1772
+ Button2 as Button,
1773
+ withDrawer,
1774
+ withModal
1775
+ };
1776
+ /*! Bundled license information:
1777
+
1778
+ react-is/cjs/react-is.development.js:
1779
+ (** @license React v16.13.1
1780
+ * react-is.development.js
1781
+ *
1782
+ * Copyright (c) Facebook, Inc. and its affiliates.
1783
+ *
1784
+ * This source code is licensed under the MIT license found in the
1785
+ * LICENSE file in the root directory of this source tree.
1786
+ *)
1787
+ */