@kong-ui-public/analytics-utilities 11.3.1 → 11.3.2-pr.2515.319073bf9.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/types/utils/GeoLookup.d.ts +4 -0
- package/dist/types/utils/GeoLookup.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/vitals-utilities.cjs +1 -1
- package/dist/vitals-utilities.cjs.map +1 -1
- package/dist/vitals-utilities.es.js +240 -234
- package/dist/vitals-utilities.es.js.map +1 -1
- package/dist/vitals-utilities.umd.js +1 -1
- package/dist/vitals-utilities.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var b = (e, t, n) =>
|
|
4
|
-
const
|
|
1
|
+
var zr = Object.defineProperty;
|
|
2
|
+
var Br = (e, t, n) => t in e ? zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var b = (e, t, n) => Br(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
const Oo = 3e4, vo = 250, Eo = "analytics-query-provider";
|
|
5
5
|
var 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.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e))(h || {});
|
|
6
|
-
const
|
|
6
|
+
const xo = [
|
|
7
7
|
"horizontal_bar",
|
|
8
8
|
"vertical_bar",
|
|
9
9
|
"timeseries_line",
|
|
@@ -11,7 +11,7 @@ const Eo = [
|
|
|
11
11
|
"timeseries_bar",
|
|
12
12
|
"donut",
|
|
13
13
|
"single_value"
|
|
14
|
-
],
|
|
14
|
+
], Vr = ["in", "not_in", "selector"], Io = ["=", "!="], No = ["=", "!=", "<", ">", "<=", ">="], Xr = ["empty", "not_empty"], Po = ["starts_with", "ends_with"], Co = ["absolute", "relative"], $r = [
|
|
15
15
|
"15m",
|
|
16
16
|
"1h",
|
|
17
17
|
"6h",
|
|
@@ -65,7 +65,7 @@ const Eo = [
|
|
|
65
65
|
"response_source",
|
|
66
66
|
"data_plane_node_version",
|
|
67
67
|
"realm"
|
|
68
|
-
], Se = ie(nn),
|
|
68
|
+
], Se = ie(nn), Zr = [
|
|
69
69
|
...tn,
|
|
70
70
|
"response_latency_p99",
|
|
71
71
|
"response_latency_p95",
|
|
@@ -106,7 +106,7 @@ const Eo = [
|
|
|
106
106
|
"status_code",
|
|
107
107
|
"status_code_grouped",
|
|
108
108
|
"ai_plugin"
|
|
109
|
-
], Oe = ie(rn),
|
|
109
|
+
], Oe = ie(rn), Qr = [
|
|
110
110
|
"total_tokens",
|
|
111
111
|
"prompt_tokens",
|
|
112
112
|
"completion_tokens",
|
|
@@ -117,7 +117,7 @@ const Eo = [
|
|
|
117
117
|
"llm_latency_average",
|
|
118
118
|
"llm_embeddings_tokens",
|
|
119
119
|
"llm_embeddings_cost"
|
|
120
|
-
],
|
|
120
|
+
], Kr = [
|
|
121
121
|
"api",
|
|
122
122
|
"api_product",
|
|
123
123
|
"api_product_version",
|
|
@@ -151,7 +151,7 @@ const Eo = [
|
|
|
151
151
|
"upstream_uri",
|
|
152
152
|
"upstream_status_code_grouped",
|
|
153
153
|
"websocket"
|
|
154
|
-
],
|
|
154
|
+
], Jr = ie(Kr), ea = [
|
|
155
155
|
"auth_type",
|
|
156
156
|
"client_ip",
|
|
157
157
|
"country_code",
|
|
@@ -167,7 +167,7 @@ const Eo = [
|
|
|
167
167
|
"service_protocol",
|
|
168
168
|
"trace_id",
|
|
169
169
|
"upstream_uri"
|
|
170
|
-
],
|
|
170
|
+
], Ro = ea, ta = [
|
|
171
171
|
"ai_count",
|
|
172
172
|
"latencies_response_ms",
|
|
173
173
|
"latencies_upstream_ms",
|
|
@@ -177,18 +177,18 @@ const Eo = [
|
|
|
177
177
|
"response_header_content_length",
|
|
178
178
|
"status_code",
|
|
179
179
|
"upstream_status_code"
|
|
180
|
-
],
|
|
180
|
+
], na = ie(ta), ko = [
|
|
181
181
|
"15M",
|
|
182
182
|
"1H",
|
|
183
183
|
"6H",
|
|
184
184
|
"12H",
|
|
185
185
|
"24H",
|
|
186
186
|
"7D"
|
|
187
|
-
],
|
|
187
|
+
], Go = ["basic", "api_usage", "llm_usage"], ra = {
|
|
188
188
|
basic: new Set(De),
|
|
189
189
|
api_usage: new Set(Se),
|
|
190
190
|
llm_usage: new Set(Oe)
|
|
191
|
-
},
|
|
191
|
+
}, Ao = (e, t) => t.filter((n) => ra[e].has(n.field)), an = [
|
|
192
192
|
{ code: "AF", name: "Afghanistan" },
|
|
193
193
|
{ code: "AX", name: "Aland Islands" },
|
|
194
194
|
{ code: "AL", name: "Albania" },
|
|
@@ -435,7 +435,7 @@ const Eo = [
|
|
|
435
435
|
{ code: "YE", name: "Yemen" },
|
|
436
436
|
{ code: "ZM", name: "Zambia" },
|
|
437
437
|
{ code: "ZW", name: "Zimbabwe" }
|
|
438
|
-
],
|
|
438
|
+
], Yo = [
|
|
439
439
|
"horizontal_bar",
|
|
440
440
|
"vertical_bar",
|
|
441
441
|
"gauge",
|
|
@@ -451,9 +451,9 @@ const Eo = [
|
|
|
451
451
|
type: "string"
|
|
452
452
|
}, L = {
|
|
453
453
|
type: "string"
|
|
454
|
-
}, an = {
|
|
455
|
-
type: "boolean"
|
|
456
454
|
}, on = {
|
|
455
|
+
type: "boolean"
|
|
456
|
+
}, sn = {
|
|
457
457
|
type: ["object", "array"],
|
|
458
458
|
items: {
|
|
459
459
|
type: "string"
|
|
@@ -484,10 +484,10 @@ const Eo = [
|
|
|
484
484
|
stacked: {
|
|
485
485
|
type: "boolean"
|
|
486
486
|
},
|
|
487
|
-
chart_dataset_colors:
|
|
487
|
+
chart_dataset_colors: sn,
|
|
488
488
|
synthetics_data_key: oe,
|
|
489
489
|
chart_title: L,
|
|
490
|
-
allow_csv_export:
|
|
490
|
+
allow_csv_export: on
|
|
491
491
|
},
|
|
492
492
|
required: ["type"],
|
|
493
493
|
additionalProperties: !1
|
|
@@ -524,10 +524,10 @@ const Eo = [
|
|
|
524
524
|
items: oa
|
|
525
525
|
}
|
|
526
526
|
},
|
|
527
|
-
chart_dataset_colors:
|
|
527
|
+
chart_dataset_colors: sn,
|
|
528
528
|
synthetics_data_key: oe,
|
|
529
529
|
chart_title: L,
|
|
530
|
-
allow_csv_export:
|
|
530
|
+
allow_csv_export: on
|
|
531
531
|
},
|
|
532
532
|
required: ["type"],
|
|
533
533
|
additionalProperties: !1
|
|
@@ -628,7 +628,7 @@ const Eo = [
|
|
|
628
628
|
chart_title: L,
|
|
629
629
|
fit_to_country: {
|
|
630
630
|
type: "string",
|
|
631
|
-
enum:
|
|
631
|
+
enum: an.map((e) => e.code)
|
|
632
632
|
},
|
|
633
633
|
legend: {
|
|
634
634
|
type: "boolean",
|
|
@@ -666,7 +666,7 @@ const Eo = [
|
|
|
666
666
|
},
|
|
667
667
|
time_range: {
|
|
668
668
|
type: "string",
|
|
669
|
-
enum:
|
|
669
|
+
enum: $r,
|
|
670
670
|
default: "1h"
|
|
671
671
|
}
|
|
672
672
|
},
|
|
@@ -756,7 +756,7 @@ const Eo = [
|
|
|
756
756
|
},
|
|
757
757
|
operator: {
|
|
758
758
|
type: "string",
|
|
759
|
-
enum:
|
|
759
|
+
enum: Vr
|
|
760
760
|
},
|
|
761
761
|
value: {
|
|
762
762
|
type: "array",
|
|
@@ -782,7 +782,7 @@ const Eo = [
|
|
|
782
782
|
},
|
|
783
783
|
operator: {
|
|
784
784
|
type: "string",
|
|
785
|
-
enum:
|
|
785
|
+
enum: Xr
|
|
786
786
|
}
|
|
787
787
|
},
|
|
788
788
|
required: [
|
|
@@ -803,7 +803,7 @@ const Eo = [
|
|
|
803
803
|
"api_usage"
|
|
804
804
|
]
|
|
805
805
|
},
|
|
806
|
-
metrics: Xe(
|
|
806
|
+
metrics: Xe(Zr),
|
|
807
807
|
dimensions: $e(nn),
|
|
808
808
|
filters: ve(Se),
|
|
809
809
|
...Ve
|
|
@@ -837,7 +837,7 @@ const Eo = [
|
|
|
837
837
|
"llm_usage"
|
|
838
838
|
]
|
|
839
839
|
},
|
|
840
|
-
metrics: Xe(
|
|
840
|
+
metrics: Xe(Qr),
|
|
841
841
|
dimensions: $e(rn),
|
|
842
842
|
filters: ve(Oe),
|
|
843
843
|
...Ve
|
|
@@ -919,7 +919,7 @@ const Eo = [
|
|
|
919
919
|
},
|
|
920
920
|
required: ["type", "definition", "layout"],
|
|
921
921
|
additionalProperties: !1
|
|
922
|
-
},
|
|
922
|
+
}, Ho = {
|
|
923
923
|
type: "object",
|
|
924
924
|
properties: {
|
|
925
925
|
tiles: {
|
|
@@ -938,10 +938,10 @@ const Eo = [
|
|
|
938
938
|
},
|
|
939
939
|
required: ["tiles"],
|
|
940
940
|
additionalProperties: !1
|
|
941
|
-
},
|
|
941
|
+
}, Fo = (e) => {
|
|
942
942
|
const t = [];
|
|
943
|
-
return De.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (
|
|
944
|
-
},
|
|
943
|
+
return De.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (Jr.includes(e) || na.includes(e)) && t.push("requests"), t;
|
|
944
|
+
}, cn = 6048e5, Da = 864e5, Sa = 60, Oa = 3600, Rt = Symbol.for("constructDateFrom");
|
|
945
945
|
function C(e, t) {
|
|
946
946
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Rt in e ? e[Rt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
947
947
|
}
|
|
@@ -976,7 +976,7 @@ function Y(e, t) {
|
|
|
976
976
|
function pe(e, t) {
|
|
977
977
|
return Y(e, { ...t, weekStartsOn: 1 });
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function un(e, t) {
|
|
980
980
|
const n = D(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = C(n, 0);
|
|
981
981
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
982
982
|
const s = pe(i), u = C(n, 0);
|
|
@@ -1018,7 +1018,7 @@ function Ia(e, t, n) {
|
|
|
1018
1018
|
return Math.round((d - f) / Da);
|
|
1019
1019
|
}
|
|
1020
1020
|
function Na(e, t) {
|
|
1021
|
-
const n =
|
|
1021
|
+
const n = un(e, t), r = C(e, 0);
|
|
1022
1022
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), pe(r);
|
|
1023
1023
|
}
|
|
1024
1024
|
function Pa(e) {
|
|
@@ -1472,9 +1472,9 @@ function fi(e, t) {
|
|
|
1472
1472
|
}
|
|
1473
1473
|
function hi(e, t) {
|
|
1474
1474
|
const n = D(e, t == null ? void 0 : t.in), r = +pe(n) - +Na(n);
|
|
1475
|
-
return Math.round(r /
|
|
1475
|
+
return Math.round(r / cn) + 1;
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function ln(e, t) {
|
|
1478
1478
|
var _, y, g, x;
|
|
1479
1479
|
const n = D(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = se(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((y = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((x = (g = i.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, u = C((t == null ? void 0 : t.in) || e, 0);
|
|
1480
1480
|
u.setFullYear(r + 1, 0, s), u.setHours(0, 0, 0, 0);
|
|
@@ -1485,12 +1485,12 @@ function un(e, t) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
function yi(e, t) {
|
|
1487
1487
|
var d, f, m, _;
|
|
1488
|
-
const n = se(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((_ = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i =
|
|
1488
|
+
const n = se(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((_ = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i = ln(e, t), s = C((t == null ? void 0 : t.in) || e, 0);
|
|
1489
1489
|
return s.setFullYear(i, 0, r), s.setHours(0, 0, 0, 0), Y(s, t);
|
|
1490
1490
|
}
|
|
1491
1491
|
function gi(e, t) {
|
|
1492
1492
|
const n = D(e, t == null ? void 0 : t.in), r = +Y(n, t) - +yi(n, t);
|
|
1493
|
-
return Math.round(r /
|
|
1493
|
+
return Math.round(r / cn) + 1;
|
|
1494
1494
|
}
|
|
1495
1495
|
function p(e, t) {
|
|
1496
1496
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
@@ -1583,7 +1583,7 @@ const F = {
|
|
|
1583
1583
|
},
|
|
1584
1584
|
// Local week-numbering year
|
|
1585
1585
|
Y: function(e, t, n, r) {
|
|
1586
|
-
const i =
|
|
1586
|
+
const i = ln(e, r), s = i > 0 ? i : 1 - i;
|
|
1587
1587
|
if (t === "YY") {
|
|
1588
1588
|
const u = s % 100;
|
|
1589
1589
|
return p(u, 2);
|
|
@@ -1592,7 +1592,7 @@ const F = {
|
|
|
1592
1592
|
},
|
|
1593
1593
|
// ISO week-numbering year
|
|
1594
1594
|
R: function(e, t) {
|
|
1595
|
-
const n =
|
|
1595
|
+
const n = un(e);
|
|
1596
1596
|
return p(n, t.length);
|
|
1597
1597
|
},
|
|
1598
1598
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -2067,7 +2067,7 @@ const Ft = (e, t) => {
|
|
|
2067
2067
|
default:
|
|
2068
2068
|
return t.date({ width: "full" });
|
|
2069
2069
|
}
|
|
2070
|
-
},
|
|
2070
|
+
}, dn = (e, t) => {
|
|
2071
2071
|
switch (e) {
|
|
2072
2072
|
case "p":
|
|
2073
2073
|
return t.time({ width: "short" });
|
|
@@ -2099,9 +2099,9 @@ const Ft = (e, t) => {
|
|
|
2099
2099
|
s = t.dateTime({ width: "full" });
|
|
2100
2100
|
break;
|
|
2101
2101
|
}
|
|
2102
|
-
return s.replace("{{date}}", Ft(r, t)).replace("{{time}}",
|
|
2102
|
+
return s.replace("{{date}}", Ft(r, t)).replace("{{time}}", dn(i, t));
|
|
2103
2103
|
}, _i = {
|
|
2104
|
-
p:
|
|
2104
|
+
p: dn,
|
|
2105
2105
|
P: pi
|
|
2106
2106
|
}, wi = /^D+$/, bi = /^Y+$/, Ti = ["D", "DD", "YY", "YYYY"];
|
|
2107
2107
|
function Mi(e) {
|
|
@@ -2119,7 +2119,7 @@ function Oi(e, t, n) {
|
|
|
2119
2119
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2120
2120
|
}
|
|
2121
2121
|
const vi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ei = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xi = /^'([^]*?)'?$/, Ii = /''/g, Ni = /[a-zA-Z]/;
|
|
2122
|
-
function
|
|
2122
|
+
function mn(e, t, n) {
|
|
2123
2123
|
var _, y, g, x, I, N, R, W;
|
|
2124
2124
|
const r = se(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? mi, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((y = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, u = (n == null ? void 0 : n.weekStartsOn) ?? ((N = (I = n == null ? void 0 : n.locale) == null ? void 0 : I.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((W = (R = r.locale) == null ? void 0 : R.options) == null ? void 0 : W.weekStartsOn) ?? 0, d = D(e, n == null ? void 0 : n.in);
|
|
2125
2125
|
if (!Ca(d))
|
|
@@ -2183,7 +2183,7 @@ function Gi(e) {
|
|
|
2183
2183
|
const t = e / Sa;
|
|
2184
2184
|
return Math.trunc(t);
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function fn(e, t, n) {
|
|
2187
2187
|
return va(e, -1, n);
|
|
2188
2188
|
}
|
|
2189
2189
|
function qt(e, t, n) {
|
|
@@ -2422,7 +2422,7 @@ function Xt(e) {
|
|
|
2422
2422
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2423
2423
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2424
2424
|
}
|
|
2425
|
-
const
|
|
2425
|
+
const hn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ue = 36e5, $t = 6e4, Ki = 2, O = {
|
|
2426
2426
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2427
2427
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2428
2428
|
// year tokens
|
|
@@ -2454,7 +2454,7 @@ const fn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
2454
2454
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2455
2455
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2456
2456
|
// time zone tokens (to identify the presence of a tz)
|
|
2457
|
-
timeZone:
|
|
2457
|
+
timeZone: hn
|
|
2458
2458
|
};
|
|
2459
2459
|
function be(e, t = {}) {
|
|
2460
2460
|
if (arguments.length < 1)
|
|
@@ -2568,7 +2568,7 @@ function Zt(e, t, n) {
|
|
|
2568
2568
|
return r.setUTCDate(r.getUTCDate() + s), r;
|
|
2569
2569
|
}
|
|
2570
2570
|
const ro = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ao = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2571
|
-
function
|
|
2571
|
+
function yn(e) {
|
|
2572
2572
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2573
2573
|
}
|
|
2574
2574
|
function Qt(e, t, n) {
|
|
@@ -2577,7 +2577,7 @@ function Qt(e, t, n) {
|
|
|
2577
2577
|
if (n != null) {
|
|
2578
2578
|
if (n < 1)
|
|
2579
2579
|
return !1;
|
|
2580
|
-
const r =
|
|
2580
|
+
const r = yn(e);
|
|
2581
2581
|
if (r && n > ao[t] || !r && n > ro[t])
|
|
2582
2582
|
return !1;
|
|
2583
2583
|
}
|
|
@@ -2586,7 +2586,7 @@ function Qt(e, t, n) {
|
|
|
2586
2586
|
function io(e, t) {
|
|
2587
2587
|
if (t < 1)
|
|
2588
2588
|
return !1;
|
|
2589
|
-
const n =
|
|
2589
|
+
const n = yn(e);
|
|
2590
2590
|
return !(n && t > 366 || !n && t > 365);
|
|
2591
2591
|
}
|
|
2592
2592
|
function Kt(e, t) {
|
|
@@ -2608,9 +2608,9 @@ function so(e, t, n = {}) {
|
|
|
2608
2608
|
return f ? m.substring(0, d - 1) + m.substring(d + 1) : m;
|
|
2609
2609
|
}, t);
|
|
2610
2610
|
}
|
|
2611
|
-
return
|
|
2611
|
+
return mn(e, t, n);
|
|
2612
2612
|
}
|
|
2613
|
-
function
|
|
2613
|
+
function gn(e, t, n) {
|
|
2614
2614
|
e = be(e, n);
|
|
2615
2615
|
const r = ce(t, e, !0), i = new Date(e.getTime() - r), s = /* @__PURE__ */ new Date(0);
|
|
2616
2616
|
return s.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), s.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), s;
|
|
@@ -2620,20 +2620,20 @@ function co(e, t, n, r) {
|
|
|
2620
2620
|
...r,
|
|
2621
2621
|
timeZone: t,
|
|
2622
2622
|
originalDate: e
|
|
2623
|
-
}, so(
|
|
2623
|
+
}, so(gn(e, t, { timeZone: r.timeZone }), n, r);
|
|
2624
2624
|
}
|
|
2625
2625
|
function uo(e, t, n) {
|
|
2626
|
-
if (typeof e == "string" && !e.match(
|
|
2626
|
+
if (typeof e == "string" && !e.match(hn))
|
|
2627
2627
|
return be(e, { ...n, timeZone: t });
|
|
2628
2628
|
e = be(e, n);
|
|
2629
2629
|
const r = Ze(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = ce(t, new Date(r));
|
|
2630
2630
|
return new Date(r + i);
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2632
|
+
function pn(e, t) {
|
|
2633
2633
|
return -ce(e, t);
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2636
|
-
return
|
|
2635
|
+
function Lo(e) {
|
|
2636
|
+
return mn(e, "yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
|
|
2637
2637
|
}
|
|
2638
2638
|
function Jt(e, t = {}) {
|
|
2639
2639
|
if (!e)
|
|
@@ -2648,7 +2648,7 @@ function Jt(e, t = {}) {
|
|
|
2648
2648
|
return console.error("Invalid value passed to formatTime", e), "(invalid date)";
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
|
-
function
|
|
2651
|
+
function Wo(e, t) {
|
|
2652
2652
|
return `${Jt(e.getTime())} - ${Jt(t.getTime(), { includeTZ: !0 })}`;
|
|
2653
2653
|
}
|
|
2654
2654
|
const Te = {
|
|
@@ -2666,7 +2666,7 @@ const Te = {
|
|
|
2666
2666
|
weekly: 60 * 60 * 24 * 7 * 1e3,
|
|
2667
2667
|
trend: 0
|
|
2668
2668
|
};
|
|
2669
|
-
function
|
|
2669
|
+
function qo(e, t) {
|
|
2670
2670
|
return e.map((n) => ({
|
|
2671
2671
|
value: n,
|
|
2672
2672
|
label: t.t(`configuration.vitals.reports.granularity.${n}`)
|
|
@@ -2679,19 +2679,19 @@ function lo(e, t) {
|
|
|
2679
2679
|
origin: t
|
|
2680
2680
|
};
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2682
|
+
function Uo(e) {
|
|
2683
2683
|
return e && en.find((n) => e <= Te[n]) || null;
|
|
2684
2684
|
}
|
|
2685
|
-
function
|
|
2685
|
+
function _n(e, t, n, r) {
|
|
2686
2686
|
const i = Te[n];
|
|
2687
2687
|
let s = 0;
|
|
2688
|
-
return i >= Te.daily && (r ? s = -
|
|
2688
|
+
return i >= Te.daily && (r ? s = -pn(r, t) : s = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - s) / i) * i + s);
|
|
2689
2689
|
}
|
|
2690
2690
|
function mo(e, t, n) {
|
|
2691
|
-
return
|
|
2691
|
+
return _n(Math.floor, e, t, n);
|
|
2692
2692
|
}
|
|
2693
|
-
function
|
|
2694
|
-
return
|
|
2693
|
+
function wn(e, t, n) {
|
|
2694
|
+
return _n(Math.ceil, e, t, n);
|
|
2695
2695
|
}
|
|
2696
2696
|
class Ee {
|
|
2697
2697
|
constructor(t, n, r) {
|
|
@@ -2733,7 +2733,7 @@ class Ee {
|
|
|
2733
2733
|
return Lt(this.endDate());
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
2736
|
-
class
|
|
2736
|
+
class jo extends Ee {
|
|
2737
2737
|
constructor(n, r, i, s, u) {
|
|
2738
2738
|
super(n, i, s);
|
|
2739
2739
|
b(this, "granularity");
|
|
@@ -2743,7 +2743,7 @@ class Uo extends Ee {
|
|
|
2743
2743
|
return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
|
|
2744
2744
|
}
|
|
2745
2745
|
endDate() {
|
|
2746
|
-
return
|
|
2746
|
+
return wn(this.timeframe.rawEnd(), this.granularity, this.tz);
|
|
2747
2747
|
}
|
|
2748
2748
|
granularityMs() {
|
|
2749
2749
|
return Te[this.granularity];
|
|
@@ -2754,13 +2754,13 @@ class fo extends Ee {
|
|
|
2754
2754
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
|
|
2755
2755
|
}
|
|
2756
2756
|
endDate() {
|
|
2757
|
-
return
|
|
2757
|
+
return wn(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
|
|
2758
2758
|
}
|
|
2759
2759
|
granularityMs() {
|
|
2760
2760
|
return this.endDate().getTime() - this.startDate().getTime();
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
|
-
class
|
|
2763
|
+
class zo extends fo {
|
|
2764
2764
|
startDate() {
|
|
2765
2765
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
|
|
2766
2766
|
}
|
|
@@ -2775,21 +2775,21 @@ function ho(e) {
|
|
|
2775
2775
|
var Me = { exports: {} };
|
|
2776
2776
|
Me.exports;
|
|
2777
2777
|
(function(e, t) {
|
|
2778
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, s = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", f = "[object Date]", m = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", x = "[object Number]", I = "[object Object]", N = "[object Promise]", R = "[object RegExp]", W = "[object Set]", S = "[object String]", T = "[object Symbol]", q = "[object WeakMap]", Ke = "[object ArrayBuffer]", ue = "[object DataView]", Je = "[object Float32Array]", et = "[object Float64Array]", tt = "[object Int8Array]", nt = "[object Int16Array]", rt = "[object Int32Array]", at = "[object Uint8Array]", it = "[object Uint8ClampedArray]", ot = "[object Uint16Array]", st = "[object Uint32Array]",
|
|
2778
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, s = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", f = "[object Date]", m = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", x = "[object Number]", I = "[object Object]", N = "[object Promise]", R = "[object RegExp]", W = "[object Set]", S = "[object String]", T = "[object Symbol]", q = "[object WeakMap]", Ke = "[object ArrayBuffer]", ue = "[object DataView]", Je = "[object Float32Array]", et = "[object Float64Array]", tt = "[object Int8Array]", nt = "[object Int16Array]", rt = "[object Int32Array]", at = "[object Uint8Array]", it = "[object Uint8ClampedArray]", ot = "[object Uint16Array]", st = "[object Uint32Array]", Tn = /[\\^$.*+?()[\]{}|]/g, Mn = /\w*$/, Dn = /^\[object .+?Constructor\]$/, Sn = /^(?:0|[1-9]\d*)$/, w = {};
|
|
2779
2779
|
w[s] = w[u] = w[Ke] = w[ue] = w[d] = w[f] = w[Je] = w[et] = w[tt] = w[nt] = w[rt] = w[g] = w[x] = w[I] = w[R] = w[W] = w[S] = w[T] = w[at] = w[it] = w[ot] = w[st] = !0, w[m] = w[_] = w[q] = !1;
|
|
2780
|
-
var
|
|
2781
|
-
function
|
|
2780
|
+
var On = typeof ge == "object" && ge && ge.Object === Object && ge, vn = typeof self == "object" && self && self.Object === Object && self, k = On || vn || Function("return this")(), ct = t && !t.nodeType && t, ut = ct && !0 && e && !e.nodeType && e, En = ut && ut.exports === ct;
|
|
2781
|
+
function xn(a, o) {
|
|
2782
2782
|
return a.set(o[0], o[1]), a;
|
|
2783
2783
|
}
|
|
2784
|
-
function
|
|
2784
|
+
function In(a, o) {
|
|
2785
2785
|
return a.add(o), a;
|
|
2786
2786
|
}
|
|
2787
|
-
function
|
|
2787
|
+
function Nn(a, o) {
|
|
2788
2788
|
for (var c = -1, l = a ? a.length : 0; ++c < l && o(a[c], c, a) !== !1; )
|
|
2789
2789
|
;
|
|
2790
2790
|
return a;
|
|
2791
2791
|
}
|
|
2792
|
-
function
|
|
2792
|
+
function Pn(a, o) {
|
|
2793
2793
|
for (var c = -1, l = o.length, M = a.length; ++c < l; )
|
|
2794
2794
|
a[M + c] = o[c];
|
|
2795
2795
|
return a;
|
|
@@ -2799,12 +2799,12 @@ Me.exports;
|
|
|
2799
2799
|
c = o(c, a[M], M, a);
|
|
2800
2800
|
return c;
|
|
2801
2801
|
}
|
|
2802
|
-
function
|
|
2802
|
+
function Cn(a, o) {
|
|
2803
2803
|
for (var c = -1, l = Array(a); ++c < a; )
|
|
2804
2804
|
l[c] = o(c);
|
|
2805
2805
|
return l;
|
|
2806
2806
|
}
|
|
2807
|
-
function
|
|
2807
|
+
function Rn(a, o) {
|
|
2808
2808
|
return a == null ? void 0 : a[o];
|
|
2809
2809
|
}
|
|
2810
2810
|
function dt(a) {
|
|
@@ -2833,12 +2833,12 @@ Me.exports;
|
|
|
2833
2833
|
c[++o] = l;
|
|
2834
2834
|
}), c;
|
|
2835
2835
|
}
|
|
2836
|
-
var
|
|
2836
|
+
var kn = Array.prototype, Gn = Function.prototype, le = Object.prototype, Ie = k["__core-js_shared__"], ht = function() {
|
|
2837
2837
|
var a = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
|
|
2838
2838
|
return a ? "Symbol(src)_1." + a : "";
|
|
2839
|
-
}(), yt =
|
|
2840
|
-
"^" + yt.call(H).replace(
|
|
2841
|
-
), gt =
|
|
2839
|
+
}(), yt = Gn.toString, H = le.hasOwnProperty, de = le.toString, An = RegExp(
|
|
2840
|
+
"^" + yt.call(H).replace(Tn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2841
|
+
), gt = En ? k.Buffer : void 0, pt = k.Symbol, _t = k.Uint8Array, Yn = xe(Object.getPrototypeOf, Object), Hn = Object.create, Fn = le.propertyIsEnumerable, Ln = kn.splice, wt = Object.getOwnPropertySymbols, Wn = gt ? gt.isBuffer : void 0, qn = xe(Object.keys, Object), Ne = $(k, "DataView"), te = $(k, "Map"), Pe = $(k, "Promise"), Ce = $(k, "Set"), Re = $(k, "WeakMap"), ne = $(Object, "create"), Un = z(Ne), jn = z(te), zn = z(Pe), Bn = z(Ce), Vn = z(Re), bt = pt ? pt.prototype : void 0, Tt = bt ? bt.valueOf : void 0;
|
|
2842
2842
|
function U(a) {
|
|
2843
2843
|
var o = -1, c = a ? a.length : 0;
|
|
2844
2844
|
for (this.clear(); ++o < c; ) {
|
|
@@ -2846,13 +2846,13 @@ Me.exports;
|
|
|
2846
2846
|
this.set(l[0], l[1]);
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
|
-
function
|
|
2849
|
+
function Xn() {
|
|
2850
2850
|
this.__data__ = ne ? ne(null) : {};
|
|
2851
2851
|
}
|
|
2852
|
-
function
|
|
2852
|
+
function $n(a) {
|
|
2853
2853
|
return this.has(a) && delete this.__data__[a];
|
|
2854
2854
|
}
|
|
2855
|
-
function
|
|
2855
|
+
function Zn(a) {
|
|
2856
2856
|
var o = this.__data__;
|
|
2857
2857
|
if (ne) {
|
|
2858
2858
|
var c = o[a];
|
|
@@ -2860,15 +2860,15 @@ Me.exports;
|
|
|
2860
2860
|
}
|
|
2861
2861
|
return H.call(o, a) ? o[a] : void 0;
|
|
2862
2862
|
}
|
|
2863
|
-
function
|
|
2863
|
+
function Qn(a) {
|
|
2864
2864
|
var o = this.__data__;
|
|
2865
2865
|
return ne ? o[a] !== void 0 : H.call(o, a);
|
|
2866
2866
|
}
|
|
2867
|
-
function
|
|
2867
|
+
function Kn(a, o) {
|
|
2868
2868
|
var c = this.__data__;
|
|
2869
2869
|
return c[a] = ne && o === void 0 ? r : o, this;
|
|
2870
2870
|
}
|
|
2871
|
-
U.prototype.clear =
|
|
2871
|
+
U.prototype.clear = Xn, U.prototype.delete = $n, U.prototype.get = Zn, U.prototype.has = Qn, U.prototype.set = Kn;
|
|
2872
2872
|
function G(a) {
|
|
2873
2873
|
var o = -1, c = a ? a.length : 0;
|
|
2874
2874
|
for (this.clear(); ++o < c; ) {
|
|
@@ -2876,28 +2876,28 @@ Me.exports;
|
|
|
2876
2876
|
this.set(l[0], l[1]);
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2879
|
+
function Jn() {
|
|
2880
2880
|
this.__data__ = [];
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2882
|
+
function er(a) {
|
|
2883
2883
|
var o = this.__data__, c = me(o, a);
|
|
2884
2884
|
if (c < 0)
|
|
2885
2885
|
return !1;
|
|
2886
2886
|
var l = o.length - 1;
|
|
2887
|
-
return c == l ? o.pop() :
|
|
2887
|
+
return c == l ? o.pop() : Ln.call(o, c, 1), !0;
|
|
2888
2888
|
}
|
|
2889
|
-
function
|
|
2889
|
+
function tr(a) {
|
|
2890
2890
|
var o = this.__data__, c = me(o, a);
|
|
2891
2891
|
return c < 0 ? void 0 : o[c][1];
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2893
|
+
function nr(a) {
|
|
2894
2894
|
return me(this.__data__, a) > -1;
|
|
2895
2895
|
}
|
|
2896
|
-
function
|
|
2896
|
+
function rr(a, o) {
|
|
2897
2897
|
var c = this.__data__, l = me(c, a);
|
|
2898
2898
|
return l < 0 ? c.push([a, o]) : c[l][1] = o, this;
|
|
2899
2899
|
}
|
|
2900
|
-
G.prototype.clear =
|
|
2900
|
+
G.prototype.clear = Jn, G.prototype.delete = er, G.prototype.get = tr, G.prototype.has = nr, G.prototype.set = rr;
|
|
2901
2901
|
function V(a) {
|
|
2902
2902
|
var o = -1, c = a ? a.length : 0;
|
|
2903
2903
|
for (this.clear(); ++o < c; ) {
|
|
@@ -2905,42 +2905,42 @@ Me.exports;
|
|
|
2905
2905
|
this.set(l[0], l[1]);
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function ar() {
|
|
2909
2909
|
this.__data__ = {
|
|
2910
2910
|
hash: new U(),
|
|
2911
2911
|
map: new (te || G)(),
|
|
2912
2912
|
string: new U()
|
|
2913
2913
|
};
|
|
2914
2914
|
}
|
|
2915
|
-
function
|
|
2915
|
+
function ir(a) {
|
|
2916
2916
|
return fe(this, a).delete(a);
|
|
2917
2917
|
}
|
|
2918
|
-
function
|
|
2918
|
+
function or(a) {
|
|
2919
2919
|
return fe(this, a).get(a);
|
|
2920
2920
|
}
|
|
2921
|
-
function
|
|
2921
|
+
function sr(a) {
|
|
2922
2922
|
return fe(this, a).has(a);
|
|
2923
2923
|
}
|
|
2924
|
-
function
|
|
2924
|
+
function cr(a, o) {
|
|
2925
2925
|
return fe(this, a).set(a, o), this;
|
|
2926
2926
|
}
|
|
2927
|
-
V.prototype.clear =
|
|
2927
|
+
V.prototype.clear = ar, V.prototype.delete = ir, V.prototype.get = or, V.prototype.has = sr, V.prototype.set = cr;
|
|
2928
2928
|
function X(a) {
|
|
2929
2929
|
this.__data__ = new G(a);
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function ur() {
|
|
2932
2932
|
this.__data__ = new G();
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function lr(a) {
|
|
2935
2935
|
return this.__data__.delete(a);
|
|
2936
2936
|
}
|
|
2937
|
-
function
|
|
2937
|
+
function dr(a) {
|
|
2938
2938
|
return this.__data__.get(a);
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2940
|
+
function mr(a) {
|
|
2941
2941
|
return this.__data__.has(a);
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2943
|
+
function fr(a, o) {
|
|
2944
2944
|
var c = this.__data__;
|
|
2945
2945
|
if (c instanceof G) {
|
|
2946
2946
|
var l = c.__data__;
|
|
@@ -2950,11 +2950,11 @@ Me.exports;
|
|
|
2950
2950
|
}
|
|
2951
2951
|
return c.set(a, o), this;
|
|
2952
2952
|
}
|
|
2953
|
-
X.prototype.clear =
|
|
2954
|
-
function
|
|
2955
|
-
var c = Ae(a) ||
|
|
2953
|
+
X.prototype.clear = ur, X.prototype.delete = lr, X.prototype.get = dr, X.prototype.has = mr, X.prototype.set = fr;
|
|
2954
|
+
function hr(a, o) {
|
|
2955
|
+
var c = Ae(a) || Hr(a) ? Cn(a.length, String) : [], l = c.length, M = !!l;
|
|
2956
2956
|
for (var v in a)
|
|
2957
|
-
H.call(a, v) && !(M && (v == "length" ||
|
|
2957
|
+
H.call(a, v) && !(M && (v == "length" || kr(v, l))) && c.push(v);
|
|
2958
2958
|
return c;
|
|
2959
2959
|
}
|
|
2960
2960
|
function Mt(a, o, c) {
|
|
@@ -2967,7 +2967,7 @@ Me.exports;
|
|
|
2967
2967
|
return c;
|
|
2968
2968
|
return -1;
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2970
|
+
function yr(a, o) {
|
|
2971
2971
|
return a && Dt(o, Ye(o), a);
|
|
2972
2972
|
}
|
|
2973
2973
|
function ke(a, o, c, l, M, v, A) {
|
|
@@ -2978,21 +2978,21 @@ Me.exports;
|
|
|
2978
2978
|
return a;
|
|
2979
2979
|
var It = Ae(a);
|
|
2980
2980
|
if (It) {
|
|
2981
|
-
if (E =
|
|
2982
|
-
return
|
|
2981
|
+
if (E = Pr(a), !o)
|
|
2982
|
+
return xr(a, E);
|
|
2983
2983
|
} else {
|
|
2984
2984
|
var Z = j(a), Nt = Z == _ || Z == y;
|
|
2985
|
-
if (
|
|
2986
|
-
return
|
|
2985
|
+
if (Lr(a))
|
|
2986
|
+
return Tr(a, o);
|
|
2987
2987
|
if (Z == I || Z == s || Nt && !v) {
|
|
2988
2988
|
if (dt(a))
|
|
2989
2989
|
return v ? a : {};
|
|
2990
|
-
if (E =
|
|
2991
|
-
return
|
|
2990
|
+
if (E = Cr(Nt ? {} : a), !o)
|
|
2991
|
+
return Ir(a, yr(E, a));
|
|
2992
2992
|
} else {
|
|
2993
2993
|
if (!w[Z])
|
|
2994
2994
|
return v ? a : {};
|
|
2995
|
-
E =
|
|
2995
|
+
E = Rr(a, Z, ke, o);
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
2998
|
A || (A = new X());
|
|
@@ -3000,36 +3000,36 @@ Me.exports;
|
|
|
3000
3000
|
if (Pt)
|
|
3001
3001
|
return Pt;
|
|
3002
3002
|
if (A.set(a, E), !It)
|
|
3003
|
-
var Ct = c ?
|
|
3004
|
-
return
|
|
3003
|
+
var Ct = c ? Nr(a) : Ye(a);
|
|
3004
|
+
return Nn(Ct || a, function(He, ye) {
|
|
3005
3005
|
Ct && (ye = He, He = a[ye]), Mt(E, ye, ke(He, o, c, l, ye, a, A));
|
|
3006
3006
|
}), E;
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3009
|
-
return he(a) ?
|
|
3008
|
+
function gr(a) {
|
|
3009
|
+
return he(a) ? Hn(a) : {};
|
|
3010
3010
|
}
|
|
3011
|
-
function
|
|
3011
|
+
function pr(a, o, c) {
|
|
3012
3012
|
var l = o(a);
|
|
3013
|
-
return Ae(a) ? l :
|
|
3013
|
+
return Ae(a) ? l : Pn(l, c(a));
|
|
3014
3014
|
}
|
|
3015
|
-
function
|
|
3015
|
+
function _r(a) {
|
|
3016
3016
|
return de.call(a);
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3019
|
-
if (!he(a) ||
|
|
3018
|
+
function wr(a) {
|
|
3019
|
+
if (!he(a) || Ar(a))
|
|
3020
3020
|
return !1;
|
|
3021
|
-
var o = xt(a) || dt(a) ?
|
|
3021
|
+
var o = xt(a) || dt(a) ? An : Dn;
|
|
3022
3022
|
return o.test(z(a));
|
|
3023
3023
|
}
|
|
3024
|
-
function
|
|
3024
|
+
function br(a) {
|
|
3025
3025
|
if (!Ot(a))
|
|
3026
|
-
return
|
|
3026
|
+
return qn(a);
|
|
3027
3027
|
var o = [];
|
|
3028
3028
|
for (var c in Object(a))
|
|
3029
3029
|
H.call(a, c) && c != "constructor" && o.push(c);
|
|
3030
3030
|
return o;
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3032
|
+
function Tr(a, o) {
|
|
3033
3033
|
if (o)
|
|
3034
3034
|
return a.slice();
|
|
3035
3035
|
var c = new a.constructor(a.length);
|
|
@@ -3039,30 +3039,30 @@ Me.exports;
|
|
|
3039
3039
|
var o = new a.constructor(a.byteLength);
|
|
3040
3040
|
return new _t(o).set(new _t(a)), o;
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function Mr(a, o) {
|
|
3043
3043
|
var c = o ? Ge(a.buffer) : a.buffer;
|
|
3044
3044
|
return new a.constructor(c, a.byteOffset, a.byteLength);
|
|
3045
3045
|
}
|
|
3046
|
-
function
|
|
3046
|
+
function Dr(a, o, c) {
|
|
3047
3047
|
var l = o ? c(mt(a), !0) : mt(a);
|
|
3048
|
-
return lt(l,
|
|
3048
|
+
return lt(l, xn, new a.constructor());
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3051
|
-
var o = new a.constructor(a.source,
|
|
3050
|
+
function Sr(a) {
|
|
3051
|
+
var o = new a.constructor(a.source, Mn.exec(a));
|
|
3052
3052
|
return o.lastIndex = a.lastIndex, o;
|
|
3053
3053
|
}
|
|
3054
|
-
function
|
|
3054
|
+
function Or(a, o, c) {
|
|
3055
3055
|
var l = o ? c(ft(a), !0) : ft(a);
|
|
3056
|
-
return lt(l,
|
|
3056
|
+
return lt(l, In, new a.constructor());
|
|
3057
3057
|
}
|
|
3058
|
-
function
|
|
3058
|
+
function vr(a) {
|
|
3059
3059
|
return Tt ? Object(Tt.call(a)) : {};
|
|
3060
3060
|
}
|
|
3061
|
-
function
|
|
3061
|
+
function Er(a, o) {
|
|
3062
3062
|
var c = o ? Ge(a.buffer) : a.buffer;
|
|
3063
3063
|
return new a.constructor(c, a.byteOffset, a.length);
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function xr(a, o) {
|
|
3066
3066
|
var c = -1, l = a.length;
|
|
3067
3067
|
for (o || (o = Array(l)); ++c < l; )
|
|
3068
3068
|
o[c] = a[c];
|
|
@@ -3076,46 +3076,46 @@ Me.exports;
|
|
|
3076
3076
|
}
|
|
3077
3077
|
return c;
|
|
3078
3078
|
}
|
|
3079
|
-
function
|
|
3079
|
+
function Ir(a, o) {
|
|
3080
3080
|
return Dt(a, St(a), o);
|
|
3081
3081
|
}
|
|
3082
|
-
function
|
|
3083
|
-
return
|
|
3082
|
+
function Nr(a) {
|
|
3083
|
+
return pr(a, Ye, St);
|
|
3084
3084
|
}
|
|
3085
3085
|
function fe(a, o) {
|
|
3086
3086
|
var c = a.__data__;
|
|
3087
|
-
return
|
|
3087
|
+
return Gr(o) ? c[typeof o == "string" ? "string" : "hash"] : c.map;
|
|
3088
3088
|
}
|
|
3089
3089
|
function $(a, o) {
|
|
3090
|
-
var c =
|
|
3091
|
-
return
|
|
3090
|
+
var c = Rn(a, o);
|
|
3091
|
+
return wr(c) ? c : void 0;
|
|
3092
3092
|
}
|
|
3093
|
-
var St = wt ? xe(wt, Object) :
|
|
3093
|
+
var St = wt ? xe(wt, Object) : Ur, j = _r;
|
|
3094
3094
|
(Ne && j(new Ne(new ArrayBuffer(1))) != ue || te && j(new te()) != g || Pe && j(Pe.resolve()) != N || Ce && j(new Ce()) != W || Re && j(new Re()) != q) && (j = function(a) {
|
|
3095
3095
|
var o = de.call(a), c = o == I ? a.constructor : void 0, l = c ? z(c) : void 0;
|
|
3096
3096
|
if (l)
|
|
3097
3097
|
switch (l) {
|
|
3098
|
-
case qn:
|
|
3099
|
-
return ue;
|
|
3100
3098
|
case Un:
|
|
3101
|
-
return
|
|
3099
|
+
return ue;
|
|
3102
3100
|
case jn:
|
|
3103
|
-
return
|
|
3101
|
+
return g;
|
|
3104
3102
|
case zn:
|
|
3105
|
-
return
|
|
3103
|
+
return N;
|
|
3106
3104
|
case Bn:
|
|
3105
|
+
return W;
|
|
3106
|
+
case Vn:
|
|
3107
3107
|
return q;
|
|
3108
3108
|
}
|
|
3109
3109
|
return o;
|
|
3110
3110
|
});
|
|
3111
|
-
function
|
|
3111
|
+
function Pr(a) {
|
|
3112
3112
|
var o = a.length, c = a.constructor(o);
|
|
3113
3113
|
return o && typeof a[0] == "string" && H.call(a, "index") && (c.index = a.index, c.input = a.input), c;
|
|
3114
3114
|
}
|
|
3115
|
-
function
|
|
3116
|
-
return typeof a.constructor == "function" && !Ot(a) ?
|
|
3115
|
+
function Cr(a) {
|
|
3116
|
+
return typeof a.constructor == "function" && !Ot(a) ? gr(Yn(a)) : {};
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function Rr(a, o, c, l) {
|
|
3119
3119
|
var M = a.constructor;
|
|
3120
3120
|
switch (o) {
|
|
3121
3121
|
case Ke:
|
|
@@ -3124,7 +3124,7 @@ Me.exports;
|
|
|
3124
3124
|
case f:
|
|
3125
3125
|
return new M(+a);
|
|
3126
3126
|
case ue:
|
|
3127
|
-
return
|
|
3127
|
+
return Mr(a, l);
|
|
3128
3128
|
case Je:
|
|
3129
3129
|
case et:
|
|
3130
3130
|
case tt:
|
|
@@ -3134,28 +3134,28 @@ Me.exports;
|
|
|
3134
3134
|
case it:
|
|
3135
3135
|
case ot:
|
|
3136
3136
|
case st:
|
|
3137
|
-
return
|
|
3137
|
+
return Er(a, l);
|
|
3138
3138
|
case g:
|
|
3139
|
-
return
|
|
3139
|
+
return Dr(a, l, c);
|
|
3140
3140
|
case x:
|
|
3141
3141
|
case S:
|
|
3142
3142
|
return new M(a);
|
|
3143
3143
|
case R:
|
|
3144
|
-
return
|
|
3144
|
+
return Sr(a);
|
|
3145
3145
|
case W:
|
|
3146
|
-
return
|
|
3146
|
+
return Or(a, l, c);
|
|
3147
3147
|
case T:
|
|
3148
|
-
return
|
|
3148
|
+
return vr(a);
|
|
3149
3149
|
}
|
|
3150
3150
|
}
|
|
3151
|
-
function
|
|
3152
|
-
return o = o ?? i, !!o && (typeof a == "number" ||
|
|
3151
|
+
function kr(a, o) {
|
|
3152
|
+
return o = o ?? i, !!o && (typeof a == "number" || Sn.test(a)) && a > -1 && a % 1 == 0 && a < o;
|
|
3153
3153
|
}
|
|
3154
|
-
function
|
|
3154
|
+
function Gr(a) {
|
|
3155
3155
|
var o = typeof a;
|
|
3156
3156
|
return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? a !== "__proto__" : a === null;
|
|
3157
3157
|
}
|
|
3158
|
-
function
|
|
3158
|
+
function Ar(a) {
|
|
3159
3159
|
return !!ht && ht in a;
|
|
3160
3160
|
}
|
|
3161
3161
|
function Ot(a) {
|
|
@@ -3175,50 +3175,50 @@ Me.exports;
|
|
|
3175
3175
|
}
|
|
3176
3176
|
return "";
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function Yr(a) {
|
|
3179
3179
|
return ke(a, !0, !0);
|
|
3180
3180
|
}
|
|
3181
3181
|
function vt(a, o) {
|
|
3182
3182
|
return a === o || a !== a && o !== o;
|
|
3183
3183
|
}
|
|
3184
|
-
function
|
|
3185
|
-
return
|
|
3184
|
+
function Hr(a) {
|
|
3185
|
+
return Fr(a) && H.call(a, "callee") && (!Fn.call(a, "callee") || de.call(a) == s);
|
|
3186
3186
|
}
|
|
3187
3187
|
var Ae = Array.isArray;
|
|
3188
3188
|
function Et(a) {
|
|
3189
|
-
return a != null &&
|
|
3189
|
+
return a != null && Wr(a.length) && !xt(a);
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3192
|
-
return
|
|
3191
|
+
function Fr(a) {
|
|
3192
|
+
return qr(a) && Et(a);
|
|
3193
3193
|
}
|
|
3194
|
-
var
|
|
3194
|
+
var Lr = Wn || jr;
|
|
3195
3195
|
function xt(a) {
|
|
3196
3196
|
var o = he(a) ? de.call(a) : "";
|
|
3197
3197
|
return o == _ || o == y;
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3199
|
+
function Wr(a) {
|
|
3200
3200
|
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= i;
|
|
3201
3201
|
}
|
|
3202
3202
|
function he(a) {
|
|
3203
3203
|
var o = typeof a;
|
|
3204
3204
|
return !!a && (o == "object" || o == "function");
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function qr(a) {
|
|
3207
3207
|
return !!a && typeof a == "object";
|
|
3208
3208
|
}
|
|
3209
3209
|
function Ye(a) {
|
|
3210
|
-
return Et(a) ?
|
|
3210
|
+
return Et(a) ? hr(a) : br(a);
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3212
|
+
function Ur() {
|
|
3213
3213
|
return [];
|
|
3214
3214
|
}
|
|
3215
|
-
function
|
|
3215
|
+
function jr() {
|
|
3216
3216
|
return !1;
|
|
3217
3217
|
}
|
|
3218
|
-
e.exports =
|
|
3218
|
+
e.exports = Yr;
|
|
3219
3219
|
})(Me, Me.exports);
|
|
3220
3220
|
var yo = Me.exports;
|
|
3221
|
-
const go = /* @__PURE__ */ ho(yo), ee = (e, t) => new Date(e.getTime() -
|
|
3221
|
+
const go = /* @__PURE__ */ ho(yo), ee = (e, t) => new Date(e.getTime() - pn(t, e));
|
|
3222
3222
|
class P {
|
|
3223
3223
|
constructor(t) {
|
|
3224
3224
|
b(this, "timeframeText");
|
|
@@ -3288,7 +3288,7 @@ class P {
|
|
|
3288
3288
|
if (!t)
|
|
3289
3289
|
return /* @__PURE__ */ new Date();
|
|
3290
3290
|
const n = uo(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
3291
|
-
return
|
|
3291
|
+
return gn(n, t);
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
3294
3294
|
class po extends P {
|
|
@@ -3328,7 +3328,7 @@ class bo extends P {
|
|
|
3328
3328
|
return t && (n = ee(n, t)), n;
|
|
3329
3329
|
}
|
|
3330
3330
|
rawStart(t) {
|
|
3331
|
-
let n = J(
|
|
3331
|
+
let n = J(fn(this.tzAdjustedDate(t)));
|
|
3332
3332
|
return t && (n = ee(n, t)), n;
|
|
3333
3333
|
}
|
|
3334
3334
|
}
|
|
@@ -3495,7 +3495,7 @@ const To = /* @__PURE__ */ new Map([
|
|
|
3495
3495
|
timeframeText: "Month",
|
|
3496
3496
|
timeframeLength: () => {
|
|
3497
3497
|
let e = 0;
|
|
3498
|
-
const t = J(/* @__PURE__ */ new Date()), n = J(
|
|
3498
|
+
const t = J(/* @__PURE__ */ new Date()), n = J(fn(/* @__PURE__ */ new Date()));
|
|
3499
3499
|
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = Mo(t, n)), 60 * 60 * 24 * Ci((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + ki(e);
|
|
3500
3500
|
},
|
|
3501
3501
|
defaultResponseGranularity: "daily",
|
|
@@ -3505,7 +3505,7 @@ const To = /* @__PURE__ */ new Map([
|
|
|
3505
3505
|
})
|
|
3506
3506
|
]
|
|
3507
3507
|
]);
|
|
3508
|
-
function
|
|
3508
|
+
function Bo(e) {
|
|
3509
3509
|
const t = new Date(e.start), n = new Date(e.end), r = (n.getTime() - t.getTime()) / 1e3;
|
|
3510
3510
|
return e.timePeriodsKey && go(To.get(e.timePeriodsKey)) || new P({
|
|
3511
3511
|
key: "custom",
|
|
@@ -3520,14 +3520,14 @@ function zo(e) {
|
|
|
3520
3520
|
allowedTiers: ["free", "plus", "enterprise"]
|
|
3521
3521
|
});
|
|
3522
3522
|
}
|
|
3523
|
-
function
|
|
3523
|
+
function Vo(e) {
|
|
3524
3524
|
return {
|
|
3525
3525
|
...e.key !== "custom" && { timePeriodsKey: e.key },
|
|
3526
3526
|
start: e.rawStart(),
|
|
3527
3527
|
end: e.rawEnd()
|
|
3528
3528
|
};
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3530
|
+
function Xo(e) {
|
|
3531
3531
|
return {
|
|
3532
3532
|
key: e.key,
|
|
3533
3533
|
display: e.display,
|
|
@@ -3541,7 +3541,7 @@ function Vo(e) {
|
|
|
3541
3541
|
function Mo(e, t) {
|
|
3542
3542
|
return Gi(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3543
3543
|
}
|
|
3544
|
-
const
|
|
3544
|
+
const $o = {
|
|
3545
3545
|
"15M": h.FIFTEEN_MIN,
|
|
3546
3546
|
"1H": h.ONE_HOUR,
|
|
3547
3547
|
"6H": h.SIX_HOUR,
|
|
@@ -3570,8 +3570,8 @@ class Qe {
|
|
|
3570
3570
|
return Math.floor(i * (n - t + 1)) + t;
|
|
3571
3571
|
}
|
|
3572
3572
|
}
|
|
3573
|
-
const
|
|
3574
|
-
const r =
|
|
3573
|
+
const Zo = (e, t, n) => {
|
|
3574
|
+
const r = bn(10, 1e4), i = new Qe(r), s = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), d = [];
|
|
3575
3575
|
let f = 0;
|
|
3576
3576
|
for (let y = s; y <= u; y += 60 * 60 * 1e3)
|
|
3577
3577
|
if (t)
|
|
@@ -3627,8 +3627,8 @@ const $o = (e, t, n) => {
|
|
|
3627
3627
|
data: d,
|
|
3628
3628
|
meta: _
|
|
3629
3629
|
};
|
|
3630
|
-
},
|
|
3631
|
-
const n =
|
|
3630
|
+
}, Qo = (e, t) => {
|
|
3631
|
+
const n = bn(10, 1e4), r = new Qe(n), i = Date.now() - 6 * 60 * 60 * 1e3, s = Date.now(), u = [], d = {};
|
|
3632
3632
|
e.forEach((m) => {
|
|
3633
3633
|
d[m.name] = 0;
|
|
3634
3634
|
});
|
|
@@ -3661,7 +3661,7 @@ const $o = (e, t, n) => {
|
|
|
3661
3661
|
data: u,
|
|
3662
3662
|
meta: f
|
|
3663
3663
|
};
|
|
3664
|
-
},
|
|
3664
|
+
}, Ko = (e, t, n) => {
|
|
3665
3665
|
const r = Math.floor(Math.random() * 9991) + 10, i = new Qe(r), s = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), d = new Date((s + u) / 2).toISOString(), f = [];
|
|
3666
3666
|
if (t) {
|
|
3667
3667
|
const y = Object.keys(t), g = Object.values(t), x = (I, N) => {
|
|
@@ -3718,84 +3718,90 @@ const $o = (e, t, n) => {
|
|
|
3718
3718
|
meta: _
|
|
3719
3719
|
};
|
|
3720
3720
|
};
|
|
3721
|
-
function
|
|
3721
|
+
function bn(e, t) {
|
|
3722
3722
|
return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
|
|
3723
3723
|
}
|
|
3724
|
+
const Do = new Map(an.map((e) => [e.code, { code: e.code, name: e.name }])), Jo = (e) => {
|
|
3725
|
+
var t;
|
|
3726
|
+
return ((t = Do.get(e)) == null ? void 0 : t.name) || e;
|
|
3727
|
+
};
|
|
3724
3728
|
export {
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3729
|
+
an as COUNTRIES,
|
|
3730
|
+
zo as DeltaQueryTime,
|
|
3731
|
+
vo as EXPORT_RECORD_LIMIT,
|
|
3728
3732
|
Te as Granularities,
|
|
3729
|
-
|
|
3730
|
-
|
|
3733
|
+
Eo as INJECT_QUERY_PROVIDER,
|
|
3734
|
+
Oo as REFRESH_INTERVAL_MS,
|
|
3731
3735
|
Qe as SeededRandom,
|
|
3732
|
-
|
|
3736
|
+
$o as TIMEFRAME_LOOKUP,
|
|
3733
3737
|
To as TimePeriods,
|
|
3734
3738
|
P as Timeframe,
|
|
3735
3739
|
h as TimeframeKeys,
|
|
3736
|
-
|
|
3740
|
+
jo as TimeseriesQueryTime,
|
|
3737
3741
|
fo as UnaryQueryTime,
|
|
3738
|
-
|
|
3742
|
+
Qr as aiExploreAggregations,
|
|
3739
3743
|
ga as apiUsageQuerySchema,
|
|
3740
3744
|
ia as barChartSchema,
|
|
3741
3745
|
tn as basicExploreAggregations,
|
|
3742
3746
|
pa as basicQuerySchema,
|
|
3743
|
-
|
|
3747
|
+
wn as ceilToNearestTimeGrain,
|
|
3744
3748
|
fa as choroplethMapSchema,
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
+
Do as countries,
|
|
3750
|
+
Ho as dashboardConfigSchema,
|
|
3751
|
+
Yo as dashboardTileTypes,
|
|
3752
|
+
ra as datasourceToFilterableDimensions,
|
|
3753
|
+
Bo as datePickerSelectionToTimeframe,
|
|
3749
3754
|
ua as donutChartSchema,
|
|
3750
3755
|
Mo as dstOffsetHours,
|
|
3751
|
-
|
|
3752
|
-
|
|
3756
|
+
Zr as exploreAggregations,
|
|
3757
|
+
Vr as exploreFilterTypesV2,
|
|
3753
3758
|
Oe as filterableAiExploreDimensions,
|
|
3754
3759
|
De as filterableBasicExploreDimensions,
|
|
3755
3760
|
Se as filterableExploreDimensions,
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3761
|
+
Jr as filterableRequestDimensions,
|
|
3762
|
+
na as filterableRequestMetrics,
|
|
3763
|
+
Ro as filterableRequestWildcardDimensions,
|
|
3759
3764
|
mo as floorToNearestTimeGrain,
|
|
3760
|
-
|
|
3765
|
+
Lo as formatISOTimeWithTZ,
|
|
3761
3766
|
Jt as formatTime,
|
|
3762
|
-
|
|
3767
|
+
Wo as formatTimeRange,
|
|
3763
3768
|
ca as gaugeChartSchema,
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
+
Ko as generateCrossSectionalData,
|
|
3770
|
+
Qo as generateMultipleMetricTimeSeriesData,
|
|
3771
|
+
Zo as generateSingleMetricTimeSeriesData,
|
|
3772
|
+
Jo as getCountryName,
|
|
3773
|
+
Fo as getFieldDataSources,
|
|
3774
|
+
qo as granularitiesToOptions,
|
|
3769
3775
|
lo as granularityMsToQuery,
|
|
3770
3776
|
en as granularityValues,
|
|
3771
3777
|
_a as llmUsageSchema,
|
|
3772
3778
|
da as metricCardSchema,
|
|
3773
|
-
|
|
3774
|
-
|
|
3779
|
+
Uo as msToGranularity,
|
|
3780
|
+
Go as queryDatasources,
|
|
3775
3781
|
rn as queryableAiExploreDimensions,
|
|
3776
3782
|
Be as queryableBasicExploreDimensions,
|
|
3777
3783
|
nn as queryableExploreDimensions,
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3784
|
+
Kr as queryableRequestDimensions,
|
|
3785
|
+
ta as queryableRequestMetrics,
|
|
3786
|
+
ea as queryableRequestWildcardDimensions,
|
|
3787
|
+
bn as rand,
|
|
3788
|
+
ko as relativeTimeRangeValuesRequestV2,
|
|
3789
|
+
$r as relativeTimeRangeValuesV4,
|
|
3790
|
+
xo as reportChartTypes,
|
|
3791
|
+
Xr as requestFilterTypeEmptyV2,
|
|
3792
|
+
Io as requestFilterTypeEqualsV2,
|
|
3793
|
+
No as requestFilterTypeMetricV2,
|
|
3794
|
+
Po as requestFilterTypeWildcardV2,
|
|
3789
3795
|
ma as singleValueSchema,
|
|
3790
3796
|
aa as slottableSchema,
|
|
3791
|
-
|
|
3797
|
+
Ao as stripUnknownFilters,
|
|
3792
3798
|
oa as thresholdSchema,
|
|
3793
3799
|
Ma as tileConfigSchema,
|
|
3794
3800
|
ba as tileDefinitionSchema,
|
|
3795
3801
|
Ta as tileLayoutSchema,
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3802
|
+
Co as timeRangeTypeV2,
|
|
3803
|
+
Vo as timeframeToDatepickerSelection,
|
|
3804
|
+
Xo as timeframeToDatepickerTimeperiod,
|
|
3799
3805
|
sa as timeseriesChartSchema,
|
|
3800
3806
|
la as topNTableSchema,
|
|
3801
3807
|
wa as validDashboardQuery
|