@kong-ui-public/analytics-utilities 12.1.3-pr.2606.eb096907d.0 → 12.1.4-pr.2603.ce4ebb0cd.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.
@@ -1,9 +1,9 @@
1
1
  var Jr = Object.defineProperty;
2
2
  var ea = (e, t, n) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var T = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var M = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  const Ro = 3e4, Co = 1e3, Yo = "analytics-query-provider";
5
- var p = /* @__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))(p || {});
6
- const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
5
+ var g = /* @__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))(g || {});
6
+ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
7
7
  "horizontal_bar",
8
8
  "vertical_bar",
9
9
  "timeseries_line",
@@ -11,7 +11,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
11
11
  "timeseries_bar",
12
12
  "donut",
13
13
  "single_value"
14
- ], ta = ["in", "not_in", "selector"], Ao = ["=", "!="], Fo = ["=", "!=", "<", ">", "<=", ">="], na = ["empty", "not_empty"], Ho = ["starts_with", "ends_with"], Lo = ["absolute", "relative"], on = [
14
+ ], ta = ["in", "not_in", "selector"], Go = ["=", "!="], Fo = ["=", "!=", "<", ">", "<=", ">="], na = ["empty", "not_empty"], Ho = ["starts_with", "ends_with"], Lo = ["absolute", "relative"], on = [
15
15
  "15m",
16
16
  "1h",
17
17
  "6h",
@@ -50,12 +50,12 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
50
50
  "status_code",
51
51
  "status_code_grouped",
52
52
  "time"
53
- ], Me = oe(Ze), un = [
53
+ ], Me = oe(Ze), cn = [
54
54
  "active_services",
55
55
  "request_count",
56
56
  "request_per_minute",
57
57
  "response_latency_average"
58
- ], cn = [
58
+ ], un = [
59
59
  ...Ze,
60
60
  "application",
61
61
  "consumer",
@@ -65,8 +65,8 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
65
65
  "response_source",
66
66
  "data_plane_node_version",
67
67
  "realm"
68
- ], Se = oe(cn), ra = [
69
- ...un,
68
+ ], Se = oe(un), ra = [
69
+ ...cn,
70
70
  "response_latency_p99",
71
71
  "response_latency_p95",
72
72
  "response_latency_p50",
@@ -166,7 +166,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
166
166
  "service_protocol",
167
167
  "trace_id",
168
168
  "upstream_uri"
169
- ], Uo = sa, ua = [
169
+ ], Uo = sa, ca = [
170
170
  "ai_count",
171
171
  "latencies_response_ms",
172
172
  "latencies_upstream_ms",
@@ -176,7 +176,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
176
176
  "response_header_content_length",
177
177
  "status_code",
178
178
  "upstream_status_code"
179
- ], ca = oe(ua), Wo = [
179
+ ], ua = oe(ca), Wo = [
180
180
  "15M",
181
181
  "1H",
182
182
  "6H",
@@ -807,7 +807,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
807
807
  ]
808
808
  },
809
809
  metrics: Qe(ra),
810
- dimensions: Ke(cn),
810
+ dimensions: Ke(un),
811
811
  filters: Ee(Se),
812
812
  ...Xe
813
813
  },
@@ -823,7 +823,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
823
823
  "basic"
824
824
  ]
825
825
  },
826
- metrics: Qe(un),
826
+ metrics: Qe(cn),
827
827
  dimensions: Ke(Ze),
828
828
  filters: Ee(Me),
829
829
  ...Xe
@@ -849,7 +849,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
849
849
  additionalProperties: !1
850
850
  }, Ea = {
851
851
  anyOf: [Ma, Sa, Oa]
852
- }, va = {
852
+ }, Na = {
853
853
  type: "object",
854
854
  properties: {
855
855
  query: Ea,
@@ -869,7 +869,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
869
869
  },
870
870
  required: ["query", "chart"],
871
871
  additionalProperties: !1
872
- }, Na = {
872
+ }, va = {
873
873
  type: "object",
874
874
  properties: {
875
875
  position: {
@@ -913,8 +913,8 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
913
913
  type: "string",
914
914
  enum: ["chart"]
915
915
  },
916
- definition: va,
917
- layout: Na,
916
+ definition: Na,
917
+ layout: va,
918
918
  id: {
919
919
  type: "string",
920
920
  description: "Unique identifier for the tile. If not provided, one will be generated."
@@ -943,7 +943,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
943
943
  additionalProperties: !1
944
944
  }, $o = (e) => {
945
945
  const t = [];
946
- return Me.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (oa.includes(e) || ca.includes(e)) && t.push("requests"), t;
946
+ return Me.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (oa.includes(e) || ua.includes(e)) && t.push("requests"), t;
947
947
  }, xa = {
948
948
  lessThanXSeconds: {
949
949
  one: "less than a second",
@@ -1032,7 +1032,7 @@ const Ra = {
1032
1032
  long: "{{date}} 'at' {{time}}",
1033
1033
  medium: "{{date}}, {{time}}",
1034
1034
  short: "{{date}}, {{time}}"
1035
- }, Ga = {
1035
+ }, ka = {
1036
1036
  date: He({
1037
1037
  formats: Ra,
1038
1038
  defaultWidth: "full"
@@ -1045,24 +1045,24 @@ const Ra = {
1045
1045
  formats: Ya,
1046
1046
  defaultWidth: "full"
1047
1047
  })
1048
- }, ka = {
1048
+ }, Aa = {
1049
1049
  lastWeek: "'last' eeee 'at' p",
1050
1050
  yesterday: "'yesterday at' p",
1051
1051
  today: "'today at' p",
1052
1052
  tomorrow: "'tomorrow at' p",
1053
1053
  nextWeek: "eeee 'at' p",
1054
1054
  other: "P"
1055
- }, Aa = (e, t, n, r) => ka[e];
1055
+ }, Ga = (e, t, n, r) => Aa[e];
1056
1056
  function re(e) {
1057
1057
  return (t, n) => {
1058
1058
  const r = n != null && n.context ? String(n.context) : "standalone";
1059
1059
  let i;
1060
1060
  if (r === "formatting" && e.formattingValues) {
1061
- const c = e.defaultFormattingWidth || e.defaultWidth, m = n != null && n.width ? String(n.width) : c;
1062
- i = e.formattingValues[m] || e.formattingValues[c];
1061
+ const u = e.defaultFormattingWidth || e.defaultWidth, m = n != null && n.width ? String(n.width) : u;
1062
+ i = e.formattingValues[m] || e.formattingValues[u];
1063
1063
  } else {
1064
- const c = e.defaultWidth, m = n != null && n.width ? String(n.width) : e.defaultWidth;
1065
- i = e.values[m] || e.values[c];
1064
+ const u = e.defaultWidth, m = n != null && n.width ? String(n.width) : e.defaultWidth;
1065
+ i = e.values[m] || e.values[u];
1066
1066
  }
1067
1067
  const o = e.argumentCallback ? e.argumentCallback(t) : t;
1068
1068
  return i[o];
@@ -1224,16 +1224,16 @@ function ae(e) {
1224
1224
  const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
1225
1225
  if (!o)
1226
1226
  return null;
1227
- const c = o[0], m = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], g = Array.isArray(m) ? $a(m, (d) => d.test(c)) : (
1227
+ const u = o[0], m = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], p = Array.isArray(m) ? $a(m, (d) => d.test(u)) : (
1228
1228
  // [TODO] -- I challenge you to fix the type
1229
- Va(m, (d) => d.test(c))
1229
+ Va(m, (d) => d.test(u))
1230
1230
  );
1231
1231
  let l;
1232
- l = e.valueCallback ? e.valueCallback(g) : g, l = n.valueCallback ? (
1232
+ l = e.valueCallback ? e.valueCallback(p) : p, l = n.valueCallback ? (
1233
1233
  // [TODO] -- I challenge you to fix the type
1234
1234
  n.valueCallback(l)
1235
1235
  ) : l;
1236
- const f = t.slice(c.length);
1236
+ const f = t.slice(u.length);
1237
1237
  return { value: l, rest: f };
1238
1238
  };
1239
1239
  }
@@ -1253,10 +1253,10 @@ function Ba(e) {
1253
1253
  if (!r) return null;
1254
1254
  const i = r[0], o = t.match(e.parsePattern);
1255
1255
  if (!o) return null;
1256
- let c = e.valueCallback ? e.valueCallback(o[0]) : o[0];
1257
- c = n.valueCallback ? n.valueCallback(c) : c;
1256
+ let u = e.valueCallback ? e.valueCallback(o[0]) : o[0];
1257
+ u = n.valueCallback ? n.valueCallback(u) : u;
1258
1258
  const m = t.slice(i.length);
1259
- return { value: c, rest: m };
1259
+ return { value: u, rest: m };
1260
1260
  };
1261
1261
  }
1262
1262
  const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
@@ -1363,11 +1363,11 @@ const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
1363
1363
  parsePatterns: oi,
1364
1364
  defaultParseWidth: "any"
1365
1365
  })
1366
- }, ui = {
1366
+ }, ci = {
1367
1367
  code: "en-US",
1368
1368
  formatDistance: Pa,
1369
- formatLong: Ga,
1370
- formatRelative: Aa,
1369
+ formatLong: ka,
1370
+ formatRelative: Ga,
1371
1371
  localize: za,
1372
1372
  match: si,
1373
1373
  options: {
@@ -1375,18 +1375,18 @@ const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
1375
1375
  firstWeekContainsDate: 1
1376
1376
  }
1377
1377
  };
1378
- let ci = {};
1379
- function ue() {
1380
- return ci;
1378
+ let ui = {};
1379
+ function ce() {
1380
+ return ui;
1381
1381
  }
1382
- const hn = 6048e5, li = 864e5, di = 60, mi = 3600, kt = Symbol.for("constructDateFrom");
1382
+ const hn = 6048e5, li = 864e5, di = 60, mi = 3600, At = Symbol.for("constructDateFrom");
1383
1383
  function R(e, t) {
1384
- return typeof e == "function" ? e(t) : e && typeof e == "object" && kt in e ? e[kt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1384
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && At in e ? e[At](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1385
1385
  }
1386
1386
  function O(e, t) {
1387
1387
  return R(t || e, e);
1388
1388
  }
1389
- function At(e) {
1389
+ function Gt(e) {
1390
1390
  const t = O(e), n = new Date(
1391
1391
  Date.UTC(
1392
1392
  t.getFullYear(),
@@ -1416,8 +1416,8 @@ function hi(e, t, n) {
1416
1416
  n == null ? void 0 : n.in,
1417
1417
  e,
1418
1418
  t
1419
- ), o = ie(r), c = ie(i), m = +o - At(o), g = +c - At(c);
1420
- return Math.round((m - g) / li);
1419
+ ), o = ie(r), u = ie(i), m = +o - Gt(o), p = +u - Gt(u);
1420
+ return Math.round((m - p) / li);
1421
1421
  }
1422
1422
  function yi(e, t) {
1423
1423
  const n = O(e, t == null ? void 0 : t.in);
@@ -1427,20 +1427,20 @@ function gi(e, t) {
1427
1427
  const n = O(e, t == null ? void 0 : t.in);
1428
1428
  return hi(n, yi(n)) + 1;
1429
1429
  }
1430
- function A(e, t) {
1431
- var m, g, l, f;
1432
- const n = ue(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((g = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((f = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = O(e, t == null ? void 0 : t.in), o = i.getDay(), c = (o < r ? 7 : 0) + o - r;
1433
- return i.setDate(i.getDate() - c), i.setHours(0, 0, 0, 0), i;
1430
+ function G(e, t) {
1431
+ var m, p, l, f;
1432
+ const n = ce(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((p = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : p.weekStartsOn) ?? n.weekStartsOn ?? ((f = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = O(e, t == null ? void 0 : t.in), o = i.getDay(), u = (o < r ? 7 : 0) + o - r;
1433
+ return i.setDate(i.getDate() - u), i.setHours(0, 0, 0, 0), i;
1434
1434
  }
1435
1435
  function _e(e, t) {
1436
- return A(e, { ...t, weekStartsOn: 1 });
1436
+ return G(e, { ...t, weekStartsOn: 1 });
1437
1437
  }
1438
1438
  function yn(e, t) {
1439
1439
  const n = O(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = R(n, 0);
1440
1440
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
1441
- const o = _e(i), c = R(n, 0);
1442
- c.setFullYear(r, 0, 4), c.setHours(0, 0, 0, 0);
1443
- const m = _e(c);
1441
+ const o = _e(i), u = R(n, 0);
1442
+ u.setFullYear(r, 0, 4), u.setHours(0, 0, 0, 0);
1443
+ const m = _e(u);
1444
1444
  return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= m.getTime() ? r : r - 1;
1445
1445
  }
1446
1446
  function pi(e, t) {
@@ -1453,20 +1453,20 @@ function _i(e, t) {
1453
1453
  }
1454
1454
  function gn(e, t) {
1455
1455
  var f, d, h, b;
1456
- const n = O(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = ue(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((b = (h = i.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, c = R((t == null ? void 0 : t.in) || e, 0);
1457
- c.setFullYear(r + 1, 0, o), c.setHours(0, 0, 0, 0);
1458
- const m = A(c, t), g = R((t == null ? void 0 : t.in) || e, 0);
1459
- g.setFullYear(r, 0, o), g.setHours(0, 0, 0, 0);
1460
- const l = A(g, t);
1456
+ const n = O(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = ce(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((b = (h = i.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, u = R((t == null ? void 0 : t.in) || e, 0);
1457
+ u.setFullYear(r + 1, 0, o), u.setHours(0, 0, 0, 0);
1458
+ const m = G(u, t), p = R((t == null ? void 0 : t.in) || e, 0);
1459
+ p.setFullYear(r, 0, o), p.setHours(0, 0, 0, 0);
1460
+ const l = G(p, t);
1461
1461
  return +n >= +m ? r + 1 : +n >= +l ? r : r - 1;
1462
1462
  }
1463
1463
  function wi(e, t) {
1464
- var m, g, l, f;
1465
- const n = ue(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((g = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = gn(e, t), o = R((t == null ? void 0 : t.in) || e, 0);
1466
- return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0), A(o, t);
1464
+ var m, p, l, f;
1465
+ const n = ce(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((p = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : p.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = gn(e, t), o = R((t == null ? void 0 : t.in) || e, 0);
1466
+ return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0), G(o, t);
1467
1467
  }
1468
1468
  function bi(e, t) {
1469
- const n = O(e, t == null ? void 0 : t.in), r = +A(n, t) - +wi(n, t);
1469
+ const n = O(e, t == null ? void 0 : t.in), r = +G(n, t) - +wi(n, t);
1470
1470
  return Math.round(r / hn) + 1;
1471
1471
  }
1472
1472
  function _(e, t) {
@@ -1562,8 +1562,8 @@ const L = {
1562
1562
  Y: function(e, t, n, r) {
1563
1563
  const i = gn(e, r), o = i > 0 ? i : 1 - i;
1564
1564
  if (t === "YY") {
1565
- const c = o % 100;
1566
- return _(c, 2);
1565
+ const u = o % 100;
1566
+ return _(u, 2);
1567
1567
  }
1568
1568
  return t === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : _(o, t.length);
1569
1569
  },
@@ -2084,10 +2084,10 @@ const Ut = (e, t) => {
2084
2084
  function Ei(e) {
2085
2085
  return Mi.test(e);
2086
2086
  }
2087
- function vi(e) {
2087
+ function Ni(e) {
2088
2088
  return Si.test(e);
2089
2089
  }
2090
- function Ni(e, t, n) {
2090
+ function vi(e, t, n) {
2091
2091
  const r = Ii(e, t, n);
2092
2092
  if (console.warn(r), Oi.includes(e)) throw new RangeError(r);
2093
2093
  }
@@ -2101,50 +2101,50 @@ function xi(e) {
2101
2101
  function Pi(e) {
2102
2102
  return !(!xi(e) && typeof e != "number" || isNaN(+O(e)));
2103
2103
  }
2104
- const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/, Gi = /''/g, ki = /[a-zA-Z]/;
2105
- function Ai(e, t, n) {
2106
- var f, d, h, b, E, N, C, W;
2107
- const r = ue(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? ui, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((b = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, c = (n == null ? void 0 : n.weekStartsOn) ?? ((N = (E = n == null ? void 0 : n.locale) == null ? void 0 : E.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((W = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : W.weekStartsOn) ?? 0, m = O(e, n == null ? void 0 : n.in);
2104
+ const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/, ki = /''/g, Ai = /[a-zA-Z]/;
2105
+ function Gi(e, t, n) {
2106
+ var f, d, h, b, E, v, C, W;
2107
+ const r = ce(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? ci, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((b = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, u = (n == null ? void 0 : n.weekStartsOn) ?? ((v = (E = n == null ? void 0 : n.locale) == null ? void 0 : E.options) == null ? void 0 : v.weekStartsOn) ?? r.weekStartsOn ?? ((W = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : W.weekStartsOn) ?? 0, m = O(e, n == null ? void 0 : n.in);
2108
2108
  if (!Pi(m))
2109
2109
  throw new RangeError("Invalid time value");
2110
- let g = t.match(Ci).map((v) => {
2111
- const D = v[0];
2112
- if (D === "p" || D === "P") {
2113
- const q = Di[D];
2114
- return q(v, i.formatLong);
2110
+ let p = t.match(Ci).map((N) => {
2111
+ const T = N[0];
2112
+ if (T === "p" || T === "P") {
2113
+ const q = Di[T];
2114
+ return q(N, i.formatLong);
2115
2115
  }
2116
- return v;
2117
- }).join("").match(Ri).map((v) => {
2118
- if (v === "''")
2116
+ return N;
2117
+ }).join("").match(Ri).map((N) => {
2118
+ if (N === "''")
2119
2119
  return { isToken: !1, value: "'" };
2120
- const D = v[0];
2121
- if (D === "'")
2122
- return { isToken: !1, value: Fi(v) };
2123
- if (Ft[D])
2124
- return { isToken: !0, value: v };
2125
- if (D.match(ki))
2120
+ const T = N[0];
2121
+ if (T === "'")
2122
+ return { isToken: !1, value: Fi(N) };
2123
+ if (Ft[T])
2124
+ return { isToken: !0, value: N };
2125
+ if (T.match(Ai))
2126
2126
  throw new RangeError(
2127
- "Format string contains an unescaped latin alphabet character `" + D + "`"
2127
+ "Format string contains an unescaped latin alphabet character `" + T + "`"
2128
2128
  );
2129
- return { isToken: !1, value: v };
2129
+ return { isToken: !1, value: N };
2130
2130
  });
2131
- i.localize.preprocessor && (g = i.localize.preprocessor(m, g));
2131
+ i.localize.preprocessor && (p = i.localize.preprocessor(m, p));
2132
2132
  const l = {
2133
2133
  firstWeekContainsDate: o,
2134
- weekStartsOn: c,
2134
+ weekStartsOn: u,
2135
2135
  locale: i
2136
2136
  };
2137
- return g.map((v) => {
2138
- if (!v.isToken) return v.value;
2139
- const D = v.value;
2140
- (!(n != null && n.useAdditionalWeekYearTokens) && vi(D) || !(n != null && n.useAdditionalDayOfYearTokens) && Ei(D)) && Ni(D, t, String(e));
2141
- const q = Ft[D[0]];
2142
- return q(m, D, i.localize, l);
2137
+ return p.map((N) => {
2138
+ if (!N.isToken) return N.value;
2139
+ const T = N.value;
2140
+ (!(n != null && n.useAdditionalWeekYearTokens) && Ni(T) || !(n != null && n.useAdditionalDayOfYearTokens) && Ei(T)) && vi(T, t, String(e));
2141
+ const q = Ft[T[0]];
2142
+ return q(m, T, i.localize, l);
2143
2143
  }).join("");
2144
2144
  }
2145
2145
  function Fi(e) {
2146
2146
  const t = e.match(Yi);
2147
- return t ? t[1].replace(Gi, "'") : e;
2147
+ return t ? t[1].replace(ki, "'") : e;
2148
2148
  }
2149
2149
  function Le(e, t, n) {
2150
2150
  const r = O(e, n == null ? void 0 : n.in);
@@ -2155,8 +2155,8 @@ function Hi(e, t, n) {
2155
2155
  if (isNaN(t)) return R(e, NaN);
2156
2156
  const i = r.getDate(), o = R(e, r.getTime());
2157
2157
  o.setMonth(r.getMonth() + t + 1, 0);
2158
- const c = o.getDate();
2159
- return i >= c ? o : (r.setFullYear(
2158
+ const u = o.getDate();
2159
+ return i >= u ? o : (r.setFullYear(
2160
2160
  o.getFullYear(),
2161
2161
  o.getMonth(),
2162
2162
  i
@@ -2171,7 +2171,7 @@ function Li(e, t) {
2171
2171
  return o.setFullYear(r, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
2172
2172
  }
2173
2173
  function Ui() {
2174
- return Object.assign({}, ue());
2174
+ return Object.assign({}, ce());
2175
2175
  }
2176
2176
  function Wt(e) {
2177
2177
  return +O(e);
@@ -2277,16 +2277,16 @@ function Qi(e) {
2277
2277
  second: "2-digit"
2278
2278
  })), Ue[e];
2279
2279
  }
2280
- function Je(e, t, n, r, i, o, c) {
2280
+ function Je(e, t, n, r, i, o, u) {
2281
2281
  const m = /* @__PURE__ */ new Date(0);
2282
- return m.setUTCFullYear(e, t, n), m.setUTCHours(r, i, o, c), m;
2282
+ return m.setUTCFullYear(e, t, n), m.setUTCHours(r, i, o, u), m;
2283
2283
  }
2284
2284
  const $t = 36e5, Ki = 6e4, We = {
2285
2285
  timezoneZ: /^(Z)$/,
2286
2286
  timezoneHH: /^([+-]\d{2})$/,
2287
2287
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
2288
2288
  };
2289
- function ce(e, t, n) {
2289
+ function ue(e, t, n) {
2290
2290
  if (!e)
2291
2291
  return 0;
2292
2292
  let r = We.timezoneZ.exec(e);
@@ -2297,12 +2297,12 @@ function ce(e, t, n) {
2297
2297
  return i = parseInt(r[1], 10), Bt(i) ? -(i * $t) : NaN;
2298
2298
  if (r = We.timezoneHHMM.exec(e), r) {
2299
2299
  i = parseInt(r[2], 10);
2300
- const c = parseInt(r[3], 10);
2301
- return Bt(i, c) ? (o = Math.abs(i) * $t + c * Ki, r[1] === "+" ? -o : o) : NaN;
2300
+ const u = parseInt(r[3], 10);
2301
+ return Bt(i, u) ? (o = Math.abs(i) * $t + u * Ki, r[1] === "+" ? -o : o) : NaN;
2302
2302
  }
2303
2303
  if (to(e)) {
2304
2304
  t = new Date(t || Date.now());
2305
- const c = n ? t : Ji(t), m = Be(c, e);
2305
+ const u = n ? t : Ji(t), m = Be(u, e);
2306
2306
  return -(n ? m : eo(t, m, e));
2307
2307
  }
2308
2308
  return NaN;
@@ -2322,8 +2322,8 @@ function eo(e, t, n) {
2322
2322
  if (t === o)
2323
2323
  return t;
2324
2324
  i -= o - t;
2325
- const c = Be(new Date(i), n);
2326
- return o === c ? o : Math.max(o, c);
2325
+ const u = Be(new Date(i), n);
2326
+ return o === u ? o : Math.max(o, u);
2327
2327
  }
2328
2328
  function Bt(e, t) {
2329
2329
  return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
@@ -2398,7 +2398,7 @@ const no = 60 * 1e3, ro = {
2398
2398
  }
2399
2399
  };
2400
2400
  function qe(e, t) {
2401
- const n = e ? ce(e, t, !0) / no : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
2401
+ const n = e ? ue(e, t, !0) / no : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
2402
2402
  if (Number.isNaN(n))
2403
2403
  throw new RangeError("Invalid time zone specified: " + e);
2404
2404
  return n;
@@ -2473,20 +2473,20 @@ function be(e, t = {}) {
2473
2473
  return new Date(e);
2474
2474
  if (Object.prototype.toString.call(e) !== "[object String]")
2475
2475
  return /* @__PURE__ */ new Date(NaN);
2476
- const r = oo(e), { year: i, restDateString: o } = so(r.date, n), c = uo(o, i);
2477
- if (c === null || isNaN(c.getTime()))
2476
+ const r = oo(e), { year: i, restDateString: o } = so(r.date, n), u = co(o, i);
2477
+ if (u === null || isNaN(u.getTime()))
2478
2478
  return /* @__PURE__ */ new Date(NaN);
2479
- if (c) {
2480
- const m = c.getTime();
2481
- let g = 0, l;
2482
- if (r.time && (g = co(r.time), g === null || isNaN(g)))
2479
+ if (u) {
2480
+ const m = u.getTime();
2481
+ let p = 0, l;
2482
+ if (r.time && (p = uo(r.time), p === null || isNaN(p)))
2483
2483
  return /* @__PURE__ */ new Date(NaN);
2484
2484
  if (r.timeZone || t.timeZone) {
2485
- if (l = ce(r.timeZone || t.timeZone, new Date(m + g)), isNaN(l))
2485
+ if (l = ue(r.timeZone || t.timeZone, new Date(m + p)), isNaN(l))
2486
2486
  return /* @__PURE__ */ new Date(NaN);
2487
2487
  } else
2488
- l = Qt(new Date(m + g)), l = Qt(new Date(m + g + l));
2489
- return new Date(m + g + l);
2488
+ l = Qt(new Date(m + p)), l = Qt(new Date(m + p + l));
2489
+ return new Date(m + p + l);
2490
2490
  } else
2491
2491
  return /* @__PURE__ */ new Date(NaN);
2492
2492
  }
@@ -2522,7 +2522,7 @@ function so(e, t) {
2522
2522
  year: null
2523
2523
  };
2524
2524
  }
2525
- function uo(e, t) {
2525
+ function co(e, t) {
2526
2526
  if (t === null)
2527
2527
  return null;
2528
2528
  let n, r, i;
@@ -2533,24 +2533,24 @@ function uo(e, t) {
2533
2533
  return n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1, en(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
2534
2534
  if (o = I.DDD.exec(e), o) {
2535
2535
  n = /* @__PURE__ */ new Date(0);
2536
- const c = parseInt(o[1], 10);
2537
- return fo(t, c) ? (n.setUTCFullYear(t, 0, c), n) : /* @__PURE__ */ new Date(NaN);
2536
+ const u = parseInt(o[1], 10);
2537
+ return fo(t, u) ? (n.setUTCFullYear(t, 0, u), n) : /* @__PURE__ */ new Date(NaN);
2538
2538
  }
2539
2539
  if (o = I.MMDD.exec(e), o) {
2540
2540
  n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1;
2541
- const c = parseInt(o[2], 10);
2542
- return en(t, r, c) ? (n.setUTCFullYear(t, r, c), n) : /* @__PURE__ */ new Date(NaN);
2541
+ const u = parseInt(o[2], 10);
2542
+ return en(t, r, u) ? (n.setUTCFullYear(t, r, u), n) : /* @__PURE__ */ new Date(NaN);
2543
2543
  }
2544
2544
  if (o = I.Www.exec(e), o)
2545
2545
  return i = parseInt(o[1], 10) - 1, tn(i) ? Jt(t, i) : /* @__PURE__ */ new Date(NaN);
2546
2546
  if (o = I.WwwD.exec(e), o) {
2547
2547
  i = parseInt(o[1], 10) - 1;
2548
- const c = parseInt(o[2], 10) - 1;
2549
- return tn(i, c) ? Jt(t, i, c) : /* @__PURE__ */ new Date(NaN);
2548
+ const u = parseInt(o[2], 10) - 1;
2549
+ return tn(i, u) ? Jt(t, i, u) : /* @__PURE__ */ new Date(NaN);
2550
2550
  }
2551
2551
  return null;
2552
2552
  }
2553
- function co(e) {
2553
+ function uo(e) {
2554
2554
  let t, n, r = I.HH.exec(e);
2555
2555
  if (r)
2556
2556
  return t = parseFloat(r[1].replace(",", ".")), ze(t) ? t % 24 * je : NaN;
@@ -2604,18 +2604,18 @@ function yo(e, t, n = {}) {
2604
2604
  const r = t.match(ho);
2605
2605
  if (r) {
2606
2606
  const i = be(n.originalDate || e, n);
2607
- t = r.reduce(function(o, c) {
2608
- if (c[0] === "'")
2607
+ t = r.reduce(function(o, u) {
2608
+ if (u[0] === "'")
2609
2609
  return o;
2610
- const m = o.indexOf(c), g = o[m - 1] === "'", l = o.replace(c, "'" + ro[c[0]](i, c, n) + "'");
2611
- return g ? l.substring(0, m - 1) + l.substring(m + 1) : l;
2610
+ const m = o.indexOf(u), p = o[m - 1] === "'", l = o.replace(u, "'" + ro[u[0]](i, u, n) + "'");
2611
+ return p ? l.substring(0, m - 1) + l.substring(m + 1) : l;
2612
2612
  }, t);
2613
2613
  }
2614
- return Ai(e, t, n);
2614
+ return Gi(e, t, n);
2615
2615
  }
2616
2616
  function Tn(e, t, n) {
2617
2617
  e = be(e, n);
2618
- const r = ce(t, e, !0), i = new Date(e.getTime() - r), o = /* @__PURE__ */ new Date(0);
2618
+ const r = ue(t, e, !0), i = new Date(e.getTime() - r), o = /* @__PURE__ */ new Date(0);
2619
2619
  return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
2620
2620
  }
2621
2621
  function Dn(e, t, n, r) {
@@ -2629,11 +2629,11 @@ function go(e, t, n) {
2629
2629
  if (typeof e == "string" && !e.match(wn))
2630
2630
  return be(e, { ...n, timeZone: t });
2631
2631
  e = be(e, n);
2632
- const r = Je(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = ce(t, new Date(r));
2632
+ const r = Je(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = ue(t, new Date(r));
2633
2633
  return new Date(r + i);
2634
2634
  }
2635
2635
  function Mn(e, t) {
2636
- return -ce(e, t);
2636
+ return -ue(e, t);
2637
2637
  }
2638
2638
  function Bo(e, t = {}) {
2639
2639
  const n = (t == null ? void 0 : t.tz) || Intl.DateTimeFormat().resolvedOptions().timeZone, r = t != null && t.includeTZ ? "yyyy-MM-dd HH:mm:ss.SSS (z)" : "yyyy-MM-dd HH:mm:ss.SSS";
@@ -2697,22 +2697,18 @@ function _o(e, t, n) {
2697
2697
  function On(e, t, n) {
2698
2698
  return Sn(Math.ceil, e, t, n);
2699
2699
  }
2700
- class ve {
2700
+ class Ne {
2701
2701
  constructor(t, n, r) {
2702
- T(this, "timeframe");
2703
- T(this, "tz");
2704
- T(this, "dataGranularity");
2705
- if (this.constructor === ve)
2702
+ M(this, "timeRange");
2703
+ M(this, "tz");
2704
+ M(this, "granularity");
2705
+ if (this.constructor === Ne)
2706
2706
  throw new Error("BaseQueryTime is not meant to be used directly.");
2707
- this.timeframe = t, this.tz = n, this.dataGranularity = r ?? t.dataGranularity;
2707
+ this.timeRange = t, this.tz = r, this.granularity = n;
2708
2708
  }
2709
- calculateStartDate(t, n, r = 1) {
2710
- if (t)
2711
- return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * r);
2712
- {
2713
- const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = _o(o, n, this.tz), g = (i.getTime() - c.getTime()) * (r - 1);
2714
- return new Date(c.getTime() - g);
2715
- }
2709
+ calculateStartDate(t, n = 1) {
2710
+ const r = this.timeRange.end, i = _o(this.timeRange.start, t, this.tz), u = (r.getTime() - i.getTime()) * n;
2711
+ return new Date(i.getTime() - u);
2716
2712
  }
2717
2713
  granularitySeconds() {
2718
2714
  return Math.floor(this.granularityMs() / 1e3);
@@ -2737,28 +2733,26 @@ class ve {
2737
2733
  return Wt(this.endDate());
2738
2734
  }
2739
2735
  }
2740
- class Ko extends ve {
2741
- constructor(n, r, i, o, c) {
2742
- super(n, i, o);
2743
- T(this, "granularity");
2744
- r && n.allowedGranularities(c).has(r) ? this.granularity = r : c ? this.granularity = n.fineGrainedDefaultGranularity ?? n.defaultResponseGranularity : this.granularity = n.defaultResponseGranularity;
2736
+ class Ko extends Ne {
2737
+ constructor(t, n, r) {
2738
+ super(t, n, r);
2745
2739
  }
2746
2740
  startDate() {
2747
- return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
2741
+ return this.calculateStartDate(this.granularity);
2748
2742
  }
2749
2743
  endDate() {
2750
- return On(this.timeframe.rawEnd(), this.granularity, this.tz);
2744
+ return On(this.timeRange.end, this.granularity, this.tz);
2751
2745
  }
2752
2746
  granularityMs() {
2753
2747
  return Te[this.granularity];
2754
2748
  }
2755
2749
  }
2756
- class wo extends ve {
2750
+ class wo extends Ne {
2757
2751
  startDate() {
2758
- return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
2752
+ return this.calculateStartDate(this.granularity);
2759
2753
  }
2760
2754
  endDate() {
2761
- return On(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
2755
+ return On(this.timeRange.start, this.granularity, this.tz);
2762
2756
  }
2763
2757
  granularityMs() {
2764
2758
  return this.endDate().getTime() - this.startDate().getTime();
@@ -2766,7 +2760,7 @@ class wo extends ve {
2766
2760
  }
2767
2761
  class Jo extends wo {
2768
2762
  startDate() {
2769
- return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
2763
+ return this.calculateStartDate(this.granularity, 2);
2770
2764
  }
2771
2765
  granularityMs() {
2772
2766
  return this.endDate().getTime() - super.startDate().getTime();
@@ -2779,33 +2773,33 @@ function En(e) {
2779
2773
  var De = { exports: {} };
2780
2774
  De.exports;
2781
2775
  (function(e, t) {
2782
- var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", m = "[object Boolean]", g = "[object Date]", l = "[object Error]", f = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", b = "[object Number]", E = "[object Object]", N = "[object Promise]", C = "[object RegExp]", W = "[object Set]", v = "[object String]", D = "[object Symbol]", q = "[object WeakMap]", tt = "[object ArrayBuffer]", le = "[object DataView]", nt = "[object Float32Array]", rt = "[object Float64Array]", at = "[object Int8Array]", it = "[object Int16Array]", ot = "[object Int32Array]", st = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", ct = "[object Uint16Array]", lt = "[object Uint32Array]", In = /[\\^$.*+?()[\]{}|]/g, xn = /\w*$/, Pn = /^\[object .+?Constructor\]$/, Rn = /^(?:0|[1-9]\d*)$/, w = {};
2783
- w[o] = w[c] = w[tt] = w[le] = w[m] = w[g] = w[nt] = w[rt] = w[at] = w[it] = w[ot] = w[h] = w[b] = w[E] = w[C] = w[W] = w[v] = w[D] = w[st] = w[ut] = w[ct] = w[lt] = !0, w[l] = w[f] = w[q] = !1;
2784
- var Cn = typeof pe == "object" && pe && pe.Object === Object && pe, Yn = typeof self == "object" && self && self.Object === Object && self, Y = Cn || Yn || Function("return this")(), dt = t && !t.nodeType && t, mt = dt && !0 && e && !e.nodeType && e, Gn = mt && mt.exports === dt;
2785
- function kn(a, s) {
2776
+ var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", u = "[object Array]", m = "[object Boolean]", p = "[object Date]", l = "[object Error]", f = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", b = "[object Number]", E = "[object Object]", v = "[object Promise]", C = "[object RegExp]", W = "[object Set]", N = "[object String]", T = "[object Symbol]", q = "[object WeakMap]", tt = "[object ArrayBuffer]", le = "[object DataView]", nt = "[object Float32Array]", rt = "[object Float64Array]", at = "[object Int8Array]", it = "[object Int16Array]", ot = "[object Int32Array]", st = "[object Uint8Array]", ct = "[object Uint8ClampedArray]", ut = "[object Uint16Array]", lt = "[object Uint32Array]", In = /[\\^$.*+?()[\]{}|]/g, xn = /\w*$/, Pn = /^\[object .+?Constructor\]$/, Rn = /^(?:0|[1-9]\d*)$/, w = {};
2777
+ w[o] = w[u] = w[tt] = w[le] = w[m] = w[p] = w[nt] = w[rt] = w[at] = w[it] = w[ot] = w[h] = w[b] = w[E] = w[C] = w[W] = w[N] = w[T] = w[st] = w[ct] = w[ut] = w[lt] = !0, w[l] = w[f] = w[q] = !1;
2778
+ var Cn = typeof pe == "object" && pe && pe.Object === Object && pe, Yn = typeof self == "object" && self && self.Object === Object && self, Y = Cn || Yn || Function("return this")(), dt = t && !t.nodeType && t, mt = dt && !0 && e && !e.nodeType && e, kn = mt && mt.exports === dt;
2779
+ function An(a, s) {
2786
2780
  return a.set(s[0], s[1]), a;
2787
2781
  }
2788
- function An(a, s) {
2782
+ function Gn(a, s) {
2789
2783
  return a.add(s), a;
2790
2784
  }
2791
2785
  function Fn(a, s) {
2792
- for (var u = -1, y = a ? a.length : 0; ++u < y && s(a[u], u, a) !== !1; )
2786
+ for (var c = -1, y = a ? a.length : 0; ++c < y && s(a[c], c, a) !== !1; )
2793
2787
  ;
2794
2788
  return a;
2795
2789
  }
2796
2790
  function Hn(a, s) {
2797
- for (var u = -1, y = s.length, M = a.length; ++u < y; )
2798
- a[M + u] = s[u];
2791
+ for (var c = -1, y = s.length, D = a.length; ++c < y; )
2792
+ a[D + c] = s[c];
2799
2793
  return a;
2800
2794
  }
2801
- function ft(a, s, u, y) {
2802
- for (var M = -1, x = a ? a.length : 0; ++M < x; )
2803
- u = s(u, a[M], M, a);
2804
- return u;
2795
+ function ft(a, s, c, y) {
2796
+ for (var D = -1, x = a ? a.length : 0; ++D < x; )
2797
+ c = s(c, a[D], D, a);
2798
+ return c;
2805
2799
  }
2806
2800
  function Ln(a, s) {
2807
- for (var u = -1, y = Array(a); ++u < a; )
2808
- y[u] = s(u);
2801
+ for (var c = -1, y = Array(a); ++c < a; )
2802
+ y[c] = s(c);
2809
2803
  return y;
2810
2804
  }
2811
2805
  function Un(a, s) {
@@ -2821,31 +2815,31 @@ De.exports;
2821
2815
  return s;
2822
2816
  }
2823
2817
  function yt(a) {
2824
- var s = -1, u = Array(a.size);
2825
- return a.forEach(function(y, M) {
2826
- u[++s] = [M, y];
2827
- }), u;
2828
- }
2829
- function Ne(a, s) {
2830
- return function(u) {
2831
- return a(s(u));
2818
+ var s = -1, c = Array(a.size);
2819
+ return a.forEach(function(y, D) {
2820
+ c[++s] = [D, y];
2821
+ }), c;
2822
+ }
2823
+ function ve(a, s) {
2824
+ return function(c) {
2825
+ return a(s(c));
2832
2826
  };
2833
2827
  }
2834
2828
  function gt(a) {
2835
- var s = -1, u = Array(a.size);
2829
+ var s = -1, c = Array(a.size);
2836
2830
  return a.forEach(function(y) {
2837
- u[++s] = y;
2838
- }), u;
2831
+ c[++s] = y;
2832
+ }), c;
2839
2833
  }
2840
2834
  var Wn = Array.prototype, qn = Function.prototype, de = Object.prototype, Ie = Y["__core-js_shared__"], pt = function() {
2841
2835
  var a = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
2842
2836
  return a ? "Symbol(src)_1." + a : "";
2843
2837
  }(), _t = qn.toString, H = de.hasOwnProperty, me = de.toString, jn = RegExp(
2844
2838
  "^" + _t.call(H).replace(In, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2845
- ), wt = Gn ? Y.Buffer : void 0, bt = Y.Symbol, Tt = Y.Uint8Array, zn = Ne(Object.getPrototypeOf, Object), Vn = Object.create, $n = de.propertyIsEnumerable, Bn = Wn.splice, Dt = Object.getOwnPropertySymbols, Zn = wt ? wt.isBuffer : void 0, Xn = Ne(Object.keys, Object), xe = X(Y, "DataView"), te = X(Y, "Map"), Pe = X(Y, "Promise"), Re = X(Y, "Set"), Ce = X(Y, "WeakMap"), ne = X(Object, "create"), Qn = V(xe), Kn = V(te), Jn = V(Pe), er = V(Re), tr = V(Ce), Mt = bt ? bt.prototype : void 0, St = Mt ? Mt.valueOf : void 0;
2839
+ ), wt = kn ? Y.Buffer : void 0, bt = Y.Symbol, Tt = Y.Uint8Array, zn = ve(Object.getPrototypeOf, Object), Vn = Object.create, $n = de.propertyIsEnumerable, Bn = Wn.splice, Dt = Object.getOwnPropertySymbols, Zn = wt ? wt.isBuffer : void 0, Xn = ve(Object.keys, Object), xe = X(Y, "DataView"), te = X(Y, "Map"), Pe = X(Y, "Promise"), Re = X(Y, "Set"), Ce = X(Y, "WeakMap"), ne = X(Object, "create"), Qn = V(xe), Kn = V(te), Jn = V(Pe), er = V(Re), tr = V(Ce), Mt = bt ? bt.prototype : void 0, St = Mt ? Mt.valueOf : void 0;
2846
2840
  function j(a) {
2847
- var s = -1, u = a ? a.length : 0;
2848
- for (this.clear(); ++s < u; ) {
2841
+ var s = -1, c = a ? a.length : 0;
2842
+ for (this.clear(); ++s < c; ) {
2849
2843
  var y = a[s];
2850
2844
  this.set(y[0], y[1]);
2851
2845
  }
@@ -2859,8 +2853,8 @@ De.exports;
2859
2853
  function ar(a) {
2860
2854
  var s = this.__data__;
2861
2855
  if (ne) {
2862
- var u = s[a];
2863
- return u === r ? void 0 : u;
2856
+ var c = s[a];
2857
+ return c === r ? void 0 : c;
2864
2858
  }
2865
2859
  return H.call(s, a) ? s[a] : void 0;
2866
2860
  }
@@ -2869,13 +2863,13 @@ De.exports;
2869
2863
  return ne ? s[a] !== void 0 : H.call(s, a);
2870
2864
  }
2871
2865
  function or(a, s) {
2872
- var u = this.__data__;
2873
- return u[a] = ne && s === void 0 ? r : s, this;
2866
+ var c = this.__data__;
2867
+ return c[a] = ne && s === void 0 ? r : s, this;
2874
2868
  }
2875
2869
  j.prototype.clear = nr, j.prototype.delete = rr, j.prototype.get = ar, j.prototype.has = ir, j.prototype.set = or;
2876
- function G(a) {
2877
- var s = -1, u = a ? a.length : 0;
2878
- for (this.clear(); ++s < u; ) {
2870
+ function k(a) {
2871
+ var s = -1, c = a ? a.length : 0;
2872
+ for (this.clear(); ++s < c; ) {
2879
2873
  var y = a[s];
2880
2874
  this.set(y[0], y[1]);
2881
2875
  }
@@ -2883,28 +2877,28 @@ De.exports;
2883
2877
  function sr() {
2884
2878
  this.__data__ = [];
2885
2879
  }
2886
- function ur(a) {
2887
- var s = this.__data__, u = fe(s, a);
2888
- if (u < 0)
2880
+ function cr(a) {
2881
+ var s = this.__data__, c = fe(s, a);
2882
+ if (c < 0)
2889
2883
  return !1;
2890
2884
  var y = s.length - 1;
2891
- return u == y ? s.pop() : Bn.call(s, u, 1), !0;
2885
+ return c == y ? s.pop() : Bn.call(s, c, 1), !0;
2892
2886
  }
2893
- function cr(a) {
2894
- var s = this.__data__, u = fe(s, a);
2895
- return u < 0 ? void 0 : s[u][1];
2887
+ function ur(a) {
2888
+ var s = this.__data__, c = fe(s, a);
2889
+ return c < 0 ? void 0 : s[c][1];
2896
2890
  }
2897
2891
  function lr(a) {
2898
2892
  return fe(this.__data__, a) > -1;
2899
2893
  }
2900
2894
  function dr(a, s) {
2901
- var u = this.__data__, y = fe(u, a);
2902
- return y < 0 ? u.push([a, s]) : u[y][1] = s, this;
2895
+ var c = this.__data__, y = fe(c, a);
2896
+ return y < 0 ? c.push([a, s]) : c[y][1] = s, this;
2903
2897
  }
2904
- G.prototype.clear = sr, G.prototype.delete = ur, G.prototype.get = cr, G.prototype.has = lr, G.prototype.set = dr;
2898
+ k.prototype.clear = sr, k.prototype.delete = cr, k.prototype.get = ur, k.prototype.has = lr, k.prototype.set = dr;
2905
2899
  function B(a) {
2906
- var s = -1, u = a ? a.length : 0;
2907
- for (this.clear(); ++s < u; ) {
2900
+ var s = -1, c = a ? a.length : 0;
2901
+ for (this.clear(); ++s < c; ) {
2908
2902
  var y = a[s];
2909
2903
  this.set(y[0], y[1]);
2910
2904
  }
@@ -2912,7 +2906,7 @@ De.exports;
2912
2906
  function mr() {
2913
2907
  this.__data__ = {
2914
2908
  hash: new j(),
2915
- map: new (te || G)(),
2909
+ map: new (te || k)(),
2916
2910
  string: new j()
2917
2911
  };
2918
2912
  }
@@ -2930,10 +2924,10 @@ De.exports;
2930
2924
  }
2931
2925
  B.prototype.clear = mr, B.prototype.delete = fr, B.prototype.get = hr, B.prototype.has = yr, B.prototype.set = gr;
2932
2926
  function Z(a) {
2933
- this.__data__ = new G(a);
2927
+ this.__data__ = new k(a);
2934
2928
  }
2935
2929
  function pr() {
2936
- this.__data__ = new G();
2930
+ this.__data__ = new k();
2937
2931
  }
2938
2932
  function _r(a) {
2939
2933
  return this.__data__.delete(a);
@@ -2945,45 +2939,45 @@ De.exports;
2945
2939
  return this.__data__.has(a);
2946
2940
  }
2947
2941
  function Tr(a, s) {
2948
- var u = this.__data__;
2949
- if (u instanceof G) {
2950
- var y = u.__data__;
2942
+ var c = this.__data__;
2943
+ if (c instanceof k) {
2944
+ var y = c.__data__;
2951
2945
  if (!te || y.length < n - 1)
2952
2946
  return y.push([a, s]), this;
2953
- u = this.__data__ = new B(y);
2947
+ c = this.__data__ = new B(y);
2954
2948
  }
2955
- return u.set(a, s), this;
2949
+ return c.set(a, s), this;
2956
2950
  }
2957
2951
  Z.prototype.clear = pr, Z.prototype.delete = _r, Z.prototype.get = wr, Z.prototype.has = br, Z.prototype.set = Tr;
2958
2952
  function Dr(a, s) {
2959
- var u = ke(a) || Vr(a) ? Ln(a.length, String) : [], y = u.length, M = !!y;
2953
+ var c = Ae(a) || Vr(a) ? Ln(a.length, String) : [], y = c.length, D = !!y;
2960
2954
  for (var x in a)
2961
- H.call(a, x) && !(M && (x == "length" || Wr(x, y))) && u.push(x);
2962
- return u;
2955
+ H.call(a, x) && !(D && (x == "length" || Wr(x, y))) && c.push(x);
2956
+ return c;
2963
2957
  }
2964
- function Ot(a, s, u) {
2958
+ function Ot(a, s, c) {
2965
2959
  var y = a[s];
2966
- (!(H.call(a, s) && It(y, u)) || u === void 0 && !(s in a)) && (a[s] = u);
2960
+ (!(H.call(a, s) && It(y, c)) || c === void 0 && !(s in a)) && (a[s] = c);
2967
2961
  }
2968
2962
  function fe(a, s) {
2969
- for (var u = a.length; u--; )
2970
- if (It(a[u][0], s))
2971
- return u;
2963
+ for (var c = a.length; c--; )
2964
+ if (It(a[c][0], s))
2965
+ return c;
2972
2966
  return -1;
2973
2967
  }
2974
2968
  function Mr(a, s) {
2975
- return a && Et(s, Ae(s), a);
2969
+ return a && Et(s, Ge(s), a);
2976
2970
  }
2977
- function Ye(a, s, u, y, M, x, k) {
2971
+ function Ye(a, s, c, y, D, x, A) {
2978
2972
  var P;
2979
- if (y && (P = x ? y(a, M, x, k) : y(a)), P !== void 0)
2973
+ if (y && (P = x ? y(a, D, x, A) : y(a)), P !== void 0)
2980
2974
  return P;
2981
2975
  if (!ye(a))
2982
2976
  return a;
2983
- var Rt = ke(a);
2977
+ var Rt = Ae(a);
2984
2978
  if (Rt) {
2985
2979
  if (P = Hr(a), !s)
2986
- return kr(a, P);
2980
+ return Ar(a, P);
2987
2981
  } else {
2988
2982
  var Q = z(a), Ct = Q == f || Q == d;
2989
2983
  if (Br(a))
@@ -2992,111 +2986,111 @@ De.exports;
2992
2986
  if (ht(a))
2993
2987
  return x ? a : {};
2994
2988
  if (P = Lr(Ct ? {} : a), !s)
2995
- return Ar(a, Mr(P, a));
2989
+ return Gr(a, Mr(P, a));
2996
2990
  } else {
2997
2991
  if (!w[Q])
2998
2992
  return x ? a : {};
2999
2993
  P = Ur(a, Q, Ye, s);
3000
2994
  }
3001
2995
  }
3002
- k || (k = new Z());
3003
- var Yt = k.get(a);
2996
+ A || (A = new Z());
2997
+ var Yt = A.get(a);
3004
2998
  if (Yt)
3005
2999
  return Yt;
3006
- if (k.set(a, P), !Rt)
3007
- var Gt = u ? Fr(a) : Ae(a);
3008
- return Fn(Gt || a, function(Fe, ge) {
3009
- Gt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, u, y, ge, a, k));
3000
+ if (A.set(a, P), !Rt)
3001
+ var kt = c ? Fr(a) : Ge(a);
3002
+ return Fn(kt || a, function(Fe, ge) {
3003
+ kt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, c, y, ge, a, A));
3010
3004
  }), P;
3011
3005
  }
3012
3006
  function Sr(a) {
3013
3007
  return ye(a) ? Vn(a) : {};
3014
3008
  }
3015
- function Or(a, s, u) {
3009
+ function Or(a, s, c) {
3016
3010
  var y = s(a);
3017
- return ke(a) ? y : Hn(y, u(a));
3011
+ return Ae(a) ? y : Hn(y, c(a));
3018
3012
  }
3019
3013
  function Er(a) {
3020
3014
  return me.call(a);
3021
3015
  }
3022
- function vr(a) {
3016
+ function Nr(a) {
3023
3017
  if (!ye(a) || jr(a))
3024
3018
  return !1;
3025
3019
  var s = Pt(a) || ht(a) ? jn : Pn;
3026
3020
  return s.test(V(a));
3027
3021
  }
3028
- function Nr(a) {
3029
- if (!Nt(a))
3022
+ function vr(a) {
3023
+ if (!vt(a))
3030
3024
  return Xn(a);
3031
3025
  var s = [];
3032
- for (var u in Object(a))
3033
- H.call(a, u) && u != "constructor" && s.push(u);
3026
+ for (var c in Object(a))
3027
+ H.call(a, c) && c != "constructor" && s.push(c);
3034
3028
  return s;
3035
3029
  }
3036
3030
  function Ir(a, s) {
3037
3031
  if (s)
3038
3032
  return a.slice();
3039
- var u = new a.constructor(a.length);
3040
- return a.copy(u), u;
3033
+ var c = new a.constructor(a.length);
3034
+ return a.copy(c), c;
3041
3035
  }
3042
- function Ge(a) {
3036
+ function ke(a) {
3043
3037
  var s = new a.constructor(a.byteLength);
3044
3038
  return new Tt(s).set(new Tt(a)), s;
3045
3039
  }
3046
3040
  function xr(a, s) {
3047
- var u = s ? Ge(a.buffer) : a.buffer;
3048
- return new a.constructor(u, a.byteOffset, a.byteLength);
3041
+ var c = s ? ke(a.buffer) : a.buffer;
3042
+ return new a.constructor(c, a.byteOffset, a.byteLength);
3049
3043
  }
3050
- function Pr(a, s, u) {
3051
- var y = s ? u(yt(a), !0) : yt(a);
3052
- return ft(y, kn, new a.constructor());
3044
+ function Pr(a, s, c) {
3045
+ var y = s ? c(yt(a), !0) : yt(a);
3046
+ return ft(y, An, new a.constructor());
3053
3047
  }
3054
3048
  function Rr(a) {
3055
3049
  var s = new a.constructor(a.source, xn.exec(a));
3056
3050
  return s.lastIndex = a.lastIndex, s;
3057
3051
  }
3058
- function Cr(a, s, u) {
3059
- var y = s ? u(gt(a), !0) : gt(a);
3060
- return ft(y, An, new a.constructor());
3052
+ function Cr(a, s, c) {
3053
+ var y = s ? c(gt(a), !0) : gt(a);
3054
+ return ft(y, Gn, new a.constructor());
3061
3055
  }
3062
3056
  function Yr(a) {
3063
3057
  return St ? Object(St.call(a)) : {};
3064
3058
  }
3065
- function Gr(a, s) {
3066
- var u = s ? Ge(a.buffer) : a.buffer;
3067
- return new a.constructor(u, a.byteOffset, a.length);
3068
- }
3069
3059
  function kr(a, s) {
3070
- var u = -1, y = a.length;
3071
- for (s || (s = Array(y)); ++u < y; )
3072
- s[u] = a[u];
3060
+ var c = s ? ke(a.buffer) : a.buffer;
3061
+ return new a.constructor(c, a.byteOffset, a.length);
3062
+ }
3063
+ function Ar(a, s) {
3064
+ var c = -1, y = a.length;
3065
+ for (s || (s = Array(y)); ++c < y; )
3066
+ s[c] = a[c];
3073
3067
  return s;
3074
3068
  }
3075
- function Et(a, s, u, y) {
3076
- u || (u = {});
3077
- for (var M = -1, x = s.length; ++M < x; ) {
3078
- var k = s[M], P = void 0;
3079
- Ot(u, k, P === void 0 ? a[k] : P);
3069
+ function Et(a, s, c, y) {
3070
+ c || (c = {});
3071
+ for (var D = -1, x = s.length; ++D < x; ) {
3072
+ var A = s[D], P = void 0;
3073
+ Ot(c, A, P === void 0 ? a[A] : P);
3080
3074
  }
3081
- return u;
3075
+ return c;
3082
3076
  }
3083
- function Ar(a, s) {
3084
- return Et(a, vt(a), s);
3077
+ function Gr(a, s) {
3078
+ return Et(a, Nt(a), s);
3085
3079
  }
3086
3080
  function Fr(a) {
3087
- return Or(a, Ae, vt);
3081
+ return Or(a, Ge, Nt);
3088
3082
  }
3089
3083
  function he(a, s) {
3090
- var u = a.__data__;
3091
- return qr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
3084
+ var c = a.__data__;
3085
+ return qr(s) ? c[typeof s == "string" ? "string" : "hash"] : c.map;
3092
3086
  }
3093
3087
  function X(a, s) {
3094
- var u = Un(a, s);
3095
- return vr(u) ? u : void 0;
3088
+ var c = Un(a, s);
3089
+ return Nr(c) ? c : void 0;
3096
3090
  }
3097
- var vt = Dt ? Ne(Dt, Object) : Qr, z = Er;
3098
- (xe && z(new xe(new ArrayBuffer(1))) != le || te && z(new te()) != h || Pe && z(Pe.resolve()) != N || Re && z(new Re()) != W || Ce && z(new Ce()) != q) && (z = function(a) {
3099
- var s = me.call(a), u = s == E ? a.constructor : void 0, y = u ? V(u) : void 0;
3091
+ var Nt = Dt ? ve(Dt, Object) : Qr, z = Er;
3092
+ (xe && z(new xe(new ArrayBuffer(1))) != le || te && z(new te()) != h || Pe && z(Pe.resolve()) != v || Re && z(new Re()) != W || Ce && z(new Ce()) != q) && (z = function(a) {
3093
+ var s = me.call(a), c = s == E ? a.constructor : void 0, y = c ? V(c) : void 0;
3100
3094
  if (y)
3101
3095
  switch (y) {
3102
3096
  case Qn:
@@ -3104,7 +3098,7 @@ De.exports;
3104
3098
  case Kn:
3105
3099
  return h;
3106
3100
  case Jn:
3107
- return N;
3101
+ return v;
3108
3102
  case er:
3109
3103
  return W;
3110
3104
  case tr:
@@ -3113,20 +3107,20 @@ De.exports;
3113
3107
  return s;
3114
3108
  });
3115
3109
  function Hr(a) {
3116
- var s = a.length, u = a.constructor(s);
3117
- return s && typeof a[0] == "string" && H.call(a, "index") && (u.index = a.index, u.input = a.input), u;
3110
+ var s = a.length, c = a.constructor(s);
3111
+ return s && typeof a[0] == "string" && H.call(a, "index") && (c.index = a.index, c.input = a.input), c;
3118
3112
  }
3119
3113
  function Lr(a) {
3120
- return typeof a.constructor == "function" && !Nt(a) ? Sr(zn(a)) : {};
3114
+ return typeof a.constructor == "function" && !vt(a) ? Sr(zn(a)) : {};
3121
3115
  }
3122
- function Ur(a, s, u, y) {
3123
- var M = a.constructor;
3116
+ function Ur(a, s, c, y) {
3117
+ var D = a.constructor;
3124
3118
  switch (s) {
3125
3119
  case tt:
3126
- return Ge(a);
3120
+ return ke(a);
3127
3121
  case m:
3128
- case g:
3129
- return new M(+a);
3122
+ case p:
3123
+ return new D(+a);
3130
3124
  case le:
3131
3125
  return xr(a, y);
3132
3126
  case nt:
@@ -3135,20 +3129,20 @@ De.exports;
3135
3129
  case it:
3136
3130
  case ot:
3137
3131
  case st:
3138
- case ut:
3139
3132
  case ct:
3133
+ case ut:
3140
3134
  case lt:
3141
- return Gr(a, y);
3135
+ return kr(a, y);
3142
3136
  case h:
3143
- return Pr(a, y, u);
3137
+ return Pr(a, y, c);
3144
3138
  case b:
3145
- case v:
3146
- return new M(a);
3139
+ case N:
3140
+ return new D(a);
3147
3141
  case C:
3148
3142
  return Rr(a);
3149
3143
  case W:
3150
- return Cr(a, y, u);
3151
- case D:
3144
+ return Cr(a, y, c);
3145
+ case T:
3152
3146
  return Yr(a);
3153
3147
  }
3154
3148
  }
@@ -3162,9 +3156,9 @@ De.exports;
3162
3156
  function jr(a) {
3163
3157
  return !!pt && pt in a;
3164
3158
  }
3165
- function Nt(a) {
3166
- var s = a && a.constructor, u = typeof s == "function" && s.prototype || de;
3167
- return a === u;
3159
+ function vt(a) {
3160
+ var s = a && a.constructor, c = typeof s == "function" && s.prototype || de;
3161
+ return a === c;
3168
3162
  }
3169
3163
  function V(a) {
3170
3164
  if (a != null) {
@@ -3188,7 +3182,7 @@ De.exports;
3188
3182
  function Vr(a) {
3189
3183
  return $r(a) && H.call(a, "callee") && (!$n.call(a, "callee") || me.call(a) == o);
3190
3184
  }
3191
- var ke = Array.isArray;
3185
+ var Ae = Array.isArray;
3192
3186
  function xt(a) {
3193
3187
  return a != null && Zr(a.length) && !Pt(a);
3194
3188
  }
@@ -3210,8 +3204,8 @@ De.exports;
3210
3204
  function Xr(a) {
3211
3205
  return !!a && typeof a == "object";
3212
3206
  }
3213
- function Ae(a) {
3214
- return xt(a) ? Dr(a) : Nr(a);
3207
+ function Ge(a) {
3208
+ return xt(a) ? Dr(a) : vr(a);
3215
3209
  }
3216
3210
  function Qr() {
3217
3211
  return [];
@@ -3225,28 +3219,28 @@ var bo = De.exports;
3225
3219
  const To = /* @__PURE__ */ En(bo), F = (e, t) => new Date(e.getTime() - Mn(t, e));
3226
3220
  class S {
3227
3221
  constructor(t) {
3228
- T(this, "timeframeText");
3229
- T(this, "key");
3230
- T(this, "display");
3231
- T(this, "timeframeLength");
3232
- T(this, "allowedTiers");
3222
+ M(this, "timeframeText");
3223
+ M(this, "key");
3224
+ M(this, "display");
3225
+ M(this, "timeframeLength");
3226
+ M(this, "allowedTiers");
3233
3227
  // defaultResponseGranularity tracks which of the allowed granularities is picked for a given
3234
3228
  // timeframe if the user does not or cannot specify a granularity.
3235
- T(this, "defaultResponseGranularity");
3229
+ M(this, "defaultResponseGranularity");
3236
3230
  // dataGranularity tracks the granularity of the available data on the server for a specific timeframe.
3237
3231
  // As of writing, it's always the same as the default response granularity, but it may not always be.
3238
3232
  // It controls how timeframes are rounded to ensure complete time buckets from the server.
3239
- T(this, "dataGranularity");
3233
+ M(this, "dataGranularity");
3240
3234
  // isRelative impacts whether we take the `floor` or the `ceil` of the start time.
3241
3235
  // If the time range is relative, we want the ceil -- because we take the ceil of the
3242
3236
  // end time to make sure we're showing all the data we can for the last time bucket.
3243
3237
  // If the time range is absolute, we want the floor -- because otherwise we wouldn't be including
3244
3238
  // the first time bucket.
3245
- T(this, "isRelative");
3246
- T(this, "fineGrainedDefaultGranularity");
3247
- T(this, "_startCustom");
3248
- T(this, "_endCustom");
3249
- T(this, "_allowedGranularitiesOverride");
3239
+ M(this, "isRelative");
3240
+ M(this, "fineGrainedDefaultGranularity");
3241
+ M(this, "_startCustom");
3242
+ M(this, "_endCustom");
3243
+ M(this, "_allowedGranularitiesOverride");
3250
3244
  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;
3251
3245
  }
3252
3246
  // rawEnd does not consider granularity and should not be used directly in queries.
@@ -3302,7 +3296,7 @@ class S {
3302
3296
  }
3303
3297
  class Do extends S {
3304
3298
  rawStart(t) {
3305
- let n = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3299
+ let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3306
3300
  return t && (n = F(n, t)), n;
3307
3301
  }
3308
3302
  maximumTimeframeLength() {
@@ -3329,12 +3323,12 @@ class So extends S {
3329
3323
  }
3330
3324
  class Oo extends S {
3331
3325
  rawEnd(t) {
3332
- let n = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3326
+ let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3333
3327
  return t && (n = F(n, t)), n;
3334
3328
  }
3335
3329
  rawStart(t) {
3336
3330
  const n = this.tzAdjustedDate(t);
3337
- let r = A(n.setDate(n.getDate() - 7), {
3331
+ let r = G(n.setDate(n.getDate() - 7), {
3338
3332
  weekStartsOn: 1
3339
3333
  });
3340
3334
  return t && (r = F(r, t)), r;
@@ -3350,7 +3344,7 @@ class Eo extends S {
3350
3344
  return t && (n = F(n, t)), n;
3351
3345
  }
3352
3346
  }
3353
- class vo extends S {
3347
+ class No extends S {
3354
3348
  rawEnd(t) {
3355
3349
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
3356
3350
  return t && (n = F(n, t)), n;
@@ -3360,11 +3354,11 @@ class vo extends S {
3360
3354
  return t && (n = F(n, t)), n;
3361
3355
  }
3362
3356
  }
3363
- const No = /* @__PURE__ */ new Map([
3357
+ const vo = /* @__PURE__ */ new Map([
3364
3358
  [
3365
- p.FIFTEEN_MIN,
3359
+ g.FIFTEEN_MIN,
3366
3360
  new S({
3367
- key: p.FIFTEEN_MIN,
3361
+ key: g.FIFTEEN_MIN,
3368
3362
  display: "Last 15 minutes",
3369
3363
  timeframeText: "15 minutes",
3370
3364
  timeframeLength: () => 60 * 15,
@@ -3377,9 +3371,9 @@ const No = /* @__PURE__ */ new Map([
3377
3371
  })
3378
3372
  ],
3379
3373
  [
3380
- p.ONE_HOUR,
3374
+ g.ONE_HOUR,
3381
3375
  new S({
3382
- key: p.ONE_HOUR,
3376
+ key: g.ONE_HOUR,
3383
3377
  display: "Last hour",
3384
3378
  timeframeText: "One hour",
3385
3379
  timeframeLength: () => 60 * 60 * 1,
@@ -3392,9 +3386,9 @@ const No = /* @__PURE__ */ new Map([
3392
3386
  })
3393
3387
  ],
3394
3388
  [
3395
- p.SIX_HOUR,
3389
+ g.SIX_HOUR,
3396
3390
  new S({
3397
- key: p.SIX_HOUR,
3391
+ key: g.SIX_HOUR,
3398
3392
  display: "Last 6 hours",
3399
3393
  timeframeText: "6 hours",
3400
3394
  timeframeLength: () => 60 * 60 * 6,
@@ -3407,9 +3401,9 @@ const No = /* @__PURE__ */ new Map([
3407
3401
  })
3408
3402
  ],
3409
3403
  [
3410
- p.TWELVE_HOUR,
3404
+ g.TWELVE_HOUR,
3411
3405
  new S({
3412
- key: p.TWELVE_HOUR,
3406
+ key: g.TWELVE_HOUR,
3413
3407
  display: "Last 12 hours",
3414
3408
  timeframeText: "12 hours",
3415
3409
  timeframeLength: () => 60 * 60 * 12,
@@ -3422,9 +3416,9 @@ const No = /* @__PURE__ */ new Map([
3422
3416
  })
3423
3417
  ],
3424
3418
  [
3425
- p.ONE_DAY,
3419
+ g.ONE_DAY,
3426
3420
  new S({
3427
- key: p.ONE_DAY,
3421
+ key: g.ONE_DAY,
3428
3422
  display: "Last 24 hours",
3429
3423
  timeframeText: "24 hours",
3430
3424
  timeframeLength: () => 60 * 60 * 24,
@@ -3437,9 +3431,9 @@ const No = /* @__PURE__ */ new Map([
3437
3431
  })
3438
3432
  ],
3439
3433
  [
3440
- p.SEVEN_DAY,
3434
+ g.SEVEN_DAY,
3441
3435
  new S({
3442
- key: p.SEVEN_DAY,
3436
+ key: g.SEVEN_DAY,
3443
3437
  display: "Last 7 days",
3444
3438
  timeframeText: "7 days",
3445
3439
  timeframeLength: () => 60 * 60 * 24 * 7,
@@ -3452,9 +3446,9 @@ const No = /* @__PURE__ */ new Map([
3452
3446
  })
3453
3447
  ],
3454
3448
  [
3455
- p.THIRTY_DAY,
3449
+ g.THIRTY_DAY,
3456
3450
  new S({
3457
- key: p.THIRTY_DAY,
3451
+ key: g.THIRTY_DAY,
3458
3452
  display: "Last 30 days",
3459
3453
  timeframeText: "30 days",
3460
3454
  timeframeLength: () => 60 * 60 * 24 * 30,
@@ -3467,9 +3461,9 @@ const No = /* @__PURE__ */ new Map([
3467
3461
  })
3468
3462
  ],
3469
3463
  [
3470
- p.NINETY_DAY,
3464
+ g.NINETY_DAY,
3471
3465
  new S({
3472
- key: p.NINETY_DAY,
3466
+ key: g.NINETY_DAY,
3473
3467
  display: "Last 90 days",
3474
3468
  timeframeText: "90 days",
3475
3469
  timeframeLength: () => 60 * 60 * 24 * 90,
@@ -3482,9 +3476,9 @@ const No = /* @__PURE__ */ new Map([
3482
3476
  })
3483
3477
  ],
3484
3478
  [
3485
- p.ONE_HUNDRED_EIGHTY_DAY,
3479
+ g.ONE_HUNDRED_EIGHTY_DAY,
3486
3480
  new S({
3487
- key: p.ONE_HUNDRED_EIGHTY_DAY,
3481
+ key: g.ONE_HUNDRED_EIGHTY_DAY,
3488
3482
  display: "Last 180 days",
3489
3483
  timeframeText: "180 days",
3490
3484
  timeframeLength: () => 60 * 60 * 24 * 180,
@@ -3497,9 +3491,9 @@ const No = /* @__PURE__ */ new Map([
3497
3491
  })
3498
3492
  ],
3499
3493
  [
3500
- p.ONE_YEAR,
3494
+ g.ONE_YEAR,
3501
3495
  new S({
3502
- key: p.ONE_YEAR,
3496
+ key: g.ONE_YEAR,
3503
3497
  display: "Last 365 days",
3504
3498
  timeframeText: "365 days",
3505
3499
  timeframeLength: () => 60 * 60 * 24 * 365,
@@ -3512,13 +3506,13 @@ const No = /* @__PURE__ */ new Map([
3512
3506
  })
3513
3507
  ],
3514
3508
  [
3515
- p.CURRENT_WEEK,
3509
+ g.CURRENT_WEEK,
3516
3510
  new Do({
3517
- key: p.CURRENT_WEEK,
3511
+ key: g.CURRENT_WEEK,
3518
3512
  display: "This week",
3519
3513
  timeframeText: "Week",
3520
3514
  timeframeLength: () => {
3521
- const e = A(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
3515
+ const e = G(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
3522
3516
  return (ie(Le(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3523
3517
  },
3524
3518
  defaultResponseGranularity: "daily",
@@ -3530,9 +3524,9 @@ const No = /* @__PURE__ */ new Map([
3530
3524
  })
3531
3525
  ],
3532
3526
  [
3533
- p.CURRENT_MONTH,
3527
+ g.CURRENT_MONTH,
3534
3528
  new Mo({
3535
- key: p.CURRENT_MONTH,
3529
+ key: g.CURRENT_MONTH,
3536
3530
  display: "This month",
3537
3531
  timeframeText: "Month",
3538
3532
  timeframeLength: () => {
@@ -3546,9 +3540,9 @@ const No = /* @__PURE__ */ new Map([
3546
3540
  })
3547
3541
  ],
3548
3542
  [
3549
- p.CURRENT_YEAR,
3543
+ g.CURRENT_YEAR,
3550
3544
  new So({
3551
- key: p.CURRENT_YEAR,
3545
+ key: g.CURRENT_YEAR,
3552
3546
  display: "This year",
3553
3547
  timeframeText: "Year",
3554
3548
  timeframeLength: () => {
@@ -3562,9 +3556,9 @@ const No = /* @__PURE__ */ new Map([
3562
3556
  })
3563
3557
  ],
3564
3558
  [
3565
- p.PREVIOUS_WEEK,
3559
+ g.PREVIOUS_WEEK,
3566
3560
  new Oo({
3567
- key: p.PREVIOUS_WEEK,
3561
+ key: g.PREVIOUS_WEEK,
3568
3562
  display: "Previous week",
3569
3563
  timeframeText: "Week",
3570
3564
  timeframeLength: () => 60 * 60 * 24 * 7,
@@ -3577,9 +3571,9 @@ const No = /* @__PURE__ */ new Map([
3577
3571
  })
3578
3572
  ],
3579
3573
  [
3580
- p.PREVIOUS_MONTH,
3574
+ g.PREVIOUS_MONTH,
3581
3575
  new Eo({
3582
- key: p.PREVIOUS_MONTH,
3576
+ key: g.PREVIOUS_MONTH,
3583
3577
  display: "Previous month",
3584
3578
  timeframeText: "Month",
3585
3579
  timeframeLength: () => {
@@ -3594,9 +3588,9 @@ const No = /* @__PURE__ */ new Map([
3594
3588
  })
3595
3589
  ],
3596
3590
  [
3597
- p.PREVIOUS_YEAR,
3598
- new vo({
3599
- key: p.PREVIOUS_YEAR,
3591
+ g.PREVIOUS_YEAR,
3592
+ new No({
3593
+ key: g.PREVIOUS_YEAR,
3600
3594
  display: "Previous year",
3601
3595
  timeframeText: "Year",
3602
3596
  timeframeLength: () => {
@@ -3613,7 +3607,7 @@ const No = /* @__PURE__ */ new Map([
3613
3607
  ]);
3614
3608
  function es(e) {
3615
3609
  const t = new Date(e.start), n = new Date(e.end), r = (n.getTime() - t.getTime()) / 1e3;
3616
- return e.timePeriodsKey && To(No.get(e.timePeriodsKey)) || new S({
3610
+ return e.timePeriodsKey && To(vo.get(e.timePeriodsKey)) || new S({
3617
3611
  key: "custom",
3618
3612
  timeframeText: "custom",
3619
3613
  display: "custom",
@@ -3648,32 +3642,32 @@ function rn(e, t) {
3648
3642
  return Wi(e.getTimezoneOffset() - t.getTimezoneOffset());
3649
3643
  }
3650
3644
  const rs = {
3651
- "15M": p.FIFTEEN_MIN,
3652
- "1H": p.ONE_HOUR,
3653
- "6H": p.SIX_HOUR,
3654
- "12H": p.TWELVE_HOUR,
3655
- "24H": p.ONE_DAY,
3656
- "7D": p.SEVEN_DAY,
3657
- "15m": p.FIFTEEN_MIN,
3658
- "1h": p.ONE_HOUR,
3659
- "6h": p.SIX_HOUR,
3660
- "12h": p.TWELVE_HOUR,
3661
- "24h": p.ONE_DAY,
3662
- "7d": p.SEVEN_DAY,
3663
- "30d": p.THIRTY_DAY,
3664
- "90d": p.NINETY_DAY,
3665
- "180d": p.ONE_HUNDRED_EIGHTY_DAY,
3666
- "365d": p.ONE_YEAR,
3667
- current_week: p.CURRENT_WEEK,
3668
- current_month: p.CURRENT_MONTH,
3669
- current_year: p.CURRENT_YEAR,
3670
- previous_week: p.PREVIOUS_WEEK,
3671
- previous_month: p.PREVIOUS_MONTH,
3672
- previous_year: p.PREVIOUS_YEAR
3645
+ "15M": g.FIFTEEN_MIN,
3646
+ "1H": g.ONE_HOUR,
3647
+ "6H": g.SIX_HOUR,
3648
+ "12H": g.TWELVE_HOUR,
3649
+ "24H": g.ONE_DAY,
3650
+ "7D": g.SEVEN_DAY,
3651
+ "15m": g.FIFTEEN_MIN,
3652
+ "1h": g.ONE_HOUR,
3653
+ "6h": g.SIX_HOUR,
3654
+ "12h": g.TWELVE_HOUR,
3655
+ "24h": g.ONE_DAY,
3656
+ "7d": g.SEVEN_DAY,
3657
+ "30d": g.THIRTY_DAY,
3658
+ "90d": g.NINETY_DAY,
3659
+ "180d": g.ONE_HUNDRED_EIGHTY_DAY,
3660
+ "365d": g.ONE_YEAR,
3661
+ current_week: g.CURRENT_WEEK,
3662
+ current_month: g.CURRENT_MONTH,
3663
+ current_year: g.CURRENT_YEAR,
3664
+ previous_week: g.PREVIOUS_WEEK,
3665
+ previous_month: g.PREVIOUS_MONTH,
3666
+ previous_year: g.PREVIOUS_YEAR
3673
3667
  };
3674
3668
  class et {
3675
3669
  constructor(t) {
3676
- T(this, "_seed");
3670
+ M(this, "_seed");
3677
3671
  this._seed = t;
3678
3672
  }
3679
3673
  next(t, n) {
@@ -3682,30 +3676,30 @@ class et {
3682
3676
  }
3683
3677
  }
3684
3678
  const as = (e, t, n) => {
3685
- const r = vn(10, 1e4), i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), m = [];
3686
- let g = 0;
3687
- for (let d = o; d <= c; d += 60 * 60 * 1e3)
3679
+ const r = Nn(10, 1e4), i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), m = [];
3680
+ let p = 0;
3681
+ for (let d = o; d <= u; d += 60 * 60 * 1e3)
3688
3682
  if (t)
3689
3683
  for (const h in t)
3690
3684
  t[h].forEach((b) => {
3691
- g += i.next(50, 500);
3685
+ p += i.next(50, 500);
3692
3686
  const E = {
3693
3687
  [h]: b,
3694
- [e.name]: g
3695
- }, N = {
3688
+ [e.name]: p
3689
+ }, v = {
3696
3690
  version: "1.0",
3697
3691
  timestamp: new Date(d).toISOString(),
3698
3692
  event: E
3699
3693
  };
3700
- m.push(N);
3694
+ m.push(v);
3701
3695
  });
3702
3696
  else {
3703
- g += i.next(50, 500);
3697
+ p += i.next(50, 500);
3704
3698
  const h = {
3705
3699
  version: "1.0",
3706
3700
  timestamp: new Date(d).toISOString(),
3707
3701
  event: {
3708
- [e.name]: g
3702
+ [e.name]: p
3709
3703
  }
3710
3704
  };
3711
3705
  m.push(h);
@@ -3721,9 +3715,9 @@ const as = (e, t, n) => {
3721
3715
  });
3722
3716
  const f = {
3723
3717
  start_ms: o,
3724
- end_ms: c,
3718
+ end_ms: u,
3725
3719
  start: new Date(o).toISOString(),
3726
- end: new Date(c).toISOString(),
3720
+ end: new Date(u).toISOString(),
3727
3721
  query_id: "12345",
3728
3722
  metric_names: [e.name],
3729
3723
  metric_units: {
@@ -3739,7 +3733,7 @@ const as = (e, t, n) => {
3739
3733
  meta: f
3740
3734
  };
3741
3735
  }, is = (e, t) => {
3742
- const n = vn(10, 1e4), r = new et(n), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), c = [], m = {};
3736
+ const n = Nn(10, 1e4), r = new et(n), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), u = [], m = {};
3743
3737
  e.forEach((l) => {
3744
3738
  m[l.name] = 0;
3745
3739
  });
@@ -3753,9 +3747,9 @@ const as = (e, t, n) => {
3753
3747
  timestamp: new Date(l).toISOString(),
3754
3748
  event: f
3755
3749
  };
3756
- c.push(d);
3750
+ u.push(d);
3757
3751
  }
3758
- const g = {
3752
+ const p = {
3759
3753
  start_ms: i,
3760
3754
  end_ms: o,
3761
3755
  start: new Date(i).toISOString(),
@@ -3769,25 +3763,25 @@ const as = (e, t, n) => {
3769
3763
  ...t ?? {}
3770
3764
  };
3771
3765
  return {
3772
- data: c,
3773
- meta: g
3766
+ data: u,
3767
+ meta: p
3774
3768
  };
3775
3769
  }, os = (e, t, n) => {
3776
- const r = Math.floor(Math.random() * 9991) + 10, i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), m = new Date((o + c) / 2).toISOString(), g = [];
3770
+ const r = Math.floor(Math.random() * 9991) + 10, i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), m = new Date((o + u) / 2).toISOString(), p = [];
3777
3771
  if (t) {
3778
- const d = Object.keys(t), h = Object.values(t), b = (E, N) => {
3779
- if (N === d.length) {
3772
+ const d = Object.keys(t), h = Object.values(t), b = (E, v) => {
3773
+ if (v === d.length) {
3780
3774
  e.forEach((C) => {
3781
3775
  E[C.name] = i.next(1e3, 5e7);
3782
- }), g.push({
3776
+ }), p.push({
3783
3777
  version: "1.0",
3784
3778
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
3785
3779
  event: { ...E }
3786
3780
  });
3787
3781
  return;
3788
3782
  }
3789
- h[N].forEach((C) => {
3790
- b({ ...E, [d[N]]: C }, N + 1);
3783
+ h[v].forEach((C) => {
3784
+ b({ ...E, [d[v]]: C }, v + 1);
3791
3785
  });
3792
3786
  };
3793
3787
  b({}, 0);
@@ -3795,7 +3789,7 @@ const as = (e, t, n) => {
3795
3789
  const d = {};
3796
3790
  e.forEach((h) => {
3797
3791
  d[h.name] = i.next(50, 500);
3798
- }), g.push({
3792
+ }), p.push({
3799
3793
  version: "1.0",
3800
3794
  timestamp: m,
3801
3795
  event: d
@@ -3812,74 +3806,74 @@ const as = (e, t, n) => {
3812
3806
  });
3813
3807
  const f = {
3814
3808
  start_ms: o,
3815
- end_ms: c,
3809
+ end_ms: u,
3816
3810
  start: new Date(o).toISOString(),
3817
- end: new Date(c).toISOString(),
3811
+ end: new Date(u).toISOString(),
3818
3812
  query_id: "12345",
3819
3813
  metric_names: e.map((d) => d.name),
3820
3814
  metric_units: e.reduce((d, h) => (d[h.name] = h.unit, d), {}),
3821
3815
  truncated: !1,
3822
3816
  limit: 50,
3823
3817
  display: l,
3824
- granularity_ms: c - o,
3818
+ granularity_ms: u - o,
3825
3819
  ...n ?? {}
3826
3820
  };
3827
3821
  return {
3828
- data: g,
3822
+ data: p,
3829
3823
  meta: f
3830
3824
  };
3831
3825
  };
3832
- function vn(e, t) {
3826
+ function Nn(e, t) {
3833
3827
  return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
3834
3828
  }
3835
3829
  const Io = new Map(dn.map((e) => [e.code, { code: e.code, name: e.name }])), ss = (e) => {
3836
3830
  var t;
3837
3831
  return ((t = Io.get(e)) == null ? void 0 : t.name) || e;
3838
3832
  };
3839
- var Nn = { exports: {} };
3833
+ var vn = { exports: {} };
3840
3834
  (function(e) {
3841
3835
  (function() {
3842
3836
  function t(l, f) {
3843
3837
  if (f.separator === !1 || l < 1e3)
3844
3838
  return l.toString();
3845
3839
  var d = typeof f.separator == "string" ? f.separator : ",", h = [], b = Math.round(l).toString().split("");
3846
- return b.reverse().forEach(function(E, N) {
3847
- N && N % 3 === 0 && h.push(d), h.push(E);
3840
+ return b.reverse().forEach(function(E, v) {
3841
+ v && v % 3 === 0 && h.push(d), h.push(E);
3848
3842
  }), h.reverse().join("");
3849
3843
  }
3850
3844
  function n(l, f, d) {
3851
3845
  var h = l / f, b = d.round ? "round" : "floor";
3852
3846
  return d.decimal === !1 ? (l = Math[b](h), l.toString()) : (d.precision ? l = h : l = h < 10 ? Math[b](h * 10) / 10 : Math[b](h), l = l.toString(), typeof d.decimal == "string" && (l = l.replace(".", d.decimal)), l);
3853
3847
  }
3854
- var r = 1e3, i = 1e4, o = 1e6, c = 1e9, m = 1e12;
3855
- function g(l, f) {
3848
+ var r = 1e3, i = 1e4, o = 1e6, u = 1e9, m = 1e12;
3849
+ function p(l, f) {
3856
3850
  var d;
3857
3851
  f = f || {};
3858
3852
  var h = l < 0;
3859
3853
  h && (l = Math.abs(l)), f.precision && (l = parseFloat(l.toPrecision(f.precision)));
3860
3854
  var b = f.min10k ? i : r;
3861
- return l < b || f.precision && f.precision > Math.log10(l) ? d = t(n(l, 1, f), f) : l < o ? d = n(l, r, f) + "k" : l < c ? d = n(l, o, f) + "m" : l < m ? d = t(n(l, c, f), f) + "b" : d = t(n(l, m, f), f) + "t", h && (d = "-" + d), f.capital && (d = d.toUpperCase()), f.prefix && (d = f.prefix + d), f.suffix && (d = d + f.suffix), d;
3855
+ return l < b || f.precision && f.precision > Math.log10(l) ? d = t(n(l, 1, f), f) : l < o ? d = n(l, r, f) + "k" : l < u ? d = n(l, o, f) + "m" : l < m ? d = t(n(l, u, f), f) + "b" : d = t(n(l, m, f), f) + "t", h && (d = "-" + d), f.capital && (d = d.toUpperCase()), f.prefix && (d = f.prefix + d), f.suffix && (d = d + f.suffix), d;
3862
3856
  }
3863
- g.addCommas = t, e.exports = g;
3857
+ p.addCommas = t, e.exports = p;
3864
3858
  })();
3865
- })(Nn);
3866
- var xo = Nn.exports;
3859
+ })(vn);
3860
+ var xo = vn.exports;
3867
3861
  const Ve = /* @__PURE__ */ En(xo);
3868
3862
  var an;
3869
3863
  const $e = new Intl.NumberFormat(((an = document == null ? void 0 : document.documentElement) == null ? void 0 : an.lang) || "en-US");
3870
- function us({
3864
+ function cs({
3871
3865
  i18n: e
3872
3866
  }) {
3873
- const t = (o, c) => {
3867
+ const t = (o, u) => {
3874
3868
  if (isNaN(o))
3875
3869
  return "0 B";
3876
- const m = c ? Math.pow(2, 50) : 1e15, g = c ? Math.pow(2, 40) : 1e12, l = c ? Math.pow(2, 30) : 1e9, f = c ? Math.pow(2, 20) : 1e6, d = c ? Math.pow(2, 10) : 1e3;
3870
+ const m = u ? Math.pow(2, 50) : 1e15, p = u ? Math.pow(2, 40) : 1e12, l = u ? Math.pow(2, 30) : 1e9, f = u ? Math.pow(2, 20) : 1e6, d = u ? Math.pow(2, 10) : 1e3;
3877
3871
  let h;
3878
3872
  return o >= m ? h = e.formatNumber(
3879
3873
  Number.parseFloat((o / m).toPrecision(3)),
3880
3874
  { style: "unit", unit: "petabyte", unitDisplay: "narrow" }
3881
- ) : o >= g ? h = e.formatNumber(
3882
- Number.parseFloat((o / g).toPrecision(3)),
3875
+ ) : o >= p ? h = e.formatNumber(
3876
+ Number.parseFloat((o / p).toPrecision(3)),
3883
3877
  { style: "unit", unit: "terabyte", unitDisplay: "narrow" }
3884
3878
  ) : o >= l ? h = e.formatNumber(
3885
3879
  Number.parseFloat((o / l).toPrecision(3)),
@@ -3894,19 +3888,19 @@ function us({
3894
3888
  Number.parseFloat(o.toPrecision(3)),
3895
3889
  { style: "unit", unit: "byte", unitDisplay: "narrow" }
3896
3890
  ), h.replace(/([a-zA-Z]*)$/, " $1");
3897
- }, n = (o, c = "USD") => isNaN(o) ? c === "USD" ? "$0.00" : `${o}` : o >= 0.01 || c !== "USD" ? e.formatNumber(o, { style: "currency", currency: c }) : o < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(o.toPrecision(4))}`;
3898
- return { formatUnit: (o, c, {
3891
+ }, n = (o, u = "USD") => isNaN(o) ? u === "USD" ? "$0.00" : `${o}` : o >= 0.01 || u !== "USD" ? e.formatNumber(o, { style: "currency", currency: u }) : o < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(o.toPrecision(4))}`;
3892
+ return { formatUnit: (o, u, {
3899
3893
  isBytes1024: m = !1,
3900
- currency: g = "USD",
3894
+ currency: p = "USD",
3901
3895
  approximate: l = !1,
3902
3896
  translateUnit: f = (d) => d
3903
3897
  } = {}) => {
3904
- const d = f(c, o);
3905
- switch (c) {
3898
+ const d = f(u, o);
3899
+ switch (u) {
3906
3900
  case "bytes":
3907
3901
  return t(o, m);
3908
3902
  case "usd":
3909
- return n(o, g);
3903
+ return n(o, p);
3910
3904
  case "ms":
3911
3905
  case "count/minute":
3912
3906
  case "token count":
@@ -3914,29 +3908,29 @@ function us({
3914
3908
  default:
3915
3909
  return isNaN(o) ? `${o}` : l ? `${Ve(o, { capital: !0 })} ${d}` : o >= 0.01 ? `${$e.format(Number.parseFloat(o.toFixed(2)))} ${d}` : `${Number.parseFloat(o.toPrecision(4))} ${d}`;
3916
3910
  }
3917
- }, formatBytes: t, formatCost: n, formatRange: (o, c, m, {
3918
- isBytes1024: g = !1,
3911
+ }, formatBytes: t, formatCost: n, formatRange: (o, u, m, {
3912
+ isBytes1024: p = !1,
3919
3913
  currency: l = "USD",
3920
3914
  approximate: f = !1,
3921
3915
  translateUnit: d = (h) => h
3922
3916
  } = {}) => {
3923
- const h = d(m, c);
3917
+ const h = d(m, u);
3924
3918
  switch (m) {
3925
3919
  case "bytes":
3926
- return `${t(o, g)} - ${t(c, g)}`;
3920
+ return `${t(o, p)} - ${t(u, p)}`;
3927
3921
  case "usd":
3928
- return `${n(o, l)} - ${n(c, l)}`;
3922
+ return `${n(o, l)} - ${n(u, l)}`;
3929
3923
  case "ms":
3930
3924
  case "count/minute":
3931
3925
  case "token count":
3932
3926
  case "count":
3933
3927
  default:
3934
- if (isNaN(o) || isNaN(c))
3935
- return `${o} - ${c}`;
3928
+ if (isNaN(o) || isNaN(u))
3929
+ return `${o} - ${u}`;
3936
3930
  if (f)
3937
- return `${Ve(o, { capital: !0 })} - ${Ve(c, { capital: !0 })} ${h}`;
3931
+ return `${Ve(o, { capital: !0 })} - ${Ve(u, { capital: !0 })} ${h}`;
3938
3932
  }
3939
- const b = o >= 0.01 ? `${$e.format(Number.parseFloat(o.toFixed(2)))}` : `${Number.parseFloat(o.toPrecision(4))}`, E = c >= 0.01 ? `${$e.format(Number.parseFloat(c.toFixed(2)))}` : `${Number.parseFloat(c.toPrecision(4))}`;
3933
+ const b = o >= 0.01 ? `${$e.format(Number.parseFloat(o.toFixed(2)))}` : `${Number.parseFloat(o.toPrecision(4))}`, E = u >= 0.01 ? `${$e.format(Number.parseFloat(u.toFixed(2)))}` : `${Number.parseFloat(u.toPrecision(4))}`;
3940
3934
  return `${b} - ${E} ${h}`;
3941
3935
  } };
3942
3936
  }
@@ -3949,15 +3943,15 @@ export {
3949
3943
  Ro as REFRESH_INTERVAL_MS,
3950
3944
  et as SeededRandom,
3951
3945
  rs as TIMEFRAME_LOOKUP,
3952
- No as TimePeriods,
3946
+ vo as TimePeriods,
3953
3947
  S as Timeframe,
3954
- p as TimeframeKeys,
3948
+ g as TimeframeKeys,
3955
3949
  Ko as TimeseriesQueryTime,
3956
3950
  wo as UnaryQueryTime,
3957
3951
  aa as aiExploreAggregations,
3958
3952
  Ma as apiUsageQuerySchema,
3959
3953
  ma as barChartSchema,
3960
- un as basicExploreAggregations,
3954
+ cn as basicExploreAggregations,
3961
3955
  Sa as basicQuerySchema,
3962
3956
  On as ceilToNearestTimeGrain,
3963
3957
  ba as choroplethMapSchema,
@@ -3970,12 +3964,12 @@ export {
3970
3964
  rn as dstOffsetHours,
3971
3965
  ra as exploreAggregations,
3972
3966
  ta as exploreFilterTypesV2,
3973
- Go as extendedRelativeTimeRangeValues,
3967
+ ko as extendedRelativeTimeRangeValues,
3974
3968
  Oe as filterableAiExploreDimensions,
3975
3969
  Me as filterableBasicExploreDimensions,
3976
3970
  Se as filterableExploreDimensions,
3977
3971
  oa as filterableRequestDimensions,
3978
- ca as filterableRequestMetrics,
3972
+ ua as filterableRequestMetrics,
3979
3973
  Uo as filterableRequestWildcardDimensions,
3980
3974
  _o as floorToNearestTimeGrain,
3981
3975
  Bo as formatLogTimestamp,
@@ -3997,16 +3991,16 @@ export {
3997
3991
  qo as queryDatasources,
3998
3992
  ln as queryableAiExploreDimensions,
3999
3993
  Ze as queryableBasicExploreDimensions,
4000
- cn as queryableExploreDimensions,
3994
+ un as queryableExploreDimensions,
4001
3995
  ia as queryableRequestDimensions,
4002
- ua as queryableRequestMetrics,
3996
+ ca as queryableRequestMetrics,
4003
3997
  sa as queryableRequestWildcardDimensions,
4004
- vn as rand,
3998
+ Nn as rand,
4005
3999
  Wo as relativeTimeRangeValuesRequestV2,
4006
4000
  on as relativeTimeRangeValuesV4,
4007
- ko as reportChartTypes,
4001
+ Ao as reportChartTypes,
4008
4002
  na as requestFilterTypeEmptyV2,
4009
- Ao as requestFilterTypeEqualsV2,
4003
+ Go as requestFilterTypeEqualsV2,
4010
4004
  Fo as requestFilterTypeMetricV2,
4011
4005
  Ho as requestFilterTypeWildcardV2,
4012
4006
  wa as singleValueSchema,
@@ -4014,14 +4008,14 @@ export {
4014
4008
  jo as stripUnknownFilters,
4015
4009
  fa as thresholdSchema,
4016
4010
  Ia as tileConfigSchema,
4017
- va as tileDefinitionSchema,
4018
- Na as tileLayoutSchema,
4011
+ Na as tileDefinitionSchema,
4012
+ va as tileLayoutSchema,
4019
4013
  Lo as timeRangeTypeV2,
4020
4014
  ts as timeframeToDatepickerSelection,
4021
4015
  ns as timeframeToDatepickerTimeperiod,
4022
4016
  ha as timeseriesChartSchema,
4023
4017
  pa as topNTableSchema,
4024
- us as unitFormatter,
4018
+ cs as unitFormatter,
4025
4019
  Ea as validDashboardQuery
4026
4020
  };
4027
4021
  //# sourceMappingURL=vitals-utilities.es.js.map