@kong-ui-public/analytics-geo-map 1.4.24-pr.2603.c77a00164.0 → 1.4.24-pr.2686.97d4ee647.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 +104 -104
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as U, 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, P = (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 = Ia(t);
|
|
517
517
|
return "formatToParts" in n ? Oa(n, e) : ba(n, e);
|
|
518
518
|
}
|
|
519
519
|
const Ra = {
|
|
@@ -559,7 +559,7 @@ const ht = {}, on = new Intl.DateTimeFormat("en-US", {
|
|
|
559
559
|
minute: "2-digit",
|
|
560
560
|
second: "2-digit"
|
|
561
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
|
|
562
|
+
function Ia(e) {
|
|
563
563
|
return ht[e] || (ht[e] = La ? new Intl.DateTimeFormat("en-US", {
|
|
564
564
|
hourCycle: "h23",
|
|
565
565
|
timeZone: e,
|
|
@@ -584,7 +584,7 @@ function kt(e, t, n, a, i, o, l) {
|
|
|
584
584
|
const m = /* @__PURE__ */ new Date(0);
|
|
585
585
|
return m.setUTCFullYear(e, t, n), m.setUTCHours(a, i, o, l), m;
|
|
586
586
|
}
|
|
587
|
-
const sn = 36e5,
|
|
587
|
+
const sn = 36e5, Ga = 6e4, yt = {
|
|
588
588
|
timezoneZ: /^(Z)$/,
|
|
589
589
|
timezoneHH: /^([+-]\d{2})$/,
|
|
590
590
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -601,16 +601,16 @@ function Ze(e, t, n) {
|
|
|
601
601
|
if (a = yt.timezoneHHMM.exec(e), a) {
|
|
602
602
|
i = parseInt(a[2], 10);
|
|
603
603
|
const l = parseInt(a[3], 10);
|
|
604
|
-
return ln(i, l) ? (o = Math.abs(i) * sn + l *
|
|
604
|
+
return ln(i, l) ? (o = Math.abs(i) * sn + l * Ga, a[1] === "+" ? -o : o) : NaN;
|
|
605
605
|
}
|
|
606
|
-
if (
|
|
606
|
+
if (Ca(e)) {
|
|
607
607
|
t = new Date(t || Date.now());
|
|
608
|
-
const l = n ? t :
|
|
609
|
-
return -(n ? m :
|
|
608
|
+
const l = n ? t : Pa(t), m = Mt(l, e);
|
|
609
|
+
return -(n ? m : Ua(t, m, e));
|
|
610
610
|
}
|
|
611
611
|
return NaN;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Pa(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 Ua(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 Ca(e) {
|
|
636
636
|
if (un[e])
|
|
637
637
|
return !0;
|
|
638
638
|
try {
|
|
@@ -840,8 +840,8 @@ 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]",
|
|
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[
|
|
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]", G = "[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]", I = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, v = {};
|
|
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[G] = v[ie] = v[K] = v[H] = v[te] = v[ne] = !0, v[d] = v[c] = v[D] = !1;
|
|
845
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;
|
|
@@ -864,15 +864,15 @@ je.exports;
|
|
|
864
864
|
u = s(u, r[N], N, r);
|
|
865
865
|
return u;
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function In(r, s) {
|
|
868
868
|
for (var u = -1, p = Array(r); ++u < r; )
|
|
869
869
|
p[u] = s(u);
|
|
870
870
|
return p;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Gn(r, s) {
|
|
873
873
|
return r == null ? void 0 : r[s];
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function It(r) {
|
|
876
876
|
var s = !1;
|
|
877
877
|
if (r != null && typeof r.toString != "function")
|
|
878
878
|
try {
|
|
@@ -881,7 +881,7 @@ je.exports;
|
|
|
881
881
|
}
|
|
882
882
|
return s;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Gt(r) {
|
|
885
885
|
var s = -1, u = Array(r.size);
|
|
886
886
|
return r.forEach(function(p, N) {
|
|
887
887
|
u[++s] = [N, p];
|
|
@@ -892,18 +892,18 @@ je.exports;
|
|
|
892
892
|
return r(s(u));
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Pt(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 Pn = Array.prototype, Un = Function.prototype, Ie = Object.prototype, tt = O["__core-js_shared__"], Ut = 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
|
+
}(), Ct = Un.toString, re = Ie.hasOwnProperty, Ge = Ie.toString, Cn = RegExp(
|
|
905
|
+
"^" + Ct.call(re).replace(I, "\\$&").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 = Ie.propertyIsEnumerable, Vn = Pn.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 = Pe(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 = Pe(s, r);
|
|
956
956
|
return u < 0 ? void 0 : s[u][1];
|
|
957
957
|
}
|
|
958
958
|
function ar(r) {
|
|
959
|
-
return
|
|
959
|
+
return Pe(this.__data__, r) > -1;
|
|
960
960
|
}
|
|
961
961
|
function ir(r, s) {
|
|
962
|
-
var u = this.__data__, p =
|
|
962
|
+
var u = this.__data__, p = Pe(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 Ue(this, r).delete(r);
|
|
982
982
|
}
|
|
983
983
|
function lr(r) {
|
|
984
|
-
return
|
|
984
|
+
return Ue(this, r).get(r);
|
|
985
985
|
}
|
|
986
986
|
function ur(r) {
|
|
987
|
-
return
|
|
987
|
+
return Ue(this, r).has(r);
|
|
988
988
|
}
|
|
989
989
|
function cr(r, s) {
|
|
990
|
-
return
|
|
990
|
+
return Ue(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) ? In(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" || Pr(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 Pe(r, s) {
|
|
1030
1030
|
for (var u = r.length; u--; )
|
|
1031
1031
|
if (Zt(r[u][0], s))
|
|
1032
1032
|
return u;
|
|
@@ -1039,7 +1039,7 @@ je.exports;
|
|
|
1039
1039
|
var L;
|
|
1040
1040
|
if (p && (L = b ? p(r, N, b, q) : p(r)), L !== void 0)
|
|
1041
1041
|
return L;
|
|
1042
|
-
if (!
|
|
1042
|
+
if (!Ce(r))
|
|
1043
1043
|
return r;
|
|
1044
1044
|
var Xt = lt(r);
|
|
1045
1045
|
if (Xt) {
|
|
@@ -1050,14 +1050,14 @@ je.exports;
|
|
|
1050
1050
|
if (Vr(r))
|
|
1051
1051
|
return Mr(r, s);
|
|
1052
1052
|
if (he == M || he == o || Qt && !b) {
|
|
1053
|
-
if (
|
|
1053
|
+
if (It(r))
|
|
1054
1054
|
return b ? r : {};
|
|
1055
|
-
if (L =
|
|
1055
|
+
if (L = Ir(Qt ? {} : r), !s)
|
|
1056
1056
|
return Or(r, _r(L, r));
|
|
1057
1057
|
} else {
|
|
1058
1058
|
if (!v[he])
|
|
1059
1059
|
return b ? r : {};
|
|
1060
|
-
L =
|
|
1060
|
+
L = Gr(r, he, ot, s);
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
q || (q = new fe());
|
|
@@ -1071,19 +1071,19 @@ je.exports;
|
|
|
1071
1071
|
}), L;
|
|
1072
1072
|
}
|
|
1073
1073
|
function gr(r) {
|
|
1074
|
-
return
|
|
1074
|
+
return Ce(r) ? Bn(r) : {};
|
|
1075
1075
|
}
|
|
1076
1076
|
function wr(r, s, u) {
|
|
1077
1077
|
var p = s(r);
|
|
1078
1078
|
return lt(r) ? p : Ln(p, u(r));
|
|
1079
1079
|
}
|
|
1080
1080
|
function vr(r) {
|
|
1081
|
-
return
|
|
1081
|
+
return Ge.call(r);
|
|
1082
1082
|
}
|
|
1083
1083
|
function xr(r) {
|
|
1084
|
-
if (!
|
|
1084
|
+
if (!Ce(r) || Cr(r))
|
|
1085
1085
|
return !1;
|
|
1086
|
-
var s = Jt(r) ||
|
|
1086
|
+
var s = Jt(r) || It(r) ? Cn : Y;
|
|
1087
1087
|
return s.test(le(r));
|
|
1088
1088
|
}
|
|
1089
1089
|
function Fr(r) {
|
|
@@ -1109,7 +1109,7 @@ je.exports;
|
|
|
1109
1109
|
return new r.constructor(u, r.byteOffset, r.byteLength);
|
|
1110
1110
|
}
|
|
1111
1111
|
function Sr(r, s, u) {
|
|
1112
|
-
var p = s ? u(
|
|
1112
|
+
var p = s ? u(Gt(r), !0) : Gt(r);
|
|
1113
1113
|
return Lt(p, Xe, new r.constructor());
|
|
1114
1114
|
}
|
|
1115
1115
|
function Dr(r) {
|
|
@@ -1117,7 +1117,7 @@ je.exports;
|
|
|
1117
1117
|
return s.lastIndex = r.lastIndex, s;
|
|
1118
1118
|
}
|
|
1119
1119
|
function Nr(r, s, u) {
|
|
1120
|
-
var p = s ? u(
|
|
1120
|
+
var p = s ? u(Pt(r), !0) : Pt(r);
|
|
1121
1121
|
return Lt(p, Qe, new r.constructor());
|
|
1122
1122
|
}
|
|
1123
1123
|
function kr(r) {
|
|
@@ -1147,17 +1147,17 @@ je.exports;
|
|
|
1147
1147
|
function br(r) {
|
|
1148
1148
|
return wr(r, ut, Kt);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Ue(r, s) {
|
|
1151
1151
|
var u = r.__data__;
|
|
1152
|
-
return
|
|
1152
|
+
return Ur(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
|
|
1153
1153
|
}
|
|
1154
1154
|
function pe(r, s) {
|
|
1155
|
-
var u =
|
|
1155
|
+
var u = Gn(r, s);
|
|
1156
1156
|
return xr(u) ? u : void 0;
|
|
1157
1157
|
}
|
|
1158
1158
|
var Kt = Vt ? et(Vt, Object) : jr, se = vr;
|
|
1159
1159
|
(nt && se(new nt(new ArrayBuffer(1))) != ce || Te && se(new Te()) != w || rt && se(rt.resolve()) != T || at && se(new at()) != A || it && se(new it()) != D) && (se = function(r) {
|
|
1160
|
-
var s =
|
|
1160
|
+
var s = Ge.call(r), u = s == M ? r.constructor : void 0, p = u ? le(u) : void 0;
|
|
1161
1161
|
if (p)
|
|
1162
1162
|
switch (p) {
|
|
1163
1163
|
case jn:
|
|
@@ -1177,10 +1177,10 @@ je.exports;
|
|
|
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 Ir(r) {
|
|
1181
1181
|
return typeof r.constructor == "function" && !Wt(r) ? gr(An(r)) : {};
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function Gr(r, s, u, p) {
|
|
1184
1184
|
var N = r.constructor;
|
|
1185
1185
|
switch (s) {
|
|
1186
1186
|
case Fe:
|
|
@@ -1203,7 +1203,7 @@ je.exports;
|
|
|
1203
1203
|
case w:
|
|
1204
1204
|
return Sr(r, p, u);
|
|
1205
1205
|
case g:
|
|
1206
|
-
case
|
|
1206
|
+
case G:
|
|
1207
1207
|
return new N(r);
|
|
1208
1208
|
case B:
|
|
1209
1209
|
return Dr(r);
|
|
@@ -1213,24 +1213,24 @@ je.exports;
|
|
|
1213
1213
|
return kr(r);
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function Pr(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 Ur(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 Cr(r) {
|
|
1224
|
+
return !!Ut && Ut 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 || Ie;
|
|
1228
1228
|
return r === u;
|
|
1229
1229
|
}
|
|
1230
1230
|
function le(r) {
|
|
1231
1231
|
if (r != null) {
|
|
1232
1232
|
try {
|
|
1233
|
-
return
|
|
1233
|
+
return Ct.call(r);
|
|
1234
1234
|
} catch {
|
|
1235
1235
|
}
|
|
1236
1236
|
try {
|
|
@@ -1247,7 +1247,7 @@ je.exports;
|
|
|
1247
1247
|
return r === s || r !== r && s !== s;
|
|
1248
1248
|
}
|
|
1249
1249
|
function Br(r) {
|
|
1250
|
-
return Hr(r) && re.call(r, "callee") && (!Hn.call(r, "callee") ||
|
|
1250
|
+
return Hr(r) && re.call(r, "callee") && (!Hn.call(r, "callee") || Ge.call(r) == o);
|
|
1251
1251
|
}
|
|
1252
1252
|
var lt = Array.isArray;
|
|
1253
1253
|
function qt(r) {
|
|
@@ -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 = Ce(r) ? Ge.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 Ce(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
|
+
P(this, "timeframeText"), P(this, "key"), P(this, "display"), P(this, "timeframeLength"), P(this, "allowedTiers"), P(this, "defaultResponseGranularity"), P(this, "dataGranularity"), P(this, "isRelative"), P(this, "fineGrainedDefaultGranularity"), P(this, "_startCustom"), P(this, "_endCustom"), P(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 = U(() => {
|
|
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 = U(() => Object.values(o.value)), m = U(() => Object.keys(o.value).length), f = U(() => m.value < _n - 1 ? m.value : _n), d = U(() => {
|
|
1726
1726
|
var g;
|
|
1727
1727
|
return !((g = t.value) != null && g.includes("latency"));
|
|
1728
|
-
}), c =
|
|
1728
|
+
}), c = U(() => {
|
|
1729
1729
|
const g = [];
|
|
1730
1730
|
if (l.value.length > 10) {
|
|
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),
|
|
1732
|
-
return g.push(...
|
|
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), G = Ft(B, 3), ie = Ft(A, 2);
|
|
1732
|
+
return g.push(...G, ...ie), g;
|
|
1733
1733
|
}
|
|
1734
1734
|
return Ft(l.value, f.value);
|
|
1735
|
-
}), y =
|
|
1735
|
+
}), y = U(() => l.value.length === 1 ? [{
|
|
1736
1736
|
color: w(l.value[0]),
|
|
1737
1737
|
range: a(l.value[0], {
|
|
1738
1738
|
approximate: d.value,
|
|
@@ -1740,19 +1740,19 @@ function li({
|
|
|
1740
1740
|
}).trim()
|
|
1741
1741
|
}] : c.value.map((g, M) => {
|
|
1742
1742
|
const T = M === 0 ? Math.max(...c.value) : c.value[M - 1], B = g, A = T;
|
|
1743
|
-
let
|
|
1744
|
-
return M === 0 ?
|
|
1743
|
+
let G = "";
|
|
1744
|
+
return M === 0 ? G = `> ${a(B, {
|
|
1745
1745
|
showUnit: !n.value.includes("count"),
|
|
1746
1746
|
approximate: d.value
|
|
1747
|
-
})}`.trim() : M === c.value.length - 1 ?
|
|
1747
|
+
})}`.trim() : M === c.value.length - 1 ? G = `< ${a(A, {
|
|
1748
1748
|
showUnit: !n.value.includes("count"),
|
|
1749
1749
|
approximate: d.value
|
|
1750
|
-
})}`.trim() :
|
|
1750
|
+
})}`.trim() : G = i(B, A, {
|
|
1751
1751
|
showUnit: !n.value.includes("count"),
|
|
1752
1752
|
approximate: d.value
|
|
1753
1753
|
}).trim(), {
|
|
1754
1754
|
color: w(B),
|
|
1755
|
-
range:
|
|
1755
|
+
range: G
|
|
1756
1756
|
};
|
|
1757
1757
|
})), w = (g) => {
|
|
1758
1758
|
if (g === 0)
|
|
@@ -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, C, Ke, qe, hi = [
|
|
4234
4234
|
"Point",
|
|
4235
4235
|
"MultiPoint",
|
|
4236
4236
|
"LineString",
|
|
@@ -4240,7 +4240,7 @@ var pi = yi, $e, ve, U, 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), C = 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 ? C = 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 (!C) return [Oe(e, n, null, t)];
|
|
4304
|
+
for (var a = [], i = 0; i < C.length; i++) a.push(Oe(e, n, C[i], t));
|
|
4305
|
+
return C = 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 (!C) return [[Oe(e, t, null, !0)]];
|
|
4310
|
+
for (var n = [], a = 1, i = 0; i < C[0]; i++) {
|
|
4311
|
+
for (var o = [], l = 0; l < C[a]; l++) o.push(Oe(e, t, C[a + 1 + l], !0));
|
|
4312
|
+
a += C[a] + 1, n.push(o);
|
|
4313
4313
|
}
|
|
4314
|
-
return
|
|
4314
|
+
return C = null, n;
|
|
4315
4315
|
}
|
|
4316
4316
|
var Si = pi, Ot = {};
|
|
4317
4317
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -4547,19 +4547,19 @@ x.prototype = {
|
|
|
4547
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, Pi, t);
|
|
4551
4551
|
},
|
|
4552
4552
|
writePackedFloat: function(e, t) {
|
|
4553
|
-
t.length && this.writeMessage(e,
|
|
4553
|
+
t.length && this.writeMessage(e, Ii, t);
|
|
4554
4554
|
},
|
|
4555
4555
|
writePackedDouble: function(e, t) {
|
|
4556
|
-
t.length && this.writeMessage(e,
|
|
4556
|
+
t.length && this.writeMessage(e, Gi, t);
|
|
4557
4557
|
},
|
|
4558
4558
|
writePackedFixed32: function(e, t) {
|
|
4559
|
-
t.length && this.writeMessage(e,
|
|
4559
|
+
t.length && this.writeMessage(e, Ui, t);
|
|
4560
4560
|
},
|
|
4561
4561
|
writePackedSFixed32: function(e, t) {
|
|
4562
|
-
t.length && this.writeMessage(e,
|
|
4562
|
+
t.length && this.writeMessage(e, Ci, t);
|
|
4563
4563
|
},
|
|
4564
4564
|
writePackedFixed64: function(e, t) {
|
|
4565
4565
|
t.length && this.writeMessage(e, Ai, t);
|
|
@@ -4636,19 +4636,19 @@ function bi(e, t) {
|
|
|
4636
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 Ii(e, t) {
|
|
4640
4640
|
for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
|
|
4641
4641
|
}
|
|
4642
|
-
function
|
|
4642
|
+
function Gi(e, t) {
|
|
4643
4643
|
for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
|
|
4644
4644
|
}
|
|
4645
|
-
function
|
|
4645
|
+
function Pi(e, t) {
|
|
4646
4646
|
for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
|
|
4647
4647
|
}
|
|
4648
|
-
function
|
|
4648
|
+
function Ui(e, t) {
|
|
4649
4649
|
for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
|
|
4650
4650
|
}
|
|
4651
|
-
function
|
|
4651
|
+
function Ci(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 = U(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), T = U(() => ({
|
|
4791
4791
|
"fill-color": [
|
|
4792
4792
|
"match",
|
|
4793
4793
|
[
|
|
@@ -4808,9 +4808,9 @@ const $i = { class: "legend" }, Ki = {
|
|
|
4808
4808
|
// default color if no match
|
|
4809
4809
|
],
|
|
4810
4810
|
"fill-opacity": 0.7
|
|
4811
|
-
})), B =
|
|
4811
|
+
})), B = U(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), A = U(() => e.metric && i.t(`metrics.${e.metric}`) || ""), G = (_) => {
|
|
4812
4812
|
const F = _.flat(1);
|
|
4813
|
-
return Array.isArray(F[0]) && Array.isArray(F[0][0]) ?
|
|
4813
|
+
return Array.isArray(F[0]) && Array.isArray(F[0][0]) ? G(F) : F;
|
|
4814
4814
|
}, ie = (_) => {
|
|
4815
4815
|
var S, k, ee, K, H, te, ne;
|
|
4816
4816
|
if (_ === "RU") {
|
|
@@ -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((I) => {
|
|
4842
4842
|
var V, Y, z, v, j;
|
|
4843
|
-
return (V =
|
|
4843
|
+
return (V = I.properties) != null && V.ISO_A2 ? ((Y = I.properties) == null ? void 0 : Y.ISO_A2) === _ : ((z = I.properties) == null ? void 0 : z.iso_a2) === "-99" ? ((v = I.properties) == null ? void 0 : v.iso_a2_eh) === _ : ((j = I.properties) == null ? void 0 : j.iso_a2) === _;
|
|
4844
4844
|
});
|
|
4845
4845
|
if (F) {
|
|
4846
|
-
const
|
|
4847
|
-
if (!
|
|
4848
|
-
const V = I
|
|
4846
|
+
const I = (te = F.geometry) == null ? void 0 : te.coordinates;
|
|
4847
|
+
if (!I) return;
|
|
4848
|
+
const V = G(I), 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 = U(() => {
|
|
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, I, 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
|
+
}), (I = c.value) == null || I.addSource("lakes", {
|
|
4896
4896
|
type: "geojson",
|
|
4897
4897
|
data: mi
|
|
4898
4898
|
}), (V = c.value) == null || V.addLayer({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/analytics-geo-map",
|
|
3
|
-
"version": "1.4.24-pr.
|
|
3
|
+
"version": "1.4.24-pr.2686.97d4ee647.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/vitals-geo-map.umd.js",
|
|
6
6
|
"module": "./dist/vitals-geo-map.es.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@kong/icons": "^1.39.0",
|
|
57
57
|
"geobuf": "^3.0.2",
|
|
58
|
-
"@kong-ui-public/analytics-utilities": "^12.1.4-pr.
|
|
58
|
+
"@kong-ui-public/analytics-utilities": "^12.1.4-pr.2686.97d4ee647.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"dev": "cross-env USE_SANDBOX=true vite",
|