@access-ci/ui 0.5.0-beta2 → 0.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.
- package/README.md +2 -0
- package/dist/access-ci-ui.bundle.js +3 -3
- package/dist/access-ci-ui.js +8 -7
- package/dist/access-ci-ui.umd.cjs +12 -12
- package/dist/{icon-Bnee6DXz.js → icon-6r8UmHaL.js} +1 -1
- package/dist/{index-ClapqXAT.js → index-mrRDD7GP.js} +661 -623
- package/dist/{resource-group-detail-D6IpF4Dt.js → resource-group-detail-CYjTFoRw.js} +759 -727
- package/dist/resource-home-DnwExdge.js +248 -0
- package/package.json +1 -1
- package/dist/resource-home-B3KqRwTH.js +0 -227
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Sc = Object.defineProperty;
|
|
2
2
|
var kc = (i, t, e) => t in i ? Sc(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var I = (i, t, e) => kc(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { _ as _i, u as v, a as
|
|
5
|
-
import { I as X } from "./icon-
|
|
6
|
-
const
|
|
4
|
+
import { _ as _i, u as v, a as ht, s as Ko, b as wi, A as ne, c as St, e as Mc, h as He, d as is, f as er, y as qo, g as Oc, T as Tc, B as Ac } from "./index-mrRDD7GP.js";
|
|
5
|
+
import { I as X } from "./icon-6r8UmHaL.js";
|
|
6
|
+
const ir = () => {
|
|
7
7
|
const i = new Event("accessci-update-sections");
|
|
8
8
|
document.dispatchEvent(i);
|
|
9
9
|
};
|
|
@@ -15,7 +15,7 @@ function zt({
|
|
|
15
15
|
title: s
|
|
16
16
|
}) {
|
|
17
17
|
const r = n || s.toLowerCase().replace(/[^0-9a-z]+/g, "-");
|
|
18
|
-
return _i(() => (
|
|
18
|
+
return _i(() => (ir(), ir), []), /* @__PURE__ */ v("section", { id: r, "data-section-title": s, "data-section-icon": e, children: [
|
|
19
19
|
/* @__PURE__ */ v("div", { class: "flex-header", children: [
|
|
20
20
|
/* @__PURE__ */ v("h2", { children: [
|
|
21
21
|
e ? /* @__PURE__ */ v(X, { name: e }) : null,
|
|
@@ -27,7 +27,7 @@ function zt({
|
|
|
27
27
|
] });
|
|
28
28
|
}
|
|
29
29
|
function Dc({ infoGroupId: i }) {
|
|
30
|
-
const t =
|
|
30
|
+
const t = ht(
|
|
31
31
|
`https://support.access-ci.org/api/1.0/affinity_groups/${i}`
|
|
32
32
|
);
|
|
33
33
|
if (!t || t.error || !t.length) return;
|
|
@@ -51,21 +51,35 @@ function Dc({ infoGroupId: i }) {
|
|
|
51
51
|
] });
|
|
52
52
|
}
|
|
53
53
|
function Ec({ infoGroupId: i }) {
|
|
54
|
-
const t =
|
|
54
|
+
const t = wi(i), e = ht(
|
|
55
|
+
t && t.infoResourceIds.length ? `https://operations-api.access-ci.org/wh2/cider/v1/info_resourceid/${t.infoResourceIds[0]}/?format=json` : null
|
|
56
|
+
);
|
|
55
57
|
if (!t) return;
|
|
56
|
-
const { name:
|
|
58
|
+
const { accessAllocated: n, name: s, description: r, imageUri: o, organizations: a } = t, c = n ? "https://allocations.access-ci.org/get-your-first-project" : null, l = e && e.results ? (e.results.compute || e.results.storage || {}).user_guide_url : null;
|
|
57
59
|
return /* @__PURE__ */ v("div", { class: "resource-group-description", children: [
|
|
58
|
-
|
|
60
|
+
o ? /* @__PURE__ */ v("img", { class: "resource-group-feature-image", src: o }) : null,
|
|
59
61
|
/* @__PURE__ */ v("h1", { children: t.name }),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
a.map((h) => /* @__PURE__ */ v("p", { children: /* @__PURE__ */ v("a", { href: h.organization_url || "#", children: [
|
|
63
|
+
h.organization_favicon_url ? /* @__PURE__ */ v(
|
|
64
|
+
X,
|
|
65
|
+
{
|
|
66
|
+
alt: h.organization_name,
|
|
67
|
+
src: h.organization_favicon_url
|
|
68
|
+
}
|
|
69
|
+
) : null,
|
|
70
|
+
h.organization_name
|
|
63
71
|
] }) })),
|
|
64
|
-
|
|
65
|
-
/* @__PURE__ */ v("
|
|
66
|
-
/* @__PURE__ */ v(
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
r ? /* @__PURE__ */ v("p", { children: r }) : null,
|
|
73
|
+
/* @__PURE__ */ v("div", { style: { marginTop: "1rem" }, children: [
|
|
74
|
+
c ? /* @__PURE__ */ v("a", { href: c, class: "btn secondary lg", children: [
|
|
75
|
+
/* @__PURE__ */ v(X, { name: "check2-circle" }),
|
|
76
|
+
" Get Started with ",
|
|
77
|
+
s
|
|
78
|
+
] }) : null,
|
|
79
|
+
l ? /* @__PURE__ */ v("a", { href: l, class: "btn lg", children: [
|
|
80
|
+
/* @__PURE__ */ v(X, { name: "book" }),
|
|
81
|
+
" User Guide"
|
|
82
|
+
] }) : null
|
|
69
83
|
] })
|
|
70
84
|
] });
|
|
71
85
|
}
|
|
@@ -76,7 +90,7 @@ function Pc({ column: i, row: t, style: e = {} }) {
|
|
|
76
90
|
const Cc = {
|
|
77
91
|
text: Pc
|
|
78
92
|
};
|
|
79
|
-
function
|
|
93
|
+
function An({
|
|
80
94
|
columns: i,
|
|
81
95
|
rows: t,
|
|
82
96
|
classes: e,
|
|
@@ -130,9 +144,9 @@ function Tn({
|
|
|
130
144
|
);
|
|
131
145
|
}
|
|
132
146
|
function Rc({ infoGroupId: i }) {
|
|
133
|
-
const t =
|
|
147
|
+
const t = ht(
|
|
134
148
|
`https://support.access-ci.org/api/1.0/affinity_groups/${i}`
|
|
135
|
-
), e = t && !t.error && t.length ? t[0].field_ask_ci_locale : null, n = e ? `${e}.json` : null, s =
|
|
149
|
+
), e = t && !t.error && t.length ? t[0].field_ask_ci_locale : null, n = e ? `${e}.json` : null, s = ht(n);
|
|
136
150
|
return !s || s.error || !s.topic_list || !s.topic_list.topics || !s.topic_list.topics.length ? void 0 : /* @__PURE__ */ v(
|
|
137
151
|
zt,
|
|
138
152
|
{
|
|
@@ -143,13 +157,13 @@ function Rc({ infoGroupId: i }) {
|
|
|
143
157
|
/* @__PURE__ */ v("a", { href: e, class: "btn", children: "View All Topics" })
|
|
144
158
|
],
|
|
145
159
|
children: /* @__PURE__ */ v(
|
|
146
|
-
|
|
160
|
+
An,
|
|
147
161
|
{
|
|
148
162
|
columns: [
|
|
149
163
|
{
|
|
150
164
|
key: "title",
|
|
151
165
|
name: "Topic",
|
|
152
|
-
format: (a, c) => /* @__PURE__ */ v(
|
|
166
|
+
format: (a, c) => /* @__PURE__ */ v(St, { children: [
|
|
153
167
|
c.pinned ? /* @__PURE__ */ v(X, { name: "pin-fill" }) : null,
|
|
154
168
|
/* @__PURE__ */ v(
|
|
155
169
|
"a",
|
|
@@ -177,9 +191,9 @@ function Rc({ infoGroupId: i }) {
|
|
|
177
191
|
}
|
|
178
192
|
);
|
|
179
193
|
}
|
|
180
|
-
var
|
|
194
|
+
var ut = "top", Mt = "bottom", Ot = "right", ft = "left", Ds = "auto", Si = [ut, Mt, Ot, ft], Re = "start", ui = "end", Lc = "clippingParents", Qo = "viewport", qe = "popper", Ic = "reference", nr = /* @__PURE__ */ Si.reduce(function(i, t) {
|
|
181
195
|
return i.concat([t + "-" + Re, t + "-" + ui]);
|
|
182
|
-
}, []), Zo = /* @__PURE__ */ [].concat(
|
|
196
|
+
}, []), Zo = /* @__PURE__ */ [].concat(Si, [Ds]).reduce(function(i, t) {
|
|
183
197
|
return i.concat([t, t + "-" + Re, t + "-" + ui]);
|
|
184
198
|
}, []), Fc = "beforeRead", zc = "read", Bc = "afterRead", Hc = "beforeMain", Nc = "main", jc = "afterMain", Wc = "beforeWrite", Vc = "write", $c = "afterWrite", Uc = [Fc, zc, Bc, Hc, Nc, jc, Wc, Vc, $c];
|
|
185
199
|
function Ht(i) {
|
|
@@ -198,11 +212,11 @@ function xe(i) {
|
|
|
198
212
|
var t = vt(i).Element;
|
|
199
213
|
return i instanceof t || i instanceof Element;
|
|
200
214
|
}
|
|
201
|
-
function
|
|
215
|
+
function kt(i) {
|
|
202
216
|
var t = vt(i).HTMLElement;
|
|
203
217
|
return i instanceof t || i instanceof HTMLElement;
|
|
204
218
|
}
|
|
205
|
-
function
|
|
219
|
+
function Es(i) {
|
|
206
220
|
if (typeof ShadowRoot > "u")
|
|
207
221
|
return !1;
|
|
208
222
|
var t = vt(i).ShadowRoot;
|
|
@@ -212,7 +226,7 @@ function Yc(i) {
|
|
|
212
226
|
var t = i.state;
|
|
213
227
|
Object.keys(t.elements).forEach(function(e) {
|
|
214
228
|
var n = t.styles[e] || {}, s = t.attributes[e] || {}, r = t.elements[e];
|
|
215
|
-
!
|
|
229
|
+
!kt(r) || !Ht(r) || (Object.assign(r.style, n), Object.keys(s).forEach(function(o) {
|
|
216
230
|
var a = s[o];
|
|
217
231
|
a === !1 ? r.removeAttribute(o) : r.setAttribute(o, a === !0 ? "" : a);
|
|
218
232
|
}));
|
|
@@ -236,7 +250,7 @@ function Xc(i) {
|
|
|
236
250
|
var s = t.elements[n], r = t.attributes[n] || {}, o = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : e[n]), a = o.reduce(function(c, l) {
|
|
237
251
|
return c[l] = "", c;
|
|
238
252
|
}, {});
|
|
239
|
-
!
|
|
253
|
+
!kt(s) || !Ht(s) || (Object.assign(s.style, a), Object.keys(r).forEach(function(c) {
|
|
240
254
|
s.removeAttribute(c);
|
|
241
255
|
}));
|
|
242
256
|
});
|
|
@@ -253,20 +267,20 @@ const Go = {
|
|
|
253
267
|
function Bt(i) {
|
|
254
268
|
return i.split("-")[0];
|
|
255
269
|
}
|
|
256
|
-
var be = Math.max,
|
|
257
|
-
function
|
|
270
|
+
var be = Math.max, gn = Math.min, Le = Math.round;
|
|
271
|
+
function ns() {
|
|
258
272
|
var i = navigator.userAgentData;
|
|
259
273
|
return i != null && i.brands && Array.isArray(i.brands) ? i.brands.map(function(t) {
|
|
260
274
|
return t.brand + "/" + t.version;
|
|
261
275
|
}).join(" ") : navigator.userAgent;
|
|
262
276
|
}
|
|
263
277
|
function Jo() {
|
|
264
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
278
|
+
return !/^((?!chrome|android).)*safari/i.test(ns());
|
|
265
279
|
}
|
|
266
280
|
function Ie(i, t, e) {
|
|
267
281
|
t === void 0 && (t = !1), e === void 0 && (e = !1);
|
|
268
282
|
var n = i.getBoundingClientRect(), s = 1, r = 1;
|
|
269
|
-
t &&
|
|
283
|
+
t && kt(i) && (s = i.offsetWidth > 0 && Le(n.width) / i.offsetWidth || 1, r = i.offsetHeight > 0 && Le(n.height) / i.offsetHeight || 1);
|
|
270
284
|
var o = xe(i) ? vt(i) : window, a = o.visualViewport, c = !Jo() && e, l = (n.left + (c && a ? a.offsetLeft : 0)) / s, h = (n.top + (c && a ? a.offsetTop : 0)) / r, u = n.width / s, f = n.height / r;
|
|
271
285
|
return {
|
|
272
286
|
width: u,
|
|
@@ -279,7 +293,7 @@ function Ie(i, t, e) {
|
|
|
279
293
|
y: h
|
|
280
294
|
};
|
|
281
295
|
}
|
|
282
|
-
function
|
|
296
|
+
function Ps(i) {
|
|
283
297
|
var t = Ie(i), e = i.offsetWidth, n = i.offsetHeight;
|
|
284
298
|
return Math.abs(t.width - e) <= 1 && (e = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
285
299
|
x: i.offsetLeft,
|
|
@@ -292,7 +306,7 @@ function ta(i, t) {
|
|
|
292
306
|
var e = t.getRootNode && t.getRootNode();
|
|
293
307
|
if (i.contains(t))
|
|
294
308
|
return !0;
|
|
295
|
-
if (e &&
|
|
309
|
+
if (e && Es(e)) {
|
|
296
310
|
var n = t;
|
|
297
311
|
do {
|
|
298
312
|
if (n && i.isSameNode(n))
|
|
@@ -321,24 +335,24 @@ function Dn(i) {
|
|
|
321
335
|
// $FlowFixMe[prop-missing]
|
|
322
336
|
i.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
323
337
|
i.parentNode || // DOM Element detected
|
|
324
|
-
(
|
|
338
|
+
(Es(i) ? i.host : null) || // ShadowRoot detected
|
|
325
339
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
326
340
|
oe(i)
|
|
327
341
|
);
|
|
328
342
|
}
|
|
329
|
-
function
|
|
330
|
-
return !
|
|
343
|
+
function sr(i) {
|
|
344
|
+
return !kt(i) || // https://github.com/popperjs/popper-core/issues/837
|
|
331
345
|
Xt(i).position === "fixed" ? null : i.offsetParent;
|
|
332
346
|
}
|
|
333
347
|
function qc(i) {
|
|
334
|
-
var t = /firefox/i.test(
|
|
335
|
-
if (e &&
|
|
348
|
+
var t = /firefox/i.test(ns()), e = /Trident/i.test(ns());
|
|
349
|
+
if (e && kt(i)) {
|
|
336
350
|
var n = Xt(i);
|
|
337
351
|
if (n.position === "fixed")
|
|
338
352
|
return null;
|
|
339
353
|
}
|
|
340
354
|
var s = Dn(i);
|
|
341
|
-
for (
|
|
355
|
+
for (Es(s) && (s = s.host); kt(s) && ["html", "body"].indexOf(Ht(s)) < 0; ) {
|
|
342
356
|
var r = Xt(s);
|
|
343
357
|
if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || t && r.willChange === "filter" || t && r.filter && r.filter !== "none")
|
|
344
358
|
return s;
|
|
@@ -346,16 +360,16 @@ function qc(i) {
|
|
|
346
360
|
}
|
|
347
361
|
return null;
|
|
348
362
|
}
|
|
349
|
-
function
|
|
350
|
-
for (var t = vt(i), e =
|
|
351
|
-
e =
|
|
363
|
+
function ki(i) {
|
|
364
|
+
for (var t = vt(i), e = sr(i); e && Kc(e) && Xt(e).position === "static"; )
|
|
365
|
+
e = sr(e);
|
|
352
366
|
return e && (Ht(e) === "html" || Ht(e) === "body" && Xt(e).position === "static") ? t : e || qc(i) || t;
|
|
353
367
|
}
|
|
354
|
-
function
|
|
368
|
+
function Cs(i) {
|
|
355
369
|
return ["top", "bottom"].indexOf(i) >= 0 ? "x" : "y";
|
|
356
370
|
}
|
|
357
371
|
function ri(i, t, e) {
|
|
358
|
-
return be(i,
|
|
372
|
+
return be(i, gn(t, e));
|
|
359
373
|
}
|
|
360
374
|
function Qc(i, t, e) {
|
|
361
375
|
var n = ri(i, t, e);
|
|
@@ -380,12 +394,12 @@ function na(i, t) {
|
|
|
380
394
|
var Zc = function(t, e) {
|
|
381
395
|
return t = typeof t == "function" ? t(Object.assign({}, e.rects, {
|
|
382
396
|
placement: e.placement
|
|
383
|
-
})) : t, ia(typeof t != "number" ? t : na(t,
|
|
397
|
+
})) : t, ia(typeof t != "number" ? t : na(t, Si));
|
|
384
398
|
};
|
|
385
399
|
function Gc(i) {
|
|
386
|
-
var t, e = i.state, n = i.name, s = i.options, r = e.elements.arrow, o = e.modifiersData.popperOffsets, a = Bt(e.placement), c =
|
|
400
|
+
var t, e = i.state, n = i.name, s = i.options, r = e.elements.arrow, o = e.modifiersData.popperOffsets, a = Bt(e.placement), c = Cs(a), l = [ft, Ot].indexOf(a) >= 0, h = l ? "height" : "width";
|
|
387
401
|
if (!(!r || !o)) {
|
|
388
|
-
var u = Zc(s.padding, e), f =
|
|
402
|
+
var u = Zc(s.padding, e), f = Ps(r), d = c === "y" ? ut : ft, p = c === "y" ? Mt : Ot, m = e.rects.reference[h] + e.rects.reference[c] - o[c] - e.rects.popper[h], b = o[c] - e.rects.reference[c], y = ki(r), x = y ? c === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, S = m / 2 - b / 2, g = u[d], k = x - f[h] - u[p], w = x / 2 - f[h] / 2 + S, M = ri(g, w, k), O = c;
|
|
389
403
|
e.modifiersData[n] = (t = {}, t[O] = M, t.centerOffset = M - w, t);
|
|
390
404
|
}
|
|
391
405
|
}
|
|
@@ -418,7 +432,7 @@ function il(i, t) {
|
|
|
418
432
|
y: Le(n * s) / s || 0
|
|
419
433
|
};
|
|
420
434
|
}
|
|
421
|
-
function
|
|
435
|
+
function rr(i) {
|
|
422
436
|
var t, e = i.popper, n = i.popperRect, s = i.placement, r = i.variation, o = i.offsets, a = i.position, c = i.gpuAcceleration, l = i.adaptive, h = i.roundOffsets, u = i.isFixed, f = o.x, d = f === void 0 ? 0 : f, p = o.y, m = p === void 0 ? 0 : p, b = typeof h == "function" ? h({
|
|
423
437
|
x: d,
|
|
424
438
|
y: m
|
|
@@ -427,19 +441,19 @@ function sr(i) {
|
|
|
427
441
|
y: m
|
|
428
442
|
};
|
|
429
443
|
d = b.x, m = b.y;
|
|
430
|
-
var y = o.hasOwnProperty("x"), x = o.hasOwnProperty("y"), S =
|
|
444
|
+
var y = o.hasOwnProperty("x"), x = o.hasOwnProperty("y"), S = ft, g = ut, k = window;
|
|
431
445
|
if (l) {
|
|
432
|
-
var w =
|
|
433
|
-
if (w === vt(e) && (w = oe(e), Xt(w).position !== "static" && a === "absolute" && (M = "scrollHeight", O = "scrollWidth")), w = w, s ===
|
|
434
|
-
g =
|
|
435
|
-
var
|
|
446
|
+
var w = ki(e), M = "clientHeight", O = "clientWidth";
|
|
447
|
+
if (w === vt(e) && (w = oe(e), Xt(w).position !== "static" && a === "absolute" && (M = "scrollHeight", O = "scrollWidth")), w = w, s === ut || (s === ft || s === Ot) && r === ui) {
|
|
448
|
+
g = Mt;
|
|
449
|
+
var T = u && w === k && k.visualViewport ? k.visualViewport.height : (
|
|
436
450
|
// $FlowFixMe[prop-missing]
|
|
437
451
|
w[M]
|
|
438
452
|
);
|
|
439
|
-
m -=
|
|
453
|
+
m -= T - n.height, m *= c ? 1 : -1;
|
|
440
454
|
}
|
|
441
|
-
if (s ===
|
|
442
|
-
S =
|
|
455
|
+
if (s === ft || (s === ut || s === Mt) && r === ui) {
|
|
456
|
+
S = Ot;
|
|
443
457
|
var P = u && w === k && k.visualViewport ? k.visualViewport.width : (
|
|
444
458
|
// $FlowFixMe[prop-missing]
|
|
445
459
|
w[O]
|
|
@@ -449,14 +463,14 @@ function sr(i) {
|
|
|
449
463
|
}
|
|
450
464
|
var E = Object.assign({
|
|
451
465
|
position: a
|
|
452
|
-
}, l && el),
|
|
466
|
+
}, l && el), A = h === !0 ? il({
|
|
453
467
|
x: d,
|
|
454
468
|
y: m
|
|
455
469
|
}, vt(e)) : {
|
|
456
470
|
x: d,
|
|
457
471
|
y: m
|
|
458
472
|
};
|
|
459
|
-
if (d =
|
|
473
|
+
if (d = A.x, m = A.y, c) {
|
|
460
474
|
var F;
|
|
461
475
|
return Object.assign({}, E, (F = {}, F[g] = x ? "0" : "", F[S] = y ? "0" : "", F.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + m + "px)" : "translate3d(" + d + "px, " + m + "px, 0)", F));
|
|
462
476
|
}
|
|
@@ -471,12 +485,12 @@ function nl(i) {
|
|
|
471
485
|
gpuAcceleration: s,
|
|
472
486
|
isFixed: t.options.strategy === "fixed"
|
|
473
487
|
};
|
|
474
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
488
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, rr(Object.assign({}, l, {
|
|
475
489
|
offsets: t.modifiersData.popperOffsets,
|
|
476
490
|
position: t.options.strategy,
|
|
477
491
|
adaptive: o,
|
|
478
492
|
roundOffsets: c
|
|
479
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
493
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, rr(Object.assign({}, l, {
|
|
480
494
|
offsets: t.modifiersData.arrow,
|
|
481
495
|
position: "absolute",
|
|
482
496
|
adaptive: !1,
|
|
@@ -492,17 +506,17 @@ const sl = {
|
|
|
492
506
|
fn: nl,
|
|
493
507
|
data: {}
|
|
494
508
|
};
|
|
495
|
-
var
|
|
509
|
+
var Hi = {
|
|
496
510
|
passive: !0
|
|
497
511
|
};
|
|
498
512
|
function rl(i) {
|
|
499
513
|
var t = i.state, e = i.instance, n = i.options, s = n.scroll, r = s === void 0 ? !0 : s, o = n.resize, a = o === void 0 ? !0 : o, c = vt(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
500
514
|
return r && l.forEach(function(h) {
|
|
501
|
-
h.addEventListener("scroll", e.update,
|
|
502
|
-
}), a && c.addEventListener("resize", e.update,
|
|
515
|
+
h.addEventListener("scroll", e.update, Hi);
|
|
516
|
+
}), a && c.addEventListener("resize", e.update, Hi), function() {
|
|
503
517
|
r && l.forEach(function(h) {
|
|
504
|
-
h.removeEventListener("scroll", e.update,
|
|
505
|
-
}), a && c.removeEventListener("resize", e.update,
|
|
518
|
+
h.removeEventListener("scroll", e.update, Hi);
|
|
519
|
+
}), a && c.removeEventListener("resize", e.update, Hi);
|
|
506
520
|
};
|
|
507
521
|
}
|
|
508
522
|
const ol = {
|
|
@@ -520,7 +534,7 @@ var al = {
|
|
|
520
534
|
bottom: "top",
|
|
521
535
|
top: "bottom"
|
|
522
536
|
};
|
|
523
|
-
function
|
|
537
|
+
function on(i) {
|
|
524
538
|
return i.replace(/left|right|bottom|top/g, function(t) {
|
|
525
539
|
return al[t];
|
|
526
540
|
});
|
|
@@ -529,20 +543,20 @@ var cl = {
|
|
|
529
543
|
start: "end",
|
|
530
544
|
end: "start"
|
|
531
545
|
};
|
|
532
|
-
function
|
|
546
|
+
function or(i) {
|
|
533
547
|
return i.replace(/start|end/g, function(t) {
|
|
534
548
|
return cl[t];
|
|
535
549
|
});
|
|
536
550
|
}
|
|
537
|
-
function
|
|
551
|
+
function Rs(i) {
|
|
538
552
|
var t = vt(i), e = t.pageXOffset, n = t.pageYOffset;
|
|
539
553
|
return {
|
|
540
554
|
scrollLeft: e,
|
|
541
555
|
scrollTop: n
|
|
542
556
|
};
|
|
543
557
|
}
|
|
544
|
-
function
|
|
545
|
-
return Ie(oe(i)).left +
|
|
558
|
+
function Ls(i) {
|
|
559
|
+
return Ie(oe(i)).left + Rs(i).scrollLeft;
|
|
546
560
|
}
|
|
547
561
|
function ll(i, t) {
|
|
548
562
|
var e = vt(i), n = oe(i), s = e.visualViewport, r = n.clientWidth, o = n.clientHeight, a = 0, c = 0;
|
|
@@ -554,12 +568,12 @@ function ll(i, t) {
|
|
|
554
568
|
return {
|
|
555
569
|
width: r,
|
|
556
570
|
height: o,
|
|
557
|
-
x: a +
|
|
571
|
+
x: a + Ls(i),
|
|
558
572
|
y: c
|
|
559
573
|
};
|
|
560
574
|
}
|
|
561
575
|
function hl(i) {
|
|
562
|
-
var t, e = oe(i), n =
|
|
576
|
+
var t, e = oe(i), n = Rs(i), s = (t = i.ownerDocument) == null ? void 0 : t.body, r = be(e.scrollWidth, e.clientWidth, s ? s.scrollWidth : 0, s ? s.clientWidth : 0), o = be(e.scrollHeight, e.clientHeight, s ? s.scrollHeight : 0, s ? s.clientHeight : 0), a = -n.scrollLeft + Ls(i), c = -n.scrollTop;
|
|
563
577
|
return Xt(s || e).direction === "rtl" && (a += be(e.clientWidth, s ? s.clientWidth : 0) - r), {
|
|
564
578
|
width: r,
|
|
565
579
|
height: o,
|
|
@@ -567,23 +581,23 @@ function hl(i) {
|
|
|
567
581
|
y: c
|
|
568
582
|
};
|
|
569
583
|
}
|
|
570
|
-
function
|
|
584
|
+
function Is(i) {
|
|
571
585
|
var t = Xt(i), e = t.overflow, n = t.overflowX, s = t.overflowY;
|
|
572
586
|
return /auto|scroll|overlay|hidden/.test(e + s + n);
|
|
573
587
|
}
|
|
574
588
|
function sa(i) {
|
|
575
|
-
return ["html", "body", "#document"].indexOf(Ht(i)) >= 0 ? i.ownerDocument.body :
|
|
589
|
+
return ["html", "body", "#document"].indexOf(Ht(i)) >= 0 ? i.ownerDocument.body : kt(i) && Is(i) ? i : sa(Dn(i));
|
|
576
590
|
}
|
|
577
591
|
function oi(i, t) {
|
|
578
592
|
var e;
|
|
579
593
|
t === void 0 && (t = []);
|
|
580
|
-
var n = sa(i), s = n === ((e = i.ownerDocument) == null ? void 0 : e.body), r = vt(n), o = s ? [r].concat(r.visualViewport || [],
|
|
594
|
+
var n = sa(i), s = n === ((e = i.ownerDocument) == null ? void 0 : e.body), r = vt(n), o = s ? [r].concat(r.visualViewport || [], Is(n) ? n : []) : n, a = t.concat(o);
|
|
581
595
|
return s ? a : (
|
|
582
596
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
583
597
|
a.concat(oi(Dn(o)))
|
|
584
598
|
);
|
|
585
599
|
}
|
|
586
|
-
function
|
|
600
|
+
function ss(i) {
|
|
587
601
|
return Object.assign({}, i, {
|
|
588
602
|
left: i.x,
|
|
589
603
|
top: i.y,
|
|
@@ -595,44 +609,44 @@ function ul(i, t) {
|
|
|
595
609
|
var e = Ie(i, !1, t === "fixed");
|
|
596
610
|
return e.top = e.top + i.clientTop, e.left = e.left + i.clientLeft, e.bottom = e.top + i.clientHeight, e.right = e.left + i.clientWidth, e.width = i.clientWidth, e.height = i.clientHeight, e.x = e.left, e.y = e.top, e;
|
|
597
611
|
}
|
|
598
|
-
function
|
|
599
|
-
return t === Qo ?
|
|
612
|
+
function ar(i, t, e) {
|
|
613
|
+
return t === Qo ? ss(ll(i, e)) : xe(t) ? ul(t, e) : ss(hl(oe(i)));
|
|
600
614
|
}
|
|
601
615
|
function fl(i) {
|
|
602
|
-
var t = oi(Dn(i)), e = ["absolute", "fixed"].indexOf(Xt(i).position) >= 0, n = e &&
|
|
616
|
+
var t = oi(Dn(i)), e = ["absolute", "fixed"].indexOf(Xt(i).position) >= 0, n = e && kt(i) ? ki(i) : i;
|
|
603
617
|
return xe(n) ? t.filter(function(s) {
|
|
604
618
|
return xe(s) && ta(s, n) && Ht(s) !== "body";
|
|
605
619
|
}) : [];
|
|
606
620
|
}
|
|
607
621
|
function dl(i, t, e, n) {
|
|
608
622
|
var s = t === "clippingParents" ? fl(i) : [].concat(t), r = [].concat(s, [e]), o = r[0], a = r.reduce(function(c, l) {
|
|
609
|
-
var h =
|
|
610
|
-
return c.top = be(h.top, c.top), c.right =
|
|
611
|
-
},
|
|
623
|
+
var h = ar(i, l, n);
|
|
624
|
+
return c.top = be(h.top, c.top), c.right = gn(h.right, c.right), c.bottom = gn(h.bottom, c.bottom), c.left = be(h.left, c.left), c;
|
|
625
|
+
}, ar(i, o, n));
|
|
612
626
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
613
627
|
}
|
|
614
628
|
function ra(i) {
|
|
615
629
|
var t = i.reference, e = i.element, n = i.placement, s = n ? Bt(n) : null, r = n ? Fe(n) : null, o = t.x + t.width / 2 - e.width / 2, a = t.y + t.height / 2 - e.height / 2, c;
|
|
616
630
|
switch (s) {
|
|
617
|
-
case
|
|
631
|
+
case ut:
|
|
618
632
|
c = {
|
|
619
633
|
x: o,
|
|
620
634
|
y: t.y - e.height
|
|
621
635
|
};
|
|
622
636
|
break;
|
|
623
|
-
case
|
|
637
|
+
case Mt:
|
|
624
638
|
c = {
|
|
625
639
|
x: o,
|
|
626
640
|
y: t.y + t.height
|
|
627
641
|
};
|
|
628
642
|
break;
|
|
629
|
-
case
|
|
643
|
+
case Ot:
|
|
630
644
|
c = {
|
|
631
645
|
x: t.x + t.width,
|
|
632
646
|
y: a
|
|
633
647
|
};
|
|
634
648
|
break;
|
|
635
|
-
case
|
|
649
|
+
case ft:
|
|
636
650
|
c = {
|
|
637
651
|
x: t.x - e.width,
|
|
638
652
|
y: a
|
|
@@ -644,7 +658,7 @@ function ra(i) {
|
|
|
644
658
|
y: t.y
|
|
645
659
|
};
|
|
646
660
|
}
|
|
647
|
-
var l = s ?
|
|
661
|
+
var l = s ? Cs(s) : null;
|
|
648
662
|
if (l != null) {
|
|
649
663
|
var h = l === "y" ? "height" : "width";
|
|
650
664
|
switch (r) {
|
|
@@ -660,31 +674,31 @@ function ra(i) {
|
|
|
660
674
|
}
|
|
661
675
|
function fi(i, t) {
|
|
662
676
|
t === void 0 && (t = {});
|
|
663
|
-
var e = t, n = e.placement, s = n === void 0 ? i.placement : n, r = e.strategy, o = r === void 0 ? i.strategy : r, a = e.boundary, c = a === void 0 ? Lc : a, l = e.rootBoundary, h = l === void 0 ? Qo : l, u = e.elementContext, f = u === void 0 ? qe : u, d = e.altBoundary, p = d === void 0 ? !1 : d, m = e.padding, b = m === void 0 ? 0 : m, y = ia(typeof b != "number" ? b : na(b,
|
|
677
|
+
var e = t, n = e.placement, s = n === void 0 ? i.placement : n, r = e.strategy, o = r === void 0 ? i.strategy : r, a = e.boundary, c = a === void 0 ? Lc : a, l = e.rootBoundary, h = l === void 0 ? Qo : l, u = e.elementContext, f = u === void 0 ? qe : u, d = e.altBoundary, p = d === void 0 ? !1 : d, m = e.padding, b = m === void 0 ? 0 : m, y = ia(typeof b != "number" ? b : na(b, Si)), x = f === qe ? Ic : qe, S = i.rects.popper, g = i.elements[p ? x : f], k = dl(xe(g) ? g : g.contextElement || oe(i.elements.popper), c, h, o), w = Ie(i.elements.reference), M = ra({
|
|
664
678
|
reference: w,
|
|
665
679
|
element: S,
|
|
666
680
|
strategy: "absolute",
|
|
667
681
|
placement: s
|
|
668
|
-
}), O =
|
|
669
|
-
top: k.top -
|
|
670
|
-
bottom:
|
|
671
|
-
left: k.left -
|
|
672
|
-
right:
|
|
682
|
+
}), O = ss(Object.assign({}, S, M)), T = f === qe ? O : w, P = {
|
|
683
|
+
top: k.top - T.top + y.top,
|
|
684
|
+
bottom: T.bottom - k.bottom + y.bottom,
|
|
685
|
+
left: k.left - T.left + y.left,
|
|
686
|
+
right: T.right - k.right + y.right
|
|
673
687
|
}, E = i.modifiersData.offset;
|
|
674
688
|
if (f === qe && E) {
|
|
675
|
-
var
|
|
689
|
+
var A = E[s];
|
|
676
690
|
Object.keys(P).forEach(function(F) {
|
|
677
|
-
var B = [
|
|
678
|
-
P[F] +=
|
|
691
|
+
var B = [Ot, Mt].indexOf(F) >= 0 ? 1 : -1, L = [ut, Mt].indexOf(F) >= 0 ? "y" : "x";
|
|
692
|
+
P[F] += A[L] * B;
|
|
679
693
|
});
|
|
680
694
|
}
|
|
681
695
|
return P;
|
|
682
696
|
}
|
|
683
697
|
function pl(i, t) {
|
|
684
698
|
t === void 0 && (t = {});
|
|
685
|
-
var e = t, n = e.placement, s = e.boundary, r = e.rootBoundary, o = e.padding, a = e.flipVariations, c = e.allowedAutoPlacements, l = c === void 0 ? Zo : c, h = Fe(n), u = h ? a ?
|
|
699
|
+
var e = t, n = e.placement, s = e.boundary, r = e.rootBoundary, o = e.padding, a = e.flipVariations, c = e.allowedAutoPlacements, l = c === void 0 ? Zo : c, h = Fe(n), u = h ? a ? nr : nr.filter(function(p) {
|
|
686
700
|
return Fe(p) === h;
|
|
687
|
-
}) :
|
|
701
|
+
}) : Si, f = u.filter(function(p) {
|
|
688
702
|
return l.indexOf(p) >= 0;
|
|
689
703
|
});
|
|
690
704
|
f.length === 0 && (f = u);
|
|
@@ -701,16 +715,16 @@ function pl(i, t) {
|
|
|
701
715
|
});
|
|
702
716
|
}
|
|
703
717
|
function gl(i) {
|
|
704
|
-
if (Bt(i) ===
|
|
718
|
+
if (Bt(i) === Ds)
|
|
705
719
|
return [];
|
|
706
|
-
var t =
|
|
707
|
-
return [
|
|
720
|
+
var t = on(i);
|
|
721
|
+
return [or(i), t, or(t)];
|
|
708
722
|
}
|
|
709
723
|
function ml(i) {
|
|
710
724
|
var t = i.state, e = i.options, n = i.name;
|
|
711
725
|
if (!t.modifiersData[n]._skip) {
|
|
712
|
-
for (var s = e.mainAxis, r = s === void 0 ? !0 : s, o = e.altAxis, a = o === void 0 ? !0 : o, c = e.fallbackPlacements, l = e.padding, h = e.boundary, u = e.rootBoundary, f = e.altBoundary, d = e.flipVariations, p = d === void 0 ? !0 : d, m = e.allowedAutoPlacements, b = t.options.placement, y = Bt(b), x = y === b, S = c || (x || !p ? [
|
|
713
|
-
return et.concat(Bt(it) ===
|
|
726
|
+
for (var s = e.mainAxis, r = s === void 0 ? !0 : s, o = e.altAxis, a = o === void 0 ? !0 : o, c = e.fallbackPlacements, l = e.padding, h = e.boundary, u = e.rootBoundary, f = e.altBoundary, d = e.flipVariations, p = d === void 0 ? !0 : d, m = e.allowedAutoPlacements, b = t.options.placement, y = Bt(b), x = y === b, S = c || (x || !p ? [on(b)] : gl(b)), g = [b].concat(S).reduce(function(et, it) {
|
|
727
|
+
return et.concat(Bt(it) === Ds ? pl(t, {
|
|
714
728
|
placement: it,
|
|
715
729
|
boundary: h,
|
|
716
730
|
rootBoundary: u,
|
|
@@ -718,20 +732,20 @@ function ml(i) {
|
|
|
718
732
|
flipVariations: p,
|
|
719
733
|
allowedAutoPlacements: m
|
|
720
734
|
}) : it);
|
|
721
|
-
}, []), k = t.rects.reference, w = t.rects.popper, M = /* @__PURE__ */ new Map(), O = !0,
|
|
722
|
-
var E = g[P],
|
|
735
|
+
}, []), k = t.rects.reference, w = t.rects.popper, M = /* @__PURE__ */ new Map(), O = !0, T = g[0], P = 0; P < g.length; P++) {
|
|
736
|
+
var E = g[P], A = Bt(E), F = Fe(E) === Re, B = [ut, Mt].indexOf(A) >= 0, L = B ? "width" : "height", z = fi(t, {
|
|
723
737
|
placement: E,
|
|
724
738
|
boundary: h,
|
|
725
739
|
rootBoundary: u,
|
|
726
740
|
altBoundary: f,
|
|
727
741
|
padding: l
|
|
728
|
-
}), W = B ? F ?
|
|
729
|
-
k[L] > w[L] && (W =
|
|
730
|
-
var q =
|
|
731
|
-
if (r && ot.push(z[
|
|
742
|
+
}), W = B ? F ? Ot : ft : F ? Mt : ut;
|
|
743
|
+
k[L] > w[L] && (W = on(W));
|
|
744
|
+
var q = on(W), ot = [];
|
|
745
|
+
if (r && ot.push(z[A] <= 0), a && ot.push(z[W] <= 0, z[q] <= 0), ot.every(function(et) {
|
|
732
746
|
return et;
|
|
733
747
|
})) {
|
|
734
|
-
|
|
748
|
+
T = E, O = !1;
|
|
735
749
|
break;
|
|
736
750
|
}
|
|
737
751
|
M.set(E, ot);
|
|
@@ -746,12 +760,12 @@ function ml(i) {
|
|
|
746
760
|
});
|
|
747
761
|
});
|
|
748
762
|
if (nt)
|
|
749
|
-
return
|
|
763
|
+
return T = nt, "break";
|
|
750
764
|
}, tt = J; tt > 0; tt--) {
|
|
751
|
-
var
|
|
752
|
-
if (
|
|
765
|
+
var dt = yt(tt);
|
|
766
|
+
if (dt === "break") break;
|
|
753
767
|
}
|
|
754
|
-
t.placement !==
|
|
768
|
+
t.placement !== T && (t.modifiersData[n]._skip = !0, t.placement = T, t.reset = !0);
|
|
755
769
|
}
|
|
756
770
|
}
|
|
757
771
|
const bl = {
|
|
@@ -764,7 +778,7 @@ const bl = {
|
|
|
764
778
|
_skip: !1
|
|
765
779
|
}
|
|
766
780
|
};
|
|
767
|
-
function
|
|
781
|
+
function cr(i, t, e) {
|
|
768
782
|
return e === void 0 && (e = {
|
|
769
783
|
x: 0,
|
|
770
784
|
y: 0
|
|
@@ -775,8 +789,8 @@ function ar(i, t, e) {
|
|
|
775
789
|
left: i.left - t.width - e.x
|
|
776
790
|
};
|
|
777
791
|
}
|
|
778
|
-
function
|
|
779
|
-
return [
|
|
792
|
+
function lr(i) {
|
|
793
|
+
return [ut, Ot, Mt, ft].some(function(t) {
|
|
780
794
|
return i[t] >= 0;
|
|
781
795
|
});
|
|
782
796
|
}
|
|
@@ -785,7 +799,7 @@ function vl(i) {
|
|
|
785
799
|
elementContext: "reference"
|
|
786
800
|
}), a = fi(t, {
|
|
787
801
|
altBoundary: !0
|
|
788
|
-
}), c =
|
|
802
|
+
}), c = cr(o, n), l = cr(a, s, r), h = lr(c), u = lr(l);
|
|
789
803
|
t.modifiersData[e] = {
|
|
790
804
|
referenceClippingOffsets: c,
|
|
791
805
|
popperEscapeOffsets: l,
|
|
@@ -804,10 +818,10 @@ const yl = {
|
|
|
804
818
|
fn: vl
|
|
805
819
|
};
|
|
806
820
|
function xl(i, t, e) {
|
|
807
|
-
var n = Bt(i), s = [
|
|
821
|
+
var n = Bt(i), s = [ft, ut].indexOf(n) >= 0 ? -1 : 1, r = typeof e == "function" ? e(Object.assign({}, t, {
|
|
808
822
|
placement: i
|
|
809
823
|
})) : e, o = r[0], a = r[1];
|
|
810
|
-
return o = o || 0, a = (a || 0) * s, [
|
|
824
|
+
return o = o || 0, a = (a || 0) * s, [ft, Ot].indexOf(n) >= 0 ? {
|
|
811
825
|
x: a,
|
|
812
826
|
y: o
|
|
813
827
|
} : {
|
|
@@ -853,48 +867,48 @@ function Ol(i) {
|
|
|
853
867
|
rootBoundary: l,
|
|
854
868
|
padding: u,
|
|
855
869
|
altBoundary: h
|
|
856
|
-
}), y = Bt(t.placement), x = Fe(t.placement), S = !x, g =
|
|
870
|
+
}), y = Bt(t.placement), x = Fe(t.placement), S = !x, g = Cs(y), k = Ml(g), w = t.modifiersData.popperOffsets, M = t.rects.reference, O = t.rects.popper, T = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
857
871
|
placement: t.placement
|
|
858
|
-
})) : m, P = typeof
|
|
859
|
-
mainAxis:
|
|
860
|
-
altAxis:
|
|
872
|
+
})) : m, P = typeof T == "number" ? {
|
|
873
|
+
mainAxis: T,
|
|
874
|
+
altAxis: T
|
|
861
875
|
} : Object.assign({
|
|
862
876
|
mainAxis: 0,
|
|
863
877
|
altAxis: 0
|
|
864
|
-
},
|
|
878
|
+
}, T), E = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, A = {
|
|
865
879
|
x: 0,
|
|
866
880
|
y: 0
|
|
867
881
|
};
|
|
868
882
|
if (w) {
|
|
869
883
|
if (r) {
|
|
870
|
-
var F, B = g === "y" ?
|
|
884
|
+
var F, B = g === "y" ? ut : ft, L = g === "y" ? Mt : Ot, z = g === "y" ? "height" : "width", W = w[g], q = W + b[B], ot = W - b[L], J = d ? -O[z] / 2 : 0, yt = x === Re ? M[z] : O[z], tt = x === Re ? -O[z] : -M[z], dt = t.elements.arrow, et = d && dt ? Ps(dt) : {
|
|
871
885
|
width: 0,
|
|
872
886
|
height: 0
|
|
873
|
-
}, it = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ea(), nt = it[B], we = it[L], Nt = ri(0, M[z], et[z]), Se = S ? M[z] / 2 - J - Nt - nt - P.mainAxis : yt - Nt - nt - P.mainAxis, qt = S ? -M[z] / 2 + J + Nt + we + P.mainAxis : tt + Nt + we + P.mainAxis, ke = t.elements.arrow &&
|
|
874
|
-
w[g] = Ue,
|
|
887
|
+
}, it = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ea(), nt = it[B], we = it[L], Nt = ri(0, M[z], et[z]), Se = S ? M[z] / 2 - J - Nt - nt - P.mainAxis : yt - Nt - nt - P.mainAxis, qt = S ? -M[z] / 2 + J + Nt + we + P.mainAxis : tt + Nt + we + P.mainAxis, ke = t.elements.arrow && ki(t.elements.arrow), Ai = ke ? g === "y" ? ke.clientTop || 0 : ke.clientLeft || 0 : 0, $e = (F = E == null ? void 0 : E[g]) != null ? F : 0, Di = W + Se - $e - Ai, Ei = W + qt - $e, Ue = ri(d ? gn(q, Di) : q, W, d ? be(ot, Ei) : ot);
|
|
888
|
+
w[g] = Ue, A[g] = Ue - W;
|
|
875
889
|
}
|
|
876
890
|
if (a) {
|
|
877
|
-
var Ye,
|
|
878
|
-
w[k] =
|
|
891
|
+
var Ye, Pi = g === "x" ? ut : ft, Ci = g === "x" ? Mt : Ot, jt = w[k], Qt = k === "y" ? "height" : "width", Xe = jt + b[Pi], ce = jt - b[Ci], Ke = [ut, ft].indexOf(y) !== -1, Ri = (Ye = E == null ? void 0 : E[k]) != null ? Ye : 0, Li = Ke ? Xe : jt - M[Qt] - O[Qt] - Ri + P.altAxis, Ii = Ke ? jt + M[Qt] + O[Qt] - Ri - P.altAxis : ce, Fi = d && Ke ? Qc(Li, jt, Ii) : ri(d ? Li : Xe, jt, d ? Ii : ce);
|
|
892
|
+
w[k] = Fi, A[k] = Fi - jt;
|
|
879
893
|
}
|
|
880
|
-
t.modifiersData[n] =
|
|
894
|
+
t.modifiersData[n] = A;
|
|
881
895
|
}
|
|
882
896
|
}
|
|
883
|
-
const
|
|
897
|
+
const Tl = {
|
|
884
898
|
name: "preventOverflow",
|
|
885
899
|
enabled: !0,
|
|
886
900
|
phase: "main",
|
|
887
901
|
fn: Ol,
|
|
888
902
|
requiresIfExists: ["offset"]
|
|
889
903
|
};
|
|
890
|
-
function
|
|
904
|
+
function Al(i) {
|
|
891
905
|
return {
|
|
892
906
|
scrollLeft: i.scrollLeft,
|
|
893
907
|
scrollTop: i.scrollTop
|
|
894
908
|
};
|
|
895
909
|
}
|
|
896
910
|
function Dl(i) {
|
|
897
|
-
return i === vt(i) || !
|
|
911
|
+
return i === vt(i) || !kt(i) ? Rs(i) : Al(i);
|
|
898
912
|
}
|
|
899
913
|
function El(i) {
|
|
900
914
|
var t = i.getBoundingClientRect(), e = Le(t.width) / i.offsetWidth || 1, n = Le(t.height) / i.offsetHeight || 1;
|
|
@@ -902,7 +916,7 @@ function El(i) {
|
|
|
902
916
|
}
|
|
903
917
|
function Pl(i, t, e) {
|
|
904
918
|
e === void 0 && (e = !1);
|
|
905
|
-
var n =
|
|
919
|
+
var n = kt(t), s = kt(t) && El(t), r = oe(t), o = Ie(i, s, e), a = {
|
|
906
920
|
scrollLeft: 0,
|
|
907
921
|
scrollTop: 0
|
|
908
922
|
}, c = {
|
|
@@ -910,7 +924,7 @@ function Pl(i, t, e) {
|
|
|
910
924
|
y: 0
|
|
911
925
|
};
|
|
912
926
|
return (n || !n && !e) && ((Ht(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
913
|
-
|
|
927
|
+
Is(r)) && (a = Dl(t)), kt(t) ? (c = Ie(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : r && (c.x = Ls(r))), {
|
|
914
928
|
x: o.left + a.scrollLeft - c.x,
|
|
915
929
|
y: o.top + a.scrollTop - c.y,
|
|
916
930
|
width: o.width,
|
|
@@ -966,12 +980,12 @@ function Il(i) {
|
|
|
966
980
|
return t[e];
|
|
967
981
|
});
|
|
968
982
|
}
|
|
969
|
-
var
|
|
983
|
+
var hr = {
|
|
970
984
|
placement: "bottom",
|
|
971
985
|
modifiers: [],
|
|
972
986
|
strategy: "absolute"
|
|
973
987
|
};
|
|
974
|
-
function
|
|
988
|
+
function ur() {
|
|
975
989
|
for (var i = arguments.length, t = new Array(i), e = 0; e < i; e++)
|
|
976
990
|
t[e] = arguments[e];
|
|
977
991
|
return !t.some(function(n) {
|
|
@@ -980,13 +994,13 @@ function hr() {
|
|
|
980
994
|
}
|
|
981
995
|
function Fl(i) {
|
|
982
996
|
i === void 0 && (i = {});
|
|
983
|
-
var t = i, e = t.defaultModifiers, n = e === void 0 ? [] : e, s = t.defaultOptions, r = s === void 0 ?
|
|
997
|
+
var t = i, e = t.defaultModifiers, n = e === void 0 ? [] : e, s = t.defaultOptions, r = s === void 0 ? hr : s;
|
|
984
998
|
return function(a, c, l) {
|
|
985
999
|
l === void 0 && (l = r);
|
|
986
1000
|
var h = {
|
|
987
1001
|
placement: "bottom",
|
|
988
1002
|
orderedModifiers: [],
|
|
989
|
-
options: Object.assign({},
|
|
1003
|
+
options: Object.assign({}, hr, r),
|
|
990
1004
|
modifiersData: {},
|
|
991
1005
|
elements: {
|
|
992
1006
|
reference: a,
|
|
@@ -1015,10 +1029,10 @@ function Fl(i) {
|
|
|
1015
1029
|
forceUpdate: function() {
|
|
1016
1030
|
if (!f) {
|
|
1017
1031
|
var y = h.elements, x = y.reference, S = y.popper;
|
|
1018
|
-
if (
|
|
1032
|
+
if (ur(x, S)) {
|
|
1019
1033
|
h.rects = {
|
|
1020
|
-
reference: Pl(x,
|
|
1021
|
-
popper:
|
|
1034
|
+
reference: Pl(x, ki(S), h.options.strategy === "fixed"),
|
|
1035
|
+
popper: Ps(S)
|
|
1022
1036
|
}, h.reset = !1, h.placement = h.options.placement, h.orderedModifiers.forEach(function(P) {
|
|
1023
1037
|
return h.modifiersData[P.name] = Object.assign({}, P.data);
|
|
1024
1038
|
});
|
|
@@ -1027,11 +1041,11 @@ function Fl(i) {
|
|
|
1027
1041
|
h.reset = !1, g = -1;
|
|
1028
1042
|
continue;
|
|
1029
1043
|
}
|
|
1030
|
-
var k = h.orderedModifiers[g], w = k.fn, M = k.options, O = M === void 0 ? {} : M,
|
|
1044
|
+
var k = h.orderedModifiers[g], w = k.fn, M = k.options, O = M === void 0 ? {} : M, T = k.name;
|
|
1031
1045
|
typeof w == "function" && (h = w({
|
|
1032
1046
|
state: h,
|
|
1033
1047
|
options: O,
|
|
1034
|
-
name:
|
|
1048
|
+
name: T,
|
|
1035
1049
|
instance: d
|
|
1036
1050
|
}) || h);
|
|
1037
1051
|
}
|
|
@@ -1049,7 +1063,7 @@ function Fl(i) {
|
|
|
1049
1063
|
m(), f = !0;
|
|
1050
1064
|
}
|
|
1051
1065
|
};
|
|
1052
|
-
if (!
|
|
1066
|
+
if (!ur(a, c))
|
|
1053
1067
|
return d;
|
|
1054
1068
|
d.setOptions(l).then(function(b) {
|
|
1055
1069
|
!f && l.onFirstUpdate && l.onFirstUpdate(b);
|
|
@@ -1077,7 +1091,7 @@ function Fl(i) {
|
|
|
1077
1091
|
return d;
|
|
1078
1092
|
};
|
|
1079
1093
|
}
|
|
1080
|
-
var zl = [ol, kl, sl, Go, wl, bl,
|
|
1094
|
+
var zl = [ol, kl, sl, Go, wl, bl, Tl, tl, yl], Bl = /* @__PURE__ */ Fl({
|
|
1081
1095
|
defaultModifiers: zl
|
|
1082
1096
|
}), Hl = "tippy-box", oa = "tippy-content", Nl = "tippy-backdrop", aa = "tippy-arrow", ca = "tippy-svg-arrow", pe = {
|
|
1083
1097
|
passive: !0,
|
|
@@ -1095,14 +1109,14 @@ function zn(i, t, e) {
|
|
|
1095
1109
|
}
|
|
1096
1110
|
return i;
|
|
1097
1111
|
}
|
|
1098
|
-
function
|
|
1112
|
+
function Fs(i, t) {
|
|
1099
1113
|
var e = {}.toString.call(i);
|
|
1100
1114
|
return e.indexOf("[object") === 0 && e.indexOf(t + "]") > -1;
|
|
1101
1115
|
}
|
|
1102
1116
|
function ha(i, t) {
|
|
1103
1117
|
return typeof i == "function" ? i.apply(void 0, t) : i;
|
|
1104
1118
|
}
|
|
1105
|
-
function
|
|
1119
|
+
function fr(i, t) {
|
|
1106
1120
|
if (t === 0)
|
|
1107
1121
|
return i;
|
|
1108
1122
|
var e;
|
|
@@ -1124,7 +1138,7 @@ function Vl(i) {
|
|
|
1124
1138
|
function De(i) {
|
|
1125
1139
|
return [].concat(i);
|
|
1126
1140
|
}
|
|
1127
|
-
function
|
|
1141
|
+
function dr(i, t) {
|
|
1128
1142
|
i.indexOf(t) === -1 && i.push(t);
|
|
1129
1143
|
}
|
|
1130
1144
|
function $l(i) {
|
|
@@ -1135,10 +1149,10 @@ function $l(i) {
|
|
|
1135
1149
|
function Ul(i) {
|
|
1136
1150
|
return i.split("-")[0];
|
|
1137
1151
|
}
|
|
1138
|
-
function
|
|
1152
|
+
function mn(i) {
|
|
1139
1153
|
return [].slice.call(i);
|
|
1140
1154
|
}
|
|
1141
|
-
function
|
|
1155
|
+
function pr(i) {
|
|
1142
1156
|
return Object.keys(i).reduce(function(t, e) {
|
|
1143
1157
|
return i[e] !== void 0 && (t[e] = i[e]), t;
|
|
1144
1158
|
}, {});
|
|
@@ -1148,27 +1162,27 @@ function ai() {
|
|
|
1148
1162
|
}
|
|
1149
1163
|
function di(i) {
|
|
1150
1164
|
return ["Element", "Fragment"].some(function(t) {
|
|
1151
|
-
return
|
|
1165
|
+
return Fs(i, t);
|
|
1152
1166
|
});
|
|
1153
1167
|
}
|
|
1154
1168
|
function Yl(i) {
|
|
1155
|
-
return
|
|
1169
|
+
return Fs(i, "NodeList");
|
|
1156
1170
|
}
|
|
1157
1171
|
function Xl(i) {
|
|
1158
|
-
return
|
|
1172
|
+
return Fs(i, "MouseEvent");
|
|
1159
1173
|
}
|
|
1160
1174
|
function Kl(i) {
|
|
1161
1175
|
return !!(i && i._tippy && i._tippy.reference === i);
|
|
1162
1176
|
}
|
|
1163
1177
|
function ql(i) {
|
|
1164
|
-
return di(i) ? [i] : Yl(i) ?
|
|
1178
|
+
return di(i) ? [i] : Yl(i) ? mn(i) : Array.isArray(i) ? i : mn(document.querySelectorAll(i));
|
|
1165
1179
|
}
|
|
1166
1180
|
function Bn(i, t) {
|
|
1167
1181
|
i.forEach(function(e) {
|
|
1168
1182
|
e && (e.style.transitionDuration = t + "ms");
|
|
1169
1183
|
});
|
|
1170
1184
|
}
|
|
1171
|
-
function
|
|
1185
|
+
function gr(i, t) {
|
|
1172
1186
|
i.forEach(function(e) {
|
|
1173
1187
|
e && e.setAttribute("data-state", t);
|
|
1174
1188
|
});
|
|
@@ -1193,7 +1207,7 @@ function Hn(i, t, e) {
|
|
|
1193
1207
|
i[n](s, e);
|
|
1194
1208
|
});
|
|
1195
1209
|
}
|
|
1196
|
-
function
|
|
1210
|
+
function mr(i, t) {
|
|
1197
1211
|
for (var e = t; e; ) {
|
|
1198
1212
|
var n;
|
|
1199
1213
|
if (i.contains(e))
|
|
@@ -1204,13 +1218,13 @@ function gr(i, t) {
|
|
|
1204
1218
|
}
|
|
1205
1219
|
var Lt = {
|
|
1206
1220
|
isTouch: !1
|
|
1207
|
-
},
|
|
1221
|
+
}, br = 0;
|
|
1208
1222
|
function Gl() {
|
|
1209
1223
|
Lt.isTouch || (Lt.isTouch = !0, window.performance && document.addEventListener("mousemove", ua));
|
|
1210
1224
|
}
|
|
1211
1225
|
function ua() {
|
|
1212
1226
|
var i = performance.now();
|
|
1213
|
-
i -
|
|
1227
|
+
i - br < 20 && (Lt.isTouch = !1, document.removeEventListener("mousemove", ua)), br = i;
|
|
1214
1228
|
}
|
|
1215
1229
|
function Jl() {
|
|
1216
1230
|
var i = document.activeElement;
|
|
@@ -1226,19 +1240,19 @@ var eh = typeof window < "u" && typeof document < "u", ih = eh ? (
|
|
|
1226
1240
|
// @ts-ignore
|
|
1227
1241
|
!!window.msCrypto
|
|
1228
1242
|
) : !1;
|
|
1229
|
-
function
|
|
1243
|
+
function Te(i) {
|
|
1230
1244
|
var t = i === "destroy" ? "n already-" : " ";
|
|
1231
1245
|
return [i + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
1232
1246
|
}
|
|
1233
|
-
function
|
|
1247
|
+
function vr(i) {
|
|
1234
1248
|
var t = /[ \t]{2,}/g, e = /^[ \t]*/gm;
|
|
1235
1249
|
return i.replace(t, " ").replace(e, "").trim();
|
|
1236
1250
|
}
|
|
1237
1251
|
function nh(i) {
|
|
1238
|
-
return
|
|
1252
|
+
return vr(`
|
|
1239
1253
|
%ctippy.js
|
|
1240
1254
|
|
|
1241
|
-
%c` +
|
|
1255
|
+
%c` + vr(i) + `
|
|
1242
1256
|
|
|
1243
1257
|
%c👷 This is a development-only message. It will be removed in production.
|
|
1244
1258
|
`);
|
|
@@ -1265,7 +1279,7 @@ function Ut(i, t) {
|
|
|
1265
1279
|
pi.add(t), (e = console).warn.apply(e, fa(t));
|
|
1266
1280
|
}
|
|
1267
1281
|
}
|
|
1268
|
-
function
|
|
1282
|
+
function rs(i, t) {
|
|
1269
1283
|
if (i && !pi.has(t)) {
|
|
1270
1284
|
var e;
|
|
1271
1285
|
pi.add(t), (e = console).error.apply(e, fa(t));
|
|
@@ -1273,7 +1287,7 @@ function ss(i, t) {
|
|
|
1273
1287
|
}
|
|
1274
1288
|
function rh(i) {
|
|
1275
1289
|
var t = !i, e = Object.prototype.toString.call(i) === "[object Object]" && !i.addEventListener;
|
|
1276
|
-
|
|
1290
|
+
rs(t, ["tippy() was passed", "`" + String(i) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), rs(e, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
1277
1291
|
}
|
|
1278
1292
|
var da = {
|
|
1279
1293
|
animateFill: !1,
|
|
@@ -1290,7 +1304,7 @@ var da = {
|
|
|
1290
1304
|
role: "tooltip",
|
|
1291
1305
|
theme: "",
|
|
1292
1306
|
zIndex: 9999
|
|
1293
|
-
},
|
|
1307
|
+
}, gt = Object.assign({
|
|
1294
1308
|
appendTo: la,
|
|
1295
1309
|
aria: {
|
|
1296
1310
|
content: "auto",
|
|
@@ -1338,11 +1352,11 @@ var da = {
|
|
|
1338
1352
|
touch: !0,
|
|
1339
1353
|
trigger: "mouseenter focus",
|
|
1340
1354
|
triggerTarget: null
|
|
1341
|
-
}, da, oh), ah = Object.keys(
|
|
1355
|
+
}, da, oh), ah = Object.keys(gt), ch = function(t) {
|
|
1342
1356
|
process.env.NODE_ENV !== "production" && ga(t, []);
|
|
1343
1357
|
var e = Object.keys(t);
|
|
1344
1358
|
e.forEach(function(n) {
|
|
1345
|
-
|
|
1359
|
+
gt[n] = t[n];
|
|
1346
1360
|
});
|
|
1347
1361
|
};
|
|
1348
1362
|
function pa(i) {
|
|
@@ -1350,14 +1364,14 @@ function pa(i) {
|
|
|
1350
1364
|
var r = s.name, o = s.defaultValue;
|
|
1351
1365
|
if (r) {
|
|
1352
1366
|
var a;
|
|
1353
|
-
n[r] = i[r] !== void 0 ? i[r] : (a =
|
|
1367
|
+
n[r] = i[r] !== void 0 ? i[r] : (a = gt[r]) != null ? a : o;
|
|
1354
1368
|
}
|
|
1355
1369
|
return n;
|
|
1356
1370
|
}, {});
|
|
1357
1371
|
return Object.assign({}, i, e);
|
|
1358
1372
|
}
|
|
1359
1373
|
function lh(i, t) {
|
|
1360
|
-
var e = t ? Object.keys(pa(Object.assign({},
|
|
1374
|
+
var e = t ? Object.keys(pa(Object.assign({}, gt, {
|
|
1361
1375
|
plugins: t
|
|
1362
1376
|
}))) : ah, n = e.reduce(function(s, r) {
|
|
1363
1377
|
var o = (i.getAttribute("data-tippy-" + r) || "").trim();
|
|
@@ -1375,11 +1389,11 @@ function lh(i, t) {
|
|
|
1375
1389
|
}, {});
|
|
1376
1390
|
return n;
|
|
1377
1391
|
}
|
|
1378
|
-
function
|
|
1392
|
+
function yr(i, t) {
|
|
1379
1393
|
var e = Object.assign({}, t, {
|
|
1380
1394
|
content: ha(t.content, [i])
|
|
1381
1395
|
}, t.ignoreAttributes ? {} : lh(i, t.plugins));
|
|
1382
|
-
return e.aria = Object.assign({},
|
|
1396
|
+
return e.aria = Object.assign({}, gt.aria, e.aria), e.aria = {
|
|
1383
1397
|
expanded: e.aria.expanded === "auto" ? t.interactive : e.aria.expanded,
|
|
1384
1398
|
content: e.aria.content === "auto" ? t.interactive ? null : "describedby" : e.aria.content
|
|
1385
1399
|
}, e;
|
|
@@ -1388,7 +1402,7 @@ function ga(i, t) {
|
|
|
1388
1402
|
i === void 0 && (i = {}), t === void 0 && (t = []);
|
|
1389
1403
|
var e = Object.keys(i);
|
|
1390
1404
|
e.forEach(function(n) {
|
|
1391
|
-
var s = Wl(
|
|
1405
|
+
var s = Wl(gt, Object.keys(da)), r = !jl(s, n);
|
|
1392
1406
|
r && (r = t.filter(function(o) {
|
|
1393
1407
|
return o.name === n;
|
|
1394
1408
|
}).length === 0), Ut(r, ["`" + n + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
@@ -1400,18 +1414,18 @@ function ga(i, t) {
|
|
|
1400
1414
|
var hh = function() {
|
|
1401
1415
|
return "innerHTML";
|
|
1402
1416
|
};
|
|
1403
|
-
function
|
|
1417
|
+
function os(i, t) {
|
|
1404
1418
|
i[hh()] = t;
|
|
1405
1419
|
}
|
|
1406
|
-
function
|
|
1420
|
+
function xr(i) {
|
|
1407
1421
|
var t = ai();
|
|
1408
|
-
return i === !0 ? t.className = aa : (t.className = ca, di(i) ? t.appendChild(i) :
|
|
1422
|
+
return i === !0 ? t.className = aa : (t.className = ca, di(i) ? t.appendChild(i) : os(t, i)), t;
|
|
1409
1423
|
}
|
|
1410
|
-
function
|
|
1411
|
-
di(t.content) ? (
|
|
1424
|
+
function _r(i, t) {
|
|
1425
|
+
di(t.content) ? (os(i, ""), i.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? os(i, t.content) : i.textContent = t.content);
|
|
1412
1426
|
}
|
|
1413
|
-
function
|
|
1414
|
-
var t = i.firstElementChild, e =
|
|
1427
|
+
function as(i) {
|
|
1428
|
+
var t = i.firstElementChild, e = mn(t.children);
|
|
1415
1429
|
return {
|
|
1416
1430
|
box: t,
|
|
1417
1431
|
content: e.find(function(n) {
|
|
@@ -1429,10 +1443,10 @@ function ma(i) {
|
|
|
1429
1443
|
var t = ai(), e = ai();
|
|
1430
1444
|
e.className = Hl, e.setAttribute("data-state", "hidden"), e.setAttribute("tabindex", "-1");
|
|
1431
1445
|
var n = ai();
|
|
1432
|
-
n.className = oa, n.setAttribute("data-state", "hidden"),
|
|
1446
|
+
n.className = oa, n.setAttribute("data-state", "hidden"), _r(n, i.props), t.appendChild(e), e.appendChild(n), s(i.props, i.props);
|
|
1433
1447
|
function s(r, o) {
|
|
1434
|
-
var a =
|
|
1435
|
-
o.theme ? c.setAttribute("data-theme", o.theme) : c.removeAttribute("data-theme"), typeof o.animation == "string" ? c.setAttribute("data-animation", o.animation) : c.removeAttribute("data-animation"), o.inertia ? c.setAttribute("data-inertia", "") : c.removeAttribute("data-inertia"), c.style.maxWidth = typeof o.maxWidth == "number" ? o.maxWidth + "px" : o.maxWidth, o.role ? c.setAttribute("role", o.role) : c.removeAttribute("role"), (r.content !== o.content || r.allowHTML !== o.allowHTML) &&
|
|
1448
|
+
var a = as(t), c = a.box, l = a.content, h = a.arrow;
|
|
1449
|
+
o.theme ? c.setAttribute("data-theme", o.theme) : c.removeAttribute("data-theme"), typeof o.animation == "string" ? c.setAttribute("data-animation", o.animation) : c.removeAttribute("data-animation"), o.inertia ? c.setAttribute("data-inertia", "") : c.removeAttribute("data-inertia"), c.style.maxWidth = typeof o.maxWidth == "number" ? o.maxWidth + "px" : o.maxWidth, o.role ? c.setAttribute("role", o.role) : c.removeAttribute("role"), (r.content !== o.content || r.allowHTML !== o.allowHTML) && _r(l, i.props), o.arrow ? h ? r.arrow !== o.arrow && (c.removeChild(h), c.appendChild(xr(o.arrow))) : c.appendChild(xr(o.arrow)) : h && c.removeChild(h);
|
|
1436
1450
|
}
|
|
1437
1451
|
return {
|
|
1438
1452
|
popper: t,
|
|
@@ -1440,9 +1454,9 @@ function ma(i) {
|
|
|
1440
1454
|
};
|
|
1441
1455
|
}
|
|
1442
1456
|
ma.$$tippy = !0;
|
|
1443
|
-
var uh = 1,
|
|
1457
|
+
var uh = 1, Ni = [], Nn = [];
|
|
1444
1458
|
function fh(i, t) {
|
|
1445
|
-
var e =
|
|
1459
|
+
var e = yr(i, Object.assign({}, gt, pa(pr(t)))), n, s, r, o = !1, a = !1, c = !1, l = !1, h, u, f, d = [], p = fr(Di, e.interactiveDebounce), m, b = uh++, y = null, x = $l(e.plugins), S = {
|
|
1446
1460
|
// Is the instance currently enabled?
|
|
1447
1461
|
isEnabled: !0,
|
|
1448
1462
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -1463,24 +1477,24 @@ function fh(i, t) {
|
|
|
1463
1477
|
state: S,
|
|
1464
1478
|
plugins: x,
|
|
1465
1479
|
// methods
|
|
1466
|
-
clearDelayTimeouts:
|
|
1467
|
-
setProps:
|
|
1468
|
-
setContent:
|
|
1480
|
+
clearDelayTimeouts: Li,
|
|
1481
|
+
setProps: Ii,
|
|
1482
|
+
setContent: Fi,
|
|
1469
1483
|
show: bc,
|
|
1470
1484
|
hide: vc,
|
|
1471
1485
|
hideWithInteractivity: yc,
|
|
1472
1486
|
enable: Ke,
|
|
1473
|
-
disable:
|
|
1487
|
+
disable: Ri,
|
|
1474
1488
|
unmount: xc,
|
|
1475
1489
|
destroy: _c
|
|
1476
1490
|
};
|
|
1477
1491
|
if (!e.render)
|
|
1478
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1492
|
+
return process.env.NODE_ENV !== "production" && rs(!0, "render() function has not been supplied."), g;
|
|
1479
1493
|
var k = e.render(g), w = k.popper, M = k.onUpdate;
|
|
1480
1494
|
w.setAttribute("data-tippy-root", ""), w.id = "tippy-" + g.id, g.popper = w, i._tippy = g, w._tippy = g;
|
|
1481
1495
|
var O = x.map(function(_) {
|
|
1482
1496
|
return _.fn(g);
|
|
1483
|
-
}),
|
|
1497
|
+
}), T = i.hasAttribute("aria-expanded");
|
|
1484
1498
|
return ke(), J(), W(), q("onCreate", [g]), e.showOnCreate && Xe(), w.addEventListener("mouseenter", function() {
|
|
1485
1499
|
g.props.interactive && g.state.isVisible && g.clearDelayTimeouts();
|
|
1486
1500
|
}), w.addEventListener("mouseleave", function() {
|
|
@@ -1493,7 +1507,7 @@ function fh(i, t) {
|
|
|
1493
1507
|
function E() {
|
|
1494
1508
|
return P()[0] === "hold";
|
|
1495
1509
|
}
|
|
1496
|
-
function
|
|
1510
|
+
function A() {
|
|
1497
1511
|
var _;
|
|
1498
1512
|
return !!((_ = g.props.render) != null && _.$$tippy);
|
|
1499
1513
|
}
|
|
@@ -1505,10 +1519,10 @@ function fh(i, t) {
|
|
|
1505
1519
|
return _ ? Ql(_) : document;
|
|
1506
1520
|
}
|
|
1507
1521
|
function L() {
|
|
1508
|
-
return
|
|
1522
|
+
return as(w);
|
|
1509
1523
|
}
|
|
1510
1524
|
function z(_) {
|
|
1511
|
-
return g.state.isMounted && !g.state.isVisible || Lt.isTouch || h && h.type === "focus" ? 0 : zn(g.props.delay, _ ? 0 : 1,
|
|
1525
|
+
return g.state.isMounted && !g.state.isVisible || Lt.isTouch || h && h.type === "focus" ? 0 : zn(g.props.delay, _ ? 0 : 1, gt.delay);
|
|
1512
1526
|
}
|
|
1513
1527
|
function W(_) {
|
|
1514
1528
|
_ === void 0 && (_ = !1), w.style.pointerEvents = g.props.interactive && !_ ? "" : "none", w.style.zIndex = "" + g.props.zIndex;
|
|
@@ -1537,7 +1551,7 @@ function fh(i, t) {
|
|
|
1537
1551
|
}
|
|
1538
1552
|
}
|
|
1539
1553
|
function J() {
|
|
1540
|
-
if (!(
|
|
1554
|
+
if (!(T || !g.props.aria.expanded)) {
|
|
1541
1555
|
var _ = De(g.props.triggerTarget || i);
|
|
1542
1556
|
_.forEach(function(D) {
|
|
1543
1557
|
g.props.interactive ? D.setAttribute("aria-expanded", g.state.isVisible && D === F() ? "true" : "false") : D.removeAttribute("aria-expanded");
|
|
@@ -1545,16 +1559,16 @@ function fh(i, t) {
|
|
|
1545
1559
|
}
|
|
1546
1560
|
}
|
|
1547
1561
|
function yt() {
|
|
1548
|
-
B().removeEventListener("mousemove", p),
|
|
1562
|
+
B().removeEventListener("mousemove", p), Ni = Ni.filter(function(_) {
|
|
1549
1563
|
return _ !== p;
|
|
1550
1564
|
});
|
|
1551
1565
|
}
|
|
1552
1566
|
function tt(_) {
|
|
1553
1567
|
if (!(Lt.isTouch && (c || _.type === "mousedown"))) {
|
|
1554
1568
|
var D = _.composedPath && _.composedPath()[0] || _.target;
|
|
1555
|
-
if (!(g.props.interactive &&
|
|
1569
|
+
if (!(g.props.interactive && mr(w, D))) {
|
|
1556
1570
|
if (De(g.props.triggerTarget || i).some(function(C) {
|
|
1557
|
-
return
|
|
1571
|
+
return mr(C, D);
|
|
1558
1572
|
})) {
|
|
1559
1573
|
if (Lt.isTouch || g.state.isVisible && g.props.trigger.indexOf("click") >= 0)
|
|
1560
1574
|
return;
|
|
@@ -1566,7 +1580,7 @@ function fh(i, t) {
|
|
|
1566
1580
|
}
|
|
1567
1581
|
}
|
|
1568
1582
|
}
|
|
1569
|
-
function
|
|
1583
|
+
function dt() {
|
|
1570
1584
|
c = !0;
|
|
1571
1585
|
}
|
|
1572
1586
|
function et() {
|
|
@@ -1574,11 +1588,11 @@ function fh(i, t) {
|
|
|
1574
1588
|
}
|
|
1575
1589
|
function it() {
|
|
1576
1590
|
var _ = B();
|
|
1577
|
-
_.addEventListener("mousedown", tt, !0), _.addEventListener("touchend", tt, pe), _.addEventListener("touchstart", et, pe), _.addEventListener("touchmove",
|
|
1591
|
+
_.addEventListener("mousedown", tt, !0), _.addEventListener("touchend", tt, pe), _.addEventListener("touchstart", et, pe), _.addEventListener("touchmove", dt, pe);
|
|
1578
1592
|
}
|
|
1579
1593
|
function nt() {
|
|
1580
1594
|
var _ = B();
|
|
1581
|
-
_.removeEventListener("mousedown", tt, !0), _.removeEventListener("touchend", tt, pe), _.removeEventListener("touchstart", et, pe), _.removeEventListener("touchmove",
|
|
1595
|
+
_.removeEventListener("mousedown", tt, !0), _.removeEventListener("touchend", tt, pe), _.removeEventListener("touchstart", et, pe), _.removeEventListener("touchmove", dt, pe);
|
|
1582
1596
|
}
|
|
1583
1597
|
function we(_, D) {
|
|
1584
1598
|
Se(_, function() {
|
|
@@ -1612,13 +1626,13 @@ function fh(i, t) {
|
|
|
1612
1626
|
function ke() {
|
|
1613
1627
|
E() && (qt("touchstart", $e, {
|
|
1614
1628
|
passive: !0
|
|
1615
|
-
}), qt("touchend",
|
|
1629
|
+
}), qt("touchend", Ei, {
|
|
1616
1630
|
passive: !0
|
|
1617
1631
|
})), Vl(g.props.trigger).forEach(function(_) {
|
|
1618
1632
|
if (_ !== "manual")
|
|
1619
1633
|
switch (qt(_, $e), _) {
|
|
1620
1634
|
case "mouseenter":
|
|
1621
|
-
qt("mouseleave",
|
|
1635
|
+
qt("mouseleave", Ei);
|
|
1622
1636
|
break;
|
|
1623
1637
|
case "focus":
|
|
1624
1638
|
qt(ih ? "focusout" : "blur", Ue);
|
|
@@ -1639,12 +1653,12 @@ function fh(i, t) {
|
|
|
1639
1653
|
var D, C = !1;
|
|
1640
1654
|
if (!(!g.state.isEnabled || Ye(_) || a)) {
|
|
1641
1655
|
var V = ((D = h) == null ? void 0 : D.type) === "focus";
|
|
1642
|
-
h = _, m = _.currentTarget, J(), !g.state.isVisible && Xl(_) &&
|
|
1656
|
+
h = _, m = _.currentTarget, J(), !g.state.isVisible && Xl(_) && Ni.forEach(function(H) {
|
|
1643
1657
|
return H(_);
|
|
1644
1658
|
}), _.type === "click" && (g.props.trigger.indexOf("mouseenter") < 0 || o) && g.props.hideOnClick !== !1 && g.state.isVisible ? C = !0 : Xe(_), _.type === "click" && (o = !C), C && !V && ce(_);
|
|
1645
1659
|
}
|
|
1646
1660
|
}
|
|
1647
|
-
function
|
|
1661
|
+
function Di(_) {
|
|
1648
1662
|
var D = _.target, C = F().contains(D) || w.contains(D);
|
|
1649
1663
|
if (!(_.type === "mousemove" && C)) {
|
|
1650
1664
|
var V = Qt().concat(w).map(function(H) {
|
|
@@ -1658,7 +1672,7 @@ function fh(i, t) {
|
|
|
1658
1672
|
Zl(V, _) && (yt(), ce(_));
|
|
1659
1673
|
}
|
|
1660
1674
|
}
|
|
1661
|
-
function
|
|
1675
|
+
function Ei(_) {
|
|
1662
1676
|
var D = Ye(_) || g.props.trigger.indexOf("click") >= 0 && o;
|
|
1663
1677
|
if (!D) {
|
|
1664
1678
|
if (g.props.interactive) {
|
|
@@ -1674,22 +1688,22 @@ function fh(i, t) {
|
|
|
1674
1688
|
function Ye(_) {
|
|
1675
1689
|
return Lt.isTouch ? E() !== _.type.indexOf("touch") >= 0 : !1;
|
|
1676
1690
|
}
|
|
1677
|
-
function
|
|
1678
|
-
|
|
1679
|
-
var _ = g.props, D = _.popperOptions, C = _.placement, V = _.offset, H = _.getReferenceClientRect, at = _.moveTransition, xt =
|
|
1691
|
+
function Pi() {
|
|
1692
|
+
Ci();
|
|
1693
|
+
var _ = g.props, D = _.popperOptions, C = _.placement, V = _.offset, H = _.getReferenceClientRect, at = _.moveTransition, xt = A() ? as(w).arrow : null, Me = H ? {
|
|
1680
1694
|
getBoundingClientRect: H,
|
|
1681
1695
|
contextElement: H.contextElement || F()
|
|
1682
|
-
} : i,
|
|
1696
|
+
} : i, tr = {
|
|
1683
1697
|
name: "$$tippy",
|
|
1684
1698
|
enabled: !0,
|
|
1685
1699
|
phase: "beforeWrite",
|
|
1686
1700
|
requires: ["computeStyles"],
|
|
1687
|
-
fn: function(
|
|
1688
|
-
var Oe =
|
|
1689
|
-
if (
|
|
1701
|
+
fn: function(zi) {
|
|
1702
|
+
var Oe = zi.state;
|
|
1703
|
+
if (A()) {
|
|
1690
1704
|
var wc = L(), Fn = wc.box;
|
|
1691
|
-
["placement", "reference-hidden", "escaped"].forEach(function(
|
|
1692
|
-
|
|
1705
|
+
["placement", "reference-hidden", "escaped"].forEach(function(Bi) {
|
|
1706
|
+
Bi === "placement" ? Fn.setAttribute("data-placement", Oe.placement) : Oe.attributes.popper["data-popper-" + Bi] ? Fn.setAttribute("data-" + Bi, "") : Fn.removeAttribute("data-" + Bi);
|
|
1693
1707
|
}), Oe.attributes.popper = {};
|
|
1694
1708
|
}
|
|
1695
1709
|
}
|
|
@@ -1718,8 +1732,8 @@ function fh(i, t) {
|
|
|
1718
1732
|
options: {
|
|
1719
1733
|
adaptive: !at
|
|
1720
1734
|
}
|
|
1721
|
-
},
|
|
1722
|
-
|
|
1735
|
+
}, tr];
|
|
1736
|
+
A() && xt && le.push({
|
|
1723
1737
|
name: "arrow",
|
|
1724
1738
|
options: {
|
|
1725
1739
|
element: xt,
|
|
@@ -1731,12 +1745,12 @@ function fh(i, t) {
|
|
|
1731
1745
|
modifiers: le
|
|
1732
1746
|
}));
|
|
1733
1747
|
}
|
|
1734
|
-
function
|
|
1748
|
+
function Ci() {
|
|
1735
1749
|
g.popperInstance && (g.popperInstance.destroy(), g.popperInstance = null);
|
|
1736
1750
|
}
|
|
1737
1751
|
function jt() {
|
|
1738
1752
|
var _ = g.props.appendTo, D, C = F();
|
|
1739
|
-
g.props.interactive && _ === la || _ === "parent" ? D = C.parentNode : D = ha(_, [C]), D.contains(w) || D.appendChild(w), g.state.isMounted = !0,
|
|
1753
|
+
g.props.interactive && _ === la || _ === "parent" ? D = C.parentNode : D = ha(_, [C]), D.contains(w) || D.appendChild(w), g.state.isMounted = !0, Pi(), process.env.NODE_ENV !== "production" && Ut(g.props.interactive && _ === gt.appendTo && C.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
1740
1754
|
|
|
1741
1755
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
1742
1756
|
|
|
@@ -1745,7 +1759,7 @@ function fh(i, t) {
|
|
|
1745
1759
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
1746
1760
|
}
|
|
1747
1761
|
function Qt() {
|
|
1748
|
-
return
|
|
1762
|
+
return mn(w.querySelectorAll("[data-tippy-root]"));
|
|
1749
1763
|
}
|
|
1750
1764
|
function Xe(_) {
|
|
1751
1765
|
g.clearDelayTimeouts(), _ && q("onTrigger", [g, _]), it();
|
|
@@ -1771,46 +1785,46 @@ function fh(i, t) {
|
|
|
1771
1785
|
function Ke() {
|
|
1772
1786
|
g.state.isEnabled = !0;
|
|
1773
1787
|
}
|
|
1774
|
-
function
|
|
1788
|
+
function Ri() {
|
|
1775
1789
|
g.hide(), g.state.isEnabled = !1;
|
|
1776
1790
|
}
|
|
1777
|
-
function
|
|
1791
|
+
function Li() {
|
|
1778
1792
|
clearTimeout(n), clearTimeout(s), cancelAnimationFrame(r);
|
|
1779
1793
|
}
|
|
1780
|
-
function
|
|
1781
|
-
if (process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed,
|
|
1794
|
+
function Ii(_) {
|
|
1795
|
+
if (process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed, Te("setProps")), !g.state.isDestroyed) {
|
|
1782
1796
|
q("onBeforeUpdate", [g, _]), Ai();
|
|
1783
|
-
var D = g.props, C =
|
|
1797
|
+
var D = g.props, C = yr(i, Object.assign({}, D, pr(_), {
|
|
1784
1798
|
ignoreAttributes: !0
|
|
1785
1799
|
}));
|
|
1786
|
-
g.props = C, ke(), D.interactiveDebounce !== C.interactiveDebounce && (yt(), p =
|
|
1800
|
+
g.props = C, ke(), D.interactiveDebounce !== C.interactiveDebounce && (yt(), p = fr(Di, C.interactiveDebounce)), D.triggerTarget && !C.triggerTarget ? De(D.triggerTarget).forEach(function(V) {
|
|
1787
1801
|
V.removeAttribute("aria-expanded");
|
|
1788
|
-
}) : C.triggerTarget && i.removeAttribute("aria-expanded"), J(), W(), M && M(D, C), g.popperInstance && (
|
|
1802
|
+
}) : C.triggerTarget && i.removeAttribute("aria-expanded"), J(), W(), M && M(D, C), g.popperInstance && (Pi(), Qt().forEach(function(V) {
|
|
1789
1803
|
requestAnimationFrame(V._tippy.popperInstance.forceUpdate);
|
|
1790
1804
|
})), q("onAfterUpdate", [g, _]);
|
|
1791
1805
|
}
|
|
1792
1806
|
}
|
|
1793
|
-
function
|
|
1807
|
+
function Fi(_) {
|
|
1794
1808
|
g.setProps({
|
|
1795
1809
|
content: _
|
|
1796
1810
|
});
|
|
1797
1811
|
}
|
|
1798
1812
|
function bc() {
|
|
1799
|
-
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed,
|
|
1800
|
-
var _ = g.state.isVisible, D = g.state.isDestroyed, C = !g.state.isEnabled, V = Lt.isTouch && !g.props.touch, H = zn(g.props.duration, 0,
|
|
1813
|
+
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed, Te("show"));
|
|
1814
|
+
var _ = g.state.isVisible, D = g.state.isDestroyed, C = !g.state.isEnabled, V = Lt.isTouch && !g.props.touch, H = zn(g.props.duration, 0, gt.duration);
|
|
1801
1815
|
if (!(_ || D || C || V) && !F().hasAttribute("disabled") && (q("onShow", [g], !1), g.props.onShow(g) !== !1)) {
|
|
1802
|
-
if (g.state.isVisible = !0,
|
|
1816
|
+
if (g.state.isVisible = !0, A() && (w.style.visibility = "visible"), W(), it(), g.state.isMounted || (w.style.transition = "none"), A()) {
|
|
1803
1817
|
var at = L(), xt = at.box, Me = at.content;
|
|
1804
1818
|
Bn([xt, Me], 0);
|
|
1805
1819
|
}
|
|
1806
1820
|
f = function() {
|
|
1807
1821
|
var le;
|
|
1808
1822
|
if (!(!g.state.isVisible || l)) {
|
|
1809
|
-
if (l = !0, w.offsetHeight, w.style.transition = g.props.moveTransition,
|
|
1810
|
-
var In = L(),
|
|
1811
|
-
Bn([
|
|
1823
|
+
if (l = !0, w.offsetHeight, w.style.transition = g.props.moveTransition, A() && g.props.animation) {
|
|
1824
|
+
var In = L(), zi = In.box, Oe = In.content;
|
|
1825
|
+
Bn([zi, Oe], H), gr([zi, Oe], "visible");
|
|
1812
1826
|
}
|
|
1813
|
-
ot(), J(),
|
|
1827
|
+
ot(), J(), dr(Nn, g), (le = g.popperInstance) == null || le.forceUpdate(), q("onMount", [g]), g.props.animation && A() && Nt(H, function() {
|
|
1814
1828
|
g.state.isShown = !0, q("onShown", [g]);
|
|
1815
1829
|
});
|
|
1816
1830
|
}
|
|
@@ -1818,33 +1832,33 @@ function fh(i, t) {
|
|
|
1818
1832
|
}
|
|
1819
1833
|
}
|
|
1820
1834
|
function vc() {
|
|
1821
|
-
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed,
|
|
1822
|
-
var _ = !g.state.isVisible, D = g.state.isDestroyed, C = !g.state.isEnabled, V = zn(g.props.duration, 1,
|
|
1835
|
+
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed, Te("hide"));
|
|
1836
|
+
var _ = !g.state.isVisible, D = g.state.isDestroyed, C = !g.state.isEnabled, V = zn(g.props.duration, 1, gt.duration);
|
|
1823
1837
|
if (!(_ || D || C) && (q("onHide", [g], !1), g.props.onHide(g) !== !1)) {
|
|
1824
|
-
if (g.state.isVisible = !1, g.state.isShown = !1, l = !1, o = !1,
|
|
1838
|
+
if (g.state.isVisible = !1, g.state.isShown = !1, l = !1, o = !1, A() && (w.style.visibility = "hidden"), yt(), nt(), W(!0), A()) {
|
|
1825
1839
|
var H = L(), at = H.box, xt = H.content;
|
|
1826
|
-
g.props.animation && (Bn([at, xt], V),
|
|
1840
|
+
g.props.animation && (Bn([at, xt], V), gr([at, xt], "hidden"));
|
|
1827
1841
|
}
|
|
1828
|
-
ot(), J(), g.props.animation ?
|
|
1842
|
+
ot(), J(), g.props.animation ? A() && we(V, g.unmount) : g.unmount();
|
|
1829
1843
|
}
|
|
1830
1844
|
}
|
|
1831
1845
|
function yc(_) {
|
|
1832
|
-
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed,
|
|
1846
|
+
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed, Te("hideWithInteractivity")), B().addEventListener("mousemove", p), dr(Ni, p), p(_);
|
|
1833
1847
|
}
|
|
1834
1848
|
function xc() {
|
|
1835
|
-
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed,
|
|
1849
|
+
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed, Te("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Ci(), Qt().forEach(function(_) {
|
|
1836
1850
|
_._tippy.unmount();
|
|
1837
1851
|
}), w.parentNode && w.parentNode.removeChild(w), Nn = Nn.filter(function(_) {
|
|
1838
1852
|
return _ !== g;
|
|
1839
1853
|
}), g.state.isMounted = !1, q("onHidden", [g]));
|
|
1840
1854
|
}
|
|
1841
1855
|
function _c() {
|
|
1842
|
-
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed,
|
|
1856
|
+
process.env.NODE_ENV !== "production" && Ut(g.state.isDestroyed, Te("destroy")), !g.state.isDestroyed && (g.clearDelayTimeouts(), g.unmount(), Ai(), delete i._tippy, g.state.isDestroyed = !0, q("onDestroy", [g]));
|
|
1843
1857
|
}
|
|
1844
1858
|
}
|
|
1845
|
-
function
|
|
1859
|
+
function Mi(i, t) {
|
|
1846
1860
|
t === void 0 && (t = {});
|
|
1847
|
-
var e =
|
|
1861
|
+
var e = gt.plugins.concat(t.plugins || []);
|
|
1848
1862
|
process.env.NODE_ENV !== "production" && (rh(i), ga(t, e)), th();
|
|
1849
1863
|
var n = Object.assign({}, t, {
|
|
1850
1864
|
plugins: e
|
|
@@ -1864,9 +1878,9 @@ function ki(i, t) {
|
|
|
1864
1878
|
}, []);
|
|
1865
1879
|
return di(i) ? a[0] : a;
|
|
1866
1880
|
}
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1881
|
+
Mi.defaultProps = gt;
|
|
1882
|
+
Mi.setDefaultProps = ch;
|
|
1883
|
+
Mi.currentInput = Lt;
|
|
1870
1884
|
Object.assign({}, Go, {
|
|
1871
1885
|
effect: function(t) {
|
|
1872
1886
|
var e = t.state, n = {
|
|
@@ -1884,7 +1898,7 @@ Object.assign({}, Go, {
|
|
|
1884
1898
|
Object.assign(e.elements.popper.style, n.popper), e.styles = n, e.elements.arrow && Object.assign(e.elements.arrow.style, n.arrow);
|
|
1885
1899
|
}
|
|
1886
1900
|
});
|
|
1887
|
-
|
|
1901
|
+
Mi.setDefaultProps({
|
|
1888
1902
|
render: ma
|
|
1889
1903
|
});
|
|
1890
1904
|
function dh({
|
|
@@ -1894,11 +1908,15 @@ function dh({
|
|
|
1894
1908
|
}) {
|
|
1895
1909
|
const n = ne(null);
|
|
1896
1910
|
return _i(() => {
|
|
1897
|
-
n.current &&
|
|
1911
|
+
n.current && Mi(n.current, {
|
|
1912
|
+
content: e,
|
|
1913
|
+
theme: "access",
|
|
1914
|
+
appendTo: n.current.parentElement
|
|
1915
|
+
});
|
|
1898
1916
|
}, [n.current]), /* @__PURE__ */ v("button", { class: "info-tip", style: { color: i }, ref: n, children: /* @__PURE__ */ v(X, { name: t }) });
|
|
1899
1917
|
}
|
|
1900
1918
|
function ph({ infoGroupId: i }) {
|
|
1901
|
-
const t =
|
|
1919
|
+
const t = ht(
|
|
1902
1920
|
`https://support.access-ci.org/api/1.0/kb/${i}`
|
|
1903
1921
|
);
|
|
1904
1922
|
if (!(!t || t.error || !t.length))
|
|
@@ -1950,18 +1968,18 @@ function bh({
|
|
|
1950
1968
|
/* @__PURE__ */ v("div", { class: "event-details", children: [
|
|
1951
1969
|
/* @__PURE__ */ v("h3", { children: c }),
|
|
1952
1970
|
l.length ? /* @__PURE__ */ v("div", { class: "event-metadata", children: l }) : null,
|
|
1953
|
-
e ? /* @__PURE__ */ v(mh, { children: /* @__PURE__ */ v("p", { children:
|
|
1971
|
+
e ? /* @__PURE__ */ v(mh, { children: /* @__PURE__ */ v("p", { children: is(e) }) }) : null
|
|
1954
1972
|
] })
|
|
1955
1973
|
] });
|
|
1956
1974
|
}
|
|
1957
1975
|
function vh({ infoGroupId: i }) {
|
|
1958
|
-
const t =
|
|
1976
|
+
const t = wi(i), e = ht(
|
|
1959
1977
|
"https://operations-api.access-ci.org/wh2/news/v1/affiliation/access-ci.org/current_outages/"
|
|
1960
|
-
), n =
|
|
1978
|
+
), n = ht(
|
|
1961
1979
|
"https://operations-api.access-ci.org/wh2/news/v1/affiliation/access-ci.org/future_outages/"
|
|
1962
|
-
), s =
|
|
1980
|
+
), s = ht(
|
|
1963
1981
|
`https://support.access-ci.org/api/1.1/events/ag/${i}`
|
|
1964
|
-
), r =
|
|
1982
|
+
), r = er(
|
|
1965
1983
|
[t, e, n],
|
|
1966
1984
|
(a, c, l) => [...c.results, ...l.results].filter(
|
|
1967
1985
|
(h) => h.AffectedResources.some(
|
|
@@ -1969,7 +1987,7 @@ function vh({ infoGroupId: i }) {
|
|
|
1969
1987
|
)
|
|
1970
1988
|
),
|
|
1971
1989
|
[]
|
|
1972
|
-
), o =
|
|
1990
|
+
), o = er(
|
|
1973
1991
|
[s],
|
|
1974
1992
|
(a) => a.filter((c) => new Date(c.date__start) >= /* @__PURE__ */ new Date()),
|
|
1975
1993
|
[]
|
|
@@ -2001,7 +2019,6 @@ function yh({ children: i, headingLevel: t = 2, title: e }) {
|
|
|
2001
2019
|
)
|
|
2002
2020
|
] });
|
|
2003
2021
|
}
|
|
2004
|
-
const _r = (i) => i ? i.split(/[\n\r]+/g).map((t) => /* @__PURE__ */ v("p", { children: t })) : null;
|
|
2005
2022
|
function xh({
|
|
2006
2023
|
resource_descriptive_name: i,
|
|
2007
2024
|
resource_description: t,
|
|
@@ -2010,27 +2027,27 @@ function xh({
|
|
|
2010
2027
|
}) {
|
|
2011
2028
|
const s = (e || n || {}).recommended_use;
|
|
2012
2029
|
return /* @__PURE__ */ v(yh, { title: i, children: [
|
|
2013
|
-
|
|
2014
|
-
s ? /* @__PURE__ */ v(
|
|
2030
|
+
t ? is(t) : null,
|
|
2031
|
+
s ? /* @__PURE__ */ v(St, { children: [
|
|
2015
2032
|
/* @__PURE__ */ v("h3", { children: "Recommended Use" }),
|
|
2016
|
-
|
|
2033
|
+
is(s)
|
|
2017
2034
|
] }) : null
|
|
2018
2035
|
] });
|
|
2019
2036
|
}
|
|
2020
2037
|
function _h({ infoGroupId: i }) {
|
|
2021
|
-
const t =
|
|
2038
|
+
const t = wi(i), e = ht(
|
|
2022
2039
|
t ? t.infoResourceIds.map(
|
|
2023
2040
|
(h) => `https://operations-api.access-ci.org/wh2/cider/v1/info_resourceid/${h}/?format=json`
|
|
2024
2041
|
) : null,
|
|
2025
2042
|
{ defaultValue: [] }
|
|
2026
|
-
), n =
|
|
2043
|
+
), n = ht(
|
|
2027
2044
|
"https://operations-api.access-ci.org/wh2/cider/v1/coco/?format=json"
|
|
2028
2045
|
), s = n && !n.error, r = s && t ? Object.values(n.results.resources).filter(
|
|
2029
2046
|
(h) => t.infoResourceIds.includes(h.info_resourceid)
|
|
2030
2047
|
).map((h) => ({
|
|
2031
2048
|
key: h.compute_resource_id,
|
|
2032
2049
|
name: h.short_name,
|
|
2033
|
-
format: (u, f) => f.format && u ? f.format(u, f) : u || /* @__PURE__ */ v(
|
|
2050
|
+
format: (u, f) => f.format && u ? f.format(u, f) : u || /* @__PURE__ */ v(St, { children: "—" })
|
|
2034
2051
|
})) : [], o = s ? [
|
|
2035
2052
|
{
|
|
2036
2053
|
name: "Nodes",
|
|
@@ -2077,18 +2094,18 @@ function _h({ infoGroupId: i }) {
|
|
|
2077
2094
|
key: "name",
|
|
2078
2095
|
name: "Attribute",
|
|
2079
2096
|
format: (h) => /* @__PURE__ */ v("strong", { children: h })
|
|
2080
|
-
}, c = r.length > 0 && o.length > 0, l = { compute: [], storage: [], other:
|
|
2097
|
+
}, c = r.length > 0 && o.length > 0, l = { compute: [], storage: [], other: [] };
|
|
2081
2098
|
for (let { results: h } of e)
|
|
2082
2099
|
(l[h.cider_type.toLowerCase()] || l.other).push(
|
|
2083
2100
|
/* @__PURE__ */ v(xh, { ...h })
|
|
2084
2101
|
);
|
|
2085
|
-
return /* @__PURE__ */ v(
|
|
2102
|
+
return /* @__PURE__ */ v(St, { children: [
|
|
2086
2103
|
c || l.compute.length > 0 ? /* @__PURE__ */ v(zt, { title: "Compute Resources", icon: "cpu-fill", children: [
|
|
2087
2104
|
l.compute,
|
|
2088
|
-
c && /* @__PURE__ */ v(
|
|
2105
|
+
c && /* @__PURE__ */ v(St, { children: [
|
|
2089
2106
|
/* @__PURE__ */ v("h3", { children: "Specifications" }),
|
|
2090
2107
|
/* @__PURE__ */ v(
|
|
2091
|
-
|
|
2108
|
+
An,
|
|
2092
2109
|
{
|
|
2093
2110
|
columns: [a, ...r],
|
|
2094
2111
|
rows: o,
|
|
@@ -2098,7 +2115,7 @@ function _h({ infoGroupId: i }) {
|
|
|
2098
2115
|
] })
|
|
2099
2116
|
] }) : null,
|
|
2100
2117
|
l.storage.length > 0 ? /* @__PURE__ */ v(zt, { title: "Storage Resources", icon: "hdd-fill", children: l.storage }) : null,
|
|
2101
|
-
l.other.length > 0 ? /* @__PURE__ */ v(zt, { title: "
|
|
2118
|
+
l.other.length > 0 ? /* @__PURE__ */ v(zt, { title: "Other Resources", icon: "stars", children: l.other }) : null
|
|
2102
2119
|
] });
|
|
2103
2120
|
}
|
|
2104
2121
|
/*!
|
|
@@ -2127,13 +2144,13 @@ function Sr(i) {
|
|
|
2127
2144
|
}
|
|
2128
2145
|
return i;
|
|
2129
2146
|
}
|
|
2130
|
-
function
|
|
2147
|
+
function an(i) {
|
|
2131
2148
|
"@babel/helpers - typeof";
|
|
2132
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
2149
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? an = function(t) {
|
|
2133
2150
|
return typeof t;
|
|
2134
|
-
} :
|
|
2151
|
+
} : an = function(t) {
|
|
2135
2152
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2136
|
-
},
|
|
2153
|
+
}, an(i);
|
|
2137
2154
|
}
|
|
2138
2155
|
function En(i, t) {
|
|
2139
2156
|
if (!(i instanceof t))
|
|
@@ -2165,17 +2182,17 @@ function kh(i, t) {
|
|
|
2165
2182
|
writable: !0,
|
|
2166
2183
|
configurable: !0
|
|
2167
2184
|
}
|
|
2168
|
-
}), t &&
|
|
2185
|
+
}), t && cs(i, t);
|
|
2169
2186
|
}
|
|
2170
2187
|
function ze(i) {
|
|
2171
2188
|
return ze = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
|
2172
2189
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2173
2190
|
}, ze(i);
|
|
2174
2191
|
}
|
|
2175
|
-
function
|
|
2176
|
-
return
|
|
2192
|
+
function cs(i, t) {
|
|
2193
|
+
return cs = Object.setPrototypeOf || function(n, s) {
|
|
2177
2194
|
return n.__proto__ = s, n;
|
|
2178
|
-
},
|
|
2195
|
+
}, cs(i, t);
|
|
2179
2196
|
}
|
|
2180
2197
|
function Mh() {
|
|
2181
2198
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -2192,14 +2209,14 @@ function Oh(i) {
|
|
|
2192
2209
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2193
2210
|
return i;
|
|
2194
2211
|
}
|
|
2195
|
-
function
|
|
2212
|
+
function Th(i, t) {
|
|
2196
2213
|
if (t && (typeof t == "object" || typeof t == "function"))
|
|
2197
2214
|
return t;
|
|
2198
2215
|
if (t !== void 0)
|
|
2199
2216
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2200
2217
|
return Oh(i);
|
|
2201
2218
|
}
|
|
2202
|
-
function
|
|
2219
|
+
function Ah(i) {
|
|
2203
2220
|
var t = Mh();
|
|
2204
2221
|
return function() {
|
|
2205
2222
|
var n = ze(i), s;
|
|
@@ -2208,7 +2225,7 @@ function Th(i) {
|
|
|
2208
2225
|
s = Reflect.construct(n, arguments, r);
|
|
2209
2226
|
} else
|
|
2210
2227
|
s = n.apply(this, arguments);
|
|
2211
|
-
return
|
|
2228
|
+
return Th(this, s);
|
|
2212
2229
|
};
|
|
2213
2230
|
}
|
|
2214
2231
|
function Dh(i, t) {
|
|
@@ -2216,14 +2233,14 @@ function Dh(i, t) {
|
|
|
2216
2233
|
;
|
|
2217
2234
|
return i;
|
|
2218
2235
|
}
|
|
2219
|
-
function
|
|
2220
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
2236
|
+
function cn() {
|
|
2237
|
+
return typeof Reflect < "u" && Reflect.get ? cn = Reflect.get : cn = function(t, e, n) {
|
|
2221
2238
|
var s = Dh(t, e);
|
|
2222
2239
|
if (s) {
|
|
2223
2240
|
var r = Object.getOwnPropertyDescriptor(s, e);
|
|
2224
2241
|
return r.get ? r.get.call(arguments.length < 3 ? t : n) : r.value;
|
|
2225
2242
|
}
|
|
2226
|
-
},
|
|
2243
|
+
}, cn.apply(this, arguments);
|
|
2227
2244
|
}
|
|
2228
2245
|
var Eh = {
|
|
2229
2246
|
/**
|
|
@@ -2432,31 +2449,31 @@ var Eh = {
|
|
|
2432
2449
|
function te(i) {
|
|
2433
2450
|
console.error("[Glide warn]: ".concat(i));
|
|
2434
2451
|
}
|
|
2435
|
-
function
|
|
2452
|
+
function Dt(i) {
|
|
2436
2453
|
return parseInt(i);
|
|
2437
2454
|
}
|
|
2438
|
-
function
|
|
2455
|
+
function ls(i) {
|
|
2439
2456
|
return typeof i == "string";
|
|
2440
2457
|
}
|
|
2441
2458
|
function gi(i) {
|
|
2442
|
-
var t =
|
|
2459
|
+
var t = an(i);
|
|
2443
2460
|
return t === "function" || t === "object" && !!i;
|
|
2444
2461
|
}
|
|
2445
|
-
function
|
|
2462
|
+
function bn(i) {
|
|
2446
2463
|
return typeof i == "function";
|
|
2447
2464
|
}
|
|
2448
2465
|
function Ph(i) {
|
|
2449
2466
|
return typeof i > "u";
|
|
2450
2467
|
}
|
|
2451
|
-
function
|
|
2468
|
+
function hs(i) {
|
|
2452
2469
|
return i.constructor === Array;
|
|
2453
2470
|
}
|
|
2454
2471
|
function Ch(i, t, e) {
|
|
2455
2472
|
var n = {};
|
|
2456
2473
|
for (var s in t)
|
|
2457
|
-
|
|
2474
|
+
bn(t[s]) ? n[s] = t[s](i, n, e) : te("Extension must be a function");
|
|
2458
2475
|
for (var r in n)
|
|
2459
|
-
|
|
2476
|
+
bn(n[r].mount) && n[r].mount();
|
|
2460
2477
|
return n;
|
|
2461
2478
|
}
|
|
2462
2479
|
function Q(i, t, e) {
|
|
@@ -2481,7 +2498,7 @@ var Rh = /* @__PURE__ */ function() {
|
|
|
2481
2498
|
return Pn(i, [{
|
|
2482
2499
|
key: "on",
|
|
2483
2500
|
value: function(e, n) {
|
|
2484
|
-
if (
|
|
2501
|
+
if (hs(e)) {
|
|
2485
2502
|
for (var s = 0; s < e.length; s++)
|
|
2486
2503
|
this.on(e[s], n);
|
|
2487
2504
|
return;
|
|
@@ -2503,7 +2520,7 @@ var Rh = /* @__PURE__ */ function() {
|
|
|
2503
2520
|
}, {
|
|
2504
2521
|
key: "emit",
|
|
2505
2522
|
value: function(e, n) {
|
|
2506
|
-
if (
|
|
2523
|
+
if (hs(e)) {
|
|
2507
2524
|
for (var s = 0; s < e.length; s++)
|
|
2508
2525
|
this.emit(e[s], n);
|
|
2509
2526
|
return;
|
|
@@ -2534,7 +2551,7 @@ var Rh = /* @__PURE__ */ function() {
|
|
|
2534
2551
|
key: "mutate",
|
|
2535
2552
|
value: function() {
|
|
2536
2553
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
2537
|
-
return
|
|
2554
|
+
return hs(e) ? this._t = e : te("You need to provide a array on `mutate()`"), this;
|
|
2538
2555
|
}
|
|
2539
2556
|
/**
|
|
2540
2557
|
* Updates glide with specified settings.
|
|
@@ -2676,7 +2693,7 @@ var Rh = /* @__PURE__ */ function() {
|
|
|
2676
2693
|
return this._i;
|
|
2677
2694
|
},
|
|
2678
2695
|
set: function(e) {
|
|
2679
|
-
this._i =
|
|
2696
|
+
this._i = Dt(e);
|
|
2680
2697
|
}
|
|
2681
2698
|
/**
|
|
2682
2699
|
* Gets type name of the slider.
|
|
@@ -2732,7 +2749,7 @@ function Ih(i, t, e) {
|
|
|
2732
2749
|
calculate: function() {
|
|
2733
2750
|
var l = this.move, h = this.length, u = l.steps, f = l.direction, d = 1;
|
|
2734
2751
|
if (f === "=") {
|
|
2735
|
-
if (i.settings.bound &&
|
|
2752
|
+
if (i.settings.bound && Dt(u) > h) {
|
|
2736
2753
|
i.index = h;
|
|
2737
2754
|
return;
|
|
2738
2755
|
}
|
|
@@ -2831,7 +2848,7 @@ function Ih(i, t, e) {
|
|
|
2831
2848
|
var h = l.substr(1);
|
|
2832
2849
|
this._m = {
|
|
2833
2850
|
direction: l.substr(0, 1),
|
|
2834
|
-
steps: h ?
|
|
2851
|
+
steps: h ? Dt(h) ? Dt(h) : h : 0
|
|
2835
2852
|
};
|
|
2836
2853
|
}
|
|
2837
2854
|
}), Q(n, "length", {
|
|
@@ -2843,7 +2860,7 @@ function Ih(i, t, e) {
|
|
|
2843
2860
|
*/
|
|
2844
2861
|
get: function() {
|
|
2845
2862
|
var l = i.settings, h = t.Html.slides.length;
|
|
2846
|
-
return this.isBound() ? h - 1 - (
|
|
2863
|
+
return this.isBound() ? h - 1 - (Dt(l.perView) - 1) + Dt(l.focusAt) : h - 1;
|
|
2847
2864
|
}
|
|
2848
2865
|
}), Q(n, "offset", {
|
|
2849
2866
|
/**
|
|
@@ -2872,7 +2889,7 @@ function ba(i, t) {
|
|
|
2872
2889
|
clearTimeout(n), a = 0, n = s = r = null;
|
|
2873
2890
|
}, l;
|
|
2874
2891
|
}
|
|
2875
|
-
var
|
|
2892
|
+
var ji = {
|
|
2876
2893
|
ltr: ["marginLeft", "marginRight"],
|
|
2877
2894
|
rtl: ["marginRight", "marginLeft"]
|
|
2878
2895
|
};
|
|
@@ -2888,7 +2905,7 @@ function Fh(i, t, e) {
|
|
|
2888
2905
|
apply: function(r) {
|
|
2889
2906
|
for (var o = 0, a = r.length; o < a; o++) {
|
|
2890
2907
|
var c = r[o].style, l = t.Direction.value;
|
|
2891
|
-
o !== 0 ? c[
|
|
2908
|
+
o !== 0 ? c[ji[l][0]] = "".concat(this.value / 2, "px") : c[ji[l][0]] = "", o !== r.length - 1 ? c[ji[l][1]] = "".concat(this.value / 2, "px") : c[ji[l][1]] = "";
|
|
2892
2909
|
}
|
|
2893
2910
|
},
|
|
2894
2911
|
/**
|
|
@@ -2911,7 +2928,7 @@ function Fh(i, t, e) {
|
|
|
2911
2928
|
* @returns {Number}
|
|
2912
2929
|
*/
|
|
2913
2930
|
get: function() {
|
|
2914
|
-
return
|
|
2931
|
+
return Dt(i.settings.gap);
|
|
2915
2932
|
}
|
|
2916
2933
|
}), Q(n, "grow", {
|
|
2917
2934
|
/**
|
|
@@ -2948,7 +2965,7 @@ function va(i) {
|
|
|
2948
2965
|
}
|
|
2949
2966
|
return [];
|
|
2950
2967
|
}
|
|
2951
|
-
function
|
|
2968
|
+
function us(i) {
|
|
2952
2969
|
return Array.prototype.slice.call(i);
|
|
2953
2970
|
}
|
|
2954
2971
|
var zh = '[data-glide-el="track"]';
|
|
@@ -2966,7 +2983,7 @@ function Bh(i, t, e) {
|
|
|
2966
2983
|
* Collect slides
|
|
2967
2984
|
*/
|
|
2968
2985
|
collectSlides: function() {
|
|
2969
|
-
this.slides =
|
|
2986
|
+
this.slides = us(this.wrapper.children).filter(function(r) {
|
|
2970
2987
|
return !r.classList.contains(i.settings.classes.slide.clone);
|
|
2971
2988
|
});
|
|
2972
2989
|
}
|
|
@@ -2986,7 +3003,7 @@ function Bh(i, t, e) {
|
|
|
2986
3003
|
* @return {Object}
|
|
2987
3004
|
*/
|
|
2988
3005
|
set: function(r) {
|
|
2989
|
-
|
|
3006
|
+
ls(r) && (r = document.querySelector(r)), r !== null ? n._r = r : te("Root element must be a existing Html node");
|
|
2990
3007
|
}
|
|
2991
3008
|
}), Q(n, "track", {
|
|
2992
3009
|
/**
|
|
@@ -3045,7 +3062,7 @@ function Hh(i, t, e) {
|
|
|
3045
3062
|
* @return {Void}
|
|
3046
3063
|
*/
|
|
3047
3064
|
set: function(r) {
|
|
3048
|
-
gi(r) ? (r.before =
|
|
3065
|
+
gi(r) ? (r.before = Dt(r.before), r.after = Dt(r.after)) : r = Dt(r), n._v = r;
|
|
3049
3066
|
}
|
|
3050
3067
|
}), Q(n, "reductor", {
|
|
3051
3068
|
/**
|
|
@@ -3103,7 +3120,7 @@ function Nh(i, t, e) {
|
|
|
3103
3120
|
* @return {Object}
|
|
3104
3121
|
*/
|
|
3105
3122
|
set: function(r) {
|
|
3106
|
-
n._o = Ph(r) ? 0 :
|
|
3123
|
+
n._o = Ph(r) ? 0 : Dt(r);
|
|
3107
3124
|
}
|
|
3108
3125
|
}), Q(n, "translate", {
|
|
3109
3126
|
/**
|
|
@@ -3327,7 +3344,7 @@ var ya = /* @__PURE__ */ function() {
|
|
|
3327
3344
|
key: "on",
|
|
3328
3345
|
value: function(e, n, s) {
|
|
3329
3346
|
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
3330
|
-
|
|
3347
|
+
ls(e) && (e = [e]);
|
|
3331
3348
|
for (var o = 0; o < e.length; o++)
|
|
3332
3349
|
this.listeners[e[o]] = s, n.addEventListener(e[o], this.listeners[e[o]], r);
|
|
3333
3350
|
}
|
|
@@ -3343,7 +3360,7 @@ var ya = /* @__PURE__ */ function() {
|
|
|
3343
3360
|
key: "off",
|
|
3344
3361
|
value: function(e, n) {
|
|
3345
3362
|
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3346
|
-
|
|
3363
|
+
ls(e) && (e = [e]);
|
|
3347
3364
|
for (var r = 0; r < e.length; r++)
|
|
3348
3365
|
n.removeEventListener(e[r], this.listeners[e[r]], s);
|
|
3349
3366
|
}
|
|
@@ -3551,7 +3568,7 @@ function Jh(i, t, e) {
|
|
|
3551
3568
|
mutate: function(r) {
|
|
3552
3569
|
for (var o = 0; o < n.length; o++) {
|
|
3553
3570
|
var a = n[o];
|
|
3554
|
-
|
|
3571
|
+
bn(a) && bn(a().modify) ? r = a(i, t, e).modify(r) : te("Transformer should be a function that returns an object with `modify()` method");
|
|
3555
3572
|
}
|
|
3556
3573
|
return r;
|
|
3557
3574
|
}
|
|
@@ -3693,9 +3710,9 @@ try {
|
|
|
3693
3710
|
window.addEventListener("testPassive", null, Or), window.removeEventListener("testPassive", null, Or);
|
|
3694
3711
|
} catch {
|
|
3695
3712
|
}
|
|
3696
|
-
var
|
|
3713
|
+
var Tr = xa, iu = '[data-glide-el="controls[nav]"]', zs = '[data-glide-el^="controls"]', nu = "".concat(zs, ' [data-glide-dir*="<"]'), su = "".concat(zs, ' [data-glide-dir*=">"]');
|
|
3697
3714
|
function ru(i, t, e) {
|
|
3698
|
-
var n = new ya(), s =
|
|
3715
|
+
var n = new ya(), s = Tr ? {
|
|
3699
3716
|
passive: !0
|
|
3700
3717
|
} : !1, r = {
|
|
3701
3718
|
/**
|
|
@@ -3705,7 +3722,7 @@ function ru(i, t, e) {
|
|
|
3705
3722
|
* @return {Void}
|
|
3706
3723
|
*/
|
|
3707
3724
|
mount: function() {
|
|
3708
|
-
this._n = t.Html.root.querySelectorAll(iu), this._c = t.Html.root.querySelectorAll(
|
|
3725
|
+
this._n = t.Html.root.querySelectorAll(iu), this._c = t.Html.root.querySelectorAll(zs), this._arrowControls = {
|
|
3709
3726
|
previous: t.Html.root.querySelectorAll(nu),
|
|
3710
3727
|
next: t.Html.root.querySelectorAll(su)
|
|
3711
3728
|
}, this.addBindings();
|
|
@@ -3768,7 +3785,7 @@ function ru(i, t, e) {
|
|
|
3768
3785
|
for (var a = i.settings, c = arguments.length, l = new Array(c), h = 0; h < c; h++)
|
|
3769
3786
|
l[h] = arguments[h];
|
|
3770
3787
|
l.forEach(function(u) {
|
|
3771
|
-
|
|
3788
|
+
us(u).forEach(function(f) {
|
|
3772
3789
|
f.classList.remove(a.classes.arrow.disabled);
|
|
3773
3790
|
});
|
|
3774
3791
|
});
|
|
@@ -3782,7 +3799,7 @@ function ru(i, t, e) {
|
|
|
3782
3799
|
for (var a = i.settings, c = arguments.length, l = new Array(c), h = 0; h < c; h++)
|
|
3783
3800
|
l[h] = arguments[h];
|
|
3784
3801
|
l.forEach(function(u) {
|
|
3785
|
-
|
|
3802
|
+
us(u).forEach(function(f) {
|
|
3786
3803
|
f.classList.add(a.classes.arrow.disabled);
|
|
3787
3804
|
});
|
|
3788
3805
|
});
|
|
@@ -3834,7 +3851,7 @@ function ru(i, t, e) {
|
|
|
3834
3851
|
* @return {void}
|
|
3835
3852
|
*/
|
|
3836
3853
|
click: function(a) {
|
|
3837
|
-
!
|
|
3854
|
+
!Tr && a.type === "touchstart" && a.preventDefault();
|
|
3838
3855
|
var c = a.currentTarget.getAttribute("data-glide-dir");
|
|
3839
3856
|
t.Run.make(t.Direction.resolve(c));
|
|
3840
3857
|
}
|
|
@@ -3871,7 +3888,7 @@ var ou = {
|
|
|
3871
3888
|
Run: Ih
|
|
3872
3889
|
}, au = /* @__PURE__ */ function(i) {
|
|
3873
3890
|
kh(e, i);
|
|
3874
|
-
var t =
|
|
3891
|
+
var t = Ah(e);
|
|
3875
3892
|
function e() {
|
|
3876
3893
|
return En(this, e), t.apply(this, arguments);
|
|
3877
3894
|
}
|
|
@@ -3879,11 +3896,11 @@ var ou = {
|
|
|
3879
3896
|
key: "mount",
|
|
3880
3897
|
value: function() {
|
|
3881
3898
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3882
|
-
return
|
|
3899
|
+
return cn(ze(e.prototype), "mount", this).call(this, Object.assign({}, ou, s));
|
|
3883
3900
|
}
|
|
3884
3901
|
}]), e;
|
|
3885
3902
|
}(Lh);
|
|
3886
|
-
function
|
|
3903
|
+
function vn({ children: i, cssClass: t = "" }) {
|
|
3887
3904
|
const e = ne(null);
|
|
3888
3905
|
return qo(() => {
|
|
3889
3906
|
e.current && new au(e.current).mount({ Controls: ru });
|
|
@@ -3933,13 +3950,13 @@ function cu({
|
|
|
3933
3950
|
] })
|
|
3934
3951
|
] }) });
|
|
3935
3952
|
}
|
|
3936
|
-
|
|
3937
|
-
|
|
3953
|
+
vn.Slide = _a;
|
|
3954
|
+
vn.ImageSlide = cu;
|
|
3938
3955
|
function lu({ children: i, maxHeight: t = "400px" }) {
|
|
3939
3956
|
return /* @__PURE__ */ v("div", { class: "scroll-text", children: /* @__PURE__ */ v("div", { class: "scroll-text-inner", style: { maxHeight: t }, children: i }) });
|
|
3940
3957
|
}
|
|
3941
3958
|
const hu = "https://allocations.access-ci.org/current-projects.json";
|
|
3942
|
-
function
|
|
3959
|
+
function Wi({ icon: i, text: t, title: e }) {
|
|
3943
3960
|
if (t)
|
|
3944
3961
|
return /* @__PURE__ */ v("abbr", { class: "project-meta", title: e, children: [
|
|
3945
3962
|
/* @__PURE__ */ v(X, { name: i }),
|
|
@@ -3947,7 +3964,7 @@ function ji({ icon: i, text: t, title: e }) {
|
|
|
3947
3964
|
] });
|
|
3948
3965
|
}
|
|
3949
3966
|
function uu({ infoGroupId: i }) {
|
|
3950
|
-
const t =
|
|
3967
|
+
const t = wi(i), e = ht(
|
|
3951
3968
|
t ? `${hu}?${t.infoResourceIds.map((s) => `info_resourceids[]=${s}`).join("&")}` : null
|
|
3952
3969
|
);
|
|
3953
3970
|
if (!e || !e.projects || !e.projects.length) return null;
|
|
@@ -3959,11 +3976,11 @@ function uu({ infoGroupId: i }) {
|
|
|
3959
3976
|
format: (s, r) => r.units == "[Yes = 1, No = 0]" ? s == 1 ? "Yes" : "No" : `${s.toLocaleString("en-us")} ${r.units || ""}`
|
|
3960
3977
|
}
|
|
3961
3978
|
];
|
|
3962
|
-
return /* @__PURE__ */ v(zt, { title: "Recent Projects", icon: "pc-display", children: /* @__PURE__ */ v(
|
|
3979
|
+
return /* @__PURE__ */ v(zt, { title: "Recent Projects", icon: "pc-display", children: /* @__PURE__ */ v(vn, { cssClass: "carousel-projects", children: e.projects.map((s) => /* @__PURE__ */ v(vn.Slide, { children: [
|
|
3963
3980
|
/* @__PURE__ */ v("h3", { children: s.requestTitle }),
|
|
3964
3981
|
/* @__PURE__ */ v("div", { class: "project-metadata", children: [
|
|
3965
3982
|
/* @__PURE__ */ v(
|
|
3966
|
-
|
|
3983
|
+
Wi,
|
|
3967
3984
|
{
|
|
3968
3985
|
icon: "cash-coin",
|
|
3969
3986
|
text: s.allocationType,
|
|
@@ -3971,7 +3988,7 @@ function uu({ infoGroupId: i }) {
|
|
|
3971
3988
|
}
|
|
3972
3989
|
),
|
|
3973
3990
|
/* @__PURE__ */ v(
|
|
3974
|
-
|
|
3991
|
+
Wi,
|
|
3975
3992
|
{
|
|
3976
3993
|
icon: "person-fill",
|
|
3977
3994
|
text: `${s.pi} (${s.piInstitution})`,
|
|
@@ -3979,7 +3996,7 @@ function uu({ infoGroupId: i }) {
|
|
|
3979
3996
|
}
|
|
3980
3997
|
),
|
|
3981
3998
|
/* @__PURE__ */ v(
|
|
3982
|
-
|
|
3999
|
+
Wi,
|
|
3983
4000
|
{
|
|
3984
4001
|
icon: "folder",
|
|
3985
4002
|
text: s.fos,
|
|
@@ -3987,7 +4004,7 @@ function uu({ infoGroupId: i }) {
|
|
|
3987
4004
|
}
|
|
3988
4005
|
),
|
|
3989
4006
|
/* @__PURE__ */ v(
|
|
3990
|
-
|
|
4007
|
+
Wi,
|
|
3991
4008
|
{
|
|
3992
4009
|
icon: "calendar-range",
|
|
3993
4010
|
text: [s.beginDate, s.endDate].map(
|
|
@@ -4002,7 +4019,7 @@ function uu({ infoGroupId: i }) {
|
|
|
4002
4019
|
/* @__PURE__ */ v(lu, { children: [
|
|
4003
4020
|
/* @__PURE__ */ v("p", { children: s.abstract }),
|
|
4004
4021
|
/* @__PURE__ */ v(
|
|
4005
|
-
|
|
4022
|
+
An,
|
|
4006
4023
|
{
|
|
4007
4024
|
columns: n,
|
|
4008
4025
|
rows: s.resources,
|
|
@@ -4018,23 +4035,23 @@ function uu({ infoGroupId: i }) {
|
|
|
4018
4035
|
* (c) 2023 Jukka Kurkela
|
|
4019
4036
|
* Released under the MIT License
|
|
4020
4037
|
*/
|
|
4021
|
-
function
|
|
4038
|
+
function Oi(i) {
|
|
4022
4039
|
return i + 0.5 | 0;
|
|
4023
4040
|
}
|
|
4024
4041
|
const Gt = (i, t, e) => Math.max(Math.min(i, e), t);
|
|
4025
4042
|
function ei(i) {
|
|
4026
|
-
return Gt(
|
|
4043
|
+
return Gt(Oi(i * 2.55), 0, 255);
|
|
4027
4044
|
}
|
|
4028
4045
|
function ee(i) {
|
|
4029
|
-
return Gt(
|
|
4046
|
+
return Gt(Oi(i * 255), 0, 255);
|
|
4030
4047
|
}
|
|
4031
4048
|
function Yt(i) {
|
|
4032
|
-
return Gt(
|
|
4049
|
+
return Gt(Oi(i / 2.55) / 100, 0, 1);
|
|
4033
4050
|
}
|
|
4034
|
-
function
|
|
4035
|
-
return Gt(
|
|
4051
|
+
function Ar(i) {
|
|
4052
|
+
return Gt(Oi(i * 100), 0, 100);
|
|
4036
4053
|
}
|
|
4037
|
-
const _t = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 },
|
|
4054
|
+
const _t = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, fs = [..."0123456789ABCDEF"], fu = (i) => fs[i & 15], du = (i) => fs[(i & 240) >> 4] + fs[i & 15], Vi = (i) => (i & 240) >> 4 === (i & 15), pu = (i) => Vi(i.r) && Vi(i.g) && Vi(i.b) && Vi(i.a);
|
|
4038
4055
|
function gu(i) {
|
|
4039
4056
|
var t = i.length, e;
|
|
4040
4057
|
return i[0] === "#" && (t === 4 || t === 5 ? e = {
|
|
@@ -4073,22 +4090,22 @@ function xu(i, t, e) {
|
|
|
4073
4090
|
function _u(i, t, e, n, s) {
|
|
4074
4091
|
return i === s ? (t - e) / n + (t < e ? 6 : 0) : t === s ? (e - i) / n + 2 : (i - t) / n + 4;
|
|
4075
4092
|
}
|
|
4076
|
-
function
|
|
4093
|
+
function Bs(i) {
|
|
4077
4094
|
const e = i.r / 255, n = i.g / 255, s = i.b / 255, r = Math.max(e, n, s), o = Math.min(e, n, s), a = (r + o) / 2;
|
|
4078
4095
|
let c, l, h;
|
|
4079
4096
|
return r !== o && (h = r - o, l = a > 0.5 ? h / (2 - r - o) : h / (r + o), c = _u(e, n, s, h, r), c = c * 60 + 0.5), [c | 0, l || 0, a];
|
|
4080
4097
|
}
|
|
4081
|
-
function
|
|
4098
|
+
function Hs(i, t, e, n) {
|
|
4082
4099
|
return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, n)).map(ee);
|
|
4083
4100
|
}
|
|
4084
|
-
function
|
|
4085
|
-
return
|
|
4101
|
+
function Ns(i, t, e) {
|
|
4102
|
+
return Hs(wa, i, t, e);
|
|
4086
4103
|
}
|
|
4087
4104
|
function wu(i, t, e) {
|
|
4088
|
-
return
|
|
4105
|
+
return Hs(xu, i, t, e);
|
|
4089
4106
|
}
|
|
4090
4107
|
function Su(i, t, e) {
|
|
4091
|
-
return
|
|
4108
|
+
return Hs(yu, i, t, e);
|
|
4092
4109
|
}
|
|
4093
4110
|
function Sa(i) {
|
|
4094
4111
|
return (i % 360 + 360) % 360;
|
|
@@ -4100,7 +4117,7 @@ function ku(i) {
|
|
|
4100
4117
|
return;
|
|
4101
4118
|
t[5] !== n && (e = t[6] ? ei(+t[5]) : ee(+t[5]));
|
|
4102
4119
|
const s = Sa(+t[2]), r = +t[3] / 100, o = +t[4] / 100;
|
|
4103
|
-
return t[1] === "hwb" ? n = wu(s, r, o) : t[1] === "hsv" ? n = Su(s, r, o) : n =
|
|
4120
|
+
return t[1] === "hwb" ? n = wu(s, r, o) : t[1] === "hsv" ? n = Su(s, r, o) : n = Ns(s, r, o), {
|
|
4104
4121
|
r: n[0],
|
|
4105
4122
|
g: n[1],
|
|
4106
4123
|
b: n[2],
|
|
@@ -4108,13 +4125,13 @@ function ku(i) {
|
|
|
4108
4125
|
};
|
|
4109
4126
|
}
|
|
4110
4127
|
function Mu(i, t) {
|
|
4111
|
-
var e =
|
|
4112
|
-
e[0] = Sa(e[0] + t), e =
|
|
4128
|
+
var e = Bs(i);
|
|
4129
|
+
e[0] = Sa(e[0] + t), e = Ns(e), i.r = e[0], i.g = e[1], i.b = e[2];
|
|
4113
4130
|
}
|
|
4114
4131
|
function Ou(i) {
|
|
4115
4132
|
if (!i)
|
|
4116
4133
|
return;
|
|
4117
|
-
const t =
|
|
4134
|
+
const t = Bs(i), e = t[0], n = Ar(t[1]), s = Ar(t[2]);
|
|
4118
4135
|
return i.a < 255 ? `hsla(${e}, ${n}%, ${s}%, ${Yt(i.a)})` : `hsl(${e}, ${n}%, ${s}%)`;
|
|
4119
4136
|
}
|
|
4120
4137
|
const Dr = {
|
|
@@ -4295,7 +4312,7 @@ const Dr = {
|
|
|
4295
4312
|
Lw: "ffff00",
|
|
4296
4313
|
LwgYF: "9acd32"
|
|
4297
4314
|
};
|
|
4298
|
-
function
|
|
4315
|
+
function Tu() {
|
|
4299
4316
|
const i = {}, t = Object.keys(Er), e = Object.keys(Dr);
|
|
4300
4317
|
let n, s, r, o, a;
|
|
4301
4318
|
for (n = 0; n < t.length; n++) {
|
|
@@ -4305,10 +4322,10 @@ function Au() {
|
|
|
4305
4322
|
}
|
|
4306
4323
|
return i;
|
|
4307
4324
|
}
|
|
4308
|
-
let
|
|
4309
|
-
function
|
|
4310
|
-
|
|
4311
|
-
const t =
|
|
4325
|
+
let $i;
|
|
4326
|
+
function Au(i) {
|
|
4327
|
+
$i || ($i = Tu(), $i.transparent = [0, 0, 0, 0]);
|
|
4328
|
+
const t = $i[i.toLowerCase()];
|
|
4312
4329
|
return t && {
|
|
4313
4330
|
r: t[0],
|
|
4314
4331
|
g: t[1],
|
|
@@ -4336,20 +4353,20 @@ function Eu(i) {
|
|
|
4336
4353
|
function Pu(i) {
|
|
4337
4354
|
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${Yt(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
|
|
4338
4355
|
}
|
|
4339
|
-
const jn = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055,
|
|
4356
|
+
const jn = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Ae = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
4340
4357
|
function Cu(i, t, e) {
|
|
4341
|
-
const n =
|
|
4358
|
+
const n = Ae(Yt(i.r)), s = Ae(Yt(i.g)), r = Ae(Yt(i.b));
|
|
4342
4359
|
return {
|
|
4343
|
-
r: ee(jn(n + e * (
|
|
4344
|
-
g: ee(jn(s + e * (
|
|
4345
|
-
b: ee(jn(r + e * (
|
|
4360
|
+
r: ee(jn(n + e * (Ae(Yt(t.r)) - n))),
|
|
4361
|
+
g: ee(jn(s + e * (Ae(Yt(t.g)) - s))),
|
|
4362
|
+
b: ee(jn(r + e * (Ae(Yt(t.b)) - r))),
|
|
4346
4363
|
a: i.a + e * (t.a - i.a)
|
|
4347
4364
|
};
|
|
4348
4365
|
}
|
|
4349
|
-
function
|
|
4366
|
+
function Ui(i, t, e) {
|
|
4350
4367
|
if (i) {
|
|
4351
|
-
let n =
|
|
4352
|
-
n[t] = Math.max(0, Math.min(n[t] + n[t] * e, t === 0 ? 360 : 1)), n =
|
|
4368
|
+
let n = Bs(i);
|
|
4369
|
+
n[t] = Math.max(0, Math.min(n[t] + n[t] * e, t === 0 ? 360 : 1)), n = Ns(n), i.r = n[0], i.g = n[1], i.b = n[2];
|
|
4353
4370
|
}
|
|
4354
4371
|
}
|
|
4355
4372
|
function ka(i, t) {
|
|
@@ -4368,7 +4385,7 @@ class mi {
|
|
|
4368
4385
|
return t;
|
|
4369
4386
|
const e = typeof t;
|
|
4370
4387
|
let n;
|
|
4371
|
-
e === "object" ? n = Pr(t) : e === "string" && (n = gu(t) ||
|
|
4388
|
+
e === "object" ? n = Pr(t) : e === "string" && (n = gu(t) || Au(t) || Ru(t)), this._rgb = n, this._valid = !!n;
|
|
4372
4389
|
}
|
|
4373
4390
|
get valid() {
|
|
4374
4391
|
return this._valid;
|
|
@@ -4412,7 +4429,7 @@ class mi {
|
|
|
4412
4429
|
return e.a *= 1 - t, this;
|
|
4413
4430
|
}
|
|
4414
4431
|
greyscale() {
|
|
4415
|
-
const t = this._rgb, e =
|
|
4432
|
+
const t = this._rgb, e = Oi(t.r * 0.3 + t.g * 0.59 + t.b * 0.11);
|
|
4416
4433
|
return t.r = t.g = t.b = e, this;
|
|
4417
4434
|
}
|
|
4418
4435
|
opaquer(t) {
|
|
@@ -4424,16 +4441,16 @@ class mi {
|
|
|
4424
4441
|
return t.r = 255 - t.r, t.g = 255 - t.g, t.b = 255 - t.b, this;
|
|
4425
4442
|
}
|
|
4426
4443
|
lighten(t) {
|
|
4427
|
-
return
|
|
4444
|
+
return Ui(this._rgb, 2, t), this;
|
|
4428
4445
|
}
|
|
4429
4446
|
darken(t) {
|
|
4430
|
-
return
|
|
4447
|
+
return Ui(this._rgb, 2, -t), this;
|
|
4431
4448
|
}
|
|
4432
4449
|
saturate(t) {
|
|
4433
|
-
return
|
|
4450
|
+
return Ui(this._rgb, 1, t), this;
|
|
4434
4451
|
}
|
|
4435
4452
|
desaturate(t) {
|
|
4436
|
-
return
|
|
4453
|
+
return Ui(this._rgb, 1, -t), this;
|
|
4437
4454
|
}
|
|
4438
4455
|
rotate(t) {
|
|
4439
4456
|
return Mu(this._rgb, t), this;
|
|
@@ -4463,11 +4480,11 @@ function Z(i) {
|
|
|
4463
4480
|
function N(i) {
|
|
4464
4481
|
return i !== null && Object.prototype.toString.call(i) === "[object Object]";
|
|
4465
4482
|
}
|
|
4466
|
-
function
|
|
4483
|
+
function Tt(i) {
|
|
4467
4484
|
return (typeof i == "number" || i instanceof Number) && isFinite(+i);
|
|
4468
4485
|
}
|
|
4469
4486
|
function Pt(i, t) {
|
|
4470
|
-
return
|
|
4487
|
+
return Tt(i) ? i : t;
|
|
4471
4488
|
}
|
|
4472
4489
|
function j(i, t) {
|
|
4473
4490
|
return typeof i > "u" ? t : i;
|
|
@@ -4486,7 +4503,7 @@ function $(i, t, e, n) {
|
|
|
4486
4503
|
for (o = Object.keys(i), r = o.length, s = 0; s < r; s++)
|
|
4487
4504
|
t.call(e, i[o[s]], o[s]);
|
|
4488
4505
|
}
|
|
4489
|
-
function
|
|
4506
|
+
function yn(i, t) {
|
|
4490
4507
|
let e, n, s, r;
|
|
4491
4508
|
if (!i || !t || i.length !== t.length)
|
|
4492
4509
|
return !1;
|
|
@@ -4495,14 +4512,14 @@ function vn(i, t) {
|
|
|
4495
4512
|
return !1;
|
|
4496
4513
|
return !0;
|
|
4497
4514
|
}
|
|
4498
|
-
function
|
|
4515
|
+
function xn(i) {
|
|
4499
4516
|
if (Z(i))
|
|
4500
|
-
return i.map(
|
|
4517
|
+
return i.map(xn);
|
|
4501
4518
|
if (N(i)) {
|
|
4502
4519
|
const t = /* @__PURE__ */ Object.create(null), e = Object.keys(i), n = e.length;
|
|
4503
4520
|
let s = 0;
|
|
4504
4521
|
for (; s < n; ++s)
|
|
4505
|
-
t[e[s]] =
|
|
4522
|
+
t[e[s]] = xn(i[e[s]]);
|
|
4506
4523
|
return t;
|
|
4507
4524
|
}
|
|
4508
4525
|
return i;
|
|
@@ -4518,7 +4535,7 @@ function Fu(i, t, e, n) {
|
|
|
4518
4535
|
if (!Oa(i))
|
|
4519
4536
|
return;
|
|
4520
4537
|
const s = t[i], r = e[i];
|
|
4521
|
-
N(s) && N(r) ? bi(s, r, n) : t[i] =
|
|
4538
|
+
N(s) && N(r) ? bi(s, r, n) : t[i] = xn(r);
|
|
4522
4539
|
}
|
|
4523
4540
|
function bi(i, t, e) {
|
|
4524
4541
|
const n = Z(t) ? t : [
|
|
@@ -4547,7 +4564,7 @@ function zu(i, t, e) {
|
|
|
4547
4564
|
if (!Oa(i))
|
|
4548
4565
|
return;
|
|
4549
4566
|
const n = t[i], s = e[i];
|
|
4550
|
-
N(n) && N(s) ? ci(n, s) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] =
|
|
4567
|
+
N(n) && N(s) ? ci(n, s) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = xn(s));
|
|
4551
4568
|
}
|
|
4552
4569
|
const Cr = {
|
|
4553
4570
|
// Chart.helpers.core resolveObjectKey should resolve empty key to root object
|
|
@@ -4577,7 +4594,7 @@ function Hu(i) {
|
|
|
4577
4594
|
function se(i, t) {
|
|
4578
4595
|
return (Cr[t] || (Cr[t] = Hu(t)))(i);
|
|
4579
4596
|
}
|
|
4580
|
-
function
|
|
4597
|
+
function js(i) {
|
|
4581
4598
|
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
4582
4599
|
}
|
|
4583
4600
|
const vi = (i) => typeof i < "u", re = (i) => typeof i == "function", Rr = (i, t) => {
|
|
@@ -4591,14 +4608,14 @@ const vi = (i) => typeof i < "u", re = (i) => typeof i == "function", Rr = (i, t
|
|
|
4591
4608
|
function Nu(i) {
|
|
4592
4609
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
4593
4610
|
}
|
|
4594
|
-
const G = Math.PI,
|
|
4595
|
-
function
|
|
4611
|
+
const G = Math.PI, mt = 2 * G, _n = Number.POSITIVE_INFINITY, ju = G / 180, bt = G / 2, he = G / 4, Lr = G * 2 / 3, ds = Math.log10, ie = Math.sign;
|
|
4612
|
+
function ln(i, t, e) {
|
|
4596
4613
|
return Math.abs(i - t) < e;
|
|
4597
4614
|
}
|
|
4598
4615
|
function Ir(i) {
|
|
4599
4616
|
const t = Math.round(i);
|
|
4600
|
-
i =
|
|
4601
|
-
const e = Math.pow(10, Math.floor(
|
|
4617
|
+
i = ln(i, t, i / 1e3) ? t : i;
|
|
4618
|
+
const e = Math.pow(10, Math.floor(ds(i))), n = i / e;
|
|
4602
4619
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * e;
|
|
4603
4620
|
}
|
|
4604
4621
|
function Wu(i) {
|
|
@@ -4608,7 +4625,7 @@ function Wu(i) {
|
|
|
4608
4625
|
i % n === 0 && (t.push(n), t.push(i / n));
|
|
4609
4626
|
return e === (e | 0) && t.push(e), t.sort((s, r) => s - r).pop(), t;
|
|
4610
4627
|
}
|
|
4611
|
-
function
|
|
4628
|
+
function wn(i) {
|
|
4612
4629
|
return !isNaN(parseFloat(i)) && isFinite(i);
|
|
4613
4630
|
}
|
|
4614
4631
|
function Vu(i, t) {
|
|
@@ -4627,7 +4644,7 @@ function Uu(i) {
|
|
|
4627
4644
|
return i * (180 / G);
|
|
4628
4645
|
}
|
|
4629
4646
|
function Fr(i) {
|
|
4630
|
-
if (!
|
|
4647
|
+
if (!Tt(i))
|
|
4631
4648
|
return;
|
|
4632
4649
|
let t = 1, e = 0;
|
|
4633
4650
|
for (; Math.round(i * t) / t !== i; )
|
|
@@ -4637,7 +4654,7 @@ function Fr(i) {
|
|
|
4637
4654
|
function Yu(i, t) {
|
|
4638
4655
|
const e = t.x - i.x, n = t.y - i.y, s = Math.sqrt(e * e + n * n);
|
|
4639
4656
|
let r = Math.atan2(n, e);
|
|
4640
|
-
return r < -0.5 * G && (r +=
|
|
4657
|
+
return r < -0.5 * G && (r += mt), {
|
|
4641
4658
|
angle: r,
|
|
4642
4659
|
distance: s
|
|
4643
4660
|
};
|
|
@@ -4646,22 +4663,22 @@ function Xu(i, t) {
|
|
|
4646
4663
|
return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2));
|
|
4647
4664
|
}
|
|
4648
4665
|
function ue(i) {
|
|
4649
|
-
return (i %
|
|
4666
|
+
return (i % mt + mt) % mt;
|
|
4650
4667
|
}
|
|
4651
|
-
function
|
|
4668
|
+
function ps(i, t, e, n) {
|
|
4652
4669
|
const s = ue(i), r = ue(t), o = ue(e), a = ue(r - s), c = ue(o - s), l = ue(s - r), h = ue(s - o);
|
|
4653
4670
|
return s === r || s === o || n && r === o || a > c && l < h;
|
|
4654
4671
|
}
|
|
4655
|
-
function
|
|
4672
|
+
function Et(i, t, e) {
|
|
4656
4673
|
return Math.max(t, Math.min(e, i));
|
|
4657
4674
|
}
|
|
4658
4675
|
function Ku(i) {
|
|
4659
|
-
return
|
|
4676
|
+
return Et(i, -32768, 32767);
|
|
4660
4677
|
}
|
|
4661
4678
|
function Ee(i, t, e, n = 1e-6) {
|
|
4662
4679
|
return i >= Math.min(t, e) - n && i <= Math.max(t, e) + n;
|
|
4663
4680
|
}
|
|
4664
|
-
function
|
|
4681
|
+
function Ws(i, t, e) {
|
|
4665
4682
|
e = e || ((o) => i[o] < t);
|
|
4666
4683
|
let n = i.length - 1, s = 0, r;
|
|
4667
4684
|
for (; n - s > 1; )
|
|
@@ -4671,10 +4688,10 @@ function js(i, t, e) {
|
|
|
4671
4688
|
hi: n
|
|
4672
4689
|
};
|
|
4673
4690
|
}
|
|
4674
|
-
const
|
|
4691
|
+
const gs = (i, t, e, n) => Ws(i, e, n ? (s) => {
|
|
4675
4692
|
const r = i[s][t];
|
|
4676
4693
|
return r < e || r === e && i[s + 1][t] === e;
|
|
4677
|
-
} : (s) => i[s][t] < e), qu = (i, t, e) =>
|
|
4694
|
+
} : (s) => i[s][t] < e), qu = (i, t, e) => Ws(i, e, (n) => i[n][t] >= e);
|
|
4678
4695
|
function Qu(i, t, e) {
|
|
4679
4696
|
let n = 0, s = i.length;
|
|
4680
4697
|
for (; n < s && i[n] < t; )
|
|
@@ -4683,7 +4700,7 @@ function Qu(i, t, e) {
|
|
|
4683
4700
|
s--;
|
|
4684
4701
|
return n > 0 || s < i.length ? i.slice(n, s) : i;
|
|
4685
4702
|
}
|
|
4686
|
-
const
|
|
4703
|
+
const Ta = [
|
|
4687
4704
|
"push",
|
|
4688
4705
|
"pop",
|
|
4689
4706
|
"shift",
|
|
@@ -4703,8 +4720,8 @@ function Zu(i, t) {
|
|
|
4703
4720
|
t
|
|
4704
4721
|
]
|
|
4705
4722
|
}
|
|
4706
|
-
}),
|
|
4707
|
-
const n = "_onData" +
|
|
4723
|
+
}), Ta.forEach((e) => {
|
|
4724
|
+
const n = "_onData" + js(e), s = i[e];
|
|
4708
4725
|
Object.defineProperty(i, e, {
|
|
4709
4726
|
configurable: !0,
|
|
4710
4727
|
enumerable: !1,
|
|
@@ -4722,11 +4739,11 @@ function zr(i, t) {
|
|
|
4722
4739
|
if (!e)
|
|
4723
4740
|
return;
|
|
4724
4741
|
const n = e.listeners, s = n.indexOf(t);
|
|
4725
|
-
s !== -1 && n.splice(s, 1), !(n.length > 0) && (
|
|
4742
|
+
s !== -1 && n.splice(s, 1), !(n.length > 0) && (Ta.forEach((r) => {
|
|
4726
4743
|
delete i[r];
|
|
4727
4744
|
}), delete i._chartjs);
|
|
4728
4745
|
}
|
|
4729
|
-
function
|
|
4746
|
+
function Aa(i) {
|
|
4730
4747
|
const t = new Set(i);
|
|
4731
4748
|
return t.size === i.length ? i : Array.from(t);
|
|
4732
4749
|
}
|
|
@@ -4749,7 +4766,7 @@ function Gu(i, t) {
|
|
|
4749
4766
|
return t ? (clearTimeout(e), e = setTimeout(i, t, n)) : i.apply(this, n), t;
|
|
4750
4767
|
};
|
|
4751
4768
|
}
|
|
4752
|
-
const
|
|
4769
|
+
const Vs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", st = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, Ju = (i, t, e, n) => i === (n ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t, Yi = (i) => i === 0 || i === 1, Br = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * mt / e)), Hr = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * mt / e) + 1, li = {
|
|
4753
4770
|
linear: (i) => i,
|
|
4754
4771
|
easeInQuad: (i) => i * i,
|
|
4755
4772
|
easeOutQuad: (i) => -i * (i - 2),
|
|
@@ -4763,19 +4780,19 @@ const Ws = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", st
|
|
|
4763
4780
|
easeInQuint: (i) => i * i * i * i * i,
|
|
4764
4781
|
easeOutQuint: (i) => (i -= 1) * i * i * i * i + 1,
|
|
4765
4782
|
easeInOutQuint: (i) => (i /= 0.5) < 1 ? 0.5 * i * i * i * i * i : 0.5 * ((i -= 2) * i * i * i * i + 2),
|
|
4766
|
-
easeInSine: (i) => -Math.cos(i *
|
|
4767
|
-
easeOutSine: (i) => Math.sin(i *
|
|
4783
|
+
easeInSine: (i) => -Math.cos(i * bt) + 1,
|
|
4784
|
+
easeOutSine: (i) => Math.sin(i * bt),
|
|
4768
4785
|
easeInOutSine: (i) => -0.5 * (Math.cos(G * i) - 1),
|
|
4769
4786
|
easeInExpo: (i) => i === 0 ? 0 : Math.pow(2, 10 * (i - 1)),
|
|
4770
4787
|
easeOutExpo: (i) => i === 1 ? 1 : -Math.pow(2, -10 * i) + 1,
|
|
4771
|
-
easeInOutExpo: (i) =>
|
|
4788
|
+
easeInOutExpo: (i) => Yi(i) ? i : i < 0.5 ? 0.5 * Math.pow(2, 10 * (i * 2 - 1)) : 0.5 * (-Math.pow(2, -10 * (i * 2 - 1)) + 2),
|
|
4772
4789
|
easeInCirc: (i) => i >= 1 ? i : -(Math.sqrt(1 - i * i) - 1),
|
|
4773
4790
|
easeOutCirc: (i) => Math.sqrt(1 - (i -= 1) * i),
|
|
4774
4791
|
easeInOutCirc: (i) => (i /= 0.5) < 1 ? -0.5 * (Math.sqrt(1 - i * i) - 1) : 0.5 * (Math.sqrt(1 - (i -= 2) * i) + 1),
|
|
4775
|
-
easeInElastic: (i) =>
|
|
4776
|
-
easeOutElastic: (i) =>
|
|
4792
|
+
easeInElastic: (i) => Yi(i) ? i : Br(i, 0.075, 0.3),
|
|
4793
|
+
easeOutElastic: (i) => Yi(i) ? i : Hr(i, 0.075, 0.3),
|
|
4777
4794
|
easeInOutElastic(i) {
|
|
4778
|
-
return
|
|
4795
|
+
return Yi(i) ? i : i < 0.5 ? 0.5 * Br(i * 2, 0.1125, 0.45) : 0.5 + 0.5 * Hr(i * 2 - 1, 0.1125, 0.45);
|
|
4779
4796
|
},
|
|
4780
4797
|
easeInBack(i) {
|
|
4781
4798
|
return i * i * ((1.70158 + 1) * i - 1.70158);
|
|
@@ -4912,7 +4929,7 @@ const Ca = {
|
|
|
4912
4929
|
const l = Math.max(Math.abs(e[0].value), Math.abs(e[e.length - 1].value));
|
|
4913
4930
|
(l < 1e-4 || l > 1e15) && (s = "scientific"), r = of(i, e);
|
|
4914
4931
|
}
|
|
4915
|
-
const o =
|
|
4932
|
+
const o = ds(Math.abs(r)), a = isNaN(o) ? 1 : Math.max(Math.min(-1 * Math.floor(o), 20), 0), c = {
|
|
4916
4933
|
notation: s,
|
|
4917
4934
|
minimumFractionDigits: a,
|
|
4918
4935
|
maximumFractionDigits: a
|
|
@@ -4922,7 +4939,7 @@ const Ca = {
|
|
|
4922
4939
|
logarithmic(i, t, e) {
|
|
4923
4940
|
if (i === 0)
|
|
4924
4941
|
return "0";
|
|
4925
|
-
const n = e[t].significand || i / Math.pow(10, Math.floor(
|
|
4942
|
+
const n = e[t].significand || i / Math.pow(10, Math.floor(ds(i)));
|
|
4926
4943
|
return [
|
|
4927
4944
|
1,
|
|
4928
4945
|
2,
|
|
@@ -5004,7 +5021,7 @@ function af(i) {
|
|
|
5004
5021
|
_indexable: (t) => t !== "backdropPadding"
|
|
5005
5022
|
});
|
|
5006
5023
|
}
|
|
5007
|
-
const _e = /* @__PURE__ */ Object.create(null),
|
|
5024
|
+
const _e = /* @__PURE__ */ Object.create(null), ms = /* @__PURE__ */ Object.create(null);
|
|
5008
5025
|
function hi(i, t) {
|
|
5009
5026
|
if (!t)
|
|
5010
5027
|
return i;
|
|
@@ -5045,7 +5062,7 @@ class cf {
|
|
|
5045
5062
|
return hi(this, t);
|
|
5046
5063
|
}
|
|
5047
5064
|
describe(t, e) {
|
|
5048
|
-
return Vn(
|
|
5065
|
+
return Vn(ms, t, e);
|
|
5049
5066
|
}
|
|
5050
5067
|
override(t, e) {
|
|
5051
5068
|
return Vn(_e, t, e);
|
|
@@ -5116,13 +5133,13 @@ function La(i, t, e, n, s) {
|
|
|
5116
5133
|
if (!(isNaN(m) || m <= 0)) {
|
|
5117
5134
|
switch (i.beginPath(), d) {
|
|
5118
5135
|
default:
|
|
5119
|
-
s ? i.ellipse(e, n, s / 2, m, 0, 0,
|
|
5136
|
+
s ? i.ellipse(e, n, s / 2, m, 0, 0, mt) : i.arc(e, n, m, 0, mt), i.closePath();
|
|
5120
5137
|
break;
|
|
5121
5138
|
case "triangle":
|
|
5122
5139
|
h = s ? s / 2 : m, i.moveTo(e + Math.sin(b) * h, n - Math.cos(b) * m), b += Lr, i.lineTo(e + Math.sin(b) * h, n - Math.cos(b) * m), b += Lr, i.lineTo(e + Math.sin(b) * h, n - Math.cos(b) * m), i.closePath();
|
|
5123
5140
|
break;
|
|
5124
5141
|
case "rectRounded":
|
|
5125
|
-
l = m * 0.516, c = m - l, o = Math.cos(b + he) * c, u = Math.cos(b + he) * (s ? s / 2 - l : c), a = Math.sin(b + he) * c, f = Math.sin(b + he) * (s ? s / 2 - l : c), i.arc(e - u, n - a, l, b - G, b -
|
|
5142
|
+
l = m * 0.516, c = m - l, o = Math.cos(b + he) * c, u = Math.cos(b + he) * (s ? s / 2 - l : c), a = Math.sin(b + he) * c, f = Math.sin(b + he) * (s ? s / 2 - l : c), i.arc(e - u, n - a, l, b - G, b - bt), i.arc(e + f, n - o, l, b - bt, b), i.arc(e + u, n + a, l, b, b + bt), i.arc(e - f, n + o, l, b + bt, b + G), i.closePath();
|
|
5126
5143
|
break;
|
|
5127
5144
|
case "rect":
|
|
5128
5145
|
if (!p) {
|
|
@@ -5157,10 +5174,10 @@ function La(i, t, e, n, s) {
|
|
|
5157
5174
|
function Ia(i, t, e) {
|
|
5158
5175
|
return e = e || 0.5, !t || i && i.x > t.left - e && i.x < t.right + e && i.y > t.top - e && i.y < t.bottom + e;
|
|
5159
5176
|
}
|
|
5160
|
-
function
|
|
5177
|
+
function $s(i, t) {
|
|
5161
5178
|
i.save(), i.beginPath(), i.rect(t.left, t.top, t.right - t.left, t.bottom - t.top), i.clip();
|
|
5162
5179
|
}
|
|
5163
|
-
function
|
|
5180
|
+
function Us(i) {
|
|
5164
5181
|
i.restore();
|
|
5165
5182
|
}
|
|
5166
5183
|
function hf(i, t) {
|
|
@@ -5185,9 +5202,9 @@ function yi(i, t, e, n, s, r = {}) {
|
|
|
5185
5202
|
l = o[c], r.backdrop && ff(i, r.backdrop), a && (r.strokeColor && (i.strokeStyle = r.strokeColor), Y(r.strokeWidth) || (i.lineWidth = r.strokeWidth), i.strokeText(l, e, n, r.maxWidth)), i.fillText(l, e, n, r.maxWidth), uf(i, e, n, l, r), n += Number(s.lineHeight);
|
|
5186
5203
|
i.restore();
|
|
5187
5204
|
}
|
|
5188
|
-
function
|
|
5205
|
+
function Sn(i, t) {
|
|
5189
5206
|
const { x: e, y: n, w: s, h: r, radius: o } = t;
|
|
5190
|
-
i.arc(e + o.topLeft, n + o.topLeft, o.topLeft, 1.5 * G, G, !0), i.lineTo(e, n + r - o.bottomLeft), i.arc(e + o.bottomLeft, n + r - o.bottomLeft, o.bottomLeft, G,
|
|
5207
|
+
i.arc(e + o.topLeft, n + o.topLeft, o.topLeft, 1.5 * G, G, !0), i.lineTo(e, n + r - o.bottomLeft), i.arc(e + o.bottomLeft, n + r - o.bottomLeft, o.bottomLeft, G, bt, !0), i.lineTo(e + s - o.bottomRight, n + r), i.arc(e + s - o.bottomRight, n + r - o.bottomRight, o.bottomRight, bt, 0, !0), i.lineTo(e + s, n + o.topRight), i.arc(e + s - o.topRight, n + o.topRight, o.topRight, 0, -bt, !0), i.lineTo(e + o.topLeft, n);
|
|
5191
5208
|
}
|
|
5192
5209
|
const df = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, pf = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
|
|
5193
5210
|
function gf(i, t) {
|
|
@@ -5246,7 +5263,7 @@ function rt(i, t) {
|
|
|
5246
5263
|
};
|
|
5247
5264
|
return s.string = lf(s), s;
|
|
5248
5265
|
}
|
|
5249
|
-
function
|
|
5266
|
+
function Xi(i, t, e, n) {
|
|
5250
5267
|
let s, r, o;
|
|
5251
5268
|
for (s = 0, r = i.length; s < r; ++s)
|
|
5252
5269
|
if (o = i[s], o !== void 0 && o !== void 0)
|
|
@@ -5262,7 +5279,7 @@ function bf(i, t, e) {
|
|
|
5262
5279
|
function Ne(i, t) {
|
|
5263
5280
|
return Object.assign(Object.create(i), t);
|
|
5264
5281
|
}
|
|
5265
|
-
function
|
|
5282
|
+
function Ys(i, t = [
|
|
5266
5283
|
""
|
|
5267
5284
|
], e, n, s = () => i[0]) {
|
|
5268
5285
|
const r = e || i;
|
|
@@ -5274,7 +5291,7 @@ function Us(i, t = [
|
|
|
5274
5291
|
_rootScopes: r,
|
|
5275
5292
|
_fallback: n,
|
|
5276
5293
|
_getTarget: s,
|
|
5277
|
-
override: (a) =>
|
|
5294
|
+
override: (a) => Ys([
|
|
5278
5295
|
a,
|
|
5279
5296
|
...i
|
|
5280
5297
|
], t, r, n)
|
|
@@ -5399,7 +5416,7 @@ function Ba(i, t = {
|
|
|
5399
5416
|
isIndexable: re(n) ? n : () => n
|
|
5400
5417
|
};
|
|
5401
5418
|
}
|
|
5402
|
-
const vf = (i, t) => i ? i +
|
|
5419
|
+
const vf = (i, t) => i ? i + js(t) : t, Xs = (i, t) => N(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
|
|
5403
5420
|
function Ha(i, t, e) {
|
|
5404
5421
|
if (Object.prototype.hasOwnProperty.call(i, t) || t === "constructor")
|
|
5405
5422
|
return i[t];
|
|
@@ -5409,7 +5426,7 @@ function Ha(i, t, e) {
|
|
|
5409
5426
|
function yf(i, t, e) {
|
|
5410
5427
|
const { _proxy: n, _context: s, _subProxy: r, _descriptors: o } = i;
|
|
5411
5428
|
let a = n[t];
|
|
5412
|
-
return re(a) && o.isScriptable(t) && (a = xf(t, a, i, e)), Z(a) && a.length && (a = _f(t, a, i, o.isIndexable)),
|
|
5429
|
+
return re(a) && o.isScriptable(t) && (a = xf(t, a, i, e)), Z(a) && a.length && (a = _f(t, a, i, o.isIndexable)), Xs(t, a) && (a = Be(a, s, r && r[t], o)), a;
|
|
5413
5430
|
}
|
|
5414
5431
|
function xf(i, t, e, n) {
|
|
5415
5432
|
const { _proxy: s, _context: r, _subProxy: o, _stack: a } = e;
|
|
@@ -5417,7 +5434,7 @@ function xf(i, t, e, n) {
|
|
|
5417
5434
|
throw new Error("Recursion detected: " + Array.from(a).join("->") + "->" + i);
|
|
5418
5435
|
a.add(i);
|
|
5419
5436
|
let c = t(r, o || n);
|
|
5420
|
-
return a.delete(i),
|
|
5437
|
+
return a.delete(i), Xs(i, c) && (c = Ks(s._scopes, s, i, c)), c;
|
|
5421
5438
|
}
|
|
5422
5439
|
function _f(i, t, e, n) {
|
|
5423
5440
|
const { _proxy: s, _context: r, _subProxy: o, _descriptors: a } = e;
|
|
@@ -5427,7 +5444,7 @@ function _f(i, t, e, n) {
|
|
|
5427
5444
|
const c = t, l = s._scopes.filter((h) => h !== c);
|
|
5428
5445
|
t = [];
|
|
5429
5446
|
for (const h of c) {
|
|
5430
|
-
const u =
|
|
5447
|
+
const u = Ks(l, s, i, h);
|
|
5431
5448
|
t.push(Be(u, r, o && o[i], a));
|
|
5432
5449
|
}
|
|
5433
5450
|
}
|
|
@@ -5450,14 +5467,14 @@ function Sf(i, t, e, n, s) {
|
|
|
5450
5467
|
}
|
|
5451
5468
|
return !1;
|
|
5452
5469
|
}
|
|
5453
|
-
function
|
|
5470
|
+
function Ks(i, t, e, n) {
|
|
5454
5471
|
const s = t._rootScopes, r = Na(t._fallback, e, n), o = [
|
|
5455
5472
|
...i,
|
|
5456
5473
|
...s
|
|
5457
5474
|
], a = /* @__PURE__ */ new Set();
|
|
5458
5475
|
a.add(n);
|
|
5459
5476
|
let c = Ur(a, o, e, r || e, n);
|
|
5460
|
-
return c === null || typeof r < "u" && r !== e && (c = Ur(a, o, r, c, n), c === null) ? !1 :
|
|
5477
|
+
return c === null || typeof r < "u" && r !== e && (c = Ur(a, o, r, c, n), c === null) ? !1 : Ys(Array.from(a), [
|
|
5461
5478
|
""
|
|
5462
5479
|
], s, r, () => kf(t, e, n));
|
|
5463
5480
|
}
|
|
@@ -5476,7 +5493,7 @@ function Mf(i, t, e, n) {
|
|
|
5476
5493
|
let s;
|
|
5477
5494
|
for (const r of t)
|
|
5478
5495
|
if (s = ja(vf(r, i), e), typeof s < "u")
|
|
5479
|
-
return
|
|
5496
|
+
return Xs(i, s) ? Ks(e, n, i, s) : s;
|
|
5480
5497
|
}
|
|
5481
5498
|
function ja(i, t) {
|
|
5482
5499
|
for (const e of t) {
|
|
@@ -5498,7 +5515,7 @@ function Of(i) {
|
|
|
5498
5515
|
t.add(n);
|
|
5499
5516
|
return Array.from(t);
|
|
5500
5517
|
}
|
|
5501
|
-
function
|
|
5518
|
+
function Tf(i, t, e, n) {
|
|
5502
5519
|
const { iScale: s } = i, { key: r = "r" } = this._parsing, o = new Array(n);
|
|
5503
5520
|
let a, c, l, h;
|
|
5504
5521
|
for (a = 0, c = n; a < c; ++a)
|
|
@@ -5507,19 +5524,19 @@ function Af(i, t, e, n) {
|
|
|
5507
5524
|
};
|
|
5508
5525
|
return o;
|
|
5509
5526
|
}
|
|
5510
|
-
function
|
|
5527
|
+
function qs() {
|
|
5511
5528
|
return typeof window < "u" && typeof document < "u";
|
|
5512
5529
|
}
|
|
5513
|
-
function
|
|
5530
|
+
function Qs(i) {
|
|
5514
5531
|
let t = i.parentNode;
|
|
5515
5532
|
return t && t.toString() === "[object ShadowRoot]" && (t = t.host), t;
|
|
5516
5533
|
}
|
|
5517
|
-
function
|
|
5534
|
+
function kn(i, t, e) {
|
|
5518
5535
|
let n;
|
|
5519
5536
|
return typeof i == "string" ? (n = parseInt(i, 10), i.indexOf("%") !== -1 && (n = n / 100 * t.parentNode[e])) : n = i, n;
|
|
5520
5537
|
}
|
|
5521
5538
|
const Rn = (i) => i.ownerDocument.defaultView.getComputedStyle(i, null);
|
|
5522
|
-
function
|
|
5539
|
+
function Af(i, t) {
|
|
5523
5540
|
return Rn(i).getPropertyValue(t);
|
|
5524
5541
|
}
|
|
5525
5542
|
const Df = [
|
|
@@ -5566,30 +5583,30 @@ function ge(i, t) {
|
|
|
5566
5583
|
function Cf(i, t, e) {
|
|
5567
5584
|
let n, s;
|
|
5568
5585
|
if (t === void 0 || e === void 0) {
|
|
5569
|
-
const r = i &&
|
|
5586
|
+
const r = i && Qs(i);
|
|
5570
5587
|
if (!r)
|
|
5571
5588
|
t = i.clientWidth, e = i.clientHeight;
|
|
5572
5589
|
else {
|
|
5573
5590
|
const o = r.getBoundingClientRect(), a = Rn(r), c = ve(a, "border", "width"), l = ve(a, "padding");
|
|
5574
|
-
t = o.width - l.width - c.width, e = o.height - l.height - c.height, n =
|
|
5591
|
+
t = o.width - l.width - c.width, e = o.height - l.height - c.height, n = kn(a.maxWidth, r, "clientWidth"), s = kn(a.maxHeight, r, "clientHeight");
|
|
5575
5592
|
}
|
|
5576
5593
|
}
|
|
5577
5594
|
return {
|
|
5578
5595
|
width: t,
|
|
5579
5596
|
height: e,
|
|
5580
|
-
maxWidth: n ||
|
|
5581
|
-
maxHeight: s ||
|
|
5597
|
+
maxWidth: n || _n,
|
|
5598
|
+
maxHeight: s || _n
|
|
5582
5599
|
};
|
|
5583
5600
|
}
|
|
5584
|
-
const
|
|
5601
|
+
const Ki = (i) => Math.round(i * 10) / 10;
|
|
5585
5602
|
function Rf(i, t, e, n) {
|
|
5586
|
-
const s = Rn(i), r = ve(s, "margin"), o =
|
|
5603
|
+
const s = Rn(i), r = ve(s, "margin"), o = kn(s.maxWidth, i, "clientWidth") || _n, a = kn(s.maxHeight, i, "clientHeight") || _n, c = Cf(i, t, e);
|
|
5587
5604
|
let { width: l, height: h } = c;
|
|
5588
5605
|
if (s.boxSizing === "content-box") {
|
|
5589
5606
|
const f = ve(s, "border", "width"), d = ve(s, "padding");
|
|
5590
5607
|
l -= d.width + f.width, h -= d.height + f.height;
|
|
5591
5608
|
}
|
|
5592
|
-
return l = Math.max(0, l - r.width), h = Math.max(0, n ? l / n : h - r.height), l =
|
|
5609
|
+
return l = Math.max(0, l - r.width), h = Math.max(0, n ? l / n : h - r.height), l = Ki(Math.min(l, o, c.maxWidth)), h = Ki(Math.min(h, a, c.maxHeight)), l && !h && (h = Ki(l / 2)), (t !== void 0 || e !== void 0) && n && c.height && h > c.height && (h = c.height, l = Ki(Math.floor(h * n))), {
|
|
5593
5610
|
width: l,
|
|
5594
5611
|
height: h
|
|
5595
5612
|
};
|
|
@@ -5608,13 +5625,13 @@ const Lf = function() {
|
|
|
5608
5625
|
return i = !0, !1;
|
|
5609
5626
|
}
|
|
5610
5627
|
};
|
|
5611
|
-
|
|
5628
|
+
qs() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t));
|
|
5612
5629
|
} catch {
|
|
5613
5630
|
}
|
|
5614
5631
|
return i;
|
|
5615
5632
|
}();
|
|
5616
5633
|
function Kr(i, t) {
|
|
5617
|
-
const e =
|
|
5634
|
+
const e = Af(i, t), n = e && e.match(/^(\d+)(\.\d+)?px$/);
|
|
5618
5635
|
return n ? +n[1] : void 0;
|
|
5619
5636
|
}
|
|
5620
5637
|
const If = function(i, t) {
|
|
@@ -5764,13 +5781,13 @@ const qr = "transparent", Bf = {
|
|
|
5764
5781
|
class Hf {
|
|
5765
5782
|
constructor(t, e, n, s) {
|
|
5766
5783
|
const r = e[n];
|
|
5767
|
-
s =
|
|
5784
|
+
s = Xi([
|
|
5768
5785
|
t.to,
|
|
5769
5786
|
s,
|
|
5770
5787
|
r,
|
|
5771
5788
|
t.from
|
|
5772
5789
|
]);
|
|
5773
|
-
const o =
|
|
5790
|
+
const o = Xi([
|
|
5774
5791
|
t.from,
|
|
5775
5792
|
r,
|
|
5776
5793
|
s
|
|
@@ -5784,12 +5801,12 @@ class Hf {
|
|
|
5784
5801
|
if (this._active) {
|
|
5785
5802
|
this._notify(!1);
|
|
5786
5803
|
const s = this._target[this._prop], r = n - this._start, o = this._duration - r;
|
|
5787
|
-
this._start = n, this._duration = Math.floor(Math.max(o, t.duration)), this._total += r, this._loop = !!t.loop, this._to =
|
|
5804
|
+
this._start = n, this._duration = Math.floor(Math.max(o, t.duration)), this._total += r, this._loop = !!t.loop, this._to = Xi([
|
|
5788
5805
|
t.to,
|
|
5789
5806
|
e,
|
|
5790
5807
|
s,
|
|
5791
5808
|
t.from
|
|
5792
|
-
]), this._from =
|
|
5809
|
+
]), this._from = Xi([
|
|
5793
5810
|
t.from,
|
|
5794
5811
|
s,
|
|
5795
5812
|
e
|
|
@@ -5965,7 +5982,7 @@ function Zr(i, t, e, n = {}) {
|
|
|
5965
5982
|
continue;
|
|
5966
5983
|
break;
|
|
5967
5984
|
}
|
|
5968
|
-
l = i.values[c],
|
|
5985
|
+
l = i.values[c], Tt(l) && (r || t === 0 || ie(t) === ie(l)) && (t += l);
|
|
5969
5986
|
}
|
|
5970
5987
|
return !h && !n.all ? 0 : t;
|
|
5971
5988
|
}
|
|
@@ -6195,7 +6212,7 @@ class ye {
|
|
|
6195
6212
|
function p() {
|
|
6196
6213
|
d = s[f];
|
|
6197
6214
|
const m = d[a.axis];
|
|
6198
|
-
return !
|
|
6215
|
+
return !Tt(d[t.axis]) || h > m || u < m;
|
|
6199
6216
|
}
|
|
6200
6217
|
for (f = 0; f < o && !(!p() && (this.updateRangeFromParsed(l, t, d, c), r)); ++f)
|
|
6201
6218
|
;
|
|
@@ -6212,7 +6229,7 @@ class ye {
|
|
|
6212
6229
|
const e = this._cachedMeta._parsed, n = [];
|
|
6213
6230
|
let s, r, o;
|
|
6214
6231
|
for (s = 0, r = e.length; s < r; ++s)
|
|
6215
|
-
o = e[s][t.axis],
|
|
6232
|
+
o = e[s][t.axis], Tt(o) && n.push(o);
|
|
6216
6233
|
return n;
|
|
6217
6234
|
}
|
|
6218
6235
|
getMaxOverflow() {
|
|
@@ -6420,7 +6437,7 @@ function Zf(i, t) {
|
|
|
6420
6437
|
let n = [];
|
|
6421
6438
|
for (let s = 0, r = e.length; s < r; s++)
|
|
6422
6439
|
n = n.concat(e[s].controller.getAllParsedValues(i));
|
|
6423
|
-
i._cache.$bar =
|
|
6440
|
+
i._cache.$bar = Aa(n.sort((s, r) => s - r));
|
|
6424
6441
|
}
|
|
6425
6442
|
return i._cache.$bar;
|
|
6426
6443
|
}
|
|
@@ -6526,7 +6543,7 @@ function no(i, t, e) {
|
|
|
6526
6543
|
function od(i, { inflateAmount: t }, e) {
|
|
6527
6544
|
i.inflateAmount = t === "auto" ? e === 1 ? 0.33 : 0 : t;
|
|
6528
6545
|
}
|
|
6529
|
-
class
|
|
6546
|
+
class hn extends ye {
|
|
6530
6547
|
parsePrimitiveData(t, e, n, s) {
|
|
6531
6548
|
return eo(t, e, n, s);
|
|
6532
6549
|
}
|
|
@@ -6663,7 +6680,7 @@ class ln extends ye {
|
|
|
6663
6680
|
this.getParsed(r)[e.axis] !== null && !n[r].hidden && n[r].draw(this._ctx);
|
|
6664
6681
|
}
|
|
6665
6682
|
}
|
|
6666
|
-
I(
|
|
6683
|
+
I(hn, "id", "bar"), I(hn, "defaults", {
|
|
6667
6684
|
datasetElementType: !1,
|
|
6668
6685
|
dataElementType: "bar",
|
|
6669
6686
|
categoryPercentage: 0.8,
|
|
@@ -6681,7 +6698,7 @@ I(ln, "id", "bar"), I(ln, "defaults", {
|
|
|
6681
6698
|
]
|
|
6682
6699
|
}
|
|
6683
6700
|
}
|
|
6684
|
-
}), I(
|
|
6701
|
+
}), I(hn, "overrides", {
|
|
6685
6702
|
scales: {
|
|
6686
6703
|
_index_: {
|
|
6687
6704
|
type: "category",
|
|
@@ -6698,8 +6715,8 @@ I(ln, "id", "bar"), I(ln, "defaults", {
|
|
|
6698
6715
|
});
|
|
6699
6716
|
function ad(i, t, e) {
|
|
6700
6717
|
let n = 1, s = 1, r = 0, o = 0;
|
|
6701
|
-
if (t <
|
|
6702
|
-
const a = i, c = a + t, l = Math.cos(a), h = Math.sin(a), u = Math.cos(c), f = Math.sin(c), d = (S, g, k) =>
|
|
6718
|
+
if (t < mt) {
|
|
6719
|
+
const a = i, c = a + t, l = Math.cos(a), h = Math.sin(a), u = Math.cos(c), f = Math.sin(c), d = (S, g, k) => ps(S, a, c, !0) ? 1 : Math.max(g, g * e, k, k * e), p = (S, g, k) => ps(S, a, c, !0) ? -1 : Math.min(g, g * e, k, k * e), m = d(0, l, u), b = d(bt, h, f), y = p(G, l, u), x = p(G + bt, h, f);
|
|
6703
6720
|
n = (m - y) / 2, s = (b - x) / 2, r = -(m + y) / 2, o = -(b + x) / 2;
|
|
6704
6721
|
}
|
|
6705
6722
|
return {
|
|
@@ -6737,7 +6754,7 @@ class ii extends ye {
|
|
|
6737
6754
|
return It(this.options.circumference);
|
|
6738
6755
|
}
|
|
6739
6756
|
_getRotationExtents() {
|
|
6740
|
-
let t =
|
|
6757
|
+
let t = mt, e = -mt;
|
|
6741
6758
|
for (let n = 0; n < this.chart.data.datasets.length; ++n)
|
|
6742
6759
|
if (this.chart.isDatasetVisible(n) && this.chart.getDatasetMeta(n).type === this._type) {
|
|
6743
6760
|
const s = this.chart.getDatasetMeta(n).controller, r = s._getRotation(), o = s._getCircumference();
|
|
@@ -6754,7 +6771,7 @@ class ii extends ye {
|
|
|
6754
6771
|
}
|
|
6755
6772
|
_circumference(t, e) {
|
|
6756
6773
|
const n = this.options, s = this._cachedMeta, r = this._getCircumference();
|
|
6757
|
-
return e && n.animation.animateRotate || !this.chart.getDataVisibility(t) || s._parsed[t] === null || s.data[t].hidden ? 0 : this.calculateCircumference(s._parsed[t] * r /
|
|
6774
|
+
return e && n.animation.animateRotate || !this.chart.getDataVisibility(t) || s._parsed[t] === null || s.data[t].hidden ? 0 : this.calculateCircumference(s._parsed[t] * r / mt);
|
|
6758
6775
|
}
|
|
6759
6776
|
updateElements(t, e, n, s) {
|
|
6760
6777
|
const r = s === "reset", o = this.chart, a = o.chartArea, l = o.options.animation, h = (a.left + a.right) / 2, u = (a.top + a.bottom) / 2, f = r && l.animateScale, d = f ? 0 : this.innerRadius, p = f ? 0 : this.outerRadius, { sharedOptions: m, includeOptions: b } = this._getSharedOptions(e, s);
|
|
@@ -6785,7 +6802,7 @@ class ii extends ye {
|
|
|
6785
6802
|
}
|
|
6786
6803
|
calculateCircumference(t) {
|
|
6787
6804
|
const e = this._cachedMeta.total;
|
|
6788
|
-
return e > 0 && !isNaN(t) ?
|
|
6805
|
+
return e > 0 && !isNaN(t) ? mt * (Math.abs(t) / e) : 0;
|
|
6789
6806
|
}
|
|
6790
6807
|
getLabelAndValue(t) {
|
|
6791
6808
|
const e = this._cachedMeta, n = this.chart, s = n.data.labels || [], r = Cn(e._parsed[t], n.options.locale);
|
|
@@ -6897,7 +6914,7 @@ I(ii, "id", "doughnut"), I(ii, "defaults", {
|
|
|
6897
6914
|
}
|
|
6898
6915
|
}
|
|
6899
6916
|
});
|
|
6900
|
-
class
|
|
6917
|
+
class un extends ye {
|
|
6901
6918
|
constructor(t, e) {
|
|
6902
6919
|
super(t, e), this.innerRadius = void 0, this.outerRadius = void 0;
|
|
6903
6920
|
}
|
|
@@ -6909,7 +6926,7 @@ class hn extends ye {
|
|
|
6909
6926
|
};
|
|
6910
6927
|
}
|
|
6911
6928
|
parseObjectData(t, e, n, s) {
|
|
6912
|
-
return
|
|
6929
|
+
return Tf.bind(this)(t, e, n, s);
|
|
6913
6930
|
}
|
|
6914
6931
|
update(t) {
|
|
6915
6932
|
const e = this._cachedMeta.data;
|
|
@@ -6962,7 +6979,7 @@ class hn extends ye {
|
|
|
6962
6979
|
return this.chart.getDataVisibility(t) ? It(this.resolveDataElementOptions(t, e).angle || n) : 0;
|
|
6963
6980
|
}
|
|
6964
6981
|
}
|
|
6965
|
-
I(
|
|
6982
|
+
I(un, "id", "polarArea"), I(un, "defaults", {
|
|
6966
6983
|
dataElementType: "arc",
|
|
6967
6984
|
animation: {
|
|
6968
6985
|
animateRotate: !0,
|
|
@@ -6983,7 +7000,7 @@ I(hn, "id", "polarArea"), I(hn, "defaults", {
|
|
|
6983
7000
|
},
|
|
6984
7001
|
indexAxis: "r",
|
|
6985
7002
|
startAngle: 0
|
|
6986
|
-
}), I(
|
|
7003
|
+
}), I(un, "overrides", {
|
|
6987
7004
|
aspectRatio: 1,
|
|
6988
7005
|
plugins: {
|
|
6989
7006
|
legend: {
|
|
@@ -7034,7 +7051,7 @@ I(hn, "id", "polarArea"), I(hn, "defaults", {
|
|
|
7034
7051
|
function de() {
|
|
7035
7052
|
throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
|
|
7036
7053
|
}
|
|
7037
|
-
class
|
|
7054
|
+
class Zs {
|
|
7038
7055
|
constructor(t) {
|
|
7039
7056
|
I(this, "options");
|
|
7040
7057
|
this.options = t || {};
|
|
@@ -7050,7 +7067,7 @@ class Qs {
|
|
|
7050
7067
|
* })
|
|
7051
7068
|
*/
|
|
7052
7069
|
static override(t) {
|
|
7053
|
-
Object.assign(
|
|
7070
|
+
Object.assign(Zs.prototype, t);
|
|
7054
7071
|
}
|
|
7055
7072
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7056
7073
|
init() {
|
|
@@ -7078,12 +7095,12 @@ class Qs {
|
|
|
7078
7095
|
}
|
|
7079
7096
|
}
|
|
7080
7097
|
var cd = {
|
|
7081
|
-
_date:
|
|
7098
|
+
_date: Zs
|
|
7082
7099
|
};
|
|
7083
7100
|
function ld(i, t, e, n) {
|
|
7084
7101
|
const { controller: s, data: r, _sorted: o } = i, a = s._cachedMeta.iScale;
|
|
7085
7102
|
if (a && t === a.axis && t !== "r" && o && r.length) {
|
|
7086
|
-
const c = a._reversePixels ? qu :
|
|
7103
|
+
const c = a._reversePixels ? qu : gs;
|
|
7087
7104
|
if (n) {
|
|
7088
7105
|
if (s._sharedOptions) {
|
|
7089
7106
|
const l = r[0], h = typeof l.getRange == "function" && l.getRange(t);
|
|
@@ -7102,7 +7119,7 @@ function ld(i, t, e, n) {
|
|
|
7102
7119
|
hi: r.length - 1
|
|
7103
7120
|
};
|
|
7104
7121
|
}
|
|
7105
|
-
function
|
|
7122
|
+
function Ti(i, t, e, n, s) {
|
|
7106
7123
|
const r = i.getSortedVisibleDatasetMetas(), o = e[t];
|
|
7107
7124
|
for (let a = 0, c = r.length; a < c; ++a) {
|
|
7108
7125
|
const { index: l, data: h } = r[a], { lo: u, hi: f } = ld(r[a], t, o, s);
|
|
@@ -7121,7 +7138,7 @@ function hd(i) {
|
|
|
7121
7138
|
}
|
|
7122
7139
|
function Kn(i, t, e, n, s) {
|
|
7123
7140
|
const r = [];
|
|
7124
|
-
return !s && !i.isPointInArea(t) ||
|
|
7141
|
+
return !s && !i.isPointInArea(t) || Ti(i, e, t, function(a, c, l) {
|
|
7125
7142
|
!s && !Ia(a, i.chartArea, 0) || a.inRange(t.x, t.y, n) && r.push({
|
|
7126
7143
|
element: a,
|
|
7127
7144
|
datasetIndex: c,
|
|
@@ -7139,13 +7156,13 @@ function ud(i, t, e, n) {
|
|
|
7139
7156
|
x: t.x,
|
|
7140
7157
|
y: t.y
|
|
7141
7158
|
});
|
|
7142
|
-
|
|
7159
|
+
ps(u, l, h) && s.push({
|
|
7143
7160
|
element: o,
|
|
7144
7161
|
datasetIndex: a,
|
|
7145
7162
|
index: c
|
|
7146
7163
|
});
|
|
7147
7164
|
}
|
|
7148
|
-
return
|
|
7165
|
+
return Ti(i, e, t, r), s;
|
|
7149
7166
|
}
|
|
7150
7167
|
function fd(i, t, e, n, s, r) {
|
|
7151
7168
|
let o = [];
|
|
@@ -7171,7 +7188,7 @@ function fd(i, t, e, n, s, r) {
|
|
|
7171
7188
|
index: f
|
|
7172
7189
|
});
|
|
7173
7190
|
}
|
|
7174
|
-
return
|
|
7191
|
+
return Ti(i, e, t, l), o;
|
|
7175
7192
|
}
|
|
7176
7193
|
function qn(i, t, e, n, s, r) {
|
|
7177
7194
|
return !r && !i.isPointInArea(t) ? [] : e === "r" && !n ? ud(i, t, e, s) : fd(i, t, e, n, s, r);
|
|
@@ -7179,7 +7196,7 @@ function qn(i, t, e, n, s, r) {
|
|
|
7179
7196
|
function so(i, t, e, n, s) {
|
|
7180
7197
|
const r = [], o = e === "x" ? "inXRange" : "inYRange";
|
|
7181
7198
|
let a = !1;
|
|
7182
|
-
return
|
|
7199
|
+
return Ti(i, e, t, (c, l, h) => {
|
|
7183
7200
|
c[o] && c[o](t[e], s) && (r.push({
|
|
7184
7201
|
element: c,
|
|
7185
7202
|
datasetIndex: l,
|
|
@@ -7188,7 +7205,7 @@ function so(i, t, e, n, s) {
|
|
|
7188
7205
|
}), n && !a ? [] : r;
|
|
7189
7206
|
}
|
|
7190
7207
|
var dd = {
|
|
7191
|
-
evaluateInteractionItems:
|
|
7208
|
+
evaluateInteractionItems: Ti,
|
|
7192
7209
|
modes: {
|
|
7193
7210
|
index(i, t, e, n) {
|
|
7194
7211
|
const s = ge(t, i), r = e.axis || "x", o = e.includeInvisible || !1, a = e.intersect ? Kn(i, s, r, n, o) : qn(i, s, r, !1, n, o), c = [];
|
|
@@ -7369,7 +7386,7 @@ function ni(i, t, e, n) {
|
|
|
7369
7386
|
}
|
|
7370
7387
|
return l && ni(s, t, e, n) || h;
|
|
7371
7388
|
}
|
|
7372
|
-
function
|
|
7389
|
+
function qi(i, t, e, n, s) {
|
|
7373
7390
|
i.top = e, i.left = t, i.right = t + n, i.bottom = e + s, i.width = n, i.height = s;
|
|
7374
7391
|
}
|
|
7375
7392
|
function ao(i, t, e, n) {
|
|
@@ -7383,10 +7400,10 @@ function ao(i, t, e, n) {
|
|
|
7383
7400
|
}, h = a.stackWeight / l.weight || 1;
|
|
7384
7401
|
if (a.horizontal) {
|
|
7385
7402
|
const u = t.w * h, f = l.size || c.height;
|
|
7386
|
-
vi(l.start) && (o = l.start), c.fullSize ?
|
|
7403
|
+
vi(l.start) && (o = l.start), c.fullSize ? qi(c, s.left, o, e.outerWidth - s.right - s.left, f) : qi(c, t.left + l.placed, o, u, f), l.start = o, l.placed += u, o = c.bottom;
|
|
7387
7404
|
} else {
|
|
7388
7405
|
const u = t.h * h, f = l.size || c.width;
|
|
7389
|
-
vi(l.start) && (r = l.start), c.fullSize ?
|
|
7406
|
+
vi(l.start) && (r = l.start), c.fullSize ? qi(c, r, s.top, f, e.outerHeight - s.bottom - s.top) : qi(c, r, t.top + l.placed, f, u), l.start = r, l.placed += u, r = c.right;
|
|
7390
7407
|
}
|
|
7391
7408
|
}
|
|
7392
7409
|
t.x = r, t.y = o;
|
|
@@ -7486,7 +7503,7 @@ class _d extends qa {
|
|
|
7486
7503
|
t.options.animation = !1;
|
|
7487
7504
|
}
|
|
7488
7505
|
}
|
|
7489
|
-
const
|
|
7506
|
+
const fn = "$chartjs", wd = {
|
|
7490
7507
|
touchstart: "mousedown",
|
|
7491
7508
|
touchmove: "mousemove",
|
|
7492
7509
|
touchend: "mouseup",
|
|
@@ -7499,7 +7516,7 @@ const un = "$chartjs", wd = {
|
|
|
7499
7516
|
}, co = (i) => i === null || i === "";
|
|
7500
7517
|
function Sd(i, t) {
|
|
7501
7518
|
const e = i.style, n = i.getAttribute("height"), s = i.getAttribute("width");
|
|
7502
|
-
if (i[
|
|
7519
|
+
if (i[fn] = {
|
|
7503
7520
|
initial: {
|
|
7504
7521
|
height: n,
|
|
7505
7522
|
width: s,
|
|
@@ -7541,16 +7558,16 @@ function Od(i, t) {
|
|
|
7541
7558
|
y: s !== void 0 ? s : null
|
|
7542
7559
|
};
|
|
7543
7560
|
}
|
|
7544
|
-
function
|
|
7561
|
+
function Mn(i, t) {
|
|
7545
7562
|
for (const e of i)
|
|
7546
7563
|
if (e === t || e.contains(t))
|
|
7547
7564
|
return !0;
|
|
7548
7565
|
}
|
|
7549
|
-
function
|
|
7566
|
+
function Td(i, t, e) {
|
|
7550
7567
|
const n = i.canvas, s = new MutationObserver((r) => {
|
|
7551
7568
|
let o = !1;
|
|
7552
7569
|
for (const a of r)
|
|
7553
|
-
o = o ||
|
|
7570
|
+
o = o || Mn(a.addedNodes, n), o = o && !Mn(a.removedNodes, n);
|
|
7554
7571
|
o && e();
|
|
7555
7572
|
});
|
|
7556
7573
|
return s.observe(document, {
|
|
@@ -7558,11 +7575,11 @@ function Ad(i, t, e) {
|
|
|
7558
7575
|
subtree: !0
|
|
7559
7576
|
}), s;
|
|
7560
7577
|
}
|
|
7561
|
-
function
|
|
7578
|
+
function Ad(i, t, e) {
|
|
7562
7579
|
const n = i.canvas, s = new MutationObserver((r) => {
|
|
7563
7580
|
let o = !1;
|
|
7564
7581
|
for (const a of r)
|
|
7565
|
-
o = o ||
|
|
7582
|
+
o = o || Mn(a.removedNodes, n), o = o && !Mn(a.addedNodes, n);
|
|
7566
7583
|
o && e();
|
|
7567
7584
|
});
|
|
7568
7585
|
return s.observe(document, {
|
|
@@ -7585,7 +7602,7 @@ function Ed(i) {
|
|
|
7585
7602
|
xi.delete(i), xi.size || window.removeEventListener("resize", Za);
|
|
7586
7603
|
}
|
|
7587
7604
|
function Pd(i, t, e) {
|
|
7588
|
-
const n = i.canvas, s = n &&
|
|
7605
|
+
const n = i.canvas, s = n && Qs(n);
|
|
7589
7606
|
if (!s)
|
|
7590
7607
|
return;
|
|
7591
7608
|
const r = Ea((a, c) => {
|
|
@@ -7613,9 +7630,9 @@ class Rd extends qa {
|
|
|
7613
7630
|
}
|
|
7614
7631
|
releaseContext(t) {
|
|
7615
7632
|
const e = t.canvas;
|
|
7616
|
-
if (!e[
|
|
7633
|
+
if (!e[fn])
|
|
7617
7634
|
return !1;
|
|
7618
|
-
const n = e[
|
|
7635
|
+
const n = e[fn].initial;
|
|
7619
7636
|
[
|
|
7620
7637
|
"height",
|
|
7621
7638
|
"width"
|
|
@@ -7626,13 +7643,13 @@ class Rd extends qa {
|
|
|
7626
7643
|
const s = n.style || {};
|
|
7627
7644
|
return Object.keys(s).forEach((r) => {
|
|
7628
7645
|
e.style[r] = s[r];
|
|
7629
|
-
}), e.width = e.width, delete e[
|
|
7646
|
+
}), e.width = e.width, delete e[fn], !0;
|
|
7630
7647
|
}
|
|
7631
7648
|
addEventListener(t, e, n) {
|
|
7632
7649
|
this.removeEventListener(t, e);
|
|
7633
7650
|
const s = t.$proxies || (t.$proxies = {}), o = {
|
|
7634
|
-
attach:
|
|
7635
|
-
detach:
|
|
7651
|
+
attach: Td,
|
|
7652
|
+
detach: Ad,
|
|
7636
7653
|
resize: Pd
|
|
7637
7654
|
}[e] || Cd;
|
|
7638
7655
|
s[e] = o(t, e, n);
|
|
@@ -7654,15 +7671,15 @@ class Rd extends qa {
|
|
|
7654
7671
|
return Rf(t, e, n, s);
|
|
7655
7672
|
}
|
|
7656
7673
|
isAttached(t) {
|
|
7657
|
-
const e = t &&
|
|
7674
|
+
const e = t && Qs(t);
|
|
7658
7675
|
return !!(e && e.isConnected);
|
|
7659
7676
|
}
|
|
7660
7677
|
}
|
|
7661
7678
|
function Ld(i) {
|
|
7662
|
-
return !
|
|
7679
|
+
return !qs() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? _d : Rd;
|
|
7663
7680
|
}
|
|
7664
|
-
var
|
|
7665
|
-
let je = (
|
|
7681
|
+
var rn;
|
|
7682
|
+
let je = (rn = class {
|
|
7666
7683
|
constructor() {
|
|
7667
7684
|
I(this, "x");
|
|
7668
7685
|
I(this, "y");
|
|
@@ -7681,7 +7698,7 @@ let je = (sn = class {
|
|
|
7681
7698
|
};
|
|
7682
7699
|
}
|
|
7683
7700
|
hasValue() {
|
|
7684
|
-
return
|
|
7701
|
+
return wn(this.x) && wn(this.y);
|
|
7685
7702
|
}
|
|
7686
7703
|
getProps(t, e) {
|
|
7687
7704
|
const n = this.$animations;
|
|
@@ -7692,7 +7709,7 @@ let je = (sn = class {
|
|
|
7692
7709
|
s[r] = n[r] && n[r].active() ? n[r]._to : this[r];
|
|
7693
7710
|
}), s;
|
|
7694
7711
|
}
|
|
7695
|
-
}, I(
|
|
7712
|
+
}, I(rn, "defaults", {}), I(rn, "defaultRoutes"), rn);
|
|
7696
7713
|
function Id(i, t) {
|
|
7697
7714
|
const e = i.options.ticks, n = Fd(i), s = Math.min(e.maxTicksLimit || n, n), r = e.major.enabled ? Bd(t) : [], o = r.length, a = r[0], c = r[o - 1], l = [];
|
|
7698
7715
|
if (o > s)
|
|
@@ -7701,11 +7718,11 @@ function Id(i, t) {
|
|
|
7701
7718
|
if (o > 0) {
|
|
7702
7719
|
let u, f;
|
|
7703
7720
|
const d = o > 1 ? Math.round((c - a) / (o - 1)) : null;
|
|
7704
|
-
for (
|
|
7705
|
-
|
|
7706
|
-
return
|
|
7721
|
+
for (Qi(t, l, h, Y(d) ? 0 : a - d, a), u = 0, f = o - 1; u < f; u++)
|
|
7722
|
+
Qi(t, l, h, r[u], r[u + 1]);
|
|
7723
|
+
return Qi(t, l, h, c, Y(d) ? t.length : c + d), l;
|
|
7707
7724
|
}
|
|
7708
|
-
return
|
|
7725
|
+
return Qi(t, l, h), l;
|
|
7709
7726
|
}
|
|
7710
7727
|
function Fd(i) {
|
|
7711
7728
|
const t = i.options.offset, e = i._tickSize(), n = i._length / e + (t ? 0 : 1), s = i._maxLength / e;
|
|
@@ -7735,7 +7752,7 @@ function Hd(i, t, e, n) {
|
|
|
7735
7752
|
for (n = Math.ceil(n), o = 0; o < i.length; o++)
|
|
7736
7753
|
o === r && (t.push(i[o]), s++, r = e[s * n]);
|
|
7737
7754
|
}
|
|
7738
|
-
function
|
|
7755
|
+
function Qi(i, t, e, n, s) {
|
|
7739
7756
|
const r = j(n, 0), o = Math.min(j(s, i.length), i.length);
|
|
7740
7757
|
let a = 0, c, l, h;
|
|
7741
7758
|
for (e = Math.ceil(e), s && (c = s - n, e = c / Math.floor(c / e)), h = r; h < 0; )
|
|
@@ -7801,7 +7818,7 @@ function Ud(i, t, e) {
|
|
|
7801
7818
|
});
|
|
7802
7819
|
}
|
|
7803
7820
|
function Yd(i, t, e) {
|
|
7804
|
-
let n =
|
|
7821
|
+
let n = Vs(i);
|
|
7805
7822
|
return (e && t !== "right" || !e && t === "right") && (n = jd(n)), n;
|
|
7806
7823
|
}
|
|
7807
7824
|
function Xd(i, t, e, n) {
|
|
@@ -7819,7 +7836,7 @@ function Xd(i, t, e, n) {
|
|
|
7819
7836
|
const y = Object.keys(e)[0], x = e[y];
|
|
7820
7837
|
d = h[y].getPixelForValue(x) - b + t;
|
|
7821
7838
|
} else e === "center" ? d = (l.left + l.right) / 2 - b + t : d = ho(i, e, t);
|
|
7822
|
-
p = st(n, o, s), u = e === "left" ? -
|
|
7839
|
+
p = st(n, o, s), u = e === "left" ? -bt : bt;
|
|
7823
7840
|
}
|
|
7824
7841
|
return {
|
|
7825
7842
|
titleX: d,
|
|
@@ -7848,8 +7865,8 @@ class We extends je {
|
|
|
7848
7865
|
return t = Pt(t, Number.POSITIVE_INFINITY), e = Pt(e, Number.NEGATIVE_INFINITY), n = Pt(n, Number.POSITIVE_INFINITY), s = Pt(s, Number.NEGATIVE_INFINITY), {
|
|
7849
7866
|
min: Pt(t, n),
|
|
7850
7867
|
max: Pt(e, s),
|
|
7851
|
-
minDefined:
|
|
7852
|
-
maxDefined:
|
|
7868
|
+
minDefined: Tt(t),
|
|
7869
|
+
maxDefined: Tt(e)
|
|
7853
7870
|
};
|
|
7854
7871
|
}
|
|
7855
7872
|
getMinMax(t) {
|
|
@@ -7980,8 +7997,8 @@ class We extends je {
|
|
|
7980
7997
|
this.labelRotation = s;
|
|
7981
7998
|
return;
|
|
7982
7999
|
}
|
|
7983
|
-
const h = this._getLabelSizes(), u = h.widest.width, f = h.highest.height, d =
|
|
7984
|
-
a = t.offset ? this.maxWidth / n : d / (n - 1), u + 6 > a && (a = d / (n - (t.offset ? 0.5 : 1)), c = this.maxHeight - Je(t.grid) - e.padding - po(t.title, this.chart.options.font), l = Math.sqrt(u * u + f * f), o = Uu(Math.min(Math.asin(
|
|
8000
|
+
const h = this._getLabelSizes(), u = h.widest.width, f = h.highest.height, d = Et(this.chart.width - u, 0, this.maxWidth);
|
|
8001
|
+
a = t.offset ? this.maxWidth / n : d / (n - 1), u + 6 > a && (a = d / (n - (t.offset ? 0.5 : 1)), c = this.maxHeight - Je(t.grid) - e.padding - po(t.title, this.chart.options.font), l = Math.sqrt(u * u + f * f), o = Uu(Math.min(Math.asin(Et((h.highest.height + 6) / a, -1, 1)), Math.asin(Et(c / l, -1, 1)) - Math.asin(Et(f / l, -1, 1)))), o = Math.max(s, Math.min(r, o))), this.labelRotation = o;
|
|
7985
8002
|
}
|
|
7986
8003
|
afterCalculateLabelRotation() {
|
|
7987
8004
|
U(this.options.afterCalculateLabelRotation, [
|
|
@@ -8073,9 +8090,9 @@ class We extends je {
|
|
|
8073
8090
|
o.push(S), a.push(g), l = Math.max(S, l), h = Math.max(g, h);
|
|
8074
8091
|
}
|
|
8075
8092
|
Vd(r, e);
|
|
8076
|
-
const w = o.indexOf(l), M = a.indexOf(h), O = (
|
|
8077
|
-
width: o[
|
|
8078
|
-
height: a[
|
|
8093
|
+
const w = o.indexOf(l), M = a.indexOf(h), O = (T) => ({
|
|
8094
|
+
width: o[T] || 0,
|
|
8095
|
+
height: a[T] || 0
|
|
8079
8096
|
});
|
|
8080
8097
|
return {
|
|
8081
8098
|
first: O(0),
|
|
@@ -8134,15 +8151,15 @@ class We extends je {
|
|
|
8134
8151
|
const e = this.axis, n = this.chart, s = this.options, { grid: r, position: o, border: a } = s, c = r.offset, l = this.isHorizontal(), u = this.ticks.length + (c ? 1 : 0), f = Je(r), d = [], p = a.setContext(this.getContext()), m = p.display ? p.width : 0, b = m / 2, y = function(z) {
|
|
8135
8152
|
return fe(n, z, m);
|
|
8136
8153
|
};
|
|
8137
|
-
let x, S, g, k, w, M, O,
|
|
8154
|
+
let x, S, g, k, w, M, O, T, P, E, A, F;
|
|
8138
8155
|
if (o === "top")
|
|
8139
|
-
x = y(this.bottom), M = this.bottom - f,
|
|
8156
|
+
x = y(this.bottom), M = this.bottom - f, T = x - b, E = y(t.top) + b, F = t.bottom;
|
|
8140
8157
|
else if (o === "bottom")
|
|
8141
|
-
x = y(this.top), E = t.top, F = y(t.bottom) - b, M = x + b,
|
|
8158
|
+
x = y(this.top), E = t.top, F = y(t.bottom) - b, M = x + b, T = this.top + f;
|
|
8142
8159
|
else if (o === "left")
|
|
8143
|
-
x = y(this.right), w = this.right - f, O = x - b, P = y(t.left) + b,
|
|
8160
|
+
x = y(this.right), w = this.right - f, O = x - b, P = y(t.left) + b, A = t.right;
|
|
8144
8161
|
else if (o === "right")
|
|
8145
|
-
x = y(this.left), P = t.left,
|
|
8162
|
+
x = y(this.left), P = t.left, A = y(t.right) - b, w = x + b, O = this.left + f;
|
|
8146
8163
|
else if (e === "x") {
|
|
8147
8164
|
if (o === "center")
|
|
8148
8165
|
x = y((t.top + t.bottom) / 2 + 0.5);
|
|
@@ -8150,7 +8167,7 @@ class We extends je {
|
|
|
8150
8167
|
const z = Object.keys(o)[0], W = o[z];
|
|
8151
8168
|
x = y(this.chart.scales[z].getPixelForValue(W));
|
|
8152
8169
|
}
|
|
8153
|
-
E = t.top, F = t.bottom, M = x + b,
|
|
8170
|
+
E = t.top, F = t.bottom, M = x + b, T = M + f;
|
|
8154
8171
|
} else if (e === "y") {
|
|
8155
8172
|
if (o === "center")
|
|
8156
8173
|
x = y((t.left + t.right) / 2);
|
|
@@ -8158,25 +8175,25 @@ class We extends je {
|
|
|
8158
8175
|
const z = Object.keys(o)[0], W = o[z];
|
|
8159
8176
|
x = y(this.chart.scales[z].getPixelForValue(W));
|
|
8160
8177
|
}
|
|
8161
|
-
w = x - b, O = w - f, P = t.left,
|
|
8178
|
+
w = x - b, O = w - f, P = t.left, A = t.right;
|
|
8162
8179
|
}
|
|
8163
8180
|
const B = j(s.ticks.maxTicksLimit, u), L = Math.max(1, Math.ceil(u / B));
|
|
8164
8181
|
for (S = 0; S < u; S += L) {
|
|
8165
|
-
const z = this.getContext(S), W = r.setContext(z), q = a.setContext(z), ot = W.lineWidth, J = W.color, yt = q.dash || [], tt = q.dashOffset,
|
|
8166
|
-
g = Wd(this, S, c), g !== void 0 && (k = fe(n, g, ot), l ? w = O = P =
|
|
8182
|
+
const z = this.getContext(S), W = r.setContext(z), q = a.setContext(z), ot = W.lineWidth, J = W.color, yt = q.dash || [], tt = q.dashOffset, dt = W.tickWidth, et = W.tickColor, it = W.tickBorderDash || [], nt = W.tickBorderDashOffset;
|
|
8183
|
+
g = Wd(this, S, c), g !== void 0 && (k = fe(n, g, ot), l ? w = O = P = A = k : M = T = E = F = k, d.push({
|
|
8167
8184
|
tx1: w,
|
|
8168
8185
|
ty1: M,
|
|
8169
8186
|
tx2: O,
|
|
8170
|
-
ty2:
|
|
8187
|
+
ty2: T,
|
|
8171
8188
|
x1: P,
|
|
8172
8189
|
y1: E,
|
|
8173
|
-
x2:
|
|
8190
|
+
x2: A,
|
|
8174
8191
|
y2: F,
|
|
8175
8192
|
width: ot,
|
|
8176
8193
|
color: J,
|
|
8177
8194
|
borderDash: yt,
|
|
8178
8195
|
borderDashOffset: tt,
|
|
8179
|
-
tickWidth:
|
|
8196
|
+
tickWidth: dt,
|
|
8180
8197
|
tickColor: et,
|
|
8181
8198
|
tickBorderDash: it,
|
|
8182
8199
|
tickBorderDashOffset: nt
|
|
@@ -8186,7 +8203,7 @@ class We extends je {
|
|
|
8186
8203
|
}
|
|
8187
8204
|
_computeLabelItems(t) {
|
|
8188
8205
|
const e = this.axis, n = this.options, { position: s, ticks: r } = n, o = this.isHorizontal(), a = this.ticks, { align: c, crossAlign: l, padding: h, mirror: u } = r, f = Je(n.grid), d = f + h, p = u ? -h : d, m = -It(this.labelRotation), b = [];
|
|
8189
|
-
let y, x, S, g, k, w, M, O,
|
|
8206
|
+
let y, x, S, g, k, w, M, O, T, P, E, A, F = "middle";
|
|
8190
8207
|
if (s === "top")
|
|
8191
8208
|
w = this.bottom - p, M = this._getXAxisLabelAlignment();
|
|
8192
8209
|
else if (s === "bottom")
|
|
@@ -8219,20 +8236,20 @@ class We extends je {
|
|
|
8219
8236
|
for (y = 0, x = a.length; y < x; ++y) {
|
|
8220
8237
|
S = a[y], g = S.label;
|
|
8221
8238
|
const L = r.setContext(this.getContext(y));
|
|
8222
|
-
O = this.getPixelForTick(y) + r.labelOffset,
|
|
8239
|
+
O = this.getPixelForTick(y) + r.labelOffset, T = this._resolveTickFontOptions(y), P = T.lineHeight, E = Z(g) ? g.length : 1;
|
|
8223
8240
|
const z = E / 2, W = L.color, q = L.textStrokeColor, ot = L.textStrokeWidth;
|
|
8224
8241
|
let J = M;
|
|
8225
|
-
o ? (k = O, M === "inner" && (y === x - 1 ? J = this.options.reverse ? "left" : "right" : y === 0 ? J = this.options.reverse ? "right" : "left" : J = "center"), s === "top" ? l === "near" || m !== 0 ?
|
|
8242
|
+
o ? (k = O, M === "inner" && (y === x - 1 ? J = this.options.reverse ? "left" : "right" : y === 0 ? J = this.options.reverse ? "right" : "left" : J = "center"), s === "top" ? l === "near" || m !== 0 ? A = -E * P + P / 2 : l === "center" ? A = -B.highest.height / 2 - z * P + P : A = -B.highest.height + P / 2 : l === "near" || m !== 0 ? A = P / 2 : l === "center" ? A = B.highest.height / 2 - z * P : A = B.highest.height - E * P, u && (A *= -1), m !== 0 && !L.showLabelBackdrop && (k += P / 2 * Math.sin(m))) : (w = O, A = (1 - E) * P / 2);
|
|
8226
8243
|
let yt;
|
|
8227
8244
|
if (L.showLabelBackdrop) {
|
|
8228
|
-
const tt = At(L.backdropPadding),
|
|
8229
|
-
let it =
|
|
8245
|
+
const tt = At(L.backdropPadding), dt = B.heights[y], et = B.widths[y];
|
|
8246
|
+
let it = A - tt.top, nt = 0 - tt.left;
|
|
8230
8247
|
switch (F) {
|
|
8231
8248
|
case "middle":
|
|
8232
|
-
it -=
|
|
8249
|
+
it -= dt / 2;
|
|
8233
8250
|
break;
|
|
8234
8251
|
case "bottom":
|
|
8235
|
-
it -=
|
|
8252
|
+
it -= dt;
|
|
8236
8253
|
break;
|
|
8237
8254
|
}
|
|
8238
8255
|
switch (M) {
|
|
@@ -8250,14 +8267,14 @@ class We extends je {
|
|
|
8250
8267
|
left: nt,
|
|
8251
8268
|
top: it,
|
|
8252
8269
|
width: et + tt.width,
|
|
8253
|
-
height:
|
|
8270
|
+
height: dt + tt.height,
|
|
8254
8271
|
color: L.backdropColor
|
|
8255
8272
|
};
|
|
8256
8273
|
}
|
|
8257
8274
|
b.push({
|
|
8258
8275
|
label: g,
|
|
8259
|
-
font:
|
|
8260
|
-
textOffset:
|
|
8276
|
+
font: T,
|
|
8277
|
+
textOffset: A,
|
|
8261
8278
|
options: {
|
|
8262
8279
|
rotation: m,
|
|
8263
8280
|
color: W,
|
|
@@ -8361,13 +8378,13 @@ class We extends je {
|
|
|
8361
8378
|
if (!this.options.ticks.display)
|
|
8362
8379
|
return;
|
|
8363
8380
|
const n = this.ctx, s = this._computeLabelArea();
|
|
8364
|
-
s &&
|
|
8381
|
+
s && $s(n, s);
|
|
8365
8382
|
const r = this.getLabelItems(t);
|
|
8366
8383
|
for (const o of r) {
|
|
8367
8384
|
const a = o.options, c = o.font, l = o.label, h = o.textOffset;
|
|
8368
8385
|
yi(n, l, 0, h, c, a);
|
|
8369
8386
|
}
|
|
8370
|
-
s &&
|
|
8387
|
+
s && Us(n);
|
|
8371
8388
|
}
|
|
8372
8389
|
drawTitle() {
|
|
8373
8390
|
const { ctx: t, options: { position: e, title: n, reverse: s } } = this;
|
|
@@ -8440,7 +8457,7 @@ class We extends je {
|
|
|
8440
8457
|
return (this.isHorizontal() ? this.width : this.height) / t;
|
|
8441
8458
|
}
|
|
8442
8459
|
}
|
|
8443
|
-
class
|
|
8460
|
+
class Zi {
|
|
8444
8461
|
constructor(t, e, n) {
|
|
8445
8462
|
this.type = t, this.scope = e, this.override = n, this.items = /* @__PURE__ */ Object.create(null);
|
|
8446
8463
|
}
|
|
@@ -8485,7 +8502,7 @@ function Qd(i) {
|
|
|
8485
8502
|
}
|
|
8486
8503
|
class Zd {
|
|
8487
8504
|
constructor() {
|
|
8488
|
-
this.controllers = new
|
|
8505
|
+
this.controllers = new Zi(ye, "datasets", !0), this.elements = new Zi(je, "elements"), this.plugins = new Zi(Object, "plugins"), this.scales = new Zi(We, "scales"), this._typedRegistries = [
|
|
8489
8506
|
this.controllers,
|
|
8490
8507
|
this.scales,
|
|
8491
8508
|
this.elements
|
|
@@ -8545,7 +8562,7 @@ class Zd {
|
|
|
8545
8562
|
});
|
|
8546
8563
|
}
|
|
8547
8564
|
_exec(t, e, n) {
|
|
8548
|
-
const s =
|
|
8565
|
+
const s = js(t);
|
|
8549
8566
|
U(n["before" + s], [], n), e[t](n), U(n["after" + s], [], n);
|
|
8550
8567
|
}
|
|
8551
8568
|
_getRegistryForType(t) {
|
|
@@ -8645,7 +8662,7 @@ function ip(i, { plugin: t, local: e }, n, s) {
|
|
|
8645
8662
|
allKeys: !0
|
|
8646
8663
|
});
|
|
8647
8664
|
}
|
|
8648
|
-
function
|
|
8665
|
+
function bs(i, t) {
|
|
8649
8666
|
const e = K.datasets[i] || {};
|
|
8650
8667
|
return ((t.datasets || {})[i] || {}).indexAxis || t.indexAxis || e.indexAxis || "x";
|
|
8651
8668
|
}
|
|
@@ -8666,7 +8683,7 @@ function rp(i) {
|
|
|
8666
8683
|
if (i === "left" || i === "right")
|
|
8667
8684
|
return "y";
|
|
8668
8685
|
}
|
|
8669
|
-
function
|
|
8686
|
+
function vs(i, ...t) {
|
|
8670
8687
|
if (go(i))
|
|
8671
8688
|
return i;
|
|
8672
8689
|
for (const e of t) {
|
|
@@ -8693,14 +8710,14 @@ function op(i, t) {
|
|
|
8693
8710
|
function ap(i, t) {
|
|
8694
8711
|
const e = _e[i.type] || {
|
|
8695
8712
|
scales: {}
|
|
8696
|
-
}, n = t.scales || {}, s =
|
|
8713
|
+
}, n = t.scales || {}, s = bs(i.type, t), r = /* @__PURE__ */ Object.create(null);
|
|
8697
8714
|
return Object.keys(n).forEach((o) => {
|
|
8698
8715
|
const a = n[o];
|
|
8699
8716
|
if (!N(a))
|
|
8700
8717
|
return console.error(`Invalid scale configuration for scale: ${o}`);
|
|
8701
8718
|
if (a._proxy)
|
|
8702
8719
|
return console.warn(`Ignoring resolver passed as options for scale: ${o}`);
|
|
8703
|
-
const c =
|
|
8720
|
+
const c = vs(o, a, op(o, i), K.scales[a.type]), l = sp(c, s), h = e.scales || {};
|
|
8704
8721
|
r[o] = ci(/* @__PURE__ */ Object.create(null), [
|
|
8705
8722
|
{
|
|
8706
8723
|
axis: c
|
|
@@ -8710,7 +8727,7 @@ function ap(i, t) {
|
|
|
8710
8727
|
h[l]
|
|
8711
8728
|
]);
|
|
8712
8729
|
}), i.data.datasets.forEach((o) => {
|
|
8713
|
-
const a = o.type || i.type, c = o.indexAxis ||
|
|
8730
|
+
const a = o.type || i.type, c = o.indexAxis || bs(a, t), h = (_e[a] || {}).scales || {};
|
|
8714
8731
|
Object.keys(h).forEach((u) => {
|
|
8715
8732
|
const f = np(u, c), d = o[f + "AxisID"] || f;
|
|
8716
8733
|
r[d] = r[d] || /* @__PURE__ */ Object.create(null), ci(r[d], [
|
|
@@ -8740,7 +8757,7 @@ function cp(i) {
|
|
|
8740
8757
|
return i = i || {}, i.data = Ja(i.data), Ga(i), i;
|
|
8741
8758
|
}
|
|
8742
8759
|
const bo = /* @__PURE__ */ new Map(), tc = /* @__PURE__ */ new Set();
|
|
8743
|
-
function
|
|
8760
|
+
function Gi(i, t) {
|
|
8744
8761
|
let e = bo.get(i);
|
|
8745
8762
|
return e || (e = t(), bo.set(i, e), tc.add(e)), e;
|
|
8746
8763
|
}
|
|
@@ -8784,7 +8801,7 @@ let lp = class {
|
|
|
8784
8801
|
this._scopeCache.clear(), this._resolverCache.clear();
|
|
8785
8802
|
}
|
|
8786
8803
|
datasetScopeKeys(t) {
|
|
8787
|
-
return
|
|
8804
|
+
return Gi(t, () => [
|
|
8788
8805
|
[
|
|
8789
8806
|
`datasets.${t}`,
|
|
8790
8807
|
""
|
|
@@ -8792,7 +8809,7 @@ let lp = class {
|
|
|
8792
8809
|
]);
|
|
8793
8810
|
}
|
|
8794
8811
|
datasetAnimationScopeKeys(t, e) {
|
|
8795
|
-
return
|
|
8812
|
+
return Gi(`${t}.transition.${e}`, () => [
|
|
8796
8813
|
[
|
|
8797
8814
|
`datasets.${t}.transitions.${e}`,
|
|
8798
8815
|
`transitions.${e}`
|
|
@@ -8804,7 +8821,7 @@ let lp = class {
|
|
|
8804
8821
|
]);
|
|
8805
8822
|
}
|
|
8806
8823
|
datasetElementScopeKeys(t, e) {
|
|
8807
|
-
return
|
|
8824
|
+
return Gi(`${t}-${e}`, () => [
|
|
8808
8825
|
[
|
|
8809
8826
|
`datasets.${t}.elements.${e}`,
|
|
8810
8827
|
`datasets.${t}`,
|
|
@@ -8815,7 +8832,7 @@ let lp = class {
|
|
|
8815
8832
|
}
|
|
8816
8833
|
pluginScopeKeys(t) {
|
|
8817
8834
|
const e = t.id, n = this.type;
|
|
8818
|
-
return
|
|
8835
|
+
return Gi(`${n}-plugin-${e}`, () => [
|
|
8819
8836
|
[
|
|
8820
8837
|
`plugins.${e}`,
|
|
8821
8838
|
...t.additionalOptionScopes || []
|
|
@@ -8833,7 +8850,7 @@ let lp = class {
|
|
|
8833
8850
|
return a;
|
|
8834
8851
|
const c = /* @__PURE__ */ new Set();
|
|
8835
8852
|
e.forEach((h) => {
|
|
8836
|
-
t && (c.add(t), h.forEach((u) => ti(c, t, u))), h.forEach((u) => ti(c, s, u)), h.forEach((u) => ti(c, _e[r] || {}, u)), h.forEach((u) => ti(c, K, u)), h.forEach((u) => ti(c,
|
|
8853
|
+
t && (c.add(t), h.forEach((u) => ti(c, t, u))), h.forEach((u) => ti(c, s, u)), h.forEach((u) => ti(c, _e[r] || {}, u)), h.forEach((u) => ti(c, K, u)), h.forEach((u) => ti(c, ms, u));
|
|
8837
8854
|
});
|
|
8838
8855
|
const l = Array.from(c);
|
|
8839
8856
|
return l.length === 0 && l.push(/* @__PURE__ */ Object.create(null)), tc.has(e) && o.set(e, l), l;
|
|
@@ -8848,7 +8865,7 @@ let lp = class {
|
|
|
8848
8865
|
type: e
|
|
8849
8866
|
},
|
|
8850
8867
|
K,
|
|
8851
|
-
|
|
8868
|
+
ms
|
|
8852
8869
|
];
|
|
8853
8870
|
}
|
|
8854
8871
|
resolveNamedOptions(t, e, n, s = [
|
|
@@ -8880,7 +8897,7 @@ function vo(i, t, e) {
|
|
|
8880
8897
|
const s = e.join();
|
|
8881
8898
|
let r = n.get(s);
|
|
8882
8899
|
return r || (r = {
|
|
8883
|
-
resolver:
|
|
8900
|
+
resolver: Ys(t, e),
|
|
8884
8901
|
subPrefixes: e.filter((a) => !a.toLowerCase().includes("hover"))
|
|
8885
8902
|
}, n.set(s, r)), r;
|
|
8886
8903
|
}
|
|
@@ -8923,11 +8940,11 @@ function pp(i) {
|
|
|
8923
8940
|
], t);
|
|
8924
8941
|
}
|
|
8925
8942
|
function ec(i) {
|
|
8926
|
-
return
|
|
8943
|
+
return qs() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i;
|
|
8927
8944
|
}
|
|
8928
|
-
const
|
|
8945
|
+
const dn = {}, wo = (i) => {
|
|
8929
8946
|
const t = ec(i);
|
|
8930
|
-
return Object.values(
|
|
8947
|
+
return Object.values(dn).filter((e) => e.canvas === t).pop();
|
|
8931
8948
|
};
|
|
8932
8949
|
function gp(i, t, e) {
|
|
8933
8950
|
const n = Object.keys(i);
|
|
@@ -8942,20 +8959,20 @@ function gp(i, t, e) {
|
|
|
8942
8959
|
function mp(i, t, e, n) {
|
|
8943
8960
|
return !e || i.type === "mouseout" ? null : n ? t : i;
|
|
8944
8961
|
}
|
|
8945
|
-
function
|
|
8962
|
+
function Ji(i, t, e) {
|
|
8946
8963
|
return i.options.clip ? i[e] : t[e];
|
|
8947
8964
|
}
|
|
8948
8965
|
function bp(i, t) {
|
|
8949
8966
|
const { xScale: e, yScale: n } = i;
|
|
8950
8967
|
return e && n ? {
|
|
8951
|
-
left:
|
|
8952
|
-
right:
|
|
8953
|
-
top:
|
|
8954
|
-
bottom:
|
|
8968
|
+
left: Ji(e, t, "left"),
|
|
8969
|
+
right: Ji(e, t, "right"),
|
|
8970
|
+
top: Ji(n, t, "top"),
|
|
8971
|
+
bottom: Ji(n, t, "bottom")
|
|
8955
8972
|
} : t;
|
|
8956
8973
|
}
|
|
8957
8974
|
var Zt;
|
|
8958
|
-
let
|
|
8975
|
+
let Gs = (Zt = class {
|
|
8959
8976
|
static register(...t) {
|
|
8960
8977
|
Rt.add(...t), So();
|
|
8961
8978
|
}
|
|
@@ -8969,7 +8986,7 @@ let Zs = (Zt = class {
|
|
|
8969
8986
|
const o = n.createResolver(n.chartOptionScopes(), this.getContext());
|
|
8970
8987
|
this.platform = new (n.platform || Ld(s))(), this.platform.updateConfig(n);
|
|
8971
8988
|
const a = this.platform.acquireContext(s, o.aspectRatio), c = a && a.canvas, l = c && c.height, h = c && c.width;
|
|
8972
|
-
if (this.id = Lu(), this.ctx = a, this.canvas = c, this.width = h, this.height = l, this._options = o, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new Gd(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Gu((u) => this.update(u), o.resizeDelay || 0), this._dataChanges = [],
|
|
8989
|
+
if (this.id = Lu(), this.ctx = a, this.canvas = c, this.width = h, this.height = l, this._options = o, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new Gd(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Gu((u) => this.update(u), o.resizeDelay || 0), this._dataChanges = [], dn[this.id] = this, !a || !c) {
|
|
8973
8990
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
8974
8991
|
return;
|
|
8975
8992
|
}
|
|
@@ -9028,14 +9045,14 @@ let Zs = (Zt = class {
|
|
|
9028
9045
|
const t = this.options, e = t.scales, n = this.scales, s = Object.keys(n).reduce((o, a) => (o[a] = !1, o), {});
|
|
9029
9046
|
let r = [];
|
|
9030
9047
|
e && (r = r.concat(Object.keys(e).map((o) => {
|
|
9031
|
-
const a = e[o], c =
|
|
9048
|
+
const a = e[o], c = vs(o, a), l = c === "r", h = c === "x";
|
|
9032
9049
|
return {
|
|
9033
9050
|
options: a,
|
|
9034
9051
|
dposition: l ? "chartArea" : h ? "bottom" : "left",
|
|
9035
9052
|
dtype: l ? "radialLinear" : h ? "category" : "linear"
|
|
9036
9053
|
};
|
|
9037
9054
|
}))), $(r, (o) => {
|
|
9038
|
-
const a = o.options, c = a.id, l =
|
|
9055
|
+
const a = o.options, c = a.id, l = vs(c, a), h = j(a.type, o.dtype);
|
|
9039
9056
|
(a.position === void 0 || yo(a.position, l) !== yo(o.dposition)) && (a.position = o.dposition), s[c] = !0;
|
|
9040
9057
|
let u = null;
|
|
9041
9058
|
if (c in n && n[c].type === h)
|
|
@@ -9078,7 +9095,7 @@ let Zs = (Zt = class {
|
|
|
9078
9095
|
const r = e[n];
|
|
9079
9096
|
let o = this.getDatasetMeta(n);
|
|
9080
9097
|
const a = r.type || this.config.type;
|
|
9081
|
-
if (o.type && o.type !== a && (this._destroyDatasetMeta(n), o = this.getDatasetMeta(n)), o.type = a, o.indexAxis = r.indexAxis ||
|
|
9098
|
+
if (o.type && o.type !== a && (this._destroyDatasetMeta(n), o = this.getDatasetMeta(n)), o.type = a, o.indexAxis = r.indexAxis || bs(a, this.options), o.order = r.order || 0, o.index = n, o.label = "" + r.label, o.visible = this.isDatasetVisible(n), o.controller)
|
|
9082
9099
|
o.controller.updateIndex(n), o.controller.linkScales();
|
|
9083
9100
|
else {
|
|
9084
9101
|
const c = Rt.getController(a), { datasetElementType: l, dataElementType: h } = K.datasets[a];
|
|
@@ -9243,12 +9260,12 @@ let Zs = (Zt = class {
|
|
|
9243
9260
|
index: t.index,
|
|
9244
9261
|
cancelable: !0
|
|
9245
9262
|
};
|
|
9246
|
-
this.notifyPlugins("beforeDatasetDraw", o) !== !1 && (s &&
|
|
9263
|
+
this.notifyPlugins("beforeDatasetDraw", o) !== !1 && (s && $s(e, {
|
|
9247
9264
|
left: n.left === !1 ? 0 : r.left - n.left,
|
|
9248
9265
|
right: n.right === !1 ? this.width : r.right + n.right,
|
|
9249
9266
|
top: n.top === !1 ? 0 : r.top - n.top,
|
|
9250
9267
|
bottom: n.bottom === !1 ? this.height : r.bottom + n.bottom
|
|
9251
|
-
}), t.controller.draw(), s &&
|
|
9268
|
+
}), t.controller.draw(), s && Us(e), o.cancelable = !1, this.notifyPlugins("afterDatasetDraw", o));
|
|
9252
9269
|
}
|
|
9253
9270
|
isPointInArea(t) {
|
|
9254
9271
|
return Ia(t, this.chartArea, this._minPadding);
|
|
@@ -9325,7 +9342,7 @@ let Zs = (Zt = class {
|
|
|
9325
9342
|
destroy() {
|
|
9326
9343
|
this.notifyPlugins("beforeDestroy");
|
|
9327
9344
|
const { canvas: t, ctx: e } = this;
|
|
9328
|
-
this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Vr(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete
|
|
9345
|
+
this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Vr(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete dn[this.id], this.notifyPlugins("afterDestroy");
|
|
9329
9346
|
}
|
|
9330
9347
|
toBase64Image(...t) {
|
|
9331
9348
|
return this.canvas.toDataURL(...t);
|
|
@@ -9388,7 +9405,7 @@ let Zs = (Zt = class {
|
|
|
9388
9405
|
index: o
|
|
9389
9406
|
};
|
|
9390
9407
|
});
|
|
9391
|
-
!
|
|
9408
|
+
!yn(n, e) && (this._active = n, this._lastEvent = null, this._updateHoverStyles(n, e));
|
|
9392
9409
|
}
|
|
9393
9410
|
notifyPlugins(t, e, n) {
|
|
9394
9411
|
return this._plugins.notify(this, t, e, n);
|
|
@@ -9423,7 +9440,7 @@ let Zs = (Zt = class {
|
|
|
9423
9440
|
a,
|
|
9424
9441
|
this
|
|
9425
9442
|
], this));
|
|
9426
|
-
const h = !
|
|
9443
|
+
const h = !yn(a, s);
|
|
9427
9444
|
return (h || e) && (this._active = a, this._updateHoverStyles(a, s, e)), this._lastEvent = l, h;
|
|
9428
9445
|
}
|
|
9429
9446
|
_getActiveElements(t, e, n, s) {
|
|
@@ -9434,9 +9451,9 @@ let Zs = (Zt = class {
|
|
|
9434
9451
|
const r = this.options.hover;
|
|
9435
9452
|
return this.getElementsAtEventForMode(t, r.mode, r, s);
|
|
9436
9453
|
}
|
|
9437
|
-
}, I(Zt, "defaults", K), I(Zt, "instances",
|
|
9454
|
+
}, I(Zt, "defaults", K), I(Zt, "instances", dn), I(Zt, "overrides", _e), I(Zt, "registry", Rt), I(Zt, "version", fp), I(Zt, "getChart", wo), Zt);
|
|
9438
9455
|
function So() {
|
|
9439
|
-
return $(
|
|
9456
|
+
return $(Gs.instances, (i) => i._plugins.invalidate());
|
|
9440
9457
|
}
|
|
9441
9458
|
function ic(i, t) {
|
|
9442
9459
|
const { x: e, y: n, base: s, width: r, height: o } = i.getProps([
|
|
@@ -9455,7 +9472,7 @@ function ic(i, t) {
|
|
|
9455
9472
|
};
|
|
9456
9473
|
}
|
|
9457
9474
|
function Jt(i, t, e, n) {
|
|
9458
|
-
return i ? 0 :
|
|
9475
|
+
return i ? 0 : Et(t, e, n);
|
|
9459
9476
|
}
|
|
9460
9477
|
function vp(i, t, e) {
|
|
9461
9478
|
const n = i.options.borderWidth, s = i.borderSkipped, r = za(n);
|
|
@@ -9521,12 +9538,12 @@ function Gn(i, t, e = {}) {
|
|
|
9521
9538
|
radius: i.radius
|
|
9522
9539
|
};
|
|
9523
9540
|
}
|
|
9524
|
-
class
|
|
9541
|
+
class pn extends je {
|
|
9525
9542
|
constructor(t) {
|
|
9526
9543
|
super(), this.options = void 0, this.horizontal = void 0, this.base = void 0, this.width = void 0, this.height = void 0, this.inflateAmount = void 0, t && Object.assign(this, t);
|
|
9527
9544
|
}
|
|
9528
9545
|
draw(t) {
|
|
9529
|
-
const { inflateAmount: e, options: { borderColor: n, backgroundColor: s } } = this, { inner: r, outer: o } = xp(this), a = _p(o.radius) ?
|
|
9546
|
+
const { inflateAmount: e, options: { borderColor: n, backgroundColor: s } } = this, { inner: r, outer: o } = xp(this), a = _p(o.radius) ? Sn : wp;
|
|
9530
9547
|
t.save(), (o.w !== r.w || o.h !== r.h) && (t.beginPath(), a(t, Gn(o, e, r)), t.clip(), a(t, Gn(r, -e, o)), t.fillStyle = n, t.fill("evenodd")), t.beginPath(), a(t, Gn(r, e)), t.fillStyle = s, t.fill(), t.restore();
|
|
9531
9548
|
}
|
|
9532
9549
|
inRange(t, e, n) {
|
|
@@ -9554,17 +9571,17 @@ class dn extends je {
|
|
|
9554
9571
|
return t === "x" ? this.width / 2 : this.height / 2;
|
|
9555
9572
|
}
|
|
9556
9573
|
}
|
|
9557
|
-
I(
|
|
9574
|
+
I(pn, "id", "bar"), I(pn, "defaults", {
|
|
9558
9575
|
borderSkipped: "start",
|
|
9559
9576
|
borderWidth: 0,
|
|
9560
9577
|
borderRadius: 0,
|
|
9561
9578
|
inflateAmount: "auto",
|
|
9562
9579
|
pointStyle: void 0
|
|
9563
|
-
}), I(
|
|
9580
|
+
}), I(pn, "defaultRoutes", {
|
|
9564
9581
|
backgroundColor: "backgroundColor",
|
|
9565
9582
|
borderColor: "borderColor"
|
|
9566
9583
|
});
|
|
9567
|
-
const
|
|
9584
|
+
const ys = [
|
|
9568
9585
|
"rgb(54, 162, 235)",
|
|
9569
9586
|
"rgb(255, 99, 132)",
|
|
9570
9587
|
"rgb(255, 159, 64)",
|
|
@@ -9573,9 +9590,9 @@ const vs = [
|
|
|
9573
9590
|
"rgb(153, 102, 255)",
|
|
9574
9591
|
"rgb(201, 203, 207)"
|
|
9575
9592
|
// grey
|
|
9576
|
-
], ko = /* @__PURE__ */
|
|
9593
|
+
], ko = /* @__PURE__ */ ys.map((i) => i.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
|
|
9577
9594
|
function nc(i) {
|
|
9578
|
-
return
|
|
9595
|
+
return ys[i % ys.length];
|
|
9579
9596
|
}
|
|
9580
9597
|
function sc(i) {
|
|
9581
9598
|
return ko[i % ko.length];
|
|
@@ -9593,7 +9610,7 @@ function Op(i) {
|
|
|
9593
9610
|
let t = 0;
|
|
9594
9611
|
return (e, n) => {
|
|
9595
9612
|
const s = i.getDatasetMeta(n).controller;
|
|
9596
|
-
s instanceof ii ? t = kp(e, t) : s instanceof
|
|
9613
|
+
s instanceof ii ? t = kp(e, t) : s instanceof un ? t = Mp(e, t) : s && (t = Sp(e, t));
|
|
9597
9614
|
};
|
|
9598
9615
|
}
|
|
9599
9616
|
function Mo(i) {
|
|
@@ -9603,10 +9620,10 @@ function Mo(i) {
|
|
|
9603
9620
|
return !0;
|
|
9604
9621
|
return !1;
|
|
9605
9622
|
}
|
|
9606
|
-
function
|
|
9623
|
+
function Tp(i) {
|
|
9607
9624
|
return i && (i.borderColor || i.backgroundColor);
|
|
9608
9625
|
}
|
|
9609
|
-
function
|
|
9626
|
+
function Ap() {
|
|
9610
9627
|
return K.borderColor !== "rgba(0,0,0,0.1)" || K.backgroundColor !== "rgba(0,0,0,0.1)";
|
|
9611
9628
|
}
|
|
9612
9629
|
var Dp = {
|
|
@@ -9618,7 +9635,7 @@ var Dp = {
|
|
|
9618
9635
|
beforeLayout(i, t, e) {
|
|
9619
9636
|
if (!e.enabled)
|
|
9620
9637
|
return;
|
|
9621
|
-
const { data: { datasets: n }, options: s } = i.config, { elements: r } = s, o = Mo(n) ||
|
|
9638
|
+
const { data: { datasets: n }, options: s } = i.config, { elements: r } = s, o = Mo(n) || Tp(s) || r && Mo(r) || Ap();
|
|
9622
9639
|
if (!e.forceOverride && o)
|
|
9623
9640
|
return;
|
|
9624
9641
|
const a = Op(i);
|
|
@@ -9633,7 +9650,7 @@ const Oo = (i, t) => {
|
|
|
9633
9650
|
itemHeight: Math.max(t, e)
|
|
9634
9651
|
};
|
|
9635
9652
|
}, Ep = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index;
|
|
9636
|
-
class
|
|
9653
|
+
class To extends je {
|
|
9637
9654
|
constructor(t) {
|
|
9638
9655
|
super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
|
|
9639
9656
|
}
|
|
@@ -9718,7 +9735,7 @@ class Ao extends je {
|
|
|
9718
9735
|
draw() {
|
|
9719
9736
|
if (this.options.display) {
|
|
9720
9737
|
const t = this.ctx;
|
|
9721
|
-
|
|
9738
|
+
$s(t, this), this._draw(), Us(t);
|
|
9722
9739
|
}
|
|
9723
9740
|
}
|
|
9724
9741
|
_draw() {
|
|
@@ -9729,24 +9746,24 @@ class Ao extends je {
|
|
|
9729
9746
|
if (isNaN(p) || p <= 0 || isNaN(m) || m < 0)
|
|
9730
9747
|
return;
|
|
9731
9748
|
s.save();
|
|
9732
|
-
const
|
|
9733
|
-
if (s.fillStyle = j(O.fillStyle, a), s.lineCap = j(O.lineCap, "butt"), s.lineDashOffset = j(O.lineDashOffset, 0), s.lineJoin = j(O.lineJoin, "miter"), s.lineWidth =
|
|
9749
|
+
const T = j(O.lineWidth, 1);
|
|
9750
|
+
if (s.fillStyle = j(O.fillStyle, a), s.lineCap = j(O.lineCap, "butt"), s.lineDashOffset = j(O.lineDashOffset, 0), s.lineJoin = j(O.lineJoin, "miter"), s.lineWidth = T, s.strokeStyle = j(O.strokeStyle, a), s.setLineDash(j(O.lineDash, [])), o.usePointStyle) {
|
|
9734
9751
|
const P = {
|
|
9735
9752
|
radius: m * Math.SQRT2 / 2,
|
|
9736
9753
|
pointStyle: O.pointStyle,
|
|
9737
9754
|
rotation: O.rotation,
|
|
9738
|
-
borderWidth:
|
|
9739
|
-
}, E = c.xPlus(w, p / 2),
|
|
9740
|
-
La(s, P, E,
|
|
9755
|
+
borderWidth: T
|
|
9756
|
+
}, E = c.xPlus(w, p / 2), A = M + f;
|
|
9757
|
+
La(s, P, E, A, o.pointStyleWidth && p);
|
|
9741
9758
|
} else {
|
|
9742
|
-
const P = M + Math.max((u - m) / 2, 0), E = c.leftForLtr(w, p),
|
|
9743
|
-
s.beginPath(), Object.values(
|
|
9759
|
+
const P = M + Math.max((u - m) / 2, 0), E = c.leftForLtr(w, p), A = Pe(O.borderRadius);
|
|
9760
|
+
s.beginPath(), Object.values(A).some((F) => F !== 0) ? Sn(s, {
|
|
9744
9761
|
x: E,
|
|
9745
9762
|
y: P,
|
|
9746
9763
|
w: p,
|
|
9747
9764
|
h: m,
|
|
9748
|
-
radius:
|
|
9749
|
-
}) : s.rect(E, P, p, m), s.fill(),
|
|
9765
|
+
radius: A
|
|
9766
|
+
}) : s.rect(E, P, p, m), s.fill(), T !== 0 && s.stroke();
|
|
9750
9767
|
}
|
|
9751
9768
|
s.restore();
|
|
9752
9769
|
}, x = function(w, M, O) {
|
|
@@ -9767,11 +9784,11 @@ class Ao extends je {
|
|
|
9767
9784
|
const k = b + h;
|
|
9768
9785
|
this.legendItems.forEach((w, M) => {
|
|
9769
9786
|
s.strokeStyle = w.fontColor, s.fillStyle = w.fontColor;
|
|
9770
|
-
const O = s.measureText(w.text).width,
|
|
9771
|
-
let E = d.x,
|
|
9772
|
-
c.setWidth(this.width), S ? M > 0 && E + P + h > this.right && (
|
|
9787
|
+
const O = s.measureText(w.text).width, T = c.textAlign(w.textAlign || (w.textAlign = o.textAlign)), P = p + f + O;
|
|
9788
|
+
let E = d.x, A = d.y;
|
|
9789
|
+
c.setWidth(this.width), S ? M > 0 && E + P + h > this.right && (A = d.y += k, d.line++, E = d.x = st(r, this.left + h, this.right - n[d.line])) : M > 0 && A + k > this.bottom && (E = d.x = E + e[d.line].width + h, d.line++, A = d.y = st(r, this.top + g + h, this.bottom - e[d.line].height));
|
|
9773
9790
|
const F = c.x(E);
|
|
9774
|
-
if (y(F,
|
|
9791
|
+
if (y(F, A, w), E = Ju(T, E + p + f, S ? E + P : this.right, t.rtl), x(c.x(E), A, w), S)
|
|
9775
9792
|
d.x += P + h;
|
|
9776
9793
|
else if (typeof w.text != "string") {
|
|
9777
9794
|
const B = l.lineHeight;
|
|
@@ -9793,7 +9810,7 @@ class Ao extends je {
|
|
|
9793
9810
|
h = l + st(t.align, this.top, this.bottom - p - t.labels.padding - this._computeTitleHeight());
|
|
9794
9811
|
}
|
|
9795
9812
|
const d = st(a, u, u + f);
|
|
9796
|
-
o.textAlign = r.textAlign(
|
|
9813
|
+
o.textAlign = r.textAlign(Vs(a)), o.textBaseline = "middle", o.strokeStyle = e.color, o.fillStyle = e.color, o.font = n.string, yi(o, e.text, d, h, n);
|
|
9797
9814
|
}
|
|
9798
9815
|
_computeTitleHeight() {
|
|
9799
9816
|
const t = this.options.title, e = rt(t.font), n = At(t.padding);
|
|
@@ -9855,9 +9872,9 @@ function Lp(i, t) {
|
|
|
9855
9872
|
}
|
|
9856
9873
|
var Ip = {
|
|
9857
9874
|
id: "legend",
|
|
9858
|
-
_element:
|
|
9875
|
+
_element: To,
|
|
9859
9876
|
start(i, t, e) {
|
|
9860
|
-
const n = i.legend = new
|
|
9877
|
+
const n = i.legend = new To({
|
|
9861
9878
|
ctx: i.ctx,
|
|
9862
9879
|
options: e,
|
|
9863
9880
|
chart: i
|
|
@@ -9976,7 +9993,7 @@ class oc extends je {
|
|
|
9976
9993
|
color: e.color,
|
|
9977
9994
|
maxWidth: c,
|
|
9978
9995
|
rotation: l,
|
|
9979
|
-
textAlign:
|
|
9996
|
+
textAlign: Vs(e.align),
|
|
9980
9997
|
textBaseline: "middle",
|
|
9981
9998
|
translation: [
|
|
9982
9999
|
o,
|
|
@@ -10089,7 +10106,7 @@ function Bp(i, t) {
|
|
|
10089
10106
|
element: e
|
|
10090
10107
|
};
|
|
10091
10108
|
}
|
|
10092
|
-
function
|
|
10109
|
+
function Ao(i, t) {
|
|
10093
10110
|
const e = i.chart.ctx, { body: n, footer: s, title: r } = i, { boxWidth: o, boxHeight: a } = t, c = rt(t.bodyFont), l = rt(t.titleFont), h = rt(t.footerFont), u = r.length, f = s.length, d = n.length, p = At(t.padding);
|
|
10094
10111
|
let m = p.height, b = 0, y = n.reduce((g, k) => g + k.before.length + k.lines.length + k.after.length, 0);
|
|
10095
10112
|
if (y += i.beforeBody.length + i.afterBody.length, u && (m += u * l.lineHeight + (u - 1) * t.titleSpacing + t.titleMarginBottom), y) {
|
|
@@ -10142,11 +10159,11 @@ function Eo(i, t, e, n) {
|
|
|
10142
10159
|
let p = Wp(t, a);
|
|
10143
10160
|
const m = Vp(t, c, l);
|
|
10144
10161
|
return c === "center" ? a === "left" ? p += l : a === "right" && (p -= l) : a === "left" ? p -= Math.max(h, f) + s : a === "right" && (p += Math.max(u, d) + s), {
|
|
10145
|
-
x:
|
|
10146
|
-
y:
|
|
10162
|
+
x: Et(p, 0, n.width - t.width),
|
|
10163
|
+
y: Et(m, 0, n.height - t.height)
|
|
10147
10164
|
};
|
|
10148
10165
|
}
|
|
10149
|
-
function
|
|
10166
|
+
function tn(i, t, e) {
|
|
10150
10167
|
const n = At(e.padding);
|
|
10151
10168
|
return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - n.right : i.x + n.left;
|
|
10152
10169
|
}
|
|
@@ -10220,7 +10237,7 @@ function ct(i, t, e, n) {
|
|
|
10220
10237
|
const s = i[t].call(e, n);
|
|
10221
10238
|
return typeof s > "u" ? ac[t].call(e, n) : s;
|
|
10222
10239
|
}
|
|
10223
|
-
class
|
|
10240
|
+
class xs extends je {
|
|
10224
10241
|
constructor(t) {
|
|
10225
10242
|
super(), this.opacity = 0, this._active = [], this._eventPosition = void 0, this._size = void 0, this._cachedAnimations = void 0, this._tooltipItems = [], this.$animations = void 0, this.$context = void 0, this.chart = t.chart, this.options = t.options, this.dataPoints = void 0, this.title = void 0, this.beforeBody = void 0, this.body = void 0, this.afterBody = void 0, this.footer = void 0, this.xAlign = void 0, this.yAlign = void 0, this.x = void 0, this.y = void 0, this.height = void 0, this.width = void 0, this.caretX = void 0, this.caretY = void 0, this.labelColors = void 0, this.labelPointStyles = void 0, this.labelTextColors = void 0;
|
|
10226
10243
|
}
|
|
@@ -10284,7 +10301,7 @@ class ys extends je {
|
|
|
10284
10301
|
else {
|
|
10285
10302
|
const a = si[n.position].call(this, s, this._eventPosition);
|
|
10286
10303
|
o = this._createItems(n), this.title = this.getTitle(o, n), this.beforeBody = this.getBeforeBody(o, n), this.body = this.getBody(o, n), this.afterBody = this.getAfterBody(o, n), this.footer = this.getFooter(o, n);
|
|
10287
|
-
const c = this._size =
|
|
10304
|
+
const c = this._size = Ao(this, n), l = Object.assign({}, a, c), h = Do(this.chart, n, l), u = Eo(n, l, h, this.chart);
|
|
10288
10305
|
this.xAlign = h.xAlign, this.yAlign = h.yAlign, r = {
|
|
10289
10306
|
opacity: 1,
|
|
10290
10307
|
x: u.x,
|
|
@@ -10322,12 +10339,12 @@ class ys extends je {
|
|
|
10322
10339
|
let o, a, c;
|
|
10323
10340
|
if (r) {
|
|
10324
10341
|
const l = Ce(n.rtl, this.x, this.width);
|
|
10325
|
-
for (t.x =
|
|
10342
|
+
for (t.x = tn(this, n.titleAlign, n), e.textAlign = l.textAlign(n.titleAlign), e.textBaseline = "middle", o = rt(n.titleFont), a = n.titleSpacing, e.fillStyle = n.titleColor, e.font = o.string, c = 0; c < r; ++c)
|
|
10326
10343
|
e.fillText(s[c], l.x(t.x), t.y + o.lineHeight / 2), t.y += o.lineHeight + a, c + 1 === r && (t.y += n.titleMarginBottom - a);
|
|
10327
10344
|
}
|
|
10328
10345
|
}
|
|
10329
10346
|
_drawColorBox(t, e, n, s, r) {
|
|
10330
|
-
const o = this.labelColors[n], a = this.labelPointStyles[n], { boxHeight: c, boxWidth: l } = r, h = rt(r.bodyFont), u =
|
|
10347
|
+
const o = this.labelColors[n], a = this.labelPointStyles[n], { boxHeight: c, boxWidth: l } = r, h = rt(r.bodyFont), u = tn(this, "left", r), f = s.x(u), d = c < h.lineHeight ? (h.lineHeight - c) / 2 : 0, p = e.y + d;
|
|
10331
10348
|
if (r.usePointStyle) {
|
|
10332
10349
|
const m = {
|
|
10333
10350
|
radius: Math.min(l, c) / 2,
|
|
@@ -10339,13 +10356,13 @@ class ys extends je {
|
|
|
10339
10356
|
} else {
|
|
10340
10357
|
t.lineWidth = N(o.borderWidth) ? Math.max(...Object.values(o.borderWidth)) : o.borderWidth || 1, t.strokeStyle = o.borderColor, t.setLineDash(o.borderDash || []), t.lineDashOffset = o.borderDashOffset || 0;
|
|
10341
10358
|
const m = s.leftForLtr(f, l), b = s.leftForLtr(s.xPlus(f, 1), l - 2), y = Pe(o.borderRadius);
|
|
10342
|
-
Object.values(y).some((x) => x !== 0) ? (t.beginPath(), t.fillStyle = r.multiKeyBackground,
|
|
10359
|
+
Object.values(y).some((x) => x !== 0) ? (t.beginPath(), t.fillStyle = r.multiKeyBackground, Sn(t, {
|
|
10343
10360
|
x: m,
|
|
10344
10361
|
y: p,
|
|
10345
10362
|
w: l,
|
|
10346
10363
|
h: c,
|
|
10347
10364
|
radius: y
|
|
10348
|
-
}), t.fill(), t.stroke(), t.fillStyle = o.backgroundColor, t.beginPath(),
|
|
10365
|
+
}), t.fill(), t.stroke(), t.fillStyle = o.backgroundColor, t.beginPath(), Sn(t, {
|
|
10349
10366
|
x: b,
|
|
10350
10367
|
y: p + 1,
|
|
10351
10368
|
w: l - 2,
|
|
@@ -10362,7 +10379,7 @@ class ys extends je {
|
|
|
10362
10379
|
e.fillText(O, p.x(t.x + d), t.y + f / 2), t.y += f + r;
|
|
10363
10380
|
}, b = p.textAlign(o);
|
|
10364
10381
|
let y, x, S, g, k, w, M;
|
|
10365
|
-
for (e.textAlign = o, e.textBaseline = "middle", e.font = u.string, t.x =
|
|
10382
|
+
for (e.textAlign = o, e.textBaseline = "middle", e.font = u.string, t.x = tn(this, b, n), e.fillStyle = n.bodyColor, $(this.beforeBody, m), d = a && b !== "right" ? o === "center" ? l / 2 + h : l + 2 + h : 0, g = 0, w = s.length; g < w; ++g) {
|
|
10366
10383
|
for (y = s[g], x = this.labelTextColors[g], e.fillStyle = x, $(y.before, m), S = y.lines, a && S.length && (this._drawColorBox(e, t, g, p, n), f = Math.max(u.lineHeight, c)), k = 0, M = S.length; k < M; ++k)
|
|
10367
10384
|
m(S[k]), f = u.lineHeight;
|
|
10368
10385
|
$(y.after, m);
|
|
@@ -10374,7 +10391,7 @@ class ys extends je {
|
|
|
10374
10391
|
let o, a;
|
|
10375
10392
|
if (r) {
|
|
10376
10393
|
const c = Ce(n.rtl, this.x, this.width);
|
|
10377
|
-
for (t.x =
|
|
10394
|
+
for (t.x = tn(this, n.footerAlign, n), t.y += n.footerMarginTop, e.textAlign = c.textAlign(n.footerAlign), e.textBaseline = "middle", o = rt(n.footerFont), e.fillStyle = n.footerColor, e.font = o.string, a = 0; a < r; ++a)
|
|
10378
10395
|
e.fillText(s[a], c.x(t.x), t.y + o.lineHeight / 2), t.y += o.lineHeight + n.footerSpacing;
|
|
10379
10396
|
}
|
|
10380
10397
|
}
|
|
@@ -10388,7 +10405,7 @@ class ys extends je {
|
|
|
10388
10405
|
const o = si[t.position].call(this, this._active, this._eventPosition);
|
|
10389
10406
|
if (!o)
|
|
10390
10407
|
return;
|
|
10391
|
-
const a = this._size =
|
|
10408
|
+
const a = this._size = Ao(this, t), c = Object.assign({}, o, this._size), l = Do(e, t, c), h = Eo(t, c, l, e);
|
|
10392
10409
|
(s._to !== h.x || r._to !== h.y) && (this.xAlign = l.xAlign, this.yAlign = l.yAlign, this.width = a.width, this.height = a.height, this.caretX = o.x, this.caretY = o.y, this._resolveAnimations().update(this, h));
|
|
10393
10410
|
}
|
|
10394
10411
|
}
|
|
@@ -10425,14 +10442,14 @@ class ys extends je {
|
|
|
10425
10442
|
element: l.data[c],
|
|
10426
10443
|
index: c
|
|
10427
10444
|
};
|
|
10428
|
-
}), r = !
|
|
10445
|
+
}), r = !yn(n, s), o = this._positionChanged(s, e);
|
|
10429
10446
|
(r || o) && (this._active = s, this._eventPosition = e, this._ignoreReplayEvents = !0, this.update(!0));
|
|
10430
10447
|
}
|
|
10431
10448
|
handleEvent(t, e, n = !0) {
|
|
10432
10449
|
if (e && this._ignoreReplayEvents)
|
|
10433
10450
|
return !1;
|
|
10434
10451
|
this._ignoreReplayEvents = !1;
|
|
10435
|
-
const s = this.options, r = this._active || [], o = this._getActiveElements(t, r, e, n), a = this._positionChanged(o, t), c = e || !
|
|
10452
|
+
const s = this.options, r = this._active || [], o = this._getActiveElements(t, r, e, n), a = this._positionChanged(o, t), c = e || !yn(o, r) || a;
|
|
10436
10453
|
return c && (this._active = o, (s.enabled || s.external) && (this._eventPosition = {
|
|
10437
10454
|
x: t.x,
|
|
10438
10455
|
y: t.y
|
|
@@ -10452,13 +10469,13 @@ class ys extends je {
|
|
|
10452
10469
|
return o !== !1 && (n !== o.x || s !== o.y);
|
|
10453
10470
|
}
|
|
10454
10471
|
}
|
|
10455
|
-
I(
|
|
10472
|
+
I(xs, "positioners", si);
|
|
10456
10473
|
var Up = {
|
|
10457
10474
|
id: "tooltip",
|
|
10458
|
-
_element:
|
|
10475
|
+
_element: xs,
|
|
10459
10476
|
positioners: si,
|
|
10460
10477
|
afterInit(i, t, e) {
|
|
10461
|
-
e && (i.tooltip = new
|
|
10478
|
+
e && (i.tooltip = new xs({
|
|
10462
10479
|
chart: i,
|
|
10463
10480
|
options: e
|
|
10464
10481
|
}));
|
|
@@ -10580,12 +10597,12 @@ function Xp(i, t, e, n) {
|
|
|
10580
10597
|
const r = i.lastIndexOf(t);
|
|
10581
10598
|
return s !== r ? e : s;
|
|
10582
10599
|
}
|
|
10583
|
-
const Kp = (i, t) => i === null ? null :
|
|
10600
|
+
const Kp = (i, t) => i === null ? null : Et(Math.round(i), 0, t);
|
|
10584
10601
|
function Ro(i) {
|
|
10585
10602
|
const t = this.getLabels();
|
|
10586
10603
|
return i >= 0 && i < t.length ? t[i] : i;
|
|
10587
10604
|
}
|
|
10588
|
-
class
|
|
10605
|
+
class _s extends We {
|
|
10589
10606
|
constructor(t) {
|
|
10590
10607
|
super(t), this._startValue = void 0, this._valueRange = 0, this._addedLabels = [];
|
|
10591
10608
|
}
|
|
@@ -10640,14 +10657,14 @@ class xs extends We {
|
|
|
10640
10657
|
return this.bottom;
|
|
10641
10658
|
}
|
|
10642
10659
|
}
|
|
10643
|
-
I(
|
|
10660
|
+
I(_s, "id", "category"), I(_s, "defaults", {
|
|
10644
10661
|
ticks: {
|
|
10645
10662
|
callback: Ro
|
|
10646
10663
|
}
|
|
10647
10664
|
});
|
|
10648
10665
|
function qp(i, t) {
|
|
10649
10666
|
const e = [], { bounds: s, step: r, min: o, max: a, precision: c, count: l, maxTicks: h, maxDigits: u, includeBounds: f } = i, d = r || 1, p = h - 1, { min: m, max: b } = t, y = !Y(o), x = !Y(a), S = !Y(l), g = (b - m) / (u + 1);
|
|
10650
|
-
let k = Ir((b - m) / p / d) * d, w, M, O,
|
|
10667
|
+
let k = Ir((b - m) / p / d) * d, w, M, O, T;
|
|
10651
10668
|
if (k < 1e-14 && !y && !x)
|
|
10652
10669
|
return [
|
|
10653
10670
|
{
|
|
@@ -10657,21 +10674,21 @@ function qp(i, t) {
|
|
|
10657
10674
|
value: b
|
|
10658
10675
|
}
|
|
10659
10676
|
];
|
|
10660
|
-
|
|
10677
|
+
T = Math.ceil(b / k) - Math.floor(m / k), T > p && (k = Ir(T * k / p / d) * d), Y(c) || (w = Math.pow(10, c), k = Math.ceil(k * w) / w), s === "ticks" ? (M = Math.floor(m / k) * k, O = Math.ceil(b / k) * k) : (M = m, O = b), y && x && r && Vu((a - o) / r, k / 1e3) ? (T = Math.round(Math.min((a - o) / k, h)), k = (a - o) / T, M = o, O = a) : S ? (M = y ? o : M, O = x ? a : O, T = l - 1, k = (O - M) / T) : (T = (O - M) / k, ln(T, Math.round(T), k / 1e3) ? T = Math.round(T) : T = Math.ceil(T));
|
|
10661
10678
|
const P = Math.max(Fr(k), Fr(M));
|
|
10662
10679
|
w = Math.pow(10, Y(c) ? P : c), M = Math.round(M * w) / w, O = Math.round(O * w) / w;
|
|
10663
10680
|
let E = 0;
|
|
10664
10681
|
for (y && (f && M !== o ? (e.push({
|
|
10665
10682
|
value: o
|
|
10666
|
-
}), M < o && E++,
|
|
10667
|
-
const
|
|
10668
|
-
if (x &&
|
|
10683
|
+
}), M < o && E++, ln(Math.round((M + E * k) * w) / w, o, Lo(o, g, i)) && E++) : M < o && E++); E < T; ++E) {
|
|
10684
|
+
const A = Math.round((M + E * k) * w) / w;
|
|
10685
|
+
if (x && A > a)
|
|
10669
10686
|
break;
|
|
10670
10687
|
e.push({
|
|
10671
|
-
value:
|
|
10688
|
+
value: A
|
|
10672
10689
|
});
|
|
10673
10690
|
}
|
|
10674
|
-
return x && f && O !== a ? e.length &&
|
|
10691
|
+
return x && f && O !== a ? e.length && ln(e[e.length - 1].value, a, Lo(a, g, i)) ? e[e.length - 1].value = a : e.push({
|
|
10675
10692
|
value: a
|
|
10676
10693
|
}) : (!x || O === a) && e.push({
|
|
10677
10694
|
value: O
|
|
@@ -10742,10 +10759,10 @@ class Qp extends We {
|
|
|
10742
10759
|
return Cn(t, this.chart.options.locale, this.options.ticks.format);
|
|
10743
10760
|
}
|
|
10744
10761
|
}
|
|
10745
|
-
class
|
|
10762
|
+
class ws extends Qp {
|
|
10746
10763
|
determineDataLimits() {
|
|
10747
10764
|
const { min: t, max: e } = this.getMinMax(!0);
|
|
10748
|
-
this.min =
|
|
10765
|
+
this.min = Tt(t) ? t : 0, this.max = Tt(e) ? e : 1, this.handleTickRangeOptions();
|
|
10749
10766
|
}
|
|
10750
10767
|
computeTickLimit() {
|
|
10751
10768
|
const t = this.isHorizontal(), e = t ? this.width : this.height, n = It(this.options.ticks.minRotation), s = (t ? Math.sin(n) : Math.cos(n)) || 1e-3, r = this._resolveTickFontOptions(0);
|
|
@@ -10758,7 +10775,7 @@ class _s extends Qp {
|
|
|
10758
10775
|
return this._startValue + this.getDecimalForPixel(t) * this._valueRange;
|
|
10759
10776
|
}
|
|
10760
10777
|
}
|
|
10761
|
-
I(
|
|
10778
|
+
I(ws, "id", "linear"), I(ws, "defaults", {
|
|
10762
10779
|
ticks: {
|
|
10763
10780
|
callback: Ra.formatters.numeric
|
|
10764
10781
|
}
|
|
@@ -10817,7 +10834,7 @@ function Fo(i, t) {
|
|
|
10817
10834
|
return null;
|
|
10818
10835
|
const e = i._adapter, { parser: n, round: s, isoWeekday: r } = i._parseOpts;
|
|
10819
10836
|
let o = t;
|
|
10820
|
-
return typeof n == "function" && (o = n(o)),
|
|
10837
|
+
return typeof n == "function" && (o = n(o)), Tt(o) || (o = typeof n == "string" ? e.parse(o, n) : e.parse(o)), o === null ? null : (s && (o = s === "week" && (wn(r) || r === !0) ? e.startOf(o, "isoWeek", r) : e.startOf(o, s)), +o);
|
|
10821
10838
|
}
|
|
10822
10839
|
function zo(i, t, e, n) {
|
|
10823
10840
|
const s = lt.length;
|
|
@@ -10845,7 +10862,7 @@ function Bo(i, t, e) {
|
|
|
10845
10862
|
if (!e)
|
|
10846
10863
|
i[t] = !0;
|
|
10847
10864
|
else if (e.length) {
|
|
10848
|
-
const { lo: n, hi: s } =
|
|
10865
|
+
const { lo: n, hi: s } = Ws(e, t), r = e[n] >= t ? e[n] : e[s];
|
|
10849
10866
|
i[r] = !0;
|
|
10850
10867
|
}
|
|
10851
10868
|
}
|
|
@@ -10866,7 +10883,7 @@ function Ho(i, t, e) {
|
|
|
10866
10883
|
});
|
|
10867
10884
|
return r === 0 || !e ? n : Jp(i, n, s, e);
|
|
10868
10885
|
}
|
|
10869
|
-
class
|
|
10886
|
+
class On extends We {
|
|
10870
10887
|
constructor(t) {
|
|
10871
10888
|
super(t), this._cache = {
|
|
10872
10889
|
data: [],
|
|
@@ -10898,7 +10915,7 @@ class Mn extends We {
|
|
|
10898
10915
|
function c(l) {
|
|
10899
10916
|
!o && !isNaN(l.min) && (s = Math.min(s, l.min)), !a && !isNaN(l.max) && (r = Math.max(r, l.max));
|
|
10900
10917
|
}
|
|
10901
|
-
(!o || !a) && (c(this._getLabelBounds()), (t.bounds !== "ticks" || t.ticks.source !== "labels") && c(this.getMinMax(!1))), s =
|
|
10918
|
+
(!o || !a) && (c(this._getLabelBounds()), (t.bounds !== "ticks" || t.ticks.source !== "labels") && c(this.getMinMax(!1))), s = Tt(s) && !isNaN(s) ? s : +e.startOf(Date.now(), n), r = Tt(r) && !isNaN(r) ? r : +e.endOf(Date.now(), n) + 1, this.min = Math.min(s, r - 1), this.max = Math.max(s + 1, r);
|
|
10902
10919
|
}
|
|
10903
10920
|
_getLabelBounds() {
|
|
10904
10921
|
const t = this.getLabelTimestamps();
|
|
@@ -10921,14 +10938,14 @@ class Mn extends We {
|
|
|
10921
10938
|
let e = 0, n = 0, s, r;
|
|
10922
10939
|
this.options.offset && t.length && (s = this.getDecimalForValue(t[0]), t.length === 1 ? e = 1 - s : e = (this.getDecimalForValue(t[1]) - s) / 2, r = this.getDecimalForValue(t[t.length - 1]), t.length === 1 ? n = r : n = (r - this.getDecimalForValue(t[t.length - 2])) / 2);
|
|
10923
10940
|
const o = t.length < 3 ? 0.5 : 0.25;
|
|
10924
|
-
e =
|
|
10941
|
+
e = Et(e, 0, o), n = Et(n, 0, o), this._offsets = {
|
|
10925
10942
|
start: e,
|
|
10926
10943
|
end: n,
|
|
10927
10944
|
factor: 1 / (e + 1 + n)
|
|
10928
10945
|
};
|
|
10929
10946
|
}
|
|
10930
10947
|
_generate() {
|
|
10931
|
-
const t = this._adapter, e = this.min, n = this.max, s = this.options, r = s.time, o = r.unit || zo(r.minUnit, e, n, this._getLabelCapacity(e)), a = j(s.ticks.stepSize, 1), c = o === "week" ? r.isoWeekday : !1, l =
|
|
10948
|
+
const t = this._adapter, e = this.min, n = this.max, s = this.options, r = s.time, o = r.unit || zo(r.minUnit, e, n, this._getLabelCapacity(e)), a = j(s.ticks.stepSize, 1), c = o === "week" ? r.isoWeekday : !1, l = wn(c) || c === !0, h = {};
|
|
10932
10949
|
let u = e, f, d;
|
|
10933
10950
|
if (l && (u = +t.startOf(u, "isoWeek", c)), u = +t.startOf(u, l ? "day" : o), t.diff(n, e, o) > 1e5 * a)
|
|
10934
10951
|
throw new Error(e + " and " + n + " are too far apart with stepSize of " + a + " " + o);
|
|
@@ -11007,10 +11024,10 @@ class Mn extends We {
|
|
|
11007
11024
|
return this._cache.labels = this._normalized ? t : this.normalize(t);
|
|
11008
11025
|
}
|
|
11009
11026
|
normalize(t) {
|
|
11010
|
-
return
|
|
11027
|
+
return Aa(t.sort(Io));
|
|
11011
11028
|
}
|
|
11012
11029
|
}
|
|
11013
|
-
I(
|
|
11030
|
+
I(On, "id", "time"), I(On, "defaults", {
|
|
11014
11031
|
bounds: "data",
|
|
11015
11032
|
adapters: {},
|
|
11016
11033
|
time: {
|
|
@@ -11029,19 +11046,19 @@ I(Mn, "id", "time"), I(Mn, "defaults", {
|
|
|
11029
11046
|
}
|
|
11030
11047
|
}
|
|
11031
11048
|
});
|
|
11032
|
-
function
|
|
11049
|
+
function en(i, t, e) {
|
|
11033
11050
|
let n = 0, s = i.length - 1, r, o, a, c;
|
|
11034
|
-
e ? (t >= i[n].pos && t <= i[s].pos && ({ lo: n, hi: s } =
|
|
11051
|
+
e ? (t >= i[n].pos && t <= i[s].pos && ({ lo: n, hi: s } = gs(i, "pos", t)), { pos: r, time: a } = i[n], { pos: o, time: c } = i[s]) : (t >= i[n].time && t <= i[s].time && ({ lo: n, hi: s } = gs(i, "time", t)), { time: r, pos: a } = i[n], { time: o, pos: c } = i[s]);
|
|
11035
11052
|
const l = o - r;
|
|
11036
11053
|
return l ? a + (c - a) * (t - r) / l : a;
|
|
11037
11054
|
}
|
|
11038
|
-
class No extends
|
|
11055
|
+
class No extends On {
|
|
11039
11056
|
constructor(t) {
|
|
11040
11057
|
super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0;
|
|
11041
11058
|
}
|
|
11042
11059
|
initOffsets() {
|
|
11043
11060
|
const t = this._getTimestampsForTable(), e = this._table = this.buildLookupTable(t);
|
|
11044
|
-
this._minPos =
|
|
11061
|
+
this._minPos = en(e, this.min), this._tableRange = en(e, this.max) - this._minPos, super.initOffsets(t);
|
|
11045
11062
|
}
|
|
11046
11063
|
buildLookupTable(t) {
|
|
11047
11064
|
const { min: e, max: n } = this, s = [], r = [];
|
|
@@ -11079,20 +11096,20 @@ class No extends Mn {
|
|
|
11079
11096
|
return e.length && n.length ? t = this.normalize(e.concat(n)) : t = e.length ? e : n, t = this._cache.all = t, t;
|
|
11080
11097
|
}
|
|
11081
11098
|
getDecimalForValue(t) {
|
|
11082
|
-
return (
|
|
11099
|
+
return (en(this._table, t) - this._minPos) / this._tableRange;
|
|
11083
11100
|
}
|
|
11084
11101
|
getValueForPixel(t) {
|
|
11085
11102
|
const e = this._offsets, n = this.getDecimalForPixel(t) / e.factor - e.end;
|
|
11086
|
-
return
|
|
11103
|
+
return en(this._table, n * this._tableRange + this._minPos, !0);
|
|
11087
11104
|
}
|
|
11088
11105
|
}
|
|
11089
|
-
I(No, "id", "timeseries"), I(No, "defaults",
|
|
11090
|
-
|
|
11106
|
+
I(No, "id", "timeseries"), I(No, "defaults", On.defaults);
|
|
11107
|
+
Gs.register(
|
|
11091
11108
|
Dp,
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
xs,
|
|
11109
|
+
hn,
|
|
11110
|
+
pn,
|
|
11095
11111
|
_s,
|
|
11112
|
+
ws,
|
|
11096
11113
|
Ip,
|
|
11097
11114
|
zp,
|
|
11098
11115
|
Up
|
|
@@ -11100,7 +11117,7 @@ Zs.register(
|
|
|
11100
11117
|
function tg({ type: i = "bar", data: t, options: e }) {
|
|
11101
11118
|
const n = ne(null), s = ne(null);
|
|
11102
11119
|
return _i(() => {
|
|
11103
|
-
s.current && (n.current ? (n.current.options = e, n.current.data = t, n.current.update()) : n.current = new
|
|
11120
|
+
s.current && (n.current ? (n.current.options = e, n.current.data = t, n.current.update()) : n.current = new Gs(s.current, {
|
|
11104
11121
|
type: i,
|
|
11105
11122
|
data: t,
|
|
11106
11123
|
options: e
|
|
@@ -11128,16 +11145,16 @@ const jo = [
|
|
|
11128
11145
|
if (t >= 1) return ts(t, "hour", 1);
|
|
11129
11146
|
const e = i / 60;
|
|
11130
11147
|
return e >= 1 ? ts(e, "minute", 0) : ts(i, "second", 0);
|
|
11131
|
-
},
|
|
11148
|
+
}, nn = (i) => i.replace(/ \([^)]+\)/, "");
|
|
11132
11149
|
function eg({ infoGroupId: i }) {
|
|
11133
|
-
const [t, e] = He("overview"), n =
|
|
11150
|
+
const [t, e] = He("overview"), n = Oc(i).filter(
|
|
11134
11151
|
(l) => l.cider_type == "Compute"
|
|
11135
|
-
), s =
|
|
11152
|
+
), s = ht(
|
|
11136
11153
|
n.length ? n.map(
|
|
11137
11154
|
(l) => `https://rest-test.ccr.xdmod.org/rest/v0.1/custom_queries/wait_times/${l.info_resourceid}/`
|
|
11138
11155
|
) : null,
|
|
11139
11156
|
{ defaultValue: [] }
|
|
11140
|
-
), r =
|
|
11157
|
+
), r = ht(
|
|
11141
11158
|
t !== "overview" ? `https://rest-test.ccr.xdmod.org/rest/v0.1/custom_queries/wait_times/${t}/queue/job_walltime` : null
|
|
11142
11159
|
);
|
|
11143
11160
|
if (!s.length || !n.length) return;
|
|
@@ -11146,7 +11163,7 @@ function eg({ infoGroupId: i }) {
|
|
|
11146
11163
|
const a = [
|
|
11147
11164
|
/* @__PURE__ */ v("select", { value: t, onChange: (l) => e(l.target.value), children: [
|
|
11148
11165
|
/* @__PURE__ */ v("option", { value: "overview", children: "Overview" }),
|
|
11149
|
-
o.map((l) => /* @__PURE__ */ v("option", { value: l.info_resourceid, children:
|
|
11166
|
+
o.map((l) => /* @__PURE__ */ v("option", { value: l.info_resourceid, children: nn(l.resource_descriptive_name) }))
|
|
11150
11167
|
] })
|
|
11151
11168
|
];
|
|
11152
11169
|
let c = null;
|
|
@@ -11161,7 +11178,7 @@ function eg({ infoGroupId: i }) {
|
|
|
11161
11178
|
resource_descriptive_name: p
|
|
11162
11179
|
}) => /* @__PURE__ */ v("p", { class: "card metrics-overview", children: [
|
|
11163
11180
|
/* @__PURE__ */ v("b", { children: [
|
|
11164
|
-
|
|
11181
|
+
nn(p),
|
|
11165
11182
|
":"
|
|
11166
11183
|
] }),
|
|
11167
11184
|
" Users ran",
|
|
@@ -11204,7 +11221,7 @@ function eg({ infoGroupId: i }) {
|
|
|
11204
11221
|
/* @__PURE__ */ v(
|
|
11205
11222
|
"a",
|
|
11206
11223
|
{
|
|
11207
|
-
title: `Wait time chart for ${
|
|
11224
|
+
title: `Wait time chart for ${nn(
|
|
11208
11225
|
p
|
|
11209
11226
|
)}`,
|
|
11210
11227
|
href: "#",
|
|
@@ -11240,7 +11257,7 @@ function eg({ infoGroupId: i }) {
|
|
|
11240
11257
|
plugins: {
|
|
11241
11258
|
title: {
|
|
11242
11259
|
display: !0,
|
|
11243
|
-
text: `Median Wait Time by Queue on ${
|
|
11260
|
+
text: `Median Wait Time by Queue on ${nn(
|
|
11244
11261
|
f.resource_descriptive_name
|
|
11245
11262
|
)}: Last 30 Days`
|
|
11246
11263
|
}
|
|
@@ -11254,7 +11271,7 @@ function eg({ infoGroupId: i }) {
|
|
|
11254
11271
|
}
|
|
11255
11272
|
}
|
|
11256
11273
|
};
|
|
11257
|
-
c = /* @__PURE__ */ v(
|
|
11274
|
+
c = /* @__PURE__ */ v(St, { children: [
|
|
11258
11275
|
/* @__PURE__ */ v(tg, { type: "bar", data: { labels: h, datasets: u }, options: d }),
|
|
11259
11276
|
/* @__PURE__ */ v("p", { children: /* @__PURE__ */ v(
|
|
11260
11277
|
"a",
|
|
@@ -11306,7 +11323,7 @@ function lc(i) {
|
|
|
11306
11323
|
function og(i) {
|
|
11307
11324
|
return lc(i) && i !== null;
|
|
11308
11325
|
}
|
|
11309
|
-
function
|
|
11326
|
+
function pt(i) {
|
|
11310
11327
|
return i != null;
|
|
11311
11328
|
}
|
|
11312
11329
|
function es(i) {
|
|
@@ -11340,33 +11357,33 @@ class fg {
|
|
|
11340
11357
|
function uc(i) {
|
|
11341
11358
|
let t = null, e = null, n = null, s = 1, r = null;
|
|
11342
11359
|
if (Ft(i) || Kt(i))
|
|
11343
|
-
n = i, t = $o(i), e =
|
|
11360
|
+
n = i, t = $o(i), e = Ss(i);
|
|
11344
11361
|
else {
|
|
11345
11362
|
if (!Vo.call(i, "name"))
|
|
11346
11363
|
throw new Error(hg("name"));
|
|
11347
11364
|
const o = i.name;
|
|
11348
11365
|
if (n = o, Vo.call(i, "weight") && (s = i.weight, s <= 0))
|
|
11349
11366
|
throw new Error(ug(o));
|
|
11350
|
-
t = $o(o), e =
|
|
11367
|
+
t = $o(o), e = Ss(o), r = i.getFn;
|
|
11351
11368
|
}
|
|
11352
11369
|
return { path: t, id: e, weight: s, src: n, getFn: r };
|
|
11353
11370
|
}
|
|
11354
11371
|
function $o(i) {
|
|
11355
11372
|
return Kt(i) ? i : i.split(".");
|
|
11356
11373
|
}
|
|
11357
|
-
function
|
|
11374
|
+
function Ss(i) {
|
|
11358
11375
|
return Kt(i) ? i.join(".") : i;
|
|
11359
11376
|
}
|
|
11360
11377
|
function dg(i, t) {
|
|
11361
11378
|
let e = [], n = !1;
|
|
11362
11379
|
const s = (r, o, a) => {
|
|
11363
|
-
if (
|
|
11380
|
+
if (pt(r))
|
|
11364
11381
|
if (!o[a])
|
|
11365
11382
|
e.push(r);
|
|
11366
11383
|
else {
|
|
11367
11384
|
let c = o[a];
|
|
11368
11385
|
const l = r[c];
|
|
11369
|
-
if (!
|
|
11386
|
+
if (!pt(l))
|
|
11370
11387
|
return;
|
|
11371
11388
|
if (a === o.length - 1 && (Ft(l) || cc(l) || rg(l)))
|
|
11372
11389
|
e.push(sg(l));
|
|
@@ -11452,7 +11469,7 @@ function yg(i = 1, t = 3) {
|
|
|
11452
11469
|
}
|
|
11453
11470
|
};
|
|
11454
11471
|
}
|
|
11455
|
-
class
|
|
11472
|
+
class Js {
|
|
11456
11473
|
constructor({
|
|
11457
11474
|
getFn: t = R.getFn,
|
|
11458
11475
|
fieldNormWeight: e = R.fieldNormWeight
|
|
@@ -11495,7 +11512,7 @@ class Gs {
|
|
|
11495
11512
|
return this.records.length;
|
|
11496
11513
|
}
|
|
11497
11514
|
_addString(t, e) {
|
|
11498
|
-
if (!
|
|
11515
|
+
if (!pt(t) || es(t))
|
|
11499
11516
|
return;
|
|
11500
11517
|
let n = {
|
|
11501
11518
|
v: t,
|
|
@@ -11508,13 +11525,13 @@ class Gs {
|
|
|
11508
11525
|
let n = { i: e, $: {} };
|
|
11509
11526
|
this.keys.forEach((s, r) => {
|
|
11510
11527
|
let o = s.getFn ? s.getFn(t) : this.getFn(t, s.path);
|
|
11511
|
-
if (
|
|
11528
|
+
if (pt(o)) {
|
|
11512
11529
|
if (Kt(o)) {
|
|
11513
11530
|
let a = [];
|
|
11514
11531
|
const c = [{ nestedArrIndex: -1, value: o }];
|
|
11515
11532
|
for (; c.length; ) {
|
|
11516
11533
|
const { nestedArrIndex: l, value: h } = c.pop();
|
|
11517
|
-
if (
|
|
11534
|
+
if (pt(h))
|
|
11518
11535
|
if (Ft(h) && !es(h)) {
|
|
11519
11536
|
let u = {
|
|
11520
11537
|
v: h,
|
|
@@ -11548,14 +11565,14 @@ class Gs {
|
|
|
11548
11565
|
}
|
|
11549
11566
|
}
|
|
11550
11567
|
function fc(i, t, { getFn: e = R.getFn, fieldNormWeight: n = R.fieldNormWeight } = {}) {
|
|
11551
|
-
const s = new
|
|
11568
|
+
const s = new Js({ getFn: e, fieldNormWeight: n });
|
|
11552
11569
|
return s.setKeys(i.map(uc)), s.setSources(t), s.create(), s;
|
|
11553
11570
|
}
|
|
11554
11571
|
function xg(i, { getFn: t = R.getFn, fieldNormWeight: e = R.fieldNormWeight } = {}) {
|
|
11555
|
-
const { keys: n, records: s } = i, r = new
|
|
11572
|
+
const { keys: n, records: s } = i, r = new Js({ getFn: t, fieldNormWeight: e });
|
|
11556
11573
|
return r.setKeys(n), r.setIndexRecords(s), r;
|
|
11557
11574
|
}
|
|
11558
|
-
function
|
|
11575
|
+
function sn(i, {
|
|
11559
11576
|
errors: t = 0,
|
|
11560
11577
|
currentLocation: e = 0,
|
|
11561
11578
|
expectedLocation: n = 0,
|
|
@@ -11593,7 +11610,7 @@ function wg(i, t, e, {
|
|
|
11593
11610
|
const m = a > 1 || c, b = m ? Array(u) : [];
|
|
11594
11611
|
let y;
|
|
11595
11612
|
for (; (y = i.indexOf(t, p)) > -1; ) {
|
|
11596
|
-
let M =
|
|
11613
|
+
let M = sn(t, {
|
|
11597
11614
|
currentLocation: y,
|
|
11598
11615
|
expectedLocation: f,
|
|
11599
11616
|
distance: s,
|
|
@@ -11609,21 +11626,21 @@ function wg(i, t, e, {
|
|
|
11609
11626
|
let x = [], S = 1, g = h + u;
|
|
11610
11627
|
const k = 1 << h - 1;
|
|
11611
11628
|
for (let M = 0; M < h; M += 1) {
|
|
11612
|
-
let O = 0,
|
|
11613
|
-
for (; O <
|
|
11614
|
-
|
|
11629
|
+
let O = 0, T = g;
|
|
11630
|
+
for (; O < T; )
|
|
11631
|
+
sn(t, {
|
|
11615
11632
|
errors: M,
|
|
11616
|
-
currentLocation: f +
|
|
11633
|
+
currentLocation: f + T,
|
|
11617
11634
|
expectedLocation: f,
|
|
11618
11635
|
distance: s,
|
|
11619
11636
|
ignoreLocation: l
|
|
11620
|
-
}) <= d ? O =
|
|
11621
|
-
g =
|
|
11622
|
-
let P = Math.max(1, f -
|
|
11623
|
-
|
|
11637
|
+
}) <= d ? O = T : g = T, T = Math.floor((g - O) / 2 + O);
|
|
11638
|
+
g = T;
|
|
11639
|
+
let P = Math.max(1, f - T + 1), E = o ? u : Math.min(f + T, u) + h, A = Array(E + 2);
|
|
11640
|
+
A[E + 1] = (1 << M) - 1;
|
|
11624
11641
|
for (let B = E; B >= P; B -= 1) {
|
|
11625
11642
|
let L = B - 1, z = e[i.charAt(L)];
|
|
11626
|
-
if (m && (b[L] = +!!z),
|
|
11643
|
+
if (m && (b[L] = +!!z), A[B] = (A[B + 1] << 1 | 1) & z, M && (A[B] |= (x[B + 1] | x[B]) << 1 | 1 | x[B + 1]), A[B] & k && (S = sn(t, {
|
|
11627
11644
|
errors: M,
|
|
11628
11645
|
currentLocation: L,
|
|
11629
11646
|
expectedLocation: f,
|
|
@@ -11635,7 +11652,7 @@ function wg(i, t, e, {
|
|
|
11635
11652
|
P = Math.max(1, 2 * f - p);
|
|
11636
11653
|
}
|
|
11637
11654
|
}
|
|
11638
|
-
if (
|
|
11655
|
+
if (sn(t, {
|
|
11639
11656
|
errors: M + 1,
|
|
11640
11657
|
currentLocation: f,
|
|
11641
11658
|
expectedLocation: f,
|
|
@@ -11643,7 +11660,7 @@ function wg(i, t, e, {
|
|
|
11643
11660
|
ignoreLocation: l
|
|
11644
11661
|
}) > d)
|
|
11645
11662
|
break;
|
|
11646
|
-
x =
|
|
11663
|
+
x = A;
|
|
11647
11664
|
}
|
|
11648
11665
|
const w = {
|
|
11649
11666
|
isMatch: p >= 0,
|
|
@@ -11825,7 +11842,7 @@ class Og extends ae {
|
|
|
11825
11842
|
};
|
|
11826
11843
|
}
|
|
11827
11844
|
}
|
|
11828
|
-
class
|
|
11845
|
+
class Tg extends ae {
|
|
11829
11846
|
constructor(t) {
|
|
11830
11847
|
super(t);
|
|
11831
11848
|
}
|
|
@@ -11847,7 +11864,7 @@ class Ag extends ae {
|
|
|
11847
11864
|
};
|
|
11848
11865
|
}
|
|
11849
11866
|
}
|
|
11850
|
-
class
|
|
11867
|
+
class Ag extends ae {
|
|
11851
11868
|
constructor(t) {
|
|
11852
11869
|
super(t);
|
|
11853
11870
|
}
|
|
@@ -11952,16 +11969,16 @@ class gc extends ae {
|
|
|
11952
11969
|
};
|
|
11953
11970
|
}
|
|
11954
11971
|
}
|
|
11955
|
-
const
|
|
11972
|
+
const ks = [
|
|
11956
11973
|
kg,
|
|
11957
11974
|
gc,
|
|
11958
11975
|
Og,
|
|
11959
|
-
Ag,
|
|
11960
|
-
Dg,
|
|
11961
11976
|
Tg,
|
|
11977
|
+
Dg,
|
|
11978
|
+
Ag,
|
|
11962
11979
|
Mg,
|
|
11963
11980
|
pc
|
|
11964
|
-
], Yo =
|
|
11981
|
+
], Yo = ks.length, Eg = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, Pg = "|";
|
|
11965
11982
|
function Cg(i, t = {}) {
|
|
11966
11983
|
return i.split(Pg).map((e) => {
|
|
11967
11984
|
let n = e.trim().split(Eg).filter((r) => r && !!r.trim()), s = [];
|
|
@@ -11969,13 +11986,13 @@ function Cg(i, t = {}) {
|
|
|
11969
11986
|
const a = n[r];
|
|
11970
11987
|
let c = !1, l = -1;
|
|
11971
11988
|
for (; !c && ++l < Yo; ) {
|
|
11972
|
-
const h =
|
|
11989
|
+
const h = ks[l];
|
|
11973
11990
|
let u = h.isMultiMatch(a);
|
|
11974
11991
|
u && (s.push(new h(u, t)), c = !0);
|
|
11975
11992
|
}
|
|
11976
11993
|
if (!c)
|
|
11977
11994
|
for (l = -1; ++l < Yo; ) {
|
|
11978
|
-
const h =
|
|
11995
|
+
const h = ks[l];
|
|
11979
11996
|
let u = h.isSingleMatch(a);
|
|
11980
11997
|
if (u) {
|
|
11981
11998
|
s.push(new h(u, t));
|
|
@@ -12051,26 +12068,26 @@ class Lg {
|
|
|
12051
12068
|
};
|
|
12052
12069
|
}
|
|
12053
12070
|
}
|
|
12054
|
-
const
|
|
12071
|
+
const Ms = [];
|
|
12055
12072
|
function Ig(...i) {
|
|
12056
|
-
|
|
12073
|
+
Ms.push(...i);
|
|
12057
12074
|
}
|
|
12058
|
-
function
|
|
12059
|
-
for (let e = 0, n =
|
|
12060
|
-
let s =
|
|
12075
|
+
function Os(i, t) {
|
|
12076
|
+
for (let e = 0, n = Ms.length; e < n; e += 1) {
|
|
12077
|
+
let s = Ms[e];
|
|
12061
12078
|
if (s.condition(i, t))
|
|
12062
12079
|
return new s(i, t);
|
|
12063
12080
|
}
|
|
12064
12081
|
return new dc(i, t);
|
|
12065
12082
|
}
|
|
12066
|
-
const
|
|
12083
|
+
const Tn = {
|
|
12067
12084
|
AND: "$and",
|
|
12068
12085
|
OR: "$or"
|
|
12069
|
-
},
|
|
12086
|
+
}, Ts = {
|
|
12070
12087
|
PATH: "$path",
|
|
12071
12088
|
PATTERN: "$val"
|
|
12072
|
-
}, As = (i) => !!(i[
|
|
12073
|
-
[
|
|
12089
|
+
}, As = (i) => !!(i[Tn.AND] || i[Tn.OR]), Fg = (i) => !!i[Ts.PATH], zg = (i) => !Kt(i) && lc(i) && !As(i), Xo = (i) => ({
|
|
12090
|
+
[Tn.AND]: Object.keys(i).map((t) => ({
|
|
12074
12091
|
[t]: i[t]
|
|
12075
12092
|
}))
|
|
12076
12093
|
});
|
|
@@ -12081,14 +12098,14 @@ function mc(i, t, { auto: e = !0 } = {}) {
|
|
|
12081
12098
|
if (!o && r.length > 1 && !As(s))
|
|
12082
12099
|
return n(Xo(s));
|
|
12083
12100
|
if (zg(s)) {
|
|
12084
|
-
const c = o ? s[
|
|
12101
|
+
const c = o ? s[Ts.PATH] : r[0], l = o ? s[Ts.PATTERN] : s[c];
|
|
12085
12102
|
if (!Ft(l))
|
|
12086
12103
|
throw new Error(cg(c));
|
|
12087
12104
|
const h = {
|
|
12088
|
-
keyId:
|
|
12105
|
+
keyId: Ss(c),
|
|
12089
12106
|
pattern: l
|
|
12090
12107
|
};
|
|
12091
|
-
return e && (h.searcher =
|
|
12108
|
+
return e && (h.searcher = Os(l, t)), h;
|
|
12092
12109
|
}
|
|
12093
12110
|
let a = {
|
|
12094
12111
|
children: [],
|
|
@@ -12117,8 +12134,8 @@ function Bg(i, { ignoreFieldNorm: t = R.ignoreFieldNorm }) {
|
|
|
12117
12134
|
}
|
|
12118
12135
|
function Hg(i, t) {
|
|
12119
12136
|
const e = i.matches;
|
|
12120
|
-
t.matches = [],
|
|
12121
|
-
if (!
|
|
12137
|
+
t.matches = [], pt(e) && e.forEach((n) => {
|
|
12138
|
+
if (!pt(n.indices) || !n.indices.length)
|
|
12122
12139
|
return;
|
|
12123
12140
|
const { indices: s, value: r } = n;
|
|
12124
12141
|
let o = {
|
|
@@ -12151,7 +12168,7 @@ class Ve {
|
|
|
12151
12168
|
this.options = { ...R, ...e }, this.options.useExtendedSearch, this._keyStore = new fg(this.options.keys), this.setCollection(t, n);
|
|
12152
12169
|
}
|
|
12153
12170
|
setCollection(t, e) {
|
|
12154
|
-
if (this._docs = t, e && !(e instanceof
|
|
12171
|
+
if (this._docs = t, e && !(e instanceof Js))
|
|
12155
12172
|
throw new Error(ag);
|
|
12156
12173
|
this._myIndex = e || fc(this.options.keys, this._docs, {
|
|
12157
12174
|
getFn: this.options.getFn,
|
|
@@ -12159,7 +12176,7 @@ class Ve {
|
|
|
12159
12176
|
});
|
|
12160
12177
|
}
|
|
12161
12178
|
add(t) {
|
|
12162
|
-
|
|
12179
|
+
pt(t) && (this._docs.push(t), this._myIndex.add(t));
|
|
12163
12180
|
}
|
|
12164
12181
|
remove(t = () => !1) {
|
|
12165
12182
|
const e = [];
|
|
@@ -12190,9 +12207,9 @@ class Ve {
|
|
|
12190
12207
|
});
|
|
12191
12208
|
}
|
|
12192
12209
|
_searchStringList(t) {
|
|
12193
|
-
const e =
|
|
12210
|
+
const e = Os(t, this.options), { records: n } = this._myIndex, s = [];
|
|
12194
12211
|
return n.forEach(({ v: r, i: o, n: a }) => {
|
|
12195
|
-
if (!
|
|
12212
|
+
if (!pt(r))
|
|
12196
12213
|
return;
|
|
12197
12214
|
const { isMatch: c, score: l, indices: h } = e.searchIn(r);
|
|
12198
12215
|
c && s.push({
|
|
@@ -12223,13 +12240,13 @@ class Ve {
|
|
|
12223
12240
|
const d = a.children[u], p = n(d, c, l);
|
|
12224
12241
|
if (p.length)
|
|
12225
12242
|
h.push(...p);
|
|
12226
|
-
else if (a.operator ===
|
|
12243
|
+
else if (a.operator === Tn.AND)
|
|
12227
12244
|
return [];
|
|
12228
12245
|
}
|
|
12229
12246
|
return h;
|
|
12230
12247
|
}, s = this._myIndex.records, r = {}, o = [];
|
|
12231
12248
|
return s.forEach(({ $: a, i: c }) => {
|
|
12232
|
-
if (
|
|
12249
|
+
if (pt(a)) {
|
|
12233
12250
|
let l = n(e, a, c);
|
|
12234
12251
|
l.length && (r[c] || (r[c] = { idx: c, item: a, matches: [] }, o.push(r[c])), l.forEach(({ matches: h }) => {
|
|
12235
12252
|
r[c].matches.push(...h);
|
|
@@ -12238,9 +12255,9 @@ class Ve {
|
|
|
12238
12255
|
}), o;
|
|
12239
12256
|
}
|
|
12240
12257
|
_searchObjectList(t) {
|
|
12241
|
-
const e =
|
|
12258
|
+
const e = Os(t, this.options), { keys: n, records: s } = this._myIndex, r = [];
|
|
12242
12259
|
return s.forEach(({ $: o, i: a }) => {
|
|
12243
|
-
if (!
|
|
12260
|
+
if (!pt(o))
|
|
12244
12261
|
return;
|
|
12245
12262
|
let c = [];
|
|
12246
12263
|
n.forEach((l, h) => {
|
|
@@ -12259,12 +12276,12 @@ class Ve {
|
|
|
12259
12276
|
}), r;
|
|
12260
12277
|
}
|
|
12261
12278
|
_findMatches({ key: t, value: e, searcher: n }) {
|
|
12262
|
-
if (!
|
|
12279
|
+
if (!pt(e))
|
|
12263
12280
|
return [];
|
|
12264
12281
|
let s = [];
|
|
12265
12282
|
if (Kt(e))
|
|
12266
12283
|
e.forEach(({ v: r, i: o, n: a }) => {
|
|
12267
|
-
if (!
|
|
12284
|
+
if (!pt(r))
|
|
12268
12285
|
return;
|
|
12269
12286
|
const { isMatch: c, score: l, indices: h } = n.searchIn(r);
|
|
12270
12287
|
c && s.push({
|
|
@@ -12317,7 +12334,7 @@ function Vg({
|
|
|
12317
12334
|
r.current = null, e(s.current.value), a(s.current.value);
|
|
12318
12335
|
}, i);
|
|
12319
12336
|
});
|
|
12320
|
-
}, [s.current]), /* @__PURE__ */ v(
|
|
12337
|
+
}, [s.current]), /* @__PURE__ */ v(St, { children: /* @__PURE__ */ v("div", { class: "search", children: [
|
|
12321
12338
|
/* @__PURE__ */ v("input", { placeholder: t, style: { width: n }, ref: s }),
|
|
12322
12339
|
o.length ? /* @__PURE__ */ v(
|
|
12323
12340
|
"button",
|
|
@@ -12338,7 +12355,7 @@ const $g = [
|
|
|
12338
12355
|
"software_use_link"
|
|
12339
12356
|
];
|
|
12340
12357
|
function Ug({ infoGroupId: i }) {
|
|
12341
|
-
const t =
|
|
12358
|
+
const t = ht(
|
|
12342
12359
|
`https://ara-db.ccs.uky.edu/api=API_0/z0CiQbts8t4pnv6fJQD4g9nskbCOl6UD-67akYK68wk/rp=${i}?include=${$g.join(",")}`
|
|
12343
12360
|
), [e, n] = He(""), s = Tc(
|
|
12344
12361
|
() => t && t.length ? new Ve(t, {
|
|
@@ -12357,7 +12374,7 @@ function Ug({ infoGroupId: i }) {
|
|
|
12357
12374
|
format: (f, d) => {
|
|
12358
12375
|
const p = [], m = r(f), b = d.software_web_page || d.software_documentation;
|
|
12359
12376
|
return p.push(b ? /* @__PURE__ */ v("a", { href: b, children: m }) : m), d.software_documentation && p.push(
|
|
12360
|
-
/* @__PURE__ */ v(
|
|
12377
|
+
/* @__PURE__ */ v(St, { children: " " }),
|
|
12361
12378
|
/* @__PURE__ */ v(
|
|
12362
12379
|
"a",
|
|
12363
12380
|
{
|
|
@@ -12367,7 +12384,7 @@ function Ug({ infoGroupId: i }) {
|
|
|
12367
12384
|
}
|
|
12368
12385
|
)
|
|
12369
12386
|
), d.software_use_link && d.software_use_link != d.software_documentation && p.push(
|
|
12370
|
-
/* @__PURE__ */ v(
|
|
12387
|
+
/* @__PURE__ */ v(St, { children: " " }),
|
|
12371
12388
|
/* @__PURE__ */ v(
|
|
12372
12389
|
"a",
|
|
12373
12390
|
{
|
|
@@ -12392,7 +12409,7 @@ function Ug({ infoGroupId: i }) {
|
|
|
12392
12409
|
name: "Description",
|
|
12393
12410
|
format: (f, d) => {
|
|
12394
12411
|
const p = /Description Source:[ ]+(http[^ ]+)/, m = f.match(p);
|
|
12395
|
-
return /* @__PURE__ */ v(
|
|
12412
|
+
return /* @__PURE__ */ v(St, { children: [
|
|
12396
12413
|
r(f.replace(p, "")),
|
|
12397
12414
|
" ",
|
|
12398
12415
|
m ? /* @__PURE__ */ v(
|
|
@@ -12421,7 +12438,7 @@ function Ug({ infoGroupId: i }) {
|
|
|
12421
12438
|
}
|
|
12422
12439
|
)
|
|
12423
12440
|
],
|
|
12424
|
-
children: /* @__PURE__ */ v(
|
|
12441
|
+
children: /* @__PURE__ */ v(An, { columns: l, rows: h, scrollResetOnUpdate: !0 })
|
|
12425
12442
|
}
|
|
12426
12443
|
);
|
|
12427
12444
|
}
|
|
@@ -12453,7 +12470,7 @@ function Yg({ prompt: i = "Jump To:" }) {
|
|
|
12453
12470
|
l.preventDefault(), r(a);
|
|
12454
12471
|
},
|
|
12455
12472
|
children: [
|
|
12456
|
-
o ? /* @__PURE__ */ v(
|
|
12473
|
+
o ? /* @__PURE__ */ v(St, { children: [
|
|
12457
12474
|
/* @__PURE__ */ v(X, { name: o }),
|
|
12458
12475
|
" "
|
|
12459
12476
|
] }) : null,
|
|
@@ -12463,18 +12480,33 @@ function Yg({ prompt: i = "Jump To:" }) {
|
|
|
12463
12480
|
) })) })
|
|
12464
12481
|
] }) : null });
|
|
12465
12482
|
}
|
|
12466
|
-
function Jg({
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
/* @__PURE__ */ v(
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12483
|
+
function Jg({
|
|
12484
|
+
baseUri: i,
|
|
12485
|
+
infoGroupId: t,
|
|
12486
|
+
showBreadcrumbs: e = !0
|
|
12487
|
+
}) {
|
|
12488
|
+
const n = wi(t), s = [{ name: "Resources", href: i }];
|
|
12489
|
+
return n && s.push({ name: n.name }), /* @__PURE__ */ v(St, { children: [
|
|
12490
|
+
e && /* @__PURE__ */ v(
|
|
12491
|
+
Ac,
|
|
12492
|
+
{
|
|
12493
|
+
expandWidth: !0,
|
|
12494
|
+
items: s,
|
|
12495
|
+
topBorder: !0
|
|
12496
|
+
}
|
|
12497
|
+
),
|
|
12498
|
+
/* @__PURE__ */ v("div", { class: "resource-group-detail", children: [
|
|
12499
|
+
/* @__PURE__ */ v(Ec, { infoGroupId: t }),
|
|
12500
|
+
/* @__PURE__ */ v(Yg, {}),
|
|
12501
|
+
/* @__PURE__ */ v(_h, { infoGroupId: t }),
|
|
12502
|
+
/* @__PURE__ */ v(ph, { infoGroupId: t }),
|
|
12503
|
+
/* @__PURE__ */ v(vh, { infoGroupId: t }),
|
|
12504
|
+
/* @__PURE__ */ v(Dc, { infoGroupId: t }),
|
|
12505
|
+
/* @__PURE__ */ v(Ug, { infoGroupId: t }),
|
|
12506
|
+
/* @__PURE__ */ v(uu, { infoGroupId: t }),
|
|
12507
|
+
/* @__PURE__ */ v(eg, { infoGroupId: t }),
|
|
12508
|
+
/* @__PURE__ */ v(Rc, { infoGroupId: t })
|
|
12509
|
+
] })
|
|
12478
12510
|
] });
|
|
12479
12511
|
}
|
|
12480
12512
|
export {
|