storybook 9.0.0-beta.1 → 9.0.0-beta.3

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,30 +1,2196 @@
1
1
  "use strict";
2
- var l = Object.defineProperty;
3
- var B = Object.getOwnPropertyDescriptor;
4
- var x = Object.getOwnPropertyNames;
5
- var k = Object.prototype.hasOwnProperty;
6
- var a = (e, t) => l(e, "name", { value: t, configurable: !0 });
7
- var T = (e, t) => {
8
- for (var o in t)
9
- l(e, o, { get: t[o], enumerable: !0 });
10
- }, S = (e, t, o, F) => {
11
- if (t && typeof t == "object" || typeof t == "function")
12
- for (let s of x(t))
13
- !k.call(e, s) && s !== o && l(e, s, { get: () => t[s], enumerable: !(F = B(t, s)) || F.enumerable });
2
+ var ur = Object.create;
3
+ var D = Object.defineProperty;
4
+ var sr = Object.getOwnPropertyDescriptor;
5
+ var fr = Object.getOwnPropertyNames;
6
+ var pr = Object.getPrototypeOf, lr = Object.prototype.hasOwnProperty;
7
+ var a = (e, r) => D(e, "name", { value: r, configurable: !0 });
8
+ var F = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), dr = (e, r) => {
9
+ for (var t in r)
10
+ D(e, t, { get: r[t], enumerable: !0 });
11
+ }, we = (e, r, t, n) => {
12
+ if (r && typeof r == "object" || typeof r == "function")
13
+ for (let o of fr(r))
14
+ !lr.call(e, o) && o !== t && D(e, o, { get: () => r[o], enumerable: !(n = sr(r, o)) || n.enumerable });
14
15
  return e;
15
16
  };
16
- var D = (e) => S(l({}, "__esModule", { value: !0 }), e);
17
+ var Se = (e, r, t) => (t = e != null ? ur(pr(e)) : {}, we(
18
+ // If the importer is in node compatibility mode or this is not an ESM
19
+ // file that has been converted to a CommonJS file using a Babel-
20
+ // compatible transform (i.e. "__esModule" has not been set), then set
21
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
+ r || !e || !e.__esModule ? D(t, "default", { value: e, enumerable: !0 }) : t,
23
+ e
24
+ )), cr = (e) => we(D({}, "__esModule", { value: !0 }), e);
25
+
26
+ // ../node_modules/@babel/runtime/helpers/extends.js
27
+ var Fe = F((za, I) => {
28
+ function ee() {
29
+ return I.exports = ee = Object.assign ? Object.assign.bind() : function(e) {
30
+ for (var r = 1; r < arguments.length; r++) {
31
+ var t = arguments[r];
32
+ for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
33
+ }
34
+ return e;
35
+ }, I.exports.__esModule = !0, I.exports.default = I.exports, ee.apply(null, arguments);
36
+ }
37
+ a(ee, "_extends");
38
+ I.exports = ee, I.exports.__esModule = !0, I.exports.default = I.exports;
39
+ });
40
+
41
+ // ../node_modules/@babel/runtime/helpers/assertThisInitialized.js
42
+ var Ce = F((Aa, q) => {
43
+ function mr(e) {
44
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
45
+ return e;
46
+ }
47
+ a(mr, "_assertThisInitialized");
48
+ q.exports = mr, q.exports.__esModule = !0, q.exports.default = q.exports;
49
+ });
50
+
51
+ // ../node_modules/@babel/runtime/helpers/setPrototypeOf.js
52
+ var Z = F((Ra, R) => {
53
+ function re(e, r) {
54
+ return R.exports = re = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
55
+ return t.__proto__ = n, t;
56
+ }, R.exports.__esModule = !0, R.exports.default = R.exports, re(e, r);
57
+ }
58
+ a(re, "_setPrototypeOf");
59
+ R.exports = re, R.exports.__esModule = !0, R.exports.default = R.exports;
60
+ });
61
+
62
+ // ../node_modules/@babel/runtime/helpers/inheritsLoose.js
63
+ var ze = F((Oa, W) => {
64
+ var gr = Z();
65
+ function hr(e, r) {
66
+ e.prototype = Object.create(r.prototype), e.prototype.constructor = e, gr(e, r);
67
+ }
68
+ a(hr, "_inheritsLoose");
69
+ W.exports = hr, W.exports.__esModule = !0, W.exports.default = W.exports;
70
+ });
71
+
72
+ // ../node_modules/@babel/runtime/helpers/getPrototypeOf.js
73
+ var Te = F((ka, j) => {
74
+ function te(e) {
75
+ return j.exports = te = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
76
+ return r.__proto__ || Object.getPrototypeOf(r);
77
+ }, j.exports.__esModule = !0, j.exports.default = j.exports, te(e);
78
+ }
79
+ a(te, "_getPrototypeOf");
80
+ j.exports = te, j.exports.__esModule = !0, j.exports.default = j.exports;
81
+ });
82
+
83
+ // ../node_modules/@babel/runtime/helpers/isNativeFunction.js
84
+ var Ae = F((Pa, U) => {
85
+ function br(e) {
86
+ try {
87
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
88
+ } catch {
89
+ return typeof e == "function";
90
+ }
91
+ }
92
+ a(br, "_isNativeFunction");
93
+ U.exports = br, U.exports.__esModule = !0, U.exports.default = U.exports;
94
+ });
95
+
96
+ // ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
97
+ var Re = F((La, O) => {
98
+ function Ie() {
99
+ try {
100
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
101
+ }));
102
+ } catch {
103
+ }
104
+ return (O.exports = Ie = /* @__PURE__ */ a(function() {
105
+ return !!e;
106
+ }, "_isNativeReflectConstruct"), O.exports.__esModule = !0, O.exports.default = O.exports)();
107
+ }
108
+ a(Ie, "_isNativeReflectConstruct");
109
+ O.exports = Ie, O.exports.__esModule = !0, O.exports.default = O.exports;
110
+ });
111
+
112
+ // ../node_modules/@babel/runtime/helpers/construct.js
113
+ var je = F((Ea, V) => {
114
+ var vr = Re(), yr = Z();
115
+ function xr(e, r, t) {
116
+ if (vr()) return Reflect.construct.apply(null, arguments);
117
+ var n = [null];
118
+ n.push.apply(n, r);
119
+ var o = new (e.bind.apply(e, n))();
120
+ return t && yr(o, t.prototype), o;
121
+ }
122
+ a(xr, "_construct");
123
+ V.exports = xr, V.exports.__esModule = !0, V.exports.default = V.exports;
124
+ });
125
+
126
+ // ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js
127
+ var Oe = F((qa, M) => {
128
+ var wr = Te(), Sr = Z(), Fr = Ae(), Cr = je();
129
+ function ne(e) {
130
+ var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
131
+ return M.exports = ne = /* @__PURE__ */ a(function(n) {
132
+ if (n === null || !Fr(n)) return n;
133
+ if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
134
+ if (r !== void 0) {
135
+ if (r.has(n)) return r.get(n);
136
+ r.set(n, o);
137
+ }
138
+ function o() {
139
+ return Cr(n, arguments, wr(this).constructor);
140
+ }
141
+ return a(o, "Wrapper"), o.prototype = Object.create(n.prototype, {
142
+ constructor: {
143
+ value: o,
144
+ enumerable: !1,
145
+ writable: !0,
146
+ configurable: !0
147
+ }
148
+ }), Sr(o, n);
149
+ }, "_wrapNativeSuper"), M.exports.__esModule = !0, M.exports.default = M.exports, ne(e);
150
+ }
151
+ a(ne, "_wrapNativeSuper");
152
+ M.exports = ne, M.exports.__esModule = !0, M.exports.default = M.exports;
153
+ });
154
+
155
+ // ../node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js
156
+ var Me = F((Ua, N) => {
157
+ function zr(e, r) {
158
+ return r || (r = e.slice(0)), e.raw = r, e;
159
+ }
160
+ a(zr, "_taggedTemplateLiteralLoose");
161
+ N.exports = zr, N.exports.__esModule = !0, N.exports.default = N.exports;
162
+ });
163
+
164
+ // ../node_modules/polished/dist/polished.cjs.js
165
+ var he = F((u) => {
166
+ "use strict";
167
+ Object.defineProperty(u, "__esModule", { value: !0 });
168
+ var Tr = Fe(), Ar = Ce(), Ir = ze(), Rr = Oe(), jr = Me();
169
+ function J(e) {
170
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
171
+ }
172
+ a(J, "_interopDefaultLegacy");
173
+ var h = /* @__PURE__ */ J(Tr), Or = /* @__PURE__ */ J(Ar), Mr = /* @__PURE__ */ J(Ir), kr = /* @__PURE__ */ J(Rr), Ge = /* @__PURE__ */ J(
174
+ jr);
175
+ function ke() {
176
+ var e;
177
+ return e = arguments.length - 1, e < 0 || arguments.length <= e ? void 0 : arguments[e];
178
+ }
179
+ a(ke, "last");
180
+ function $r(e) {
181
+ return -e;
182
+ }
183
+ a($r, "negation");
184
+ function Pr(e, r) {
185
+ return e + r;
186
+ }
187
+ a(Pr, "addition");
188
+ function Br(e, r) {
189
+ return e - r;
190
+ }
191
+ a(Br, "subtraction");
192
+ function Lr(e, r) {
193
+ return e * r;
194
+ }
195
+ a(Lr, "multiplication");
196
+ function Hr(e, r) {
197
+ return e / r;
198
+ }
199
+ a(Hr, "division");
200
+ function Er() {
201
+ return Math.max.apply(Math, arguments);
202
+ }
203
+ a(Er, "max");
204
+ function Dr() {
205
+ return Math.min.apply(Math, arguments);
206
+ }
207
+ a(Dr, "min");
208
+ function qr() {
209
+ return Array.of.apply(Array, arguments);
210
+ }
211
+ a(qr, "comma");
212
+ var Wr = {
213
+ symbols: {
214
+ "*": {
215
+ infix: {
216
+ symbol: "*",
217
+ f: Lr,
218
+ notation: "infix",
219
+ precedence: 4,
220
+ rightToLeft: 0,
221
+ argCount: 2
222
+ },
223
+ symbol: "*",
224
+ regSymbol: "\\*"
225
+ },
226
+ "/": {
227
+ infix: {
228
+ symbol: "/",
229
+ f: Hr,
230
+ notation: "infix",
231
+ precedence: 4,
232
+ rightToLeft: 0,
233
+ argCount: 2
234
+ },
235
+ symbol: "/",
236
+ regSymbol: "/"
237
+ },
238
+ "+": {
239
+ infix: {
240
+ symbol: "+",
241
+ f: Pr,
242
+ notation: "infix",
243
+ precedence: 2,
244
+ rightToLeft: 0,
245
+ argCount: 2
246
+ },
247
+ prefix: {
248
+ symbol: "+",
249
+ f: ke,
250
+ notation: "prefix",
251
+ precedence: 3,
252
+ rightToLeft: 0,
253
+ argCount: 1
254
+ },
255
+ symbol: "+",
256
+ regSymbol: "\\+"
257
+ },
258
+ "-": {
259
+ infix: {
260
+ symbol: "-",
261
+ f: Br,
262
+ notation: "infix",
263
+ precedence: 2,
264
+ rightToLeft: 0,
265
+ argCount: 2
266
+ },
267
+ prefix: {
268
+ symbol: "-",
269
+ f: $r,
270
+ notation: "prefix",
271
+ precedence: 3,
272
+ rightToLeft: 0,
273
+ argCount: 1
274
+ },
275
+ symbol: "-",
276
+ regSymbol: "-"
277
+ },
278
+ ",": {
279
+ infix: {
280
+ symbol: ",",
281
+ f: qr,
282
+ notation: "infix",
283
+ precedence: 1,
284
+ rightToLeft: 0,
285
+ argCount: 2
286
+ },
287
+ symbol: ",",
288
+ regSymbol: ","
289
+ },
290
+ "(": {
291
+ prefix: {
292
+ symbol: "(",
293
+ f: ke,
294
+ notation: "prefix",
295
+ precedence: 0,
296
+ rightToLeft: 0,
297
+ argCount: 1
298
+ },
299
+ symbol: "(",
300
+ regSymbol: "\\("
301
+ },
302
+ ")": {
303
+ postfix: {
304
+ symbol: ")",
305
+ f: void 0,
306
+ notation: "postfix",
307
+ precedence: 0,
308
+ rightToLeft: 0,
309
+ argCount: 1
310
+ },
311
+ symbol: ")",
312
+ regSymbol: "\\)"
313
+ },
314
+ min: {
315
+ func: {
316
+ symbol: "min",
317
+ f: Dr,
318
+ notation: "func",
319
+ precedence: 0,
320
+ rightToLeft: 0,
321
+ argCount: 1
322
+ },
323
+ symbol: "min",
324
+ regSymbol: "min\\b"
325
+ },
326
+ max: {
327
+ func: {
328
+ symbol: "max",
329
+ f: Er,
330
+ notation: "func",
331
+ precedence: 0,
332
+ rightToLeft: 0,
333
+ argCount: 1
334
+ },
335
+ symbol: "max",
336
+ regSymbol: "max\\b"
337
+ }
338
+ }
339
+ }, $e = Wr, Ur = {
340
+ 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation:\
341
+ 0.4, lightness: 0.75 }).
342
+
343
+ `,
344
+ 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, satu\
345
+ ration: 0.4, lightness: 0.75, alpha: 0.7 }).
346
+
347
+ `,
348
+ 3: `Passed an incorrect argument to a color function, please pass a string representation of a color.
349
+
350
+ `,
351
+ 4: `Couldn't generate valid rgb string from %s, it returned %s.
352
+
353
+ `,
354
+ 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
355
+
356
+ `,
357
+ 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, \
358
+ blue: 100 }).
359
+
360
+ `,
361
+ 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green\
362
+ : 205, blue: 100, alpha: 0.75 }).
363
+
364
+ `,
365
+ 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
366
+
367
+ `,
368
+ 9: `Please provide a number of steps to the modularScale helper.
369
+
370
+ `,
371
+ 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
372
+
373
+ `,
374
+ 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s"
375
+
376
+ `,
377
+ 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
378
+
379
+ `,
380
+ 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
381
+
382
+ `,
383
+ 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
384
+
385
+ `,
386
+ 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
387
+
388
+ `,
389
+ 16: `You must provide a template to this method.
390
+
391
+ `,
392
+ 17: `You passed an unsupported selector state to this method.
393
+
394
+ `,
395
+ 18: `minScreen and maxScreen must be provided as stringified numbers with the same units.
396
+
397
+ `,
398
+ 19: `fromSize and toSize must be provided as stringified numbers with the same units.
399
+
400
+ `,
401
+ 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
402
+
403
+ `,
404
+ 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
405
+ 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
406
+ 23: `fontFace expects a name of a font-family.
407
+
408
+ `,
409
+ 24: `fontFace expects either the path to the font file(s) or a name of a local copy.
410
+
411
+ `,
412
+ 25: `fontFace expects localFonts to be an array.
413
+
414
+ `,
415
+ 26: `fontFace expects fileFormats to be an array.
416
+
417
+ `,
418
+ 27: `radialGradient requries at least 2 color-stops to properly render.
419
+
420
+ `,
421
+ 28: `Please supply a filename to retinaImage() as the first argument.
422
+
423
+ `,
424
+ 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
425
+
426
+ `,
427
+ 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
428
+ 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
429
+
430
+ `,
431
+ 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
432
+ To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
433
+
434
+ `,
435
+ 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
436
+
437
+ `,
438
+ 34: `borderRadius expects a radius value as a string or number as the second argument.
439
+
440
+ `,
441
+ 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
442
+
443
+ `,
444
+ 36: `Property must be a string value.
445
+
446
+ `,
447
+ 37: `Syntax Error at %s.
448
+
449
+ `,
450
+ 38: `Formula contains a function that needs parentheses at %s.
451
+
452
+ `,
453
+ 39: `Formula is missing closing parenthesis at %s.
454
+
455
+ `,
456
+ 40: `Formula has too many closing parentheses at %s.
457
+
458
+ `,
459
+ 41: `All values in a formula must have the same unit or be unitless.
460
+
461
+ `,
462
+ 42: `Please provide a number of steps to the modularScale helper.
463
+
464
+ `,
465
+ 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
466
+
467
+ `,
468
+ 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
469
+
470
+ `,
471
+ 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
472
+
473
+ `,
474
+ 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
475
+
476
+ `,
477
+ 47: `minScreen and maxScreen must be provided as stringified numbers with the same units.
478
+
479
+ `,
480
+ 48: `fromSize and toSize must be provided as stringified numbers with the same units.
481
+
482
+ `,
483
+ 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
484
+
485
+ `,
486
+ 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
487
+
488
+ `,
489
+ 51: `Expects the first argument object to have the properties prop, fromSize, and toSize.
490
+
491
+ `,
492
+ 52: `fontFace expects either the path to the font file(s) or a name of a local copy.
493
+
494
+ `,
495
+ 53: `fontFace expects localFonts to be an array.
496
+
497
+ `,
498
+ 54: `fontFace expects fileFormats to be an array.
499
+
500
+ `,
501
+ 55: `fontFace expects a name of a font-family.
502
+
503
+ `,
504
+ 56: `linearGradient requries at least 2 color-stops to properly render.
505
+
506
+ `,
507
+ 57: `radialGradient requries at least 2 color-stops to properly render.
508
+
509
+ `,
510
+ 58: `Please supply a filename to retinaImage() as the first argument.
511
+
512
+ `,
513
+ 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
514
+
515
+ `,
516
+ 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
517
+ 61: `Property must be a string value.
518
+
519
+ `,
520
+ 62: `borderRadius expects a radius value as a string or number as the second argument.
521
+
522
+ `,
523
+ 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
524
+
525
+ `,
526
+ 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
527
+
528
+ `,
529
+ 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animat\
530
+ ion please supply them in simple values, e.g. animation('rotate', '2s').
531
+
532
+ `,
533
+ 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
534
+
535
+ `,
536
+ 67: `You must provide a template to this method.
537
+
538
+ `,
539
+ 68: `You passed an unsupported selector state to this method.
540
+
541
+ `,
542
+ 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
543
+
544
+ `,
545
+ 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
546
+
547
+ `,
548
+ 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
549
+
550
+ `,
551
+ 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
552
+
553
+ `,
554
+ 73: `Please provide a valid CSS variable.
555
+
556
+ `,
557
+ 74: `CSS variable not found and no default was provided.
558
+
559
+ `,
560
+ 75: `important requires a valid style object, got a %s instead.
561
+
562
+ `,
563
+ 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
564
+
565
+ `,
566
+ 77: `remToPx expects a value in "rem" but you provided it in "%s".
567
+
568
+ `,
569
+ 78: `base must be set in "px" or "%" but you set it in "%s".
570
+ `
571
+ };
572
+ function Vr() {
573
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
574
+ r[t] = arguments[t];
575
+ var n = r[0], o = [], i;
576
+ for (i = 1; i < r.length; i += 1)
577
+ o.push(r[i]);
578
+ return o.forEach(function(s) {
579
+ n = n.replace(/%[a-z]/, s);
580
+ }), n;
581
+ }
582
+ a(Vr, "format");
583
+ var p = /* @__PURE__ */ function(e) {
584
+ Mr.default(r, e);
585
+ function r(t) {
586
+ var n;
587
+ if (process.env.NODE_ENV === "production")
588
+ n = e.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + t +
589
+ " for more information.") || this;
590
+ else {
591
+ for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
592
+ i[s - 1] = arguments[s];
593
+ n = e.call(this, Vr.apply(void 0, [Ur[t]].concat(i))) || this;
594
+ }
595
+ return Or.default(n);
596
+ }
597
+ return a(r, "PolishedError"), r;
598
+ }(/* @__PURE__ */ kr.default(Error)), Pe = /((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;
599
+ function Nr(e) {
600
+ var r = {};
601
+ return r.symbols = e ? h.default({}, $e.symbols, e.symbols) : h.default({}, $e.symbols), r;
602
+ }
603
+ a(Nr, "mergeSymbolMaps");
604
+ function Be(e, r) {
605
+ var t, n = e.pop();
606
+ return r.push(n.f.apply(n, (t = []).concat.apply(t, r.splice(-n.argCount)))), n.precedence;
607
+ }
608
+ a(Be, "exec");
609
+ function Gr(e, r) {
610
+ var t = Nr(r), n, o = [t.symbols["("].prefix], i = [], s = new RegExp(
611
+ // Pattern for numbers
612
+ "\\d+(?:\\.\\d+)?|" + // ...and patterns for individual operators/function names
613
+ Object.keys(t.symbols).map(function(v) {
614
+ return t.symbols[v];
615
+ }).sort(function(v, T) {
616
+ return T.symbol.length - v.symbol.length;
617
+ }).map(function(v) {
618
+ return v.regSymbol;
619
+ }).join("|") + "|(\\S)",
620
+ "g"
621
+ );
622
+ s.lastIndex = 0;
623
+ var f = !1;
624
+ do {
625
+ n = s.exec(e);
626
+ var l = n || [")", void 0], c = l[0], b = l[1], d = t.symbols[c], m = d && !d.prefix && !d.func, x = !d || !d.postfix && !d.infix;
627
+ if (b || (f ? x : m))
628
+ throw new p(37, n ? n.index : e.length, e);
629
+ if (f) {
630
+ var w = d.postfix || d.infix;
631
+ do {
632
+ var z = o[o.length - 1];
633
+ if ((w.precedence - z.precedence || z.rightToLeft) > 0) break;
634
+ } while (Be(o, i));
635
+ f = w.notation === "postfix", w.symbol !== ")" && (o.push(w), f && Be(o, i));
636
+ } else if (d) {
637
+ if (o.push(d.prefix || d.func), d.func && (n = s.exec(e), !n || n[0] !== "("))
638
+ throw new p(38, n ? n.index : e.length, e);
639
+ } else
640
+ i.push(+c), f = !0;
641
+ } while (n && o.length);
642
+ if (o.length)
643
+ throw new p(39, n ? n.index : e.length, e);
644
+ if (n)
645
+ throw new p(40, n ? n.index : e.length, e);
646
+ return i.pop();
647
+ }
648
+ a(Gr, "calculate");
649
+ function ae(e) {
650
+ return e.split("").reverse().join("");
651
+ }
652
+ a(ae, "reverseString");
653
+ function Qr(e, r) {
654
+ var t = ae(e), n = t.match(Pe);
655
+ if (n && !n.every(function(i) {
656
+ return i === n[0];
657
+ }))
658
+ throw new p(41);
659
+ var o = ae(t.replace(Pe, ""));
660
+ return "" + Gr(o, r) + (n ? ae(n[0]) : "");
661
+ }
662
+ a(Qr, "math");
663
+ var Yr = /--[\S]*/g;
664
+ function Jr(e, r) {
665
+ if (!e || !e.match(Yr))
666
+ throw new p(73);
667
+ var t;
668
+ if (typeof document < "u" && document.documentElement !== null && (t = getComputedStyle(document.documentElement).getPropertyValue(e)), t)
669
+ return t.trim();
670
+ if (r)
671
+ return r;
672
+ throw new p(74);
673
+ }
674
+ a(Jr, "cssVar");
675
+ function G(e) {
676
+ return e.charAt(0).toUpperCase() + e.slice(1);
677
+ }
678
+ a(G, "capitalizeString");
679
+ var Zr = ["Top", "Right", "Bottom", "Left"];
680
+ function Xr(e, r) {
681
+ if (!e) return r.toLowerCase();
682
+ var t = e.split("-");
683
+ if (t.length > 1)
684
+ return t.splice(1, 0, r), t.reduce(function(o, i) {
685
+ return "" + o + G(i);
686
+ });
687
+ var n = e.replace(/([a-z])([A-Z])/g, "$1" + r + "$2");
688
+ return e === n ? "" + e + r : n;
689
+ }
690
+ a(Xr, "generateProperty");
691
+ function Kr(e, r) {
692
+ for (var t = {}, n = 0; n < r.length; n += 1)
693
+ (r[n] || r[n] === 0) && (t[Xr(e, Zr[n])] = r[n]);
694
+ return t;
695
+ }
696
+ a(Kr, "generateStyles");
697
+ function $(e) {
698
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
699
+ t[n - 1] = arguments[n];
700
+ var o = t[0], i = t[1], s = i === void 0 ? o : i, f = t[2], l = f === void 0 ? o : f, c = t[3], b = c === void 0 ? s : c, d = [o, s, l, b];
701
+ return Kr(e, d);
702
+ }
703
+ a($, "directionalProperty");
704
+ function Le(e, r) {
705
+ return e.substr(-r.length) === r;
706
+ }
707
+ a(Le, "endsWith");
708
+ var _r = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
709
+ function se(e) {
710
+ if (typeof e != "string") return e;
711
+ var r = e.match(_r);
712
+ return r ? parseFloat(e) : e;
713
+ }
714
+ a(se, "stripUnit");
715
+ var et = /* @__PURE__ */ a(function(r) {
716
+ return function(t, n) {
717
+ n === void 0 && (n = "16px");
718
+ var o = t, i = n;
719
+ if (typeof t == "string") {
720
+ if (!Le(t, "px"))
721
+ throw new p(69, r, t);
722
+ o = se(t);
723
+ }
724
+ if (typeof n == "string") {
725
+ if (!Le(n, "px"))
726
+ throw new p(70, r, n);
727
+ i = se(n);
728
+ }
729
+ if (typeof o == "string")
730
+ throw new p(71, t, r);
731
+ if (typeof i == "string")
732
+ throw new p(72, n, r);
733
+ return "" + o / i + r;
734
+ };
735
+ }, "pxtoFactory"), Qe = et, rt = /* @__PURE__ */ Qe("em"), tt = rt, nt = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
736
+ function A(e) {
737
+ if (typeof e != "string") return [e, ""];
738
+ var r = e.match(nt);
739
+ return r ? [parseFloat(e), r[2]] : [e, void 0];
740
+ }
741
+ a(A, "getValueAndUnit");
742
+ function Ye(e, r) {
743
+ if (typeof e != "object" || e === null)
744
+ throw new p(75, typeof e);
745
+ var t = {};
746
+ return Object.keys(e).forEach(function(n) {
747
+ typeof e[n] == "object" && e[n] !== null ? t[n] = Ye(e[n], r) : !r || r && (r === n || r.indexOf(n) >= 0) ? t[n] = e[n] + " !important" :
748
+ t[n] = e[n];
749
+ }), t;
750
+ }
751
+ a(Ye, "important");
752
+ var Je = {
753
+ minorSecond: 1.067,
754
+ majorSecond: 1.125,
755
+ minorThird: 1.2,
756
+ majorThird: 1.25,
757
+ perfectFourth: 1.333,
758
+ augFourth: 1.414,
759
+ perfectFifth: 1.5,
760
+ minorSixth: 1.6,
761
+ goldenSection: 1.618,
762
+ majorSixth: 1.667,
763
+ minorSeventh: 1.778,
764
+ majorSeventh: 1.875,
765
+ octave: 2,
766
+ majorTenth: 2.5,
767
+ majorEleventh: 2.667,
768
+ majorTwelfth: 3,
769
+ doubleOctave: 4
770
+ };
771
+ function at(e) {
772
+ return Je[e];
773
+ }
774
+ a(at, "getRatio");
775
+ function ot(e, r, t) {
776
+ if (r === void 0 && (r = "1em"), t === void 0 && (t = 1.333), typeof e != "number")
777
+ throw new p(42);
778
+ if (typeof t == "string" && !Je[t])
779
+ throw new p(43);
780
+ var n = typeof r == "string" ? A(r) : [r, ""], o = n[0], i = n[1], s = typeof t == "string" ? at(t) : t;
781
+ if (typeof o == "string")
782
+ throw new p(44, r);
783
+ return "" + o * Math.pow(s, e) + (i || "");
784
+ }
785
+ a(ot, "modularScale");
786
+ var it = /* @__PURE__ */ Qe("rem"), ut = it, fe = 16;
787
+ function Ze(e) {
788
+ var r = A(e);
789
+ if (r[1] === "px")
790
+ return parseFloat(e);
791
+ if (r[1] === "%")
792
+ return parseFloat(e) / 100 * fe;
793
+ throw new p(78, r[1]);
794
+ }
795
+ a(Ze, "convertBase");
796
+ function st() {
797
+ if (typeof document < "u" && document.documentElement !== null) {
798
+ var e = getComputedStyle(document.documentElement).fontSize;
799
+ return e ? Ze(e) : fe;
800
+ }
801
+ return fe;
802
+ }
803
+ a(st, "getBaseFromDoc");
804
+ function ft(e, r) {
805
+ var t = A(e);
806
+ if (t[1] !== "rem" && t[1] !== "")
807
+ throw new p(77, t[1]);
808
+ var n = r ? Ze(r) : st();
809
+ return t[0] * n + "px";
810
+ }
811
+ a(ft, "remToPx");
812
+ var pt = {
813
+ back: "cubic-bezier(0.600, -0.280, 0.735, 0.045)",
814
+ circ: "cubic-bezier(0.600, 0.040, 0.980, 0.335)",
815
+ cubic: "cubic-bezier(0.550, 0.055, 0.675, 0.190)",
816
+ expo: "cubic-bezier(0.950, 0.050, 0.795, 0.035)",
817
+ quad: "cubic-bezier(0.550, 0.085, 0.680, 0.530)",
818
+ quart: "cubic-bezier(0.895, 0.030, 0.685, 0.220)",
819
+ quint: "cubic-bezier(0.755, 0.050, 0.855, 0.060)",
820
+ sine: "cubic-bezier(0.470, 0.000, 0.745, 0.715)"
821
+ };
822
+ function lt(e) {
823
+ return pt[e.toLowerCase().trim()];
824
+ }
825
+ a(lt, "easeIn");
826
+ var dt = {
827
+ back: "cubic-bezier(0.680, -0.550, 0.265, 1.550)",
828
+ circ: "cubic-bezier(0.785, 0.135, 0.150, 0.860)",
829
+ cubic: "cubic-bezier(0.645, 0.045, 0.355, 1.000)",
830
+ expo: "cubic-bezier(1.000, 0.000, 0.000, 1.000)",
831
+ quad: "cubic-bezier(0.455, 0.030, 0.515, 0.955)",
832
+ quart: "cubic-bezier(0.770, 0.000, 0.175, 1.000)",
833
+ quint: "cubic-bezier(0.860, 0.000, 0.070, 1.000)",
834
+ sine: "cubic-bezier(0.445, 0.050, 0.550, 0.950)"
835
+ };
836
+ function ct(e) {
837
+ return dt[e.toLowerCase().trim()];
838
+ }
839
+ a(ct, "easeInOut");
840
+ var mt = {
841
+ back: "cubic-bezier(0.175, 0.885, 0.320, 1.275)",
842
+ cubic: "cubic-bezier(0.215, 0.610, 0.355, 1.000)",
843
+ circ: "cubic-bezier(0.075, 0.820, 0.165, 1.000)",
844
+ expo: "cubic-bezier(0.190, 1.000, 0.220, 1.000)",
845
+ quad: "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
846
+ quart: "cubic-bezier(0.165, 0.840, 0.440, 1.000)",
847
+ quint: "cubic-bezier(0.230, 1.000, 0.320, 1.000)",
848
+ sine: "cubic-bezier(0.390, 0.575, 0.565, 1.000)"
849
+ };
850
+ function gt(e) {
851
+ return mt[e.toLowerCase().trim()];
852
+ }
853
+ a(gt, "easeOut");
854
+ function pe(e, r, t, n) {
855
+ t === void 0 && (t = "320px"), n === void 0 && (n = "1200px");
856
+ var o = A(e), i = o[0], s = o[1], f = A(r), l = f[0], c = f[1], b = A(t), d = b[0], m = b[1], x = A(n), w = x[0], z = x[1];
857
+ if (typeof d != "number" || typeof w != "number" || !m || !z || m !== z)
858
+ throw new p(47);
859
+ if (typeof i != "number" || typeof l != "number" || s !== c)
860
+ throw new p(48);
861
+ if (s !== m || c !== z)
862
+ throw new p(76);
863
+ var v = (i - l) / (d - w), T = l - v * w;
864
+ return "calc(" + T.toFixed(2) + (s || "") + " + " + (100 * v).toFixed(2) + "vw)";
865
+ }
866
+ a(pe, "between");
867
+ function ht(e) {
868
+ var r;
869
+ e === void 0 && (e = "&");
870
+ var t = e + "::after";
871
+ return r = {}, r[t] = {
872
+ clear: "both",
873
+ content: '""',
874
+ display: "table"
875
+ }, r;
876
+ }
877
+ a(ht, "clearFix");
878
+ function bt(e) {
879
+ return e === void 0 && (e = 0), {
880
+ position: "absolute",
881
+ top: e,
882
+ right: e,
883
+ bottom: e,
884
+ left: e
885
+ };
886
+ }
887
+ a(bt, "cover");
888
+ function vt(e, r) {
889
+ r === void 0 && (r = 1);
890
+ var t = {
891
+ display: "inline-block",
892
+ maxWidth: e || "100%",
893
+ overflow: "hidden",
894
+ textOverflow: "ellipsis",
895
+ whiteSpace: "nowrap",
896
+ wordWrap: "normal"
897
+ };
898
+ return r > 1 ? h.default({}, t, {
899
+ WebkitBoxOrient: "vertical",
900
+ WebkitLineClamp: r,
901
+ display: "-webkit-box",
902
+ whiteSpace: "normal"
903
+ }) : t;
904
+ }
905
+ a(vt, "ellipsis");
906
+ function yt(e, r) {
907
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
908
+ if (t) return (t = t.call(e)).next.bind(t);
909
+ if (Array.isArray(e) || (t = xt(e)) || r && e && typeof e.length == "number") {
910
+ t && (e = t);
911
+ var n = 0;
912
+ return function() {
913
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
914
+ };
915
+ }
916
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
917
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
918
+ }
919
+ a(yt, "_createForOfIteratorHelperLoose");
920
+ function xt(e, r) {
921
+ if (e) {
922
+ if (typeof e == "string") return He(e, r);
923
+ var t = Object.prototype.toString.call(e).slice(8, -1);
924
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
925
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return He(e, r);
926
+ }
927
+ }
928
+ a(xt, "_unsupportedIterableToArray");
929
+ function He(e, r) {
930
+ (r == null || r > e.length) && (r = e.length);
931
+ for (var t = 0, n = new Array(r); t < r; t++)
932
+ n[t] = e[t];
933
+ return n;
934
+ }
935
+ a(He, "_arrayLikeToArray");
936
+ function wt(e, r, t) {
937
+ if (r === void 0 && (r = "320px"), t === void 0 && (t = "1200px"), !Array.isArray(e) && typeof e != "object" || e === null)
938
+ throw new p(49);
939
+ if (Array.isArray(e)) {
940
+ for (var n = {}, o = {}, i = yt(e), s; !(s = i()).done; ) {
941
+ var f, l, c = s.value;
942
+ if (!c.prop || !c.fromSize || !c.toSize)
943
+ throw new p(50);
944
+ o[c.prop] = c.fromSize, n["@media (min-width: " + r + ")"] = h.default({}, n["@media (min-width: " + r + ")"], (f = {}, f[c.prop] = pe(
945
+ c.fromSize, c.toSize, r, t), f)), n["@media (min-width: " + t + ")"] = h.default({}, n["@media (min-width: " + t + ")"], (l = {}, l[c.
946
+ prop] = c.toSize, l));
947
+ }
948
+ return h.default({}, o, n);
949
+ } else {
950
+ var b, d, m;
951
+ if (!e.prop || !e.fromSize || !e.toSize)
952
+ throw new p(51);
953
+ return m = {}, m[e.prop] = e.fromSize, m["@media (min-width: " + r + ")"] = (b = {}, b[e.prop] = pe(e.fromSize, e.toSize, r, t), b), m["\
954
+ @media (min-width: " + t + ")"] = (d = {}, d[e.prop] = e.toSize, d), m;
955
+ }
956
+ }
957
+ a(wt, "fluidRange");
958
+ var St = /^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i, Ft = {
959
+ woff: "woff",
960
+ woff2: "woff2",
961
+ ttf: "truetype",
962
+ otf: "opentype",
963
+ eot: "embedded-opentype",
964
+ svg: "svg",
965
+ svgz: "svg"
966
+ };
967
+ function Ee(e, r) {
968
+ return r ? ' format("' + Ft[e] + '")' : "";
969
+ }
970
+ a(Ee, "generateFormatHint");
971
+ function Ct(e) {
972
+ return !!e.replace(/\s+/g, " ").match(St);
973
+ }
974
+ a(Ct, "isDataURI");
975
+ function zt(e, r, t) {
976
+ if (Ct(e))
977
+ return 'url("' + e + '")' + Ee(r[0], t);
978
+ var n = r.map(function(o) {
979
+ return 'url("' + e + "." + o + '")' + Ee(o, t);
980
+ });
981
+ return n.join(", ");
982
+ }
983
+ a(zt, "generateFileReferences");
984
+ function Tt(e) {
985
+ var r = e.map(function(t) {
986
+ return 'local("' + t + '")';
987
+ });
988
+ return r.join(", ");
989
+ }
990
+ a(Tt, "generateLocalReferences");
991
+ function At(e, r, t, n) {
992
+ var o = [];
993
+ return r && o.push(Tt(r)), e && o.push(zt(e, t, n)), o.join(", ");
994
+ }
995
+ a(At, "generateSources");
996
+ function It(e) {
997
+ var r = e.fontFamily, t = e.fontFilePath, n = e.fontStretch, o = e.fontStyle, i = e.fontVariant, s = e.fontWeight, f = e.fileFormats, l = f ===
998
+ void 0 ? ["eot", "woff2", "woff", "ttf", "svg"] : f, c = e.formatHint, b = c === void 0 ? !1 : c, d = e.localFonts, m = d === void 0 ? [
999
+ r] : d, x = e.unicodeRange, w = e.fontDisplay, z = e.fontVariationSettings, v = e.fontFeatureSettings;
1000
+ if (!r) throw new p(55);
1001
+ if (!t && !m)
1002
+ throw new p(52);
1003
+ if (m && !Array.isArray(m))
1004
+ throw new p(53);
1005
+ if (!Array.isArray(l))
1006
+ throw new p(54);
1007
+ var T = {
1008
+ "@font-face": {
1009
+ fontFamily: r,
1010
+ src: At(t, m, l, b),
1011
+ unicodeRange: x,
1012
+ fontStretch: n,
1013
+ fontStyle: o,
1014
+ fontVariant: i,
1015
+ fontWeight: s,
1016
+ fontDisplay: w,
1017
+ fontVariationSettings: z,
1018
+ fontFeatureSettings: v
1019
+ }
1020
+ };
1021
+ return JSON.parse(JSON.stringify(T));
1022
+ }
1023
+ a(It, "fontFace");
1024
+ function Rt() {
1025
+ return {
1026
+ textIndent: "101%",
1027
+ overflow: "hidden",
1028
+ whiteSpace: "nowrap"
1029
+ };
1030
+ }
1031
+ a(Rt, "hideText");
1032
+ function jt() {
1033
+ return {
1034
+ border: "0",
1035
+ clip: "rect(0 0 0 0)",
1036
+ height: "1px",
1037
+ margin: "-1px",
1038
+ overflow: "hidden",
1039
+ padding: "0",
1040
+ position: "absolute",
1041
+ whiteSpace: "nowrap",
1042
+ width: "1px"
1043
+ };
1044
+ }
1045
+ a(jt, "hideVisually");
1046
+ function Xe(e) {
1047
+ return e === void 0 && (e = 1.3), `
1048
+ @media only screen and (-webkit-min-device-pixel-ratio: ` + e + `),
1049
+ only screen and (min--moz-device-pixel-ratio: ` + e + `),
1050
+ only screen and (-o-min-device-pixel-ratio: ` + e + `/1),
1051
+ only screen and (min-resolution: ` + Math.round(e * 96) + `dpi),
1052
+ only screen and (min-resolution: ` + e + `dppx)
1053
+ `;
1054
+ }
1055
+ a(Xe, "hiDPI");
1056
+ function Ke(e) {
1057
+ for (var r = "", t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
1058
+ n[o - 1] = arguments[o];
1059
+ for (var i = 0; i < e.length; i += 1)
1060
+ if (r += e[i], i === n.length - 1 && n[i]) {
1061
+ var s = n.filter(function(f) {
1062
+ return !!f;
1063
+ });
1064
+ s.length > 1 ? (r = r.slice(0, -1), r += ", " + n[i]) : s.length === 1 && (r += "" + n[i]);
1065
+ } else n[i] && (r += n[i] + " ");
1066
+ return r.trim();
1067
+ }
1068
+ a(Ke, "constructGradientValue");
1069
+ var De;
1070
+ function Ot(e) {
1071
+ var r = e.colorStops, t = e.fallback, n = e.toDirection, o = n === void 0 ? "" : n;
1072
+ if (!r || r.length < 2)
1073
+ throw new p(56);
1074
+ return {
1075
+ backgroundColor: t || r[0].replace(/,\s+/g, ",").split(" ")[0].replace(/,(?=\S)/g, ", "),
1076
+ backgroundImage: Ke(De || (De = Ge.default(["linear-gradient(", "", ")"])), o, r.join(", ").replace(/,(?=\S)/g, ", "))
1077
+ };
1078
+ }
1079
+ a(Ot, "linearGradient");
1080
+ function Mt() {
1081
+ var e;
1082
+ return [(e = {
1083
+ html: {
1084
+ lineHeight: "1.15",
1085
+ textSizeAdjust: "100%"
1086
+ },
1087
+ body: {
1088
+ margin: "0"
1089
+ },
1090
+ main: {
1091
+ display: "block"
1092
+ },
1093
+ h1: {
1094
+ fontSize: "2em",
1095
+ margin: "0.67em 0"
1096
+ },
1097
+ hr: {
1098
+ boxSizing: "content-box",
1099
+ height: "0",
1100
+ overflow: "visible"
1101
+ },
1102
+ pre: {
1103
+ fontFamily: "monospace, monospace",
1104
+ fontSize: "1em"
1105
+ },
1106
+ a: {
1107
+ backgroundColor: "transparent"
1108
+ },
1109
+ "abbr[title]": {
1110
+ borderBottom: "none",
1111
+ textDecoration: "underline"
1112
+ }
1113
+ }, e[`b,
1114
+ strong`] = {
1115
+ fontWeight: "bolder"
1116
+ }, e[`code,
1117
+ kbd,
1118
+ samp`] = {
1119
+ fontFamily: "monospace, monospace",
1120
+ fontSize: "1em"
1121
+ }, e.small = {
1122
+ fontSize: "80%"
1123
+ }, e[`sub,
1124
+ sup`] = {
1125
+ fontSize: "75%",
1126
+ lineHeight: "0",
1127
+ position: "relative",
1128
+ verticalAlign: "baseline"
1129
+ }, e.sub = {
1130
+ bottom: "-0.25em"
1131
+ }, e.sup = {
1132
+ top: "-0.5em"
1133
+ }, e.img = {
1134
+ borderStyle: "none"
1135
+ }, e[`button,
1136
+ input,
1137
+ optgroup,
1138
+ select,
1139
+ textarea`] = {
1140
+ fontFamily: "inherit",
1141
+ fontSize: "100%",
1142
+ lineHeight: "1.15",
1143
+ margin: "0"
1144
+ }, e[`button,
1145
+ input`] = {
1146
+ overflow: "visible"
1147
+ }, e[`button,
1148
+ select`] = {
1149
+ textTransform: "none"
1150
+ }, e[`button,
1151
+ html [type="button"],
1152
+ [type="reset"],
1153
+ [type="submit"]`] = {
1154
+ WebkitAppearance: "button"
1155
+ }, e[`button::-moz-focus-inner,
1156
+ [type="button"]::-moz-focus-inner,
1157
+ [type="reset"]::-moz-focus-inner,
1158
+ [type="submit"]::-moz-focus-inner`] = {
1159
+ borderStyle: "none",
1160
+ padding: "0"
1161
+ }, e[`button:-moz-focusring,
1162
+ [type="button"]:-moz-focusring,
1163
+ [type="reset"]:-moz-focusring,
1164
+ [type="submit"]:-moz-focusring`] = {
1165
+ outline: "1px dotted ButtonText"
1166
+ }, e.fieldset = {
1167
+ padding: "0.35em 0.625em 0.75em"
1168
+ }, e.legend = {
1169
+ boxSizing: "border-box",
1170
+ color: "inherit",
1171
+ display: "table",
1172
+ maxWidth: "100%",
1173
+ padding: "0",
1174
+ whiteSpace: "normal"
1175
+ }, e.progress = {
1176
+ verticalAlign: "baseline"
1177
+ }, e.textarea = {
1178
+ overflow: "auto"
1179
+ }, e[`[type="checkbox"],
1180
+ [type="radio"]`] = {
1181
+ boxSizing: "border-box",
1182
+ padding: "0"
1183
+ }, e[`[type="number"]::-webkit-inner-spin-button,
1184
+ [type="number"]::-webkit-outer-spin-button`] = {
1185
+ height: "auto"
1186
+ }, e['[type="search"]'] = {
1187
+ WebkitAppearance: "textfield",
1188
+ outlineOffset: "-2px"
1189
+ }, e['[type="search"]::-webkit-search-decoration'] = {
1190
+ WebkitAppearance: "none"
1191
+ }, e["::-webkit-file-upload-button"] = {
1192
+ WebkitAppearance: "button",
1193
+ font: "inherit"
1194
+ }, e.details = {
1195
+ display: "block"
1196
+ }, e.summary = {
1197
+ display: "list-item"
1198
+ }, e.template = {
1199
+ display: "none"
1200
+ }, e["[hidden]"] = {
1201
+ display: "none"
1202
+ }, e), {
1203
+ "abbr[title]": {
1204
+ textDecoration: "underline dotted"
1205
+ }
1206
+ }];
1207
+ }
1208
+ a(Mt, "normalize");
1209
+ var qe;
1210
+ function kt(e) {
1211
+ var r = e.colorStops, t = e.extent, n = t === void 0 ? "" : t, o = e.fallback, i = e.position, s = i === void 0 ? "" : i, f = e.shape, l = f ===
1212
+ void 0 ? "" : f;
1213
+ if (!r || r.length < 2)
1214
+ throw new p(57);
1215
+ return {
1216
+ backgroundColor: o || r[0].split(" ")[0],
1217
+ backgroundImage: Ke(qe || (qe = Ge.default(["radial-gradient(", "", "", "", ")"])), s, l, n, r.join(", "))
1218
+ };
1219
+ }
1220
+ a(kt, "radialGradient");
1221
+ function $t(e, r, t, n, o) {
1222
+ var i;
1223
+ if (t === void 0 && (t = "png"), o === void 0 && (o = "_2x"), !e)
1224
+ throw new p(58);
1225
+ var s = t.replace(/^\./, ""), f = n ? n + "." + s : "" + e + o + "." + s;
1226
+ return i = {
1227
+ backgroundImage: "url(" + e + "." + s + ")"
1228
+ }, i[Xe()] = h.default({
1229
+ backgroundImage: "url(" + f + ")"
1230
+ }, r ? {
1231
+ backgroundSize: r
1232
+ } : {}), i;
1233
+ }
1234
+ a($t, "retinaImage");
1235
+ var Pt = {
1236
+ easeInBack: "cubic-bezier(0.600, -0.280, 0.735, 0.045)",
1237
+ easeInCirc: "cubic-bezier(0.600, 0.040, 0.980, 0.335)",
1238
+ easeInCubic: "cubic-bezier(0.550, 0.055, 0.675, 0.190)",
1239
+ easeInExpo: "cubic-bezier(0.950, 0.050, 0.795, 0.035)",
1240
+ easeInQuad: "cubic-bezier(0.550, 0.085, 0.680, 0.530)",
1241
+ easeInQuart: "cubic-bezier(0.895, 0.030, 0.685, 0.220)",
1242
+ easeInQuint: "cubic-bezier(0.755, 0.050, 0.855, 0.060)",
1243
+ easeInSine: "cubic-bezier(0.470, 0.000, 0.745, 0.715)",
1244
+ easeOutBack: "cubic-bezier(0.175, 0.885, 0.320, 1.275)",
1245
+ easeOutCubic: "cubic-bezier(0.215, 0.610, 0.355, 1.000)",
1246
+ easeOutCirc: "cubic-bezier(0.075, 0.820, 0.165, 1.000)",
1247
+ easeOutExpo: "cubic-bezier(0.190, 1.000, 0.220, 1.000)",
1248
+ easeOutQuad: "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
1249
+ easeOutQuart: "cubic-bezier(0.165, 0.840, 0.440, 1.000)",
1250
+ easeOutQuint: "cubic-bezier(0.230, 1.000, 0.320, 1.000)",
1251
+ easeOutSine: "cubic-bezier(0.390, 0.575, 0.565, 1.000)",
1252
+ easeInOutBack: "cubic-bezier(0.680, -0.550, 0.265, 1.550)",
1253
+ easeInOutCirc: "cubic-bezier(0.785, 0.135, 0.150, 0.860)",
1254
+ easeInOutCubic: "cubic-bezier(0.645, 0.045, 0.355, 1.000)",
1255
+ easeInOutExpo: "cubic-bezier(1.000, 0.000, 0.000, 1.000)",
1256
+ easeInOutQuad: "cubic-bezier(0.455, 0.030, 0.515, 0.955)",
1257
+ easeInOutQuart: "cubic-bezier(0.770, 0.000, 0.175, 1.000)",
1258
+ easeInOutQuint: "cubic-bezier(0.860, 0.000, 0.070, 1.000)",
1259
+ easeInOutSine: "cubic-bezier(0.445, 0.050, 0.550, 0.950)"
1260
+ };
1261
+ function Bt(e) {
1262
+ return Pt[e];
1263
+ }
1264
+ a(Bt, "getTimingFunction");
1265
+ function Lt(e) {
1266
+ return Bt(e);
1267
+ }
1268
+ a(Lt, "timingFunctions");
1269
+ var Ht = /* @__PURE__ */ a(function(r, t, n) {
1270
+ var o = "" + n[0] + (n[1] || ""), i = "" + n[0] / 2 + (n[1] || ""), s = "" + t[0] + (t[1] || ""), f = "" + t[0] / 2 + (t[1] || "");
1271
+ switch (r) {
1272
+ case "top":
1273
+ return "0 " + i + " " + s + " " + i;
1274
+ case "topLeft":
1275
+ return o + " " + s + " 0 0";
1276
+ case "left":
1277
+ return f + " " + o + " " + f + " 0";
1278
+ case "bottomLeft":
1279
+ return o + " 0 0 " + s;
1280
+ case "bottom":
1281
+ return s + " " + i + " 0 " + i;
1282
+ case "bottomRight":
1283
+ return "0 0 " + o + " " + s;
1284
+ case "right":
1285
+ return f + " 0 " + f + " " + o;
1286
+ case "topRight":
1287
+ default:
1288
+ return "0 " + o + " " + s + " 0";
1289
+ }
1290
+ }, "getBorderWidth"), Et = /* @__PURE__ */ a(function(r, t) {
1291
+ switch (r) {
1292
+ case "top":
1293
+ case "bottomRight":
1294
+ return {
1295
+ borderBottomColor: t
1296
+ };
1297
+ case "right":
1298
+ case "bottomLeft":
1299
+ return {
1300
+ borderLeftColor: t
1301
+ };
1302
+ case "bottom":
1303
+ case "topLeft":
1304
+ return {
1305
+ borderTopColor: t
1306
+ };
1307
+ case "left":
1308
+ case "topRight":
1309
+ return {
1310
+ borderRightColor: t
1311
+ };
1312
+ default:
1313
+ throw new p(59);
1314
+ }
1315
+ }, "getBorderColor");
1316
+ function Dt(e) {
1317
+ var r = e.pointingDirection, t = e.height, n = e.width, o = e.foregroundColor, i = e.backgroundColor, s = i === void 0 ? "transparent" :
1318
+ i, f = A(n), l = A(t);
1319
+ if (isNaN(l[0]) || isNaN(f[0]))
1320
+ throw new p(60);
1321
+ return h.default({
1322
+ width: "0",
1323
+ height: "0",
1324
+ borderColor: s
1325
+ }, Et(r, o), {
1326
+ borderStyle: "solid",
1327
+ borderWidth: Ht(r, l, f)
1328
+ });
1329
+ }
1330
+ a(Dt, "triangle");
1331
+ function qt(e) {
1332
+ e === void 0 && (e = "break-word");
1333
+ var r = e === "break-word" ? "break-all" : e;
1334
+ return {
1335
+ overflowWrap: e,
1336
+ wordWrap: e,
1337
+ wordBreak: r
1338
+ };
1339
+ }
1340
+ a(qt, "wordWrap");
1341
+ function oe(e) {
1342
+ return Math.round(e * 255);
1343
+ }
1344
+ a(oe, "colorToInt");
1345
+ function Wt(e, r, t) {
1346
+ return oe(e) + "," + oe(r) + "," + oe(t);
1347
+ }
1348
+ a(Wt, "convertToInt");
1349
+ function Q(e, r, t, n) {
1350
+ if (n === void 0 && (n = Wt), r === 0)
1351
+ return n(t, t, t);
1352
+ var o = (e % 360 + 360) % 360 / 60, i = (1 - Math.abs(2 * t - 1)) * r, s = i * (1 - Math.abs(o % 2 - 1)), f = 0, l = 0, c = 0;
1353
+ o >= 0 && o < 1 ? (f = i, l = s) : o >= 1 && o < 2 ? (f = s, l = i) : o >= 2 && o < 3 ? (l = i, c = s) : o >= 3 && o < 4 ? (l = s, c = i) :
1354
+ o >= 4 && o < 5 ? (f = s, c = i) : o >= 5 && o < 6 && (f = i, c = s);
1355
+ var b = t - i / 2, d = f + b, m = l + b, x = c + b;
1356
+ return n(d, m, x);
1357
+ }
1358
+ a(Q, "hslToRgb");
1359
+ var We = {
1360
+ aliceblue: "f0f8ff",
1361
+ antiquewhite: "faebd7",
1362
+ aqua: "00ffff",
1363
+ aquamarine: "7fffd4",
1364
+ azure: "f0ffff",
1365
+ beige: "f5f5dc",
1366
+ bisque: "ffe4c4",
1367
+ black: "000",
1368
+ blanchedalmond: "ffebcd",
1369
+ blue: "0000ff",
1370
+ blueviolet: "8a2be2",
1371
+ brown: "a52a2a",
1372
+ burlywood: "deb887",
1373
+ cadetblue: "5f9ea0",
1374
+ chartreuse: "7fff00",
1375
+ chocolate: "d2691e",
1376
+ coral: "ff7f50",
1377
+ cornflowerblue: "6495ed",
1378
+ cornsilk: "fff8dc",
1379
+ crimson: "dc143c",
1380
+ cyan: "00ffff",
1381
+ darkblue: "00008b",
1382
+ darkcyan: "008b8b",
1383
+ darkgoldenrod: "b8860b",
1384
+ darkgray: "a9a9a9",
1385
+ darkgreen: "006400",
1386
+ darkgrey: "a9a9a9",
1387
+ darkkhaki: "bdb76b",
1388
+ darkmagenta: "8b008b",
1389
+ darkolivegreen: "556b2f",
1390
+ darkorange: "ff8c00",
1391
+ darkorchid: "9932cc",
1392
+ darkred: "8b0000",
1393
+ darksalmon: "e9967a",
1394
+ darkseagreen: "8fbc8f",
1395
+ darkslateblue: "483d8b",
1396
+ darkslategray: "2f4f4f",
1397
+ darkslategrey: "2f4f4f",
1398
+ darkturquoise: "00ced1",
1399
+ darkviolet: "9400d3",
1400
+ deeppink: "ff1493",
1401
+ deepskyblue: "00bfff",
1402
+ dimgray: "696969",
1403
+ dimgrey: "696969",
1404
+ dodgerblue: "1e90ff",
1405
+ firebrick: "b22222",
1406
+ floralwhite: "fffaf0",
1407
+ forestgreen: "228b22",
1408
+ fuchsia: "ff00ff",
1409
+ gainsboro: "dcdcdc",
1410
+ ghostwhite: "f8f8ff",
1411
+ gold: "ffd700",
1412
+ goldenrod: "daa520",
1413
+ gray: "808080",
1414
+ green: "008000",
1415
+ greenyellow: "adff2f",
1416
+ grey: "808080",
1417
+ honeydew: "f0fff0",
1418
+ hotpink: "ff69b4",
1419
+ indianred: "cd5c5c",
1420
+ indigo: "4b0082",
1421
+ ivory: "fffff0",
1422
+ khaki: "f0e68c",
1423
+ lavender: "e6e6fa",
1424
+ lavenderblush: "fff0f5",
1425
+ lawngreen: "7cfc00",
1426
+ lemonchiffon: "fffacd",
1427
+ lightblue: "add8e6",
1428
+ lightcoral: "f08080",
1429
+ lightcyan: "e0ffff",
1430
+ lightgoldenrodyellow: "fafad2",
1431
+ lightgray: "d3d3d3",
1432
+ lightgreen: "90ee90",
1433
+ lightgrey: "d3d3d3",
1434
+ lightpink: "ffb6c1",
1435
+ lightsalmon: "ffa07a",
1436
+ lightseagreen: "20b2aa",
1437
+ lightskyblue: "87cefa",
1438
+ lightslategray: "789",
1439
+ lightslategrey: "789",
1440
+ lightsteelblue: "b0c4de",
1441
+ lightyellow: "ffffe0",
1442
+ lime: "0f0",
1443
+ limegreen: "32cd32",
1444
+ linen: "faf0e6",
1445
+ magenta: "f0f",
1446
+ maroon: "800000",
1447
+ mediumaquamarine: "66cdaa",
1448
+ mediumblue: "0000cd",
1449
+ mediumorchid: "ba55d3",
1450
+ mediumpurple: "9370db",
1451
+ mediumseagreen: "3cb371",
1452
+ mediumslateblue: "7b68ee",
1453
+ mediumspringgreen: "00fa9a",
1454
+ mediumturquoise: "48d1cc",
1455
+ mediumvioletred: "c71585",
1456
+ midnightblue: "191970",
1457
+ mintcream: "f5fffa",
1458
+ mistyrose: "ffe4e1",
1459
+ moccasin: "ffe4b5",
1460
+ navajowhite: "ffdead",
1461
+ navy: "000080",
1462
+ oldlace: "fdf5e6",
1463
+ olive: "808000",
1464
+ olivedrab: "6b8e23",
1465
+ orange: "ffa500",
1466
+ orangered: "ff4500",
1467
+ orchid: "da70d6",
1468
+ palegoldenrod: "eee8aa",
1469
+ palegreen: "98fb98",
1470
+ paleturquoise: "afeeee",
1471
+ palevioletred: "db7093",
1472
+ papayawhip: "ffefd5",
1473
+ peachpuff: "ffdab9",
1474
+ peru: "cd853f",
1475
+ pink: "ffc0cb",
1476
+ plum: "dda0dd",
1477
+ powderblue: "b0e0e6",
1478
+ purple: "800080",
1479
+ rebeccapurple: "639",
1480
+ red: "f00",
1481
+ rosybrown: "bc8f8f",
1482
+ royalblue: "4169e1",
1483
+ saddlebrown: "8b4513",
1484
+ salmon: "fa8072",
1485
+ sandybrown: "f4a460",
1486
+ seagreen: "2e8b57",
1487
+ seashell: "fff5ee",
1488
+ sienna: "a0522d",
1489
+ silver: "c0c0c0",
1490
+ skyblue: "87ceeb",
1491
+ slateblue: "6a5acd",
1492
+ slategray: "708090",
1493
+ slategrey: "708090",
1494
+ snow: "fffafa",
1495
+ springgreen: "00ff7f",
1496
+ steelblue: "4682b4",
1497
+ tan: "d2b48c",
1498
+ teal: "008080",
1499
+ thistle: "d8bfd8",
1500
+ tomato: "ff6347",
1501
+ turquoise: "40e0d0",
1502
+ violet: "ee82ee",
1503
+ wheat: "f5deb3",
1504
+ white: "fff",
1505
+ whitesmoke: "f5f5f5",
1506
+ yellow: "ff0",
1507
+ yellowgreen: "9acd32"
1508
+ };
1509
+ function Ut(e) {
1510
+ if (typeof e != "string") return e;
1511
+ var r = e.toLowerCase();
1512
+ return We[r] ? "#" + We[r] : e;
1513
+ }
1514
+ a(Ut, "nameToHex");
1515
+ var Vt = /^#[a-fA-F0-9]{6}$/, Nt = /^#[a-fA-F0-9]{8}$/, Gt = /^#[a-fA-F0-9]{3}$/, Qt = /^#[a-fA-F0-9]{4}$/, ie = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,
1516
+ Yt = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, Jt = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,
1517
+ Zt = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
1518
+ function k(e) {
1519
+ if (typeof e != "string")
1520
+ throw new p(3);
1521
+ var r = Ut(e);
1522
+ if (r.match(Vt))
1523
+ return {
1524
+ red: parseInt("" + r[1] + r[2], 16),
1525
+ green: parseInt("" + r[3] + r[4], 16),
1526
+ blue: parseInt("" + r[5] + r[6], 16)
1527
+ };
1528
+ if (r.match(Nt)) {
1529
+ var t = parseFloat((parseInt("" + r[7] + r[8], 16) / 255).toFixed(2));
1530
+ return {
1531
+ red: parseInt("" + r[1] + r[2], 16),
1532
+ green: parseInt("" + r[3] + r[4], 16),
1533
+ blue: parseInt("" + r[5] + r[6], 16),
1534
+ alpha: t
1535
+ };
1536
+ }
1537
+ if (r.match(Gt))
1538
+ return {
1539
+ red: parseInt("" + r[1] + r[1], 16),
1540
+ green: parseInt("" + r[2] + r[2], 16),
1541
+ blue: parseInt("" + r[3] + r[3], 16)
1542
+ };
1543
+ if (r.match(Qt)) {
1544
+ var n = parseFloat((parseInt("" + r[4] + r[4], 16) / 255).toFixed(2));
1545
+ return {
1546
+ red: parseInt("" + r[1] + r[1], 16),
1547
+ green: parseInt("" + r[2] + r[2], 16),
1548
+ blue: parseInt("" + r[3] + r[3], 16),
1549
+ alpha: n
1550
+ };
1551
+ }
1552
+ var o = ie.exec(r);
1553
+ if (o)
1554
+ return {
1555
+ red: parseInt("" + o[1], 10),
1556
+ green: parseInt("" + o[2], 10),
1557
+ blue: parseInt("" + o[3], 10)
1558
+ };
1559
+ var i = Yt.exec(r.substring(0, 50));
1560
+ if (i)
1561
+ return {
1562
+ red: parseInt("" + i[1], 10),
1563
+ green: parseInt("" + i[2], 10),
1564
+ blue: parseInt("" + i[3], 10),
1565
+ alpha: parseFloat("" + i[4]) > 1 ? parseFloat("" + i[4]) / 100 : parseFloat("" + i[4])
1566
+ };
1567
+ var s = Jt.exec(r);
1568
+ if (s) {
1569
+ var f = parseInt("" + s[1], 10), l = parseInt("" + s[2], 10) / 100, c = parseInt("" + s[3], 10) / 100, b = "rgb(" + Q(f, l, c) + ")", d = ie.
1570
+ exec(b);
1571
+ if (!d)
1572
+ throw new p(4, r, b);
1573
+ return {
1574
+ red: parseInt("" + d[1], 10),
1575
+ green: parseInt("" + d[2], 10),
1576
+ blue: parseInt("" + d[3], 10)
1577
+ };
1578
+ }
1579
+ var m = Zt.exec(r.substring(0, 50));
1580
+ if (m) {
1581
+ var x = parseInt("" + m[1], 10), w = parseInt("" + m[2], 10) / 100, z = parseInt("" + m[3], 10) / 100, v = "rgb(" + Q(x, w, z) + ")", T = ie.
1582
+ exec(v);
1583
+ if (!T)
1584
+ throw new p(4, r, v);
1585
+ return {
1586
+ red: parseInt("" + T[1], 10),
1587
+ green: parseInt("" + T[2], 10),
1588
+ blue: parseInt("" + T[3], 10),
1589
+ alpha: parseFloat("" + m[4]) > 1 ? parseFloat("" + m[4]) / 100 : parseFloat("" + m[4])
1590
+ };
1591
+ }
1592
+ throw new p(5);
1593
+ }
1594
+ a(k, "parseToRgb");
1595
+ function Xt(e) {
1596
+ var r = e.red / 255, t = e.green / 255, n = e.blue / 255, o = Math.max(r, t, n), i = Math.min(r, t, n), s = (o + i) / 2;
1597
+ if (o === i)
1598
+ return e.alpha !== void 0 ? {
1599
+ hue: 0,
1600
+ saturation: 0,
1601
+ lightness: s,
1602
+ alpha: e.alpha
1603
+ } : {
1604
+ hue: 0,
1605
+ saturation: 0,
1606
+ lightness: s
1607
+ };
1608
+ var f, l = o - i, c = s > 0.5 ? l / (2 - o - i) : l / (o + i);
1609
+ switch (o) {
1610
+ case r:
1611
+ f = (t - n) / l + (t < n ? 6 : 0);
1612
+ break;
1613
+ case t:
1614
+ f = (n - r) / l + 2;
1615
+ break;
1616
+ default:
1617
+ f = (r - t) / l + 4;
1618
+ break;
1619
+ }
1620
+ return f *= 60, e.alpha !== void 0 ? {
1621
+ hue: f,
1622
+ saturation: c,
1623
+ lightness: s,
1624
+ alpha: e.alpha
1625
+ } : {
1626
+ hue: f,
1627
+ saturation: c,
1628
+ lightness: s
1629
+ };
1630
+ }
1631
+ a(Xt, "rgbToHsl");
1632
+ function C(e) {
1633
+ return Xt(k(e));
1634
+ }
1635
+ a(C, "parseToHsl");
1636
+ var Kt = /* @__PURE__ */ a(function(r) {
1637
+ return r.length === 7 && r[1] === r[2] && r[3] === r[4] && r[5] === r[6] ? "#" + r[1] + r[3] + r[5] : r;
1638
+ }, "reduceHexValue"), le = Kt;
1639
+ function P(e) {
1640
+ var r = e.toString(16);
1641
+ return r.length === 1 ? "0" + r : r;
1642
+ }
1643
+ a(P, "numberToHex");
1644
+ function ue(e) {
1645
+ return P(Math.round(e * 255));
1646
+ }
1647
+ a(ue, "colorToHex");
1648
+ function _t(e, r, t) {
1649
+ return le("#" + ue(e) + ue(r) + ue(t));
1650
+ }
1651
+ a(_t, "convertToHex");
1652
+ function X(e, r, t) {
1653
+ return Q(e, r, t, _t);
1654
+ }
1655
+ a(X, "hslToHex");
1656
+ function de(e, r, t) {
1657
+ if (typeof e == "number" && typeof r == "number" && typeof t == "number")
1658
+ return X(e, r, t);
1659
+ if (typeof e == "object" && r === void 0 && t === void 0)
1660
+ return X(e.hue, e.saturation, e.lightness);
1661
+ throw new p(1);
1662
+ }
1663
+ a(de, "hsl");
1664
+ function ce(e, r, t, n) {
1665
+ if (typeof e == "number" && typeof r == "number" && typeof t == "number" && typeof n == "number")
1666
+ return n >= 1 ? X(e, r, t) : "rgba(" + Q(e, r, t) + "," + n + ")";
1667
+ if (typeof e == "object" && r === void 0 && t === void 0 && n === void 0)
1668
+ return e.alpha >= 1 ? X(e.hue, e.saturation, e.lightness) : "rgba(" + Q(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
1669
+ throw new p(2);
1670
+ }
1671
+ a(ce, "hsla");
1672
+ function Y(e, r, t) {
1673
+ if (typeof e == "number" && typeof r == "number" && typeof t == "number")
1674
+ return le("#" + P(e) + P(r) + P(t));
1675
+ if (typeof e == "object" && r === void 0 && t === void 0)
1676
+ return le("#" + P(e.red) + P(e.green) + P(e.blue));
1677
+ throw new p(6);
1678
+ }
1679
+ a(Y, "rgb");
1680
+ function L(e, r, t, n) {
1681
+ if (typeof e == "string" && typeof r == "number") {
1682
+ var o = k(e);
1683
+ return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + r + ")";
1684
+ } else {
1685
+ if (typeof e == "number" && typeof r == "number" && typeof t == "number" && typeof n == "number")
1686
+ return n >= 1 ? Y(e, r, t) : "rgba(" + e + "," + r + "," + t + "," + n + ")";
1687
+ if (typeof e == "object" && r === void 0 && t === void 0 && n === void 0)
1688
+ return e.alpha >= 1 ? Y(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
1689
+ }
1690
+ throw new p(7);
1691
+ }
1692
+ a(L, "rgba");
1693
+ var en = /* @__PURE__ */ a(function(r) {
1694
+ return typeof r.red == "number" && typeof r.green == "number" && typeof r.blue == "number" && (typeof r.alpha != "number" || typeof r.alpha >
1695
+ "u");
1696
+ }, "isRgb"), rn = /* @__PURE__ */ a(function(r) {
1697
+ return typeof r.red == "number" && typeof r.green == "number" && typeof r.blue == "number" && typeof r.alpha == "number";
1698
+ }, "isRgba"), tn = /* @__PURE__ */ a(function(r) {
1699
+ return typeof r.hue == "number" && typeof r.saturation == "number" && typeof r.lightness == "number" && (typeof r.alpha != "number" || typeof r.
1700
+ alpha > "u");
1701
+ }, "isHsl"), nn = /* @__PURE__ */ a(function(r) {
1702
+ return typeof r.hue == "number" && typeof r.saturation == "number" && typeof r.lightness == "number" && typeof r.alpha == "number";
1703
+ }, "isHsla");
1704
+ function S(e) {
1705
+ if (typeof e != "object") throw new p(8);
1706
+ if (rn(e)) return L(e);
1707
+ if (en(e)) return Y(e);
1708
+ if (nn(e)) return ce(e);
1709
+ if (tn(e)) return de(e);
1710
+ throw new p(8);
1711
+ }
1712
+ a(S, "toColorString");
1713
+ function _e(e, r, t) {
1714
+ return /* @__PURE__ */ a(function() {
1715
+ var o = t.concat(Array.prototype.slice.call(arguments));
1716
+ return o.length >= r ? e.apply(this, o) : _e(e, r, o);
1717
+ }, "fn");
1718
+ }
1719
+ a(_e, "curried");
1720
+ function y(e) {
1721
+ return _e(e, e.length, []);
1722
+ }
1723
+ a(y, "curry");
1724
+ function an(e, r) {
1725
+ if (r === "transparent") return r;
1726
+ var t = C(r);
1727
+ return S(h.default({}, t, {
1728
+ hue: t.hue + parseFloat(e)
1729
+ }));
1730
+ }
1731
+ a(an, "adjustHue");
1732
+ var on = /* @__PURE__ */ y(an), un = on;
1733
+ function sn(e) {
1734
+ if (e === "transparent") return e;
1735
+ var r = C(e);
1736
+ return S(h.default({}, r, {
1737
+ hue: (r.hue + 180) % 360
1738
+ }));
1739
+ }
1740
+ a(sn, "complement");
1741
+ function H(e, r, t) {
1742
+ return Math.max(e, Math.min(r, t));
1743
+ }
1744
+ a(H, "guard");
1745
+ function fn(e, r) {
1746
+ if (r === "transparent") return r;
1747
+ var t = C(r);
1748
+ return S(h.default({}, t, {
1749
+ lightness: H(0, 1, t.lightness - parseFloat(e))
1750
+ }));
1751
+ }
1752
+ a(fn, "darken");
1753
+ var pn = /* @__PURE__ */ y(fn), ln = pn;
1754
+ function dn(e, r) {
1755
+ if (r === "transparent") return r;
1756
+ var t = C(r);
1757
+ return S(h.default({}, t, {
1758
+ saturation: H(0, 1, t.saturation - parseFloat(e))
1759
+ }));
1760
+ }
1761
+ a(dn, "desaturate");
1762
+ var cn = /* @__PURE__ */ y(dn), mn = cn;
1763
+ function K(e) {
1764
+ if (e === "transparent") return 0;
1765
+ var r = k(e), t = Object.keys(r).map(function(s) {
1766
+ var f = r[s] / 255;
1767
+ return f <= 0.03928 ? f / 12.92 : Math.pow((f + 0.055) / 1.055, 2.4);
1768
+ }), n = t[0], o = t[1], i = t[2];
1769
+ return parseFloat((0.2126 * n + 0.7152 * o + 0.0722 * i).toFixed(3));
1770
+ }
1771
+ a(K, "getLuminance");
1772
+ function me(e, r) {
1773
+ var t = K(e), n = K(r);
1774
+ return parseFloat((t > n ? (t + 0.05) / (n + 0.05) : (n + 0.05) / (t + 0.05)).toFixed(2));
1775
+ }
1776
+ a(me, "getContrast");
1777
+ function gn(e) {
1778
+ return e === "transparent" ? e : S(h.default({}, C(e), {
1779
+ saturation: 0
1780
+ }));
1781
+ }
1782
+ a(gn, "grayscale");
1783
+ function hn(e) {
1784
+ if (typeof e == "object" && typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number")
1785
+ return e.alpha && typeof e.alpha == "number" ? ce({
1786
+ hue: e.hue,
1787
+ saturation: e.saturation,
1788
+ lightness: e.lightness,
1789
+ alpha: e.alpha
1790
+ }) : de({
1791
+ hue: e.hue,
1792
+ saturation: e.saturation,
1793
+ lightness: e.lightness
1794
+ });
1795
+ throw new p(45);
1796
+ }
1797
+ a(hn, "hslToColorString");
1798
+ function bn(e) {
1799
+ if (e === "transparent") return e;
1800
+ var r = k(e);
1801
+ return S(h.default({}, r, {
1802
+ red: 255 - r.red,
1803
+ green: 255 - r.green,
1804
+ blue: 255 - r.blue
1805
+ }));
1806
+ }
1807
+ a(bn, "invert");
1808
+ function vn(e, r) {
1809
+ if (r === "transparent") return r;
1810
+ var t = C(r);
1811
+ return S(h.default({}, t, {
1812
+ lightness: H(0, 1, t.lightness + parseFloat(e))
1813
+ }));
1814
+ }
1815
+ a(vn, "lighten");
1816
+ var yn = /* @__PURE__ */ y(vn), xn = yn;
1817
+ function wn(e, r) {
1818
+ var t = me(e, r);
1819
+ return {
1820
+ AA: t >= 4.5,
1821
+ AALarge: t >= 3,
1822
+ AAA: t >= 7,
1823
+ AAALarge: t >= 4.5
1824
+ };
1825
+ }
1826
+ a(wn, "meetsContrastGuidelines");
1827
+ function Sn(e, r, t) {
1828
+ if (r === "transparent") return t;
1829
+ if (t === "transparent") return r;
1830
+ if (e === 0) return t;
1831
+ var n = k(r), o = h.default({}, n, {
1832
+ alpha: typeof n.alpha == "number" ? n.alpha : 1
1833
+ }), i = k(t), s = h.default({}, i, {
1834
+ alpha: typeof i.alpha == "number" ? i.alpha : 1
1835
+ }), f = o.alpha - s.alpha, l = parseFloat(e) * 2 - 1, c = l * f === -1 ? l : l + f, b = 1 + l * f, d = (c / b + 1) / 2, m = 1 - d, x = {
1836
+ red: Math.floor(o.red * d + s.red * m),
1837
+ green: Math.floor(o.green * d + s.green * m),
1838
+ blue: Math.floor(o.blue * d + s.blue * m),
1839
+ alpha: o.alpha * parseFloat(e) + s.alpha * (1 - parseFloat(e))
1840
+ };
1841
+ return L(x);
1842
+ }
1843
+ a(Sn, "mix");
1844
+ var Fn = /* @__PURE__ */ y(Sn), ge = Fn;
1845
+ function Cn(e, r) {
1846
+ if (r === "transparent") return r;
1847
+ var t = k(r), n = typeof t.alpha == "number" ? t.alpha : 1, o = h.default({}, t, {
1848
+ alpha: H(0, 1, (n * 100 + parseFloat(e) * 100) / 100)
1849
+ });
1850
+ return L(o);
1851
+ }
1852
+ a(Cn, "opacify");
1853
+ var zn = /* @__PURE__ */ y(Cn), Tn = zn, Ue = "#000", Ve = "#fff";
1854
+ function An(e, r, t, n) {
1855
+ r === void 0 && (r = Ue), t === void 0 && (t = Ve), n === void 0 && (n = !0);
1856
+ var o = K(e) > 0.179, i = o ? r : t;
1857
+ return !n || me(e, i) >= 4.5 ? i : o ? Ue : Ve;
1858
+ }
1859
+ a(An, "readableColor");
1860
+ function In(e) {
1861
+ if (typeof e == "object" && typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number")
1862
+ return typeof e.alpha == "number" ? L({
1863
+ red: e.red,
1864
+ green: e.green,
1865
+ blue: e.blue,
1866
+ alpha: e.alpha
1867
+ }) : Y({
1868
+ red: e.red,
1869
+ green: e.green,
1870
+ blue: e.blue
1871
+ });
1872
+ throw new p(46);
1873
+ }
1874
+ a(In, "rgbToColorString");
1875
+ function Rn(e, r) {
1876
+ if (r === "transparent") return r;
1877
+ var t = C(r);
1878
+ return S(h.default({}, t, {
1879
+ saturation: H(0, 1, t.saturation + parseFloat(e))
1880
+ }));
1881
+ }
1882
+ a(Rn, "saturate");
1883
+ var jn = /* @__PURE__ */ y(Rn), On = jn;
1884
+ function Mn(e, r) {
1885
+ return r === "transparent" ? r : S(h.default({}, C(r), {
1886
+ hue: parseFloat(e)
1887
+ }));
1888
+ }
1889
+ a(Mn, "setHue");
1890
+ var kn = /* @__PURE__ */ y(Mn), $n = kn;
1891
+ function Pn(e, r) {
1892
+ return r === "transparent" ? r : S(h.default({}, C(r), {
1893
+ lightness: parseFloat(e)
1894
+ }));
1895
+ }
1896
+ a(Pn, "setLightness");
1897
+ var Bn = /* @__PURE__ */ y(Pn), Ln = Bn;
1898
+ function Hn(e, r) {
1899
+ return r === "transparent" ? r : S(h.default({}, C(r), {
1900
+ saturation: parseFloat(e)
1901
+ }));
1902
+ }
1903
+ a(Hn, "setSaturation");
1904
+ var En = /* @__PURE__ */ y(Hn), Dn = En;
1905
+ function qn(e, r) {
1906
+ return r === "transparent" ? r : ge(parseFloat(e), "rgb(0, 0, 0)", r);
1907
+ }
1908
+ a(qn, "shade");
1909
+ var Wn = /* @__PURE__ */ y(qn), Un = Wn;
1910
+ function Vn(e, r) {
1911
+ return r === "transparent" ? r : ge(parseFloat(e), "rgb(255, 255, 255)", r);
1912
+ }
1913
+ a(Vn, "tint");
1914
+ var Nn = /* @__PURE__ */ y(Vn), Gn = Nn;
1915
+ function Qn(e, r) {
1916
+ if (r === "transparent") return r;
1917
+ var t = k(r), n = typeof t.alpha == "number" ? t.alpha : 1, o = h.default({}, t, {
1918
+ alpha: H(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100)
1919
+ });
1920
+ return L(o);
1921
+ }
1922
+ a(Qn, "transparentize");
1923
+ var Yn = /* @__PURE__ */ y(Qn), Jn = Yn;
1924
+ function Zn() {
1925
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1926
+ r[t] = arguments[t];
1927
+ var n = Array.isArray(r[0]);
1928
+ if (!n && r.length > 8)
1929
+ throw new p(64);
1930
+ var o = r.map(function(i) {
1931
+ if (n && !Array.isArray(i) || !n && Array.isArray(i))
1932
+ throw new p(65);
1933
+ if (Array.isArray(i) && i.length > 8)
1934
+ throw new p(66);
1935
+ return Array.isArray(i) ? i.join(" ") : i;
1936
+ }).join(", ");
1937
+ return {
1938
+ animation: o
1939
+ };
1940
+ }
1941
+ a(Zn, "animation");
1942
+ function Xn() {
1943
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1944
+ r[t] = arguments[t];
1945
+ return {
1946
+ backgroundImage: r.join(", ")
1947
+ };
1948
+ }
1949
+ a(Xn, "backgroundImages");
1950
+ function Kn() {
1951
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1952
+ r[t] = arguments[t];
1953
+ return {
1954
+ background: r.join(", ")
1955
+ };
1956
+ }
1957
+ a(Kn, "backgrounds");
1958
+ var _n = ["top", "right", "bottom", "left"];
1959
+ function ea(e) {
1960
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
1961
+ t[n - 1] = arguments[n];
1962
+ if (typeof e == "string" && _n.indexOf(e) >= 0) {
1963
+ var o;
1964
+ return o = {}, o["border" + G(e) + "Width"] = t[0], o["border" + G(e) + "Style"] = t[1], o["border" + G(e) + "Color"] = t[2], o;
1965
+ } else
1966
+ return t.unshift(e), {
1967
+ borderWidth: t[0],
1968
+ borderStyle: t[1],
1969
+ borderColor: t[2]
1970
+ };
1971
+ }
1972
+ a(ea, "border");
1973
+ function ra() {
1974
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1975
+ r[t] = arguments[t];
1976
+ return $.apply(void 0, ["borderColor"].concat(r));
1977
+ }
1978
+ a(ra, "borderColor");
1979
+ function ta(e, r) {
1980
+ var t = G(e);
1981
+ if (!r && r !== 0)
1982
+ throw new p(62);
1983
+ if (t === "Top" || t === "Bottom") {
1984
+ var n;
1985
+ return n = {}, n["border" + t + "RightRadius"] = r, n["border" + t + "LeftRadius"] = r, n;
1986
+ }
1987
+ if (t === "Left" || t === "Right") {
1988
+ var o;
1989
+ return o = {}, o["borderTop" + t + "Radius"] = r, o["borderBottom" + t + "Radius"] = r, o;
1990
+ }
1991
+ throw new p(63);
1992
+ }
1993
+ a(ta, "borderRadius");
1994
+ function na() {
1995
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1996
+ r[t] = arguments[t];
1997
+ return $.apply(void 0, ["borderStyle"].concat(r));
1998
+ }
1999
+ a(na, "borderStyle");
2000
+ function aa() {
2001
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2002
+ r[t] = arguments[t];
2003
+ return $.apply(void 0, ["borderWidth"].concat(r));
2004
+ }
2005
+ a(aa, "borderWidth");
2006
+ function Ne(e, r) {
2007
+ var t = r ? ":" + r : "";
2008
+ return e(t);
2009
+ }
2010
+ a(Ne, "generateSelectors");
2011
+ function er(e, r, t) {
2012
+ if (!r) throw new p(67);
2013
+ if (e.length === 0) return Ne(r, null);
2014
+ for (var n = [], o = 0; o < e.length; o += 1) {
2015
+ if (t && t.indexOf(e[o]) < 0)
2016
+ throw new p(68);
2017
+ n.push(Ne(r, e[o]));
2018
+ }
2019
+ return n = n.join(","), n;
2020
+ }
2021
+ a(er, "statefulSelectors");
2022
+ var oa = [void 0, null, "active", "focus", "hover"];
2023
+ function ia(e) {
2024
+ return "button" + e + `,
2025
+ input[type="button"]` + e + `,
2026
+ input[type="reset"]` + e + `,
2027
+ input[type="submit"]` + e;
2028
+ }
2029
+ a(ia, "template$1");
2030
+ function ua() {
2031
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2032
+ r[t] = arguments[t];
2033
+ return er(r, ia, oa);
2034
+ }
2035
+ a(ua, "buttons");
2036
+ function sa() {
2037
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2038
+ r[t] = arguments[t];
2039
+ return $.apply(void 0, ["margin"].concat(r));
2040
+ }
2041
+ a(sa, "margin");
2042
+ function fa() {
2043
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2044
+ r[t] = arguments[t];
2045
+ return $.apply(void 0, ["padding"].concat(r));
2046
+ }
2047
+ a(fa, "padding");
2048
+ var pa = ["absolute", "fixed", "relative", "static", "sticky"];
2049
+ function la(e) {
2050
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
2051
+ t[n - 1] = arguments[n];
2052
+ return pa.indexOf(e) >= 0 && e ? h.default({}, $.apply(void 0, [""].concat(t)), {
2053
+ position: e
2054
+ }) : $.apply(void 0, ["", e].concat(t));
2055
+ }
2056
+ a(la, "position");
2057
+ function da(e, r) {
2058
+ return r === void 0 && (r = e), {
2059
+ height: e,
2060
+ width: r
2061
+ };
2062
+ }
2063
+ a(da, "size");
2064
+ var ca = [void 0, null, "active", "focus", "hover"];
2065
+ function ma(e) {
2066
+ return 'input[type="color"]' + e + `,
2067
+ input[type="date"]` + e + `,
2068
+ input[type="datetime"]` + e + `,
2069
+ input[type="datetime-local"]` + e + `,
2070
+ input[type="email"]` + e + `,
2071
+ input[type="month"]` + e + `,
2072
+ input[type="number"]` + e + `,
2073
+ input[type="password"]` + e + `,
2074
+ input[type="search"]` + e + `,
2075
+ input[type="tel"]` + e + `,
2076
+ input[type="text"]` + e + `,
2077
+ input[type="time"]` + e + `,
2078
+ input[type="url"]` + e + `,
2079
+ input[type="week"]` + e + `,
2080
+ input:not([type])` + e + `,
2081
+ textarea` + e;
2082
+ }
2083
+ a(ma, "template");
2084
+ function ga() {
2085
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2086
+ r[t] = arguments[t];
2087
+ return er(r, ma, ca);
2088
+ }
2089
+ a(ga, "textInputs");
2090
+ function ha() {
2091
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2092
+ r[t] = arguments[t];
2093
+ if (Array.isArray(r[0]) && r.length === 2) {
2094
+ var n = r[1];
2095
+ if (typeof n != "string")
2096
+ throw new p(61);
2097
+ var o = r[0].map(function(i) {
2098
+ return i + " " + n;
2099
+ }).join(", ");
2100
+ return {
2101
+ transition: o
2102
+ };
2103
+ } else
2104
+ return {
2105
+ transition: r.join(", ")
2106
+ };
2107
+ }
2108
+ a(ha, "transitions");
2109
+ u.adjustHue = un;
2110
+ u.animation = Zn;
2111
+ u.backgroundImages = Xn;
2112
+ u.backgrounds = Kn;
2113
+ u.between = pe;
2114
+ u.border = ea;
2115
+ u.borderColor = ra;
2116
+ u.borderRadius = ta;
2117
+ u.borderStyle = na;
2118
+ u.borderWidth = aa;
2119
+ u.buttons = ua;
2120
+ u.clearFix = ht;
2121
+ u.complement = sn;
2122
+ u.cover = bt;
2123
+ u.cssVar = Jr;
2124
+ u.darken = ln;
2125
+ u.desaturate = mn;
2126
+ u.directionalProperty = $;
2127
+ u.easeIn = lt;
2128
+ u.easeInOut = ct;
2129
+ u.easeOut = gt;
2130
+ u.ellipsis = vt;
2131
+ u.em = tt;
2132
+ u.fluidRange = wt;
2133
+ u.fontFace = It;
2134
+ u.getContrast = me;
2135
+ u.getLuminance = K;
2136
+ u.getValueAndUnit = A;
2137
+ u.grayscale = gn;
2138
+ u.hiDPI = Xe;
2139
+ u.hideText = Rt;
2140
+ u.hideVisually = jt;
2141
+ u.hsl = de;
2142
+ u.hslToColorString = hn;
2143
+ u.hsla = ce;
2144
+ u.important = Ye;
2145
+ u.invert = bn;
2146
+ u.lighten = xn;
2147
+ u.linearGradient = Ot;
2148
+ u.margin = sa;
2149
+ u.math = Qr;
2150
+ u.meetsContrastGuidelines = wn;
2151
+ u.mix = ge;
2152
+ u.modularScale = ot;
2153
+ u.normalize = Mt;
2154
+ u.opacify = Tn;
2155
+ u.padding = fa;
2156
+ u.parseToHsl = C;
2157
+ u.parseToRgb = k;
2158
+ u.position = la;
2159
+ u.radialGradient = kt;
2160
+ u.readableColor = An;
2161
+ u.rem = ut;
2162
+ u.remToPx = ft;
2163
+ u.retinaImage = $t;
2164
+ u.rgb = Y;
2165
+ u.rgbToColorString = In;
2166
+ u.rgba = L;
2167
+ u.saturate = On;
2168
+ u.setHue = $n;
2169
+ u.setLightness = Ln;
2170
+ u.setSaturation = Dn;
2171
+ u.shade = Un;
2172
+ u.size = da;
2173
+ u.stripUnit = se;
2174
+ u.textInputs = ga;
2175
+ u.timingFunctions = Lt;
2176
+ u.tint = Gn;
2177
+ u.toColorString = S;
2178
+ u.transitions = ha;
2179
+ u.transparentize = Jn;
2180
+ u.triangle = Dt;
2181
+ u.wordWrap = qt;
2182
+ });
17
2183
 
18
2184
  // src/theming/create.ts
19
- var R = {};
20
- T(R, {
21
- create: () => M,
22
- themes: () => d
2185
+ var Fa = {};
2186
+ dr(Fa, {
2187
+ create: () => Sa,
2188
+ themes: () => _
23
2189
  });
24
- module.exports = D(R);
2190
+ module.exports = cr(Fa);
25
2191
 
26
2192
  // src/theming/base.ts
27
- var h = require("polished"), r = {
2193
+ var rr = Se(he(), 1), g = {
28
2194
  // Official color palette
29
2195
  primary: "#FF4785",
30
2196
  // coral
@@ -62,20 +2228,20 @@ var h = require("polished"), r = {
62
2228
  positiveText: "#448028",
63
2229
  negativeText: "#D43900",
64
2230
  warningText: "#A15C20"
65
- }, p = {
2231
+ }, be = {
66
2232
  app: "#F6F9FC",
67
- bar: r.lightest,
68
- content: r.lightest,
69
- preview: r.lightest,
2233
+ bar: g.lightest,
2234
+ content: g.lightest,
2235
+ preview: g.lightest,
70
2236
  gridCellSize: 10,
71
- hoverable: (0, h.transparentize)(0.9, r.secondary),
2237
+ hoverable: (0, rr.transparentize)(0.9, g.secondary),
72
2238
  // hover state for items in a list
73
2239
  // Notification, error, and warning backgrounds
74
2240
  positive: "#E1FFD4",
75
2241
  negative: "#FEDED2",
76
2242
  warning: "#FFF5CF",
77
2243
  critical: "#FF4400"
78
- }, i = {
2244
+ }, E = {
79
2245
  fonts: {
80
2246
  base: [
81
2247
  '"Nunito Sans"',
@@ -121,7 +2287,7 @@ var h = require("polished"), r = {
121
2287
  };
122
2288
 
123
2289
  // src/theming/themes/dark.ts
124
- var v = {
2290
+ var ba = {
125
2291
  base: "dark",
126
2292
  // Storybook-specific color palette
127
2293
  colorPrimary: "#FF4785",
@@ -131,20 +2297,20 @@ var v = {
131
2297
  // UI
132
2298
  appBg: "#222425",
133
2299
  appContentBg: "#1B1C1D",
134
- appPreviewBg: r.lightest,
2300
+ appPreviewBg: g.lightest,
135
2301
  appBorderColor: "rgba(255,255,255,.1)",
136
2302
  appBorderRadius: 4,
137
2303
  // Fonts
138
- fontBase: i.fonts.base,
139
- fontCode: i.fonts.mono,
2304
+ fontBase: E.fonts.base,
2305
+ fontCode: E.fonts.mono,
140
2306
  // Text colors
141
2307
  textColor: "#C9CDCF",
142
2308
  textInverseColor: "#222425",
143
2309
  textMutedColor: "#798186",
144
2310
  // Toolbar default and active colors
145
- barTextColor: r.mediumdark,
146
- barHoverColor: r.secondary,
147
- barSelectedColor: r.secondary,
2311
+ barTextColor: g.mediumdark,
2312
+ barHoverColor: g.secondary,
2313
+ barSelectedColor: g.secondary,
148
2314
  barBg: "#292C2E",
149
2315
  // Form colors
150
2316
  buttonBg: "#222425",
@@ -153,12 +2319,12 @@ var v = {
153
2319
  booleanSelectedBg: "#2E3438",
154
2320
  inputBg: "#1B1C1D",
155
2321
  inputBorder: "rgba(255,255,255,.1)",
156
- inputTextColor: r.lightest,
2322
+ inputTextColor: g.lightest,
157
2323
  inputBorderRadius: 4
158
- }, u = v;
2324
+ }, tr = ba;
159
2325
 
160
2326
  // src/theming/themes/light.ts
161
- var V = {
2327
+ var va = {
162
2328
  base: "light",
163
2329
  // Storybook-specific color palette
164
2330
  colorPrimary: "#FF4785",
@@ -166,67 +2332,67 @@ var V = {
166
2332
  colorSecondary: "#029CFD",
167
2333
  // ocean
168
2334
  // UI
169
- appBg: p.app,
170
- appContentBg: r.lightest,
171
- appPreviewBg: r.lightest,
172
- appBorderColor: r.border,
2335
+ appBg: be.app,
2336
+ appContentBg: g.lightest,
2337
+ appPreviewBg: g.lightest,
2338
+ appBorderColor: g.border,
173
2339
  appBorderRadius: 4,
174
2340
  // Fonts
175
- fontBase: i.fonts.base,
176
- fontCode: i.fonts.mono,
2341
+ fontBase: E.fonts.base,
2342
+ fontCode: E.fonts.mono,
177
2343
  // Text colors
178
- textColor: r.darkest,
179
- textInverseColor: r.lightest,
180
- textMutedColor: r.dark,
2344
+ textColor: g.darkest,
2345
+ textInverseColor: g.lightest,
2346
+ textMutedColor: g.dark,
181
2347
  // Toolbar default and active colors
182
- barTextColor: r.mediumdark,
183
- barHoverColor: r.secondary,
184
- barSelectedColor: r.secondary,
185
- barBg: r.lightest,
2348
+ barTextColor: g.mediumdark,
2349
+ barHoverColor: g.secondary,
2350
+ barSelectedColor: g.secondary,
2351
+ barBg: g.lightest,
186
2352
  // Form colors
187
- buttonBg: p.app,
188
- buttonBorder: r.medium,
189
- booleanBg: r.mediumlight,
190
- booleanSelectedBg: r.lightest,
191
- inputBg: r.lightest,
192
- inputBorder: r.border,
193
- inputTextColor: r.darkest,
2353
+ buttonBg: be.app,
2354
+ buttonBorder: g.medium,
2355
+ booleanBg: g.mediumlight,
2356
+ booleanSelectedBg: g.lightest,
2357
+ inputBg: g.lightest,
2358
+ inputBorder: g.border,
2359
+ inputTextColor: g.darkest,
194
2360
  inputBorderRadius: 4
195
- }, g = V;
2361
+ }, ve = va;
196
2362
 
197
2363
  // src/theming/utils.ts
198
- var C = require("storybook/internal/client-logger"), b = require("@storybook/global"), n = require("polished");
199
- var { window: m } = b.global;
200
- var E = /* @__PURE__ */ a((e) => typeof e != "string" ? (C.logger.warn(
2364
+ var nr = require("storybook/internal/client-logger"), ar = require("@storybook/global"), B = Se(he(), 1);
2365
+ var { window: ye } = ar.global;
2366
+ var ya = /* @__PURE__ */ a((e) => typeof e != "string" ? (nr.logger.warn(
201
2367
  `Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`
202
- ), !1) : !0, "isColorString"), w = /* @__PURE__ */ a((e) => !/(gradient|var|calc)/.test(e), "isValidColorForPolished"), P = /* @__PURE__ */ a(
203
- (e, t) => e === "darken" ? (0, n.rgba)(`${(0, n.darken)(1, t)}`, 0.95) : e === "lighten" ? (0, n.rgba)(`${(0, n.lighten)(1, t)}`, 0.95) : t,
204
- "applyPolished"), f = /* @__PURE__ */ a((e) => (t) => {
205
- if (!E(t) || !w(t))
206
- return t;
2368
+ ), !1) : !0, "isColorString"), xa = /* @__PURE__ */ a((e) => !/(gradient|var|calc)/.test(e), "isValidColorForPolished"), wa = /* @__PURE__ */ a(
2369
+ (e, r) => e === "darken" ? (0, B.rgba)(`${(0, B.darken)(1, r)}`, 0.95) : e === "lighten" ? (0, B.rgba)(`${(0, B.lighten)(1, r)}`, 0.95) : r,
2370
+ "applyPolished"), or = /* @__PURE__ */ a((e) => (r) => {
2371
+ if (!ya(r) || !xa(r))
2372
+ return r;
207
2373
  try {
208
- return P(e, t);
2374
+ return wa(e, r);
209
2375
  } catch {
210
- return t;
2376
+ return r;
211
2377
  }
212
- }, "colorFactory"), z = f("lighten"), U = f("darken"), y = /* @__PURE__ */ a(() => !m || !m.matchMedia ? "light" : m.matchMedia("(prefers-co\
213
- lor-scheme: dark)").matches ? "dark" : "light", "getPreferredColorScheme");
2378
+ }, "colorFactory"), Ka = or("lighten"), _a = or("darken"), ir = /* @__PURE__ */ a(() => !ye || !ye.matchMedia ? "light" : ye.matchMedia("(pr\
2379
+ efers-color-scheme: dark)").matches ? "dark" : "light", "getPreferredColorScheme");
214
2380
 
215
2381
  // src/theming/create.ts
216
- var d = {
217
- light: g,
218
- dark: u,
219
- normal: g
220
- }, c = y(), M = /* @__PURE__ */ a((e = { base: c }, t) => {
221
- let o = {
222
- ...d[c],
223
- ...d[e.base] || {},
2382
+ var _ = {
2383
+ light: ve,
2384
+ dark: tr,
2385
+ normal: ve
2386
+ }, xe = ir(), Sa = /* @__PURE__ */ a((e = { base: xe }, r) => {
2387
+ let t = {
2388
+ ..._[xe],
2389
+ ..._[e.base] || {},
224
2390
  ...e,
225
- base: d[e.base] ? e.base : c
2391
+ base: _[e.base] ? e.base : xe
226
2392
  };
227
2393
  return {
2394
+ ...r,
228
2395
  ...t,
229
- ...o,
230
- barSelectedColor: e.barSelectedColor || o.colorSecondary
2396
+ barSelectedColor: e.barSelectedColor || t.colorSecondary
231
2397
  };
232
2398
  }, "create");