@kong-ui-public/analytics-geo-map 1.5.4 → 1.5.5

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,14 +1,14 @@
1
- import { computed as P, defineComponent as Dt, openBlock as $, createElementBlock as ae, toDisplayString as we, createCommentVNode as ke, Fragment as Wr, renderList as qr, createElementVNode as X, normalizeStyle as Jr, useCssVars as Xr, toRef as Be, ref as Ne, useId as Qr, onMounted as ea, watch as dt, renderSlot as mt, createVNode as ta, unref as ue, createTextVNode as na, createBlock as nn } from "vue";
2
- import { Map as ra } from "maplibre-gl";
3
- import { createI18n as aa, i18nTComponent as ia } from "@kong-ui-public/i18n";
4
- import { AnalyticsIcon as oa } from "@kong/icons";
5
- const sa = {
1
+ import { computed as A, defineComponent as Nt, openBlock as K, createElementBlock as ae, toDisplayString as xe, createCommentVNode as Ee, Fragment as Jr, renderList as Xr, createElementVNode as X, normalizeStyle as ea, useCssVars as ta, toRef as He, ref as Re, useId as na, onMounted as ra, watch as pt, renderSlot as ht, createVNode as aa, unref as ue, createTextVNode as ia, createBlock as rn } from "vue";
2
+ import { Map as oa } from "maplibre-gl";
3
+ import { createI18n as sa, i18nTComponent as la } from "@kong-ui-public/i18n";
4
+ import { AnalyticsIcon as ua } from "@kong/icons";
5
+ const ca = {
6
6
  ms: "ms",
7
7
  bytes: "Byte{plural}",
8
8
  count: "request{plural}",
9
9
  "count/minute": "rpm",
10
10
  requests: "request{plural}"
11
- }, la = {
11
+ }, da = {
12
12
  error_rate: "Error rate",
13
13
  request_count: "Request count",
14
14
  request_per_minute: "Requests per minute",
@@ -34,39 +34,27 @@ const sa = {
34
34
  request_size_p95: "Request size (p95)",
35
35
  request_size_p50: "Request size (p50)",
36
36
  request_size_sum: "Request size (sum)"
37
- }, ua = {
37
+ }, ma = {
38
38
  windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map",
39
39
  mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map",
40
40
  mobile_zoom_help_text: "Use two fingers to zoom the map"
41
- }, ca = "No data in the current time frame", da = "Once there is traffic, it will display here", ma = {
42
- metricUnits: sa,
43
- metrics: la,
44
- cooperative_gestures: ua,
45
- no_location_data: ca,
46
- no_location_data_description: da
41
+ }, fa = "No data in the current time frame", pa = "Once there is traffic, it will display here", ha = {
42
+ metricUnits: ca,
43
+ metrics: da,
44
+ cooperative_gestures: ma,
45
+ no_location_data: fa,
46
+ no_location_data_description: pa
47
47
  };
48
- function fa() {
49
- const e = aa("en-us", ma);
48
+ function ya() {
49
+ const e = sa("en-us", ha);
50
50
  return {
51
51
  i18n: e,
52
- i18nT: ia(e)
52
+ i18nT: la(e)
53
53
  // Translation component <i18n-t>
54
54
  };
55
55
  }
56
- var pa = Object.defineProperty, ha = (e, t, n) => t in e ? pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, I = (e, t, n) => ha(e, typeof t != "symbol" ? t + "" : t, n), h = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(h || {});
57
- const ya = ["in", "not_in", "selector"], _a = ["empty", "not_empty"], ga = [
58
- "15m",
59
- "1h",
60
- "6h",
61
- "12h",
62
- "24h",
63
- "7d",
64
- "current_week",
65
- "previous_week",
66
- "30d",
67
- "current_month",
68
- "previous_month"
69
- ], xe = (e) => e.filter((t) => t !== "time"), Mn = [
56
+ var _a = Object.defineProperty, ga = (e, t, n) => t in e ? _a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, U = (e, t, n) => ga(e, typeof t != "symbol" ? t + "" : t, n), 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 || {});
57
+ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], Te = (e) => e.filter((t) => t !== "time"), Mn = [
70
58
  "api",
71
59
  "api_package",
72
60
  "api_product",
@@ -80,7 +68,7 @@ const ya = ["in", "not_in", "selector"], _a = ["empty", "not_empty"], ga = [
80
68
  "status_code",
81
69
  "status_code_grouped",
82
70
  "time"
83
- ], Tn = xe(Mn), Sn = [
71
+ ], Sn = Te(Mn), Dn = [
84
72
  ...Mn,
85
73
  "application",
86
74
  "consumer",
@@ -91,7 +79,7 @@ const ya = ["in", "not_in", "selector"], _a = ["empty", "not_empty"], ga = [
91
79
  "data_plane_node_version",
92
80
  "realm",
93
81
  "portal_api"
94
- ], Dn = xe(Sn), wa = [
82
+ ], Nn = Te(Dn), xa = [
95
83
  "control_plane",
96
84
  "control_plane_group",
97
85
  "gateway_service",
@@ -109,7 +97,7 @@ const ya = ["in", "not_in", "selector"], _a = ["empty", "not_empty"], ga = [
109
97
  "status_code",
110
98
  "status_code_grouped",
111
99
  "ai_plugin"
112
- ], Nn = xe(wa), va = [
100
+ ], Rn = Te(xa), Fa = [
113
101
  "api",
114
102
  "api_package",
115
103
  "api_product",
@@ -149,8 +137,8 @@ const ya = ["in", "not_in", "selector"], _a = ["empty", "not_empty"], ga = [
149
137
  "upstream_status_code_grouped",
150
138
  "websocket"
151
139
  ];
152
- xe(va);
153
- const xa = [
140
+ Te(Fa);
141
+ const Ta = [
154
142
  "ai_count",
155
143
  "latencies_response_ms",
156
144
  "latencies_upstream_ms",
@@ -161,16 +149,16 @@ const xa = [
161
149
  "status_code",
162
150
  "upstream_status_code"
163
151
  ];
164
- xe(xa);
165
- const Fa = [
166
- ...Sn,
152
+ Te(Ta);
153
+ const Ma = [
154
+ ...Dn,
167
155
  "mcp_session_id",
168
156
  "mcp_method",
169
157
  "mcp_tool_name",
170
158
  "mcp_error"
171
- ], kn = xe(Fa);
172
- new Set(Tn), new Set(Dn), new Set(Nn), new Set(kn);
173
- const Nt = [
159
+ ], En = Te(Ma);
160
+ new Set(Sn), new Set(Nn), new Set(Rn), new Set(En);
161
+ const Rt = [
174
162
  { code: "AF", name: "Afghanistan" },
175
163
  { code: "AX", name: "Aland Islands" },
176
164
  { code: "AL", name: "Albania" },
@@ -418,8 +406,8 @@ const Nt = [
418
406
  { code: "ZM", name: "Zambia" },
419
407
  { code: "ZW", name: "Zimbabwe" }
420
408
  ];
421
- Nt.map((e) => e.code);
422
- const Ma = (e) => ({
409
+ Rt.map((e) => e.code);
410
+ const Sa = (e) => ({
423
411
  type: "array",
424
412
  description: "A list of filters to apply to the query",
425
413
  items: {
@@ -434,7 +422,7 @@ const Ma = (e) => ({
434
422
  },
435
423
  operator: {
436
424
  type: "string",
437
- enum: ya
425
+ enum: wa
438
426
  },
439
427
  value: {
440
428
  type: "array",
@@ -460,7 +448,7 @@ const Ma = (e) => ({
460
448
  },
461
449
  operator: {
462
450
  type: "string",
463
- enum: _a
451
+ enum: va
464
452
  }
465
453
  },
466
454
  required: [
@@ -472,42 +460,44 @@ const Ma = (e) => ({
472
460
  ]
473
461
  }
474
462
  });
475
- Ma([
463
+ Sa([
476
464
  .../* @__PURE__ */ new Set([
477
- ...Dn,
478
- ...Tn,
479
465
  ...Nn,
480
- ...kn
466
+ ...Sn,
467
+ ...Rn,
468
+ ...En
481
469
  ])
482
470
  ]);
483
- let Ta = {};
484
- function Sa() {
485
- return Ta;
471
+ let Da = {};
472
+ function Na() {
473
+ return Da;
486
474
  }
487
- const Da = 60, Na = 3600, rn = /* @__PURE__ */ Symbol.for("constructDateFrom");
488
- function Oe(e, t) {
489
- return typeof e == "function" ? e(t) : e && typeof e == "object" && rn in e ? e[rn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
475
+ const Ra = 60, Ea = 3600, an = /* @__PURE__ */ Symbol.for("constructDateFrom");
476
+ function Ge(e, t) {
477
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && an in e ? e[an](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
490
478
  }
491
- function Fe(e, t) {
492
- return Oe(t || e, e);
479
+ function ce(e, t) {
480
+ return Ge(t || e, e);
493
481
  }
494
- function ft(e, t) {
495
- const n = Fe(e, void 0);
482
+ function Ve(e, t) {
483
+ const n = ce(e, void 0);
496
484
  return n.setHours(0, 0, 0, 0), n;
497
485
  }
498
- function ze(e, t) {
486
+ function Ke(e, t) {
499
487
  var n, a, i, o;
500
- const l = Sa(), m = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? l.weekStartsOn ?? ((o = (i = l.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, f = Fe(e, t == null ? void 0 : t.in), d = f.getDay(), c = (d < m ? 7 : 0) + d - m;
488
+ const l = Na(), m = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? l.weekStartsOn ?? ((o = (i = l.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, f = ce(e, t == null ? void 0 : t.in), d = f.getDay(), c = (d < m ? 7 : 0) + d - m;
501
489
  return f.setDate(f.getDate() - c), f.setHours(0, 0, 0, 0), f;
502
490
  }
503
- function pt(e, t, n) {
504
- const a = Fe(e, void 0);
505
- return isNaN(t) ? Oe(e, NaN) : (a.setDate(a.getDate() + t), a);
491
+ function Ye(e, t, n) {
492
+ const a = ce(e, void 0);
493
+ return isNaN(t) ? Ge(e, NaN) : (a.setDate(a.getDate() + t), a);
506
494
  }
507
- function ka(e, t, n) {
508
- const a = Fe(e, void 0);
509
- if (isNaN(t)) return Oe(e, NaN);
510
- const i = a.getDate(), o = Oe(e, a.getTime());
495
+ function kn(e, t, n) {
496
+ const a = ce(e, void 0);
497
+ if (isNaN(t)) return Ge(e, NaN);
498
+ if (!t)
499
+ return a;
500
+ const i = a.getDate(), o = Ge(e, a.getTime());
511
501
  o.setMonth(a.getMonth() + t + 1, 0);
512
502
  const l = o.getDate();
513
503
  return i >= l ? o : (a.setFullYear(
@@ -516,29 +506,39 @@ function ka(e, t, n) {
516
506
  i
517
507
  ), a);
518
508
  }
519
- function ge(e, t) {
520
- const n = Fe(e, void 0);
509
+ function ka(e, t, n) {
510
+ return kn(e, t * 3);
511
+ }
512
+ function we(e, t) {
513
+ const n = ce(e, void 0), a = n.getMonth(), i = a - a % 3;
514
+ return n.setMonth(i, 1), n.setHours(0, 0, 0, 0), n;
515
+ }
516
+ function ve(e, t) {
517
+ const n = ce(e, void 0);
521
518
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
522
519
  }
523
- function Ea(e, t) {
524
- const n = Fe(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = Oe(n, 0);
520
+ function Oa(e, t) {
521
+ const n = ce(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = Ge(n, 0);
525
522
  return o.setFullYear(a, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
526
523
  }
527
- function an(e) {
528
- return Math.trunc(e * Na);
524
+ function on(e) {
525
+ return Math.trunc(e * Ea);
529
526
  }
530
- function Ra(e) {
531
- const t = e / Da;
527
+ function Ga(e) {
528
+ const t = e / Ra;
532
529
  return Math.trunc(t);
533
530
  }
534
- function En(e, t, n) {
531
+ function On(e, t, n) {
532
+ return kn(e, -1);
533
+ }
534
+ function Gn(e, t, n) {
535
535
  return ka(e, -1);
536
536
  }
537
- function Oa(e, t) {
538
- const n = Ia(t);
539
- return "formatToParts" in n ? La(n, e) : Ga(n, e);
537
+ function ba(e, t) {
538
+ const n = Ca(t);
539
+ return "formatToParts" in n ? Ia(n, e) : Ua(n, e);
540
540
  }
541
- const ba = {
541
+ const La = {
542
542
  year: 0,
543
543
  month: 1,
544
544
  day: 2,
@@ -546,11 +546,11 @@ const ba = {
546
546
  minute: 4,
547
547
  second: 5
548
548
  };
549
- function La(e, t) {
549
+ function Ia(e, t) {
550
550
  try {
551
551
  const n = e.formatToParts(t), a = [];
552
552
  for (let i = 0; i < n.length; i++) {
553
- const o = ba[n[i].type];
553
+ const o = La[n[i].type];
554
554
  o !== void 0 && (a[o] = parseInt(n[i].value, 10));
555
555
  }
556
556
  return a;
@@ -560,7 +560,7 @@ function La(e, t) {
560
560
  throw n;
561
561
  }
562
562
  }
563
- function Ga(e, t) {
563
+ function Ua(e, t) {
564
564
  const n = e.format(t), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
565
565
  return [
566
566
  parseInt(a[3], 10),
@@ -571,7 +571,7 @@ function Ga(e, t) {
571
571
  parseInt(a[6], 10)
572
572
  ];
573
573
  }
574
- const ht = {}, on = new Intl.DateTimeFormat("en-US", {
574
+ const yt = {}, sn = new Intl.DateTimeFormat("en-US", {
575
575
  hourCycle: "h23",
576
576
  timeZone: "America/New_York",
577
577
  year: "numeric",
@@ -580,9 +580,9 @@ const ht = {}, on = new Intl.DateTimeFormat("en-US", {
580
580
  hour: "2-digit",
581
581
  minute: "2-digit",
582
582
  second: "2-digit"
583
- }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ca = on === "06/25/2014, 00:00:00" || on === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
584
- function Ia(e) {
585
- return ht[e] || (ht[e] = Ca ? new Intl.DateTimeFormat("en-US", {
583
+ }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Aa = sn === "06/25/2014, 00:00:00" || sn === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
584
+ function Ca(e) {
585
+ return yt[e] || (yt[e] = Aa ? new Intl.DateTimeFormat("en-US", {
586
586
  hourCycle: "h23",
587
587
  timeZone: e,
588
588
  year: "numeric",
@@ -600,48 +600,48 @@ function Ia(e) {
600
600
  hour: "2-digit",
601
601
  minute: "2-digit",
602
602
  second: "2-digit"
603
- })), ht[e];
603
+ })), yt[e];
604
604
  }
605
- function kt(e, t, n, a, i, o, l) {
605
+ function Et(e, t, n, a, i, o, l) {
606
606
  const m = /* @__PURE__ */ new Date(0);
607
607
  return m.setUTCFullYear(e, t, n), m.setUTCHours(a, i, o, l), m;
608
608
  }
609
- const sn = 36e5, Pa = 6e4, yt = {
609
+ const ln = 36e5, Pa = 6e4, _t = {
610
610
  timezoneZ: /^(Z)$/,
611
611
  timezoneHH: /^([+-]\d{2})$/,
612
612
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
613
613
  };
614
- function We(e, t, n) {
614
+ function Je(e, t, n) {
615
615
  if (!e)
616
616
  return 0;
617
- let a = yt.timezoneZ.exec(e);
617
+ let a = _t.timezoneZ.exec(e);
618
618
  if (a)
619
619
  return 0;
620
620
  let i, o;
621
- if (a = yt.timezoneHH.exec(e), a)
622
- return i = parseInt(a[1], 10), ln(i) ? -(i * sn) : NaN;
623
- if (a = yt.timezoneHHMM.exec(e), a) {
621
+ if (a = _t.timezoneHH.exec(e), a)
622
+ return i = parseInt(a[1], 10), un(i) ? -(i * ln) : NaN;
623
+ if (a = _t.timezoneHHMM.exec(e), a) {
624
624
  i = parseInt(a[2], 10);
625
625
  const l = parseInt(a[3], 10);
626
- return ln(i, l) ? (o = Math.abs(i) * sn + l * Pa, a[1] === "+" ? -o : o) : NaN;
626
+ return un(i, l) ? (o = Math.abs(i) * ln + l * Pa, a[1] === "+" ? -o : o) : NaN;
627
627
  }
628
- if (Ba(e)) {
628
+ if (Va(e)) {
629
629
  t = new Date(t || Date.now());
630
- const l = n ? t : Ua(t), m = Mt(l, e);
631
- return -(n ? m : Aa(t, m, e));
630
+ const l = n ? t : Ba(t), m = Mt(l, e);
631
+ return -(n ? m : Ha(t, m, e));
632
632
  }
633
633
  return NaN;
634
634
  }
635
- function Ua(e) {
636
- return kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
635
+ function Ba(e) {
636
+ return Et(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
637
637
  }
638
638
  function Mt(e, t) {
639
- const n = Oa(e, t), a = kt(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
639
+ const n = ba(e, t), a = Et(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
640
640
  let i = e.getTime();
641
641
  const o = i % 1e3;
642
642
  return i -= o >= 0 ? o : 1e3 + o, a - i;
643
643
  }
644
- function Aa(e, t, n) {
644
+ function Ha(e, t, n) {
645
645
  let a = e.getTime() - t;
646
646
  const i = Mt(new Date(a), n);
647
647
  if (t === i)
@@ -650,24 +650,24 @@ function Aa(e, t, n) {
650
650
  const o = Mt(new Date(a), n);
651
651
  return i === o ? i : Math.max(i, o);
652
652
  }
653
- function ln(e, t) {
653
+ function un(e, t) {
654
654
  return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
655
655
  }
656
- const un = {};
657
- function Ba(e) {
658
- if (un[e])
656
+ const cn = {};
657
+ function Va(e) {
658
+ if (cn[e])
659
659
  return !0;
660
660
  try {
661
- return new Intl.DateTimeFormat(void 0, { timeZone: e }), un[e] = !0, !0;
661
+ return new Intl.DateTimeFormat(void 0, { timeZone: e }), cn[e] = !0, !0;
662
662
  } catch {
663
663
  return !1;
664
664
  }
665
665
  }
666
- function cn(e) {
666
+ function dn(e) {
667
667
  const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
668
668
  return t.setUTCFullYear(e.getFullYear()), +e - +t;
669
669
  }
670
- const Rn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, _t = 36e5, dn = 6e4, Ha = 2, R = {
670
+ const bn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, gt = 36e5, mn = 6e4, Ya = 2, k = {
671
671
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
672
672
  datePattern: /^([0-9W+-]+)(.*)/,
673
673
  // year tokens
@@ -699,14 +699,14 @@ const Rn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
699
699
  HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
700
700
  HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
701
701
  // time zone tokens (to identify the presence of a tz)
702
- timeZone: Rn
702
+ timeZone: bn
703
703
  };
704
- function Tt(e, t = {}) {
704
+ function St(e, t = {}) {
705
705
  if (arguments.length < 1)
706
706
  throw new TypeError("1 argument required, but only " + arguments.length + " present");
707
707
  if (e === null)
708
708
  return /* @__PURE__ */ new Date(NaN);
709
- const n = t.additionalDigits == null ? Ha : Number(t.additionalDigits);
709
+ const n = t.additionalDigits == null ? Ya : Number(t.additionalDigits);
710
710
  if (n !== 2 && n !== 1 && n !== 0)
711
711
  throw new RangeError("additionalDigits must be 0, 1 or 2");
712
712
  if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
@@ -715,36 +715,36 @@ function Tt(e, t = {}) {
715
715
  return new Date(e);
716
716
  if (Object.prototype.toString.call(e) !== "[object String]")
717
717
  return /* @__PURE__ */ new Date(NaN);
718
- const a = Va(e), { year: i, restDateString: o } = Ya(a.date, n), l = za(o, i);
718
+ const a = za(e), { year: i, restDateString: o } = ja(a.date, n), l = $a(o, i);
719
719
  if (l === null || isNaN(l.getTime()))
720
720
  return /* @__PURE__ */ new Date(NaN);
721
721
  if (l) {
722
722
  const m = l.getTime();
723
723
  let f = 0, d;
724
- if (a.time && (f = ja(a.time), f === null || isNaN(f)))
724
+ if (a.time && (f = Ka(a.time), f === null || isNaN(f)))
725
725
  return /* @__PURE__ */ new Date(NaN);
726
726
  if (a.timeZone || t.timeZone) {
727
- if (d = We(a.timeZone || t.timeZone, new Date(m + f)), isNaN(d))
727
+ if (d = Je(a.timeZone || t.timeZone, new Date(m + f)), isNaN(d))
728
728
  return /* @__PURE__ */ new Date(NaN);
729
729
  } else
730
- d = cn(new Date(m + f)), d = cn(new Date(m + f + d));
730
+ d = dn(new Date(m + f)), d = dn(new Date(m + f + d));
731
731
  return new Date(m + f + d);
732
732
  } else
733
733
  return /* @__PURE__ */ new Date(NaN);
734
734
  }
735
- function Va(e) {
735
+ function za(e) {
736
736
  const t = {};
737
- let n = R.dateTimePattern.exec(e), a;
738
- if (n ? (t.date = n[1], a = n[3]) : (n = R.datePattern.exec(e), n ? (t.date = n[1], a = n[2]) : (t.date = null, a = e)), a) {
739
- const i = R.timeZone.exec(a);
737
+ let n = k.dateTimePattern.exec(e), a;
738
+ if (n ? (t.date = n[1], a = n[3]) : (n = k.datePattern.exec(e), n ? (t.date = n[1], a = n[2]) : (t.date = null, a = e)), a) {
739
+ const i = k.timeZone.exec(a);
740
740
  i ? (t.time = a.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = a;
741
741
  }
742
742
  return t;
743
743
  }
744
- function Ya(e, t) {
744
+ function ja(e, t) {
745
745
  if (e) {
746
- const n = R.YYY[t], a = R.YYYYY[t];
747
- let i = R.YYYY.exec(e) || a.exec(e);
746
+ const n = k.YYY[t], a = k.YYYYY[t];
747
+ let i = k.YYYY.exec(e) || a.exec(e);
748
748
  if (i) {
749
749
  const o = i[1];
750
750
  return {
@@ -752,7 +752,7 @@ function Ya(e, t) {
752
752
  restDateString: e.slice(o.length)
753
753
  };
754
754
  }
755
- if (i = R.YY.exec(e) || n.exec(e), i) {
755
+ if (i = k.YY.exec(e) || n.exec(e), i) {
756
756
  const o = i[1];
757
757
  return {
758
758
  year: parseInt(o, 10) * 100,
@@ -764,137 +764,137 @@ function Ya(e, t) {
764
764
  year: null
765
765
  };
766
766
  }
767
- function za(e, t) {
767
+ function $a(e, t) {
768
768
  if (t === null)
769
769
  return null;
770
770
  let n, a, i;
771
771
  if (!e || !e.length)
772
772
  return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
773
- let o = R.MM.exec(e);
773
+ let o = k.MM.exec(e);
774
774
  if (o)
775
- return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1, fn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
776
- if (o = R.DDD.exec(e), o) {
775
+ return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1, pn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
776
+ if (o = k.DDD.exec(e), o) {
777
777
  n = /* @__PURE__ */ new Date(0);
778
778
  const l = parseInt(o[1], 10);
779
- return Za(t, l) ? (n.setUTCFullYear(t, 0, l), n) : /* @__PURE__ */ new Date(NaN);
779
+ return qa(t, l) ? (n.setUTCFullYear(t, 0, l), n) : /* @__PURE__ */ new Date(NaN);
780
780
  }
781
- if (o = R.MMDD.exec(e), o) {
781
+ if (o = k.MMDD.exec(e), o) {
782
782
  n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1;
783
783
  const l = parseInt(o[2], 10);
784
- return fn(t, a, l) ? (n.setUTCFullYear(t, a, l), n) : /* @__PURE__ */ new Date(NaN);
784
+ return pn(t, a, l) ? (n.setUTCFullYear(t, a, l), n) : /* @__PURE__ */ new Date(NaN);
785
785
  }
786
- if (o = R.Www.exec(e), o)
787
- return i = parseInt(o[1], 10) - 1, pn(i) ? mn(t, i) : /* @__PURE__ */ new Date(NaN);
788
- if (o = R.WwwD.exec(e), o) {
786
+ if (o = k.Www.exec(e), o)
787
+ return i = parseInt(o[1], 10) - 1, hn(i) ? fn(t, i) : /* @__PURE__ */ new Date(NaN);
788
+ if (o = k.WwwD.exec(e), o) {
789
789
  i = parseInt(o[1], 10) - 1;
790
790
  const l = parseInt(o[2], 10) - 1;
791
- return pn(i, l) ? mn(t, i, l) : /* @__PURE__ */ new Date(NaN);
791
+ return hn(i, l) ? fn(t, i, l) : /* @__PURE__ */ new Date(NaN);
792
792
  }
793
793
  return null;
794
794
  }
795
- function ja(e) {
796
- let t, n, a = R.HH.exec(e);
795
+ function Ka(e) {
796
+ let t, n, a = k.HH.exec(e);
797
797
  if (a)
798
- return t = parseFloat(a[1].replace(",", ".")), gt(t) ? t % 24 * _t : NaN;
799
- if (a = R.HHMM.exec(e), a)
800
- return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), gt(t, n) ? t % 24 * _t + n * dn : NaN;
801
- if (a = R.HHMMSS.exec(e), a) {
798
+ return t = parseFloat(a[1].replace(",", ".")), wt(t) ? t % 24 * gt : NaN;
799
+ if (a = k.HHMM.exec(e), a)
800
+ return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), wt(t, n) ? t % 24 * gt + n * mn : NaN;
801
+ if (a = k.HHMMSS.exec(e), a) {
802
802
  t = parseInt(a[1], 10), n = parseInt(a[2], 10);
803
803
  const i = parseFloat(a[3].replace(",", "."));
804
- return gt(t, n, i) ? t % 24 * _t + n * dn + i * 1e3 : NaN;
804
+ return wt(t, n, i) ? t % 24 * gt + n * mn + i * 1e3 : NaN;
805
805
  }
806
806
  return null;
807
807
  }
808
- function mn(e, t, n) {
808
+ function fn(e, t, n) {
809
809
  t = t || 0, n = n || 0;
810
810
  const a = /* @__PURE__ */ new Date(0);
811
811
  a.setUTCFullYear(e, 0, 4);
812
812
  const i = a.getUTCDay() || 7, o = t * 7 + n + 1 - i;
813
813
  return a.setUTCDate(a.getUTCDate() + o), a;
814
814
  }
815
- const $a = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ka = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
816
- function On(e) {
815
+ const Wa = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Za = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
816
+ function Ln(e) {
817
817
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
818
818
  }
819
- function fn(e, t, n) {
819
+ function pn(e, t, n) {
820
820
  if (t < 0 || t > 11)
821
821
  return !1;
822
822
  if (n != null) {
823
823
  if (n < 1)
824
824
  return !1;
825
- const a = On(e);
826
- if (a && n > Ka[t] || !a && n > $a[t])
825
+ const a = Ln(e);
826
+ if (a && n > Za[t] || !a && n > Wa[t])
827
827
  return !1;
828
828
  }
829
829
  return !0;
830
830
  }
831
- function Za(e, t) {
831
+ function qa(e, t) {
832
832
  if (t < 1)
833
833
  return !1;
834
- const n = On(e);
834
+ const n = Ln(e);
835
835
  return !(n && t > 366 || !n && t > 365);
836
836
  }
837
- function pn(e, t) {
837
+ function hn(e, t) {
838
838
  return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
839
839
  }
840
- function gt(e, t, n) {
840
+ function wt(e, t, n) {
841
841
  return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
842
842
  }
843
- function Wa(e, t, n) {
844
- e = Tt(e, n);
845
- const a = We(t, e, !0), i = new Date(e.getTime() - a), o = /* @__PURE__ */ new Date(0);
843
+ function Qa(e, t, n) {
844
+ e = St(e, n);
845
+ const a = Je(t, e, !0), i = new Date(e.getTime() - a), o = /* @__PURE__ */ new Date(0);
846
846
  return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
847
847
  }
848
- function qa(e, t, n) {
849
- if (typeof e == "string" && !e.match(Rn))
850
- return Tt(e, { ...n, timeZone: t });
851
- e = Tt(e, n);
852
- const a = kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = We(t, new Date(a));
848
+ function Ja(e, t, n) {
849
+ if (typeof e == "string" && !e.match(bn))
850
+ return St(e, { ...n, timeZone: t });
851
+ e = St(e, n);
852
+ const a = Et(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = Je(t, new Date(a));
853
853
  return new Date(a + i);
854
854
  }
855
- function Ja(e, t) {
856
- return -We(e, t);
855
+ function Xa(e, t) {
856
+ return -Je(e, t);
857
857
  }
858
- var He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
859
- function Xa(e) {
858
+ var ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
859
+ function ei(e) {
860
860
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
861
861
  }
862
- var je = { exports: {} };
863
- je.exports;
862
+ var We = { exports: {} };
863
+ We.exports;
864
864
  (function(e, t) {
865
- var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", m = "[object Boolean]", f = "[object Date]", d = "[object Error]", c = "[object Function]", y = "[object GeneratorFunction]", w = "[object Map]", g = "[object Number]", M = "[object Object]", T = "[object Promise]", B = "[object RegExp]", A = "[object Set]", C = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Me = "[object ArrayBuffer]", ce = "[object DataView]", _ = "[object Float32Array]", F = "[object Float64Array]", S = "[object Int8Array]", k = "[object Int16Array]", ee = "[object Int32Array]", K = "[object Uint8Array]", H = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", G = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, v = {};
866
- v[o] = v[l] = v[Me] = v[ce] = v[m] = v[f] = v[_] = v[F] = v[S] = v[k] = v[ee] = v[w] = v[g] = v[M] = v[B] = v[A] = v[C] = v[ie] = v[K] = v[H] = v[te] = v[ne] = !0, v[d] = v[c] = v[D] = !1;
867
- var j = typeof He == "object" && He && He.Object === Object && He, de = typeof self == "object" && self && self.Object === Object && self, O = j || de || Function("return this")(), Z = t && !t.nodeType && t, Le = Z && !0 && e && !e.nodeType && e, Je = Le && Le.exports === Z;
868
- function Xe(r, s) {
865
+ var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", m = "[object Boolean]", f = "[object Date]", d = "[object Error]", c = "[object Function]", y = "[object GeneratorFunction]", w = "[object Map]", g = "[object Number]", T = "[object Object]", M = "[object Promise]", H = "[object RegExp]", B = "[object Set]", I = "[object String]", ie = "[object Symbol]", N = "[object WeakMap]", Me = "[object ArrayBuffer]", de = "[object DataView]", _ = "[object Float32Array]", F = "[object Float64Array]", S = "[object Int8Array]", E = "[object Int16Array]", ee = "[object Int32Array]", W = "[object Uint8Array]", V = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, Y = /\w*$/, z = /^\[object .+?Constructor\]$/, j = /^(?:0|[1-9]\d*)$/, v = {};
866
+ v[o] = v[l] = v[Me] = v[de] = v[m] = v[f] = v[_] = v[F] = v[S] = v[E] = v[ee] = v[w] = v[g] = v[T] = v[H] = v[B] = v[I] = v[ie] = v[W] = v[V] = v[te] = v[ne] = !0, v[d] = v[c] = v[N] = !1;
867
+ var $ = typeof ze == "object" && ze && ze.Object === Object && ze, me = typeof self == "object" && self && self.Object === Object && self, O = $ || me || Function("return this")(), Z = t && !t.nodeType && t, Le = Z && !0 && e && !e.nodeType && e, et = Le && Le.exports === Z;
868
+ function tt(r, s) {
869
869
  return r.set(s[0], s[1]), r;
870
870
  }
871
- function Qe(r, s) {
871
+ function nt(r, s) {
872
872
  return r.add(s), r;
873
873
  }
874
- function Te(r, s) {
875
- for (var u = -1, p = r ? r.length : 0; ++u < p && s(r[u], u, r) !== !1; )
874
+ function Se(r, s) {
875
+ for (var u = -1, h = r ? r.length : 0; ++u < h && s(r[u], u, r) !== !1; )
876
876
  ;
877
877
  return r;
878
878
  }
879
879
  function Cn(r, s) {
880
- for (var u = -1, p = s.length, N = r.length; ++u < p; )
881
- r[N + u] = s[u];
880
+ for (var u = -1, h = s.length, R = r.length; ++u < h; )
881
+ r[R + u] = s[u];
882
882
  return r;
883
883
  }
884
- function Lt(r, s, u, p) {
885
- for (var N = -1, b = r ? r.length : 0; ++N < b; )
886
- u = s(u, r[N], N, r);
884
+ function Lt(r, s, u, h) {
885
+ for (var R = -1, G = r ? r.length : 0; ++R < G; )
886
+ u = s(u, r[R], R, r);
887
887
  return u;
888
888
  }
889
- function In(r, s) {
890
- for (var u = -1, p = Array(r); ++u < r; )
891
- p[u] = s(u);
892
- return p;
893
- }
894
889
  function Pn(r, s) {
890
+ for (var u = -1, h = Array(r); ++u < r; )
891
+ h[u] = s(u);
892
+ return h;
893
+ }
894
+ function Bn(r, s) {
895
895
  return r == null ? void 0 : r[s];
896
896
  }
897
- function Gt(r) {
897
+ function It(r) {
898
898
  var s = !1;
899
899
  if (r != null && typeof r.toString != "function")
900
900
  try {
@@ -903,295 +903,295 @@ je.exports;
903
903
  }
904
904
  return s;
905
905
  }
906
- function Ct(r) {
906
+ function Ut(r) {
907
907
  var s = -1, u = Array(r.size);
908
- return r.forEach(function(p, N) {
909
- u[++s] = [N, p];
908
+ return r.forEach(function(h, R) {
909
+ u[++s] = [R, h];
910
910
  }), u;
911
911
  }
912
- function et(r, s) {
912
+ function rt(r, s) {
913
913
  return function(u) {
914
914
  return r(s(u));
915
915
  };
916
916
  }
917
- function It(r) {
917
+ function At(r) {
918
918
  var s = -1, u = Array(r.size);
919
- return r.forEach(function(p) {
920
- u[++s] = p;
919
+ return r.forEach(function(h) {
920
+ u[++s] = h;
921
921
  }), u;
922
922
  }
923
- var Un = Array.prototype, An = Function.prototype, Ge = Object.prototype, tt = O["__core-js_shared__"], Pt = (function() {
924
- var r = /[^.]+$/.exec(tt && tt.keys && tt.keys.IE_PROTO || "");
923
+ var Hn = Array.prototype, Vn = Function.prototype, Ie = Object.prototype, at = O["__core-js_shared__"], Ct = (function() {
924
+ var r = /[^.]+$/.exec(at && at.keys && at.keys.IE_PROTO || "");
925
925
  return r ? "Symbol(src)_1." + r : "";
926
- })(), Ut = An.toString, re = Ge.hasOwnProperty, Ce = Ge.toString, Bn = RegExp(
927
- "^" + Ut.call(re).replace(G, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
928
- ), At = Je ? O.Buffer : void 0, Bt = O.Symbol, Ht = O.Uint8Array, Hn = et(Object.getPrototypeOf, Object), Vn = Object.create, Yn = Ge.propertyIsEnumerable, zn = Un.splice, Vt = Object.getOwnPropertySymbols, jn = At ? At.isBuffer : void 0, $n = et(Object.keys, Object), nt = pe(O, "DataView"), Se = pe(O, "Map"), rt = pe(O, "Promise"), at = pe(O, "Set"), it = pe(O, "WeakMap"), De = pe(Object, "create"), Kn = le(nt), Zn = le(Se), Wn = le(rt), qn = le(at), Jn = le(it), Yt = Bt ? Bt.prototype : void 0, zt = Yt ? Yt.valueOf : void 0;
926
+ })(), Pt = Vn.toString, re = Ie.hasOwnProperty, Ue = Ie.toString, Yn = RegExp(
927
+ "^" + Pt.call(re).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
928
+ ), Bt = et ? O.Buffer : void 0, Ht = O.Symbol, Vt = O.Uint8Array, zn = rt(Object.getPrototypeOf, Object), jn = Object.create, $n = Ie.propertyIsEnumerable, Kn = Hn.splice, Yt = Object.getOwnPropertySymbols, Wn = Bt ? Bt.isBuffer : void 0, Zn = rt(Object.keys, Object), it = he(O, "DataView"), De = he(O, "Map"), ot = he(O, "Promise"), st = he(O, "Set"), lt = he(O, "WeakMap"), Ne = he(Object, "create"), qn = le(it), Qn = le(De), Jn = le(ot), Xn = le(st), er = le(lt), zt = Ht ? Ht.prototype : void 0, jt = zt ? zt.valueOf : void 0;
929
929
  function oe(r) {
930
930
  var s = -1, u = r ? r.length : 0;
931
931
  for (this.clear(); ++s < u; ) {
932
- var p = r[s];
933
- this.set(p[0], p[1]);
932
+ var h = r[s];
933
+ this.set(h[0], h[1]);
934
934
  }
935
935
  }
936
- function Xn() {
937
- this.__data__ = De ? De(null) : {};
936
+ function tr() {
937
+ this.__data__ = Ne ? Ne(null) : {};
938
938
  }
939
- function Qn(r) {
939
+ function nr(r) {
940
940
  return this.has(r) && delete this.__data__[r];
941
941
  }
942
- function er(r) {
942
+ function rr(r) {
943
943
  var s = this.__data__;
944
- if (De) {
944
+ if (Ne) {
945
945
  var u = s[r];
946
946
  return u === a ? void 0 : u;
947
947
  }
948
948
  return re.call(s, r) ? s[r] : void 0;
949
949
  }
950
- function tr(r) {
950
+ function ar(r) {
951
951
  var s = this.__data__;
952
- return De ? s[r] !== void 0 : re.call(s, r);
952
+ return Ne ? s[r] !== void 0 : re.call(s, r);
953
953
  }
954
- function nr(r, s) {
954
+ function ir(r, s) {
955
955
  var u = this.__data__;
956
- return u[r] = De && s === void 0 ? a : s, this;
956
+ return u[r] = Ne && s === void 0 ? a : s, this;
957
957
  }
958
- oe.prototype.clear = Xn, oe.prototype.delete = Qn, oe.prototype.get = er, oe.prototype.has = tr, oe.prototype.set = nr;
959
- function W(r) {
958
+ oe.prototype.clear = tr, oe.prototype.delete = nr, oe.prototype.get = rr, oe.prototype.has = ar, oe.prototype.set = ir;
959
+ function q(r) {
960
960
  var s = -1, u = r ? r.length : 0;
961
961
  for (this.clear(); ++s < u; ) {
962
- var p = r[s];
963
- this.set(p[0], p[1]);
962
+ var h = r[s];
963
+ this.set(h[0], h[1]);
964
964
  }
965
965
  }
966
- function rr() {
966
+ function or() {
967
967
  this.__data__ = [];
968
968
  }
969
- function ar(r) {
970
- var s = this.__data__, u = Ie(s, r);
969
+ function sr(r) {
970
+ var s = this.__data__, u = Ae(s, r);
971
971
  if (u < 0)
972
972
  return !1;
973
- var p = s.length - 1;
974
- return u == p ? s.pop() : zn.call(s, u, 1), !0;
973
+ var h = s.length - 1;
974
+ return u == h ? s.pop() : Kn.call(s, u, 1), !0;
975
975
  }
976
- function ir(r) {
977
- var s = this.__data__, u = Ie(s, r);
976
+ function lr(r) {
977
+ var s = this.__data__, u = Ae(s, r);
978
978
  return u < 0 ? void 0 : s[u][1];
979
979
  }
980
- function or(r) {
981
- return Ie(this.__data__, r) > -1;
980
+ function ur(r) {
981
+ return Ae(this.__data__, r) > -1;
982
982
  }
983
- function sr(r, s) {
984
- var u = this.__data__, p = Ie(u, r);
985
- return p < 0 ? u.push([r, s]) : u[p][1] = s, this;
983
+ function cr(r, s) {
984
+ var u = this.__data__, h = Ae(u, r);
985
+ return h < 0 ? u.push([r, s]) : u[h][1] = s, this;
986
986
  }
987
- W.prototype.clear = rr, W.prototype.delete = ar, W.prototype.get = ir, W.prototype.has = or, W.prototype.set = sr;
988
- function me(r) {
987
+ q.prototype.clear = or, q.prototype.delete = sr, q.prototype.get = lr, q.prototype.has = ur, q.prototype.set = cr;
988
+ function fe(r) {
989
989
  var s = -1, u = r ? r.length : 0;
990
990
  for (this.clear(); ++s < u; ) {
991
- var p = r[s];
992
- this.set(p[0], p[1]);
991
+ var h = r[s];
992
+ this.set(h[0], h[1]);
993
993
  }
994
994
  }
995
- function lr() {
995
+ function dr() {
996
996
  this.__data__ = {
997
997
  hash: new oe(),
998
- map: new (Se || W)(),
998
+ map: new (De || q)(),
999
999
  string: new oe()
1000
1000
  };
1001
1001
  }
1002
- function ur(r) {
1003
- return Pe(this, r).delete(r);
1002
+ function mr(r) {
1003
+ return Ce(this, r).delete(r);
1004
1004
  }
1005
- function cr(r) {
1006
- return Pe(this, r).get(r);
1005
+ function fr(r) {
1006
+ return Ce(this, r).get(r);
1007
1007
  }
1008
- function dr(r) {
1009
- return Pe(this, r).has(r);
1008
+ function pr(r) {
1009
+ return Ce(this, r).has(r);
1010
1010
  }
1011
- function mr(r, s) {
1012
- return Pe(this, r).set(r, s), this;
1011
+ function hr(r, s) {
1012
+ return Ce(this, r).set(r, s), this;
1013
1013
  }
1014
- me.prototype.clear = lr, me.prototype.delete = ur, me.prototype.get = cr, me.prototype.has = dr, me.prototype.set = mr;
1015
- function fe(r) {
1016
- this.__data__ = new W(r);
1014
+ fe.prototype.clear = dr, fe.prototype.delete = mr, fe.prototype.get = fr, fe.prototype.has = pr, fe.prototype.set = hr;
1015
+ function pe(r) {
1016
+ this.__data__ = new q(r);
1017
1017
  }
1018
- function fr() {
1019
- this.__data__ = new W();
1018
+ function yr() {
1019
+ this.__data__ = new q();
1020
1020
  }
1021
- function pr(r) {
1021
+ function _r(r) {
1022
1022
  return this.__data__.delete(r);
1023
1023
  }
1024
- function hr(r) {
1024
+ function gr(r) {
1025
1025
  return this.__data__.get(r);
1026
1026
  }
1027
- function yr(r) {
1027
+ function wr(r) {
1028
1028
  return this.__data__.has(r);
1029
1029
  }
1030
- function _r(r, s) {
1030
+ function vr(r, s) {
1031
1031
  var u = this.__data__;
1032
- if (u instanceof W) {
1033
- var p = u.__data__;
1034
- if (!Se || p.length < n - 1)
1035
- return p.push([r, s]), this;
1036
- u = this.__data__ = new me(p);
1032
+ if (u instanceof q) {
1033
+ var h = u.__data__;
1034
+ if (!De || h.length < n - 1)
1035
+ return h.push([r, s]), this;
1036
+ u = this.__data__ = new fe(h);
1037
1037
  }
1038
1038
  return u.set(r, s), this;
1039
1039
  }
1040
- fe.prototype.clear = fr, fe.prototype.delete = pr, fe.prototype.get = hr, fe.prototype.has = yr, fe.prototype.set = _r;
1041
- function gr(r, s) {
1042
- var u = lt(r) || Vr(r) ? In(r.length, String) : [], p = u.length, N = !!p;
1043
- for (var b in r)
1044
- re.call(r, b) && !(N && (b == "length" || Ur(b, p))) && u.push(b);
1040
+ pe.prototype.clear = yr, pe.prototype.delete = _r, pe.prototype.get = gr, pe.prototype.has = wr, pe.prototype.set = vr;
1041
+ function xr(r, s) {
1042
+ var u = dt(r) || jr(r) ? Pn(r.length, String) : [], h = u.length, R = !!h;
1043
+ for (var G in r)
1044
+ re.call(r, G) && !(R && (G == "length" || Hr(G, h))) && u.push(G);
1045
1045
  return u;
1046
1046
  }
1047
- function jt(r, s, u) {
1048
- var p = r[s];
1049
- (!(re.call(r, s) && Wt(p, u)) || u === void 0 && !(s in r)) && (r[s] = u);
1047
+ function $t(r, s, u) {
1048
+ var h = r[s];
1049
+ (!(re.call(r, s) && qt(h, u)) || u === void 0 && !(s in r)) && (r[s] = u);
1050
1050
  }
1051
- function Ie(r, s) {
1051
+ function Ae(r, s) {
1052
1052
  for (var u = r.length; u--; )
1053
- if (Wt(r[u][0], s))
1053
+ if (qt(r[u][0], s))
1054
1054
  return u;
1055
1055
  return -1;
1056
1056
  }
1057
- function wr(r, s) {
1058
- return r && $t(s, ut(s), r);
1057
+ function Fr(r, s) {
1058
+ return r && Kt(s, mt(s), r);
1059
1059
  }
1060
- function ot(r, s, u, p, N, b, q) {
1061
- var L;
1062
- if (p && (L = b ? p(r, N, b, q) : p(r)), L !== void 0)
1063
- return L;
1064
- if (!Ue(r))
1060
+ function ut(r, s, u, h, R, G, Q) {
1061
+ var b;
1062
+ if (h && (b = G ? h(r, R, G, Q) : h(r)), b !== void 0)
1063
+ return b;
1064
+ if (!Pe(r))
1065
1065
  return r;
1066
- var Xt = lt(r);
1066
+ var Xt = dt(r);
1067
1067
  if (Xt) {
1068
- if (L = Cr(r), !s)
1069
- return br(r, L);
1068
+ if (b = Cr(r), !s)
1069
+ return Ir(r, b);
1070
1070
  } else {
1071
- var he = se(r), Qt = he == c || he == y;
1072
- if (zr(r))
1073
- return Sr(r, s);
1074
- if (he == M || he == o || Qt && !b) {
1075
- if (Gt(r))
1076
- return b ? r : {};
1077
- if (L = Ir(Qt ? {} : r), !s)
1078
- return Lr(r, wr(L, r));
1071
+ var ye = se(r), en = ye == c || ye == y;
1072
+ if (Kr(r))
1073
+ return Rr(r, s);
1074
+ if (ye == T || ye == o || en && !G) {
1075
+ if (It(r))
1076
+ return G ? r : {};
1077
+ if (b = Pr(en ? {} : r), !s)
1078
+ return Ur(r, Fr(b, r));
1079
1079
  } else {
1080
- if (!v[he])
1081
- return b ? r : {};
1082
- L = Pr(r, he, ot, s);
1080
+ if (!v[ye])
1081
+ return G ? r : {};
1082
+ b = Br(r, ye, ut, s);
1083
1083
  }
1084
1084
  }
1085
- q || (q = new fe());
1086
- var en = q.get(r);
1087
- if (en)
1088
- return en;
1089
- if (q.set(r, L), !Xt)
1090
- var tn = u ? Gr(r) : ut(r);
1091
- return Te(tn || r, function(ct, Ae) {
1092
- tn && (Ae = ct, ct = r[Ae]), jt(L, Ae, ot(ct, s, u, p, Ae, r, q));
1093
- }), L;
1085
+ Q || (Q = new pe());
1086
+ var tn = Q.get(r);
1087
+ if (tn)
1088
+ return tn;
1089
+ if (Q.set(r, b), !Xt)
1090
+ var nn = u ? Ar(r) : mt(r);
1091
+ return Se(nn || r, function(ft, Be) {
1092
+ nn && (Be = ft, ft = r[Be]), $t(b, Be, ut(ft, s, u, h, Be, r, Q));
1093
+ }), b;
1094
1094
  }
1095
- function vr(r) {
1096
- return Ue(r) ? Vn(r) : {};
1095
+ function Tr(r) {
1096
+ return Pe(r) ? jn(r) : {};
1097
1097
  }
1098
- function xr(r, s, u) {
1099
- var p = s(r);
1100
- return lt(r) ? p : Cn(p, u(r));
1098
+ function Mr(r, s, u) {
1099
+ var h = s(r);
1100
+ return dt(r) ? h : Cn(h, u(r));
1101
1101
  }
1102
- function Fr(r) {
1103
- return Ce.call(r);
1102
+ function Sr(r) {
1103
+ return Ue.call(r);
1104
1104
  }
1105
- function Mr(r) {
1106
- if (!Ue(r) || Br(r))
1105
+ function Dr(r) {
1106
+ if (!Pe(r) || Yr(r))
1107
1107
  return !1;
1108
- var s = Jt(r) || Gt(r) ? Bn : Y;
1108
+ var s = Jt(r) || It(r) ? Yn : z;
1109
1109
  return s.test(le(r));
1110
1110
  }
1111
- function Tr(r) {
1111
+ function Nr(r) {
1112
1112
  if (!Zt(r))
1113
- return $n(r);
1113
+ return Zn(r);
1114
1114
  var s = [];
1115
1115
  for (var u in Object(r))
1116
1116
  re.call(r, u) && u != "constructor" && s.push(u);
1117
1117
  return s;
1118
1118
  }
1119
- function Sr(r, s) {
1119
+ function Rr(r, s) {
1120
1120
  if (s)
1121
1121
  return r.slice();
1122
1122
  var u = new r.constructor(r.length);
1123
1123
  return r.copy(u), u;
1124
1124
  }
1125
- function st(r) {
1125
+ function ct(r) {
1126
1126
  var s = new r.constructor(r.byteLength);
1127
- return new Ht(s).set(new Ht(r)), s;
1127
+ return new Vt(s).set(new Vt(r)), s;
1128
1128
  }
1129
- function Dr(r, s) {
1130
- var u = s ? st(r.buffer) : r.buffer;
1129
+ function Er(r, s) {
1130
+ var u = s ? ct(r.buffer) : r.buffer;
1131
1131
  return new r.constructor(u, r.byteOffset, r.byteLength);
1132
1132
  }
1133
- function Nr(r, s, u) {
1134
- var p = s ? u(Ct(r), !0) : Ct(r);
1135
- return Lt(p, Xe, new r.constructor());
1133
+ function kr(r, s, u) {
1134
+ var h = s ? u(Ut(r), !0) : Ut(r);
1135
+ return Lt(h, tt, new r.constructor());
1136
1136
  }
1137
- function kr(r) {
1138
- var s = new r.constructor(r.source, V.exec(r));
1137
+ function Or(r) {
1138
+ var s = new r.constructor(r.source, Y.exec(r));
1139
1139
  return s.lastIndex = r.lastIndex, s;
1140
1140
  }
1141
- function Er(r, s, u) {
1142
- var p = s ? u(It(r), !0) : It(r);
1143
- return Lt(p, Qe, new r.constructor());
1141
+ function Gr(r, s, u) {
1142
+ var h = s ? u(At(r), !0) : At(r);
1143
+ return Lt(h, nt, new r.constructor());
1144
1144
  }
1145
- function Rr(r) {
1146
- return zt ? Object(zt.call(r)) : {};
1145
+ function br(r) {
1146
+ return jt ? Object(jt.call(r)) : {};
1147
1147
  }
1148
- function Or(r, s) {
1149
- var u = s ? st(r.buffer) : r.buffer;
1148
+ function Lr(r, s) {
1149
+ var u = s ? ct(r.buffer) : r.buffer;
1150
1150
  return new r.constructor(u, r.byteOffset, r.length);
1151
1151
  }
1152
- function br(r, s) {
1153
- var u = -1, p = r.length;
1154
- for (s || (s = Array(p)); ++u < p; )
1152
+ function Ir(r, s) {
1153
+ var u = -1, h = r.length;
1154
+ for (s || (s = Array(h)); ++u < h; )
1155
1155
  s[u] = r[u];
1156
1156
  return s;
1157
1157
  }
1158
- function $t(r, s, u, p) {
1158
+ function Kt(r, s, u, h) {
1159
1159
  u || (u = {});
1160
- for (var N = -1, b = s.length; ++N < b; ) {
1161
- var q = s[N], L = void 0;
1162
- jt(u, q, L === void 0 ? r[q] : L);
1160
+ for (var R = -1, G = s.length; ++R < G; ) {
1161
+ var Q = s[R], b = void 0;
1162
+ $t(u, Q, b === void 0 ? r[Q] : b);
1163
1163
  }
1164
1164
  return u;
1165
1165
  }
1166
- function Lr(r, s) {
1167
- return $t(r, Kt(r), s);
1166
+ function Ur(r, s) {
1167
+ return Kt(r, Wt(r), s);
1168
1168
  }
1169
- function Gr(r) {
1170
- return xr(r, ut, Kt);
1169
+ function Ar(r) {
1170
+ return Mr(r, mt, Wt);
1171
1171
  }
1172
- function Pe(r, s) {
1172
+ function Ce(r, s) {
1173
1173
  var u = r.__data__;
1174
- return Ar(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
1174
+ return Vr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
1175
1175
  }
1176
- function pe(r, s) {
1177
- var u = Pn(r, s);
1178
- return Mr(u) ? u : void 0;
1176
+ function he(r, s) {
1177
+ var u = Bn(r, s);
1178
+ return Dr(u) ? u : void 0;
1179
1179
  }
1180
- var Kt = Vt ? et(Vt, Object) : Kr, se = Fr;
1181
- (nt && se(new nt(new ArrayBuffer(1))) != ce || Se && se(new Se()) != w || rt && se(rt.resolve()) != T || at && se(new at()) != A || it && se(new it()) != D) && (se = function(r) {
1182
- var s = Ce.call(r), u = s == M ? r.constructor : void 0, p = u ? le(u) : void 0;
1183
- if (p)
1184
- switch (p) {
1185
- case Kn:
1186
- return ce;
1187
- case Zn:
1188
- return w;
1189
- case Wn:
1190
- return T;
1180
+ var Wt = Yt ? rt(Yt, Object) : qr, se = Sr;
1181
+ (it && se(new it(new ArrayBuffer(1))) != de || De && se(new De()) != w || ot && se(ot.resolve()) != M || st && se(new st()) != B || lt && se(new lt()) != N) && (se = function(r) {
1182
+ var s = Ue.call(r), u = s == T ? r.constructor : void 0, h = u ? le(u) : void 0;
1183
+ if (h)
1184
+ switch (h) {
1191
1185
  case qn:
1192
- return A;
1186
+ return de;
1187
+ case Qn:
1188
+ return w;
1193
1189
  case Jn:
1194
- return D;
1190
+ return M;
1191
+ case Xn:
1192
+ return B;
1193
+ case er:
1194
+ return N;
1195
1195
  }
1196
1196
  return s;
1197
1197
  });
@@ -1199,60 +1199,60 @@ je.exports;
1199
1199
  var s = r.length, u = r.constructor(s);
1200
1200
  return s && typeof r[0] == "string" && re.call(r, "index") && (u.index = r.index, u.input = r.input), u;
1201
1201
  }
1202
- function Ir(r) {
1203
- return typeof r.constructor == "function" && !Zt(r) ? vr(Hn(r)) : {};
1202
+ function Pr(r) {
1203
+ return typeof r.constructor == "function" && !Zt(r) ? Tr(zn(r)) : {};
1204
1204
  }
1205
- function Pr(r, s, u, p) {
1206
- var N = r.constructor;
1205
+ function Br(r, s, u, h) {
1206
+ var R = r.constructor;
1207
1207
  switch (s) {
1208
1208
  case Me:
1209
- return st(r);
1209
+ return ct(r);
1210
1210
  case m:
1211
1211
  case f:
1212
- return new N(+r);
1213
- case ce:
1214
- return Dr(r, p);
1212
+ return new R(+r);
1213
+ case de:
1214
+ return Er(r, h);
1215
1215
  case _:
1216
1216
  case F:
1217
1217
  case S:
1218
- case k:
1218
+ case E:
1219
1219
  case ee:
1220
- case K:
1221
- case H:
1220
+ case W:
1221
+ case V:
1222
1222
  case te:
1223
1223
  case ne:
1224
- return Or(r, p);
1224
+ return Lr(r, h);
1225
1225
  case w:
1226
- return Nr(r, p, u);
1226
+ return kr(r, h, u);
1227
1227
  case g:
1228
- case C:
1229
- return new N(r);
1228
+ case I:
1229
+ return new R(r);
1230
+ case H:
1231
+ return Or(r);
1230
1232
  case B:
1231
- return kr(r);
1232
- case A:
1233
- return Er(r, p, u);
1233
+ return Gr(r, h, u);
1234
1234
  case ie:
1235
- return Rr(r);
1235
+ return br(r);
1236
1236
  }
1237
1237
  }
1238
- function Ur(r, s) {
1239
- return s = s ?? i, !!s && (typeof r == "number" || z.test(r)) && r > -1 && r % 1 == 0 && r < s;
1238
+ function Hr(r, s) {
1239
+ return s = s ?? i, !!s && (typeof r == "number" || j.test(r)) && r > -1 && r % 1 == 0 && r < s;
1240
1240
  }
1241
- function Ar(r) {
1241
+ function Vr(r) {
1242
1242
  var s = typeof r;
1243
1243
  return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
1244
1244
  }
1245
- function Br(r) {
1246
- return !!Pt && Pt in r;
1245
+ function Yr(r) {
1246
+ return !!Ct && Ct in r;
1247
1247
  }
1248
1248
  function Zt(r) {
1249
- var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ge;
1249
+ var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ie;
1250
1250
  return r === u;
1251
1251
  }
1252
1252
  function le(r) {
1253
1253
  if (r != null) {
1254
1254
  try {
1255
- return Ut.call(r);
1255
+ return Pt.call(r);
1256
1256
  } catch {
1257
1257
  }
1258
1258
  try {
@@ -1262,53 +1262,53 @@ je.exports;
1262
1262
  }
1263
1263
  return "";
1264
1264
  }
1265
- function Hr(r) {
1266
- return ot(r, !0, !0);
1265
+ function zr(r) {
1266
+ return ut(r, !0, !0);
1267
1267
  }
1268
- function Wt(r, s) {
1268
+ function qt(r, s) {
1269
1269
  return r === s || r !== r && s !== s;
1270
1270
  }
1271
- function Vr(r) {
1272
- return Yr(r) && re.call(r, "callee") && (!Yn.call(r, "callee") || Ce.call(r) == o);
1271
+ function jr(r) {
1272
+ return $r(r) && re.call(r, "callee") && (!$n.call(r, "callee") || Ue.call(r) == o);
1273
1273
  }
1274
- var lt = Array.isArray;
1275
- function qt(r) {
1276
- return r != null && jr(r.length) && !Jt(r);
1274
+ var dt = Array.isArray;
1275
+ function Qt(r) {
1276
+ return r != null && Wr(r.length) && !Jt(r);
1277
1277
  }
1278
- function Yr(r) {
1279
- return $r(r) && qt(r);
1278
+ function $r(r) {
1279
+ return Zr(r) && Qt(r);
1280
1280
  }
1281
- var zr = jn || Zr;
1281
+ var Kr = Wn || Qr;
1282
1282
  function Jt(r) {
1283
- var s = Ue(r) ? Ce.call(r) : "";
1283
+ var s = Pe(r) ? Ue.call(r) : "";
1284
1284
  return s == c || s == y;
1285
1285
  }
1286
- function jr(r) {
1286
+ function Wr(r) {
1287
1287
  return typeof r == "number" && r > -1 && r % 1 == 0 && r <= i;
1288
1288
  }
1289
- function Ue(r) {
1289
+ function Pe(r) {
1290
1290
  var s = typeof r;
1291
1291
  return !!r && (s == "object" || s == "function");
1292
1292
  }
1293
- function $r(r) {
1293
+ function Zr(r) {
1294
1294
  return !!r && typeof r == "object";
1295
1295
  }
1296
- function ut(r) {
1297
- return qt(r) ? gr(r) : Tr(r);
1296
+ function mt(r) {
1297
+ return Qt(r) ? xr(r) : Nr(r);
1298
1298
  }
1299
- function Kr() {
1299
+ function qr() {
1300
1300
  return [];
1301
1301
  }
1302
- function Zr() {
1302
+ function Qr() {
1303
1303
  return !1;
1304
1304
  }
1305
- e.exports = Hr;
1306
- })(je, je.exports);
1307
- je.exports;
1308
- const Q = (e, t) => new Date(e.getTime() - Ja(t, e));
1309
- class E {
1305
+ e.exports = zr;
1306
+ })(We, We.exports);
1307
+ We.exports;
1308
+ const P = (e, t) => new Date(e.getTime() - Xa(t, e));
1309
+ class D {
1310
1310
  constructor(t) {
1311
- I(this, "timeframeText"), I(this, "key"), I(this, "display"), I(this, "timeframeLength"), I(this, "allowedTiers"), I(this, "defaultResponseGranularity"), I(this, "dataGranularity"), I(this, "isRelative"), I(this, "fineGrainedDefaultGranularity"), I(this, "_startCustom"), I(this, "_endCustom"), I(this, "_allowedGranularitiesOverride"), this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
1311
+ U(this, "timeframeText"), U(this, "key"), U(this, "display"), U(this, "timeframeLength"), U(this, "allowedTiers"), U(this, "defaultResponseGranularity"), U(this, "dataGranularity"), U(this, "isRelative"), U(this, "fineGrainedDefaultGranularity"), U(this, "_startCustom"), U(this, "_endCustom"), U(this, "_allowedGranularitiesOverride"), this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
1312
1312
  }
1313
1313
  // rawEnd does not consider granularity and should not be used directly in queries.
1314
1314
  // Use `new QueryTime(timeframe, granularity?).queryEndSeconds()` instead.
@@ -1338,91 +1338,106 @@ class E {
1338
1338
  return this.key !== "custom" ? this.key : `${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`;
1339
1339
  }
1340
1340
  v4Query(t) {
1341
- if (this.key === "custom")
1342
- return {
1343
- type: "absolute",
1344
- start: this.rawStart(),
1345
- end: this.rawEnd(),
1346
- tz: t
1347
- };
1348
- if (ga.includes(this.key))
1349
- return {
1350
- type: "relative",
1351
- // Safe assertion; we just checked that key is a member of the union.
1352
- time_range: this.key,
1353
- tz: t
1354
- };
1355
- throw new Error("Unsupported relative time value for Explore");
1341
+ return this.key === "custom" ? {
1342
+ type: "absolute",
1343
+ start: this.rawStart(),
1344
+ end: this.rawEnd(),
1345
+ tz: t
1346
+ } : {
1347
+ type: "relative",
1348
+ // Safe assertion; we just checked that key is a member of the union.
1349
+ time_range: this.key,
1350
+ tz: t
1351
+ };
1356
1352
  }
1357
1353
  tzAdjustedDate(t) {
1358
1354
  if (!t)
1359
1355
  return /* @__PURE__ */ new Date();
1360
- const n = qa(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
1361
- return Wa(n, t);
1356
+ const n = Ja(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
1357
+ return Qa(n, t);
1362
1358
  }
1363
1359
  }
1364
- class Qa extends E {
1360
+ class ti extends D {
1365
1361
  rawStart(t) {
1366
- let n = ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1367
- return t && (n = Q(n, t)), n;
1362
+ let n = Ke(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1363
+ return t && (n = P(n, t)), n;
1368
1364
  }
1369
1365
  maximumTimeframeLength() {
1370
1366
  return 3600 * 24 * 7;
1371
1367
  }
1372
1368
  }
1373
- class ei extends E {
1369
+ class ni extends D {
1374
1370
  rawStart(t) {
1375
- let n = ge(this.tzAdjustedDate(t));
1376
- return t && (n = Q(n, t)), n;
1371
+ let n = ve(this.tzAdjustedDate(t));
1372
+ return t && (n = P(n, t)), n;
1377
1373
  }
1378
1374
  maximumTimeframeLength() {
1379
1375
  return 3600 * 24 * 31;
1380
1376
  }
1381
1377
  }
1382
- class ti extends E {
1378
+ class ri extends D {
1379
+ rawStart(t) {
1380
+ let n = we(this.tzAdjustedDate(t));
1381
+ return t && (n = P(n, t)), n;
1382
+ }
1383
+ maximumTimeframeLength() {
1384
+ return 3600 * 24 * 92;
1385
+ }
1386
+ }
1387
+ class ai extends D {
1383
1388
  rawStart(t) {
1384
1389
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
1385
- return t && (n = Q(n, t)), n;
1390
+ return t && (n = P(n, t)), n;
1386
1391
  }
1387
1392
  maximumTimeframeLength() {
1388
1393
  return 3600 * 24 * 366;
1389
1394
  }
1390
1395
  }
1391
- class ni extends E {
1396
+ class ii extends D {
1392
1397
  rawEnd(t) {
1393
- let n = ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1394
- return t && (n = Q(n, t)), n;
1398
+ let n = Ke(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1399
+ return t && (n = P(n, t)), n;
1395
1400
  }
1396
1401
  rawStart(t) {
1397
1402
  const n = this.tzAdjustedDate(t);
1398
- let a = ze(n.setDate(n.getDate() - 7), {
1403
+ let a = Ke(n.setDate(n.getDate() - 7), {
1399
1404
  weekStartsOn: 1
1400
1405
  });
1401
- return t && (a = Q(a, t)), a;
1406
+ return t && (a = P(a, t)), a;
1402
1407
  }
1403
1408
  }
1404
- class ri extends E {
1409
+ class oi extends D {
1405
1410
  rawEnd(t) {
1406
- let n = ge(this.tzAdjustedDate(t));
1407
- return t && (n = Q(n, t)), n;
1411
+ let n = we(this.tzAdjustedDate(t));
1412
+ return t && (n = P(n, t)), n;
1408
1413
  }
1409
1414
  rawStart(t) {
1410
- let n = ge(En(this.tzAdjustedDate(t)));
1411
- return t && (n = Q(n, t)), n;
1415
+ let n = we(Gn(this.tzAdjustedDate(t)));
1416
+ return t && (n = P(n, t)), n;
1412
1417
  }
1413
1418
  }
1414
- class ai extends E {
1419
+ class si extends D {
1420
+ rawEnd(t) {
1421
+ let n = ve(this.tzAdjustedDate(t));
1422
+ return t && (n = P(n, t)), n;
1423
+ }
1424
+ rawStart(t) {
1425
+ let n = ve(On(this.tzAdjustedDate(t)));
1426
+ return t && (n = P(n, t)), n;
1427
+ }
1428
+ }
1429
+ class li extends D {
1415
1430
  rawEnd(t) {
1416
1431
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
1417
- return t && (n = Q(n, t)), n;
1432
+ return t && (n = P(n, t)), n;
1418
1433
  }
1419
1434
  rawStart(t) {
1420
1435
  let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
1421
- return t && (n = Q(n, t)), n;
1436
+ return t && (n = P(n, t)), n;
1422
1437
  }
1423
1438
  }
1424
- h.FIFTEEN_MIN, new E({
1425
- key: h.FIFTEEN_MIN,
1439
+ p.FIFTEEN_MIN, new D({
1440
+ key: p.FIFTEEN_MIN,
1426
1441
  display: "Last 15 minutes",
1427
1442
  timeframeText: "15 minutes",
1428
1443
  timeframeLength: () => 900,
@@ -1432,8 +1447,8 @@ h.FIFTEEN_MIN, new E({
1432
1447
  fineGrainedDefaultGranularity: "thirtySecondly",
1433
1448
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1434
1449
  allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely"]
1435
- }), h.ONE_HOUR, new E({
1436
- key: h.ONE_HOUR,
1450
+ }), p.ONE_HOUR, new D({
1451
+ key: p.ONE_HOUR,
1437
1452
  display: "Last hour",
1438
1453
  timeframeText: "One hour",
1439
1454
  timeframeLength: () => 3600 * 1,
@@ -1443,8 +1458,8 @@ h.FIFTEEN_MIN, new E({
1443
1458
  fineGrainedDefaultGranularity: "minutely",
1444
1459
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1445
1460
  allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely"]
1446
- }), h.SIX_HOUR, new E({
1447
- key: h.SIX_HOUR,
1461
+ }), p.SIX_HOUR, new D({
1462
+ key: p.SIX_HOUR,
1448
1463
  display: "Last 6 hours",
1449
1464
  timeframeText: "6 hours",
1450
1465
  timeframeLength: () => 3600 * 6,
@@ -1454,8 +1469,8 @@ h.FIFTEEN_MIN, new E({
1454
1469
  fineGrainedDefaultGranularity: "fiveMinutely",
1455
1470
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1456
1471
  allowedGranularitiesOverride: ["thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1457
- }), h.TWELVE_HOUR, new E({
1458
- key: h.TWELVE_HOUR,
1472
+ }), p.TWELVE_HOUR, new D({
1473
+ key: p.TWELVE_HOUR,
1459
1474
  display: "Last 12 hours",
1460
1475
  timeframeText: "12 hours",
1461
1476
  timeframeLength: () => 3600 * 12,
@@ -1465,8 +1480,8 @@ h.FIFTEEN_MIN, new E({
1465
1480
  fineGrainedDefaultGranularity: "tenMinutely",
1466
1481
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1467
1482
  allowedGranularitiesOverride: ["minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1468
- }), h.ONE_DAY, new E({
1469
- key: h.ONE_DAY,
1483
+ }), p.ONE_DAY, new D({
1484
+ key: p.ONE_DAY,
1470
1485
  display: "Last 24 hours",
1471
1486
  timeframeText: "24 hours",
1472
1487
  timeframeLength: () => 3600 * 24,
@@ -1476,8 +1491,8 @@ h.FIFTEEN_MIN, new E({
1476
1491
  fineGrainedDefaultGranularity: "thirtyMinutely",
1477
1492
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1478
1493
  allowedGranularitiesOverride: ["fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1479
- }), h.SEVEN_DAY, new E({
1480
- key: h.SEVEN_DAY,
1494
+ }), p.SEVEN_DAY, new D({
1495
+ key: p.SEVEN_DAY,
1481
1496
  display: "Last 7 days",
1482
1497
  timeframeText: "7 days",
1483
1498
  timeframeLength: () => 3600 * 24 * 7,
@@ -1487,8 +1502,8 @@ h.FIFTEEN_MIN, new E({
1487
1502
  fineGrainedDefaultGranularity: "twoHourly",
1488
1503
  allowedTiers: ["trial", "plus", "enterprise"],
1489
1504
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1490
- }), h.THIRTY_DAY, new E({
1491
- key: h.THIRTY_DAY,
1505
+ }), p.THIRTY_DAY, new D({
1506
+ key: p.THIRTY_DAY,
1492
1507
  display: "Last 30 days",
1493
1508
  timeframeText: "30 days",
1494
1509
  timeframeLength: () => 3600 * 24 * 30,
@@ -1498,8 +1513,8 @@ h.FIFTEEN_MIN, new E({
1498
1513
  fineGrainedDefaultGranularity: "twelveHourly",
1499
1514
  allowedTiers: ["trial", "plus", "enterprise"],
1500
1515
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1501
- }), h.NINETY_DAY, new E({
1502
- key: h.NINETY_DAY,
1516
+ }), p.NINETY_DAY, new D({
1517
+ key: p.NINETY_DAY,
1503
1518
  display: "Last 90 days",
1504
1519
  timeframeText: "90 days",
1505
1520
  timeframeLength: () => 3600 * 24 * 90,
@@ -1509,8 +1524,8 @@ h.FIFTEEN_MIN, new E({
1509
1524
  fineGrainedDefaultGranularity: "daily",
1510
1525
  allowedTiers: ["trial", "plus", "enterprise"],
1511
1526
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1512
- }), h.ONE_HUNDRED_EIGHTY_DAY, new E({
1513
- key: h.ONE_HUNDRED_EIGHTY_DAY,
1527
+ }), p.ONE_HUNDRED_EIGHTY_DAY, new D({
1528
+ key: p.ONE_HUNDRED_EIGHTY_DAY,
1514
1529
  display: "Last 180 days",
1515
1530
  timeframeText: "180 days",
1516
1531
  timeframeLength: () => 3600 * 24 * 180,
@@ -1520,8 +1535,8 @@ h.FIFTEEN_MIN, new E({
1520
1535
  fineGrainedDefaultGranularity: "daily",
1521
1536
  allowedTiers: ["trial", "plus", "enterprise"],
1522
1537
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1523
- }), h.ONE_YEAR, new E({
1524
- key: h.ONE_YEAR,
1538
+ }), p.ONE_YEAR, new D({
1539
+ key: p.ONE_YEAR,
1525
1540
  display: "Last 365 days",
1526
1541
  timeframeText: "365 days",
1527
1542
  timeframeLength: () => 3600 * 24 * 365,
@@ -1531,13 +1546,13 @@ h.FIFTEEN_MIN, new E({
1531
1546
  fineGrainedDefaultGranularity: "daily",
1532
1547
  allowedTiers: ["trial", "plus", "enterprise"],
1533
1548
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1534
- }), h.CURRENT_WEEK, new Qa({
1535
- key: h.CURRENT_WEEK,
1549
+ }), p.CURRENT_WEEK, new ti({
1550
+ key: p.CURRENT_WEEK,
1536
1551
  display: "This week",
1537
1552
  timeframeText: "Week",
1538
1553
  timeframeLength: () => {
1539
- const e = ze(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
1540
- return (ft(pt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1554
+ const e = Ke(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
1555
+ return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1541
1556
  },
1542
1557
  defaultResponseGranularity: "daily",
1543
1558
  dataGranularity: "daily",
@@ -1545,32 +1560,44 @@ h.FIFTEEN_MIN, new E({
1545
1560
  fineGrainedDefaultGranularity: "twoHourly",
1546
1561
  allowedTiers: ["plus", "enterprise"],
1547
1562
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1548
- }), h.CURRENT_MONTH, new ei({
1549
- key: h.CURRENT_MONTH,
1563
+ }), p.CURRENT_MONTH, new ni({
1564
+ key: p.CURRENT_MONTH,
1550
1565
  display: "This month",
1551
1566
  timeframeText: "Month",
1552
1567
  timeframeLength: () => {
1553
- const e = ge(/* @__PURE__ */ new Date());
1554
- return (ft(pt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1568
+ const e = ve(/* @__PURE__ */ new Date());
1569
+ return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1570
+ },
1571
+ defaultResponseGranularity: "daily",
1572
+ dataGranularity: "daily",
1573
+ isRelative: !1,
1574
+ allowedTiers: ["plus", "enterprise"]
1575
+ }), p.CURRENT_QUARTER, new ri({
1576
+ key: p.CURRENT_QUARTER,
1577
+ display: "This quarter",
1578
+ timeframeText: "Quarter",
1579
+ timeframeLength: () => {
1580
+ const e = we(/* @__PURE__ */ new Date());
1581
+ return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1555
1582
  },
1556
1583
  defaultResponseGranularity: "daily",
1557
1584
  dataGranularity: "daily",
1558
1585
  isRelative: !1,
1559
1586
  allowedTiers: ["plus", "enterprise"]
1560
- }), h.CURRENT_YEAR, new ti({
1561
- key: h.CURRENT_YEAR,
1587
+ }), p.CURRENT_YEAR, new ai({
1588
+ key: p.CURRENT_YEAR,
1562
1589
  display: "This year",
1563
1590
  timeframeText: "Year",
1564
1591
  timeframeLength: () => {
1565
1592
  const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
1566
- return (ft(pt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1593
+ return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1567
1594
  },
1568
1595
  defaultResponseGranularity: "daily",
1569
1596
  dataGranularity: "daily",
1570
1597
  isRelative: !1,
1571
1598
  allowedTiers: ["plus", "enterprise"]
1572
- }), h.PREVIOUS_WEEK, new ni({
1573
- key: h.PREVIOUS_WEEK,
1599
+ }), p.PREVIOUS_WEEK, new ii({
1600
+ key: p.PREVIOUS_WEEK,
1574
1601
  display: "Previous week",
1575
1602
  timeframeText: "Week",
1576
1603
  timeframeLength: () => 3600 * 24 * 7,
@@ -1580,47 +1607,59 @@ h.FIFTEEN_MIN, new E({
1580
1607
  fineGrainedDefaultGranularity: "twoHourly",
1581
1608
  allowedTiers: ["plus", "enterprise"],
1582
1609
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1583
- }), h.PREVIOUS_MONTH, new ri({
1584
- key: h.PREVIOUS_MONTH,
1610
+ }), p.PREVIOUS_MONTH, new si({
1611
+ key: p.PREVIOUS_MONTH,
1585
1612
  display: "Previous month",
1586
1613
  timeframeText: "Month",
1587
1614
  timeframeLength: () => {
1588
1615
  let e = 0;
1589
- const t = ge(/* @__PURE__ */ new Date()), n = ge(En(/* @__PURE__ */ new Date()));
1590
- return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = hn(t, n)), 3600 * 24 * Ea((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + an(e);
1616
+ const t = ve(/* @__PURE__ */ new Date()), n = ve(On(/* @__PURE__ */ new Date()));
1617
+ return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = yn(t, n)), 3600 * 24 * Oa((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + on(e);
1591
1618
  },
1592
1619
  defaultResponseGranularity: "daily",
1593
1620
  dataGranularity: "daily",
1594
1621
  isRelative: !1,
1595
1622
  allowedTiers: ["plus", "enterprise"]
1596
- }), h.PREVIOUS_YEAR, new ai({
1597
- key: h.PREVIOUS_YEAR,
1623
+ }), p.PREVIOUS_QUARTER, new oi({
1624
+ key: p.PREVIOUS_QUARTER,
1625
+ display: "Previous quarter",
1626
+ timeframeText: "Quarter",
1627
+ timeframeLength: () => {
1628
+ const e = we(/* @__PURE__ */ new Date()), t = we(Gn(/* @__PURE__ */ new Date()));
1629
+ return (e.getTime() - t.getTime()) / 1e3;
1630
+ },
1631
+ defaultResponseGranularity: "daily",
1632
+ dataGranularity: "daily",
1633
+ isRelative: !1,
1634
+ allowedTiers: ["plus", "enterprise"]
1635
+ }), p.PREVIOUS_YEAR, new li({
1636
+ key: p.PREVIOUS_YEAR,
1598
1637
  display: "Previous year",
1599
1638
  timeframeText: "Year",
1600
1639
  timeframeLength: () => {
1601
1640
  const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
1602
1641
  let n = 0;
1603
- return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = hn(e, t)), 3600 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + an(n);
1642
+ return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = yn(e, t)), 3600 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + on(n);
1604
1643
  },
1605
1644
  defaultResponseGranularity: "daily",
1606
1645
  dataGranularity: "daily",
1607
1646
  isRelative: !1,
1608
1647
  allowedTiers: ["plus", "enterprise"]
1609
1648
  });
1610
- function hn(e, t) {
1611
- return Ra(e.getTimezoneOffset() - t.getTimezoneOffset());
1649
+ function yn(e, t) {
1650
+ return Ga(e.getTimezoneOffset() - t.getTimezoneOffset());
1612
1651
  }
1613
- h.FIFTEEN_MIN, h.ONE_HOUR, h.SIX_HOUR, h.TWELVE_HOUR, h.ONE_DAY, h.SEVEN_DAY, h.FIFTEEN_MIN, h.ONE_HOUR, h.SIX_HOUR, h.TWELVE_HOUR, h.ONE_DAY, h.SEVEN_DAY, h.THIRTY_DAY, h.NINETY_DAY, h.ONE_HUNDRED_EIGHTY_DAY, h.ONE_YEAR, h.CURRENT_WEEK, h.CURRENT_MONTH, h.CURRENT_YEAR, h.PREVIOUS_WEEK, h.PREVIOUS_MONTH, h.PREVIOUS_YEAR;
1614
- new Map(Nt.map((e) => [e.code, { code: e.code, name: e.name }]));
1615
- var bn = { exports: {} };
1652
+ p.FIFTEEN_MIN, p.ONE_HOUR, p.SIX_HOUR, p.TWELVE_HOUR, p.ONE_DAY, p.SEVEN_DAY, p.FIFTEEN_MIN, p.ONE_HOUR, p.SIX_HOUR, p.TWELVE_HOUR, p.ONE_DAY, p.SEVEN_DAY, p.THIRTY_DAY, p.NINETY_DAY, p.ONE_HUNDRED_EIGHTY_DAY, p.ONE_YEAR, p.CURRENT_WEEK, p.CURRENT_MONTH, p.CURRENT_QUARTER, p.CURRENT_YEAR, p.PREVIOUS_WEEK, p.PREVIOUS_MONTH, p.PREVIOUS_QUARTER, p.PREVIOUS_YEAR;
1653
+ new Map(Rt.map((e) => [e.code, { code: e.code, name: e.name }]));
1654
+ var In = { exports: {} };
1616
1655
  (function(e) {
1617
1656
  (function() {
1618
1657
  function t(d, c) {
1619
1658
  if (c.separator === !1 || d < 1e3)
1620
1659
  return d.toString();
1621
1660
  var y = typeof c.separator == "string" ? c.separator : ",", w = [], g = Math.round(d).toString().split("");
1622
- return g.reverse().forEach(function(M, T) {
1623
- T && T % 3 === 0 && w.push(y), w.push(M);
1661
+ return g.reverse().forEach(function(T, M) {
1662
+ M && M % 3 === 0 && w.push(y), w.push(T);
1624
1663
  }), w.reverse().join("");
1625
1664
  }
1626
1665
  function n(d, c, y) {
@@ -1638,12 +1677,12 @@ var bn = { exports: {} };
1638
1677
  }
1639
1678
  f.addCommas = t, e.exports = f;
1640
1679
  })();
1641
- })(bn);
1642
- var ii = bn.exports;
1643
- const wt = /* @__PURE__ */ Xa(ii);
1644
- var yn;
1645
- const oi = typeof document < "u" && ((yn = document.documentElement) == null ? void 0 : yn.lang) || "en-US", vt = new Intl.NumberFormat(oi);
1646
- function si({
1680
+ })(In);
1681
+ var ui = In.exports;
1682
+ const vt = /* @__PURE__ */ ei(ui);
1683
+ var _n;
1684
+ const ci = typeof document < "u" && ((_n = document.documentElement) == null ? void 0 : _n.lang) || "en-US", xt = new Intl.NumberFormat(ci);
1685
+ function di({
1647
1686
  i18n: e
1648
1687
  }) {
1649
1688
  const t = (a, i) => {
@@ -1684,7 +1723,7 @@ function si({
1684
1723
  case "usd":
1685
1724
  return n(a, l);
1686
1725
  default:
1687
- return isNaN(a) ? `${a}` : m ? `${wt(a, { capital: !0 })} ${d}` : a >= 0.01 ? `${vt.format(Number.parseFloat(a.toFixed(2)))} ${d}` : `${Number.parseFloat(a.toPrecision(4))} ${d}`;
1726
+ return isNaN(a) ? `${a}` : m ? `${vt(a, { capital: !0 })} ${d}` : a >= 0.01 ? `${xt.format(Number.parseFloat(a.toFixed(2)))} ${d}` : `${Number.parseFloat(a.toPrecision(4))} ${d}`;
1688
1727
  }
1689
1728
  }, formatBytes: t, formatCost: n, formatRange: (a, i, o, {
1690
1729
  isBytes1024: l = !1,
@@ -1702,77 +1741,77 @@ function si({
1702
1741
  if (isNaN(a) || isNaN(i))
1703
1742
  return `${a} - ${i}`;
1704
1743
  if (f)
1705
- return `${wt(a, { capital: !0 })} - ${wt(i, { capital: !0 })} ${c}`;
1744
+ return `${vt(a, { capital: !0 })} - ${vt(i, { capital: !0 })} ${c}`;
1706
1745
  }
1707
- const y = a >= 0.01 ? `${vt.format(Number.parseFloat(a.toFixed(2)))}` : `${Number.parseFloat(a.toPrecision(4))}`, w = i >= 0.01 ? `${vt.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`;
1746
+ const y = a >= 0.01 ? `${xt.format(Number.parseFloat(a.toFixed(2)))}` : `${Number.parseFloat(a.toPrecision(4))}`, w = i >= 0.01 ? `${xt.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`;
1708
1747
  return `${y} - ${w} ${c}`;
1709
1748
  } };
1710
1749
  }
1711
- const Ee = "#e0e4ea", li = "#828a9e", ui = "32px", _n = 5, xt = [
1750
+ const ke = "#e0e4ea", mi = "#828a9e", fi = "32px", gn = 5, Ft = [
1712
1751
  "#00819d",
1713
1752
  "#00abd2",
1714
1753
  "#00c8f4",
1715
1754
  "#67e3ff",
1716
1755
  "#b3f1ff"
1717
- ], ci = (e, t) => {
1756
+ ], pi = (e, t) => {
1718
1757
  const n = e.length;
1719
1758
  if (!n)
1720
1759
  return NaN;
1721
1760
  const a = (n - 1) * t, i = Math.floor(a), o = Math.ceil(a);
1722
1761
  return i === o ? e[i] : e[i] + (a - i) * (e[o] - e[i]);
1723
- }, Ft = (e, t) => {
1762
+ }, Tt = (e, t) => {
1724
1763
  if (e.length === 0)
1725
1764
  return [];
1726
1765
  const n = e.filter((m) => m > 0).map(Math.log).sort((m, f) => m - f), a = Math.min(...n), o = (Math.max(...n) - a) / t;
1727
1766
  return Array.from({ length: t }, (m, f) => a + f * o).map((m) => Math.exp(m)).reverse();
1728
1767
  };
1729
- function di({
1768
+ function hi({
1730
1769
  countryMetrics: e,
1731
1770
  metric: t,
1732
1771
  unit: n
1733
1772
  }) {
1734
- const { formatMetric: a, formatMetricRange: i } = Re.useMetricFormat({ unit: n }), o = P(() => {
1773
+ const { formatMetric: a, formatMetricRange: i } = Oe.useMetricFormat({ unit: n }), o = A(() => {
1735
1774
  const g = { ...e.value };
1736
- for (const M of Object.keys(g))
1737
- Nt.find((T) => T.code === M) || delete g[M];
1775
+ for (const T of Object.keys(g))
1776
+ Rt.find((M) => M.code === T) || delete g[T];
1738
1777
  return g;
1739
- }), l = P(() => Object.values(o.value)), m = P(() => Object.keys(o.value).length), f = P(() => m.value < _n - 1 ? m.value : _n), d = P(() => {
1778
+ }), l = A(() => Object.values(o.value)), m = A(() => Object.keys(o.value).length), f = A(() => m.value < gn - 1 ? m.value : gn), d = A(() => {
1740
1779
  var g;
1741
1780
  return !((g = t.value) != null && g.includes("latency"));
1742
- }), c = P(() => {
1781
+ }), c = A(() => {
1743
1782
  const g = [];
1744
1783
  if (l.value.length > 10) {
1745
- const M = [...l.value].sort((D, Me) => D - Me), T = ci(M, 0.75), B = l.value.filter((D) => D >= T), A = l.value.filter((D) => D < T), C = Ft(B, 3), ie = Ft(A, 2);
1746
- return g.push(...C, ...ie), g;
1784
+ const T = [...l.value].sort((N, Me) => N - Me), M = pi(T, 0.75), H = l.value.filter((N) => N >= M), B = l.value.filter((N) => N < M), I = Tt(H, 3), ie = Tt(B, 2);
1785
+ return g.push(...I, ...ie), g;
1747
1786
  }
1748
- return Ft(l.value, f.value);
1749
- }), y = P(() => l.value.length === 1 ? [{
1787
+ return Tt(l.value, f.value);
1788
+ }), y = A(() => l.value.length === 1 ? [{
1750
1789
  color: w(l.value[0]),
1751
1790
  range: a(l.value[0], {
1752
1791
  approximate: d.value,
1753
1792
  showUnit: !n.value.includes("count")
1754
1793
  }).trim()
1755
- }] : c.value.map((g, M) => {
1756
- const T = M === 0 ? Math.max(...c.value) : c.value[M - 1], B = g, A = T;
1757
- let C = "";
1758
- return M === 0 ? C = `> ${a(B, {
1794
+ }] : c.value.map((g, T) => {
1795
+ const M = T === 0 ? Math.max(...c.value) : c.value[T - 1], H = g, B = M;
1796
+ let I = "";
1797
+ return T === 0 ? I = `> ${a(H, {
1759
1798
  showUnit: !n.value.includes("count"),
1760
1799
  approximate: d.value
1761
- })}`.trim() : M === c.value.length - 1 ? C = `< ${a(A, {
1800
+ })}`.trim() : T === c.value.length - 1 ? I = `< ${a(B, {
1762
1801
  showUnit: !n.value.includes("count"),
1763
1802
  approximate: d.value
1764
- })}`.trim() : C = i(B, A, {
1803
+ })}`.trim() : I = i(H, B, {
1765
1804
  showUnit: !n.value.includes("count"),
1766
1805
  approximate: d.value
1767
1806
  }).trim(), {
1768
- color: w(B),
1769
- range: C
1807
+ color: w(H),
1808
+ range: I
1770
1809
  };
1771
1810
  })), w = (g) => {
1772
1811
  if (g === 0)
1773
- return Ee;
1774
- const M = c.value.findIndex((T) => g >= T);
1775
- return M === -1 ? xt[xt.length - 1] : xt[M] ?? Ee;
1812
+ return ke;
1813
+ const T = c.value.findIndex((M) => g >= M);
1814
+ return T === -1 ? Ft[Ft.length - 1] : Ft[T] ?? ke;
1776
1815
  };
1777
1816
  return {
1778
1817
  getColor: w,
@@ -1780,10 +1819,10 @@ function di({
1780
1819
  scale: c
1781
1820
  };
1782
1821
  }
1783
- function mi({
1822
+ function yi({
1784
1823
  unit: e
1785
1824
  }) {
1786
- const { i18n: t } = Re.useI18n(), { formatUnit: n, formatRange: a } = si({ i18n: t });
1825
+ const { i18n: t } = Oe.useI18n(), { formatUnit: n, formatRange: a } = di({ i18n: t });
1787
1826
  return {
1788
1827
  formatMetric: (l, {
1789
1828
  showUnit: m = !0,
@@ -1801,11 +1840,11 @@ function mi({
1801
1840
  })
1802
1841
  };
1803
1842
  }
1804
- const Re = {
1805
- useI18n: fa,
1806
- useLegendScale: di,
1807
- useMetricFormat: mi
1808
- }, fi = "FeatureCollection", pi = [
1843
+ const Oe = {
1844
+ useI18n: ya,
1845
+ useLegendScale: hi,
1846
+ useMetricFormat: yi
1847
+ }, _i = "FeatureCollection", gi = [
1809
1848
  {
1810
1849
  type: "Feature",
1811
1850
  properties: {
@@ -4237,14 +4276,14 @@ const Re = {
4237
4276
  ]
4238
4277
  }
4239
4278
  }
4240
- ], hi = {
4241
- type: fi,
4242
- features: pi
4279
+ ], wi = {
4280
+ type: _i,
4281
+ features: gi
4243
4282
  };
4244
- function yi(e) {
4283
+ function vi(e) {
4245
4284
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4246
4285
  }
4247
- var _i = wi, $e, ve, U, Ke, qe, gi = [
4286
+ var xi = Ti, Ze, Fe, C, qe, Xe, Fi = [
4248
4287
  "Point",
4249
4288
  "MultiPoint",
4250
4289
  "LineString",
@@ -4253,83 +4292,83 @@ var _i = wi, $e, ve, U, Ke, qe, gi = [
4253
4292
  "MultiPolygon",
4254
4293
  "GeometryCollection"
4255
4294
  ];
4256
- function wi(e) {
4257
- Ke = 2, qe = Math.pow(10, 6), U = null, $e = [], ve = [];
4258
- var t = e.readFields(vi, {});
4259
- return $e = null, t;
4295
+ function Ti(e) {
4296
+ qe = 2, Xe = Math.pow(10, 6), C = null, Ze = [], Fe = [];
4297
+ var t = e.readFields(Mi, {});
4298
+ return Ze = null, t;
4260
4299
  }
4261
- function vi(e, t, n) {
4262
- e === 1 ? $e.push(n.readString()) : e === 2 ? Ke = n.readVarint() : e === 3 ? qe = Math.pow(10, n.readVarint()) : e === 4 ? xi(n, t) : e === 5 ? Ln(n, t) : e === 6 && Et(n, t);
4300
+ function Mi(e, t, n) {
4301
+ e === 1 ? Ze.push(n.readString()) : e === 2 ? qe = n.readVarint() : e === 3 ? Xe = Math.pow(10, n.readVarint()) : e === 4 ? Si(n, t) : e === 5 ? Un(n, t) : e === 6 && kt(n, t);
4263
4302
  }
4264
- function xi(e, t) {
4265
- return t.type = "FeatureCollection", t.features = [], e.readMessage(Fi, t);
4303
+ function Si(e, t) {
4304
+ return t.type = "FeatureCollection", t.features = [], e.readMessage(Di, t);
4266
4305
  }
4267
- function Ln(e, t) {
4306
+ function Un(e, t) {
4268
4307
  t.type = "Feature";
4269
- var n = e.readMessage(Mi, t);
4308
+ var n = e.readMessage(Ni, t);
4270
4309
  return "geometry" in n || (n.geometry = null), n;
4271
4310
  }
4272
- function Et(e, t) {
4273
- return t.type = "Point", e.readMessage(Ti, t);
4311
+ function kt(e, t) {
4312
+ return t.type = "Point", e.readMessage(Ri, t);
4274
4313
  }
4275
- function Fi(e, t, n) {
4276
- e === 1 ? t.features.push(Ln(n, {})) : e === 13 ? ve.push(Rt(n)) : e === 15 && Ze(n, t);
4314
+ function Di(e, t, n) {
4315
+ e === 1 ? t.features.push(Un(n, {})) : e === 13 ? Fe.push(Ot(n)) : e === 15 && Qe(n, t);
4277
4316
  }
4278
- function Mi(e, t, n) {
4279
- e === 1 ? t.geometry = Et(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? ve.push(Rt(n)) : e === 14 ? t.properties = Ze(n, {}) : e === 15 && Ze(n, t);
4317
+ function Ni(e, t, n) {
4318
+ e === 1 ? t.geometry = kt(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? Fe.push(Ot(n)) : e === 14 ? t.properties = Qe(n, {}) : e === 15 && Qe(n, t);
4280
4319
  }
4281
- function Ti(e, t, n) {
4282
- e === 1 ? t.type = gi[n.readVarint()] : e === 2 ? U = n.readPackedVarint() : e === 3 ? Si(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Et(n, {}))) : e === 13 ? ve.push(Rt(n)) : e === 15 && Ze(n, t);
4320
+ function Ri(e, t, n) {
4321
+ e === 1 ? t.type = Fi[n.readVarint()] : e === 2 ? C = n.readPackedVarint() : e === 3 ? Ei(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(kt(n, {}))) : e === 13 ? Fe.push(Ot(n)) : e === 15 && Qe(n, t);
4283
4322
  }
4284
- function Si(e, t, n) {
4285
- n === "Point" ? e.coordinates = Di(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = gn(t) : n === "MultiLineString" ? e.coordinates = wn(t) : n === "Polygon" ? e.coordinates = wn(t, !0) : n === "MultiPolygon" && (e.coordinates = Ni(t));
4323
+ function Ei(e, t, n) {
4324
+ n === "Point" ? e.coordinates = ki(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = wn(t) : n === "MultiLineString" ? e.coordinates = vn(t) : n === "Polygon" ? e.coordinates = vn(t, !0) : n === "MultiPolygon" && (e.coordinates = Oi(t));
4286
4325
  }
4287
- function Rt(e) {
4326
+ function Ot(e) {
4288
4327
  for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
4289
4328
  var a = e.readVarint(), i = a >> 3;
4290
4329
  i === 1 ? n = e.readString() : i === 2 ? n = e.readDouble() : i === 3 ? n = e.readVarint() : i === 4 ? n = -e.readVarint() : i === 5 ? n = e.readBoolean() : i === 6 && (n = JSON.parse(e.readString()));
4291
4330
  }
4292
4331
  return n;
4293
4332
  }
4294
- function Ze(e, t) {
4295
- for (var n = e.readVarint() + e.pos; e.pos < n; ) t[$e[e.readVarint()]] = ve[e.readVarint()];
4296
- return ve = [], t;
4333
+ function Qe(e, t) {
4334
+ for (var n = e.readVarint() + e.pos; e.pos < n; ) t[Ze[e.readVarint()]] = Fe[e.readVarint()];
4335
+ return Fe = [], t;
4297
4336
  }
4298
- function Di(e) {
4299
- for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / qe);
4337
+ function ki(e) {
4338
+ for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / Xe);
4300
4339
  return n;
4301
4340
  }
4302
4341
  function be(e, t, n, a) {
4303
4342
  var i = 0, o = [], l, m, f = [];
4304
- for (m = 0; m < Ke; m++) f[m] = 0;
4343
+ for (m = 0; m < qe; m++) f[m] = 0;
4305
4344
  for (; n ? i < n : e.pos < t; ) {
4306
- for (l = [], m = 0; m < Ke; m++)
4307
- f[m] += e.readSVarint(), l[m] = f[m] / qe;
4345
+ for (l = [], m = 0; m < qe; m++)
4346
+ f[m] += e.readSVarint(), l[m] = f[m] / Xe;
4308
4347
  o.push(l), i++;
4309
4348
  }
4310
4349
  return a && o.push(o[0]), o;
4311
4350
  }
4312
- function gn(e) {
4351
+ function wn(e) {
4313
4352
  return be(e, e.readVarint() + e.pos);
4314
4353
  }
4315
- function wn(e, t) {
4354
+ function vn(e, t) {
4316
4355
  var n = e.readVarint() + e.pos;
4317
- if (!U) return [be(e, n, null, t)];
4318
- for (var a = [], i = 0; i < U.length; i++) a.push(be(e, n, U[i], t));
4319
- return U = null, a;
4356
+ if (!C) return [be(e, n, null, t)];
4357
+ for (var a = [], i = 0; i < C.length; i++) a.push(be(e, n, C[i], t));
4358
+ return C = null, a;
4320
4359
  }
4321
- function Ni(e) {
4360
+ function Oi(e) {
4322
4361
  var t = e.readVarint() + e.pos;
4323
- if (!U) return [[be(e, t, null, !0)]];
4324
- for (var n = [], a = 1, i = 0; i < U[0]; i++) {
4325
- for (var o = [], l = 0; l < U[a]; l++) o.push(be(e, t, U[a + 1 + l], !0));
4326
- a += U[a] + 1, n.push(o);
4362
+ if (!C) return [[be(e, t, null, !0)]];
4363
+ for (var n = [], a = 1, i = 0; i < C[0]; i++) {
4364
+ for (var o = [], l = 0; l < C[a]; l++) o.push(be(e, t, C[a + 1 + l], !0));
4365
+ a += C[a] + 1, n.push(o);
4327
4366
  }
4328
- return U = null, n;
4367
+ return C = null, n;
4329
4368
  }
4330
- var ki = _i, Ot = {};
4369
+ var Gi = xi, Gt = {};
4331
4370
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
4332
- Ot.read = function(e, t, n, a, i) {
4371
+ Gt.read = function(e, t, n, a, i) {
4333
4372
  var o, l, m = i * 8 - a - 1, f = (1 << m) - 1, d = f >> 1, c = -7, y = n ? i - 1 : 0, w = n ? -1 : 1, g = e[t + y];
4334
4373
  for (y += w, o = g & (1 << -c) - 1, g >>= -c, c += m; c > 0; o = o * 256 + e[t + y], y += w, c -= 8)
4335
4374
  ;
@@ -4344,15 +4383,15 @@ Ot.read = function(e, t, n, a, i) {
4344
4383
  }
4345
4384
  return (g ? -1 : 1) * l * Math.pow(2, o - a);
4346
4385
  };
4347
- Ot.write = function(e, t, n, a, i, o) {
4348
- var l, m, f, d = o * 8 - i - 1, c = (1 << d) - 1, y = c >> 1, w = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = a ? 0 : o - 1, M = a ? 1 : -1, T = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
4349
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, l = c) : (l = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -l)) < 1 && (l--, f *= 2), l + y >= 1 ? t += w / f : t += w * Math.pow(2, 1 - y), t * f >= 2 && (l++, f /= 2), l + y >= c ? (m = 0, l = c) : l + y >= 1 ? (m = (t * f - 1) * Math.pow(2, i), l = l + y) : (m = t * Math.pow(2, y - 1) * Math.pow(2, i), l = 0)); i >= 8; e[n + g] = m & 255, g += M, m /= 256, i -= 8)
4386
+ Gt.write = function(e, t, n, a, i, o) {
4387
+ var l, m, f, d = o * 8 - i - 1, c = (1 << d) - 1, y = c >> 1, w = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = a ? 0 : o - 1, T = a ? 1 : -1, M = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
4388
+ for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, l = c) : (l = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -l)) < 1 && (l--, f *= 2), l + y >= 1 ? t += w / f : t += w * Math.pow(2, 1 - y), t * f >= 2 && (l++, f /= 2), l + y >= c ? (m = 0, l = c) : l + y >= 1 ? (m = (t * f - 1) * Math.pow(2, i), l = l + y) : (m = t * Math.pow(2, y - 1) * Math.pow(2, i), l = 0)); i >= 8; e[n + g] = m & 255, g += T, m /= 256, i -= 8)
4350
4389
  ;
4351
- for (l = l << i | m, d += i; d > 0; e[n + g] = l & 255, g += M, l /= 256, d -= 8)
4390
+ for (l = l << i | m, d += i; d > 0; e[n + g] = l & 255, g += T, l /= 256, d -= 8)
4352
4391
  ;
4353
- e[n + g - M] |= T * 128;
4392
+ e[n + g - T] |= M * 128;
4354
4393
  };
4355
- var Ei = x, Ve = Ot;
4394
+ var bi = x, je = Gt;
4356
4395
  function x(e) {
4357
4396
  this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
4358
4397
  }
@@ -4360,7 +4399,7 @@ x.Varint = 0;
4360
4399
  x.Fixed64 = 1;
4361
4400
  x.Bytes = 2;
4362
4401
  x.Fixed32 = 5;
4363
- var St = 65536 * 65536, vn = 1 / St, Ri = 12, Gn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
4402
+ var Dt = 65536 * 65536, xn = 1 / Dt, Li = 12, An = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
4364
4403
  x.prototype = {
4365
4404
  destroy: function() {
4366
4405
  this.buf = null;
@@ -4377,33 +4416,33 @@ x.prototype = {
4377
4416
  return this.readFields(e, t, this.readVarint() + this.pos);
4378
4417
  },
4379
4418
  readFixed32: function() {
4380
- var e = Ye(this.buf, this.pos);
4419
+ var e = $e(this.buf, this.pos);
4381
4420
  return this.pos += 4, e;
4382
4421
  },
4383
4422
  readSFixed32: function() {
4384
- var e = Fn(this.buf, this.pos);
4423
+ var e = Tn(this.buf, this.pos);
4385
4424
  return this.pos += 4, e;
4386
4425
  },
4387
4426
  // 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
4388
4427
  readFixed64: function() {
4389
- var e = Ye(this.buf, this.pos) + Ye(this.buf, this.pos + 4) * St;
4428
+ var e = $e(this.buf, this.pos) + $e(this.buf, this.pos + 4) * Dt;
4390
4429
  return this.pos += 8, e;
4391
4430
  },
4392
4431
  readSFixed64: function() {
4393
- var e = Ye(this.buf, this.pos) + Fn(this.buf, this.pos + 4) * St;
4432
+ var e = $e(this.buf, this.pos) + Tn(this.buf, this.pos + 4) * Dt;
4394
4433
  return this.pos += 8, e;
4395
4434
  },
4396
4435
  readFloat: function() {
4397
- var e = Ve.read(this.buf, this.pos, !0, 23, 4);
4436
+ var e = je.read(this.buf, this.pos, !0, 23, 4);
4398
4437
  return this.pos += 4, e;
4399
4438
  },
4400
4439
  readDouble: function() {
4401
- var e = Ve.read(this.buf, this.pos, !0, 52, 8);
4440
+ var e = je.read(this.buf, this.pos, !0, 52, 8);
4402
4441
  return this.pos += 8, e;
4403
4442
  },
4404
4443
  readVarint: function(e) {
4405
4444
  var t = this.buf, n, a;
4406
- return a = t[this.pos++], n = a & 127, a < 128 || (a = t[this.pos++], n |= (a & 127) << 7, a < 128) || (a = t[this.pos++], n |= (a & 127) << 14, a < 128) || (a = t[this.pos++], n |= (a & 127) << 21, a < 128) ? n : (a = t[this.pos], n |= (a & 15) << 28, Oi(n, e, this));
4445
+ return a = t[this.pos++], n = a & 127, a < 128 || (a = t[this.pos++], n |= (a & 127) << 7, a < 128) || (a = t[this.pos++], n |= (a & 127) << 14, a < 128) || (a = t[this.pos++], n |= (a & 127) << 21, a < 128) ? n : (a = t[this.pos], n |= (a & 15) << 28, Ii(n, e, this));
4407
4446
  },
4408
4447
  readVarint64: function() {
4409
4448
  return this.readVarint(!0);
@@ -4417,7 +4456,7 @@ x.prototype = {
4417
4456
  },
4418
4457
  readString: function() {
4419
4458
  var e = this.readVarint() + this.pos, t = this.pos;
4420
- return this.pos = e, e - t >= Ri && Gn ? ji(this.buf, t, e) : zi(this.buf, t, e);
4459
+ return this.pos = e, e - t >= Li && An ? Zi(this.buf, t, e) : Wi(this.buf, t, e);
4421
4460
  },
4422
4461
  readBytes: function() {
4423
4462
  var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
@@ -4502,20 +4541,20 @@ x.prototype = {
4502
4541
  return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
4503
4542
  },
4504
4543
  writeFixed32: function(e) {
4505
- this.realloc(4), _e(this.buf, e, this.pos), this.pos += 4;
4544
+ this.realloc(4), ge(this.buf, e, this.pos), this.pos += 4;
4506
4545
  },
4507
4546
  writeSFixed32: function(e) {
4508
- this.realloc(4), _e(this.buf, e, this.pos), this.pos += 4;
4547
+ this.realloc(4), ge(this.buf, e, this.pos), this.pos += 4;
4509
4548
  },
4510
4549
  writeFixed64: function(e) {
4511
- this.realloc(8), _e(this.buf, e & -1, this.pos), _e(this.buf, Math.floor(e * vn), this.pos + 4), this.pos += 8;
4550
+ this.realloc(8), ge(this.buf, e & -1, this.pos), ge(this.buf, Math.floor(e * xn), this.pos + 4), this.pos += 8;
4512
4551
  },
4513
4552
  writeSFixed64: function(e) {
4514
- this.realloc(8), _e(this.buf, e & -1, this.pos), _e(this.buf, Math.floor(e * vn), this.pos + 4), this.pos += 8;
4553
+ this.realloc(8), ge(this.buf, e & -1, this.pos), ge(this.buf, Math.floor(e * xn), this.pos + 4), this.pos += 8;
4515
4554
  },
4516
4555
  writeVarint: function(e) {
4517
4556
  if (e = +e || 0, e > 268435455 || e < 0) {
4518
- bi(e, this);
4557
+ Ui(e, this);
4519
4558
  return;
4520
4559
  }
4521
4560
  this.realloc(4), this.buf[this.pos++] = e & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = e >>> 7 & 127)));
@@ -4529,15 +4568,15 @@ x.prototype = {
4529
4568
  writeString: function(e) {
4530
4569
  e = String(e), this.realloc(e.length * 4), this.pos++;
4531
4570
  var t = this.pos;
4532
- this.pos = $i(this.buf, e, this.pos);
4571
+ this.pos = qi(this.buf, e, this.pos);
4533
4572
  var n = this.pos - t;
4534
- n >= 128 && xn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
4573
+ n >= 128 && Fn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
4535
4574
  },
4536
4575
  writeFloat: function(e) {
4537
- this.realloc(4), Ve.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
4576
+ this.realloc(4), je.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
4538
4577
  },
4539
4578
  writeDouble: function(e) {
4540
- this.realloc(8), Ve.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
4579
+ this.realloc(8), je.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
4541
4580
  },
4542
4581
  writeBytes: function(e) {
4543
4582
  var t = e.length;
@@ -4549,37 +4588,37 @@ x.prototype = {
4549
4588
  var n = this.pos;
4550
4589
  e(t, this);
4551
4590
  var a = this.pos - n;
4552
- a >= 128 && xn(n, a, this), this.pos = n - 1, this.writeVarint(a), this.pos += a;
4591
+ a >= 128 && Fn(n, a, this), this.pos = n - 1, this.writeVarint(a), this.pos += a;
4553
4592
  },
4554
4593
  writeMessage: function(e, t, n) {
4555
4594
  this.writeTag(e, x.Bytes), this.writeRawMessage(t, n);
4556
4595
  },
4557
4596
  writePackedVarint: function(e, t) {
4558
- t.length && this.writeMessage(e, Ci, t);
4597
+ t.length && this.writeMessage(e, Pi, t);
4559
4598
  },
4560
4599
  writePackedSVarint: function(e, t) {
4561
- t.length && this.writeMessage(e, Ii, t);
4600
+ t.length && this.writeMessage(e, Bi, t);
4562
4601
  },
4563
4602
  writePackedBoolean: function(e, t) {
4564
- t.length && this.writeMessage(e, Ai, t);
4603
+ t.length && this.writeMessage(e, Yi, t);
4565
4604
  },
4566
4605
  writePackedFloat: function(e, t) {
4567
- t.length && this.writeMessage(e, Pi, t);
4606
+ t.length && this.writeMessage(e, Hi, t);
4568
4607
  },
4569
4608
  writePackedDouble: function(e, t) {
4570
- t.length && this.writeMessage(e, Ui, t);
4609
+ t.length && this.writeMessage(e, Vi, t);
4571
4610
  },
4572
4611
  writePackedFixed32: function(e, t) {
4573
- t.length && this.writeMessage(e, Bi, t);
4612
+ t.length && this.writeMessage(e, zi, t);
4574
4613
  },
4575
4614
  writePackedSFixed32: function(e, t) {
4576
- t.length && this.writeMessage(e, Hi, t);
4615
+ t.length && this.writeMessage(e, ji, t);
4577
4616
  },
4578
4617
  writePackedFixed64: function(e, t) {
4579
- t.length && this.writeMessage(e, Vi, t);
4618
+ t.length && this.writeMessage(e, $i, t);
4580
4619
  },
4581
4620
  writePackedSFixed64: function(e, t) {
4582
- t.length && this.writeMessage(e, Yi, t);
4621
+ t.length && this.writeMessage(e, Ki, t);
4583
4622
  },
4584
4623
  writeBytesField: function(e, t) {
4585
4624
  this.writeTag(e, x.Bytes), this.writeBytes(t);
@@ -4615,72 +4654,72 @@ x.prototype = {
4615
4654
  this.writeVarintField(e, !!t);
4616
4655
  }
4617
4656
  };
4618
- function Oi(e, t, n) {
4657
+ function Ii(e, t, n) {
4619
4658
  var a = n.buf, i, o;
4620
- if (o = a[n.pos++], i = (o & 112) >> 4, o < 128 || (o = a[n.pos++], i |= (o & 127) << 3, o < 128) || (o = a[n.pos++], i |= (o & 127) << 10, o < 128) || (o = a[n.pos++], i |= (o & 127) << 17, o < 128) || (o = a[n.pos++], i |= (o & 127) << 24, o < 128) || (o = a[n.pos++], i |= (o & 1) << 31, o < 128)) return ye(e, i, t);
4659
+ if (o = a[n.pos++], i = (o & 112) >> 4, o < 128 || (o = a[n.pos++], i |= (o & 127) << 3, o < 128) || (o = a[n.pos++], i |= (o & 127) << 10, o < 128) || (o = a[n.pos++], i |= (o & 127) << 17, o < 128) || (o = a[n.pos++], i |= (o & 127) << 24, o < 128) || (o = a[n.pos++], i |= (o & 1) << 31, o < 128)) return _e(e, i, t);
4621
4660
  throw new Error("Expected varint not more than 10 bytes");
4622
4661
  }
4623
4662
  function J(e) {
4624
4663
  return e.type === x.Bytes ? e.readVarint() + e.pos : e.pos + 1;
4625
4664
  }
4626
- function ye(e, t, n) {
4665
+ function _e(e, t, n) {
4627
4666
  return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
4628
4667
  }
4629
- function bi(e, t) {
4668
+ function Ui(e, t) {
4630
4669
  var n, a;
4631
4670
  if (e >= 0 ? (n = e % 4294967296 | 0, a = e / 4294967296 | 0) : (n = ~(-e % 4294967296), a = ~(-e / 4294967296), n ^ 4294967295 ? n = n + 1 | 0 : (n = 0, a = a + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
4632
4671
  throw new Error("Given varint doesn't fit into 10 bytes");
4633
- t.realloc(10), Li(n, a, t), Gi(a, t);
4672
+ t.realloc(10), Ai(n, a, t), Ci(a, t);
4634
4673
  }
4635
- function Li(e, t, n) {
4674
+ function Ai(e, t, n) {
4636
4675
  n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos] = e & 127;
4637
4676
  }
4638
- function Gi(e, t) {
4677
+ function Ci(e, t) {
4639
4678
  var n = (e & 7) << 4;
4640
4679
  t.buf[t.pos++] |= n | ((e >>>= 3) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127)))));
4641
4680
  }
4642
- function xn(e, t, n) {
4681
+ function Fn(e, t, n) {
4643
4682
  var a = t <= 16383 ? 1 : t <= 2097151 ? 2 : t <= 268435455 ? 3 : Math.floor(Math.log(t) / (Math.LN2 * 7));
4644
4683
  n.realloc(a);
4645
4684
  for (var i = n.pos - 1; i >= e; i--) n.buf[i + a] = n.buf[i];
4646
4685
  }
4647
- function Ci(e, t) {
4686
+ function Pi(e, t) {
4648
4687
  for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
4649
4688
  }
4650
- function Ii(e, t) {
4689
+ function Bi(e, t) {
4651
4690
  for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
4652
4691
  }
4653
- function Pi(e, t) {
4692
+ function Hi(e, t) {
4654
4693
  for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
4655
4694
  }
4656
- function Ui(e, t) {
4695
+ function Vi(e, t) {
4657
4696
  for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
4658
4697
  }
4659
- function Ai(e, t) {
4698
+ function Yi(e, t) {
4660
4699
  for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
4661
4700
  }
4662
- function Bi(e, t) {
4701
+ function zi(e, t) {
4663
4702
  for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
4664
4703
  }
4665
- function Hi(e, t) {
4704
+ function ji(e, t) {
4666
4705
  for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
4667
4706
  }
4668
- function Vi(e, t) {
4707
+ function $i(e, t) {
4669
4708
  for (var n = 0; n < e.length; n++) t.writeFixed64(e[n]);
4670
4709
  }
4671
- function Yi(e, t) {
4710
+ function Ki(e, t) {
4672
4711
  for (var n = 0; n < e.length; n++) t.writeSFixed64(e[n]);
4673
4712
  }
4674
- function Ye(e, t) {
4713
+ function $e(e, t) {
4675
4714
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + e[t + 3] * 16777216;
4676
4715
  }
4677
- function _e(e, t, n) {
4716
+ function ge(e, t, n) {
4678
4717
  e[n] = t, e[n + 1] = t >>> 8, e[n + 2] = t >>> 16, e[n + 3] = t >>> 24;
4679
4718
  }
4680
- function Fn(e, t) {
4719
+ function Tn(e, t) {
4681
4720
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
4682
4721
  }
4683
- function zi(e, t, n) {
4722
+ function Wi(e, t, n) {
4684
4723
  for (var a = "", i = t; i < n; ) {
4685
4724
  var o = e[i], l = null, m = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
4686
4725
  if (i + m > n) break;
@@ -4689,10 +4728,10 @@ function zi(e, t, n) {
4689
4728
  }
4690
4729
  return a;
4691
4730
  }
4692
- function ji(e, t, n) {
4693
- return Gn.decode(e.subarray(t, n));
4731
+ function Zi(e, t, n) {
4732
+ return An.decode(e.subarray(t, n));
4694
4733
  }
4695
- function $i(e, t, n) {
4734
+ function qi(e, t, n) {
4696
4735
  for (var a = 0, i, o; a < t.length; a++) {
4697
4736
  if (i = t.charCodeAt(a), i > 55295 && i < 57344)
4698
4737
  if (o)
@@ -4710,7 +4749,7 @@ function $i(e, t, n) {
4710
4749
  }
4711
4750
  return n;
4712
4751
  }
4713
- const Ki = /* @__PURE__ */ yi(Ei), yo = (e) => {
4752
+ const Qi = /* @__PURE__ */ vi(bi), vo = (e) => {
4714
4753
  var a, i;
4715
4754
  if (!e || !e.data)
4716
4755
  return {};
@@ -4722,16 +4761,16 @@ const Ki = /* @__PURE__ */ yi(Ei), yo = (e) => {
4722
4761
  }
4723
4762
  return t;
4724
4763
  };
4725
- function Zi(e, t = 0) {
4764
+ function Ji(e, t = 0) {
4726
4765
  let n = null;
4727
4766
  return (...a) => {
4728
4767
  n && clearTimeout(n), n = setTimeout(() => e(...a), t);
4729
4768
  };
4730
4769
  }
4731
- const Wi = { class: "legend" }, qi = {
4770
+ const Xi = { class: "legend" }, eo = {
4732
4771
  key: 0,
4733
4772
  class: "legend-title"
4734
- }, Ji = { class: "legend-text" }, Xi = /* @__PURE__ */ Dt({
4773
+ }, to = { class: "legend-text" }, no = /* @__PURE__ */ Nt({
4735
4774
  __name: "MapLegend",
4736
4775
  props: {
4737
4776
  metric: {},
@@ -4739,17 +4778,17 @@ const Wi = { class: "legend" }, qi = {
4739
4778
  data: {}
4740
4779
  },
4741
4780
  setup(e) {
4742
- return (t, n) => ($(), ae("div", Wi, [
4743
- e.metric ? ($(), ae("div", qi, we(e.title), 1)) : ke("", !0),
4744
- ($(!0), ae(Wr, null, qr(e.data, (a, i) => ($(), ae("div", {
4781
+ return (t, n) => (K(), ae("div", Xi, [
4782
+ e.metric ? (K(), ae("div", eo, xe(e.title), 1)) : Ee("", !0),
4783
+ (K(!0), ae(Jr, null, Xr(e.data, (a, i) => (K(), ae("div", {
4745
4784
  key: i,
4746
4785
  class: "legend-item"
4747
4786
  }, [
4748
4787
  X("span", {
4749
4788
  class: "legend-color",
4750
- style: Jr({ backgroundColor: a.color })
4789
+ style: ea({ backgroundColor: a.color })
4751
4790
  }, null, 4),
4752
- X("span", Ji, we(a.range), 1)
4791
+ X("span", to, xe(a.range), 1)
4753
4792
  ]))), 128))
4754
4793
  ]));
4755
4794
  }
@@ -4758,7 +4797,7 @@ const Wi = { class: "legend" }, qi = {
4758
4797
  for (const [a, i] of t)
4759
4798
  n[a] = i;
4760
4799
  return n;
4761
- }, Qi = /* @__PURE__ */ bt(Xi, [["__scopeId", "data-v-5f034736"]]), eo = { class: "map-tooltip" }, to = { class: "map-tooltip-text" }, no = { key: 0 }, ro = /* @__PURE__ */ Dt({
4800
+ }, ro = /* @__PURE__ */ bt(no, [["__scopeId", "data-v-5f034736"]]), ao = { class: "map-tooltip" }, io = { class: "map-tooltip-text" }, oo = { key: 0 }, so = /* @__PURE__ */ Nt({
4762
4801
  __name: "MapTooltip",
4763
4802
  props: {
4764
4803
  data: {},
@@ -4767,22 +4806,22 @@ const Wi = { class: "legend" }, qi = {
4767
4806
  left: {}
4768
4807
  },
4769
4808
  setup(e) {
4770
- return Xr((t) => ({
4809
+ return ta((t) => ({
4771
4810
  v75a0a274: t.left,
4772
4811
  v144f4294: t.top,
4773
4812
  v6e49e79e: t.data.color
4774
- })), (t, n) => ($(), ae("div", eo, [
4813
+ })), (t, n) => (K(), ae("div", ao, [
4775
4814
  n[0] || (n[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
4776
- X("div", to, [
4777
- X("div", null, we(e.data.label), 1),
4778
- e.showValue ? ($(), ae("span", no, we(e.data.value), 1)) : ke("", !0)
4815
+ X("div", io, [
4816
+ X("div", null, xe(e.data.label), 1),
4817
+ e.showValue ? (K(), ae("span", oo, xe(e.data.value), 1)) : Ee("", !0)
4779
4818
  ])
4780
4819
  ]));
4781
4820
  }
4782
- }), ao = /* @__PURE__ */ bt(ro, [["__scopeId", "data-v-6bea2641"]]), io = { class: "kong-ui-public-analytics-geo-map" }, oo = {
4821
+ }), lo = /* @__PURE__ */ bt(so, [["__scopeId", "data-v-6bea2641"]]), uo = { class: "kong-ui-public-analytics-geo-map" }, co = {
4783
4822
  key: 0,
4784
4823
  class: "no-location-overlay"
4785
- }, so = { class: "no-location-overlay-title" }, lo = { class: "no-location-overlay-description" }, uo = ["id"], co = /* @__PURE__ */ Dt({
4824
+ }, mo = { class: "no-location-overlay-title" }, fo = { class: "no-location-overlay-description" }, po = ["id"], ho = /* @__PURE__ */ Nt({
4786
4825
  __name: "AnalyticsGeoMap",
4787
4826
  props: {
4788
4827
  countryMetrics: {},
@@ -4797,11 +4836,11 @@ const Wi = { class: "legend" }, qi = {
4797
4836
  },
4798
4837
  emits: ["boundsChange"],
4799
4838
  setup(e, { emit: t }) {
4800
- const n = import("./countries-simple-geo-BFUDnSiE.js").then((_) => _.default), a = t, { i18n: i } = Re.useI18n(), { getColor: o, legendData: l } = Re.useLegendScale({
4801
- countryMetrics: Be(() => e.countryMetrics),
4802
- metric: Be(() => e.metric),
4803
- unit: Be(() => e.metricUnit)
4804
- }), { formatMetric: m } = Re.useMetricFormat({ unit: Be(() => e.metricUnit) }), f = Ne(), d = Qr(), c = Ne(), y = Ne(null), w = Ne({ left: "0px", top: "0px" }), g = Ne(!1), M = P(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), T = P(() => ({
4839
+ const n = import("./countries-simple-geo-BFUDnSiE.js").then((_) => _.default), a = t, { i18n: i } = Oe.useI18n(), { getColor: o, legendData: l } = Oe.useLegendScale({
4840
+ countryMetrics: He(() => e.countryMetrics),
4841
+ metric: He(() => e.metric),
4842
+ unit: He(() => e.metricUnit)
4843
+ }), { formatMetric: m } = Oe.useMetricFormat({ unit: He(() => e.metricUnit) }), f = Re(), d = na(), c = Re(), y = Re(null), w = Re({ left: "0px", top: "0px" }), g = Re(!1), T = A(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), M = A(() => ({
4805
4844
  "fill-color": [
4806
4845
  "match",
4807
4846
  [
@@ -4817,16 +4856,16 @@ const Wi = { class: "legend" }, qi = {
4817
4856
  ...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([_, F]) => [
4818
4857
  _,
4819
4858
  o(F)
4820
- ]) : [Ee, Ee],
4821
- Ee
4859
+ ]) : [ke, ke],
4860
+ ke
4822
4861
  // default color if no match
4823
4862
  ],
4824
4863
  "fill-opacity": 0.7
4825
- })), B = P(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), A = P(() => e.metric && i.t(`metrics.${e.metric}`) || ""), C = (_) => {
4864
+ })), H = A(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), B = A(() => e.metric && i.t(`metrics.${e.metric}`) || ""), I = (_) => {
4826
4865
  const F = _.flat(1);
4827
- return Array.isArray(F[0]) && Array.isArray(F[0][0]) ? C(F) : F;
4866
+ return Array.isArray(F[0]) && Array.isArray(F[0][0]) ? I(F) : F;
4828
4867
  }, ie = (_) => {
4829
- var S, k, ee, K, H, te, ne;
4868
+ var S, E, ee, W, V, te, ne;
4830
4869
  if (_ === "RU") {
4831
4870
  (S = c.value) == null || S.fitBounds([
4832
4871
  [20, 40],
@@ -4834,7 +4873,7 @@ const Wi = { class: "legend" }, qi = {
4834
4873
  ]);
4835
4874
  return;
4836
4875
  } else if (_ === "US") {
4837
- (k = c.value) == null || k.fitBounds([
4876
+ (E = c.value) == null || E.fitBounds([
4838
4877
  [-130, 20],
4839
4878
  [-60, 50]
4840
4879
  ]);
@@ -4846,26 +4885,26 @@ const Wi = { class: "legend" }, qi = {
4846
4885
  ]);
4847
4886
  return;
4848
4887
  } else if (_ === "NO") {
4849
- (K = c.value) == null || K.fitBounds([
4888
+ (W = c.value) == null || W.fitBounds([
4850
4889
  [4, 57],
4851
4890
  [32, 71]
4852
4891
  ]);
4853
4892
  return;
4854
4893
  }
4855
- const F = (H = y.value) == null ? void 0 : H.features.find((G) => {
4856
- var V, Y, z, v, j;
4857
- return (V = G.properties) != null && V.ISO_A2 ? ((Y = G.properties) == null ? void 0 : Y.ISO_A2) === _ : ((z = G.properties) == null ? void 0 : z.iso_a2) === "-99" ? ((v = G.properties) == null ? void 0 : v.iso_a2_eh) === _ : ((j = G.properties) == null ? void 0 : j.iso_a2) === _;
4894
+ const F = (V = y.value) == null ? void 0 : V.features.find((L) => {
4895
+ var Y, z, j, v, $;
4896
+ return (Y = L.properties) != null && Y.ISO_A2 ? ((z = L.properties) == null ? void 0 : z.ISO_A2) === _ : ((j = L.properties) == null ? void 0 : j.iso_a2) === "-99" ? ((v = L.properties) == null ? void 0 : v.iso_a2_eh) === _ : (($ = L.properties) == null ? void 0 : $.iso_a2) === _;
4858
4897
  });
4859
4898
  if (F) {
4860
- const G = (te = F.geometry) == null ? void 0 : te.coordinates;
4861
- if (!G) return;
4862
- const V = C(G), Y = V.map((Z) => Z[1]), z = V.map((Z) => Z[0]), v = Math.min(...Y), j = Math.max(...Y), de = Math.min(...z), O = Math.max(...z);
4899
+ const L = (te = F.geometry) == null ? void 0 : te.coordinates;
4900
+ if (!L) return;
4901
+ const Y = I(L), z = Y.map((Z) => Z[1]), j = Y.map((Z) => Z[0]), v = Math.min(...z), $ = Math.max(...z), me = Math.min(...j), O = Math.max(...j);
4863
4902
  (ne = c.value) == null || ne.fitBounds([
4864
- [de, v],
4865
- [O, j]
4903
+ [me, v],
4904
+ [O, $]
4866
4905
  ]);
4867
4906
  }
4868
- }, D = P(() => {
4907
+ }, N = A(() => {
4869
4908
  const _ = {
4870
4909
  container: d,
4871
4910
  style: { version: 8, sources: {}, layers: [] },
@@ -4884,7 +4923,7 @@ const Wi = { class: "legend" }, qi = {
4884
4923
  }
4885
4924
  };
4886
4925
  return e.bounds && (_.bounds = e.bounds), _;
4887
- }), ce = Zi(() => {
4926
+ }), de = Ji(() => {
4888
4927
  if (!c.value) return;
4889
4928
  const _ = c.value.getBounds(), F = _.getSouthWest(), S = _.getNorthEast();
4890
4929
  a("boundsChange", [
@@ -4892,58 +4931,58 @@ const Wi = { class: "legend" }, qi = {
4892
4931
  [S.lng, S.lat]
4893
4932
  ]);
4894
4933
  }, 300);
4895
- return ea(async () => {
4934
+ return ra(async () => {
4896
4935
  var _, F, S;
4897
4936
  try {
4898
- const k = await n, ee = await fetch(k), K = new Uint8Array(await ee.arrayBuffer()), H = ki(new Ki(K));
4899
- y.value = H, c.value = new ra(D.value), c.value.on("load", () => {
4900
- var te, ne, G, V, Y, z, v;
4937
+ const E = await n, ee = await fetch(E), W = new Uint8Array(await ee.arrayBuffer()), V = Gi(new Qi(W));
4938
+ y.value = V, c.value = new oa(N.value), c.value.on("load", () => {
4939
+ var te, ne, L, Y, z, j, v;
4901
4940
  (te = c.value) == null || te.addSource("countries", {
4902
4941
  type: "geojson",
4903
- data: H
4942
+ data: V
4904
4943
  }), (ne = c.value) == null || ne.addLayer({
4905
4944
  id: "countries-layer",
4906
4945
  type: "fill",
4907
4946
  source: "countries",
4908
- paint: T.value
4909
- }), (G = c.value) == null || G.addSource("lakes", {
4947
+ paint: M.value
4948
+ }), (L = c.value) == null || L.addSource("lakes", {
4910
4949
  type: "geojson",
4911
- data: hi
4912
- }), (V = c.value) == null || V.addLayer({
4950
+ data: wi
4951
+ }), (Y = c.value) == null || Y.addLayer({
4913
4952
  id: "lakes-layer",
4914
4953
  type: "fill",
4915
4954
  source: "lakes",
4916
4955
  paint: {
4917
4956
  "fill-color": "#FFFFFF"
4918
4957
  }
4919
- }), (Y = c.value) == null || Y.on("mousemove", "countries-layer", (j) => {
4958
+ }), (z = c.value) == null || z.on("mousemove", "countries-layer", ($) => {
4920
4959
  var O;
4921
- const de = (O = j.features) == null ? void 0 : O[0];
4922
- if (de) {
4923
- const { iso_a2: Z, iso_a2_eh: Le, ISO_A2: Je, admin: Xe } = de.properties, Qe = Je ?? Z === "-99" ? Le : Z, Te = e.countryMetrics[Qe];
4924
- Te !== void 0 && (f.value = {
4925
- label: Xe,
4926
- color: o(Te),
4927
- value: m(Te)
4960
+ const me = (O = $.features) == null ? void 0 : O[0];
4961
+ if (me) {
4962
+ const { iso_a2: Z, iso_a2_eh: Le, ISO_A2: et, admin: tt } = me.properties, nt = et ?? Z === "-99" ? Le : Z, Se = e.countryMetrics[nt];
4963
+ Se !== void 0 && (f.value = {
4964
+ label: tt,
4965
+ color: o(Se),
4966
+ value: m(Se)
4928
4967
  }, g.value = !0, w.value = {
4929
- left: `${j.point.x}px`,
4930
- top: `${j.point.y}px`
4968
+ left: `${$.point.x}px`,
4969
+ top: `${$.point.y}px`
4931
4970
  });
4932
4971
  }
4933
- }), (z = c.value) == null || z.on("mouseleave", "countries-layer", () => {
4972
+ }), (j = c.value) == null || j.on("mouseleave", "countries-layer", () => {
4934
4973
  g.value = !1;
4935
- }), (v = c.value) == null || v.on("move", ce), e.fitToCountry && ie(e.fitToCountry);
4974
+ }), (v = c.value) == null || v.on("move", de), e.fitToCountry && ie(e.fitToCountry);
4936
4975
  }), (_ = c.value) == null || _.dragRotate.disable(), (F = c.value) == null || F.keyboard.disable(), (S = c.value) == null || S.touchZoomRotate.disableRotation();
4937
- } catch (k) {
4938
- console.error(k);
4976
+ } catch (E) {
4977
+ console.error(E);
4939
4978
  }
4940
- }), dt(() => e.countryMetrics, () => {
4979
+ }), pt(() => e.countryMetrics, () => {
4941
4980
  var _;
4942
4981
  c.value && c.value.isStyleLoaded() && (c.value.getLayer("countries-layer") && c.value.removeLayer("countries-layer"), c.value.addLayer({
4943
4982
  id: "countries-layer",
4944
4983
  type: "fill",
4945
4984
  source: "countries",
4946
- paint: T.value
4985
+ paint: M.value
4947
4986
  }), c.value.removeLayer("lakes-layer"), (_ = c.value) == null || _.addLayer({
4948
4987
  id: "lakes-layer",
4949
4988
  type: "fill",
@@ -4952,58 +4991,58 @@ const Wi = { class: "legend" }, qi = {
4952
4991
  "fill-color": "#FFFFFF"
4953
4992
  }
4954
4993
  }));
4955
- }), dt(() => e.fitToCountry, (_) => {
4956
- var F, S, k;
4957
- c.value && _ ? ie(_) : !D.value.center && !D.value.zoom ? (F = c.value) == null || F.fitBounds([
4994
+ }), pt(() => e.fitToCountry, (_) => {
4995
+ var F, S, E;
4996
+ c.value && _ ? ie(_) : !N.value.center && !N.value.zoom ? (F = c.value) == null || F.fitBounds([
4958
4997
  [-180, -90],
4959
4998
  [180, 90]
4960
- ]) : (D.value.zoom && ((S = c.value) == null || S.setZoom(D.value.zoom)), D.value.center && ((k = c.value) == null || k.flyTo({ center: D.value.center })));
4961
- }), dt(() => e.bounds, (_, F) => {
4999
+ ]) : (N.value.zoom && ((S = c.value) == null || S.setZoom(N.value.zoom)), N.value.center && ((E = c.value) == null || E.flyTo({ center: N.value.center })));
5000
+ }), pt(() => e.bounds, (_, F) => {
4962
5001
  if (!_) return;
4963
- const S = _ == null ? void 0 : _.flat(), k = F == null ? void 0 : F.flat();
4964
- !(S && k && S.length === k.length && S.every((K, H) => Math.round(K * 100) / 100 === Math.round(k[H] * 100) / 100)) && c.value && c.value.fitBounds(_);
4965
- }), (_, F) => ($(), ae("div", io, [
4966
- M.value ? ($(), ae("div", oo, [
4967
- mt(_.$slots, "no-location-icon", {}, () => [
4968
- ta(ue(oa), {
4969
- color: ue(li),
4970
- size: ue(ui)
5002
+ const S = _ == null ? void 0 : _.flat(), E = F == null ? void 0 : F.flat();
5003
+ !(S && E && S.length === E.length && S.every((W, V) => Math.round(W * 100) / 100 === Math.round(E[V] * 100) / 100)) && c.value && c.value.fitBounds(_);
5004
+ }), (_, F) => (K(), ae("div", uo, [
5005
+ T.value ? (K(), ae("div", co, [
5006
+ ht(_.$slots, "no-location-icon", {}, () => [
5007
+ aa(ue(ua), {
5008
+ color: ue(mi),
5009
+ size: ue(fi)
4971
5010
  }, null, 8, ["color", "size"])
4972
5011
  ], !0),
4973
- X("div", so, [
4974
- mt(_.$slots, "no-location-title", {}, () => [
4975
- na(we(ue(i).t("no_location_data")), 1)
5012
+ X("div", mo, [
5013
+ ht(_.$slots, "no-location-title", {}, () => [
5014
+ ia(xe(ue(i).t("no_location_data")), 1)
4976
5015
  ], !0)
4977
5016
  ]),
4978
- X("div", lo, [
4979
- mt(_.$slots, "no-location-description", {}, () => [
4980
- X("p", null, we(ue(i).t("no_location_data_description")), 1)
5017
+ X("div", fo, [
5018
+ ht(_.$slots, "no-location-description", {}, () => [
5019
+ X("p", null, xe(ue(i).t("no_location_data_description")), 1)
4981
5020
  ], !0)
4982
5021
  ])
4983
- ])) : ke("", !0),
5022
+ ])) : Ee("", !0),
4984
5023
  X("div", {
4985
5024
  id: ue(d),
4986
5025
  class: "analytics-geo-map-container"
4987
- }, null, 8, uo),
4988
- B.value ? ($(), nn(Qi, {
5026
+ }, null, 8, po),
5027
+ H.value ? (K(), rn(ro, {
4989
5028
  key: 1,
4990
5029
  class: "legend-container",
4991
5030
  data: ue(l),
4992
5031
  metric: e.metric,
4993
- title: A.value
4994
- }, null, 8, ["data", "metric", "title"])) : ke("", !0),
4995
- g.value && f.value ? ($(), nn(ao, {
5032
+ title: B.value
5033
+ }, null, 8, ["data", "metric", "title"])) : Ee("", !0),
5034
+ g.value && f.value ? (K(), rn(lo, {
4996
5035
  key: 2,
4997
5036
  data: f.value,
4998
5037
  left: w.value.left,
4999
5038
  "show-value": e.showTooltipValue,
5000
5039
  top: w.value.top
5001
- }, null, 8, ["data", "left", "show-value", "top"])) : ke("", !0)
5040
+ }, null, 8, ["data", "left", "show-value", "top"])) : Ee("", !0)
5002
5041
  ]));
5003
5042
  }
5004
- }), _o = /* @__PURE__ */ bt(co, [["__scopeId", "data-v-4e998083"]]);
5043
+ }), xo = /* @__PURE__ */ bt(ho, [["__scopeId", "data-v-4e998083"]]);
5005
5044
  export {
5006
- _o as AnalyticsGeoMap,
5007
- Zi as debounce,
5008
- yo as exploreResultToCountryMetrics
5045
+ xo as AnalyticsGeoMap,
5046
+ Ji as debounce,
5047
+ vo as exploreResultToCountryMetrics
5009
5048
  };