genus-ui 1.92.21 → 1.93.22
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/dist/index.es.js +179 -186
- package/dist/index.umd.js +53 -60
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -31,7 +31,7 @@ const xa = x`
|
|
|
31
31
|
justify-self: start;
|
|
32
32
|
grid-area: il;
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`, Ia = x`
|
|
35
35
|
textarea
|
|
36
36
|
{
|
|
37
37
|
border: var(--textarea-border, none);
|
|
@@ -49,7 +49,7 @@ const xa = x`
|
|
|
49
49
|
border-radius: var(--textarea-border-radius, 0.375rem);
|
|
50
50
|
grid-area: ic;
|
|
51
51
|
}
|
|
52
|
-
`,
|
|
52
|
+
`, va = x`
|
|
53
53
|
textarea
|
|
54
54
|
{
|
|
55
55
|
font-family: var(--textarea-font-family, 'Sofia Pro');
|
|
@@ -99,7 +99,7 @@ let Ot = class extends tt {
|
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
-
Ot.styles = [xa, Ca, ya,
|
|
102
|
+
Ot.styles = [xa, Ca, ya, va, Ia];
|
|
103
103
|
le([
|
|
104
104
|
G({ attribute: "label-text" })
|
|
105
105
|
], Ot.prototype, "labelText", 2);
|
|
@@ -912,21 +912,28 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
912
912
|
transition: stroke-dashoffset 0.4s linear;
|
|
913
913
|
}
|
|
914
914
|
|
|
915
|
-
.progress-bar-wrapper { filter: url(#goo); }
|
|
916
|
-
|
|
917
915
|
.progress-bar
|
|
918
|
-
{
|
|
916
|
+
{
|
|
917
|
+
position: relative;
|
|
919
918
|
width: 100%;
|
|
920
|
-
padding: 0.85rem 1rem;
|
|
921
919
|
background: var(--progress-bar-background-color, #dfeeed);
|
|
922
|
-
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.progress-bar:not(:last-child)::after
|
|
923
|
+
{
|
|
924
|
+
position: absolute;
|
|
925
|
+
content: ' ';
|
|
926
|
+
height: 0.01rem;
|
|
927
|
+
width: 1.5rem;
|
|
928
|
+
background: #cfd1d4;
|
|
929
|
+
right: -1.5rem;
|
|
923
930
|
}
|
|
924
931
|
|
|
925
932
|
.progress-bar.current { background: var(--current-progress-bar-background-color, #203e70); }
|
|
926
933
|
|
|
927
934
|
::slotted(genus-step-content) { grid-area: 1 / 1 / -1 / -1; }
|
|
928
935
|
|
|
929
|
-
.step-controls { margin
|
|
936
|
+
.step-controls { margin: var(--step-controls-margin, 0 0 0 auto); }
|
|
930
937
|
`, Do = x`
|
|
931
938
|
.step-contents
|
|
932
939
|
{
|
|
@@ -940,7 +947,8 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
940
947
|
display: grid;
|
|
941
948
|
grid-auto-columns: 11.25rem;
|
|
942
949
|
grid-auto-flow: column;
|
|
943
|
-
grid-column-gap:
|
|
950
|
+
grid-column-gap: 1.5rem;
|
|
951
|
+
grid-template-rows: 2.5rem;
|
|
944
952
|
}
|
|
945
953
|
`, _a = x`
|
|
946
954
|
.steps-container
|
|
@@ -965,6 +973,14 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
965
973
|
justify-content: center;
|
|
966
974
|
align-items: center;
|
|
967
975
|
}
|
|
976
|
+
|
|
977
|
+
.progress-bar
|
|
978
|
+
{
|
|
979
|
+
display: flex;
|
|
980
|
+
place-content: center;
|
|
981
|
+
align-items: center;
|
|
982
|
+
border-radius: 3rem;
|
|
983
|
+
}
|
|
968
984
|
`, $a = x`
|
|
969
985
|
.step-title, .step-description, .step-number
|
|
970
986
|
{
|
|
@@ -975,7 +991,7 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
975
991
|
.step-title
|
|
976
992
|
{
|
|
977
993
|
font-family: var(--title-font-family, 'Sofia Pro Semi');
|
|
978
|
-
font-size: var(--title-font-size);
|
|
994
|
+
font-size: var(--title-font-size, 0.9rem);
|
|
979
995
|
color: var(--title-color, #203e70);
|
|
980
996
|
margin-bottom: var(--title-margin-buttom);
|
|
981
997
|
}
|
|
@@ -1021,18 +1037,14 @@ let ct = class extends tt {
|
|
|
1021
1037
|
for (let t = 0; t < this._steps; t++)
|
|
1022
1038
|
this._progressBarsTemplate.push(
|
|
1023
1039
|
B`
|
|
1024
|
-
<div class='progress-bar
|
|
1025
|
-
<
|
|
1026
|
-
<h4 class="step-title">${i[t]}</h4>
|
|
1027
|
-
</div>
|
|
1040
|
+
<div class='progress-bar'>
|
|
1041
|
+
<h4 class="step-title">${i[t]}</h4>
|
|
1028
1042
|
</div>
|
|
1029
1043
|
`
|
|
1030
1044
|
);
|
|
1031
1045
|
this._progressBarsTemplate.length > 0 && (this._progressBarsTemplate[this.currentStep] = B`
|
|
1032
|
-
<div class='progress-bar
|
|
1033
|
-
<
|
|
1034
|
-
<h4 class="step-title">${i[this.currentStep]}</h4>
|
|
1035
|
-
</div>
|
|
1046
|
+
<div class='progress-bar current'>
|
|
1047
|
+
<h4 class="step-title">${i[this.currentStep]}</h4>
|
|
1036
1048
|
</div>
|
|
1037
1049
|
`);
|
|
1038
1050
|
};
|
|
@@ -1047,16 +1059,12 @@ let ct = class extends tt {
|
|
|
1047
1059
|
}
|
|
1048
1060
|
render() {
|
|
1049
1061
|
return this.direction === "next" && (this._progressBarsTemplate[this.currentStep] = B`
|
|
1050
|
-
<div class='progress-bar
|
|
1051
|
-
<
|
|
1052
|
-
<h4 class="step-title">${this.titles[this.currentStep]}</h4>
|
|
1053
|
-
</div>
|
|
1062
|
+
<div class='progress-bar current'>
|
|
1063
|
+
<h4 class="step-title">${this.titles[this.currentStep]}</h4>
|
|
1054
1064
|
</div>
|
|
1055
1065
|
`), this.direction === "prev" && (this._progressBarsTemplate[this.currentStep + 1] = B`
|
|
1056
|
-
<div class='progress-bar
|
|
1057
|
-
<
|
|
1058
|
-
<h4 class="step-title">${this.titles[this.currentStep + 1]}</h4>
|
|
1059
|
-
</div>
|
|
1066
|
+
<div class='progress-bar'>
|
|
1067
|
+
<h4 class="step-title">${this.titles[this.currentStep + 1]}</h4>
|
|
1060
1068
|
</div>
|
|
1061
1069
|
`), B`
|
|
1062
1070
|
<div class='steps-container'>
|
|
@@ -1083,15 +1091,6 @@ let ct = class extends tt {
|
|
|
1083
1091
|
() => B`
|
|
1084
1092
|
<div class="progress-container progress-container--web">
|
|
1085
1093
|
<div class='progress-bars'>${this._progressBarsTemplate}</div>
|
|
1086
|
-
<svg style="visibility: hidden; position: absolute;" width="0" height="0" xmlns="http://www.w3.org/2000/svg" version="1.1">
|
|
1087
|
-
<defs>
|
|
1088
|
-
<filter id="goo">
|
|
1089
|
-
<feGaussianBlur in="SourceGraphic" stdDeviation="3" result="blur" />
|
|
1090
|
-
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9" result="goo" />
|
|
1091
|
-
<feComposite in="SourceGraphic" in2="goo" operator="atop"/>
|
|
1092
|
-
</filter>
|
|
1093
|
-
</defs>
|
|
1094
|
-
</svg>
|
|
1095
1094
|
</div>
|
|
1096
1095
|
`
|
|
1097
1096
|
)}
|
|
@@ -1144,7 +1143,7 @@ var ir = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, nr = (i, t
|
|
|
1144
1143
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1145
1144
|
return s && n && ir(t, e, n), n;
|
|
1146
1145
|
};
|
|
1147
|
-
let
|
|
1146
|
+
let Ii = class extends tt {
|
|
1148
1147
|
render() {
|
|
1149
1148
|
return B`
|
|
1150
1149
|
<div class='step-content'>
|
|
@@ -1153,14 +1152,14 @@ let vi = class extends tt {
|
|
|
1153
1152
|
`;
|
|
1154
1153
|
}
|
|
1155
1154
|
};
|
|
1156
|
-
|
|
1157
|
-
|
|
1155
|
+
Ii.styles = [Mo, Do];
|
|
1156
|
+
Ii = nr([
|
|
1158
1157
|
et("genus-step-content")
|
|
1159
|
-
],
|
|
1158
|
+
], Ii);
|
|
1160
1159
|
const Ug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1161
1160
|
__proto__: null,
|
|
1162
1161
|
get GenusStepContent() {
|
|
1163
|
-
return
|
|
1162
|
+
return Ii;
|
|
1164
1163
|
},
|
|
1165
1164
|
get GenusStepWizard() {
|
|
1166
1165
|
return ct;
|
|
@@ -1598,7 +1597,7 @@ const Cr = x`
|
|
|
1598
1597
|
'ol ol ol ol . .'
|
|
1599
1598
|
'oc oc oc oc oc oc';
|
|
1600
1599
|
}
|
|
1601
|
-
`,
|
|
1600
|
+
`, Ir = x`
|
|
1602
1601
|
.options-container
|
|
1603
1602
|
{
|
|
1604
1603
|
display: flex;
|
|
@@ -1606,10 +1605,10 @@ const Cr = x`
|
|
|
1606
1605
|
gap: 1rem;
|
|
1607
1606
|
}
|
|
1608
1607
|
`;
|
|
1609
|
-
var
|
|
1608
|
+
var vr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, Go = (i, t, e, s) => {
|
|
1610
1609
|
for (var n = s > 1 ? void 0 : s ? Er(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1611
1610
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1612
|
-
return s && n &&
|
|
1611
|
+
return s && n && vr(t, e, n), n;
|
|
1613
1612
|
};
|
|
1614
1613
|
let Ve = class extends tt {
|
|
1615
1614
|
constructor() {
|
|
@@ -1626,7 +1625,7 @@ let Ve = class extends tt {
|
|
|
1626
1625
|
`;
|
|
1627
1626
|
}
|
|
1628
1627
|
};
|
|
1629
|
-
Ve.styles = [Bo, bo, Cr, yr,
|
|
1628
|
+
Ve.styles = [Bo, bo, Cr, yr, Ir];
|
|
1630
1629
|
Go([
|
|
1631
1630
|
G({ attribute: "group-label-text" })
|
|
1632
1631
|
], Ve.prototype, "labelText", 2);
|
|
@@ -1842,7 +1841,7 @@ const jr = x`
|
|
|
1842
1841
|
border-radius: 0.375rem 0.375rem 0 0;
|
|
1843
1842
|
}
|
|
1844
1843
|
`, xo = x`
|
|
1845
|
-
.options
|
|
1844
|
+
.options, .filter-container ul
|
|
1846
1845
|
{
|
|
1847
1846
|
list-style: none;
|
|
1848
1847
|
background: #fff;
|
|
@@ -1855,6 +1854,8 @@ const jr = x`
|
|
|
1855
1854
|
}
|
|
1856
1855
|
|
|
1857
1856
|
.options::-webkit-scrollbar { display: none; }
|
|
1857
|
+
|
|
1858
|
+
.filter-container ul::-webkit-scrollbar { display: none; }
|
|
1858
1859
|
|
|
1859
1860
|
.options__list-item
|
|
1860
1861
|
{
|
|
@@ -1883,14 +1884,6 @@ const jr = x`
|
|
|
1883
1884
|
width: 100%;
|
|
1884
1885
|
}
|
|
1885
1886
|
|
|
1886
|
-
.filter-container .options
|
|
1887
|
-
{
|
|
1888
|
-
position: unset;
|
|
1889
|
-
visibility: visible;
|
|
1890
|
-
opacity: unset;
|
|
1891
|
-
transition: unset;
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
1887
|
.options, .filter-container
|
|
1895
1888
|
{
|
|
1896
1889
|
position: absolute;
|
|
@@ -2008,7 +2001,7 @@ let rt = class extends tt {
|
|
|
2008
2001
|
<div class='search-container'>
|
|
2009
2002
|
<input class='search-textbox' type='text' placeholder=${this.searchPlaceholderText} @input=${this.getInputValue} />
|
|
2010
2003
|
</div>
|
|
2011
|
-
<ul
|
|
2004
|
+
<ul @click=${this.selectOption}>
|
|
2012
2005
|
<slot></slot>
|
|
2013
2006
|
</ul>
|
|
2014
2007
|
</div>
|
|
@@ -2158,7 +2151,7 @@ function Pe(i) {
|
|
|
2158
2151
|
function Ft(i) {
|
|
2159
2152
|
return St(ti(i * 255), 0, 255);
|
|
2160
2153
|
}
|
|
2161
|
-
function
|
|
2154
|
+
function vt(i) {
|
|
2162
2155
|
return St(ti(i / 2.55) / 100, 0, 1);
|
|
2163
2156
|
}
|
|
2164
2157
|
function Zs(i) {
|
|
@@ -2220,7 +2213,7 @@ function lA(i, t, e) {
|
|
|
2220
2213
|
function cA(i, t, e) {
|
|
2221
2214
|
return Bs(aA, i, t, e);
|
|
2222
2215
|
}
|
|
2223
|
-
function
|
|
2216
|
+
function Io(i) {
|
|
2224
2217
|
return (i % 360 + 360) % 360;
|
|
2225
2218
|
}
|
|
2226
2219
|
function hA(i) {
|
|
@@ -2229,7 +2222,7 @@ function hA(i) {
|
|
|
2229
2222
|
if (!t)
|
|
2230
2223
|
return;
|
|
2231
2224
|
t[5] !== s && (e = t[6] ? Pe(+t[5]) : Ft(+t[5]));
|
|
2232
|
-
const n =
|
|
2225
|
+
const n = Io(+t[2]), o = +t[3] / 100, a = +t[4] / 100;
|
|
2233
2226
|
return t[1] === "hwb" ? s = lA(n, o, a) : t[1] === "hsv" ? s = cA(n, o, a) : s = Gs(n, o, a), {
|
|
2234
2227
|
r: s[0],
|
|
2235
2228
|
g: s[1],
|
|
@@ -2239,13 +2232,13 @@ function hA(i) {
|
|
|
2239
2232
|
}
|
|
2240
2233
|
function dA(i, t) {
|
|
2241
2234
|
var e = bs(i);
|
|
2242
|
-
e[0] =
|
|
2235
|
+
e[0] = Io(e[0] + t), e = Gs(e), i.r = e[0], i.g = e[1], i.b = e[2];
|
|
2243
2236
|
}
|
|
2244
2237
|
function gA(i) {
|
|
2245
2238
|
if (!i)
|
|
2246
2239
|
return;
|
|
2247
2240
|
const t = bs(i), e = t[0], s = Zs(t[1]), n = Zs(t[2]);
|
|
2248
|
-
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${
|
|
2241
|
+
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${vt(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`;
|
|
2249
2242
|
}
|
|
2250
2243
|
const Ks = {
|
|
2251
2244
|
x: "dark",
|
|
@@ -2464,15 +2457,15 @@ function wA(i) {
|
|
|
2464
2457
|
}
|
|
2465
2458
|
}
|
|
2466
2459
|
function mA(i) {
|
|
2467
|
-
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${
|
|
2460
|
+
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${vt(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
|
|
2468
2461
|
}
|
|
2469
2462
|
const Wi = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, fe = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
2470
2463
|
function MA(i, t, e) {
|
|
2471
|
-
const s = fe(
|
|
2464
|
+
const s = fe(vt(i.r)), n = fe(vt(i.g)), o = fe(vt(i.b));
|
|
2472
2465
|
return {
|
|
2473
|
-
r: Ft(Wi(s + e * (fe(
|
|
2474
|
-
g: Ft(Wi(n + e * (fe(
|
|
2475
|
-
b: Ft(Wi(o + e * (fe(
|
|
2466
|
+
r: Ft(Wi(s + e * (fe(vt(t.r)) - s))),
|
|
2467
|
+
g: Ft(Wi(n + e * (fe(vt(t.g)) - n))),
|
|
2468
|
+
b: Ft(Wi(o + e * (fe(vt(t.b)) - o))),
|
|
2476
2469
|
a: i.a + e * (t.a - i.a)
|
|
2477
2470
|
};
|
|
2478
2471
|
}
|
|
@@ -2482,12 +2475,12 @@ function ri(i, t, e) {
|
|
|
2482
2475
|
s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = Gs(s), i.r = s[0], i.g = s[1], i.b = s[2];
|
|
2483
2476
|
}
|
|
2484
2477
|
}
|
|
2485
|
-
function
|
|
2478
|
+
function vo(i, t) {
|
|
2486
2479
|
return i && Object.assign(t || {}, i);
|
|
2487
2480
|
}
|
|
2488
2481
|
function Xs(i) {
|
|
2489
2482
|
var t = { r: 0, g: 0, b: 0, a: 255 };
|
|
2490
|
-
return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = Ft(i[3]))) : (t =
|
|
2483
|
+
return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = Ft(i[3]))) : (t = vo(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = Ft(t.a)), t;
|
|
2491
2484
|
}
|
|
2492
2485
|
function DA(i) {
|
|
2493
2486
|
return i.charAt(0) === "r" ? wA(i) : hA(i);
|
|
@@ -2504,8 +2497,8 @@ class Ze {
|
|
|
2504
2497
|
return this._valid;
|
|
2505
2498
|
}
|
|
2506
2499
|
get rgb() {
|
|
2507
|
-
var t =
|
|
2508
|
-
return t && (t.a =
|
|
2500
|
+
var t = vo(this._rgb);
|
|
2501
|
+
return t && (t.a = vt(t.a)), t;
|
|
2509
2502
|
}
|
|
2510
2503
|
set rgb(t) {
|
|
2511
2504
|
this._rgb = Xs(t);
|
|
@@ -2620,7 +2613,7 @@ function L(i, t, e, s) {
|
|
|
2620
2613
|
for (a = Object.keys(i), o = a.length, n = 0; n < o; n++)
|
|
2621
2614
|
t.call(e, i[a[n]], a[n]);
|
|
2622
2615
|
}
|
|
2623
|
-
function
|
|
2616
|
+
function vi(i, t) {
|
|
2624
2617
|
let e, s, n, o;
|
|
2625
2618
|
if (!i || !t || i.length !== t.length)
|
|
2626
2619
|
return !1;
|
|
@@ -2725,7 +2718,7 @@ const Ue = (i) => typeof i < "u", Wt = (i) => typeof i == "function", qs = (i, t
|
|
|
2725
2718
|
function yA(i) {
|
|
2726
2719
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
2727
2720
|
}
|
|
2728
|
-
const F = Math.PI, H = 2 * F,
|
|
2721
|
+
const F = Math.PI, H = 2 * F, IA = H + F, ki = Number.POSITIVE_INFINITY, vA = F / 180, X = F / 2, qt = F / 4, _s = F * 2 / 3, Rt = Math.log10, Yt = Math.sign;
|
|
2729
2722
|
function je(i, t, e) {
|
|
2730
2723
|
return Math.abs(i - t) < e;
|
|
2731
2724
|
}
|
|
@@ -2780,7 +2773,7 @@ function os(i, t) {
|
|
|
2780
2773
|
return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2));
|
|
2781
2774
|
}
|
|
2782
2775
|
function QA(i, t) {
|
|
2783
|
-
return (i - t +
|
|
2776
|
+
return (i - t + IA) % H - F;
|
|
2784
2777
|
}
|
|
2785
2778
|
function gt(i) {
|
|
2786
2779
|
return (i % H + H) % H;
|
|
@@ -2965,7 +2958,7 @@ const Ai = (i) => i === 0 || i === 1, sn = (i, t, e) => -(Math.pow(2, 10 * (i -=
|
|
|
2965
2958
|
},
|
|
2966
2959
|
easeInOutBounce: (i) => i < 0.5 ? He.easeInBounce(i * 2) * 0.5 : He.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
|
|
2967
2960
|
};
|
|
2968
|
-
function
|
|
2961
|
+
function Is(i) {
|
|
2969
2962
|
if (i && typeof i == "object") {
|
|
2970
2963
|
const t = i.toString();
|
|
2971
2964
|
return t === "[object CanvasPattern]" || t === "[object CanvasGradient]";
|
|
@@ -2973,10 +2966,10 @@ function vs(i) {
|
|
|
2973
2966
|
return !1;
|
|
2974
2967
|
}
|
|
2975
2968
|
function on(i) {
|
|
2976
|
-
return
|
|
2969
|
+
return Is(i) ? i : new Ze(i);
|
|
2977
2970
|
}
|
|
2978
2971
|
function Zi(i) {
|
|
2979
|
-
return
|
|
2972
|
+
return Is(i) ? i : new Ze(i).saturate(0.5).darken(0.1).hexString();
|
|
2980
2973
|
}
|
|
2981
2974
|
const RA = [
|
|
2982
2975
|
"x",
|
|
@@ -3302,7 +3295,7 @@ function rs(i, t, e, s) {
|
|
|
3302
3295
|
function Ho(i, t, e, s, n) {
|
|
3303
3296
|
let o, a, r, A, l, c, h, d;
|
|
3304
3297
|
const g = t.pointStyle, u = t.rotation, f = t.radius;
|
|
3305
|
-
let p = (u || 0) *
|
|
3298
|
+
let p = (u || 0) * vA;
|
|
3306
3299
|
if (g && typeof g == "object" && (o = g.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) {
|
|
3307
3300
|
i.save(), i.translate(e, s), i.rotate(p), i.drawImage(g, -g.width / 2, -g.height / 2, g.width, g.height), i.restore();
|
|
3308
3301
|
return;
|
|
@@ -3413,14 +3406,14 @@ function il(i, t) {
|
|
|
3413
3406
|
return t * i;
|
|
3414
3407
|
}
|
|
3415
3408
|
const sl = (i) => +i || 0;
|
|
3416
|
-
function
|
|
3409
|
+
function vs(i, t) {
|
|
3417
3410
|
const e = {}, s = P(t), n = s ? Object.keys(t) : t, o = P(i) ? s ? (a) => E(i[a], i[t[a]]) : (a) => i[a] : () => i;
|
|
3418
3411
|
for (const a of n)
|
|
3419
3412
|
e[a] = sl(o(a));
|
|
3420
3413
|
return e;
|
|
3421
3414
|
}
|
|
3422
3415
|
function Fo(i) {
|
|
3423
|
-
return
|
|
3416
|
+
return vs(i, {
|
|
3424
3417
|
top: "y",
|
|
3425
3418
|
right: "x",
|
|
3426
3419
|
bottom: "y",
|
|
@@ -3428,7 +3421,7 @@ function Fo(i) {
|
|
|
3428
3421
|
});
|
|
3429
3422
|
}
|
|
3430
3423
|
function oe(i) {
|
|
3431
|
-
return
|
|
3424
|
+
return vs(i, [
|
|
3432
3425
|
"topLeft",
|
|
3433
3426
|
"topRight",
|
|
3434
3427
|
"bottomLeft",
|
|
@@ -3903,13 +3896,13 @@ function ie(i, t, e, s) {
|
|
|
3903
3896
|
y: i.y + e * (t.y - i.y)
|
|
3904
3897
|
};
|
|
3905
3898
|
}
|
|
3906
|
-
function
|
|
3899
|
+
function Il(i, t, e, s) {
|
|
3907
3900
|
return {
|
|
3908
3901
|
x: i.x + e * (t.x - i.x),
|
|
3909
3902
|
y: s === "middle" ? e < 0.5 ? i.y : t.y : s === "after" ? e < 1 ? i.y : t.y : e > 0 ? t.y : i.y
|
|
3910
3903
|
};
|
|
3911
3904
|
}
|
|
3912
|
-
function
|
|
3905
|
+
function vl(i, t, e, s) {
|
|
3913
3906
|
const n = {
|
|
3914
3907
|
x: i.cp2x,
|
|
3915
3908
|
y: i.cp2y
|
|
@@ -4010,14 +4003,14 @@ function _o(i, t, e) {
|
|
|
4010
4003
|
const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: A, normalize: l } = qo(s), { start: c, end: h, loop: d, style: g } = Ql(i, t, e), u = [];
|
|
4011
4004
|
let f = !1, p = null, w, m, b;
|
|
4012
4005
|
const D = () => A(n, b, w) && r(n, b) !== 0, M = () => r(o, w) === 0 || A(o, b, w), C = () => f || D(), y = () => !f || M();
|
|
4013
|
-
for (let
|
|
4014
|
-
m = t[
|
|
4006
|
+
for (let I = c, v = c; I <= h; ++I)
|
|
4007
|
+
m = t[I % a], !m.skip && (w = l(m[s]), w !== b && (f = A(w, n, o), p === null && C() && (p = r(w, n) === 0 ? I : v), p !== null && y() && (u.push(dn({
|
|
4015
4008
|
start: p,
|
|
4016
|
-
end:
|
|
4009
|
+
end: I,
|
|
4017
4010
|
loop: d,
|
|
4018
4011
|
count: a,
|
|
4019
4012
|
style: g
|
|
4020
|
-
})), p = null),
|
|
4013
|
+
})), p = null), v = I, b = w));
|
|
4021
4014
|
return p !== null && u.push(dn({
|
|
4022
4015
|
start: p,
|
|
4023
4016
|
end: h,
|
|
@@ -4135,7 +4128,7 @@ function Tl(i, t) {
|
|
|
4135
4128
|
if (!t)
|
|
4136
4129
|
return !1;
|
|
4137
4130
|
const e = [], s = function(n, o) {
|
|
4138
|
-
return
|
|
4131
|
+
return Is(o) ? (e.includes(o) || e.push(o), e.indexOf(o)) : o;
|
|
4139
4132
|
};
|
|
4140
4133
|
return JSON.stringify(i, s) !== JSON.stringify(t, s);
|
|
4141
4134
|
}
|
|
@@ -4513,7 +4506,7 @@ function Jl(i, t, e) {
|
|
|
4513
4506
|
type: "data"
|
|
4514
4507
|
});
|
|
4515
4508
|
}
|
|
4516
|
-
function
|
|
4509
|
+
function Ie(i, t) {
|
|
4517
4510
|
const e = i.controller.index, s = i.vScale && i.vScale.axis;
|
|
4518
4511
|
if (s) {
|
|
4519
4512
|
t = t || i._parsed;
|
|
@@ -4538,7 +4531,7 @@ class wt {
|
|
|
4538
4531
|
this.configure(), this.linkScales(), t._stacked = mn(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options");
|
|
4539
4532
|
}
|
|
4540
4533
|
updateIndex(t) {
|
|
4541
|
-
this.index !== t &&
|
|
4534
|
+
this.index !== t && Ie(this._cachedMeta), this.index = t;
|
|
4542
4535
|
}
|
|
4543
4536
|
linkScales() {
|
|
4544
4537
|
const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (h, d, g, u) => h === "x" ? d : h === "r" ? u : g, o = e.xAxisID = E(s.xAxisID, Ui(t, "x")), a = e.yAxisID = E(s.yAxisID, Ui(t, "y")), r = e.rAxisID = E(s.rAxisID, Ui(t, "r")), A = e.indexAxis, l = e.iAxisID = n(A, o, a, r), c = e.vAxisID = n(A, a, o, r);
|
|
@@ -4562,7 +4555,7 @@ class wt {
|
|
|
4562
4555
|
}
|
|
4563
4556
|
_destroy() {
|
|
4564
4557
|
const t = this._cachedMeta;
|
|
4565
|
-
this._data && en(this._data, this), t._stacked &&
|
|
4558
|
+
this._data && en(this._data, this), t._stacked && Ie(t);
|
|
4566
4559
|
}
|
|
4567
4560
|
_dataCheck() {
|
|
4568
4561
|
const t = this.getDataset(), e = t.data || (t.data = []), s = this._data;
|
|
@@ -4573,7 +4566,7 @@ class wt {
|
|
|
4573
4566
|
if (s) {
|
|
4574
4567
|
en(s, this);
|
|
4575
4568
|
const n = this._cachedMeta;
|
|
4576
|
-
|
|
4569
|
+
Ie(n), n._parsed = [];
|
|
4577
4570
|
}
|
|
4578
4571
|
e && Object.isExtensible(e) && LA(e, this), this._syncList = [], this._data = e;
|
|
4579
4572
|
}
|
|
@@ -4587,7 +4580,7 @@ class wt {
|
|
|
4587
4580
|
let n = !1;
|
|
4588
4581
|
this._dataCheck();
|
|
4589
4582
|
const o = e._stacked;
|
|
4590
|
-
e._stacked = mn(e.vScale, e), e.stack !== s.stack && (n = !0,
|
|
4583
|
+
e._stacked = mn(e.vScale, e), e.stack !== s.stack && (n = !0, Ie(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && Dn(this, e._parsed);
|
|
4591
4584
|
}
|
|
4592
4585
|
configure() {
|
|
4593
4586
|
const t = this.chart.config, e = t.datasetScopeKeys(this._type), s = t.getOptionScopes(this.getDataset(), e, !0);
|
|
@@ -4826,7 +4819,7 @@ class wt {
|
|
|
4826
4819
|
const s = this._cachedMeta;
|
|
4827
4820
|
if (this._parsing) {
|
|
4828
4821
|
const n = s._parsed.splice(t, e);
|
|
4829
|
-
s._stacked &&
|
|
4822
|
+
s._stacked && Ie(s, n);
|
|
4830
4823
|
}
|
|
4831
4824
|
s.data.splice(t, e);
|
|
4832
4825
|
}
|
|
@@ -5477,8 +5470,8 @@ class bi extends wt {
|
|
|
5477
5470
|
y.skip = !0;
|
|
5478
5471
|
continue;
|
|
5479
5472
|
}
|
|
5480
|
-
const
|
|
5481
|
-
y.skip = isNaN(k) || isNaN(Q) ||
|
|
5473
|
+
const I = this.getParsed(M), v = z(I[g]), k = y[d] = a.getPixelForValue(I[d], M), Q = y[g] = o || v ? r.getBasePixel() : r.getPixelForValue(A ? this.applyStack(r, I, A) : I[g], M);
|
|
5474
|
+
y.skip = isNaN(k) || isNaN(Q) || v, y.stop = M > 0 && Math.abs(I[d] - D[d]) > p, f && (y.parsed = I, y.raw = l.data[M]), h && (y.options = c || this.resolveDataElementOptions(M, C.active ? "active" : n)), w || this.updateElement(C, M, y, n), D = I;
|
|
5482
5475
|
}
|
|
5483
5476
|
}
|
|
5484
5477
|
getMaxOverflow() {
|
|
@@ -5739,8 +5732,8 @@ class Gi extends wt {
|
|
|
5739
5732
|
const o = n === "reset", { iScale: a, vScale: r, _stacked: A, _dataset: l } = this._cachedMeta, c = this.resolveDataElementOptions(e, n), h = this.getSharedOptions(c), d = this.includeOptions(n, h), g = a.axis, u = r.axis, { spanGaps: f, segment: p } = this.options, w = De(f) ? f : Number.POSITIVE_INFINITY, m = this.chart._animationsDisabled || o || n === "none";
|
|
5740
5733
|
let b = e > 0 && this.getParsed(e - 1);
|
|
5741
5734
|
for (let D = e; D < e + s; ++D) {
|
|
5742
|
-
const M = t[D], C = this.getParsed(D), y = m ? M : {},
|
|
5743
|
-
y.skip = isNaN(
|
|
5735
|
+
const M = t[D], C = this.getParsed(D), y = m ? M : {}, I = z(C[u]), v = y[g] = a.getPixelForValue(C[g], D), k = y[u] = o || I ? r.getBasePixel() : r.getPixelForValue(A ? this.applyStack(r, C, A) : C[u], D);
|
|
5736
|
+
y.skip = isNaN(v) || isNaN(k) || I, y.stop = D > 0 && Math.abs(C[g] - b[g]) > w, p && (y.parsed = C, y.raw = l.data[D]), d && (y.options = h || this.resolveDataElementOptions(D, M.active ? "active" : n)), m || this.updateElement(M, D, y, n), b = C;
|
|
5744
5737
|
}
|
|
5745
5738
|
this.updateSharedOptions(h, n, c);
|
|
5746
5739
|
}
|
|
@@ -5998,7 +5991,7 @@ const sa = [
|
|
|
5998
5991
|
"right",
|
|
5999
5992
|
"bottom"
|
|
6000
5993
|
];
|
|
6001
|
-
function
|
|
5994
|
+
function ve(i, t) {
|
|
6002
5995
|
return i.filter((e) => e.pos === t);
|
|
6003
5996
|
}
|
|
6004
5997
|
function Cn(i, t) {
|
|
@@ -6052,12 +6045,12 @@ function mc(i, t) {
|
|
|
6052
6045
|
return e;
|
|
6053
6046
|
}
|
|
6054
6047
|
function Mc(i) {
|
|
6055
|
-
const t = pc(i), e = Ee(t.filter((l) => l.box.fullSize), !0), s = Ee(
|
|
6048
|
+
const t = pc(i), e = Ee(t.filter((l) => l.box.fullSize), !0), s = Ee(ve(t, "left"), !0), n = Ee(ve(t, "right")), o = Ee(ve(t, "top"), !0), a = Ee(ve(t, "bottom")), r = Cn(t, "x"), A = Cn(t, "y");
|
|
6056
6049
|
return {
|
|
6057
6050
|
fullSize: e,
|
|
6058
6051
|
leftAndTop: s.concat(o),
|
|
6059
6052
|
rightAndBottom: n.concat(A).concat(a).concat(r),
|
|
6060
|
-
chartArea:
|
|
6053
|
+
chartArea: ve(t, "chartArea"),
|
|
6061
6054
|
vertical: s.concat(n).concat(A),
|
|
6062
6055
|
horizontal: o.concat(a).concat(r)
|
|
6063
6056
|
};
|
|
@@ -6130,7 +6123,7 @@ function ze(i, t, e, s) {
|
|
|
6130
6123
|
function hi(i, t, e, s, n) {
|
|
6131
6124
|
i.top = e, i.left = t, i.right = t + s, i.bottom = e + n, i.width = s, i.height = n;
|
|
6132
6125
|
}
|
|
6133
|
-
function
|
|
6126
|
+
function In(i, t, e, s) {
|
|
6134
6127
|
const n = e.padding;
|
|
6135
6128
|
let { x: o, y: a } = t;
|
|
6136
6129
|
for (const r of i) {
|
|
@@ -6193,7 +6186,7 @@ var ot = {
|
|
|
6193
6186
|
x: n.left,
|
|
6194
6187
|
y: n.top
|
|
6195
6188
|
}, n), u = mc(A.concat(l), h);
|
|
6196
|
-
ze(r.fullSize, g, h, u), ze(A, g, h, u), ze(l, g, h, u) && ze(A, g, h, u), bc(g),
|
|
6189
|
+
ze(r.fullSize, g, h, u), ze(A, g, h, u), ze(l, g, h, u) && ze(A, g, h, u), bc(g), In(r.leftAndTop, g, h, u), g.x += g.w, g.y += g.h, In(r.rightAndBottom, g, h, u), i.chartArea = {
|
|
6197
6190
|
left: g.left,
|
|
6198
6191
|
top: g.top,
|
|
6199
6192
|
right: g.left + g.w,
|
|
@@ -6254,7 +6247,7 @@ const Yi = "$chartjs", Yc = {
|
|
|
6254
6247
|
pointerup: "mouseup",
|
|
6255
6248
|
pointerleave: "mouseout",
|
|
6256
6249
|
pointerout: "mouseout"
|
|
6257
|
-
},
|
|
6250
|
+
}, vn = (i) => i === null || i === "";
|
|
6258
6251
|
function xc(i, t) {
|
|
6259
6252
|
const e = i.style, s = i.getAttribute("height"), n = i.getAttribute("width");
|
|
6260
6253
|
if (i[Yi] = {
|
|
@@ -6267,11 +6260,11 @@ function xc(i, t) {
|
|
|
6267
6260
|
width: e.width
|
|
6268
6261
|
}
|
|
6269
6262
|
}
|
|
6270
|
-
}, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box",
|
|
6263
|
+
}, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box", vn(n)) {
|
|
6271
6264
|
const o = hn(i, "width");
|
|
6272
6265
|
o !== void 0 && (i.width = o);
|
|
6273
6266
|
}
|
|
6274
|
-
if (
|
|
6267
|
+
if (vn(s))
|
|
6275
6268
|
if (i.style.height === "")
|
|
6276
6269
|
i.height = i.width / (t || 2);
|
|
6277
6270
|
else {
|
|
@@ -6289,7 +6282,7 @@ function Cc(i, t, e) {
|
|
|
6289
6282
|
function yc(i, t, e) {
|
|
6290
6283
|
i && i.canvas && i.canvas.removeEventListener(t, e, aa);
|
|
6291
6284
|
}
|
|
6292
|
-
function
|
|
6285
|
+
function Ic(i, t) {
|
|
6293
6286
|
const e = Yc[i.type] || i.type, { x: s, y: n } = ee(i, t);
|
|
6294
6287
|
return {
|
|
6295
6288
|
type: e,
|
|
@@ -6304,7 +6297,7 @@ function Oi(i, t) {
|
|
|
6304
6297
|
if (e === t || e.contains(t))
|
|
6305
6298
|
return !0;
|
|
6306
6299
|
}
|
|
6307
|
-
function
|
|
6300
|
+
function vc(i, t, e) {
|
|
6308
6301
|
const s = i.canvas, n = new MutationObserver((o) => {
|
|
6309
6302
|
let a = !1;
|
|
6310
6303
|
for (const r of o)
|
|
@@ -6360,7 +6353,7 @@ function $i(i, t, e) {
|
|
|
6360
6353
|
}
|
|
6361
6354
|
function Oc(i, t, e) {
|
|
6362
6355
|
const s = i.canvas, n = To((o) => {
|
|
6363
|
-
i.ctx !== null && e(
|
|
6356
|
+
i.ctx !== null && e(Ic(o, i));
|
|
6364
6357
|
}, i);
|
|
6365
6358
|
return Cc(s, t, n), n;
|
|
6366
6359
|
}
|
|
@@ -6389,7 +6382,7 @@ class zc extends oa {
|
|
|
6389
6382
|
addEventListener(t, e, s) {
|
|
6390
6383
|
this.removeEventListener(t, e);
|
|
6391
6384
|
const n = t.$proxies || (t.$proxies = {}), a = {
|
|
6392
|
-
attach:
|
|
6385
|
+
attach: vc,
|
|
6393
6386
|
detach: Ec,
|
|
6394
6387
|
resize: Pc
|
|
6395
6388
|
}[e] || Oc;
|
|
@@ -6833,15 +6826,15 @@ class ce extends Mt {
|
|
|
6833
6826
|
a.push(b), r.push(D), l = Math.max(b, l), c = Math.max(D, c);
|
|
6834
6827
|
}
|
|
6835
6828
|
Wc(o, e);
|
|
6836
|
-
const C = a.indexOf(l), y = r.indexOf(c),
|
|
6837
|
-
width: a[
|
|
6838
|
-
height: r[
|
|
6829
|
+
const C = a.indexOf(l), y = r.indexOf(c), I = (v) => ({
|
|
6830
|
+
width: a[v] || 0,
|
|
6831
|
+
height: r[v] || 0
|
|
6839
6832
|
});
|
|
6840
6833
|
return {
|
|
6841
|
-
first:
|
|
6842
|
-
last:
|
|
6843
|
-
widest:
|
|
6844
|
-
highest:
|
|
6834
|
+
first: I(0),
|
|
6835
|
+
last: I(e - 1),
|
|
6836
|
+
widest: I(C),
|
|
6837
|
+
highest: I(y),
|
|
6845
6838
|
widths: a,
|
|
6846
6839
|
heights: r
|
|
6847
6840
|
};
|
|
@@ -6894,15 +6887,15 @@ class ce extends Mt {
|
|
|
6894
6887
|
const e = this.axis, s = this.chart, n = this.options, { grid: o, position: a, border: r } = n, A = o.offset, l = this.isHorizontal(), h = this.ticks.length + (A ? 1 : 0), d = ke(o), g = [], u = r.setContext(this.getContext()), f = u.display ? u.width : 0, p = f / 2, w = function(N) {
|
|
6895
6888
|
return _t(s, N, f);
|
|
6896
6889
|
};
|
|
6897
|
-
let m, b, D, M, C, y,
|
|
6890
|
+
let m, b, D, M, C, y, I, v, k, Q, O, it;
|
|
6898
6891
|
if (a === "top")
|
|
6899
|
-
m = w(this.bottom), y = this.bottom - d,
|
|
6892
|
+
m = w(this.bottom), y = this.bottom - d, v = m - p, Q = w(t.top) + p, it = t.bottom;
|
|
6900
6893
|
else if (a === "bottom")
|
|
6901
|
-
m = w(this.top), Q = t.top, it = w(t.bottom) - p, y = m + p,
|
|
6894
|
+
m = w(this.top), Q = t.top, it = w(t.bottom) - p, y = m + p, v = this.top + d;
|
|
6902
6895
|
else if (a === "left")
|
|
6903
|
-
m = w(this.right), C = this.right - d,
|
|
6896
|
+
m = w(this.right), C = this.right - d, I = m - p, k = w(t.left) + p, O = t.right;
|
|
6904
6897
|
else if (a === "right")
|
|
6905
|
-
m = w(this.left), k = t.left, O = w(t.right) - p, C = m + p,
|
|
6898
|
+
m = w(this.left), k = t.left, O = w(t.right) - p, C = m + p, I = this.left + d;
|
|
6906
6899
|
else if (e === "x") {
|
|
6907
6900
|
if (a === "center")
|
|
6908
6901
|
m = w((t.top + t.bottom) / 2 + 0.5);
|
|
@@ -6910,7 +6903,7 @@ class ce extends Mt {
|
|
|
6910
6903
|
const N = Object.keys(a)[0], U = a[N];
|
|
6911
6904
|
m = w(this.chart.scales[N].getPixelForValue(U));
|
|
6912
6905
|
}
|
|
6913
|
-
Q = t.top, it = t.bottom, y = m + p,
|
|
6906
|
+
Q = t.top, it = t.bottom, y = m + p, v = y + d;
|
|
6914
6907
|
} else if (e === "y") {
|
|
6915
6908
|
if (a === "center")
|
|
6916
6909
|
m = w((t.left + t.right) / 2);
|
|
@@ -6918,16 +6911,16 @@ class ce extends Mt {
|
|
|
6918
6911
|
const N = Object.keys(a)[0], U = a[N];
|
|
6919
6912
|
m = w(this.chart.scales[N].getPixelForValue(U));
|
|
6920
6913
|
}
|
|
6921
|
-
C = m - p,
|
|
6914
|
+
C = m - p, I = C - d, k = t.left, O = t.right;
|
|
6922
6915
|
}
|
|
6923
6916
|
const ht = E(n.ticks.maxTicksLimit, h), T = Math.max(1, Math.ceil(h / ht));
|
|
6924
6917
|
for (b = 0; b < h; b += T) {
|
|
6925
6918
|
const N = this.getContext(b), U = o.setContext(N), ft = r.setContext(N), st = U.lineWidth, ge = U.color, si = ft.dash || [], ue = ft.dashOffset, Ce = U.tickWidth, Xt = U.tickColor, ye = U.tickBorderDash || [], Jt = U.tickBorderDashOffset;
|
|
6926
|
-
D = Vc(this, b, A), D !== void 0 && (M = _t(s, D, st), l ? C =
|
|
6919
|
+
D = Vc(this, b, A), D !== void 0 && (M = _t(s, D, st), l ? C = I = k = O = M : y = v = Q = it = M, g.push({
|
|
6927
6920
|
tx1: C,
|
|
6928
6921
|
ty1: y,
|
|
6929
|
-
tx2:
|
|
6930
|
-
ty2:
|
|
6922
|
+
tx2: I,
|
|
6923
|
+
ty2: v,
|
|
6931
6924
|
x1: k,
|
|
6932
6925
|
y1: Q,
|
|
6933
6926
|
x2: O,
|
|
@@ -6946,7 +6939,7 @@ class ce extends Mt {
|
|
|
6946
6939
|
}
|
|
6947
6940
|
_computeLabelItems(t) {
|
|
6948
6941
|
const e = this.axis, s = this.options, { position: n, ticks: o } = s, a = this.isHorizontal(), r = this.ticks, { align: A, crossAlign: l, padding: c, mirror: h } = o, d = ke(s.grid), g = d + c, u = h ? -c : g, f = -pt(this.labelRotation), p = [];
|
|
6949
|
-
let w, m, b, D, M, C, y,
|
|
6942
|
+
let w, m, b, D, M, C, y, I, v, k, Q, O, it = "middle";
|
|
6950
6943
|
if (n === "top")
|
|
6951
6944
|
C = this.bottom - u, y = this._getXAxisLabelAlignment();
|
|
6952
6945
|
else if (n === "bottom")
|
|
@@ -6979,10 +6972,10 @@ class ce extends Mt {
|
|
|
6979
6972
|
for (w = 0, m = r.length; w < m; ++w) {
|
|
6980
6973
|
b = r[w], D = b.label;
|
|
6981
6974
|
const T = o.setContext(this.getContext(w));
|
|
6982
|
-
|
|
6975
|
+
I = this.getPixelForTick(w) + o.labelOffset, v = this._resolveTickFontOptions(w), k = v.lineHeight, Q = j(D) ? D.length : 1;
|
|
6983
6976
|
const N = Q / 2, U = T.color, ft = T.textStrokeColor, st = T.textStrokeWidth;
|
|
6984
6977
|
let ge = y;
|
|
6985
|
-
a ? (M =
|
|
6978
|
+
a ? (M = I, y === "inner" && (w === m - 1 ? ge = this.options.reverse ? "left" : "right" : w === 0 ? ge = this.options.reverse ? "right" : "left" : ge = "center"), n === "top" ? l === "near" || f !== 0 ? O = -Q * k + k / 2 : l === "center" ? O = -ht.highest.height / 2 - N * k + k : O = -ht.highest.height + k / 2 : l === "near" || f !== 0 ? O = k / 2 : l === "center" ? O = ht.highest.height / 2 - N * k : O = ht.highest.height - Q * k, h && (O *= -1), f !== 0 && !T.showLabelBackdrop && (M += k / 2 * Math.sin(f))) : (C = I, O = (1 - Q) * k / 2);
|
|
6986
6979
|
let si;
|
|
6987
6980
|
if (T.showLabelBackdrop) {
|
|
6988
6981
|
const ue = at(T.backdropPadding), Ce = ht.heights[w], Xt = ht.widths[w];
|
|
@@ -7016,7 +7009,7 @@ class ce extends Mt {
|
|
|
7016
7009
|
}
|
|
7017
7010
|
p.push({
|
|
7018
7011
|
label: D,
|
|
7019
|
-
font:
|
|
7012
|
+
font: v,
|
|
7020
7013
|
textOffset: O,
|
|
7021
7014
|
options: {
|
|
7022
7015
|
rotation: f,
|
|
@@ -8147,7 +8140,7 @@ class Et {
|
|
|
8147
8140
|
index: a
|
|
8148
8141
|
};
|
|
8149
8142
|
});
|
|
8150
|
-
!
|
|
8143
|
+
!vi(s, e) && (this._active = s, this._lastEvent = null, this._updateHoverStyles(s, e));
|
|
8151
8144
|
}
|
|
8152
8145
|
notifyPlugins(t, e, s) {
|
|
8153
8146
|
return this._plugins.notify(this, t, e, s);
|
|
@@ -8182,7 +8175,7 @@ class Et {
|
|
|
8182
8175
|
r,
|
|
8183
8176
|
this
|
|
8184
8177
|
], this));
|
|
8185
|
-
const c = !
|
|
8178
|
+
const c = !vi(r, n);
|
|
8186
8179
|
return (c || e) && (this._active = r, this._updateHoverStyles(r, n, e)), this._lastEvent = l, c;
|
|
8187
8180
|
}
|
|
8188
8181
|
_getActiveElements(t, e, s, n) {
|
|
@@ -8204,7 +8197,7 @@ function Dh(i, t, e) {
|
|
|
8204
8197
|
i.beginPath(), i.arc(o, a, r, s - l, e + l), A > n ? (l = n / A, i.arc(o, a, A, e + l, s - l, !0)) : i.arc(o, a, n, e + X, s - X), i.closePath(), i.clip();
|
|
8205
8198
|
}
|
|
8206
8199
|
function bh(i) {
|
|
8207
|
-
return
|
|
8200
|
+
return vs(i, [
|
|
8208
8201
|
"outerStart",
|
|
8209
8202
|
"outerEnd",
|
|
8210
8203
|
"innerStart",
|
|
@@ -8237,11 +8230,11 @@ function zi(i, t, e, s, n, o) {
|
|
|
8237
8230
|
const T = c > 0 ? c - s : 0, N = h > 0 ? h - s : 0, U = (T + N) / 2, ft = U !== 0 ? u * U / (U + s) : u;
|
|
8238
8231
|
g = (u - ft) / 2;
|
|
8239
8232
|
}
|
|
8240
|
-
const f = Math.max(1e-3, u * h - e / F) / h, p = (u - f) / 2, w = A + p + g, m = n - p - g, { outerStart: b, outerEnd: D, innerStart: M, innerEnd: C } = Bh(t, d, h, m - w), y = h - b,
|
|
8233
|
+
const f = Math.max(1e-3, u * h - e / F) / h, p = (u - f) / 2, w = A + p + g, m = n - p - g, { outerStart: b, outerEnd: D, innerStart: M, innerEnd: C } = Bh(t, d, h, m - w), y = h - b, I = h - D, v = w + b / y, k = m - D / I, Q = d + M, O = d + C, it = w + M / Q, ht = m - C / O;
|
|
8241
8234
|
if (i.beginPath(), o) {
|
|
8242
|
-
const T = (
|
|
8243
|
-
if (i.arc(a, r, h,
|
|
8244
|
-
const st = pe(
|
|
8235
|
+
const T = (v + k) / 2;
|
|
8236
|
+
if (i.arc(a, r, h, v, T), i.arc(a, r, h, T, k), D > 0) {
|
|
8237
|
+
const st = pe(I, k, a, r);
|
|
8245
8238
|
i.arc(st.x, st.y, D, k, m + X);
|
|
8246
8239
|
}
|
|
8247
8240
|
const N = pe(O, m, a, r);
|
|
@@ -8256,12 +8249,12 @@ function zi(i, t, e, s, n, o) {
|
|
|
8256
8249
|
}
|
|
8257
8250
|
const ft = pe(y, w, a, r);
|
|
8258
8251
|
if (i.lineTo(ft.x, ft.y), b > 0) {
|
|
8259
|
-
const st = pe(y,
|
|
8260
|
-
i.arc(st.x, st.y, b, w - X,
|
|
8252
|
+
const st = pe(y, v, a, r);
|
|
8253
|
+
i.arc(st.x, st.y, b, w - X, v);
|
|
8261
8254
|
}
|
|
8262
8255
|
} else {
|
|
8263
8256
|
i.moveTo(a, r);
|
|
8264
|
-
const T = Math.cos(
|
|
8257
|
+
const T = Math.cos(v) * h + a, N = Math.sin(v) * h + r;
|
|
8265
8258
|
i.lineTo(T, N);
|
|
8266
8259
|
const U = Math.cos(k) * h + a, ft = Math.sin(k) * h + r;
|
|
8267
8260
|
i.lineTo(U, ft);
|
|
@@ -8392,7 +8385,7 @@ function yh(i, t, e, s) {
|
|
|
8392
8385
|
u = n[(r + (d ? l - g : g)) % a], !u.skip && (h ? (i.moveTo(u.x, u.y), h = !1) : c(i, f, u, d, o.stepped), f = u);
|
|
8393
8386
|
return A && (u = n[(r + (d ? l : 0)) % a], c(i, f, u, d, o.stepped)), !!A;
|
|
8394
8387
|
}
|
|
8395
|
-
function
|
|
8388
|
+
function Ih(i, t, e, s) {
|
|
8396
8389
|
const n = t.points, { count: o, start: a, ilen: r } = ga(n, e, s), { move: A = !0, reverse: l } = s || {};
|
|
8397
8390
|
let c = 0, h = 0, d, g, u, f, p, w;
|
|
8398
8391
|
const m = (D) => (a + (l ? r - D : D)) % o, b = () => {
|
|
@@ -8408,10 +8401,10 @@ function vh(i, t, e, s) {
|
|
|
8408
8401
|
}
|
|
8409
8402
|
function hs(i) {
|
|
8410
8403
|
const t = i.options, e = t.borderDash && t.borderDash.length;
|
|
8411
|
-
return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ?
|
|
8404
|
+
return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? Ih : yh;
|
|
8412
8405
|
}
|
|
8413
|
-
function
|
|
8414
|
-
return i.stepped ?
|
|
8406
|
+
function vh(i) {
|
|
8407
|
+
return i.stepped ? Il : i.tension || i.cubicInterpolationMode === "monotone" ? vl : ie;
|
|
8415
8408
|
}
|
|
8416
8409
|
function Eh(i, t, e, s) {
|
|
8417
8410
|
let n = t._path;
|
|
@@ -8465,7 +8458,7 @@ class jt extends Mt {
|
|
|
8465
8458
|
});
|
|
8466
8459
|
if (!a.length)
|
|
8467
8460
|
return;
|
|
8468
|
-
const r = [], A =
|
|
8461
|
+
const r = [], A = vh(s);
|
|
8469
8462
|
let l, c;
|
|
8470
8463
|
for (l = 0, c = a.length; l < c; ++l) {
|
|
8471
8464
|
const { start: h, end: d } = a[l], g = o[h], u = o[d];
|
|
@@ -8792,9 +8785,9 @@ function Zh(i, t, e, s, n) {
|
|
|
8792
8785
|
for (m = b; m < D; m++)
|
|
8793
8786
|
p += i[m].x, w += i[m].y;
|
|
8794
8787
|
p /= M, w /= M;
|
|
8795
|
-
const C = Math.floor(h * r) + 1 + t, y = Math.min(Math.floor((h + 1) * r) + 1, e) + t, { x:
|
|
8788
|
+
const C = Math.floor(h * r) + 1 + t, y = Math.min(Math.floor((h + 1) * r) + 1, e) + t, { x: I, y: v } = i[c];
|
|
8796
8789
|
for (g = u = -1, m = C; m < y; m++)
|
|
8797
|
-
u = 0.5 * Math.abs((
|
|
8790
|
+
u = 0.5 * Math.abs((I - p) * (i[m].y - v) - (I - i[m].x) * (w - v)), u > g && (g = u, d = i[m], f = m);
|
|
8798
8791
|
a[A++] = d, c = f;
|
|
8799
8792
|
}
|
|
8800
8793
|
return a[A++] = i[l], a;
|
|
@@ -8810,12 +8803,12 @@ function Kh(i, t, e, s) {
|
|
|
8810
8803
|
else {
|
|
8811
8804
|
const C = a - 1;
|
|
8812
8805
|
if (!z(h) && !z(d)) {
|
|
8813
|
-
const y = Math.min(h, d),
|
|
8806
|
+
const y = Math.min(h, d), I = Math.max(h, d);
|
|
8814
8807
|
y !== g && y !== C && p.push({
|
|
8815
8808
|
...i[y],
|
|
8816
8809
|
x: n
|
|
8817
|
-
}),
|
|
8818
|
-
...i[
|
|
8810
|
+
}), I !== g && I !== C && p.push({
|
|
8811
|
+
...i[I],
|
|
8819
8812
|
x: n
|
|
8820
8813
|
});
|
|
8821
8814
|
}
|
|
@@ -9371,34 +9364,34 @@ class to extends Mt {
|
|
|
9371
9364
|
const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: o, labels: a } = t, r = Z.color, A = we(t.rtl, this.left, this.width), l = q(a.font), { padding: c } = a, h = l.size, d = h / 2;
|
|
9372
9365
|
let g;
|
|
9373
9366
|
this.drawTitle(), n.textAlign = A.textAlign("left"), n.textBaseline = "middle", n.lineWidth = 0.5, n.font = l.string;
|
|
9374
|
-
const { boxWidth: u, boxHeight: f, itemHeight: p } = $n(a, h), w = function(C, y,
|
|
9367
|
+
const { boxWidth: u, boxHeight: f, itemHeight: p } = $n(a, h), w = function(C, y, I) {
|
|
9375
9368
|
if (isNaN(u) || u <= 0 || isNaN(f) || f < 0)
|
|
9376
9369
|
return;
|
|
9377
9370
|
n.save();
|
|
9378
|
-
const
|
|
9379
|
-
if (n.fillStyle = E(
|
|
9371
|
+
const v = E(I.lineWidth, 1);
|
|
9372
|
+
if (n.fillStyle = E(I.fillStyle, r), n.lineCap = E(I.lineCap, "butt"), n.lineDashOffset = E(I.lineDashOffset, 0), n.lineJoin = E(I.lineJoin, "miter"), n.lineWidth = v, n.strokeStyle = E(I.strokeStyle, r), n.setLineDash(E(I.lineDash, [])), a.usePointStyle) {
|
|
9380
9373
|
const k = {
|
|
9381
9374
|
radius: f * Math.SQRT2 / 2,
|
|
9382
|
-
pointStyle:
|
|
9383
|
-
rotation:
|
|
9384
|
-
borderWidth:
|
|
9375
|
+
pointStyle: I.pointStyle,
|
|
9376
|
+
rotation: I.rotation,
|
|
9377
|
+
borderWidth: v
|
|
9385
9378
|
}, Q = A.xPlus(C, u / 2), O = y + d;
|
|
9386
9379
|
Ho(n, k, Q, O, a.pointStyleWidth && u);
|
|
9387
9380
|
} else {
|
|
9388
|
-
const k = y + Math.max((h - f) / 2, 0), Q = A.leftForLtr(C, u), O = oe(
|
|
9381
|
+
const k = y + Math.max((h - f) / 2, 0), Q = A.leftForLtr(C, u), O = oe(I.borderRadius);
|
|
9389
9382
|
n.beginPath(), Object.values(O).some((it) => it !== 0) ? Je(n, {
|
|
9390
9383
|
x: Q,
|
|
9391
9384
|
y: k,
|
|
9392
9385
|
w: u,
|
|
9393
9386
|
h: f,
|
|
9394
9387
|
radius: O
|
|
9395
|
-
}) : n.rect(Q, k, u, f), n.fill(),
|
|
9388
|
+
}) : n.rect(Q, k, u, f), n.fill(), v !== 0 && n.stroke();
|
|
9396
9389
|
}
|
|
9397
9390
|
n.restore();
|
|
9398
|
-
}, m = function(C, y,
|
|
9399
|
-
Ae(n,
|
|
9400
|
-
strikethrough:
|
|
9401
|
-
textAlign: A.textAlign(
|
|
9391
|
+
}, m = function(C, y, I) {
|
|
9392
|
+
Ae(n, I.text, C, y + p / 2, l, {
|
|
9393
|
+
strikethrough: I.hidden,
|
|
9394
|
+
textAlign: A.textAlign(I.textAlign)
|
|
9402
9395
|
});
|
|
9403
9396
|
}, b = this.isHorizontal(), D = this._computeTitleHeight();
|
|
9404
9397
|
b ? g = {
|
|
@@ -9413,11 +9406,11 @@ class to extends Mt {
|
|
|
9413
9406
|
const M = p + c;
|
|
9414
9407
|
this.legendItems.forEach((C, y) => {
|
|
9415
9408
|
n.strokeStyle = C.fontColor, n.fillStyle = C.fontColor;
|
|
9416
|
-
const
|
|
9409
|
+
const I = n.measureText(C.text).width, v = A.textAlign(C.textAlign || (C.textAlign = a.textAlign)), k = u + d + I;
|
|
9417
9410
|
let Q = g.x, O = g.y;
|
|
9418
9411
|
A.setWidth(this.width), b ? y > 0 && Q + k + c > this.right && (O = g.y += M, g.line++, Q = g.x = nt(o, this.left + c, this.right - s[g.line])) : y > 0 && O + M > this.bottom && (Q = g.x = Q + e[g.line].width + c, g.line++, O = g.y = nt(o, this.top + D + c, this.bottom - e[g.line].height));
|
|
9419
9412
|
const it = A.x(Q);
|
|
9420
|
-
if (w(it, O, C), Q = SA(
|
|
9413
|
+
if (w(it, O, C), Q = SA(v, Q + u + d, b ? Q + k : this.right, t.rtl), m(A.x(Q), O, C), b)
|
|
9421
9414
|
g.x += k + c;
|
|
9422
9415
|
else if (typeof C.text != "string") {
|
|
9423
9416
|
const ht = l.lineHeight;
|
|
@@ -9755,7 +9748,7 @@ const Te = {
|
|
|
9755
9748
|
function Bt(i, t) {
|
|
9756
9749
|
return t && (j(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
|
|
9757
9750
|
}
|
|
9758
|
-
function
|
|
9751
|
+
function It(i) {
|
|
9759
9752
|
return (typeof i == "string" || i instanceof String) && i.indexOf(`
|
|
9760
9753
|
`) > -1 ? i.split(`
|
|
9761
9754
|
`) : i;
|
|
@@ -9802,7 +9795,7 @@ function yd(i, t, e, s) {
|
|
|
9802
9795
|
if (i === "left" && n + o + a > t.width || i === "right" && n - o - a < 0)
|
|
9803
9796
|
return !0;
|
|
9804
9797
|
}
|
|
9805
|
-
function
|
|
9798
|
+
function Id(i, t, e, s) {
|
|
9806
9799
|
const { x: n, width: o } = e, { width: a, chartArea: { left: r, right: A } } = i;
|
|
9807
9800
|
let l = "center";
|
|
9808
9801
|
return s === "center" ? l = n <= (r + A) / 2 ? "left" : "right" : n <= o / 2 ? l = "left" : n >= a - o / 2 && (l = "right"), yd(l, i, t, e) && (l = "center"), l;
|
|
@@ -9810,11 +9803,11 @@ function vd(i, t, e, s) {
|
|
|
9810
9803
|
function io(i, t, e) {
|
|
9811
9804
|
const s = e.yAlign || t.yAlign || Cd(i, e);
|
|
9812
9805
|
return {
|
|
9813
|
-
xAlign: e.xAlign || t.xAlign ||
|
|
9806
|
+
xAlign: e.xAlign || t.xAlign || Id(i, t, e, s),
|
|
9814
9807
|
yAlign: s
|
|
9815
9808
|
};
|
|
9816
9809
|
}
|
|
9817
|
-
function
|
|
9810
|
+
function vd(i, t) {
|
|
9818
9811
|
let { x: e, width: s } = i;
|
|
9819
9812
|
return t === "right" ? e -= s : t === "center" && (e -= s / 2), e;
|
|
9820
9813
|
}
|
|
@@ -9824,7 +9817,7 @@ function Ed(i, t, e) {
|
|
|
9824
9817
|
}
|
|
9825
9818
|
function so(i, t, e, s) {
|
|
9826
9819
|
const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: A } = e, l = n + o, { topLeft: c, topRight: h, bottomLeft: d, bottomRight: g } = oe(a);
|
|
9827
|
-
let u =
|
|
9820
|
+
let u = vd(t, r);
|
|
9828
9821
|
const f = Ed(t, A, l);
|
|
9829
9822
|
return A === "center" ? r === "left" ? u += l : r === "right" && (u -= l) : r === "left" ? u -= Math.max(c, d) + n : r === "right" && (u += Math.max(h, g) + n), {
|
|
9830
9823
|
x: $(u, 0, s.width - t.width),
|
|
@@ -9836,7 +9829,7 @@ function wi(i, t, e) {
|
|
|
9836
9829
|
return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - s.right : i.x + s.left;
|
|
9837
9830
|
}
|
|
9838
9831
|
function no(i) {
|
|
9839
|
-
return Bt([],
|
|
9832
|
+
return Bt([], It(i));
|
|
9840
9833
|
}
|
|
9841
9834
|
function kd(i, t, e) {
|
|
9842
9835
|
return Kt(i, {
|
|
@@ -9925,7 +9918,7 @@ class us extends Mt {
|
|
|
9925
9918
|
getTitle(t, e) {
|
|
9926
9919
|
const { callbacks: s } = e, n = At(s, "beforeTitle", this, t), o = At(s, "title", this, t), a = At(s, "afterTitle", this, t);
|
|
9927
9920
|
let r = [];
|
|
9928
|
-
return r = Bt(r,
|
|
9921
|
+
return r = Bt(r, It(n)), r = Bt(r, It(o)), r = Bt(r, It(a)), r;
|
|
9929
9922
|
}
|
|
9930
9923
|
getBeforeBody(t, e) {
|
|
9931
9924
|
return no(At(e.callbacks, "beforeBody", this, t));
|
|
@@ -9938,7 +9931,7 @@ class us extends Mt {
|
|
|
9938
9931
|
lines: [],
|
|
9939
9932
|
after: []
|
|
9940
9933
|
}, r = oo(s, o);
|
|
9941
|
-
Bt(a.before,
|
|
9934
|
+
Bt(a.before, It(At(r, "beforeLabel", this, o))), Bt(a.lines, At(r, "label", this, o)), Bt(a.after, It(At(r, "afterLabel", this, o))), n.push(a);
|
|
9942
9935
|
}), n;
|
|
9943
9936
|
}
|
|
9944
9937
|
getAfterBody(t, e) {
|
|
@@ -9947,7 +9940,7 @@ class us extends Mt {
|
|
|
9947
9940
|
getFooter(t, e) {
|
|
9948
9941
|
const { callbacks: s } = e, n = At(s, "beforeFooter", this, t), o = At(s, "footer", this, t), a = At(s, "afterFooter", this, t);
|
|
9949
9942
|
let r = [];
|
|
9950
|
-
return r = Bt(r,
|
|
9943
|
+
return r = Bt(r, It(n)), r = Bt(r, It(o)), r = Bt(r, It(a)), r;
|
|
9951
9944
|
}
|
|
9952
9945
|
_createItems(t) {
|
|
9953
9946
|
const e = this._active, s = this.chart.data, n = [], o = [], a = [];
|
|
@@ -10043,8 +10036,8 @@ class us extends Mt {
|
|
|
10043
10036
|
drawBody(t, e, s) {
|
|
10044
10037
|
const { body: n } = this, { bodySpacing: o, bodyAlign: a, displayColors: r, boxHeight: A, boxWidth: l, boxPadding: c } = s, h = q(s.bodyFont);
|
|
10045
10038
|
let d = h.lineHeight, g = 0;
|
|
10046
|
-
const u = we(s.rtl, this.x, this.width), f = function(
|
|
10047
|
-
e.fillText(
|
|
10039
|
+
const u = we(s.rtl, this.x, this.width), f = function(I) {
|
|
10040
|
+
e.fillText(I, u.x(t.x + g), t.y + d / 2), t.y += d + o;
|
|
10048
10041
|
}, p = u.textAlign(a);
|
|
10049
10042
|
let w, m, b, D, M, C, y;
|
|
10050
10043
|
for (e.textAlign = a, e.textBaseline = "middle", e.font = h.string, t.x = wi(this, p, s), e.fillStyle = s.bodyColor, L(this.beforeBody, f), g = r && p !== "right" ? a === "center" ? l / 2 + c : l + 2 + c : 0, D = 0, C = n.length; D < C; ++D) {
|
|
@@ -10110,14 +10103,14 @@ class us extends Mt {
|
|
|
10110
10103
|
element: l.data[A],
|
|
10111
10104
|
index: A
|
|
10112
10105
|
};
|
|
10113
|
-
}), o = !
|
|
10106
|
+
}), o = !vi(s, n), a = this._positionChanged(n, e);
|
|
10114
10107
|
(o || a) && (this._active = n, this._eventPosition = e, this._ignoreReplayEvents = !0, this.update(!0));
|
|
10115
10108
|
}
|
|
10116
10109
|
handleEvent(t, e, s = !0) {
|
|
10117
10110
|
if (e && this._ignoreReplayEvents)
|
|
10118
10111
|
return !1;
|
|
10119
10112
|
this._ignoreReplayEvents = !1;
|
|
10120
|
-
const n = this.options, o = this._active || [], a = this._getActiveElements(t, o, e, s), r = this._positionChanged(a, t), A = e || !
|
|
10113
|
+
const n = this.options, o = this._active || [], a = this._getActiveElements(t, o, e, s), r = this._positionChanged(a, t), A = e || !vi(a, o) || r;
|
|
10121
10114
|
return A && (this._active = a, (n.enabled || n.external) && (this._eventPosition = {
|
|
10122
10115
|
x: t.x,
|
|
10123
10116
|
y: t.y
|
|
@@ -10341,7 +10334,7 @@ Y(fs, "id", "category"), Y(fs, "defaults", {
|
|
|
10341
10334
|
});
|
|
10342
10335
|
function Td(i, t) {
|
|
10343
10336
|
const e = [], { bounds: n, step: o, min: a, max: r, precision: A, count: l, maxTicks: c, maxDigits: h, includeBounds: d } = i, g = o || 1, u = c - 1, { min: f, max: p } = t, w = !z(a), m = !z(r), b = !z(l), D = (p - f) / (h + 1);
|
|
10344
|
-
let M = $s((p - f) / u / g) * g, C, y,
|
|
10337
|
+
let M = $s((p - f) / u / g) * g, C, y, I, v;
|
|
10345
10338
|
if (M < 1e-14 && !w && !m)
|
|
10346
10339
|
return [
|
|
10347
10340
|
{
|
|
@@ -10351,13 +10344,13 @@ function Td(i, t) {
|
|
|
10351
10344
|
value: p
|
|
10352
10345
|
}
|
|
10353
10346
|
];
|
|
10354
|
-
|
|
10347
|
+
v = Math.ceil(p / M) - Math.floor(f / M), v > u && (M = $s(v * M / u / g) * g), z(A) || (C = Math.pow(10, A), M = Math.ceil(M * C) / C), n === "ticks" ? (y = Math.floor(f / M) * M, I = Math.ceil(p / M) * M) : (y = f, I = p), w && m && o && kA((r - a) / o, M / 1e3) ? (v = Math.round(Math.min((r - a) / M, c)), M = (r - a) / v, y = a, I = r) : b ? (y = w ? a : y, I = m ? r : I, v = l - 1, M = (I - y) / v) : (v = (I - y) / M, je(v, Math.round(v), M / 1e3) ? v = Math.round(v) : v = Math.ceil(v));
|
|
10355
10348
|
const k = Math.max(tn(M), tn(y));
|
|
10356
|
-
C = Math.pow(10, z(A) ? k : A), y = Math.round(y * C) / C,
|
|
10349
|
+
C = Math.pow(10, z(A) ? k : A), y = Math.round(y * C) / C, I = Math.round(I * C) / C;
|
|
10357
10350
|
let Q = 0;
|
|
10358
10351
|
for (w && (d && y !== a ? (e.push({
|
|
10359
10352
|
value: a
|
|
10360
|
-
}), y < a && Q++, je(Math.round((y + Q * M) * C) / C, a, ro(a, D, i)) && Q++) : y < a && Q++); Q <
|
|
10353
|
+
}), y < a && Q++, je(Math.round((y + Q * M) * C) / C, a, ro(a, D, i)) && Q++) : y < a && Q++); Q < v; ++Q) {
|
|
10361
10354
|
const O = Math.round((y + Q * M) * C) / C;
|
|
10362
10355
|
if (m && O > r)
|
|
10363
10356
|
break;
|
|
@@ -10365,10 +10358,10 @@ function Td(i, t) {
|
|
|
10365
10358
|
value: O
|
|
10366
10359
|
});
|
|
10367
10360
|
}
|
|
10368
|
-
return m && d &&
|
|
10361
|
+
return m && d && I !== r ? e.length && je(e[e.length - 1].value, r, ro(r, D, i)) ? e[e.length - 1].value = r : e.push({
|
|
10369
10362
|
value: r
|
|
10370
|
-
}) : (!m ||
|
|
10371
|
-
value:
|
|
10363
|
+
}) : (!m || I === r) && e.push({
|
|
10364
|
+
value: I
|
|
10372
10365
|
}), e;
|
|
10373
10366
|
}
|
|
10374
10367
|
function ro(i, t, { horizontal: e, minRotation: s }) {
|
|
@@ -11968,7 +11961,7 @@ const yg = x`
|
|
|
11968
11961
|
align-self: center;
|
|
11969
11962
|
grid-area: a;
|
|
11970
11963
|
}
|
|
11971
|
-
`,
|
|
11964
|
+
`, Ig = x`
|
|
11972
11965
|
.data-header
|
|
11973
11966
|
{
|
|
11974
11967
|
font-family: var(--data-header-font-family, 'Sofia Pro Semi');
|
|
@@ -11987,7 +11980,7 @@ const yg = x`
|
|
|
11987
11980
|
color: var(--data-text-color, #ccc);
|
|
11988
11981
|
grid-area: dtxt;
|
|
11989
11982
|
}
|
|
11990
|
-
`,
|
|
11983
|
+
`, vg = x`
|
|
11991
11984
|
.data-list-item
|
|
11992
11985
|
{
|
|
11993
11986
|
display: grid;
|
|
@@ -12091,7 +12084,7 @@ let Lt = class extends tt {
|
|
|
12091
12084
|
return this.renderDataItem();
|
|
12092
12085
|
}
|
|
12093
12086
|
};
|
|
12094
|
-
Lt.styles = [yg,
|
|
12087
|
+
Lt.styles = [yg, Ig, vg, Eg, kg];
|
|
12095
12088
|
he([
|
|
12096
12089
|
G({ attribute: "data-header" })
|
|
12097
12090
|
], Lt.prototype, "dataHeader", 2);
|