@rotki/ui-library 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/components/accordions/accordion/RuiAccordion.vue.d.ts +4 -33
  2. package/dist/components/accordions/accordions/RuiAccordions.vue.d.ts +4 -27
  3. package/dist/components/alerts/RuiAlert.vue.d.ts +5 -38
  4. package/dist/components/cards/RuiCard.vue.d.ts +2 -33
  5. package/dist/components/cards/RuiCardHeader.vue.d.ts +2 -23
  6. package/dist/components/chips/RuiChip.vue.d.ts +5 -44
  7. package/dist/components/color-picker/RuiColorBoard.vue.d.ts +6 -15
  8. package/dist/components/color-picker/RuiColorDisplay.vue.d.ts +3 -12
  9. package/dist/components/color-picker/RuiColorHue.vue.d.ts +4 -13
  10. package/dist/components/color-picker/RuiColorInput.vue.d.ts +4 -13
  11. package/dist/components/color-picker/RuiColorPicker.vue.d.ts +4 -25
  12. package/dist/components/divider/RuiDivider.vue.d.ts +2 -23
  13. package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +4 -1
  14. package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +5 -44
  15. package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +3 -1
  16. package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +3 -1
  17. package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +4 -55
  18. package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +3 -1
  19. package/dist/components/forms/select/RuiSimpleSelect.vue.d.ts +4 -29
  20. package/dist/components/forms/slider/RuiSlider.vue.d.ts +5 -60
  21. package/dist/components/forms/switch/RuiSwitch.vue.d.ts +4 -41
  22. package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +6 -64
  23. package/dist/components/forms/text-field/RuiTextField.vue.d.ts +9 -59
  24. package/dist/components/helpers/RuiFormTextDetail.vue.d.ts +4 -29
  25. package/dist/components/icons/RuiIcon.vue.d.ts +2 -25
  26. package/dist/components/index.es.js +5946 -42
  27. package/dist/components/loaders/RuiSkeletonBase.vue.d.ts +2 -23
  28. package/dist/components/loaders/RuiSkeletonLoader.vue.d.ts +2 -25
  29. package/dist/components/logos/RuiLogo.vue.d.ts +2 -31
  30. package/dist/components/overlays/badge/RuiBadge.vue.d.ts +2 -43
  31. package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +2 -25
  32. package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +5 -36
  33. package/dist/components/overlays/menu/RuiMenu.vue.d.ts +4 -53
  34. package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +5 -40
  35. package/dist/components/overlays/notification/RuiNotification.vue.d.ts +4 -27
  36. package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +3 -38
  37. package/dist/components/progress/RuiProgress.vue.d.ts +2 -37
  38. package/dist/components/steppers/RuiFooterStepper.vue.d.ts +4 -31
  39. package/dist/components/steppers/RuiStepper.vue.d.ts +2 -35
  40. package/dist/components/steppers/RuiStepperCustomIcon.vue.d.ts +4 -25
  41. package/dist/components/steppers/RuiStepperIcon.vue.d.ts +4 -25
  42. package/dist/components/tables/RuiExpandButton.vue.d.ts +2 -23
  43. package/dist/components/tables/RuiTablePagination.vue.d.ts +4 -29
  44. package/dist/components/tabs/tab/RuiTab.vue.d.ts +6 -49
  45. package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +2 -29
  46. package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +3 -1
  47. package/dist/components/tabs/tabs/RuiTabs.vue.d.ts +6 -35
  48. package/dist/composables/icons.d.ts +10 -4
  49. package/dist/composables/index--ZwAZVMb.js +482 -0
  50. package/dist/composables/index.es.js +4 -5
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.es.js +2917 -2916
  53. package/dist/style.css +1 -1
  54. package/dist/theme/index.es.js +1 -1
  55. package/dist/types/index-DSBIGM2a.js +39 -0
  56. package/dist/utils/index-Cps3W0wA.js +108 -0
  57. package/dist/vendor-BRFX1hnB.js +1626 -0
  58. package/dist/web-types.json +534 -593
  59. package/package.json +1 -1
  60. package/dist/RuiNavigationDrawer-Boq-RcMw.js +0 -7959
  61. package/dist/breakpoint-sPlgsoXp.js +0 -37
  62. package/dist/index-DIN-6VhY.js +0 -154
  63. /package/dist/{colors-D563Ic3q.js → consts/colors-D563Ic3q.js} +0 -0
@@ -0,0 +1,1626 @@
1
+ const ke = /\d/, Re = ["-", "_", "/", "."];
2
+ function Ee(t = "") {
3
+ if (!ke.test(t))
4
+ return t !== t.toLowerCase();
5
+ }
6
+ function He(t, e) {
7
+ const r = Re, a = [];
8
+ if (!t || typeof t != "string")
9
+ return a;
10
+ let n = "", i, f;
11
+ for (const o of t) {
12
+ const s = r.includes(o);
13
+ if (s === !0) {
14
+ a.push(n), n = "", i = void 0;
15
+ continue;
16
+ }
17
+ const l = Ee(o);
18
+ if (f === !1) {
19
+ if (i === !1 && l === !0) {
20
+ a.push(n), n = o, i = l;
21
+ continue;
22
+ }
23
+ if (i === !0 && l === !1 && n.length > 1) {
24
+ const u = n.at(-1);
25
+ a.push(n.slice(0, Math.max(0, n.length - 1))), n = u + o, i = l;
26
+ continue;
27
+ }
28
+ }
29
+ n += o, i = l, f = s;
30
+ }
31
+ return a.push(n), a;
32
+ }
33
+ function Ce(t) {
34
+ return t ? t[0].toUpperCase() + t.slice(1) : "";
35
+ }
36
+ function Pe(t) {
37
+ return t ? t[0].toLowerCase() + t.slice(1) : "";
38
+ }
39
+ function Te(t, e) {
40
+ return t ? (Array.isArray(t) ? t : He(t)).map((r) => Ce(r)).join("") : "";
41
+ }
42
+ function ea(t, e) {
43
+ return Pe(Te(t || ""));
44
+ }
45
+ function D(t) {
46
+ if (t == null)
47
+ return window;
48
+ if (t.toString() !== "[object Window]") {
49
+ var e = t.ownerDocument;
50
+ return e && e.defaultView || window;
51
+ }
52
+ return t;
53
+ }
54
+ function et(t) {
55
+ var e = D(t).Element;
56
+ return t instanceof e || t instanceof Element;
57
+ }
58
+ function j(t) {
59
+ var e = D(t).HTMLElement;
60
+ return t instanceof e || t instanceof HTMLElement;
61
+ }
62
+ function Bt(t) {
63
+ if (typeof ShadowRoot > "u")
64
+ return !1;
65
+ var e = D(t).ShadowRoot;
66
+ return t instanceof e || t instanceof ShadowRoot;
67
+ }
68
+ var tt = Math.max, _t = Math.min, at = Math.round;
69
+ function Ct() {
70
+ var t = navigator.userAgentData;
71
+ return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
72
+ return e.brand + "/" + e.version;
73
+ }).join(" ") : navigator.userAgent;
74
+ }
75
+ function le() {
76
+ return !/^((?!chrome|android).)*safari/i.test(Ct());
77
+ }
78
+ function nt(t, e, r) {
79
+ e === void 0 && (e = !1), r === void 0 && (r = !1);
80
+ var a = t.getBoundingClientRect(), n = 1, i = 1;
81
+ e && j(t) && (n = t.offsetWidth > 0 && at(a.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && at(a.height) / t.offsetHeight || 1);
82
+ var f = et(t) ? D(t) : window, o = f.visualViewport, s = !le() && r, l = (a.left + (s && o ? o.offsetLeft : 0)) / n, u = (a.top + (s && o ? o.offsetTop : 0)) / i, h = a.width / n, y = a.height / i;
83
+ return {
84
+ width: h,
85
+ height: y,
86
+ top: u,
87
+ right: l + h,
88
+ bottom: u + y,
89
+ left: l,
90
+ x: l,
91
+ y: u
92
+ };
93
+ }
94
+ function Dt(t) {
95
+ var e = D(t), r = e.pageXOffset, a = e.pageYOffset;
96
+ return {
97
+ scrollLeft: r,
98
+ scrollTop: a
99
+ };
100
+ }
101
+ function Be(t) {
102
+ return {
103
+ scrollLeft: t.scrollLeft,
104
+ scrollTop: t.scrollTop
105
+ };
106
+ }
107
+ function De(t) {
108
+ return t === D(t) || !j(t) ? Dt(t) : Be(t);
109
+ }
110
+ function U(t) {
111
+ return t ? (t.nodeName || "").toLowerCase() : null;
112
+ }
113
+ function G(t) {
114
+ return ((et(t) ? t.ownerDocument : (
115
+ // $FlowFixMe[prop-missing]
116
+ t.document
117
+ )) || window.document).documentElement;
118
+ }
119
+ function jt(t) {
120
+ return nt(G(t)).left + Dt(t).scrollLeft;
121
+ }
122
+ function z(t) {
123
+ return D(t).getComputedStyle(t);
124
+ }
125
+ function Ft(t) {
126
+ var e = z(t), r = e.overflow, a = e.overflowX, n = e.overflowY;
127
+ return /auto|scroll|overlay|hidden/.test(r + n + a);
128
+ }
129
+ function je(t) {
130
+ var e = t.getBoundingClientRect(), r = at(e.width) / t.offsetWidth || 1, a = at(e.height) / t.offsetHeight || 1;
131
+ return r !== 1 || a !== 1;
132
+ }
133
+ function Fe(t, e, r) {
134
+ r === void 0 && (r = !1);
135
+ var a = j(e), n = j(e) && je(e), i = G(e), f = nt(t, n, r), o = {
136
+ scrollLeft: 0,
137
+ scrollTop: 0
138
+ }, s = {
139
+ x: 0,
140
+ y: 0
141
+ };
142
+ return (a || !a && !r) && ((U(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
143
+ Ft(i)) && (o = De(e)), j(e) ? (s = nt(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : i && (s.x = jt(i))), {
144
+ x: f.left + o.scrollLeft - s.x,
145
+ y: f.top + o.scrollTop - s.y,
146
+ width: f.width,
147
+ height: f.height
148
+ };
149
+ }
150
+ function $t(t) {
151
+ var e = nt(t), r = t.offsetWidth, a = t.offsetHeight;
152
+ return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - a) <= 1 && (a = e.height), {
153
+ x: t.offsetLeft,
154
+ y: t.offsetTop,
155
+ width: r,
156
+ height: a
157
+ };
158
+ }
159
+ function Ot(t) {
160
+ return U(t) === "html" ? t : (
161
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
162
+ // $FlowFixMe[incompatible-return]
163
+ // $FlowFixMe[prop-missing]
164
+ t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
165
+ t.parentNode || // DOM Element detected
166
+ (Bt(t) ? t.host : null) || // ShadowRoot detected
167
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
168
+ G(t)
169
+ );
170
+ }
171
+ function ce(t) {
172
+ return ["html", "body", "#document"].indexOf(U(t)) >= 0 ? t.ownerDocument.body : j(t) && Ft(t) ? t : ce(Ot(t));
173
+ }
174
+ function ct(t, e) {
175
+ var r;
176
+ e === void 0 && (e = []);
177
+ var a = ce(t), n = a === ((r = t.ownerDocument) == null ? void 0 : r.body), i = D(a), f = n ? [i].concat(i.visualViewport || [], Ft(a) ? a : []) : a, o = e.concat(f);
178
+ return n ? o : (
179
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
180
+ o.concat(ct(Ot(f)))
181
+ );
182
+ }
183
+ function $e(t) {
184
+ return ["table", "td", "th"].indexOf(U(t)) >= 0;
185
+ }
186
+ function Jt(t) {
187
+ return !j(t) || // https://github.com/popperjs/popper-core/issues/837
188
+ z(t).position === "fixed" ? null : t.offsetParent;
189
+ }
190
+ function Le(t) {
191
+ var e = /firefox/i.test(Ct()), r = /Trident/i.test(Ct());
192
+ if (r && j(t)) {
193
+ var a = z(t);
194
+ if (a.position === "fixed")
195
+ return null;
196
+ }
197
+ var n = Ot(t);
198
+ for (Bt(n) && (n = n.host); j(n) && ["html", "body"].indexOf(U(n)) < 0; ) {
199
+ var i = z(n);
200
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
201
+ return n;
202
+ n = n.parentNode;
203
+ }
204
+ return null;
205
+ }
206
+ function dt(t) {
207
+ for (var e = D(t), r = Jt(t); r && $e(r) && z(r).position === "static"; )
208
+ r = Jt(r);
209
+ return r && (U(r) === "html" || U(r) === "body" && z(r).position === "static") ? e : r || Le(t) || e;
210
+ }
211
+ var T = "top", I = "bottom", W = "right", B = "left", Lt = "auto", vt = [T, I, W, B], it = "start", ht = "end", Ne = "clippingParents", pe = "viewport", ut = "popper", Ie = "reference", Kt = /* @__PURE__ */ vt.reduce(function(t, e) {
212
+ return t.concat([e + "-" + it, e + "-" + ht]);
213
+ }, []), he = /* @__PURE__ */ [].concat(vt, [Lt]).reduce(function(t, e) {
214
+ return t.concat([e, e + "-" + it, e + "-" + ht]);
215
+ }, []), We = "beforeRead", Ve = "read", Ue = "afterRead", qe = "beforeMain", ze = "main", Xe = "afterMain", Ge = "beforeWrite", Ye = "write", Ze = "afterWrite", Je = [We, Ve, Ue, qe, ze, Xe, Ge, Ye, Ze];
216
+ function Ke(t) {
217
+ var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), a = [];
218
+ t.forEach(function(i) {
219
+ e.set(i.name, i);
220
+ });
221
+ function n(i) {
222
+ r.add(i.name);
223
+ var f = [].concat(i.requires || [], i.requiresIfExists || []);
224
+ f.forEach(function(o) {
225
+ if (!r.has(o)) {
226
+ var s = e.get(o);
227
+ s && n(s);
228
+ }
229
+ }), a.push(i);
230
+ }
231
+ return t.forEach(function(i) {
232
+ r.has(i.name) || n(i);
233
+ }), a;
234
+ }
235
+ function Qe(t) {
236
+ var e = Ke(t);
237
+ return Je.reduce(function(r, a) {
238
+ return r.concat(e.filter(function(n) {
239
+ return n.phase === a;
240
+ }));
241
+ }, []);
242
+ }
243
+ function tr(t) {
244
+ var e;
245
+ return function() {
246
+ return e || (e = new Promise(function(r) {
247
+ Promise.resolve().then(function() {
248
+ e = void 0, r(t());
249
+ });
250
+ })), e;
251
+ };
252
+ }
253
+ function er(t) {
254
+ var e = t.reduce(function(r, a) {
255
+ var n = r[a.name];
256
+ return r[a.name] = n ? Object.assign({}, n, a, {
257
+ options: Object.assign({}, n.options, a.options),
258
+ data: Object.assign({}, n.data, a.data)
259
+ }) : a, r;
260
+ }, {});
261
+ return Object.keys(e).map(function(r) {
262
+ return e[r];
263
+ });
264
+ }
265
+ function rr(t, e) {
266
+ var r = D(t), a = G(t), n = r.visualViewport, i = a.clientWidth, f = a.clientHeight, o = 0, s = 0;
267
+ if (n) {
268
+ i = n.width, f = n.height;
269
+ var l = le();
270
+ (l || !l && e === "fixed") && (o = n.offsetLeft, s = n.offsetTop);
271
+ }
272
+ return {
273
+ width: i,
274
+ height: f,
275
+ x: o + jt(t),
276
+ y: s
277
+ };
278
+ }
279
+ function ar(t) {
280
+ var e, r = G(t), a = Dt(t), n = (e = t.ownerDocument) == null ? void 0 : e.body, i = tt(r.scrollWidth, r.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), f = tt(r.scrollHeight, r.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), o = -a.scrollLeft + jt(t), s = -a.scrollTop;
281
+ return z(n || r).direction === "rtl" && (o += tt(r.clientWidth, n ? n.clientWidth : 0) - i), {
282
+ width: i,
283
+ height: f,
284
+ x: o,
285
+ y: s
286
+ };
287
+ }
288
+ function de(t, e) {
289
+ var r = e.getRootNode && e.getRootNode();
290
+ if (t.contains(e))
291
+ return !0;
292
+ if (r && Bt(r)) {
293
+ var a = e;
294
+ do {
295
+ if (a && t.isSameNode(a))
296
+ return !0;
297
+ a = a.parentNode || a.host;
298
+ } while (a);
299
+ }
300
+ return !1;
301
+ }
302
+ function Pt(t) {
303
+ return Object.assign({}, t, {
304
+ left: t.x,
305
+ top: t.y,
306
+ right: t.x + t.width,
307
+ bottom: t.y + t.height
308
+ });
309
+ }
310
+ function nr(t, e) {
311
+ var r = nt(t, !1, e === "fixed");
312
+ return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
313
+ }
314
+ function Qt(t, e, r) {
315
+ return e === pe ? Pt(rr(t, r)) : et(e) ? nr(e, r) : Pt(ar(G(t)));
316
+ }
317
+ function ir(t) {
318
+ var e = ct(Ot(t)), r = ["absolute", "fixed"].indexOf(z(t).position) >= 0, a = r && j(t) ? dt(t) : t;
319
+ return et(a) ? e.filter(function(n) {
320
+ return et(n) && de(n, a) && U(n) !== "body";
321
+ }) : [];
322
+ }
323
+ function or(t, e, r, a) {
324
+ var n = e === "clippingParents" ? ir(t) : [].concat(e), i = [].concat(n, [r]), f = i[0], o = i.reduce(function(s, l) {
325
+ var u = Qt(t, l, a);
326
+ return s.top = tt(u.top, s.top), s.right = _t(u.right, s.right), s.bottom = _t(u.bottom, s.bottom), s.left = tt(u.left, s.left), s;
327
+ }, Qt(t, f, a));
328
+ return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
329
+ }
330
+ function V(t) {
331
+ return t.split("-")[0];
332
+ }
333
+ function ot(t) {
334
+ return t.split("-")[1];
335
+ }
336
+ function Nt(t) {
337
+ return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
338
+ }
339
+ function ve(t) {
340
+ var e = t.reference, r = t.element, a = t.placement, n = a ? V(a) : null, i = a ? ot(a) : null, f = e.x + e.width / 2 - r.width / 2, o = e.y + e.height / 2 - r.height / 2, s;
341
+ switch (n) {
342
+ case T:
343
+ s = {
344
+ x: f,
345
+ y: e.y - r.height
346
+ };
347
+ break;
348
+ case I:
349
+ s = {
350
+ x: f,
351
+ y: e.y + e.height
352
+ };
353
+ break;
354
+ case W:
355
+ s = {
356
+ x: e.x + e.width,
357
+ y: o
358
+ };
359
+ break;
360
+ case B:
361
+ s = {
362
+ x: e.x - r.width,
363
+ y: o
364
+ };
365
+ break;
366
+ default:
367
+ s = {
368
+ x: e.x,
369
+ y: e.y
370
+ };
371
+ }
372
+ var l = n ? Nt(n) : null;
373
+ if (l != null) {
374
+ var u = l === "y" ? "height" : "width";
375
+ switch (i) {
376
+ case it:
377
+ s[l] = s[l] - (e[u] / 2 - r[u] / 2);
378
+ break;
379
+ case ht:
380
+ s[l] = s[l] + (e[u] / 2 - r[u] / 2);
381
+ break;
382
+ }
383
+ }
384
+ return s;
385
+ }
386
+ function ge() {
387
+ return {
388
+ top: 0,
389
+ right: 0,
390
+ bottom: 0,
391
+ left: 0
392
+ };
393
+ }
394
+ function be(t) {
395
+ return Object.assign({}, ge(), t);
396
+ }
397
+ function me(t, e) {
398
+ return e.reduce(function(r, a) {
399
+ return r[a] = t, r;
400
+ }, {});
401
+ }
402
+ function It(t, e) {
403
+ e === void 0 && (e = {});
404
+ var r = e, a = r.placement, n = a === void 0 ? t.placement : a, i = r.strategy, f = i === void 0 ? t.strategy : i, o = r.boundary, s = o === void 0 ? Ne : o, l = r.rootBoundary, u = l === void 0 ? pe : l, h = r.elementContext, y = h === void 0 ? ut : h, p = r.altBoundary, w = p === void 0 ? !1 : p, g = r.padding, v = g === void 0 ? 0 : g, x = be(typeof v != "number" ? v : me(v, vt)), M = y === ut ? Ie : ut, O = t.rects.popper, d = t.elements[w ? M : y], b = or(et(d) ? d : d.contextElement || G(t.elements.popper), s, u, f), m = nt(t.elements.reference), _ = ve({
405
+ reference: m,
406
+ element: O,
407
+ strategy: "absolute",
408
+ placement: n
409
+ }), R = Pt(Object.assign({}, O, _)), k = y === ut ? R : m, S = {
410
+ top: b.top - k.top + x.top,
411
+ bottom: k.bottom - b.bottom + x.bottom,
412
+ left: b.left - k.left + x.left,
413
+ right: k.right - b.right + x.right
414
+ }, E = t.modifiersData.offset;
415
+ if (y === ut && E) {
416
+ var F = E[n];
417
+ Object.keys(S).forEach(function(H) {
418
+ var Y = [W, I].indexOf(H) >= 0 ? 1 : -1, Z = [T, I].indexOf(H) >= 0 ? "y" : "x";
419
+ S[H] += F[Z] * Y;
420
+ });
421
+ }
422
+ return S;
423
+ }
424
+ var te = {
425
+ placement: "bottom",
426
+ modifiers: [],
427
+ strategy: "absolute"
428
+ };
429
+ function ee() {
430
+ for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
431
+ e[r] = arguments[r];
432
+ return !e.some(function(a) {
433
+ return !(a && typeof a.getBoundingClientRect == "function");
434
+ });
435
+ }
436
+ function ra(t) {
437
+ t === void 0 && (t = {});
438
+ var e = t, r = e.defaultModifiers, a = r === void 0 ? [] : r, n = e.defaultOptions, i = n === void 0 ? te : n;
439
+ return function(o, s, l) {
440
+ l === void 0 && (l = i);
441
+ var u = {
442
+ placement: "bottom",
443
+ orderedModifiers: [],
444
+ options: Object.assign({}, te, i),
445
+ modifiersData: {},
446
+ elements: {
447
+ reference: o,
448
+ popper: s
449
+ },
450
+ attributes: {},
451
+ styles: {}
452
+ }, h = [], y = !1, p = {
453
+ state: u,
454
+ setOptions: function(x) {
455
+ var M = typeof x == "function" ? x(u.options) : x;
456
+ g(), u.options = Object.assign({}, i, u.options, M), u.scrollParents = {
457
+ reference: et(o) ? ct(o) : o.contextElement ? ct(o.contextElement) : [],
458
+ popper: ct(s)
459
+ };
460
+ var O = Qe(er([].concat(a, u.options.modifiers)));
461
+ return u.orderedModifiers = O.filter(function(d) {
462
+ return d.enabled;
463
+ }), w(), p.update();
464
+ },
465
+ // Sync update – it will always be executed, even if not necessary. This
466
+ // is useful for low frequency updates where sync behavior simplifies the
467
+ // logic.
468
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
469
+ // prefer the async Popper#update method
470
+ forceUpdate: function() {
471
+ if (!y) {
472
+ var x = u.elements, M = x.reference, O = x.popper;
473
+ if (ee(M, O)) {
474
+ u.rects = {
475
+ reference: Fe(M, dt(O), u.options.strategy === "fixed"),
476
+ popper: $t(O)
477
+ }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(S) {
478
+ return u.modifiersData[S.name] = Object.assign({}, S.data);
479
+ });
480
+ for (var d = 0; d < u.orderedModifiers.length; d++) {
481
+ if (u.reset === !0) {
482
+ u.reset = !1, d = -1;
483
+ continue;
484
+ }
485
+ var b = u.orderedModifiers[d], m = b.fn, _ = b.options, R = _ === void 0 ? {} : _, k = b.name;
486
+ typeof m == "function" && (u = m({
487
+ state: u,
488
+ options: R,
489
+ name: k,
490
+ instance: p
491
+ }) || u);
492
+ }
493
+ }
494
+ }
495
+ },
496
+ // Async and optimistically optimized update – it will not be executed if
497
+ // not necessary (debounced to run at most once-per-tick)
498
+ update: tr(function() {
499
+ return new Promise(function(v) {
500
+ p.forceUpdate(), v(u);
501
+ });
502
+ }),
503
+ destroy: function() {
504
+ g(), y = !0;
505
+ }
506
+ };
507
+ if (!ee(o, s))
508
+ return p;
509
+ p.setOptions(l).then(function(v) {
510
+ !y && l.onFirstUpdate && l.onFirstUpdate(v);
511
+ });
512
+ function w() {
513
+ u.orderedModifiers.forEach(function(v) {
514
+ var x = v.name, M = v.options, O = M === void 0 ? {} : M, d = v.effect;
515
+ if (typeof d == "function") {
516
+ var b = d({
517
+ state: u,
518
+ name: x,
519
+ instance: p,
520
+ options: O
521
+ }), m = function() {
522
+ };
523
+ h.push(b || m);
524
+ }
525
+ });
526
+ }
527
+ function g() {
528
+ h.forEach(function(v) {
529
+ return v();
530
+ }), h = [];
531
+ }
532
+ return p;
533
+ };
534
+ }
535
+ var wt = {
536
+ passive: !0
537
+ };
538
+ function sr(t) {
539
+ var e = t.state, r = t.instance, a = t.options, n = a.scroll, i = n === void 0 ? !0 : n, f = a.resize, o = f === void 0 ? !0 : f, s = D(e.elements.popper), l = [].concat(e.scrollParents.reference, e.scrollParents.popper);
540
+ return i && l.forEach(function(u) {
541
+ u.addEventListener("scroll", r.update, wt);
542
+ }), o && s.addEventListener("resize", r.update, wt), function() {
543
+ i && l.forEach(function(u) {
544
+ u.removeEventListener("scroll", r.update, wt);
545
+ }), o && s.removeEventListener("resize", r.update, wt);
546
+ };
547
+ }
548
+ const fr = {
549
+ name: "eventListeners",
550
+ enabled: !0,
551
+ phase: "write",
552
+ fn: function() {
553
+ },
554
+ effect: sr,
555
+ data: {}
556
+ };
557
+ function ur(t) {
558
+ var e = t.state, r = t.name;
559
+ e.modifiersData[r] = ve({
560
+ reference: e.rects.reference,
561
+ element: e.rects.popper,
562
+ strategy: "absolute",
563
+ placement: e.placement
564
+ });
565
+ }
566
+ const lr = {
567
+ name: "popperOffsets",
568
+ enabled: !0,
569
+ phase: "read",
570
+ fn: ur,
571
+ data: {}
572
+ };
573
+ var cr = {
574
+ top: "auto",
575
+ right: "auto",
576
+ bottom: "auto",
577
+ left: "auto"
578
+ };
579
+ function pr(t, e) {
580
+ var r = t.x, a = t.y, n = e.devicePixelRatio || 1;
581
+ return {
582
+ x: at(r * n) / n || 0,
583
+ y: at(a * n) / n || 0
584
+ };
585
+ }
586
+ function re(t) {
587
+ var e, r = t.popper, a = t.popperRect, n = t.placement, i = t.variation, f = t.offsets, o = t.position, s = t.gpuAcceleration, l = t.adaptive, u = t.roundOffsets, h = t.isFixed, y = f.x, p = y === void 0 ? 0 : y, w = f.y, g = w === void 0 ? 0 : w, v = typeof u == "function" ? u({
588
+ x: p,
589
+ y: g
590
+ }) : {
591
+ x: p,
592
+ y: g
593
+ };
594
+ p = v.x, g = v.y;
595
+ var x = f.hasOwnProperty("x"), M = f.hasOwnProperty("y"), O = B, d = T, b = window;
596
+ if (l) {
597
+ var m = dt(r), _ = "clientHeight", R = "clientWidth";
598
+ if (m === D(r) && (m = G(r), z(m).position !== "static" && o === "absolute" && (_ = "scrollHeight", R = "scrollWidth")), m = m, n === T || (n === B || n === W) && i === ht) {
599
+ d = I;
600
+ var k = h && m === b && b.visualViewport ? b.visualViewport.height : (
601
+ // $FlowFixMe[prop-missing]
602
+ m[_]
603
+ );
604
+ g -= k - a.height, g *= s ? 1 : -1;
605
+ }
606
+ if (n === B || (n === T || n === I) && i === ht) {
607
+ O = W;
608
+ var S = h && m === b && b.visualViewport ? b.visualViewport.width : (
609
+ // $FlowFixMe[prop-missing]
610
+ m[R]
611
+ );
612
+ p -= S - a.width, p *= s ? 1 : -1;
613
+ }
614
+ }
615
+ var E = Object.assign({
616
+ position: o
617
+ }, l && cr), F = u === !0 ? pr({
618
+ x: p,
619
+ y: g
620
+ }, D(r)) : {
621
+ x: p,
622
+ y: g
623
+ };
624
+ if (p = F.x, g = F.y, s) {
625
+ var H;
626
+ return Object.assign({}, E, (H = {}, H[d] = M ? "0" : "", H[O] = x ? "0" : "", H.transform = (b.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + g + "px)" : "translate3d(" + p + "px, " + g + "px, 0)", H));
627
+ }
628
+ return Object.assign({}, E, (e = {}, e[d] = M ? g + "px" : "", e[O] = x ? p + "px" : "", e.transform = "", e));
629
+ }
630
+ function hr(t) {
631
+ var e = t.state, r = t.options, a = r.gpuAcceleration, n = a === void 0 ? !0 : a, i = r.adaptive, f = i === void 0 ? !0 : i, o = r.roundOffsets, s = o === void 0 ? !0 : o, l = {
632
+ placement: V(e.placement),
633
+ variation: ot(e.placement),
634
+ popper: e.elements.popper,
635
+ popperRect: e.rects.popper,
636
+ gpuAcceleration: n,
637
+ isFixed: e.options.strategy === "fixed"
638
+ };
639
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, re(Object.assign({}, l, {
640
+ offsets: e.modifiersData.popperOffsets,
641
+ position: e.options.strategy,
642
+ adaptive: f,
643
+ roundOffsets: s
644
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, re(Object.assign({}, l, {
645
+ offsets: e.modifiersData.arrow,
646
+ position: "absolute",
647
+ adaptive: !1,
648
+ roundOffsets: s
649
+ })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
650
+ "data-popper-placement": e.placement
651
+ });
652
+ }
653
+ const dr = {
654
+ name: "computeStyles",
655
+ enabled: !0,
656
+ phase: "beforeWrite",
657
+ fn: hr,
658
+ data: {}
659
+ };
660
+ function vr(t) {
661
+ var e = t.state;
662
+ Object.keys(e.elements).forEach(function(r) {
663
+ var a = e.styles[r] || {}, n = e.attributes[r] || {}, i = e.elements[r];
664
+ !j(i) || !U(i) || (Object.assign(i.style, a), Object.keys(n).forEach(function(f) {
665
+ var o = n[f];
666
+ o === !1 ? i.removeAttribute(f) : i.setAttribute(f, o === !0 ? "" : o);
667
+ }));
668
+ });
669
+ }
670
+ function gr(t) {
671
+ var e = t.state, r = {
672
+ popper: {
673
+ position: e.options.strategy,
674
+ left: "0",
675
+ top: "0",
676
+ margin: "0"
677
+ },
678
+ arrow: {
679
+ position: "absolute"
680
+ },
681
+ reference: {}
682
+ };
683
+ return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
684
+ Object.keys(e.elements).forEach(function(a) {
685
+ var n = e.elements[a], i = e.attributes[a] || {}, f = Object.keys(e.styles.hasOwnProperty(a) ? e.styles[a] : r[a]), o = f.reduce(function(s, l) {
686
+ return s[l] = "", s;
687
+ }, {});
688
+ !j(n) || !U(n) || (Object.assign(n.style, o), Object.keys(i).forEach(function(s) {
689
+ n.removeAttribute(s);
690
+ }));
691
+ });
692
+ };
693
+ }
694
+ const br = {
695
+ name: "applyStyles",
696
+ enabled: !0,
697
+ phase: "write",
698
+ fn: vr,
699
+ effect: gr,
700
+ requires: ["computeStyles"]
701
+ };
702
+ var aa = [fr, lr, dr, br];
703
+ function pt(t, e, r) {
704
+ return tt(t, _t(e, r));
705
+ }
706
+ function mr(t, e, r) {
707
+ var a = pt(t, e, r);
708
+ return a > r ? r : a;
709
+ }
710
+ var yr = function(e, r) {
711
+ return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
712
+ placement: r.placement
713
+ })) : e, be(typeof e != "number" ? e : me(e, vt));
714
+ };
715
+ function xr(t) {
716
+ var e, r = t.state, a = t.name, n = t.options, i = r.elements.arrow, f = r.modifiersData.popperOffsets, o = V(r.placement), s = Nt(o), l = [B, W].indexOf(o) >= 0, u = l ? "height" : "width";
717
+ if (!(!i || !f)) {
718
+ var h = yr(n.padding, r), y = $t(i), p = s === "y" ? T : B, w = s === "y" ? I : W, g = r.rects.reference[u] + r.rects.reference[s] - f[s] - r.rects.popper[u], v = f[s] - r.rects.reference[s], x = dt(i), M = x ? s === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, O = g / 2 - v / 2, d = h[p], b = M - y[u] - h[w], m = M / 2 - y[u] / 2 + O, _ = pt(d, m, b), R = s;
719
+ r.modifiersData[a] = (e = {}, e[R] = _, e.centerOffset = _ - m, e);
720
+ }
721
+ }
722
+ function wr(t) {
723
+ var e = t.state, r = t.options, a = r.element, n = a === void 0 ? "[data-popper-arrow]" : a;
724
+ n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) || de(e.elements.popper, n) && (e.elements.arrow = n));
725
+ }
726
+ const na = {
727
+ name: "arrow",
728
+ enabled: !0,
729
+ phase: "main",
730
+ fn: xr,
731
+ effect: wr,
732
+ requires: ["popperOffsets"],
733
+ requiresIfExists: ["preventOverflow"]
734
+ };
735
+ var Ar = {
736
+ left: "right",
737
+ right: "left",
738
+ bottom: "top",
739
+ top: "bottom"
740
+ };
741
+ function At(t) {
742
+ return t.replace(/left|right|bottom|top/g, function(e) {
743
+ return Ar[e];
744
+ });
745
+ }
746
+ var _r = {
747
+ start: "end",
748
+ end: "start"
749
+ };
750
+ function ae(t) {
751
+ return t.replace(/start|end/g, function(e) {
752
+ return _r[e];
753
+ });
754
+ }
755
+ function Mr(t, e) {
756
+ e === void 0 && (e = {});
757
+ var r = e, a = r.placement, n = r.boundary, i = r.rootBoundary, f = r.padding, o = r.flipVariations, s = r.allowedAutoPlacements, l = s === void 0 ? he : s, u = ot(a), h = u ? o ? Kt : Kt.filter(function(w) {
758
+ return ot(w) === u;
759
+ }) : vt, y = h.filter(function(w) {
760
+ return l.indexOf(w) >= 0;
761
+ });
762
+ y.length === 0 && (y = h);
763
+ var p = y.reduce(function(w, g) {
764
+ return w[g] = It(t, {
765
+ placement: g,
766
+ boundary: n,
767
+ rootBoundary: i,
768
+ padding: f
769
+ })[V(g)], w;
770
+ }, {});
771
+ return Object.keys(p).sort(function(w, g) {
772
+ return p[w] - p[g];
773
+ });
774
+ }
775
+ function Or(t) {
776
+ if (V(t) === Lt)
777
+ return [];
778
+ var e = At(t);
779
+ return [ae(t), e, ae(e)];
780
+ }
781
+ function Sr(t) {
782
+ var e = t.state, r = t.options, a = t.name;
783
+ if (!e.modifiersData[a]._skip) {
784
+ for (var n = r.mainAxis, i = n === void 0 ? !0 : n, f = r.altAxis, o = f === void 0 ? !0 : f, s = r.fallbackPlacements, l = r.padding, u = r.boundary, h = r.rootBoundary, y = r.altBoundary, p = r.flipVariations, w = p === void 0 ? !0 : p, g = r.allowedAutoPlacements, v = e.options.placement, x = V(v), M = x === v, O = s || (M || !w ? [At(v)] : Or(v)), d = [v].concat(O).reduce(function(rt, X) {
785
+ return rt.concat(V(X) === Lt ? Mr(e, {
786
+ placement: X,
787
+ boundary: u,
788
+ rootBoundary: h,
789
+ padding: l,
790
+ flipVariations: w,
791
+ allowedAutoPlacements: g
792
+ }) : X);
793
+ }, []), b = e.rects.reference, m = e.rects.popper, _ = /* @__PURE__ */ new Map(), R = !0, k = d[0], S = 0; S < d.length; S++) {
794
+ var E = d[S], F = V(E), H = ot(E) === it, Y = [T, I].indexOf(F) >= 0, Z = Y ? "width" : "height", C = It(e, {
795
+ placement: E,
796
+ boundary: u,
797
+ rootBoundary: h,
798
+ altBoundary: y,
799
+ padding: l
800
+ }), $ = Y ? H ? W : B : H ? I : T;
801
+ b[Z] > m[Z] && ($ = At($));
802
+ var gt = At($), J = [];
803
+ if (i && J.push(C[F] <= 0), o && J.push(C[$] <= 0, C[gt] <= 0), J.every(function(rt) {
804
+ return rt;
805
+ })) {
806
+ k = E, R = !1;
807
+ break;
808
+ }
809
+ _.set(E, J);
810
+ }
811
+ if (R)
812
+ for (var bt = w ? 3 : 1, kt = function(X) {
813
+ var ft = d.find(function(yt) {
814
+ var K = _.get(yt);
815
+ if (K)
816
+ return K.slice(0, X).every(function(Rt) {
817
+ return Rt;
818
+ });
819
+ });
820
+ if (ft)
821
+ return k = ft, "break";
822
+ }, st = bt; st > 0; st--) {
823
+ var mt = kt(st);
824
+ if (mt === "break") break;
825
+ }
826
+ e.placement !== k && (e.modifiersData[a]._skip = !0, e.placement = k, e.reset = !0);
827
+ }
828
+ }
829
+ const ia = {
830
+ name: "flip",
831
+ enabled: !0,
832
+ phase: "main",
833
+ fn: Sr,
834
+ requiresIfExists: ["offset"],
835
+ data: {
836
+ _skip: !1
837
+ }
838
+ };
839
+ function kr(t, e, r) {
840
+ var a = V(t), n = [B, T].indexOf(a) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, e, {
841
+ placement: t
842
+ })) : r, f = i[0], o = i[1];
843
+ return f = f || 0, o = (o || 0) * n, [B, W].indexOf(a) >= 0 ? {
844
+ x: o,
845
+ y: f
846
+ } : {
847
+ x: f,
848
+ y: o
849
+ };
850
+ }
851
+ function Rr(t) {
852
+ var e = t.state, r = t.options, a = t.name, n = r.offset, i = n === void 0 ? [0, 0] : n, f = he.reduce(function(u, h) {
853
+ return u[h] = kr(h, e.rects, i), u;
854
+ }, {}), o = f[e.placement], s = o.x, l = o.y;
855
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += l), e.modifiersData[a] = f;
856
+ }
857
+ const oa = {
858
+ name: "offset",
859
+ enabled: !0,
860
+ phase: "main",
861
+ requires: ["popperOffsets"],
862
+ fn: Rr
863
+ };
864
+ function Er(t) {
865
+ return t === "x" ? "y" : "x";
866
+ }
867
+ function Hr(t) {
868
+ var e = t.state, r = t.options, a = t.name, n = r.mainAxis, i = n === void 0 ? !0 : n, f = r.altAxis, o = f === void 0 ? !1 : f, s = r.boundary, l = r.rootBoundary, u = r.altBoundary, h = r.padding, y = r.tether, p = y === void 0 ? !0 : y, w = r.tetherOffset, g = w === void 0 ? 0 : w, v = It(e, {
869
+ boundary: s,
870
+ rootBoundary: l,
871
+ padding: h,
872
+ altBoundary: u
873
+ }), x = V(e.placement), M = ot(e.placement), O = !M, d = Nt(x), b = Er(d), m = e.modifiersData.popperOffsets, _ = e.rects.reference, R = e.rects.popper, k = typeof g == "function" ? g(Object.assign({}, e.rects, {
874
+ placement: e.placement
875
+ })) : g, S = typeof k == "number" ? {
876
+ mainAxis: k,
877
+ altAxis: k
878
+ } : Object.assign({
879
+ mainAxis: 0,
880
+ altAxis: 0
881
+ }, k), E = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, F = {
882
+ x: 0,
883
+ y: 0
884
+ };
885
+ if (m) {
886
+ if (i) {
887
+ var H, Y = d === "y" ? T : B, Z = d === "y" ? I : W, C = d === "y" ? "height" : "width", $ = m[d], gt = $ + v[Y], J = $ - v[Z], bt = p ? -R[C] / 2 : 0, kt = M === it ? _[C] : R[C], st = M === it ? -R[C] : -_[C], mt = e.elements.arrow, rt = p && mt ? $t(mt) : {
888
+ width: 0,
889
+ height: 0
890
+ }, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ge(), ft = X[Y], yt = X[Z], K = pt(0, _[C], rt[C]), Rt = O ? _[C] / 2 - bt - K - ft - S.mainAxis : kt - K - ft - S.mainAxis, we = O ? -_[C] / 2 + bt + K + yt + S.mainAxis : st + K + yt + S.mainAxis, Et = e.elements.arrow && dt(e.elements.arrow), Ae = Et ? d === "y" ? Et.clientTop || 0 : Et.clientLeft || 0 : 0, Wt = (H = E == null ? void 0 : E[d]) != null ? H : 0, _e = $ + Rt - Wt - Ae, Me = $ + we - Wt, Vt = pt(p ? _t(gt, _e) : gt, $, p ? tt(J, Me) : J);
891
+ m[d] = Vt, F[d] = Vt - $;
892
+ }
893
+ if (o) {
894
+ var Ut, Oe = d === "x" ? T : B, Se = d === "x" ? I : W, Q = m[b], xt = b === "y" ? "height" : "width", qt = Q + v[Oe], zt = Q - v[Se], Ht = [T, B].indexOf(x) !== -1, Xt = (Ut = E == null ? void 0 : E[b]) != null ? Ut : 0, Gt = Ht ? qt : Q - _[xt] - R[xt] - Xt + S.altAxis, Yt = Ht ? Q + _[xt] + R[xt] - Xt - S.altAxis : zt, Zt = p && Ht ? mr(Gt, Q, Yt) : pt(p ? Gt : qt, Q, p ? Yt : zt);
895
+ m[b] = Zt, F[b] = Zt - Q;
896
+ }
897
+ e.modifiersData[a] = F;
898
+ }
899
+ }
900
+ const sa = {
901
+ name: "preventOverflow",
902
+ enabled: !0,
903
+ phase: "main",
904
+ fn: Hr,
905
+ requiresIfExists: ["offset"]
906
+ };
907
+ function Mt(t) {
908
+ "@babel/helpers - typeof";
909
+ return Mt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
910
+ return typeof e;
911
+ } : function(e) {
912
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
913
+ }, Mt(t);
914
+ }
915
+ var Cr = /^\s+/, Pr = /\s+$/;
916
+ function c(t, e) {
917
+ if (t = t || "", e = e || {}, t instanceof c)
918
+ return t;
919
+ if (!(this instanceof c))
920
+ return new c(t, e);
921
+ var r = Tr(t);
922
+ this._originalInput = t, this._r = r.r, this._g = r.g, this._b = r.b, this._a = r.a, this._roundA = Math.round(100 * this._a) / 100, this._format = e.format || r.format, this._gradientType = e.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = r.ok;
923
+ }
924
+ c.prototype = {
925
+ isDark: function() {
926
+ return this.getBrightness() < 128;
927
+ },
928
+ isLight: function() {
929
+ return !this.isDark();
930
+ },
931
+ isValid: function() {
932
+ return this._ok;
933
+ },
934
+ getOriginalInput: function() {
935
+ return this._originalInput;
936
+ },
937
+ getFormat: function() {
938
+ return this._format;
939
+ },
940
+ getAlpha: function() {
941
+ return this._a;
942
+ },
943
+ getBrightness: function() {
944
+ var e = this.toRgb();
945
+ return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3;
946
+ },
947
+ getLuminance: function() {
948
+ var e = this.toRgb(), r, a, n, i, f, o;
949
+ return r = e.r / 255, a = e.g / 255, n = e.b / 255, r <= 0.03928 ? i = r / 12.92 : i = Math.pow((r + 0.055) / 1.055, 2.4), a <= 0.03928 ? f = a / 12.92 : f = Math.pow((a + 0.055) / 1.055, 2.4), n <= 0.03928 ? o = n / 12.92 : o = Math.pow((n + 0.055) / 1.055, 2.4), 0.2126 * i + 0.7152 * f + 0.0722 * o;
950
+ },
951
+ setAlpha: function(e) {
952
+ return this._a = ye(e), this._roundA = Math.round(100 * this._a) / 100, this;
953
+ },
954
+ toHsv: function() {
955
+ var e = ie(this._r, this._g, this._b);
956
+ return {
957
+ h: e.h * 360,
958
+ s: e.s,
959
+ v: e.v,
960
+ a: this._a
961
+ };
962
+ },
963
+ toHsvString: function() {
964
+ var e = ie(this._r, this._g, this._b), r = Math.round(e.h * 360), a = Math.round(e.s * 100), n = Math.round(e.v * 100);
965
+ return this._a == 1 ? "hsv(" + r + ", " + a + "%, " + n + "%)" : "hsva(" + r + ", " + a + "%, " + n + "%, " + this._roundA + ")";
966
+ },
967
+ toHsl: function() {
968
+ var e = ne(this._r, this._g, this._b);
969
+ return {
970
+ h: e.h * 360,
971
+ s: e.s,
972
+ l: e.l,
973
+ a: this._a
974
+ };
975
+ },
976
+ toHslString: function() {
977
+ var e = ne(this._r, this._g, this._b), r = Math.round(e.h * 360), a = Math.round(e.s * 100), n = Math.round(e.l * 100);
978
+ return this._a == 1 ? "hsl(" + r + ", " + a + "%, " + n + "%)" : "hsla(" + r + ", " + a + "%, " + n + "%, " + this._roundA + ")";
979
+ },
980
+ toHex: function(e) {
981
+ return oe(this._r, this._g, this._b, e);
982
+ },
983
+ toHexString: function(e) {
984
+ return "#" + this.toHex(e);
985
+ },
986
+ toHex8: function(e) {
987
+ return Fr(this._r, this._g, this._b, this._a, e);
988
+ },
989
+ toHex8String: function(e) {
990
+ return "#" + this.toHex8(e);
991
+ },
992
+ toRgb: function() {
993
+ return {
994
+ r: Math.round(this._r),
995
+ g: Math.round(this._g),
996
+ b: Math.round(this._b),
997
+ a: this._a
998
+ };
999
+ },
1000
+ toRgbString: function() {
1001
+ return this._a == 1 ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this._roundA + ")";
1002
+ },
1003
+ toPercentageRgb: function() {
1004
+ return {
1005
+ r: Math.round(A(this._r, 255) * 100) + "%",
1006
+ g: Math.round(A(this._g, 255) * 100) + "%",
1007
+ b: Math.round(A(this._b, 255) * 100) + "%",
1008
+ a: this._a
1009
+ };
1010
+ },
1011
+ toPercentageRgbString: function() {
1012
+ return this._a == 1 ? "rgb(" + Math.round(A(this._r, 255) * 100) + "%, " + Math.round(A(this._g, 255) * 100) + "%, " + Math.round(A(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(A(this._r, 255) * 100) + "%, " + Math.round(A(this._g, 255) * 100) + "%, " + Math.round(A(this._b, 255) * 100) + "%, " + this._roundA + ")";
1013
+ },
1014
+ toName: function() {
1015
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : Yr[oe(this._r, this._g, this._b, !0)] || !1;
1016
+ },
1017
+ toFilter: function(e) {
1018
+ var r = "#" + se(this._r, this._g, this._b, this._a), a = r, n = this._gradientType ? "GradientType = 1, " : "";
1019
+ if (e) {
1020
+ var i = c(e);
1021
+ a = "#" + se(i._r, i._g, i._b, i._a);
1022
+ }
1023
+ return "progid:DXImageTransform.Microsoft.gradient(" + n + "startColorstr=" + r + ",endColorstr=" + a + ")";
1024
+ },
1025
+ toString: function(e) {
1026
+ var r = !!e;
1027
+ e = e || this._format;
1028
+ var a = !1, n = this._a < 1 && this._a >= 0, i = !r && n && (e === "hex" || e === "hex6" || e === "hex3" || e === "hex4" || e === "hex8" || e === "name");
1029
+ return i ? e === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (e === "rgb" && (a = this.toRgbString()), e === "prgb" && (a = this.toPercentageRgbString()), (e === "hex" || e === "hex6") && (a = this.toHexString()), e === "hex3" && (a = this.toHexString(!0)), e === "hex4" && (a = this.toHex8String(!0)), e === "hex8" && (a = this.toHex8String()), e === "name" && (a = this.toName()), e === "hsl" && (a = this.toHslString()), e === "hsv" && (a = this.toHsvString()), a || this.toHexString());
1030
+ },
1031
+ clone: function() {
1032
+ return c(this.toString());
1033
+ },
1034
+ _applyModification: function(e, r) {
1035
+ var a = e.apply(null, [this].concat([].slice.call(r)));
1036
+ return this._r = a._r, this._g = a._g, this._b = a._b, this.setAlpha(a._a), this;
1037
+ },
1038
+ lighten: function() {
1039
+ return this._applyModification(Ir, arguments);
1040
+ },
1041
+ brighten: function() {
1042
+ return this._applyModification(Wr, arguments);
1043
+ },
1044
+ darken: function() {
1045
+ return this._applyModification(Vr, arguments);
1046
+ },
1047
+ desaturate: function() {
1048
+ return this._applyModification($r, arguments);
1049
+ },
1050
+ saturate: function() {
1051
+ return this._applyModification(Lr, arguments);
1052
+ },
1053
+ greyscale: function() {
1054
+ return this._applyModification(Nr, arguments);
1055
+ },
1056
+ spin: function() {
1057
+ return this._applyModification(Ur, arguments);
1058
+ },
1059
+ _applyCombination: function(e, r) {
1060
+ return e.apply(null, [this].concat([].slice.call(r)));
1061
+ },
1062
+ analogous: function() {
1063
+ return this._applyCombination(Xr, arguments);
1064
+ },
1065
+ complement: function() {
1066
+ return this._applyCombination(qr, arguments);
1067
+ },
1068
+ monochromatic: function() {
1069
+ return this._applyCombination(Gr, arguments);
1070
+ },
1071
+ splitcomplement: function() {
1072
+ return this._applyCombination(zr, arguments);
1073
+ },
1074
+ // Disabled until https://github.com/bgrins/TinyColor/issues/254
1075
+ // polyad: function (number) {
1076
+ // return this._applyCombination(polyad, [number]);
1077
+ // },
1078
+ triad: function() {
1079
+ return this._applyCombination(fe, [3]);
1080
+ },
1081
+ tetrad: function() {
1082
+ return this._applyCombination(fe, [4]);
1083
+ }
1084
+ };
1085
+ c.fromRatio = function(t, e) {
1086
+ if (Mt(t) == "object") {
1087
+ var r = {};
1088
+ for (var a in t)
1089
+ t.hasOwnProperty(a) && (a === "a" ? r[a] = t[a] : r[a] = lt(t[a]));
1090
+ t = r;
1091
+ }
1092
+ return c(t, e);
1093
+ };
1094
+ function Tr(t) {
1095
+ var e = {
1096
+ r: 0,
1097
+ g: 0,
1098
+ b: 0
1099
+ }, r = 1, a = null, n = null, i = null, f = !1, o = !1;
1100
+ return typeof t == "string" && (t = Qr(t)), Mt(t) == "object" && (q(t.r) && q(t.g) && q(t.b) ? (e = Br(t.r, t.g, t.b), f = !0, o = String(t.r).substr(-1) === "%" ? "prgb" : "rgb") : q(t.h) && q(t.s) && q(t.v) ? (a = lt(t.s), n = lt(t.v), e = jr(t.h, a, n), f = !0, o = "hsv") : q(t.h) && q(t.s) && q(t.l) && (a = lt(t.s), i = lt(t.l), e = Dr(t.h, a, i), f = !0, o = "hsl"), t.hasOwnProperty("a") && (r = t.a)), r = ye(r), {
1101
+ ok: f,
1102
+ format: t.format || o,
1103
+ r: Math.min(255, Math.max(e.r, 0)),
1104
+ g: Math.min(255, Math.max(e.g, 0)),
1105
+ b: Math.min(255, Math.max(e.b, 0)),
1106
+ a: r
1107
+ };
1108
+ }
1109
+ function Br(t, e, r) {
1110
+ return {
1111
+ r: A(t, 255) * 255,
1112
+ g: A(e, 255) * 255,
1113
+ b: A(r, 255) * 255
1114
+ };
1115
+ }
1116
+ function ne(t, e, r) {
1117
+ t = A(t, 255), e = A(e, 255), r = A(r, 255);
1118
+ var a = Math.max(t, e, r), n = Math.min(t, e, r), i, f, o = (a + n) / 2;
1119
+ if (a == n)
1120
+ i = f = 0;
1121
+ else {
1122
+ var s = a - n;
1123
+ switch (f = o > 0.5 ? s / (2 - a - n) : s / (a + n), a) {
1124
+ case t:
1125
+ i = (e - r) / s + (e < r ? 6 : 0);
1126
+ break;
1127
+ case e:
1128
+ i = (r - t) / s + 2;
1129
+ break;
1130
+ case r:
1131
+ i = (t - e) / s + 4;
1132
+ break;
1133
+ }
1134
+ i /= 6;
1135
+ }
1136
+ return {
1137
+ h: i,
1138
+ s: f,
1139
+ l: o
1140
+ };
1141
+ }
1142
+ function Dr(t, e, r) {
1143
+ var a, n, i;
1144
+ t = A(t, 360), e = A(e, 100), r = A(r, 100);
1145
+ function f(l, u, h) {
1146
+ return h < 0 && (h += 1), h > 1 && (h -= 1), h < 1 / 6 ? l + (u - l) * 6 * h : h < 1 / 2 ? u : h < 2 / 3 ? l + (u - l) * (2 / 3 - h) * 6 : l;
1147
+ }
1148
+ if (e === 0)
1149
+ a = n = i = r;
1150
+ else {
1151
+ var o = r < 0.5 ? r * (1 + e) : r + e - r * e, s = 2 * r - o;
1152
+ a = f(s, o, t + 1 / 3), n = f(s, o, t), i = f(s, o, t - 1 / 3);
1153
+ }
1154
+ return {
1155
+ r: a * 255,
1156
+ g: n * 255,
1157
+ b: i * 255
1158
+ };
1159
+ }
1160
+ function ie(t, e, r) {
1161
+ t = A(t, 255), e = A(e, 255), r = A(r, 255);
1162
+ var a = Math.max(t, e, r), n = Math.min(t, e, r), i, f, o = a, s = a - n;
1163
+ if (f = a === 0 ? 0 : s / a, a == n)
1164
+ i = 0;
1165
+ else {
1166
+ switch (a) {
1167
+ case t:
1168
+ i = (e - r) / s + (e < r ? 6 : 0);
1169
+ break;
1170
+ case e:
1171
+ i = (r - t) / s + 2;
1172
+ break;
1173
+ case r:
1174
+ i = (t - e) / s + 4;
1175
+ break;
1176
+ }
1177
+ i /= 6;
1178
+ }
1179
+ return {
1180
+ h: i,
1181
+ s: f,
1182
+ v: o
1183
+ };
1184
+ }
1185
+ function jr(t, e, r) {
1186
+ t = A(t, 360) * 6, e = A(e, 100), r = A(r, 100);
1187
+ var a = Math.floor(t), n = t - a, i = r * (1 - e), f = r * (1 - n * e), o = r * (1 - (1 - n) * e), s = a % 6, l = [r, f, i, i, o, r][s], u = [o, r, r, f, i, i][s], h = [i, i, o, r, r, f][s];
1188
+ return {
1189
+ r: l * 255,
1190
+ g: u * 255,
1191
+ b: h * 255
1192
+ };
1193
+ }
1194
+ function oe(t, e, r, a) {
1195
+ var n = [N(Math.round(t).toString(16)), N(Math.round(e).toString(16)), N(Math.round(r).toString(16))];
1196
+ return a && n[0].charAt(0) == n[0].charAt(1) && n[1].charAt(0) == n[1].charAt(1) && n[2].charAt(0) == n[2].charAt(1) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) : n.join("");
1197
+ }
1198
+ function Fr(t, e, r, a, n) {
1199
+ var i = [N(Math.round(t).toString(16)), N(Math.round(e).toString(16)), N(Math.round(r).toString(16)), N(xe(a))];
1200
+ return n && i[0].charAt(0) == i[0].charAt(1) && i[1].charAt(0) == i[1].charAt(1) && i[2].charAt(0) == i[2].charAt(1) && i[3].charAt(0) == i[3].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
1201
+ }
1202
+ function se(t, e, r, a) {
1203
+ var n = [N(xe(a)), N(Math.round(t).toString(16)), N(Math.round(e).toString(16)), N(Math.round(r).toString(16))];
1204
+ return n.join("");
1205
+ }
1206
+ c.equals = function(t, e) {
1207
+ return !t || !e ? !1 : c(t).toRgbString() == c(e).toRgbString();
1208
+ };
1209
+ c.random = function() {
1210
+ return c.fromRatio({
1211
+ r: Math.random(),
1212
+ g: Math.random(),
1213
+ b: Math.random()
1214
+ });
1215
+ };
1216
+ function $r(t, e) {
1217
+ e = e === 0 ? 0 : e || 10;
1218
+ var r = c(t).toHsl();
1219
+ return r.s -= e / 100, r.s = St(r.s), c(r);
1220
+ }
1221
+ function Lr(t, e) {
1222
+ e = e === 0 ? 0 : e || 10;
1223
+ var r = c(t).toHsl();
1224
+ return r.s += e / 100, r.s = St(r.s), c(r);
1225
+ }
1226
+ function Nr(t) {
1227
+ return c(t).desaturate(100);
1228
+ }
1229
+ function Ir(t, e) {
1230
+ e = e === 0 ? 0 : e || 10;
1231
+ var r = c(t).toHsl();
1232
+ return r.l += e / 100, r.l = St(r.l), c(r);
1233
+ }
1234
+ function Wr(t, e) {
1235
+ e = e === 0 ? 0 : e || 10;
1236
+ var r = c(t).toRgb();
1237
+ return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(e / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(e / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(e / 100)))), c(r);
1238
+ }
1239
+ function Vr(t, e) {
1240
+ e = e === 0 ? 0 : e || 10;
1241
+ var r = c(t).toHsl();
1242
+ return r.l -= e / 100, r.l = St(r.l), c(r);
1243
+ }
1244
+ function Ur(t, e) {
1245
+ var r = c(t).toHsl(), a = (r.h + e) % 360;
1246
+ return r.h = a < 0 ? 360 + a : a, c(r);
1247
+ }
1248
+ function qr(t) {
1249
+ var e = c(t).toHsl();
1250
+ return e.h = (e.h + 180) % 360, c(e);
1251
+ }
1252
+ function fe(t, e) {
1253
+ if (isNaN(e) || e <= 0)
1254
+ throw new Error("Argument to polyad must be a positive number");
1255
+ for (var r = c(t).toHsl(), a = [c(t)], n = 360 / e, i = 1; i < e; i++)
1256
+ a.push(c({
1257
+ h: (r.h + i * n) % 360,
1258
+ s: r.s,
1259
+ l: r.l
1260
+ }));
1261
+ return a;
1262
+ }
1263
+ function zr(t) {
1264
+ var e = c(t).toHsl(), r = e.h;
1265
+ return [c(t), c({
1266
+ h: (r + 72) % 360,
1267
+ s: e.s,
1268
+ l: e.l
1269
+ }), c({
1270
+ h: (r + 216) % 360,
1271
+ s: e.s,
1272
+ l: e.l
1273
+ })];
1274
+ }
1275
+ function Xr(t, e, r) {
1276
+ e = e || 6, r = r || 30;
1277
+ var a = c(t).toHsl(), n = 360 / r, i = [c(t)];
1278
+ for (a.h = (a.h - (n * e >> 1) + 720) % 360; --e; )
1279
+ a.h = (a.h + n) % 360, i.push(c(a));
1280
+ return i;
1281
+ }
1282
+ function Gr(t, e) {
1283
+ e = e || 6;
1284
+ for (var r = c(t).toHsv(), a = r.h, n = r.s, i = r.v, f = [], o = 1 / e; e--; )
1285
+ f.push(c({
1286
+ h: a,
1287
+ s: n,
1288
+ v: i
1289
+ })), i = (i + o) % 1;
1290
+ return f;
1291
+ }
1292
+ c.mix = function(t, e, r) {
1293
+ r = r === 0 ? 0 : r || 50;
1294
+ var a = c(t).toRgb(), n = c(e).toRgb(), i = r / 100, f = {
1295
+ r: (n.r - a.r) * i + a.r,
1296
+ g: (n.g - a.g) * i + a.g,
1297
+ b: (n.b - a.b) * i + a.b,
1298
+ a: (n.a - a.a) * i + a.a
1299
+ };
1300
+ return c(f);
1301
+ };
1302
+ c.readability = function(t, e) {
1303
+ var r = c(t), a = c(e);
1304
+ return (Math.max(r.getLuminance(), a.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), a.getLuminance()) + 0.05);
1305
+ };
1306
+ c.isReadable = function(t, e, r) {
1307
+ var a = c.readability(t, e), n, i;
1308
+ switch (i = !1, n = ta(r), n.level + n.size) {
1309
+ case "AAsmall":
1310
+ case "AAAlarge":
1311
+ i = a >= 4.5;
1312
+ break;
1313
+ case "AAlarge":
1314
+ i = a >= 3;
1315
+ break;
1316
+ case "AAAsmall":
1317
+ i = a >= 7;
1318
+ break;
1319
+ }
1320
+ return i;
1321
+ };
1322
+ c.mostReadable = function(t, e, r) {
1323
+ var a = null, n = 0, i, f, o, s;
1324
+ r = r || {}, f = r.includeFallbackColors, o = r.level, s = r.size;
1325
+ for (var l = 0; l < e.length; l++)
1326
+ i = c.readability(t, e[l]), i > n && (n = i, a = c(e[l]));
1327
+ return c.isReadable(t, a, {
1328
+ level: o,
1329
+ size: s
1330
+ }) || !f ? a : (r.includeFallbackColors = !1, c.mostReadable(t, ["#fff", "#000"], r));
1331
+ };
1332
+ var Tt = c.names = {
1333
+ aliceblue: "f0f8ff",
1334
+ antiquewhite: "faebd7",
1335
+ aqua: "0ff",
1336
+ aquamarine: "7fffd4",
1337
+ azure: "f0ffff",
1338
+ beige: "f5f5dc",
1339
+ bisque: "ffe4c4",
1340
+ black: "000",
1341
+ blanchedalmond: "ffebcd",
1342
+ blue: "00f",
1343
+ blueviolet: "8a2be2",
1344
+ brown: "a52a2a",
1345
+ burlywood: "deb887",
1346
+ burntsienna: "ea7e5d",
1347
+ cadetblue: "5f9ea0",
1348
+ chartreuse: "7fff00",
1349
+ chocolate: "d2691e",
1350
+ coral: "ff7f50",
1351
+ cornflowerblue: "6495ed",
1352
+ cornsilk: "fff8dc",
1353
+ crimson: "dc143c",
1354
+ cyan: "0ff",
1355
+ darkblue: "00008b",
1356
+ darkcyan: "008b8b",
1357
+ darkgoldenrod: "b8860b",
1358
+ darkgray: "a9a9a9",
1359
+ darkgreen: "006400",
1360
+ darkgrey: "a9a9a9",
1361
+ darkkhaki: "bdb76b",
1362
+ darkmagenta: "8b008b",
1363
+ darkolivegreen: "556b2f",
1364
+ darkorange: "ff8c00",
1365
+ darkorchid: "9932cc",
1366
+ darkred: "8b0000",
1367
+ darksalmon: "e9967a",
1368
+ darkseagreen: "8fbc8f",
1369
+ darkslateblue: "483d8b",
1370
+ darkslategray: "2f4f4f",
1371
+ darkslategrey: "2f4f4f",
1372
+ darkturquoise: "00ced1",
1373
+ darkviolet: "9400d3",
1374
+ deeppink: "ff1493",
1375
+ deepskyblue: "00bfff",
1376
+ dimgray: "696969",
1377
+ dimgrey: "696969",
1378
+ dodgerblue: "1e90ff",
1379
+ firebrick: "b22222",
1380
+ floralwhite: "fffaf0",
1381
+ forestgreen: "228b22",
1382
+ fuchsia: "f0f",
1383
+ gainsboro: "dcdcdc",
1384
+ ghostwhite: "f8f8ff",
1385
+ gold: "ffd700",
1386
+ goldenrod: "daa520",
1387
+ gray: "808080",
1388
+ green: "008000",
1389
+ greenyellow: "adff2f",
1390
+ grey: "808080",
1391
+ honeydew: "f0fff0",
1392
+ hotpink: "ff69b4",
1393
+ indianred: "cd5c5c",
1394
+ indigo: "4b0082",
1395
+ ivory: "fffff0",
1396
+ khaki: "f0e68c",
1397
+ lavender: "e6e6fa",
1398
+ lavenderblush: "fff0f5",
1399
+ lawngreen: "7cfc00",
1400
+ lemonchiffon: "fffacd",
1401
+ lightblue: "add8e6",
1402
+ lightcoral: "f08080",
1403
+ lightcyan: "e0ffff",
1404
+ lightgoldenrodyellow: "fafad2",
1405
+ lightgray: "d3d3d3",
1406
+ lightgreen: "90ee90",
1407
+ lightgrey: "d3d3d3",
1408
+ lightpink: "ffb6c1",
1409
+ lightsalmon: "ffa07a",
1410
+ lightseagreen: "20b2aa",
1411
+ lightskyblue: "87cefa",
1412
+ lightslategray: "789",
1413
+ lightslategrey: "789",
1414
+ lightsteelblue: "b0c4de",
1415
+ lightyellow: "ffffe0",
1416
+ lime: "0f0",
1417
+ limegreen: "32cd32",
1418
+ linen: "faf0e6",
1419
+ magenta: "f0f",
1420
+ maroon: "800000",
1421
+ mediumaquamarine: "66cdaa",
1422
+ mediumblue: "0000cd",
1423
+ mediumorchid: "ba55d3",
1424
+ mediumpurple: "9370db",
1425
+ mediumseagreen: "3cb371",
1426
+ mediumslateblue: "7b68ee",
1427
+ mediumspringgreen: "00fa9a",
1428
+ mediumturquoise: "48d1cc",
1429
+ mediumvioletred: "c71585",
1430
+ midnightblue: "191970",
1431
+ mintcream: "f5fffa",
1432
+ mistyrose: "ffe4e1",
1433
+ moccasin: "ffe4b5",
1434
+ navajowhite: "ffdead",
1435
+ navy: "000080",
1436
+ oldlace: "fdf5e6",
1437
+ olive: "808000",
1438
+ olivedrab: "6b8e23",
1439
+ orange: "ffa500",
1440
+ orangered: "ff4500",
1441
+ orchid: "da70d6",
1442
+ palegoldenrod: "eee8aa",
1443
+ palegreen: "98fb98",
1444
+ paleturquoise: "afeeee",
1445
+ palevioletred: "db7093",
1446
+ papayawhip: "ffefd5",
1447
+ peachpuff: "ffdab9",
1448
+ peru: "cd853f",
1449
+ pink: "ffc0cb",
1450
+ plum: "dda0dd",
1451
+ powderblue: "b0e0e6",
1452
+ purple: "800080",
1453
+ rebeccapurple: "663399",
1454
+ red: "f00",
1455
+ rosybrown: "bc8f8f",
1456
+ royalblue: "4169e1",
1457
+ saddlebrown: "8b4513",
1458
+ salmon: "fa8072",
1459
+ sandybrown: "f4a460",
1460
+ seagreen: "2e8b57",
1461
+ seashell: "fff5ee",
1462
+ sienna: "a0522d",
1463
+ silver: "c0c0c0",
1464
+ skyblue: "87ceeb",
1465
+ slateblue: "6a5acd",
1466
+ slategray: "708090",
1467
+ slategrey: "708090",
1468
+ snow: "fffafa",
1469
+ springgreen: "00ff7f",
1470
+ steelblue: "4682b4",
1471
+ tan: "d2b48c",
1472
+ teal: "008080",
1473
+ thistle: "d8bfd8",
1474
+ tomato: "ff6347",
1475
+ turquoise: "40e0d0",
1476
+ violet: "ee82ee",
1477
+ wheat: "f5deb3",
1478
+ white: "fff",
1479
+ whitesmoke: "f5f5f5",
1480
+ yellow: "ff0",
1481
+ yellowgreen: "9acd32"
1482
+ }, Yr = c.hexNames = Zr(Tt);
1483
+ function Zr(t) {
1484
+ var e = {};
1485
+ for (var r in t)
1486
+ t.hasOwnProperty(r) && (e[t[r]] = r);
1487
+ return e;
1488
+ }
1489
+ function ye(t) {
1490
+ return t = parseFloat(t), (isNaN(t) || t < 0 || t > 1) && (t = 1), t;
1491
+ }
1492
+ function A(t, e) {
1493
+ Jr(t) && (t = "100%");
1494
+ var r = Kr(t);
1495
+ return t = Math.min(e, Math.max(0, parseFloat(t))), r && (t = parseInt(t * e, 10) / 100), Math.abs(t - e) < 1e-6 ? 1 : t % e / parseFloat(e);
1496
+ }
1497
+ function St(t) {
1498
+ return Math.min(1, Math.max(0, t));
1499
+ }
1500
+ function P(t) {
1501
+ return parseInt(t, 16);
1502
+ }
1503
+ function Jr(t) {
1504
+ return typeof t == "string" && t.indexOf(".") != -1 && parseFloat(t) === 1;
1505
+ }
1506
+ function Kr(t) {
1507
+ return typeof t == "string" && t.indexOf("%") != -1;
1508
+ }
1509
+ function N(t) {
1510
+ return t.length == 1 ? "0" + t : "" + t;
1511
+ }
1512
+ function lt(t) {
1513
+ return t <= 1 && (t = t * 100 + "%"), t;
1514
+ }
1515
+ function xe(t) {
1516
+ return Math.round(parseFloat(t) * 255).toString(16);
1517
+ }
1518
+ function ue(t) {
1519
+ return P(t) / 255;
1520
+ }
1521
+ var L = function() {
1522
+ var t = "[-\\+]?\\d+%?", e = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + e + ")|(?:" + t + ")", a = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
1523
+ return {
1524
+ CSS_UNIT: new RegExp(r),
1525
+ rgb: new RegExp("rgb" + a),
1526
+ rgba: new RegExp("rgba" + n),
1527
+ hsl: new RegExp("hsl" + a),
1528
+ hsla: new RegExp("hsla" + n),
1529
+ hsv: new RegExp("hsv" + a),
1530
+ hsva: new RegExp("hsva" + n),
1531
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1532
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
1533
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1534
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
1535
+ };
1536
+ }();
1537
+ function q(t) {
1538
+ return !!L.CSS_UNIT.exec(t);
1539
+ }
1540
+ function Qr(t) {
1541
+ t = t.replace(Cr, "").replace(Pr, "").toLowerCase();
1542
+ var e = !1;
1543
+ if (Tt[t])
1544
+ t = Tt[t], e = !0;
1545
+ else if (t == "transparent")
1546
+ return {
1547
+ r: 0,
1548
+ g: 0,
1549
+ b: 0,
1550
+ a: 0,
1551
+ format: "name"
1552
+ };
1553
+ var r;
1554
+ return (r = L.rgb.exec(t)) ? {
1555
+ r: r[1],
1556
+ g: r[2],
1557
+ b: r[3]
1558
+ } : (r = L.rgba.exec(t)) ? {
1559
+ r: r[1],
1560
+ g: r[2],
1561
+ b: r[3],
1562
+ a: r[4]
1563
+ } : (r = L.hsl.exec(t)) ? {
1564
+ h: r[1],
1565
+ s: r[2],
1566
+ l: r[3]
1567
+ } : (r = L.hsla.exec(t)) ? {
1568
+ h: r[1],
1569
+ s: r[2],
1570
+ l: r[3],
1571
+ a: r[4]
1572
+ } : (r = L.hsv.exec(t)) ? {
1573
+ h: r[1],
1574
+ s: r[2],
1575
+ v: r[3]
1576
+ } : (r = L.hsva.exec(t)) ? {
1577
+ h: r[1],
1578
+ s: r[2],
1579
+ v: r[3],
1580
+ a: r[4]
1581
+ } : (r = L.hex8.exec(t)) ? {
1582
+ r: P(r[1]),
1583
+ g: P(r[2]),
1584
+ b: P(r[3]),
1585
+ a: ue(r[4]),
1586
+ format: e ? "name" : "hex8"
1587
+ } : (r = L.hex6.exec(t)) ? {
1588
+ r: P(r[1]),
1589
+ g: P(r[2]),
1590
+ b: P(r[3]),
1591
+ format: e ? "name" : "hex"
1592
+ } : (r = L.hex4.exec(t)) ? {
1593
+ r: P(r[1] + "" + r[1]),
1594
+ g: P(r[2] + "" + r[2]),
1595
+ b: P(r[3] + "" + r[3]),
1596
+ a: ue(r[4] + "" + r[4]),
1597
+ format: e ? "name" : "hex8"
1598
+ } : (r = L.hex3.exec(t)) ? {
1599
+ r: P(r[1] + "" + r[1]),
1600
+ g: P(r[2] + "" + r[2]),
1601
+ b: P(r[3] + "" + r[3]),
1602
+ format: e ? "name" : "hex"
1603
+ } : !1;
1604
+ }
1605
+ function ta(t) {
1606
+ var e, r;
1607
+ return t = t || {
1608
+ level: "AA",
1609
+ size: "small"
1610
+ }, e = (t.level || "AA").toUpperCase(), r = (t.size || "small").toLowerCase(), e !== "AA" && e !== "AAA" && (e = "AA"), r !== "small" && r !== "large" && (r = "small"), {
1611
+ level: e,
1612
+ size: r
1613
+ };
1614
+ }
1615
+ export {
1616
+ na as a,
1617
+ sa as b,
1618
+ ea as c,
1619
+ aa as d,
1620
+ dr as e,
1621
+ ia as f,
1622
+ fr as g,
1623
+ oa as o,
1624
+ ra as p,
1625
+ c as t
1626
+ };