@rotki/ui-library 2.0.3 → 2.2.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.
- package/README.md +1 -0
- package/dist/__test__/transition-group-stub.d.ts +2 -0
- package/dist/components/chips/RuiChip.vue.d.ts +2 -0
- package/dist/components/date-time-picker/RuiDateTimePicker.vue.d.ts +79 -0
- package/dist/components/date-time-picker/RuiDateTimePickerMenu.vue.d.ts +48 -0
- package/dist/components/date-time-picker/timezones.d.ts +1 -0
- package/dist/components/date-time-picker/types.d.ts +5 -0
- package/dist/components/date-time-picker/use-input-handler.d.ts +9 -0
- package/dist/components/date-time-picker/use-keyboard-handler.d.ts +29 -0
- package/dist/components/date-time-picker/utils.d.ts +4 -0
- package/dist/components/index.es.js +2048 -2043
- package/dist/components/time-picker/RuiTimePicker.vue.d.ts +16 -0
- package/dist/composables/{index-DOuH9rdn.js → index-iDflJtNX.js} +2 -2
- package/dist/composables/index.es.js +1 -1
- package/dist/icons/icons_1.d.ts +5 -5
- package/dist/icons/icons_1.es.js +972 -972
- package/dist/icons/icons_2.d.ts +8 -8
- package/dist/icons/icons_2.es.js +1036 -1036
- package/dist/icons/icons_3.d.ts +10 -10
- package/dist/icons/icons_3.es.js +1037 -1037
- package/dist/icons/icons_4.d.ts +10 -0
- package/dist/icons/icons_4.es.js +322 -282
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.es.js +1354 -1344
- package/dist/index-CIC9boM_.js +32 -0
- package/dist/index.es.js +1565 -1569
- package/dist/style.css +1 -1
- package/dist/utils/{index-CxHG7aHQ.js → index-CTepEwum.js} +1 -1
- package/dist/vendor-D4VGlT8H.js +2051 -0
- package/dist/web-types.json +490 -1
- package/package.json +31 -35
- package/dist/vendor-BeEprDAU.js +0 -1624
|
@@ -0,0 +1,2051 @@
|
|
|
1
|
+
import { g as zt } from "./index-CIC9boM_.js";
|
|
2
|
+
const Ee = /\d/, Pe = ["-", "_", "/", "."];
|
|
3
|
+
function je(t = "") {
|
|
4
|
+
if (!Ee.test(t))
|
|
5
|
+
return t !== t.toLowerCase();
|
|
6
|
+
}
|
|
7
|
+
function Le(t, e) {
|
|
8
|
+
const r = Pe, n = [];
|
|
9
|
+
if (!t || typeof t != "string")
|
|
10
|
+
return n;
|
|
11
|
+
let a = "", i, u;
|
|
12
|
+
for (const s of t) {
|
|
13
|
+
const o = r.includes(s);
|
|
14
|
+
if (o === !0) {
|
|
15
|
+
n.push(a), a = "", i = void 0;
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
const h = je(s);
|
|
19
|
+
if (u === !1) {
|
|
20
|
+
if (i === !1 && h === !0) {
|
|
21
|
+
n.push(a), a = s, i = h;
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
if (i === !0 && h === !1 && a.length > 1) {
|
|
25
|
+
const c = a.at(-1);
|
|
26
|
+
n.push(a.slice(0, Math.max(0, a.length - 1))), a = c + s, i = h;
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
a += s, i = h, u = o;
|
|
31
|
+
}
|
|
32
|
+
return n.push(a), n;
|
|
33
|
+
}
|
|
34
|
+
function Fe(t) {
|
|
35
|
+
return t ? t[0].toUpperCase() + t.slice(1) : "";
|
|
36
|
+
}
|
|
37
|
+
function Be(t) {
|
|
38
|
+
return t ? t[0].toLowerCase() + t.slice(1) : "";
|
|
39
|
+
}
|
|
40
|
+
function ze(t, e) {
|
|
41
|
+
return t ? (Array.isArray(t) ? t : Le(t)).map((r) => Fe(r)).join("") : "";
|
|
42
|
+
}
|
|
43
|
+
function yn(t, e) {
|
|
44
|
+
return Be(ze(t || ""));
|
|
45
|
+
}
|
|
46
|
+
var q = "top", nt = "bottom", at = "right", Z = "left", Nt = "auto", Ot = [q, nt, at, Z], vt = "start", Mt = "end", Ne = "clippingParents", ye = "viewport", yt = "popper", Ie = "reference", ne = /* @__PURE__ */ Ot.reduce(function(t, e) {
|
|
47
|
+
return t.concat([e + "-" + vt, e + "-" + Mt]);
|
|
48
|
+
}, []), xe = /* @__PURE__ */ [].concat(Ot, [Nt]).reduce(function(t, e) {
|
|
49
|
+
return t.concat([e, e + "-" + vt, e + "-" + Mt]);
|
|
50
|
+
}, []), Ue = "beforeRead", We = "read", Ye = "afterRead", Ve = "beforeMain", qe = "main", Ze = "afterMain", Xe = "beforeWrite", Ge = "write", Je = "afterWrite", Qe = [Ue, We, Ye, Ve, qe, Ze, Xe, Ge, Je];
|
|
51
|
+
function it(t) {
|
|
52
|
+
return t.split("-")[0];
|
|
53
|
+
}
|
|
54
|
+
function X(t) {
|
|
55
|
+
if (t == null)
|
|
56
|
+
return window;
|
|
57
|
+
if (t.toString() !== "[object Window]") {
|
|
58
|
+
var e = t.ownerDocument;
|
|
59
|
+
return e && e.defaultView || window;
|
|
60
|
+
}
|
|
61
|
+
return t;
|
|
62
|
+
}
|
|
63
|
+
function pt(t) {
|
|
64
|
+
var e = X(t).Element;
|
|
65
|
+
return t instanceof e || t instanceof Element;
|
|
66
|
+
}
|
|
67
|
+
function K(t) {
|
|
68
|
+
var e = X(t).HTMLElement;
|
|
69
|
+
return t instanceof e || t instanceof HTMLElement;
|
|
70
|
+
}
|
|
71
|
+
function It(t) {
|
|
72
|
+
if (typeof ShadowRoot > "u")
|
|
73
|
+
return !1;
|
|
74
|
+
var e = X(t).ShadowRoot;
|
|
75
|
+
return t instanceof e || t instanceof ShadowRoot;
|
|
76
|
+
}
|
|
77
|
+
var dt = Math.max, Ht = Math.min, gt = Math.round;
|
|
78
|
+
function Lt() {
|
|
79
|
+
var t = navigator.userAgentData;
|
|
80
|
+
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
81
|
+
return e.brand + "/" + e.version;
|
|
82
|
+
}).join(" ") : navigator.userAgent;
|
|
83
|
+
}
|
|
84
|
+
function we() {
|
|
85
|
+
return !/^((?!chrome|android).)*safari/i.test(Lt());
|
|
86
|
+
}
|
|
87
|
+
function mt(t, e, r) {
|
|
88
|
+
e === void 0 && (e = !1), r === void 0 && (r = !1);
|
|
89
|
+
var n = t.getBoundingClientRect(), a = 1, i = 1;
|
|
90
|
+
e && K(t) && (a = t.offsetWidth > 0 && gt(n.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && gt(n.height) / t.offsetHeight || 1);
|
|
91
|
+
var u = pt(t) ? X(t) : window, s = u.visualViewport, o = !we() && r, h = (n.left + (o && s ? s.offsetLeft : 0)) / a, c = (n.top + (o && s ? s.offsetTop : 0)) / i, x = n.width / a, w = n.height / i;
|
|
92
|
+
return {
|
|
93
|
+
width: x,
|
|
94
|
+
height: w,
|
|
95
|
+
top: c,
|
|
96
|
+
right: h + x,
|
|
97
|
+
bottom: c + w,
|
|
98
|
+
left: h,
|
|
99
|
+
x: h,
|
|
100
|
+
y: c
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function Ut(t) {
|
|
104
|
+
var e = mt(t), r = t.offsetWidth, n = t.offsetHeight;
|
|
105
|
+
return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
|
|
106
|
+
x: t.offsetLeft,
|
|
107
|
+
y: t.offsetTop,
|
|
108
|
+
width: r,
|
|
109
|
+
height: n
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function $e(t, e) {
|
|
113
|
+
var r = e.getRootNode && e.getRootNode();
|
|
114
|
+
if (t.contains(e))
|
|
115
|
+
return !0;
|
|
116
|
+
if (r && It(r)) {
|
|
117
|
+
var n = e;
|
|
118
|
+
do {
|
|
119
|
+
if (n && t.isSameNode(n))
|
|
120
|
+
return !0;
|
|
121
|
+
n = n.parentNode || n.host;
|
|
122
|
+
} while (n);
|
|
123
|
+
}
|
|
124
|
+
return !1;
|
|
125
|
+
}
|
|
126
|
+
function ot(t) {
|
|
127
|
+
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
128
|
+
}
|
|
129
|
+
function ut(t) {
|
|
130
|
+
return X(t).getComputedStyle(t);
|
|
131
|
+
}
|
|
132
|
+
function Ke(t) {
|
|
133
|
+
return ["table", "td", "th"].indexOf(ot(t)) >= 0;
|
|
134
|
+
}
|
|
135
|
+
function ft(t) {
|
|
136
|
+
return ((pt(t) ? t.ownerDocument : (
|
|
137
|
+
// $FlowFixMe[prop-missing]
|
|
138
|
+
t.document
|
|
139
|
+
)) || window.document).documentElement;
|
|
140
|
+
}
|
|
141
|
+
function Et(t) {
|
|
142
|
+
return ot(t) === "html" ? t : (
|
|
143
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
144
|
+
// $FlowFixMe[incompatible-return]
|
|
145
|
+
// $FlowFixMe[prop-missing]
|
|
146
|
+
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
147
|
+
t.parentNode || // DOM Element detected
|
|
148
|
+
(It(t) ? t.host : null) || // ShadowRoot detected
|
|
149
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
150
|
+
ft(t)
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
function ae(t) {
|
|
154
|
+
return !K(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
155
|
+
ut(t).position === "fixed" ? null : t.offsetParent;
|
|
156
|
+
}
|
|
157
|
+
function tr(t) {
|
|
158
|
+
var e = /firefox/i.test(Lt()), r = /Trident/i.test(Lt());
|
|
159
|
+
if (r && K(t)) {
|
|
160
|
+
var n = ut(t);
|
|
161
|
+
if (n.position === "fixed")
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
var a = Et(t);
|
|
165
|
+
for (It(a) && (a = a.host); K(a) && ["html", "body"].indexOf(ot(a)) < 0; ) {
|
|
166
|
+
var i = ut(a);
|
|
167
|
+
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")
|
|
168
|
+
return a;
|
|
169
|
+
a = a.parentNode;
|
|
170
|
+
}
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
function _t(t) {
|
|
174
|
+
for (var e = X(t), r = ae(t); r && Ke(r) && ut(r).position === "static"; )
|
|
175
|
+
r = ae(r);
|
|
176
|
+
return r && (ot(r) === "html" || ot(r) === "body" && ut(r).position === "static") ? e : r || tr(t) || e;
|
|
177
|
+
}
|
|
178
|
+
function Wt(t) {
|
|
179
|
+
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
180
|
+
}
|
|
181
|
+
function wt(t, e, r) {
|
|
182
|
+
return dt(t, Ht(e, r));
|
|
183
|
+
}
|
|
184
|
+
function er(t, e, r) {
|
|
185
|
+
var n = wt(t, e, r);
|
|
186
|
+
return n > r ? r : n;
|
|
187
|
+
}
|
|
188
|
+
function Me() {
|
|
189
|
+
return {
|
|
190
|
+
top: 0,
|
|
191
|
+
right: 0,
|
|
192
|
+
bottom: 0,
|
|
193
|
+
left: 0
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function Oe(t) {
|
|
197
|
+
return Object.assign({}, Me(), t);
|
|
198
|
+
}
|
|
199
|
+
function _e(t, e) {
|
|
200
|
+
return e.reduce(function(r, n) {
|
|
201
|
+
return r[n] = t, r;
|
|
202
|
+
}, {});
|
|
203
|
+
}
|
|
204
|
+
var rr = function(e, r) {
|
|
205
|
+
return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
|
|
206
|
+
placement: r.placement
|
|
207
|
+
})) : e, Oe(typeof e != "number" ? e : _e(e, Ot));
|
|
208
|
+
};
|
|
209
|
+
function nr(t) {
|
|
210
|
+
var e, r = t.state, n = t.name, a = t.options, i = r.elements.arrow, u = r.modifiersData.popperOffsets, s = it(r.placement), o = Wt(s), h = [Z, at].indexOf(s) >= 0, c = h ? "height" : "width";
|
|
211
|
+
if (!(!i || !u)) {
|
|
212
|
+
var x = rr(a.padding, r), w = Ut(i), v = o === "y" ? q : Z, b = o === "y" ? nt : at, f = r.rects.reference[c] + r.rects.reference[o] - u[o] - r.rects.popper[c], m = u[o] - r.rects.reference[o], T = _t(i), H = T ? o === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, D = f / 2 - m / 2, M = x[v], O = H - w[c] - x[b], R = H / 2 - w[c] / 2 + D, C = wt(M, R, O), j = o;
|
|
213
|
+
r.modifiersData[n] = (e = {}, e[j] = C, e.centerOffset = C - R, e);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
function ar(t) {
|
|
217
|
+
var e = t.state, r = t.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
|
|
218
|
+
a != null && (typeof a == "string" && (a = e.elements.popper.querySelector(a), !a) || $e(e.elements.popper, a) && (e.elements.arrow = a));
|
|
219
|
+
}
|
|
220
|
+
const xn = {
|
|
221
|
+
name: "arrow",
|
|
222
|
+
enabled: !0,
|
|
223
|
+
phase: "main",
|
|
224
|
+
fn: nr,
|
|
225
|
+
effect: ar,
|
|
226
|
+
requires: ["popperOffsets"],
|
|
227
|
+
requiresIfExists: ["preventOverflow"]
|
|
228
|
+
};
|
|
229
|
+
function bt(t) {
|
|
230
|
+
return t.split("-")[1];
|
|
231
|
+
}
|
|
232
|
+
var ir = {
|
|
233
|
+
top: "auto",
|
|
234
|
+
right: "auto",
|
|
235
|
+
bottom: "auto",
|
|
236
|
+
left: "auto"
|
|
237
|
+
};
|
|
238
|
+
function or(t, e) {
|
|
239
|
+
var r = t.x, n = t.y, a = e.devicePixelRatio || 1;
|
|
240
|
+
return {
|
|
241
|
+
x: gt(r * a) / a || 0,
|
|
242
|
+
y: gt(n * a) / a || 0
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
function ie(t) {
|
|
246
|
+
var e, r = t.popper, n = t.popperRect, a = t.placement, i = t.variation, u = t.offsets, s = t.position, o = t.gpuAcceleration, h = t.adaptive, c = t.roundOffsets, x = t.isFixed, w = u.x, v = w === void 0 ? 0 : w, b = u.y, f = b === void 0 ? 0 : b, m = typeof c == "function" ? c({
|
|
247
|
+
x: v,
|
|
248
|
+
y: f
|
|
249
|
+
}) : {
|
|
250
|
+
x: v,
|
|
251
|
+
y: f
|
|
252
|
+
};
|
|
253
|
+
v = m.x, f = m.y;
|
|
254
|
+
var T = u.hasOwnProperty("x"), H = u.hasOwnProperty("y"), D = Z, M = q, O = window;
|
|
255
|
+
if (h) {
|
|
256
|
+
var R = _t(r), C = "clientHeight", j = "clientWidth";
|
|
257
|
+
if (R === X(r) && (R = ft(r), ut(R).position !== "static" && s === "absolute" && (C = "scrollHeight", j = "scrollWidth")), R = R, a === q || (a === Z || a === at) && i === Mt) {
|
|
258
|
+
M = nt;
|
|
259
|
+
var E = x && R === O && O.visualViewport ? O.visualViewport.height : (
|
|
260
|
+
// $FlowFixMe[prop-missing]
|
|
261
|
+
R[C]
|
|
262
|
+
);
|
|
263
|
+
f -= E - n.height, f *= o ? 1 : -1;
|
|
264
|
+
}
|
|
265
|
+
if (a === Z || (a === q || a === nt) && i === Mt) {
|
|
266
|
+
D = at;
|
|
267
|
+
var k = x && R === O && O.visualViewport ? O.visualViewport.width : (
|
|
268
|
+
// $FlowFixMe[prop-missing]
|
|
269
|
+
R[j]
|
|
270
|
+
);
|
|
271
|
+
v -= k - n.width, v *= o ? 1 : -1;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
var _ = Object.assign({
|
|
275
|
+
position: s
|
|
276
|
+
}, h && ir), U = c === !0 ? or({
|
|
277
|
+
x: v,
|
|
278
|
+
y: f
|
|
279
|
+
}, X(r)) : {
|
|
280
|
+
x: v,
|
|
281
|
+
y: f
|
|
282
|
+
};
|
|
283
|
+
if (v = U.x, f = U.y, o) {
|
|
284
|
+
var I;
|
|
285
|
+
return Object.assign({}, _, (I = {}, I[M] = H ? "0" : "", I[D] = T ? "0" : "", I.transform = (O.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + f + "px)" : "translate3d(" + v + "px, " + f + "px, 0)", I));
|
|
286
|
+
}
|
|
287
|
+
return Object.assign({}, _, (e = {}, e[M] = H ? f + "px" : "", e[D] = T ? v + "px" : "", e.transform = "", e));
|
|
288
|
+
}
|
|
289
|
+
function sr(t) {
|
|
290
|
+
var e = t.state, r = t.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, u = i === void 0 ? !0 : i, s = r.roundOffsets, o = s === void 0 ? !0 : s, h = {
|
|
291
|
+
placement: it(e.placement),
|
|
292
|
+
variation: bt(e.placement),
|
|
293
|
+
popper: e.elements.popper,
|
|
294
|
+
popperRect: e.rects.popper,
|
|
295
|
+
gpuAcceleration: a,
|
|
296
|
+
isFixed: e.options.strategy === "fixed"
|
|
297
|
+
};
|
|
298
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ie(Object.assign({}, h, {
|
|
299
|
+
offsets: e.modifiersData.popperOffsets,
|
|
300
|
+
position: e.options.strategy,
|
|
301
|
+
adaptive: u,
|
|
302
|
+
roundOffsets: o
|
|
303
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ie(Object.assign({}, h, {
|
|
304
|
+
offsets: e.modifiersData.arrow,
|
|
305
|
+
position: "absolute",
|
|
306
|
+
adaptive: !1,
|
|
307
|
+
roundOffsets: o
|
|
308
|
+
})))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
309
|
+
"data-popper-placement": e.placement
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
const ur = {
|
|
313
|
+
name: "computeStyles",
|
|
314
|
+
enabled: !0,
|
|
315
|
+
phase: "beforeWrite",
|
|
316
|
+
fn: sr,
|
|
317
|
+
data: {}
|
|
318
|
+
};
|
|
319
|
+
var At = {
|
|
320
|
+
passive: !0
|
|
321
|
+
};
|
|
322
|
+
function fr(t) {
|
|
323
|
+
var e = t.state, r = t.instance, n = t.options, a = n.scroll, i = a === void 0 ? !0 : a, u = n.resize, s = u === void 0 ? !0 : u, o = X(e.elements.popper), h = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
324
|
+
return i && h.forEach(function(c) {
|
|
325
|
+
c.addEventListener("scroll", r.update, At);
|
|
326
|
+
}), s && o.addEventListener("resize", r.update, At), function() {
|
|
327
|
+
i && h.forEach(function(c) {
|
|
328
|
+
c.removeEventListener("scroll", r.update, At);
|
|
329
|
+
}), s && o.removeEventListener("resize", r.update, At);
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
const cr = {
|
|
333
|
+
name: "eventListeners",
|
|
334
|
+
enabled: !0,
|
|
335
|
+
phase: "write",
|
|
336
|
+
fn: function() {
|
|
337
|
+
},
|
|
338
|
+
effect: fr,
|
|
339
|
+
data: {}
|
|
340
|
+
};
|
|
341
|
+
var lr = {
|
|
342
|
+
left: "right",
|
|
343
|
+
right: "left",
|
|
344
|
+
bottom: "top",
|
|
345
|
+
top: "bottom"
|
|
346
|
+
};
|
|
347
|
+
function Dt(t) {
|
|
348
|
+
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
349
|
+
return lr[e];
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
var hr = {
|
|
353
|
+
start: "end",
|
|
354
|
+
end: "start"
|
|
355
|
+
};
|
|
356
|
+
function oe(t) {
|
|
357
|
+
return t.replace(/start|end/g, function(e) {
|
|
358
|
+
return hr[e];
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
function Yt(t) {
|
|
362
|
+
var e = X(t), r = e.pageXOffset, n = e.pageYOffset;
|
|
363
|
+
return {
|
|
364
|
+
scrollLeft: r,
|
|
365
|
+
scrollTop: n
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
function Vt(t) {
|
|
369
|
+
return mt(ft(t)).left + Yt(t).scrollLeft;
|
|
370
|
+
}
|
|
371
|
+
function dr(t, e) {
|
|
372
|
+
var r = X(t), n = ft(t), a = r.visualViewport, i = n.clientWidth, u = n.clientHeight, s = 0, o = 0;
|
|
373
|
+
if (a) {
|
|
374
|
+
i = a.width, u = a.height;
|
|
375
|
+
var h = we();
|
|
376
|
+
(h || !h && e === "fixed") && (s = a.offsetLeft, o = a.offsetTop);
|
|
377
|
+
}
|
|
378
|
+
return {
|
|
379
|
+
width: i,
|
|
380
|
+
height: u,
|
|
381
|
+
x: s + Vt(t),
|
|
382
|
+
y: o
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
function pr(t) {
|
|
386
|
+
var e, r = ft(t), n = Yt(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, i = dt(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), u = dt(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -n.scrollLeft + Vt(t), o = -n.scrollTop;
|
|
387
|
+
return ut(a || r).direction === "rtl" && (s += dt(r.clientWidth, a ? a.clientWidth : 0) - i), {
|
|
388
|
+
width: i,
|
|
389
|
+
height: u,
|
|
390
|
+
x: s,
|
|
391
|
+
y: o
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
function qt(t) {
|
|
395
|
+
var e = ut(t), r = e.overflow, n = e.overflowX, a = e.overflowY;
|
|
396
|
+
return /auto|scroll|overlay|hidden/.test(r + a + n);
|
|
397
|
+
}
|
|
398
|
+
function Se(t) {
|
|
399
|
+
return ["html", "body", "#document"].indexOf(ot(t)) >= 0 ? t.ownerDocument.body : K(t) && qt(t) ? t : Se(Et(t));
|
|
400
|
+
}
|
|
401
|
+
function $t(t, e) {
|
|
402
|
+
var r;
|
|
403
|
+
e === void 0 && (e = []);
|
|
404
|
+
var n = Se(t), a = n === ((r = t.ownerDocument) == null ? void 0 : r.body), i = X(n), u = a ? [i].concat(i.visualViewport || [], qt(n) ? n : []) : n, s = e.concat(u);
|
|
405
|
+
return a ? s : (
|
|
406
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
407
|
+
s.concat($t(Et(u)))
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
function Ft(t) {
|
|
411
|
+
return Object.assign({}, t, {
|
|
412
|
+
left: t.x,
|
|
413
|
+
top: t.y,
|
|
414
|
+
right: t.x + t.width,
|
|
415
|
+
bottom: t.y + t.height
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
function vr(t, e) {
|
|
419
|
+
var r = mt(t, !1, e === "fixed");
|
|
420
|
+
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;
|
|
421
|
+
}
|
|
422
|
+
function se(t, e, r) {
|
|
423
|
+
return e === ye ? Ft(dr(t, r)) : pt(e) ? vr(e, r) : Ft(pr(ft(t)));
|
|
424
|
+
}
|
|
425
|
+
function gr(t) {
|
|
426
|
+
var e = $t(Et(t)), r = ["absolute", "fixed"].indexOf(ut(t).position) >= 0, n = r && K(t) ? _t(t) : t;
|
|
427
|
+
return pt(n) ? e.filter(function(a) {
|
|
428
|
+
return pt(a) && $e(a, n) && ot(a) !== "body";
|
|
429
|
+
}) : [];
|
|
430
|
+
}
|
|
431
|
+
function mr(t, e, r, n) {
|
|
432
|
+
var a = e === "clippingParents" ? gr(t) : [].concat(e), i = [].concat(a, [r]), u = i[0], s = i.reduce(function(o, h) {
|
|
433
|
+
var c = se(t, h, n);
|
|
434
|
+
return o.top = dt(c.top, o.top), o.right = Ht(c.right, o.right), o.bottom = Ht(c.bottom, o.bottom), o.left = dt(c.left, o.left), o;
|
|
435
|
+
}, se(t, u, n));
|
|
436
|
+
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
437
|
+
}
|
|
438
|
+
function Ae(t) {
|
|
439
|
+
var e = t.reference, r = t.element, n = t.placement, a = n ? it(n) : null, i = n ? bt(n) : null, u = e.x + e.width / 2 - r.width / 2, s = e.y + e.height / 2 - r.height / 2, o;
|
|
440
|
+
switch (a) {
|
|
441
|
+
case q:
|
|
442
|
+
o = {
|
|
443
|
+
x: u,
|
|
444
|
+
y: e.y - r.height
|
|
445
|
+
};
|
|
446
|
+
break;
|
|
447
|
+
case nt:
|
|
448
|
+
o = {
|
|
449
|
+
x: u,
|
|
450
|
+
y: e.y + e.height
|
|
451
|
+
};
|
|
452
|
+
break;
|
|
453
|
+
case at:
|
|
454
|
+
o = {
|
|
455
|
+
x: e.x + e.width,
|
|
456
|
+
y: s
|
|
457
|
+
};
|
|
458
|
+
break;
|
|
459
|
+
case Z:
|
|
460
|
+
o = {
|
|
461
|
+
x: e.x - r.width,
|
|
462
|
+
y: s
|
|
463
|
+
};
|
|
464
|
+
break;
|
|
465
|
+
default:
|
|
466
|
+
o = {
|
|
467
|
+
x: e.x,
|
|
468
|
+
y: e.y
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
var h = a ? Wt(a) : null;
|
|
472
|
+
if (h != null) {
|
|
473
|
+
var c = h === "y" ? "height" : "width";
|
|
474
|
+
switch (i) {
|
|
475
|
+
case vt:
|
|
476
|
+
o[h] = o[h] - (e[c] / 2 - r[c] / 2);
|
|
477
|
+
break;
|
|
478
|
+
case Mt:
|
|
479
|
+
o[h] = o[h] + (e[c] / 2 - r[c] / 2);
|
|
480
|
+
break;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return o;
|
|
484
|
+
}
|
|
485
|
+
function Zt(t, e) {
|
|
486
|
+
e === void 0 && (e = {});
|
|
487
|
+
var r = e, n = r.placement, a = n === void 0 ? t.placement : n, i = r.strategy, u = i === void 0 ? t.strategy : i, s = r.boundary, o = s === void 0 ? Ne : s, h = r.rootBoundary, c = h === void 0 ? ye : h, x = r.elementContext, w = x === void 0 ? yt : x, v = r.altBoundary, b = v === void 0 ? !1 : v, f = r.padding, m = f === void 0 ? 0 : f, T = Oe(typeof m != "number" ? m : _e(m, Ot)), H = w === yt ? Ie : yt, D = t.rects.popper, M = t.elements[b ? H : w], O = mr(pt(M) ? M : M.contextElement || ft(t.elements.popper), o, c, u), R = mt(t.elements.reference), C = Ae({
|
|
488
|
+
reference: R,
|
|
489
|
+
element: D,
|
|
490
|
+
placement: a
|
|
491
|
+
}), j = Ft(Object.assign({}, D, C)), E = w === yt ? j : R, k = {
|
|
492
|
+
top: O.top - E.top + T.top,
|
|
493
|
+
bottom: E.bottom - O.bottom + T.bottom,
|
|
494
|
+
left: O.left - E.left + T.left,
|
|
495
|
+
right: E.right - O.right + T.right
|
|
496
|
+
}, _ = t.modifiersData.offset;
|
|
497
|
+
if (w === yt && _) {
|
|
498
|
+
var U = _[a];
|
|
499
|
+
Object.keys(k).forEach(function(I) {
|
|
500
|
+
var $ = [at, nt].indexOf(I) >= 0 ? 1 : -1, d = [q, nt].indexOf(I) >= 0 ? "y" : "x";
|
|
501
|
+
k[I] += U[d] * $;
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
return k;
|
|
505
|
+
}
|
|
506
|
+
function br(t, e) {
|
|
507
|
+
e === void 0 && (e = {});
|
|
508
|
+
var r = e, n = r.placement, a = r.boundary, i = r.rootBoundary, u = r.padding, s = r.flipVariations, o = r.allowedAutoPlacements, h = o === void 0 ? xe : o, c = bt(n), x = c ? s ? ne : ne.filter(function(b) {
|
|
509
|
+
return bt(b) === c;
|
|
510
|
+
}) : Ot, w = x.filter(function(b) {
|
|
511
|
+
return h.indexOf(b) >= 0;
|
|
512
|
+
});
|
|
513
|
+
w.length === 0 && (w = x);
|
|
514
|
+
var v = w.reduce(function(b, f) {
|
|
515
|
+
return b[f] = Zt(t, {
|
|
516
|
+
placement: f,
|
|
517
|
+
boundary: a,
|
|
518
|
+
rootBoundary: i,
|
|
519
|
+
padding: u
|
|
520
|
+
})[it(f)], b;
|
|
521
|
+
}, {});
|
|
522
|
+
return Object.keys(v).sort(function(b, f) {
|
|
523
|
+
return v[b] - v[f];
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
function yr(t) {
|
|
527
|
+
if (it(t) === Nt)
|
|
528
|
+
return [];
|
|
529
|
+
var e = Dt(t);
|
|
530
|
+
return [oe(t), e, oe(e)];
|
|
531
|
+
}
|
|
532
|
+
function xr(t) {
|
|
533
|
+
var e = t.state, r = t.options, n = t.name;
|
|
534
|
+
if (!e.modifiersData[n]._skip) {
|
|
535
|
+
for (var a = r.mainAxis, i = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !0 : u, o = r.fallbackPlacements, h = r.padding, c = r.boundary, x = r.rootBoundary, w = r.altBoundary, v = r.flipVariations, b = v === void 0 ? !0 : v, f = r.allowedAutoPlacements, m = e.options.placement, T = it(m), H = T === m, D = o || (H || !b ? [Dt(m)] : yr(m)), M = [m].concat(D).reduce(function(z, N) {
|
|
536
|
+
return z.concat(it(N) === Nt ? br(e, {
|
|
537
|
+
placement: N,
|
|
538
|
+
boundary: c,
|
|
539
|
+
rootBoundary: x,
|
|
540
|
+
padding: h,
|
|
541
|
+
flipVariations: b,
|
|
542
|
+
allowedAutoPlacements: f
|
|
543
|
+
}) : N);
|
|
544
|
+
}, []), O = e.rects.reference, R = e.rects.popper, C = /* @__PURE__ */ new Map(), j = !0, E = M[0], k = 0; k < M.length; k++) {
|
|
545
|
+
var _ = M[k], U = it(_), I = bt(_) === vt, $ = [q, nt].indexOf(U) >= 0, d = $ ? "width" : "height", l = Zt(e, {
|
|
546
|
+
placement: _,
|
|
547
|
+
boundary: c,
|
|
548
|
+
rootBoundary: x,
|
|
549
|
+
altBoundary: w,
|
|
550
|
+
padding: h
|
|
551
|
+
}), g = $ ? I ? at : Z : I ? nt : q;
|
|
552
|
+
O[d] > R[d] && (g = Dt(g));
|
|
553
|
+
var p = Dt(g), S = [];
|
|
554
|
+
if (i && S.push(l[U] <= 0), s && S.push(l[g] <= 0, l[p] <= 0), S.every(function(z) {
|
|
555
|
+
return z;
|
|
556
|
+
})) {
|
|
557
|
+
E = _, j = !1;
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
C.set(_, S);
|
|
561
|
+
}
|
|
562
|
+
if (j)
|
|
563
|
+
for (var A = b ? 3 : 1, P = function(N) {
|
|
564
|
+
var G = M.find(function(J) {
|
|
565
|
+
var Y = C.get(J);
|
|
566
|
+
if (Y)
|
|
567
|
+
return Y.slice(0, N).every(function(tt) {
|
|
568
|
+
return tt;
|
|
569
|
+
});
|
|
570
|
+
});
|
|
571
|
+
if (G)
|
|
572
|
+
return E = G, "break";
|
|
573
|
+
}, L = A; L > 0; L--) {
|
|
574
|
+
var B = P(L);
|
|
575
|
+
if (B === "break") break;
|
|
576
|
+
}
|
|
577
|
+
e.placement !== E && (e.modifiersData[n]._skip = !0, e.placement = E, e.reset = !0);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
const wn = {
|
|
581
|
+
name: "flip",
|
|
582
|
+
enabled: !0,
|
|
583
|
+
phase: "main",
|
|
584
|
+
fn: xr,
|
|
585
|
+
requiresIfExists: ["offset"],
|
|
586
|
+
data: {
|
|
587
|
+
_skip: !1
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
function wr(t, e, r) {
|
|
591
|
+
var n = it(t), a = [Z, q].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, e, {
|
|
592
|
+
placement: t
|
|
593
|
+
})) : r, u = i[0], s = i[1];
|
|
594
|
+
return u = u || 0, s = (s || 0) * a, [Z, at].indexOf(n) >= 0 ? {
|
|
595
|
+
x: s,
|
|
596
|
+
y: u
|
|
597
|
+
} : {
|
|
598
|
+
x: u,
|
|
599
|
+
y: s
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
function $r(t) {
|
|
603
|
+
var e = t.state, r = t.options, n = t.name, a = r.offset, i = a === void 0 ? [0, 0] : a, u = xe.reduce(function(c, x) {
|
|
604
|
+
return c[x] = wr(x, e.rects, i), c;
|
|
605
|
+
}, {}), s = u[e.placement], o = s.x, h = s.y;
|
|
606
|
+
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y += h), e.modifiersData[n] = u;
|
|
607
|
+
}
|
|
608
|
+
const $n = {
|
|
609
|
+
name: "offset",
|
|
610
|
+
enabled: !0,
|
|
611
|
+
phase: "main",
|
|
612
|
+
requires: ["popperOffsets"],
|
|
613
|
+
fn: $r
|
|
614
|
+
};
|
|
615
|
+
function Mr(t) {
|
|
616
|
+
return t === "x" ? "y" : "x";
|
|
617
|
+
}
|
|
618
|
+
function Or(t) {
|
|
619
|
+
var e = t.state, r = t.options, n = t.name, a = r.mainAxis, i = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !1 : u, o = r.boundary, h = r.rootBoundary, c = r.altBoundary, x = r.padding, w = r.tether, v = w === void 0 ? !0 : w, b = r.tetherOffset, f = b === void 0 ? 0 : b, m = Zt(e, {
|
|
620
|
+
boundary: o,
|
|
621
|
+
rootBoundary: h,
|
|
622
|
+
padding: x,
|
|
623
|
+
altBoundary: c
|
|
624
|
+
}), T = it(e.placement), H = bt(e.placement), D = !H, M = Wt(T), O = Mr(M), R = e.modifiersData.popperOffsets, C = e.rects.reference, j = e.rects.popper, E = typeof f == "function" ? f(Object.assign({}, e.rects, {
|
|
625
|
+
placement: e.placement
|
|
626
|
+
})) : f, k = typeof E == "number" ? {
|
|
627
|
+
mainAxis: E,
|
|
628
|
+
altAxis: E
|
|
629
|
+
} : Object.assign({
|
|
630
|
+
mainAxis: 0,
|
|
631
|
+
altAxis: 0
|
|
632
|
+
}, E), _ = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, U = {
|
|
633
|
+
x: 0,
|
|
634
|
+
y: 0
|
|
635
|
+
};
|
|
636
|
+
if (R) {
|
|
637
|
+
if (i) {
|
|
638
|
+
var I, $ = M === "y" ? q : Z, d = M === "y" ? nt : at, l = M === "y" ? "height" : "width", g = R[M], p = g + m[$], S = g - m[d], A = v ? -j[l] / 2 : 0, P = H === vt ? C[l] : j[l], L = H === vt ? -j[l] : -C[l], B = e.elements.arrow, z = v && B ? Ut(B) : {
|
|
639
|
+
width: 0,
|
|
640
|
+
height: 0
|
|
641
|
+
}, N = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Me(), G = N[$], J = N[d], Y = wt(0, C[l], z[l]), tt = D ? C[l] / 2 - A - Y - G - k.mainAxis : P - Y - G - k.mainAxis, W = D ? -C[l] / 2 + A + Y + J + k.mainAxis : L + Y + J + k.mainAxis, Q = e.elements.arrow && _t(e.elements.arrow), ct = Q ? M === "y" ? Q.clientTop || 0 : Q.clientLeft || 0 : 0, lt = (I = _ == null ? void 0 : _[M]) != null ? I : 0, Te = g + tt - lt - ct, Re = g + W - lt, Xt = wt(v ? Ht(p, Te) : p, g, v ? dt(S, Re) : S);
|
|
642
|
+
R[M] = Xt, U[M] = Xt - g;
|
|
643
|
+
}
|
|
644
|
+
if (s) {
|
|
645
|
+
var Gt, He = M === "x" ? q : Z, Ce = M === "x" ? nt : at, ht = R[O], St = O === "y" ? "height" : "width", Jt = ht + m[He], Qt = ht - m[Ce], jt = [q, Z].indexOf(T) !== -1, Kt = (Gt = _ == null ? void 0 : _[O]) != null ? Gt : 0, te = jt ? Jt : ht - C[St] - j[St] - Kt + k.altAxis, ee = jt ? ht + C[St] + j[St] - Kt - k.altAxis : Qt, re = v && jt ? er(te, ht, ee) : wt(v ? te : Jt, ht, v ? ee : Qt);
|
|
646
|
+
R[O] = re, U[O] = re - ht;
|
|
647
|
+
}
|
|
648
|
+
e.modifiersData[n] = U;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
const Mn = {
|
|
652
|
+
name: "preventOverflow",
|
|
653
|
+
enabled: !0,
|
|
654
|
+
phase: "main",
|
|
655
|
+
fn: Or,
|
|
656
|
+
requiresIfExists: ["offset"]
|
|
657
|
+
};
|
|
658
|
+
function _r(t) {
|
|
659
|
+
return {
|
|
660
|
+
scrollLeft: t.scrollLeft,
|
|
661
|
+
scrollTop: t.scrollTop
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
function Sr(t) {
|
|
665
|
+
return t === X(t) || !K(t) ? Yt(t) : _r(t);
|
|
666
|
+
}
|
|
667
|
+
function Ar(t) {
|
|
668
|
+
var e = t.getBoundingClientRect(), r = gt(e.width) / t.offsetWidth || 1, n = gt(e.height) / t.offsetHeight || 1;
|
|
669
|
+
return r !== 1 || n !== 1;
|
|
670
|
+
}
|
|
671
|
+
function Dr(t, e, r) {
|
|
672
|
+
r === void 0 && (r = !1);
|
|
673
|
+
var n = K(e), a = K(e) && Ar(e), i = ft(e), u = mt(t, a, r), s = {
|
|
674
|
+
scrollLeft: 0,
|
|
675
|
+
scrollTop: 0
|
|
676
|
+
}, o = {
|
|
677
|
+
x: 0,
|
|
678
|
+
y: 0
|
|
679
|
+
};
|
|
680
|
+
return (n || !n && !r) && ((ot(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
681
|
+
qt(i)) && (s = Sr(e)), K(e) ? (o = mt(e, !0), o.x += e.clientLeft, o.y += e.clientTop) : i && (o.x = Vt(i))), {
|
|
682
|
+
x: u.left + s.scrollLeft - o.x,
|
|
683
|
+
y: u.top + s.scrollTop - o.y,
|
|
684
|
+
width: u.width,
|
|
685
|
+
height: u.height
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
function kr(t) {
|
|
689
|
+
var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
690
|
+
t.forEach(function(i) {
|
|
691
|
+
e.set(i.name, i);
|
|
692
|
+
});
|
|
693
|
+
function a(i) {
|
|
694
|
+
r.add(i.name);
|
|
695
|
+
var u = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
696
|
+
u.forEach(function(s) {
|
|
697
|
+
if (!r.has(s)) {
|
|
698
|
+
var o = e.get(s);
|
|
699
|
+
o && a(o);
|
|
700
|
+
}
|
|
701
|
+
}), n.push(i);
|
|
702
|
+
}
|
|
703
|
+
return t.forEach(function(i) {
|
|
704
|
+
r.has(i.name) || a(i);
|
|
705
|
+
}), n;
|
|
706
|
+
}
|
|
707
|
+
function Tr(t) {
|
|
708
|
+
var e = kr(t);
|
|
709
|
+
return Qe.reduce(function(r, n) {
|
|
710
|
+
return r.concat(e.filter(function(a) {
|
|
711
|
+
return a.phase === n;
|
|
712
|
+
}));
|
|
713
|
+
}, []);
|
|
714
|
+
}
|
|
715
|
+
function Rr(t) {
|
|
716
|
+
var e;
|
|
717
|
+
return function() {
|
|
718
|
+
return e || (e = new Promise(function(r) {
|
|
719
|
+
Promise.resolve().then(function() {
|
|
720
|
+
e = void 0, r(t());
|
|
721
|
+
});
|
|
722
|
+
})), e;
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
function Hr(t) {
|
|
726
|
+
var e = t.reduce(function(r, n) {
|
|
727
|
+
var a = r[n.name];
|
|
728
|
+
return r[n.name] = a ? Object.assign({}, a, n, {
|
|
729
|
+
options: Object.assign({}, a.options, n.options),
|
|
730
|
+
data: Object.assign({}, a.data, n.data)
|
|
731
|
+
}) : n, r;
|
|
732
|
+
}, {});
|
|
733
|
+
return Object.keys(e).map(function(r) {
|
|
734
|
+
return e[r];
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
var ue = {
|
|
738
|
+
placement: "bottom",
|
|
739
|
+
modifiers: [],
|
|
740
|
+
strategy: "absolute"
|
|
741
|
+
};
|
|
742
|
+
function fe() {
|
|
743
|
+
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
744
|
+
e[r] = arguments[r];
|
|
745
|
+
return !e.some(function(n) {
|
|
746
|
+
return !(n && typeof n.getBoundingClientRect == "function");
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
function On(t) {
|
|
750
|
+
t === void 0 && (t = {});
|
|
751
|
+
var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, a = e.defaultOptions, i = a === void 0 ? ue : a;
|
|
752
|
+
return function(s, o, h) {
|
|
753
|
+
h === void 0 && (h = i);
|
|
754
|
+
var c = {
|
|
755
|
+
placement: "bottom",
|
|
756
|
+
orderedModifiers: [],
|
|
757
|
+
options: Object.assign({}, ue, i),
|
|
758
|
+
modifiersData: {},
|
|
759
|
+
elements: {
|
|
760
|
+
reference: s,
|
|
761
|
+
popper: o
|
|
762
|
+
},
|
|
763
|
+
attributes: {},
|
|
764
|
+
styles: {}
|
|
765
|
+
}, x = [], w = !1, v = {
|
|
766
|
+
state: c,
|
|
767
|
+
setOptions: function(T) {
|
|
768
|
+
var H = typeof T == "function" ? T(c.options) : T;
|
|
769
|
+
f(), c.options = Object.assign({}, i, c.options, H), c.scrollParents = {
|
|
770
|
+
reference: pt(s) ? $t(s) : s.contextElement ? $t(s.contextElement) : [],
|
|
771
|
+
popper: $t(o)
|
|
772
|
+
};
|
|
773
|
+
var D = Tr(Hr([].concat(n, c.options.modifiers)));
|
|
774
|
+
return c.orderedModifiers = D.filter(function(M) {
|
|
775
|
+
return M.enabled;
|
|
776
|
+
}), b(), v.update();
|
|
777
|
+
},
|
|
778
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
779
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
780
|
+
// logic.
|
|
781
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
782
|
+
// prefer the async Popper#update method
|
|
783
|
+
forceUpdate: function() {
|
|
784
|
+
if (!w) {
|
|
785
|
+
var T = c.elements, H = T.reference, D = T.popper;
|
|
786
|
+
if (fe(H, D)) {
|
|
787
|
+
c.rects = {
|
|
788
|
+
reference: Dr(H, _t(D), c.options.strategy === "fixed"),
|
|
789
|
+
popper: Ut(D)
|
|
790
|
+
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(k) {
|
|
791
|
+
return c.modifiersData[k.name] = Object.assign({}, k.data);
|
|
792
|
+
});
|
|
793
|
+
for (var M = 0; M < c.orderedModifiers.length; M++) {
|
|
794
|
+
if (c.reset === !0) {
|
|
795
|
+
c.reset = !1, M = -1;
|
|
796
|
+
continue;
|
|
797
|
+
}
|
|
798
|
+
var O = c.orderedModifiers[M], R = O.fn, C = O.options, j = C === void 0 ? {} : C, E = O.name;
|
|
799
|
+
typeof R == "function" && (c = R({
|
|
800
|
+
state: c,
|
|
801
|
+
options: j,
|
|
802
|
+
name: E,
|
|
803
|
+
instance: v
|
|
804
|
+
}) || c);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
810
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
811
|
+
update: Rr(function() {
|
|
812
|
+
return new Promise(function(m) {
|
|
813
|
+
v.forceUpdate(), m(c);
|
|
814
|
+
});
|
|
815
|
+
}),
|
|
816
|
+
destroy: function() {
|
|
817
|
+
f(), w = !0;
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
if (!fe(s, o))
|
|
821
|
+
return v;
|
|
822
|
+
v.setOptions(h).then(function(m) {
|
|
823
|
+
!w && h.onFirstUpdate && h.onFirstUpdate(m);
|
|
824
|
+
});
|
|
825
|
+
function b() {
|
|
826
|
+
c.orderedModifiers.forEach(function(m) {
|
|
827
|
+
var T = m.name, H = m.options, D = H === void 0 ? {} : H, M = m.effect;
|
|
828
|
+
if (typeof M == "function") {
|
|
829
|
+
var O = M({
|
|
830
|
+
state: c,
|
|
831
|
+
name: T,
|
|
832
|
+
instance: v,
|
|
833
|
+
options: D
|
|
834
|
+
}), R = function() {
|
|
835
|
+
};
|
|
836
|
+
x.push(O || R);
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
function f() {
|
|
841
|
+
x.forEach(function(m) {
|
|
842
|
+
return m();
|
|
843
|
+
}), x = [];
|
|
844
|
+
}
|
|
845
|
+
return v;
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
function Cr(t) {
|
|
849
|
+
var e = t.state, r = t.name;
|
|
850
|
+
e.modifiersData[r] = Ae({
|
|
851
|
+
reference: e.rects.reference,
|
|
852
|
+
element: e.rects.popper,
|
|
853
|
+
placement: e.placement
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
const Er = {
|
|
857
|
+
name: "popperOffsets",
|
|
858
|
+
enabled: !0,
|
|
859
|
+
phase: "read",
|
|
860
|
+
fn: Cr,
|
|
861
|
+
data: {}
|
|
862
|
+
};
|
|
863
|
+
function Pr(t) {
|
|
864
|
+
var e = t.state;
|
|
865
|
+
Object.keys(e.elements).forEach(function(r) {
|
|
866
|
+
var n = e.styles[r] || {}, a = e.attributes[r] || {}, i = e.elements[r];
|
|
867
|
+
!K(i) || !ot(i) || (Object.assign(i.style, n), Object.keys(a).forEach(function(u) {
|
|
868
|
+
var s = a[u];
|
|
869
|
+
s === !1 ? i.removeAttribute(u) : i.setAttribute(u, s === !0 ? "" : s);
|
|
870
|
+
}));
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
function jr(t) {
|
|
874
|
+
var e = t.state, r = {
|
|
875
|
+
popper: {
|
|
876
|
+
position: e.options.strategy,
|
|
877
|
+
left: "0",
|
|
878
|
+
top: "0",
|
|
879
|
+
margin: "0"
|
|
880
|
+
},
|
|
881
|
+
arrow: {
|
|
882
|
+
position: "absolute"
|
|
883
|
+
},
|
|
884
|
+
reference: {}
|
|
885
|
+
};
|
|
886
|
+
return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
|
|
887
|
+
Object.keys(e.elements).forEach(function(n) {
|
|
888
|
+
var a = e.elements[n], i = e.attributes[n] || {}, u = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), s = u.reduce(function(o, h) {
|
|
889
|
+
return o[h] = "", o;
|
|
890
|
+
}, {});
|
|
891
|
+
!K(a) || !ot(a) || (Object.assign(a.style, s), Object.keys(i).forEach(function(o) {
|
|
892
|
+
a.removeAttribute(o);
|
|
893
|
+
}));
|
|
894
|
+
});
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
const Lr = {
|
|
898
|
+
name: "applyStyles",
|
|
899
|
+
enabled: !0,
|
|
900
|
+
phase: "write",
|
|
901
|
+
fn: Pr,
|
|
902
|
+
effect: jr,
|
|
903
|
+
requires: ["computeStyles"]
|
|
904
|
+
};
|
|
905
|
+
var _n = [cr, Er, ur, Lr];
|
|
906
|
+
function Ct(t) {
|
|
907
|
+
"@babel/helpers - typeof";
|
|
908
|
+
return Ct = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
909
|
+
return typeof e;
|
|
910
|
+
} : function(e) {
|
|
911
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
912
|
+
}, Ct(t);
|
|
913
|
+
}
|
|
914
|
+
var Fr = /^\s+/, Br = /\s+$/;
|
|
915
|
+
function y(t, e) {
|
|
916
|
+
if (t = t || "", e = e || {}, t instanceof y)
|
|
917
|
+
return t;
|
|
918
|
+
if (!(this instanceof y))
|
|
919
|
+
return new y(t, e);
|
|
920
|
+
var r = zr(t);
|
|
921
|
+
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;
|
|
922
|
+
}
|
|
923
|
+
y.prototype = {
|
|
924
|
+
isDark: function() {
|
|
925
|
+
return this.getBrightness() < 128;
|
|
926
|
+
},
|
|
927
|
+
isLight: function() {
|
|
928
|
+
return !this.isDark();
|
|
929
|
+
},
|
|
930
|
+
isValid: function() {
|
|
931
|
+
return this._ok;
|
|
932
|
+
},
|
|
933
|
+
getOriginalInput: function() {
|
|
934
|
+
return this._originalInput;
|
|
935
|
+
},
|
|
936
|
+
getFormat: function() {
|
|
937
|
+
return this._format;
|
|
938
|
+
},
|
|
939
|
+
getAlpha: function() {
|
|
940
|
+
return this._a;
|
|
941
|
+
},
|
|
942
|
+
getBrightness: function() {
|
|
943
|
+
var e = this.toRgb();
|
|
944
|
+
return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3;
|
|
945
|
+
},
|
|
946
|
+
getLuminance: function() {
|
|
947
|
+
var e = this.toRgb(), r, n, a, i, u, s;
|
|
948
|
+
return r = e.r / 255, n = e.g / 255, a = e.b / 255, r <= 0.03928 ? i = r / 12.92 : i = Math.pow((r + 0.055) / 1.055, 2.4), n <= 0.03928 ? u = n / 12.92 : u = Math.pow((n + 0.055) / 1.055, 2.4), a <= 0.03928 ? s = a / 12.92 : s = Math.pow((a + 0.055) / 1.055, 2.4), 0.2126 * i + 0.7152 * u + 0.0722 * s;
|
|
949
|
+
},
|
|
950
|
+
setAlpha: function(e) {
|
|
951
|
+
return this._a = De(e), this._roundA = Math.round(100 * this._a) / 100, this;
|
|
952
|
+
},
|
|
953
|
+
toHsv: function() {
|
|
954
|
+
var e = le(this._r, this._g, this._b);
|
|
955
|
+
return {
|
|
956
|
+
h: e.h * 360,
|
|
957
|
+
s: e.s,
|
|
958
|
+
v: e.v,
|
|
959
|
+
a: this._a
|
|
960
|
+
};
|
|
961
|
+
},
|
|
962
|
+
toHsvString: function() {
|
|
963
|
+
var e = le(this._r, this._g, this._b), r = Math.round(e.h * 360), n = Math.round(e.s * 100), a = Math.round(e.v * 100);
|
|
964
|
+
return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + a + "%)" : "hsva(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
|
|
965
|
+
},
|
|
966
|
+
toHsl: function() {
|
|
967
|
+
var e = ce(this._r, this._g, this._b);
|
|
968
|
+
return {
|
|
969
|
+
h: e.h * 360,
|
|
970
|
+
s: e.s,
|
|
971
|
+
l: e.l,
|
|
972
|
+
a: this._a
|
|
973
|
+
};
|
|
974
|
+
},
|
|
975
|
+
toHslString: function() {
|
|
976
|
+
var e = ce(this._r, this._g, this._b), r = Math.round(e.h * 360), n = Math.round(e.s * 100), a = Math.round(e.l * 100);
|
|
977
|
+
return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + a + "%)" : "hsla(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
|
|
978
|
+
},
|
|
979
|
+
toHex: function(e) {
|
|
980
|
+
return he(this._r, this._g, this._b, e);
|
|
981
|
+
},
|
|
982
|
+
toHexString: function(e) {
|
|
983
|
+
return "#" + this.toHex(e);
|
|
984
|
+
},
|
|
985
|
+
toHex8: function(e) {
|
|
986
|
+
return Wr(this._r, this._g, this._b, this._a, e);
|
|
987
|
+
},
|
|
988
|
+
toHex8String: function(e) {
|
|
989
|
+
return "#" + this.toHex8(e);
|
|
990
|
+
},
|
|
991
|
+
toRgb: function() {
|
|
992
|
+
return {
|
|
993
|
+
r: Math.round(this._r),
|
|
994
|
+
g: Math.round(this._g),
|
|
995
|
+
b: Math.round(this._b),
|
|
996
|
+
a: this._a
|
|
997
|
+
};
|
|
998
|
+
},
|
|
999
|
+
toRgbString: function() {
|
|
1000
|
+
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 + ")";
|
|
1001
|
+
},
|
|
1002
|
+
toPercentageRgb: function() {
|
|
1003
|
+
return {
|
|
1004
|
+
r: Math.round(F(this._r, 255) * 100) + "%",
|
|
1005
|
+
g: Math.round(F(this._g, 255) * 100) + "%",
|
|
1006
|
+
b: Math.round(F(this._b, 255) * 100) + "%",
|
|
1007
|
+
a: this._a
|
|
1008
|
+
};
|
|
1009
|
+
},
|
|
1010
|
+
toPercentageRgbString: function() {
|
|
1011
|
+
return this._a == 1 ? "rgb(" + Math.round(F(this._r, 255) * 100) + "%, " + Math.round(F(this._g, 255) * 100) + "%, " + Math.round(F(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(F(this._r, 255) * 100) + "%, " + Math.round(F(this._g, 255) * 100) + "%, " + Math.round(F(this._b, 255) * 100) + "%, " + this._roundA + ")";
|
|
1012
|
+
},
|
|
1013
|
+
toName: function() {
|
|
1014
|
+
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : rn[he(this._r, this._g, this._b, !0)] || !1;
|
|
1015
|
+
},
|
|
1016
|
+
toFilter: function(e) {
|
|
1017
|
+
var r = "#" + de(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
|
|
1018
|
+
if (e) {
|
|
1019
|
+
var i = y(e);
|
|
1020
|
+
n = "#" + de(i._r, i._g, i._b, i._a);
|
|
1021
|
+
}
|
|
1022
|
+
return "progid:DXImageTransform.Microsoft.gradient(" + a + "startColorstr=" + r + ",endColorstr=" + n + ")";
|
|
1023
|
+
},
|
|
1024
|
+
toString: function(e) {
|
|
1025
|
+
var r = !!e;
|
|
1026
|
+
e = e || this._format;
|
|
1027
|
+
var n = !1, a = this._a < 1 && this._a >= 0, i = !r && a && (e === "hex" || e === "hex6" || e === "hex3" || e === "hex4" || e === "hex8" || e === "name");
|
|
1028
|
+
return i ? e === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (e === "rgb" && (n = this.toRgbString()), e === "prgb" && (n = this.toPercentageRgbString()), (e === "hex" || e === "hex6") && (n = this.toHexString()), e === "hex3" && (n = this.toHexString(!0)), e === "hex4" && (n = this.toHex8String(!0)), e === "hex8" && (n = this.toHex8String()), e === "name" && (n = this.toName()), e === "hsl" && (n = this.toHslString()), e === "hsv" && (n = this.toHsvString()), n || this.toHexString());
|
|
1029
|
+
},
|
|
1030
|
+
clone: function() {
|
|
1031
|
+
return y(this.toString());
|
|
1032
|
+
},
|
|
1033
|
+
_applyModification: function(e, r) {
|
|
1034
|
+
var n = e.apply(null, [this].concat([].slice.call(r)));
|
|
1035
|
+
return this._r = n._r, this._g = n._g, this._b = n._b, this.setAlpha(n._a), this;
|
|
1036
|
+
},
|
|
1037
|
+
lighten: function() {
|
|
1038
|
+
return this._applyModification(Zr, arguments);
|
|
1039
|
+
},
|
|
1040
|
+
brighten: function() {
|
|
1041
|
+
return this._applyModification(Xr, arguments);
|
|
1042
|
+
},
|
|
1043
|
+
darken: function() {
|
|
1044
|
+
return this._applyModification(Gr, arguments);
|
|
1045
|
+
},
|
|
1046
|
+
desaturate: function() {
|
|
1047
|
+
return this._applyModification(Yr, arguments);
|
|
1048
|
+
},
|
|
1049
|
+
saturate: function() {
|
|
1050
|
+
return this._applyModification(Vr, arguments);
|
|
1051
|
+
},
|
|
1052
|
+
greyscale: function() {
|
|
1053
|
+
return this._applyModification(qr, arguments);
|
|
1054
|
+
},
|
|
1055
|
+
spin: function() {
|
|
1056
|
+
return this._applyModification(Jr, arguments);
|
|
1057
|
+
},
|
|
1058
|
+
_applyCombination: function(e, r) {
|
|
1059
|
+
return e.apply(null, [this].concat([].slice.call(r)));
|
|
1060
|
+
},
|
|
1061
|
+
analogous: function() {
|
|
1062
|
+
return this._applyCombination(tn, arguments);
|
|
1063
|
+
},
|
|
1064
|
+
complement: function() {
|
|
1065
|
+
return this._applyCombination(Qr, arguments);
|
|
1066
|
+
},
|
|
1067
|
+
monochromatic: function() {
|
|
1068
|
+
return this._applyCombination(en, arguments);
|
|
1069
|
+
},
|
|
1070
|
+
splitcomplement: function() {
|
|
1071
|
+
return this._applyCombination(Kr, arguments);
|
|
1072
|
+
},
|
|
1073
|
+
// Disabled until https://github.com/bgrins/TinyColor/issues/254
|
|
1074
|
+
// polyad: function (number) {
|
|
1075
|
+
// return this._applyCombination(polyad, [number]);
|
|
1076
|
+
// },
|
|
1077
|
+
triad: function() {
|
|
1078
|
+
return this._applyCombination(pe, [3]);
|
|
1079
|
+
},
|
|
1080
|
+
tetrad: function() {
|
|
1081
|
+
return this._applyCombination(pe, [4]);
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
y.fromRatio = function(t, e) {
|
|
1085
|
+
if (Ct(t) == "object") {
|
|
1086
|
+
var r = {};
|
|
1087
|
+
for (var n in t)
|
|
1088
|
+
t.hasOwnProperty(n) && (n === "a" ? r[n] = t[n] : r[n] = xt(t[n]));
|
|
1089
|
+
t = r;
|
|
1090
|
+
}
|
|
1091
|
+
return y(t, e);
|
|
1092
|
+
};
|
|
1093
|
+
function zr(t) {
|
|
1094
|
+
var e = {
|
|
1095
|
+
r: 0,
|
|
1096
|
+
g: 0,
|
|
1097
|
+
b: 0
|
|
1098
|
+
}, r = 1, n = null, a = null, i = null, u = !1, s = !1;
|
|
1099
|
+
return typeof t == "string" && (t = sn(t)), Ct(t) == "object" && (st(t.r) && st(t.g) && st(t.b) ? (e = Nr(t.r, t.g, t.b), u = !0, s = String(t.r).substr(-1) === "%" ? "prgb" : "rgb") : st(t.h) && st(t.s) && st(t.v) ? (n = xt(t.s), a = xt(t.v), e = Ur(t.h, n, a), u = !0, s = "hsv") : st(t.h) && st(t.s) && st(t.l) && (n = xt(t.s), i = xt(t.l), e = Ir(t.h, n, i), u = !0, s = "hsl"), t.hasOwnProperty("a") && (r = t.a)), r = De(r), {
|
|
1100
|
+
ok: u,
|
|
1101
|
+
format: t.format || s,
|
|
1102
|
+
r: Math.min(255, Math.max(e.r, 0)),
|
|
1103
|
+
g: Math.min(255, Math.max(e.g, 0)),
|
|
1104
|
+
b: Math.min(255, Math.max(e.b, 0)),
|
|
1105
|
+
a: r
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
function Nr(t, e, r) {
|
|
1109
|
+
return {
|
|
1110
|
+
r: F(t, 255) * 255,
|
|
1111
|
+
g: F(e, 255) * 255,
|
|
1112
|
+
b: F(r, 255) * 255
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
function ce(t, e, r) {
|
|
1116
|
+
t = F(t, 255), e = F(e, 255), r = F(r, 255);
|
|
1117
|
+
var n = Math.max(t, e, r), a = Math.min(t, e, r), i, u, s = (n + a) / 2;
|
|
1118
|
+
if (n == a)
|
|
1119
|
+
i = u = 0;
|
|
1120
|
+
else {
|
|
1121
|
+
var o = n - a;
|
|
1122
|
+
switch (u = s > 0.5 ? o / (2 - n - a) : o / (n + a), n) {
|
|
1123
|
+
case t:
|
|
1124
|
+
i = (e - r) / o + (e < r ? 6 : 0);
|
|
1125
|
+
break;
|
|
1126
|
+
case e:
|
|
1127
|
+
i = (r - t) / o + 2;
|
|
1128
|
+
break;
|
|
1129
|
+
case r:
|
|
1130
|
+
i = (t - e) / o + 4;
|
|
1131
|
+
break;
|
|
1132
|
+
}
|
|
1133
|
+
i /= 6;
|
|
1134
|
+
}
|
|
1135
|
+
return {
|
|
1136
|
+
h: i,
|
|
1137
|
+
s: u,
|
|
1138
|
+
l: s
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
function Ir(t, e, r) {
|
|
1142
|
+
var n, a, i;
|
|
1143
|
+
t = F(t, 360), e = F(e, 100), r = F(r, 100);
|
|
1144
|
+
function u(h, c, x) {
|
|
1145
|
+
return x < 0 && (x += 1), x > 1 && (x -= 1), x < 1 / 6 ? h + (c - h) * 6 * x : x < 1 / 2 ? c : x < 2 / 3 ? h + (c - h) * (2 / 3 - x) * 6 : h;
|
|
1146
|
+
}
|
|
1147
|
+
if (e === 0)
|
|
1148
|
+
n = a = i = r;
|
|
1149
|
+
else {
|
|
1150
|
+
var s = r < 0.5 ? r * (1 + e) : r + e - r * e, o = 2 * r - s;
|
|
1151
|
+
n = u(o, s, t + 1 / 3), a = u(o, s, t), i = u(o, s, t - 1 / 3);
|
|
1152
|
+
}
|
|
1153
|
+
return {
|
|
1154
|
+
r: n * 255,
|
|
1155
|
+
g: a * 255,
|
|
1156
|
+
b: i * 255
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
function le(t, e, r) {
|
|
1160
|
+
t = F(t, 255), e = F(e, 255), r = F(r, 255);
|
|
1161
|
+
var n = Math.max(t, e, r), a = Math.min(t, e, r), i, u, s = n, o = n - a;
|
|
1162
|
+
if (u = n === 0 ? 0 : o / n, n == a)
|
|
1163
|
+
i = 0;
|
|
1164
|
+
else {
|
|
1165
|
+
switch (n) {
|
|
1166
|
+
case t:
|
|
1167
|
+
i = (e - r) / o + (e < r ? 6 : 0);
|
|
1168
|
+
break;
|
|
1169
|
+
case e:
|
|
1170
|
+
i = (r - t) / o + 2;
|
|
1171
|
+
break;
|
|
1172
|
+
case r:
|
|
1173
|
+
i = (t - e) / o + 4;
|
|
1174
|
+
break;
|
|
1175
|
+
}
|
|
1176
|
+
i /= 6;
|
|
1177
|
+
}
|
|
1178
|
+
return {
|
|
1179
|
+
h: i,
|
|
1180
|
+
s: u,
|
|
1181
|
+
v: s
|
|
1182
|
+
};
|
|
1183
|
+
}
|
|
1184
|
+
function Ur(t, e, r) {
|
|
1185
|
+
t = F(t, 360) * 6, e = F(e, 100), r = F(r, 100);
|
|
1186
|
+
var n = Math.floor(t), a = t - n, i = r * (1 - e), u = r * (1 - a * e), s = r * (1 - (1 - a) * e), o = n % 6, h = [r, u, i, i, s, r][o], c = [s, r, r, u, i, i][o], x = [i, i, s, r, r, u][o];
|
|
1187
|
+
return {
|
|
1188
|
+
r: h * 255,
|
|
1189
|
+
g: c * 255,
|
|
1190
|
+
b: x * 255
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
function he(t, e, r, n) {
|
|
1194
|
+
var a = [rt(Math.round(t).toString(16)), rt(Math.round(e).toString(16)), rt(Math.round(r).toString(16))];
|
|
1195
|
+
return n && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
|
|
1196
|
+
}
|
|
1197
|
+
function Wr(t, e, r, n, a) {
|
|
1198
|
+
var i = [rt(Math.round(t).toString(16)), rt(Math.round(e).toString(16)), rt(Math.round(r).toString(16)), rt(ke(n))];
|
|
1199
|
+
return a && 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("");
|
|
1200
|
+
}
|
|
1201
|
+
function de(t, e, r, n) {
|
|
1202
|
+
var a = [rt(ke(n)), rt(Math.round(t).toString(16)), rt(Math.round(e).toString(16)), rt(Math.round(r).toString(16))];
|
|
1203
|
+
return a.join("");
|
|
1204
|
+
}
|
|
1205
|
+
y.equals = function(t, e) {
|
|
1206
|
+
return !t || !e ? !1 : y(t).toRgbString() == y(e).toRgbString();
|
|
1207
|
+
};
|
|
1208
|
+
y.random = function() {
|
|
1209
|
+
return y.fromRatio({
|
|
1210
|
+
r: Math.random(),
|
|
1211
|
+
g: Math.random(),
|
|
1212
|
+
b: Math.random()
|
|
1213
|
+
});
|
|
1214
|
+
};
|
|
1215
|
+
function Yr(t, e) {
|
|
1216
|
+
e = e === 0 ? 0 : e || 10;
|
|
1217
|
+
var r = y(t).toHsl();
|
|
1218
|
+
return r.s -= e / 100, r.s = Pt(r.s), y(r);
|
|
1219
|
+
}
|
|
1220
|
+
function Vr(t, e) {
|
|
1221
|
+
e = e === 0 ? 0 : e || 10;
|
|
1222
|
+
var r = y(t).toHsl();
|
|
1223
|
+
return r.s += e / 100, r.s = Pt(r.s), y(r);
|
|
1224
|
+
}
|
|
1225
|
+
function qr(t) {
|
|
1226
|
+
return y(t).desaturate(100);
|
|
1227
|
+
}
|
|
1228
|
+
function Zr(t, e) {
|
|
1229
|
+
e = e === 0 ? 0 : e || 10;
|
|
1230
|
+
var r = y(t).toHsl();
|
|
1231
|
+
return r.l += e / 100, r.l = Pt(r.l), y(r);
|
|
1232
|
+
}
|
|
1233
|
+
function Xr(t, e) {
|
|
1234
|
+
e = e === 0 ? 0 : e || 10;
|
|
1235
|
+
var r = y(t).toRgb();
|
|
1236
|
+
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)))), y(r);
|
|
1237
|
+
}
|
|
1238
|
+
function Gr(t, e) {
|
|
1239
|
+
e = e === 0 ? 0 : e || 10;
|
|
1240
|
+
var r = y(t).toHsl();
|
|
1241
|
+
return r.l -= e / 100, r.l = Pt(r.l), y(r);
|
|
1242
|
+
}
|
|
1243
|
+
function Jr(t, e) {
|
|
1244
|
+
var r = y(t).toHsl(), n = (r.h + e) % 360;
|
|
1245
|
+
return r.h = n < 0 ? 360 + n : n, y(r);
|
|
1246
|
+
}
|
|
1247
|
+
function Qr(t) {
|
|
1248
|
+
var e = y(t).toHsl();
|
|
1249
|
+
return e.h = (e.h + 180) % 360, y(e);
|
|
1250
|
+
}
|
|
1251
|
+
function pe(t, e) {
|
|
1252
|
+
if (isNaN(e) || e <= 0)
|
|
1253
|
+
throw new Error("Argument to polyad must be a positive number");
|
|
1254
|
+
for (var r = y(t).toHsl(), n = [y(t)], a = 360 / e, i = 1; i < e; i++)
|
|
1255
|
+
n.push(y({
|
|
1256
|
+
h: (r.h + i * a) % 360,
|
|
1257
|
+
s: r.s,
|
|
1258
|
+
l: r.l
|
|
1259
|
+
}));
|
|
1260
|
+
return n;
|
|
1261
|
+
}
|
|
1262
|
+
function Kr(t) {
|
|
1263
|
+
var e = y(t).toHsl(), r = e.h;
|
|
1264
|
+
return [y(t), y({
|
|
1265
|
+
h: (r + 72) % 360,
|
|
1266
|
+
s: e.s,
|
|
1267
|
+
l: e.l
|
|
1268
|
+
}), y({
|
|
1269
|
+
h: (r + 216) % 360,
|
|
1270
|
+
s: e.s,
|
|
1271
|
+
l: e.l
|
|
1272
|
+
})];
|
|
1273
|
+
}
|
|
1274
|
+
function tn(t, e, r) {
|
|
1275
|
+
e = e || 6, r = r || 30;
|
|
1276
|
+
var n = y(t).toHsl(), a = 360 / r, i = [y(t)];
|
|
1277
|
+
for (n.h = (n.h - (a * e >> 1) + 720) % 360; --e; )
|
|
1278
|
+
n.h = (n.h + a) % 360, i.push(y(n));
|
|
1279
|
+
return i;
|
|
1280
|
+
}
|
|
1281
|
+
function en(t, e) {
|
|
1282
|
+
e = e || 6;
|
|
1283
|
+
for (var r = y(t).toHsv(), n = r.h, a = r.s, i = r.v, u = [], s = 1 / e; e--; )
|
|
1284
|
+
u.push(y({
|
|
1285
|
+
h: n,
|
|
1286
|
+
s: a,
|
|
1287
|
+
v: i
|
|
1288
|
+
})), i = (i + s) % 1;
|
|
1289
|
+
return u;
|
|
1290
|
+
}
|
|
1291
|
+
y.mix = function(t, e, r) {
|
|
1292
|
+
r = r === 0 ? 0 : r || 50;
|
|
1293
|
+
var n = y(t).toRgb(), a = y(e).toRgb(), i = r / 100, u = {
|
|
1294
|
+
r: (a.r - n.r) * i + n.r,
|
|
1295
|
+
g: (a.g - n.g) * i + n.g,
|
|
1296
|
+
b: (a.b - n.b) * i + n.b,
|
|
1297
|
+
a: (a.a - n.a) * i + n.a
|
|
1298
|
+
};
|
|
1299
|
+
return y(u);
|
|
1300
|
+
};
|
|
1301
|
+
y.readability = function(t, e) {
|
|
1302
|
+
var r = y(t), n = y(e);
|
|
1303
|
+
return (Math.max(r.getLuminance(), n.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), n.getLuminance()) + 0.05);
|
|
1304
|
+
};
|
|
1305
|
+
y.isReadable = function(t, e, r) {
|
|
1306
|
+
var n = y.readability(t, e), a, i;
|
|
1307
|
+
switch (i = !1, a = un(r), a.level + a.size) {
|
|
1308
|
+
case "AAsmall":
|
|
1309
|
+
case "AAAlarge":
|
|
1310
|
+
i = n >= 4.5;
|
|
1311
|
+
break;
|
|
1312
|
+
case "AAlarge":
|
|
1313
|
+
i = n >= 3;
|
|
1314
|
+
break;
|
|
1315
|
+
case "AAAsmall":
|
|
1316
|
+
i = n >= 7;
|
|
1317
|
+
break;
|
|
1318
|
+
}
|
|
1319
|
+
return i;
|
|
1320
|
+
};
|
|
1321
|
+
y.mostReadable = function(t, e, r) {
|
|
1322
|
+
var n = null, a = 0, i, u, s, o;
|
|
1323
|
+
r = r || {}, u = r.includeFallbackColors, s = r.level, o = r.size;
|
|
1324
|
+
for (var h = 0; h < e.length; h++)
|
|
1325
|
+
i = y.readability(t, e[h]), i > a && (a = i, n = y(e[h]));
|
|
1326
|
+
return y.isReadable(t, n, {
|
|
1327
|
+
level: s,
|
|
1328
|
+
size: o
|
|
1329
|
+
}) || !u ? n : (r.includeFallbackColors = !1, y.mostReadable(t, ["#fff", "#000"], r));
|
|
1330
|
+
};
|
|
1331
|
+
var Bt = y.names = {
|
|
1332
|
+
aliceblue: "f0f8ff",
|
|
1333
|
+
antiquewhite: "faebd7",
|
|
1334
|
+
aqua: "0ff",
|
|
1335
|
+
aquamarine: "7fffd4",
|
|
1336
|
+
azure: "f0ffff",
|
|
1337
|
+
beige: "f5f5dc",
|
|
1338
|
+
bisque: "ffe4c4",
|
|
1339
|
+
black: "000",
|
|
1340
|
+
blanchedalmond: "ffebcd",
|
|
1341
|
+
blue: "00f",
|
|
1342
|
+
blueviolet: "8a2be2",
|
|
1343
|
+
brown: "a52a2a",
|
|
1344
|
+
burlywood: "deb887",
|
|
1345
|
+
burntsienna: "ea7e5d",
|
|
1346
|
+
cadetblue: "5f9ea0",
|
|
1347
|
+
chartreuse: "7fff00",
|
|
1348
|
+
chocolate: "d2691e",
|
|
1349
|
+
coral: "ff7f50",
|
|
1350
|
+
cornflowerblue: "6495ed",
|
|
1351
|
+
cornsilk: "fff8dc",
|
|
1352
|
+
crimson: "dc143c",
|
|
1353
|
+
cyan: "0ff",
|
|
1354
|
+
darkblue: "00008b",
|
|
1355
|
+
darkcyan: "008b8b",
|
|
1356
|
+
darkgoldenrod: "b8860b",
|
|
1357
|
+
darkgray: "a9a9a9",
|
|
1358
|
+
darkgreen: "006400",
|
|
1359
|
+
darkgrey: "a9a9a9",
|
|
1360
|
+
darkkhaki: "bdb76b",
|
|
1361
|
+
darkmagenta: "8b008b",
|
|
1362
|
+
darkolivegreen: "556b2f",
|
|
1363
|
+
darkorange: "ff8c00",
|
|
1364
|
+
darkorchid: "9932cc",
|
|
1365
|
+
darkred: "8b0000",
|
|
1366
|
+
darksalmon: "e9967a",
|
|
1367
|
+
darkseagreen: "8fbc8f",
|
|
1368
|
+
darkslateblue: "483d8b",
|
|
1369
|
+
darkslategray: "2f4f4f",
|
|
1370
|
+
darkslategrey: "2f4f4f",
|
|
1371
|
+
darkturquoise: "00ced1",
|
|
1372
|
+
darkviolet: "9400d3",
|
|
1373
|
+
deeppink: "ff1493",
|
|
1374
|
+
deepskyblue: "00bfff",
|
|
1375
|
+
dimgray: "696969",
|
|
1376
|
+
dimgrey: "696969",
|
|
1377
|
+
dodgerblue: "1e90ff",
|
|
1378
|
+
firebrick: "b22222",
|
|
1379
|
+
floralwhite: "fffaf0",
|
|
1380
|
+
forestgreen: "228b22",
|
|
1381
|
+
fuchsia: "f0f",
|
|
1382
|
+
gainsboro: "dcdcdc",
|
|
1383
|
+
ghostwhite: "f8f8ff",
|
|
1384
|
+
gold: "ffd700",
|
|
1385
|
+
goldenrod: "daa520",
|
|
1386
|
+
gray: "808080",
|
|
1387
|
+
green: "008000",
|
|
1388
|
+
greenyellow: "adff2f",
|
|
1389
|
+
grey: "808080",
|
|
1390
|
+
honeydew: "f0fff0",
|
|
1391
|
+
hotpink: "ff69b4",
|
|
1392
|
+
indianred: "cd5c5c",
|
|
1393
|
+
indigo: "4b0082",
|
|
1394
|
+
ivory: "fffff0",
|
|
1395
|
+
khaki: "f0e68c",
|
|
1396
|
+
lavender: "e6e6fa",
|
|
1397
|
+
lavenderblush: "fff0f5",
|
|
1398
|
+
lawngreen: "7cfc00",
|
|
1399
|
+
lemonchiffon: "fffacd",
|
|
1400
|
+
lightblue: "add8e6",
|
|
1401
|
+
lightcoral: "f08080",
|
|
1402
|
+
lightcyan: "e0ffff",
|
|
1403
|
+
lightgoldenrodyellow: "fafad2",
|
|
1404
|
+
lightgray: "d3d3d3",
|
|
1405
|
+
lightgreen: "90ee90",
|
|
1406
|
+
lightgrey: "d3d3d3",
|
|
1407
|
+
lightpink: "ffb6c1",
|
|
1408
|
+
lightsalmon: "ffa07a",
|
|
1409
|
+
lightseagreen: "20b2aa",
|
|
1410
|
+
lightskyblue: "87cefa",
|
|
1411
|
+
lightslategray: "789",
|
|
1412
|
+
lightslategrey: "789",
|
|
1413
|
+
lightsteelblue: "b0c4de",
|
|
1414
|
+
lightyellow: "ffffe0",
|
|
1415
|
+
lime: "0f0",
|
|
1416
|
+
limegreen: "32cd32",
|
|
1417
|
+
linen: "faf0e6",
|
|
1418
|
+
magenta: "f0f",
|
|
1419
|
+
maroon: "800000",
|
|
1420
|
+
mediumaquamarine: "66cdaa",
|
|
1421
|
+
mediumblue: "0000cd",
|
|
1422
|
+
mediumorchid: "ba55d3",
|
|
1423
|
+
mediumpurple: "9370db",
|
|
1424
|
+
mediumseagreen: "3cb371",
|
|
1425
|
+
mediumslateblue: "7b68ee",
|
|
1426
|
+
mediumspringgreen: "00fa9a",
|
|
1427
|
+
mediumturquoise: "48d1cc",
|
|
1428
|
+
mediumvioletred: "c71585",
|
|
1429
|
+
midnightblue: "191970",
|
|
1430
|
+
mintcream: "f5fffa",
|
|
1431
|
+
mistyrose: "ffe4e1",
|
|
1432
|
+
moccasin: "ffe4b5",
|
|
1433
|
+
navajowhite: "ffdead",
|
|
1434
|
+
navy: "000080",
|
|
1435
|
+
oldlace: "fdf5e6",
|
|
1436
|
+
olive: "808000",
|
|
1437
|
+
olivedrab: "6b8e23",
|
|
1438
|
+
orange: "ffa500",
|
|
1439
|
+
orangered: "ff4500",
|
|
1440
|
+
orchid: "da70d6",
|
|
1441
|
+
palegoldenrod: "eee8aa",
|
|
1442
|
+
palegreen: "98fb98",
|
|
1443
|
+
paleturquoise: "afeeee",
|
|
1444
|
+
palevioletred: "db7093",
|
|
1445
|
+
papayawhip: "ffefd5",
|
|
1446
|
+
peachpuff: "ffdab9",
|
|
1447
|
+
peru: "cd853f",
|
|
1448
|
+
pink: "ffc0cb",
|
|
1449
|
+
plum: "dda0dd",
|
|
1450
|
+
powderblue: "b0e0e6",
|
|
1451
|
+
purple: "800080",
|
|
1452
|
+
rebeccapurple: "663399",
|
|
1453
|
+
red: "f00",
|
|
1454
|
+
rosybrown: "bc8f8f",
|
|
1455
|
+
royalblue: "4169e1",
|
|
1456
|
+
saddlebrown: "8b4513",
|
|
1457
|
+
salmon: "fa8072",
|
|
1458
|
+
sandybrown: "f4a460",
|
|
1459
|
+
seagreen: "2e8b57",
|
|
1460
|
+
seashell: "fff5ee",
|
|
1461
|
+
sienna: "a0522d",
|
|
1462
|
+
silver: "c0c0c0",
|
|
1463
|
+
skyblue: "87ceeb",
|
|
1464
|
+
slateblue: "6a5acd",
|
|
1465
|
+
slategray: "708090",
|
|
1466
|
+
slategrey: "708090",
|
|
1467
|
+
snow: "fffafa",
|
|
1468
|
+
springgreen: "00ff7f",
|
|
1469
|
+
steelblue: "4682b4",
|
|
1470
|
+
tan: "d2b48c",
|
|
1471
|
+
teal: "008080",
|
|
1472
|
+
thistle: "d8bfd8",
|
|
1473
|
+
tomato: "ff6347",
|
|
1474
|
+
turquoise: "40e0d0",
|
|
1475
|
+
violet: "ee82ee",
|
|
1476
|
+
wheat: "f5deb3",
|
|
1477
|
+
white: "fff",
|
|
1478
|
+
whitesmoke: "f5f5f5",
|
|
1479
|
+
yellow: "ff0",
|
|
1480
|
+
yellowgreen: "9acd32"
|
|
1481
|
+
}, rn = y.hexNames = nn(Bt);
|
|
1482
|
+
function nn(t) {
|
|
1483
|
+
var e = {};
|
|
1484
|
+
for (var r in t)
|
|
1485
|
+
t.hasOwnProperty(r) && (e[t[r]] = r);
|
|
1486
|
+
return e;
|
|
1487
|
+
}
|
|
1488
|
+
function De(t) {
|
|
1489
|
+
return t = parseFloat(t), (isNaN(t) || t < 0 || t > 1) && (t = 1), t;
|
|
1490
|
+
}
|
|
1491
|
+
function F(t, e) {
|
|
1492
|
+
an(t) && (t = "100%");
|
|
1493
|
+
var r = on(t);
|
|
1494
|
+
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);
|
|
1495
|
+
}
|
|
1496
|
+
function Pt(t) {
|
|
1497
|
+
return Math.min(1, Math.max(0, t));
|
|
1498
|
+
}
|
|
1499
|
+
function V(t) {
|
|
1500
|
+
return parseInt(t, 16);
|
|
1501
|
+
}
|
|
1502
|
+
function an(t) {
|
|
1503
|
+
return typeof t == "string" && t.indexOf(".") != -1 && parseFloat(t) === 1;
|
|
1504
|
+
}
|
|
1505
|
+
function on(t) {
|
|
1506
|
+
return typeof t == "string" && t.indexOf("%") != -1;
|
|
1507
|
+
}
|
|
1508
|
+
function rt(t) {
|
|
1509
|
+
return t.length == 1 ? "0" + t : "" + t;
|
|
1510
|
+
}
|
|
1511
|
+
function xt(t) {
|
|
1512
|
+
return t <= 1 && (t = t * 100 + "%"), t;
|
|
1513
|
+
}
|
|
1514
|
+
function ke(t) {
|
|
1515
|
+
return Math.round(parseFloat(t) * 255).toString(16);
|
|
1516
|
+
}
|
|
1517
|
+
function ve(t) {
|
|
1518
|
+
return V(t) / 255;
|
|
1519
|
+
}
|
|
1520
|
+
var et = function() {
|
|
1521
|
+
var t = "[-\\+]?\\d+%?", e = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + e + ")|(?:" + t + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", a = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
|
|
1522
|
+
return {
|
|
1523
|
+
CSS_UNIT: new RegExp(r),
|
|
1524
|
+
rgb: new RegExp("rgb" + n),
|
|
1525
|
+
rgba: new RegExp("rgba" + a),
|
|
1526
|
+
hsl: new RegExp("hsl" + n),
|
|
1527
|
+
hsla: new RegExp("hsla" + a),
|
|
1528
|
+
hsv: new RegExp("hsv" + n),
|
|
1529
|
+
hsva: new RegExp("hsva" + a),
|
|
1530
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
1531
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
1532
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
1533
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
1534
|
+
};
|
|
1535
|
+
}();
|
|
1536
|
+
function st(t) {
|
|
1537
|
+
return !!et.CSS_UNIT.exec(t);
|
|
1538
|
+
}
|
|
1539
|
+
function sn(t) {
|
|
1540
|
+
t = t.replace(Fr, "").replace(Br, "").toLowerCase();
|
|
1541
|
+
var e = !1;
|
|
1542
|
+
if (Bt[t])
|
|
1543
|
+
t = Bt[t], e = !0;
|
|
1544
|
+
else if (t == "transparent")
|
|
1545
|
+
return {
|
|
1546
|
+
r: 0,
|
|
1547
|
+
g: 0,
|
|
1548
|
+
b: 0,
|
|
1549
|
+
a: 0,
|
|
1550
|
+
format: "name"
|
|
1551
|
+
};
|
|
1552
|
+
var r;
|
|
1553
|
+
return (r = et.rgb.exec(t)) ? {
|
|
1554
|
+
r: r[1],
|
|
1555
|
+
g: r[2],
|
|
1556
|
+
b: r[3]
|
|
1557
|
+
} : (r = et.rgba.exec(t)) ? {
|
|
1558
|
+
r: r[1],
|
|
1559
|
+
g: r[2],
|
|
1560
|
+
b: r[3],
|
|
1561
|
+
a: r[4]
|
|
1562
|
+
} : (r = et.hsl.exec(t)) ? {
|
|
1563
|
+
h: r[1],
|
|
1564
|
+
s: r[2],
|
|
1565
|
+
l: r[3]
|
|
1566
|
+
} : (r = et.hsla.exec(t)) ? {
|
|
1567
|
+
h: r[1],
|
|
1568
|
+
s: r[2],
|
|
1569
|
+
l: r[3],
|
|
1570
|
+
a: r[4]
|
|
1571
|
+
} : (r = et.hsv.exec(t)) ? {
|
|
1572
|
+
h: r[1],
|
|
1573
|
+
s: r[2],
|
|
1574
|
+
v: r[3]
|
|
1575
|
+
} : (r = et.hsva.exec(t)) ? {
|
|
1576
|
+
h: r[1],
|
|
1577
|
+
s: r[2],
|
|
1578
|
+
v: r[3],
|
|
1579
|
+
a: r[4]
|
|
1580
|
+
} : (r = et.hex8.exec(t)) ? {
|
|
1581
|
+
r: V(r[1]),
|
|
1582
|
+
g: V(r[2]),
|
|
1583
|
+
b: V(r[3]),
|
|
1584
|
+
a: ve(r[4]),
|
|
1585
|
+
format: e ? "name" : "hex8"
|
|
1586
|
+
} : (r = et.hex6.exec(t)) ? {
|
|
1587
|
+
r: V(r[1]),
|
|
1588
|
+
g: V(r[2]),
|
|
1589
|
+
b: V(r[3]),
|
|
1590
|
+
format: e ? "name" : "hex"
|
|
1591
|
+
} : (r = et.hex4.exec(t)) ? {
|
|
1592
|
+
r: V(r[1] + "" + r[1]),
|
|
1593
|
+
g: V(r[2] + "" + r[2]),
|
|
1594
|
+
b: V(r[3] + "" + r[3]),
|
|
1595
|
+
a: ve(r[4] + "" + r[4]),
|
|
1596
|
+
format: e ? "name" : "hex8"
|
|
1597
|
+
} : (r = et.hex3.exec(t)) ? {
|
|
1598
|
+
r: V(r[1] + "" + r[1]),
|
|
1599
|
+
g: V(r[2] + "" + r[2]),
|
|
1600
|
+
b: V(r[3] + "" + r[3]),
|
|
1601
|
+
format: e ? "name" : "hex"
|
|
1602
|
+
} : !1;
|
|
1603
|
+
}
|
|
1604
|
+
function un(t) {
|
|
1605
|
+
var e, r;
|
|
1606
|
+
return t = t || {
|
|
1607
|
+
level: "AA",
|
|
1608
|
+
size: "small"
|
|
1609
|
+
}, e = (t.level || "AA").toUpperCase(), r = (t.size || "small").toLowerCase(), e !== "AA" && e !== "AAA" && (e = "AA"), r !== "small" && r !== "large" && (r = "small"), {
|
|
1610
|
+
level: e,
|
|
1611
|
+
size: r
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
var kt = { exports: {} }, fn = kt.exports, ge;
|
|
1615
|
+
function cn() {
|
|
1616
|
+
return ge || (ge = 1, function(t, e) {
|
|
1617
|
+
(function(r, n) {
|
|
1618
|
+
t.exports = n();
|
|
1619
|
+
})(fn, function() {
|
|
1620
|
+
var r = 1e3, n = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", o = "hour", h = "day", c = "week", x = "month", w = "quarter", v = "year", b = "date", f = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, H = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
|
|
1621
|
+
var d = ["th", "st", "nd", "rd"], l = $ % 100;
|
|
1622
|
+
return "[" + $ + (d[(l - 20) % 10] || d[l] || d[0]) + "]";
|
|
1623
|
+
} }, D = function($, d, l) {
|
|
1624
|
+
var g = String($);
|
|
1625
|
+
return !g || g.length >= d ? $ : "" + Array(d + 1 - g.length).join(l) + $;
|
|
1626
|
+
}, M = { s: D, z: function($) {
|
|
1627
|
+
var d = -$.utcOffset(), l = Math.abs(d), g = Math.floor(l / 60), p = l % 60;
|
|
1628
|
+
return (d <= 0 ? "+" : "-") + D(g, 2, "0") + ":" + D(p, 2, "0");
|
|
1629
|
+
}, m: function $(d, l) {
|
|
1630
|
+
if (d.date() < l.date()) return -$(l, d);
|
|
1631
|
+
var g = 12 * (l.year() - d.year()) + (l.month() - d.month()), p = d.clone().add(g, x), S = l - p < 0, A = d.clone().add(g + (S ? -1 : 1), x);
|
|
1632
|
+
return +(-(g + (l - p) / (S ? p - A : A - p)) || 0);
|
|
1633
|
+
}, a: function($) {
|
|
1634
|
+
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
|
1635
|
+
}, p: function($) {
|
|
1636
|
+
return { M: x, y: v, w: c, d: h, D: b, h: o, m: s, s: u, ms: i, Q: w }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
|
1637
|
+
}, u: function($) {
|
|
1638
|
+
return $ === void 0;
|
|
1639
|
+
} }, O = "en", R = {};
|
|
1640
|
+
R[O] = H;
|
|
1641
|
+
var C = "$isDayjsObject", j = function($) {
|
|
1642
|
+
return $ instanceof U || !(!$ || !$[C]);
|
|
1643
|
+
}, E = function $(d, l, g) {
|
|
1644
|
+
var p;
|
|
1645
|
+
if (!d) return O;
|
|
1646
|
+
if (typeof d == "string") {
|
|
1647
|
+
var S = d.toLowerCase();
|
|
1648
|
+
R[S] && (p = S), l && (R[S] = l, p = S);
|
|
1649
|
+
var A = d.split("-");
|
|
1650
|
+
if (!p && A.length > 1) return $(A[0]);
|
|
1651
|
+
} else {
|
|
1652
|
+
var P = d.name;
|
|
1653
|
+
R[P] = d, p = P;
|
|
1654
|
+
}
|
|
1655
|
+
return !g && p && (O = p), p || !g && O;
|
|
1656
|
+
}, k = function($, d) {
|
|
1657
|
+
if (j($)) return $.clone();
|
|
1658
|
+
var l = typeof d == "object" ? d : {};
|
|
1659
|
+
return l.date = $, l.args = arguments, new U(l);
|
|
1660
|
+
}, _ = M;
|
|
1661
|
+
_.l = E, _.i = j, _.w = function($, d) {
|
|
1662
|
+
return k($, { locale: d.$L, utc: d.$u, x: d.$x, $offset: d.$offset });
|
|
1663
|
+
};
|
|
1664
|
+
var U = function() {
|
|
1665
|
+
function $(l) {
|
|
1666
|
+
this.$L = E(l.locale, null, !0), this.parse(l), this.$x = this.$x || l.x || {}, this[C] = !0;
|
|
1667
|
+
}
|
|
1668
|
+
var d = $.prototype;
|
|
1669
|
+
return d.parse = function(l) {
|
|
1670
|
+
this.$d = function(g) {
|
|
1671
|
+
var p = g.date, S = g.utc;
|
|
1672
|
+
if (p === null) return /* @__PURE__ */ new Date(NaN);
|
|
1673
|
+
if (_.u(p)) return /* @__PURE__ */ new Date();
|
|
1674
|
+
if (p instanceof Date) return new Date(p);
|
|
1675
|
+
if (typeof p == "string" && !/Z$/i.test(p)) {
|
|
1676
|
+
var A = p.match(m);
|
|
1677
|
+
if (A) {
|
|
1678
|
+
var P = A[2] - 1 || 0, L = (A[7] || "0").substring(0, 3);
|
|
1679
|
+
return S ? new Date(Date.UTC(A[1], P, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, L)) : new Date(A[1], P, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, L);
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
return new Date(p);
|
|
1683
|
+
}(l), this.init();
|
|
1684
|
+
}, d.init = function() {
|
|
1685
|
+
var l = this.$d;
|
|
1686
|
+
this.$y = l.getFullYear(), this.$M = l.getMonth(), this.$D = l.getDate(), this.$W = l.getDay(), this.$H = l.getHours(), this.$m = l.getMinutes(), this.$s = l.getSeconds(), this.$ms = l.getMilliseconds();
|
|
1687
|
+
}, d.$utils = function() {
|
|
1688
|
+
return _;
|
|
1689
|
+
}, d.isValid = function() {
|
|
1690
|
+
return this.$d.toString() !== f;
|
|
1691
|
+
}, d.isSame = function(l, g) {
|
|
1692
|
+
var p = k(l);
|
|
1693
|
+
return this.startOf(g) <= p && p <= this.endOf(g);
|
|
1694
|
+
}, d.isAfter = function(l, g) {
|
|
1695
|
+
return k(l) < this.startOf(g);
|
|
1696
|
+
}, d.isBefore = function(l, g) {
|
|
1697
|
+
return this.endOf(g) < k(l);
|
|
1698
|
+
}, d.$g = function(l, g, p) {
|
|
1699
|
+
return _.u(l) ? this[g] : this.set(p, l);
|
|
1700
|
+
}, d.unix = function() {
|
|
1701
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
1702
|
+
}, d.valueOf = function() {
|
|
1703
|
+
return this.$d.getTime();
|
|
1704
|
+
}, d.startOf = function(l, g) {
|
|
1705
|
+
var p = this, S = !!_.u(g) || g, A = _.p(l), P = function(tt, W) {
|
|
1706
|
+
var Q = _.w(p.$u ? Date.UTC(p.$y, W, tt) : new Date(p.$y, W, tt), p);
|
|
1707
|
+
return S ? Q : Q.endOf(h);
|
|
1708
|
+
}, L = function(tt, W) {
|
|
1709
|
+
return _.w(p.toDate()[tt].apply(p.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(W)), p);
|
|
1710
|
+
}, B = this.$W, z = this.$M, N = this.$D, G = "set" + (this.$u ? "UTC" : "");
|
|
1711
|
+
switch (A) {
|
|
1712
|
+
case v:
|
|
1713
|
+
return S ? P(1, 0) : P(31, 11);
|
|
1714
|
+
case x:
|
|
1715
|
+
return S ? P(1, z) : P(0, z + 1);
|
|
1716
|
+
case c:
|
|
1717
|
+
var J = this.$locale().weekStart || 0, Y = (B < J ? B + 7 : B) - J;
|
|
1718
|
+
return P(S ? N - Y : N + (6 - Y), z);
|
|
1719
|
+
case h:
|
|
1720
|
+
case b:
|
|
1721
|
+
return L(G + "Hours", 0);
|
|
1722
|
+
case o:
|
|
1723
|
+
return L(G + "Minutes", 1);
|
|
1724
|
+
case s:
|
|
1725
|
+
return L(G + "Seconds", 2);
|
|
1726
|
+
case u:
|
|
1727
|
+
return L(G + "Milliseconds", 3);
|
|
1728
|
+
default:
|
|
1729
|
+
return this.clone();
|
|
1730
|
+
}
|
|
1731
|
+
}, d.endOf = function(l) {
|
|
1732
|
+
return this.startOf(l, !1);
|
|
1733
|
+
}, d.$set = function(l, g) {
|
|
1734
|
+
var p, S = _.p(l), A = "set" + (this.$u ? "UTC" : ""), P = (p = {}, p[h] = A + "Date", p[b] = A + "Date", p[x] = A + "Month", p[v] = A + "FullYear", p[o] = A + "Hours", p[s] = A + "Minutes", p[u] = A + "Seconds", p[i] = A + "Milliseconds", p)[S], L = S === h ? this.$D + (g - this.$W) : g;
|
|
1735
|
+
if (S === x || S === v) {
|
|
1736
|
+
var B = this.clone().set(b, 1);
|
|
1737
|
+
B.$d[P](L), B.init(), this.$d = B.set(b, Math.min(this.$D, B.daysInMonth())).$d;
|
|
1738
|
+
} else P && this.$d[P](L);
|
|
1739
|
+
return this.init(), this;
|
|
1740
|
+
}, d.set = function(l, g) {
|
|
1741
|
+
return this.clone().$set(l, g);
|
|
1742
|
+
}, d.get = function(l) {
|
|
1743
|
+
return this[_.p(l)]();
|
|
1744
|
+
}, d.add = function(l, g) {
|
|
1745
|
+
var p, S = this;
|
|
1746
|
+
l = Number(l);
|
|
1747
|
+
var A = _.p(g), P = function(z) {
|
|
1748
|
+
var N = k(S);
|
|
1749
|
+
return _.w(N.date(N.date() + Math.round(z * l)), S);
|
|
1750
|
+
};
|
|
1751
|
+
if (A === x) return this.set(x, this.$M + l);
|
|
1752
|
+
if (A === v) return this.set(v, this.$y + l);
|
|
1753
|
+
if (A === h) return P(1);
|
|
1754
|
+
if (A === c) return P(7);
|
|
1755
|
+
var L = (p = {}, p[s] = n, p[o] = a, p[u] = r, p)[A] || 1, B = this.$d.getTime() + l * L;
|
|
1756
|
+
return _.w(B, this);
|
|
1757
|
+
}, d.subtract = function(l, g) {
|
|
1758
|
+
return this.add(-1 * l, g);
|
|
1759
|
+
}, d.format = function(l) {
|
|
1760
|
+
var g = this, p = this.$locale();
|
|
1761
|
+
if (!this.isValid()) return p.invalidDate || f;
|
|
1762
|
+
var S = l || "YYYY-MM-DDTHH:mm:ssZ", A = _.z(this), P = this.$H, L = this.$m, B = this.$M, z = p.weekdays, N = p.months, G = p.meridiem, J = function(W, Q, ct, lt) {
|
|
1763
|
+
return W && (W[Q] || W(g, S)) || ct[Q].slice(0, lt);
|
|
1764
|
+
}, Y = function(W) {
|
|
1765
|
+
return _.s(P % 12 || 12, W, "0");
|
|
1766
|
+
}, tt = G || function(W, Q, ct) {
|
|
1767
|
+
var lt = W < 12 ? "AM" : "PM";
|
|
1768
|
+
return ct ? lt.toLowerCase() : lt;
|
|
1769
|
+
};
|
|
1770
|
+
return S.replace(T, function(W, Q) {
|
|
1771
|
+
return Q || function(ct) {
|
|
1772
|
+
switch (ct) {
|
|
1773
|
+
case "YY":
|
|
1774
|
+
return String(g.$y).slice(-2);
|
|
1775
|
+
case "YYYY":
|
|
1776
|
+
return _.s(g.$y, 4, "0");
|
|
1777
|
+
case "M":
|
|
1778
|
+
return B + 1;
|
|
1779
|
+
case "MM":
|
|
1780
|
+
return _.s(B + 1, 2, "0");
|
|
1781
|
+
case "MMM":
|
|
1782
|
+
return J(p.monthsShort, B, N, 3);
|
|
1783
|
+
case "MMMM":
|
|
1784
|
+
return J(N, B);
|
|
1785
|
+
case "D":
|
|
1786
|
+
return g.$D;
|
|
1787
|
+
case "DD":
|
|
1788
|
+
return _.s(g.$D, 2, "0");
|
|
1789
|
+
case "d":
|
|
1790
|
+
return String(g.$W);
|
|
1791
|
+
case "dd":
|
|
1792
|
+
return J(p.weekdaysMin, g.$W, z, 2);
|
|
1793
|
+
case "ddd":
|
|
1794
|
+
return J(p.weekdaysShort, g.$W, z, 3);
|
|
1795
|
+
case "dddd":
|
|
1796
|
+
return z[g.$W];
|
|
1797
|
+
case "H":
|
|
1798
|
+
return String(P);
|
|
1799
|
+
case "HH":
|
|
1800
|
+
return _.s(P, 2, "0");
|
|
1801
|
+
case "h":
|
|
1802
|
+
return Y(1);
|
|
1803
|
+
case "hh":
|
|
1804
|
+
return Y(2);
|
|
1805
|
+
case "a":
|
|
1806
|
+
return tt(P, L, !0);
|
|
1807
|
+
case "A":
|
|
1808
|
+
return tt(P, L, !1);
|
|
1809
|
+
case "m":
|
|
1810
|
+
return String(L);
|
|
1811
|
+
case "mm":
|
|
1812
|
+
return _.s(L, 2, "0");
|
|
1813
|
+
case "s":
|
|
1814
|
+
return String(g.$s);
|
|
1815
|
+
case "ss":
|
|
1816
|
+
return _.s(g.$s, 2, "0");
|
|
1817
|
+
case "SSS":
|
|
1818
|
+
return _.s(g.$ms, 3, "0");
|
|
1819
|
+
case "Z":
|
|
1820
|
+
return A;
|
|
1821
|
+
}
|
|
1822
|
+
return null;
|
|
1823
|
+
}(W) || A.replace(":", "");
|
|
1824
|
+
});
|
|
1825
|
+
}, d.utcOffset = function() {
|
|
1826
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1827
|
+
}, d.diff = function(l, g, p) {
|
|
1828
|
+
var S, A = this, P = _.p(g), L = k(l), B = (L.utcOffset() - this.utcOffset()) * n, z = this - L, N = function() {
|
|
1829
|
+
return _.m(A, L);
|
|
1830
|
+
};
|
|
1831
|
+
switch (P) {
|
|
1832
|
+
case v:
|
|
1833
|
+
S = N() / 12;
|
|
1834
|
+
break;
|
|
1835
|
+
case x:
|
|
1836
|
+
S = N();
|
|
1837
|
+
break;
|
|
1838
|
+
case w:
|
|
1839
|
+
S = N() / 3;
|
|
1840
|
+
break;
|
|
1841
|
+
case c:
|
|
1842
|
+
S = (z - B) / 6048e5;
|
|
1843
|
+
break;
|
|
1844
|
+
case h:
|
|
1845
|
+
S = (z - B) / 864e5;
|
|
1846
|
+
break;
|
|
1847
|
+
case o:
|
|
1848
|
+
S = z / a;
|
|
1849
|
+
break;
|
|
1850
|
+
case s:
|
|
1851
|
+
S = z / n;
|
|
1852
|
+
break;
|
|
1853
|
+
case u:
|
|
1854
|
+
S = z / r;
|
|
1855
|
+
break;
|
|
1856
|
+
default:
|
|
1857
|
+
S = z;
|
|
1858
|
+
}
|
|
1859
|
+
return p ? S : _.a(S);
|
|
1860
|
+
}, d.daysInMonth = function() {
|
|
1861
|
+
return this.endOf(x).$D;
|
|
1862
|
+
}, d.$locale = function() {
|
|
1863
|
+
return R[this.$L];
|
|
1864
|
+
}, d.locale = function(l, g) {
|
|
1865
|
+
if (!l) return this.$L;
|
|
1866
|
+
var p = this.clone(), S = E(l, g, !0);
|
|
1867
|
+
return S && (p.$L = S), p;
|
|
1868
|
+
}, d.clone = function() {
|
|
1869
|
+
return _.w(this.$d, this);
|
|
1870
|
+
}, d.toDate = function() {
|
|
1871
|
+
return new Date(this.valueOf());
|
|
1872
|
+
}, d.toJSON = function() {
|
|
1873
|
+
return this.isValid() ? this.toISOString() : null;
|
|
1874
|
+
}, d.toISOString = function() {
|
|
1875
|
+
return this.$d.toISOString();
|
|
1876
|
+
}, d.toString = function() {
|
|
1877
|
+
return this.$d.toUTCString();
|
|
1878
|
+
}, $;
|
|
1879
|
+
}(), I = U.prototype;
|
|
1880
|
+
return k.prototype = I, [["$ms", i], ["$s", u], ["$m", s], ["$H", o], ["$W", h], ["$M", x], ["$y", v], ["$D", b]].forEach(function($) {
|
|
1881
|
+
I[$[1]] = function(d) {
|
|
1882
|
+
return this.$g(d, $[0], $[1]);
|
|
1883
|
+
};
|
|
1884
|
+
}), k.extend = function($, d) {
|
|
1885
|
+
return $.$i || ($(d, U, k), $.$i = !0), k;
|
|
1886
|
+
}, k.locale = E, k.isDayjs = j, k.unix = function($) {
|
|
1887
|
+
return k(1e3 * $);
|
|
1888
|
+
}, k.en = R[O], k.Ls = R, k.p = {}, k;
|
|
1889
|
+
});
|
|
1890
|
+
}(kt)), kt.exports;
|
|
1891
|
+
}
|
|
1892
|
+
var ln = cn();
|
|
1893
|
+
const Sn = /* @__PURE__ */ zt(ln);
|
|
1894
|
+
var Tt = { exports: {} }, hn = Tt.exports, me;
|
|
1895
|
+
function dn() {
|
|
1896
|
+
return me || (me = 1, function(t, e) {
|
|
1897
|
+
(function(r, n) {
|
|
1898
|
+
t.exports = n();
|
|
1899
|
+
})(hn, function() {
|
|
1900
|
+
var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
|
|
1901
|
+
return function(a, i, u) {
|
|
1902
|
+
var s, o = function(w, v, b) {
|
|
1903
|
+
b === void 0 && (b = {});
|
|
1904
|
+
var f = new Date(w), m = function(T, H) {
|
|
1905
|
+
H === void 0 && (H = {});
|
|
1906
|
+
var D = H.timeZoneName || "short", M = T + "|" + D, O = n[M];
|
|
1907
|
+
return O || (O = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: T, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: D }), n[M] = O), O;
|
|
1908
|
+
}(v, b);
|
|
1909
|
+
return m.formatToParts(f);
|
|
1910
|
+
}, h = function(w, v) {
|
|
1911
|
+
for (var b = o(w, v), f = [], m = 0; m < b.length; m += 1) {
|
|
1912
|
+
var T = b[m], H = T.type, D = T.value, M = r[H];
|
|
1913
|
+
M >= 0 && (f[M] = parseInt(D, 10));
|
|
1914
|
+
}
|
|
1915
|
+
var O = f[3], R = O === 24 ? 0 : O, C = f[0] + "-" + f[1] + "-" + f[2] + " " + R + ":" + f[4] + ":" + f[5] + ":000", j = +w;
|
|
1916
|
+
return (u.utc(C).valueOf() - (j -= j % 1e3)) / 6e4;
|
|
1917
|
+
}, c = i.prototype;
|
|
1918
|
+
c.tz = function(w, v) {
|
|
1919
|
+
w === void 0 && (w = s);
|
|
1920
|
+
var b, f = this.utcOffset(), m = this.toDate(), T = m.toLocaleString("en-US", { timeZone: w }), H = Math.round((m - new Date(T)) / 1e3 / 60), D = 15 * -Math.round(m.getTimezoneOffset() / 15) - H;
|
|
1921
|
+
if (!Number(D)) b = this.utcOffset(0, v);
|
|
1922
|
+
else if (b = u(T, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(D, !0), v) {
|
|
1923
|
+
var M = b.utcOffset();
|
|
1924
|
+
b = b.add(f - M, "minute");
|
|
1925
|
+
}
|
|
1926
|
+
return b.$x.$timezone = w, b;
|
|
1927
|
+
}, c.offsetName = function(w) {
|
|
1928
|
+
var v = this.$x.$timezone || u.tz.guess(), b = o(this.valueOf(), v, { timeZoneName: w }).find(function(f) {
|
|
1929
|
+
return f.type.toLowerCase() === "timezonename";
|
|
1930
|
+
});
|
|
1931
|
+
return b && b.value;
|
|
1932
|
+
};
|
|
1933
|
+
var x = c.startOf;
|
|
1934
|
+
c.startOf = function(w, v) {
|
|
1935
|
+
if (!this.$x || !this.$x.$timezone) return x.call(this, w, v);
|
|
1936
|
+
var b = u(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
1937
|
+
return x.call(b, w, v).tz(this.$x.$timezone, !0);
|
|
1938
|
+
}, u.tz = function(w, v, b) {
|
|
1939
|
+
var f = b && v, m = b || v || s, T = h(+u(), m);
|
|
1940
|
+
if (typeof w != "string") return u(w).tz(m);
|
|
1941
|
+
var H = function(R, C, j) {
|
|
1942
|
+
var E = R - 60 * C * 1e3, k = h(E, j);
|
|
1943
|
+
if (C === k) return [E, C];
|
|
1944
|
+
var _ = h(E -= 60 * (k - C) * 1e3, j);
|
|
1945
|
+
return k === _ ? [E, k] : [R - 60 * Math.min(k, _) * 1e3, Math.max(k, _)];
|
|
1946
|
+
}(u.utc(w, f).valueOf(), T, m), D = H[0], M = H[1], O = u(D).utcOffset(M);
|
|
1947
|
+
return O.$x.$timezone = m, O;
|
|
1948
|
+
}, u.tz.guess = function() {
|
|
1949
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1950
|
+
}, u.tz.setDefault = function(w) {
|
|
1951
|
+
s = w;
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
});
|
|
1955
|
+
}(Tt)), Tt.exports;
|
|
1956
|
+
}
|
|
1957
|
+
var pn = dn();
|
|
1958
|
+
const An = /* @__PURE__ */ zt(pn);
|
|
1959
|
+
var Rt = { exports: {} }, vn = Rt.exports, be;
|
|
1960
|
+
function gn() {
|
|
1961
|
+
return be || (be = 1, function(t, e) {
|
|
1962
|
+
(function(r, n) {
|
|
1963
|
+
t.exports = n();
|
|
1964
|
+
})(vn, function() {
|
|
1965
|
+
var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
|
|
1966
|
+
return function(i, u, s) {
|
|
1967
|
+
var o = u.prototype;
|
|
1968
|
+
s.utc = function(f) {
|
|
1969
|
+
var m = { date: f, utc: !0, args: arguments };
|
|
1970
|
+
return new u(m);
|
|
1971
|
+
}, o.utc = function(f) {
|
|
1972
|
+
var m = s(this.toDate(), { locale: this.$L, utc: !0 });
|
|
1973
|
+
return f ? m.add(this.utcOffset(), r) : m;
|
|
1974
|
+
}, o.local = function() {
|
|
1975
|
+
return s(this.toDate(), { locale: this.$L, utc: !1 });
|
|
1976
|
+
};
|
|
1977
|
+
var h = o.parse;
|
|
1978
|
+
o.parse = function(f) {
|
|
1979
|
+
f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), h.call(this, f);
|
|
1980
|
+
};
|
|
1981
|
+
var c = o.init;
|
|
1982
|
+
o.init = function() {
|
|
1983
|
+
if (this.$u) {
|
|
1984
|
+
var f = this.$d;
|
|
1985
|
+
this.$y = f.getUTCFullYear(), this.$M = f.getUTCMonth(), this.$D = f.getUTCDate(), this.$W = f.getUTCDay(), this.$H = f.getUTCHours(), this.$m = f.getUTCMinutes(), this.$s = f.getUTCSeconds(), this.$ms = f.getUTCMilliseconds();
|
|
1986
|
+
} else c.call(this);
|
|
1987
|
+
};
|
|
1988
|
+
var x = o.utcOffset;
|
|
1989
|
+
o.utcOffset = function(f, m) {
|
|
1990
|
+
var T = this.$utils().u;
|
|
1991
|
+
if (T(f)) return this.$u ? 0 : T(this.$offset) ? x.call(this) : this.$offset;
|
|
1992
|
+
if (typeof f == "string" && (f = function(O) {
|
|
1993
|
+
O === void 0 && (O = "");
|
|
1994
|
+
var R = O.match(n);
|
|
1995
|
+
if (!R) return null;
|
|
1996
|
+
var C = ("" + R[0]).match(a) || ["-", 0, 0], j = C[0], E = 60 * +C[1] + +C[2];
|
|
1997
|
+
return E === 0 ? 0 : j === "+" ? E : -E;
|
|
1998
|
+
}(f), f === null)) return this;
|
|
1999
|
+
var H = Math.abs(f) <= 16 ? 60 * f : f, D = this;
|
|
2000
|
+
if (m) return D.$offset = H, D.$u = f === 0, D;
|
|
2001
|
+
if (f !== 0) {
|
|
2002
|
+
var M = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
2003
|
+
(D = this.local().add(H + M, r)).$offset = H, D.$x.$localOffset = M;
|
|
2004
|
+
} else D = this.utc();
|
|
2005
|
+
return D;
|
|
2006
|
+
};
|
|
2007
|
+
var w = o.format;
|
|
2008
|
+
o.format = function(f) {
|
|
2009
|
+
var m = f || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
2010
|
+
return w.call(this, m);
|
|
2011
|
+
}, o.valueOf = function() {
|
|
2012
|
+
var f = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
2013
|
+
return this.$d.valueOf() - 6e4 * f;
|
|
2014
|
+
}, o.isUTC = function() {
|
|
2015
|
+
return !!this.$u;
|
|
2016
|
+
}, o.toISOString = function() {
|
|
2017
|
+
return this.toDate().toISOString();
|
|
2018
|
+
}, o.toString = function() {
|
|
2019
|
+
return this.toDate().toUTCString();
|
|
2020
|
+
};
|
|
2021
|
+
var v = o.toDate;
|
|
2022
|
+
o.toDate = function(f) {
|
|
2023
|
+
return f === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : v.call(this);
|
|
2024
|
+
};
|
|
2025
|
+
var b = o.diff;
|
|
2026
|
+
o.diff = function(f, m, T) {
|
|
2027
|
+
if (f && this.$u === f.$u) return b.call(this, f, m, T);
|
|
2028
|
+
var H = this.local(), D = s(f).local();
|
|
2029
|
+
return b.call(H, D, m, T);
|
|
2030
|
+
};
|
|
2031
|
+
};
|
|
2032
|
+
});
|
|
2033
|
+
}(Rt)), Rt.exports;
|
|
2034
|
+
}
|
|
2035
|
+
var mn = gn();
|
|
2036
|
+
const Dn = /* @__PURE__ */ zt(mn);
|
|
2037
|
+
export {
|
|
2038
|
+
xn as a,
|
|
2039
|
+
Mn as b,
|
|
2040
|
+
yn as c,
|
|
2041
|
+
_n as d,
|
|
2042
|
+
ur as e,
|
|
2043
|
+
wn as f,
|
|
2044
|
+
cr as g,
|
|
2045
|
+
Sn as h,
|
|
2046
|
+
An as i,
|
|
2047
|
+
$n as o,
|
|
2048
|
+
On as p,
|
|
2049
|
+
y as t,
|
|
2050
|
+
Dn as u
|
|
2051
|
+
};
|