@pocketprep/ui-kit 3.4.70 → 3.4.71
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/@pocketprep/ui-kit.js +735 -732
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +8 -8
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/Quiz/Question/MobileMatrixChoicesContainer.vue +11 -0
- package/lib/components/Quiz/Question/Summary.vue +2 -1
- package/lib/components/Quiz/Question.vue +1 -1
- package/package.json +1 -1
|
@@ -472,7 +472,7 @@ var bn = { exports: {} };
|
|
|
472
472
|
var T = G(h), J = T ? "" + B + " #" + h + ": www.highcharts.com/errors/" + h + "/" : h.toString();
|
|
473
473
|
if (typeof M < "u") {
|
|
474
474
|
var W = "";
|
|
475
|
-
T && (J += "?"),
|
|
475
|
+
T && (J += "?"), z(M, function(v, x) {
|
|
476
476
|
W += `
|
|
477
477
|
- `.concat(x, ": ").concat(v), T && (J += encodeURI(x) + "=" + encodeURI(v));
|
|
478
478
|
}), J += W;
|
|
@@ -485,8 +485,8 @@ var bn = { exports: {} };
|
|
|
485
485
|
}
|
|
486
486
|
function r(h, l) {
|
|
487
487
|
var w = {};
|
|
488
|
-
return
|
|
489
|
-
|
|
488
|
+
return z(h, function(M, B) {
|
|
489
|
+
F(h[B], !0) && !h.nodeType && l[B] ? (M = r(h[B], l[B]), Object.keys(M).length && (w[B] = M)) : (F(h[B]) || h[B] !== l[B] || B in h && !(B in l)) && (w[B] = h[B]);
|
|
490
490
|
}), w;
|
|
491
491
|
}
|
|
492
492
|
function R(h, l) {
|
|
@@ -498,15 +498,15 @@ var bn = { exports: {} };
|
|
|
498
498
|
function Y(h) {
|
|
499
499
|
return h = Object.prototype.toString.call(h), h === "[object Array]" || h === "[object Array Iterator]";
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function F(h, l) {
|
|
502
502
|
return !!h && typeof h == "object" && (!l || !Y(h));
|
|
503
503
|
}
|
|
504
504
|
function E(h) {
|
|
505
|
-
return
|
|
505
|
+
return F(h) && typeof h.nodeType == "number";
|
|
506
506
|
}
|
|
507
507
|
function I(h) {
|
|
508
508
|
var l = h && h.constructor;
|
|
509
|
-
return !(!
|
|
509
|
+
return !(!F(h, !0) || E(h) || !l || !l.name || l.name === "Object");
|
|
510
510
|
}
|
|
511
511
|
function G(h) {
|
|
512
512
|
return typeof h == "number" && !isNaN(h) && 1 / 0 > h && -1 / 0 < h;
|
|
@@ -518,7 +518,7 @@ var bn = { exports: {} };
|
|
|
518
518
|
var M = D(l) && !A(w), B, T = function(J, W) {
|
|
519
519
|
A(J) ? h.setAttribute(W, J) : M ? (B = h.getAttribute(W)) || W !== "class" || (B = h.getAttribute(W + "Name")) : h.removeAttribute(W);
|
|
520
520
|
};
|
|
521
|
-
return D(l) ? T(w, l) :
|
|
521
|
+
return D(l) ? T(w, l) : z(l, T), B;
|
|
522
522
|
}
|
|
523
523
|
function p(h, l) {
|
|
524
524
|
var w;
|
|
@@ -562,7 +562,7 @@ var bn = { exports: {} };
|
|
|
562
562
|
}
|
|
563
563
|
return B;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function z(h, l, w) {
|
|
566
566
|
for (var M in h)
|
|
567
567
|
Object.hasOwnProperty.call(h, M) && l.call(w || h[M], h[M], M, h);
|
|
568
568
|
}
|
|
@@ -579,7 +579,7 @@ var bn = { exports: {} };
|
|
|
579
579
|
x[l] = !0;
|
|
580
580
|
} else
|
|
581
581
|
x = W;
|
|
582
|
-
|
|
582
|
+
z(x, function(Z, K) {
|
|
583
583
|
if (W[K])
|
|
584
584
|
for (v = W[K].length; v--; )
|
|
585
585
|
M(K, W[K][v].fn);
|
|
@@ -628,7 +628,7 @@ var bn = { exports: {} };
|
|
|
628
628
|
if (l(h[w], w))
|
|
629
629
|
return h[w];
|
|
630
630
|
};
|
|
631
|
-
|
|
631
|
+
z({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(h, l) {
|
|
632
632
|
t[l] = function(w) {
|
|
633
633
|
var M;
|
|
634
634
|
return n(32, !1, void 0, (M = {}, M["Highcharts.".concat(l)] = "use Array.".concat(h), M)), Array.prototype[h].apply(w, [].slice.call(arguments, 1));
|
|
@@ -681,7 +681,7 @@ var bn = { exports: {} };
|
|
|
681
681
|
css: c,
|
|
682
682
|
defined: A,
|
|
683
683
|
destroyObjectProperties: function(h, l) {
|
|
684
|
-
|
|
684
|
+
z(h, function(w, M) {
|
|
685
685
|
w && w !== l && w.destroy && w.destroy(), delete h[M];
|
|
686
686
|
});
|
|
687
687
|
},
|
|
@@ -724,15 +724,15 @@ var bn = { exports: {} };
|
|
|
724
724
|
return typeof h == "function";
|
|
725
725
|
},
|
|
726
726
|
isNumber: G,
|
|
727
|
-
isObject:
|
|
727
|
+
isObject: F,
|
|
728
728
|
isString: D,
|
|
729
729
|
keys: function(h) {
|
|
730
730
|
return n(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(h);
|
|
731
731
|
},
|
|
732
732
|
merge: function() {
|
|
733
733
|
var h, l = arguments, w = {}, M = function(T, J) {
|
|
734
|
-
return typeof T != "object" && (T = {}),
|
|
735
|
-
v !== "__proto__" && v !== "constructor" && (!
|
|
734
|
+
return typeof T != "object" && (T = {}), z(J, function(W, v) {
|
|
735
|
+
v !== "__proto__" && v !== "constructor" && (!F(W, !0) || I(W) || E(W) ? T[v] = J[v] : T[v] = M(T[v] || {}, W));
|
|
736
736
|
}), T;
|
|
737
737
|
};
|
|
738
738
|
l[0] === !0 && (w = l[1], l = Array.prototype.slice.call(l, 2));
|
|
@@ -751,7 +751,7 @@ var bn = { exports: {} };
|
|
|
751
751
|
;
|
|
752
752
|
return T = L(T * w, -Math.round(Math.log(1e-3) / Math.LN10));
|
|
753
753
|
},
|
|
754
|
-
objectEach:
|
|
754
|
+
objectEach: z,
|
|
755
755
|
offset: function(h) {
|
|
756
756
|
var l = b.documentElement;
|
|
757
757
|
return h = h.parentElement || h.parentNode ? h.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: h.top + (a.pageYOffset || l.scrollTop) - (l.clientTop || 0), left: h.left + (a.pageXOffset || l.scrollLeft) - (l.clientLeft || 0), width: h.width, height: h.height };
|
|
@@ -803,66 +803,66 @@ var bn = { exports: {} };
|
|
|
803
803
|
}), s(o, "Core/Color/Color.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(t, n) {
|
|
804
804
|
var r = n.isNumber, R = n.merge, D = n.pInt;
|
|
805
805
|
return n = function() {
|
|
806
|
-
function Y(
|
|
807
|
-
this.rgba = [NaN, NaN, NaN, NaN], this.input =
|
|
806
|
+
function Y(F) {
|
|
807
|
+
this.rgba = [NaN, NaN, NaN, NaN], this.input = F;
|
|
808
808
|
var E = t.Color;
|
|
809
809
|
if (E && E !== Y)
|
|
810
|
-
return new E(
|
|
810
|
+
return new E(F);
|
|
811
811
|
if (!(this instanceof Y))
|
|
812
|
-
return new Y(
|
|
813
|
-
this.init(
|
|
812
|
+
return new Y(F);
|
|
813
|
+
this.init(F);
|
|
814
814
|
}
|
|
815
|
-
return Y.parse = function(
|
|
816
|
-
return
|
|
817
|
-
}, Y.prototype.init = function(
|
|
815
|
+
return Y.parse = function(F) {
|
|
816
|
+
return F ? new Y(F) : Y.None;
|
|
817
|
+
}, Y.prototype.init = function(F) {
|
|
818
818
|
var E;
|
|
819
|
-
if (typeof
|
|
820
|
-
this.stops =
|
|
819
|
+
if (typeof F == "object" && typeof F.stops < "u")
|
|
820
|
+
this.stops = F.stops.map(function(g) {
|
|
821
821
|
return new Y(g[1]);
|
|
822
822
|
});
|
|
823
|
-
else if (typeof
|
|
824
|
-
if (this.input =
|
|
825
|
-
var I =
|
|
823
|
+
else if (typeof F == "string") {
|
|
824
|
+
if (this.input = F = Y.names[F.toLowerCase()] || F, F.charAt(0) === "#") {
|
|
825
|
+
var I = F.length, G = parseInt(F.substr(1), 16);
|
|
826
826
|
I === 7 ? E = [(G & 16711680) >> 16, (G & 65280) >> 8, G & 255, 1] : I === 4 && (E = [(G & 3840) >> 4 | (G & 3840) >> 8, (G & 240) >> 4 | G & 240, (G & 15) << 4 | G & 15, 1]);
|
|
827
827
|
}
|
|
828
828
|
if (!E)
|
|
829
829
|
for (G = Y.parsers.length; G-- && !E; ) {
|
|
830
830
|
var A = Y.parsers[G];
|
|
831
|
-
(I = A.regex.exec(
|
|
831
|
+
(I = A.regex.exec(F)) && (E = A.parse(I));
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
E && (this.rgba = E);
|
|
835
|
-
}, Y.prototype.get = function(
|
|
835
|
+
}, Y.prototype.get = function(F) {
|
|
836
836
|
var E = this.input, I = this.rgba;
|
|
837
837
|
if (typeof E == "object" && typeof this.stops < "u") {
|
|
838
838
|
var G = R(E);
|
|
839
839
|
return G.stops = [].slice.call(G.stops), this.stops.forEach(function(A, g) {
|
|
840
|
-
G.stops[g] = [G.stops[g][0], A.get(
|
|
840
|
+
G.stops[g] = [G.stops[g][0], A.get(F)];
|
|
841
841
|
}), G;
|
|
842
842
|
}
|
|
843
|
-
return I && r(I[0]) ?
|
|
844
|
-
}, Y.prototype.brighten = function(
|
|
843
|
+
return I && r(I[0]) ? F === "rgb" || !F && I[3] === 1 ? "rgb(" + I[0] + "," + I[1] + "," + I[2] + ")" : F === "a" ? "".concat(I[3]) : "rgba(" + I.join(",") + ")" : E;
|
|
844
|
+
}, Y.prototype.brighten = function(F) {
|
|
845
845
|
var E = this.rgba;
|
|
846
846
|
if (this.stops)
|
|
847
847
|
this.stops.forEach(function(G) {
|
|
848
|
-
G.brighten(
|
|
848
|
+
G.brighten(F);
|
|
849
849
|
});
|
|
850
|
-
else if (r(
|
|
850
|
+
else if (r(F) && F !== 0)
|
|
851
851
|
for (var I = 0; 3 > I; I++)
|
|
852
|
-
E[I] += D(255 *
|
|
852
|
+
E[I] += D(255 * F), 0 > E[I] && (E[I] = 0), 255 < E[I] && (E[I] = 255);
|
|
853
853
|
return this;
|
|
854
|
-
}, Y.prototype.setOpacity = function(
|
|
855
|
-
return this.rgba[3] =
|
|
856
|
-
}, Y.prototype.tweenTo = function(
|
|
857
|
-
var I = this.rgba, G =
|
|
858
|
-
return !r(I[0]) || !r(G[0]) ?
|
|
859
|
-
}, Y.names = { white: "#ffffff", black: "#000000" }, Y.parsers = [{ regex: /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/, parse: function(
|
|
860
|
-
return [D(
|
|
861
|
-
} }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(
|
|
854
|
+
}, Y.prototype.setOpacity = function(F) {
|
|
855
|
+
return this.rgba[3] = F, this;
|
|
856
|
+
}, Y.prototype.tweenTo = function(F, E) {
|
|
857
|
+
var I = this.rgba, G = F.rgba;
|
|
858
|
+
return !r(I[0]) || !r(G[0]) ? F.input || "none" : (F = G[3] !== 1 || I[3] !== 1, (F ? "rgba(" : "rgb(") + Math.round(G[0] + (I[0] - G[0]) * (1 - E)) + "," + Math.round(G[1] + (I[1] - G[1]) * (1 - E)) + "," + Math.round(G[2] + (I[2] - G[2]) * (1 - E)) + (F ? "," + (G[3] + (I[3] - G[3]) * (1 - E)) : "") + ")");
|
|
859
|
+
}, Y.names = { white: "#ffffff", black: "#000000" }, Y.parsers = [{ regex: /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/, parse: function(F) {
|
|
860
|
+
return [D(F[1]), D(F[2]), D(F[3]), parseFloat(F[4], 10)];
|
|
861
|
+
} }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(F) {
|
|
862
862
|
return [
|
|
863
|
-
D(
|
|
864
|
-
D(
|
|
865
|
-
D(
|
|
863
|
+
D(F[1]),
|
|
864
|
+
D(F[2]),
|
|
865
|
+
D(F[3]),
|
|
866
866
|
1
|
|
867
867
|
];
|
|
868
868
|
} }], Y.None = new Y(""), Y;
|
|
@@ -870,40 +870,40 @@ var bn = { exports: {} };
|
|
|
870
870
|
}), s(o, "Core/Color/Palettes.js", [], function() {
|
|
871
871
|
return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
|
|
872
872
|
}), s(o, "Core/Time.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(t, n) {
|
|
873
|
-
var r = t.win, R = n.defined, D = n.error, Y = n.extend,
|
|
873
|
+
var r = t.win, R = n.defined, D = n.error, Y = n.extend, F = n.isObject, E = n.merge, I = n.objectEach, G = n.pad, A = n.pick, g = n.splat, p = n.timeUnits, d = t.isSafari && r.Intl && r.Intl.DateTimeFormat.prototype.formatRange, c = t.isSafari && r.Intl && !r.Intl.DateTimeFormat.prototype.formatRange;
|
|
874
874
|
return n = function() {
|
|
875
875
|
function C(L) {
|
|
876
876
|
this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = r.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(L);
|
|
877
877
|
}
|
|
878
878
|
return C.prototype.get = function(L, O) {
|
|
879
879
|
if (this.variableTimezone || this.timezoneOffset) {
|
|
880
|
-
var
|
|
881
|
-
return O.setTime(U), L = O["getUTC" + L](), O.setTime(
|
|
880
|
+
var z = O.getTime(), U = z - this.getTimezoneOffset(O);
|
|
881
|
+
return O.setTime(U), L = O["getUTC" + L](), O.setTime(z), L;
|
|
882
882
|
}
|
|
883
883
|
return this.useUTC ? O["getUTC" + L]() : O["get" + L]();
|
|
884
|
-
}, C.prototype.set = function(L, O,
|
|
884
|
+
}, C.prototype.set = function(L, O, z) {
|
|
885
885
|
if (this.variableTimezone || this.timezoneOffset) {
|
|
886
886
|
if (L === "Milliseconds" || L === "Seconds" || L === "Minutes" && this.getTimezoneOffset(O) % 36e5 === 0)
|
|
887
|
-
return O["setUTC" + L](
|
|
887
|
+
return O["setUTC" + L](z);
|
|
888
888
|
var U = this.getTimezoneOffset(O);
|
|
889
|
-
return U = O.getTime() - U, O.setTime(U), O["setUTC" + L](
|
|
889
|
+
return U = O.getTime() - U, O.setTime(U), O["setUTC" + L](z), L = this.getTimezoneOffset(O), U = O.getTime() + L, O.setTime(U);
|
|
890
890
|
}
|
|
891
|
-
return this.useUTC || d && L === "FullYear" ? O["setUTC" + L](
|
|
891
|
+
return this.useUTC || d && L === "FullYear" ? O["setUTC" + L](z) : O["set" + L](z);
|
|
892
892
|
}, C.prototype.update = function(L) {
|
|
893
893
|
L === void 0 && (L = {});
|
|
894
894
|
var O = A(L.useUTC, !0);
|
|
895
895
|
this.options = L = E(!0, this.options, L), this.Date = L.Date || r.Date || Date, this.timezoneOffset = (this.useUTC = O) && L.timezoneOffset || void 0, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.variableTimezone = O && !(!L.getTimezoneOffset && !L.timezone);
|
|
896
|
-
}, C.prototype.makeTime = function(L, O,
|
|
896
|
+
}, C.prototype.makeTime = function(L, O, z, U, Q, y) {
|
|
897
897
|
if (this.useUTC) {
|
|
898
898
|
var b = this.Date.UTC.apply(0, arguments), a = this.getTimezoneOffset(b);
|
|
899
899
|
b += a;
|
|
900
900
|
var f = this.getTimezoneOffset(b);
|
|
901
901
|
a !== f ? b += f - a : a - 36e5 !== this.getTimezoneOffset(b - 36e5) || c || (b -= 36e5);
|
|
902
902
|
} else
|
|
903
|
-
b = new this.Date(L, O, A(
|
|
903
|
+
b = new this.Date(L, O, A(z, 1), A(U, 0), A(Q, 0), A(y, 0)).getTime();
|
|
904
904
|
return b;
|
|
905
905
|
}, C.prototype.timezoneOffsetFunction = function() {
|
|
906
|
-
var L = this, O = this.options,
|
|
906
|
+
var L = this, O = this.options, z = O.getTimezoneOffset, U = O.moment || r.moment;
|
|
907
907
|
if (!this.useUTC)
|
|
908
908
|
return function(Q) {
|
|
909
909
|
return 6e4 * new Date(Q.toString()).getTimezoneOffset();
|
|
@@ -915,12 +915,12 @@ var bn = { exports: {} };
|
|
|
915
915
|
};
|
|
916
916
|
D(25);
|
|
917
917
|
}
|
|
918
|
-
return this.useUTC &&
|
|
919
|
-
return 6e4 *
|
|
918
|
+
return this.useUTC && z ? function(Q) {
|
|
919
|
+
return 6e4 * z(Q.valueOf());
|
|
920
920
|
} : function() {
|
|
921
921
|
return 6e4 * (L.timezoneOffset || 0);
|
|
922
922
|
};
|
|
923
|
-
}, C.prototype.dateFormat = function(L, O,
|
|
923
|
+
}, C.prototype.dateFormat = function(L, O, z) {
|
|
924
924
|
if (!R(O) || isNaN(O))
|
|
925
925
|
return t.defaultOptions.lang && t.defaultOptions.lang.invalidDate || "";
|
|
926
926
|
L = A(L, "%Y-%m-%d %H:%M:%S");
|
|
@@ -931,10 +931,10 @@ var bn = { exports: {} };
|
|
|
931
931
|
for (; L.indexOf("%" + M) !== -1; )
|
|
932
932
|
L = L.replace("%" + M, typeof w == "function" ? w.call(U, O) : w);
|
|
933
933
|
}
|
|
934
|
-
),
|
|
934
|
+
), z ? L.substr(0, 1).toUpperCase() + L.substr(1) : L;
|
|
935
935
|
}, C.prototype.resolveDTLFormat = function(L) {
|
|
936
|
-
return
|
|
937
|
-
}, C.prototype.getTimeTicks = function(L, O,
|
|
936
|
+
return F(L, !0) ? L : (L = g(L), { main: L[0], from: L[1], to: L[2] });
|
|
937
|
+
}, C.prototype.getTimeTicks = function(L, O, z, U) {
|
|
938
938
|
var Q = this, y = [], b = {}, a = new Q.Date(O), f = L.unitRange, u = L.count || 1, m;
|
|
939
939
|
if (U = A(U, 1), R(O)) {
|
|
940
940
|
if (Q.set("Milliseconds", a, f >= p.second ? 0 : u * Math.floor(Q.get("Milliseconds", a) / u)), f >= p.second && Q.set("Seconds", a, f >= p.minute ? 0 : u * Math.floor(Q.get("Seconds", a) / u)), f >= p.minute && Q.set("Minutes", a, f >= p.hour ? 0 : u * Math.floor(Q.get("Minutes", a) / u)), f >= p.hour && Q.set("Hours", a, f >= p.day ? 0 : u * Math.floor(Q.get("Hours", a) / u)), f >= p.day && Q.set("Date", a, f >= p.month ? 1 : Math.max(1, u * Math.floor(Q.get("Date", a) / u))), f >= p.month) {
|
|
@@ -946,7 +946,7 @@ var bn = { exports: {} };
|
|
|
946
946
|
a
|
|
947
947
|
), U = Q.get("Month", a);
|
|
948
948
|
var l = Q.get("Date", a), w = Q.get("Hours", a);
|
|
949
|
-
for (O = a.getTime(), !Q.variableTimezone && Q.useUTC || !R(
|
|
949
|
+
for (O = a.getTime(), !Q.variableTimezone && Q.useUTC || !R(z) || (m = z - O > 4 * p.month || Q.getTimezoneOffset(O) !== Q.getTimezoneOffset(z)), O = a.getTime(), a = 1; O < z; )
|
|
950
950
|
y.push(O), O = f === p.year ? Q.makeTime(h + a * u, 0) : f === p.month ? Q.makeTime(h, U + a * u) : !m || f !== p.day && f !== p.week ? m && f === p.hour && 1 < u ? Q.makeTime(h, U, l, w + a * u) : O + f * u : Q.makeTime(h, U, l + a * u * (f === p.day ? 1 : 7)), a++;
|
|
951
951
|
y.push(O), f <= p.hour && 1e4 > y.length && y.forEach(function(M) {
|
|
952
952
|
M % 18e5 === 0 && Q.dateFormat(
|
|
@@ -956,10 +956,10 @@ var bn = { exports: {} };
|
|
|
956
956
|
});
|
|
957
957
|
}
|
|
958
958
|
return y.info = Y(L, { higherRanks: b, totalRange: f * u }), y;
|
|
959
|
-
}, C.prototype.getDateFormat = function(L, O,
|
|
959
|
+
}, C.prototype.getDateFormat = function(L, O, z, U) {
|
|
960
960
|
var Q = this.dateFormat("%m-%d %H:%M:%S.%L", O), y = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, b = "millisecond";
|
|
961
961
|
for (a in p) {
|
|
962
|
-
if (L === p.week && +this.dateFormat("%w", O) ===
|
|
962
|
+
if (L === p.week && +this.dateFormat("%w", O) === z && Q.substr(6) === "00:00:00.000") {
|
|
963
963
|
var a = "week";
|
|
964
964
|
break;
|
|
965
965
|
}
|
|
@@ -976,7 +976,7 @@ var bn = { exports: {} };
|
|
|
976
976
|
}(), n;
|
|
977
977
|
}), s(o, "Core/Defaults.js", [o["Core/Chart/ChartDefaults.js"], o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Color/Palettes.js"], o["Core/Time.js"], o["Core/Utilities.js"]], function(t, n, r, R, D, Y) {
|
|
978
978
|
n = n.parse;
|
|
979
|
-
var
|
|
979
|
+
var F = Y.merge, E = {
|
|
980
980
|
colors: R.colors,
|
|
981
981
|
symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
|
|
982
982
|
lang: {
|
|
@@ -1025,18 +1025,18 @@ var bn = { exports: {} };
|
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
1027
1027
|
E.chart.styledMode = !1;
|
|
1028
|
-
var I = new D(
|
|
1028
|
+
var I = new D(F(E.global, E.time));
|
|
1029
1029
|
return t = { defaultOptions: E, defaultTime: I, getOptions: function() {
|
|
1030
1030
|
return E;
|
|
1031
1031
|
}, setOptions: function(G) {
|
|
1032
|
-
return
|
|
1032
|
+
return F(!0, E, G), (G.time || G.global) && (r.time ? r.time.update(F(E.global, E.time, G.global, G.time)) : r.time = I), E;
|
|
1033
1033
|
} }, t;
|
|
1034
1034
|
}), s(o, "Core/Animation/Fx.js", [
|
|
1035
1035
|
o["Core/Color/Color.js"],
|
|
1036
1036
|
o["Core/Globals.js"],
|
|
1037
1037
|
o["Core/Utilities.js"]
|
|
1038
1038
|
], function(t, n, r) {
|
|
1039
|
-
var R = t.parse, D = n.win, Y = r.isNumber,
|
|
1039
|
+
var R = t.parse, D = n.win, Y = r.isNumber, F = r.objectEach;
|
|
1040
1040
|
return function() {
|
|
1041
1041
|
function E(I, G, A) {
|
|
1042
1042
|
this.pos = NaN, this.options = G, this.elem = I, this.prop = A;
|
|
@@ -1049,8 +1049,8 @@ var bn = { exports: {} };
|
|
|
1049
1049
|
if (G.length === I.length && 1 > A)
|
|
1050
1050
|
for (var p = 0; p < I.length; p++) {
|
|
1051
1051
|
for (var d = G[p], c = I[p], C = [], L = 0; L < c.length; L++) {
|
|
1052
|
-
var O = d[L],
|
|
1053
|
-
Y(O) && Y(
|
|
1052
|
+
var O = d[L], z = c[L];
|
|
1053
|
+
Y(O) && Y(z) && (c[0] !== "A" || L !== 4 && L !== 5) ? C[L] = O + A * (z - O) : C[L] = z;
|
|
1054
1054
|
}
|
|
1055
1055
|
g.push(C);
|
|
1056
1056
|
}
|
|
@@ -1083,7 +1083,7 @@ var bn = { exports: {} };
|
|
|
1083
1083
|
else if (I || G >= d + this.startTime) {
|
|
1084
1084
|
this.now = this.end, this.pos = 1, this.update();
|
|
1085
1085
|
var C = c[this.prop] = !0;
|
|
1086
|
-
|
|
1086
|
+
F(c, function(L) {
|
|
1087
1087
|
L !== !0 && (C = !1);
|
|
1088
1088
|
}), C && p && p.call(g), I = !1;
|
|
1089
1089
|
} else
|
|
@@ -1116,7 +1116,7 @@ var bn = { exports: {} };
|
|
|
1116
1116
|
break;
|
|
1117
1117
|
} else if (d[0] === c[c.length - d.length + I]) {
|
|
1118
1118
|
O = I;
|
|
1119
|
-
var
|
|
1119
|
+
var z = !0;
|
|
1120
1120
|
break;
|
|
1121
1121
|
} else if (d[d.length - 1] === c[c.length - d.length + I]) {
|
|
1122
1122
|
O = d.length - I;
|
|
@@ -1126,7 +1126,7 @@ var bn = { exports: {} };
|
|
|
1126
1126
|
}
|
|
1127
1127
|
if (G.length && Y(O)) {
|
|
1128
1128
|
var U = A.length + O * L;
|
|
1129
|
-
|
|
1129
|
+
z ? (g(G, A), p(A, G)) : (g(A, G), p(G, A));
|
|
1130
1130
|
}
|
|
1131
1131
|
return [G, A];
|
|
1132
1132
|
}, E.prototype.fillSetter = function() {
|
|
@@ -1143,26 +1143,26 @@ var bn = { exports: {} };
|
|
|
1143
1143
|
for (var c = t.timers.length; c--; )
|
|
1144
1144
|
t.timers[c].elem !== p || d && d !== t.timers[c].prop || (t.timers[c].stopped = !0);
|
|
1145
1145
|
}
|
|
1146
|
-
var D = n.defined, Y = n.getStyle,
|
|
1146
|
+
var D = n.defined, Y = n.getStyle, F = n.isArray, E = n.isNumber, I = n.isObject, G = n.merge, A = n.objectEach, g = n.pick;
|
|
1147
1147
|
return { animate: function(p, d, c) {
|
|
1148
|
-
var C, L = "", O,
|
|
1148
|
+
var C, L = "", O, z;
|
|
1149
1149
|
if (!I(c)) {
|
|
1150
1150
|
var U = arguments;
|
|
1151
1151
|
c = { duration: U[2], easing: U[3], complete: U[4] };
|
|
1152
1152
|
}
|
|
1153
1153
|
E(c.duration) || (c.duration = 400), c.easing = typeof c.easing == "function" ? c.easing : Math[c.easing] || Math.easeInOutSine, c.curAnim = G(d), A(d, function(Q, y) {
|
|
1154
|
-
R(p, y),
|
|
1154
|
+
R(p, y), z = new t(p, c, y), O = void 0, y === "d" && F(d.d) ? (z.paths = z.initPath(p, p.pathArray, d.d), z.toD = d.d, C = 0, O = 1) : p.attr ? C = p.attr(y) : (C = parseFloat(Y(p, y)) || 0, y !== "opacity" && (L = "px")), O || (O = Q), typeof O == "string" && O.match("px") && (O = O.replace(/px/g, "")), z.run(C, O, L);
|
|
1155
1155
|
});
|
|
1156
1156
|
}, animObject: r, getDeferredAnimation: function(p, d, c) {
|
|
1157
1157
|
var C = r(d), L = 0, O = 0;
|
|
1158
|
-
return (c ? [c] : p.series).forEach(function(
|
|
1159
|
-
|
|
1158
|
+
return (c ? [c] : p.series).forEach(function(z) {
|
|
1159
|
+
z = r(z.options.animation), L = d && D(d.defer) ? C.defer : Math.max(L, z.duration + z.defer), O = Math.min(C.duration, z.duration);
|
|
1160
1160
|
}), p.renderer.forExport && (L = 0), { defer: Math.max(0, L - O), duration: Math.min(L, O) };
|
|
1161
1161
|
}, setAnimation: function(p, d) {
|
|
1162
1162
|
d.renderer.globalAnimation = g(p, d.options.chart.animation, !0);
|
|
1163
1163
|
}, stop: R };
|
|
1164
1164
|
}), s(o, "Core/Renderer/HTML/AST.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(t, n) {
|
|
1165
|
-
var r = t.SVG_NS, R = n.attr, D = n.createElement, Y = n.css,
|
|
1165
|
+
var r = t.SVG_NS, R = n.attr, D = n.createElement, Y = n.css, F = n.error, E = n.isFunction, I = n.isString, G = n.objectEach, A = n.splat, g = (n = t.win.trustedTypes) && E(n.createPolicy) && n.createPolicy("highcharts", { createHTML: function(c) {
|
|
1166
1166
|
return c;
|
|
1167
1167
|
} }), p = g ? g.createHTML("") : "";
|
|
1168
1168
|
try {
|
|
@@ -1176,25 +1176,25 @@ var bn = { exports: {} };
|
|
|
1176
1176
|
}
|
|
1177
1177
|
return c.filterUserAttributes = function(C) {
|
|
1178
1178
|
return G(C, function(L, O) {
|
|
1179
|
-
var
|
|
1180
|
-
c.allowedAttributes.indexOf(O) === -1 && (
|
|
1179
|
+
var z = !0;
|
|
1180
|
+
c.allowedAttributes.indexOf(O) === -1 && (z = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(O) !== -1 && (z = I(L) && c.allowedReferences.some(function(U) {
|
|
1181
1181
|
return L.indexOf(U) === 0;
|
|
1182
|
-
})),
|
|
1182
|
+
})), z || (F(33, !1, void 0, { "Invalid attribute in config": "".concat(O) }), delete C[O]), I(L) && C[O] && (C[O] = L.replace(/</g, "<"));
|
|
1183
1183
|
}), C;
|
|
1184
1184
|
}, c.parseStyle = function(C) {
|
|
1185
1185
|
return C.split(";").reduce(function(L, O) {
|
|
1186
1186
|
O = O.split(":").map(function(U) {
|
|
1187
1187
|
return U.trim();
|
|
1188
1188
|
});
|
|
1189
|
-
var
|
|
1190
|
-
return
|
|
1189
|
+
var z = O.shift();
|
|
1190
|
+
return z && O.length && (L[z.replace(/-([a-z])/g, function(U) {
|
|
1191
1191
|
return U[1].toUpperCase();
|
|
1192
1192
|
})] = O.join(":")), L;
|
|
1193
1193
|
}, {});
|
|
1194
1194
|
}, c.setElementHTML = function(C, L) {
|
|
1195
1195
|
C.innerHTML = c.emptyHTML, L && new c(L).addToDOM(C);
|
|
1196
1196
|
}, c.prototype.addToDOM = function(C) {
|
|
1197
|
-
function L(O,
|
|
1197
|
+
function L(O, z) {
|
|
1198
1198
|
var U;
|
|
1199
1199
|
return A(O).forEach(function(Q) {
|
|
1200
1200
|
var y = Q.tagName, b = Q.textContent ? t.doc.createTextNode(Q.textContent) : void 0, a = c.bypassHTMLFiltering;
|
|
@@ -1202,14 +1202,14 @@ var bn = { exports: {} };
|
|
|
1202
1202
|
if (y === "#text")
|
|
1203
1203
|
var f = b;
|
|
1204
1204
|
else if (c.allowedTags.indexOf(y) !== -1 || a) {
|
|
1205
|
-
y = t.doc.createElementNS(y === "svg" ? r :
|
|
1205
|
+
y = t.doc.createElementNS(y === "svg" ? r : z.namespaceURI || r, y);
|
|
1206
1206
|
var u = Q.attributes || {};
|
|
1207
1207
|
G(Q, function(m, h) {
|
|
1208
1208
|
h !== "tagName" && h !== "attributes" && h !== "children" && h !== "style" && h !== "textContent" && (u[h] = m);
|
|
1209
1209
|
}), R(y, a ? u : c.filterUserAttributes(u)), Q.style && Y(y, Q.style), b && y.appendChild(b), L(Q.children || [], y), f = y;
|
|
1210
1210
|
} else
|
|
1211
|
-
|
|
1212
|
-
f &&
|
|
1211
|
+
F(33, !1, void 0, { "Invalid tagName in config": y });
|
|
1212
|
+
f && z.appendChild(f), U = f;
|
|
1213
1213
|
}), U;
|
|
1214
1214
|
}
|
|
1215
1215
|
return L(this.nodes, C);
|
|
@@ -1221,7 +1221,7 @@ var bn = { exports: {} };
|
|
|
1221
1221
|
var O = D("div");
|
|
1222
1222
|
O.innerHTML = C, C = { body: O };
|
|
1223
1223
|
}
|
|
1224
|
-
var
|
|
1224
|
+
var z = function(U, Q) {
|
|
1225
1225
|
var y = U.nodeName.toLowerCase(), b = { tagName: y };
|
|
1226
1226
|
if (y === "#text" && (b.textContent = U.textContent || ""), y = U.attributes) {
|
|
1227
1227
|
var a = {};
|
|
@@ -1232,13 +1232,13 @@ var bn = { exports: {} };
|
|
|
1232
1232
|
if (U.childNodes.length) {
|
|
1233
1233
|
var f = [];
|
|
1234
1234
|
[].forEach.call(U.childNodes, function(u) {
|
|
1235
|
-
|
|
1235
|
+
z(u, f);
|
|
1236
1236
|
}), f.length && (b.children = f);
|
|
1237
1237
|
}
|
|
1238
1238
|
Q.push(b);
|
|
1239
1239
|
};
|
|
1240
1240
|
return [].forEach.call(C.body.childNodes, function(U) {
|
|
1241
|
-
return
|
|
1241
|
+
return z(U, L);
|
|
1242
1242
|
}), L;
|
|
1243
1243
|
}, c.allowedAttributes = "aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "), c.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), c.allowedTags = "a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "), c.emptyHTML = p, c.bypassHTMLFiltering = !1, c;
|
|
1244
1244
|
}(), E;
|
|
@@ -1248,7 +1248,7 @@ var bn = { exports: {} };
|
|
|
1248
1248
|
var d = R.lang, c = (G.toString().split(".")[1] || "").split("e")[0].length, C = G.toString().split("e"), L = A;
|
|
1249
1249
|
if (A === -1)
|
|
1250
1250
|
A = Math.min(c, 20);
|
|
1251
|
-
else if (!
|
|
1251
|
+
else if (!F(A))
|
|
1252
1252
|
A = 2;
|
|
1253
1253
|
else if (A && C[1] && 0 > C[1]) {
|
|
1254
1254
|
var O = A + +C[1];
|
|
@@ -1258,16 +1258,16 @@ var bn = { exports: {} };
|
|
|
1258
1258
|
A,
|
|
1259
1259
|
c
|
|
1260
1260
|
) - 1)).toFixed(A), c = String(I(O));
|
|
1261
|
-
var
|
|
1262
|
-
return g = E(g, d.decimalPoint), p = E(p, d.thousandsSep), G = (0 > G ? "-" : "") + (
|
|
1261
|
+
var z = 3 < c.length ? c.length % 3 : 0;
|
|
1262
|
+
return g = E(g, d.decimalPoint), p = E(p, d.thousandsSep), G = (0 > G ? "-" : "") + (z ? c.substr(0, z) + p : ""), G = 0 > +C[1] && !L ? "0" : G + c.substr(z).replace(/(\d{3})(?=\d)/g, "$1" + p), A && (G += g + O.slice(-A)), C[1] && +G != 0 && (G += "e" + C[1]), G;
|
|
1263
1263
|
}
|
|
1264
|
-
var R = t.defaultOptions, D = t.defaultTime, Y = n.getNestedProperty,
|
|
1264
|
+
var R = t.defaultOptions, D = t.defaultTime, Y = n.getNestedProperty, F = n.isNumber, E = n.pick, I = n.pInt;
|
|
1265
1265
|
return { dateFormat: function(G, A, g) {
|
|
1266
1266
|
return D.dateFormat(G, A, g);
|
|
1267
1267
|
}, format: function(G, A, g) {
|
|
1268
1268
|
var p = "{", d = !1, c = /f$/, C = /\.([0-9])/, L = R.lang, O = g && g.time || D;
|
|
1269
1269
|
g = g && g.numberFormatter || r;
|
|
1270
|
-
for (var
|
|
1270
|
+
for (var z = []; G; ) {
|
|
1271
1271
|
var U = G.indexOf(p);
|
|
1272
1272
|
if (U === -1)
|
|
1273
1273
|
break;
|
|
@@ -1279,12 +1279,12 @@ var bn = { exports: {} };
|
|
|
1279
1279
|
p !== null && (p = g(p, y, L.decimalPoint, -1 < Q.indexOf(",") ? L.thousandsSep : ""));
|
|
1280
1280
|
} else
|
|
1281
1281
|
p = O.dateFormat(Q, p);
|
|
1282
|
-
|
|
1282
|
+
z.push(p);
|
|
1283
1283
|
} else
|
|
1284
|
-
|
|
1284
|
+
z.push(Q);
|
|
1285
1285
|
G = G.slice(U + 1), p = (d = !d) ? "}" : "{";
|
|
1286
1286
|
}
|
|
1287
|
-
return
|
|
1287
|
+
return z.push(G), z.join("");
|
|
1288
1288
|
}, numberFormat: r };
|
|
1289
1289
|
}), s(
|
|
1290
1290
|
o,
|
|
@@ -1293,11 +1293,11 @@ var bn = { exports: {} };
|
|
|
1293
1293
|
function(t) {
|
|
1294
1294
|
var n = t.clamp, r = t.pick, R = t.stableSort, D;
|
|
1295
1295
|
return function(Y) {
|
|
1296
|
-
function
|
|
1297
|
-
var A = E, g = A.reducedLen || I, p = function(
|
|
1298
|
-
return (U.rank || 0) - (
|
|
1299
|
-
}, d = function(
|
|
1300
|
-
return
|
|
1296
|
+
function F(E, I, G) {
|
|
1297
|
+
var A = E, g = A.reducedLen || I, p = function(z, U) {
|
|
1298
|
+
return (U.rank || 0) - (z.rank || 0);
|
|
1299
|
+
}, d = function(z, U) {
|
|
1300
|
+
return z.target - U.target;
|
|
1301
1301
|
}, c, C = !0, L = [], O = 0;
|
|
1302
1302
|
for (c = E.length; c--; )
|
|
1303
1303
|
O += E[c].size;
|
|
@@ -1306,28 +1306,28 @@ var bn = { exports: {} };
|
|
|
1306
1306
|
O += E[c].size, c++;
|
|
1307
1307
|
L = E.splice(c - 1, E.length);
|
|
1308
1308
|
}
|
|
1309
|
-
for (R(E, d), E = E.map(function(
|
|
1310
|
-
return { size:
|
|
1309
|
+
for (R(E, d), E = E.map(function(z) {
|
|
1310
|
+
return { size: z.size, targets: [z.target], align: r(z.align, 0.5) };
|
|
1311
1311
|
}); C; ) {
|
|
1312
1312
|
for (c = E.length; c--; )
|
|
1313
1313
|
g = E[c], p = (Math.min.apply(0, g.targets) + Math.max.apply(0, g.targets)) / 2, g.pos = n(p - g.size * g.align, 0, I - g.size);
|
|
1314
1314
|
for (c = E.length, C = !1; c--; )
|
|
1315
1315
|
0 < c && E[c - 1].pos + E[c - 1].size > E[c].pos && (E[c - 1].size += E[c].size, E[c - 1].targets = E[c - 1].targets.concat(E[c].targets), E[c - 1].align = 0.5, E[c - 1].pos + E[c - 1].size > I && (E[c - 1].pos = I - E[c - 1].size), E.splice(c, 1), C = !0);
|
|
1316
1316
|
}
|
|
1317
|
-
return A.push.apply(A, L), c = 0, E.some(function(
|
|
1317
|
+
return A.push.apply(A, L), c = 0, E.some(function(z) {
|
|
1318
1318
|
var U = 0;
|
|
1319
|
-
return (
|
|
1320
|
-
return A[c].pos =
|
|
1319
|
+
return (z.targets || []).some(function() {
|
|
1320
|
+
return A[c].pos = z.pos + U, typeof G < "u" && Math.abs(A[c].pos - A[c].target) > G ? (A.slice(0, c + 1).forEach(function(Q) {
|
|
1321
1321
|
return delete Q.pos;
|
|
1322
|
-
}), A.reducedLen = (A.reducedLen || I) - 0.1 * I, A.reducedLen > 0.1 * I &&
|
|
1322
|
+
}), A.reducedLen = (A.reducedLen || I) - 0.1 * I, A.reducedLen > 0.1 * I && F(A, I, G), !0) : (U += A[c].size, c++, !1);
|
|
1323
1323
|
});
|
|
1324
1324
|
}), R(A, d), A;
|
|
1325
1325
|
}
|
|
1326
|
-
Y.distribute =
|
|
1326
|
+
Y.distribute = F;
|
|
1327
1327
|
}(D || (D = {})), D;
|
|
1328
1328
|
}
|
|
1329
1329
|
), s(o, "Core/Renderer/SVG/SVGElement.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Utilities.js"]], function(t, n, r, R) {
|
|
1330
|
-
var D = t.animate, Y = t.animObject,
|
|
1330
|
+
var D = t.animate, Y = t.animObject, F = t.stop, E = r.deg2rad, I = r.doc, G = r.svg, A = r.SVG_NS, g = r.win, p = R.addEvent, d = R.attr, c = R.createElement, C = R.css, L = R.defined, O = R.erase, z = R.extend, U = R.fireEvent, Q = R.isArray, y = R.isFunction, b = R.isString, a = R.merge, f = R.objectEach, u = R.pick, m = R.pInt, h = R.syncTimeout, l = R.uniqueKey;
|
|
1331
1331
|
return t = function() {
|
|
1332
1332
|
function w() {
|
|
1333
1333
|
this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = A, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
|
|
@@ -1400,7 +1400,7 @@ var bn = { exports: {} };
|
|
|
1400
1400
|
M,
|
|
1401
1401
|
W
|
|
1402
1402
|
) : (f(M, function(j, S) {
|
|
1403
|
-
K = !1, J ||
|
|
1403
|
+
K = !1, J || F(this, S), this.symbolName && v.indexOf(S) !== -1 && (x || (this.symbolAttr(M), x = !0), K = !0), !this.rotation || S !== "x" && S !== "y" || (this.doTransform = !0), K || (q = this[S + "Setter"] || this._defaultSetter, q.call(this, j, S, W), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(S) && this.updateShadows(S, j, q));
|
|
1404
1404
|
}, this), this.afterSetters()), T && T.call(this), Z;
|
|
1405
1405
|
}, w.prototype.clip = function(M) {
|
|
1406
1406
|
return this.attr("clip-path", M ? "url(" + this.renderer.url + "#" + M.id + ")" : "none");
|
|
@@ -1435,7 +1435,7 @@ var bn = { exports: {} };
|
|
|
1435
1435
|
if (M.color && (M.fill = M.color), B && f(M, function(Z, K) {
|
|
1436
1436
|
B && B[K] !== Z && (T[K] = Z, W = !0);
|
|
1437
1437
|
}), W) {
|
|
1438
|
-
if (B && (M =
|
|
1438
|
+
if (B && (M = z(B, T)), M.width === null || M.width === "auto")
|
|
1439
1439
|
delete this.textWidth;
|
|
1440
1440
|
else if (J.nodeName.toLowerCase() === "text" && M.width)
|
|
1441
1441
|
var v = this.textWidth = m(M.width);
|
|
@@ -1459,7 +1459,7 @@ var bn = { exports: {} };
|
|
|
1459
1459
|
}
|
|
1460
1460
|
}, w.prototype.destroy = function() {
|
|
1461
1461
|
var M = this, B = M.element || {}, T = M.renderer, J = B.ownerSVGElement, W = T.isSVG && B.nodeName === "SPAN" && M.parentGroup || void 0;
|
|
1462
|
-
if (B.onclick = B.onmouseout = B.onmouseover = B.onmousemove = B.point = null,
|
|
1462
|
+
if (B.onclick = B.onmouseout = B.onmouseover = B.onmousemove = B.point = null, F(M), M.clipPath && J) {
|
|
1463
1463
|
var v = M.clipPath;
|
|
1464
1464
|
[].forEach.call(J.querySelectorAll("[clip-path],[CLIP-PATH]"), function(x) {
|
|
1465
1465
|
-1 < x.getAttribute("clip-path").indexOf(v.element.id) && x.removeAttribute("clip-path");
|
|
@@ -1508,7 +1508,7 @@ var bn = { exports: {} };
|
|
|
1508
1508
|
var ie = J.querySelector(".highcharts-text-outline");
|
|
1509
1509
|
ie && C(ie, { display: $ });
|
|
1510
1510
|
};
|
|
1511
|
-
y(_) && _("none"), j = J.getBBox ?
|
|
1511
|
+
y(_) && _("none"), j = J.getBBox ? z({}, J.getBBox()) : { width: J.offsetWidth, height: J.offsetHeight, x: 0, y: 0 }, y(_) && _("");
|
|
1512
1512
|
} catch {
|
|
1513
1513
|
}
|
|
1514
1514
|
(!j || 0 > j.width) && (j = { x: 0, y: 0, width: 0, height: 0 });
|
|
@@ -1561,14 +1561,14 @@ var bn = { exports: {} };
|
|
|
1561
1561
|
var q = M.attr("id");
|
|
1562
1562
|
q || M.attr("id", q = l());
|
|
1563
1563
|
var k = { x: 0, y: 0 };
|
|
1564
|
-
L(x.dx) && (k.dx = x.dx, delete x.dx), L(x.dy) && (k.dy = x.dy, delete x.dy), W.attr(k), T.attr({ transform: "" }), T.box && (T.box = T.box.destroy()), k = K.nodes.slice(0), K.nodes.length = 0, K.nodes[0] = { tagName: "textPath", attributes:
|
|
1564
|
+
L(x.dx) && (k.dx = x.dx, delete x.dx), L(x.dy) && (k.dy = x.dy, delete x.dy), W.attr(k), T.attr({ transform: "" }), T.box && (T.box = T.box.destroy()), k = K.nodes.slice(0), K.nodes.length = 0, K.nodes[0] = { tagName: "textPath", attributes: z(x, { "text-anchor": x.textAnchor, href: "" + J + "#".concat(q) }), children: k };
|
|
1565
1565
|
}
|
|
1566
1566
|
}), W.textPath = { path: M, undo: B }) : (W.attr({ dx: 0, dy: 0 }), delete W.textPath), this.added && (W.textCache = "", this.renderer.buildText(W)), this;
|
|
1567
1567
|
}, w.prototype.shadow = function(M, B, T) {
|
|
1568
1568
|
var J = [], W = this.element, v = this.oldShadowOptions, x = this.parentGroup, Z = x && x.rotation === 90;
|
|
1569
1569
|
x = { color: "#000000", offsetX: Z ? -1 : 1, offsetY: Z ? -1 : 1, opacity: 0.15, width: 3 };
|
|
1570
1570
|
var K = !1, q;
|
|
1571
|
-
if (M === !0 ? q = x : typeof M == "object" && (q =
|
|
1571
|
+
if (M === !0 ? q = x : typeof M == "object" && (q = z(x, M)), q && (q && v && f(q, function(_, X) {
|
|
1572
1572
|
_ !== v[X] && (K = !0);
|
|
1573
1573
|
}), K && this.destroyShadows(), this.oldShadowOptions = q), !q)
|
|
1574
1574
|
this.destroyShadows();
|
|
@@ -1653,8 +1653,8 @@ var bn = { exports: {} };
|
|
|
1653
1653
|
var R;
|
|
1654
1654
|
r.getRendererType = function(D) {
|
|
1655
1655
|
return D === void 0 && (D = R), r.rendererTypes[D] || r.rendererTypes[R];
|
|
1656
|
-
}, r.registerRendererType = function(D, Y,
|
|
1657
|
-
r.rendererTypes[D] = Y, (!R ||
|
|
1656
|
+
}, r.registerRendererType = function(D, Y, F) {
|
|
1657
|
+
r.rendererTypes[D] = Y, (!R || F) && (R = D, t.Renderer = Y);
|
|
1658
1658
|
};
|
|
1659
1659
|
}(n || (n = {})), n;
|
|
1660
1660
|
}), s(o, "Core/Renderer/SVG/SVGLabel.js", [o["Core/Renderer/SVG/SVGElement.js"], o["Core/Utilities.js"]], function(t, n) {
|
|
@@ -1673,11 +1673,11 @@ var bn = { exports: {} };
|
|
|
1673
1673
|
}
|
|
1674
1674
|
G(A, g), A.prototype = g === null ? Object.create(g) : (p.prototype = g.prototype, new p());
|
|
1675
1675
|
};
|
|
1676
|
-
}(), R = n.defined, D = n.extend, Y = n.isNumber,
|
|
1676
|
+
}(), R = n.defined, D = n.extend, Y = n.isNumber, F = n.merge, E = n.pick, I = n.removeEvent;
|
|
1677
1677
|
return function(G) {
|
|
1678
|
-
function A(g, p, d, c, C, L, O,
|
|
1678
|
+
function A(g, p, d, c, C, L, O, z, U, Q) {
|
|
1679
1679
|
var y = G.call(this) || this;
|
|
1680
|
-
y.paddingLeftSetter = y.paddingSetter, y.paddingRightSetter = y.paddingSetter, y.init(g, "g"), y.textStr = p, y.x = d, y.y = c, y.anchorX = L, y.anchorY = O, y.baseline = U, y.className = Q, y.addClass(Q === "button" ? "highcharts-no-tooltip" : "highcharts-label"), Q && y.addClass("highcharts-" + Q), y.text = g.text(void 0, 0, 0,
|
|
1680
|
+
y.paddingLeftSetter = y.paddingSetter, y.paddingRightSetter = y.paddingSetter, y.init(g, "g"), y.textStr = p, y.x = d, y.y = c, y.anchorX = L, y.anchorY = O, y.baseline = U, y.className = Q, y.addClass(Q === "button" ? "highcharts-no-tooltip" : "highcharts-label"), Q && y.addClass("highcharts-" + Q), y.text = g.text(void 0, 0, 0, z).attr({ zIndex: 1 });
|
|
1681
1681
|
var b;
|
|
1682
1682
|
return typeof C == "string" && ((b = /^url\((.*?)\)$/.test(C)) || y.renderer.symbols[C]) && (y.symbolKey = C), y.bBox = A.emptyBBox, y.padding = 3, y.baselineOffset = 0, y.needsBox = g.styledMode || b, y.deferredAttr = {}, y.alignFactor = 0, y;
|
|
1683
1683
|
}
|
|
@@ -1692,7 +1692,7 @@ var bn = { exports: {} };
|
|
|
1692
1692
|
}, A.prototype.css = function(g) {
|
|
1693
1693
|
if (g) {
|
|
1694
1694
|
var p = {};
|
|
1695
|
-
g =
|
|
1695
|
+
g = F(g), A.textProps.forEach(function(d) {
|
|
1696
1696
|
typeof g[d] < "u" && (p[d] = g[d], delete g[d]);
|
|
1697
1697
|
}), this.text.css(p), "fontSize" in p || "fontWeight" in p ? this.updateTextPadding() : ("width" in p || "textOverflow" in p) && this.updateBoxSize();
|
|
1698
1698
|
}
|
|
@@ -1753,12 +1753,12 @@ var bn = { exports: {} };
|
|
|
1753
1753
|
function n(E, I, G, A, g) {
|
|
1754
1754
|
var p = [];
|
|
1755
1755
|
if (g) {
|
|
1756
|
-
var d = g.start || 0, c =
|
|
1757
|
-
G =
|
|
1756
|
+
var d = g.start || 0, c = F(g.r, G);
|
|
1757
|
+
G = F(g.r, A || G);
|
|
1758
1758
|
var C = (g.end || 0) - 1e-3;
|
|
1759
1759
|
A = g.innerR;
|
|
1760
|
-
var L =
|
|
1761
|
-
d =
|
|
1760
|
+
var L = F(g.open, 1e-3 > Math.abs((g.end || 0) - d - 2 * Math.PI)), O = Math.cos(d), z = Math.sin(d), U = Math.cos(C), Q = Math.sin(C);
|
|
1761
|
+
d = F(g.longArc, 1e-3 > C - d - Math.PI ? 0 : 1), p.push(["M", E + c * O, I + G * z], ["A", c, G, 0, d, F(g.clockwise, 1), E + c * U, I + G * Q]), D(A) && p.push(L ? ["M", E + A * U, I + A * Q] : ["L", E + A * U, I + A * Q], ["A", A, A, 0, d, D(g.clockwise) ? 1 - g.clockwise : 0, E + A * O, I + A * z]), L || p.push(["Z"]);
|
|
1762
1762
|
}
|
|
1763
1763
|
return p;
|
|
1764
1764
|
}
|
|
@@ -1768,7 +1768,7 @@ var bn = { exports: {} };
|
|
|
1768
1768
|
function R(E, I, G, A, g) {
|
|
1769
1769
|
return g = g && g.r || 0, [["M", E + g, I], ["L", E + G - g, I], ["C", E + G, I, E + G, I, E + G, I + g], ["L", E + G, I + A - g], ["C", E + G, I + A, E + G, I + A, E + G - g, I + A], ["L", E + g, I + A], ["C", E, I + A, E, I + A, E, I + A - g], ["L", E, I + g], ["C", E, I, E, I, E + g, I]];
|
|
1770
1770
|
}
|
|
1771
|
-
var D = t.defined, Y = t.isNumber,
|
|
1771
|
+
var D = t.defined, Y = t.isNumber, F = t.pick;
|
|
1772
1772
|
return { arc: n, callout: function(E, I, G, A, g) {
|
|
1773
1773
|
var p = Math.min(g && g.r || 0, G, A), d = p + 6, c = g && g.anchorX;
|
|
1774
1774
|
g = g && g.anchorY || 0;
|
|
@@ -1795,32 +1795,32 @@ var bn = { exports: {} };
|
|
|
1795
1795
|
o["Core/Globals.js"],
|
|
1796
1796
|
o["Core/Utilities.js"]
|
|
1797
1797
|
], function(t, n, r) {
|
|
1798
|
-
var R = n.doc, D = n.SVG_NS, Y = n.win,
|
|
1798
|
+
var R = n.doc, D = n.SVG_NS, Y = n.win, F = r.attr, E = r.extend, I = r.fireEvent, G = r.isString, A = r.objectEach, g = r.pick;
|
|
1799
1799
|
return function() {
|
|
1800
1800
|
function p(d) {
|
|
1801
1801
|
var c = d.styles;
|
|
1802
1802
|
this.renderer = d.renderer, this.svgElement = d, this.width = d.textWidth, this.textLineHeight = c && c.lineHeight, this.textOutline = c && c.textOutline, this.ellipsis = !(!c || c.textOverflow !== "ellipsis"), this.noWrap = !(!c || c.whiteSpace !== "nowrap"), this.fontSize = c && c.fontSize;
|
|
1803
1803
|
}
|
|
1804
1804
|
return p.prototype.buildSVG = function() {
|
|
1805
|
-
var d = this.svgElement, c = d.element, C = d.renderer, L = g(d.textStr, "").toString(), O = L.indexOf("<") !== -1,
|
|
1805
|
+
var d = this.svgElement, c = d.element, C = d.renderer, L = g(d.textStr, "").toString(), O = L.indexOf("<") !== -1, z = c.childNodes;
|
|
1806
1806
|
C = this.width && !d.added && C.box;
|
|
1807
1807
|
var U = /<br.*?>/g, Q = [L, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
|
|
1808
1808
|
if (Q !== d.textCache) {
|
|
1809
|
-
for (d.textCache = Q, delete d.actualWidth, Q =
|
|
1810
|
-
c.removeChild(
|
|
1809
|
+
for (d.textCache = Q, delete d.actualWidth, Q = z.length; Q--; )
|
|
1810
|
+
c.removeChild(z[Q]);
|
|
1811
1811
|
O || this.ellipsis || this.width || d.textPath || L.indexOf(" ") !== -1 && (!this.noWrap || U.test(L)) ? L !== "" && (C && C.appendChild(c), L = new t(L), this.modifyTree(L.nodes), L.addToDOM(c), this.modifyDOM(), this.ellipsis && (c.textContent || "").indexOf("…") !== -1 && d.attr("title", this.unescapeEntities(d.textStr || "", ["<", ">"])), C && C.removeChild(c)) : c.appendChild(R.createTextNode(this.unescapeEntities(L))), G(this.textOutline) && d.applyTextOutline && d.applyTextOutline(this.textOutline);
|
|
1812
1812
|
}
|
|
1813
1813
|
}, p.prototype.modifyDOM = function() {
|
|
1814
|
-
var d = this, c = this.svgElement, C =
|
|
1814
|
+
var d = this, c = this.svgElement, C = F(c.element, "x");
|
|
1815
1815
|
c.firstLineMetrics = void 0;
|
|
1816
1816
|
for (var L; (L = c.element.firstChild) && /^[\s\u200B]*$/.test(L.textContent || " "); )
|
|
1817
1817
|
c.element.removeChild(L);
|
|
1818
1818
|
[].forEach.call(c.element.querySelectorAll("tspan.highcharts-br"), function(Q, y) {
|
|
1819
|
-
Q.nextSibling && Q.previousSibling && (y === 0 && Q.previousSibling.nodeType === 1 && (c.firstLineMetrics = c.renderer.fontMetrics(void 0, Q.previousSibling)),
|
|
1819
|
+
Q.nextSibling && Q.previousSibling && (y === 0 && Q.previousSibling.nodeType === 1 && (c.firstLineMetrics = c.renderer.fontMetrics(void 0, Q.previousSibling)), F(Q, { dy: d.getLineHeight(Q.nextSibling), x: C }));
|
|
1820
1820
|
});
|
|
1821
1821
|
var O = this.width || 0;
|
|
1822
1822
|
if (O) {
|
|
1823
|
-
var
|
|
1823
|
+
var z = function(Q, y) {
|
|
1824
1824
|
var b = Q.textContent || "", a = b.replace(/([^\^])-/g, "$1- ").split(" "), f = !d.noWrap && (1 < a.length || 1 < c.element.childNodes.length), u = d.getLineHeight(y), m = 0, h = c.actualWidth;
|
|
1825
1825
|
if (d.ellipsis)
|
|
1826
1826
|
b && d.truncate(Q, b, void 0, 0, Math.max(0, O - parseInt(d.fontSize || 12, 10)), function(l, w) {
|
|
@@ -1836,12 +1836,12 @@ var bn = { exports: {} };
|
|
|
1836
1836
|
f.forEach(function(l) {
|
|
1837
1837
|
y.insertBefore(l, Q);
|
|
1838
1838
|
}), b.forEach(function(l) {
|
|
1839
|
-
y.insertBefore(R.createTextNode(l), Q), l = R.createElementNS(D, "tspan"), l.textContent = "",
|
|
1839
|
+
y.insertBefore(R.createTextNode(l), Q), l = R.createElementNS(D, "tspan"), l.textContent = "", F(l, { dy: u, x: C }), y.insertBefore(l, Q);
|
|
1840
1840
|
});
|
|
1841
1841
|
}
|
|
1842
1842
|
}, U = function(Q) {
|
|
1843
1843
|
[].slice.call(Q.childNodes).forEach(function(y) {
|
|
1844
|
-
y.nodeType === Y.Node.TEXT_NODE ?
|
|
1844
|
+
y.nodeType === Y.Node.TEXT_NODE ? z(y, Q) : (y.className.baseVal.indexOf("highcharts-br") !== -1 && (c.actualWidth = 0), U(y));
|
|
1845
1845
|
});
|
|
1846
1846
|
};
|
|
1847
1847
|
U(c.element);
|
|
@@ -1851,19 +1851,19 @@ var bn = { exports: {} };
|
|
|
1851
1851
|
return d = d.nodeType === Y.Node.TEXT_NODE ? d.parentElement : d, this.renderer.styledMode || (c = d && /(px|em)$/.test(d.style.fontSize) ? d.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(this.textLineHeight.toString(), 10) : this.renderer.fontMetrics(c, d || this.svgElement.element).h;
|
|
1852
1852
|
}, p.prototype.modifyTree = function(d) {
|
|
1853
1853
|
var c = this, C = function(L, O) {
|
|
1854
|
-
var
|
|
1855
|
-
|
|
1854
|
+
var z = L.attributes;
|
|
1855
|
+
z = z === void 0 ? {} : z;
|
|
1856
1856
|
var U = L.children, Q = L.style;
|
|
1857
1857
|
Q = Q === void 0 ? {} : Q;
|
|
1858
1858
|
var y = L.tagName, b = c.renderer.styledMode;
|
|
1859
|
-
y === "b" || y === "strong" ? b ?
|
|
1859
|
+
y === "b" || y === "strong" ? b ? z.class = "highcharts-strong" : Q.fontWeight = "bold" : (y === "i" || y === "em") && (b ? z.class = "highcharts-emphasized" : Q.fontStyle = "italic"), Q && Q.color && (Q.fill = Q.color), y === "br" ? (z.class = "highcharts-br", L.textContent = "", (O = d[O + 1]) && O.textContent && (O.textContent = O.textContent.replace(/^ +/gm, ""))) : y === "a" && U && U.some(function(a) {
|
|
1860
1860
|
return a.tagName === "#text";
|
|
1861
|
-
}) && (L.children = [{ children: U, tagName: "tspan" }]), y !== "#text" && y !== "a" && (L.tagName = "tspan"), E(L, { attributes:
|
|
1861
|
+
}) && (L.children = [{ children: U, tagName: "tspan" }]), y !== "#text" && y !== "a" && (L.tagName = "tspan"), E(L, { attributes: z, style: Q }), U && U.filter(function(a) {
|
|
1862
1862
|
return a.tagName !== "#text";
|
|
1863
1863
|
}).forEach(C);
|
|
1864
1864
|
};
|
|
1865
1865
|
d.forEach(C), I(this.svgElement, "afterModifyTree", { nodes: d });
|
|
1866
|
-
}, p.prototype.truncate = function(d, c, C, L, O,
|
|
1866
|
+
}, p.prototype.truncate = function(d, c, C, L, O, z) {
|
|
1867
1867
|
var U = this.svgElement, Q = U.renderer, y = U.rotation, b = [], a = C ? 1 : 0, f = (c || C || "").length, u = f, m, h = function(w, M) {
|
|
1868
1868
|
M = M || w;
|
|
1869
1869
|
var B = d.parentNode;
|
|
@@ -1874,15 +1874,15 @@ var bn = { exports: {} };
|
|
|
1874
1874
|
} catch {
|
|
1875
1875
|
}
|
|
1876
1876
|
else
|
|
1877
|
-
Q.getSpanWidth && (d.textContent =
|
|
1877
|
+
Q.getSpanWidth && (d.textContent = z(c || C, w), b[M] = L + Q.getSpanWidth(U, d));
|
|
1878
1878
|
return b[M];
|
|
1879
1879
|
};
|
|
1880
1880
|
U.rotation = 0;
|
|
1881
1881
|
var l = h(d.textContent.length);
|
|
1882
1882
|
if (L + l > O) {
|
|
1883
1883
|
for (; a <= f; )
|
|
1884
|
-
u = Math.ceil((a + f) / 2), C && (m =
|
|
1885
|
-
f === 0 ? d.textContent = "" : c && f === c.length - 1 || (d.textContent = m ||
|
|
1884
|
+
u = Math.ceil((a + f) / 2), C && (m = z(C, u)), l = h(u, m && m.length - 1), a === f ? a = f + 1 : l > O ? f = u - 1 : a = u;
|
|
1885
|
+
f === 0 ? d.textContent = "" : c && f === c.length - 1 || (d.textContent = m || z(c || C, u));
|
|
1886
1886
|
}
|
|
1887
1887
|
C && C.splice(0, u), U.actualWidth = l, U.rotation = y;
|
|
1888
1888
|
}, p.prototype.unescapeEntities = function(d, c) {
|
|
@@ -1901,8 +1901,8 @@ var bn = { exports: {} };
|
|
|
1901
1901
|
o["Core/Renderer/SVG/Symbols.js"],
|
|
1902
1902
|
o["Core/Renderer/SVG/TextBuilder.js"],
|
|
1903
1903
|
o["Core/Utilities.js"]
|
|
1904
|
-
], function(t, n, r, R, D, Y,
|
|
1905
|
-
var G = r.charts, A = r.deg2rad, g = r.doc, p = r.isFirefox, d = r.isMS, c = r.isWebKit, C = r.noop, L = r.SVG_NS, O = r.symbolSizes,
|
|
1904
|
+
], function(t, n, r, R, D, Y, F, E, I) {
|
|
1905
|
+
var G = r.charts, A = r.deg2rad, g = r.doc, p = r.isFirefox, d = r.isMS, c = r.isWebKit, C = r.noop, L = r.SVG_NS, O = r.symbolSizes, z = r.win, U = I.addEvent, Q = I.attr, y = I.createElement, b = I.css, a = I.defined, f = I.destroyObjectProperties, u = I.extend, m = I.isArray, h = I.isNumber, l = I.isObject, w = I.isString, M = I.merge, B = I.pick, T = I.pInt, J = I.uniqueKey, W;
|
|
1906
1906
|
return r = function() {
|
|
1907
1907
|
function v(x, Z, K, q, k, j, S) {
|
|
1908
1908
|
this.width = this.url = this.style = this.isSVG = this.imgCount = this.height = this.gradients = this.globalAnimation = this.defs = this.chartIndex = this.cacheKeys = this.cache = this.boxWrapper = this.box = this.alignedObjects = void 0, this.init(x, Z, K, q, k, j, S);
|
|
@@ -1913,7 +1913,7 @@ var bn = { exports: {} };
|
|
|
1913
1913
|
var $;
|
|
1914
1914
|
p && x.getBoundingClientRect && (Z = function() {
|
|
1915
1915
|
b(x, { left: 0, top: 0 }), $ = x.getBoundingClientRect(), b(x, { left: Math.ceil($.left) - $.left + "px", top: Math.ceil($.top) - $.top + "px" });
|
|
1916
|
-
}, Z(), this.unSubPixelFix = U(
|
|
1916
|
+
}, Z(), this.unSubPixelFix = U(z, "resize", Z));
|
|
1917
1917
|
}, v.prototype.definition = function(x) {
|
|
1918
1918
|
return new t([x]).addToDOM(this.defs.element);
|
|
1919
1919
|
}, v.prototype.getReferenceURL = function() {
|
|
@@ -1925,7 +1925,7 @@ var bn = { exports: {} };
|
|
|
1925
1925
|
W = (Z && Z.id) === "hitme", g.body.removeChild(x);
|
|
1926
1926
|
}
|
|
1927
1927
|
if (W)
|
|
1928
|
-
return
|
|
1928
|
+
return z.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
|
|
1929
1929
|
}
|
|
1930
1930
|
return "";
|
|
1931
1931
|
}, v.prototype.getStyle = function(x) {
|
|
@@ -2016,7 +2016,7 @@ var bn = { exports: {} };
|
|
|
2016
2016
|
var X = this.createElement("image").attr(S);
|
|
2017
2017
|
return Z = function($) {
|
|
2018
2018
|
_(X.element, x), j.call(X, $);
|
|
2019
|
-
}, j ? (_(X.element, "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="), K = new
|
|
2019
|
+
}, j ? (_(X.element, "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="), K = new z.Image(), U(K, "load", Z), K.src = x, K.complete && Z({})) : _(X.element, x), X;
|
|
2020
2020
|
}, v.prototype.symbol = function(x, Z, K, q, k, j) {
|
|
2021
2021
|
var S = this, _ = /^url\((.*?)\)$/, X = _.test(x), $ = !X && (this.symbols[x] ? x : "circle"), ie = $ && this.symbols[$], se;
|
|
2022
2022
|
if (ie) {
|
|
@@ -2064,7 +2064,7 @@ var bn = { exports: {} };
|
|
|
2064
2064
|
_.setAttribute(S, j);
|
|
2065
2065
|
}), x);
|
|
2066
2066
|
}, v.prototype.fontMetrics = function(x, Z) {
|
|
2067
|
-
return x = !this.styledMode && /px/.test(x) || !
|
|
2067
|
+
return x = !this.styledMode && /px/.test(x) || !z.getComputedStyle ? x || Z && Z.style && Z.style.fontSize || this.style && this.style.fontSize : Z && D.prototype.getStyle.call(Z, "font-size"), x = /px/.test(x) ? T(x) : 12, Z = 24 > x ? x + 3 : Math.round(1.2 * x), { h: Z, b: Math.round(0.8 * Z), f: x };
|
|
2068
2068
|
}, v.prototype.rotCorr = function(x, Z, K) {
|
|
2069
2069
|
var q = x;
|
|
2070
2070
|
return Z && K && (q = Math.max(q * Math.cos(Z * A), 4)), { x: -x / 3 * Math.sin(Z * A), y: q };
|
|
@@ -2083,7 +2083,7 @@ var bn = { exports: {} };
|
|
|
2083
2083
|
Element: D,
|
|
2084
2084
|
SVG_NS: L,
|
|
2085
2085
|
escapes: { "&": "&", "<": "<", ">": ">", "'": "'", '"': """ },
|
|
2086
|
-
symbols:
|
|
2086
|
+
symbols: F,
|
|
2087
2087
|
draw: C
|
|
2088
2088
|
}), R.registerRendererType("svg", r, !0), r;
|
|
2089
2089
|
}), s(o, "Core/Renderer/HTML/HTMLElement.js", [o["Core/Globals.js"], o["Core/Renderer/SVG/SVGElement.js"], o["Core/Utilities.js"]], function(t, n, r) {
|
|
@@ -2092,8 +2092,8 @@ var bn = { exports: {} };
|
|
|
2092
2092
|
return d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(L, O) {
|
|
2093
2093
|
L.__proto__ = O;
|
|
2094
2094
|
} || function(L, O) {
|
|
2095
|
-
for (var
|
|
2096
|
-
O.hasOwnProperty(
|
|
2095
|
+
for (var z in O)
|
|
2096
|
+
O.hasOwnProperty(z) && (L[z] = O[z]);
|
|
2097
2097
|
}, d(c, C);
|
|
2098
2098
|
};
|
|
2099
2099
|
return function(c, C) {
|
|
@@ -2102,7 +2102,7 @@ var bn = { exports: {} };
|
|
|
2102
2102
|
}
|
|
2103
2103
|
d(c, C), c.prototype = C === null ? Object.create(C) : (L.prototype = C.prototype, new L());
|
|
2104
2104
|
};
|
|
2105
|
-
}(), D = t.isFirefox, Y = t.isMS,
|
|
2105
|
+
}(), D = t.isFirefox, Y = t.isMS, F = t.isWebKit, E = t.win, I = r.css, G = r.defined, A = r.extend, g = r.pick, p = r.pInt;
|
|
2106
2106
|
return function(d) {
|
|
2107
2107
|
function c() {
|
|
2108
2108
|
return d !== null && d.apply(this, arguments) || this;
|
|
@@ -2120,9 +2120,9 @@ var bn = { exports: {} };
|
|
|
2120
2120
|
var L = this.element.tagName === "SPAN" && C && "width" in C, O = g(L && C.width, void 0);
|
|
2121
2121
|
if (L) {
|
|
2122
2122
|
delete C.width, this.textWidth = O;
|
|
2123
|
-
var
|
|
2123
|
+
var z = !0;
|
|
2124
2124
|
}
|
|
2125
|
-
return C && C.textOverflow === "ellipsis" && (C.whiteSpace = "nowrap", C.overflow = "hidden"), this.styles = A(this.styles, C), I(this.element, C),
|
|
2125
|
+
return C && C.textOverflow === "ellipsis" && (C.whiteSpace = "nowrap", C.overflow = "hidden"), this.styles = A(this.styles, C), I(this.element, C), z && this.htmlUpdateTransform(), this;
|
|
2126
2126
|
}, c.prototype.htmlGetBBox = function() {
|
|
2127
2127
|
var C = this.element;
|
|
2128
2128
|
return {
|
|
@@ -2133,9 +2133,9 @@ var bn = { exports: {} };
|
|
|
2133
2133
|
};
|
|
2134
2134
|
}, c.prototype.htmlUpdateTransform = function() {
|
|
2135
2135
|
if (this.added) {
|
|
2136
|
-
var C = this.renderer, L = this.element, O = this.translateX || 0,
|
|
2137
|
-
if (a = a && a.whiteSpace, I(L, { marginLeft: O, marginTop:
|
|
2138
|
-
I(w, { marginLeft: O + 1, marginTop:
|
|
2136
|
+
var C = this.renderer, L = this.element, O = this.translateX || 0, z = this.translateY || 0, U = this.x || 0, Q = this.y || 0, y = this.textAlign || "left", b = { left: 0, center: 0.5, right: 1 }[y], a = this.styles;
|
|
2137
|
+
if (a = a && a.whiteSpace, I(L, { marginLeft: O, marginTop: z }), !C.styledMode && this.shadows && this.shadows.forEach(function(w) {
|
|
2138
|
+
I(w, { marginLeft: O + 1, marginTop: z + 1 });
|
|
2139
2139
|
}), this.inverted && [].forEach.call(L.childNodes, function(w) {
|
|
2140
2140
|
C.invertChild(w, L);
|
|
2141
2141
|
}), L.tagName === "SPAN") {
|
|
@@ -2152,8 +2152,8 @@ var bn = { exports: {} };
|
|
|
2152
2152
|
} else
|
|
2153
2153
|
this.alignOnAdd = !0;
|
|
2154
2154
|
}, c.prototype.setSpanRotation = function(C, L, O) {
|
|
2155
|
-
var
|
|
2156
|
-
U && (
|
|
2155
|
+
var z = {}, U = Y && !/Edge/.test(E.navigator.userAgent) ? "-ms-transform" : F ? "-webkit-transform" : D ? "MozTransform" : E.opera ? "-o-transform" : void 0;
|
|
2156
|
+
U && (z[U] = z.transform = "rotate(" + C + "deg)", z[U + (D ? "Origin" : "-origin")] = z.transformOrigin = 100 * L + "% " + O + "px", I(this.element, z));
|
|
2157
2157
|
}, c.composedClasses = [], c;
|
|
2158
2158
|
}(n);
|
|
2159
2159
|
}), s(o, "Core/Renderer/HTML/HTMLRenderer.js", [o["Core/Renderer/HTML/AST.js"], o["Core/Renderer/SVG/SVGElement.js"], o["Core/Renderer/SVG/SVGRenderer.js"], o["Core/Utilities.js"]], function(t, n, r, R) {
|
|
@@ -2172,7 +2172,7 @@ var bn = { exports: {} };
|
|
|
2172
2172
|
}
|
|
2173
2173
|
G(A, g), A.prototype = g === null ? Object.create(g) : (p.prototype = g.prototype, new p());
|
|
2174
2174
|
};
|
|
2175
|
-
}(), Y = R.attr,
|
|
2175
|
+
}(), Y = R.attr, F = R.createElement, E = R.extend, I = R.pick;
|
|
2176
2176
|
return function(G) {
|
|
2177
2177
|
function A() {
|
|
2178
2178
|
return G !== null && G.apply(this, arguments) || this;
|
|
@@ -2180,7 +2180,7 @@ var bn = { exports: {} };
|
|
|
2180
2180
|
return D(A, G), A.compose = function(g) {
|
|
2181
2181
|
return A.composedClasses.indexOf(g) === -1 && (A.composedClasses.push(g), g.prototype.html = A.prototype.html), g;
|
|
2182
2182
|
}, A.prototype.html = function(g, p, d) {
|
|
2183
|
-
var c = this.createElement("span"), C = c.element, L = c.renderer, O = L.isSVG,
|
|
2183
|
+
var c = this.createElement("span"), C = c.element, L = c.renderer, O = L.isSVG, z = function(U, Q) {
|
|
2184
2184
|
["opacity", "visibility"].forEach(function(y) {
|
|
2185
2185
|
U[y + "Setter"] = function(b, a, f) {
|
|
2186
2186
|
var u = U.div ? U.div.style : Q;
|
|
@@ -2190,7 +2190,7 @@ var bn = { exports: {} };
|
|
|
2190
2190
|
};
|
|
2191
2191
|
return c.textSetter = function(U) {
|
|
2192
2192
|
U !== this.textStr && (delete this.bBox, delete this.oldTextWidth, t.setElementHTML(this.element, I(U, "")), this.textStr = U, c.doTransform = !0);
|
|
2193
|
-
}, O &&
|
|
2193
|
+
}, O && z(c, c.element.style), c.xSetter = c.ySetter = c.alignSetter = c.rotationSetter = function(U, Q) {
|
|
2194
2194
|
Q === "align" ? c.alignValue = c.textAlign = U : c[Q] = U, c.doTransform = !0;
|
|
2195
2195
|
}, c.afterSetters = function() {
|
|
2196
2196
|
this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
|
|
@@ -2206,7 +2206,7 @@ var bn = { exports: {} };
|
|
|
2206
2206
|
a[w] = l, w === "translateX" ? h.left = l + "px" : h.top = l + "px", a.doTransform = !0;
|
|
2207
2207
|
}
|
|
2208
2208
|
var u = Y(a.element, "class"), m = a.styles || {};
|
|
2209
|
-
b = a.div = a.div ||
|
|
2209
|
+
b = a.div = a.div || F("div", u ? { className: u } : void 0, { position: "absolute", left: (a.translateX || 0) + "px", top: (a.translateY || 0) + "px", display: a.display, opacity: a.opacity, cursor: m.cursor, pointerEvents: m.pointerEvents, visibility: a.visibility }, b || Q);
|
|
2210
2210
|
var h = b.style;
|
|
2211
2211
|
E(a, { classSetter: function(l) {
|
|
2212
2212
|
return function(w) {
|
|
@@ -2217,7 +2217,7 @@ var bn = { exports: {} };
|
|
|
2217
2217
|
element: y[0].div,
|
|
2218
2218
|
onEvents: a.onEvents
|
|
2219
2219
|
}, arguments), a;
|
|
2220
|
-
}, translateXSetter: f, translateYSetter: f }), a.addedSetters ||
|
|
2220
|
+
}, translateXSetter: f, translateYSetter: f }), a.addedSetters || z(a);
|
|
2221
2221
|
});
|
|
2222
2222
|
}
|
|
2223
2223
|
} else
|
|
@@ -2286,33 +2286,33 @@ var bn = { exports: {} };
|
|
|
2286
2286
|
}(t || (t = {})), t;
|
|
2287
2287
|
}), s(o, "Core/Foundation.js", [o["Core/Utilities.js"]], function(t) {
|
|
2288
2288
|
var n = t.addEvent, r = t.isFunction, R = t.objectEach, D = t.removeEvent, Y;
|
|
2289
|
-
return function(
|
|
2290
|
-
|
|
2289
|
+
return function(F) {
|
|
2290
|
+
F.registerEventOptions = function(E, I) {
|
|
2291
2291
|
E.eventOptions = E.eventOptions || {}, R(I.events, function(G, A) {
|
|
2292
2292
|
E.eventOptions[A] !== G && (E.eventOptions[A] && (D(E, A, E.eventOptions[A]), delete E.eventOptions[A]), r(G) && (E.eventOptions[A] = G, n(E, A, G)));
|
|
2293
2293
|
});
|
|
2294
2294
|
};
|
|
2295
2295
|
}(Y || (Y = {})), Y;
|
|
2296
2296
|
}), s(o, "Core/Axis/Tick.js", [o["Core/FormatUtilities.js"], o["Core/Globals.js"], o["Core/Utilities.js"]], function(t, n, r) {
|
|
2297
|
-
var R = n.deg2rad, D = r.clamp, Y = r.correctFloat,
|
|
2297
|
+
var R = n.deg2rad, D = r.clamp, Y = r.correctFloat, F = r.defined, E = r.destroyObjectProperties, I = r.extend, G = r.fireEvent, A = r.isNumber, g = r.merge, p = r.objectEach, d = r.pick;
|
|
2298
2298
|
return n = function() {
|
|
2299
|
-
function c(C, L, O,
|
|
2300
|
-
this.isNewLabel = this.isNew = !0, this.axis = C, this.pos = L, this.type = O || "", this.parameters = U || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, G(this, "init"), O ||
|
|
2299
|
+
function c(C, L, O, z, U) {
|
|
2300
|
+
this.isNewLabel = this.isNew = !0, this.axis = C, this.pos = L, this.type = O || "", this.parameters = U || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, G(this, "init"), O || z || this.addLabel();
|
|
2301
2301
|
}
|
|
2302
2302
|
return c.prototype.addLabel = function() {
|
|
2303
|
-
var C = this, L = C.axis, O = L.options,
|
|
2303
|
+
var C = this, L = C.axis, O = L.options, z = L.chart, U = L.categories, Q = L.logarithmic, y = L.names, b = C.pos, a = d(C.options && C.options.labels, O.labels), f = L.tickPositions, u = b === f[0], m = b === f[f.length - 1], h = (!a.step || a.step === 1) && L.tickInterval === 1;
|
|
2304
2304
|
f = f.info;
|
|
2305
2305
|
var l = C.label, w;
|
|
2306
2306
|
if (U = this.parameters.category || (U ? d(U[b], y[b], b) : b), Q && A(U) && (U = Y(Q.lin2log(U))), L.dateTime)
|
|
2307
2307
|
if (f)
|
|
2308
|
-
var M =
|
|
2308
|
+
var M = z.time.resolveDTLFormat(O.dateTimeLabelFormats[!O.grid && f.higherRanks[b] || f.unitName]), B = M.main;
|
|
2309
2309
|
else
|
|
2310
2310
|
A(U) && (B = L.dateTime.getXDateFormat(U, O.dateTimeLabelFormats || {}));
|
|
2311
2311
|
C.isFirst = u, C.isLast = m;
|
|
2312
|
-
var T = { axis: L, chart:
|
|
2312
|
+
var T = { axis: L, chart: z, dateTimeLabelFormat: B, isFirst: u, isLast: m, pos: b, tick: C, tickPositionInfo: f, value: U };
|
|
2313
2313
|
G(this, "labelFormat", T);
|
|
2314
2314
|
var J = function(v) {
|
|
2315
|
-
return a.formatter ? a.formatter.call(v, v) : a.format ? (v.text = L.defaultLabelFormatter.call(v, v), t.format(a.format, v,
|
|
2315
|
+
return a.formatter ? a.formatter.call(v, v) : a.format ? (v.text = L.defaultLabelFormatter.call(v, v), t.format(a.format, v, z)) : L.defaultLabelFormatter.call(v, v);
|
|
2316
2316
|
};
|
|
2317
2317
|
O = J.call(T, T);
|
|
2318
2318
|
var W = M && M.list;
|
|
@@ -2321,37 +2321,37 @@ var bn = { exports: {} };
|
|
|
2321
2321
|
if (I(T, { dateTimeLabelFormat: W[w] }), l.attr({ text: J.call(T, T) }), l.getBBox().width < L.getSlotWidth(C) - 2 * a.padding)
|
|
2322
2322
|
return;
|
|
2323
2323
|
l.attr({ text: "" });
|
|
2324
|
-
} : void 0, h && L._addedPlotLB && C.moveLabel(O, a),
|
|
2324
|
+
} : void 0, h && L._addedPlotLB && C.moveLabel(O, a), F(l) || C.movedLabel ? l && l.textStr !== O && !h && (!l.textWidth || a.style.width || l.styles.width || l.css({ width: null }), l.attr({ text: O }), l.textPxLength = l.getBBox().width) : (C.label = l = C.createLabel({ x: 0, y: 0 }, O, a), C.rotation = 0);
|
|
2325
2325
|
}, c.prototype.createLabel = function(C, L, O) {
|
|
2326
|
-
var
|
|
2327
|
-
return (C =
|
|
2326
|
+
var z = this.axis, U = z.chart;
|
|
2327
|
+
return (C = F(L) && O.enabled ? U.renderer.text(L, C.x, C.y, O.useHTML).add(z.labelGroup) : null) && (U.styledMode || C.css(g(O.style)), C.textPxLength = C.getBBox().width), C;
|
|
2328
2328
|
}, c.prototype.destroy = function() {
|
|
2329
2329
|
E(this, this.axis);
|
|
2330
|
-
}, c.prototype.getPosition = function(C, L, O,
|
|
2331
|
-
var U = this.axis, Q = U.chart, y =
|
|
2332
|
-
return C = { x: C ? Y(U.translate(L + O, void 0, void 0,
|
|
2333
|
-
}, c.prototype.getLabelPosition = function(C, L, O,
|
|
2334
|
-
var a = this.axis, f = a.transA, u = a.isLinked && a.linkedParent ? a.linkedParent.reversed : a.reversed, m = a.staggerLines, h = a.tickRotCorr || { x: 0, y: 0 }, l =
|
|
2335
|
-
return O = a.side === 0 ? O.rotation ? -8 : -O.getBBox().height : a.side === 2 ? h.y + 8 : Math.cos(O.rotation * R) * (h.y - O.getBBox(!1, 0).height / 2),
|
|
2330
|
+
}, c.prototype.getPosition = function(C, L, O, z) {
|
|
2331
|
+
var U = this.axis, Q = U.chart, y = z && Q.oldChartHeight || Q.chartHeight;
|
|
2332
|
+
return C = { x: C ? Y(U.translate(L + O, void 0, void 0, z) + U.transB) : U.left + U.offset + (U.opposite ? (z && Q.oldChartWidth || Q.chartWidth) - U.right - U.left : 0), y: C ? y - U.bottom + U.offset - (U.opposite ? U.height : 0) : Y(y - U.translate(L + O, void 0, void 0, z) - U.transB) }, C.y = D(C.y, -1e5, 1e5), G(this, "afterGetPosition", { pos: C }), C;
|
|
2333
|
+
}, c.prototype.getLabelPosition = function(C, L, O, z, U, Q, y, b) {
|
|
2334
|
+
var a = this.axis, f = a.transA, u = a.isLinked && a.linkedParent ? a.linkedParent.reversed : a.reversed, m = a.staggerLines, h = a.tickRotCorr || { x: 0, y: 0 }, l = z || a.reserveSpaceDefault ? 0 : -a.labelOffset * (a.labelAlign === "center" ? 0.5 : 1), w = {};
|
|
2335
|
+
return O = a.side === 0 ? O.rotation ? -8 : -O.getBBox().height : a.side === 2 ? h.y + 8 : Math.cos(O.rotation * R) * (h.y - O.getBBox(!1, 0).height / 2), F(U.y) && (O = a.side === 0 && a.horiz ? U.y + O : U.y), C = C + U.x + l + h.x - (Q && z ? Q * f * (u ? -1 : 1) : 0), L = L + O - (Q && !z ? Q * f * (u ? 1 : -1) : 0), m && (z = y / (b || 1) % m, a.opposite && (z = m - z - 1), L += a.labelOffset / m * z), w.x = C, w.y = Math.round(L), G(this, "afterGetLabelPosition", { pos: w, tickmarkOffset: Q, index: y }), w;
|
|
2336
2336
|
}, c.prototype.getLabelSize = function() {
|
|
2337
2337
|
return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
|
|
2338
|
-
}, c.prototype.getMarkPath = function(C, L, O,
|
|
2339
|
-
return Q.crispLine([["M", C, L], ["L", C + (U ? 0 : -O), L + (U ? O : 0)]],
|
|
2338
|
+
}, c.prototype.getMarkPath = function(C, L, O, z, U, Q) {
|
|
2339
|
+
return Q.crispLine([["M", C, L], ["L", C + (U ? 0 : -O), L + (U ? O : 0)]], z);
|
|
2340
2340
|
}, c.prototype.handleOverflow = function(C) {
|
|
2341
|
-
var L = this.axis, O = L.options.labels,
|
|
2341
|
+
var L = this.axis, O = L.options.labels, z = C.x, U = L.chart.chartWidth, Q = L.chart.spacing, y = d(L.labelLeft, Math.min(L.pos, Q[3]));
|
|
2342
2342
|
Q = d(L.labelRight, Math.max(L.isRadial ? 0 : L.pos + L.len, U - Q[1]));
|
|
2343
2343
|
var b = this.label, a = this.rotation, f = { left: 0, center: 0.5, right: 1 }[L.labelAlign || b.attr("align")], u = b.getBBox().width, m = L.getSlotWidth(this), h = {}, l = m, w = 1, M;
|
|
2344
|
-
a || O.overflow !== "justify" ? 0 > a &&
|
|
2344
|
+
a || O.overflow !== "justify" ? 0 > a && z - f * u < y ? M = Math.round(z / Math.cos(a * R) - y) : 0 < a && z + f * u > Q && (M = Math.round((U - z) / Math.cos(a * R))) : (U = z + (1 - f) * u, z - f * u < y ? l = C.x + l * (1 - f) - y : U > Q && (l = Q - C.x + l * f, w = -1), l = Math.min(m, l), l < m && L.labelAlign === "center" && (C.x += w * (m - l - f * (m - Math.min(u, l)))), (u > l || L.autoRotation && (b.styles || {}).width) && (M = l)), M && (this.shortenLabel ? this.shortenLabel() : (h.width = Math.floor(M) + "px", (O.style || {}).textOverflow || (h.textOverflow = "ellipsis"), b.css(h)));
|
|
2345
2345
|
}, c.prototype.moveLabel = function(C, L) {
|
|
2346
|
-
var O = this,
|
|
2347
|
-
if (
|
|
2346
|
+
var O = this, z = O.label, U = O.axis, Q = U.reversed, y = !1;
|
|
2347
|
+
if (z && z.textStr === C ? (O.movedLabel = z, y = !0, delete O.label) : p(U.ticks, function(a) {
|
|
2348
2348
|
y || a.isNew || a === O || !a.label || a.label.textStr !== C || (O.movedLabel = a.label, y = !0, a.labelPos = O.movedLabel.xy, delete a.label);
|
|
2349
|
-
}), !y && (O.labelPos ||
|
|
2350
|
-
var b = O.labelPos ||
|
|
2351
|
-
|
|
2349
|
+
}), !y && (O.labelPos || z)) {
|
|
2350
|
+
var b = O.labelPos || z.xy;
|
|
2351
|
+
z = U.horiz ? Q ? 0 : U.width + U.left : b.x, U = U.horiz ? b.y : Q ? U.width + U.left : 0, O.movedLabel = O.createLabel({ x: z, y: U }, C, L), O.movedLabel && O.movedLabel.attr({ opacity: 0 });
|
|
2352
2352
|
}
|
|
2353
2353
|
}, c.prototype.render = function(C, L, O) {
|
|
2354
|
-
var
|
|
2354
|
+
var z = this.axis, U = z.horiz, Q = this.pos, y = d(this.tickmarkOffset, z.tickmarkOffset);
|
|
2355
2355
|
Q = this.getPosition(
|
|
2356
2356
|
U,
|
|
2357
2357
|
Q,
|
|
@@ -2359,29 +2359,29 @@ var bn = { exports: {} };
|
|
|
2359
2359
|
L
|
|
2360
2360
|
), y = Q.x;
|
|
2361
2361
|
var b = Q.y;
|
|
2362
|
-
|
|
2362
|
+
z = U && y === z.pos + z.len || !U && b === z.pos ? -1 : 1, U = d(O, this.label && this.label.newOpacity, 1), O = d(O, 1), this.isActive = !0, this.renderGridLine(L, O, z), this.renderMark(Q, O, z), this.renderLabel(Q, L, U, C), this.isNew = !1, G(this, "afterRender");
|
|
2363
2363
|
}, c.prototype.renderGridLine = function(C, L, O) {
|
|
2364
|
-
var
|
|
2365
|
-
this.type === "minor" && (m = U.minorGridLineWidth, h = U.minorGridLineColor, l = U.minorGridLineDashStyle), u || (
|
|
2364
|
+
var z = this.axis, U = z.options, Q = {}, y = this.pos, b = this.type, a = d(this.tickmarkOffset, z.tickmarkOffset), f = z.chart.renderer, u = this.gridLine, m = U.gridLineWidth, h = U.gridLineColor, l = U.gridLineDashStyle;
|
|
2365
|
+
this.type === "minor" && (m = U.minorGridLineWidth, h = U.minorGridLineColor, l = U.minorGridLineDashStyle), u || (z.chart.styledMode || (Q.stroke = h, Q["stroke-width"] = m || 0, Q.dashstyle = l), b || (Q.zIndex = 1), C && (L = 0), this.gridLine = u = f.path().attr(Q).addClass("highcharts-" + (b ? b + "-" : "") + "grid-line").add(z.gridGroup)), u && (O = z.getPlotLinePath({ value: y + a, lineWidth: u.strokeWidth() * O, force: "pass", old: C, acrossPanes: !1 })) && u[C || this.isNew ? "attr" : "animate"]({ d: O, opacity: L });
|
|
2366
2366
|
}, c.prototype.renderMark = function(C, L, O) {
|
|
2367
|
-
var
|
|
2367
|
+
var z = this.axis, U = z.options, Q = z.chart.renderer, y = this.type, b = z.tickSize(y ? y + "Tick" : "tick"), a = C.x;
|
|
2368
2368
|
C = C.y;
|
|
2369
|
-
var f = d(U[y !== "minor" ? "tickWidth" : "minorTickWidth"], !y &&
|
|
2369
|
+
var f = d(U[y !== "minor" ? "tickWidth" : "minorTickWidth"], !y && z.isXAxis ? 1 : 0);
|
|
2370
2370
|
U = U[y !== "minor" ? "tickColor" : "minorTickColor"];
|
|
2371
2371
|
var u = this.mark, m = !u;
|
|
2372
|
-
b && (
|
|
2373
|
-
}, c.prototype.renderLabel = function(C, L, O,
|
|
2372
|
+
b && (z.opposite && (b[0] = -b[0]), u || (this.mark = u = Q.path().addClass("highcharts-" + (y ? y + "-" : "") + "tick").add(z.axisGroup), z.chart.styledMode || u.attr({ stroke: U, "stroke-width": f })), u[m ? "attr" : "animate"]({ d: this.getMarkPath(a, C, b[0], u.strokeWidth() * O, z.horiz, Q), opacity: L }));
|
|
2373
|
+
}, c.prototype.renderLabel = function(C, L, O, z) {
|
|
2374
2374
|
var U = this.axis, Q = U.horiz, y = U.options, b = this.label, a = y.labels, f = a.step;
|
|
2375
2375
|
U = d(this.tickmarkOffset, U.tickmarkOffset);
|
|
2376
2376
|
var u = C.x;
|
|
2377
2377
|
C = C.y;
|
|
2378
2378
|
var m = !0;
|
|
2379
|
-
b && A(u) && (b.xy = C = this.getLabelPosition(u, C, b, Q, a, U,
|
|
2379
|
+
b && A(u) && (b.xy = C = this.getLabelPosition(u, C, b, Q, a, U, z, f), this.isFirst && !this.isLast && !y.showFirstLabel || this.isLast && !this.isFirst && !y.showLastLabel ? m = !1 : !Q || a.step || a.rotation || L || O === 0 || this.handleOverflow(C), f && z % f && (m = !1), m && A(C.y) ? (C.opacity = O, b[this.isNewLabel ? "attr" : "animate"](C).show(!0), this.isNewLabel = !1) : (b.hide(), this.isNewLabel = !0));
|
|
2380
2380
|
}, c.prototype.replaceMovedLabel = function() {
|
|
2381
2381
|
var C = this.label, L = this.axis, O = L.reversed;
|
|
2382
2382
|
if (C && !this.isNew) {
|
|
2383
|
-
var
|
|
2384
|
-
O = L.horiz ? C.xy.y : O ? L.width + L.top : L.top, C.animate({ x:
|
|
2383
|
+
var z = L.horiz ? O ? L.left : L.width + L.left : C.xy.x;
|
|
2384
|
+
O = L.horiz ? C.xy.y : O ? L.width + L.top : L.top, C.animate({ x: z, y: O, opacity: 0 }, void 0, C.destroy), delete this.label;
|
|
2385
2385
|
}
|
|
2386
2386
|
L.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
|
|
2387
2387
|
}, c;
|
|
@@ -2395,8 +2395,8 @@ var bn = { exports: {} };
|
|
|
2395
2395
|
o["Core/Globals.js"],
|
|
2396
2396
|
o["Core/Axis/Tick.js"],
|
|
2397
2397
|
o["Core/Utilities.js"]
|
|
2398
|
-
], function(t, n, r, R, D, Y,
|
|
2399
|
-
var I = t.animObject, G = R.defaultOptions, A = D.registerEventOptions, g = Y.deg2rad, p = E.arrayMax, d = E.arrayMin, c = E.clamp, C = E.correctFloat, L = E.defined, O = E.destroyObjectProperties,
|
|
2398
|
+
], function(t, n, r, R, D, Y, F, E) {
|
|
2399
|
+
var I = t.animObject, G = R.defaultOptions, A = D.registerEventOptions, g = Y.deg2rad, p = E.arrayMax, d = E.arrayMin, c = E.clamp, C = E.correctFloat, L = E.defined, O = E.destroyObjectProperties, z = E.erase, U = E.error, Q = E.extend, y = E.fireEvent, b = E.isArray, a = E.isNumber, f = E.isString, u = E.merge, m = E.normalizeTickInterval, h = E.objectEach, l = E.pick, w = E.relativeLength, M = E.removeEvent, B = E.splat, T = E.syncTimeout, J = function(W, v) {
|
|
2400
2400
|
return m(v, void 0, void 0, l(
|
|
2401
2401
|
W.options.allowDecimals,
|
|
2402
2402
|
0.5 > v || W.tickAmount !== void 0
|
|
@@ -2821,7 +2821,7 @@ var bn = { exports: {} };
|
|
|
2821
2821
|
} : { low: K ? "right" : "left", middle: "center", high: K ? "left" : "right" })[q.align]), this.axisTitle = x.text(q.text || "", 0, 0, q.useHTML).attr({ zIndex: 7, rotation: q.rotation, align: j }).addClass("highcharts-axis-title"), k || this.axisTitle.css(u(q.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), k || q.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[v ? "show" : "hide"](v);
|
|
2822
2822
|
}, W.prototype.generateTick = function(v) {
|
|
2823
2823
|
var x = this.ticks;
|
|
2824
|
-
x[v] ? x[v].addLabel() : x[v] = new
|
|
2824
|
+
x[v] ? x[v].addLabel() : x[v] = new F(
|
|
2825
2825
|
this,
|
|
2826
2826
|
v
|
|
2827
2827
|
);
|
|
@@ -2860,10 +2860,10 @@ var bn = { exports: {} };
|
|
|
2860
2860
|
return $ = $ ? Math.max($.getBBox(!1, 0).height - ie.h - 1, 0) : 0, K = { low: k + (v ? 0 : K), middle: k + K / 2, high: k + (v ? K : 0) }[q.align], x = (v ? Z + this.height : x) + (v ? 1 : -1) * (j ? -1 : 1) * (this.axisTitleMargin || 0) + [-$, $, ie.f, -$][this.side], v = { x: v ? K + _ : x + (j ? this.width : 0) + S + _, y: v ? x + X - (j ? this.height : 0) + S : K + X }, y(this, "afterGetTitlePosition", { titlePosition: v }), v;
|
|
2861
2861
|
}, W.prototype.renderMinorTick = function(v, x) {
|
|
2862
2862
|
var Z = this.minorTicks;
|
|
2863
|
-
Z[v] || (Z[v] = new
|
|
2863
|
+
Z[v] || (Z[v] = new F(this, v, "minor")), x && Z[v].isNew && Z[v].render(null, !0), Z[v].render(null, !1, 1);
|
|
2864
2864
|
}, W.prototype.renderTick = function(v, x, Z) {
|
|
2865
2865
|
var K = this.ticks;
|
|
2866
|
-
(!this.isLinked || v >= this.min && v <= this.max || this.grid && this.grid.isColumn) && (K[v] || (K[v] = new
|
|
2866
|
+
(!this.isLinked || v >= this.min && v <= this.max || this.grid && this.grid.isColumn) && (K[v] || (K[v] = new F(this, v)), Z && K[v].isNew && K[v].render(x, !0, -1), K[v].render(x));
|
|
2867
2867
|
}, W.prototype.render = function() {
|
|
2868
2868
|
var v = this, x = v.chart, Z = v.logarithmic, K = v.options, q = v.isLinked, k = v.tickPositions, j = v.axisTitle, S = v.ticks, _ = v.minorTicks, X = v.alternateBands, $ = K.stackLabels, ie = K.alternateGridColor, se = v.tickmarkOffset, re = v.axisLine, pe = v.showAxis, fe = I(x.renderer.globalAnimation), ue, de;
|
|
2869
2869
|
if (v.labelEdge.length = 0, v.overlap = !1, [S, _, X].forEach(function(le) {
|
|
@@ -2876,7 +2876,7 @@ var bn = { exports: {} };
|
|
|
2876
2876
|
v.renderMinorTick(le, we);
|
|
2877
2877
|
}), k.length && (k.forEach(function(le, ee) {
|
|
2878
2878
|
v.renderTick(le, ee, we);
|
|
2879
|
-
}), se && (v.min === 0 || v.single) && (S[-1] || (S[-1] = new
|
|
2879
|
+
}), se && (v.min === 0 || v.single) && (S[-1] || (S[-1] = new F(v, -1, null, !0)), S[-1].render(-1))), ie && k.forEach(function(le, ee) {
|
|
2880
2880
|
de = typeof k[ee + 1] < "u" ? k[ee + 1] + se : v.max - se, ee % 2 === 0 && le < v.max && de <= v.max + (x.polar ? -se : se) && (X[le] || (X[le] = new Y.PlotLineOrBand(v)), ue = le + se, X[le].options = { from: Z ? Z.lin2log(ue) : ue, to: Z ? Z.lin2log(de) : de, color: ie, className: "highcharts-alternate-grid" }, X[le].render(), X[le].isActive = !0);
|
|
2881
2881
|
}), v._addedPlotLB || (v._addedPlotLB = !0, (K.plotLines || []).concat(K.plotBands || []).forEach(function(le) {
|
|
2882
2882
|
v.addPlotBandOrLine(le);
|
|
@@ -2942,7 +2942,7 @@ var bn = { exports: {} };
|
|
|
2942
2942
|
}, W.prototype.remove = function(v) {
|
|
2943
2943
|
for (var x = this.chart, Z = this.coll, K = this.series, q = K.length; q--; )
|
|
2944
2944
|
K[q] && K[q].remove(!1);
|
|
2945
|
-
|
|
2945
|
+
z(x.axes, this), z(x[Z], this), x[Z].forEach(function(k, j) {
|
|
2946
2946
|
k.options.index = k.userOptions.index = j;
|
|
2947
2947
|
}), this.destroy(), x.isDirtyBox = !0, l(v, !0) && x.redraw();
|
|
2948
2948
|
}, W.prototype.setTitle = function(v, x) {
|
|
@@ -2953,7 +2953,7 @@ var bn = { exports: {} };
|
|
|
2953
2953
|
}(), t;
|
|
2954
2954
|
}), s(o, "Core/Axis/DateTimeAxis.js", [o["Core/Utilities.js"]], function(t) {
|
|
2955
2955
|
var n = t.addEvent, r = t.getMagnitude, R = t.normalizeTickInterval, D = t.timeUnits, Y;
|
|
2956
|
-
return function(
|
|
2956
|
+
return function(F) {
|
|
2957
2957
|
function E() {
|
|
2958
2958
|
return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
|
|
2959
2959
|
}
|
|
@@ -2961,7 +2961,7 @@ var bn = { exports: {} };
|
|
|
2961
2961
|
g.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new A(this));
|
|
2962
2962
|
}
|
|
2963
2963
|
var G = [];
|
|
2964
|
-
|
|
2964
|
+
F.compose = function(g) {
|
|
2965
2965
|
return G.indexOf(g) === -1 && (G.push(g), g.keepProps.push("dateTime"), g.prototype.getTimeTicks = E, n(g, "init", I)), g;
|
|
2966
2966
|
};
|
|
2967
2967
|
var A = function() {
|
|
@@ -2991,12 +2991,12 @@ var bn = { exports: {} };
|
|
|
2991
2991
|
return c.closestPointRange ? C.getDateFormat(c.closestPointRange, p, c.options.startOfWeek, d) || C.resolveDTLFormat(d.year).main : C.resolveDTLFormat(d.day).main;
|
|
2992
2992
|
}, g;
|
|
2993
2993
|
}();
|
|
2994
|
-
|
|
2994
|
+
F.Additions = A;
|
|
2995
2995
|
}(Y || (Y = {})), Y;
|
|
2996
2996
|
}), s(o, "Core/Axis/LogarithmicAxis.js", [o["Core/Utilities.js"]], function(t) {
|
|
2997
2997
|
var n = t.addEvent, r = t.normalizeTickInterval, R = t.pick, D;
|
|
2998
2998
|
return function(Y) {
|
|
2999
|
-
function
|
|
2999
|
+
function F(A) {
|
|
3000
3000
|
var g = this.logarithmic;
|
|
3001
3001
|
A.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : g || (this.logarithmic = new G(this));
|
|
3002
3002
|
}
|
|
@@ -3010,16 +3010,16 @@ var bn = { exports: {} };
|
|
|
3010
3010
|
}
|
|
3011
3011
|
var I = [];
|
|
3012
3012
|
Y.compose = function(A) {
|
|
3013
|
-
return I.indexOf(A) === -1 && (I.push(A), A.keepProps.push("logarithmic"), n(A, "init",
|
|
3013
|
+
return I.indexOf(A) === -1 && (I.push(A), A.keepProps.push("logarithmic"), n(A, "init", F), n(A, "afterInit", E)), A;
|
|
3014
3014
|
};
|
|
3015
3015
|
var G = function() {
|
|
3016
3016
|
function A(g) {
|
|
3017
3017
|
this.axis = g;
|
|
3018
3018
|
}
|
|
3019
3019
|
return A.prototype.getLogTickPositions = function(g, p, d, c) {
|
|
3020
|
-
var C = this.axis, L = C.len, O = C.options,
|
|
3020
|
+
var C = this.axis, L = C.len, O = C.options, z = [];
|
|
3021
3021
|
if (c || (this.minorAutoInterval = void 0), 0.5 <= g)
|
|
3022
|
-
g = Math.round(g),
|
|
3022
|
+
g = Math.round(g), z = C.getLinearTickPositions(g, p, d);
|
|
3023
3023
|
else if (0.08 <= g) {
|
|
3024
3024
|
var U = Math.floor(p), Q, y = O = void 0;
|
|
3025
3025
|
for (L = 0.3 < g ? [1, 2, 4] : 0.15 < g ? [1, 2, 4, 6, 8] : [
|
|
@@ -3036,12 +3036,12 @@ var bn = { exports: {} };
|
|
|
3036
3036
|
var b = L.length;
|
|
3037
3037
|
for (Q = 0; Q < b && !y; Q++) {
|
|
3038
3038
|
var a = this.log2lin(this.lin2log(U) * L[Q]);
|
|
3039
|
-
a > p && (!c || O <= d) && typeof O < "u" &&
|
|
3039
|
+
a > p && (!c || O <= d) && typeof O < "u" && z.push(O), O > d && (y = !0), O = a;
|
|
3040
3040
|
}
|
|
3041
3041
|
}
|
|
3042
3042
|
} else
|
|
3043
|
-
p = this.lin2log(p), d = this.lin2log(d), g = c ? C.getMinorTickInterval() : O.tickInterval, g = R(g === "auto" ? null : g, this.minorAutoInterval, O.tickPixelInterval / (c ? 5 : 1) * (d - p) / ((c ? L / C.tickPositions.length : L) || 1)), g = r(g),
|
|
3044
|
-
return c || (C.tickInterval = g),
|
|
3043
|
+
p = this.lin2log(p), d = this.lin2log(d), g = c ? C.getMinorTickInterval() : O.tickInterval, g = R(g === "auto" ? null : g, this.minorAutoInterval, O.tickPixelInterval / (c ? 5 : 1) * (d - p) / ((c ? L / C.tickPositions.length : L) || 1)), g = r(g), z = C.getLinearTickPositions(g, p, d).map(this.log2lin), c || (this.minorAutoInterval = g / 5);
|
|
3044
|
+
return c || (C.tickInterval = g), z;
|
|
3045
3045
|
}, A.prototype.lin2log = function(g) {
|
|
3046
3046
|
return Math.pow(10, g);
|
|
3047
3047
|
}, A.prototype.log2lin = function(g) {
|
|
@@ -3053,9 +3053,9 @@ var bn = { exports: {} };
|
|
|
3053
3053
|
}), s(o, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [o["Core/Utilities.js"]], function(t) {
|
|
3054
3054
|
var n = t.erase, r = t.extend, R = t.isNumber, D;
|
|
3055
3055
|
return function(Y) {
|
|
3056
|
-
var
|
|
3056
|
+
var F = [], E;
|
|
3057
3057
|
Y.compose = function(G, A) {
|
|
3058
|
-
return E || (E = G),
|
|
3058
|
+
return E || (E = G), F.indexOf(A) === -1 && (F.push(A), r(A.prototype, I.prototype)), A;
|
|
3059
3059
|
};
|
|
3060
3060
|
var I = function() {
|
|
3061
3061
|
function G() {
|
|
@@ -3069,8 +3069,8 @@ var bn = { exports: {} };
|
|
|
3069
3069
|
p = 0;
|
|
3070
3070
|
}
|
|
3071
3071
|
for (g = 0; g < A.length; g += 2) {
|
|
3072
|
-
var O = A[g],
|
|
3073
|
-
O[0] !== "M" && O[0] !== "L" ||
|
|
3072
|
+
var O = A[g], z = A[g + 1], U = d[g], Q = d[g + 1];
|
|
3073
|
+
O[0] !== "M" && O[0] !== "L" || z[0] !== "M" && z[0] !== "L" || U[0] !== "M" && U[0] !== "L" || Q[0] !== "M" && Q[0] !== "L" || (C && U[1] === O[1] ? (U[1] += p, Q[1] += p) : C || U[2] !== O[2] || (U[2] += p, Q[2] += p), c.push(["M", O[1], O[2]], ["L", z[1], z[2]], ["L", Q[1], Q[2]], ["L", U[1], U[2]], ["Z"])), c.isFlat = L;
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
3076
3076
|
return c;
|
|
@@ -3108,7 +3108,7 @@ var bn = { exports: {} };
|
|
|
3108
3108
|
}();
|
|
3109
3109
|
}(D || (D = {})), D;
|
|
3110
3110
|
}), s(o, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [o["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], o["Core/Utilities.js"]], function(t, n) {
|
|
3111
|
-
var r = n.arrayMax, R = n.arrayMin, D = n.defined, Y = n.destroyObjectProperties,
|
|
3111
|
+
var r = n.arrayMax, R = n.arrayMin, D = n.defined, Y = n.destroyObjectProperties, F = n.erase, E = n.fireEvent, I = n.merge, G = n.objectEach, A = n.pick;
|
|
3112
3112
|
return n = function() {
|
|
3113
3113
|
function g(p, d) {
|
|
3114
3114
|
this.axis = p, d && (this.options = d, this.id = d.id);
|
|
@@ -3117,10 +3117,10 @@ var bn = { exports: {} };
|
|
|
3117
3117
|
return t.compose(g, p);
|
|
3118
3118
|
}, g.prototype.render = function() {
|
|
3119
3119
|
E(this, "render");
|
|
3120
|
-
var p = this, d = p.axis, c = d.horiz, C = d.logarithmic, L = p.options, O = L.color,
|
|
3120
|
+
var p = this, d = p.axis, c = d.horiz, C = d.logarithmic, L = p.options, O = L.color, z = A(L.zIndex, 0), U = L.events, Q = {}, y = d.chart.renderer, b = L.label, a = p.label, f = L.to, u = L.from, m = L.value, h = p.svgElem, l = [], w = D(u) && D(f);
|
|
3121
3121
|
l = D(m);
|
|
3122
3122
|
var M = !h, B = { class: "highcharts-plot-" + (w ? "band " : "line ") + (L.className || "") }, T = w ? "bands" : "lines";
|
|
3123
|
-
if (C && (u = C.log2lin(u), f = C.log2lin(f), m = C.log2lin(m)), d.chart.styledMode || (l ? (B.stroke = O || "#999999", B["stroke-width"] = A(L.width, 1), L.dashStyle && (B.dashstyle = L.dashStyle)) : w && (B.fill = O || "#e6ebf5", L.borderWidth && (B.stroke = L.borderColor, B["stroke-width"] = L.borderWidth))), Q.zIndex =
|
|
3123
|
+
if (C && (u = C.log2lin(u), f = C.log2lin(f), m = C.log2lin(m)), d.chart.styledMode || (l ? (B.stroke = O || "#999999", B["stroke-width"] = A(L.width, 1), L.dashStyle && (B.dashstyle = L.dashStyle)) : w && (B.fill = O || "#e6ebf5", L.borderWidth && (B.stroke = L.borderColor, B["stroke-width"] = L.borderWidth))), Q.zIndex = z, T += "-" + z, (C = d.plotLinesAndBandsGroups[T]) || (d.plotLinesAndBandsGroups[T] = C = y.g("plot-" + T).attr(Q).add()), M && (p.svgElem = h = y.path().attr(B).add(C)), l)
|
|
3124
3124
|
l = d.getPlotLinePath({ value: m, lineWidth: h.strokeWidth(), acrossPanes: L.acrossPanes });
|
|
3125
3125
|
else if (w)
|
|
3126
3126
|
l = d.getPlotBandPath(u, f, L);
|
|
@@ -3130,18 +3130,18 @@ var bn = { exports: {} };
|
|
|
3130
3130
|
h.on(W, function(v) {
|
|
3131
3131
|
U[W].apply(p, [v]);
|
|
3132
3132
|
});
|
|
3133
|
-
}), p.eventsAdded = !0), (M || !h.d) && l && l.length ? h.attr({ d: l }) : h && (l ? (h.show(), h.animate({ d: l })) : h.d && (h.hide(), a && (p.label = a = a.destroy()))), b && (D(b.text) || D(b.formatter)) && l && l.length && 0 < d.width && 0 < d.height && !l.isFlat ? (b = I({ align: c && w && "center", x: c ? !w && 4 : 10, verticalAlign: !c && w && "middle", y: c ? w ? 16 : 10 : w ? 6 : -4, rotation: c && !w && 90 }, b), this.renderLabel(b, l, w,
|
|
3133
|
+
}), p.eventsAdded = !0), (M || !h.d) && l && l.length ? h.attr({ d: l }) : h && (l ? (h.show(), h.animate({ d: l })) : h.d && (h.hide(), a && (p.label = a = a.destroy()))), b && (D(b.text) || D(b.formatter)) && l && l.length && 0 < d.width && 0 < d.height && !l.isFlat ? (b = I({ align: c && w && "center", x: c ? !w && 4 : 10, verticalAlign: !c && w && "middle", y: c ? w ? 16 : 10 : w ? 6 : -4, rotation: c && !w && 90 }, b), this.renderLabel(b, l, w, z)) : a && a.hide(), p;
|
|
3134
3134
|
}, g.prototype.renderLabel = function(p, d, c, C) {
|
|
3135
|
-
var L = this.axis, O = L.chart.renderer,
|
|
3136
|
-
|
|
3135
|
+
var L = this.axis, O = L.chart.renderer, z = this.label;
|
|
3136
|
+
z || (this.label = z = O.text(this.getLabelText(p), 0, 0, p.useHTML).attr({ align: p.textAlign || p.align, rotation: p.rotation, class: "highcharts-plot-" + (c ? "band" : "line") + "-label " + (p.className || ""), zIndex: C }).add(), L.chart.styledMode || z.css(I({ textOverflow: "ellipsis" }, p.style))), C = d.xBounds || [d[0][1], d[1][1], c ? d[2][1] : d[0][1]], d = d.yBounds || [d[0][2], d[1][2], c ? d[2][2] : d[0][2]], c = R(C), O = R(d), z.align(p, !1, { x: c, y: O, width: r(C) - c, height: r(d) - O }), z.alignValue && z.alignValue !== "left" || (p = p.clip ? L.width : L.chart.chartWidth, z.css({ width: (z.rotation === 90 ? L.height - (z.alignAttr.y - L.top) : p - (z.alignAttr.x - L.left)) + "px" })), z.show(!0);
|
|
3137
3137
|
}, g.prototype.getLabelText = function(p) {
|
|
3138
3138
|
return D(p.formatter) ? p.formatter.call(this) : p.text;
|
|
3139
3139
|
}, g.prototype.destroy = function() {
|
|
3140
|
-
|
|
3140
|
+
F(this.axis.plotLinesAndBands, this), delete this.axis, Y(this);
|
|
3141
3141
|
}, g;
|
|
3142
3142
|
}(), n;
|
|
3143
3143
|
}), s(o, "Core/Tooltip.js", [o["Core/FormatUtilities.js"], o["Core/Globals.js"], o["Core/Renderer/RendererUtilities.js"], o["Core/Renderer/RendererRegistry.js"], o["Core/Utilities.js"]], function(t, n, r, R, D) {
|
|
3144
|
-
var Y = t.format,
|
|
3144
|
+
var Y = t.format, F = n.doc, E = r.distribute, I = D.clamp, G = D.css, A = D.discardElement, g = D.extend, p = D.fireEvent, d = D.isArray, c = D.isNumber, C = D.isString, L = D.merge, O = D.pick, z = D.splat, U = D.syncTimeout;
|
|
3145
3145
|
return t = function() {
|
|
3146
3146
|
function Q(y, b) {
|
|
3147
3147
|
this.allowShared = !0, this.container = void 0, this.crosshairs = [], this.distance = 0, this.isHidden = !0, this.isSticky = !1, this.now = {}, this.options = {}, this.outside = !1, this.chart = y, this.init(y, b);
|
|
@@ -3163,13 +3163,13 @@ var bn = { exports: {} };
|
|
|
3163
3163
|
a && (!a.isActive || y ? b.tt = a.destroy() : a.isActive = !1);
|
|
3164
3164
|
});
|
|
3165
3165
|
}, Q.prototype.defaultFormatter = function(y) {
|
|
3166
|
-
var b = this.points ||
|
|
3166
|
+
var b = this.points || z(this), a = [y.tooltipFooterHeaderFormatter(b[0])];
|
|
3167
3167
|
return a = a.concat(y.bodyFormatter(b)), a.push(y.tooltipFooterHeaderFormatter(b[0], !0)), a;
|
|
3168
3168
|
}, Q.prototype.destroy = function() {
|
|
3169
3169
|
this.label && (this.label = this.label.destroy()), this.split && this.tt && (this.cleanSplit(!0), this.tt = this.tt.destroy()), this.renderer && (this.renderer = this.renderer.destroy(), A(this.container)), D.clearTimeout(this.hideTimer), D.clearTimeout(this.tooltipTimeout);
|
|
3170
3170
|
}, Q.prototype.getAnchor = function(y, b) {
|
|
3171
3171
|
var a = this.chart, f = a.pointer, u = a.inverted, m = a.plotTop;
|
|
3172
|
-
if (a = a.plotLeft, y =
|
|
3172
|
+
if (a = a.plotLeft, y = z(y), y[0].series && y[0].series.yAxis && !y[0].series.yAxis.options.reversedStacks && (y = y.slice().reverse()), this.followPointer && b)
|
|
3173
3173
|
typeof b.chartX > "u" && (b = f.normalize(b)), y = [b.chartX - a, b.chartY - m];
|
|
3174
3174
|
else if (y[0].tooltipPos)
|
|
3175
3175
|
y = y[0].tooltipPos;
|
|
@@ -3207,7 +3207,7 @@ var bn = { exports: {} };
|
|
|
3207
3207
|
}
|
|
3208
3208
|
return this.label;
|
|
3209
3209
|
}, Q.prototype.getPosition = function(y, b, a) {
|
|
3210
|
-
var f = this.chart, u = this.distance, m = {}, h = f.inverted && a.h || 0, l = this.outside, w = l ?
|
|
3210
|
+
var f = this.chart, u = this.distance, m = {}, h = f.inverted && a.h || 0, l = this.outside, w = l ? F.documentElement.clientWidth - 2 * u : f.chartWidth, M = l ? Math.max(F.body.scrollHeight, F.documentElement.scrollHeight, F.body.offsetHeight, F.documentElement.offsetHeight, F.documentElement.clientHeight) : f.chartHeight, B = f.pointer.getChartPosition(), T = function(j) {
|
|
3211
3211
|
var S = j === "x";
|
|
3212
3212
|
return [j, S ? w : M, S ? y : b].concat(l ? [S ? y * B.scaleX : b * B.scaleY, S ? B.left - u + (a.plotX + f.plotLeft) * B.scaleX : B.top - u + (a.plotY + f.plotTop) * B.scaleY, 0, S ? w : M] : [S ? y : b, S ? a.plotX + f.plotLeft : a.plotY + f.plotTop, S ? f.plotLeft : f.plotTop, S ? f.plotLeft + f.plotWidth : f.plotTop + f.plotHeight]);
|
|
3213
3213
|
}, J = T("y"), W = T("x"), v;
|
|
@@ -3254,7 +3254,7 @@ var bn = { exports: {} };
|
|
|
3254
3254
|
);
|
|
3255
3255
|
}, 32));
|
|
3256
3256
|
}, Q.prototype.refresh = function(y, b) {
|
|
3257
|
-
var a = this.chart, f = this.options, u = a.pointer, m =
|
|
3257
|
+
var a = this.chart, f = this.options, u = a.pointer, m = z(y), h = m[0], l = [], w = f.formatter || this.defaultFormatter, M = this.shared, B = a.styledMode, T = {};
|
|
3258
3258
|
if (f.enabled && h.series) {
|
|
3259
3259
|
D.clearTimeout(this.hideTimer), this.allowShared = !(!d(y) && y.series && y.series.noSharedTooltip), this.followPointer = !this.split && h.series.tooltipOptions.followPointer, y = this.getAnchor(y, b);
|
|
3260
3260
|
var J = y[0], W = y[1];
|
|
@@ -3294,7 +3294,7 @@ var bn = { exports: {} };
|
|
|
3294
3294
|
v = v === void 0 ? { scrollLeft: 0, scrollTop: 0 } : v;
|
|
3295
3295
|
var x = v.scrollLeft;
|
|
3296
3296
|
v = v.scrollTop;
|
|
3297
|
-
var Z = m.styledMode, K = f.distance, q = f.options, k = f.options.positioner, j = f.outside && typeof W != "number" ?
|
|
3297
|
+
var Z = m.styledMode, K = f.distance, q = f.options, k = f.options.positioner, j = f.outside && typeof W != "number" ? F.documentElement.getBoundingClientRect() : { left: x, right: x + h, top: v, bottom: v + l }, S = f.getLabel(), _ = this.renderer || u.renderer, X = !(!u.xAxis[0] || !u.xAxis[0].opposite);
|
|
3298
3298
|
u = T.getChartPosition();
|
|
3299
3299
|
var $ = u.left;
|
|
3300
3300
|
u = u.top;
|
|
@@ -3381,7 +3381,7 @@ var bn = { exports: {} };
|
|
|
3381
3381
|
}, Q;
|
|
3382
3382
|
}(), t;
|
|
3383
3383
|
}), s(o, "Core/Series/Point.js", [o["Core/Renderer/HTML/AST.js"], o["Core/Animation/AnimationUtilities.js"], o["Core/Defaults.js"], o["Core/FormatUtilities.js"], o["Core/Utilities.js"]], function(t, n, r, R, D) {
|
|
3384
|
-
var Y = n.animObject,
|
|
3384
|
+
var Y = n.animObject, F = r.defaultOptions, E = R.format, I = D.addEvent, G = D.defined, A = D.erase, g = D.extend, p = D.fireEvent, d = D.getNestedProperty, c = D.isArray, C = D.isFunction, L = D.isNumber, O = D.isObject, z = D.merge, U = D.objectEach, Q = D.pick, y = D.syncTimeout, b = D.removeEvent, a = D.uniqueKey;
|
|
3385
3385
|
return n = function() {
|
|
3386
3386
|
function f() {
|
|
3387
3387
|
this.category = void 0, this.formatPrefix = "point", this.id = void 0, this.isNull = !1, this.percentage = this.options = this.name = void 0, this.selected = !1, this.total = this.shapeArgs = this.series = void 0, this.visible = !0, this.x = void 0;
|
|
@@ -3532,13 +3532,13 @@ var bn = { exports: {} };
|
|
|
3532
3532
|
}), u.hoverPoints = u.hoverPoint = null;
|
|
3533
3533
|
}, f.prototype.importEvents = function() {
|
|
3534
3534
|
if (!this.hasImportedEvents) {
|
|
3535
|
-
var u = this, m =
|
|
3535
|
+
var u = this, m = z(u.series.options.point, u.options).events;
|
|
3536
3536
|
u.events = m, U(m, function(h, l) {
|
|
3537
3537
|
C(h) && I(u, l, h);
|
|
3538
3538
|
}), this.hasImportedEvents = !0;
|
|
3539
3539
|
}
|
|
3540
3540
|
}, f.prototype.setState = function(u, m) {
|
|
3541
|
-
var h = this.series, l = this.state, w = h.options.states[u || "normal"] || {}, M =
|
|
3541
|
+
var h = this.series, l = this.state, w = h.options.states[u || "normal"] || {}, M = F.plotOptions[h.type].marker && h.options.marker, B = M && M.enabled === !1, T = M && M.states && M.states[u || "normal"] || {}, J = T.enabled === !1, W = this.marker || {}, v = h.chart, x = M && h.markerAttribs, Z = h.halo, K, q = h.stateMarkerGraphic;
|
|
3542
3542
|
if (u = u || "", !(u === this.state && !m || this.selected && u !== "select" || w.enabled === !1 || u && (J || B && T.enabled === !1) || u && W.states && W.states[u] && W.states[u].enabled === !1)) {
|
|
3543
3543
|
if (this.state = u, x && (K = h.markerAttribs(this, u)), this.graphic && !this.hasMockGraphic) {
|
|
3544
3544
|
if (l && this.graphic.removeClass("highcharts-point-" + l), u && this.graphic.addClass("highcharts-point-" + u), !v.styledMode) {
|
|
@@ -3559,7 +3559,7 @@ var bn = { exports: {} };
|
|
|
3559
3559
|
}, f;
|
|
3560
3560
|
}(), n;
|
|
3561
3561
|
}), s(o, "Core/Pointer.js", [o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Tooltip.js"], o["Core/Utilities.js"]], function(t, n, r, R) {
|
|
3562
|
-
var D = t.parse, Y = n.charts,
|
|
3562
|
+
var D = t.parse, Y = n.charts, F = n.noop, E = R.addEvent, I = R.attr, G = R.css, A = R.defined, g = R.extend, p = R.find, d = R.fireEvent, c = R.isNumber, C = R.isObject, L = R.objectEach, O = R.offset, z = R.pick, U = R.splat;
|
|
3563
3563
|
return t = function() {
|
|
3564
3564
|
function Q(y, b) {
|
|
3565
3565
|
this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = y, this.hasDragged = !1, this.options = b, this.init(y, b);
|
|
@@ -3635,7 +3635,7 @@ var bn = { exports: {} };
|
|
|
3635
3635
|
a = a.yAxis;
|
|
3636
3636
|
var u = y.shapeArgs;
|
|
3637
3637
|
if (f && a) {
|
|
3638
|
-
var m =
|
|
3638
|
+
var m = z(y.clientX, y.plotX), h = y.plotY || 0;
|
|
3639
3639
|
return y.isNode && u && c(u.x) && c(u.y) && (m = u.x, h = u.y), b ? { chartX: a.len + a.pos - h, chartY: f.len + f.pos - m } : { chartX: m + f.pos, chartY: h + a.pos };
|
|
3640
3640
|
}
|
|
3641
3641
|
if (u && u.x && u.y)
|
|
@@ -3656,7 +3656,7 @@ var bn = { exports: {} };
|
|
|
3656
3656
|
var h = [];
|
|
3657
3657
|
f = !(!f || !y);
|
|
3658
3658
|
var l = function(T) {
|
|
3659
|
-
return T.visible && !(!u && T.directTouch) &&
|
|
3659
|
+
return T.visible && !(!u && T.directTouch) && z(T.options.enableMouseTracking, !0);
|
|
3660
3660
|
}, w = { chartX: m ? m.chartX : void 0, chartY: m ? m.chartY : void 0, shared: u };
|
|
3661
3661
|
d(this, "beforeGetHoverData", w);
|
|
3662
3662
|
var M = b && !b.stickyTracking ? [b] : a.filter(function(T) {
|
|
@@ -3692,7 +3692,7 @@ var bn = { exports: {} };
|
|
|
3692
3692
|
}, Q.prototype.init = function(y, b) {
|
|
3693
3693
|
this.options = b, this.chart = y, this.runChartClick = !(!b.chart.events || !b.chart.events.click), this.pinchDown = [], this.lastValidTouch = {}, r && (y.tooltip = new r(y, b.tooltip)), this.setDOMEvents();
|
|
3694
3694
|
}, Q.prototype.normalize = function(y, b) {
|
|
3695
|
-
var a = y.touches, f = a ? a.length ? a.item(0) :
|
|
3695
|
+
var a = y.touches, f = a ? a.length ? a.item(0) : z(a.changedTouches, y.changedTouches)[0] : y;
|
|
3696
3696
|
return b || (b = this.getChartPosition()), a = f.pageX - b.left, f = f.pageY - b.top, a /= b.scaleX, f /= b.scaleY, g(y, { chartX: Math.round(a), chartY: Math.round(f) });
|
|
3697
3697
|
}, Q.prototype.onContainerClick = function(y) {
|
|
3698
3698
|
var b = this.chart, a = b.hoverPoint;
|
|
@@ -3703,7 +3703,7 @@ var bn = { exports: {} };
|
|
|
3703
3703
|
var b = ((y.buttons || y.button) & 1) === 1;
|
|
3704
3704
|
y = this.normalize(y), n.isFirefox && y.button !== 0 && this.onContainerMouseMove(y), (typeof y.button > "u" || b) && (this.zoomOption(y), b && y.preventDefault && y.preventDefault(), this.dragStart(y));
|
|
3705
3705
|
}, Q.prototype.onContainerMouseLeave = function(y) {
|
|
3706
|
-
var b = Y[
|
|
3706
|
+
var b = Y[z(Q.hoverChartIndex, -1)], a = this.chart.tooltip;
|
|
3707
3707
|
y = this.normalize(y), b && (y.relatedTarget || y.toElement) && (b.pointer.reset(), b.pointer.chartPosition = void 0), a && !a.isHidden && this.reset();
|
|
3708
3708
|
}, Q.prototype.onContainerMouseEnter = function(y) {
|
|
3709
3709
|
delete this.chartPosition;
|
|
@@ -3711,7 +3711,7 @@ var bn = { exports: {} };
|
|
|
3711
3711
|
var b = this.chart, a = b.tooltip;
|
|
3712
3712
|
y = this.normalize(y), this.setHoverChartIndex(), y.preventDefault || (y.returnValue = !1), (b.mouseIsDown === "mousedown" || this.touchSelect(y)) && this.drag(y), b.openMenu || !this.inClass(y.target, "highcharts-tracker") && !b.isInsidePlot(y.chartX - b.plotLeft, y.chartY - b.plotTop, { visiblePlotOnly: !0 }) || a && a.shouldStickOnContact(y) || (this.inClass(y.target, "highcharts-no-tooltip") ? this.reset(!1, 0) : this.runPointActions(y));
|
|
3713
3713
|
}, Q.prototype.onDocumentTouchEnd = function(y) {
|
|
3714
|
-
var b = Y[
|
|
3714
|
+
var b = Y[z(Q.hoverChartIndex, -1)];
|
|
3715
3715
|
b && b.pointer.drop(y);
|
|
3716
3716
|
}, Q.prototype.onContainerTouchMove = function(y) {
|
|
3717
3717
|
this.touchSelect(y) ? this.onContainerMouseMove(y) : this.touch(y);
|
|
@@ -3721,11 +3721,11 @@ var bn = { exports: {} };
|
|
|
3721
3721
|
var b = this.chart, a = b.tooltip, f = this.chartPosition;
|
|
3722
3722
|
y = this.normalize(y, f), !f || b.isInsidePlot(y.chartX - b.plotLeft, y.chartY - b.plotTop, { visiblePlotOnly: !0 }) || a && a.shouldStickOnContact(y) || this.inClass(y.target, "highcharts-tracker") || this.reset();
|
|
3723
3723
|
}, Q.prototype.onDocumentMouseUp = function(y) {
|
|
3724
|
-
var b = Y[
|
|
3724
|
+
var b = Y[z(Q.hoverChartIndex, -1)];
|
|
3725
3725
|
b && b.pointer.drop(y);
|
|
3726
3726
|
}, Q.prototype.pinch = function(y) {
|
|
3727
3727
|
var b = this, a = b.chart, f = b.pinchDown, u = y.touches || [], m = u.length, h = b.lastValidTouch, l = b.hasZoom, w = {}, M = m === 1 && (b.inClass(y.target, "highcharts-tracker") && a.runTrackerClick || b.runChartClick), B = {}, T = b.chart.tooltip;
|
|
3728
|
-
T = m === 1 &&
|
|
3728
|
+
T = m === 1 && z(T && T.options.followTouchMove, !0);
|
|
3729
3729
|
var J = b.selectionMarker;
|
|
3730
3730
|
1 < m ? b.initiated = !0 : T && (b.initiated = !1), l && b.initiated && !M && y.cancelable !== !1 && y.preventDefault(), [].map.call(u, function(W) {
|
|
3731
3731
|
return b.normalize(W);
|
|
@@ -3736,7 +3736,7 @@ var bn = { exports: {} };
|
|
|
3736
3736
|
}
|
|
3737
3737
|
), h.x = [f[0].chartX, f[1] && f[1].chartX], h.y = [f[0].chartY, f[1] && f[1].chartY], a.axes.forEach(function(W) {
|
|
3738
3738
|
if (W.zoomEnabled) {
|
|
3739
|
-
var v = a.bounds[W.horiz ? "h" : "v"], x = W.minPixelPadding, Z = W.toPixels(Math.min(
|
|
3739
|
+
var v = a.bounds[W.horiz ? "h" : "v"], x = W.minPixelPadding, Z = W.toPixels(Math.min(z(W.options.min, W.dataMin), W.dataMin)), K = W.toPixels(Math.max(z(W.options.max, W.dataMax), W.dataMax)), q = Math.max(Z, K);
|
|
3740
3740
|
v.min = Math.min(W.pos, Math.min(Z, K) - x), v.max = Math.max(W.pos + W.len, q + x);
|
|
3741
3741
|
}
|
|
3742
3742
|
}), b.res = !0) : T ? this.runPointActions(b.normalize(y)) : f.length && (d(
|
|
@@ -3744,7 +3744,7 @@ var bn = { exports: {} };
|
|
|
3744
3744
|
"touchpan",
|
|
3745
3745
|
{ originalEvent: y },
|
|
3746
3746
|
function() {
|
|
3747
|
-
J || (b.selectionMarker = J = g({ destroy:
|
|
3747
|
+
J || (b.selectionMarker = J = g({ destroy: F, touch: !0 }, a.plotBox)), b.pinchTranslate(f, u, w, J, B, h), b.hasPinched = l, b.scaleGroups(w, B);
|
|
3748
3748
|
}
|
|
3749
3749
|
), b.res && (b.res = !1, this.reset(!1, 0)));
|
|
3750
3750
|
}, Q.prototype.pinchTranslate = function(y, b, a, f, u, m) {
|
|
@@ -3799,7 +3799,7 @@ var bn = { exports: {} };
|
|
|
3799
3799
|
var T = Y[Q.hoverChartIndex];
|
|
3800
3800
|
T && T.pointer.onDocumentMouseMove(B);
|
|
3801
3801
|
}), this.eventsToUnbind.push(this.unDocMouseMove)), f.axes.forEach(function(B) {
|
|
3802
|
-
var T =
|
|
3802
|
+
var T = z((B.crosshair || {}).snap, !0), J;
|
|
3803
3803
|
T && ((J = f.hoverPoint) && J.series[B.coll] === B || (J = p(w, function(W) {
|
|
3804
3804
|
return W.series && W.series[B.coll] === B;
|
|
3805
3805
|
}))), J || !T ? B.drawCrosshair(y, J) : B.hideCrosshair();
|
|
@@ -3819,7 +3819,7 @@ var bn = { exports: {} };
|
|
|
3819
3819
|
})), f = f.parentElement;
|
|
3820
3820
|
n.hasTouch && (this.eventsToUnbind.push(E(b, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 })), this.eventsToUnbind.push(E(b, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), Q.unbindDocumentTouchEnd || (Q.unbindDocumentTouchEnd = E(a, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })));
|
|
3821
3821
|
}, Q.prototype.setHoverChartIndex = function() {
|
|
3822
|
-
var y = this.chart, b = n.charts[
|
|
3822
|
+
var y = this.chart, b = n.charts[z(Q.hoverChartIndex, -1)];
|
|
3823
3823
|
b && b !== y && b.pointer.onContainerMouseLeave({ relatedTarget: y.container }), b && b.mouseIsDown || (Q.hoverChartIndex = y.index);
|
|
3824
3824
|
}, Q.prototype.touch = function(y, b) {
|
|
3825
3825
|
var a = this.chart;
|
|
@@ -3829,7 +3829,7 @@ var bn = { exports: {} };
|
|
|
3829
3829
|
b = this.pinchDown;
|
|
3830
3830
|
var f = b[0] ? 4 <= Math.sqrt(Math.pow(b[0].chartX - y.chartX, 2) + Math.pow(b[0].chartY - y.chartY, 2)) : !1;
|
|
3831
3831
|
}
|
|
3832
|
-
|
|
3832
|
+
z(f, !0) && this.pinch(y);
|
|
3833
3833
|
} else
|
|
3834
3834
|
b && this.reset();
|
|
3835
3835
|
else
|
|
@@ -3840,63 +3840,63 @@ var bn = { exports: {} };
|
|
|
3840
3840
|
var b = this.chart, a = b.options.chart;
|
|
3841
3841
|
b = b.inverted;
|
|
3842
3842
|
var f = a.zooming.type || "";
|
|
3843
|
-
/touch/.test(y.type) && (f =
|
|
3843
|
+
/touch/.test(y.type) && (f = z(a.zooming.pinchType, f)), this.zoomX = y = /x/.test(f), this.zoomY = a = /y/.test(f), this.zoomHor = y && !b || a && b, this.zoomVert = a && !b || y && b, this.hasZoom = y || a;
|
|
3844
3844
|
}, Q;
|
|
3845
3845
|
}(), t;
|
|
3846
3846
|
}), s(o, "Core/MSPointer.js", [o["Core/Globals.js"], o["Core/Pointer.js"], o["Core/Utilities.js"]], function(t, n, r) {
|
|
3847
3847
|
function R() {
|
|
3848
3848
|
var O = [];
|
|
3849
|
-
return O.item = function(
|
|
3850
|
-
return this[
|
|
3851
|
-
}, p(C, function(
|
|
3852
|
-
O.push({ pageX:
|
|
3849
|
+
return O.item = function(z) {
|
|
3850
|
+
return this[z];
|
|
3851
|
+
}, p(C, function(z) {
|
|
3852
|
+
O.push({ pageX: z.pageX, pageY: z.pageY, target: z.target });
|
|
3853
3853
|
}), O;
|
|
3854
3854
|
}
|
|
3855
|
-
function D(O,
|
|
3856
|
-
var y =
|
|
3857
|
-
O.pointerType !== "touch" && O.pointerType !== O.MSPOINTER_TYPE_TOUCH || !y || (y = y.pointer, Q(O), y[
|
|
3855
|
+
function D(O, z, U, Q) {
|
|
3856
|
+
var y = F[n.hoverChartIndex || NaN];
|
|
3857
|
+
O.pointerType !== "touch" && O.pointerType !== O.MSPOINTER_TYPE_TOUCH || !y || (y = y.pointer, Q(O), y[z]({ type: U, target: O.currentTarget, preventDefault: I, touches: R() }));
|
|
3858
3858
|
}
|
|
3859
3859
|
var Y = this && this.__extends || function() {
|
|
3860
|
-
var O = function(
|
|
3860
|
+
var O = function(z, U) {
|
|
3861
3861
|
return O = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(Q, y) {
|
|
3862
3862
|
Q.__proto__ = y;
|
|
3863
3863
|
} || function(Q, y) {
|
|
3864
3864
|
for (var b in y)
|
|
3865
3865
|
y.hasOwnProperty(b) && (Q[b] = y[b]);
|
|
3866
|
-
}, O(
|
|
3866
|
+
}, O(z, U);
|
|
3867
3867
|
};
|
|
3868
|
-
return function(
|
|
3868
|
+
return function(z, U) {
|
|
3869
3869
|
function Q() {
|
|
3870
|
-
this.constructor =
|
|
3870
|
+
this.constructor = z;
|
|
3871
3871
|
}
|
|
3872
|
-
O(
|
|
3872
|
+
O(z, U), z.prototype = U === null ? Object.create(U) : (Q.prototype = U.prototype, new Q());
|
|
3873
3873
|
};
|
|
3874
|
-
}(),
|
|
3874
|
+
}(), F = t.charts, E = t.doc, I = t.noop, G = t.win, A = r.addEvent, g = r.css, p = r.objectEach, d = r.pick, c = r.removeEvent, C = {}, L = !!G.PointerEvent;
|
|
3875
3875
|
return function(O) {
|
|
3876
|
-
function
|
|
3876
|
+
function z() {
|
|
3877
3877
|
return O !== null && O.apply(this, arguments) || this;
|
|
3878
3878
|
}
|
|
3879
|
-
return Y(
|
|
3879
|
+
return Y(z, O), z.isRequired = function() {
|
|
3880
3880
|
return !(t.hasTouch || !G.PointerEvent && !G.MSPointerEvent);
|
|
3881
|
-
},
|
|
3881
|
+
}, z.prototype.batchMSEvents = function(U) {
|
|
3882
3882
|
U(this.chart.container, L ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), U(this.chart.container, L ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), U(E, L ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
|
|
3883
|
-
},
|
|
3883
|
+
}, z.prototype.destroy = function() {
|
|
3884
3884
|
this.batchMSEvents(c), O.prototype.destroy.call(this);
|
|
3885
|
-
},
|
|
3885
|
+
}, z.prototype.init = function(U, Q) {
|
|
3886
3886
|
O.prototype.init.call(
|
|
3887
3887
|
this,
|
|
3888
3888
|
U,
|
|
3889
3889
|
Q
|
|
3890
3890
|
), this.hasZoom && g(U.container, { "-ms-touch-action": "none", "touch-action": "none" });
|
|
3891
|
-
},
|
|
3891
|
+
}, z.prototype.onContainerPointerDown = function(U) {
|
|
3892
3892
|
D(U, "onContainerTouchStart", "touchstart", function(Q) {
|
|
3893
3893
|
C[Q.pointerId] = { pageX: Q.pageX, pageY: Q.pageY, target: Q.currentTarget };
|
|
3894
3894
|
});
|
|
3895
|
-
},
|
|
3895
|
+
}, z.prototype.onContainerPointerMove = function(U) {
|
|
3896
3896
|
D(U, "onContainerTouchMove", "touchmove", function(Q) {
|
|
3897
3897
|
C[Q.pointerId] = { pageX: Q.pageX, pageY: Q.pageY }, C[Q.pointerId].target || (C[Q.pointerId].target = Q.currentTarget);
|
|
3898
3898
|
});
|
|
3899
|
-
},
|
|
3899
|
+
}, z.prototype.onDocumentPointerUp = function(U) {
|
|
3900
3900
|
D(
|
|
3901
3901
|
U,
|
|
3902
3902
|
"onDocumentTouchEnd",
|
|
@@ -3905,13 +3905,13 @@ var bn = { exports: {} };
|
|
|
3905
3905
|
delete C[Q.pointerId];
|
|
3906
3906
|
}
|
|
3907
3907
|
);
|
|
3908
|
-
},
|
|
3908
|
+
}, z.prototype.setDOMEvents = function() {
|
|
3909
3909
|
var U = this.chart.tooltip;
|
|
3910
3910
|
O.prototype.setDOMEvents.call(this), (this.hasZoom || d(U && U.options.followTouchMove, !0)) && this.batchMSEvents(A);
|
|
3911
|
-
},
|
|
3911
|
+
}, z;
|
|
3912
3912
|
}(n);
|
|
3913
3913
|
}), s(o, "Core/Legend/Legend.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/FormatUtilities.js"], o["Core/Globals.js"], o["Core/Series/Point.js"], o["Core/Renderer/RendererUtilities.js"], o["Core/Utilities.js"]], function(t, n, r, R, D, Y) {
|
|
3914
|
-
var
|
|
3914
|
+
var F = t.animObject, E = t.setAnimation, I = n.format, G = r.marginNames, A = D.distribute, g = Y.addEvent, p = Y.createElement, d = Y.css, c = Y.defined, C = Y.discardElement, L = Y.find, O = Y.fireEvent, z = Y.isNumber, U = Y.merge, Q = Y.pick, y = Y.relativeLength, b = Y.stableSort, a = Y.syncTimeout;
|
|
3915
3915
|
return t = function() {
|
|
3916
3916
|
function f(u, m) {
|
|
3917
3917
|
this.allItems = [], this.contentGroup = this.box = void 0, this.display = !1, this.group = void 0, this.offsetWidth = this.maxLegendWidth = this.maxItemWidth = this.legendWidth = this.legendHeight = this.lastLineHeight = this.lastItemY = this.itemY = this.itemX = this.itemMarginTop = this.itemMarginBottom = this.itemHeight = this.initialItemY = 0, this.options = void 0, this.padding = 0, this.pages = [], this.proximate = !1, this.scrollGroup = void 0, this.widthOption = this.totalItemWidth = this.titleHeight = this.symbolWidth = this.symbolHeight = 0, this.chart = u, this.init(u, m);
|
|
@@ -4010,7 +4010,7 @@ var bn = { exports: {} };
|
|
|
4010
4010
|
var J, W = h;
|
|
4011
4011
|
if (T.yAxis) {
|
|
4012
4012
|
T.xAxis.options.reversed && (W = !W), T.points && (J = L(W ? T.points : T.points.slice(0).reverse(), function(x) {
|
|
4013
|
-
return
|
|
4013
|
+
return z(x.plotY);
|
|
4014
4014
|
})), W = this.itemMarginTop + T.legendItem.label.getBBox().height + this.itemMarginBottom;
|
|
4015
4015
|
var v = T.yAxis.top - u.plotTop;
|
|
4016
4016
|
T.visible ? (J = J ? J.plotY : T.yAxis.height, J += v - 0.3 * W) : J = v + T.yAxis.height, m.push({ target: J, size: W, item: T });
|
|
@@ -4018,7 +4018,7 @@ var bn = { exports: {} };
|
|
|
4018
4018
|
}, this);
|
|
4019
4019
|
for (var l, w = 0, M = A(m, u.plotHeight); w < M.length; w++) {
|
|
4020
4020
|
var B = M[w];
|
|
4021
|
-
l = B.item.legendItem || {},
|
|
4021
|
+
l = B.item.legendItem || {}, z(B.pos) && (l.y = u.plotTop - u.spacing[0] + B.pos);
|
|
4022
4022
|
}
|
|
4023
4023
|
}, f.prototype.render = function() {
|
|
4024
4024
|
var u = this.chart, m = u.renderer, h = this.options, l = this.padding, w = this.getAllItems(), M = this.group, B = this.box;
|
|
@@ -4056,7 +4056,7 @@ var bn = { exports: {} };
|
|
|
4056
4056
|
x.attr({ class: v === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
|
|
4057
4057
|
}), J.attr({ text: v + "/" + M }), [this.down, this.downTracker].forEach(function(x) {
|
|
4058
4058
|
x.attr({ x: 18 + this.pager.getBBox().width, class: v === M ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
|
|
4059
|
-
}, this), l.styledMode || (this.up.attr({ fill: v === 1 ? T.inactiveColor : T.activeColor }), this.upTracker.css({ cursor: v === 1 ? "default" : "pointer" }), this.down.attr({ fill: v === M ? T.inactiveColor : T.activeColor }), this.downTracker.css({ cursor: v === M ? "default" : "pointer" })), this.scrollOffset = -w[v - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = v, this.positionCheckboxes(), u =
|
|
4059
|
+
}, this), l.styledMode || (this.up.attr({ fill: v === 1 ? T.inactiveColor : T.activeColor }), this.upTracker.css({ cursor: v === 1 ? "default" : "pointer" }), this.down.attr({ fill: v === M ? T.inactiveColor : T.activeColor }), this.downTracker.css({ cursor: v === M ? "default" : "pointer" })), this.scrollOffset = -w[v - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = v, this.positionCheckboxes(), u = F(Q(m, l.renderer.globalAnimation, !0)), a(function() {
|
|
4060
4060
|
O(h, "afterScroll", { currentPage: v });
|
|
4061
4061
|
}, u.duration));
|
|
4062
4062
|
}, f.prototype.setItemEvents = function(u, m, h) {
|
|
@@ -4087,7 +4087,7 @@ var bn = { exports: {} };
|
|
|
4087
4087
|
}, f;
|
|
4088
4088
|
}(), t;
|
|
4089
4089
|
}), s(o, "Core/Series/SeriesRegistry.js", [o["Core/Globals.js"], o["Core/Defaults.js"], o["Core/Series/Point.js"], o["Core/Utilities.js"]], function(t, n, r, R) {
|
|
4090
|
-
var D = n.defaultOptions, Y = R.extendClass,
|
|
4090
|
+
var D = n.defaultOptions, Y = R.extendClass, F = R.merge, E;
|
|
4091
4091
|
return function(I) {
|
|
4092
4092
|
function G(A, g) {
|
|
4093
4093
|
var p = D.plotOptions || {}, d = g.defaultOptions, c = g.prototype;
|
|
@@ -4095,7 +4095,7 @@ var bn = { exports: {} };
|
|
|
4095
4095
|
}
|
|
4096
4096
|
I.seriesTypes = t.seriesTypes, I.registerSeriesType = G, I.seriesType = function(A, g, p, d, c) {
|
|
4097
4097
|
var C = D.plotOptions || {};
|
|
4098
|
-
return g = g || "", C[A] =
|
|
4098
|
+
return g = g || "", C[A] = F(C[g], p), G(A, Y(I.seriesTypes[g] || function() {
|
|
4099
4099
|
}, d)), I.seriesTypes[A].prototype.type = A, c && (I.seriesTypes[A].prototype.pointClass = Y(r, c)), I.seriesTypes[A];
|
|
4100
4100
|
};
|
|
4101
4101
|
}(E || (E = {})), E;
|
|
@@ -4115,8 +4115,8 @@ var bn = { exports: {} };
|
|
|
4115
4115
|
o["Core/Time.js"],
|
|
4116
4116
|
o["Core/Utilities.js"],
|
|
4117
4117
|
o["Core/Renderer/HTML/AST.js"]
|
|
4118
|
-
], function(t, n, r, R, D, Y,
|
|
4119
|
-
var C = t.animate, L = t.animObject, O = t.setAnimation,
|
|
4118
|
+
], function(t, n, r, R, D, Y, F, E, I, G, A, g, p, d, c) {
|
|
4119
|
+
var C = t.animate, L = t.animObject, O = t.setAnimation, z = r.defaultOptions, U = r.defaultTime, Q = R.numberFormat, y = D.registerEventOptions, b = Y.charts, a = Y.doc, f = Y.marginNames, u = Y.svg, m = Y.win, h = A.seriesTypes, l = d.addEvent, w = d.attr, M = d.cleanRecursively, B = d.createElement, T = d.css, J = d.defined, W = d.discardElement, v = d.erase, x = d.error, Z = d.extend, K = d.find, q = d.fireEvent, k = d.getStyle, j = d.isArray, S = d.isNumber, _ = d.isObject, X = d.isString, $ = d.merge, ie = d.objectEach, se = d.pick, re = d.pInt, pe = d.relativeLength, fe = d.removeEvent, ue = d.splat, de = d.syncTimeout, we = d.uniqueKey;
|
|
4120
4120
|
return t = function() {
|
|
4121
4121
|
function le(ee, te, ae) {
|
|
4122
4122
|
this.series = this.renderTo = this.renderer = this.pointer = this.pointCount = this.plotWidth = this.plotTop = this.plotLeft = this.plotHeight = this.plotBox = this.options = this.numberFormatter = this.margin = this.legend = this.labelCollectors = this.isResizing = this.index = this.eventOptions = this.container = this.colorCounter = this.clipBox = this.chartWidth = this.chartHeight = this.bounds = this.axisOffset = this.axes = void 0, this.sharedClips = {}, this.yAxis = this.xAxis = this.userOptions = this.titleOffset = this.time = this.symbolCounter = this.spacingBox = this.spacing = void 0, this.getArgs(
|
|
@@ -4132,7 +4132,7 @@ var bn = { exports: {} };
|
|
|
4132
4132
|
}, le.prototype.init = function(ee, te) {
|
|
4133
4133
|
var ae = ee.plotOptions || {};
|
|
4134
4134
|
q(this, "init", { args: arguments }, function() {
|
|
4135
|
-
var he = $(
|
|
4135
|
+
var he = $(z, ee), ce = he.chart;
|
|
4136
4136
|
ie(he.plotOptions, function(Ee, Ge) {
|
|
4137
4137
|
_(Ee) && (Ee.tooltip = ae[Ge] && $(ae[Ge].tooltip) || void 0);
|
|
4138
4138
|
}), he.tooltip.userOptions = ee.chart && ee.chart.forExport && ee.tooltip.userOptions || ee.tooltip, this.userOptions = ee, this.margin = [], this.spacing = [], this.bounds = {
|
|
@@ -4381,7 +4381,7 @@ var bn = { exports: {} };
|
|
|
4381
4381
|
Qe.visible && Qe.render();
|
|
4382
4382
|
});
|
|
4383
4383
|
}, Ae = 0;
|
|
4384
|
-
this.setTitle(), this.legend = new
|
|
4384
|
+
this.setTitle(), this.legend = new F(this, he.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), he = this.plotWidth, ee.some(function(Be) {
|
|
4385
4385
|
if (Be.horiz && Be.visible && Be.options.labels.enabled && Be.series.length)
|
|
4386
4386
|
return Ae = 21, !0;
|
|
4387
4387
|
});
|
|
@@ -4499,7 +4499,7 @@ var bn = { exports: {} };
|
|
|
4499
4499
|
function ee() {
|
|
4500
4500
|
te.zoomOut();
|
|
4501
4501
|
}
|
|
4502
|
-
var te = this, ae =
|
|
4502
|
+
var te = this, ae = z.lang, he = te.options.chart.zooming.resetButton, ce = he.theme, Ae = he.relativeTo === "chart" || he.relativeTo === "spacingBox" ? null : "scrollablePlotBox";
|
|
4503
4503
|
q(this, "beforeShowResetZoom", null, function() {
|
|
4504
4504
|
te.resetZoomButton = te.renderer.button(ae.resetZoom, null, null, ee, ce).attr({ align: he.position.align, title: ae.resetZoomTitle }).addClass("highcharts-reset-zoom").add().align(he.position, !1, Ae);
|
|
4505
4505
|
}), q(this, "afterShowResetZoom");
|
|
@@ -4556,15 +4556,15 @@ var bn = { exports: {} };
|
|
|
4556
4556
|
}), s(o, "Core/Legend/LegendSymbol.js", [o["Core/Utilities.js"]], function(t) {
|
|
4557
4557
|
var n = t.extend, r = t.merge, R = t.pick, D;
|
|
4558
4558
|
return function(Y) {
|
|
4559
|
-
Y.drawLineMarker = function(
|
|
4560
|
-
var E = this.legendItem = this.legendItem || {}, I = this.options, G =
|
|
4561
|
-
|
|
4559
|
+
Y.drawLineMarker = function(F) {
|
|
4560
|
+
var E = this.legendItem = this.legendItem || {}, I = this.options, G = F.symbolWidth, A = F.symbolHeight, g = A / 2, p = this.chart.renderer, d = E.group;
|
|
4561
|
+
F = F.baseline - Math.round(0.3 * F.fontMetrics.b);
|
|
4562
4562
|
var c = {}, C = I.marker, L = 0;
|
|
4563
|
-
this.chart.styledMode || (c = { "stroke-width": Math.min(I.lineWidth || 0, 24) }, I.dashStyle ? c.dashstyle = I.dashStyle : I.linecap !== "square" && (c["stroke-linecap"] = "round")), E.line = p.path().addClass("highcharts-graph").attr(c).add(d), c["stroke-linecap"] && (L = Math.min(E.line.strokeWidth(), G) / 2), E.line.attr({ d: [["M", L,
|
|
4564
|
-
}, Y.drawRectangle = function(
|
|
4563
|
+
this.chart.styledMode || (c = { "stroke-width": Math.min(I.lineWidth || 0, 24) }, I.dashStyle ? c.dashstyle = I.dashStyle : I.linecap !== "square" && (c["stroke-linecap"] = "round")), E.line = p.path().addClass("highcharts-graph").attr(c).add(d), c["stroke-linecap"] && (L = Math.min(E.line.strokeWidth(), G) / 2), E.line.attr({ d: [["M", L, F], ["L", G - L, F]] }), C && C.enabled !== !1 && G && (I = Math.min(R(C.radius, g), g), this.symbol.indexOf("url") === 0 && (C = r(C, { width: A, height: A }), I = 0), E.symbol = E = p.symbol(this.symbol, G / 2 - I, F - I, 2 * I, 2 * I, n({ context: "legend" }, C)).addClass("highcharts-point").add(d), E.isMarker = !0);
|
|
4564
|
+
}, Y.drawRectangle = function(F, E) {
|
|
4565
4565
|
E = E.legendItem || {};
|
|
4566
|
-
var I =
|
|
4567
|
-
E.symbol = this.chart.renderer.rect(G ? (
|
|
4566
|
+
var I = F.symbolHeight, G = F.options.squareSymbol;
|
|
4567
|
+
E.symbol = this.chart.renderer.rect(G ? (F.symbolWidth - I) / 2 : 0, F.baseline - I + 1, G ? I : F.symbolWidth, I, R(F.options.symbolRadius, I / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(E.group);
|
|
4568
4568
|
};
|
|
4569
4569
|
}(D || (D = {})), D;
|
|
4570
4570
|
}), s(o, "Core/Series/SeriesDefaults.js", [], function() {
|
|
@@ -4607,8 +4607,8 @@ var bn = { exports: {} };
|
|
|
4607
4607
|
o["Core/Series/SeriesRegistry.js"],
|
|
4608
4608
|
o["Core/Renderer/SVG/SVGElement.js"],
|
|
4609
4609
|
o["Core/Utilities.js"]
|
|
4610
|
-
], function(t, n, r, R, D, Y,
|
|
4611
|
-
var A = t.animObject, g = t.setAnimation, p = n.defaultOptions, d = r.registerEventOptions, c = R.hasTouch, C = R.svg, L = R.win, O = E.seriesTypes,
|
|
4610
|
+
], function(t, n, r, R, D, Y, F, E, I, G) {
|
|
4611
|
+
var A = t.animObject, g = t.setAnimation, p = n.defaultOptions, d = r.registerEventOptions, c = R.hasTouch, C = R.svg, L = R.win, O = E.seriesTypes, z = G.arrayMax, U = G.arrayMin, Q = G.clamp, y = G.cleanRecursively, b = G.correctFloat, a = G.defined, f = G.erase, u = G.error, m = G.extend, h = G.find, l = G.fireEvent, w = G.getNestedProperty, M = G.isArray, B = G.isNumber, T = G.isString, J = G.merge, W = G.objectEach, v = G.pick, x = G.removeEvent, Z = G.splat, K = G.syncTimeout;
|
|
4612
4612
|
return t = function() {
|
|
4613
4613
|
function q() {
|
|
4614
4614
|
this.zones = this.yAxis = this.xAxis = this.userOptions = this.tooltipOptions = this.processedYData = this.processedXData = this.points = this.options = this.linkedSeries = this.index = this.eventsToUnbind = this.eventOptions = this.data = this.chart = this._i = void 0;
|
|
@@ -4728,7 +4728,7 @@ var bn = { exports: {} };
|
|
|
4728
4728
|
de && (de.touched = !1);
|
|
4729
4729
|
}), ue ? ($.forEach(function(de) {
|
|
4730
4730
|
this.addPoint(de, !1, null, null, !1);
|
|
4731
|
-
}, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement =
|
|
4731
|
+
}, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = z(this.xData), this.autoIncrement()), !0) : !1;
|
|
4732
4732
|
}, q.prototype.setData = function(k, j, S, _) {
|
|
4733
4733
|
j === void 0 && (j = !0);
|
|
4734
4734
|
var X = this, $ = X.points, ie = $ && $.length || 0, se = X.options, re = X.chart, pe = se.dataSorting, fe = X.xAxis, ue = se.turboThreshold, de = this.xData, we = this.yData, le = X.pointArrayMap;
|
|
@@ -4850,7 +4850,7 @@ var bn = { exports: {} };
|
|
|
4850
4850
|
ue !== ie || se || (ue += $), de[ue] && (de[ue].destroyElements(), de[ue].plotX = void 0);
|
|
4851
4851
|
this.data = de, this.points = pe, l(this, "afterGeneratePoints");
|
|
4852
4852
|
}, q.prototype.getXExtremes = function(k) {
|
|
4853
|
-
return { min: U(k), max:
|
|
4853
|
+
return { min: U(k), max: z(k) };
|
|
4854
4854
|
}, q.prototype.getExtremes = function(k, j) {
|
|
4855
4855
|
var S = this.xAxis, _ = this.yAxis, X = this.processedXData || this.xData, $ = [], ie = this.requireSorting ? this.cropShoulder : 0;
|
|
4856
4856
|
_ = _ ? _.positiveValuesOnly : !1;
|
|
@@ -4872,7 +4872,7 @@ var bn = { exports: {} };
|
|
|
4872
4872
|
else
|
|
4873
4873
|
$[fe++] = de;
|
|
4874
4874
|
}
|
|
4875
|
-
return k = { activeYData: $, dataMin: U($), dataMax:
|
|
4875
|
+
return k = { activeYData: $, dataMin: U($), dataMax: z($) }, l(this, "afterGetExtremes", { dataExtremes: k }), k;
|
|
4876
4876
|
}, q.prototype.applyExtremes = function() {
|
|
4877
4877
|
var k = this.getExtremes();
|
|
4878
4878
|
return this.dataMin = k.dataMin, this.dataMax = k.dataMax, k;
|
|
@@ -5160,7 +5160,7 @@ var bn = { exports: {} };
|
|
|
5160
5160
|
this.selected = k = this.options.selected = typeof k > "u" ? !this.selected : k, this.checkbox && (this.checkbox.checked = k), l(this, k ? "select" : "unselect");
|
|
5161
5161
|
}, q.prototype.shouldShowTooltip = function(k, j, S) {
|
|
5162
5162
|
return S === void 0 && (S = {}), S.series = this, S.visiblePlotOnly = !0, this.chart.isInsidePlot(k, j, S);
|
|
5163
|
-
}, q.defaultOptions =
|
|
5163
|
+
}, q.defaultOptions = F, q.types = E.seriesTypes, q.registerType = E.registerSeriesType, q;
|
|
5164
5164
|
}(), m(t.prototype, { axisTypes: ["xAxis", "yAxis"], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: D.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: Y, requireSorting: !0, sorted: !0 }), E.series = t, t;
|
|
5165
5165
|
}), s(o, "Extensions/ScrollablePlotArea.js", [
|
|
5166
5166
|
o["Core/Animation/AnimationUtilities.js"],
|
|
@@ -5170,7 +5170,7 @@ var bn = { exports: {} };
|
|
|
5170
5170
|
o["Core/Renderer/RendererRegistry.js"],
|
|
5171
5171
|
o["Core/Utilities.js"]
|
|
5172
5172
|
], function(t, n, r, R, D, Y) {
|
|
5173
|
-
var
|
|
5173
|
+
var F = t.stop, E = Y.addEvent, I = Y.createElement, G = Y.defined, A = Y.merge, g = Y.pick;
|
|
5174
5174
|
E(r, "afterSetChartSize", function(p) {
|
|
5175
5175
|
var d = this.options.chart.scrollablePlotArea, c = d && d.minWidth;
|
|
5176
5176
|
if (d = d && d.minHeight, !this.renderer.forExport) {
|
|
@@ -5183,10 +5183,10 @@ var bn = { exports: {} };
|
|
|
5183
5183
|
d && (this.scrollablePixelsY = c = Math.max(0, d - this.chartHeight), G(c) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = A(this.plotBox), this.plotBox.height = this.plotHeight += c, this.inverted ? this.clipBox.width += c : this.clipBox.height += c, C = { 2: { name: "bottom", value: c } }));
|
|
5184
5184
|
C && !p.skipAxes && this.axes.forEach(function(L) {
|
|
5185
5185
|
C[L.side] ? L.getPlotLinePath = function() {
|
|
5186
|
-
var O = C[L.side].name,
|
|
5187
|
-
this[O] =
|
|
5186
|
+
var O = C[L.side].name, z = this[O];
|
|
5187
|
+
this[O] = z - C[L.side].value;
|
|
5188
5188
|
var U = n.prototype.getPlotLinePath.apply(this, arguments);
|
|
5189
|
-
return this[O] =
|
|
5189
|
+
return this[O] = z, U;
|
|
5190
5190
|
} : (L.setAxisSize(), L.setAxisTranslation());
|
|
5191
5191
|
});
|
|
5192
5192
|
}
|
|
@@ -5208,7 +5208,7 @@ var bn = { exports: {} };
|
|
|
5208
5208
|
});
|
|
5209
5209
|
}, r.prototype.applyFixed = function() {
|
|
5210
5210
|
var p = !this.fixedDiv, d = this.options.chart, c = d.scrollablePlotArea, C = D.getRendererType();
|
|
5211
|
-
p ? (this.fixedDiv = I("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (d.style && d.style.zIndex || 0) + 2, top: 0 }, null, !0), this.scrollingContainer && this.scrollingContainer.parentNode.insertBefore(this.fixedDiv, this.scrollingContainer), this.renderTo.style.overflow = "visible", this.fixedRenderer = d = new C(this.fixedDiv, this.chartWidth, this.chartHeight, this.options.chart.style), this.scrollableMask = d.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": g(c.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), E(this, "afterShowResetZoom", this.moveFixedElements), E(this, "afterApplyDrilldown", this.moveFixedElements), E(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || p) && (this.scrollableDirty = !1, this.moveFixedElements()), d = this.chartWidth + (this.scrollablePixelsX || 0), C = this.chartHeight + (this.scrollablePixelsY || 0),
|
|
5211
|
+
p ? (this.fixedDiv = I("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (d.style && d.style.zIndex || 0) + 2, top: 0 }, null, !0), this.scrollingContainer && this.scrollingContainer.parentNode.insertBefore(this.fixedDiv, this.scrollingContainer), this.renderTo.style.overflow = "visible", this.fixedRenderer = d = new C(this.fixedDiv, this.chartWidth, this.chartHeight, this.options.chart.style), this.scrollableMask = d.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": g(c.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), E(this, "afterShowResetZoom", this.moveFixedElements), E(this, "afterApplyDrilldown", this.moveFixedElements), E(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || p) && (this.scrollableDirty = !1, this.moveFixedElements()), d = this.chartWidth + (this.scrollablePixelsX || 0), C = this.chartHeight + (this.scrollablePixelsY || 0), F(this.container), this.container.style.width = d + "px", this.container.style.height = C + "px", this.renderer.boxWrapper.attr({ width: d, height: C, viewBox: [0, 0, d, C].join(" ") }), this.chartBackground.attr({ width: d, height: C }), this.scrollingContainer.style.height = this.chartHeight + "px", p && (c.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * c.scrollPositionX), c.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * c.scrollPositionY)), C = this.axisOffset, p = this.plotTop - C[0] - 1, c = this.plotLeft - C[3] - 1, d = this.plotTop + this.plotHeight + C[2] + 1, C = this.plotLeft + this.plotWidth + C[1] + 1;
|
|
5212
5212
|
var L = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), O = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
|
|
5213
5213
|
p = this.scrollablePixelsX ? [["M", 0, p], ["L", this.plotLeft - 1, p], ["L", this.plotLeft - 1, d], ["L", 0, d], ["Z"], ["M", L, p], ["L", this.chartWidth, p], ["L", this.chartWidth, d], ["L", L, d], ["Z"]] : this.scrollablePixelsY ? [["M", c, 0], ["L", c, this.plotTop - 1], ["L", C, this.plotTop - 1], ["L", C, 0], ["Z"], ["M", c, O], ["L", c, this.chartHeight], ["L", C, this.chartHeight], ["L", C, O], ["Z"]] : [["M", 0, 0]], this.redrawTrigger !== "adjustHeight" && this.scrollableMask.attr({ d: p });
|
|
5214
5214
|
}, E(n, "afterInit", function() {
|
|
@@ -5217,7 +5217,7 @@ var bn = { exports: {} };
|
|
|
5217
5217
|
this.chart.scrollableDirty = !0;
|
|
5218
5218
|
});
|
|
5219
5219
|
}), s(o, "Core/Axis/Stacking/StackItem.js", [o["Core/FormatUtilities.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(t, n, r) {
|
|
5220
|
-
var R = t.format, D = n.series, Y = r.destroyObjectProperties,
|
|
5220
|
+
var R = t.format, D = n.series, Y = r.destroyObjectProperties, F = r.pick, E = r.isNumber;
|
|
5221
5221
|
return t = function() {
|
|
5222
5222
|
function I(G, A, g, p, d) {
|
|
5223
5223
|
var c = G.chart.inverted, C = G.reversed;
|
|
@@ -5230,16 +5230,16 @@ var bn = { exports: {} };
|
|
|
5230
5230
|
);
|
|
5231
5231
|
}, I.prototype.render = function(G) {
|
|
5232
5232
|
var A = this.axis.chart, g = this.options, p = g.format;
|
|
5233
|
-
p = p ? R(p, this, A) : g.formatter.call(this), this.label ? this.label.attr({ text: p, visibility: "hidden" }) : (this.label = A.renderer.label(p, null, void 0, g.shape, void 0, void 0, g.useHTML, !1, "stack-labels"), p = { r: g.borderRadius || 0, text: p, padding:
|
|
5233
|
+
p = p ? R(p, this, A) : g.formatter.call(this), this.label ? this.label.attr({ text: p, visibility: "hidden" }) : (this.label = A.renderer.label(p, null, void 0, g.shape, void 0, void 0, g.useHTML, !1, "stack-labels"), p = { r: g.borderRadius || 0, text: p, padding: F(g.padding, 5), visibility: "hidden" }, A.styledMode || (p.fill = g.backgroundColor, p.stroke = g.borderColor, p["stroke-width"] = g.borderWidth, this.label.css(g.style || {})), this.label.attr(p), this.label.added || this.label.add(G)), this.label.labelrank = A.plotSizeY;
|
|
5234
5234
|
}, I.prototype.setOffset = function(G, A, g, p, d, c) {
|
|
5235
|
-
var C = this.alignOptions, L = this.axis, O = this.label,
|
|
5236
|
-
G = this.getStackBox({ xOffset: G, width: A, boxBottom: g, boxTop: p, defaultX: d, xAxis: c }), d = C.verticalAlign, O && G && (A = O.getBBox(), g = O.padding, p = z
|
|
5235
|
+
var C = this.alignOptions, L = this.axis, O = this.label, z = this.options, U = this.textAlign, Q = L.chart;
|
|
5236
|
+
G = this.getStackBox({ xOffset: G, width: A, boxBottom: g, boxTop: p, defaultX: d, xAxis: c }), d = C.verticalAlign, O && G && (A = O.getBBox(), g = O.padding, p = F(z.overflow, "justify") === "justify", C.x = z.x || 0, C.y = z.y || 0, d = this.adjustStackPosition({ labelBox: A, verticalAlign: d, textAlign: U }), U = d.x, d = d.y, G.x -= U, G.y -= d, O.align(C, !1, G), (U = Q.isInsidePlot(O.alignAttr.x + C.x + U, O.alignAttr.y + C.y + d)) || (p = !1), p && D.prototype.justifyDataLabel.call(L, O, C, O.alignAttr, A, G), O.attr({ x: O.alignAttr.x, y: O.alignAttr.y, rotation: z.rotation, rotationOriginX: A.width / 2, rotationOriginY: A.height / 2 }), F(!p && z.crop, !0) && (U = E(O.x) && E(O.y) && Q.isInsidePlot(O.x - g + O.width, O.y) && Q.isInsidePlot(O.x + g, O.y)), O[U ? "show" : "hide"]());
|
|
5237
5237
|
}, I.prototype.adjustStackPosition = function(G) {
|
|
5238
5238
|
var A = G.labelBox, g = { bottom: 0, middle: 1, top: 2, right: 1, center: 0, left: -1 };
|
|
5239
5239
|
return { x: A.width / 2 + A.width / 2 * g[G.textAlign], y: A.height / 2 * g[G.verticalAlign] };
|
|
5240
5240
|
}, I.prototype.getStackBox = function(G) {
|
|
5241
5241
|
var A = this.axis, g = A.chart, p = G.boxTop, d = G.defaultX, c = G.xOffset, C = G.width, L = G.boxBottom;
|
|
5242
|
-
return p = A.stacking.usePercentage ? 100 :
|
|
5242
|
+
return p = A.stacking.usePercentage ? 100 : F(p, this.total, 0), p = A.toPixels(p), G = F(d, (G.xAxis || g.xAxis[0]).toPixels(this.x)) + c, A = A.toPixels(L || 0), A = Math.abs(p - A), L = this.isNegative, g.inverted ? { x: (L ? p : p - A) - g.plotLeft, y: G - g.plotTop, width: A, height: C } : { x: G - g.plotLeft, y: (L ? p - A : p) - g.plotTop, width: C, height: A };
|
|
5243
5243
|
}, I;
|
|
5244
5244
|
}(), t;
|
|
5245
5245
|
}), s(
|
|
@@ -5261,12 +5261,12 @@ var bn = { exports: {} };
|
|
|
5261
5261
|
].join());
|
|
5262
5262
|
});
|
|
5263
5263
|
}
|
|
5264
|
-
function
|
|
5264
|
+
function F() {
|
|
5265
5265
|
var m = this.stacking;
|
|
5266
5266
|
if (m) {
|
|
5267
5267
|
var h = m.stacks;
|
|
5268
5268
|
b(h, function(l, w) {
|
|
5269
|
-
|
|
5269
|
+
z(l), h[w] = null;
|
|
5270
5270
|
}), m && m.stackTotalGroup && m.stackTotalGroup.destroy();
|
|
5271
5271
|
}
|
|
5272
5272
|
}
|
|
@@ -5309,7 +5309,7 @@ var bn = { exports: {} };
|
|
|
5309
5309
|
l === "percent" && (h.stacking.usePercentage = !0), l !== "group" && (this.stackedYData = B), h.stacking.oldStacks = {};
|
|
5310
5310
|
}
|
|
5311
5311
|
}
|
|
5312
|
-
var d = t.getDeferredAnimation, c = r.series.prototype, C = D.addEvent, L = D.correctFloat, O = D.defined,
|
|
5312
|
+
var d = t.getDeferredAnimation, c = r.series.prototype, C = D.addEvent, L = D.correctFloat, O = D.defined, z = D.destroyObjectProperties, U = D.fireEvent, Q = D.isArray, y = D.isNumber, b = D.objectEach, a = D.pick, f = function() {
|
|
5313
5313
|
function m(h) {
|
|
5314
5314
|
this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = h;
|
|
5315
5315
|
}
|
|
@@ -5351,33 +5351,33 @@ var bn = { exports: {} };
|
|
|
5351
5351
|
return function(m) {
|
|
5352
5352
|
var h = [];
|
|
5353
5353
|
m.compose = function(l, w, M) {
|
|
5354
|
-
h.indexOf(l) === -1 && (h.push(l), C(l, "init", E), C(l, "destroy",
|
|
5354
|
+
h.indexOf(l) === -1 && (h.push(l), C(l, "init", E), C(l, "destroy", F)), h.indexOf(w) === -1 && (h.push(w), w.prototype.getStacks = Y), h.indexOf(M) === -1 && (h.push(M), l = M.prototype, l.getStackIndicator = I, l.modifyStacks = G, l.percentStacker = A, l.setGroupedPoints = g, l.setStackedPoints = p);
|
|
5355
5355
|
};
|
|
5356
5356
|
}(u || (u = {})), u;
|
|
5357
5357
|
}
|
|
5358
5358
|
), s(o, "Series/Line/LineSeries.js", [o["Core/Series/Series.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(t, n, r) {
|
|
5359
5359
|
var R = this && this.__extends || function() {
|
|
5360
|
-
var
|
|
5361
|
-
return
|
|
5360
|
+
var F = function(E, I) {
|
|
5361
|
+
return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(G, A) {
|
|
5362
5362
|
G.__proto__ = A;
|
|
5363
5363
|
} || function(G, A) {
|
|
5364
5364
|
for (var g in A)
|
|
5365
5365
|
A.hasOwnProperty(g) && (G[g] = A[g]);
|
|
5366
|
-
},
|
|
5366
|
+
}, F(E, I);
|
|
5367
5367
|
};
|
|
5368
5368
|
return function(E, I) {
|
|
5369
5369
|
function G() {
|
|
5370
5370
|
this.constructor = E;
|
|
5371
5371
|
}
|
|
5372
|
-
|
|
5372
|
+
F(E, I), E.prototype = I === null ? Object.create(I) : (G.prototype = I.prototype, new G());
|
|
5373
5373
|
};
|
|
5374
5374
|
}(), D = r.defined, Y = r.merge;
|
|
5375
|
-
return r = function(
|
|
5375
|
+
return r = function(F) {
|
|
5376
5376
|
function E() {
|
|
5377
|
-
var I =
|
|
5377
|
+
var I = F !== null && F.apply(this, arguments) || this;
|
|
5378
5378
|
return I.data = void 0, I.options = void 0, I.points = void 0, I;
|
|
5379
5379
|
}
|
|
5380
|
-
return R(E,
|
|
5380
|
+
return R(E, F), E.prototype.drawGraph = function() {
|
|
5381
5381
|
var I = this, G = this.options, A = (this.gappedPath || this.getGraphPath).call(this), g = this.chart.styledMode, p = [["graph", "highcharts-graph"]];
|
|
5382
5382
|
g || p[0].push(G.lineColor || this.color || "#cccccc", G.dashStyle), p = I.getZonesGraphs(p), p.forEach(function(d, c) {
|
|
5383
5383
|
var C = d[0], L = I[C], O = L ? "animate" : "attr";
|
|
@@ -5387,9 +5387,9 @@ var bn = { exports: {} };
|
|
|
5387
5387
|
var g = this, p = g.options, d = [], c = [], C, L = p.step;
|
|
5388
5388
|
I = I || g.points;
|
|
5389
5389
|
var O = I.reversed;
|
|
5390
|
-
return O && I.reverse(), (L = { right: 1, center: 2 }[L] || L && 3) && O && (L = 4 - L), I = this.getValidPoints(I, !1, !(p.connectNulls && !G && !A)), I.forEach(function(
|
|
5391
|
-
var Q =
|
|
5392
|
-
(
|
|
5390
|
+
return O && I.reverse(), (L = { right: 1, center: 2 }[L] || L && 3) && O && (L = 4 - L), I = this.getValidPoints(I, !1, !(p.connectNulls && !G && !A)), I.forEach(function(z, U) {
|
|
5391
|
+
var Q = z.plotX, y = z.plotY, b = I[U - 1];
|
|
5392
|
+
(z.leftCliff || b && b.rightCliff) && !A && (C = !0), z.isNull && !D(G) && 0 < U ? C = !p.connectNulls : z.isNull && !G ? C = !0 : (U === 0 || C ? U = [["M", z.plotX, z.plotY]] : g.getPointSpline ? U = [g.getPointSpline(I, z, U)] : L ? (U = L === 1 ? [["L", b.plotX, y]] : L === 2 ? [["L", (b.plotX + Q) / 2, b.plotY], ["L", (b.plotX + Q) / 2, y]] : [["L", Q, b.plotY]], U.push(["L", Q, y])) : U = [["L", Q, y]], c.push(z.x), L && (c.push(z.x), L === 2 && c.push(z.x)), d.push.apply(d, U), C = !1);
|
|
5393
5393
|
}), d.xMap = c, g.graphPath = d;
|
|
5394
5394
|
}, E.prototype.getZonesGraphs = function(I) {
|
|
5395
5395
|
return this.zones.forEach(function(G, A) {
|
|
@@ -5416,7 +5416,7 @@ var bn = { exports: {} };
|
|
|
5416
5416
|
}
|
|
5417
5417
|
A(g, p), g.prototype = p === null ? Object.create(p) : (d.prototype = p.prototype, new d());
|
|
5418
5418
|
};
|
|
5419
|
-
}(), Y = t.parse,
|
|
5419
|
+
}(), Y = t.parse, F = r.seriesTypes.line;
|
|
5420
5420
|
t = R.extend;
|
|
5421
5421
|
var E = R.merge, I = R.objectEach, G = R.pick;
|
|
5422
5422
|
return R = function(A) {
|
|
@@ -5430,11 +5430,11 @@ var bn = { exports: {} };
|
|
|
5430
5430
|
this.zones.forEach(function(L, O) {
|
|
5431
5431
|
C.push(["zone-area-" + O, "highcharts-area highcharts-zone-area-" + O + " " + L.className, L.color || p.color, L.fillColor || c.fillColor]);
|
|
5432
5432
|
}), C.forEach(function(L) {
|
|
5433
|
-
var O = L[0],
|
|
5434
|
-
U ? (U.endX = p.preventGraphAnimation ? null : d.xMap, U.animate({ d })) : (
|
|
5433
|
+
var O = L[0], z = {}, U = p[O], Q = U ? "animate" : "attr";
|
|
5434
|
+
U ? (U.endX = p.preventGraphAnimation ? null : d.xMap, U.animate({ d })) : (z.zIndex = 0, U = p[O] = p.chart.renderer.path(d).addClass(L[1]).add(p.group), U.isArea = !0), p.chart.styledMode || (z.fill = G(L[3], Y(L[2]).setOpacity(G(c.fillOpacity, 0.75)).get())), U[Q](z), U.startX = d.xMap, U.shiftUnit = c.step ? 2 : 1;
|
|
5435
5435
|
});
|
|
5436
5436
|
}, g.prototype.getGraphPath = function(p) {
|
|
5437
|
-
var d =
|
|
5437
|
+
var d = F.prototype.getGraphPath, c = this.options, C = c.stacking, L = this.yAxis, O = [], z = [], U = this.index, Q = L.stacking.stacks[this.stackKey], y = c.threshold, b = Math.round(L.getThreshold(c.threshold));
|
|
5438
5438
|
c = G(c.connectNulls, C === "percent");
|
|
5439
5439
|
var a = function(w, M, B) {
|
|
5440
5440
|
var T = p[w];
|
|
@@ -5445,21 +5445,21 @@ var bn = { exports: {} };
|
|
|
5445
5445
|
T = !!J;
|
|
5446
5446
|
} else
|
|
5447
5447
|
!C && p[M] && p[M].isNull && (W = v = y);
|
|
5448
|
-
typeof W < "u" && (
|
|
5448
|
+
typeof W < "u" && (z.push({ plotX: h, plotY: W === null ? b : L.getThreshold(W), isNull: T, isCliff: !0 }), O.push({ plotX: h, plotY: v === null ? b : L.getThreshold(v), doCurve: !1 }));
|
|
5449
5449
|
};
|
|
5450
5450
|
p = p || this.points, C && (p = this.getStackPoints(p));
|
|
5451
5451
|
for (var f = 0, u = p.length; f < u; ++f) {
|
|
5452
5452
|
C || (p[f].leftCliff = p[f].rightCliff = p[f].leftNull = p[f].rightNull = void 0);
|
|
5453
5453
|
var m = p[f].isNull, h = G(p[f].rectPlotX, p[f].plotX), l = C ? G(p[f].yBottom, b) : b;
|
|
5454
|
-
(!m || c) && (c || a(f, f - 1, "left"), m && !C && c || (
|
|
5454
|
+
(!m || c) && (c || a(f, f - 1, "left"), m && !C && c || (z.push(p[f]), O.push({ x: f, plotX: h, plotY: l })), c || a(f, f + 1, "right"));
|
|
5455
5455
|
}
|
|
5456
|
-
return a = d.call(this,
|
|
5456
|
+
return a = d.call(this, z, !0, !0), O.reversed = !0, m = d.call(this, O, !0, !0), (l = m[0]) && l[0] === "M" && (m[0] = ["L", l[1], l[2]]), m = a.concat(m), m.length && m.push(["Z"]), d = d.call(this, z, !1, c), m.xMap = a.xMap, this.areaPath = m, d;
|
|
5457
5457
|
}, g.prototype.getStackPoints = function(p) {
|
|
5458
|
-
var d = this, c = [], C = [], L = this.xAxis, O = this.yAxis,
|
|
5458
|
+
var d = this, c = [], C = [], L = this.xAxis, O = this.yAxis, z = O.stacking.stacks[this.stackKey], U = {}, Q = O.series, y = Q.length, b = O.options.reversedStacks ? 1 : -1, a = Q.indexOf(d);
|
|
5459
5459
|
if (p = p || this.points, this.options.stacking) {
|
|
5460
5460
|
for (var f = 0; f < p.length; f++)
|
|
5461
5461
|
p[f].leftNull = p[f].rightNull = void 0, U[p[f].x] = p[f];
|
|
5462
|
-
I(
|
|
5462
|
+
I(z, function(m, h) {
|
|
5463
5463
|
m.total !== null && C.push(h);
|
|
5464
5464
|
}), C.sort(function(m, h) {
|
|
5465
5465
|
return m - h;
|
|
@@ -5471,17 +5471,17 @@ var bn = { exports: {} };
|
|
|
5471
5471
|
var l = 0, w, M;
|
|
5472
5472
|
if (U[m] && !U[m].isNull)
|
|
5473
5473
|
c.push(U[m]), [-1, 1].forEach(function(T) {
|
|
5474
|
-
var J = T === 1 ? "rightNull" : "leftNull", W =
|
|
5474
|
+
var J = T === 1 ? "rightNull" : "leftNull", W = z[C[h + T]], v = 0;
|
|
5475
5475
|
if (W)
|
|
5476
5476
|
for (var x = a; 0 <= x && x < y; ) {
|
|
5477
5477
|
var Z = Q[x].index;
|
|
5478
|
-
w = W.points[Z], w || (Z === d.index ? U[m][J] = !0 : u[x] && (M =
|
|
5478
|
+
w = W.points[Z], w || (Z === d.index ? U[m][J] = !0 : u[x] && (M = z[m].points[Z]) && (v -= M[1] - M[0])), x += b;
|
|
5479
5479
|
}
|
|
5480
5480
|
U[m][T === 1 ? "rightCliff" : "leftCliff"] = v;
|
|
5481
5481
|
});
|
|
5482
5482
|
else {
|
|
5483
5483
|
for (var B = a; 0 <= B && B < y; ) {
|
|
5484
|
-
if (w =
|
|
5484
|
+
if (w = z[m].points[Q[B].index]) {
|
|
5485
5485
|
l = w[1];
|
|
5486
5486
|
break;
|
|
5487
5487
|
}
|
|
@@ -5492,31 +5492,31 @@ var bn = { exports: {} };
|
|
|
5492
5492
|
});
|
|
5493
5493
|
}
|
|
5494
5494
|
return c;
|
|
5495
|
-
}, g.defaultOptions = E(
|
|
5496
|
-
}(
|
|
5495
|
+
}, g.defaultOptions = E(F.defaultOptions, { threshold: 0 }), g;
|
|
5496
|
+
}(F), t(R.prototype, { singleStacks: !1, drawLegendSymbol: n.drawRectangle }), r.registerSeriesType("area", R), R;
|
|
5497
5497
|
}), s(o, "Series/Spline/SplineSeries.js", [o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(t, n) {
|
|
5498
5498
|
var r = this && this.__extends || function() {
|
|
5499
|
-
var
|
|
5500
|
-
return
|
|
5499
|
+
var F = function(E, I) {
|
|
5500
|
+
return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(G, A) {
|
|
5501
5501
|
G.__proto__ = A;
|
|
5502
5502
|
} || function(G, A) {
|
|
5503
5503
|
for (var g in A)
|
|
5504
5504
|
A.hasOwnProperty(g) && (G[g] = A[g]);
|
|
5505
|
-
},
|
|
5505
|
+
}, F(E, I);
|
|
5506
5506
|
};
|
|
5507
5507
|
return function(E, I) {
|
|
5508
5508
|
function G() {
|
|
5509
5509
|
this.constructor = E;
|
|
5510
5510
|
}
|
|
5511
|
-
|
|
5511
|
+
F(E, I), E.prototype = I === null ? Object.create(I) : (G.prototype = I.prototype, new G());
|
|
5512
5512
|
};
|
|
5513
5513
|
}(), R = t.seriesTypes.line, D = n.merge, Y = n.pick;
|
|
5514
|
-
return n = function(
|
|
5514
|
+
return n = function(F) {
|
|
5515
5515
|
function E() {
|
|
5516
|
-
var I =
|
|
5516
|
+
var I = F !== null && F.apply(this, arguments) || this;
|
|
5517
5517
|
return I.data = void 0, I.options = void 0, I.points = void 0, I;
|
|
5518
5518
|
}
|
|
5519
|
-
return r(E,
|
|
5519
|
+
return r(E, F), E.prototype.getPointSpline = function(I, G, A) {
|
|
5520
5520
|
var g = G.plotX || 0, p = G.plotY || 0, d = I[A - 1];
|
|
5521
5521
|
if (A = I[A + 1], d && !d.isNull && d.doCurve !== !1 && !G.isCliff && A && !A.isNull && A.doCurve !== !1 && !G.isCliff) {
|
|
5522
5522
|
I = d.plotY || 0;
|
|
@@ -5524,8 +5524,8 @@ var bn = { exports: {} };
|
|
|
5524
5524
|
A = A.plotY || 0;
|
|
5525
5525
|
var C = 0, L = (1.5 * g + (d.plotX || 0)) / 2.5, O = (1.5 * p + I) / 2.5;
|
|
5526
5526
|
c = (1.5 * g + c) / 2.5;
|
|
5527
|
-
var
|
|
5528
|
-
c !== L && (C = (
|
|
5527
|
+
var z = (1.5 * p + A) / 2.5;
|
|
5528
|
+
c !== L && (C = (z - O) * (c - g) / (c - L) + p - z), O += C, z += C, O > I && O > p ? (O = Math.max(I, p), z = 2 * p - O) : O < I && O < p && (O = Math.min(I, p), z = 2 * p - O), z > A && z > p ? (z = Math.max(A, p), O = 2 * p - z) : z < A && z < p && (z = Math.min(A, p), O = 2 * p - z), G.rightContX = c, G.rightContY = z;
|
|
5529
5529
|
}
|
|
5530
5530
|
return G = ["C", Y(d.rightContX, d.plotX, 0), Y(d.rightContY, d.plotY, 0), Y(L, g, 0), Y(O, p, 0), g, p], d.rightContX = d.rightContY = void 0, G;
|
|
5531
5531
|
}, E.defaultOptions = D(R.defaultOptions), E;
|
|
@@ -5549,7 +5549,7 @@ var bn = { exports: {} };
|
|
|
5549
5549
|
}
|
|
5550
5550
|
G(A, g), A.prototype = g === null ? Object.create(g) : (p.prototype = g.prototype, new p());
|
|
5551
5551
|
};
|
|
5552
|
-
}(), Y = r.seriesTypes,
|
|
5552
|
+
}(), Y = r.seriesTypes, F = Y.area;
|
|
5553
5553
|
Y = Y.area.prototype;
|
|
5554
5554
|
var E = R.extend, I = R.merge;
|
|
5555
5555
|
return R = function(G) {
|
|
@@ -5557,7 +5557,7 @@ var bn = { exports: {} };
|
|
|
5557
5557
|
var g = G !== null && G.apply(this, arguments) || this;
|
|
5558
5558
|
return g.data = void 0, g.points = void 0, g.options = void 0, g;
|
|
5559
5559
|
}
|
|
5560
|
-
return D(A, G), A.defaultOptions = I(t.defaultOptions,
|
|
5560
|
+
return D(A, G), A.defaultOptions = I(t.defaultOptions, F.defaultOptions), A;
|
|
5561
5561
|
}(t), E(R.prototype, { getGraphPath: Y.getGraphPath, getStackPoints: Y.getStackPoints, drawGraph: Y.drawGraph, drawLegendSymbol: n.drawRectangle }), r.registerSeriesType("areaspline", R), R;
|
|
5562
5562
|
}), s(o, "Series/Column/ColumnSeriesDefaults.js", [], function() {
|
|
5563
5563
|
return { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: { hover: { halo: !1, brightness: 0.1 }, select: { color: "#cccccc", borderColor: "#000000" } }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" };
|
|
@@ -5570,7 +5570,7 @@ var bn = { exports: {} };
|
|
|
5570
5570
|
o["Core/Series/Series.js"],
|
|
5571
5571
|
o["Core/Series/SeriesRegistry.js"],
|
|
5572
5572
|
o["Core/Utilities.js"]
|
|
5573
|
-
], function(t, n, r, R, D, Y,
|
|
5573
|
+
], function(t, n, r, R, D, Y, F, E) {
|
|
5574
5574
|
var I = this && this.__extends || function() {
|
|
5575
5575
|
var y = function(b, a) {
|
|
5576
5576
|
return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, u) {
|
|
@@ -5588,7 +5588,7 @@ var bn = { exports: {} };
|
|
|
5588
5588
|
};
|
|
5589
5589
|
}(), G = t.animObject, A = n.parse, g = R.hasTouch;
|
|
5590
5590
|
t = R.noop;
|
|
5591
|
-
var p = E.clamp, d = E.defined, c = E.extend, C = E.fireEvent, L = E.isArray, O = E.isNumber,
|
|
5591
|
+
var p = E.clamp, d = E.defined, c = E.extend, C = E.fireEvent, L = E.isArray, O = E.isNumber, z = E.merge, U = E.pick, Q = E.objectEach;
|
|
5592
5592
|
return E = function(y) {
|
|
5593
5593
|
function b() {
|
|
5594
5594
|
var a = y !== null && y.apply(this, arguments) || this;
|
|
@@ -5666,13 +5666,13 @@ var bn = { exports: {} };
|
|
|
5666
5666
|
var J = a.getZone();
|
|
5667
5667
|
w = a.options.color || J && (J.color || a.nonZonedColor) || this.color, J && (M = J.borderColor || M, m = J.dashStyle || m, B = J.borderWidth || B);
|
|
5668
5668
|
}
|
|
5669
|
-
return f && a && (a =
|
|
5669
|
+
return f && a && (a = z(u.states[f], a.options.states && a.options.states[f] || {}), f = a.brightness, w = a.color || typeof f < "u" && A(w).brighten(a.brightness).get() || w, M = a[h] || M, B = a[l] || B, m = a.dashStyle || m, T = U(a.opacity, T)), h = { fill: w, stroke: M, "stroke-width": B, opacity: T }, m && (h.dashstyle = m), h;
|
|
5670
5670
|
}, b.prototype.drawPoints = function(a) {
|
|
5671
5671
|
a === void 0 && (a = this.points);
|
|
5672
5672
|
var f = this, u = this.chart, m = f.options, h = u.renderer, l = m.animationLimit || 250, w;
|
|
5673
5673
|
a.forEach(function(M) {
|
|
5674
5674
|
var B = M.graphic, T = !!B, J = B && u.pointCount < l ? "animate" : "attr";
|
|
5675
|
-
O(M.plotY) && M.y !== null ? (w = M.shapeArgs, B && M.hasNewShapeType() && (B = B.destroy()), f.enabledDataSorting && (M.startXPos = f.xAxis.reversed ? -(w && w.width || 0) : f.xAxis.width), B || (M.graphic = B = h[M.shapeType](w).add(M.group || f.group)) && f.enabledDataSorting && u.hasRendered && u.pointCount < l && (B.attr({ x: M.startXPos }), T = !0, J = "animate"), B && T && B[J](
|
|
5675
|
+
O(M.plotY) && M.y !== null ? (w = M.shapeArgs, B && M.hasNewShapeType() && (B = B.destroy()), f.enabledDataSorting && (M.startXPos = f.xAxis.reversed ? -(w && w.width || 0) : f.xAxis.width), B || (M.graphic = B = h[M.shapeType](w).add(M.group || f.group)) && f.enabledDataSorting && u.hasRendered && u.pointCount < l && (B.attr({ x: M.startXPos }), T = !0, J = "animate"), B && T && B[J](z(w)), m.borderRadius && B[J]({ r: m.borderRadius }), u.styledMode || B[J](f.pointAttribs(M, M.selected && "select")).shadow(M.allowShadow !== !1 && m.shadow, null, m.stacking && !m.borderRadius), B && (B.addClass(M.getClassName(), !0), B.attr({ visibility: M.visible ? "inherit" : "hidden" }))) : B && (M.graphic = B.destroy());
|
|
5676
5676
|
});
|
|
5677
5677
|
}, b.prototype.drawTracker = function(a) {
|
|
5678
5678
|
a === void 0 && (a = this.points);
|
|
@@ -5694,10 +5694,10 @@ var bn = { exports: {} };
|
|
|
5694
5694
|
f.hasRendered && f.series.forEach(function(u) {
|
|
5695
5695
|
u.type === a.type && (u.isDirty = !0);
|
|
5696
5696
|
}), Y.prototype.remove.apply(a, arguments);
|
|
5697
|
-
}, b.defaultOptions =
|
|
5698
|
-
}(Y), c(E.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: D.drawRectangle, getSymbol: t, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }),
|
|
5697
|
+
}, b.defaultOptions = z(Y.defaultOptions, r), b;
|
|
5698
|
+
}(Y), c(E.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: D.drawRectangle, getSymbol: t, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), F.registerSeriesType("column", E), E;
|
|
5699
5699
|
}), s(o, "Core/Series/DataLabel.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/FormatUtilities.js"], o["Core/Utilities.js"]], function(t, n, r) {
|
|
5700
|
-
var R = t.getDeferredAnimation, D = n.format, Y = r.defined,
|
|
5700
|
+
var R = t.getDeferredAnimation, D = n.format, Y = r.defined, F = r.extend, E = r.fireEvent, I = r.isArray, G = r.isString, A = r.merge, g = r.objectEach, p = r.pick, d = r.splat, c;
|
|
5701
5701
|
return function(C) {
|
|
5702
5702
|
function L(a, f, u, m, h) {
|
|
5703
5703
|
var l = this, w = this.chart, M = this.isCartesian && w.inverted, B = this.enabledDataSorting, T = a.plotX, J = a.plotY, W = u.rotation, v = u.align, x = Y(T) && Y(J) && w.isInsidePlot(T, Math.round(J), { inverted: M, paneCoordinates: !0, series: l });
|
|
@@ -5708,7 +5708,7 @@ var bn = { exports: {} };
|
|
|
5708
5708
|
if (T = this.visible && a.visible !== !1 && Y(T) && (a.series.forceDL || B && !Z || x || p(u.inside, !!this.options.stacking) && m && w.isInsidePlot(T, M ? m.x + 1 : m.y + m.height - 1, { inverted: M, paneCoordinates: !0, series: l })), M = a.pos(), T && M) {
|
|
5709
5709
|
W && f.attr({ align: v }), v = f.getBBox(!0);
|
|
5710
5710
|
var K = [0, 0], q = w.renderer.fontMetrics(w.styledMode ? void 0 : u.style.fontSize, f).b;
|
|
5711
|
-
m =
|
|
5711
|
+
m = F({ x: M[0], y: Math.round(M[1]), width: 0, height: 0 }, m), F(u, { width: v.width, height: v.height }), W ? (Z = !1, K = w.renderer.rotCorr(q, W), q = { x: m.x + (u.x || 0) + m.width / 2 + K.x, y: m.y + (u.y || 0) + { top: 0, middle: 0.5, bottom: 1 }[u.verticalAlign] * m.height }, K = [v.x - Number(f.attr("x")), v.y - Number(f.attr("y"))], J(q), f[h ? "attr" : "animate"](q)) : (J(m), f.align(u, void 0, m), q = f.alignAttr), Z && 0 <= m.height ? this.justifyDataLabel(f, u, q, v, m, h) : p(u.crop, !0) && (m = q.x, J = q.y, m += K[0], J += K[1], T = w.isInsidePlot(m, J, { paneCoordinates: !0, series: l }) && w.isInsidePlot(m + v.width, J + v.height, { paneCoordinates: !0, series: l })), u.shape && !W && f[h ? "attr" : "animate"]({ anchorX: M[0], anchorY: M[1] });
|
|
5712
5712
|
}
|
|
5713
5713
|
h && B && (f.placed = !1), T || B && !Z ? f.show() : (f.hide(), f.placed = !1);
|
|
5714
5714
|
}
|
|
@@ -5716,7 +5716,7 @@ var bn = { exports: {} };
|
|
|
5716
5716
|
var u = f.filter;
|
|
5717
5717
|
return u ? (f = u.operator, a = a[u.property], u = u.value, f === ">" && a > u || f === "<" && a < u || f === ">=" && a >= u || f === "<=" && a <= u || f === "==" && a == u || f === "===" && a === u) : !0;
|
|
5718
5718
|
}
|
|
5719
|
-
function
|
|
5719
|
+
function z(a) {
|
|
5720
5720
|
a === void 0 && (a = this.points);
|
|
5721
5721
|
var f = this, u = f.chart, m = f.options, h = f.hasRendered || 0, l = u.renderer, w = u.options.chart, M = w.backgroundColor;
|
|
5722
5722
|
w = w.plotBackgroundColor;
|
|
@@ -5790,47 +5790,47 @@ var bn = { exports: {} };
|
|
|
5790
5790
|
C.compose = function(a) {
|
|
5791
5791
|
if (b.indexOf(a) === -1) {
|
|
5792
5792
|
var f = a.prototype;
|
|
5793
|
-
b.push(a), f.alignDataLabel = L, f.drawDataLabels =
|
|
5793
|
+
b.push(a), f.alignDataLabel = L, f.drawDataLabels = z, f.justifyDataLabel = U, f.setDataLabelStartPos = y;
|
|
5794
5794
|
}
|
|
5795
5795
|
};
|
|
5796
5796
|
}(c || (c = {})), c;
|
|
5797
5797
|
}), s(o, "Series/Column/ColumnDataLabel.js", [o["Core/Series/DataLabel.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(t, n, r) {
|
|
5798
|
-
var R = n.series, D = r.merge, Y = r.pick,
|
|
5798
|
+
var R = n.series, D = r.merge, Y = r.pick, F;
|
|
5799
5799
|
return function(E) {
|
|
5800
5800
|
function I(A, g, p, d, c) {
|
|
5801
5801
|
var C = this.chart.inverted, L = A.series, O = (L.xAxis ? L.xAxis.len : this.chart.plotSizeX) || 0;
|
|
5802
5802
|
L = (L.yAxis ? L.yAxis.len : this.chart.plotSizeY) || 0;
|
|
5803
|
-
var
|
|
5804
|
-
|
|
5803
|
+
var z = A.dlBox || A.shapeArgs, U = Y(A.below, A.plotY > Y(this.translatedThreshold, L)), Q = Y(p.inside, !!this.options.stacking);
|
|
5804
|
+
z && (d = D(z), 0 > d.y && (d.height += d.y, d.y = 0), z = d.y + d.height - L, 0 < z && z < d.height && (d.height -= z), C && (d = { x: L - d.y - d.height, y: O - d.x - d.width, width: d.height, height: d.width }), Q || (C ? (d.x += U ? 0 : d.width, d.width = 0) : (d.y += U ? d.height : 0, d.height = 0))), p.align = Y(p.align, !C || Q ? "center" : U ? "right" : "left"), p.verticalAlign = Y(p.verticalAlign, C || Q ? "middle" : U ? "top" : "bottom"), R.prototype.alignDataLabel.call(this, A, g, p, d, c), p.inside && A.contrastColor && g.css({ color: A.contrastColor });
|
|
5805
5805
|
}
|
|
5806
5806
|
var G = [];
|
|
5807
5807
|
E.compose = function(A) {
|
|
5808
5808
|
t.compose(R), G.indexOf(A) === -1 && (G.push(A), A.prototype.alignDataLabel = I);
|
|
5809
5809
|
};
|
|
5810
|
-
}(
|
|
5810
|
+
}(F || (F = {})), F;
|
|
5811
5811
|
}), s(o, "Series/Bar/BarSeries.js", [o["Series/Column/ColumnSeries.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(t, n, r) {
|
|
5812
5812
|
var R = this && this.__extends || function() {
|
|
5813
|
-
var
|
|
5814
|
-
return
|
|
5813
|
+
var F = function(E, I) {
|
|
5814
|
+
return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(G, A) {
|
|
5815
5815
|
G.__proto__ = A;
|
|
5816
5816
|
} || function(G, A) {
|
|
5817
5817
|
for (var g in A)
|
|
5818
5818
|
A.hasOwnProperty(g) && (G[g] = A[g]);
|
|
5819
|
-
},
|
|
5819
|
+
}, F(E, I);
|
|
5820
5820
|
};
|
|
5821
5821
|
return function(E, I) {
|
|
5822
5822
|
function G() {
|
|
5823
5823
|
this.constructor = E;
|
|
5824
5824
|
}
|
|
5825
|
-
|
|
5825
|
+
F(E, I), E.prototype = I === null ? Object.create(I) : (G.prototype = I.prototype, new G());
|
|
5826
5826
|
};
|
|
5827
5827
|
}(), D = r.extend, Y = r.merge;
|
|
5828
|
-
return r = function(
|
|
5828
|
+
return r = function(F) {
|
|
5829
5829
|
function E() {
|
|
5830
|
-
var I =
|
|
5830
|
+
var I = F !== null && F.apply(this, arguments) || this;
|
|
5831
5831
|
return I.data = void 0, I.options = void 0, I.points = void 0, I;
|
|
5832
5832
|
}
|
|
5833
|
-
return R(E,
|
|
5833
|
+
return R(E, F), E.defaultOptions = Y(t.defaultOptions, {}), E;
|
|
5834
5834
|
}(t), D(r.prototype, { inverted: !0 }), n.registerSeriesType("bar", r), r;
|
|
5835
5835
|
}), s(o, "Series/Scatter/ScatterSeriesDefaults.js", [], function() {
|
|
5836
5836
|
return { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: { headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>', pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>" } };
|
|
@@ -5854,7 +5854,7 @@ var bn = { exports: {} };
|
|
|
5854
5854
|
}
|
|
5855
5855
|
G(A, g), A.prototype = g === null ? Object.create(g) : (p.prototype = g.prototype, new p());
|
|
5856
5856
|
};
|
|
5857
|
-
}(), D = n.seriesTypes, Y = D.column,
|
|
5857
|
+
}(), D = n.seriesTypes, Y = D.column, F = D.line;
|
|
5858
5858
|
D = r.addEvent;
|
|
5859
5859
|
var E = r.extend, I = r.merge;
|
|
5860
5860
|
return r = function(G) {
|
|
@@ -5866,20 +5866,20 @@ var bn = { exports: {} };
|
|
|
5866
5866
|
var g = this, p = this.options.jitter, d = this.points.length;
|
|
5867
5867
|
p && this.points.forEach(function(c, C) {
|
|
5868
5868
|
["x", "y"].forEach(function(L, O) {
|
|
5869
|
-
var
|
|
5869
|
+
var z = "plot" + L.toUpperCase();
|
|
5870
5870
|
if (p[L] && !c.isNull) {
|
|
5871
5871
|
var U = g[L + "Axis"], Q = p[L] * U.transA;
|
|
5872
5872
|
if (U && !U.isLog) {
|
|
5873
|
-
var y = Math.max(0, c[
|
|
5874
|
-
U = Math.min(U.len, c[
|
|
5873
|
+
var y = Math.max(0, c[z] - Q);
|
|
5874
|
+
U = Math.min(U.len, c[z] + Q), O = 1e4 * Math.sin(C + O * d), c[z] = y + (U - y) * (O - Math.floor(O)), L === "x" && (c.clientX = c.plotX);
|
|
5875
5875
|
}
|
|
5876
5876
|
}
|
|
5877
5877
|
});
|
|
5878
5878
|
});
|
|
5879
5879
|
}, A.prototype.drawGraph = function() {
|
|
5880
5880
|
this.options.lineWidth ? G.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
|
|
5881
|
-
}, A.defaultOptions = I(
|
|
5882
|
-
}(
|
|
5881
|
+
}, A.defaultOptions = I(F.defaultOptions, t), A;
|
|
5882
|
+
}(F), E(r.prototype, { drawTracker: Y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), D(r, "afterTranslate", function() {
|
|
5883
5883
|
this.applyJitter();
|
|
5884
5884
|
}), n.registerSeriesType("scatter", r), r;
|
|
5885
5885
|
}), s(o, "Series/CenteredUtilities.js", [
|
|
@@ -5887,12 +5887,12 @@ var bn = { exports: {} };
|
|
|
5887
5887
|
o["Core/Series/Series.js"],
|
|
5888
5888
|
o["Core/Utilities.js"]
|
|
5889
5889
|
], function(t, n, r) {
|
|
5890
|
-
var R = t.deg2rad, D = r.fireEvent, Y = r.isNumber,
|
|
5890
|
+
var R = t.deg2rad, D = r.fireEvent, Y = r.isNumber, F = r.pick, E = r.relativeLength, I;
|
|
5891
5891
|
return function(G) {
|
|
5892
5892
|
G.getCenter = function() {
|
|
5893
|
-
var A = this.options, g = this.chart, p = 2 * (A.slicedOffset || 0), d = g.plotWidth - 2 * p, c = g.plotHeight - 2 * p, C = A.center, L = Math.min(d, c), O = A.thickness,
|
|
5894
|
-
for (typeof
|
|
5895
|
-
|
|
5893
|
+
var A = this.options, g = this.chart, p = 2 * (A.slicedOffset || 0), d = g.plotWidth - 2 * p, c = g.plotHeight - 2 * p, C = A.center, L = Math.min(d, c), O = A.thickness, z = A.size, U = A.innerSize || 0;
|
|
5894
|
+
for (typeof z == "string" && (z = parseFloat(z)), typeof U == "string" && (U = parseFloat(U)), A = [F(C[0], "50%"), F(C[1], "50%"), F(z && 0 > z ? void 0 : A.size, "100%"), F(U && 0 > U ? void 0 : A.innerSize || 0, "0%")], !g.angular || this instanceof n || (A[3] = 0), C = 0; 4 > C; ++C)
|
|
5895
|
+
z = A[C], g = 2 > C || C === 2 && /%$/.test(z), A[C] = E(z, [d, c, L, A[2]][C]) + (g ? p : 0);
|
|
5896
5896
|
return A[3] > A[2] && (A[3] = A[2]), Y(O) && 2 * O < A[2] && 0 < O && (A[3] = A[2] - 2 * O), D(this, "afterGetCenter", { positions: A }), A;
|
|
5897
5897
|
}, G.getStartAndEndRadians = function(A, g) {
|
|
5898
5898
|
return A = Y(A) ? A : 0, g = Y(g) && g > A && 360 > g - A ? g : A + 360, { start: R * (A + -90), end: R * (g + -90) };
|
|
@@ -5918,7 +5918,7 @@ var bn = { exports: {} };
|
|
|
5918
5918
|
}
|
|
5919
5919
|
A(g, p), g.prototype = p === null ? Object.create(p) : (d.prototype = p.prototype, new d());
|
|
5920
5920
|
};
|
|
5921
|
-
}(), D = t.setAnimation, Y = r.addEvent,
|
|
5921
|
+
}(), D = t.setAnimation, Y = r.addEvent, F = r.defined;
|
|
5922
5922
|
t = r.extend;
|
|
5923
5923
|
var E = r.isNumber, I = r.pick, G = r.relativeLength;
|
|
5924
5924
|
return n = function(A) {
|
|
@@ -5945,12 +5945,12 @@ var bn = { exports: {} };
|
|
|
5945
5945
|
return E(this.y) && 0 <= this.y;
|
|
5946
5946
|
}, g.prototype.setVisible = function(p, d) {
|
|
5947
5947
|
var c = this, C = this.series, L = C.chart, O = C.options.ignoreHiddenPoint;
|
|
5948
|
-
d = I(d, O), p !== this.visible && (this.visible = this.options.visible = p = typeof p > "u" ? !this.visible : p, C.options.data[C.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(
|
|
5949
|
-
c[
|
|
5948
|
+
d = I(d, O), p !== this.visible && (this.visible = this.options.visible = p = typeof p > "u" ? !this.visible : p, C.options.data[C.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(z) {
|
|
5949
|
+
c[z] && c[z][p ? "show" : "hide"](p);
|
|
5950
5950
|
}), this.legendItem && L.legend.colorizeItem(this, p), p || this.state !== "hover" || this.setState(""), O && (C.isDirty = !0), d && L.redraw());
|
|
5951
5951
|
}, g.prototype.slice = function(p, d, c) {
|
|
5952
5952
|
var C = this.series;
|
|
5953
|
-
D(c, C.chart), I(d, !0), this.sliced = this.options.sliced =
|
|
5953
|
+
D(c, C.chart), I(d, !0), this.sliced = this.options.sliced = F(p) ? p : !this.sliced, C.options.data[C.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
|
|
5954
5954
|
}, g;
|
|
5955
5955
|
}(n), t(n.prototype, { connectorShapes: { fixedOffset: function(A, g, p) {
|
|
5956
5956
|
var d = g.breakAt;
|
|
@@ -5990,31 +5990,31 @@ var bn = { exports: {} };
|
|
|
5990
5990
|
o["Core/Series/SeriesRegistry.js"],
|
|
5991
5991
|
o["Core/Renderer/SVG/Symbols.js"],
|
|
5992
5992
|
o["Core/Utilities.js"]
|
|
5993
|
-
], function(t, n, r, R, D, Y,
|
|
5993
|
+
], function(t, n, r, R, D, Y, F, E, I, G) {
|
|
5994
5994
|
var A = this && this.__extends || function() {
|
|
5995
|
-
var
|
|
5996
|
-
return
|
|
5995
|
+
var z = function(U, Q) {
|
|
5996
|
+
return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, b) {
|
|
5997
5997
|
y.__proto__ = b;
|
|
5998
5998
|
} || function(y, b) {
|
|
5999
5999
|
for (var a in b)
|
|
6000
6000
|
b.hasOwnProperty(a) && (y[a] = b[a]);
|
|
6001
|
-
},
|
|
6001
|
+
}, z(U, Q);
|
|
6002
6002
|
};
|
|
6003
6003
|
return function(U, Q) {
|
|
6004
6004
|
function y() {
|
|
6005
6005
|
this.constructor = U;
|
|
6006
6006
|
}
|
|
6007
|
-
|
|
6007
|
+
z(U, Q), U.prototype = Q === null ? Object.create(Q) : (y.prototype = Q.prototype, new y());
|
|
6008
6008
|
};
|
|
6009
6009
|
}(), g = t.getStartAndEndRadians;
|
|
6010
6010
|
r = r.noop;
|
|
6011
6011
|
var p = G.clamp, d = G.extend, c = G.fireEvent, C = G.merge, L = G.pick, O = G.relativeLength;
|
|
6012
|
-
return G = function(
|
|
6012
|
+
return G = function(z) {
|
|
6013
6013
|
function U() {
|
|
6014
|
-
var Q =
|
|
6014
|
+
var Q = z !== null && z.apply(this, arguments) || this;
|
|
6015
6015
|
return Q.center = void 0, Q.data = void 0, Q.maxLabelDistance = void 0, Q.options = void 0, Q.points = void 0, Q;
|
|
6016
6016
|
}
|
|
6017
|
-
return A(U,
|
|
6017
|
+
return A(U, z), U.prototype.animate = function(Q) {
|
|
6018
6018
|
var y = this, b = y.points, a = y.startAngleRad;
|
|
6019
6019
|
Q || b.forEach(function(f) {
|
|
6020
6020
|
var u = f.graphic, m = f.shapeArgs;
|
|
@@ -6033,7 +6033,7 @@ var bn = { exports: {} };
|
|
|
6033
6033
|
y.graphic && y.hasNewShapeType() && (y.graphic = y.graphic.destroy()), y.graphic || (y.graphic = Q[y.shapeType](y.shapeArgs).add(y.series.group), y.delayedRendering = !0);
|
|
6034
6034
|
});
|
|
6035
6035
|
}, U.prototype.generatePoints = function() {
|
|
6036
|
-
|
|
6036
|
+
z.prototype.generatePoints.call(this), this.updateTotals();
|
|
6037
6037
|
}, U.prototype.getX = function(Q, y, b) {
|
|
6038
6038
|
var a = this.center, f = this.radii ? this.radii[b.index] || 0 : a[2] / 2;
|
|
6039
6039
|
return Q = Math.asin(p((Q - a[1]) / (f + b.labelDistance), -1, 1)), a[0] + (y ? -1 : 1) * Math.cos(Q) * (f + b.labelDistance) + (0 < b.labelDistance ? (y ? -1 : 1) * this.options.dataLabels.padding : 0);
|
|
@@ -6077,8 +6077,8 @@ var bn = { exports: {} };
|
|
|
6077
6077
|
}
|
|
6078
6078
|
for (this.total = f, a = 0; a < y; a++)
|
|
6079
6079
|
u = Q[a], u.percentage = 0 < f && (u.visible || !b) ? u.y / f * 100 : 0, u.total = f;
|
|
6080
|
-
}, U.defaultOptions = C(
|
|
6081
|
-
}(
|
|
6080
|
+
}, U.defaultOptions = C(F.defaultOptions, Y), U;
|
|
6081
|
+
}(F), d(G.prototype, {
|
|
6082
6082
|
axisTypes: [],
|
|
6083
6083
|
directTouch: !0,
|
|
6084
6084
|
drawGraph: void 0,
|
|
@@ -6099,7 +6099,7 @@ var bn = { exports: {} };
|
|
|
6099
6099
|
"Series/Pie/PieDataLabel.js",
|
|
6100
6100
|
[o["Core/Series/DataLabel.js"], o["Core/Globals.js"], o["Core/Renderer/RendererUtilities.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]],
|
|
6101
6101
|
function(t, n, r, R, D) {
|
|
6102
|
-
var Y = n.noop,
|
|
6102
|
+
var Y = n.noop, F = r.distribute, E = R.series, I = D.arrayMax, G = D.clamp, A = D.defined, g = D.merge, p = D.pick, d = D.relativeLength, c;
|
|
6103
6103
|
return function(C) {
|
|
6104
6104
|
function L() {
|
|
6105
6105
|
var y = this, b = y.data, a = y.chart, f = y.options.dataLabels || {}, u = f.connectorPadding, m = a.plotWidth, h = a.plotHeight, l = a.plotLeft, w = Math.round(a.chartWidth / 3), M = y.center, B = M[2] / 2, T = M[1], J = [[], []], W = [0, 0, 0, 0], v = y.dataLabelPositioners, x, Z, K, q, k, j, S, _, X, $, ie, se;
|
|
@@ -6114,7 +6114,7 @@ var bn = { exports: {} };
|
|
|
6114
6114
|
var we = Math.max(0, T - B - y.maxLabelDistance), le = Math.min(T + B + y.maxLabelDistance, a.plotHeight);
|
|
6115
6115
|
re.forEach(function(ee) {
|
|
6116
6116
|
0 < ee.labelDistance && ee.dataLabel && (ee.top = Math.max(0, T - B - ee.labelDistance), ee.bottom = Math.min(T + B + ee.labelDistance, a.plotHeight), de = ee.dataLabel.getBBox().height || 21, ee.distributeBox = { target: ee.labelPosition.natural.y - ee.top + de / 2, size: de, rank: ee.y }, ue.push(ee.distributeBox));
|
|
6117
|
-
}), we = le + de - we,
|
|
6117
|
+
}), we = le + de - we, F(ue, we, we / 5);
|
|
6118
6118
|
}
|
|
6119
6119
|
for (ie = 0; ie < fe; ie++) {
|
|
6120
6120
|
if (x = re[ie], j = x.labelPosition, q = x.dataLabel, $ = x.visible === !1 ? "hidden" : "inherit", X = we = j.natural.y, ue && A(x.distributeBox) && (typeof x.distributeBox.pos > "u" ? $ = "hidden" : (S = x.distributeBox.size, X = v.radialDistributionY(x))), delete x.positionIndex, f.justify)
|
|
@@ -6149,7 +6149,7 @@ var bn = { exports: {} };
|
|
|
6149
6149
|
b && y.visible && ((a = b._pos) ? (b.sideOverflow && (b._attr.width = Math.max(b.getBBox().width - b.sideOverflow, 0), b.css({ width: b._attr.width + "px", textOverflow: (this.options.dataLabels.style || {}).textOverflow || "ellipsis" }), b.shortened = !0), b.attr(b._attr), b[b.moved ? "animate" : "attr"](a), b.moved = !0) : b && b.attr({ y: -9999 })), delete y.distributeBox;
|
|
6150
6150
|
}, this);
|
|
6151
6151
|
}
|
|
6152
|
-
function
|
|
6152
|
+
function z(y) {
|
|
6153
6153
|
var b = this.center, a = this.options, f = a.center, u = a.minSize || 80, m = a.size !== null;
|
|
6154
6154
|
if (!m) {
|
|
6155
6155
|
if (f[0] !== null)
|
|
@@ -6175,7 +6175,7 @@ var bn = { exports: {} };
|
|
|
6175
6175
|
}), b ? u + f : a - u - f;
|
|
6176
6176
|
} };
|
|
6177
6177
|
C.compose = function(y) {
|
|
6178
|
-
t.compose(E), U.indexOf(y) === -1 && (U.push(y), y = y.prototype, y.dataLabelPositioners = Q, y.alignDataLabel = Y, y.drawDataLabels = L, y.placeDataLabels = O, y.verifyDataLabelOverflow =
|
|
6178
|
+
t.compose(E), U.indexOf(y) === -1 && (U.push(y), y = y.prototype, y.dataLabelPositioners = Q, y.alignDataLabel = Y, y.drawDataLabels = L, y.placeDataLabels = O, y.verifyDataLabelOverflow = z);
|
|
6179
6179
|
};
|
|
6180
6180
|
}(c || (c = {})), c;
|
|
6181
6181
|
}
|
|
@@ -6190,7 +6190,7 @@ var bn = { exports: {} };
|
|
|
6190
6190
|
}
|
|
6191
6191
|
return g;
|
|
6192
6192
|
}
|
|
6193
|
-
var R = n.addEvent, D = n.fireEvent, Y = n.isArray,
|
|
6193
|
+
var R = n.addEvent, D = n.fireEvent, Y = n.isArray, F = n.isNumber, E = n.objectEach, I = n.pick;
|
|
6194
6194
|
R(t, "render", function() {
|
|
6195
6195
|
var G = this, A = [];
|
|
6196
6196
|
(this.labelCollectors || []).forEach(function(g) {
|
|
@@ -6219,7 +6219,7 @@ var bn = { exports: {} };
|
|
|
6219
6219
|
var u = Q.alignAttr || { x: Q.attr("x"), y: Q.attr("y") }, m = Q.parentGroup;
|
|
6220
6220
|
Q.width || (y = Q.getBBox(), Q.width = y.width, Q.height = y.height, y = p.fontMetrics(null, Q.element).h);
|
|
6221
6221
|
var h = Q.width - 2 * b;
|
|
6222
|
-
return (f = { left: "0", center: "0.5", right: "1" }[Q.alignValue]) ? a = +f * h :
|
|
6222
|
+
return (f = { left: "0", center: "0.5", right: "1" }[Q.alignValue]) ? a = +f * h : F(Q.x) && Math.round(Q.x) !== Q.translateX && (a = Q.x - Q.translateX), { x: u.x + (m.translateX || 0) + b - (a || 0), y: u.y + (m.translateY || 0) + b - y, width: Q.width - 2 * b, height: Q.height - 2 * b };
|
|
6223
6223
|
}
|
|
6224
6224
|
};
|
|
6225
6225
|
for (c = 0; c < g; c++)
|
|
@@ -6227,10 +6227,10 @@ var bn = { exports: {} };
|
|
|
6227
6227
|
for (G.sort(function(Q, y) {
|
|
6228
6228
|
return (y.labelrank || 0) - (Q.labelrank || 0);
|
|
6229
6229
|
}), c = 0; c < g; c++) {
|
|
6230
|
-
var
|
|
6230
|
+
var z = (O = G[c]) && O.absoluteBox;
|
|
6231
6231
|
for (d = c + 1; d < g; ++d) {
|
|
6232
6232
|
var U = (C = G[d]) && C.absoluteBox;
|
|
6233
|
-
!
|
|
6233
|
+
!z || !U || O === C || O.newOpacity === 0 || C.newOpacity === 0 || O.visibility === "hidden" || C.visibility === "hidden" || U.x >= z.x + z.width || U.x + U.width <= z.x || U.y >= z.y + z.height || U.y + U.height <= z.y || ((O.labelrank < C.labelrank ? O : C).newOpacity = 0);
|
|
6234
6234
|
}
|
|
6235
6235
|
}
|
|
6236
6236
|
G.forEach(function(Q) {
|
|
@@ -6238,7 +6238,7 @@ var bn = { exports: {} };
|
|
|
6238
6238
|
}), L && D(A, "afterHideAllOverlappingLabels");
|
|
6239
6239
|
};
|
|
6240
6240
|
}), s(o, "Core/Responsive.js", [o["Core/Utilities.js"]], function(t) {
|
|
6241
|
-
var n = t.extend, r = t.find, R = t.isArray, D = t.isObject, Y = t.merge,
|
|
6241
|
+
var n = t.extend, r = t.find, R = t.isArray, D = t.isObject, Y = t.merge, F = t.objectEach, E = t.pick, I = t.splat, G = t.uniqueKey, A;
|
|
6242
6242
|
return function(g) {
|
|
6243
6243
|
var p = [];
|
|
6244
6244
|
g.compose = function(c) {
|
|
@@ -6250,7 +6250,7 @@ var bn = { exports: {} };
|
|
|
6250
6250
|
return c.prototype.currentOptions = function(C) {
|
|
6251
6251
|
function L(U, Q, y, b) {
|
|
6252
6252
|
var a;
|
|
6253
|
-
|
|
6253
|
+
F(U, function(f, u) {
|
|
6254
6254
|
if (!b && -1 < O.collectionsWithUpdate.indexOf(u) && Q[u])
|
|
6255
6255
|
for (f = I(f), y[u] = [], a = 0; a < Math.max(f.length, Q[u].length); a++)
|
|
6256
6256
|
Q[u][a] && (f[a] === void 0 ? y[u][a] = Q[u][a] : (y[u][a] = {}, L(f[a], Q[u][a], y[u][a], b + 1)));
|
|
@@ -6258,19 +6258,19 @@ var bn = { exports: {} };
|
|
|
6258
6258
|
D(f) ? (y[u] = R(f) ? [] : {}, L(f, Q[u] || {}, y[u], b + 1)) : y[u] = typeof Q[u] > "u" ? null : Q[u];
|
|
6259
6259
|
});
|
|
6260
6260
|
}
|
|
6261
|
-
var O = this,
|
|
6262
|
-
return L(C, this.options,
|
|
6261
|
+
var O = this, z = {};
|
|
6262
|
+
return L(C, this.options, z, 0), z;
|
|
6263
6263
|
}, c.prototype.matchResponsiveRule = function(C, L) {
|
|
6264
6264
|
var O = C.condition;
|
|
6265
6265
|
(O.callback || function() {
|
|
6266
6266
|
return this.chartWidth <= E(O.maxWidth, Number.MAX_VALUE) && this.chartHeight <= E(O.maxHeight, Number.MAX_VALUE) && this.chartWidth >= E(O.minWidth, 0) && this.chartHeight >= E(O.minHeight, 0);
|
|
6267
6267
|
}).call(this) && L.push(C._id);
|
|
6268
6268
|
}, c.prototype.setResponsive = function(C, L) {
|
|
6269
|
-
var O = this,
|
|
6270
|
-
!L &&
|
|
6269
|
+
var O = this, z = this.options.responsive, U = this.currentResponsive, Q = [];
|
|
6270
|
+
!L && z && z.rules && z.rules.forEach(function(y) {
|
|
6271
6271
|
typeof y._id > "u" && (y._id = G()), O.matchResponsiveRule(y, Q);
|
|
6272
6272
|
}, this), L = Y.apply(void 0, Q.map(function(y) {
|
|
6273
|
-
return r((
|
|
6273
|
+
return r((z || {}).rules || [], function(b) {
|
|
6274
6274
|
return b._id === y;
|
|
6275
6275
|
});
|
|
6276
6276
|
}).map(function(y) {
|
|
@@ -6315,8 +6315,8 @@ var bn = { exports: {} };
|
|
|
6315
6315
|
o["Core/Responsive.js"],
|
|
6316
6316
|
o["Core/Color/Color.js"],
|
|
6317
6317
|
o["Core/Time.js"]
|
|
6318
|
-
], function(t, n, r, R, D, Y,
|
|
6319
|
-
return t.animate = D.animate, t.animObject = D.animObject, t.getDeferredAnimation = D.getDeferredAnimation, t.setAnimation = D.setAnimation, t.stop = D.stop, t.timers = R.timers, t.AST = Y, t.Axis = p, t.Chart = b, t.chart = b.chart, t.Fx = R, t.Legend = y, t.PlotLineOrBand = C, t.Point =
|
|
6318
|
+
], function(t, n, r, R, D, Y, F, E, I, G, A, g, p, d, c, C, L, O, z, U, Q, y, b, a, f, u, m, h, l, w, M, B, T, J, W) {
|
|
6319
|
+
return t.animate = D.animate, t.animObject = D.animObject, t.getDeferredAnimation = D.getDeferredAnimation, t.setAnimation = D.setAnimation, t.stop = D.stop, t.timers = R.timers, t.AST = Y, t.Axis = p, t.Chart = b, t.chart = b.chart, t.Fx = R, t.Legend = y, t.PlotLineOrBand = C, t.Point = z, t.Pointer = Q.isRequired() ? Q : U, t.Series = u, t.StackItem = f, t.SVGElement = I, t.SVGRenderer = G, t.Tick = L, t.Time = W, t.Tooltip = O, t.Color = J, t.color = J.parse, g.compose(G), A.compose(I), t.defaultOptions = r.defaultOptions, t.getOptions = r.getOptions, t.time = r.defaultTime, t.setOptions = r.setOptions, t.dateFormat = F.dateFormat, t.format = F.format, t.numberFormat = F.numberFormat, t.addEvent = n.addEvent, t.arrayMax = n.arrayMax, t.arrayMin = n.arrayMin, t.attr = n.attr, t.clearTimeout = n.clearTimeout, t.correctFloat = n.correctFloat, t.createElement = n.createElement, t.css = n.css, t.defined = n.defined, t.destroyObjectProperties = n.destroyObjectProperties, t.discardElement = n.discardElement, t.distribute = E.distribute, t.erase = n.erase, t.error = n.error, t.extend = n.extend, t.extendClass = n.extendClass, t.find = n.find, t.fireEvent = n.fireEvent, t.getMagnitude = n.getMagnitude, t.getStyle = n.getStyle, t.inArray = n.inArray, t.isArray = n.isArray, t.isClass = n.isClass, t.isDOMElement = n.isDOMElement, t.isFunction = n.isFunction, t.isNumber = n.isNumber, t.isObject = n.isObject, t.isString = n.isString, t.keys = n.keys, t.merge = n.merge, t.normalizeTickInterval = n.normalizeTickInterval, t.objectEach = n.objectEach, t.offset = n.offset, t.pad = n.pad, t.pick = n.pick, t.pInt = n.pInt, t.relativeLength = n.relativeLength, t.removeEvent = n.removeEvent, t.seriesType = m.seriesType, t.splat = n.splat, t.stableSort = n.stableSort, t.syncTimeout = n.syncTimeout, t.timeUnits = n.timeUnits, t.uniqueKey = n.uniqueKey, t.useSerialIds = n.useSerialIds, t.wrap = n.wrap, l.compose(h), B.compose(u), d.compose(p), c.compose(p), M.compose(w), C.compose(p), T.compose(b), a.compose(
|
|
6320
6320
|
p,
|
|
6321
6321
|
b,
|
|
6322
6322
|
u
|
|
@@ -6346,9 +6346,9 @@ var kn = { exports: {} };
|
|
|
6346
6346
|
return r(E.type);
|
|
6347
6347
|
}
|
|
6348
6348
|
function r(E, I, G) {
|
|
6349
|
-
return I = I || { x: 0, y: 0 }, typeof D.MouseEvent == "function" ? new D.MouseEvent(E, { bubbles: !0, cancelable: !0, composed: !0, button: 0, buttons: 1, relatedTarget: G ||
|
|
6349
|
+
return I = I || { x: 0, y: 0 }, typeof D.MouseEvent == "function" ? new D.MouseEvent(E, { bubbles: !0, cancelable: !0, composed: !0, button: 0, buttons: 1, relatedTarget: G || F, view: D, detail: E === "click" ? 1 : 0, screenX: I.x, screenY: I.y, clientX: I.x, clientY: I.y }) : R.createEvent && (G = R.createEvent("MouseEvent"), G.initMouseEvent) ? (G.initMouseEvent(E, !0, !0, D, E === "click" ? 1 : 0, I.x, I.y, I.x, I.y, !1, !1, !1, !1, 0, null), G) : { type: E };
|
|
6350
6350
|
}
|
|
6351
|
-
var R = o.doc, D = o.win, Y = t.css,
|
|
6351
|
+
var R = o.doc, D = o.win, Y = t.css, F = D.EventTarget && new D.EventTarget() || "none";
|
|
6352
6352
|
return { addClass: function(E, I) {
|
|
6353
6353
|
E.classList ? E.classList.add(I) : 0 > E.className.indexOf(I) && (E.className += " " + I);
|
|
6354
6354
|
}, cloneMouseEvent: n, cloneTouchEvent: function(E) {
|
|
@@ -6392,7 +6392,7 @@ var kn = { exports: {} };
|
|
|
6392
6392
|
}, reverseChildNodes: function(E) {
|
|
6393
6393
|
for (var I = E.childNodes.length; I--; )
|
|
6394
6394
|
E.appendChild(E.childNodes[I]);
|
|
6395
|
-
}, simulatedEventTarget:
|
|
6395
|
+
}, simulatedEventTarget: F, stripHTMLTagsFromString: function(E) {
|
|
6396
6396
|
return typeof E == "string" ? E.replace(/<\/?[^>]+(>|$)/g, "") : E;
|
|
6397
6397
|
}, visuallyHideElement: function(E) {
|
|
6398
6398
|
Y(E, { position: "absolute", width: "1px", height: "1px", overflow: "hidden", whiteSpace: "nowrap", clip: "rect(1px, 1px, 1px, 1px)", marginTop: "-3px", "-ms-filter": "progid:DXImageTransform.Microsoft.Alpha(Opacity=1)", filter: "alpha(opacity=1)", opacity: 0.01 });
|
|
@@ -6403,7 +6403,7 @@ var kn = { exports: {} };
|
|
|
6403
6403
|
], function(o, t) {
|
|
6404
6404
|
var n = o.format, r = t.getNestedProperty, R = t.pick, D;
|
|
6405
6405
|
return function(Y) {
|
|
6406
|
-
function
|
|
6406
|
+
function F(A, g) {
|
|
6407
6407
|
var p = A.indexOf("#each("), d = A.indexOf("#plural("), c = A.indexOf("["), C = A.indexOf("]");
|
|
6408
6408
|
if (-1 < p) {
|
|
6409
6409
|
if (C = A.slice(p).indexOf(")") + p, d = A.substring(0, p), c = A.substring(C + 1), C = A.substring(p + 6, C).split(","), p = Number(C[1]), A = "", g = r(C[0], g))
|
|
@@ -6430,20 +6430,20 @@ var kn = { exports: {} };
|
|
|
6430
6430
|
return -1 < c ? (d = A.substring(0, c), c = Number(A.substring(c + 1, C)), A = void 0, g = r(d, g), !isNaN(c) && g && (0 > c ? (A = g[g.length + c], typeof A > "u" && (A = g[0])) : (A = g[c], typeof A > "u" && (A = g[g.length - 1]))), typeof A < "u" ? A : "") : "{" + A + "}";
|
|
6431
6431
|
}
|
|
6432
6432
|
function E(A, g, p) {
|
|
6433
|
-
var d = function(
|
|
6434
|
-
|
|
6435
|
-
var Q =
|
|
6433
|
+
var d = function(z, U) {
|
|
6434
|
+
z = z.slice(U || 0);
|
|
6435
|
+
var Q = z.indexOf("{"), y = z.indexOf("}");
|
|
6436
6436
|
if (-1 < Q && y > Q)
|
|
6437
|
-
return { statement:
|
|
6437
|
+
return { statement: z.substring(Q + 1, y), begin: U + Q + 1, end: U + y };
|
|
6438
6438
|
}, c = [], C = 0;
|
|
6439
6439
|
do {
|
|
6440
6440
|
var L = d(A, C), O = A.substring(C, L && L.begin - 1);
|
|
6441
6441
|
O.length && c.push({ value: O, type: "constant" }), L && c.push({ value: L.statement, type: "statement" }), C = L ? L.end + 1 : C + 1;
|
|
6442
6442
|
} while (L);
|
|
6443
|
-
return c.forEach(function(
|
|
6444
|
-
|
|
6445
|
-
}), n(c.reduce(function(
|
|
6446
|
-
return
|
|
6443
|
+
return c.forEach(function(z) {
|
|
6444
|
+
z.type === "statement" && (z.value = F(z.value, g));
|
|
6445
|
+
}), n(c.reduce(function(z, U) {
|
|
6446
|
+
return z + U.value;
|
|
6447
6447
|
}, ""), g, p);
|
|
6448
6448
|
}
|
|
6449
6449
|
function I(A, g) {
|
|
@@ -6467,16 +6467,16 @@ var kn = { exports: {} };
|
|
|
6467
6467
|
}
|
|
6468
6468
|
function R(d) {
|
|
6469
6469
|
var c = d.chart, C = {}, L = "Seconds";
|
|
6470
|
-
C.Seconds = ((d.dataMax || d.max || 0) - (d.dataMin || d.min || 0)) / 1e3, C.Minutes = C.Seconds / 60, C.Hours = C.Minutes / 60, C.Days = C.Hours / 24, ["Minutes", "Hours", "Days"].forEach(function(
|
|
6471
|
-
2 < C[
|
|
6470
|
+
C.Seconds = ((d.dataMax || d.max || 0) - (d.dataMin || d.min || 0)) / 1e3, C.Minutes = C.Seconds / 60, C.Hours = C.Minutes / 60, C.Days = C.Hours / 24, ["Minutes", "Hours", "Days"].forEach(function(z) {
|
|
6471
|
+
2 < C[z] && (L = z);
|
|
6472
6472
|
});
|
|
6473
6473
|
var O = C[L].toFixed(L !== "Seconds" && L !== "Minutes" ? 1 : 0);
|
|
6474
6474
|
return c.langFormat("accessibility.axis.timeRange" + L, { chart: c, axis: d, range: O.replace(".0", "") });
|
|
6475
6475
|
}
|
|
6476
6476
|
function D(d) {
|
|
6477
6477
|
var c = d.chart, C = c.options, L = C && C.accessibility && C.accessibility.screenReaderSection.axisRangeDateFormat || "", O = { min: d.dataMin || d.min || 0, max: d.dataMax || d.max || 0 };
|
|
6478
|
-
return C = function(
|
|
6479
|
-
return d.dateTime ? c.time.dateFormat(L, O[
|
|
6478
|
+
return C = function(z) {
|
|
6479
|
+
return d.dateTime ? c.time.dateFormat(L, O[z]) : O[z].toString();
|
|
6480
6480
|
}, c.langFormat("accessibility.axis.rangeFromTo", { chart: c, axis: d, rangeFrom: C("min"), rangeTo: C("max") });
|
|
6481
6481
|
}
|
|
6482
6482
|
function Y(d) {
|
|
@@ -6485,7 +6485,7 @@ var kn = { exports: {} };
|
|
|
6485
6485
|
return !!c.graphic;
|
|
6486
6486
|
})) && d.graphic && d.graphic.element;
|
|
6487
6487
|
}
|
|
6488
|
-
function
|
|
6488
|
+
function F(d) {
|
|
6489
6489
|
var c = Y(d);
|
|
6490
6490
|
return c && c.parentNode || d.graph && d.graph.element || d.group && d.group.element;
|
|
6491
6491
|
}
|
|
@@ -6507,22 +6507,22 @@ var kn = { exports: {} };
|
|
|
6507
6507
|
return c.accessibility && typeof c.accessibility.rangeDescription < "u" ? c.accessibility.rangeDescription : d.categories ? (c = d.chart, d = d.dataMax && d.dataMin ? c.langFormat("accessibility.axis.rangeCategories", { chart: c, axis: d, numCategories: d.dataMax - d.dataMin + 1 }) : "", d) : !d.dateTime || d.min !== 0 && d.dataMin !== 0 ? D(d) : R(d);
|
|
6508
6508
|
}, getPointFromXY: function(d, c, C) {
|
|
6509
6509
|
for (var L = d.length, O; L--; )
|
|
6510
|
-
if (O = g(d[L].points || [], function(
|
|
6511
|
-
return
|
|
6510
|
+
if (O = g(d[L].points || [], function(z) {
|
|
6511
|
+
return z.x === c && z.y === C;
|
|
6512
6512
|
}))
|
|
6513
6513
|
return O;
|
|
6514
6514
|
}, getSeriesFirstPointElement: Y, getSeriesFromName: function(d, c) {
|
|
6515
6515
|
return c ? (d.series || []).filter(function(C) {
|
|
6516
6516
|
return C.name === c;
|
|
6517
6517
|
}) : d.series;
|
|
6518
|
-
}, getSeriesA11yElement:
|
|
6519
|
-
(d =
|
|
6518
|
+
}, getSeriesA11yElement: F, unhideChartElementFromAT: E, hideSeriesFromAT: function(d) {
|
|
6519
|
+
(d = F(d)) && d.setAttribute("aria-hidden", !0);
|
|
6520
6520
|
}, scrollToPoint: function(d) {
|
|
6521
6521
|
var c = d.series.xAxis, C = d.series.yAxis, L = c && c.scrollbar ? c : C;
|
|
6522
6522
|
if ((c = L && L.scrollbar) && A(c.to) && A(c.from)) {
|
|
6523
6523
|
if (C = c.to - c.from, A(L.dataMin) && A(L.dataMax)) {
|
|
6524
|
-
var O = L.toPixels(L.dataMin),
|
|
6525
|
-
d = (L.toPixels(d[L.coll === "xAxis" ? "x" : "y"] || 0) - O) / (
|
|
6524
|
+
var O = L.toPixels(L.dataMin), z = L.toPixels(L.dataMax);
|
|
6525
|
+
d = (L.toPixels(d[L.coll === "xAxis" ? "x" : "y"] || 0) - O) / (z - O);
|
|
6526
6526
|
} else
|
|
6527
6527
|
d = 0;
|
|
6528
6528
|
c.updatePosition(d - C / 2, d + C / 2), p(c, "changed", { from: c.from, to: c.to, trigger: "scrollbar", DOMEvent: null });
|
|
@@ -6561,21 +6561,21 @@ var kn = { exports: {} };
|
|
|
6561
6561
|
}), s(i, "Accessibility/AccessibilityComponent.js", [i["Accessibility/Utils/ChartUtilities.js"], i["Accessibility/Utils/DOMElementProvider.js"], i["Accessibility/Utils/EventProvider.js"], i["Accessibility/Utils/HTMLUtilities.js"], i["Core/Utilities.js"]], function(o, t, n, r, R) {
|
|
6562
6562
|
var D = o.fireEventOnWrappedOrUnwrappedElement, Y = r.getFakeMouseEvent;
|
|
6563
6563
|
return o = R.extend, r = function() {
|
|
6564
|
-
function
|
|
6564
|
+
function F() {
|
|
6565
6565
|
this.proxyProvider = this.keyCodes = this.eventProvider = this.domElementProvider = this.chart = void 0;
|
|
6566
6566
|
}
|
|
6567
|
-
return
|
|
6567
|
+
return F.prototype.initBase = function(E, I) {
|
|
6568
6568
|
this.chart = E, this.eventProvider = new n(), this.domElementProvider = new t(), this.proxyProvider = I, this.keyCodes = { left: 37, right: 39, up: 38, down: 40, enter: 13, space: 32, esc: 27, tab: 9, pageUp: 33, pageDown: 34, end: 35, home: 36 };
|
|
6569
|
-
},
|
|
6569
|
+
}, F.prototype.addEvent = function(E, I, G, A) {
|
|
6570
6570
|
return this.eventProvider.addEvent(E, I, G, A);
|
|
6571
|
-
},
|
|
6571
|
+
}, F.prototype.createElement = function(E, I) {
|
|
6572
6572
|
return this.domElementProvider.createElement(E, I);
|
|
6573
|
-
},
|
|
6573
|
+
}, F.prototype.fakeClickEvent = function(E) {
|
|
6574
6574
|
var I = Y("click");
|
|
6575
6575
|
D(E, I);
|
|
6576
|
-
},
|
|
6576
|
+
}, F.prototype.destroyBase = function() {
|
|
6577
6577
|
this.domElementProvider.destroyCreatedElements(), this.eventProvider.removeAddedEvents();
|
|
6578
|
-
},
|
|
6578
|
+
}, F;
|
|
6579
6579
|
}(), o(r.prototype, { init: function() {
|
|
6580
6580
|
}, getKeyboardNavigation: function() {
|
|
6581
6581
|
}, onChartUpdate: function() {
|
|
@@ -6589,8 +6589,8 @@ var kn = { exports: {} };
|
|
|
6589
6589
|
this.chart = r, this.keyCodeMap = R.keyCodeMap || [], this.validate = R.validate, this.init = R.init, this.terminate = R.terminate, this.response = { success: 1, prev: 2, next: 3, noHandler: 4, fail: 5 };
|
|
6590
6590
|
}
|
|
6591
6591
|
return n.prototype.run = function(r) {
|
|
6592
|
-
var R = r.which || r.keyCode, D = this.response.noHandler, Y = t(this.keyCodeMap, function(
|
|
6593
|
-
return -1 <
|
|
6592
|
+
var R = r.which || r.keyCode, D = this.response.noHandler, Y = t(this.keyCodeMap, function(F) {
|
|
6593
|
+
return -1 < F[0].indexOf(R);
|
|
6594
6594
|
});
|
|
6595
6595
|
return Y ? D = Y[1].call(this, R, r) : R === 9 && (D = this.response[r.shiftKey ? "prev" : "next"]), D;
|
|
6596
6596
|
}, n;
|
|
@@ -6617,7 +6617,7 @@ var kn = { exports: {} };
|
|
|
6617
6617
|
}
|
|
6618
6618
|
G(A, g), A.prototype = g === null ? Object.create(g) : (p.prototype = g.prototype, new p());
|
|
6619
6619
|
};
|
|
6620
|
-
}(), Y = n.unhideChartElementFromAT,
|
|
6620
|
+
}(), Y = n.unhideChartElementFromAT, F = n.getChartTitle, E = r.doc, I = R.stripHTMLTagsFromString;
|
|
6621
6621
|
return function(G) {
|
|
6622
6622
|
function A() {
|
|
6623
6623
|
return G !== null && G.apply(this, arguments) || this;
|
|
@@ -6625,19 +6625,19 @@ var kn = { exports: {} };
|
|
|
6625
6625
|
return D(A, G), A.prototype.onChartUpdate = function() {
|
|
6626
6626
|
this.handleSVGTitleElement(), this.setSVGContainerLabel(), this.setGraphicContainerAttrs(), this.setRenderToAttrs(), this.makeCreditsAccessible();
|
|
6627
6627
|
}, A.prototype.handleSVGTitleElement = function() {
|
|
6628
|
-
var g = this.chart, p = "highcharts-title-" + g.index, d = I(g.langFormat("accessibility.svgContainerTitle", { chartTitle:
|
|
6628
|
+
var g = this.chart, p = "highcharts-title-" + g.index, d = I(g.langFormat("accessibility.svgContainerTitle", { chartTitle: F(g) }));
|
|
6629
6629
|
if (d.length) {
|
|
6630
6630
|
var c = this.svgTitleElement = this.svgTitleElement || E.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
6631
6631
|
c.textContent = d, c.id = p, g.renderTo.insertBefore(c, g.renderTo.firstChild);
|
|
6632
6632
|
}
|
|
6633
6633
|
}, A.prototype.setSVGContainerLabel = function() {
|
|
6634
|
-
var g = this.chart, p = g.langFormat("accessibility.svgContainerLabel", { chartTitle:
|
|
6634
|
+
var g = this.chart, p = g.langFormat("accessibility.svgContainerLabel", { chartTitle: F(g) });
|
|
6635
6635
|
g.renderer.box && p.length && g.renderer.box.setAttribute("aria-label", p);
|
|
6636
6636
|
}, A.prototype.setGraphicContainerAttrs = function() {
|
|
6637
|
-
var g = this.chart, p = g.langFormat("accessibility.graphicContainerLabel", { chartTitle:
|
|
6637
|
+
var g = this.chart, p = g.langFormat("accessibility.graphicContainerLabel", { chartTitle: F(g) });
|
|
6638
6638
|
p.length && g.container.setAttribute("aria-label", p);
|
|
6639
6639
|
}, A.prototype.setRenderToAttrs = function() {
|
|
6640
|
-
var g = this.chart, p = g.options.accessibility.landmarkVerbosity !== "disabled", d = g.langFormat("accessibility.chartContainerLabel", { title:
|
|
6640
|
+
var g = this.chart, p = g.options.accessibility.landmarkVerbosity !== "disabled", d = g.langFormat("accessibility.chartContainerLabel", { title: F(g), chart: g });
|
|
6641
6641
|
d && (g.renderTo.setAttribute("role", p ? "region" : "group"), g.renderTo.setAttribute("aria-label", d));
|
|
6642
6642
|
}, A.prototype.makeCreditsAccessible = function() {
|
|
6643
6643
|
var g = this.chart, p = g.credits;
|
|
@@ -6661,7 +6661,7 @@ var kn = { exports: {} };
|
|
|
6661
6661
|
var c = this.focusElement, C = this.options.accessibility.keyboardNavigation.focusBorder;
|
|
6662
6662
|
c && (c.removeFocusBorder(), C.enabled && c.addFocusBorder(C.margin, { stroke: C.style.color, strokeWidth: C.style.lineWidth, r: C.style.borderRadius }));
|
|
6663
6663
|
}
|
|
6664
|
-
function
|
|
6664
|
+
function F(c, C) {
|
|
6665
6665
|
var L = this.options.accessibility.keyboardNavigation.focusBorder;
|
|
6666
6666
|
(C = C || c.element) && C.focus && (C.hcEvents && C.hcEvents.focusin || n(C, "focusin", function() {
|
|
6667
6667
|
}), C.focus(), L.hideBrowserFocusOutline && (C.style.outline = "none")), this.focusElement && this.focusElement.removeFocusBorder(), this.focusElement = c, this.renderFocusBorder();
|
|
@@ -6676,7 +6676,7 @@ var kn = { exports: {} };
|
|
|
6676
6676
|
}
|
|
6677
6677
|
function I(c, C) {
|
|
6678
6678
|
this.focusBorder && this.removeFocusBorder();
|
|
6679
|
-
var L = this.getBBox(), O = r(c, 3),
|
|
6679
|
+
var L = this.getBBox(), O = r(c, 3), z = this.parentGroup, U = this.scaleX || z && z.scaleX, Q = this.scaleY || z && z.scaleY;
|
|
6680
6680
|
U = (U ? !Q : Q) ? Math.abs(U || Q || 1) : (Math.abs(U || 1) + Math.abs(Q || 1)) / 2, L.x += this.translateX ? this.translateX : 0, L.y += this.translateY ? this.translateY : 0, Q = L.x - O;
|
|
6681
6681
|
var y = L.y - O, b = L.width + 2 * O, a = L.height + 2 * O, f = this instanceof o;
|
|
6682
6682
|
if (this.element.nodeName === "text" || f) {
|
|
@@ -6691,16 +6691,16 @@ var kn = { exports: {} };
|
|
|
6691
6691
|
var l = +this.attr("y");
|
|
6692
6692
|
isNaN(h) || (Q = h - L.width * m.x - O), isNaN(l) || (y = l - L.height * m.y - O), f && u && (f = b, b = a, a = f, isNaN(h) || (Q = h - L.height * m.x - O), isNaN(l) || (y = l - L.width * m.y - O));
|
|
6693
6693
|
}
|
|
6694
|
-
this.focusBorder = this.renderer.rect(Q, y, b, a, parseInt((C && C.r || 0).toString(), 10) / U).addClass("highcharts-focus-border").attr({ zIndex: 99 }).add(
|
|
6694
|
+
this.focusBorder = this.renderer.rect(Q, y, b, a, parseInt((C && C.r || 0).toString(), 10) / U).addClass("highcharts-focus-border").attr({ zIndex: 99 }).add(z), this.renderer.styledMode || this.focusBorder.attr({ stroke: C && C.stroke, "stroke-width": (C && C.strokeWidth || 0) / U }), G(this, c, C), E(this);
|
|
6695
6695
|
}
|
|
6696
6696
|
function G(c) {
|
|
6697
6697
|
for (var C = [], L = 1; L < arguments.length; L++)
|
|
6698
6698
|
C[L - 1] = arguments[L];
|
|
6699
6699
|
c.focusBorderUpdateHooks || (c.focusBorderUpdateHooks = {}, d.forEach(function(O) {
|
|
6700
6700
|
O += "Setter";
|
|
6701
|
-
var
|
|
6702
|
-
c.focusBorderUpdateHooks[O] =
|
|
6703
|
-
var U =
|
|
6701
|
+
var z = c[O] || c._defaultSetter;
|
|
6702
|
+
c.focusBorderUpdateHooks[O] = z, c[O] = function() {
|
|
6703
|
+
var U = z.apply(c, arguments);
|
|
6704
6704
|
return c.addFocusBorder.apply(
|
|
6705
6705
|
c,
|
|
6706
6706
|
C
|
|
@@ -6719,11 +6719,11 @@ var kn = { exports: {} };
|
|
|
6719
6719
|
}
|
|
6720
6720
|
var p = [], d = "x y transform width height r d stroke-width".split(" ");
|
|
6721
6721
|
D.compose = function(c, C) {
|
|
6722
|
-
p.indexOf(c) === -1 && (p.push(c), c = c.prototype, c.renderFocusBorder = Y, c.setFocusToElement =
|
|
6722
|
+
p.indexOf(c) === -1 && (p.push(c), c = c.prototype, c.renderFocusBorder = Y, c.setFocusToElement = F), p.indexOf(C) === -1 && (p.push(C), C = C.prototype, C.addFocusBorder = I, C.removeFocusBorder = A);
|
|
6723
6723
|
};
|
|
6724
6724
|
}(R || (R = {})), R;
|
|
6725
6725
|
}), s(i, "Accessibility/Utils/Announcer.js", [i["Core/Renderer/HTML/AST.js"], i["Accessibility/Utils/DOMElementProvider.js"], i["Core/Globals.js"], i["Accessibility/Utils/HTMLUtilities.js"], i["Core/Utilities.js"]], function(o, t, n, r, R) {
|
|
6726
|
-
var D = n.doc, Y = r.addClass,
|
|
6726
|
+
var D = n.doc, Y = r.addClass, F = r.visuallyHideElement, E = R.attr;
|
|
6727
6727
|
return function() {
|
|
6728
6728
|
function I(G, A) {
|
|
6729
6729
|
this.chart = G, this.domElementProvider = new t(), this.announceRegion = this.addAnnounceRegion(A);
|
|
@@ -6737,27 +6737,27 @@ var kn = { exports: {} };
|
|
|
6737
6737
|
}, 1e3);
|
|
6738
6738
|
}, I.prototype.addAnnounceRegion = function(G) {
|
|
6739
6739
|
var A = this.chart.announcerContainer || this.createAnnouncerContainer(), g = this.domElementProvider.createElement("div");
|
|
6740
|
-
return E(g, { "aria-hidden": !1, "aria-live": G }), this.chart.styledMode ? Y(g, "highcharts-visually-hidden") :
|
|
6740
|
+
return E(g, { "aria-hidden": !1, "aria-live": G }), this.chart.styledMode ? Y(g, "highcharts-visually-hidden") : F(g), A.appendChild(g), g;
|
|
6741
6741
|
}, I.prototype.createAnnouncerContainer = function() {
|
|
6742
6742
|
var G = this.chart, A = D.createElement("div");
|
|
6743
6743
|
return E(A, { "aria-hidden": !1, class: "highcharts-announcer-container" }), A.style.position = "relative", G.renderTo.insertBefore(A, G.renderTo.firstChild), G.announcerContainer = A;
|
|
6744
6744
|
}, I;
|
|
6745
6745
|
}();
|
|
6746
6746
|
}), s(i, "Accessibility/Components/AnnotationsA11y.js", [i["Accessibility/Utils/HTMLUtilities.js"]], function(o) {
|
|
6747
|
-
function t(
|
|
6748
|
-
return (
|
|
6747
|
+
function t(F) {
|
|
6748
|
+
return (F.annotations || []).reduce(function(E, I) {
|
|
6749
6749
|
return I.options && I.options.visible !== !1 && (E = E.concat(I.labels)), E;
|
|
6750
6750
|
}, []);
|
|
6751
6751
|
}
|
|
6752
|
-
function n(
|
|
6753
|
-
return
|
|
6752
|
+
function n(F) {
|
|
6753
|
+
return F.options && F.options.accessibility && F.options.accessibility.description || F.graphic && F.graphic.text && F.graphic.text.textStr || "";
|
|
6754
6754
|
}
|
|
6755
|
-
function r(
|
|
6756
|
-
var E =
|
|
6755
|
+
function r(F) {
|
|
6756
|
+
var E = F.options && F.options.accessibility && F.options.accessibility.description;
|
|
6757
6757
|
if (E)
|
|
6758
6758
|
return E;
|
|
6759
|
-
E =
|
|
6760
|
-
var I = n(
|
|
6759
|
+
E = F.chart;
|
|
6760
|
+
var I = n(F), G = F.points.filter(function(p) {
|
|
6761
6761
|
return !!p.graphic;
|
|
6762
6762
|
}).map(function(p) {
|
|
6763
6763
|
var d = p.accessibility && p.accessibility.valueDescription || p.graphic && p.graphic.element && p.graphic.element.getAttribute("aria-label") || "";
|
|
@@ -6765,32 +6765,32 @@ var kn = { exports: {} };
|
|
|
6765
6765
|
}).filter(function(p) {
|
|
6766
6766
|
return !!p;
|
|
6767
6767
|
}), A = G.length, g = "accessibility.screenReaderSection.annotations.description" + (1 < A ? "MultiplePoints" : A ? "SinglePoint" : "NoPoints");
|
|
6768
|
-
return
|
|
6768
|
+
return F = {
|
|
6769
6769
|
annotationText: I,
|
|
6770
|
-
annotation:
|
|
6770
|
+
annotation: F,
|
|
6771
6771
|
numPoints: A,
|
|
6772
6772
|
annotationPoint: G[0],
|
|
6773
6773
|
additionalAnnotationPoints: G.slice(1)
|
|
6774
|
-
}, E.langFormat(g,
|
|
6774
|
+
}, E.langFormat(g, F);
|
|
6775
6775
|
}
|
|
6776
|
-
function R(
|
|
6777
|
-
return t(
|
|
6776
|
+
function R(F) {
|
|
6777
|
+
return t(F).map(function(E) {
|
|
6778
6778
|
return (E = D(Y(r(E)))) ? "<li>".concat(E, "</li>") : "";
|
|
6779
6779
|
});
|
|
6780
6780
|
}
|
|
6781
6781
|
var D = o.escapeStringForHTML, Y = o.stripHTMLTagsFromString;
|
|
6782
|
-
return { getAnnotationsInfoHTML: function(
|
|
6783
|
-
var E =
|
|
6784
|
-
return !E || !E.length ? "" : (
|
|
6785
|
-
}, getAnnotationLabelDescription: r, getAnnotationListItems: R, getPointAnnotationTexts: function(
|
|
6786
|
-
var E = t(
|
|
6787
|
-
return -1 < I.points.indexOf(
|
|
6782
|
+
return { getAnnotationsInfoHTML: function(F) {
|
|
6783
|
+
var E = F.annotations;
|
|
6784
|
+
return !E || !E.length ? "" : (F = R(F), '<ul style="list-style-type: none">'.concat(F.join(" "), "</ul>"));
|
|
6785
|
+
}, getAnnotationLabelDescription: r, getAnnotationListItems: R, getPointAnnotationTexts: function(F) {
|
|
6786
|
+
var E = t(F.series.chart).filter(function(I) {
|
|
6787
|
+
return -1 < I.points.indexOf(F);
|
|
6788
6788
|
});
|
|
6789
6789
|
return E.length ? E.map(function(I) {
|
|
6790
6790
|
return "".concat(n(I));
|
|
6791
6791
|
}) : [];
|
|
6792
6792
|
} };
|
|
6793
|
-
}), s(i, "Accessibility/Components/InfoRegionsComponent.js", [i["Accessibility/A11yI18n.js"], i["Accessibility/AccessibilityComponent.js"], i["Accessibility/Utils/Announcer.js"], i["Accessibility/Components/AnnotationsA11y.js"], i["Core/Renderer/HTML/AST.js"], i["Accessibility/Utils/ChartUtilities.js"], i["Core/FormatUtilities.js"], i["Core/Globals.js"], i["Accessibility/Utils/HTMLUtilities.js"], i["Core/Utilities.js"]], function(o, t, n, r, R, D, Y,
|
|
6793
|
+
}), s(i, "Accessibility/Components/InfoRegionsComponent.js", [i["Accessibility/A11yI18n.js"], i["Accessibility/AccessibilityComponent.js"], i["Accessibility/Utils/Announcer.js"], i["Accessibility/Components/AnnotationsA11y.js"], i["Core/Renderer/HTML/AST.js"], i["Accessibility/Utils/ChartUtilities.js"], i["Core/FormatUtilities.js"], i["Core/Globals.js"], i["Accessibility/Utils/HTMLUtilities.js"], i["Core/Utilities.js"]], function(o, t, n, r, R, D, Y, F, E, I) {
|
|
6794
6794
|
function G(u, m) {
|
|
6795
6795
|
var h = m[0], l = u.series && u.series[0] || {};
|
|
6796
6796
|
if (l = { numSeries: u.series.length, numPoints: l.points && l.points.length, chart: u, mapTitle: u.mapView && u.mapView.geoMap && u.mapView.geoMap.title }, !h)
|
|
@@ -6821,7 +6821,7 @@ var kn = { exports: {} };
|
|
|
6821
6821
|
}
|
|
6822
6822
|
u(m, h), m.prototype = h === null ? Object.create(h) : (l.prototype = h.prototype, new l());
|
|
6823
6823
|
};
|
|
6824
|
-
}(), g = r.getAnnotationsInfoHTML, p = D.getAxisDescription, d = D.getAxisRangeDescription, c = D.getChartTitle, C = D.unhideChartElementFromAT, L = Y.format, O =
|
|
6824
|
+
}(), g = r.getAnnotationsInfoHTML, p = D.getAxisDescription, d = D.getAxisRangeDescription, c = D.getChartTitle, C = D.unhideChartElementFromAT, L = Y.format, O = F.doc, z = E.addClass, U = E.getElement, Q = E.getHeadingTagNameForElement, y = E.stripHTMLTagsFromString, b = E.visuallyHideElement, a = I.attr, f = I.pick;
|
|
6825
6825
|
return function(u) {
|
|
6826
6826
|
function m() {
|
|
6827
6827
|
var h = u !== null && u.apply(this, arguments) || this;
|
|
@@ -6871,13 +6871,13 @@ var kn = { exports: {} };
|
|
|
6871
6871
|
}
|
|
6872
6872
|
}, m.prototype.setLinkedDescriptionAttrs = function() {
|
|
6873
6873
|
var h = this.linkedDescriptionElement;
|
|
6874
|
-
h && (h.setAttribute("aria-hidden", "true"),
|
|
6874
|
+
h && (h.setAttribute("aria-hidden", "true"), z(h, "highcharts-linked-description"));
|
|
6875
6875
|
}, m.prototype.updateScreenReaderSection = function(h) {
|
|
6876
6876
|
var l = this.chart, w = this.screenReaderSections[h], M = w.buildContent(l), B = w.element = w.element || this.createElement("div"), T = B.firstChild || this.createElement("div");
|
|
6877
6877
|
M ? (this.setScreenReaderSectionAttribs(
|
|
6878
6878
|
B,
|
|
6879
6879
|
h
|
|
6880
|
-
), R.setElementHTML(T, M), B.appendChild(T), w.insertIntoDOM(B, l), l.styledMode ?
|
|
6880
|
+
), R.setElementHTML(T, M), B.appendChild(T), w.insertIntoDOM(B, l), l.styledMode ? z(T, "highcharts-visually-hidden") : b(T), C(l, T), w.afterInserted && w.afterInserted()) : (B.parentNode && B.parentNode.removeChild(B), w.element = null);
|
|
6881
6881
|
}, m.prototype.setScreenReaderSectionAttribs = function(h, l) {
|
|
6882
6882
|
var w = this.chart, M = w.langFormat("accessibility.screenReaderSection." + l + "RegionLabel", { chart: w, chartTitle: c(w) });
|
|
6883
6883
|
l = "highcharts-screen-reader-region-".concat(l, "-").concat(w.index), a(h, { id: l, "aria-label": M || void 0 }), h.style.position = "relative", M && h.setAttribute("role", w.options.accessibility.landmarkVerbosity === "all" ? "region" : "group");
|
|
@@ -6982,7 +6982,7 @@ var kn = { exports: {} };
|
|
|
6982
6982
|
}
|
|
6983
6983
|
A(g, p), g.prototype = p === null ? Object.create(p) : (d.prototype = p.prototype, new d());
|
|
6984
6984
|
};
|
|
6985
|
-
}(),
|
|
6985
|
+
}(), F = t.attr, E = R.getChartTitle, I = R.unhideChartElementFromAT, G = D.getFakeMouseEvent;
|
|
6986
6986
|
return t = function(A) {
|
|
6987
6987
|
function g() {
|
|
6988
6988
|
return A !== null && A.apply(this, arguments) || this;
|
|
@@ -7021,7 +7021,7 @@ var kn = { exports: {} };
|
|
|
7021
7021
|
"aria-hidden",
|
|
7022
7022
|
"true"
|
|
7023
7023
|
) : c.setAttribute("tabindex", -1));
|
|
7024
|
-
}), (d = d[0] && d[0].parentNode) &&
|
|
7024
|
+
}), (d = d[0] && d[0].parentNode) && F(d, { "aria-hidden": void 0, "aria-label": p.langFormat("accessibility.exporting.chartMenuLabel", { chart: p }), role: "list" }));
|
|
7025
7025
|
}, g.prototype.getKeyboardNavigation = function() {
|
|
7026
7026
|
var p = this.keyCodes, d = this.chart, c = this;
|
|
7027
7027
|
return new r(d, { keyCodeMap: [[[p.left, p.up], function() {
|
|
@@ -7068,10 +7068,10 @@ var kn = { exports: {} };
|
|
|
7068
7068
|
}), this.highlightedExportItemIx = 0, this.exportContextMenu.hideMenu(), this.container.focus());
|
|
7069
7069
|
}
|
|
7070
7070
|
function d(L) {
|
|
7071
|
-
var O = this.exportDivElements && this.exportDivElements[L],
|
|
7071
|
+
var O = this.exportDivElements && this.exportDivElements[L], z = this.exportDivElements && this.exportDivElements[this.highlightedExportItemIx];
|
|
7072
7072
|
if (O && O.tagName === "LI" && (!O.children || !O.children.length)) {
|
|
7073
7073
|
var U = !!(this.renderTo.getElementsByTagName("g")[0] || {}).focus;
|
|
7074
|
-
return O.focus && U && O.focus(),
|
|
7074
|
+
return O.focus && U && O.focus(), z && z.onmouseout && z.onmouseout(G("mouseout")), O.onmouseover && O.onmouseover(G("mouseover")), this.highlightedExportItemIx = L, !0;
|
|
7075
7075
|
}
|
|
7076
7076
|
return !1;
|
|
7077
7077
|
}
|
|
@@ -7090,7 +7090,7 @@ var kn = { exports: {} };
|
|
|
7090
7090
|
}(t || (t = {})), t;
|
|
7091
7091
|
}
|
|
7092
7092
|
), s(i, "Accessibility/KeyboardNavigation.js", [i["Core/Globals.js"], i["Accessibility/Components/MenuComponent.js"], i["Core/Utilities.js"], i["Accessibility/Utils/EventProvider.js"], i["Accessibility/Utils/HTMLUtilities.js"]], function(o, t, n, r, R) {
|
|
7093
|
-
var D = o.doc, Y = o.win,
|
|
7093
|
+
var D = o.doc, Y = o.win, F = n.addEvent, E = n.fireEvent, I = R.getElement, G = R.simulatedEventTarget;
|
|
7094
7094
|
return n = function() {
|
|
7095
7095
|
function A(g, p) {
|
|
7096
7096
|
this.components = this.chart = void 0, this.currentModuleIx = NaN, this.exitAnchor = this.eventProvider = void 0, this.modules = [], this.tabindexContainer = void 0, this.init(g, p);
|
|
@@ -7200,10 +7200,10 @@ var kn = { exports: {} };
|
|
|
7200
7200
|
}
|
|
7201
7201
|
var d = [];
|
|
7202
7202
|
A.compose = function(c) {
|
|
7203
|
-
return t.compose(c), d.indexOf(c) === -1 && (d.push(c), c.prototype.dismissPopupContent = g), d.indexOf(D) === -1 && (d.push(D),
|
|
7203
|
+
return t.compose(c), d.indexOf(c) === -1 && (d.push(c), c.prototype.dismissPopupContent = g), d.indexOf(D) === -1 && (d.push(D), F(D, "keydown", p)), c;
|
|
7204
7204
|
};
|
|
7205
7205
|
}(n || (n = {})), n;
|
|
7206
|
-
}), s(i, "Accessibility/Components/LegendComponent.js", [i["Core/Animation/AnimationUtilities.js"], i["Core/Globals.js"], i["Core/Legend/Legend.js"], i["Core/Utilities.js"], i["Accessibility/AccessibilityComponent.js"], i["Accessibility/KeyboardNavigationHandler.js"], i["Accessibility/Utils/ChartUtilities.js"], i["Accessibility/Utils/HTMLUtilities.js"]], function(o, t, n, r, R, D, Y,
|
|
7206
|
+
}), s(i, "Accessibility/Components/LegendComponent.js", [i["Core/Animation/AnimationUtilities.js"], i["Core/Globals.js"], i["Core/Legend/Legend.js"], i["Core/Utilities.js"], i["Accessibility/AccessibilityComponent.js"], i["Accessibility/KeyboardNavigationHandler.js"], i["Accessibility/Utils/ChartUtilities.js"], i["Accessibility/Utils/HTMLUtilities.js"]], function(o, t, n, r, R, D, Y, F) {
|
|
7207
7207
|
function E(y) {
|
|
7208
7208
|
var b = y.legend && y.legend.allItems, a = y.options.legend.accessibility || {};
|
|
7209
7209
|
return y = y.colorAxis && y.colorAxis.some(function(f) {
|
|
@@ -7233,7 +7233,7 @@ var kn = { exports: {} };
|
|
|
7233
7233
|
}
|
|
7234
7234
|
y(b, a), b.prototype = a === null ? Object.create(a) : (f.prototype = a.prototype, new f());
|
|
7235
7235
|
};
|
|
7236
|
-
}(), A = o.animObject, g = t.doc, p = r.addEvent, d = r.fireEvent, c = r.isNumber, C = r.pick, L = r.syncTimeout, O = Y.getChartTitle,
|
|
7236
|
+
}(), A = o.animObject, g = t.doc, p = r.addEvent, d = r.fireEvent, c = r.isNumber, C = r.pick, L = r.syncTimeout, O = Y.getChartTitle, z = F.stripHTMLTagsFromString, U = F.addClass, Q = F.removeClass;
|
|
7237
7237
|
return o = function(y) {
|
|
7238
7238
|
function b() {
|
|
7239
7239
|
var a = y !== null && y.apply(this, arguments) || this;
|
|
@@ -7278,7 +7278,7 @@ var kn = { exports: {} };
|
|
|
7278
7278
|
}, b.prototype.removeProxies = function() {
|
|
7279
7279
|
this.proxyProvider.removeGroup("legend");
|
|
7280
7280
|
}, b.prototype.updateLegendTitle = function() {
|
|
7281
|
-
var a = this.chart, f =
|
|
7281
|
+
var a = this.chart, f = z((a.legend && a.legend.options.title && a.legend.options.title.text || "").replace(/<br ?\/?>/g, " "));
|
|
7282
7282
|
a = a.langFormat("accessibility.legend.legendLabel" + (f ? "" : "NoTitle"), { chart: a, legendTitle: f, chartTitle: O(a) }), this.proxyProvider.updateGroupAttrs("legend", { "aria-label": a });
|
|
7283
7283
|
}, b.prototype.addLegendProxyGroup = function() {
|
|
7284
7284
|
this.proxyGroup = this.proxyProvider.addGroup("legend", "ul", { "aria-label": "_placeholder_", role: this.chart.options.accessibility.landmarkVerbosity === "all" ? "region" : null });
|
|
@@ -7290,7 +7290,7 @@ var kn = { exports: {} };
|
|
|
7290
7290
|
}, b.prototype.proxyLegendItem = function(a) {
|
|
7291
7291
|
var f = a.legendItem || {};
|
|
7292
7292
|
if (f.label && f.group) {
|
|
7293
|
-
var u = this.chart.langFormat("accessibility.legend.legendItem", { chart: this.chart, itemName:
|
|
7293
|
+
var u = this.chart.langFormat("accessibility.legend.legendItem", { chart: this.chart, itemName: z(a.name), item: a });
|
|
7294
7294
|
a.a11yProxyElement = this.proxyProvider.addProxyElement("legend", { click: f.label, visual: (f.group.div ? f.label : f.group).element }, { tabindex: -1, "aria-pressed": a.visible, "aria-label": u });
|
|
7295
7295
|
}
|
|
7296
7296
|
}, b.prototype.getKeyboardNavigation = function() {
|
|
@@ -7347,7 +7347,7 @@ var kn = { exports: {} };
|
|
|
7347
7347
|
var w = l.chart.options.accessibility.series.pointDescriptionEnabledThreshold;
|
|
7348
7348
|
return !!(w !== !1 && l.points && l.points.length >= w);
|
|
7349
7349
|
}
|
|
7350
|
-
function
|
|
7350
|
+
function F(l) {
|
|
7351
7351
|
var w = l.options.accessibility || {};
|
|
7352
7352
|
return !Y(l) && !w.exposeAsGroupOnly;
|
|
7353
7353
|
}
|
|
@@ -7394,7 +7394,7 @@ var kn = { exports: {} };
|
|
|
7394
7394
|
return W = q.valuePrefix || K.valuePrefix || k.valuePrefix || "", K = q.valueSuffix || K.valueSuffix || k.valueSuffix || "", q = I(l, l[typeof l.value < "u" ? "value" : "y"]), Z = l.isNull ? Z.chart.langFormat("accessibility.series.nullPointValue", { point: l }) : Z.pointArrayMap ? g(l, W, K) : W + q + K, T = Q(J, { point: l, index: x, xDescription: v, value: Z, separator: B ? ", " : "" }, T), J = (J = l.options && l.options.accessibility && l.options.accessibility.description) ? " " + J : "", w = M ? " " + w.name + "." : "", M = l.series.chart, B = C(l), v = { point: l, annotations: B }, M = B.length ? M.langFormat("accessibility.series.pointAnnotationsDescription", v) : "", l.accessibility = l.accessibility || {}, l.accessibility.valueDescription = T, T + J + w + (M ? " " + M : "");
|
|
7395
7395
|
}
|
|
7396
7396
|
function d(l) {
|
|
7397
|
-
var w =
|
|
7397
|
+
var w = F(l), M = E(l), B = l.chart.options.accessibility.point.describeNull;
|
|
7398
7398
|
(w || M) && l.points.forEach(function(T) {
|
|
7399
7399
|
var J;
|
|
7400
7400
|
if (!(J = T.graphic && T.graphic.element)) {
|
|
@@ -7414,12 +7414,12 @@ var kn = { exports: {} };
|
|
|
7414
7414
|
}, J = l.index + 1, W = A(l, "xAxis"), v = A(l, "yAxis"), x = { seriesNumber: J, series: l, chart: w };
|
|
7415
7415
|
return M = 1 < M.length ? "Combination" : "", x = w.langFormat("accessibility.series.summary." + l.type + M, x) || w.langFormat("accessibility.series.summary.default" + M, x), T = (T("yAxis") ? " " + v + "." : "") + (T("xAxis") ? " " + W + "." : ""), Q(w.options.accessibility.series.descriptionFormat || "", { seriesDescription: x, authorDescription: B ? " " + B : "", axisDescription: T, series: l, chart: w, seriesNumber: J }, void 0);
|
|
7416
7416
|
}
|
|
7417
|
-
var C = o.getPointAnnotationTexts, L = t.getAxisDescription, O = t.getSeriesFirstPointElement,
|
|
7417
|
+
var C = o.getPointAnnotationTexts, L = t.getAxisDescription, O = t.getSeriesFirstPointElement, z = t.getSeriesA11yElement, U = t.unhideChartElementFromAT, Q = n.format, y = n.numberFormat, b = r.reverseChildNodes, a = r.stripHTMLTagsFromString, f = R.find, u = R.isNumber, m = R.pick, h = R.defined;
|
|
7418
7418
|
return {
|
|
7419
7419
|
defaultPointDescriptionFormatter: p,
|
|
7420
7420
|
defaultSeriesDescriptionFormatter: c,
|
|
7421
7421
|
describeSeries: function(l) {
|
|
7422
|
-
var w = l.chart, M = O(l), B =
|
|
7422
|
+
var w = l.chart, M = O(l), B = z(l), T = w.is3d && w.is3d();
|
|
7423
7423
|
if (B) {
|
|
7424
7424
|
B.lastChild !== M || T || b(B), d(l), U(w, B), T = l.chart, w = T.options.chart, M = 1 < T.series.length, T = T.options.accessibility.series.describeSingleSeries;
|
|
7425
7425
|
var J = (l.options.accessibility || {}).exposeAsGroupOnly;
|
|
@@ -7441,7 +7441,7 @@ var kn = { exports: {} };
|
|
|
7441
7441
|
});
|
|
7442
7442
|
return d.length === 1 ? d[0] : p;
|
|
7443
7443
|
}
|
|
7444
|
-
function
|
|
7444
|
+
function F(p, d) {
|
|
7445
7445
|
var c = (p || []).concat(d || []).reduce(function(C, L) {
|
|
7446
7446
|
return C[L.name + L.index] = L, C;
|
|
7447
7447
|
}, {});
|
|
@@ -7485,8 +7485,8 @@ var kn = { exports: {} };
|
|
|
7485
7485
|
}, p.prototype.queueAnnouncement = function(d, c, C) {
|
|
7486
7486
|
var L = this, O = this.chart.options.accessibility.announceNewData;
|
|
7487
7487
|
if (O.enabled) {
|
|
7488
|
-
var
|
|
7489
|
-
O = Math.max(0, O.minAnnounceInterval - (
|
|
7488
|
+
var z = +/* @__PURE__ */ new Date();
|
|
7489
|
+
O = Math.max(0, O.minAnnounceInterval - (z - this.lastAnnouncementTime)), d = F(this.queuedAnnouncement && this.queuedAnnouncement.series, d), (c = this.buildAnnouncementMessage(d, c, C)) && (this.queuedAnnouncement && clearTimeout(this.queuedAnnouncementTimer), this.queuedAnnouncement = { time: z, message: c, series: d }, this.queuedAnnouncementTimer = setTimeout(function() {
|
|
7490
7490
|
L && L.announcer && (L.lastAnnouncementTime = +/* @__PURE__ */ new Date(), L.announcer.announce(L.queuedAnnouncement.message), delete L.queuedAnnouncement, delete L.queuedAnnouncementTimer);
|
|
7491
7491
|
}, O));
|
|
7492
7492
|
}
|
|
@@ -7513,12 +7513,12 @@ var kn = { exports: {} };
|
|
|
7513
7513
|
"Accessibility/ProxyElement.js",
|
|
7514
7514
|
[i["Core/Globals.js"], i["Core/Utilities.js"], i["Accessibility/Utils/EventProvider.js"], i["Accessibility/Utils/ChartUtilities.js"], i["Accessibility/Utils/HTMLUtilities.js"]],
|
|
7515
7515
|
function(o, t, n, r, R) {
|
|
7516
|
-
var D = o.doc, Y = t.attr,
|
|
7516
|
+
var D = o.doc, Y = t.attr, F = t.css, E = t.merge, I = r.fireEventOnWrappedOrUnwrappedElement, G = R.cloneMouseEvent, A = R.cloneTouchEvent, g = R.getFakeMouseEvent, p = R.removeElement;
|
|
7517
7517
|
return function() {
|
|
7518
7518
|
function d(c, C, L, O) {
|
|
7519
7519
|
this.chart = c, this.target = C, this.groupType = L, L = L === "ul", this.eventProvider = new n();
|
|
7520
|
-
var
|
|
7521
|
-
c.styledMode || this.hideButtonVisually(U),
|
|
7520
|
+
var z = L ? D.createElement("li") : null, U = this.buttonElement = D.createElement("button");
|
|
7521
|
+
c.styledMode || this.hideButtonVisually(U), z ? (L && !c.styledMode && (z.style.listStyle = "none"), z.appendChild(U), this.element = z) : this.element = U, this.updateTarget(C, O);
|
|
7522
7522
|
}
|
|
7523
7523
|
return d.prototype.click = function() {
|
|
7524
7524
|
var c = this.getTargetPosition();
|
|
@@ -7531,7 +7531,7 @@ var kn = { exports: {} };
|
|
|
7531
7531
|
}), Y(this.buttonElement, E({ "aria-label": this.getTargetAttr(c.click, "aria-label") }, L)), this.eventProvider.removeAddedEvents(), this.addProxyEventsToButton(this.buttonElement, c.click), this.refreshPosition();
|
|
7532
7532
|
}, d.prototype.refreshPosition = function() {
|
|
7533
7533
|
var c = this.getTargetPosition();
|
|
7534
|
-
|
|
7534
|
+
F(this.buttonElement, { width: (c.width || 1) + "px", height: (c.height || 1) + "px", left: (Math.round(c.x) || 0) + "px", top: (Math.round(c.y) || 0) + "px" });
|
|
7535
7535
|
}, d.prototype.remove = function() {
|
|
7536
7536
|
this.eventProvider.removeAddedEvents(), p(this.element);
|
|
7537
7537
|
}, d.prototype.updateCSSClassName = function() {
|
|
@@ -7542,14 +7542,14 @@ var kn = { exports: {} };
|
|
|
7542
7542
|
}, d.prototype.addProxyEventsToButton = function(c, C) {
|
|
7543
7543
|
var L = this;
|
|
7544
7544
|
"click touchstart touchend touchcancel touchmove mouseover mouseenter mouseleave mouseout".split(" ").forEach(function(O) {
|
|
7545
|
-
var
|
|
7545
|
+
var z = O.indexOf("touch") === 0;
|
|
7546
7546
|
L.eventProvider.addEvent(c, O, function(U) {
|
|
7547
|
-
var Q =
|
|
7548
|
-
C && I(C, Q), U.stopPropagation(),
|
|
7547
|
+
var Q = z ? A(U) : G(U);
|
|
7548
|
+
C && I(C, Q), U.stopPropagation(), z || U.preventDefault();
|
|
7549
7549
|
}, { passive: !1 });
|
|
7550
7550
|
});
|
|
7551
7551
|
}, d.prototype.hideButtonVisually = function(c) {
|
|
7552
|
-
|
|
7552
|
+
F(
|
|
7553
7553
|
c,
|
|
7554
7554
|
{ borderWidth: 0, backgroundColor: "transparent", cursor: "pointer", outline: "none", opacity: 1e-3, filter: "alpha(opacity=1)", zIndex: 999, overflow: "hidden", padding: 0, margin: 0, display: "block", position: "absolute", "-ms-filter": "progid:DXImageTransform.Microsoft.Alpha(Opacity=1)" }
|
|
7555
7555
|
);
|
|
@@ -7574,7 +7574,7 @@ var kn = { exports: {} };
|
|
|
7574
7574
|
i["Accessibility/Utils/HTMLUtilities.js"],
|
|
7575
7575
|
i["Accessibility/ProxyElement.js"]
|
|
7576
7576
|
], function(o, t, n, r, R, D) {
|
|
7577
|
-
var Y = o.doc,
|
|
7577
|
+
var Y = o.doc, F = t.attr, E = t.css, I = n.unhideChartElementFromAT, G = R.removeElement, A = R.removeChildNodes;
|
|
7578
7578
|
return function() {
|
|
7579
7579
|
function g(p) {
|
|
7580
7580
|
this.chart = p, this.domElementProvider = new r(), this.groups = {}, this.groupOrder = [], this.beforeChartProxyPosContainer = this.createProxyPosContainer("before"), this.afterChartProxyPosContainer = this.createProxyPosContainer("after"), this.update();
|
|
@@ -7593,20 +7593,20 @@ var kn = { exports: {} };
|
|
|
7593
7593
|
L.appendChild(C);
|
|
7594
7594
|
} else
|
|
7595
7595
|
L = C;
|
|
7596
|
-
return L.className = "highcharts-a11y-proxy-group highcharts-a11y-proxy-group-" + p.replace(/\W/g, "-"), this.groups[p] = { proxyContainerElement: C, groupElement: L, type: d, proxyElements: [] },
|
|
7596
|
+
return L.className = "highcharts-a11y-proxy-group highcharts-a11y-proxy-group-" + p.replace(/\W/g, "-"), this.groups[p] = { proxyContainerElement: C, groupElement: L, type: d, proxyElements: [] }, F(L, c || {}), d === "ul" && C.setAttribute("role", "list"), this.afterChartProxyPosContainer.appendChild(L), this.updateGroupOrder(this.groupOrder), L;
|
|
7597
7597
|
}, g.prototype.updateGroupAttrs = function(p, d) {
|
|
7598
7598
|
var c = this.groups[p];
|
|
7599
7599
|
if (!c)
|
|
7600
7600
|
throw Error("ProxyProvider.updateGroupAttrs: Invalid group key " + p);
|
|
7601
|
-
|
|
7601
|
+
F(c.groupElement, d);
|
|
7602
7602
|
}, g.prototype.updateGroupOrder = function(p) {
|
|
7603
7603
|
var d = this;
|
|
7604
7604
|
if (this.groupOrder = p.slice(), !this.isDOMOrderGroupOrder()) {
|
|
7605
7605
|
var c = p.indexOf("series"), C = -1 < c ? p.slice(0, c) : p, L = -1 < c ? p.slice(c + 1) : [];
|
|
7606
7606
|
p = Y.activeElement, ["before", "after"].forEach(function(O) {
|
|
7607
|
-
var
|
|
7608
|
-
O = O === "before" ? C : L, A(
|
|
7609
|
-
(U = d.groups[U]) &&
|
|
7607
|
+
var z = d[O === "before" ? "beforeChartProxyPosContainer" : "afterChartProxyPosContainer"];
|
|
7608
|
+
O = O === "before" ? C : L, A(z), O.forEach(function(U) {
|
|
7609
|
+
(U = d.groups[U]) && z.appendChild(U.groupElement);
|
|
7610
7610
|
});
|
|
7611
7611
|
}), (this.beforeChartProxyPosContainer.contains(p) || this.afterChartProxyPosContainer.contains(p)) && p && p.focus && p.focus();
|
|
7612
7612
|
}
|
|
@@ -7637,16 +7637,16 @@ var kn = { exports: {} };
|
|
|
7637
7637
|
C = C.children;
|
|
7638
7638
|
for (var O = 0; O < C.length; ++O) {
|
|
7639
7639
|
e: {
|
|
7640
|
-
for (var
|
|
7640
|
+
for (var z = C[O], U = Object.keys(p.groups), Q = U.length; Q--; ) {
|
|
7641
7641
|
var y = U[Q], b = p.groups[y];
|
|
7642
|
-
if (b &&
|
|
7643
|
-
|
|
7642
|
+
if (b && z === b.groupElement) {
|
|
7643
|
+
z = y;
|
|
7644
7644
|
break e;
|
|
7645
7645
|
}
|
|
7646
7646
|
}
|
|
7647
|
-
|
|
7647
|
+
z = void 0;
|
|
7648
7648
|
}
|
|
7649
|
-
|
|
7649
|
+
z && L.push(z);
|
|
7650
7650
|
}
|
|
7651
7651
|
return L;
|
|
7652
7652
|
}, c = d(this.beforeChartProxyPosContainer);
|
|
@@ -7687,8 +7687,8 @@ var kn = { exports: {} };
|
|
|
7687
7687
|
var h = f - b, l = b;
|
|
7688
7688
|
else
|
|
7689
7689
|
b && (h = f + m(f, -(b.count || 1)), this.chart && (this.chart.fixedRange = f - h));
|
|
7690
|
-
var w =
|
|
7691
|
-
return L(h) || (h = w), h <= w && (h = w, typeof l > "u" && (l = m(h, b.count)), this.newMax = Math.min(h + l,
|
|
7690
|
+
var w = z(this.dataMin, Number.MIN_VALUE);
|
|
7691
|
+
return L(h) || (h = w), h <= w && (h = w, typeof l > "u" && (l = m(h, b.count)), this.newMax = Math.min(h + l, z(this.dataMax, Number.MAX_VALUE))), L(f) ? !L(b) && b && b._offsetMin && (h += b._offsetMin) : h = void 0, h;
|
|
7692
7692
|
}
|
|
7693
7693
|
function R() {
|
|
7694
7694
|
this.options.rangeSelector && this.options.rangeSelector.enabled && (this.rangeSelector = new y(this));
|
|
@@ -7709,7 +7709,7 @@ var kn = { exports: {} };
|
|
|
7709
7709
|
h && h.render(w.min, w.max);
|
|
7710
7710
|
}), p(b, "redraw", l)]]), l());
|
|
7711
7711
|
}
|
|
7712
|
-
function
|
|
7712
|
+
function F() {
|
|
7713
7713
|
for (var b = 0, a = U.length; b < a; ++b) {
|
|
7714
7714
|
var f = U[b];
|
|
7715
7715
|
if (f[0] === this) {
|
|
@@ -7734,9 +7734,9 @@ var kn = { exports: {} };
|
|
|
7734
7734
|
var f = this.extraTopMargin, u = this.rangeSelector;
|
|
7735
7735
|
a && a.enabled && !d(u) && this.options.rangeSelector && (this.options.rangeSelector.enabled = !0, this.rangeSelector = u = new y(this)), this.extraTopMargin = this.extraBottomMargin = !1, u && (Y(this), a = a && a.verticalAlign || u.options && u.options.verticalAlign, u.options.floating || (a === "bottom" ? this.extraBottomMargin = !0 : a !== "middle" && (this.extraTopMargin = !0)), this.extraBottomMargin !== b || this.extraTopMargin !== f) && (this.isDirtyBox = !0);
|
|
7736
7736
|
}
|
|
7737
|
-
var A = o.defaultOptions, g = o.setOptions, p = n.addEvent, d = n.defined, c = n.extend, C = n.find, L = n.isNumber, O = n.merge,
|
|
7737
|
+
var A = o.defaultOptions, g = o.setOptions, p = n.addEvent, d = n.defined, c = n.extend, C = n.find, L = n.isNumber, O = n.merge, z = n.pick, U = [], Q = [], y;
|
|
7738
7738
|
return { compose: function(b, a, f) {
|
|
7739
|
-
y = f, Q.indexOf(b) === -1 && (Q.push(b), b.prototype.minFromRange = r), Q.indexOf(a) === -1 && (Q.push(a), p(a, "afterGetContainer", R), p(a, "beforeRender", D), p(a, "destroy",
|
|
7739
|
+
y = f, Q.indexOf(b) === -1 && (Q.push(b), b.prototype.minFromRange = r), Q.indexOf(a) === -1 && (Q.push(a), p(a, "afterGetContainer", R), p(a, "beforeRender", D), p(a, "destroy", F), p(a, "getMargins", E), p(a, "render", I), p(
|
|
7740
7740
|
a,
|
|
7741
7741
|
"update",
|
|
7742
7742
|
G
|
|
@@ -7753,7 +7753,7 @@ var kn = { exports: {} };
|
|
|
7753
7753
|
});
|
|
7754
7754
|
return a && f ? "datetime-local" : a ? "date" : f ? "time" : "text";
|
|
7755
7755
|
}
|
|
7756
|
-
var
|
|
7756
|
+
var F = t.defaultOptions, E = D.addEvent, I = D.createElement, G = D.css, A = D.defined, g = D.destroyObjectProperties, p = D.discardElement, d = D.extend, c = D.fireEvent, C = D.isNumber, L = D.merge, O = D.objectEach, z = D.pad, U = D.pick, Q = D.pInt, y = D.splat;
|
|
7757
7757
|
return t = function() {
|
|
7758
7758
|
function b(a) {
|
|
7759
7759
|
this.buttons = void 0, this.buttonOptions = b.prototype.defaultButtons, this.initialButtonGroupWidth = 0, this.options = void 0, this.chart = a, this.init(a);
|
|
@@ -7867,7 +7867,7 @@ var kn = { exports: {} };
|
|
|
7867
7867
|
m += "Z";
|
|
7868
7868
|
else {
|
|
7869
7869
|
var h;
|
|
7870
|
-
(h = n.isSafari) && (h = m, h = !(6 < h.length && (h.lastIndexOf("-") === h.length - 6 || h.lastIndexOf("+") === h.length - 6))), h && (h = new Date(m).getTimezoneOffset() / 60, m += 0 >= h ? "+".concat(
|
|
7870
|
+
(h = n.isSafari) && (h = m, h = !(6 < h.length && (h.lastIndexOf("-") === h.length - 6 || h.lastIndexOf("+") === h.length - 6))), h && (h = new Date(m).getTimezoneOffset() / 60, m += 0 >= h ? "+".concat(z(-h), ":00") : "-".concat(z(h), ":00"));
|
|
7871
7871
|
}
|
|
7872
7872
|
return m = Date.parse(m), C(m) || (a = a.split("-"), m = Date.UTC(Q(a[0]), Q(a[1]) - 1, Q(a[2]))), u && f && C(m) && (m += u.getTimezoneOffset(m)), m;
|
|
7873
7873
|
}, b.prototype.drawInput = function(a) {
|
|
@@ -7877,7 +7877,7 @@ var kn = { exports: {} };
|
|
|
7877
7877
|
var j = l.getInputValue(a);
|
|
7878
7878
|
j !== Number(W.getAttribute("data-hc-time-previous")) && C(j) && (W.setAttribute("data-hc-time-previous", j), T && x && C(k) ? j > Number(x.getAttribute("data-hc-time")) ? j = void 0 : j < k && (j = k) : Z && C(q) && (j < Number(Z.getAttribute("data-hc-time")) ? j = void 0 : j > q && (j = q)), typeof j < "u" && K.setExtremes(T ? j : K.min, T ? K.max : j, void 0, void 0, { trigger: "rangeSelectorInput" }));
|
|
7879
7879
|
}
|
|
7880
|
-
var u = this.chart, m = this.div, h = this.inputGroup, l = this, w = u.renderer.style || {}, M = u.renderer, B = u.options.rangeSelector, T = a === "min", J =
|
|
7880
|
+
var u = this.chart, m = this.div, h = this.inputGroup, l = this, w = u.renderer.style || {}, M = u.renderer, B = u.options.rangeSelector, T = a === "min", J = F.lang[T ? "rangeSelectorFrom" : "rangeSelectorTo"] || "";
|
|
7881
7881
|
J = M.label(J, 0).addClass("highcharts-range-label").attr({ padding: J ? 2 : 0, height: J ? B.inputBoxHeight : 0 }).add(h), M = M.label("", 0).addClass("highcharts-range-input").attr({ padding: 2, width: B.inputBoxWidth, height: B.inputBoxHeight, "text-align": "center" }).on("click", function() {
|
|
7882
7882
|
l.showInput(a), l[a + "Input"].focus();
|
|
7883
7883
|
}), u.styledMode || M.attr({
|
|
@@ -7925,7 +7925,7 @@ var kn = { exports: {} };
|
|
|
7925
7925
|
this.alignElements(), this.rendered = !0;
|
|
7926
7926
|
}
|
|
7927
7927
|
}, b.prototype.renderButtons = function() {
|
|
7928
|
-
var a = this, f = this.buttons, u = this.options, m =
|
|
7928
|
+
var a = this, f = this.buttons, u = this.options, m = F.lang, h = this.chart.renderer, l = L(u.buttonTheme), w = l && l.states, M = l.width || 28;
|
|
7929
7929
|
delete l.width, delete l.states, this.buttonGroup = h.g("range-selector-buttons").add(this.group);
|
|
7930
7930
|
var B = this.dropdown = I("select", void 0, { position: "absolute", width: "1px", height: "1px", padding: 0, border: 0, top: "-9999em", cursor: "pointer", opacity: 1e-4 }, this.div);
|
|
7931
7931
|
E(B, "touchstart", function() {
|
|
@@ -8068,7 +8068,7 @@ var kn = { exports: {} };
|
|
|
8068
8068
|
}
|
|
8069
8069
|
A(g, p), g.prototype = p === null ? Object.create(p) : (d.prototype = p.prototype, new d());
|
|
8070
8070
|
};
|
|
8071
|
-
}(),
|
|
8071
|
+
}(), F = n.unhideChartElementFromAT, E = n.getAxisRangeDescription, I = D.addEvent, G = D.attr;
|
|
8072
8072
|
return t = function(A) {
|
|
8073
8073
|
function g() {
|
|
8074
8074
|
var p = A !== null && A.apply(this, arguments) || this;
|
|
@@ -8081,14 +8081,14 @@ var kn = { exports: {} };
|
|
|
8081
8081
|
c && (this.updateSelectorVisibility(), this.setDropdownAttrs(), c.buttons && c.buttons.length && c.buttons.forEach(function(C) {
|
|
8082
8082
|
d.setRangeButtonAttrs(C);
|
|
8083
8083
|
}), c.maxInput && c.minInput && ["minInput", "maxInput"].forEach(function(C, L) {
|
|
8084
|
-
(C = c[C]) && (
|
|
8084
|
+
(C = c[C]) && (F(p, C), d.setRangeInputAttrs(C, "accessibility.rangeSelector." + (L ? "max" : "min") + "InputLabel"));
|
|
8085
8085
|
}));
|
|
8086
8086
|
}, g.prototype.updateSelectorVisibility = function() {
|
|
8087
8087
|
var p = this.chart, d = p.rangeSelector, c = d && d.dropdown, C = d && d.buttons || [];
|
|
8088
|
-
d && d.hasVisibleDropdown && c ? (
|
|
8088
|
+
d && d.hasVisibleDropdown && c ? (F(p, c), C.forEach(function(L) {
|
|
8089
8089
|
return L.element.setAttribute("aria-hidden", !0);
|
|
8090
8090
|
})) : (c && c.setAttribute("aria-hidden", !0), C.forEach(function(L) {
|
|
8091
|
-
return
|
|
8091
|
+
return F(p, L.element);
|
|
8092
8092
|
}));
|
|
8093
8093
|
}, g.prototype.setDropdownAttrs = function() {
|
|
8094
8094
|
var p = this.chart, d = p.rangeSelector && p.rangeSelector.dropdown;
|
|
@@ -8115,9 +8115,9 @@ var kn = { exports: {} };
|
|
|
8115
8115
|
var d = this.chart, c = d.rangeSelector, C = d.highlightedInputRangeIx = (d.highlightedInputRangeIx || 0) + p;
|
|
8116
8116
|
1 < C || 0 > C ? d.accessibility && (d.accessibility.keyboardNavigation.tabindexContainer.focus(), d.accessibility.keyboardNavigation.move(p)) : c && (p = c[C ? "maxDateBox" : "minDateBox"], c = c[C ? "maxInput" : "minInput"], p && c && d.setFocusToElement(p, c));
|
|
8117
8117
|
}, g.prototype.onInputNavInit = function(p) {
|
|
8118
|
-
var d = this, c = this, C = this.chart, L = 0 < p ? 0 : 1, O = C.rangeSelector,
|
|
8119
|
-
if (p = O && O.minInput, O = O && O.maxInput, C.highlightedInputRangeIx = L,
|
|
8120
|
-
C.setFocusToElement(
|
|
8118
|
+
var d = this, c = this, C = this.chart, L = 0 < p ? 0 : 1, O = C.rangeSelector, z = O && O[L ? "maxDateBox" : "minDateBox"];
|
|
8119
|
+
if (p = O && O.minInput, O = O && O.maxInput, C.highlightedInputRangeIx = L, z && p && O) {
|
|
8120
|
+
C.setFocusToElement(z, L ? O : p), this.removeInputKeydownHandler && this.removeInputKeydownHandler(), C = function(y) {
|
|
8121
8121
|
(y.which || y.keyCode) === d.keyCodes.tab && (y.preventDefault(), y.stopPropagation(), c.onInputKbdMove(y.shiftKey ? -1 : 1));
|
|
8122
8122
|
};
|
|
8123
8123
|
var U = I(p, "keydown", C), Q = I(O, "keydown", C);
|
|
@@ -8186,7 +8186,7 @@ var kn = { exports: {} };
|
|
|
8186
8186
|
function Y(A) {
|
|
8187
8187
|
return A.marker.states && A.marker.states.normal && A.marker.states.normal.opacity;
|
|
8188
8188
|
}
|
|
8189
|
-
function
|
|
8189
|
+
function F() {
|
|
8190
8190
|
this.chart.styledMode && (this.markerGroup && this.markerGroup[this.a11yMarkersForced ? "addClass" : "removeClass"]("highcharts-a11y-markers-hidden"), this._hasPointMarkers && this.points && this.points.length && this.points.forEach(function(A) {
|
|
8191
8191
|
A.graphic && (A.graphic[A.hasForcedA11yMarker ? "addClass" : "removeClass"]("highcharts-a11y-marker-hidden"), A.graphic[A.hasForcedA11yMarker === !1 ? "addClass" : "removeClass"]("highcharts-a11y-marker-visible"));
|
|
8192
8192
|
}));
|
|
@@ -8208,14 +8208,14 @@ var kn = { exports: {} };
|
|
|
8208
8208
|
}
|
|
8209
8209
|
var G = [];
|
|
8210
8210
|
R.compose = function(A) {
|
|
8211
|
-
G.indexOf(A) === -1 && (G.push(A), t(A, "afterSetOptions", E), t(A, "render", I), t(A, "afterRender",
|
|
8211
|
+
G.indexOf(A) === -1 && (G.push(A), t(A, "afterSetOptions", E), t(A, "render", I), t(A, "afterRender", F));
|
|
8212
8212
|
};
|
|
8213
8213
|
}(r || (r = {})), r;
|
|
8214
8214
|
}), s(
|
|
8215
8215
|
i,
|
|
8216
8216
|
"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",
|
|
8217
8217
|
[i["Core/Series/Point.js"], i["Core/Series/Series.js"], i["Core/Series/SeriesRegistry.js"], i["Core/Globals.js"], i["Core/Utilities.js"], i["Accessibility/KeyboardNavigationHandler.js"], i["Accessibility/Utils/EventProvider.js"], i["Accessibility/Utils/ChartUtilities.js"]],
|
|
8218
|
-
function(o, t, n, r, R, D, Y,
|
|
8218
|
+
function(o, t, n, r, R, D, Y, F) {
|
|
8219
8219
|
function E(Q) {
|
|
8220
8220
|
var y = Q.index, b = Q.series.points, a = b.length;
|
|
8221
8221
|
if (b[y] !== Q) {
|
|
@@ -8258,7 +8258,7 @@ var kn = { exports: {} };
|
|
|
8258
8258
|
function p(Q) {
|
|
8259
8259
|
return delete Q.highlightedPoint, (Q = A(Q)) ? Q.highlight() : !1;
|
|
8260
8260
|
}
|
|
8261
|
-
var d = n.seriesTypes, c = r.doc, C = R.defined, L = R.fireEvent, O =
|
|
8261
|
+
var d = n.seriesTypes, c = r.doc, C = R.defined, L = R.fireEvent, O = F.getPointFromXY, z = F.getSeriesFromName, U = F.scrollToPoint;
|
|
8262
8262
|
return n = function() {
|
|
8263
8263
|
function Q(y, b) {
|
|
8264
8264
|
this.keyCodes = b, this.chart = y;
|
|
@@ -8283,7 +8283,7 @@ var kn = { exports: {} };
|
|
|
8283
8283
|
m = m && -1 < m.indexOf("highcharts-a11y-proxy-button"), b.highlightedPoint === this && u !== f && !m && f && f.focus && f.focus();
|
|
8284
8284
|
});
|
|
8285
8285
|
}, Q.prototype.onDrillupAll = function() {
|
|
8286
|
-
var y = this.lastDrilledDownPoint, b = this.chart, a = y &&
|
|
8286
|
+
var y = this.lastDrilledDownPoint, b = this.chart, a = y && z(b, y.seriesName), f;
|
|
8287
8287
|
y && a && C(y.x) && C(y.y) && (f = O(a, y.x, y.y)), f = f || A(b), b.container && b.container.focus(), f && f.highlight && f.highlight(!1);
|
|
8288
8288
|
}, Q.prototype.getKeyboardNavigationHandler = function() {
|
|
8289
8289
|
var y = this, b = this.keyCodes, a = this.chart, f = a.inverted;
|
|
@@ -8407,7 +8407,7 @@ var kn = { exports: {} };
|
|
|
8407
8407
|
i["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],
|
|
8408
8408
|
i["Core/Tooltip.js"]
|
|
8409
8409
|
], function(o, t, n, r, R, D, Y) {
|
|
8410
|
-
var
|
|
8410
|
+
var F = this && this.__extends || function() {
|
|
8411
8411
|
var G = function(A, g) {
|
|
8412
8412
|
return G = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, d) {
|
|
8413
8413
|
p.__proto__ = d;
|
|
@@ -8427,7 +8427,7 @@ var kn = { exports: {} };
|
|
|
8427
8427
|
function A() {
|
|
8428
8428
|
return G !== null && G.apply(this, arguments) || this;
|
|
8429
8429
|
}
|
|
8430
|
-
return
|
|
8430
|
+
return F(A, G), A.compose = function(g, p, d) {
|
|
8431
8431
|
r.compose(d), n.compose(d), D.compose(g, p, d);
|
|
8432
8432
|
}, A.prototype.init = function() {
|
|
8433
8433
|
this.newDataAnnouncer = new r(this.chart), this.newDataAnnouncer.init(), this.keyboardNavigation = new D(this.chart, this.keyCodes), this.keyboardNavigation.init(), this.hideTooltipFromATWhenShown(), this.hideSeriesLabelsFromATWhenShown();
|
|
@@ -8477,7 +8477,7 @@ var kn = { exports: {} };
|
|
|
8477
8477
|
}
|
|
8478
8478
|
G(A, g), A.prototype = g === null ? Object.create(g) : (p.prototype = g.prototype, new p());
|
|
8479
8479
|
};
|
|
8480
|
-
}(), Y = t.unhideChartElementFromAT,
|
|
8480
|
+
}(), Y = t.unhideChartElementFromAT, F = n.getFakeMouseEvent, E = R.attr, I = R.pick;
|
|
8481
8481
|
return function(G) {
|
|
8482
8482
|
function A() {
|
|
8483
8483
|
var g = G !== null && G.apply(this, arguments) || this;
|
|
@@ -8526,7 +8526,7 @@ var kn = { exports: {} };
|
|
|
8526
8526
|
);
|
|
8527
8527
|
}, A.prototype.onMapKbdArrow = function(g, p) {
|
|
8528
8528
|
var d = this.chart, c = this.keyCodes, C = d.container, L = p === c.up || p === c.down;
|
|
8529
|
-
return p = (L ? d.plotHeight : d.plotWidth) / 10 * (p === c.left || p === c.up ? 1 : -1), c = 10 * Math.random(), d = { x: C.offsetLeft + d.plotLeft + d.plotWidth / 2 + c, y: C.offsetTop + d.plotTop + d.plotHeight / 2 + c }, L = L ? { x: d.x, y: d.y + p } : { x: d.x + p, y: d.y }, [
|
|
8529
|
+
return p = (L ? d.plotHeight : d.plotWidth) / 10 * (p === c.left || p === c.up ? 1 : -1), c = 10 * Math.random(), d = { x: C.offsetLeft + d.plotLeft + d.plotWidth / 2 + c, y: C.offsetTop + d.plotTop + d.plotHeight / 2 + c }, L = L ? { x: d.x, y: d.y + p } : { x: d.x + p, y: d.y }, [F("mousedown", d), F("mousemove", L), F("mouseup", L)].forEach(function(O) {
|
|
8530
8530
|
return C.dispatchEvent(O);
|
|
8531
8531
|
}), g.response.success;
|
|
8532
8532
|
}, A.prototype.onMapKbdTab = function(g, p) {
|
|
@@ -8544,8 +8544,8 @@ var kn = { exports: {} };
|
|
|
8544
8544
|
), d.setState(2), this.focusedMapNavButtonIx = 0 < g ? 0 : 1;
|
|
8545
8545
|
}, A.prototype.simpleButtonNavigation = function(g, p, d) {
|
|
8546
8546
|
var c = this.keyCodes, C = this, L = this.chart;
|
|
8547
|
-
return new r(L, { keyCodeMap: [[[c.tab, c.up, c.down, c.left, c.right], function(O,
|
|
8548
|
-
return this.response[O === c.tab &&
|
|
8547
|
+
return new r(L, { keyCodeMap: [[[c.tab, c.up, c.down, c.left, c.right], function(O, z) {
|
|
8548
|
+
return this.response[O === c.tab && z.shiftKey || O === c.left || O === c.up ? "prev" : "next"];
|
|
8549
8549
|
}], [[c.space, c.enter], function() {
|
|
8550
8550
|
var O = d(this, L);
|
|
8551
8551
|
return I(O, this.response.success);
|
|
@@ -8581,9 +8581,9 @@ var kn = { exports: {} };
|
|
|
8581
8581
|
R.highContrastModeActive = !0;
|
|
8582
8582
|
var D = R.options.accessibility.highContrastTheme;
|
|
8583
8583
|
R.update(D, !1), R.series.forEach(function(Y) {
|
|
8584
|
-
var
|
|
8585
|
-
Y.update({ color:
|
|
8586
|
-
E.options && E.options.color && E.update({ color:
|
|
8584
|
+
var F = D.plotOptions[Y.type] || {};
|
|
8585
|
+
Y.update({ color: F.color || "windowText", colors: [F.color || "windowText"], borderColor: F.borderColor || "window" }), Y.points.forEach(function(E) {
|
|
8586
|
+
E.options && E.options.color && E.update({ color: F.color || "windowText", borderColor: F.borderColor || "window" }, !1);
|
|
8587
8587
|
});
|
|
8588
8588
|
}), R.redraw();
|
|
8589
8589
|
} };
|
|
@@ -8739,7 +8739,7 @@ var kn = { exports: {} };
|
|
|
8739
8739
|
}), s(i, "Accessibility/Options/DeprecatedOptions.js", [i["Core/Utilities.js"]], function(o) {
|
|
8740
8740
|
function t(E, I, G) {
|
|
8741
8741
|
for (var A, g = 0; g < I.length - 1; ++g)
|
|
8742
|
-
A = I[g], E = E[A] =
|
|
8742
|
+
A = I[g], E = E[A] = F(E[A], {});
|
|
8743
8743
|
E[I[I.length - 1]] = G;
|
|
8744
8744
|
}
|
|
8745
8745
|
function n(E, I, G, A) {
|
|
@@ -8775,7 +8775,7 @@ var kn = { exports: {} };
|
|
|
8775
8775
|
});
|
|
8776
8776
|
});
|
|
8777
8777
|
}
|
|
8778
|
-
var Y = o.error,
|
|
8778
|
+
var Y = o.error, F = o.pick;
|
|
8779
8779
|
return function(E) {
|
|
8780
8780
|
r(E), R(E), E.series && D(E), n(E, ["accessibility"], ["accessibility"], {
|
|
8781
8781
|
pointDateFormat: ["point", "dateFormat"],
|
|
@@ -8821,7 +8821,7 @@ var kn = { exports: {} };
|
|
|
8821
8821
|
i["Accessibility/Options/A11yDefaults.js"],
|
|
8822
8822
|
i["Accessibility/Options/LangDefaults.js"],
|
|
8823
8823
|
i["Accessibility/Options/DeprecatedOptions.js"]
|
|
8824
|
-
], function(o, t, n, r, R, D, Y,
|
|
8824
|
+
], function(o, t, n, r, R, D, Y, F, E, I, G, A, g, p, d, c, C, L, O, z, U) {
|
|
8825
8825
|
o = o.defaultOptions;
|
|
8826
8826
|
var Q = t.doc, y = n.addEvent, b = n.extend, a = n.fireEvent, f = n.merge, u = r.removeElement;
|
|
8827
8827
|
return t = function() {
|
|
@@ -8832,7 +8832,7 @@ var kn = { exports: {} };
|
|
|
8832
8832
|
this.chart = h, Q.addEventListener && h.renderer.isSVG ? (U(h), this.proxyProvider = new g(this.chart), this.initComponents(), this.keyboardNavigation = new E(h, this.components)) : (this.zombie = !0, this.components = {}, h.renderTo.setAttribute("aria-hidden", !0));
|
|
8833
8833
|
}, m.prototype.initComponents = function() {
|
|
8834
8834
|
var h = this.chart, l = this.proxyProvider, w = h.options.accessibility;
|
|
8835
|
-
this.components = { container: new D(), infoRegions: new
|
|
8835
|
+
this.components = { container: new D(), infoRegions: new F(), legend: new I(), chartMenu: new G(), rangeSelector: new p(), series: new d(), zoom: new c() }, w.customComponents && b(this.components, w.customComponents);
|
|
8836
8836
|
var M = this.components;
|
|
8837
8837
|
this.getComponentOrder().forEach(function(B) {
|
|
8838
8838
|
M[B].initBase(h, l), M[B].init();
|
|
@@ -8900,7 +8900,7 @@ var kn = { exports: {} };
|
|
|
8900
8900
|
});
|
|
8901
8901
|
}));
|
|
8902
8902
|
};
|
|
8903
|
-
}(t || (t = {})), f(!0, o, O, { accessibility: { highContrastTheme: L }, lang:
|
|
8903
|
+
}(t || (t = {})), f(!0, o, O, { accessibility: { highContrastTheme: L }, lang: z }), t;
|
|
8904
8904
|
}), s(i, "masters/modules/accessibility.src.js", [i["Core/Globals.js"], i["Accessibility/Accessibility.js"], i["Accessibility/AccessibilityComponent.js"], i["Accessibility/Utils/ChartUtilities.js"], i["Accessibility/Utils/HTMLUtilities.js"], i["Accessibility/KeyboardNavigationHandler.js"], i["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]], function(o, t, n, r, R, D, Y) {
|
|
8905
8905
|
o.i18nFormat = t.i18nFormat, o.A11yChartUtilities = r, o.A11yHTMLUtilities = R, o.AccessibilityComponent = n, o.KeyboardNavigationHandler = D, o.SeriesAccessibilityDescriber = Y, t.compose(o.Chart, o.Legend, o.Point, o.Series, o.SVGElement, o.RangeSelector);
|
|
8906
8906
|
});
|
|
@@ -8920,22 +8920,22 @@ ml(Ln);
|
|
|
8920
8920
|
i.call(this), this.points.forEach(function(o) {
|
|
8921
8921
|
if (s.borderRadiusTopLeft || s.borderRadiusTopRight) {
|
|
8922
8922
|
const t = Number(o.shapeArgs.width), n = Number(o.shapeArgs.height), r = Number(o.shapeArgs.x), R = Number(o.shapeArgs.y), D = Math.min(t, n) / 2;
|
|
8923
|
-
let Y = e.relativeLength(s.borderRadiusTopLeft || 0, t),
|
|
8924
|
-
Y = Y > D ? D : Y,
|
|
8923
|
+
let Y = e.relativeLength(s.borderRadiusTopLeft || 0, t), F = e.relativeLength(s.borderRadiusTopRight || 0, t);
|
|
8924
|
+
Y = Y > D ? D : Y, F = F > D ? D : F, o.dlBox = o.shapeArgs, o.shapeType = "path";
|
|
8925
8925
|
const E = [
|
|
8926
8926
|
"M",
|
|
8927
8927
|
r + Y,
|
|
8928
8928
|
R,
|
|
8929
8929
|
"L",
|
|
8930
|
-
r + t -
|
|
8930
|
+
r + t - F,
|
|
8931
8931
|
R,
|
|
8932
8932
|
"C",
|
|
8933
|
-
r + t -
|
|
8933
|
+
r + t - F / 2,
|
|
8934
8934
|
R,
|
|
8935
8935
|
r + t,
|
|
8936
|
-
R +
|
|
8936
|
+
R + F / 2,
|
|
8937
8937
|
r + t,
|
|
8938
|
-
R +
|
|
8938
|
+
R + F,
|
|
8939
8939
|
"L",
|
|
8940
8940
|
r + t,
|
|
8941
8941
|
R + n,
|
|
@@ -12377,7 +12377,7 @@ Ci = Vi([
|
|
|
12377
12377
|
})
|
|
12378
12378
|
], Ci);
|
|
12379
12379
|
function R3(e, i, s, o, t, n) {
|
|
12380
|
-
const r = ge("IconAdd"), R = ge("IconEdit"), D = ge("IconFilter"), Y = ge("IconFilterActive"),
|
|
12380
|
+
const r = ge("IconAdd"), R = ge("IconEdit"), D = ge("IconFilter"), Y = ge("IconFilterActive"), F = ge("IconSearch"), E = ge("IconClose"), I = ge("IconCheck"), G = ge("IconHandle"), A = ge("IconHelp"), g = ge("IconArrow"), p = ge("IconPaginationArrow"), d = ge("IconPaginationArrowDouble"), c = ge("IconAccordionArrow"), C = ge("IconQuestions"), L = ge("IconSubject"), O = ge("IconFlag"), z = ge("IconFlagContent"), U = ge("IconFlagFilled"), Q = ge("IconLoading"), y = ge("IconLoading2"), b = ge("IconWarning"), a = ge("IconHourglass"), f = ge("IconImage"), u = ge("IconActivity"), m = ge("IconBarChart"), h = ge("IconExam"), l = ge("IconLightning"), w = ge("IconCalendar"), M = ge("IconCalendarPicker"), B = ge("IconPassage"), T = ge("IconPencil"), J = ge("IconPeople"), W = ge("IconPercent"), v = ge("IconPerson"), x = ge("IconMissedQuestions"), Z = ge("IconQuick10"), K = ge("IconShare"), q = ge("IconStopwatch"), k = ge("IconStrike"), j = ge("IconAddCircle"), S = ge("IconRemoveCircle"), _ = ge("IconReviewFlag"), X = ge("IconEyeShow"), $ = ge("IconEyeHide"), ie = ge("IconLock"), se = ge("IconMoon"), re = ge("IconHeart"), pe = ge("IconExternalLink"), fe = ge("IconKeyboard"), ue = ge("IconFullView"), de = ge("IconFullViewActive"), we = ge("IconSideBar"), le = ge("IconSideBarActive"), ee = ge("IconCorrect"), te = ge("IconIncorrect"), ae = ge("IconFlagFeedback"), he = ge("IconText"), ce = ge("IconTimer"), Ae = ge("IconInfo"), Ee = ge("IconList"), Ge = ge("IconLaunch"), je = ge("IconLevelUp"), Be = ge("IconLightbulb"), Qe = ge("IconChat"), qe = ge("IconPreview"), He = ge("IconPresent"), Ue = ge("IconLink");
|
|
12381
12381
|
return e.type === "add" ? (N(), ye(r, {
|
|
12382
12382
|
key: 0,
|
|
12383
12383
|
title: e.title
|
|
@@ -12390,7 +12390,7 @@ function R3(e, i, s, o, t, n) {
|
|
|
12390
12390
|
}, null, 8, ["title"])) : e.type === "filterActive" ? (N(), ye(Y, {
|
|
12391
12391
|
key: 3,
|
|
12392
12392
|
title: e.title
|
|
12393
|
-
}, null, 8, ["title"])) : e.type === "search" ? (N(), ye(
|
|
12393
|
+
}, null, 8, ["title"])) : e.type === "search" ? (N(), ye(F, {
|
|
12394
12394
|
key: 4,
|
|
12395
12395
|
title: e.title
|
|
12396
12396
|
}, null, 8, ["title"])) : e.type === "close" ? (N(), ye(E, {
|
|
@@ -12426,7 +12426,7 @@ function R3(e, i, s, o, t, n) {
|
|
|
12426
12426
|
}, null, 8, ["title"])) : e.type === "flag" ? (N(), ye(O, {
|
|
12427
12427
|
key: 15,
|
|
12428
12428
|
title: e.title
|
|
12429
|
-
}, null, 8, ["title"])) : e.type === "flagContent" ? (N(), ye(
|
|
12429
|
+
}, null, 8, ["title"])) : e.type === "flagContent" ? (N(), ye(z, {
|
|
12430
12430
|
key: 16,
|
|
12431
12431
|
title: e.title
|
|
12432
12432
|
}, null, 8, ["title"])) : e.type === "flag-filled" ? (N(), ye(U, {
|
|
@@ -12639,7 +12639,7 @@ Vt = xi([
|
|
|
12639
12639
|
], Vt);
|
|
12640
12640
|
const S3 = ["disabled"];
|
|
12641
12641
|
function T3(e, i, s, o, t, n) {
|
|
12642
|
-
var D, Y,
|
|
12642
|
+
var D, Y, F, E;
|
|
12643
12643
|
const r = ge("Icon"), R = Re("dark");
|
|
12644
12644
|
return ne((N(), V("button", {
|
|
12645
12645
|
class: ve(["uikit-btn", {
|
|
@@ -12669,7 +12669,7 @@ function T3(e, i, s, o, t, n) {
|
|
|
12669
12669
|
e.icon && (e.type === "icon" || e.type === "icon-yellow") ? ne((N(), ye(r, {
|
|
12670
12670
|
key: 0,
|
|
12671
12671
|
class: ve(["uikit-btn-icon__icon", {
|
|
12672
|
-
"uikit-btn-icon__icon--no-text": !((E = (
|
|
12672
|
+
"uikit-btn-icon__icon--no-text": !((E = (F = e.$slots).default) != null && E.call(F))
|
|
12673
12673
|
}]),
|
|
12674
12674
|
title: e.iconTitle,
|
|
12675
12675
|
type: e.icon
|
|
@@ -13220,7 +13220,7 @@ function f7(e, i, s, o, t, n) {
|
|
|
13220
13220
|
key: 0,
|
|
13221
13221
|
class: ve(["filter-options__label", { "filter-options__label--active": e.showRadioOptions }]),
|
|
13222
13222
|
"aria-expanded": e.showFilterDropdown ? "true" : "false",
|
|
13223
|
-
onClick: i[0] || (i[0] = (
|
|
13223
|
+
onClick: i[0] || (i[0] = (F) => {
|
|
13224
13224
|
e.showRadioOptions = !e.showRadioOptions, e.showCheckboxOptions = !1;
|
|
13225
13225
|
}),
|
|
13226
13226
|
onMousedown: i[1] || (i[1] = Ie(() => {
|
|
@@ -13245,7 +13245,7 @@ function f7(e, i, s, o, t, n) {
|
|
|
13245
13245
|
e.showRadioOptions ? (N(), ye(R, {
|
|
13246
13246
|
key: 0,
|
|
13247
13247
|
modelValue: e.radioEntry,
|
|
13248
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
13248
|
+
"onUpdate:modelValue": i[2] || (i[2] = (F) => e.radioEntry = F),
|
|
13249
13249
|
"aria-live": "polite",
|
|
13250
13250
|
data: e.radioOptions,
|
|
13251
13251
|
"is-dark-mode": e.isDarkMode,
|
|
@@ -13257,7 +13257,7 @@ function f7(e, i, s, o, t, n) {
|
|
|
13257
13257
|
key: 0,
|
|
13258
13258
|
class: ve(["filter-options__label", { "filter-options__label--active": e.showCheckboxOptions }]),
|
|
13259
13259
|
"aria-expanded": e.showFilterDropdown ? "true" : "false",
|
|
13260
|
-
onClick: i[3] || (i[3] = (
|
|
13260
|
+
onClick: i[3] || (i[3] = (F) => {
|
|
13261
13261
|
e.showCheckboxOptions = !e.showCheckboxOptions, e.showRadioOptions = !1;
|
|
13262
13262
|
}),
|
|
13263
13263
|
onMousedown: i[4] || (i[4] = Ie(() => {
|
|
@@ -13290,14 +13290,14 @@ function f7(e, i, s, o, t, n) {
|
|
|
13290
13290
|
]),
|
|
13291
13291
|
ke(e.$slots, "checkbox", {}, () => [
|
|
13292
13292
|
e.showCheckboxOptions || e.radioOptions.length === 0 ? (N(), V("div", g7, [
|
|
13293
|
-
(N(!0), V(Ke, null, et(e.checkboxOptions, (
|
|
13294
|
-
key:
|
|
13295
|
-
modelValue:
|
|
13296
|
-
"onUpdate:modelValue": (E) =>
|
|
13293
|
+
(N(!0), V(Ke, null, et(e.checkboxOptions, (F) => (N(), ye(D, {
|
|
13294
|
+
key: F.id,
|
|
13295
|
+
modelValue: F.enabled,
|
|
13296
|
+
"onUpdate:modelValue": (E) => F.enabled = E,
|
|
13297
13297
|
"is-dark-mode": e.isDarkMode,
|
|
13298
|
-
label:
|
|
13298
|
+
label: F.label,
|
|
13299
13299
|
class: ve(["filter-options__option", {
|
|
13300
|
-
"filter-options__option--force-break": !e.stringHasSpaces(
|
|
13300
|
+
"filter-options__option--force-break": !e.stringHasSpaces(F.label)
|
|
13301
13301
|
}])
|
|
13302
13302
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "is-dark-mode", "label", "class"]))), 128))
|
|
13303
13303
|
])) : Le("", !0)
|
|
@@ -13588,10 +13588,10 @@ let ot = class extends be {
|
|
|
13588
13588
|
s.preventDefault();
|
|
13589
13589
|
const n = s.target.getAttribute("data-value"), r = this.filteredData.findIndex(
|
|
13590
13590
|
(E) => n ? String(E.value) === n : E.value === null
|
|
13591
|
-
), R = r < 1 ? 0 : r - 1, D = (o = this.filteredData[R]) == null ? void 0 : o.value,
|
|
13591
|
+
), R = r < 1 ? 0 : r - 1, D = (o = this.filteredData[R]) == null ? void 0 : o.value, F = this.$refs["uikit-select__items"].find(
|
|
13592
13592
|
(E) => D ? String(D) === E.getAttribute("data-value") : E.getAttribute("data-value") === null
|
|
13593
13593
|
);
|
|
13594
|
-
|
|
13594
|
+
F && (F.focus(), this.showDropdown = !0, this.focus = !0);
|
|
13595
13595
|
}
|
|
13596
13596
|
if (s.key === "ArrowDown") {
|
|
13597
13597
|
s.preventDefault();
|
|
@@ -14107,7 +14107,7 @@ let Zi = class extends be {
|
|
|
14107
14107
|
);
|
|
14108
14108
|
A.style.borderColor = `${s.style.backgroundColor} transparent transparent`;
|
|
14109
14109
|
}
|
|
14110
|
-
const Y = s.clientWidth,
|
|
14110
|
+
const Y = s.clientWidth, F = this.theme === "rightalign" ? 20 : this.theme === "leftalign" ? Y - 20 : Math.floor(Y / 2), E = Math.round(n + window.pageXOffset - F);
|
|
14111
14111
|
s.style.left = `${E}px`;
|
|
14112
14112
|
const I = Math.round(t + window.pageYOffset) - s.clientHeight + R;
|
|
14113
14113
|
s.style.top = `${I}px`;
|
|
@@ -14778,8 +14778,8 @@ function Hc(e, i, s, o, t, n) {
|
|
|
14778
14778
|
role: Y.isSortDisabled ? "presentation" : "button",
|
|
14779
14779
|
"aria-label": !e.currentSort.column || e.currentSort.column.propName !== Y.propName || e.currentSort.direction === 0 ? `${Y.name || Y.propName} (sortable)` : e.currentSort.direction === -1 ? `${Y.name || Y.propName} (sorted ascending)` : `${Y.name || Y.propName} (sorted descending)`,
|
|
14780
14780
|
tabindex: Y.isSortDisabled ? -1 : 0,
|
|
14781
|
-
onClick: (
|
|
14782
|
-
onKeydown: Fe((
|
|
14781
|
+
onClick: (F) => e.columnLabelClicked(Y),
|
|
14782
|
+
onKeydown: Fe((F) => e.columnLabelClicked(Y), ["enter"]),
|
|
14783
14783
|
onMousedown: i[0] || (i[0] = Ie(() => {
|
|
14784
14784
|
}, ["prevent"]))
|
|
14785
14785
|
}, [
|
|
@@ -14832,33 +14832,33 @@ function Hc(e, i, s, o, t, n) {
|
|
|
14832
14832
|
...e.tableRowStyles,
|
|
14833
14833
|
...Y.styles
|
|
14834
14834
|
}),
|
|
14835
|
-
onClick: (
|
|
14836
|
-
onKeydown: Fe((
|
|
14837
|
-
onMouseenter: (
|
|
14838
|
-
onMouseleave: (
|
|
14835
|
+
onClick: (F) => e.emitRowClicked(Y),
|
|
14836
|
+
onKeydown: Fe((F) => e.emitRowClicked(Y), ["enter"]),
|
|
14837
|
+
onMouseenter: (F) => e.emitRowEnter(Y),
|
|
14838
|
+
onMouseleave: (F) => e.emitRowLeave(Y)
|
|
14839
14839
|
}, [
|
|
14840
|
-
(N(!0), V(Ke, null, et(e.columns, (
|
|
14840
|
+
(N(!0), V(Ke, null, et(e.columns, (F) => ke(e.$slots, "tableCell", {
|
|
14841
14841
|
row: Y,
|
|
14842
|
-
column:
|
|
14842
|
+
column: F,
|
|
14843
14843
|
tableCellStyles: e.tableCellStyles
|
|
14844
14844
|
}, () => [
|
|
14845
14845
|
(N(), V("td", {
|
|
14846
|
-
key: `row-${Y.id}--column-${
|
|
14846
|
+
key: `row-${Y.id}--column-${F.propName}`,
|
|
14847
14847
|
role: "cell",
|
|
14848
14848
|
class: "uikit-table__cell",
|
|
14849
14849
|
style: Ve({
|
|
14850
14850
|
...e.tableCellStyles,
|
|
14851
|
-
...
|
|
14851
|
+
...F.styles
|
|
14852
14852
|
}),
|
|
14853
|
-
onClick: (E) => e.emitCellClicked(Y,
|
|
14853
|
+
onClick: (E) => e.emitCellClicked(Y, F)
|
|
14854
14854
|
}, [
|
|
14855
14855
|
ke(e.$slots, "tableCellValue", {
|
|
14856
14856
|
row: Y,
|
|
14857
|
-
column:
|
|
14857
|
+
column: F
|
|
14858
14858
|
}, () => [
|
|
14859
14859
|
Pe(R, null, {
|
|
14860
14860
|
default: Te(() => [
|
|
14861
|
-
xe(me(Y[
|
|
14861
|
+
xe(me(Y[F.propName]), 1)
|
|
14862
14862
|
]),
|
|
14863
14863
|
_: 2
|
|
14864
14864
|
}, 1024)
|
|
@@ -14868,9 +14868,9 @@ function Hc(e, i, s, o, t, n) {
|
|
|
14868
14868
|
], 46, Yc)), [
|
|
14869
14869
|
[D, e.isDarkMode]
|
|
14870
14870
|
]),
|
|
14871
|
-
(N(!0), V(Ke, null, et(Y.subrows, (
|
|
14871
|
+
(N(!0), V(Ke, null, et(Y.subrows, (F) => ke(e.$slots, "tableSubrow", { subrow: F }, () => [
|
|
14872
14872
|
ne((N(), V("tr", {
|
|
14873
|
-
key: `subrow--${
|
|
14873
|
+
key: `subrow--${F.id}`,
|
|
14874
14874
|
role: "subrow",
|
|
14875
14875
|
tabIndex: Y.tabIndex === 0 ? 0 : -1,
|
|
14876
14876
|
class: ve([{
|
|
@@ -14879,35 +14879,35 @@ function Hc(e, i, s, o, t, n) {
|
|
|
14879
14879
|
style: Ve({
|
|
14880
14880
|
...e.gridStyles,
|
|
14881
14881
|
...e.tableSubrowsStyles,
|
|
14882
|
-
...
|
|
14882
|
+
...F.styles
|
|
14883
14883
|
}),
|
|
14884
|
-
onClick: (E) => e.emitRowClicked(
|
|
14885
|
-
onKeydown: Fe((E) => e.emitRowClicked(
|
|
14886
|
-
onMouseenter: (E) => e.emitRowEnter(
|
|
14887
|
-
onMouseleave: (E) => e.emitRowLeave(
|
|
14884
|
+
onClick: (E) => e.emitRowClicked(F),
|
|
14885
|
+
onKeydown: Fe((E) => e.emitRowClicked(F), ["enter"]),
|
|
14886
|
+
onMouseenter: (E) => e.emitRowEnter(F),
|
|
14887
|
+
onMouseleave: (E) => e.emitRowLeave(F)
|
|
14888
14888
|
}, [
|
|
14889
14889
|
(N(!0), V(Ke, null, et(e.columns, (E) => ke(e.$slots, "subrowCell", {
|
|
14890
|
-
subrow:
|
|
14890
|
+
subrow: F,
|
|
14891
14891
|
column: E,
|
|
14892
14892
|
tableCellStyles: e.tableCellStyles
|
|
14893
14893
|
}, () => [
|
|
14894
14894
|
(N(), V("td", {
|
|
14895
|
-
key: `subrow-${
|
|
14895
|
+
key: `subrow-${F.id}--column-${E.propName}`,
|
|
14896
14896
|
role: "cell",
|
|
14897
14897
|
class: "uikit-table__cell",
|
|
14898
14898
|
style: Ve({
|
|
14899
14899
|
...e.tableCellStyles,
|
|
14900
14900
|
...E.styles
|
|
14901
14901
|
}),
|
|
14902
|
-
onClick: (I) => e.emitCellClicked(
|
|
14902
|
+
onClick: (I) => e.emitCellClicked(F, E)
|
|
14903
14903
|
}, [
|
|
14904
14904
|
ke(e.$slots, "tableSubrowCellValue", {
|
|
14905
|
-
subrow:
|
|
14905
|
+
subrow: F,
|
|
14906
14906
|
column: E
|
|
14907
14907
|
}, () => [
|
|
14908
14908
|
Pe(R, null, {
|
|
14909
14909
|
default: Te(() => [
|
|
14910
|
-
xe(me(
|
|
14910
|
+
xe(me(F[E.propName]), 1)
|
|
14911
14911
|
]),
|
|
14912
14912
|
_: 2
|
|
14913
14913
|
}, 1024)
|
|
@@ -14962,15 +14962,15 @@ let Wi = class extends be {
|
|
|
14962
14962
|
const t = this.focusedMenuOptionIndex, n = this.$refs[`${this.name}ActionMenu-${s.id}`];
|
|
14963
14963
|
if (n && o.key === "ArrowUp")
|
|
14964
14964
|
if (t === 0) {
|
|
14965
|
-
const
|
|
14966
|
-
|
|
14965
|
+
const F = (R = (r = n[t]) == null ? void 0 : r.parentElement) == null ? void 0 : R.parentElement;
|
|
14966
|
+
F && (F.focus(), this.visibleMenuActionId = "");
|
|
14967
14967
|
} else {
|
|
14968
|
-
const
|
|
14969
|
-
(D = n[
|
|
14968
|
+
const F = t === null ? n.length - 1 : t - 1;
|
|
14969
|
+
(D = n[F]) == null || D.focus(), this.focusedMenuOptionIndex = F, this.visibleMenuActionId = s.id;
|
|
14970
14970
|
}
|
|
14971
14971
|
else if (n && o.key === "ArrowDown") {
|
|
14972
|
-
const
|
|
14973
|
-
(Y = n[
|
|
14972
|
+
const F = t === null || t === n.length - 1 ? 0 : t + 1;
|
|
14973
|
+
(Y = n[F]) == null || Y.focus(), this.focusedMenuOptionIndex = F, this.visibleMenuActionId = s.id;
|
|
14974
14974
|
}
|
|
14975
14975
|
o.preventDefault(), o.stopPropagation();
|
|
14976
14976
|
}
|
|
@@ -15039,9 +15039,9 @@ function Uc(e, i, s, o, t, n) {
|
|
|
15039
15039
|
ref: `${e.name}ActionMenu-${D.id}`,
|
|
15040
15040
|
class: "uikit-table-actions__action-menu-option",
|
|
15041
15041
|
tabindex: "0",
|
|
15042
|
-
onMousedown: Ie((
|
|
15043
|
-
onKeyup: Fe(Ie((
|
|
15044
|
-
onKeydown: (
|
|
15042
|
+
onMousedown: Ie((F) => e.actionClicked(Y), ["prevent", "stop"]),
|
|
15043
|
+
onKeyup: Fe(Ie((F) => e.actionClicked(Y), ["prevent", "stop"]), ["enter"]),
|
|
15044
|
+
onKeydown: (F) => e.scrollActionMenu(D, F)
|
|
15045
15045
|
}, me(Y.text), 41, Wc))), 128))
|
|
15046
15046
|
])) : Le("", !0)
|
|
15047
15047
|
], 42, Zc))), 128))
|
|
@@ -15647,10 +15647,10 @@ let vi = class extends be {
|
|
|
15647
15647
|
const s = "button, [href], input, select, textarea, [tabindex]", o = this.$refs.modalContainer, t = Array.from(o.querySelectorAll(s));
|
|
15648
15648
|
t.length && ((r = t[t.length - 1]) == null || r.focus(), (R = t[t.length - 1]) == null || R.blur()), this.trapFocus && (this.focusListener = (D) => {
|
|
15649
15649
|
if (this.modalNumber === this.numberOfModals()) {
|
|
15650
|
-
const Y = D.target,
|
|
15650
|
+
const Y = D.target, F = Y && o && !o.contains(Y), E = Y && Array.from(Y.classList).find(
|
|
15651
15651
|
(I) => I === "button-next-month" || I === "button-previous-month" || I === "day-item"
|
|
15652
15652
|
);
|
|
15653
|
-
if (
|
|
15653
|
+
if (F && !E) {
|
|
15654
15654
|
const I = Array.from(o.querySelectorAll(
|
|
15655
15655
|
s
|
|
15656
15656
|
)), G = I.find(
|
|
@@ -16098,8 +16098,8 @@ function R9(e, i, s, o, t, n) {
|
|
|
16098
16098
|
"uikit-exam-card--exam-selected": !e.showCancelButton && !e.disableInteraction && e.isSelected
|
|
16099
16099
|
}]),
|
|
16100
16100
|
tabindex: e.showCancelButton ? -1 : 0,
|
|
16101
|
-
onClick: i[2] || (i[2] = (...
|
|
16102
|
-
onKeypress: i[3] || (i[3] = Fe(Ie((...
|
|
16101
|
+
onClick: i[2] || (i[2] = (...F) => e.emitSelect && e.emitSelect(...F)),
|
|
16102
|
+
onKeypress: i[3] || (i[3] = Fe(Ie((...F) => e.emitSelect && e.emitSelect(...F), ["prevent"]), ["enter"])),
|
|
16103
16103
|
onMousedown: i[4] || (i[4] = Ie(() => {
|
|
16104
16104
|
}, ["prevent"]))
|
|
16105
16105
|
}, [
|
|
@@ -16108,8 +16108,8 @@ function R9(e, i, s, o, t, n) {
|
|
|
16108
16108
|
class: "uikit-exam-card__cancel",
|
|
16109
16109
|
tabindex: "0",
|
|
16110
16110
|
"aria-label": "Clear exam selection",
|
|
16111
|
-
onClick: i[0] || (i[0] = (...
|
|
16112
|
-
onKeypress: i[1] || (i[1] = Fe(Ie((...
|
|
16111
|
+
onClick: i[0] || (i[0] = (...F) => e.emitCancel && e.emitCancel(...F)),
|
|
16112
|
+
onKeypress: i[1] || (i[1] = Fe(Ie((...F) => e.emitCancel && e.emitCancel(...F), ["prevent"]), ["enter"]))
|
|
16113
16113
|
}, [
|
|
16114
16114
|
Pe(r, { type: "close" })
|
|
16115
16115
|
], 32)) : Le("", !0),
|
|
@@ -16235,12 +16235,12 @@ function j9(e, i, s, o, t, n) {
|
|
|
16235
16235
|
style: Ve({
|
|
16236
16236
|
color: e.modelValue && e.modelValue.objectId === Y.objectId && e.selectedBundleColor || e.hoverBundleId === Y.objectId && e.hoverBundleColor || "currentColor"
|
|
16237
16237
|
}),
|
|
16238
|
-
onMouseenter: (
|
|
16239
|
-
onMouseleave: i[0] || (i[0] = (
|
|
16240
|
-
onFocus: (
|
|
16241
|
-
onBlur: i[1] || (i[1] = (
|
|
16242
|
-
onClick: (
|
|
16243
|
-
onKeypress: Fe((
|
|
16238
|
+
onMouseenter: (F) => e.hoverBundleId = Y.objectId,
|
|
16239
|
+
onMouseleave: i[0] || (i[0] = (F) => e.hoverBundleId = null),
|
|
16240
|
+
onFocus: (F) => e.hoverBundleId = Y.objectId,
|
|
16241
|
+
onBlur: i[1] || (i[1] = (F) => e.hoverBundleId = null),
|
|
16242
|
+
onClick: (F) => e.selectBundle(Y),
|
|
16243
|
+
onKeypress: Fe((F) => e.selectBundle(Y), ["enter"]),
|
|
16244
16244
|
onMousedown: i[2] || (i[2] = Ie(() => {
|
|
16245
16245
|
}, ["prevent"]))
|
|
16246
16246
|
}, [
|
|
@@ -16392,7 +16392,7 @@ const z9 = {
|
|
|
16392
16392
|
tabindex: "-1"
|
|
16393
16393
|
}, $9 = { class: "uikit-exam-search__exam-list-padding" };
|
|
16394
16394
|
function eu(e, i, s, o, t, n) {
|
|
16395
|
-
const r = ge("Search"), R = ge("Button"), D = ge("ExamCard"), Y = ge("BundleList"),
|
|
16395
|
+
const r = ge("Search"), R = ge("Button"), D = ge("ExamCard"), Y = ge("BundleList"), F = ge("Icon"), E = ge("PocketButton"), I = Re("breakpoint"), G = Re("dark");
|
|
16396
16396
|
return ne((N(), V("div", {
|
|
16397
16397
|
ref: "uikit-exam-search",
|
|
16398
16398
|
class: ve(["uikit-exam-search", { "uikit-exam-search--bundle-selected": e.selectedBundle }])
|
|
@@ -16471,7 +16471,7 @@ function eu(e, i, s, o, t, n) {
|
|
|
16471
16471
|
onClick: i[3] || (i[3] = (A) => e.selectedBundle = null)
|
|
16472
16472
|
}, {
|
|
16473
16473
|
default: Te(() => [
|
|
16474
|
-
Pe(
|
|
16474
|
+
Pe(F, { type: "arrow" }),
|
|
16475
16475
|
xe(" Back to Browse ")
|
|
16476
16476
|
]),
|
|
16477
16477
|
_: 1
|
|
@@ -16810,12 +16810,12 @@ let vt = class extends be {
|
|
|
16810
16810
|
if (R && !D) {
|
|
16811
16811
|
const Y = Array.from(r.querySelectorAll(
|
|
16812
16812
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
16813
|
-
)),
|
|
16813
|
+
)), F = Y.find(
|
|
16814
16814
|
(G) => !!G.getBoundingClientRect().width
|
|
16815
16815
|
), I = [...Y].reverse().find(
|
|
16816
16816
|
(G) => !!G.getBoundingClientRect().width
|
|
16817
16817
|
);
|
|
16818
|
-
|
|
16818
|
+
F ? t.relatedTarget === F && I ? I.focus() : F.focus() : (r.tabIndex === -1 && (r.tabIndex = 0), r.focus());
|
|
16819
16819
|
}
|
|
16820
16820
|
}
|
|
16821
16821
|
}, document.addEventListener("focusin", this.focusListener);
|
|
@@ -16959,7 +16959,7 @@ function ju(e, i, s, o, t, n) {
|
|
|
16959
16959
|
], 2)
|
|
16960
16960
|
]),
|
|
16961
16961
|
e.tabs && e.tabs.length ? (N(), V("div", Ru, [
|
|
16962
|
-
(N(!0), V(Ke, null, et(e.tabs, (Y,
|
|
16962
|
+
(N(!0), V(Ke, null, et(e.tabs, (Y, F) => ne((N(), V("div", {
|
|
16963
16963
|
key: Y,
|
|
16964
16964
|
class: ve(["uikit-side-panel__tab", {
|
|
16965
16965
|
"uikit-side-panel__tab--active": e.activeTabName === Y,
|
|
@@ -16974,7 +16974,7 @@ function ju(e, i, s, o, t, n) {
|
|
|
16974
16974
|
}, ["prevent"]))
|
|
16975
16975
|
}, [
|
|
16976
16976
|
xe(me(Y) + " ", 1),
|
|
16977
|
-
e.steppedTabs &&
|
|
16977
|
+
e.steppedTabs && F < e.tabs.length - 1 ? (N(), V("div", Yu, [
|
|
16978
16978
|
Pe(r, { type: "accordionArrow" })
|
|
16979
16979
|
])) : Le("", !0)
|
|
16980
16980
|
], 42, Ou)), [
|
|
@@ -17080,12 +17080,12 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17080
17080
|
return t.toString = function() {
|
|
17081
17081
|
return this.map(function(n) {
|
|
17082
17082
|
var r = function(R, D) {
|
|
17083
|
-
var Y = R[1] || "",
|
|
17084
|
-
if (!
|
|
17083
|
+
var Y = R[1] || "", F = R[3];
|
|
17084
|
+
if (!F)
|
|
17085
17085
|
return Y;
|
|
17086
17086
|
if (D && typeof btoa == "function") {
|
|
17087
|
-
var E = (G =
|
|
17088
|
-
return "/*# sourceURL=".concat(
|
|
17087
|
+
var E = (G = F, A = btoa(unescape(encodeURIComponent(JSON.stringify(G)))), g = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(A), "/*# ".concat(g, " */")), I = F.sources.map(function(p) {
|
|
17088
|
+
return "/*# sourceURL=".concat(F.sourceRoot || "").concat(p, " */");
|
|
17089
17089
|
});
|
|
17090
17090
|
return [Y].concat(I).concat([E]).join(`
|
|
17091
17091
|
`);
|
|
@@ -17101,8 +17101,8 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17101
17101
|
var D = {};
|
|
17102
17102
|
if (R)
|
|
17103
17103
|
for (var Y = 0; Y < this.length; Y++) {
|
|
17104
|
-
var
|
|
17105
|
-
|
|
17104
|
+
var F = this[Y][0];
|
|
17105
|
+
F != null && (D[F] = !0);
|
|
17106
17106
|
}
|
|
17107
17107
|
for (var E = 0; E < n.length; E++) {
|
|
17108
17108
|
var I = [].concat(n[E]);
|
|
@@ -17131,22 +17131,22 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17131
17131
|
}();
|
|
17132
17132
|
function R(d, c) {
|
|
17133
17133
|
for (var C = [], L = {}, O = 0; O < d.length; O++) {
|
|
17134
|
-
var
|
|
17134
|
+
var z = d[O], U = c.base ? z[0] + c.base : z[0], Q = { css: z[1], media: z[2], sourceMap: z[3] };
|
|
17135
17135
|
L[U] ? L[U].parts.push(Q) : C.push(L[U] = { id: U, parts: [Q] });
|
|
17136
17136
|
}
|
|
17137
17137
|
return C;
|
|
17138
17138
|
}
|
|
17139
17139
|
function D(d, c) {
|
|
17140
17140
|
for (var C = 0; C < d.length; C++) {
|
|
17141
|
-
var L = d[C], O = t[L.id],
|
|
17141
|
+
var L = d[C], O = t[L.id], z = 0;
|
|
17142
17142
|
if (O) {
|
|
17143
|
-
for (O.refs++;
|
|
17144
|
-
O.parts[
|
|
17145
|
-
for (;
|
|
17146
|
-
O.parts.push(p(L.parts[
|
|
17143
|
+
for (O.refs++; z < O.parts.length; z++)
|
|
17144
|
+
O.parts[z](L.parts[z]);
|
|
17145
|
+
for (; z < L.parts.length; z++)
|
|
17146
|
+
O.parts.push(p(L.parts[z], c));
|
|
17147
17147
|
} else {
|
|
17148
|
-
for (var U = [];
|
|
17149
|
-
U.push(p(L.parts[
|
|
17148
|
+
for (var U = []; z < L.parts.length; z++)
|
|
17149
|
+
U.push(p(L.parts[z], c));
|
|
17150
17150
|
t[L.id] = { id: L.id, refs: 1, parts: U };
|
|
17151
17151
|
}
|
|
17152
17152
|
}
|
|
@@ -17169,8 +17169,8 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17169
17169
|
}
|
|
17170
17170
|
return c;
|
|
17171
17171
|
}
|
|
17172
|
-
var
|
|
17173
|
-
return
|
|
17172
|
+
var F, E = (F = [], function(d, c) {
|
|
17173
|
+
return F[d] = c, F.filter(Boolean).join(`
|
|
17174
17174
|
`);
|
|
17175
17175
|
});
|
|
17176
17176
|
function I(d, c, C, L) {
|
|
@@ -17178,14 +17178,14 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17178
17178
|
if (d.styleSheet)
|
|
17179
17179
|
d.styleSheet.cssText = E(c, O);
|
|
17180
17180
|
else {
|
|
17181
|
-
var
|
|
17182
|
-
U[c] && d.removeChild(U[c]), U.length ? d.insertBefore(
|
|
17181
|
+
var z = document.createTextNode(O), U = d.childNodes;
|
|
17182
|
+
U[c] && d.removeChild(U[c]), U.length ? d.insertBefore(z, U[c]) : d.appendChild(z);
|
|
17183
17183
|
}
|
|
17184
17184
|
}
|
|
17185
17185
|
function G(d, c, C) {
|
|
17186
|
-
var L = C.css, O = C.media,
|
|
17187
|
-
if (O && d.setAttribute("media", O),
|
|
17188
|
-
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(
|
|
17186
|
+
var L = C.css, O = C.media, z = C.sourceMap;
|
|
17187
|
+
if (O && d.setAttribute("media", O), z && btoa && (L += `
|
|
17188
|
+
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(z)))), " */")), d.styleSheet)
|
|
17189
17189
|
d.styleSheet.cssText = L;
|
|
17190
17190
|
else {
|
|
17191
17191
|
for (; d.firstChild; )
|
|
@@ -17197,8 +17197,8 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17197
17197
|
function p(d, c) {
|
|
17198
17198
|
var C, L, O;
|
|
17199
17199
|
if (c.singleton) {
|
|
17200
|
-
var
|
|
17201
|
-
C = A || (A = Y(c)), L = I.bind(null, C,
|
|
17200
|
+
var z = g++;
|
|
17201
|
+
C = A || (A = Y(c)), L = I.bind(null, C, z, !1), O = I.bind(null, C, z, !0);
|
|
17202
17202
|
} else
|
|
17203
17203
|
C = Y(c), L = G.bind(null, C, c), O = function() {
|
|
17204
17204
|
(function(U) {
|
|
@@ -17220,8 +17220,8 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17220
17220
|
(c = c || {}).attributes = typeof c.attributes == "object" ? c.attributes : {}, c.singleton || typeof c.singleton == "boolean" || (c.singleton = n());
|
|
17221
17221
|
var C = R(d, c);
|
|
17222
17222
|
return D(C, c), function(L) {
|
|
17223
|
-
for (var O = [],
|
|
17224
|
-
var U = C[
|
|
17223
|
+
for (var O = [], z = 0; z < C.length; z++) {
|
|
17224
|
+
var U = C[z], Q = t[U.id];
|
|
17225
17225
|
Q && (Q.refs--, O.push(Q));
|
|
17226
17226
|
}
|
|
17227
17227
|
L && D(R(L, c), c);
|
|
@@ -17241,8 +17241,8 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17241
17241
|
var D = Object.keys(r);
|
|
17242
17242
|
if (Object.getOwnPropertySymbols) {
|
|
17243
17243
|
var Y = Object.getOwnPropertySymbols(r);
|
|
17244
|
-
R && (Y = Y.filter(function(
|
|
17245
|
-
return Object.getOwnPropertyDescriptor(r,
|
|
17244
|
+
R && (Y = Y.filter(function(F) {
|
|
17245
|
+
return Object.getOwnPropertyDescriptor(r, F).enumerable;
|
|
17246
17246
|
})), D.push.apply(D, Y);
|
|
17247
17247
|
}
|
|
17248
17248
|
return D;
|
|
@@ -17295,7 +17295,7 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17295
17295
|
function Y(G) {
|
|
17296
17296
|
r.isMouseDown = !0;
|
|
17297
17297
|
}
|
|
17298
|
-
function
|
|
17298
|
+
function F(G) {
|
|
17299
17299
|
r.isMouseDown ? r.isMouseDown = !1 : this.options.inlineMode || this.isShowning() || (this.show(G.target), this.ui.querySelector('[tabindex="'.concat(r.options.keyboardnav.firstTabIndex, '"]')).focus());
|
|
17300
17300
|
}
|
|
17301
17301
|
function E(G) {
|
|
@@ -17354,7 +17354,7 @@ const Hu = /* @__PURE__ */ Ce(vt, [["render", ju]]);
|
|
|
17354
17354
|
}
|
|
17355
17355
|
}.bind(r), !0);
|
|
17356
17356
|
var I = r.options;
|
|
17357
|
-
I.element instanceof HTMLElement && (I.element.addEventListener("mousedown", Y.bind(r), !0), I.element.addEventListener("focus",
|
|
17357
|
+
I.element instanceof HTMLElement && (I.element.addEventListener("mousedown", Y.bind(r), !0), I.element.addEventListener("focus", F.bind(r), !0)), I.elementEnd instanceof HTMLElement && (I.elementEnd.addEventListener("mousedown", Y.bind(r), !0), I.elementEnd.addEventListener("focus", F.bind(r), !0)), I.element instanceof HTMLElement && I.element.addEventListener("blur", E.bind(r), !0), I.elementEnd instanceof HTMLElement && I.elementEnd.addEventListener("blur", E.bind(r), !0), r.on("render", function(G) {
|
|
17358
17358
|
Array.from(G.querySelectorAll([".month-item:first-child:not(.no-previous-month) .button-previous-month", ".month-item:last-child:not(.no-next-month) .button-next-month", ".reset-button", "select"].join(","))).forEach(function(A) {
|
|
17359
17359
|
return A.tabIndex = 1;
|
|
17360
17360
|
});
|
|
@@ -17488,7 +17488,7 @@ function Ju(e, i, s, o, t, n) {
|
|
|
17488
17488
|
ref: "calendarInput",
|
|
17489
17489
|
modelValue: e.dateString,
|
|
17490
17490
|
"onUpdate:modelValue": [
|
|
17491
|
-
i[3] || (i[3] = (
|
|
17491
|
+
i[3] || (i[3] = (F) => e.dateString = F),
|
|
17492
17492
|
e.processDateString
|
|
17493
17493
|
],
|
|
17494
17494
|
label: e.label,
|
|
@@ -17501,14 +17501,14 @@ function Ju(e, i, s, o, t, n) {
|
|
|
17501
17501
|
disabled: e.disabled,
|
|
17502
17502
|
onClick: e.showCalendar,
|
|
17503
17503
|
onKeydown: e.handleInputKeydown,
|
|
17504
|
-
onMouseover: i[4] || (i[4] = (
|
|
17505
|
-
onMouseout: i[5] || (i[5] = (
|
|
17504
|
+
onMouseover: i[4] || (i[4] = (F) => e.hover = !0),
|
|
17505
|
+
onMouseout: i[5] || (i[5] = (F) => e.hover = !1)
|
|
17506
17506
|
}, {
|
|
17507
17507
|
default: Te(() => [
|
|
17508
17508
|
e.isShowingCalendar ? ne((N(), V("div", {
|
|
17509
17509
|
key: 0,
|
|
17510
17510
|
class: "uikit-calendar__clear-date-icon",
|
|
17511
|
-
onClick: i[2] || (i[2] = Ie((...
|
|
17511
|
+
onClick: i[2] || (i[2] = Ie((...F) => e.clearCalendar && e.clearCalendar(...F), ["stop", "prevent"]))
|
|
17512
17512
|
}, [
|
|
17513
17513
|
e.showClearDateTooltip ? (N(), ye(r, {
|
|
17514
17514
|
key: 0,
|
|
@@ -17521,8 +17521,8 @@ function Ju(e, i, s, o, t, n) {
|
|
|
17521
17521
|
})) : Le("", !0),
|
|
17522
17522
|
Pe(R, {
|
|
17523
17523
|
type: "close",
|
|
17524
|
-
onMouseenter: i[0] || (i[0] = (
|
|
17525
|
-
onMouseleave: i[1] || (i[1] = (
|
|
17524
|
+
onMouseenter: i[0] || (i[0] = (F) => e.showClearDateTooltip = !0),
|
|
17525
|
+
onMouseleave: i[1] || (i[1] = (F) => e.showClearDateTooltip = !1)
|
|
17526
17526
|
})
|
|
17527
17527
|
])), [
|
|
17528
17528
|
[Y, e.isDarkMode]
|
|
@@ -17747,8 +17747,8 @@ function pp(e, i, s, o, t, n) {
|
|
|
17747
17747
|
tabindex: "0",
|
|
17748
17748
|
role: "button",
|
|
17749
17749
|
"aria-expanded": e.showPassageImageDropdown ? "true" : "false",
|
|
17750
|
-
onClick: i[0] || (i[0] = Ie((
|
|
17751
|
-
onKeydown: i[1] || (i[1] = Fe(Ie((
|
|
17750
|
+
onClick: i[0] || (i[0] = Ie((F) => e.showPassageImageDropdown = !e.showPassageImageDropdown, ["stop"])),
|
|
17751
|
+
onKeydown: i[1] || (i[1] = Fe(Ie((F) => e.showPassageImageDropdown = !e.showPassageImageDropdown, ["stop"]), ["enter"])),
|
|
17752
17752
|
onMousedown: i[2] || (i[2] = Ie(() => {
|
|
17753
17753
|
}, ["prevent"]))
|
|
17754
17754
|
}, [
|
|
@@ -18212,7 +18212,7 @@ let st = class extends be {
|
|
|
18212
18212
|
P(this, "keywordDefinitions");
|
|
18213
18213
|
}
|
|
18214
18214
|
get isQuestionCorrect() {
|
|
18215
|
-
return !this.isMatrixQuestion && this.isCorrect || this.isMatrixQuestion && this.isMatrixQuestionCorrect;
|
|
18215
|
+
return !this.isMatrixQuestion && this.isCorrect || this.isMatrixQuestion && this.isMatrixQuestionCorrect && !this.isUnanswered;
|
|
18216
18216
|
}
|
|
18217
18217
|
get summary() {
|
|
18218
18218
|
return wo({
|
|
@@ -18637,7 +18637,7 @@ Ne = Je([
|
|
|
18637
18637
|
], Ne);
|
|
18638
18638
|
const qp = ["onMouseover", "onFocusin", "onClick", "onKeydown", "onTouchend"], Kp = ["tabindex", "role", "aria-checked", "aria-label", "innerHTML"], Xp = ["tabindex", "aria-checked", "onClick", "onKeydown"], Vp = { class: "uikit-question-choices-container__choice-stats-pct" }, _p = { class: "uikit-question-choices-container__choice-stats-bar" };
|
|
18639
18639
|
function $p(e, i, s, o, t, n) {
|
|
18640
|
-
const r = ge("Icon"), R = ge("PocketButton"), D = ge("DropdownExplanation"), Y = Re("breakpoint"),
|
|
18640
|
+
const r = ge("Icon"), R = ge("PocketButton"), D = ge("DropdownExplanation"), Y = Re("breakpoint"), F = Re("dark");
|
|
18641
18641
|
return N(!0), V(Ke, null, et(e.choices, (E, I) => (N(), V("div", {
|
|
18642
18642
|
class: "uikit-question-choices-container",
|
|
18643
18643
|
key: E.key,
|
|
@@ -18679,7 +18679,7 @@ function $p(e, i, s, o, t, n) {
|
|
|
18679
18679
|
xe(me(String.fromCharCode(I + 65)), 1)
|
|
18680
18680
|
], 2)), [
|
|
18681
18681
|
[Y, e.breakpoints, "questionEl"],
|
|
18682
|
-
[
|
|
18682
|
+
[F, e.isDarkMode]
|
|
18683
18683
|
]),
|
|
18684
18684
|
ne((N(), V("div", {
|
|
18685
18685
|
ref_for: !0,
|
|
@@ -18709,7 +18709,7 @@ function $p(e, i, s, o, t, n) {
|
|
|
18709
18709
|
type: "check"
|
|
18710
18710
|
})) : Le("", !0)
|
|
18711
18711
|
], 2)), [
|
|
18712
|
-
[
|
|
18712
|
+
[F, e.isDarkMode]
|
|
18713
18713
|
]) : Le("", !0),
|
|
18714
18714
|
oe("div", {
|
|
18715
18715
|
class: "uikit-question-choices-container__choice-text",
|
|
@@ -18782,14 +18782,14 @@ function $p(e, i, s, o, t, n) {
|
|
|
18782
18782
|
_: 2
|
|
18783
18783
|
}, 1032, ["question", "answer-keys", "choice", "global-metrics", "show-answers", "is-MCR", "show-explanation-image-long-alt", "explanation-image-url", "explanation-image-alt", "explanation-image-long-alt", "reference", "hide-references", "is-dark-mode", "question-el", "breakpoints", "keyword-definitions", "onToggleDropdownExplanationImageLongAlt", "onClick"])) : Le("", !0)
|
|
18784
18784
|
], 2)), [
|
|
18785
|
-
[
|
|
18785
|
+
[F, e.isDarkMode],
|
|
18786
18786
|
[Y, e.breakpoints, "questionEl"]
|
|
18787
18787
|
]),
|
|
18788
18788
|
e.globalMetrics ? (N(), V(Ke, { key: 2 }, [
|
|
18789
18789
|
ne((N(), V("div", Vp, [
|
|
18790
18790
|
xe(me(e.choiceScores[E.key]) + " % ", 1)
|
|
18791
18791
|
])), [
|
|
18792
|
-
[
|
|
18792
|
+
[F, e.isDarkMode]
|
|
18793
18793
|
]),
|
|
18794
18794
|
ne((N(), V("div", _p, [
|
|
18795
18795
|
ne(oe("div", {
|
|
@@ -18801,10 +18801,10 @@ function $p(e, i, s, o, t, n) {
|
|
|
18801
18801
|
width: `${e.choiceScores[E.key] || 0}%`
|
|
18802
18802
|
})
|
|
18803
18803
|
}, null, 6), [
|
|
18804
|
-
[
|
|
18804
|
+
[F, e.isDarkMode]
|
|
18805
18805
|
])
|
|
18806
18806
|
])), [
|
|
18807
|
-
[
|
|
18807
|
+
[F, e.isDarkMode]
|
|
18808
18808
|
])
|
|
18809
18809
|
], 64)) : (N(), V(Ke, { key: 1 }, [
|
|
18810
18810
|
e.showAnswers ? Le("", !0) : ne((N(), V("div", {
|
|
@@ -18825,7 +18825,7 @@ function $p(e, i, s, o, t, n) {
|
|
|
18825
18825
|
Pe(r, { type: "strike" })
|
|
18826
18826
|
], 42, Xp)), [
|
|
18827
18827
|
[Y, e.breakpoints, "questionEl"],
|
|
18828
|
-
[
|
|
18828
|
+
[F, e.isDarkMode]
|
|
18829
18829
|
]),
|
|
18830
18830
|
!e.isMCR && e.showAnswers && e.answerKeys.includes(E.key) && (e.isCorrect || e.isUnanswered) ? ne((N(), ye(r, {
|
|
18831
18831
|
key: 1,
|
|
@@ -18834,7 +18834,7 @@ function $p(e, i, s, o, t, n) {
|
|
|
18834
18834
|
"uikit-question-choices-container__correct-icon--review-mode": e.reviewMode
|
|
18835
18835
|
}])
|
|
18836
18836
|
}, null, 8, ["class"])), [
|
|
18837
|
-
[
|
|
18837
|
+
[F, e.isDarkMode]
|
|
18838
18838
|
]) : Le("", !0),
|
|
18839
18839
|
e.showAnswers && (e.selectedChoices.includes(E.key) && e.distractorKeys.includes(E.key) || e.isMCR && !e.selectedChoices.includes(E.key) && e.answerKeys.includes(E.key)) ? ne((N(), ye(r, {
|
|
18840
18840
|
key: 2,
|
|
@@ -18843,7 +18843,7 @@ function $p(e, i, s, o, t, n) {
|
|
|
18843
18843
|
"uikit-question-choices-container__incorrect-icon--mcr": e.isMCR
|
|
18844
18844
|
}])
|
|
18845
18845
|
}, null, 8, ["class"])), [
|
|
18846
|
-
[
|
|
18846
|
+
[F, e.isDarkMode]
|
|
18847
18847
|
]) : Le("", !0)
|
|
18848
18848
|
], 64)),
|
|
18849
18849
|
ne((N(), V("div", {
|
|
@@ -18863,7 +18863,7 @@ function $p(e, i, s, o, t, n) {
|
|
|
18863
18863
|
[Y, e.breakpoints, "questionEl"]
|
|
18864
18864
|
])
|
|
18865
18865
|
], 42, qp)), [
|
|
18866
|
-
[
|
|
18866
|
+
[F, e.isDarkMode]
|
|
18867
18867
|
]),
|
|
18868
18868
|
ke(e.$slots, "showNamesTable", {
|
|
18869
18869
|
choiceKey: E.key
|
|
@@ -19136,8 +19136,8 @@ function kg(e, i, s, o, t, n) {
|
|
|
19136
19136
|
tabindex: "0",
|
|
19137
19137
|
role: "button",
|
|
19138
19138
|
"aria-label": "Close explanation",
|
|
19139
|
-
onKeydown: i[1] || (i[1] = Fe(Ie((...
|
|
19140
|
-
onClick: i[2] || (i[2] = Ie((...
|
|
19139
|
+
onKeydown: i[1] || (i[1] = Fe(Ie((...F) => e.toggleExplanation && e.toggleExplanation(...F), ["stop"]), ["enter"])),
|
|
19140
|
+
onClick: i[2] || (i[2] = Ie((...F) => e.toggleExplanation && e.toggleExplanation(...F), ["stop"])),
|
|
19141
19141
|
onMousedown: i[3] || (i[3] = Ie(() => {
|
|
19142
19142
|
}, ["prevent"]))
|
|
19143
19143
|
}, [
|
|
@@ -19618,7 +19618,7 @@ const Ng = {
|
|
|
19618
19618
|
ref: "uikit-question-matrix-choices-container"
|
|
19619
19619
|
}, Zg = { class: "uikit-question-matrix-choices-container__columns" }, Jg = ["innerHTML"], Wg = ["innerHTML"], Ug = ["innerHTML"], qg = ["onClick", "onKeypress"];
|
|
19620
19620
|
function Kg(e, i, s, o, t, n) {
|
|
19621
|
-
const r = ge("Checkbox"), R = ge("Icon"), D = ge("MatrixRadioGroup"), Y = Re("dark"),
|
|
19621
|
+
const r = ge("Checkbox"), R = ge("Icon"), D = ge("MatrixRadioGroup"), Y = Re("dark"), F = Re("breakpoint");
|
|
19622
19622
|
return ne((N(), V("div", Ng, [
|
|
19623
19623
|
ne((N(), V("div", Zg, [
|
|
19624
19624
|
ne(oe("div", {
|
|
@@ -19629,7 +19629,7 @@ function Kg(e, i, s, o, t, n) {
|
|
|
19629
19629
|
innerHTML: e.matrixColumnLabelsForRows
|
|
19630
19630
|
}, null, 10, Jg), [
|
|
19631
19631
|
[Y, e.isDarkMode],
|
|
19632
|
-
[
|
|
19632
|
+
[F, e.breakpoints, "questionEl"]
|
|
19633
19633
|
]),
|
|
19634
19634
|
(N(!0), V(Ke, null, et(e.matrixColumnLabels, (E, I) => ne((N(), V("div", {
|
|
19635
19635
|
class: ve(["uikit-question-matrix-choices-container__column-header", {
|
|
@@ -19641,11 +19641,11 @@ function Kg(e, i, s, o, t, n) {
|
|
|
19641
19641
|
innerHTML: E
|
|
19642
19642
|
}, null, 10, Wg)), [
|
|
19643
19643
|
[Y, e.isDarkMode],
|
|
19644
|
-
[
|
|
19644
|
+
[F, e.breakpoints, "questionEl"]
|
|
19645
19645
|
])), 128))
|
|
19646
19646
|
])), [
|
|
19647
19647
|
[Y, e.isDarkMode],
|
|
19648
|
-
[
|
|
19648
|
+
[F, e.breakpoints, "questionEl"]
|
|
19649
19649
|
]),
|
|
19650
19650
|
ne((N(), V("div", {
|
|
19651
19651
|
class: ve(["uikit-question-matrix-choices-container__choices-container", {
|
|
@@ -19670,7 +19670,7 @@ function Kg(e, i, s, o, t, n) {
|
|
|
19670
19670
|
innerHTML: E
|
|
19671
19671
|
}, null, 10, Ug), [
|
|
19672
19672
|
[Y, e.isDarkMode],
|
|
19673
|
-
[
|
|
19673
|
+
[F, e.breakpoints, "questionEl"]
|
|
19674
19674
|
]),
|
|
19675
19675
|
e.question.type === "Matrix Checkbox" && e.matrixCheckboxGrid && e.matrixCheckboxGrid[I] ? (N(!0), V(Ke, { key: 0 }, et(e.matrixColumnLabels, (G, A) => ne((N(), V("div", {
|
|
19676
19676
|
class: ve(["uikit-question-matrix-choices-container__checkbox", {
|
|
@@ -19709,7 +19709,7 @@ function Kg(e, i, s, o, t, n) {
|
|
|
19709
19709
|
]) : Le("", !0)
|
|
19710
19710
|
], 2)), [
|
|
19711
19711
|
[Y, e.isDarkMode],
|
|
19712
|
-
[
|
|
19712
|
+
[F, e.breakpoints, "questionEl"]
|
|
19713
19713
|
])), 128)) : Le("", !0),
|
|
19714
19714
|
e.question.type === "Matrix Radio Button" && e.matrixRadioGrid && e.matrixRadioGrid[I] ? (N(), ye(D, {
|
|
19715
19715
|
key: 1,
|
|
@@ -19745,11 +19745,11 @@ function Kg(e, i, s, o, t, n) {
|
|
|
19745
19745
|
}, 1032, ["model-value", "review-mode", "show-answers", "choices", "is-dark-mode", "question-el", "breakpoints", "onUpdate:modelValue"])) : Le("", !0)
|
|
19746
19746
|
], 2)), [
|
|
19747
19747
|
[Y, e.isDarkMode],
|
|
19748
|
-
[
|
|
19748
|
+
[F, e.breakpoints, "questionEl"]
|
|
19749
19749
|
])), 128))
|
|
19750
19750
|
], 2)), [
|
|
19751
19751
|
[Y, e.isDarkMode],
|
|
19752
|
-
[
|
|
19752
|
+
[F, e.breakpoints, "questionEl"]
|
|
19753
19753
|
])
|
|
19754
19754
|
])), [
|
|
19755
19755
|
[Y, e.isDarkMode]
|
|
@@ -19792,7 +19792,7 @@ const Xg = /* @__PURE__ */ Ce(lt, [["render", Kg]]), Vg = {
|
|
|
19792
19792
|
class: "uikit-mobile-matrix-radio-group__option",
|
|
19793
19793
|
role: "radio",
|
|
19794
19794
|
key: D,
|
|
19795
|
-
onClick: (
|
|
19795
|
+
onClick: (F) => !r.disabled && !r.showAnswers && o(D)
|
|
19796
19796
|
}, [
|
|
19797
19797
|
Pe(nn, {
|
|
19798
19798
|
class: "uikit-mobile-matrix-radio-group__radio-btn",
|
|
@@ -19800,14 +19800,14 @@ const Xg = /* @__PURE__ */ Ce(lt, [["render", Kg]]), Vg = {
|
|
|
19800
19800
|
disabled: r.disabled,
|
|
19801
19801
|
isDarkMode: r.isDarkMode,
|
|
19802
19802
|
color: t(D),
|
|
19803
|
-
onClick: (
|
|
19803
|
+
onClick: (F) => !r.disabled && !r.showAnswers && o(D)
|
|
19804
19804
|
}, null, 8, ["selected", "disabled", "isDarkMode", "color", "onClick"]),
|
|
19805
19805
|
r.labels ? ne((N(), V("div", {
|
|
19806
19806
|
key: 0,
|
|
19807
19807
|
class: ve(["uikit-mobile-matrix-radio-group__label", {
|
|
19808
19808
|
"uikit-mobile-matrix-radio-group__label--distractor": r.showAnswers && (D == null ? void 0 : D.startsWith("d"))
|
|
19809
19809
|
}]),
|
|
19810
|
-
onClick: (
|
|
19810
|
+
onClick: (F) => !r.disabled && !r.showAnswers && o(D)
|
|
19811
19811
|
}, [
|
|
19812
19812
|
xe(me(n(r.labels[Y])), 1)
|
|
19813
19813
|
], 10, $g)), [
|
|
@@ -19899,8 +19899,8 @@ let nt = class extends be {
|
|
|
19899
19899
|
const t = (n = this.matrixRadioGrid) == null ? void 0 : n[s];
|
|
19900
19900
|
if (t) {
|
|
19901
19901
|
t.value = o;
|
|
19902
|
-
const Y = t.choices.findIndex((E) => E === o),
|
|
19903
|
-
|
|
19902
|
+
const Y = t.choices.findIndex((E) => E === o), F = (r = this.question.matrixLabels) == null ? void 0 : r.columns[Y];
|
|
19903
|
+
F && ((R = this.selectedColumnHeaders[s]) == null || R.pop(), (D = this.selectedColumnHeaders[s]) == null || D.push(F));
|
|
19904
19904
|
}
|
|
19905
19905
|
}
|
|
19906
19906
|
correctlySelectedChoice(s, o) {
|
|
@@ -19955,11 +19955,11 @@ let nt = class extends be {
|
|
|
19955
19955
|
if (((n = this.question) == null ? void 0 : n.type) === "Matrix Checkbox" && this.matrixCheckboxGrid && this.matrixCheckboxGrid[s]) {
|
|
19956
19956
|
const D = (r = this.question) == null ? void 0 : r.matrixChoiceLayout[s].filter(
|
|
19957
19957
|
(E) => E.startsWith("a")
|
|
19958
|
-
), Y = this.matrixCheckboxGrid[s].map((E, I) => this.selectedChoiceKey(s, I)),
|
|
19958
|
+
), Y = this.matrixCheckboxGrid[s].map((E, I) => this.selectedChoiceKey(s, I)), F = this.matrixCheckboxGrid[s].filter((E, I) => {
|
|
19959
19959
|
const G = this.selectedChoiceKey(s, I);
|
|
19960
19960
|
return G == null ? void 0 : G.startsWith("a");
|
|
19961
19961
|
});
|
|
19962
|
-
return !Y.some((E) => E == null ? void 0 : E.startsWith("d")) && D.length ===
|
|
19962
|
+
return !Y.some((E) => E == null ? void 0 : E.startsWith("d")) && D.length === F.length;
|
|
19963
19963
|
}
|
|
19964
19964
|
if (((R = this.question) == null ? void 0 : R.type) === "Matrix Radio Button" && this.matrixRadioGrid && this.matrixRadioGrid[s]) {
|
|
19965
19965
|
const D = this.matrixRadioGrid[s].value;
|
|
@@ -19974,24 +19974,27 @@ let nt = class extends be {
|
|
|
19974
19974
|
return o && (o.forEach(() => {
|
|
19975
19975
|
t.push([]);
|
|
19976
19976
|
}), this.selectedColumnHeaders = t), this.selectedMatrixChoices.forEach((r) => {
|
|
19977
|
-
var Y,
|
|
19977
|
+
var Y, F;
|
|
19978
19978
|
const R = Number(r.substring(1, r.indexOf("_"))) - 1, D = Number(r.split("_").pop()) - 1;
|
|
19979
19979
|
if (s && s[R] && (s[R][D] = !0, this.selectedColumnHeaders[R] && ((Y = this.question.matrixLabels) != null && Y.columns[D]))) {
|
|
19980
|
-
const E = (
|
|
19980
|
+
const E = (F = this.question.matrixLabels) == null ? void 0 : F.columns[D];
|
|
19981
19981
|
this.selectedColumnHeaders[R].push(E);
|
|
19982
19982
|
}
|
|
19983
19983
|
}), s;
|
|
19984
19984
|
}
|
|
19985
19985
|
convertSelectedMatrixChoiceToRadioBtnGrid() {
|
|
19986
|
-
|
|
19987
|
-
|
|
19988
|
-
|
|
19989
|
-
|
|
19990
|
-
|
|
19991
|
-
|
|
19992
|
-
|
|
19986
|
+
var n;
|
|
19987
|
+
const s = this.defaultRadioButtonGrid, o = (n = this.question.matrixLabels) == null ? void 0 : n.rows, t = [];
|
|
19988
|
+
return o && (o.forEach(() => {
|
|
19989
|
+
t.push([]);
|
|
19990
|
+
}), this.selectedColumnHeaders = t), this.selectedMatrixChoices.forEach((r) => {
|
|
19991
|
+
var Y, F;
|
|
19992
|
+
const R = Number(r.substring(1, r.indexOf("_"))) - 1, D = Number(r.split("_").pop()) - 1;
|
|
19993
|
+
if (this.selectedColumnHeaders[R] && ((Y = this.question.matrixLabels) != null && Y.columns[D])) {
|
|
19994
|
+
const E = (F = this.question.matrixLabels) == null ? void 0 : F.columns[D];
|
|
19995
|
+
this.selectedColumnHeaders[R].pop(), this.selectedColumnHeaders[R].push(E);
|
|
19993
19996
|
}
|
|
19994
|
-
s && s[
|
|
19997
|
+
s && s[R] && (s[R].value = r);
|
|
19995
19998
|
}), s;
|
|
19996
19999
|
}
|
|
19997
20000
|
checkboxRowClicked(s, o) {
|
|
@@ -20128,7 +20131,7 @@ const nf = { class: "uikit-question-mobile-matrix-choices-container" }, rf = ["o
|
|
|
20128
20131
|
class: "uikit-question-mobile-matrix-choices-container__selected-choice-labels"
|
|
20129
20132
|
}, df = { key: 0 }, cf = ["onClick", "onKeypress"], uf = { key: 1 };
|
|
20130
20133
|
function pf(e, i, s, o, t, n) {
|
|
20131
|
-
const r = ge("Icon"), R = ge("Checkbox"), D = ge("MobileMatrixRadioGroup"), Y = Re("dark"),
|
|
20134
|
+
const r = ge("Icon"), R = ge("Checkbox"), D = ge("MobileMatrixRadioGroup"), Y = Re("dark"), F = Re("breakpoint");
|
|
20132
20135
|
return ne((N(), V("div", nf, [
|
|
20133
20136
|
ne((N(), V("div", {
|
|
20134
20137
|
class: ve(["uikit-question-mobile-matrix-choices-container__choices-container", {
|
|
@@ -20179,7 +20182,7 @@ function pf(e, i, s, o, t, n) {
|
|
|
20179
20182
|
xe(me(e.selectedColumnHeaders[I][A] === e.selectedColumnHeaders[I][e.selectedColumnHeaders[I].length - 1] ? e.stripText(e.selectedColumnHeaders[I][A]) : `${e.stripText(e.selectedColumnHeaders[I][A])},`), 1)
|
|
20180
20183
|
])), [
|
|
20181
20184
|
[Y, e.isDarkMode],
|
|
20182
|
-
[
|
|
20185
|
+
[F, e.breakpoints, "questionEl"]
|
|
20183
20186
|
]) : Le("", !0)
|
|
20184
20187
|
])), [
|
|
20185
20188
|
[Y, e.isDarkMode]
|
|
@@ -20187,7 +20190,7 @@ function pf(e, i, s, o, t, n) {
|
|
|
20187
20190
|
])
|
|
20188
20191
|
], 10, rf)), [
|
|
20189
20192
|
[Y, e.isDarkMode],
|
|
20190
|
-
[
|
|
20193
|
+
[F, e.breakpoints, "questionEl"]
|
|
20191
20194
|
]),
|
|
20192
20195
|
e.expandedRowNumbers.includes(I) && e.question.type === "Matrix Checkbox" && e.matrixCheckboxGrid && e.matrixCheckboxGrid[I] ? (N(), V("div", df, [
|
|
20193
20196
|
(N(!0), V(Ke, null, et(e.matrixColumnLabels, (G, A) => {
|
|
@@ -20240,11 +20243,11 @@ function pf(e, i, s, o, t, n) {
|
|
|
20240
20243
|
])) : Le("", !0)
|
|
20241
20244
|
])), [
|
|
20242
20245
|
[Y, e.isDarkMode],
|
|
20243
|
-
[
|
|
20246
|
+
[F, e.breakpoints, "questionEl"]
|
|
20244
20247
|
])), 128))
|
|
20245
20248
|
], 2)), [
|
|
20246
20249
|
[Y, e.isDarkMode],
|
|
20247
|
-
[
|
|
20250
|
+
[F, e.breakpoints, "questionEl"]
|
|
20248
20251
|
])
|
|
20249
20252
|
])), [
|
|
20250
20253
|
[Y, e.isDarkMode]
|
|
@@ -20442,8 +20445,8 @@ let ze = class extends be {
|
|
|
20442
20445
|
o.totalAnswered += (s.answeredCorrectlyCount || 0) + (s.answeredIncorrectlyCount || 0), o.answeredCorrectly += s.answeredCorrectlyCount || 0;
|
|
20443
20446
|
const n = (this.showAnswers && !this.reviewMode && this.selectedChoices.length || 0) + Object.values(s.choiceStats).reduce((r, R) => (R || 0) + (r || 0), 0);
|
|
20444
20447
|
return this.choices.forEach(({ key: r }) => {
|
|
20445
|
-
const R = s.choiceStats[r] || 0, D = this.showAnswers && this.selectedChoices.includes(r) && !this.reviewMode ? 1 : 0, Y = R + D,
|
|
20446
|
-
o[r] =
|
|
20448
|
+
const R = s.choiceStats[r] || 0, D = this.showAnswers && this.selectedChoices.includes(r) && !this.reviewMode ? 1 : 0, Y = R + D, F = Math.round(Y / n * 100);
|
|
20449
|
+
o[r] = F || 0;
|
|
20447
20450
|
}), o;
|
|
20448
20451
|
}
|
|
20449
20452
|
get matrixChoiceScores() {
|
|
@@ -20454,7 +20457,7 @@ let ze = class extends be {
|
|
|
20454
20457
|
return s && (o.totalAnswered += (s.answeredCorrectlyCount || 0) + (s.answeredIncorrectlyCount || 0), o.answeredCorrectly += s.answeredCorrectlyCount || 0), o;
|
|
20455
20458
|
}
|
|
20456
20459
|
get isUnanswered() {
|
|
20457
|
-
return this.isMatrixQuestion ? this.selectedMatrixChoices.length === 0 : this.selectedChoices.length === 0;
|
|
20460
|
+
return this.isMatrixQuestion ? this.selectedMatrixChoices.length === 0 || !this.allMatrixRowsAreAnswered : this.selectedChoices.length === 0;
|
|
20458
20461
|
}
|
|
20459
20462
|
get prompt() {
|
|
20460
20463
|
return wo({
|
|
@@ -20572,8 +20575,8 @@ let ze = class extends be {
|
|
|
20572
20575
|
// deterministic shuffling of choices so they don't change order everytime you reload the component
|
|
20573
20576
|
shuffleChoices(s) {
|
|
20574
20577
|
const o = s.sort((t, n) => {
|
|
20575
|
-
var Y,
|
|
20576
|
-
const r = (E, I) => (I << 5) - I + E.charCodeAt(0), R = (Y = t.text) == null ? void 0 : Y.split("").reduce((E, I) => r(I, E) & r(I, E), 0), D = (
|
|
20578
|
+
var Y, F;
|
|
20579
|
+
const r = (E, I) => (I << 5) - I + E.charCodeAt(0), R = (Y = t.text) == null ? void 0 : Y.split("").reduce((E, I) => r(I, E) & r(I, E), 0), D = (F = n.text) == null ? void 0 : F.split("").reduce((E, I) => r(I, E) & r(I, E), 0);
|
|
20577
20580
|
return (R || 0) - (D || 0);
|
|
20578
20581
|
});
|
|
20579
20582
|
return this.answerSeed ? this.answerSeed.reduce((t, n) => {
|
|
@@ -20615,7 +20618,7 @@ let ze = class extends be {
|
|
|
20615
20618
|
y: ((D = t == null ? void 0 : t.changedTouches[0]) == null ? void 0 : D.clientY) || null
|
|
20616
20619
|
};
|
|
20617
20620
|
if (n instanceof HTMLElement && r.x !== null && r.y !== null && this.swipeStart.x !== null && Math.abs(r.x - this.swipeStart.x) > 80) {
|
|
20618
|
-
const Y = this.$refs["uikit-question__choices-container"],
|
|
20621
|
+
const Y = this.$refs["uikit-question__choices-container"], F = Y == null ? void 0 : Y.$refs.choices, E = F == null ? void 0 : F.find((G) => G.contains(n)), I = document.elementFromPoint(r.x, r.y);
|
|
20619
20622
|
E != null && E.contains(I) && this.clickChoiceStrike(o);
|
|
20620
20623
|
} else
|
|
20621
20624
|
this.showAnswers || (t.cancelable && t.preventDefault(), r.y !== null && this.swipeStart.y !== null && Math.abs(r.y - this.swipeStart.y) < 20 && this.selectChoice(o));
|
|
@@ -20957,7 +20960,7 @@ const Cf = { class: "uikit-question__tag-mobile" }, mf = ["aria-label"], vf = ["
|
|
|
20957
20960
|
class: "uikit-question__unanswered-label"
|
|
20958
20961
|
}, kf = /* @__PURE__ */ oe("span", null, "Unanswered", -1);
|
|
20959
20962
|
function Ef(e, i, s, o, t, n) {
|
|
20960
|
-
const r = ge("Icon"), R = ge("QuestionContext"), D = ge("PocketButton"), Y = ge("PassageAndImageDropdown"),
|
|
20963
|
+
const r = ge("Icon"), R = ge("QuestionContext"), D = ge("PocketButton"), Y = ge("PassageAndImageDropdown"), F = ge("Paywall"), E = ge("ChoicesContainer"), I = ge("MatrixChoicesContainer"), G = ge("MobileMatrixChoicesContainer"), A = ge("Summary"), g = ge("StatsSummary"), p = ge("PassageAndImage"), d = ge("Explanation"), c = Re("breakpoint"), C = Re("dark");
|
|
20961
20964
|
return ne((N(), V("div", {
|
|
20962
20965
|
ref: "question",
|
|
20963
20966
|
class: ve(["uikit-question", {
|
|
@@ -21070,7 +21073,7 @@ function Ef(e, i, s, o, t, n) {
|
|
|
21070
21073
|
"passage-and-image-title": e.passageAndImageTitle,
|
|
21071
21074
|
onTogglePassageImageLongAltDropdown: e.togglePassageImageLongAlt
|
|
21072
21075
|
}, null, 8, ["class", "question", "question-el", "breakpoints", "is-dark-mode", "review-mode", "image-url-prefix", "show-passage-image-long-alt", "passage-image-url", "passage-image-long-alt", "passage-image-alt", "passage-and-image-title", "onTogglePassageImageLongAltDropdown"])) : Le("", !0),
|
|
21073
|
-
e.showPaywall ? (N(), ye(
|
|
21076
|
+
e.showPaywall ? (N(), ye(F, {
|
|
21074
21077
|
key: 3,
|
|
21075
21078
|
class: "uikit-question__paywall",
|
|
21076
21079
|
"review-Mode": e.reviewMode,
|
|
@@ -21153,11 +21156,11 @@ function Ef(e, i, s, o, t, n) {
|
|
|
21153
21156
|
motivationalMoment: Te(({
|
|
21154
21157
|
isCorrect: L,
|
|
21155
21158
|
choiceKey: O,
|
|
21156
|
-
showAnswers:
|
|
21159
|
+
showAnswers: z,
|
|
21157
21160
|
answerKeys: U
|
|
21158
21161
|
}) => [
|
|
21159
21162
|
ke(e.$slots, "motivationalMoment", {
|
|
21160
|
-
showAnswers:
|
|
21163
|
+
showAnswers: z,
|
|
21161
21164
|
answerKeys: U,
|
|
21162
21165
|
choiceKey: O,
|
|
21163
21166
|
isCorrect: L
|
|
@@ -21197,11 +21200,11 @@ function Ef(e, i, s, o, t, n) {
|
|
|
21197
21200
|
motivationalMoment: Te(({
|
|
21198
21201
|
isCorrect: L,
|
|
21199
21202
|
choiceKey: O,
|
|
21200
|
-
showAnswers:
|
|
21203
|
+
showAnswers: z,
|
|
21201
21204
|
answerKeys: U
|
|
21202
21205
|
}) => [
|
|
21203
21206
|
ke(e.$slots, "motivationalMoment", {
|
|
21204
|
-
showAnswers:
|
|
21207
|
+
showAnswers: z,
|
|
21205
21208
|
answerKeys: U,
|
|
21206
21209
|
choiceKey: O,
|
|
21207
21210
|
isCorrect: L
|
|
@@ -21235,11 +21238,11 @@ function Ef(e, i, s, o, t, n) {
|
|
|
21235
21238
|
motivationalMoment: Te(({
|
|
21236
21239
|
isCorrect: L,
|
|
21237
21240
|
choiceKey: O,
|
|
21238
|
-
showAnswers:
|
|
21241
|
+
showAnswers: z,
|
|
21239
21242
|
answerKeys: U
|
|
21240
21243
|
}) => [
|
|
21241
21244
|
ke(e.$slots, "motivationalMoment", {
|
|
21242
|
-
showAnswers:
|
|
21245
|
+
showAnswers: z,
|
|
21243
21246
|
answerKeys: U,
|
|
21244
21247
|
choiceKey: O,
|
|
21245
21248
|
isCorrect: L
|
|
@@ -22262,15 +22265,15 @@ function qA(e, i, s, o, t, n) {
|
|
|
22262
22265
|
ref: "toast",
|
|
22263
22266
|
class: ve(["toast", { "toast--right": e.right }]),
|
|
22264
22267
|
role: "alert",
|
|
22265
|
-
onMouseenter: i[3] || (i[3] = (...
|
|
22266
|
-
onMouseleave: i[4] || (i[4] = (...
|
|
22268
|
+
onMouseenter: i[3] || (i[3] = (...F) => e.clearCloseTimeout && e.clearCloseTimeout(...F)),
|
|
22269
|
+
onMouseleave: i[4] || (i[4] = (...F) => e.setCloseTimeout && e.setCloseTimeout(...F))
|
|
22267
22270
|
}, [
|
|
22268
22271
|
e.showCloseButton ? ne((N(), V("div", {
|
|
22269
22272
|
key: 0,
|
|
22270
22273
|
tabindex: "0",
|
|
22271
22274
|
class: "toast__close",
|
|
22272
|
-
onClick: i[0] || (i[0] = (...
|
|
22273
|
-
onKeypress: i[1] || (i[1] = Fe((...
|
|
22275
|
+
onClick: i[0] || (i[0] = (...F) => e.emitClose && e.emitClose(...F)),
|
|
22276
|
+
onKeypress: i[1] || (i[1] = Fe((...F) => e.emitClose && e.emitClose(...F), ["enter"])),
|
|
22274
22277
|
onMousedown: i[2] || (i[2] = Ie(() => {
|
|
22275
22278
|
}, ["prevent"]))
|
|
22276
22279
|
}, [
|