@kong-ui-public/analytics-utilities 12.1.4-pr.2603.ce4ebb0cd.0 → 12.1.4-pr.2686.1393fc7a1.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 M = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var T = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  const Ro = 3e4, Co = 1e3, Yo = "analytics-query-provider";
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 = [
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 = [
7
7
  "horizontal_bar",
8
8
  "vertical_bar",
9
9
  "timeseries_line",
@@ -11,7 +11,7 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
11
11
  "timeseries_bar",
12
12
  "donut",
13
13
  "single_value"
14
- ], ta = ["in", "not_in", "selector"], Go = ["=", "!="], Fo = ["=", "!=", "<", ">", "<=", ">="], na = ["empty", "not_empty"], Ho = ["starts_with", "ends_with"], Lo = ["absolute", "relative"], on = [
14
+ ], ta = ["in", "not_in", "selector"], Ao = ["=", "!="], 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 ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
50
50
  "status_code",
51
51
  "status_code_grouped",
52
52
  "time"
53
- ], Me = oe(Ze), cn = [
53
+ ], Me = oe(Ze), un = [
54
54
  "active_services",
55
55
  "request_count",
56
56
  "request_per_minute",
57
57
  "response_latency_average"
58
- ], un = [
58
+ ], cn = [
59
59
  ...Ze,
60
60
  "application",
61
61
  "consumer",
@@ -65,8 +65,8 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
65
65
  "response_source",
66
66
  "data_plane_node_version",
67
67
  "realm"
68
- ], Se = oe(un), ra = [
69
- ...cn,
68
+ ], Se = oe(cn), ra = [
69
+ ...un,
70
70
  "response_latency_p99",
71
71
  "response_latency_p95",
72
72
  "response_latency_p50",
@@ -166,7 +166,7 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
166
166
  "service_protocol",
167
167
  "trace_id",
168
168
  "upstream_uri"
169
- ], Uo = sa, ca = [
169
+ ], Uo = sa, ua = [
170
170
  "ai_count",
171
171
  "latencies_response_ms",
172
172
  "latencies_upstream_ms",
@@ -176,7 +176,7 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
176
176
  "response_header_content_length",
177
177
  "status_code",
178
178
  "upstream_status_code"
179
- ], ua = oe(ca), Wo = [
179
+ ], ca = oe(ua), Wo = [
180
180
  "15M",
181
181
  "1H",
182
182
  "6H",
@@ -807,7 +807,7 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
807
807
  ]
808
808
  },
809
809
  metrics: Qe(ra),
810
- dimensions: Ke(un),
810
+ dimensions: Ke(cn),
811
811
  filters: Ee(Se),
812
812
  ...Xe
813
813
  },
@@ -823,7 +823,7 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
823
823
  "basic"
824
824
  ]
825
825
  },
826
- metrics: Qe(cn),
826
+ metrics: Qe(un),
827
827
  dimensions: Ke(Ze),
828
828
  filters: Ee(Me),
829
829
  ...Xe
@@ -849,7 +849,7 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
849
849
  additionalProperties: !1
850
850
  }, Ea = {
851
851
  anyOf: [Ma, Sa, Oa]
852
- }, Na = {
852
+ }, va = {
853
853
  type: "object",
854
854
  properties: {
855
855
  query: Ea,
@@ -869,7 +869,7 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
869
869
  },
870
870
  required: ["query", "chart"],
871
871
  additionalProperties: !1
872
- }, va = {
872
+ }, Na = {
873
873
  type: "object",
874
874
  properties: {
875
875
  position: {
@@ -913,8 +913,8 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
913
913
  type: "string",
914
914
  enum: ["chart"]
915
915
  },
916
- definition: Na,
917
- layout: va,
916
+ definition: va,
917
+ layout: Na,
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 ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
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) || ua.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) || ca.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
- }, ka = {
1035
+ }, Ga = {
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
- }, Aa = {
1048
+ }, ka = {
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
- }, Ga = (e, t, n, r) => Aa[e];
1055
+ }, Aa = (e, t, n, r) => ka[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 u = e.defaultFormattingWidth || e.defaultWidth, m = n != null && n.width ? String(n.width) : u;
1062
- i = e.formattingValues[m] || e.formattingValues[u];
1061
+ const c = e.defaultFormattingWidth || e.defaultWidth, m = n != null && n.width ? String(n.width) : c;
1062
+ i = e.formattingValues[m] || e.formattingValues[c];
1063
1063
  } else {
1064
- const u = e.defaultWidth, m = n != null && n.width ? String(n.width) : e.defaultWidth;
1065
- i = e.values[m] || e.values[u];
1064
+ const c = e.defaultWidth, m = n != null && n.width ? String(n.width) : e.defaultWidth;
1065
+ i = e.values[m] || e.values[c];
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 u = o[0], m = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], p = Array.isArray(m) ? $a(m, (d) => d.test(u)) : (
1227
+ const c = o[0], m = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], g = Array.isArray(m) ? $a(m, (d) => d.test(c)) : (
1228
1228
  // [TODO] -- I challenge you to fix the type
1229
- Va(m, (d) => d.test(u))
1229
+ Va(m, (d) => d.test(c))
1230
1230
  );
1231
1231
  let l;
1232
- l = e.valueCallback ? e.valueCallback(p) : p, l = n.valueCallback ? (
1232
+ l = e.valueCallback ? e.valueCallback(g) : g, 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(u.length);
1236
+ const f = t.slice(c.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 u = e.valueCallback ? e.valueCallback(o[0]) : o[0];
1257
- u = n.valueCallback ? n.valueCallback(u) : u;
1256
+ let c = e.valueCallback ? e.valueCallback(o[0]) : o[0];
1257
+ c = n.valueCallback ? n.valueCallback(c) : c;
1258
1258
  const m = t.slice(i.length);
1259
- return { value: u, rest: m };
1259
+ return { value: c, 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
- }, ci = {
1366
+ }, ui = {
1367
1367
  code: "en-US",
1368
1368
  formatDistance: Pa,
1369
- formatLong: ka,
1370
- formatRelative: Ga,
1369
+ formatLong: Ga,
1370
+ formatRelative: Aa,
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 ui = {};
1379
- function ce() {
1380
- return ui;
1378
+ let ci = {};
1379
+ function ue() {
1380
+ return ci;
1381
1381
  }
1382
- const hn = 6048e5, li = 864e5, di = 60, mi = 3600, At = Symbol.for("constructDateFrom");
1382
+ const hn = 6048e5, li = 864e5, di = 60, mi = 3600, kt = Symbol.for("constructDateFrom");
1383
1383
  function R(e, 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);
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);
1385
1385
  }
1386
1386
  function O(e, t) {
1387
1387
  return R(t || e, e);
1388
1388
  }
1389
- function Gt(e) {
1389
+ function At(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), u = ie(i), m = +o - Gt(o), p = +u - Gt(u);
1420
- return Math.round((m - p) / li);
1419
+ ), o = ie(r), c = ie(i), m = +o - At(o), g = +c - At(c);
1420
+ return Math.round((m - g) / 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 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;
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;
1434
1434
  }
1435
1435
  function _e(e, t) {
1436
- return G(e, { ...t, weekStartsOn: 1 });
1436
+ return A(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), u = R(n, 0);
1442
- u.setFullYear(r, 0, 4), u.setHours(0, 0, 0, 0);
1443
- const m = _e(u);
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);
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 = 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);
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);
1461
1461
  return +n >= +m ? r + 1 : +n >= +l ? r : r - 1;
1462
1462
  }
1463
1463
  function wi(e, 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);
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);
1467
1467
  }
1468
1468
  function bi(e, t) {
1469
- const n = O(e, t == null ? void 0 : t.in), r = +G(n, t) - +wi(n, t);
1469
+ const n = O(e, t == null ? void 0 : t.in), r = +A(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 u = o % 100;
1566
- return _(u, 2);
1565
+ const c = o % 100;
1566
+ return _(c, 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 Ni(e) {
2087
+ function vi(e) {
2088
2088
  return Si.test(e);
2089
2089
  }
2090
- function vi(e, t, n) {
2090
+ function Ni(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 = /^'([^]*?)'?$/, 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);
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);
2108
2108
  if (!Pi(m))
2109
2109
  throw new RangeError("Invalid time value");
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);
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);
2115
2115
  }
2116
- return N;
2117
- }).join("").match(Ri).map((N) => {
2118
- if (N === "''")
2116
+ return v;
2117
+ }).join("").match(Ri).map((v) => {
2118
+ if (v === "''")
2119
2119
  return { isToken: !1, value: "'" };
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))
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))
2126
2126
  throw new RangeError(
2127
- "Format string contains an unescaped latin alphabet character `" + T + "`"
2127
+ "Format string contains an unescaped latin alphabet character `" + D + "`"
2128
2128
  );
2129
- return { isToken: !1, value: N };
2129
+ return { isToken: !1, value: v };
2130
2130
  });
2131
- i.localize.preprocessor && (p = i.localize.preprocessor(m, p));
2131
+ i.localize.preprocessor && (g = i.localize.preprocessor(m, g));
2132
2132
  const l = {
2133
2133
  firstWeekContainsDate: o,
2134
- weekStartsOn: u,
2134
+ weekStartsOn: c,
2135
2135
  locale: i
2136
2136
  };
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);
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);
2143
2143
  }).join("");
2144
2144
  }
2145
2145
  function Fi(e) {
2146
2146
  const t = e.match(Yi);
2147
- return t ? t[1].replace(ki, "'") : e;
2147
+ return t ? t[1].replace(Gi, "'") : 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 u = o.getDate();
2159
- return i >= u ? o : (r.setFullYear(
2158
+ const c = o.getDate();
2159
+ return i >= c ? 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({}, ce());
2174
+ return Object.assign({}, ue());
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, u) {
2280
+ function Je(e, t, n, r, i, o, c) {
2281
2281
  const m = /* @__PURE__ */ new Date(0);
2282
- return m.setUTCFullYear(e, t, n), m.setUTCHours(r, i, o, u), m;
2282
+ return m.setUTCFullYear(e, t, n), m.setUTCHours(r, i, o, c), 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 ue(e, t, n) {
2289
+ function ce(e, t, n) {
2290
2290
  if (!e)
2291
2291
  return 0;
2292
2292
  let r = We.timezoneZ.exec(e);
@@ -2297,12 +2297,12 @@ function ue(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 u = parseInt(r[3], 10);
2301
- return Bt(i, u) ? (o = Math.abs(i) * $t + u * Ki, r[1] === "+" ? -o : o) : NaN;
2300
+ const c = parseInt(r[3], 10);
2301
+ return Bt(i, c) ? (o = Math.abs(i) * $t + c * Ki, r[1] === "+" ? -o : o) : NaN;
2302
2302
  }
2303
2303
  if (to(e)) {
2304
2304
  t = new Date(t || Date.now());
2305
- const u = n ? t : Ji(t), m = Be(u, e);
2305
+ const c = n ? t : Ji(t), m = Be(c, 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 u = Be(new Date(i), n);
2326
- return o === u ? o : Math.max(o, u);
2325
+ const c = Be(new Date(i), n);
2326
+ return o === c ? o : Math.max(o, c);
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 ? ue(e, t, !0) / no : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
2401
+ const n = e ? ce(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), u = co(o, i);
2477
- if (u === null || isNaN(u.getTime()))
2476
+ const r = oo(e), { year: i, restDateString: o } = so(r.date, n), c = uo(o, i);
2477
+ if (c === null || isNaN(c.getTime()))
2478
2478
  return /* @__PURE__ */ new Date(NaN);
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)))
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)))
2483
2483
  return /* @__PURE__ */ new Date(NaN);
2484
2484
  if (r.timeZone || t.timeZone) {
2485
- if (l = ue(r.timeZone || t.timeZone, new Date(m + p)), isNaN(l))
2485
+ if (l = ce(r.timeZone || t.timeZone, new Date(m + g)), isNaN(l))
2486
2486
  return /* @__PURE__ */ new Date(NaN);
2487
2487
  } else
2488
- l = Qt(new Date(m + p)), l = Qt(new Date(m + p + l));
2489
- return new Date(m + p + l);
2488
+ l = Qt(new Date(m + g)), l = Qt(new Date(m + g + l));
2489
+ return new Date(m + g + 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 co(e, t) {
2525
+ function uo(e, t) {
2526
2526
  if (t === null)
2527
2527
  return null;
2528
2528
  let n, r, i;
@@ -2533,24 +2533,24 @@ function co(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 u = parseInt(o[1], 10);
2537
- return fo(t, u) ? (n.setUTCFullYear(t, 0, u), n) : /* @__PURE__ */ new Date(NaN);
2536
+ const c = parseInt(o[1], 10);
2537
+ return fo(t, c) ? (n.setUTCFullYear(t, 0, c), 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 u = parseInt(o[2], 10);
2542
- return en(t, r, u) ? (n.setUTCFullYear(t, r, u), n) : /* @__PURE__ */ new Date(NaN);
2541
+ const c = parseInt(o[2], 10);
2542
+ return en(t, r, c) ? (n.setUTCFullYear(t, r, c), 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 u = parseInt(o[2], 10) - 1;
2549
- return tn(i, u) ? Jt(t, i, u) : /* @__PURE__ */ new Date(NaN);
2548
+ const c = parseInt(o[2], 10) - 1;
2549
+ return tn(i, c) ? Jt(t, i, c) : /* @__PURE__ */ new Date(NaN);
2550
2550
  }
2551
2551
  return null;
2552
2552
  }
2553
- function uo(e) {
2553
+ function co(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, u) {
2608
- if (u[0] === "'")
2607
+ t = r.reduce(function(o, c) {
2608
+ if (c[0] === "'")
2609
2609
  return o;
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;
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;
2612
2612
  }, t);
2613
2613
  }
2614
- return Gi(e, t, n);
2614
+ return Ai(e, t, n);
2615
2615
  }
2616
2616
  function Tn(e, t, n) {
2617
2617
  e = be(e, n);
2618
- const r = ue(t, e, !0), i = new Date(e.getTime() - r), o = /* @__PURE__ */ new Date(0);
2618
+ const r = ce(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,15 +2629,27 @@ 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 = ue(t, new Date(r));
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));
2633
2633
  return new Date(r + i);
2634
2634
  }
2635
2635
  function Mn(e, t) {
2636
- return -ue(e, t);
2636
+ return -ce(e, t);
2637
2637
  }
2638
2638
  function Bo(e, t = {}) {
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";
2640
- return Dn(e, n, r);
2639
+ const n = (t == null ? void 0 : t.tz) || Intl.DateTimeFormat().resolvedOptions().timeZone;
2640
+ let r = "MMM dd, yyy hh:mm a";
2641
+ switch (t.format) {
2642
+ case "short":
2643
+ r = "MMM dd, yyyy";
2644
+ break;
2645
+ case "default":
2646
+ r = "MMM dd, yyyy hh:mm a";
2647
+ break;
2648
+ case "full":
2649
+ r = "MMM dd, yyyy hh:mm:ss.SSS a";
2650
+ break;
2651
+ }
2652
+ return t.includeTZ && (r += " (z)"), Dn(e, n, r);
2641
2653
  }
2642
2654
  function nn(e, t = {}) {
2643
2655
  if (!e)
@@ -2697,18 +2709,22 @@ function _o(e, t, n) {
2697
2709
  function On(e, t, n) {
2698
2710
  return Sn(Math.ceil, e, t, n);
2699
2711
  }
2700
- class Ne {
2712
+ class ve {
2701
2713
  constructor(t, n, r) {
2702
- M(this, "timeRange");
2703
- M(this, "tz");
2704
- M(this, "granularity");
2705
- if (this.constructor === Ne)
2714
+ T(this, "timeframe");
2715
+ T(this, "tz");
2716
+ T(this, "dataGranularity");
2717
+ if (this.constructor === ve)
2706
2718
  throw new Error("BaseQueryTime is not meant to be used directly.");
2707
- this.timeRange = t, this.tz = r, this.granularity = n;
2719
+ this.timeframe = t, this.tz = n, this.dataGranularity = r ?? t.dataGranularity;
2708
2720
  }
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);
2721
+ calculateStartDate(t, n, r = 1) {
2722
+ if (t)
2723
+ return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * r);
2724
+ {
2725
+ const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = _o(o, n, this.tz), g = (i.getTime() - c.getTime()) * (r - 1);
2726
+ return new Date(c.getTime() - g);
2727
+ }
2712
2728
  }
2713
2729
  granularitySeconds() {
2714
2730
  return Math.floor(this.granularityMs() / 1e3);
@@ -2733,26 +2749,28 @@ class Ne {
2733
2749
  return Wt(this.endDate());
2734
2750
  }
2735
2751
  }
2736
- class Ko extends Ne {
2737
- constructor(t, n, r) {
2738
- super(t, n, r);
2752
+ class Ko extends ve {
2753
+ constructor(n, r, i, o, c) {
2754
+ super(n, i, o);
2755
+ T(this, "granularity");
2756
+ r && n.allowedGranularities(c).has(r) ? this.granularity = r : c ? this.granularity = n.fineGrainedDefaultGranularity ?? n.defaultResponseGranularity : this.granularity = n.defaultResponseGranularity;
2739
2757
  }
2740
2758
  startDate() {
2741
- return this.calculateStartDate(this.granularity);
2759
+ return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
2742
2760
  }
2743
2761
  endDate() {
2744
- return On(this.timeRange.end, this.granularity, this.tz);
2762
+ return On(this.timeframe.rawEnd(), this.granularity, this.tz);
2745
2763
  }
2746
2764
  granularityMs() {
2747
2765
  return Te[this.granularity];
2748
2766
  }
2749
2767
  }
2750
- class wo extends Ne {
2768
+ class wo extends ve {
2751
2769
  startDate() {
2752
- return this.calculateStartDate(this.granularity);
2770
+ return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
2753
2771
  }
2754
2772
  endDate() {
2755
- return On(this.timeRange.start, this.granularity, this.tz);
2773
+ return On(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
2756
2774
  }
2757
2775
  granularityMs() {
2758
2776
  return this.endDate().getTime() - this.startDate().getTime();
@@ -2760,7 +2778,7 @@ class wo extends Ne {
2760
2778
  }
2761
2779
  class Jo extends wo {
2762
2780
  startDate() {
2763
- return this.calculateStartDate(this.granularity, 2);
2781
+ return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
2764
2782
  }
2765
2783
  granularityMs() {
2766
2784
  return this.endDate().getTime() - super.startDate().getTime();
@@ -2773,33 +2791,33 @@ function En(e) {
2773
2791
  var De = { exports: {} };
2774
2792
  De.exports;
2775
2793
  (function(e, t) {
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) {
2794
+ 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 = {};
2795
+ 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;
2796
+ 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;
2797
+ function kn(a, s) {
2780
2798
  return a.set(s[0], s[1]), a;
2781
2799
  }
2782
- function Gn(a, s) {
2800
+ function An(a, s) {
2783
2801
  return a.add(s), a;
2784
2802
  }
2785
2803
  function Fn(a, s) {
2786
- for (var c = -1, y = a ? a.length : 0; ++c < y && s(a[c], c, a) !== !1; )
2804
+ for (var u = -1, y = a ? a.length : 0; ++u < y && s(a[u], u, a) !== !1; )
2787
2805
  ;
2788
2806
  return a;
2789
2807
  }
2790
2808
  function Hn(a, s) {
2791
- for (var c = -1, y = s.length, D = a.length; ++c < y; )
2792
- a[D + c] = s[c];
2809
+ for (var u = -1, y = s.length, M = a.length; ++u < y; )
2810
+ a[M + u] = s[u];
2793
2811
  return a;
2794
2812
  }
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;
2813
+ function ft(a, s, u, y) {
2814
+ for (var M = -1, x = a ? a.length : 0; ++M < x; )
2815
+ u = s(u, a[M], M, a);
2816
+ return u;
2799
2817
  }
2800
2818
  function Ln(a, s) {
2801
- for (var c = -1, y = Array(a); ++c < a; )
2802
- y[c] = s(c);
2819
+ for (var u = -1, y = Array(a); ++u < a; )
2820
+ y[u] = s(u);
2803
2821
  return y;
2804
2822
  }
2805
2823
  function Un(a, s) {
@@ -2815,31 +2833,31 @@ De.exports;
2815
2833
  return s;
2816
2834
  }
2817
2835
  function yt(a) {
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));
2836
+ var s = -1, u = Array(a.size);
2837
+ return a.forEach(function(y, M) {
2838
+ u[++s] = [M, y];
2839
+ }), u;
2840
+ }
2841
+ function Ne(a, s) {
2842
+ return function(u) {
2843
+ return a(s(u));
2826
2844
  };
2827
2845
  }
2828
2846
  function gt(a) {
2829
- var s = -1, c = Array(a.size);
2847
+ var s = -1, u = Array(a.size);
2830
2848
  return a.forEach(function(y) {
2831
- c[++s] = y;
2832
- }), c;
2849
+ u[++s] = y;
2850
+ }), u;
2833
2851
  }
2834
2852
  var Wn = Array.prototype, qn = Function.prototype, de = Object.prototype, Ie = Y["__core-js_shared__"], pt = function() {
2835
2853
  var a = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
2836
2854
  return a ? "Symbol(src)_1." + a : "";
2837
2855
  }(), _t = qn.toString, H = de.hasOwnProperty, me = de.toString, jn = RegExp(
2838
2856
  "^" + _t.call(H).replace(In, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
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;
2857
+ ), 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;
2840
2858
  function j(a) {
2841
- var s = -1, c = a ? a.length : 0;
2842
- for (this.clear(); ++s < c; ) {
2859
+ var s = -1, u = a ? a.length : 0;
2860
+ for (this.clear(); ++s < u; ) {
2843
2861
  var y = a[s];
2844
2862
  this.set(y[0], y[1]);
2845
2863
  }
@@ -2853,8 +2871,8 @@ De.exports;
2853
2871
  function ar(a) {
2854
2872
  var s = this.__data__;
2855
2873
  if (ne) {
2856
- var c = s[a];
2857
- return c === r ? void 0 : c;
2874
+ var u = s[a];
2875
+ return u === r ? void 0 : u;
2858
2876
  }
2859
2877
  return H.call(s, a) ? s[a] : void 0;
2860
2878
  }
@@ -2863,13 +2881,13 @@ De.exports;
2863
2881
  return ne ? s[a] !== void 0 : H.call(s, a);
2864
2882
  }
2865
2883
  function or(a, s) {
2866
- var c = this.__data__;
2867
- return c[a] = ne && s === void 0 ? r : s, this;
2884
+ var u = this.__data__;
2885
+ return u[a] = ne && s === void 0 ? r : s, this;
2868
2886
  }
2869
2887
  j.prototype.clear = nr, j.prototype.delete = rr, j.prototype.get = ar, j.prototype.has = ir, j.prototype.set = or;
2870
- function k(a) {
2871
- var s = -1, c = a ? a.length : 0;
2872
- for (this.clear(); ++s < c; ) {
2888
+ function G(a) {
2889
+ var s = -1, u = a ? a.length : 0;
2890
+ for (this.clear(); ++s < u; ) {
2873
2891
  var y = a[s];
2874
2892
  this.set(y[0], y[1]);
2875
2893
  }
@@ -2877,28 +2895,28 @@ De.exports;
2877
2895
  function sr() {
2878
2896
  this.__data__ = [];
2879
2897
  }
2880
- function cr(a) {
2881
- var s = this.__data__, c = fe(s, a);
2882
- if (c < 0)
2898
+ function ur(a) {
2899
+ var s = this.__data__, u = fe(s, a);
2900
+ if (u < 0)
2883
2901
  return !1;
2884
2902
  var y = s.length - 1;
2885
- return c == y ? s.pop() : Bn.call(s, c, 1), !0;
2903
+ return u == y ? s.pop() : Bn.call(s, u, 1), !0;
2886
2904
  }
2887
- function ur(a) {
2888
- var s = this.__data__, c = fe(s, a);
2889
- return c < 0 ? void 0 : s[c][1];
2905
+ function cr(a) {
2906
+ var s = this.__data__, u = fe(s, a);
2907
+ return u < 0 ? void 0 : s[u][1];
2890
2908
  }
2891
2909
  function lr(a) {
2892
2910
  return fe(this.__data__, a) > -1;
2893
2911
  }
2894
2912
  function dr(a, s) {
2895
- var c = this.__data__, y = fe(c, a);
2896
- return y < 0 ? c.push([a, s]) : c[y][1] = s, this;
2913
+ var u = this.__data__, y = fe(u, a);
2914
+ return y < 0 ? u.push([a, s]) : u[y][1] = s, this;
2897
2915
  }
2898
- k.prototype.clear = sr, k.prototype.delete = cr, k.prototype.get = ur, k.prototype.has = lr, k.prototype.set = dr;
2916
+ G.prototype.clear = sr, G.prototype.delete = ur, G.prototype.get = cr, G.prototype.has = lr, G.prototype.set = dr;
2899
2917
  function B(a) {
2900
- var s = -1, c = a ? a.length : 0;
2901
- for (this.clear(); ++s < c; ) {
2918
+ var s = -1, u = a ? a.length : 0;
2919
+ for (this.clear(); ++s < u; ) {
2902
2920
  var y = a[s];
2903
2921
  this.set(y[0], y[1]);
2904
2922
  }
@@ -2906,7 +2924,7 @@ De.exports;
2906
2924
  function mr() {
2907
2925
  this.__data__ = {
2908
2926
  hash: new j(),
2909
- map: new (te || k)(),
2927
+ map: new (te || G)(),
2910
2928
  string: new j()
2911
2929
  };
2912
2930
  }
@@ -2924,10 +2942,10 @@ De.exports;
2924
2942
  }
2925
2943
  B.prototype.clear = mr, B.prototype.delete = fr, B.prototype.get = hr, B.prototype.has = yr, B.prototype.set = gr;
2926
2944
  function Z(a) {
2927
- this.__data__ = new k(a);
2945
+ this.__data__ = new G(a);
2928
2946
  }
2929
2947
  function pr() {
2930
- this.__data__ = new k();
2948
+ this.__data__ = new G();
2931
2949
  }
2932
2950
  function _r(a) {
2933
2951
  return this.__data__.delete(a);
@@ -2939,45 +2957,45 @@ De.exports;
2939
2957
  return this.__data__.has(a);
2940
2958
  }
2941
2959
  function Tr(a, s) {
2942
- var c = this.__data__;
2943
- if (c instanceof k) {
2944
- var y = c.__data__;
2960
+ var u = this.__data__;
2961
+ if (u instanceof G) {
2962
+ var y = u.__data__;
2945
2963
  if (!te || y.length < n - 1)
2946
2964
  return y.push([a, s]), this;
2947
- c = this.__data__ = new B(y);
2965
+ u = this.__data__ = new B(y);
2948
2966
  }
2949
- return c.set(a, s), this;
2967
+ return u.set(a, s), this;
2950
2968
  }
2951
2969
  Z.prototype.clear = pr, Z.prototype.delete = _r, Z.prototype.get = wr, Z.prototype.has = br, Z.prototype.set = Tr;
2952
2970
  function Dr(a, s) {
2953
- var c = Ae(a) || Vr(a) ? Ln(a.length, String) : [], y = c.length, D = !!y;
2971
+ var u = ke(a) || Vr(a) ? Ln(a.length, String) : [], y = u.length, M = !!y;
2954
2972
  for (var x in a)
2955
- H.call(a, x) && !(D && (x == "length" || Wr(x, y))) && c.push(x);
2956
- return c;
2973
+ H.call(a, x) && !(M && (x == "length" || Wr(x, y))) && u.push(x);
2974
+ return u;
2957
2975
  }
2958
- function Ot(a, s, c) {
2976
+ function Ot(a, s, u) {
2959
2977
  var y = a[s];
2960
- (!(H.call(a, s) && It(y, c)) || c === void 0 && !(s in a)) && (a[s] = c);
2978
+ (!(H.call(a, s) && It(y, u)) || u === void 0 && !(s in a)) && (a[s] = u);
2961
2979
  }
2962
2980
  function fe(a, s) {
2963
- for (var c = a.length; c--; )
2964
- if (It(a[c][0], s))
2965
- return c;
2981
+ for (var u = a.length; u--; )
2982
+ if (It(a[u][0], s))
2983
+ return u;
2966
2984
  return -1;
2967
2985
  }
2968
2986
  function Mr(a, s) {
2969
- return a && Et(s, Ge(s), a);
2987
+ return a && Et(s, Ae(s), a);
2970
2988
  }
2971
- function Ye(a, s, c, y, D, x, A) {
2989
+ function Ye(a, s, u, y, M, x, k) {
2972
2990
  var P;
2973
- if (y && (P = x ? y(a, D, x, A) : y(a)), P !== void 0)
2991
+ if (y && (P = x ? y(a, M, x, k) : y(a)), P !== void 0)
2974
2992
  return P;
2975
2993
  if (!ye(a))
2976
2994
  return a;
2977
- var Rt = Ae(a);
2995
+ var Rt = ke(a);
2978
2996
  if (Rt) {
2979
2997
  if (P = Hr(a), !s)
2980
- return Ar(a, P);
2998
+ return kr(a, P);
2981
2999
  } else {
2982
3000
  var Q = z(a), Ct = Q == f || Q == d;
2983
3001
  if (Br(a))
@@ -2986,111 +3004,111 @@ De.exports;
2986
3004
  if (ht(a))
2987
3005
  return x ? a : {};
2988
3006
  if (P = Lr(Ct ? {} : a), !s)
2989
- return Gr(a, Mr(P, a));
3007
+ return Ar(a, Mr(P, a));
2990
3008
  } else {
2991
3009
  if (!w[Q])
2992
3010
  return x ? a : {};
2993
3011
  P = Ur(a, Q, Ye, s);
2994
3012
  }
2995
3013
  }
2996
- A || (A = new Z());
2997
- var Yt = A.get(a);
3014
+ k || (k = new Z());
3015
+ var Yt = k.get(a);
2998
3016
  if (Yt)
2999
3017
  return Yt;
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));
3018
+ if (k.set(a, P), !Rt)
3019
+ var Gt = u ? Fr(a) : Ae(a);
3020
+ return Fn(Gt || a, function(Fe, ge) {
3021
+ Gt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, u, y, ge, a, k));
3004
3022
  }), P;
3005
3023
  }
3006
3024
  function Sr(a) {
3007
3025
  return ye(a) ? Vn(a) : {};
3008
3026
  }
3009
- function Or(a, s, c) {
3027
+ function Or(a, s, u) {
3010
3028
  var y = s(a);
3011
- return Ae(a) ? y : Hn(y, c(a));
3029
+ return ke(a) ? y : Hn(y, u(a));
3012
3030
  }
3013
3031
  function Er(a) {
3014
3032
  return me.call(a);
3015
3033
  }
3016
- function Nr(a) {
3034
+ function vr(a) {
3017
3035
  if (!ye(a) || jr(a))
3018
3036
  return !1;
3019
3037
  var s = Pt(a) || ht(a) ? jn : Pn;
3020
3038
  return s.test(V(a));
3021
3039
  }
3022
- function vr(a) {
3023
- if (!vt(a))
3040
+ function Nr(a) {
3041
+ if (!Nt(a))
3024
3042
  return Xn(a);
3025
3043
  var s = [];
3026
- for (var c in Object(a))
3027
- H.call(a, c) && c != "constructor" && s.push(c);
3044
+ for (var u in Object(a))
3045
+ H.call(a, u) && u != "constructor" && s.push(u);
3028
3046
  return s;
3029
3047
  }
3030
3048
  function Ir(a, s) {
3031
3049
  if (s)
3032
3050
  return a.slice();
3033
- var c = new a.constructor(a.length);
3034
- return a.copy(c), c;
3051
+ var u = new a.constructor(a.length);
3052
+ return a.copy(u), u;
3035
3053
  }
3036
- function ke(a) {
3054
+ function Ge(a) {
3037
3055
  var s = new a.constructor(a.byteLength);
3038
3056
  return new Tt(s).set(new Tt(a)), s;
3039
3057
  }
3040
3058
  function xr(a, s) {
3041
- var c = s ? ke(a.buffer) : a.buffer;
3042
- return new a.constructor(c, a.byteOffset, a.byteLength);
3059
+ var u = s ? Ge(a.buffer) : a.buffer;
3060
+ return new a.constructor(u, a.byteOffset, a.byteLength);
3043
3061
  }
3044
- function Pr(a, s, c) {
3045
- var y = s ? c(yt(a), !0) : yt(a);
3046
- return ft(y, An, new a.constructor());
3062
+ function Pr(a, s, u) {
3063
+ var y = s ? u(yt(a), !0) : yt(a);
3064
+ return ft(y, kn, new a.constructor());
3047
3065
  }
3048
3066
  function Rr(a) {
3049
3067
  var s = new a.constructor(a.source, xn.exec(a));
3050
3068
  return s.lastIndex = a.lastIndex, s;
3051
3069
  }
3052
- function Cr(a, s, c) {
3053
- var y = s ? c(gt(a), !0) : gt(a);
3054
- return ft(y, Gn, new a.constructor());
3070
+ function Cr(a, s, u) {
3071
+ var y = s ? u(gt(a), !0) : gt(a);
3072
+ return ft(y, An, new a.constructor());
3055
3073
  }
3056
3074
  function Yr(a) {
3057
3075
  return St ? Object(St.call(a)) : {};
3058
3076
  }
3059
- function kr(a, s) {
3060
- var c = s ? ke(a.buffer) : a.buffer;
3061
- return new a.constructor(c, a.byteOffset, a.length);
3077
+ function Gr(a, s) {
3078
+ var u = s ? Ge(a.buffer) : a.buffer;
3079
+ return new a.constructor(u, a.byteOffset, a.length);
3062
3080
  }
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];
3081
+ function kr(a, s) {
3082
+ var u = -1, y = a.length;
3083
+ for (s || (s = Array(y)); ++u < y; )
3084
+ s[u] = a[u];
3067
3085
  return s;
3068
3086
  }
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);
3087
+ function Et(a, s, u, y) {
3088
+ u || (u = {});
3089
+ for (var M = -1, x = s.length; ++M < x; ) {
3090
+ var k = s[M], P = void 0;
3091
+ Ot(u, k, P === void 0 ? a[k] : P);
3074
3092
  }
3075
- return c;
3093
+ return u;
3076
3094
  }
3077
- function Gr(a, s) {
3078
- return Et(a, Nt(a), s);
3095
+ function Ar(a, s) {
3096
+ return Et(a, vt(a), s);
3079
3097
  }
3080
3098
  function Fr(a) {
3081
- return Or(a, Ge, Nt);
3099
+ return Or(a, Ae, vt);
3082
3100
  }
3083
3101
  function he(a, s) {
3084
- var c = a.__data__;
3085
- return qr(s) ? c[typeof s == "string" ? "string" : "hash"] : c.map;
3102
+ var u = a.__data__;
3103
+ return qr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
3086
3104
  }
3087
3105
  function X(a, s) {
3088
- var c = Un(a, s);
3089
- return Nr(c) ? c : void 0;
3106
+ var u = Un(a, s);
3107
+ return vr(u) ? u : void 0;
3090
3108
  }
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;
3109
+ var vt = Dt ? Ne(Dt, Object) : Qr, z = Er;
3110
+ (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) {
3111
+ var s = me.call(a), u = s == E ? a.constructor : void 0, y = u ? V(u) : void 0;
3094
3112
  if (y)
3095
3113
  switch (y) {
3096
3114
  case Qn:
@@ -3098,7 +3116,7 @@ De.exports;
3098
3116
  case Kn:
3099
3117
  return h;
3100
3118
  case Jn:
3101
- return v;
3119
+ return N;
3102
3120
  case er:
3103
3121
  return W;
3104
3122
  case tr:
@@ -3107,20 +3125,20 @@ De.exports;
3107
3125
  return s;
3108
3126
  });
3109
3127
  function Hr(a) {
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;
3128
+ var s = a.length, u = a.constructor(s);
3129
+ return s && typeof a[0] == "string" && H.call(a, "index") && (u.index = a.index, u.input = a.input), u;
3112
3130
  }
3113
3131
  function Lr(a) {
3114
- return typeof a.constructor == "function" && !vt(a) ? Sr(zn(a)) : {};
3132
+ return typeof a.constructor == "function" && !Nt(a) ? Sr(zn(a)) : {};
3115
3133
  }
3116
- function Ur(a, s, c, y) {
3117
- var D = a.constructor;
3134
+ function Ur(a, s, u, y) {
3135
+ var M = a.constructor;
3118
3136
  switch (s) {
3119
3137
  case tt:
3120
- return ke(a);
3138
+ return Ge(a);
3121
3139
  case m:
3122
- case p:
3123
- return new D(+a);
3140
+ case g:
3141
+ return new M(+a);
3124
3142
  case le:
3125
3143
  return xr(a, y);
3126
3144
  case nt:
@@ -3129,20 +3147,20 @@ De.exports;
3129
3147
  case it:
3130
3148
  case ot:
3131
3149
  case st:
3132
- case ct:
3133
3150
  case ut:
3151
+ case ct:
3134
3152
  case lt:
3135
- return kr(a, y);
3153
+ return Gr(a, y);
3136
3154
  case h:
3137
- return Pr(a, y, c);
3155
+ return Pr(a, y, u);
3138
3156
  case b:
3139
- case N:
3140
- return new D(a);
3157
+ case v:
3158
+ return new M(a);
3141
3159
  case C:
3142
3160
  return Rr(a);
3143
3161
  case W:
3144
- return Cr(a, y, c);
3145
- case T:
3162
+ return Cr(a, y, u);
3163
+ case D:
3146
3164
  return Yr(a);
3147
3165
  }
3148
3166
  }
@@ -3156,9 +3174,9 @@ De.exports;
3156
3174
  function jr(a) {
3157
3175
  return !!pt && pt in a;
3158
3176
  }
3159
- function vt(a) {
3160
- var s = a && a.constructor, c = typeof s == "function" && s.prototype || de;
3161
- return a === c;
3177
+ function Nt(a) {
3178
+ var s = a && a.constructor, u = typeof s == "function" && s.prototype || de;
3179
+ return a === u;
3162
3180
  }
3163
3181
  function V(a) {
3164
3182
  if (a != null) {
@@ -3182,7 +3200,7 @@ De.exports;
3182
3200
  function Vr(a) {
3183
3201
  return $r(a) && H.call(a, "callee") && (!$n.call(a, "callee") || me.call(a) == o);
3184
3202
  }
3185
- var Ae = Array.isArray;
3203
+ var ke = Array.isArray;
3186
3204
  function xt(a) {
3187
3205
  return a != null && Zr(a.length) && !Pt(a);
3188
3206
  }
@@ -3204,8 +3222,8 @@ De.exports;
3204
3222
  function Xr(a) {
3205
3223
  return !!a && typeof a == "object";
3206
3224
  }
3207
- function Ge(a) {
3208
- return xt(a) ? Dr(a) : vr(a);
3225
+ function Ae(a) {
3226
+ return xt(a) ? Dr(a) : Nr(a);
3209
3227
  }
3210
3228
  function Qr() {
3211
3229
  return [];
@@ -3219,28 +3237,28 @@ var bo = De.exports;
3219
3237
  const To = /* @__PURE__ */ En(bo), F = (e, t) => new Date(e.getTime() - Mn(t, e));
3220
3238
  class S {
3221
3239
  constructor(t) {
3222
- M(this, "timeframeText");
3223
- M(this, "key");
3224
- M(this, "display");
3225
- M(this, "timeframeLength");
3226
- M(this, "allowedTiers");
3240
+ T(this, "timeframeText");
3241
+ T(this, "key");
3242
+ T(this, "display");
3243
+ T(this, "timeframeLength");
3244
+ T(this, "allowedTiers");
3227
3245
  // defaultResponseGranularity tracks which of the allowed granularities is picked for a given
3228
3246
  // timeframe if the user does not or cannot specify a granularity.
3229
- M(this, "defaultResponseGranularity");
3247
+ T(this, "defaultResponseGranularity");
3230
3248
  // dataGranularity tracks the granularity of the available data on the server for a specific timeframe.
3231
3249
  // As of writing, it's always the same as the default response granularity, but it may not always be.
3232
3250
  // It controls how timeframes are rounded to ensure complete time buckets from the server.
3233
- M(this, "dataGranularity");
3251
+ T(this, "dataGranularity");
3234
3252
  // isRelative impacts whether we take the `floor` or the `ceil` of the start time.
3235
3253
  // If the time range is relative, we want the ceil -- because we take the ceil of the
3236
3254
  // end time to make sure we're showing all the data we can for the last time bucket.
3237
3255
  // If the time range is absolute, we want the floor -- because otherwise we wouldn't be including
3238
3256
  // the first time bucket.
3239
- M(this, "isRelative");
3240
- M(this, "fineGrainedDefaultGranularity");
3241
- M(this, "_startCustom");
3242
- M(this, "_endCustom");
3243
- M(this, "_allowedGranularitiesOverride");
3257
+ T(this, "isRelative");
3258
+ T(this, "fineGrainedDefaultGranularity");
3259
+ T(this, "_startCustom");
3260
+ T(this, "_endCustom");
3261
+ T(this, "_allowedGranularitiesOverride");
3244
3262
  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;
3245
3263
  }
3246
3264
  // rawEnd does not consider granularity and should not be used directly in queries.
@@ -3296,7 +3314,7 @@ class S {
3296
3314
  }
3297
3315
  class Do extends S {
3298
3316
  rawStart(t) {
3299
- let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3317
+ let n = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3300
3318
  return t && (n = F(n, t)), n;
3301
3319
  }
3302
3320
  maximumTimeframeLength() {
@@ -3323,12 +3341,12 @@ class So extends S {
3323
3341
  }
3324
3342
  class Oo extends S {
3325
3343
  rawEnd(t) {
3326
- let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3344
+ let n = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3327
3345
  return t && (n = F(n, t)), n;
3328
3346
  }
3329
3347
  rawStart(t) {
3330
3348
  const n = this.tzAdjustedDate(t);
3331
- let r = G(n.setDate(n.getDate() - 7), {
3349
+ let r = A(n.setDate(n.getDate() - 7), {
3332
3350
  weekStartsOn: 1
3333
3351
  });
3334
3352
  return t && (r = F(r, t)), r;
@@ -3344,7 +3362,7 @@ class Eo extends S {
3344
3362
  return t && (n = F(n, t)), n;
3345
3363
  }
3346
3364
  }
3347
- class No extends S {
3365
+ class vo extends S {
3348
3366
  rawEnd(t) {
3349
3367
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
3350
3368
  return t && (n = F(n, t)), n;
@@ -3354,11 +3372,11 @@ class No extends S {
3354
3372
  return t && (n = F(n, t)), n;
3355
3373
  }
3356
3374
  }
3357
- const vo = /* @__PURE__ */ new Map([
3375
+ const No = /* @__PURE__ */ new Map([
3358
3376
  [
3359
- g.FIFTEEN_MIN,
3377
+ p.FIFTEEN_MIN,
3360
3378
  new S({
3361
- key: g.FIFTEEN_MIN,
3379
+ key: p.FIFTEEN_MIN,
3362
3380
  display: "Last 15 minutes",
3363
3381
  timeframeText: "15 minutes",
3364
3382
  timeframeLength: () => 60 * 15,
@@ -3371,9 +3389,9 @@ const vo = /* @__PURE__ */ new Map([
3371
3389
  })
3372
3390
  ],
3373
3391
  [
3374
- g.ONE_HOUR,
3392
+ p.ONE_HOUR,
3375
3393
  new S({
3376
- key: g.ONE_HOUR,
3394
+ key: p.ONE_HOUR,
3377
3395
  display: "Last hour",
3378
3396
  timeframeText: "One hour",
3379
3397
  timeframeLength: () => 60 * 60 * 1,
@@ -3386,9 +3404,9 @@ const vo = /* @__PURE__ */ new Map([
3386
3404
  })
3387
3405
  ],
3388
3406
  [
3389
- g.SIX_HOUR,
3407
+ p.SIX_HOUR,
3390
3408
  new S({
3391
- key: g.SIX_HOUR,
3409
+ key: p.SIX_HOUR,
3392
3410
  display: "Last 6 hours",
3393
3411
  timeframeText: "6 hours",
3394
3412
  timeframeLength: () => 60 * 60 * 6,
@@ -3401,9 +3419,9 @@ const vo = /* @__PURE__ */ new Map([
3401
3419
  })
3402
3420
  ],
3403
3421
  [
3404
- g.TWELVE_HOUR,
3422
+ p.TWELVE_HOUR,
3405
3423
  new S({
3406
- key: g.TWELVE_HOUR,
3424
+ key: p.TWELVE_HOUR,
3407
3425
  display: "Last 12 hours",
3408
3426
  timeframeText: "12 hours",
3409
3427
  timeframeLength: () => 60 * 60 * 12,
@@ -3416,9 +3434,9 @@ const vo = /* @__PURE__ */ new Map([
3416
3434
  })
3417
3435
  ],
3418
3436
  [
3419
- g.ONE_DAY,
3437
+ p.ONE_DAY,
3420
3438
  new S({
3421
- key: g.ONE_DAY,
3439
+ key: p.ONE_DAY,
3422
3440
  display: "Last 24 hours",
3423
3441
  timeframeText: "24 hours",
3424
3442
  timeframeLength: () => 60 * 60 * 24,
@@ -3431,9 +3449,9 @@ const vo = /* @__PURE__ */ new Map([
3431
3449
  })
3432
3450
  ],
3433
3451
  [
3434
- g.SEVEN_DAY,
3452
+ p.SEVEN_DAY,
3435
3453
  new S({
3436
- key: g.SEVEN_DAY,
3454
+ key: p.SEVEN_DAY,
3437
3455
  display: "Last 7 days",
3438
3456
  timeframeText: "7 days",
3439
3457
  timeframeLength: () => 60 * 60 * 24 * 7,
@@ -3446,9 +3464,9 @@ const vo = /* @__PURE__ */ new Map([
3446
3464
  })
3447
3465
  ],
3448
3466
  [
3449
- g.THIRTY_DAY,
3467
+ p.THIRTY_DAY,
3450
3468
  new S({
3451
- key: g.THIRTY_DAY,
3469
+ key: p.THIRTY_DAY,
3452
3470
  display: "Last 30 days",
3453
3471
  timeframeText: "30 days",
3454
3472
  timeframeLength: () => 60 * 60 * 24 * 30,
@@ -3461,9 +3479,9 @@ const vo = /* @__PURE__ */ new Map([
3461
3479
  })
3462
3480
  ],
3463
3481
  [
3464
- g.NINETY_DAY,
3482
+ p.NINETY_DAY,
3465
3483
  new S({
3466
- key: g.NINETY_DAY,
3484
+ key: p.NINETY_DAY,
3467
3485
  display: "Last 90 days",
3468
3486
  timeframeText: "90 days",
3469
3487
  timeframeLength: () => 60 * 60 * 24 * 90,
@@ -3476,9 +3494,9 @@ const vo = /* @__PURE__ */ new Map([
3476
3494
  })
3477
3495
  ],
3478
3496
  [
3479
- g.ONE_HUNDRED_EIGHTY_DAY,
3497
+ p.ONE_HUNDRED_EIGHTY_DAY,
3480
3498
  new S({
3481
- key: g.ONE_HUNDRED_EIGHTY_DAY,
3499
+ key: p.ONE_HUNDRED_EIGHTY_DAY,
3482
3500
  display: "Last 180 days",
3483
3501
  timeframeText: "180 days",
3484
3502
  timeframeLength: () => 60 * 60 * 24 * 180,
@@ -3491,9 +3509,9 @@ const vo = /* @__PURE__ */ new Map([
3491
3509
  })
3492
3510
  ],
3493
3511
  [
3494
- g.ONE_YEAR,
3512
+ p.ONE_YEAR,
3495
3513
  new S({
3496
- key: g.ONE_YEAR,
3514
+ key: p.ONE_YEAR,
3497
3515
  display: "Last 365 days",
3498
3516
  timeframeText: "365 days",
3499
3517
  timeframeLength: () => 60 * 60 * 24 * 365,
@@ -3506,13 +3524,13 @@ const vo = /* @__PURE__ */ new Map([
3506
3524
  })
3507
3525
  ],
3508
3526
  [
3509
- g.CURRENT_WEEK,
3527
+ p.CURRENT_WEEK,
3510
3528
  new Do({
3511
- key: g.CURRENT_WEEK,
3529
+ key: p.CURRENT_WEEK,
3512
3530
  display: "This week",
3513
3531
  timeframeText: "Week",
3514
3532
  timeframeLength: () => {
3515
- const e = G(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
3533
+ const e = A(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
3516
3534
  return (ie(Le(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3517
3535
  },
3518
3536
  defaultResponseGranularity: "daily",
@@ -3524,9 +3542,9 @@ const vo = /* @__PURE__ */ new Map([
3524
3542
  })
3525
3543
  ],
3526
3544
  [
3527
- g.CURRENT_MONTH,
3545
+ p.CURRENT_MONTH,
3528
3546
  new Mo({
3529
- key: g.CURRENT_MONTH,
3547
+ key: p.CURRENT_MONTH,
3530
3548
  display: "This month",
3531
3549
  timeframeText: "Month",
3532
3550
  timeframeLength: () => {
@@ -3540,9 +3558,9 @@ const vo = /* @__PURE__ */ new Map([
3540
3558
  })
3541
3559
  ],
3542
3560
  [
3543
- g.CURRENT_YEAR,
3561
+ p.CURRENT_YEAR,
3544
3562
  new So({
3545
- key: g.CURRENT_YEAR,
3563
+ key: p.CURRENT_YEAR,
3546
3564
  display: "This year",
3547
3565
  timeframeText: "Year",
3548
3566
  timeframeLength: () => {
@@ -3556,9 +3574,9 @@ const vo = /* @__PURE__ */ new Map([
3556
3574
  })
3557
3575
  ],
3558
3576
  [
3559
- g.PREVIOUS_WEEK,
3577
+ p.PREVIOUS_WEEK,
3560
3578
  new Oo({
3561
- key: g.PREVIOUS_WEEK,
3579
+ key: p.PREVIOUS_WEEK,
3562
3580
  display: "Previous week",
3563
3581
  timeframeText: "Week",
3564
3582
  timeframeLength: () => 60 * 60 * 24 * 7,
@@ -3571,9 +3589,9 @@ const vo = /* @__PURE__ */ new Map([
3571
3589
  })
3572
3590
  ],
3573
3591
  [
3574
- g.PREVIOUS_MONTH,
3592
+ p.PREVIOUS_MONTH,
3575
3593
  new Eo({
3576
- key: g.PREVIOUS_MONTH,
3594
+ key: p.PREVIOUS_MONTH,
3577
3595
  display: "Previous month",
3578
3596
  timeframeText: "Month",
3579
3597
  timeframeLength: () => {
@@ -3588,9 +3606,9 @@ const vo = /* @__PURE__ */ new Map([
3588
3606
  })
3589
3607
  ],
3590
3608
  [
3591
- g.PREVIOUS_YEAR,
3592
- new No({
3593
- key: g.PREVIOUS_YEAR,
3609
+ p.PREVIOUS_YEAR,
3610
+ new vo({
3611
+ key: p.PREVIOUS_YEAR,
3594
3612
  display: "Previous year",
3595
3613
  timeframeText: "Year",
3596
3614
  timeframeLength: () => {
@@ -3607,7 +3625,7 @@ const vo = /* @__PURE__ */ new Map([
3607
3625
  ]);
3608
3626
  function es(e) {
3609
3627
  const t = new Date(e.start), n = new Date(e.end), r = (n.getTime() - t.getTime()) / 1e3;
3610
- return e.timePeriodsKey && To(vo.get(e.timePeriodsKey)) || new S({
3628
+ return e.timePeriodsKey && To(No.get(e.timePeriodsKey)) || new S({
3611
3629
  key: "custom",
3612
3630
  timeframeText: "custom",
3613
3631
  display: "custom",
@@ -3642,32 +3660,32 @@ function rn(e, t) {
3642
3660
  return Wi(e.getTimezoneOffset() - t.getTimezoneOffset());
3643
3661
  }
3644
3662
  const rs = {
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
3663
+ "15M": p.FIFTEEN_MIN,
3664
+ "1H": p.ONE_HOUR,
3665
+ "6H": p.SIX_HOUR,
3666
+ "12H": p.TWELVE_HOUR,
3667
+ "24H": p.ONE_DAY,
3668
+ "7D": p.SEVEN_DAY,
3669
+ "15m": p.FIFTEEN_MIN,
3670
+ "1h": p.ONE_HOUR,
3671
+ "6h": p.SIX_HOUR,
3672
+ "12h": p.TWELVE_HOUR,
3673
+ "24h": p.ONE_DAY,
3674
+ "7d": p.SEVEN_DAY,
3675
+ "30d": p.THIRTY_DAY,
3676
+ "90d": p.NINETY_DAY,
3677
+ "180d": p.ONE_HUNDRED_EIGHTY_DAY,
3678
+ "365d": p.ONE_YEAR,
3679
+ current_week: p.CURRENT_WEEK,
3680
+ current_month: p.CURRENT_MONTH,
3681
+ current_year: p.CURRENT_YEAR,
3682
+ previous_week: p.PREVIOUS_WEEK,
3683
+ previous_month: p.PREVIOUS_MONTH,
3684
+ previous_year: p.PREVIOUS_YEAR
3667
3685
  };
3668
3686
  class et {
3669
3687
  constructor(t) {
3670
- M(this, "_seed");
3688
+ T(this, "_seed");
3671
3689
  this._seed = t;
3672
3690
  }
3673
3691
  next(t, n) {
@@ -3676,30 +3694,30 @@ class et {
3676
3694
  }
3677
3695
  }
3678
3696
  const as = (e, t, n) => {
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)
3697
+ const r = vn(10, 1e4), i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), m = [];
3698
+ let g = 0;
3699
+ for (let d = o; d <= c; d += 60 * 60 * 1e3)
3682
3700
  if (t)
3683
3701
  for (const h in t)
3684
3702
  t[h].forEach((b) => {
3685
- p += i.next(50, 500);
3703
+ g += i.next(50, 500);
3686
3704
  const E = {
3687
3705
  [h]: b,
3688
- [e.name]: p
3689
- }, v = {
3706
+ [e.name]: g
3707
+ }, N = {
3690
3708
  version: "1.0",
3691
3709
  timestamp: new Date(d).toISOString(),
3692
3710
  event: E
3693
3711
  };
3694
- m.push(v);
3712
+ m.push(N);
3695
3713
  });
3696
3714
  else {
3697
- p += i.next(50, 500);
3715
+ g += i.next(50, 500);
3698
3716
  const h = {
3699
3717
  version: "1.0",
3700
3718
  timestamp: new Date(d).toISOString(),
3701
3719
  event: {
3702
- [e.name]: p
3720
+ [e.name]: g
3703
3721
  }
3704
3722
  };
3705
3723
  m.push(h);
@@ -3715,9 +3733,9 @@ const as = (e, t, n) => {
3715
3733
  });
3716
3734
  const f = {
3717
3735
  start_ms: o,
3718
- end_ms: u,
3736
+ end_ms: c,
3719
3737
  start: new Date(o).toISOString(),
3720
- end: new Date(u).toISOString(),
3738
+ end: new Date(c).toISOString(),
3721
3739
  query_id: "12345",
3722
3740
  metric_names: [e.name],
3723
3741
  metric_units: {
@@ -3733,7 +3751,7 @@ const as = (e, t, n) => {
3733
3751
  meta: f
3734
3752
  };
3735
3753
  }, is = (e, t) => {
3736
- const n = Nn(10, 1e4), r = new et(n), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), u = [], m = {};
3754
+ const n = vn(10, 1e4), r = new et(n), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), c = [], m = {};
3737
3755
  e.forEach((l) => {
3738
3756
  m[l.name] = 0;
3739
3757
  });
@@ -3747,9 +3765,9 @@ const as = (e, t, n) => {
3747
3765
  timestamp: new Date(l).toISOString(),
3748
3766
  event: f
3749
3767
  };
3750
- u.push(d);
3768
+ c.push(d);
3751
3769
  }
3752
- const p = {
3770
+ const g = {
3753
3771
  start_ms: i,
3754
3772
  end_ms: o,
3755
3773
  start: new Date(i).toISOString(),
@@ -3763,25 +3781,25 @@ const as = (e, t, n) => {
3763
3781
  ...t ?? {}
3764
3782
  };
3765
3783
  return {
3766
- data: u,
3767
- meta: p
3784
+ data: c,
3785
+ meta: g
3768
3786
  };
3769
3787
  }, os = (e, t, n) => {
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 = [];
3788
+ 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 = [];
3771
3789
  if (t) {
3772
- const d = Object.keys(t), h = Object.values(t), b = (E, v) => {
3773
- if (v === d.length) {
3790
+ const d = Object.keys(t), h = Object.values(t), b = (E, N) => {
3791
+ if (N === d.length) {
3774
3792
  e.forEach((C) => {
3775
3793
  E[C.name] = i.next(1e3, 5e7);
3776
- }), p.push({
3794
+ }), g.push({
3777
3795
  version: "1.0",
3778
3796
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
3779
3797
  event: { ...E }
3780
3798
  });
3781
3799
  return;
3782
3800
  }
3783
- h[v].forEach((C) => {
3784
- b({ ...E, [d[v]]: C }, v + 1);
3801
+ h[N].forEach((C) => {
3802
+ b({ ...E, [d[N]]: C }, N + 1);
3785
3803
  });
3786
3804
  };
3787
3805
  b({}, 0);
@@ -3789,7 +3807,7 @@ const as = (e, t, n) => {
3789
3807
  const d = {};
3790
3808
  e.forEach((h) => {
3791
3809
  d[h.name] = i.next(50, 500);
3792
- }), p.push({
3810
+ }), g.push({
3793
3811
  version: "1.0",
3794
3812
  timestamp: m,
3795
3813
  event: d
@@ -3806,74 +3824,74 @@ const as = (e, t, n) => {
3806
3824
  });
3807
3825
  const f = {
3808
3826
  start_ms: o,
3809
- end_ms: u,
3827
+ end_ms: c,
3810
3828
  start: new Date(o).toISOString(),
3811
- end: new Date(u).toISOString(),
3829
+ end: new Date(c).toISOString(),
3812
3830
  query_id: "12345",
3813
3831
  metric_names: e.map((d) => d.name),
3814
3832
  metric_units: e.reduce((d, h) => (d[h.name] = h.unit, d), {}),
3815
3833
  truncated: !1,
3816
3834
  limit: 50,
3817
3835
  display: l,
3818
- granularity_ms: u - o,
3836
+ granularity_ms: c - o,
3819
3837
  ...n ?? {}
3820
3838
  };
3821
3839
  return {
3822
- data: p,
3840
+ data: g,
3823
3841
  meta: f
3824
3842
  };
3825
3843
  };
3826
- function Nn(e, t) {
3844
+ function vn(e, t) {
3827
3845
  return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
3828
3846
  }
3829
3847
  const Io = new Map(dn.map((e) => [e.code, { code: e.code, name: e.name }])), ss = (e) => {
3830
3848
  var t;
3831
3849
  return ((t = Io.get(e)) == null ? void 0 : t.name) || e;
3832
3850
  };
3833
- var vn = { exports: {} };
3851
+ var Nn = { exports: {} };
3834
3852
  (function(e) {
3835
3853
  (function() {
3836
3854
  function t(l, f) {
3837
3855
  if (f.separator === !1 || l < 1e3)
3838
3856
  return l.toString();
3839
3857
  var d = typeof f.separator == "string" ? f.separator : ",", h = [], b = Math.round(l).toString().split("");
3840
- return b.reverse().forEach(function(E, v) {
3841
- v && v % 3 === 0 && h.push(d), h.push(E);
3858
+ return b.reverse().forEach(function(E, N) {
3859
+ N && N % 3 === 0 && h.push(d), h.push(E);
3842
3860
  }), h.reverse().join("");
3843
3861
  }
3844
3862
  function n(l, f, d) {
3845
3863
  var h = l / f, b = d.round ? "round" : "floor";
3846
3864
  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);
3847
3865
  }
3848
- var r = 1e3, i = 1e4, o = 1e6, u = 1e9, m = 1e12;
3849
- function p(l, f) {
3866
+ var r = 1e3, i = 1e4, o = 1e6, c = 1e9, m = 1e12;
3867
+ function g(l, f) {
3850
3868
  var d;
3851
3869
  f = f || {};
3852
3870
  var h = l < 0;
3853
3871
  h && (l = Math.abs(l)), f.precision && (l = parseFloat(l.toPrecision(f.precision)));
3854
3872
  var b = f.min10k ? i : r;
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;
3873
+ 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;
3856
3874
  }
3857
- p.addCommas = t, e.exports = p;
3875
+ g.addCommas = t, e.exports = g;
3858
3876
  })();
3859
- })(vn);
3860
- var xo = vn.exports;
3877
+ })(Nn);
3878
+ var xo = Nn.exports;
3861
3879
  const Ve = /* @__PURE__ */ En(xo);
3862
3880
  var an;
3863
3881
  const $e = new Intl.NumberFormat(((an = document == null ? void 0 : document.documentElement) == null ? void 0 : an.lang) || "en-US");
3864
- function cs({
3882
+ function us({
3865
3883
  i18n: e
3866
3884
  }) {
3867
- const t = (o, u) => {
3885
+ const t = (o, c) => {
3868
3886
  if (isNaN(o))
3869
3887
  return "0 B";
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;
3888
+ 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;
3871
3889
  let h;
3872
3890
  return o >= m ? h = e.formatNumber(
3873
3891
  Number.parseFloat((o / m).toPrecision(3)),
3874
3892
  { style: "unit", unit: "petabyte", unitDisplay: "narrow" }
3875
- ) : o >= p ? h = e.formatNumber(
3876
- Number.parseFloat((o / p).toPrecision(3)),
3893
+ ) : o >= g ? h = e.formatNumber(
3894
+ Number.parseFloat((o / g).toPrecision(3)),
3877
3895
  { style: "unit", unit: "terabyte", unitDisplay: "narrow" }
3878
3896
  ) : o >= l ? h = e.formatNumber(
3879
3897
  Number.parseFloat((o / l).toPrecision(3)),
@@ -3888,19 +3906,19 @@ function cs({
3888
3906
  Number.parseFloat(o.toPrecision(3)),
3889
3907
  { style: "unit", unit: "byte", unitDisplay: "narrow" }
3890
3908
  ), h.replace(/([a-zA-Z]*)$/, " $1");
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, {
3909
+ }, 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))}`;
3910
+ return { formatUnit: (o, c, {
3893
3911
  isBytes1024: m = !1,
3894
- currency: p = "USD",
3912
+ currency: g = "USD",
3895
3913
  approximate: l = !1,
3896
3914
  translateUnit: f = (d) => d
3897
3915
  } = {}) => {
3898
- const d = f(u, o);
3899
- switch (u) {
3916
+ const d = f(c, o);
3917
+ switch (c) {
3900
3918
  case "bytes":
3901
3919
  return t(o, m);
3902
3920
  case "usd":
3903
- return n(o, p);
3921
+ return n(o, g);
3904
3922
  case "ms":
3905
3923
  case "count/minute":
3906
3924
  case "token count":
@@ -3908,29 +3926,29 @@ function cs({
3908
3926
  default:
3909
3927
  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}`;
3910
3928
  }
3911
- }, formatBytes: t, formatCost: n, formatRange: (o, u, m, {
3912
- isBytes1024: p = !1,
3929
+ }, formatBytes: t, formatCost: n, formatRange: (o, c, m, {
3930
+ isBytes1024: g = !1,
3913
3931
  currency: l = "USD",
3914
3932
  approximate: f = !1,
3915
3933
  translateUnit: d = (h) => h
3916
3934
  } = {}) => {
3917
- const h = d(m, u);
3935
+ const h = d(m, c);
3918
3936
  switch (m) {
3919
3937
  case "bytes":
3920
- return `${t(o, p)} - ${t(u, p)}`;
3938
+ return `${t(o, g)} - ${t(c, g)}`;
3921
3939
  case "usd":
3922
- return `${n(o, l)} - ${n(u, l)}`;
3940
+ return `${n(o, l)} - ${n(c, l)}`;
3923
3941
  case "ms":
3924
3942
  case "count/minute":
3925
3943
  case "token count":
3926
3944
  case "count":
3927
3945
  default:
3928
- if (isNaN(o) || isNaN(u))
3929
- return `${o} - ${u}`;
3946
+ if (isNaN(o) || isNaN(c))
3947
+ return `${o} - ${c}`;
3930
3948
  if (f)
3931
- return `${Ve(o, { capital: !0 })} - ${Ve(u, { capital: !0 })} ${h}`;
3949
+ return `${Ve(o, { capital: !0 })} - ${Ve(c, { capital: !0 })} ${h}`;
3932
3950
  }
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))}`;
3951
+ 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))}`;
3934
3952
  return `${b} - ${E} ${h}`;
3935
3953
  } };
3936
3954
  }
@@ -3943,15 +3961,15 @@ export {
3943
3961
  Ro as REFRESH_INTERVAL_MS,
3944
3962
  et as SeededRandom,
3945
3963
  rs as TIMEFRAME_LOOKUP,
3946
- vo as TimePeriods,
3964
+ No as TimePeriods,
3947
3965
  S as Timeframe,
3948
- g as TimeframeKeys,
3966
+ p as TimeframeKeys,
3949
3967
  Ko as TimeseriesQueryTime,
3950
3968
  wo as UnaryQueryTime,
3951
3969
  aa as aiExploreAggregations,
3952
3970
  Ma as apiUsageQuerySchema,
3953
3971
  ma as barChartSchema,
3954
- cn as basicExploreAggregations,
3972
+ un as basicExploreAggregations,
3955
3973
  Sa as basicQuerySchema,
3956
3974
  On as ceilToNearestTimeGrain,
3957
3975
  ba as choroplethMapSchema,
@@ -3964,17 +3982,17 @@ export {
3964
3982
  rn as dstOffsetHours,
3965
3983
  ra as exploreAggregations,
3966
3984
  ta as exploreFilterTypesV2,
3967
- ko as extendedRelativeTimeRangeValues,
3985
+ Go as extendedRelativeTimeRangeValues,
3968
3986
  Oe as filterableAiExploreDimensions,
3969
3987
  Me as filterableBasicExploreDimensions,
3970
3988
  Se as filterableExploreDimensions,
3971
3989
  oa as filterableRequestDimensions,
3972
- ua as filterableRequestMetrics,
3990
+ ca as filterableRequestMetrics,
3973
3991
  Uo as filterableRequestWildcardDimensions,
3974
3992
  _o as floorToNearestTimeGrain,
3975
- Bo as formatLogTimestamp,
3976
3993
  nn as formatTime,
3977
3994
  Zo as formatTimeRange,
3995
+ Bo as formatTimestamp,
3978
3996
  ya as gaugeChartSchema,
3979
3997
  os as generateCrossSectionalData,
3980
3998
  is as generateMultipleMetricTimeSeriesData,
@@ -3991,16 +4009,16 @@ export {
3991
4009
  qo as queryDatasources,
3992
4010
  ln as queryableAiExploreDimensions,
3993
4011
  Ze as queryableBasicExploreDimensions,
3994
- un as queryableExploreDimensions,
4012
+ cn as queryableExploreDimensions,
3995
4013
  ia as queryableRequestDimensions,
3996
- ca as queryableRequestMetrics,
4014
+ ua as queryableRequestMetrics,
3997
4015
  sa as queryableRequestWildcardDimensions,
3998
- Nn as rand,
4016
+ vn as rand,
3999
4017
  Wo as relativeTimeRangeValuesRequestV2,
4000
4018
  on as relativeTimeRangeValuesV4,
4001
- Ao as reportChartTypes,
4019
+ ko as reportChartTypes,
4002
4020
  na as requestFilterTypeEmptyV2,
4003
- Go as requestFilterTypeEqualsV2,
4021
+ Ao as requestFilterTypeEqualsV2,
4004
4022
  Fo as requestFilterTypeMetricV2,
4005
4023
  Ho as requestFilterTypeWildcardV2,
4006
4024
  wa as singleValueSchema,
@@ -4008,14 +4026,14 @@ export {
4008
4026
  jo as stripUnknownFilters,
4009
4027
  fa as thresholdSchema,
4010
4028
  Ia as tileConfigSchema,
4011
- Na as tileDefinitionSchema,
4012
- va as tileLayoutSchema,
4029
+ va as tileDefinitionSchema,
4030
+ Na as tileLayoutSchema,
4013
4031
  Lo as timeRangeTypeV2,
4014
4032
  ts as timeframeToDatepickerSelection,
4015
4033
  ns as timeframeToDatepickerTimeperiod,
4016
4034
  ha as timeseriesChartSchema,
4017
4035
  pa as topNTableSchema,
4018
- cs as unitFormatter,
4036
+ us as unitFormatter,
4019
4037
  Ea as validDashboardQuery
4020
4038
  };
4021
4039
  //# sourceMappingURL=vitals-utilities.es.js.map