@kong-ui-public/analytics-geo-map 1.4.23 → 1.4.24-pr.2603.c77a00164.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vitals-geo-map.es.js +105 -105
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as P, defineComponent as Dt, createElementBlock as ae, openBlock as $, createCommentVNode as Ne, toDisplayString as we, Fragment as Kr, renderList as Wr, createElementVNode as X, normalizeStyle as Zr, useCssVars as qr, toRef as Be, ref as De, useId as Jr, onMounted as Xr, watch as dt, createBlock as nn, renderSlot as mt, createVNode as Qr, unref as ue, createTextVNode as ea } from "vue";
|
|
2
2
|
import { Map as ta } from "maplibre-gl";
|
|
3
3
|
import { createI18n as na, i18nTComponent as ra } from "@kong-ui-public/i18n";
|
|
4
4
|
import { AnalyticsIcon as aa } from "@kong/icons";
|
|
@@ -52,7 +52,7 @@ function da() {
|
|
|
52
52
|
// Translation component <i18n-t>
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
var ma = Object.defineProperty, fa = (e, t, n) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
55
|
+
var ma = Object.defineProperty, fa = (e, t, n) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, C = (e, t, n) => fa(e, typeof t != "symbol" ? t + "" : t, n), h = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(h || {});
|
|
56
56
|
const pa = ["in", "not_in", "selector"], ha = ["empty", "not_empty"], ya = [
|
|
57
57
|
"15m",
|
|
58
58
|
"1h",
|
|
@@ -513,7 +513,7 @@ function Nn(e, t, n) {
|
|
|
513
513
|
return Da(e, -1);
|
|
514
514
|
}
|
|
515
515
|
function Ea(e, t) {
|
|
516
|
-
const n =
|
|
516
|
+
const n = Ga(t);
|
|
517
517
|
return "formatToParts" in n ? Oa(n, e) : ba(n, e);
|
|
518
518
|
}
|
|
519
519
|
const Ra = {
|
|
@@ -558,9 +558,9 @@ const ht = {}, on = new Intl.DateTimeFormat("en-US", {
|
|
|
558
558
|
hour: "2-digit",
|
|
559
559
|
minute: "2-digit",
|
|
560
560
|
second: "2-digit"
|
|
561
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
562
|
-
function
|
|
563
|
-
return ht[e] || (ht[e] =
|
|
561
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), La = on === "06/25/2014, 00:00:00" || on === "06/25/2014 00:00:00";
|
|
562
|
+
function Ga(e) {
|
|
563
|
+
return ht[e] || (ht[e] = La ? new Intl.DateTimeFormat("en-US", {
|
|
564
564
|
hourCycle: "h23",
|
|
565
565
|
timeZone: e,
|
|
566
566
|
year: "numeric",
|
|
@@ -603,14 +603,14 @@ function Ze(e, t, n) {
|
|
|
603
603
|
const l = parseInt(a[3], 10);
|
|
604
604
|
return ln(i, l) ? (o = Math.abs(i) * sn + l * Ia, a[1] === "+" ? -o : o) : NaN;
|
|
605
605
|
}
|
|
606
|
-
if (
|
|
606
|
+
if (Ua(e)) {
|
|
607
607
|
t = new Date(t || Date.now());
|
|
608
|
-
const l = n ? t :
|
|
609
|
-
return -(n ? m :
|
|
608
|
+
const l = n ? t : Ca(t), m = Mt(l, e);
|
|
609
|
+
return -(n ? m : Pa(t, m, e));
|
|
610
610
|
}
|
|
611
611
|
return NaN;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Ca(e) {
|
|
614
614
|
return kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
615
615
|
}
|
|
616
616
|
function Mt(e, t) {
|
|
@@ -619,7 +619,7 @@ function Mt(e, t) {
|
|
|
619
619
|
const o = i % 1e3;
|
|
620
620
|
return i -= o >= 0 ? o : 1e3 + o, a - i;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Pa(e, t, n) {
|
|
623
623
|
let a = e.getTime() - t;
|
|
624
624
|
const i = Mt(new Date(a), n);
|
|
625
625
|
if (t === i)
|
|
@@ -632,7 +632,7 @@ function ln(e, t) {
|
|
|
632
632
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
633
633
|
}
|
|
634
634
|
const un = {};
|
|
635
|
-
function
|
|
635
|
+
function Ua(e) {
|
|
636
636
|
if (un[e])
|
|
637
637
|
return !0;
|
|
638
638
|
try {
|
|
@@ -840,9 +840,9 @@ function qa(e) {
|
|
|
840
840
|
var je = { exports: {} };
|
|
841
841
|
je.exports;
|
|
842
842
|
(function(e, t) {
|
|
843
|
-
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", m = "[object Boolean]", f = "[object Date]", d = "[object Error]", c = "[object Function]", y = "[object GeneratorFunction]", w = "[object Map]", g = "[object Number]", M = "[object Object]", T = "[object Promise]", B = "[object RegExp]", A = "[object Set]", I = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Fe = "[object ArrayBuffer]", ce = "[object DataView]", _ = "[object Float32Array]", F = "[object Float64Array]", S = "[object Int8Array]", k = "[object Int16Array]", ee = "[object Int32Array]", K = "[object Uint8Array]", H = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]",
|
|
843
|
+
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", m = "[object Boolean]", f = "[object Date]", d = "[object Error]", c = "[object Function]", y = "[object GeneratorFunction]", w = "[object Map]", g = "[object Number]", M = "[object Object]", T = "[object Promise]", B = "[object RegExp]", A = "[object Set]", I = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Fe = "[object ArrayBuffer]", ce = "[object DataView]", _ = "[object Float32Array]", F = "[object Float64Array]", S = "[object Int8Array]", k = "[object Int16Array]", ee = "[object Int32Array]", K = "[object Uint8Array]", H = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", G = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, v = {};
|
|
844
844
|
v[o] = v[l] = v[Fe] = v[ce] = v[m] = v[f] = v[_] = v[F] = v[S] = v[k] = v[ee] = v[w] = v[g] = v[M] = v[B] = v[A] = v[I] = v[ie] = v[K] = v[H] = v[te] = v[ne] = !0, v[d] = v[c] = v[D] = !1;
|
|
845
|
-
var j = typeof He == "object" && He && He.Object === Object && He, de = typeof self == "object" && self && self.Object === Object && self, O = j || de || Function("return this")(), W = t && !t.nodeType && t,
|
|
845
|
+
var j = typeof He == "object" && He && He.Object === Object && He, de = typeof self == "object" && self && self.Object === Object && self, O = j || de || Function("return this")(), W = t && !t.nodeType && t, Le = W && !0 && e && !e.nodeType && e, Je = Le && Le.exports === W;
|
|
846
846
|
function Xe(r, s) {
|
|
847
847
|
return r.set(s[0], s[1]), r;
|
|
848
848
|
}
|
|
@@ -854,17 +854,17 @@ je.exports;
|
|
|
854
854
|
;
|
|
855
855
|
return r;
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Ln(r, s) {
|
|
858
858
|
for (var u = -1, p = s.length, N = r.length; ++u < p; )
|
|
859
859
|
r[N + u] = s[u];
|
|
860
860
|
return r;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function Lt(r, s, u, p) {
|
|
863
863
|
for (var N = -1, b = r ? r.length : 0; ++N < b; )
|
|
864
864
|
u = s(u, r[N], N, r);
|
|
865
865
|
return u;
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Gn(r, s) {
|
|
868
868
|
for (var u = -1, p = Array(r); ++u < r; )
|
|
869
869
|
p[u] = s(u);
|
|
870
870
|
return p;
|
|
@@ -872,7 +872,7 @@ je.exports;
|
|
|
872
872
|
function In(r, s) {
|
|
873
873
|
return r == null ? void 0 : r[s];
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function Gt(r) {
|
|
876
876
|
var s = !1;
|
|
877
877
|
if (r != null && typeof r.toString != "function")
|
|
878
878
|
try {
|
|
@@ -892,18 +892,18 @@ je.exports;
|
|
|
892
892
|
return r(s(u));
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Ct(r) {
|
|
896
896
|
var s = -1, u = Array(r.size);
|
|
897
897
|
return r.forEach(function(p) {
|
|
898
898
|
u[++s] = p;
|
|
899
899
|
}), u;
|
|
900
900
|
}
|
|
901
|
-
var
|
|
901
|
+
var Cn = Array.prototype, Pn = Function.prototype, Ge = Object.prototype, tt = O["__core-js_shared__"], Pt = function() {
|
|
902
902
|
var r = /[^.]+$/.exec(tt && tt.keys && tt.keys.IE_PROTO || "");
|
|
903
903
|
return r ? "Symbol(src)_1." + r : "";
|
|
904
|
-
}(),
|
|
905
|
-
"^" +
|
|
906
|
-
), At = Je ? O.Buffer : void 0, Bt = O.Symbol, Ht = O.Uint8Array, An = et(Object.getPrototypeOf, Object), Bn = Object.create, Hn =
|
|
904
|
+
}(), Ut = Pn.toString, re = Ge.hasOwnProperty, Ie = Ge.toString, Un = RegExp(
|
|
905
|
+
"^" + Ut.call(re).replace(G, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
906
|
+
), At = Je ? O.Buffer : void 0, Bt = O.Symbol, Ht = O.Uint8Array, An = et(Object.getPrototypeOf, Object), Bn = Object.create, Hn = Ge.propertyIsEnumerable, Vn = Cn.splice, Vt = Object.getOwnPropertySymbols, Yn = At ? At.isBuffer : void 0, zn = et(Object.keys, Object), nt = pe(O, "DataView"), Te = pe(O, "Map"), rt = pe(O, "Promise"), at = pe(O, "Set"), it = pe(O, "WeakMap"), Se = pe(Object, "create"), jn = le(nt), $n = le(Te), Kn = le(rt), Wn = le(at), Zn = le(it), Yt = Bt ? Bt.prototype : void 0, zt = Yt ? Yt.valueOf : void 0;
|
|
907
907
|
function oe(r) {
|
|
908
908
|
var s = -1, u = r ? r.length : 0;
|
|
909
909
|
for (this.clear(); ++s < u; ) {
|
|
@@ -945,21 +945,21 @@ je.exports;
|
|
|
945
945
|
this.__data__ = [];
|
|
946
946
|
}
|
|
947
947
|
function nr(r) {
|
|
948
|
-
var s = this.__data__, u =
|
|
948
|
+
var s = this.__data__, u = Ce(s, r);
|
|
949
949
|
if (u < 0)
|
|
950
950
|
return !1;
|
|
951
951
|
var p = s.length - 1;
|
|
952
952
|
return u == p ? s.pop() : Vn.call(s, u, 1), !0;
|
|
953
953
|
}
|
|
954
954
|
function rr(r) {
|
|
955
|
-
var s = this.__data__, u =
|
|
955
|
+
var s = this.__data__, u = Ce(s, r);
|
|
956
956
|
return u < 0 ? void 0 : s[u][1];
|
|
957
957
|
}
|
|
958
958
|
function ar(r) {
|
|
959
|
-
return
|
|
959
|
+
return Ce(this.__data__, r) > -1;
|
|
960
960
|
}
|
|
961
961
|
function ir(r, s) {
|
|
962
|
-
var u = this.__data__, p =
|
|
962
|
+
var u = this.__data__, p = Ce(u, r);
|
|
963
963
|
return p < 0 ? u.push([r, s]) : u[p][1] = s, this;
|
|
964
964
|
}
|
|
965
965
|
Z.prototype.clear = tr, Z.prototype.delete = nr, Z.prototype.get = rr, Z.prototype.has = ar, Z.prototype.set = ir;
|
|
@@ -978,16 +978,16 @@ je.exports;
|
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
980
|
function sr(r) {
|
|
981
|
-
return
|
|
981
|
+
return Pe(this, r).delete(r);
|
|
982
982
|
}
|
|
983
983
|
function lr(r) {
|
|
984
|
-
return
|
|
984
|
+
return Pe(this, r).get(r);
|
|
985
985
|
}
|
|
986
986
|
function ur(r) {
|
|
987
|
-
return
|
|
987
|
+
return Pe(this, r).has(r);
|
|
988
988
|
}
|
|
989
989
|
function cr(r, s) {
|
|
990
|
-
return
|
|
990
|
+
return Pe(this, r).set(r, s), this;
|
|
991
991
|
}
|
|
992
992
|
me.prototype.clear = or, me.prototype.delete = sr, me.prototype.get = lr, me.prototype.has = ur, me.prototype.set = cr;
|
|
993
993
|
function fe(r) {
|
|
@@ -1017,16 +1017,16 @@ je.exports;
|
|
|
1017
1017
|
}
|
|
1018
1018
|
fe.prototype.clear = dr, fe.prototype.delete = mr, fe.prototype.get = fr, fe.prototype.has = pr, fe.prototype.set = hr;
|
|
1019
1019
|
function yr(r, s) {
|
|
1020
|
-
var u = lt(r) || Br(r) ?
|
|
1020
|
+
var u = lt(r) || Br(r) ? Gn(r.length, String) : [], p = u.length, N = !!p;
|
|
1021
1021
|
for (var b in r)
|
|
1022
|
-
re.call(r, b) && !(N && (b == "length" ||
|
|
1022
|
+
re.call(r, b) && !(N && (b == "length" || Cr(b, p))) && u.push(b);
|
|
1023
1023
|
return u;
|
|
1024
1024
|
}
|
|
1025
1025
|
function jt(r, s, u) {
|
|
1026
1026
|
var p = r[s];
|
|
1027
1027
|
(!(re.call(r, s) && Zt(p, u)) || u === void 0 && !(s in r)) && (r[s] = u);
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function Ce(r, s) {
|
|
1030
1030
|
for (var u = r.length; u--; )
|
|
1031
1031
|
if (Zt(r[u][0], s))
|
|
1032
1032
|
return u;
|
|
@@ -1036,54 +1036,54 @@ je.exports;
|
|
|
1036
1036
|
return r && $t(s, ut(s), r);
|
|
1037
1037
|
}
|
|
1038
1038
|
function ot(r, s, u, p, N, b, q) {
|
|
1039
|
-
var
|
|
1040
|
-
if (p && (
|
|
1041
|
-
return
|
|
1042
|
-
if (!
|
|
1039
|
+
var L;
|
|
1040
|
+
if (p && (L = b ? p(r, N, b, q) : p(r)), L !== void 0)
|
|
1041
|
+
return L;
|
|
1042
|
+
if (!Ue(r))
|
|
1043
1043
|
return r;
|
|
1044
1044
|
var Xt = lt(r);
|
|
1045
1045
|
if (Xt) {
|
|
1046
|
-
if (
|
|
1047
|
-
return Rr(r,
|
|
1046
|
+
if (L = Lr(r), !s)
|
|
1047
|
+
return Rr(r, L);
|
|
1048
1048
|
} else {
|
|
1049
1049
|
var he = se(r), Qt = he == c || he == y;
|
|
1050
1050
|
if (Vr(r))
|
|
1051
1051
|
return Mr(r, s);
|
|
1052
1052
|
if (he == M || he == o || Qt && !b) {
|
|
1053
|
-
if (
|
|
1053
|
+
if (Gt(r))
|
|
1054
1054
|
return b ? r : {};
|
|
1055
|
-
if (
|
|
1056
|
-
return Or(r, _r(
|
|
1055
|
+
if (L = Gr(Qt ? {} : r), !s)
|
|
1056
|
+
return Or(r, _r(L, r));
|
|
1057
1057
|
} else {
|
|
1058
1058
|
if (!v[he])
|
|
1059
1059
|
return b ? r : {};
|
|
1060
|
-
|
|
1060
|
+
L = Ir(r, he, ot, s);
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
q || (q = new fe());
|
|
1064
1064
|
var en = q.get(r);
|
|
1065
1065
|
if (en)
|
|
1066
1066
|
return en;
|
|
1067
|
-
if (q.set(r,
|
|
1067
|
+
if (q.set(r, L), !Xt)
|
|
1068
1068
|
var tn = u ? br(r) : ut(r);
|
|
1069
1069
|
return Me(tn || r, function(ct, Ae) {
|
|
1070
|
-
tn && (Ae = ct, ct = r[Ae]), jt(
|
|
1071
|
-
}),
|
|
1070
|
+
tn && (Ae = ct, ct = r[Ae]), jt(L, Ae, ot(ct, s, u, p, Ae, r, q));
|
|
1071
|
+
}), L;
|
|
1072
1072
|
}
|
|
1073
1073
|
function gr(r) {
|
|
1074
|
-
return
|
|
1074
|
+
return Ue(r) ? Bn(r) : {};
|
|
1075
1075
|
}
|
|
1076
1076
|
function wr(r, s, u) {
|
|
1077
1077
|
var p = s(r);
|
|
1078
|
-
return lt(r) ? p :
|
|
1078
|
+
return lt(r) ? p : Ln(p, u(r));
|
|
1079
1079
|
}
|
|
1080
1080
|
function vr(r) {
|
|
1081
1081
|
return Ie.call(r);
|
|
1082
1082
|
}
|
|
1083
1083
|
function xr(r) {
|
|
1084
|
-
if (!
|
|
1084
|
+
if (!Ue(r) || Ur(r))
|
|
1085
1085
|
return !1;
|
|
1086
|
-
var s = Jt(r) ||
|
|
1086
|
+
var s = Jt(r) || Gt(r) ? Un : Y;
|
|
1087
1087
|
return s.test(le(r));
|
|
1088
1088
|
}
|
|
1089
1089
|
function Fr(r) {
|
|
@@ -1110,15 +1110,15 @@ je.exports;
|
|
|
1110
1110
|
}
|
|
1111
1111
|
function Sr(r, s, u) {
|
|
1112
1112
|
var p = s ? u(It(r), !0) : It(r);
|
|
1113
|
-
return
|
|
1113
|
+
return Lt(p, Xe, new r.constructor());
|
|
1114
1114
|
}
|
|
1115
1115
|
function Dr(r) {
|
|
1116
1116
|
var s = new r.constructor(r.source, V.exec(r));
|
|
1117
1117
|
return s.lastIndex = r.lastIndex, s;
|
|
1118
1118
|
}
|
|
1119
1119
|
function Nr(r, s, u) {
|
|
1120
|
-
var p = s ? u(
|
|
1121
|
-
return
|
|
1120
|
+
var p = s ? u(Ct(r), !0) : Ct(r);
|
|
1121
|
+
return Lt(p, Qe, new r.constructor());
|
|
1122
1122
|
}
|
|
1123
1123
|
function kr(r) {
|
|
1124
1124
|
return zt ? Object(zt.call(r)) : {};
|
|
@@ -1136,8 +1136,8 @@ je.exports;
|
|
|
1136
1136
|
function $t(r, s, u, p) {
|
|
1137
1137
|
u || (u = {});
|
|
1138
1138
|
for (var N = -1, b = s.length; ++N < b; ) {
|
|
1139
|
-
var q = s[N],
|
|
1140
|
-
jt(u, q,
|
|
1139
|
+
var q = s[N], L = void 0;
|
|
1140
|
+
jt(u, q, L === void 0 ? r[q] : L);
|
|
1141
1141
|
}
|
|
1142
1142
|
return u;
|
|
1143
1143
|
}
|
|
@@ -1147,9 +1147,9 @@ je.exports;
|
|
|
1147
1147
|
function br(r) {
|
|
1148
1148
|
return wr(r, ut, Kt);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Pe(r, s) {
|
|
1151
1151
|
var u = r.__data__;
|
|
1152
|
-
return
|
|
1152
|
+
return Pr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
|
|
1153
1153
|
}
|
|
1154
1154
|
function pe(r, s) {
|
|
1155
1155
|
var u = In(r, s);
|
|
@@ -1173,11 +1173,11 @@ je.exports;
|
|
|
1173
1173
|
}
|
|
1174
1174
|
return s;
|
|
1175
1175
|
});
|
|
1176
|
-
function
|
|
1176
|
+
function Lr(r) {
|
|
1177
1177
|
var s = r.length, u = r.constructor(s);
|
|
1178
1178
|
return s && typeof r[0] == "string" && re.call(r, "index") && (u.index = r.index, u.input = r.input), u;
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function Gr(r) {
|
|
1181
1181
|
return typeof r.constructor == "function" && !Wt(r) ? gr(An(r)) : {};
|
|
1182
1182
|
}
|
|
1183
1183
|
function Ir(r, s, u, p) {
|
|
@@ -1213,24 +1213,24 @@ je.exports;
|
|
|
1213
1213
|
return kr(r);
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function Cr(r, s) {
|
|
1217
1217
|
return s = s ?? i, !!s && (typeof r == "number" || z.test(r)) && r > -1 && r % 1 == 0 && r < s;
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function Pr(r) {
|
|
1220
1220
|
var s = typeof r;
|
|
1221
1221
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return !!
|
|
1223
|
+
function Ur(r) {
|
|
1224
|
+
return !!Pt && Pt in r;
|
|
1225
1225
|
}
|
|
1226
1226
|
function Wt(r) {
|
|
1227
|
-
var s = r && r.constructor, u = typeof s == "function" && s.prototype ||
|
|
1227
|
+
var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ge;
|
|
1228
1228
|
return r === u;
|
|
1229
1229
|
}
|
|
1230
1230
|
function le(r) {
|
|
1231
1231
|
if (r != null) {
|
|
1232
1232
|
try {
|
|
1233
|
-
return
|
|
1233
|
+
return Ut.call(r);
|
|
1234
1234
|
} catch {
|
|
1235
1235
|
}
|
|
1236
1236
|
try {
|
|
@@ -1258,13 +1258,13 @@ je.exports;
|
|
|
1258
1258
|
}
|
|
1259
1259
|
var Vr = Yn || $r;
|
|
1260
1260
|
function Jt(r) {
|
|
1261
|
-
var s =
|
|
1261
|
+
var s = Ue(r) ? Ie.call(r) : "";
|
|
1262
1262
|
return s == c || s == y;
|
|
1263
1263
|
}
|
|
1264
1264
|
function Yr(r) {
|
|
1265
1265
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= i;
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Ue(r) {
|
|
1268
1268
|
var s = typeof r;
|
|
1269
1269
|
return !!r && (s == "object" || s == "function");
|
|
1270
1270
|
}
|
|
@@ -1286,7 +1286,7 @@ je.exports;
|
|
|
1286
1286
|
const Q = (e, t) => new Date(e.getTime() - Za(t, e));
|
|
1287
1287
|
class E {
|
|
1288
1288
|
constructor(t) {
|
|
1289
|
-
|
|
1289
|
+
C(this, "timeframeText"), C(this, "key"), C(this, "display"), C(this, "timeframeLength"), C(this, "allowedTiers"), C(this, "defaultResponseGranularity"), C(this, "dataGranularity"), C(this, "isRelative"), C(this, "fineGrainedDefaultGranularity"), C(this, "_startCustom"), C(this, "_endCustom"), C(this, "_allowedGranularitiesOverride"), this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
|
|
1290
1290
|
}
|
|
1291
1291
|
// rawEnd does not consider granularity and should not be used directly in queries.
|
|
1292
1292
|
// Use `new QueryTime(timeframe, granularity?).queryEndSeconds()` instead.
|
|
@@ -1717,22 +1717,22 @@ function li({
|
|
|
1717
1717
|
metric: t,
|
|
1718
1718
|
unit: n
|
|
1719
1719
|
}) {
|
|
1720
|
-
const { formatMetric: a, formatMetricRange: i } = Ee.useMetricFormat({ unit: n }), o =
|
|
1720
|
+
const { formatMetric: a, formatMetricRange: i } = Ee.useMetricFormat({ unit: n }), o = P(() => {
|
|
1721
1721
|
const g = { ...e.value };
|
|
1722
1722
|
for (const M of Object.keys(g))
|
|
1723
1723
|
Nt.find((T) => T.code === M) || delete g[M];
|
|
1724
1724
|
return g;
|
|
1725
|
-
}), l =
|
|
1725
|
+
}), l = P(() => Object.values(o.value)), m = P(() => Object.keys(o.value).length), f = P(() => m.value < _n - 1 ? m.value : _n), d = P(() => {
|
|
1726
1726
|
var g;
|
|
1727
1727
|
return !((g = t.value) != null && g.includes("latency"));
|
|
1728
|
-
}), c =
|
|
1728
|
+
}), c = P(() => {
|
|
1729
1729
|
const g = [];
|
|
1730
1730
|
if (l.value.length > 10) {
|
|
1731
1731
|
const M = [...l.value].sort((D, Fe) => D - Fe), T = si(M, 0.75), B = l.value.filter((D) => D >= T), A = l.value.filter((D) => D < T), I = Ft(B, 3), ie = Ft(A, 2);
|
|
1732
1732
|
return g.push(...I, ...ie), g;
|
|
1733
1733
|
}
|
|
1734
1734
|
return Ft(l.value, f.value);
|
|
1735
|
-
}), y =
|
|
1735
|
+
}), y = P(() => l.value.length === 1 ? [{
|
|
1736
1736
|
color: w(l.value[0]),
|
|
1737
1737
|
range: a(l.value[0], {
|
|
1738
1738
|
approximate: d.value,
|
|
@@ -4230,7 +4230,7 @@ const Ee = {
|
|
|
4230
4230
|
function fi(e) {
|
|
4231
4231
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4232
4232
|
}
|
|
4233
|
-
var pi = yi, $e, ve,
|
|
4233
|
+
var pi = yi, $e, ve, U, Ke, qe, hi = [
|
|
4234
4234
|
"Point",
|
|
4235
4235
|
"MultiPoint",
|
|
4236
4236
|
"LineString",
|
|
@@ -4240,7 +4240,7 @@ var pi = yi, $e, ve, C, Ke, qe, hi = [
|
|
|
4240
4240
|
"GeometryCollection"
|
|
4241
4241
|
];
|
|
4242
4242
|
function yi(e) {
|
|
4243
|
-
Ke = 2, qe = Math.pow(10, 6),
|
|
4243
|
+
Ke = 2, qe = Math.pow(10, 6), U = null, $e = [], ve = [];
|
|
4244
4244
|
var t = e.readFields(_i, {});
|
|
4245
4245
|
return $e = null, t;
|
|
4246
4246
|
}
|
|
@@ -4265,7 +4265,7 @@ function vi(e, t, n) {
|
|
|
4265
4265
|
e === 1 ? t.geometry = Et(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? ve.push(Rt(n)) : e === 14 ? t.properties = We(n, {}) : e === 15 && We(n, t);
|
|
4266
4266
|
}
|
|
4267
4267
|
function xi(e, t, n) {
|
|
4268
|
-
e === 1 ? t.type = hi[n.readVarint()] : e === 2 ?
|
|
4268
|
+
e === 1 ? t.type = hi[n.readVarint()] : e === 2 ? U = n.readPackedVarint() : e === 3 ? Fi(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Et(n, {}))) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
|
|
4269
4269
|
}
|
|
4270
4270
|
function Fi(e, t, n) {
|
|
4271
4271
|
n === "Point" ? e.coordinates = Mi(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = gn(t) : n === "MultiLineString" ? e.coordinates = wn(t) : n === "Polygon" ? e.coordinates = wn(t, !0) : n === "MultiPolygon" && (e.coordinates = Ti(t));
|
|
@@ -4300,18 +4300,18 @@ function gn(e) {
|
|
|
4300
4300
|
}
|
|
4301
4301
|
function wn(e, t) {
|
|
4302
4302
|
var n = e.readVarint() + e.pos;
|
|
4303
|
-
if (!
|
|
4304
|
-
for (var a = [], i = 0; i <
|
|
4305
|
-
return
|
|
4303
|
+
if (!U) return [Oe(e, n, null, t)];
|
|
4304
|
+
for (var a = [], i = 0; i < U.length; i++) a.push(Oe(e, n, U[i], t));
|
|
4305
|
+
return U = null, a;
|
|
4306
4306
|
}
|
|
4307
4307
|
function Ti(e) {
|
|
4308
4308
|
var t = e.readVarint() + e.pos;
|
|
4309
|
-
if (!
|
|
4310
|
-
for (var n = [], a = 1, i = 0; i <
|
|
4311
|
-
for (var o = [], l = 0; l <
|
|
4312
|
-
a +=
|
|
4309
|
+
if (!U) return [[Oe(e, t, null, !0)]];
|
|
4310
|
+
for (var n = [], a = 1, i = 0; i < U[0]; i++) {
|
|
4311
|
+
for (var o = [], l = 0; l < U[a]; l++) o.push(Oe(e, t, U[a + 1 + l], !0));
|
|
4312
|
+
a += U[a] + 1, n.push(o);
|
|
4313
4313
|
}
|
|
4314
|
-
return
|
|
4314
|
+
return U = null, n;
|
|
4315
4315
|
}
|
|
4316
4316
|
var Si = pi, Ot = {};
|
|
4317
4317
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -4544,22 +4544,22 @@ x.prototype = {
|
|
|
4544
4544
|
t.length && this.writeMessage(e, bi, t);
|
|
4545
4545
|
},
|
|
4546
4546
|
writePackedSVarint: function(e, t) {
|
|
4547
|
-
t.length && this.writeMessage(e,
|
|
4547
|
+
t.length && this.writeMessage(e, Li, t);
|
|
4548
4548
|
},
|
|
4549
4549
|
writePackedBoolean: function(e, t) {
|
|
4550
|
-
t.length && this.writeMessage(e,
|
|
4550
|
+
t.length && this.writeMessage(e, Ci, t);
|
|
4551
4551
|
},
|
|
4552
4552
|
writePackedFloat: function(e, t) {
|
|
4553
|
-
t.length && this.writeMessage(e,
|
|
4553
|
+
t.length && this.writeMessage(e, Gi, t);
|
|
4554
4554
|
},
|
|
4555
4555
|
writePackedDouble: function(e, t) {
|
|
4556
4556
|
t.length && this.writeMessage(e, Ii, t);
|
|
4557
4557
|
},
|
|
4558
4558
|
writePackedFixed32: function(e, t) {
|
|
4559
|
-
t.length && this.writeMessage(e,
|
|
4559
|
+
t.length && this.writeMessage(e, Pi, t);
|
|
4560
4560
|
},
|
|
4561
4561
|
writePackedSFixed32: function(e, t) {
|
|
4562
|
-
t.length && this.writeMessage(e,
|
|
4562
|
+
t.length && this.writeMessage(e, Ui, t);
|
|
4563
4563
|
},
|
|
4564
4564
|
writePackedFixed64: function(e, t) {
|
|
4565
4565
|
t.length && this.writeMessage(e, Ai, t);
|
|
@@ -4633,22 +4633,22 @@ function xn(e, t, n) {
|
|
|
4633
4633
|
function bi(e, t) {
|
|
4634
4634
|
for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
|
|
4635
4635
|
}
|
|
4636
|
-
function
|
|
4636
|
+
function Li(e, t) {
|
|
4637
4637
|
for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
|
|
4638
4638
|
}
|
|
4639
|
-
function
|
|
4639
|
+
function Gi(e, t) {
|
|
4640
4640
|
for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
|
|
4641
4641
|
}
|
|
4642
4642
|
function Ii(e, t) {
|
|
4643
4643
|
for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
|
|
4644
4644
|
}
|
|
4645
|
-
function
|
|
4645
|
+
function Ci(e, t) {
|
|
4646
4646
|
for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
|
|
4647
4647
|
}
|
|
4648
|
-
function
|
|
4648
|
+
function Pi(e, t) {
|
|
4649
4649
|
for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
|
|
4650
4650
|
}
|
|
4651
|
-
function
|
|
4651
|
+
function Ui(e, t) {
|
|
4652
4652
|
for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
|
|
4653
4653
|
}
|
|
4654
4654
|
function Ai(e, t) {
|
|
@@ -4787,7 +4787,7 @@ const $i = { class: "legend" }, Ki = {
|
|
|
4787
4787
|
countryMetrics: Be(() => e.countryMetrics),
|
|
4788
4788
|
metric: Be(() => e.metric),
|
|
4789
4789
|
unit: Be(() => e.metricUnit)
|
|
4790
|
-
}), { formatMetric: m } = Ee.useMetricFormat({ unit: Be(() => e.metricUnit) }), f = De(), d = Jr(), c = De(), y = De(null), w = De({ left: "0px", top: "0px" }), g = De(!1), M =
|
|
4790
|
+
}), { formatMetric: m } = Ee.useMetricFormat({ unit: Be(() => e.metricUnit) }), f = De(), d = Jr(), c = De(), y = De(null), w = De({ left: "0px", top: "0px" }), g = De(!1), M = P(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), T = P(() => ({
|
|
4791
4791
|
"fill-color": [
|
|
4792
4792
|
"match",
|
|
4793
4793
|
[
|
|
@@ -4808,7 +4808,7 @@ const $i = { class: "legend" }, Ki = {
|
|
|
4808
4808
|
// default color if no match
|
|
4809
4809
|
],
|
|
4810
4810
|
"fill-opacity": 0.7
|
|
4811
|
-
})), B =
|
|
4811
|
+
})), B = P(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), A = P(() => e.metric && i.t(`metrics.${e.metric}`) || ""), I = (_) => {
|
|
4812
4812
|
const F = _.flat(1);
|
|
4813
4813
|
return Array.isArray(F[0]) && Array.isArray(F[0][0]) ? I(F) : F;
|
|
4814
4814
|
}, ie = (_) => {
|
|
@@ -4838,20 +4838,20 @@ const $i = { class: "legend" }, Ki = {
|
|
|
4838
4838
|
]);
|
|
4839
4839
|
return;
|
|
4840
4840
|
}
|
|
4841
|
-
const F = (H = y.value) == null ? void 0 : H.features.find((
|
|
4841
|
+
const F = (H = y.value) == null ? void 0 : H.features.find((G) => {
|
|
4842
4842
|
var V, Y, z, v, j;
|
|
4843
|
-
return (V =
|
|
4843
|
+
return (V = G.properties) != null && V.ISO_A2 ? ((Y = G.properties) == null ? void 0 : Y.ISO_A2) === _ : ((z = G.properties) == null ? void 0 : z.iso_a2) === "-99" ? ((v = G.properties) == null ? void 0 : v.iso_a2_eh) === _ : ((j = G.properties) == null ? void 0 : j.iso_a2) === _;
|
|
4844
4844
|
});
|
|
4845
4845
|
if (F) {
|
|
4846
|
-
const
|
|
4847
|
-
if (!
|
|
4848
|
-
const V = I(
|
|
4846
|
+
const G = (te = F.geometry) == null ? void 0 : te.coordinates;
|
|
4847
|
+
if (!G) return;
|
|
4848
|
+
const V = I(G), Y = V.map((W) => W[1]), z = V.map((W) => W[0]), v = Math.min(...Y), j = Math.max(...Y), de = Math.min(...z), O = Math.max(...z);
|
|
4849
4849
|
(ne = c.value) == null || ne.fitBounds([
|
|
4850
4850
|
[de, v],
|
|
4851
4851
|
[O, j]
|
|
4852
4852
|
]);
|
|
4853
4853
|
}
|
|
4854
|
-
}, D =
|
|
4854
|
+
}, D = P(() => {
|
|
4855
4855
|
const _ = {
|
|
4856
4856
|
container: d,
|
|
4857
4857
|
style: { version: 8, sources: {}, layers: [] },
|
|
@@ -4883,7 +4883,7 @@ const $i = { class: "legend" }, Ki = {
|
|
|
4883
4883
|
try {
|
|
4884
4884
|
const k = await n, ee = await fetch(k), K = new Uint8Array(await ee.arrayBuffer()), H = Si(new zi(K));
|
|
4885
4885
|
y.value = H, c.value = new ta(D.value), c.value.on("load", () => {
|
|
4886
|
-
var te, ne,
|
|
4886
|
+
var te, ne, G, V, Y, z, v;
|
|
4887
4887
|
(te = c.value) == null || te.addSource("countries", {
|
|
4888
4888
|
type: "geojson",
|
|
4889
4889
|
data: H
|
|
@@ -4892,7 +4892,7 @@ const $i = { class: "legend" }, Ki = {
|
|
|
4892
4892
|
type: "fill",
|
|
4893
4893
|
source: "countries",
|
|
4894
4894
|
paint: T.value
|
|
4895
|
-
}), (
|
|
4895
|
+
}), (G = c.value) == null || G.addSource("lakes", {
|
|
4896
4896
|
type: "geojson",
|
|
4897
4897
|
data: mi
|
|
4898
4898
|
}), (V = c.value) == null || V.addLayer({
|
|
@@ -4906,7 +4906,7 @@ const $i = { class: "legend" }, Ki = {
|
|
|
4906
4906
|
var O;
|
|
4907
4907
|
const de = (O = j.features) == null ? void 0 : O[0];
|
|
4908
4908
|
if (de) {
|
|
4909
|
-
const { iso_a2: W, iso_a2_eh:
|
|
4909
|
+
const { iso_a2: W, iso_a2_eh: Le, ISO_A2: Je, admin: Xe } = de.properties, Qe = Je ?? W === "-99" ? Le : W, Me = e.countryMetrics[Qe];
|
|
4910
4910
|
Me !== void 0 && (f.value = {
|
|
4911
4911
|
label: Xe,
|
|
4912
4912
|
color: o(Me),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/analytics-geo-map",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.24-pr.2603.c77a00164.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/vitals-geo-map.umd.js",
|
|
6
6
|
"module": "./dist/vitals-geo-map.es.js",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@kong/kongponents": "9.43.2",
|
|
51
51
|
"vue": "^3.5.12",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
52
|
+
"@kong-ui-public/i18n": "^2.4.4",
|
|
53
|
+
"maplibre-gl": "^4.7.1"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@kong/icons": "^1.39.0",
|
|
57
57
|
"geobuf": "^3.0.2",
|
|
58
|
-
"@kong-ui-public/analytics-utilities": "^12.1.
|
|
58
|
+
"@kong-ui-public/analytics-utilities": "^12.1.4-pr.2603.c77a00164.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"dev": "cross-env USE_SANDBOX=true vite",
|