@kong-ui-public/analytics-geo-map 1.5.38 → 1.5.39
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 +208 -208
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as A, defineComponent as Et, openBlock as K, createElementBlock as ae, toDisplayString as xe, createCommentVNode as Re, Fragment as ra, renderList as aa, createElementVNode as X, normalizeStyle as ia, useCssVars as oa, toRef as ze, ref as Ne, useId as sa, onMounted as la, watch as _t, renderSlot as gt, createVNode as ua, unref as ue, createTextVNode as ca, createBlock as on } from "vue";
|
|
2
2
|
import { Map as da } from "maplibre-gl";
|
|
3
3
|
import { createI18n as ma, i18nTComponent as fa } from "@kong-ui-public/i18n";
|
|
4
4
|
import { AnalyticsIcon as pa } from "@kong/icons";
|
|
@@ -53,8 +53,8 @@ function xa() {
|
|
|
53
53
|
// Translation component <i18n-t>
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
var Ta = Object.defineProperty, Fa = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
57
|
-
const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) => e.filter((t) => t !== "time"),
|
|
56
|
+
var Ta = Object.defineProperty, Fa = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, U = (e, t, n) => Fa(e, typeof t != "symbol" ? t + "" : t, n), f = /* @__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))(f || {});
|
|
57
|
+
const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) => e.filter((t) => t !== "time"), Rn = [
|
|
58
58
|
"api",
|
|
59
59
|
"api_package",
|
|
60
60
|
"api_product",
|
|
@@ -68,14 +68,14 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) =
|
|
|
68
68
|
"status_code",
|
|
69
69
|
"status_code_grouped",
|
|
70
70
|
"time"
|
|
71
|
-
], bn = Fe(
|
|
71
|
+
], bn = Fe(Rn), Da = [
|
|
72
72
|
"active_services",
|
|
73
73
|
"error_rate",
|
|
74
74
|
"request_count",
|
|
75
75
|
"request_per_minute",
|
|
76
76
|
"response_latency_average"
|
|
77
77
|
], On = [
|
|
78
|
-
...
|
|
78
|
+
...Rn,
|
|
79
79
|
"application",
|
|
80
80
|
"bot_info_action",
|
|
81
81
|
"bot_info_detection_reason",
|
|
@@ -89,7 +89,7 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) =
|
|
|
89
89
|
"realm",
|
|
90
90
|
"portal_api",
|
|
91
91
|
"principal"
|
|
92
|
-
],
|
|
92
|
+
], Ln = Fe(On), ka = [
|
|
93
93
|
...Da,
|
|
94
94
|
"response_latency_p99",
|
|
95
95
|
"response_latency_p95",
|
|
@@ -135,7 +135,7 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) =
|
|
|
135
135
|
"status_code_grouped",
|
|
136
136
|
"ai_plugin",
|
|
137
137
|
"principal"
|
|
138
|
-
],
|
|
138
|
+
], Gn = Fe(Na), Ea = [
|
|
139
139
|
"a2a_context_id",
|
|
140
140
|
"a2a_error",
|
|
141
141
|
"a2a_method",
|
|
@@ -185,8 +185,8 @@ const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], Fe = (e) =
|
|
|
185
185
|
"upstream_status_code_grouped",
|
|
186
186
|
"websocket"
|
|
187
187
|
];
|
|
188
|
-
Fe(
|
|
189
|
-
const
|
|
188
|
+
Fe(Ea);
|
|
189
|
+
const Ra = [
|
|
190
190
|
"ai_count",
|
|
191
191
|
"latencies_response_ms",
|
|
192
192
|
"latencies_upstream_ms",
|
|
@@ -198,7 +198,7 @@ const Ea = [
|
|
|
198
198
|
"status_code",
|
|
199
199
|
"upstream_status_code"
|
|
200
200
|
];
|
|
201
|
-
Fe(
|
|
201
|
+
Fe(Ra);
|
|
202
202
|
const ba = [
|
|
203
203
|
...On,
|
|
204
204
|
"a2a_context_id",
|
|
@@ -209,12 +209,12 @@ const ba = [
|
|
|
209
209
|
"mcp_method",
|
|
210
210
|
"mcp_session_id",
|
|
211
211
|
"mcp_tool_name"
|
|
212
|
-
],
|
|
212
|
+
], In = Fe(ba);
|
|
213
213
|
[
|
|
214
214
|
...ka
|
|
215
215
|
];
|
|
216
|
-
new Set(bn), new Set(
|
|
217
|
-
const
|
|
216
|
+
new Set(bn), new Set(Ln), new Set(Gn), new Set(In);
|
|
217
|
+
const Rt = [
|
|
218
218
|
{ code: "AF", name: "Afghanistan" },
|
|
219
219
|
{ code: "AX", name: "Aland Islands" },
|
|
220
220
|
{ code: "AL", name: "Albania" },
|
|
@@ -462,7 +462,7 @@ const Et = [
|
|
|
462
462
|
{ code: "ZM", name: "Zambia" },
|
|
463
463
|
{ code: "ZW", name: "Zimbabwe" }
|
|
464
464
|
];
|
|
465
|
-
|
|
465
|
+
Rt.map((e) => e.code);
|
|
466
466
|
const Oa = (e) => ({
|
|
467
467
|
type: "array",
|
|
468
468
|
description: "A list of filters to apply to the query",
|
|
@@ -518,42 +518,42 @@ const Oa = (e) => ({
|
|
|
518
518
|
});
|
|
519
519
|
Oa([
|
|
520
520
|
.../* @__PURE__ */ new Set([
|
|
521
|
-
...Gn,
|
|
522
|
-
...bn,
|
|
523
521
|
...Ln,
|
|
524
|
-
...
|
|
522
|
+
...bn,
|
|
523
|
+
...Gn,
|
|
524
|
+
...In
|
|
525
525
|
])
|
|
526
526
|
]);
|
|
527
|
-
let
|
|
528
|
-
function
|
|
529
|
-
return
|
|
527
|
+
let La = {};
|
|
528
|
+
function Ga() {
|
|
529
|
+
return La;
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
function
|
|
531
|
+
const Ia = 60, Ua = 3600, sn = Symbol.for("constructDateFrom");
|
|
532
|
+
function Le(e, t) {
|
|
533
533
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && sn in e ? e[sn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
534
534
|
}
|
|
535
535
|
function ce(e, t) {
|
|
536
|
-
return
|
|
536
|
+
return Le(t || e, e);
|
|
537
537
|
}
|
|
538
538
|
function Ve(e, t) {
|
|
539
539
|
const n = ce(e, void 0);
|
|
540
540
|
return n.setHours(0, 0, 0, 0), n;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Ze(e, t) {
|
|
543
543
|
var n, a, i, o;
|
|
544
|
-
const l =
|
|
544
|
+
const l = Ga(), d = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? l.weekStartsOn ?? ((o = (i = l.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, m = ce(e, t == null ? void 0 : t.in), y = m.getDay(), c = (y < d ? 7 : 0) + y - d;
|
|
545
545
|
return m.setDate(m.getDate() - c), m.setHours(0, 0, 0, 0), m;
|
|
546
546
|
}
|
|
547
547
|
function Ye(e, t, n) {
|
|
548
548
|
const a = ce(e, void 0);
|
|
549
|
-
return isNaN(t) ?
|
|
549
|
+
return isNaN(t) ? Le(e, NaN) : (a.setDate(a.getDate() + t), a);
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function Un(e, t, n) {
|
|
552
552
|
const a = ce(e, void 0);
|
|
553
|
-
if (isNaN(t)) return
|
|
553
|
+
if (isNaN(t)) return Le(e, NaN);
|
|
554
554
|
if (!t)
|
|
555
555
|
return a;
|
|
556
|
-
const i = a.getDate(), o =
|
|
556
|
+
const i = a.getDate(), o = Le(e, a.getTime());
|
|
557
557
|
o.setMonth(a.getMonth() + t + 1, 0);
|
|
558
558
|
const l = o.getDate();
|
|
559
559
|
return i >= l ? o : (a.setFullYear(
|
|
@@ -562,8 +562,8 @@ function An(e, t, n) {
|
|
|
562
562
|
i
|
|
563
563
|
), a);
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
return
|
|
565
|
+
function Aa(e, t, n) {
|
|
566
|
+
return Un(e, t * 3);
|
|
567
567
|
}
|
|
568
568
|
function we(e, t) {
|
|
569
569
|
const n = ce(e, void 0), a = n.getMonth(), i = a - a % 3;
|
|
@@ -574,21 +574,21 @@ function ve(e, t) {
|
|
|
574
574
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
575
575
|
}
|
|
576
576
|
function Pa(e, t) {
|
|
577
|
-
const n = ce(e, void 0), a = n.getFullYear(), i = n.getMonth(), o =
|
|
577
|
+
const n = ce(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = Le(n, 0);
|
|
578
578
|
return o.setFullYear(a, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
579
579
|
}
|
|
580
580
|
function ln(e) {
|
|
581
|
-
return Math.trunc(e *
|
|
581
|
+
return Math.trunc(e * Ua);
|
|
582
582
|
}
|
|
583
583
|
function Ca(e) {
|
|
584
|
-
const t = e /
|
|
584
|
+
const t = e / Ia;
|
|
585
585
|
return Math.trunc(t);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return
|
|
587
|
+
function An(e, t, n) {
|
|
588
|
+
return Un(e, -1);
|
|
589
589
|
}
|
|
590
590
|
function Pn(e, t, n) {
|
|
591
|
-
return
|
|
591
|
+
return Aa(e, -1);
|
|
592
592
|
}
|
|
593
593
|
function Ba(e, t) {
|
|
594
594
|
const n = ja(t);
|
|
@@ -681,7 +681,7 @@ function tt(e, t, n) {
|
|
|
681
681
|
const l = parseInt(a[3], 10);
|
|
682
682
|
return dn(i, l) ? (o = Math.abs(i) * cn + l * $a, a[1] === "+" ? -o : o) : NaN;
|
|
683
683
|
}
|
|
684
|
-
if (
|
|
684
|
+
if (qa(e)) {
|
|
685
685
|
t = new Date(t || Date.now());
|
|
686
686
|
const l = n ? t : Ka(t), d = Dt(l, e);
|
|
687
687
|
return -(n ? d : Wa(t, d, e));
|
|
@@ -710,7 +710,7 @@ function dn(e, t) {
|
|
|
710
710
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
711
711
|
}
|
|
712
712
|
const mn = {};
|
|
713
|
-
function
|
|
713
|
+
function qa(e) {
|
|
714
714
|
if (mn[e])
|
|
715
715
|
return !0;
|
|
716
716
|
try {
|
|
@@ -723,7 +723,7 @@ function fn(e) {
|
|
|
723
723
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
724
724
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
725
725
|
}
|
|
726
|
-
const Cn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, xt = 36e5, pn = 6e4,
|
|
726
|
+
const Cn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, xt = 36e5, pn = 6e4, Za = 2, R = {
|
|
727
727
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
728
728
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
729
729
|
// year tokens
|
|
@@ -762,7 +762,7 @@ function kt(e, t = {}) {
|
|
|
762
762
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
763
763
|
if (e === null)
|
|
764
764
|
return /* @__PURE__ */ new Date(NaN);
|
|
765
|
-
const n = t.additionalDigits == null ?
|
|
765
|
+
const n = t.additionalDigits == null ? Za : Number(t.additionalDigits);
|
|
766
766
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
767
767
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
768
768
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -790,17 +790,17 @@ function kt(e, t = {}) {
|
|
|
790
790
|
}
|
|
791
791
|
function Qa(e) {
|
|
792
792
|
const t = {};
|
|
793
|
-
let n =
|
|
794
|
-
if (n ? (t.date = n[1], a = n[3]) : (n =
|
|
795
|
-
const i =
|
|
793
|
+
let n = R.dateTimePattern.exec(e), a;
|
|
794
|
+
if (n ? (t.date = n[1], a = n[3]) : (n = R.datePattern.exec(e), n ? (t.date = n[1], a = n[2]) : (t.date = null, a = e)), a) {
|
|
795
|
+
const i = R.timeZone.exec(a);
|
|
796
796
|
i ? (t.time = a.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = a;
|
|
797
797
|
}
|
|
798
798
|
return t;
|
|
799
799
|
}
|
|
800
800
|
function Ja(e, t) {
|
|
801
801
|
if (e) {
|
|
802
|
-
const n =
|
|
803
|
-
let i =
|
|
802
|
+
const n = R.YYY[t], a = R.YYYYY[t];
|
|
803
|
+
let i = R.YYYY.exec(e) || a.exec(e);
|
|
804
804
|
if (i) {
|
|
805
805
|
const o = i[1];
|
|
806
806
|
return {
|
|
@@ -808,7 +808,7 @@ function Ja(e, t) {
|
|
|
808
808
|
restDateString: e.slice(o.length)
|
|
809
809
|
};
|
|
810
810
|
}
|
|
811
|
-
if (i =
|
|
811
|
+
if (i = R.YY.exec(e) || n.exec(e), i) {
|
|
812
812
|
const o = i[1];
|
|
813
813
|
return {
|
|
814
814
|
year: parseInt(o, 10) * 100,
|
|
@@ -826,22 +826,22 @@ function Xa(e, t) {
|
|
|
826
826
|
let n, a, i;
|
|
827
827
|
if (!e || !e.length)
|
|
828
828
|
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
829
|
-
let o =
|
|
829
|
+
let o = R.MM.exec(e);
|
|
830
830
|
if (o)
|
|
831
831
|
return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1, hn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
|
|
832
|
-
if (o =
|
|
832
|
+
if (o = R.DDD.exec(e), o) {
|
|
833
833
|
n = /* @__PURE__ */ new Date(0);
|
|
834
834
|
const l = parseInt(o[1], 10);
|
|
835
835
|
return ri(t, l) ? (n.setUTCFullYear(t, 0, l), n) : /* @__PURE__ */ new Date(NaN);
|
|
836
836
|
}
|
|
837
|
-
if (o =
|
|
837
|
+
if (o = R.MMDD.exec(e), o) {
|
|
838
838
|
n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1;
|
|
839
839
|
const l = parseInt(o[2], 10);
|
|
840
840
|
return hn(t, a, l) ? (n.setUTCFullYear(t, a, l), n) : /* @__PURE__ */ new Date(NaN);
|
|
841
841
|
}
|
|
842
|
-
if (o =
|
|
842
|
+
if (o = R.Www.exec(e), o)
|
|
843
843
|
return i = parseInt(o[1], 10) - 1, _n(i) ? yn(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
844
|
-
if (o =
|
|
844
|
+
if (o = R.WwwD.exec(e), o) {
|
|
845
845
|
i = parseInt(o[1], 10) - 1;
|
|
846
846
|
const l = parseInt(o[2], 10) - 1;
|
|
847
847
|
return _n(i, l) ? yn(t, i, l) : /* @__PURE__ */ new Date(NaN);
|
|
@@ -849,12 +849,12 @@ function Xa(e, t) {
|
|
|
849
849
|
return null;
|
|
850
850
|
}
|
|
851
851
|
function ei(e) {
|
|
852
|
-
let t, n, a =
|
|
852
|
+
let t, n, a = R.HH.exec(e);
|
|
853
853
|
if (a)
|
|
854
854
|
return t = parseFloat(a[1].replace(",", ".")), Tt(t) ? t % 24 * xt : NaN;
|
|
855
|
-
if (a =
|
|
855
|
+
if (a = R.HHMM.exec(e), a)
|
|
856
856
|
return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), Tt(t, n) ? t % 24 * xt + n * pn : NaN;
|
|
857
|
-
if (a =
|
|
857
|
+
if (a = R.HHMMSS.exec(e), a) {
|
|
858
858
|
t = parseInt(a[1], 10), n = parseInt(a[2], 10);
|
|
859
859
|
const i = parseFloat(a[3].replace(",", "."));
|
|
860
860
|
return Tt(t, n, i) ? t % 24 * xt + n * pn + i * 1e3 : NaN;
|
|
@@ -914,9 +914,9 @@ function oi(e, t) {
|
|
|
914
914
|
var je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Qe = { exports: {} };
|
|
915
915
|
Qe.exports;
|
|
916
916
|
(function(e, t) {
|
|
917
|
-
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", m = "[object Date]", y = "[object Error]", c = "[object Function]", x = "[object GeneratorFunction]", F = "[object Map]", g = "[object Number]", T = "[object Object]", N = "[object Promise]", H = "[object RegExp]", B = "[object Set]",
|
|
918
|
-
_[o] = _[l] = _[Me] = _[de] = _[d] = _[m] = _[h] = _[v] = _[M] = _[
|
|
919
|
-
var $ = typeof je == "object" && je && je.Object === Object && je, me = typeof self == "object" && self && self.Object === Object && self, b = $ || me || Function("return this")(),
|
|
917
|
+
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", m = "[object Date]", y = "[object Error]", c = "[object Function]", x = "[object GeneratorFunction]", F = "[object Map]", g = "[object Number]", T = "[object Object]", N = "[object Promise]", H = "[object RegExp]", B = "[object Set]", I = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Me = "[object ArrayBuffer]", de = "[object DataView]", h = "[object Float32Array]", v = "[object Float64Array]", M = "[object Int8Array]", E = "[object Int16Array]", ee = "[object Int32Array]", W = "[object Uint8Array]", z = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", G = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, j = /^(?:0|[1-9]\d*)$/, _ = {};
|
|
918
|
+
_[o] = _[l] = _[Me] = _[de] = _[d] = _[m] = _[h] = _[v] = _[M] = _[E] = _[ee] = _[F] = _[g] = _[T] = _[H] = _[B] = _[I] = _[ie] = _[W] = _[z] = _[te] = _[ne] = !0, _[y] = _[c] = _[D] = !1;
|
|
919
|
+
var $ = typeof je == "object" && je && je.Object === Object && je, me = typeof self == "object" && self && self.Object === Object && self, b = $ || me || Function("return this")(), q = t && !t.nodeType && t, Ie = q && !0 && e && !e.nodeType && e, rt = Ie && Ie.exports === q;
|
|
920
920
|
function at(r, s) {
|
|
921
921
|
return r.set(s[0], s[1]), r;
|
|
922
922
|
}
|
|
@@ -933,7 +933,7 @@ Qe.exports;
|
|
|
933
933
|
r[k + u] = s[u];
|
|
934
934
|
return r;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Ut(r, s, u, p) {
|
|
937
937
|
for (var k = -1, O = r ? r.length : 0; ++k < O; )
|
|
938
938
|
u = s(u, r[k], k, r);
|
|
939
939
|
return u;
|
|
@@ -946,7 +946,7 @@ Qe.exports;
|
|
|
946
946
|
function jn(r, s) {
|
|
947
947
|
return r == null ? void 0 : r[s];
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function At(r) {
|
|
950
950
|
var s = !1;
|
|
951
951
|
if (r != null && typeof r.toString != "function")
|
|
952
952
|
try {
|
|
@@ -972,12 +972,12 @@ Qe.exports;
|
|
|
972
972
|
u[++s] = p;
|
|
973
973
|
}), u;
|
|
974
974
|
}
|
|
975
|
-
var $n = Array.prototype, Kn = Function.prototype,
|
|
975
|
+
var $n = Array.prototype, Kn = Function.prototype, Ue = Object.prototype, st = b["__core-js_shared__"], Bt = function() {
|
|
976
976
|
var r = /[^.]+$/.exec(st && st.keys && st.keys.IE_PROTO || "");
|
|
977
977
|
return r ? "Symbol(src)_1." + r : "";
|
|
978
|
-
}(), Ht = Kn.toString, re =
|
|
979
|
-
"^" + Ht.call(re).replace(
|
|
980
|
-
), zt = rt ? b.Buffer : void 0, Vt = b.Symbol, Yt = b.Uint8Array,
|
|
978
|
+
}(), Ht = Kn.toString, re = Ue.hasOwnProperty, Ae = Ue.toString, Wn = RegExp(
|
|
979
|
+
"^" + Ht.call(re).replace(G, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
980
|
+
), zt = rt ? b.Buffer : void 0, Vt = b.Symbol, Yt = b.Uint8Array, qn = ot(Object.getPrototypeOf, Object), Zn = Object.create, Qn = Ue.propertyIsEnumerable, Jn = $n.splice, jt = Object.getOwnPropertySymbols, Xn = zt ? zt.isBuffer : void 0, er = ot(Object.keys, Object), lt = ye(b, "DataView"), De = ye(b, "Map"), ut = ye(b, "Promise"), ct = ye(b, "Set"), dt = ye(b, "WeakMap"), ke = ye(Object, "create"), tr = le(lt), nr = le(De), rr = le(ut), ar = le(ct), ir = le(dt), $t = Vt ? Vt.prototype : void 0, Kt = $t ? $t.valueOf : void 0;
|
|
981
981
|
function oe(r) {
|
|
982
982
|
var s = -1, u = r ? r.length : 0;
|
|
983
983
|
for (this.clear(); ++s < u; ) {
|
|
@@ -1008,7 +1008,7 @@ Qe.exports;
|
|
|
1008
1008
|
return u[r] = ke && s === void 0 ? a : s, this;
|
|
1009
1009
|
}
|
|
1010
1010
|
oe.prototype.clear = or, oe.prototype.delete = sr, oe.prototype.get = lr, oe.prototype.has = ur, oe.prototype.set = cr;
|
|
1011
|
-
function
|
|
1011
|
+
function Z(r) {
|
|
1012
1012
|
var s = -1, u = r ? r.length : 0;
|
|
1013
1013
|
for (this.clear(); ++s < u; ) {
|
|
1014
1014
|
var p = r[s];
|
|
@@ -1036,7 +1036,7 @@ Qe.exports;
|
|
|
1036
1036
|
var u = this.__data__, p = Pe(u, r);
|
|
1037
1037
|
return p < 0 ? u.push([r, s]) : u[p][1] = s, this;
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1039
|
+
Z.prototype.clear = dr, Z.prototype.delete = mr, Z.prototype.get = fr, Z.prototype.has = pr, Z.prototype.set = yr;
|
|
1040
1040
|
function fe(r) {
|
|
1041
1041
|
var s = -1, u = r ? r.length : 0;
|
|
1042
1042
|
for (this.clear(); ++s < u; ) {
|
|
@@ -1047,7 +1047,7 @@ Qe.exports;
|
|
|
1047
1047
|
function hr() {
|
|
1048
1048
|
this.__data__ = {
|
|
1049
1049
|
hash: new oe(),
|
|
1050
|
-
map: new (De ||
|
|
1050
|
+
map: new (De || Z)(),
|
|
1051
1051
|
string: new oe()
|
|
1052
1052
|
};
|
|
1053
1053
|
}
|
|
@@ -1065,10 +1065,10 @@ Qe.exports;
|
|
|
1065
1065
|
}
|
|
1066
1066
|
fe.prototype.clear = hr, fe.prototype.delete = _r, fe.prototype.get = gr, fe.prototype.has = wr, fe.prototype.set = vr;
|
|
1067
1067
|
function pe(r) {
|
|
1068
|
-
this.__data__ = new
|
|
1068
|
+
this.__data__ = new Z(r);
|
|
1069
1069
|
}
|
|
1070
1070
|
function xr() {
|
|
1071
|
-
this.__data__ = new
|
|
1071
|
+
this.__data__ = new Z();
|
|
1072
1072
|
}
|
|
1073
1073
|
function Tr(r) {
|
|
1074
1074
|
return this.__data__.delete(r);
|
|
@@ -1081,7 +1081,7 @@ Qe.exports;
|
|
|
1081
1081
|
}
|
|
1082
1082
|
function Sr(r, s) {
|
|
1083
1083
|
var u = this.__data__;
|
|
1084
|
-
if (u instanceof
|
|
1084
|
+
if (u instanceof Z) {
|
|
1085
1085
|
var p = u.__data__;
|
|
1086
1086
|
if (!De || p.length < n - 1)
|
|
1087
1087
|
return p.push([r, s]), this;
|
|
@@ -1091,7 +1091,7 @@ Qe.exports;
|
|
|
1091
1091
|
}
|
|
1092
1092
|
pe.prototype.clear = xr, pe.prototype.delete = Tr, pe.prototype.get = Fr, pe.prototype.has = Mr, pe.prototype.set = Sr;
|
|
1093
1093
|
function Dr(r, s) {
|
|
1094
|
-
var u = pt(r) ||
|
|
1094
|
+
var u = pt(r) || Zr(r) ? Yn(r.length, String) : [], p = u.length, k = !!p;
|
|
1095
1095
|
for (var O in r)
|
|
1096
1096
|
re.call(r, O) && !(k && (O == "length" || $r(O, p))) && u.push(O);
|
|
1097
1097
|
return u;
|
|
@@ -1107,57 +1107,57 @@ Qe.exports;
|
|
|
1107
1107
|
return -1;
|
|
1108
1108
|
}
|
|
1109
1109
|
function kr(r, s) {
|
|
1110
|
-
return r &&
|
|
1110
|
+
return r && qt(s, yt(s), r);
|
|
1111
1111
|
}
|
|
1112
1112
|
function mt(r, s, u, p, k, O, Q) {
|
|
1113
|
-
var
|
|
1114
|
-
if (p && (
|
|
1115
|
-
return
|
|
1113
|
+
var L;
|
|
1114
|
+
if (p && (L = O ? p(r, k, O, Q) : p(r)), L !== void 0)
|
|
1115
|
+
return L;
|
|
1116
1116
|
if (!Be(r))
|
|
1117
1117
|
return r;
|
|
1118
1118
|
var tn = pt(r);
|
|
1119
1119
|
if (tn) {
|
|
1120
|
-
if (
|
|
1121
|
-
return Br(r,
|
|
1120
|
+
if (L = Vr(r), !s)
|
|
1121
|
+
return Br(r, L);
|
|
1122
1122
|
} else {
|
|
1123
1123
|
var he = se(r), nn = he == c || he == x;
|
|
1124
1124
|
if (Jr(r))
|
|
1125
|
-
return
|
|
1125
|
+
return Lr(r, s);
|
|
1126
1126
|
if (he == T || he == o || nn && !O) {
|
|
1127
|
-
if (
|
|
1127
|
+
if (At(r))
|
|
1128
1128
|
return O ? r : {};
|
|
1129
|
-
if (
|
|
1130
|
-
return Hr(r, kr(
|
|
1129
|
+
if (L = Yr(nn ? {} : r), !s)
|
|
1130
|
+
return Hr(r, kr(L, r));
|
|
1131
1131
|
} else {
|
|
1132
1132
|
if (!_[he])
|
|
1133
1133
|
return O ? r : {};
|
|
1134
|
-
|
|
1134
|
+
L = jr(r, he, mt, s);
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
Q || (Q = new pe());
|
|
1138
1138
|
var rn = Q.get(r);
|
|
1139
1139
|
if (rn)
|
|
1140
1140
|
return rn;
|
|
1141
|
-
if (Q.set(r,
|
|
1141
|
+
if (Q.set(r, L), !tn)
|
|
1142
1142
|
var an = u ? zr(r) : yt(r);
|
|
1143
1143
|
return Se(an || r, function(ht, He) {
|
|
1144
|
-
an && (He = ht, ht = r[He]), Wt(
|
|
1145
|
-
}),
|
|
1144
|
+
an && (He = ht, ht = r[He]), Wt(L, He, mt(ht, s, u, p, He, r, Q));
|
|
1145
|
+
}), L;
|
|
1146
1146
|
}
|
|
1147
1147
|
function Nr(r) {
|
|
1148
|
-
return Be(r) ?
|
|
1148
|
+
return Be(r) ? Zn(r) : {};
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Er(r, s, u) {
|
|
1151
1151
|
var p = s(r);
|
|
1152
1152
|
return pt(r) ? p : Vn(p, u(r));
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return
|
|
1154
|
+
function Rr(r) {
|
|
1155
|
+
return Ae.call(r);
|
|
1156
1156
|
}
|
|
1157
1157
|
function br(r) {
|
|
1158
1158
|
if (!Be(r) || Wr(r))
|
|
1159
1159
|
return !1;
|
|
1160
|
-
var s = en(r) ||
|
|
1160
|
+
var s = en(r) || At(r) ? Wn : Y;
|
|
1161
1161
|
return s.test(le(r));
|
|
1162
1162
|
}
|
|
1163
1163
|
function Or(r) {
|
|
@@ -1168,7 +1168,7 @@ Qe.exports;
|
|
|
1168
1168
|
re.call(r, u) && u != "constructor" && s.push(u);
|
|
1169
1169
|
return s;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function Lr(r, s) {
|
|
1172
1172
|
if (s)
|
|
1173
1173
|
return r.slice();
|
|
1174
1174
|
var u = new r.constructor(r.length);
|
|
@@ -1178,21 +1178,21 @@ Qe.exports;
|
|
|
1178
1178
|
var s = new r.constructor(r.byteLength);
|
|
1179
1179
|
return new Yt(s).set(new Yt(r)), s;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function Gr(r, s) {
|
|
1182
1182
|
var u = s ? ft(r.buffer) : r.buffer;
|
|
1183
1183
|
return new r.constructor(u, r.byteOffset, r.byteLength);
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Ir(r, s, u) {
|
|
1186
1186
|
var p = s ? u(Pt(r), !0) : Pt(r);
|
|
1187
|
-
return
|
|
1187
|
+
return Ut(p, at, new r.constructor());
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function Ur(r) {
|
|
1190
1190
|
var s = new r.constructor(r.source, V.exec(r));
|
|
1191
1191
|
return s.lastIndex = r.lastIndex, s;
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function Ar(r, s, u) {
|
|
1194
1194
|
var p = s ? u(Ct(r), !0) : Ct(r);
|
|
1195
|
-
return
|
|
1195
|
+
return Ut(p, it, new r.constructor());
|
|
1196
1196
|
}
|
|
1197
1197
|
function Pr(r) {
|
|
1198
1198
|
return Kt ? Object(Kt.call(r)) : {};
|
|
@@ -1207,19 +1207,19 @@ Qe.exports;
|
|
|
1207
1207
|
s[u] = r[u];
|
|
1208
1208
|
return s;
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function qt(r, s, u, p) {
|
|
1211
1211
|
u || (u = {});
|
|
1212
1212
|
for (var k = -1, O = s.length; ++k < O; ) {
|
|
1213
|
-
var Q = s[k],
|
|
1214
|
-
Wt(u, Q,
|
|
1213
|
+
var Q = s[k], L = void 0;
|
|
1214
|
+
Wt(u, Q, L === void 0 ? r[Q] : L);
|
|
1215
1215
|
}
|
|
1216
1216
|
return u;
|
|
1217
1217
|
}
|
|
1218
1218
|
function Hr(r, s) {
|
|
1219
|
-
return
|
|
1219
|
+
return qt(r, Zt(r), s);
|
|
1220
1220
|
}
|
|
1221
1221
|
function zr(r) {
|
|
1222
|
-
return
|
|
1222
|
+
return Er(r, yt, Zt);
|
|
1223
1223
|
}
|
|
1224
1224
|
function Ce(r, s) {
|
|
1225
1225
|
var u = r.__data__;
|
|
@@ -1229,9 +1229,9 @@ Qe.exports;
|
|
|
1229
1229
|
var u = jn(r, s);
|
|
1230
1230
|
return br(u) ? u : void 0;
|
|
1231
1231
|
}
|
|
1232
|
-
var
|
|
1232
|
+
var Zt = jt ? ot(jt, Object) : ta, se = Rr;
|
|
1233
1233
|
(lt && se(new lt(new ArrayBuffer(1))) != de || De && se(new De()) != F || ut && se(ut.resolve()) != N || ct && se(new ct()) != B || dt && se(new dt()) != D) && (se = function(r) {
|
|
1234
|
-
var s =
|
|
1234
|
+
var s = Ae.call(r), u = s == T ? r.constructor : void 0, p = u ? le(u) : void 0;
|
|
1235
1235
|
if (p)
|
|
1236
1236
|
switch (p) {
|
|
1237
1237
|
case tr:
|
|
@@ -1252,7 +1252,7 @@ Qe.exports;
|
|
|
1252
1252
|
return s && typeof r[0] == "string" && re.call(r, "index") && (u.index = r.index, u.input = r.input), u;
|
|
1253
1253
|
}
|
|
1254
1254
|
function Yr(r) {
|
|
1255
|
-
return typeof r.constructor == "function" && !Qt(r) ? Nr(
|
|
1255
|
+
return typeof r.constructor == "function" && !Qt(r) ? Nr(qn(r)) : {};
|
|
1256
1256
|
}
|
|
1257
1257
|
function jr(r, s, u, p) {
|
|
1258
1258
|
var k = r.constructor;
|
|
@@ -1263,11 +1263,11 @@ Qe.exports;
|
|
|
1263
1263
|
case m:
|
|
1264
1264
|
return new k(+r);
|
|
1265
1265
|
case de:
|
|
1266
|
-
return
|
|
1266
|
+
return Gr(r, p);
|
|
1267
1267
|
case h:
|
|
1268
1268
|
case v:
|
|
1269
1269
|
case M:
|
|
1270
|
-
case
|
|
1270
|
+
case E:
|
|
1271
1271
|
case ee:
|
|
1272
1272
|
case W:
|
|
1273
1273
|
case z:
|
|
@@ -1275,14 +1275,14 @@ Qe.exports;
|
|
|
1275
1275
|
case ne:
|
|
1276
1276
|
return Cr(r, p);
|
|
1277
1277
|
case F:
|
|
1278
|
-
return
|
|
1278
|
+
return Ir(r, p, u);
|
|
1279
1279
|
case g:
|
|
1280
|
-
case
|
|
1280
|
+
case I:
|
|
1281
1281
|
return new k(r);
|
|
1282
1282
|
case H:
|
|
1283
|
-
return
|
|
1283
|
+
return Ur(r);
|
|
1284
1284
|
case B:
|
|
1285
|
-
return
|
|
1285
|
+
return Ar(r, p, u);
|
|
1286
1286
|
case ie:
|
|
1287
1287
|
return Pr(r);
|
|
1288
1288
|
}
|
|
@@ -1298,7 +1298,7 @@ Qe.exports;
|
|
|
1298
1298
|
return !!Bt && Bt in r;
|
|
1299
1299
|
}
|
|
1300
1300
|
function Qt(r) {
|
|
1301
|
-
var s = r && r.constructor, u = typeof s == "function" && s.prototype ||
|
|
1301
|
+
var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ue;
|
|
1302
1302
|
return r === u;
|
|
1303
1303
|
}
|
|
1304
1304
|
function le(r) {
|
|
@@ -1314,14 +1314,14 @@ Qe.exports;
|
|
|
1314
1314
|
}
|
|
1315
1315
|
return "";
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function qr(r) {
|
|
1318
1318
|
return mt(r, !0, !0);
|
|
1319
1319
|
}
|
|
1320
1320
|
function Jt(r, s) {
|
|
1321
1321
|
return r === s || r !== r && s !== s;
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return Qr(r) && re.call(r, "callee") && (!Qn.call(r, "callee") ||
|
|
1323
|
+
function Zr(r) {
|
|
1324
|
+
return Qr(r) && re.call(r, "callee") && (!Qn.call(r, "callee") || Ae.call(r) == o);
|
|
1325
1325
|
}
|
|
1326
1326
|
var pt = Array.isArray;
|
|
1327
1327
|
function Xt(r) {
|
|
@@ -1332,7 +1332,7 @@ Qe.exports;
|
|
|
1332
1332
|
}
|
|
1333
1333
|
var Jr = Xn || na;
|
|
1334
1334
|
function en(r) {
|
|
1335
|
-
var s = Be(r) ?
|
|
1335
|
+
var s = Be(r) ? Ae.call(r) : "";
|
|
1336
1336
|
return s == c || s == x;
|
|
1337
1337
|
}
|
|
1338
1338
|
function Xr(r) {
|
|
@@ -1354,13 +1354,13 @@ Qe.exports;
|
|
|
1354
1354
|
function na() {
|
|
1355
1355
|
return !1;
|
|
1356
1356
|
}
|
|
1357
|
-
e.exports =
|
|
1357
|
+
e.exports = qr;
|
|
1358
1358
|
})(Qe, Qe.exports);
|
|
1359
1359
|
Qe.exports;
|
|
1360
1360
|
const C = (e, t) => new Date(e.getTime() - oi(t, e));
|
|
1361
1361
|
class S {
|
|
1362
1362
|
constructor(t) {
|
|
1363
|
-
|
|
1363
|
+
U(this, "timeframeText"), U(this, "key"), U(this, "display"), U(this, "timeframeLength"), U(this, "allowedTiers"), U(this, "defaultResponseGranularity"), U(this, "dataGranularity"), U(this, "isRelative"), U(this, "fineGrainedDefaultGranularity"), U(this, "_startCustom"), U(this, "_endCustom"), U(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;
|
|
1364
1364
|
}
|
|
1365
1365
|
// rawEnd does not consider granularity and should not be used directly in queries.
|
|
1366
1366
|
// Use `new QueryTime(timeframe, granularity?).queryEndSeconds()` instead.
|
|
@@ -1411,7 +1411,7 @@ class S {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
class si extends S {
|
|
1413
1413
|
rawStart(t) {
|
|
1414
|
-
let n =
|
|
1414
|
+
let n = Ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1415
1415
|
return t && (n = C(n, t)), n;
|
|
1416
1416
|
}
|
|
1417
1417
|
maximumTimeframeLength() {
|
|
@@ -1447,12 +1447,12 @@ class ci extends S {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
class di extends S {
|
|
1449
1449
|
rawEnd(t) {
|
|
1450
|
-
let n =
|
|
1450
|
+
let n = Ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1451
1451
|
return t && (n = C(n, t)), n;
|
|
1452
1452
|
}
|
|
1453
1453
|
rawStart(t) {
|
|
1454
1454
|
const n = this.tzAdjustedDate(t);
|
|
1455
|
-
let a =
|
|
1455
|
+
let a = Ze(n.setDate(n.getDate() - 7), {
|
|
1456
1456
|
weekStartsOn: 1
|
|
1457
1457
|
});
|
|
1458
1458
|
return t && (a = C(a, t)), a;
|
|
@@ -1474,7 +1474,7 @@ class fi extends S {
|
|
|
1474
1474
|
return t && (n = C(n, t)), n;
|
|
1475
1475
|
}
|
|
1476
1476
|
rawStart(t) {
|
|
1477
|
-
let n = ve(
|
|
1477
|
+
let n = ve(An(this.tzAdjustedDate(t)));
|
|
1478
1478
|
return t && (n = C(n, t)), n;
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
@@ -1603,7 +1603,7 @@ f.FIFTEEN_MIN, new S({
|
|
|
1603
1603
|
display: "This week",
|
|
1604
1604
|
timeframeText: "Week",
|
|
1605
1605
|
timeframeLength: () => {
|
|
1606
|
-
const e =
|
|
1606
|
+
const e = Ze(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
1607
1607
|
return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1608
1608
|
},
|
|
1609
1609
|
defaultResponseGranularity: "daily",
|
|
@@ -1665,7 +1665,7 @@ f.FIFTEEN_MIN, new S({
|
|
|
1665
1665
|
timeframeText: "Month",
|
|
1666
1666
|
timeframeLength: () => {
|
|
1667
1667
|
let e = 0;
|
|
1668
|
-
const t = ve(/* @__PURE__ */ new Date()), n = ve(
|
|
1668
|
+
const t = ve(/* @__PURE__ */ new Date()), n = ve(An(/* @__PURE__ */ new Date()));
|
|
1669
1669
|
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = gn(t, n)), 60 * 60 * 24 * Pa((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + ln(e);
|
|
1670
1670
|
},
|
|
1671
1671
|
defaultResponseGranularity: "daily",
|
|
@@ -1702,7 +1702,7 @@ function gn(e, t) {
|
|
|
1702
1702
|
return Ca(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
1703
1703
|
}
|
|
1704
1704
|
f.FIFTEEN_MIN, f.ONE_HOUR, f.SIX_HOUR, f.TWELVE_HOUR, f.ONE_DAY, f.SEVEN_DAY, f.FIFTEEN_MIN, f.ONE_HOUR, f.SIX_HOUR, f.TWELVE_HOUR, f.ONE_DAY, f.SEVEN_DAY, f.THIRTY_DAY, f.NINETY_DAY, f.ONE_HUNDRED_EIGHTY_DAY, f.ONE_YEAR, f.CURRENT_WEEK, f.CURRENT_MONTH, f.CURRENT_QUARTER, f.CURRENT_YEAR, f.PREVIOUS_WEEK, f.PREVIOUS_MONTH, f.PREVIOUS_QUARTER, f.PREVIOUS_YEAR;
|
|
1705
|
-
new Map(
|
|
1705
|
+
new Map(Rt.map((e) => [e.code, { code: e.code, name: e.name }]));
|
|
1706
1706
|
const wn = 1e3, yi = 1e4, vn = 1e6, xn = 1e9, Tn = 1e12, We = (e, t) => {
|
|
1707
1707
|
if (t.separator === !1 || e < 1e3)
|
|
1708
1708
|
return e.toString();
|
|
@@ -1710,7 +1710,7 @@ const wn = 1e3, yi = 1e4, vn = 1e6, xn = 1e9, Tn = 1e12, We = (e, t) => {
|
|
|
1710
1710
|
return Math.round(e).toString().split("").reverse().forEach((i, o) => {
|
|
1711
1711
|
o && o % 3 === 0 && a.push(n), a.push(i);
|
|
1712
1712
|
}), a.reverse().join("");
|
|
1713
|
-
},
|
|
1713
|
+
}, Ee = (e, t, n) => {
|
|
1714
1714
|
const a = e / t, i = n.round ? "round" : "floor";
|
|
1715
1715
|
if (n.decimal === !1)
|
|
1716
1716
|
return Math[i](a).toString();
|
|
@@ -1719,14 +1719,14 @@ const wn = 1e3, yi = 1e4, vn = 1e6, xn = 1e9, Tn = 1e12, We = (e, t) => {
|
|
|
1719
1719
|
let l = o.toString();
|
|
1720
1720
|
return typeof n.decimal == "string" && (l = l.replace(".", n.decimal)), l;
|
|
1721
1721
|
};
|
|
1722
|
-
function
|
|
1722
|
+
function qe(e, t = {}) {
|
|
1723
1723
|
let n;
|
|
1724
1724
|
const a = e < 0;
|
|
1725
1725
|
a && (e = Math.abs(e)), t.precision && (e = parseFloat(e.toPrecision(t.precision)));
|
|
1726
1726
|
const i = t.min10k ? yi : wn;
|
|
1727
|
-
return e < i || t.precision && t.precision > Math.log10(e) ? n = We(
|
|
1727
|
+
return e < i || t.precision && t.precision > Math.log10(e) ? n = We(Ee(e, 1, t), t) : e < vn ? n = `${Ee(e, wn, t)}k` : e < xn ? n = `${Ee(e, vn, t)}m` : e < Tn ? n = `${We(Ee(e, xn, t), t)}b` : n = `${We(Ee(e, Tn, t), t)}t`, a && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
|
|
1728
1728
|
}
|
|
1729
|
-
|
|
1729
|
+
qe.addCommas = We;
|
|
1730
1730
|
var Fn;
|
|
1731
1731
|
const hi = typeof document < "u" && ((Fn = document.documentElement) == null ? void 0 : Fn.lang) || "en-US", Ft = new Intl.NumberFormat(hi);
|
|
1732
1732
|
function _i({
|
|
@@ -1774,7 +1774,7 @@ function _i({
|
|
|
1774
1774
|
case "token count":
|
|
1775
1775
|
case "count":
|
|
1776
1776
|
default:
|
|
1777
|
-
return isNaN(a) ? `${a}` : d ? `${
|
|
1777
|
+
return isNaN(a) ? `${a}` : d ? `${qe(a, { capital: !0 })} ${y}` : a >= 0.01 ? `${Ft.format(Number.parseFloat(a.toFixed(2)))} ${y}` : `${Number.parseFloat(a.toPrecision(4))} ${y}`;
|
|
1778
1778
|
}
|
|
1779
1779
|
}, formatBytes: t, formatCost: n, formatRange: (a, i, o, {
|
|
1780
1780
|
isBytes1024: l = !1,
|
|
@@ -1796,7 +1796,7 @@ function _i({
|
|
|
1796
1796
|
if (isNaN(a) || isNaN(i))
|
|
1797
1797
|
return `${a} - ${i}`;
|
|
1798
1798
|
if (m)
|
|
1799
|
-
return `${
|
|
1799
|
+
return `${qe(a, { capital: !0 })} - ${qe(i, { capital: !0 })} ${c}`;
|
|
1800
1800
|
}
|
|
1801
1801
|
const x = a >= 0.01 ? `${Ft.format(Number.parseFloat(a.toFixed(2)))}` : `${Number.parseFloat(a.toPrecision(4))}`, F = i >= 0.01 ? `${Ft.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`;
|
|
1802
1802
|
return `${x} - ${F} ${c}`;
|
|
@@ -1825,22 +1825,22 @@ function xi({
|
|
|
1825
1825
|
metric: t,
|
|
1826
1826
|
unit: n
|
|
1827
1827
|
}) {
|
|
1828
|
-
const { formatMetric: a, formatMetricRange: i } = Oe.useMetricFormat({ unit: n }), o =
|
|
1828
|
+
const { formatMetric: a, formatMetricRange: i } = Oe.useMetricFormat({ unit: n }), o = A(() => {
|
|
1829
1829
|
const g = { ...e.value };
|
|
1830
1830
|
for (const T of Object.keys(g))
|
|
1831
|
-
|
|
1831
|
+
Rt.find((N) => N.code === T) || delete g[T];
|
|
1832
1832
|
return g;
|
|
1833
|
-
}), l =
|
|
1833
|
+
}), l = A(() => Object.values(o.value)), d = A(() => Object.keys(o.value).length), m = A(() => d.value < Mn - 1 ? d.value : Mn), y = A(() => {
|
|
1834
1834
|
var g;
|
|
1835
1835
|
return !((g = t.value) != null && g.includes("latency"));
|
|
1836
|
-
}), c =
|
|
1836
|
+
}), c = A(() => {
|
|
1837
1837
|
const g = [];
|
|
1838
1838
|
if (l.value.length > 10) {
|
|
1839
|
-
const T = [...l.value].sort((D, Me) => D - Me), N = vi(T, 0.75), H = l.value.filter((D) => D >= N), B = l.value.filter((D) => D < N),
|
|
1840
|
-
return g.push(...
|
|
1839
|
+
const T = [...l.value].sort((D, Me) => D - Me), N = vi(T, 0.75), H = l.value.filter((D) => D >= N), B = l.value.filter((D) => D < N), I = St(H, 3), ie = St(B, 2);
|
|
1840
|
+
return g.push(...I, ...ie), g;
|
|
1841
1841
|
}
|
|
1842
1842
|
return St(l.value, m.value);
|
|
1843
|
-
}), x =
|
|
1843
|
+
}), x = A(() => l.value.length === 1 ? [{
|
|
1844
1844
|
color: F(l.value[0]),
|
|
1845
1845
|
range: a(l.value[0], {
|
|
1846
1846
|
approximate: y.value,
|
|
@@ -1848,19 +1848,19 @@ function xi({
|
|
|
1848
1848
|
}).trim()
|
|
1849
1849
|
}] : c.value.map((g, T) => {
|
|
1850
1850
|
const N = T === 0 ? Math.max(...c.value) : c.value[T - 1], H = g, B = N;
|
|
1851
|
-
let
|
|
1852
|
-
return T === 0 ?
|
|
1851
|
+
let I = "";
|
|
1852
|
+
return T === 0 ? I = `> ${a(H, {
|
|
1853
1853
|
showUnit: !n.value.includes("count"),
|
|
1854
1854
|
approximate: y.value
|
|
1855
|
-
})}`.trim() : T === c.value.length - 1 ?
|
|
1855
|
+
})}`.trim() : T === c.value.length - 1 ? I = `< ${a(B, {
|
|
1856
1856
|
showUnit: !n.value.includes("count"),
|
|
1857
1857
|
approximate: y.value
|
|
1858
|
-
})}`.trim() :
|
|
1858
|
+
})}`.trim() : I = i(H, B, {
|
|
1859
1859
|
showUnit: !n.value.includes("count"),
|
|
1860
1860
|
approximate: y.value
|
|
1861
1861
|
}).trim(), {
|
|
1862
1862
|
color: F(H),
|
|
1863
|
-
range:
|
|
1863
|
+
range: I
|
|
1864
1864
|
};
|
|
1865
1865
|
})), F = (g) => {
|
|
1866
1866
|
if (g === 0)
|
|
@@ -4338,7 +4338,7 @@ const Oe = {
|
|
|
4338
4338
|
function Di(e) {
|
|
4339
4339
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4340
4340
|
}
|
|
4341
|
-
var ki =
|
|
4341
|
+
var ki = Ei, Je, Te, P, Xe, nt, Ni = [
|
|
4342
4342
|
"Point",
|
|
4343
4343
|
"MultiPoint",
|
|
4344
4344
|
"LineString",
|
|
@@ -4347,12 +4347,12 @@ var ki = Ri, Je, Te, P, Xe, nt, Ni = [
|
|
|
4347
4347
|
"MultiPolygon",
|
|
4348
4348
|
"GeometryCollection"
|
|
4349
4349
|
];
|
|
4350
|
-
function
|
|
4350
|
+
function Ei(e) {
|
|
4351
4351
|
Xe = 2, nt = Math.pow(10, 6), P = null, Je = [], Te = [];
|
|
4352
|
-
var t = e.readFields(
|
|
4352
|
+
var t = e.readFields(Ri, {});
|
|
4353
4353
|
return Je = null, t;
|
|
4354
4354
|
}
|
|
4355
|
-
function
|
|
4355
|
+
function Ri(e, t, n) {
|
|
4356
4356
|
e === 1 ? Je.push(n.readString()) : e === 2 ? Xe = n.readVarint() : e === 3 ? nt = Math.pow(10, n.readVarint()) : e === 4 ? bi(n, t) : e === 5 ? Hn(n, t) : e === 6 && Ot(n, t);
|
|
4357
4357
|
}
|
|
4358
4358
|
function bi(e, t) {
|
|
@@ -4360,25 +4360,25 @@ function bi(e, t) {
|
|
|
4360
4360
|
}
|
|
4361
4361
|
function Hn(e, t) {
|
|
4362
4362
|
t.type = "Feature";
|
|
4363
|
-
var n = e.readMessage(
|
|
4363
|
+
var n = e.readMessage(Li, t);
|
|
4364
4364
|
return "geometry" in n || (n.geometry = null), n;
|
|
4365
4365
|
}
|
|
4366
4366
|
function Ot(e, t) {
|
|
4367
|
-
return t.type = "Point", e.readMessage(
|
|
4367
|
+
return t.type = "Point", e.readMessage(Gi, t);
|
|
4368
4368
|
}
|
|
4369
4369
|
function Oi(e, t, n) {
|
|
4370
|
-
e === 1 ? t.features.push(Hn(n, {})) : e === 13 ? Te.push(
|
|
4371
|
-
}
|
|
4372
|
-
function Gi(e, t, n) {
|
|
4373
|
-
e === 1 ? t.geometry = Ot(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? Te.push(Gt(n)) : e === 14 ? t.properties = et(n, {}) : e === 15 && et(n, t);
|
|
4370
|
+
e === 1 ? t.features.push(Hn(n, {})) : e === 13 ? Te.push(Lt(n)) : e === 15 && et(n, t);
|
|
4374
4371
|
}
|
|
4375
4372
|
function Li(e, t, n) {
|
|
4376
|
-
e === 1 ? t.
|
|
4373
|
+
e === 1 ? t.geometry = Ot(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? Te.push(Lt(n)) : e === 14 ? t.properties = et(n, {}) : e === 15 && et(n, t);
|
|
4374
|
+
}
|
|
4375
|
+
function Gi(e, t, n) {
|
|
4376
|
+
e === 1 ? t.type = Ni[n.readVarint()] : e === 2 ? P = n.readPackedVarint() : e === 3 ? Ii(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Ot(n, {}))) : e === 13 ? Te.push(Lt(n)) : e === 15 && et(n, t);
|
|
4377
4377
|
}
|
|
4378
|
-
function
|
|
4379
|
-
n === "Point" ? e.coordinates =
|
|
4378
|
+
function Ii(e, t, n) {
|
|
4379
|
+
n === "Point" ? e.coordinates = Ui(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = Sn(t) : n === "MultiLineString" ? e.coordinates = Dn(t) : n === "Polygon" ? e.coordinates = Dn(t, !0) : n === "MultiPolygon" && (e.coordinates = Ai(t));
|
|
4380
4380
|
}
|
|
4381
|
-
function
|
|
4381
|
+
function Lt(e) {
|
|
4382
4382
|
for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
|
|
4383
4383
|
var a = e.readVarint(), i = a >> 3;
|
|
4384
4384
|
i === 1 ? n = e.readString() : i === 2 ? n = e.readDouble() : i === 3 ? n = e.readVarint() : i === 4 ? n = -e.readVarint() : i === 5 ? n = e.readBoolean() : i === 6 && (n = JSON.parse(e.readString()));
|
|
@@ -4389,11 +4389,11 @@ function et(e, t) {
|
|
|
4389
4389
|
for (var n = e.readVarint() + e.pos; e.pos < n; ) t[Je[e.readVarint()]] = Te[e.readVarint()];
|
|
4390
4390
|
return Te = [], t;
|
|
4391
4391
|
}
|
|
4392
|
-
function
|
|
4392
|
+
function Ui(e) {
|
|
4393
4393
|
for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / nt);
|
|
4394
4394
|
return n;
|
|
4395
4395
|
}
|
|
4396
|
-
function
|
|
4396
|
+
function Ge(e, t, n, a) {
|
|
4397
4397
|
var i = 0, o = [], l, d, m = [];
|
|
4398
4398
|
for (d = 0; d < Xe; d++) m[d] = 0;
|
|
4399
4399
|
for (; n ? i < n : e.pos < t; ) {
|
|
@@ -4404,26 +4404,26 @@ function Le(e, t, n, a) {
|
|
|
4404
4404
|
return a && o.push(o[0]), o;
|
|
4405
4405
|
}
|
|
4406
4406
|
function Sn(e) {
|
|
4407
|
-
return
|
|
4407
|
+
return Ge(e, e.readVarint() + e.pos);
|
|
4408
4408
|
}
|
|
4409
4409
|
function Dn(e, t) {
|
|
4410
4410
|
var n = e.readVarint() + e.pos;
|
|
4411
|
-
if (!P) return [
|
|
4412
|
-
for (var a = [], i = 0; i < P.length; i++) a.push(
|
|
4411
|
+
if (!P) return [Ge(e, n, null, t)];
|
|
4412
|
+
for (var a = [], i = 0; i < P.length; i++) a.push(Ge(e, n, P[i], t));
|
|
4413
4413
|
return P = null, a;
|
|
4414
4414
|
}
|
|
4415
|
-
function
|
|
4415
|
+
function Ai(e) {
|
|
4416
4416
|
var t = e.readVarint() + e.pos;
|
|
4417
|
-
if (!P) return [[
|
|
4417
|
+
if (!P) return [[Ge(e, t, null, !0)]];
|
|
4418
4418
|
for (var n = [], a = 1, i = 0; i < P[0]; i++) {
|
|
4419
|
-
for (var o = [], l = 0; l < P[a]; l++) o.push(
|
|
4419
|
+
for (var o = [], l = 0; l < P[a]; l++) o.push(Ge(e, t, P[a + 1 + l], !0));
|
|
4420
4420
|
a += P[a] + 1, n.push(o);
|
|
4421
4421
|
}
|
|
4422
4422
|
return P = null, n;
|
|
4423
4423
|
}
|
|
4424
|
-
var Pi = ki,
|
|
4424
|
+
var Pi = ki, Gt = {};
|
|
4425
4425
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4426
|
-
|
|
4426
|
+
Gt.read = function(e, t, n, a, i) {
|
|
4427
4427
|
var o, l, d = i * 8 - a - 1, m = (1 << d) - 1, y = m >> 1, c = -7, x = n ? i - 1 : 0, F = n ? -1 : 1, g = e[t + x];
|
|
4428
4428
|
for (x += F, o = g & (1 << -c) - 1, g >>= -c, c += d; c > 0; o = o * 256 + e[t + x], x += F, c -= 8)
|
|
4429
4429
|
;
|
|
@@ -4438,7 +4438,7 @@ Lt.read = function(e, t, n, a, i) {
|
|
|
4438
4438
|
}
|
|
4439
4439
|
return (g ? -1 : 1) * l * Math.pow(2, o - a);
|
|
4440
4440
|
};
|
|
4441
|
-
|
|
4441
|
+
Gt.write = function(e, t, n, a, i, o) {
|
|
4442
4442
|
var l, d, m, y = o * 8 - i - 1, c = (1 << y) - 1, x = c >> 1, F = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = a ? 0 : o - 1, T = a ? 1 : -1, N = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
4443
4443
|
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0, l = c) : (l = Math.floor(Math.log(t) / Math.LN2), t * (m = Math.pow(2, -l)) < 1 && (l--, m *= 2), l + x >= 1 ? t += F / m : t += F * Math.pow(2, 1 - x), t * m >= 2 && (l++, m /= 2), l + x >= c ? (d = 0, l = c) : l + x >= 1 ? (d = (t * m - 1) * Math.pow(2, i), l = l + x) : (d = t * Math.pow(2, x - 1) * Math.pow(2, i), l = 0)); i >= 8; e[n + g] = d & 255, g += T, d /= 256, i -= 8)
|
|
4444
4444
|
;
|
|
@@ -4446,7 +4446,7 @@ Lt.write = function(e, t, n, a, i, o) {
|
|
|
4446
4446
|
;
|
|
4447
4447
|
e[n + g - T] |= N * 128;
|
|
4448
4448
|
};
|
|
4449
|
-
var Ci = w, $e =
|
|
4449
|
+
var Ci = w, $e = Gt;
|
|
4450
4450
|
function w(e) {
|
|
4451
4451
|
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
|
|
4452
4452
|
}
|
|
@@ -4475,7 +4475,7 @@ w.prototype = {
|
|
|
4475
4475
|
return this.pos += 4, e;
|
|
4476
4476
|
},
|
|
4477
4477
|
readSFixed32: function() {
|
|
4478
|
-
var e =
|
|
4478
|
+
var e = En(this.buf, this.pos);
|
|
4479
4479
|
return this.pos += 4, e;
|
|
4480
4480
|
},
|
|
4481
4481
|
// 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
|
|
@@ -4484,7 +4484,7 @@ w.prototype = {
|
|
|
4484
4484
|
return this.pos += 8, e;
|
|
4485
4485
|
},
|
|
4486
4486
|
readSFixed64: function() {
|
|
4487
|
-
var e = Ke(this.buf, this.pos) +
|
|
4487
|
+
var e = Ke(this.buf, this.pos) + En(this.buf, this.pos + 4) * Nt;
|
|
4488
4488
|
return this.pos += 8, e;
|
|
4489
4489
|
},
|
|
4490
4490
|
readFloat: function() {
|
|
@@ -4655,7 +4655,7 @@ w.prototype = {
|
|
|
4655
4655
|
t.length && this.writeMessage(e, $i, t);
|
|
4656
4656
|
},
|
|
4657
4657
|
writePackedBoolean: function(e, t) {
|
|
4658
|
-
t.length && this.writeMessage(e,
|
|
4658
|
+
t.length && this.writeMessage(e, qi, t);
|
|
4659
4659
|
},
|
|
4660
4660
|
writePackedFloat: function(e, t) {
|
|
4661
4661
|
t.length && this.writeMessage(e, Ki, t);
|
|
@@ -4664,7 +4664,7 @@ w.prototype = {
|
|
|
4664
4664
|
t.length && this.writeMessage(e, Wi, t);
|
|
4665
4665
|
},
|
|
4666
4666
|
writePackedFixed32: function(e, t) {
|
|
4667
|
-
t.length && this.writeMessage(e,
|
|
4667
|
+
t.length && this.writeMessage(e, Zi, t);
|
|
4668
4668
|
},
|
|
4669
4669
|
writePackedSFixed32: function(e, t) {
|
|
4670
4670
|
t.length && this.writeMessage(e, Qi, t);
|
|
@@ -4750,10 +4750,10 @@ function Ki(e, t) {
|
|
|
4750
4750
|
function Wi(e, t) {
|
|
4751
4751
|
for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
|
|
4752
4752
|
}
|
|
4753
|
-
function
|
|
4753
|
+
function qi(e, t) {
|
|
4754
4754
|
for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
|
|
4755
4755
|
}
|
|
4756
|
-
function
|
|
4756
|
+
function Zi(e, t) {
|
|
4757
4757
|
for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
|
|
4758
4758
|
}
|
|
4759
4759
|
function Qi(e, t) {
|
|
@@ -4771,7 +4771,7 @@ function Ke(e, t) {
|
|
|
4771
4771
|
function ge(e, t, n) {
|
|
4772
4772
|
e[n] = t, e[n + 1] = t >>> 8, e[n + 2] = t >>> 16, e[n + 3] = t >>> 24;
|
|
4773
4773
|
}
|
|
4774
|
-
function
|
|
4774
|
+
function En(e, t) {
|
|
4775
4775
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
|
|
4776
4776
|
}
|
|
4777
4777
|
function eo(e, t, n) {
|
|
@@ -4825,7 +4825,7 @@ function ao(e, t = 0) {
|
|
|
4825
4825
|
const io = { class: "legend" }, oo = {
|
|
4826
4826
|
key: 0,
|
|
4827
4827
|
class: "legend-title"
|
|
4828
|
-
}, so = { class: "legend-text" }, lo = /* @__PURE__ */
|
|
4828
|
+
}, so = { class: "legend-text" }, lo = /* @__PURE__ */ Et({
|
|
4829
4829
|
__name: "MapLegend",
|
|
4830
4830
|
props: {
|
|
4831
4831
|
metric: {},
|
|
@@ -4834,7 +4834,7 @@ const io = { class: "legend" }, oo = {
|
|
|
4834
4834
|
},
|
|
4835
4835
|
setup(e) {
|
|
4836
4836
|
return (t, n) => (K(), ae("div", io, [
|
|
4837
|
-
e.metric ? (K(), ae("div", oo, xe(e.title), 1)) :
|
|
4837
|
+
e.metric ? (K(), ae("div", oo, xe(e.title), 1)) : Re("", !0),
|
|
4838
4838
|
(K(!0), ae(ra, null, aa(e.data, (a, i) => (K(), ae("div", {
|
|
4839
4839
|
key: i,
|
|
4840
4840
|
class: "legend-item"
|
|
@@ -4847,12 +4847,12 @@ const io = { class: "legend" }, oo = {
|
|
|
4847
4847
|
]))), 128))
|
|
4848
4848
|
]));
|
|
4849
4849
|
}
|
|
4850
|
-
}),
|
|
4850
|
+
}), It = (e, t) => {
|
|
4851
4851
|
const n = e.__vccOpts || e;
|
|
4852
4852
|
for (const [a, i] of t)
|
|
4853
4853
|
n[a] = i;
|
|
4854
4854
|
return n;
|
|
4855
|
-
}, uo = /* @__PURE__ */
|
|
4855
|
+
}, uo = /* @__PURE__ */ It(lo, [["__scopeId", "data-v-09205656"]]), co = { class: "map-tooltip" }, mo = { class: "map-tooltip-text" }, fo = { key: 0 }, po = /* @__PURE__ */ Et({
|
|
4856
4856
|
__name: "MapTooltip",
|
|
4857
4857
|
props: {
|
|
4858
4858
|
data: {},
|
|
@@ -4869,14 +4869,14 @@ const io = { class: "legend" }, oo = {
|
|
|
4869
4869
|
n[0] || (n[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
|
|
4870
4870
|
X("div", mo, [
|
|
4871
4871
|
X("div", null, xe(e.data.label), 1),
|
|
4872
|
-
e.showValue ? (K(), ae("span", fo, xe(e.data.value), 1)) :
|
|
4872
|
+
e.showValue ? (K(), ae("span", fo, xe(e.data.value), 1)) : Re("", !0)
|
|
4873
4873
|
])
|
|
4874
4874
|
]));
|
|
4875
4875
|
}
|
|
4876
|
-
}), yo = /* @__PURE__ */
|
|
4876
|
+
}), yo = /* @__PURE__ */ It(po, [["__scopeId", "data-v-6bea2641"]]), ho = { class: "kong-ui-public-analytics-geo-map" }, _o = {
|
|
4877
4877
|
key: 0,
|
|
4878
4878
|
class: "no-location-overlay"
|
|
4879
|
-
}, go = { class: "no-location-overlay-title" }, wo = { class: "no-location-overlay-description" }, vo = ["id"], xo = /* @__PURE__ */
|
|
4879
|
+
}, go = { class: "no-location-overlay-title" }, wo = { class: "no-location-overlay-description" }, vo = ["id"], xo = /* @__PURE__ */ Et({
|
|
4880
4880
|
__name: "AnalyticsGeoMap",
|
|
4881
4881
|
props: {
|
|
4882
4882
|
countryMetrics: {},
|
|
@@ -4895,7 +4895,7 @@ const io = { class: "legend" }, oo = {
|
|
|
4895
4895
|
countryMetrics: ze(() => e.countryMetrics),
|
|
4896
4896
|
metric: ze(() => e.metric),
|
|
4897
4897
|
unit: ze(() => e.metricUnit)
|
|
4898
|
-
}), { formatMetric: d } = Oe.useMetricFormat({ unit: ze(() => e.metricUnit) }), m = Ne(), y = sa(), c = Ne(), x = Ne(null), F = Ne({ left: "0px", top: "0px" }), g = Ne(!1), T =
|
|
4898
|
+
}), { formatMetric: d } = Oe.useMetricFormat({ unit: ze(() => e.metricUnit) }), m = Ne(), y = sa(), c = Ne(), x = Ne(null), F = Ne({ left: "0px", top: "0px" }), g = Ne(!1), T = A(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), N = A(() => ({
|
|
4899
4899
|
"fill-color": [
|
|
4900
4900
|
"match",
|
|
4901
4901
|
[
|
|
@@ -4916,11 +4916,11 @@ const io = { class: "legend" }, oo = {
|
|
|
4916
4916
|
// default color if no match
|
|
4917
4917
|
],
|
|
4918
4918
|
"fill-opacity": 0.7
|
|
4919
|
-
})), H =
|
|
4919
|
+
})), H = A(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), B = A(() => e.metric && i.t(`metrics.${e.metric}`) || ""), I = (h) => {
|
|
4920
4920
|
const v = h.flat(1);
|
|
4921
|
-
return Array.isArray(v[0]) && Array.isArray(v[0][0]) ?
|
|
4921
|
+
return Array.isArray(v[0]) && Array.isArray(v[0][0]) ? I(v) : v;
|
|
4922
4922
|
}, ie = (h) => {
|
|
4923
|
-
var M,
|
|
4923
|
+
var M, E, ee, W, z, te, ne;
|
|
4924
4924
|
if (h === "RU") {
|
|
4925
4925
|
(M = c.value) == null || M.fitBounds([
|
|
4926
4926
|
[20, 40],
|
|
@@ -4928,7 +4928,7 @@ const io = { class: "legend" }, oo = {
|
|
|
4928
4928
|
]);
|
|
4929
4929
|
return;
|
|
4930
4930
|
} else if (h === "US") {
|
|
4931
|
-
(
|
|
4931
|
+
(E = c.value) == null || E.fitBounds([
|
|
4932
4932
|
[-130, 20],
|
|
4933
4933
|
[-60, 50]
|
|
4934
4934
|
]);
|
|
@@ -4946,20 +4946,20 @@ const io = { class: "legend" }, oo = {
|
|
|
4946
4946
|
]);
|
|
4947
4947
|
return;
|
|
4948
4948
|
}
|
|
4949
|
-
const v = (z = x.value) == null ? void 0 : z.features.find((
|
|
4949
|
+
const v = (z = x.value) == null ? void 0 : z.features.find((G) => {
|
|
4950
4950
|
var V, Y, j, _, $;
|
|
4951
|
-
return (V =
|
|
4951
|
+
return (V = G.properties) != null && V.ISO_A2 ? ((Y = G.properties) == null ? void 0 : Y.ISO_A2) === h : ((j = G.properties) == null ? void 0 : j.iso_a2) === "-99" ? ((_ = G.properties) == null ? void 0 : _.iso_a2_eh) === h : (($ = G.properties) == null ? void 0 : $.iso_a2) === h;
|
|
4952
4952
|
});
|
|
4953
4953
|
if (v) {
|
|
4954
|
-
const
|
|
4955
|
-
if (!
|
|
4956
|
-
const V =
|
|
4954
|
+
const G = (te = v.geometry) == null ? void 0 : te.coordinates;
|
|
4955
|
+
if (!G) return;
|
|
4956
|
+
const V = I(G), Y = V.map((q) => q[1]), j = V.map((q) => q[0]), _ = Math.min(...Y), $ = Math.max(...Y), me = Math.min(...j), b = Math.max(...j);
|
|
4957
4957
|
(ne = c.value) == null || ne.fitBounds([
|
|
4958
4958
|
[me, _],
|
|
4959
4959
|
[b, $]
|
|
4960
4960
|
]);
|
|
4961
4961
|
}
|
|
4962
|
-
}, D =
|
|
4962
|
+
}, D = A(() => {
|
|
4963
4963
|
const h = {
|
|
4964
4964
|
container: y,
|
|
4965
4965
|
style: { version: 8, sources: {}, layers: [] },
|
|
@@ -4989,9 +4989,9 @@ const io = { class: "legend" }, oo = {
|
|
|
4989
4989
|
return la(async () => {
|
|
4990
4990
|
var h, v, M;
|
|
4991
4991
|
try {
|
|
4992
|
-
const
|
|
4992
|
+
const E = await n, ee = await fetch(E), W = new Uint8Array(await ee.arrayBuffer()), z = Pi(new ro(W));
|
|
4993
4993
|
x.value = z, c.value = new da(D.value), c.value.on("load", () => {
|
|
4994
|
-
var te, ne,
|
|
4994
|
+
var te, ne, G, V, Y, j, _;
|
|
4995
4995
|
(te = c.value) == null || te.addSource("countries", {
|
|
4996
4996
|
type: "geojson",
|
|
4997
4997
|
data: z
|
|
@@ -5000,7 +5000,7 @@ const io = { class: "legend" }, oo = {
|
|
|
5000
5000
|
type: "fill",
|
|
5001
5001
|
source: "countries",
|
|
5002
5002
|
paint: N.value
|
|
5003
|
-
}), (
|
|
5003
|
+
}), (G = c.value) == null || G.addSource("lakes", {
|
|
5004
5004
|
type: "geojson",
|
|
5005
5005
|
data: Si
|
|
5006
5006
|
}), (V = c.value) == null || V.addLayer({
|
|
@@ -5014,7 +5014,7 @@ const io = { class: "legend" }, oo = {
|
|
|
5014
5014
|
var b;
|
|
5015
5015
|
const me = (b = $.features) == null ? void 0 : b[0];
|
|
5016
5016
|
if (me) {
|
|
5017
|
-
const { iso_a2:
|
|
5017
|
+
const { iso_a2: q, iso_a2_eh: Ie, ISO_A2: rt, admin: at } = me.properties, it = rt ?? q === "-99" ? Ie : q, Se = e.countryMetrics[it];
|
|
5018
5018
|
Se !== void 0 && (m.value = {
|
|
5019
5019
|
label: at,
|
|
5020
5020
|
color: o(Se),
|
|
@@ -5028,8 +5028,8 @@ const io = { class: "legend" }, oo = {
|
|
|
5028
5028
|
g.value = !1;
|
|
5029
5029
|
}), (_ = c.value) == null || _.on("move", de), e.fitToCountry && ie(e.fitToCountry);
|
|
5030
5030
|
}), (h = c.value) == null || h.dragRotate.disable(), (v = c.value) == null || v.keyboard.disable(), (M = c.value) == null || M.touchZoomRotate.disableRotation();
|
|
5031
|
-
} catch (
|
|
5032
|
-
console.error(
|
|
5031
|
+
} catch (E) {
|
|
5032
|
+
console.error(E);
|
|
5033
5033
|
}
|
|
5034
5034
|
}), _t(() => e.countryMetrics, () => {
|
|
5035
5035
|
var h;
|
|
@@ -5047,15 +5047,15 @@ const io = { class: "legend" }, oo = {
|
|
|
5047
5047
|
}
|
|
5048
5048
|
}));
|
|
5049
5049
|
}), _t(() => e.fitToCountry, (h) => {
|
|
5050
|
-
var v, M,
|
|
5050
|
+
var v, M, E;
|
|
5051
5051
|
c.value && h ? ie(h) : !D.value.center && !D.value.zoom ? (v = c.value) == null || v.fitBounds([
|
|
5052
5052
|
[-180, -90],
|
|
5053
5053
|
[180, 90]
|
|
5054
|
-
]) : (D.value.zoom && ((M = c.value) == null || M.setZoom(D.value.zoom)), D.value.center && ((
|
|
5054
|
+
]) : (D.value.zoom && ((M = c.value) == null || M.setZoom(D.value.zoom)), D.value.center && ((E = c.value) == null || E.flyTo({ center: D.value.center })));
|
|
5055
5055
|
}), _t(() => e.bounds, (h, v) => {
|
|
5056
5056
|
if (!h) return;
|
|
5057
|
-
const M = h == null ? void 0 : h.flat(),
|
|
5058
|
-
!(M &&
|
|
5057
|
+
const M = h == null ? void 0 : h.flat(), E = v == null ? void 0 : v.flat();
|
|
5058
|
+
!(M && E && M.length === E.length && M.every((W, z) => Math.round(W * 100) / 100 === Math.round(E[z] * 100) / 100)) && c.value && c.value.fitBounds(h);
|
|
5059
5059
|
}), (h, v) => (K(), ae("div", ho, [
|
|
5060
5060
|
T.value ? (K(), ae("div", _o, [
|
|
5061
5061
|
gt(h.$slots, "no-location-icon", {}, () => [
|
|
@@ -5074,7 +5074,7 @@ const io = { class: "legend" }, oo = {
|
|
|
5074
5074
|
X("p", null, xe(ue(i).t("no_location_data_description")), 1)
|
|
5075
5075
|
], !0)
|
|
5076
5076
|
])
|
|
5077
|
-
])) :
|
|
5077
|
+
])) : Re("", !0),
|
|
5078
5078
|
X("div", {
|
|
5079
5079
|
id: ue(y),
|
|
5080
5080
|
class: "analytics-geo-map-container"
|
|
@@ -5085,17 +5085,17 @@ const io = { class: "legend" }, oo = {
|
|
|
5085
5085
|
data: ue(l),
|
|
5086
5086
|
metric: e.metric,
|
|
5087
5087
|
title: B.value
|
|
5088
|
-
}, null, 8, ["data", "metric", "title"])) :
|
|
5088
|
+
}, null, 8, ["data", "metric", "title"])) : Re("", !0),
|
|
5089
5089
|
g.value && m.value ? (K(), on(yo, {
|
|
5090
5090
|
key: 2,
|
|
5091
5091
|
data: m.value,
|
|
5092
5092
|
left: F.value.left,
|
|
5093
5093
|
"show-value": e.showTooltipValue,
|
|
5094
5094
|
top: F.value.top
|
|
5095
|
-
}, null, 8, ["data", "left", "show-value", "top"])) :
|
|
5095
|
+
}, null, 8, ["data", "left", "show-value", "top"])) : Re("", !0)
|
|
5096
5096
|
]));
|
|
5097
5097
|
}
|
|
5098
|
-
}), ko = /* @__PURE__ */
|
|
5098
|
+
}), ko = /* @__PURE__ */ It(xo, [["__scopeId", "data-v-4e998083"]]);
|
|
5099
5099
|
export {
|
|
5100
5100
|
ko as AnalyticsGeoMap,
|
|
5101
5101
|
ao as debounce,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/analytics-geo-map",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.39",
|
|
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.59.0",
|
|
51
51
|
"vue": "^3.5.35",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
52
|
+
"@kong-ui-public/i18n": "^2.4.6",
|
|
53
|
+
"maplibre-gl": "^5.24.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@kong/icons": "^1.58.0",
|
|
57
57
|
"geobuf": "^3.0.2",
|
|
58
|
-
"@kong-ui-public/analytics-utilities": "^12.
|
|
58
|
+
"@kong-ui-public/analytics-utilities": "^12.18.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"dev": "cross-env USE_SANDBOX=true vite",
|