@kong-ui-public/analytics-geo-map 1.4.44-pr.2822.d1d376c94.0 → 1.4.44

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 U, defineComponent as Dt, createElementBlock as ae, openBlock as $, createCommentVNode as ke, toDisplayString as we, Fragment as Wr, renderList as Zr, createElementVNode as X, normalizeStyle as qr, useCssVars as Jr, toRef as Be, ref as Ne, useId as Xr, onMounted as Qr, watch as dt, createBlock as nn, renderSlot as mt, createVNode as ea, unref as ue, createTextVNode as ta } from "vue";
2
- import { Map as na } from "maplibre-gl";
3
- import { createI18n as ra, i18nTComponent as aa } from "@kong-ui-public/i18n";
4
- import { AnalyticsIcon as ia } from "@kong/icons";
5
- const oa = {
1
+ import { computed as U, defineComponent as Dt, createElementBlock as ae, openBlock as $, createCommentVNode as Ne, toDisplayString as we, Fragment as Kr, renderList as Wr, createElementVNode as X, normalizeStyle as Zr, useCssVars as qr, toRef as Be, ref as De, useId as Jr, onMounted as Xr, watch as dt, createBlock as nn, renderSlot as mt, createVNode as Qr, unref as ue, createTextVNode as ea } from "vue";
2
+ import { Map as ta } from "maplibre-gl";
3
+ import { createI18n as na, i18nTComponent as ra } from "@kong-ui-public/i18n";
4
+ import { AnalyticsIcon as aa } from "@kong/icons";
5
+ const ia = {
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
- }, sa = {
11
+ }, oa = {
12
12
  request_count: "Request count",
13
13
  request_per_minute: "Requests per minute",
14
14
  response_latency_average: "Response latency (avg)",
@@ -33,27 +33,27 @@ const oa = {
33
33
  request_size_p95: "Request size (p95)",
34
34
  request_size_p50: "Request size (p50)",
35
35
  request_size_sum: "Request size (sum)"
36
- }, la = {
36
+ }, sa = {
37
37
  windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map",
38
38
  mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map",
39
39
  mobile_zoom_help_text: "Use two fingers to zoom the map"
40
- }, ua = "No data in the current time frame", ca = "Once there is traffic, it will display here", da = {
41
- metricUnits: oa,
42
- metrics: sa,
43
- cooperative_gestures: la,
44
- no_location_data: ua,
45
- no_location_data_description: ca
40
+ }, la = "No data in the current time frame", ua = "Once there is traffic, it will display here", ca = {
41
+ metricUnits: ia,
42
+ metrics: oa,
43
+ cooperative_gestures: sa,
44
+ no_location_data: la,
45
+ no_location_data_description: ua
46
46
  };
47
- function ma() {
48
- const e = ra("en-us", da);
47
+ function da() {
48
+ const e = na("en-us", ca);
49
49
  return {
50
50
  i18n: e,
51
- i18nT: aa(e)
51
+ i18nT: ra(e)
52
52
  // Translation component <i18n-t>
53
53
  };
54
54
  }
55
- var fa = Object.defineProperty, pa = (e, t, n) => t in e ? fa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, I = (e, t, n) => pa(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 || {});
56
- const ha = ["in", "not_in", "selector"], ya = ["empty", "not_empty"], _a = [
55
+ var ma = Object.defineProperty, fa = (e, t, n) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, P = (e, t, n) => fa(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 || {});
56
+ const pa = ["in", "not_in", "selector"], ha = ["empty", "not_empty"], ya = [
57
57
  "15m",
58
58
  "1h",
59
59
  "6h",
@@ -65,7 +65,7 @@ const ha = ["in", "not_in", "selector"], ya = ["empty", "not_empty"], _a = [
65
65
  "30d",
66
66
  "current_month",
67
67
  "previous_month"
68
- ], xe = (e) => e.filter((t) => t !== "time"), Mn = [
68
+ ], be = (e) => e.filter((t) => t !== "time"), Mn = [
69
69
  "api",
70
70
  "api_package",
71
71
  "api_product",
@@ -79,7 +79,7 @@ const ha = ["in", "not_in", "selector"], ya = ["empty", "not_empty"], _a = [
79
79
  "status_code",
80
80
  "status_code_grouped",
81
81
  "time"
82
- ], Tn = xe(Mn), Sn = [
82
+ ], Tn = be(Mn), _a = [
83
83
  ...Mn,
84
84
  "application",
85
85
  "consumer",
@@ -90,7 +90,7 @@ const ha = ["in", "not_in", "selector"], ya = ["empty", "not_empty"], _a = [
90
90
  "data_plane_node_version",
91
91
  "realm",
92
92
  "portal_api"
93
- ], Dn = xe(Sn), ga = [
93
+ ], Sn = be(_a), ga = [
94
94
  "control_plane",
95
95
  "control_plane_group",
96
96
  "gateway_service",
@@ -108,7 +108,7 @@ const ha = ["in", "not_in", "selector"], ya = ["empty", "not_empty"], _a = [
108
108
  "status_code",
109
109
  "status_code_grouped",
110
110
  "ai_plugin"
111
- ], Nn = xe(ga), wa = [
111
+ ], Dn = be(ga), wa = [
112
112
  "api",
113
113
  "api_package",
114
114
  "api_product",
@@ -144,7 +144,7 @@ const ha = ["in", "not_in", "selector"], ya = ["empty", "not_empty"], _a = [
144
144
  "upstream_status_code_grouped",
145
145
  "websocket"
146
146
  ];
147
- xe(wa);
147
+ be(wa);
148
148
  const va = [
149
149
  "ai_count",
150
150
  "latencies_response_ms",
@@ -156,16 +156,8 @@ const va = [
156
156
  "status_code",
157
157
  "upstream_status_code"
158
158
  ];
159
- xe(va);
160
- const xa = [
161
- ...Sn,
162
- "mcp_info",
163
- "mcp_session_id",
164
- "mcp_method",
165
- "mcp_tool_name",
166
- "mcp_error"
167
- ], Fa = xe(xa);
168
- new Set(Tn), new Set(Dn), new Set(Nn), new Set(Fa);
159
+ be(va);
160
+ new Set(Tn), new Set(Sn), new Set(Dn);
169
161
  const Nt = [
170
162
  { code: "AF", name: "Afghanistan" },
171
163
  { code: "AX", name: "Aland Islands" },
@@ -415,7 +407,7 @@ const Nt = [
415
407
  { code: "ZW", name: "Zimbabwe" }
416
408
  ];
417
409
  Nt.map((e) => e.code);
418
- const Ma = (e) => ({
410
+ const xa = (e) => ({
419
411
  type: "array",
420
412
  description: "A list of filters to apply to the query",
421
413
  items: {
@@ -430,7 +422,7 @@ const Ma = (e) => ({
430
422
  },
431
423
  operator: {
432
424
  type: "string",
433
- enum: ha
425
+ enum: pa
434
426
  },
435
427
  value: {
436
428
  type: "array",
@@ -456,7 +448,7 @@ const Ma = (e) => ({
456
448
  },
457
449
  operator: {
458
450
  type: "string",
459
- enum: ya
451
+ enum: ha
460
452
  }
461
453
  },
462
454
  required: [
@@ -468,35 +460,35 @@ const Ma = (e) => ({
468
460
  ]
469
461
  }
470
462
  });
471
- Ma([.../* @__PURE__ */ new Set([...Dn, ...Tn, ...Nn])]);
472
- let Ta = {};
473
- function Sa() {
474
- return Ta;
463
+ xa([.../* @__PURE__ */ new Set([...Sn, ...Tn, ...Dn])]);
464
+ let Fa = {};
465
+ function Ma() {
466
+ return Fa;
475
467
  }
476
- const Da = 60, Na = 3600, rn = Symbol.for("constructDateFrom");
477
- function Oe(e, t) {
468
+ const Ta = 60, Sa = 3600, rn = Symbol.for("constructDateFrom");
469
+ function Re(e, t) {
478
470
  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);
479
471
  }
480
- function Fe(e, t) {
481
- return Oe(t || e, e);
472
+ function xe(e, t) {
473
+ return Re(t || e, e);
482
474
  }
483
475
  function ft(e, t) {
484
- const n = Fe(e, void 0);
476
+ const n = xe(e, void 0);
485
477
  return n.setHours(0, 0, 0, 0), n;
486
478
  }
487
479
  function ze(e, t) {
488
480
  var n, a, i, o;
489
- 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;
481
+ const l = Ma(), 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 = xe(e, t == null ? void 0 : t.in), d = f.getDay(), c = (d < m ? 7 : 0) + d - m;
490
482
  return f.setDate(f.getDate() - c), f.setHours(0, 0, 0, 0), f;
491
483
  }
492
484
  function pt(e, t, n) {
493
- const a = Fe(e, void 0);
494
- return isNaN(t) ? Oe(e, NaN) : (a.setDate(a.getDate() + t), a);
485
+ const a = xe(e, void 0);
486
+ return isNaN(t) ? Re(e, NaN) : (a.setDate(a.getDate() + t), a);
495
487
  }
496
- function ka(e, t, n) {
497
- const a = Fe(e, void 0);
498
- if (isNaN(t)) return Oe(e, NaN);
499
- const i = a.getDate(), o = Oe(e, a.getTime());
488
+ function Da(e, t, n) {
489
+ const a = xe(e, void 0);
490
+ if (isNaN(t)) return Re(e, NaN);
491
+ const i = a.getDate(), o = Re(e, a.getTime());
500
492
  o.setMonth(a.getMonth() + t + 1, 0);
501
493
  const l = o.getDate();
502
494
  return i >= l ? o : (a.setFullYear(
@@ -506,28 +498,28 @@ function ka(e, t, n) {
506
498
  ), a);
507
499
  }
508
500
  function ge(e, t) {
509
- const n = Fe(e, void 0);
501
+ const n = xe(e, void 0);
510
502
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
511
503
  }
512
- function Ea(e, t) {
513
- const n = Fe(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = Oe(n, 0);
504
+ function Na(e, t) {
505
+ const n = xe(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = Re(n, 0);
514
506
  return o.setFullYear(a, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
515
507
  }
516
508
  function an(e) {
517
- return Math.trunc(e * Na);
509
+ return Math.trunc(e * Sa);
518
510
  }
519
- function Ra(e) {
520
- const t = e / Da;
511
+ function ka(e) {
512
+ const t = e / Ta;
521
513
  return Math.trunc(t);
522
514
  }
523
- function kn(e, t, n) {
524
- return ka(e, -1);
515
+ function Nn(e, t, n) {
516
+ return Da(e, -1);
525
517
  }
526
- function Oa(e, t) {
518
+ function Ea(e, t) {
527
519
  const n = Ia(t);
528
- return "formatToParts" in n ? La(n, e) : Ga(n, e);
520
+ return "formatToParts" in n ? Oa(n, e) : ba(n, e);
529
521
  }
530
- const ba = {
522
+ const Ra = {
531
523
  year: 0,
532
524
  month: 1,
533
525
  day: 2,
@@ -535,11 +527,11 @@ const ba = {
535
527
  minute: 4,
536
528
  second: 5
537
529
  };
538
- function La(e, t) {
530
+ function Oa(e, t) {
539
531
  try {
540
532
  const n = e.formatToParts(t), a = [];
541
533
  for (let i = 0; i < n.length; i++) {
542
- const o = ba[n[i].type];
534
+ const o = Ra[n[i].type];
543
535
  o !== void 0 && (a[o] = parseInt(n[i].value, 10));
544
536
  }
545
537
  return a;
@@ -549,7 +541,7 @@ function La(e, t) {
549
541
  throw n;
550
542
  }
551
543
  }
552
- function Ga(e, t) {
544
+ function ba(e, t) {
553
545
  const n = e.format(t), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
554
546
  return [
555
547
  parseInt(a[3], 10),
@@ -569,9 +561,9 @@ const ht = {}, on = new Intl.DateTimeFormat("en-US", {
569
561
  hour: "2-digit",
570
562
  minute: "2-digit",
571
563
  second: "2-digit"
572
- }).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";
564
+ }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), La = on === "06/25/2014, 00:00:00" || on === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
573
565
  function Ia(e) {
574
- return ht[e] || (ht[e] = Ca ? new Intl.DateTimeFormat("en-US", {
566
+ return ht[e] || (ht[e] = La ? new Intl.DateTimeFormat("en-US", {
575
567
  hourCycle: "h23",
576
568
  timeZone: e,
577
569
  year: "numeric",
@@ -595,7 +587,7 @@ function kt(e, t, n, a, i, o, l) {
595
587
  const m = /* @__PURE__ */ new Date(0);
596
588
  return m.setUTCFullYear(e, t, n), m.setUTCHours(a, i, o, l), m;
597
589
  }
598
- const sn = 36e5, Ua = 6e4, yt = {
590
+ const sn = 36e5, Ga = 6e4, yt = {
599
591
  timezoneZ: /^(Z)$/,
600
592
  timezoneHH: /^([+-]\d{2})$/,
601
593
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
@@ -612,12 +604,12 @@ function Ze(e, t, n) {
612
604
  if (a = yt.timezoneHHMM.exec(e), a) {
613
605
  i = parseInt(a[2], 10);
614
606
  const l = parseInt(a[3], 10);
615
- return ln(i, l) ? (o = Math.abs(i) * sn + l * Ua, a[1] === "+" ? -o : o) : NaN;
607
+ return ln(i, l) ? (o = Math.abs(i) * sn + l * Ga, a[1] === "+" ? -o : o) : NaN;
616
608
  }
617
- if (Ba(e)) {
609
+ if (Ca(e)) {
618
610
  t = new Date(t || Date.now());
619
611
  const l = n ? t : Pa(t), m = Mt(l, e);
620
- return -(n ? m : Aa(t, m, e));
612
+ return -(n ? m : Ua(t, m, e));
621
613
  }
622
614
  return NaN;
623
615
  }
@@ -625,12 +617,12 @@ function Pa(e) {
625
617
  return kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
626
618
  }
627
619
  function Mt(e, t) {
628
- const n = Oa(e, t), a = kt(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
620
+ const n = Ea(e, t), a = kt(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
629
621
  let i = e.getTime();
630
622
  const o = i % 1e3;
631
623
  return i -= o >= 0 ? o : 1e3 + o, a - i;
632
624
  }
633
- function Aa(e, t, n) {
625
+ function Ua(e, t, n) {
634
626
  let a = e.getTime() - t;
635
627
  const i = Mt(new Date(a), n);
636
628
  if (t === i)
@@ -643,7 +635,7 @@ function ln(e, t) {
643
635
  return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
644
636
  }
645
637
  const un = {};
646
- function Ba(e) {
638
+ function Ca(e) {
647
639
  if (un[e])
648
640
  return !0;
649
641
  try {
@@ -656,7 +648,7 @@ function cn(e) {
656
648
  const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
657
649
  return t.setUTCFullYear(e.getFullYear()), +e - +t;
658
650
  }
659
- const En = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, _t = 36e5, dn = 6e4, Ha = 2, R = {
651
+ const kn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, _t = 36e5, dn = 6e4, Aa = 2, R = {
660
652
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
661
653
  datePattern: /^([0-9W+-]+)(.*)/,
662
654
  // year tokens
@@ -688,14 +680,14 @@ const En = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
688
680
  HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
689
681
  HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
690
682
  // time zone tokens (to identify the presence of a tz)
691
- timeZone: En
683
+ timeZone: kn
692
684
  };
693
685
  function Tt(e, t = {}) {
694
686
  if (arguments.length < 1)
695
687
  throw new TypeError("1 argument required, but only " + arguments.length + " present");
696
688
  if (e === null)
697
689
  return /* @__PURE__ */ new Date(NaN);
698
- const n = t.additionalDigits == null ? Ha : Number(t.additionalDigits);
690
+ const n = t.additionalDigits == null ? Aa : Number(t.additionalDigits);
699
691
  if (n !== 2 && n !== 1 && n !== 0)
700
692
  throw new RangeError("additionalDigits must be 0, 1 or 2");
701
693
  if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
@@ -704,13 +696,13 @@ function Tt(e, t = {}) {
704
696
  return new Date(e);
705
697
  if (Object.prototype.toString.call(e) !== "[object String]")
706
698
  return /* @__PURE__ */ new Date(NaN);
707
- const a = Va(e), { year: i, restDateString: o } = Ya(a.date, n), l = za(o, i);
699
+ const a = Ba(e), { year: i, restDateString: o } = Ha(a.date, n), l = Va(o, i);
708
700
  if (l === null || isNaN(l.getTime()))
709
701
  return /* @__PURE__ */ new Date(NaN);
710
702
  if (l) {
711
703
  const m = l.getTime();
712
704
  let f = 0, d;
713
- if (a.time && (f = ja(a.time), f === null || isNaN(f)))
705
+ if (a.time && (f = Ya(a.time), f === null || isNaN(f)))
714
706
  return /* @__PURE__ */ new Date(NaN);
715
707
  if (a.timeZone || t.timeZone) {
716
708
  if (d = Ze(a.timeZone || t.timeZone, new Date(m + f)), isNaN(d))
@@ -721,7 +713,7 @@ function Tt(e, t = {}) {
721
713
  } else
722
714
  return /* @__PURE__ */ new Date(NaN);
723
715
  }
724
- function Va(e) {
716
+ function Ba(e) {
725
717
  const t = {};
726
718
  let n = R.dateTimePattern.exec(e), a;
727
719
  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) {
@@ -730,7 +722,7 @@ function Va(e) {
730
722
  }
731
723
  return t;
732
724
  }
733
- function Ya(e, t) {
725
+ function Ha(e, t) {
734
726
  if (e) {
735
727
  const n = R.YYY[t], a = R.YYYYY[t];
736
728
  let i = R.YYYY.exec(e) || a.exec(e);
@@ -753,7 +745,7 @@ function Ya(e, t) {
753
745
  year: null
754
746
  };
755
747
  }
756
- function za(e, t) {
748
+ function Va(e, t) {
757
749
  if (t === null)
758
750
  return null;
759
751
  let n, a, i;
@@ -765,7 +757,7 @@ function za(e, t) {
765
757
  if (o = R.DDD.exec(e), o) {
766
758
  n = /* @__PURE__ */ new Date(0);
767
759
  const l = parseInt(o[1], 10);
768
- return Wa(t, l) ? (n.setUTCFullYear(t, 0, l), n) : /* @__PURE__ */ new Date(NaN);
760
+ return $a(t, l) ? (n.setUTCFullYear(t, 0, l), n) : /* @__PURE__ */ new Date(NaN);
769
761
  }
770
762
  if (o = R.MMDD.exec(e), o) {
771
763
  n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1;
@@ -781,7 +773,7 @@ function za(e, t) {
781
773
  }
782
774
  return null;
783
775
  }
784
- function ja(e) {
776
+ function Ya(e) {
785
777
  let t, n, a = R.HH.exec(e);
786
778
  if (a)
787
779
  return t = parseFloat(a[1].replace(",", ".")), gt(t) ? t % 24 * _t : NaN;
@@ -801,8 +793,8 @@ function mn(e, t, n) {
801
793
  const i = a.getUTCDay() || 7, o = t * 7 + n + 1 - i;
802
794
  return a.setUTCDate(a.getUTCDate() + o), a;
803
795
  }
804
- 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];
805
- function Rn(e) {
796
+ const za = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ja = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
797
+ function En(e) {
806
798
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
807
799
  }
808
800
  function fn(e, t, n) {
@@ -811,16 +803,16 @@ function fn(e, t, n) {
811
803
  if (n != null) {
812
804
  if (n < 1)
813
805
  return !1;
814
- const a = Rn(e);
815
- if (a && n > Ka[t] || !a && n > $a[t])
806
+ const a = En(e);
807
+ if (a && n > ja[t] || !a && n > za[t])
816
808
  return !1;
817
809
  }
818
810
  return !0;
819
811
  }
820
- function Wa(e, t) {
812
+ function $a(e, t) {
821
813
  if (t < 1)
822
814
  return !1;
823
- const n = Rn(e);
815
+ const n = En(e);
824
816
  return !(n && t > 366 || !n && t > 365);
825
817
  }
826
818
  function pn(e, t) {
@@ -829,30 +821,30 @@ function pn(e, t) {
829
821
  function gt(e, t, n) {
830
822
  return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
831
823
  }
832
- function Za(e, t, n) {
824
+ function Ka(e, t, n) {
833
825
  e = Tt(e, n);
834
826
  const a = Ze(t, e, !0), i = new Date(e.getTime() - a), o = /* @__PURE__ */ new Date(0);
835
827
  return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
836
828
  }
837
- function qa(e, t, n) {
838
- if (typeof e == "string" && !e.match(En))
829
+ function Wa(e, t, n) {
830
+ if (typeof e == "string" && !e.match(kn))
839
831
  return Tt(e, { ...n, timeZone: t });
840
832
  e = Tt(e, n);
841
833
  const a = kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = Ze(t, new Date(a));
842
834
  return new Date(a + i);
843
835
  }
844
- function Ja(e, t) {
836
+ function Za(e, t) {
845
837
  return -Ze(e, t);
846
838
  }
847
839
  var He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
848
- function Xa(e) {
840
+ function qa(e) {
849
841
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
850
842
  }
851
843
  var je = { exports: {} };
852
844
  je.exports;
853
845
  (function(e, t) {
854
- 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 = {};
855
- 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;
846
+ 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]", G = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Fe = "[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]", I = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, v = {};
847
+ v[o] = v[l] = v[Fe] = 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[G] = v[ie] = v[K] = v[H] = v[te] = v[ne] = !0, v[d] = v[c] = v[D] = !1;
856
848
  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")(), W = t && !t.nodeType && t, Le = W && !0 && e && !e.nodeType && e, Je = Le && Le.exports === W;
857
849
  function Xe(r, s) {
858
850
  return r.set(s[0], s[1]), r;
@@ -860,12 +852,12 @@ je.exports;
860
852
  function Qe(r, s) {
861
853
  return r.add(s), r;
862
854
  }
863
- function Te(r, s) {
855
+ function Me(r, s) {
864
856
  for (var u = -1, p = r ? r.length : 0; ++u < p && s(r[u], u, r) !== !1; )
865
857
  ;
866
858
  return r;
867
859
  }
868
- function Gn(r, s) {
860
+ function Ln(r, s) {
869
861
  for (var u = -1, p = s.length, N = r.length; ++u < p; )
870
862
  r[N + u] = s[u];
871
863
  return r;
@@ -875,15 +867,15 @@ je.exports;
875
867
  u = s(u, r[N], N, r);
876
868
  return u;
877
869
  }
878
- function Cn(r, s) {
870
+ function In(r, s) {
879
871
  for (var u = -1, p = Array(r); ++u < r; )
880
872
  p[u] = s(u);
881
873
  return p;
882
874
  }
883
- function In(r, s) {
875
+ function Gn(r, s) {
884
876
  return r == null ? void 0 : r[s];
885
877
  }
886
- function Gt(r) {
878
+ function It(r) {
887
879
  var s = !1;
888
880
  if (r != null && typeof r.toString != "function")
889
881
  try {
@@ -892,7 +884,7 @@ je.exports;
892
884
  }
893
885
  return s;
894
886
  }
895
- function Ct(r) {
887
+ function Gt(r) {
896
888
  var s = -1, u = Array(r.size);
897
889
  return r.forEach(function(p, N) {
898
890
  u[++s] = [N, p];
@@ -903,18 +895,18 @@ je.exports;
903
895
  return r(s(u));
904
896
  };
905
897
  }
906
- function It(r) {
898
+ function Pt(r) {
907
899
  var s = -1, u = Array(r.size);
908
900
  return r.forEach(function(p) {
909
901
  u[++s] = p;
910
902
  }), u;
911
903
  }
912
- var Un = Array.prototype, Pn = Function.prototype, Ge = Object.prototype, tt = O["__core-js_shared__"], Ut = function() {
904
+ var Pn = Array.prototype, Un = Function.prototype, Ie = Object.prototype, tt = O["__core-js_shared__"], Ut = function() {
913
905
  var r = /[^.]+$/.exec(tt && tt.keys && tt.keys.IE_PROTO || "");
914
906
  return r ? "Symbol(src)_1." + r : "";
915
- }(), Pt = Pn.toString, re = Ge.hasOwnProperty, Ce = Ge.toString, An = RegExp(
916
- "^" + Pt.call(re).replace(G, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
917
- ), At = Je ? O.Buffer : void 0, Bt = O.Symbol, Ht = O.Uint8Array, Bn = et(Object.getPrototypeOf, Object), Hn = Object.create, Vn = Ge.propertyIsEnumerable, Yn = Un.splice, Vt = Object.getOwnPropertySymbols, zn = At ? At.isBuffer : void 0, jn = 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"), $n = le(nt), Kn = le(Se), Wn = le(rt), Zn = le(at), qn = le(it), Yt = Bt ? Bt.prototype : void 0, zt = Yt ? Yt.valueOf : void 0;
907
+ }(), Ct = Un.toString, re = Ie.hasOwnProperty, Ge = Ie.toString, Cn = RegExp(
908
+ "^" + Ct.call(re).replace(I, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
909
+ ), At = Je ? O.Buffer : void 0, Bt = O.Symbol, Ht = O.Uint8Array, An = et(Object.getPrototypeOf, Object), Bn = Object.create, Hn = Ie.propertyIsEnumerable, Vn = Pn.splice, Vt = Object.getOwnPropertySymbols, Yn = At ? At.isBuffer : void 0, zn = et(Object.keys, Object), nt = pe(O, "DataView"), Te = pe(O, "Map"), rt = pe(O, "Promise"), at = pe(O, "Set"), it = pe(O, "WeakMap"), Se = pe(Object, "create"), jn = le(nt), $n = le(Te), Kn = le(rt), Wn = le(at), Zn = le(it), Yt = Bt ? Bt.prototype : void 0, zt = Yt ? Yt.valueOf : void 0;
918
910
  function oe(r) {
919
911
  var s = -1, u = r ? r.length : 0;
920
912
  for (this.clear(); ++s < u; ) {
@@ -922,29 +914,29 @@ je.exports;
922
914
  this.set(p[0], p[1]);
923
915
  }
924
916
  }
925
- function Jn() {
926
- this.__data__ = De ? De(null) : {};
917
+ function qn() {
918
+ this.__data__ = Se ? Se(null) : {};
927
919
  }
928
- function Xn(r) {
920
+ function Jn(r) {
929
921
  return this.has(r) && delete this.__data__[r];
930
922
  }
931
- function Qn(r) {
923
+ function Xn(r) {
932
924
  var s = this.__data__;
933
- if (De) {
925
+ if (Se) {
934
926
  var u = s[r];
935
927
  return u === a ? void 0 : u;
936
928
  }
937
929
  return re.call(s, r) ? s[r] : void 0;
938
930
  }
939
- function er(r) {
931
+ function Qn(r) {
940
932
  var s = this.__data__;
941
- return De ? s[r] !== void 0 : re.call(s, r);
933
+ return Se ? s[r] !== void 0 : re.call(s, r);
942
934
  }
943
- function tr(r, s) {
935
+ function er(r, s) {
944
936
  var u = this.__data__;
945
- return u[r] = De && s === void 0 ? a : s, this;
937
+ return u[r] = Se && s === void 0 ? a : s, this;
946
938
  }
947
- oe.prototype.clear = Jn, oe.prototype.delete = Xn, oe.prototype.get = Qn, oe.prototype.has = er, oe.prototype.set = tr;
939
+ oe.prototype.clear = qn, oe.prototype.delete = Jn, oe.prototype.get = Xn, oe.prototype.has = Qn, oe.prototype.set = er;
948
940
  function Z(r) {
949
941
  var s = -1, u = r ? r.length : 0;
950
942
  for (this.clear(); ++s < u; ) {
@@ -952,28 +944,28 @@ je.exports;
952
944
  this.set(p[0], p[1]);
953
945
  }
954
946
  }
955
- function nr() {
947
+ function tr() {
956
948
  this.__data__ = [];
957
949
  }
958
- function rr(r) {
959
- var s = this.__data__, u = Ie(s, r);
950
+ function nr(r) {
951
+ var s = this.__data__, u = Pe(s, r);
960
952
  if (u < 0)
961
953
  return !1;
962
954
  var p = s.length - 1;
963
- return u == p ? s.pop() : Yn.call(s, u, 1), !0;
955
+ return u == p ? s.pop() : Vn.call(s, u, 1), !0;
964
956
  }
965
- function ar(r) {
966
- var s = this.__data__, u = Ie(s, r);
957
+ function rr(r) {
958
+ var s = this.__data__, u = Pe(s, r);
967
959
  return u < 0 ? void 0 : s[u][1];
968
960
  }
969
- function ir(r) {
970
- return Ie(this.__data__, r) > -1;
961
+ function ar(r) {
962
+ return Pe(this.__data__, r) > -1;
971
963
  }
972
- function or(r, s) {
973
- var u = this.__data__, p = Ie(u, r);
964
+ function ir(r, s) {
965
+ var u = this.__data__, p = Pe(u, r);
974
966
  return p < 0 ? u.push([r, s]) : u[p][1] = s, this;
975
967
  }
976
- Z.prototype.clear = nr, Z.prototype.delete = rr, Z.prototype.get = ar, Z.prototype.has = ir, Z.prototype.set = or;
968
+ Z.prototype.clear = tr, Z.prototype.delete = nr, Z.prototype.get = rr, Z.prototype.has = ar, Z.prototype.set = ir;
977
969
  function me(r) {
978
970
  var s = -1, u = r ? r.length : 0;
979
971
  for (this.clear(); ++s < u; ) {
@@ -981,94 +973,94 @@ je.exports;
981
973
  this.set(p[0], p[1]);
982
974
  }
983
975
  }
984
- function sr() {
976
+ function or() {
985
977
  this.__data__ = {
986
978
  hash: new oe(),
987
- map: new (Se || Z)(),
979
+ map: new (Te || Z)(),
988
980
  string: new oe()
989
981
  };
990
982
  }
991
- function lr(r) {
983
+ function sr(r) {
992
984
  return Ue(this, r).delete(r);
993
985
  }
994
- function ur(r) {
986
+ function lr(r) {
995
987
  return Ue(this, r).get(r);
996
988
  }
997
- function cr(r) {
989
+ function ur(r) {
998
990
  return Ue(this, r).has(r);
999
991
  }
1000
- function dr(r, s) {
992
+ function cr(r, s) {
1001
993
  return Ue(this, r).set(r, s), this;
1002
994
  }
1003
- me.prototype.clear = sr, me.prototype.delete = lr, me.prototype.get = ur, me.prototype.has = cr, me.prototype.set = dr;
995
+ me.prototype.clear = or, me.prototype.delete = sr, me.prototype.get = lr, me.prototype.has = ur, me.prototype.set = cr;
1004
996
  function fe(r) {
1005
997
  this.__data__ = new Z(r);
1006
998
  }
1007
- function mr() {
999
+ function dr() {
1008
1000
  this.__data__ = new Z();
1009
1001
  }
1010
- function fr(r) {
1002
+ function mr(r) {
1011
1003
  return this.__data__.delete(r);
1012
1004
  }
1013
- function pr(r) {
1005
+ function fr(r) {
1014
1006
  return this.__data__.get(r);
1015
1007
  }
1016
- function hr(r) {
1008
+ function pr(r) {
1017
1009
  return this.__data__.has(r);
1018
1010
  }
1019
- function yr(r, s) {
1011
+ function hr(r, s) {
1020
1012
  var u = this.__data__;
1021
1013
  if (u instanceof Z) {
1022
1014
  var p = u.__data__;
1023
- if (!Se || p.length < n - 1)
1015
+ if (!Te || p.length < n - 1)
1024
1016
  return p.push([r, s]), this;
1025
1017
  u = this.__data__ = new me(p);
1026
1018
  }
1027
1019
  return u.set(r, s), this;
1028
1020
  }
1029
- fe.prototype.clear = mr, fe.prototype.delete = fr, fe.prototype.get = pr, fe.prototype.has = hr, fe.prototype.set = yr;
1030
- function _r(r, s) {
1031
- var u = lt(r) || Hr(r) ? Cn(r.length, String) : [], p = u.length, N = !!p;
1021
+ fe.prototype.clear = dr, fe.prototype.delete = mr, fe.prototype.get = fr, fe.prototype.has = pr, fe.prototype.set = hr;
1022
+ function yr(r, s) {
1023
+ var u = lt(r) || Br(r) ? In(r.length, String) : [], p = u.length, N = !!p;
1032
1024
  for (var b in r)
1033
- re.call(r, b) && !(N && (b == "length" || Ur(b, p))) && u.push(b);
1025
+ re.call(r, b) && !(N && (b == "length" || Pr(b, p))) && u.push(b);
1034
1026
  return u;
1035
1027
  }
1036
1028
  function jt(r, s, u) {
1037
1029
  var p = r[s];
1038
1030
  (!(re.call(r, s) && Zt(p, u)) || u === void 0 && !(s in r)) && (r[s] = u);
1039
1031
  }
1040
- function Ie(r, s) {
1032
+ function Pe(r, s) {
1041
1033
  for (var u = r.length; u--; )
1042
1034
  if (Zt(r[u][0], s))
1043
1035
  return u;
1044
1036
  return -1;
1045
1037
  }
1046
- function gr(r, s) {
1038
+ function _r(r, s) {
1047
1039
  return r && $t(s, ut(s), r);
1048
1040
  }
1049
1041
  function ot(r, s, u, p, N, b, q) {
1050
1042
  var L;
1051
1043
  if (p && (L = b ? p(r, N, b, q) : p(r)), L !== void 0)
1052
1044
  return L;
1053
- if (!Pe(r))
1045
+ if (!Ce(r))
1054
1046
  return r;
1055
1047
  var Xt = lt(r);
1056
1048
  if (Xt) {
1057
- if (L = Gr(r), !s)
1058
- return Or(r, L);
1049
+ if (L = Lr(r), !s)
1050
+ return Rr(r, L);
1059
1051
  } else {
1060
1052
  var he = se(r), Qt = he == c || he == y;
1061
- if (Yr(r))
1062
- return Tr(r, s);
1053
+ if (Vr(r))
1054
+ return Mr(r, s);
1063
1055
  if (he == M || he == o || Qt && !b) {
1064
- if (Gt(r))
1056
+ if (It(r))
1065
1057
  return b ? r : {};
1066
- if (L = Cr(Qt ? {} : r), !s)
1067
- return br(r, gr(L, r));
1058
+ if (L = Ir(Qt ? {} : r), !s)
1059
+ return Or(r, _r(L, r));
1068
1060
  } else {
1069
1061
  if (!v[he])
1070
1062
  return b ? r : {};
1071
- L = Ir(r, he, ot, s);
1063
+ L = Gr(r, he, ot, s);
1072
1064
  }
1073
1065
  }
1074
1066
  q || (q = new fe());
@@ -1076,36 +1068,36 @@ je.exports;
1076
1068
  if (en)
1077
1069
  return en;
1078
1070
  if (q.set(r, L), !Xt)
1079
- var tn = u ? Lr(r) : ut(r);
1080
- return Te(tn || r, function(ct, Ae) {
1071
+ var tn = u ? br(r) : ut(r);
1072
+ return Me(tn || r, function(ct, Ae) {
1081
1073
  tn && (Ae = ct, ct = r[Ae]), jt(L, Ae, ot(ct, s, u, p, Ae, r, q));
1082
1074
  }), L;
1083
1075
  }
1084
- function wr(r) {
1085
- return Pe(r) ? Hn(r) : {};
1076
+ function gr(r) {
1077
+ return Ce(r) ? Bn(r) : {};
1086
1078
  }
1087
- function vr(r, s, u) {
1079
+ function wr(r, s, u) {
1088
1080
  var p = s(r);
1089
- return lt(r) ? p : Gn(p, u(r));
1081
+ return lt(r) ? p : Ln(p, u(r));
1090
1082
  }
1091
- function xr(r) {
1092
- return Ce.call(r);
1083
+ function vr(r) {
1084
+ return Ge.call(r);
1093
1085
  }
1094
- function Fr(r) {
1095
- if (!Pe(r) || Ar(r))
1086
+ function xr(r) {
1087
+ if (!Ce(r) || Cr(r))
1096
1088
  return !1;
1097
- var s = Jt(r) || Gt(r) ? An : Y;
1089
+ var s = Jt(r) || It(r) ? Cn : Y;
1098
1090
  return s.test(le(r));
1099
1091
  }
1100
- function Mr(r) {
1092
+ function Fr(r) {
1101
1093
  if (!Wt(r))
1102
- return jn(r);
1094
+ return zn(r);
1103
1095
  var s = [];
1104
1096
  for (var u in Object(r))
1105
1097
  re.call(r, u) && u != "constructor" && s.push(u);
1106
1098
  return s;
1107
1099
  }
1108
- function Tr(r, s) {
1100
+ function Mr(r, s) {
1109
1101
  if (s)
1110
1102
  return r.slice();
1111
1103
  var u = new r.constructor(r.length);
@@ -1115,30 +1107,30 @@ je.exports;
1115
1107
  var s = new r.constructor(r.byteLength);
1116
1108
  return new Ht(s).set(new Ht(r)), s;
1117
1109
  }
1118
- function Sr(r, s) {
1110
+ function Tr(r, s) {
1119
1111
  var u = s ? st(r.buffer) : r.buffer;
1120
1112
  return new r.constructor(u, r.byteOffset, r.byteLength);
1121
1113
  }
1122
- function Dr(r, s, u) {
1123
- var p = s ? u(Ct(r), !0) : Ct(r);
1114
+ function Sr(r, s, u) {
1115
+ var p = s ? u(Gt(r), !0) : Gt(r);
1124
1116
  return Lt(p, Xe, new r.constructor());
1125
1117
  }
1126
- function Nr(r) {
1118
+ function Dr(r) {
1127
1119
  var s = new r.constructor(r.source, V.exec(r));
1128
1120
  return s.lastIndex = r.lastIndex, s;
1129
1121
  }
1130
- function kr(r, s, u) {
1131
- var p = s ? u(It(r), !0) : It(r);
1122
+ function Nr(r, s, u) {
1123
+ var p = s ? u(Pt(r), !0) : Pt(r);
1132
1124
  return Lt(p, Qe, new r.constructor());
1133
1125
  }
1134
- function Er(r) {
1126
+ function kr(r) {
1135
1127
  return zt ? Object(zt.call(r)) : {};
1136
1128
  }
1137
- function Rr(r, s) {
1129
+ function Er(r, s) {
1138
1130
  var u = s ? st(r.buffer) : r.buffer;
1139
1131
  return new r.constructor(u, r.byteOffset, r.length);
1140
1132
  }
1141
- function Or(r, s) {
1133
+ function Rr(r, s) {
1142
1134
  var u = -1, p = r.length;
1143
1135
  for (s || (s = Array(p)); ++u < p; )
1144
1136
  s[u] = r[u];
@@ -1152,55 +1144,55 @@ je.exports;
1152
1144
  }
1153
1145
  return u;
1154
1146
  }
1155
- function br(r, s) {
1147
+ function Or(r, s) {
1156
1148
  return $t(r, Kt(r), s);
1157
1149
  }
1158
- function Lr(r) {
1159
- return vr(r, ut, Kt);
1150
+ function br(r) {
1151
+ return wr(r, ut, Kt);
1160
1152
  }
1161
1153
  function Ue(r, s) {
1162
1154
  var u = r.__data__;
1163
- return Pr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
1155
+ return Ur(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
1164
1156
  }
1165
1157
  function pe(r, s) {
1166
- var u = In(r, s);
1167
- return Fr(u) ? u : void 0;
1158
+ var u = Gn(r, s);
1159
+ return xr(u) ? u : void 0;
1168
1160
  }
1169
- var Kt = Vt ? et(Vt, Object) : $r, se = xr;
1170
- (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) {
1171
- var s = Ce.call(r), u = s == M ? r.constructor : void 0, p = u ? le(u) : void 0;
1161
+ var Kt = Vt ? et(Vt, Object) : jr, se = vr;
1162
+ (nt && se(new nt(new ArrayBuffer(1))) != ce || Te && se(new Te()) != w || rt && se(rt.resolve()) != T || at && se(new at()) != A || it && se(new it()) != D) && (se = function(r) {
1163
+ var s = Ge.call(r), u = s == M ? r.constructor : void 0, p = u ? le(u) : void 0;
1172
1164
  if (p)
1173
1165
  switch (p) {
1174
- case $n:
1166
+ case jn:
1175
1167
  return ce;
1176
- case Kn:
1168
+ case $n:
1177
1169
  return w;
1178
- case Wn:
1170
+ case Kn:
1179
1171
  return T;
1180
- case Zn:
1172
+ case Wn:
1181
1173
  return A;
1182
- case qn:
1174
+ case Zn:
1183
1175
  return D;
1184
1176
  }
1185
1177
  return s;
1186
1178
  });
1187
- function Gr(r) {
1179
+ function Lr(r) {
1188
1180
  var s = r.length, u = r.constructor(s);
1189
1181
  return s && typeof r[0] == "string" && re.call(r, "index") && (u.index = r.index, u.input = r.input), u;
1190
1182
  }
1191
- function Cr(r) {
1192
- return typeof r.constructor == "function" && !Wt(r) ? wr(Bn(r)) : {};
1183
+ function Ir(r) {
1184
+ return typeof r.constructor == "function" && !Wt(r) ? gr(An(r)) : {};
1193
1185
  }
1194
- function Ir(r, s, u, p) {
1186
+ function Gr(r, s, u, p) {
1195
1187
  var N = r.constructor;
1196
1188
  switch (s) {
1197
- case Me:
1189
+ case Fe:
1198
1190
  return st(r);
1199
1191
  case m:
1200
1192
  case f:
1201
1193
  return new N(+r);
1202
1194
  case ce:
1203
- return Sr(r, p);
1195
+ return Tr(r, p);
1204
1196
  case _:
1205
1197
  case F:
1206
1198
  case S:
@@ -1210,38 +1202,38 @@ je.exports;
1210
1202
  case H:
1211
1203
  case te:
1212
1204
  case ne:
1213
- return Rr(r, p);
1205
+ return Er(r, p);
1214
1206
  case w:
1215
- return Dr(r, p, u);
1207
+ return Sr(r, p, u);
1216
1208
  case g:
1217
- case C:
1209
+ case G:
1218
1210
  return new N(r);
1219
1211
  case B:
1220
- return Nr(r);
1212
+ return Dr(r);
1221
1213
  case A:
1222
- return kr(r, p, u);
1214
+ return Nr(r, p, u);
1223
1215
  case ie:
1224
- return Er(r);
1216
+ return kr(r);
1225
1217
  }
1226
1218
  }
1227
- function Ur(r, s) {
1219
+ function Pr(r, s) {
1228
1220
  return s = s ?? i, !!s && (typeof r == "number" || z.test(r)) && r > -1 && r % 1 == 0 && r < s;
1229
1221
  }
1230
- function Pr(r) {
1222
+ function Ur(r) {
1231
1223
  var s = typeof r;
1232
1224
  return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
1233
1225
  }
1234
- function Ar(r) {
1226
+ function Cr(r) {
1235
1227
  return !!Ut && Ut in r;
1236
1228
  }
1237
1229
  function Wt(r) {
1238
- var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ge;
1230
+ var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ie;
1239
1231
  return r === u;
1240
1232
  }
1241
1233
  function le(r) {
1242
1234
  if (r != null) {
1243
1235
  try {
1244
- return Pt.call(r);
1236
+ return Ct.call(r);
1245
1237
  } catch {
1246
1238
  }
1247
1239
  try {
@@ -1251,53 +1243,53 @@ je.exports;
1251
1243
  }
1252
1244
  return "";
1253
1245
  }
1254
- function Br(r) {
1246
+ function Ar(r) {
1255
1247
  return ot(r, !0, !0);
1256
1248
  }
1257
1249
  function Zt(r, s) {
1258
1250
  return r === s || r !== r && s !== s;
1259
1251
  }
1260
- function Hr(r) {
1261
- return Vr(r) && re.call(r, "callee") && (!Vn.call(r, "callee") || Ce.call(r) == o);
1252
+ function Br(r) {
1253
+ return Hr(r) && re.call(r, "callee") && (!Hn.call(r, "callee") || Ge.call(r) == o);
1262
1254
  }
1263
1255
  var lt = Array.isArray;
1264
1256
  function qt(r) {
1265
- return r != null && zr(r.length) && !Jt(r);
1257
+ return r != null && Yr(r.length) && !Jt(r);
1266
1258
  }
1267
- function Vr(r) {
1268
- return jr(r) && qt(r);
1259
+ function Hr(r) {
1260
+ return zr(r) && qt(r);
1269
1261
  }
1270
- var Yr = zn || Kr;
1262
+ var Vr = Yn || $r;
1271
1263
  function Jt(r) {
1272
- var s = Pe(r) ? Ce.call(r) : "";
1264
+ var s = Ce(r) ? Ge.call(r) : "";
1273
1265
  return s == c || s == y;
1274
1266
  }
1275
- function zr(r) {
1267
+ function Yr(r) {
1276
1268
  return typeof r == "number" && r > -1 && r % 1 == 0 && r <= i;
1277
1269
  }
1278
- function Pe(r) {
1270
+ function Ce(r) {
1279
1271
  var s = typeof r;
1280
1272
  return !!r && (s == "object" || s == "function");
1281
1273
  }
1282
- function jr(r) {
1274
+ function zr(r) {
1283
1275
  return !!r && typeof r == "object";
1284
1276
  }
1285
1277
  function ut(r) {
1286
- return qt(r) ? _r(r) : Mr(r);
1278
+ return qt(r) ? yr(r) : Fr(r);
1287
1279
  }
1288
- function $r() {
1280
+ function jr() {
1289
1281
  return [];
1290
1282
  }
1291
- function Kr() {
1283
+ function $r() {
1292
1284
  return !1;
1293
1285
  }
1294
- e.exports = Br;
1286
+ e.exports = Ar;
1295
1287
  })(je, je.exports);
1296
1288
  je.exports;
1297
- const Q = (e, t) => new Date(e.getTime() - Ja(t, e));
1289
+ const Q = (e, t) => new Date(e.getTime() - Za(t, e));
1298
1290
  class E {
1299
1291
  constructor(t) {
1300
- 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;
1292
+ P(this, "timeframeText"), P(this, "key"), P(this, "display"), P(this, "timeframeLength"), P(this, "allowedTiers"), P(this, "defaultResponseGranularity"), P(this, "dataGranularity"), P(this, "isRelative"), P(this, "fineGrainedDefaultGranularity"), P(this, "_startCustom"), P(this, "_endCustom"), P(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;
1301
1293
  }
1302
1294
  // rawEnd does not consider granularity and should not be used directly in queries.
1303
1295
  // Use `new QueryTime(timeframe, granularity?).queryEndSeconds()` instead.
@@ -1334,7 +1326,7 @@ class E {
1334
1326
  end: this.rawEnd(),
1335
1327
  tz: t
1336
1328
  };
1337
- if (_a.includes(this.key))
1329
+ if (ya.includes(this.key))
1338
1330
  return {
1339
1331
  type: "relative",
1340
1332
  // Safe assertion; we just checked that key is a member of the union.
@@ -1346,11 +1338,11 @@ class E {
1346
1338
  tzAdjustedDate(t) {
1347
1339
  if (!t)
1348
1340
  return /* @__PURE__ */ new Date();
1349
- const n = qa(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
1350
- return Za(n, t);
1341
+ const n = Wa(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
1342
+ return Ka(n, t);
1351
1343
  }
1352
1344
  }
1353
- class Qa extends E {
1345
+ class Ja extends E {
1354
1346
  rawStart(t) {
1355
1347
  let n = ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1356
1348
  return t && (n = Q(n, t)), n;
@@ -1359,7 +1351,7 @@ class Qa extends E {
1359
1351
  return 60 * 60 * 24 * 7;
1360
1352
  }
1361
1353
  }
1362
- class ei extends E {
1354
+ class Xa extends E {
1363
1355
  rawStart(t) {
1364
1356
  let n = ge(this.tzAdjustedDate(t));
1365
1357
  return t && (n = Q(n, t)), n;
@@ -1368,7 +1360,7 @@ class ei extends E {
1368
1360
  return 60 * 60 * 24 * 31;
1369
1361
  }
1370
1362
  }
1371
- class ti extends E {
1363
+ class Qa extends E {
1372
1364
  rawStart(t) {
1373
1365
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
1374
1366
  return t && (n = Q(n, t)), n;
@@ -1377,7 +1369,7 @@ class ti extends E {
1377
1369
  return 60 * 60 * 24 * 366;
1378
1370
  }
1379
1371
  }
1380
- class ni extends E {
1372
+ class ei extends E {
1381
1373
  rawEnd(t) {
1382
1374
  let n = ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1383
1375
  return t && (n = Q(n, t)), n;
@@ -1390,17 +1382,17 @@ class ni extends E {
1390
1382
  return t && (a = Q(a, t)), a;
1391
1383
  }
1392
1384
  }
1393
- class ri extends E {
1385
+ class ti extends E {
1394
1386
  rawEnd(t) {
1395
1387
  let n = ge(this.tzAdjustedDate(t));
1396
1388
  return t && (n = Q(n, t)), n;
1397
1389
  }
1398
1390
  rawStart(t) {
1399
- let n = ge(kn(this.tzAdjustedDate(t)));
1391
+ let n = ge(Nn(this.tzAdjustedDate(t)));
1400
1392
  return t && (n = Q(n, t)), n;
1401
1393
  }
1402
1394
  }
1403
- class ai extends E {
1395
+ class ni extends E {
1404
1396
  rawEnd(t) {
1405
1397
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
1406
1398
  return t && (n = Q(n, t)), n;
@@ -1520,7 +1512,7 @@ h.FIFTEEN_MIN, new E({
1520
1512
  fineGrainedDefaultGranularity: "daily",
1521
1513
  allowedTiers: ["trial", "plus", "enterprise"],
1522
1514
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1523
- }), h.CURRENT_WEEK, new Qa({
1515
+ }), h.CURRENT_WEEK, new Ja({
1524
1516
  key: h.CURRENT_WEEK,
1525
1517
  display: "This week",
1526
1518
  timeframeText: "Week",
@@ -1534,7 +1526,7 @@ h.FIFTEEN_MIN, new E({
1534
1526
  fineGrainedDefaultGranularity: "twoHourly",
1535
1527
  allowedTiers: ["plus", "enterprise"],
1536
1528
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1537
- }), h.CURRENT_MONTH, new ei({
1529
+ }), h.CURRENT_MONTH, new Xa({
1538
1530
  key: h.CURRENT_MONTH,
1539
1531
  display: "This month",
1540
1532
  timeframeText: "Month",
@@ -1546,7 +1538,7 @@ h.FIFTEEN_MIN, new E({
1546
1538
  dataGranularity: "daily",
1547
1539
  isRelative: !1,
1548
1540
  allowedTiers: ["plus", "enterprise"]
1549
- }), h.CURRENT_YEAR, new ti({
1541
+ }), h.CURRENT_YEAR, new Qa({
1550
1542
  key: h.CURRENT_YEAR,
1551
1543
  display: "This year",
1552
1544
  timeframeText: "Year",
@@ -1558,7 +1550,7 @@ h.FIFTEEN_MIN, new E({
1558
1550
  dataGranularity: "daily",
1559
1551
  isRelative: !1,
1560
1552
  allowedTiers: ["plus", "enterprise"]
1561
- }), h.PREVIOUS_WEEK, new ni({
1553
+ }), h.PREVIOUS_WEEK, new ei({
1562
1554
  key: h.PREVIOUS_WEEK,
1563
1555
  display: "Previous week",
1564
1556
  timeframeText: "Week",
@@ -1569,20 +1561,20 @@ h.FIFTEEN_MIN, new E({
1569
1561
  fineGrainedDefaultGranularity: "twoHourly",
1570
1562
  allowedTiers: ["plus", "enterprise"],
1571
1563
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1572
- }), h.PREVIOUS_MONTH, new ri({
1564
+ }), h.PREVIOUS_MONTH, new ti({
1573
1565
  key: h.PREVIOUS_MONTH,
1574
1566
  display: "Previous month",
1575
1567
  timeframeText: "Month",
1576
1568
  timeframeLength: () => {
1577
1569
  let e = 0;
1578
- const t = ge(/* @__PURE__ */ new Date()), n = ge(kn(/* @__PURE__ */ new Date()));
1579
- return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = hn(t, n)), 60 * 60 * 24 * Ea((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + an(e);
1570
+ const t = ge(/* @__PURE__ */ new Date()), n = ge(Nn(/* @__PURE__ */ new Date()));
1571
+ return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = hn(t, n)), 60 * 60 * 24 * Na((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + an(e);
1580
1572
  },
1581
1573
  defaultResponseGranularity: "daily",
1582
1574
  dataGranularity: "daily",
1583
1575
  isRelative: !1,
1584
1576
  allowedTiers: ["plus", "enterprise"]
1585
- }), h.PREVIOUS_YEAR, new ai({
1577
+ }), h.PREVIOUS_YEAR, new ni({
1586
1578
  key: h.PREVIOUS_YEAR,
1587
1579
  display: "Previous year",
1588
1580
  timeframeText: "Year",
@@ -1597,11 +1589,11 @@ h.FIFTEEN_MIN, new E({
1597
1589
  allowedTiers: ["plus", "enterprise"]
1598
1590
  });
1599
1591
  function hn(e, t) {
1600
- return Ra(e.getTimezoneOffset() - t.getTimezoneOffset());
1592
+ return ka(e.getTimezoneOffset() - t.getTimezoneOffset());
1601
1593
  }
1602
1594
  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;
1603
1595
  new Map(Nt.map((e) => [e.code, { code: e.code, name: e.name }]));
1604
- var On = { exports: {} };
1596
+ var Rn = { exports: {} };
1605
1597
  (function(e) {
1606
1598
  (function() {
1607
1599
  function t(d, c) {
@@ -1627,12 +1619,12 @@ var On = { exports: {} };
1627
1619
  }
1628
1620
  f.addCommas = t, e.exports = f;
1629
1621
  })();
1630
- })(On);
1631
- var ii = On.exports;
1632
- const wt = /* @__PURE__ */ Xa(ii);
1622
+ })(Rn);
1623
+ var ri = Rn.exports;
1624
+ const wt = /* @__PURE__ */ qa(ri);
1633
1625
  var yn;
1634
- const oi = typeof document < "u" && ((yn = document.documentElement) == null ? void 0 : yn.lang) || "en-US", vt = new Intl.NumberFormat(oi);
1635
- function si({
1626
+ const ai = typeof document < "u" && ((yn = document.documentElement) == null ? void 0 : yn.lang) || "en-US", vt = new Intl.NumberFormat(ai);
1627
+ function ii({
1636
1628
  i18n: e
1637
1629
  }) {
1638
1630
  const t = (a, i) => {
@@ -1705,13 +1697,13 @@ function si({
1705
1697
  return `${y} - ${w} ${c}`;
1706
1698
  } };
1707
1699
  }
1708
- const Ee = "#e0e4ea", li = "#828a9e", ui = "32px", _n = 5, xt = [
1700
+ const ke = "#e0e4ea", oi = "#828a9e", si = "32px", _n = 5, xt = [
1709
1701
  "#00819d",
1710
1702
  "#00abd2",
1711
1703
  "#00c8f4",
1712
1704
  "#67e3ff",
1713
1705
  "#b3f1ff"
1714
- ], ci = (e, t) => {
1706
+ ], li = (e, t) => {
1715
1707
  const n = e.length;
1716
1708
  if (!n)
1717
1709
  return NaN;
@@ -1723,12 +1715,12 @@ const Ee = "#e0e4ea", li = "#828a9e", ui = "32px", _n = 5, xt = [
1723
1715
  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;
1724
1716
  return Array.from({ length: t }, (m, f) => a + f * o).map((m) => Math.exp(m)).reverse();
1725
1717
  };
1726
- function di({
1718
+ function ui({
1727
1719
  countryMetrics: e,
1728
1720
  metric: t,
1729
1721
  unit: n
1730
1722
  }) {
1731
- const { formatMetric: a, formatMetricRange: i } = Re.useMetricFormat({ unit: n }), o = U(() => {
1723
+ const { formatMetric: a, formatMetricRange: i } = Ee.useMetricFormat({ unit: n }), o = U(() => {
1732
1724
  const g = { ...e.value };
1733
1725
  for (const M of Object.keys(g))
1734
1726
  Nt.find((T) => T.code === M) || delete g[M];
@@ -1739,8 +1731,8 @@ function di({
1739
1731
  }), c = U(() => {
1740
1732
  const g = [];
1741
1733
  if (l.value.length > 10) {
1742
- 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);
1743
- return g.push(...C, ...ie), g;
1734
+ const M = [...l.value].sort((D, Fe) => D - Fe), T = li(M, 0.75), B = l.value.filter((D) => D >= T), A = l.value.filter((D) => D < T), G = Ft(B, 3), ie = Ft(A, 2);
1735
+ return g.push(...G, ...ie), g;
1744
1736
  }
1745
1737
  return Ft(l.value, f.value);
1746
1738
  }), y = U(() => l.value.length === 1 ? [{
@@ -1751,25 +1743,25 @@ function di({
1751
1743
  }).trim()
1752
1744
  }] : c.value.map((g, M) => {
1753
1745
  const T = M === 0 ? Math.max(...c.value) : c.value[M - 1], B = g, A = T;
1754
- let C = "";
1755
- return M === 0 ? C = `> ${a(B, {
1746
+ let G = "";
1747
+ return M === 0 ? G = `> ${a(B, {
1756
1748
  showUnit: !n.value.includes("count"),
1757
1749
  approximate: d.value
1758
- })}`.trim() : M === c.value.length - 1 ? C = `< ${a(A, {
1750
+ })}`.trim() : M === c.value.length - 1 ? G = `< ${a(A, {
1759
1751
  showUnit: !n.value.includes("count"),
1760
1752
  approximate: d.value
1761
- })}`.trim() : C = i(B, A, {
1753
+ })}`.trim() : G = i(B, A, {
1762
1754
  showUnit: !n.value.includes("count"),
1763
1755
  approximate: d.value
1764
1756
  }).trim(), {
1765
1757
  color: w(B),
1766
- range: C
1758
+ range: G
1767
1759
  };
1768
1760
  })), w = (g) => {
1769
1761
  if (g === 0)
1770
- return Ee;
1762
+ return ke;
1771
1763
  const M = c.value.findIndex((T) => g >= T);
1772
- return M === -1 ? xt[xt.length - 1] : xt[M] ?? Ee;
1764
+ return M === -1 ? xt[xt.length - 1] : xt[M] ?? ke;
1773
1765
  };
1774
1766
  return {
1775
1767
  getColor: w,
@@ -1777,10 +1769,10 @@ function di({
1777
1769
  scale: c
1778
1770
  };
1779
1771
  }
1780
- function mi({
1772
+ function ci({
1781
1773
  unit: e
1782
1774
  }) {
1783
- const { i18n: t } = Re.useI18n(), { formatUnit: n, formatRange: a } = si({ i18n: t });
1775
+ const { i18n: t } = Ee.useI18n(), { formatUnit: n, formatRange: a } = ii({ i18n: t });
1784
1776
  return {
1785
1777
  formatMetric: (l, {
1786
1778
  showUnit: m = !0,
@@ -1798,11 +1790,11 @@ function mi({
1798
1790
  })
1799
1791
  };
1800
1792
  }
1801
- const Re = {
1802
- useI18n: ma,
1803
- useLegendScale: di,
1804
- useMetricFormat: mi
1805
- }, fi = "FeatureCollection", pi = [
1793
+ const Ee = {
1794
+ useI18n: da,
1795
+ useLegendScale: ui,
1796
+ useMetricFormat: ci
1797
+ }, di = "FeatureCollection", mi = [
1806
1798
  {
1807
1799
  type: "Feature",
1808
1800
  properties: {
@@ -4234,14 +4226,14 @@ const Re = {
4234
4226
  ]
4235
4227
  }
4236
4228
  }
4237
- ], hi = {
4238
- type: fi,
4239
- features: pi
4229
+ ], fi = {
4230
+ type: di,
4231
+ features: mi
4240
4232
  };
4241
- function yi(e) {
4233
+ function pi(e) {
4242
4234
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4243
4235
  }
4244
- var _i = wi, $e, ve, P, Ke, qe, gi = [
4236
+ var hi = _i, $e, ve, C, Ke, qe, yi = [
4245
4237
  "Point",
4246
4238
  "MultiPoint",
4247
4239
  "LineString",
@@ -4250,36 +4242,36 @@ var _i = wi, $e, ve, P, Ke, qe, gi = [
4250
4242
  "MultiPolygon",
4251
4243
  "GeometryCollection"
4252
4244
  ];
4253
- function wi(e) {
4254
- Ke = 2, qe = Math.pow(10, 6), P = null, $e = [], ve = [];
4255
- var t = e.readFields(vi, {});
4245
+ function _i(e) {
4246
+ Ke = 2, qe = Math.pow(10, 6), C = null, $e = [], ve = [];
4247
+ var t = e.readFields(gi, {});
4256
4248
  return $e = null, t;
4257
4249
  }
4258
- function vi(e, t, n) {
4259
- 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 ? bn(n, t) : e === 6 && Et(n, t);
4250
+ function gi(e, t, n) {
4251
+ e === 1 ? $e.push(n.readString()) : e === 2 ? Ke = n.readVarint() : e === 3 ? qe = Math.pow(10, n.readVarint()) : e === 4 ? wi(n, t) : e === 5 ? On(n, t) : e === 6 && Et(n, t);
4260
4252
  }
4261
- function xi(e, t) {
4262
- return t.type = "FeatureCollection", t.features = [], e.readMessage(Fi, t);
4253
+ function wi(e, t) {
4254
+ return t.type = "FeatureCollection", t.features = [], e.readMessage(vi, t);
4263
4255
  }
4264
- function bn(e, t) {
4256
+ function On(e, t) {
4265
4257
  t.type = "Feature";
4266
- var n = e.readMessage(Mi, t);
4258
+ var n = e.readMessage(xi, t);
4267
4259
  return "geometry" in n || (n.geometry = null), n;
4268
4260
  }
4269
4261
  function Et(e, t) {
4270
- return t.type = "Point", e.readMessage(Ti, t);
4262
+ return t.type = "Point", e.readMessage(Fi, t);
4271
4263
  }
4272
- function Fi(e, t, n) {
4273
- e === 1 ? t.features.push(bn(n, {})) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
4264
+ function vi(e, t, n) {
4265
+ e === 1 ? t.features.push(On(n, {})) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
4274
4266
  }
4275
- function Mi(e, t, n) {
4267
+ function xi(e, t, n) {
4276
4268
  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 = We(n, {}) : e === 15 && We(n, t);
4277
4269
  }
4278
- function Ti(e, t, n) {
4279
- e === 1 ? t.type = gi[n.readVarint()] : e === 2 ? P = 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 && We(n, t);
4270
+ function Fi(e, t, n) {
4271
+ e === 1 ? t.type = yi[n.readVarint()] : e === 2 ? C = n.readPackedVarint() : e === 3 ? Mi(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Et(n, {}))) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
4280
4272
  }
4281
- function Si(e, t, n) {
4282
- 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));
4273
+ function Mi(e, t, n) {
4274
+ n === "Point" ? e.coordinates = Ti(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 = Si(t));
4283
4275
  }
4284
4276
  function Rt(e) {
4285
4277
  for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
@@ -4292,11 +4284,11 @@ function We(e, t) {
4292
4284
  for (var n = e.readVarint() + e.pos; e.pos < n; ) t[$e[e.readVarint()]] = ve[e.readVarint()];
4293
4285
  return ve = [], t;
4294
4286
  }
4295
- function Di(e) {
4287
+ function Ti(e) {
4296
4288
  for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / qe);
4297
4289
  return n;
4298
4290
  }
4299
- function be(e, t, n, a) {
4291
+ function Oe(e, t, n, a) {
4300
4292
  var i = 0, o = [], l, m, f = [];
4301
4293
  for (m = 0; m < Ke; m++) f[m] = 0;
4302
4294
  for (; n ? i < n : e.pos < t; ) {
@@ -4307,24 +4299,24 @@ function be(e, t, n, a) {
4307
4299
  return a && o.push(o[0]), o;
4308
4300
  }
4309
4301
  function gn(e) {
4310
- return be(e, e.readVarint() + e.pos);
4302
+ return Oe(e, e.readVarint() + e.pos);
4311
4303
  }
4312
4304
  function wn(e, t) {
4313
4305
  var n = e.readVarint() + e.pos;
4314
- if (!P) return [be(e, n, null, t)];
4315
- for (var a = [], i = 0; i < P.length; i++) a.push(be(e, n, P[i], t));
4316
- return P = null, a;
4306
+ if (!C) return [Oe(e, n, null, t)];
4307
+ for (var a = [], i = 0; i < C.length; i++) a.push(Oe(e, n, C[i], t));
4308
+ return C = null, a;
4317
4309
  }
4318
- function Ni(e) {
4310
+ function Si(e) {
4319
4311
  var t = e.readVarint() + e.pos;
4320
- if (!P) return [[be(e, t, null, !0)]];
4321
- for (var n = [], a = 1, i = 0; i < P[0]; i++) {
4322
- for (var o = [], l = 0; l < P[a]; l++) o.push(be(e, t, P[a + 1 + l], !0));
4323
- a += P[a] + 1, n.push(o);
4312
+ if (!C) return [[Oe(e, t, null, !0)]];
4313
+ for (var n = [], a = 1, i = 0; i < C[0]; i++) {
4314
+ for (var o = [], l = 0; l < C[a]; l++) o.push(Oe(e, t, C[a + 1 + l], !0));
4315
+ a += C[a] + 1, n.push(o);
4324
4316
  }
4325
- return P = null, n;
4317
+ return C = null, n;
4326
4318
  }
4327
- var ki = _i, Ot = {};
4319
+ var Di = hi, Ot = {};
4328
4320
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
4329
4321
  Ot.read = function(e, t, n, a, i) {
4330
4322
  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];
@@ -4349,7 +4341,7 @@ Ot.write = function(e, t, n, a, i, o) {
4349
4341
  ;
4350
4342
  e[n + g - M] |= T * 128;
4351
4343
  };
4352
- var Ei = x, Ve = Ot;
4344
+ var Ni = x, Ve = Ot;
4353
4345
  function x(e) {
4354
4346
  this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
4355
4347
  }
@@ -4357,7 +4349,7 @@ x.Varint = 0;
4357
4349
  x.Fixed64 = 1;
4358
4350
  x.Bytes = 2;
4359
4351
  x.Fixed32 = 5;
4360
- var St = 65536 * 65536, vn = 1 / St, Ri = 12, Ln = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
4352
+ var St = 65536 * 65536, vn = 1 / St, ki = 12, bn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
4361
4353
  x.prototype = {
4362
4354
  destroy: function() {
4363
4355
  this.buf = null;
@@ -4400,7 +4392,7 @@ x.prototype = {
4400
4392
  },
4401
4393
  readVarint: function(e) {
4402
4394
  var t = this.buf, n, a;
4403
- 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));
4395
+ 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, Ei(n, e, this));
4404
4396
  },
4405
4397
  readVarint64: function() {
4406
4398
  return this.readVarint(!0);
@@ -4414,7 +4406,7 @@ x.prototype = {
4414
4406
  },
4415
4407
  readString: function() {
4416
4408
  var e = this.readVarint() + this.pos, t = this.pos;
4417
- return this.pos = e, e - t >= Ri && Ln ? ji(this.buf, t, e) : zi(this.buf, t, e);
4409
+ return this.pos = e, e - t >= ki && bn ? Yi(this.buf, t, e) : Vi(this.buf, t, e);
4418
4410
  },
4419
4411
  readBytes: function() {
4420
4412
  var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
@@ -4512,7 +4504,7 @@ x.prototype = {
4512
4504
  },
4513
4505
  writeVarint: function(e) {
4514
4506
  if (e = +e || 0, e > 268435455 || e < 0) {
4515
- bi(e, this);
4507
+ Ri(e, this);
4516
4508
  return;
4517
4509
  }
4518
4510
  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)));
@@ -4526,7 +4518,7 @@ x.prototype = {
4526
4518
  writeString: function(e) {
4527
4519
  e = String(e), this.realloc(e.length * 4), this.pos++;
4528
4520
  var t = this.pos;
4529
- this.pos = $i(this.buf, e, this.pos);
4521
+ this.pos = zi(this.buf, e, this.pos);
4530
4522
  var n = this.pos - t;
4531
4523
  n >= 128 && xn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
4532
4524
  },
@@ -4552,31 +4544,31 @@ x.prototype = {
4552
4544
  this.writeTag(e, x.Bytes), this.writeRawMessage(t, n);
4553
4545
  },
4554
4546
  writePackedVarint: function(e, t) {
4555
- t.length && this.writeMessage(e, Ci, t);
4547
+ t.length && this.writeMessage(e, Li, t);
4556
4548
  },
4557
4549
  writePackedSVarint: function(e, t) {
4558
4550
  t.length && this.writeMessage(e, Ii, t);
4559
4551
  },
4560
4552
  writePackedBoolean: function(e, t) {
4561
- t.length && this.writeMessage(e, Ai, t);
4553
+ t.length && this.writeMessage(e, Ui, t);
4562
4554
  },
4563
4555
  writePackedFloat: function(e, t) {
4564
- t.length && this.writeMessage(e, Ui, t);
4556
+ t.length && this.writeMessage(e, Gi, t);
4565
4557
  },
4566
4558
  writePackedDouble: function(e, t) {
4567
4559
  t.length && this.writeMessage(e, Pi, t);
4568
4560
  },
4569
4561
  writePackedFixed32: function(e, t) {
4570
- t.length && this.writeMessage(e, Bi, t);
4562
+ t.length && this.writeMessage(e, Ci, t);
4571
4563
  },
4572
4564
  writePackedSFixed32: function(e, t) {
4573
- t.length && this.writeMessage(e, Hi, t);
4565
+ t.length && this.writeMessage(e, Ai, t);
4574
4566
  },
4575
4567
  writePackedFixed64: function(e, t) {
4576
- t.length && this.writeMessage(e, Vi, t);
4568
+ t.length && this.writeMessage(e, Bi, t);
4577
4569
  },
4578
4570
  writePackedSFixed64: function(e, t) {
4579
- t.length && this.writeMessage(e, Yi, t);
4571
+ t.length && this.writeMessage(e, Hi, t);
4580
4572
  },
4581
4573
  writeBytesField: function(e, t) {
4582
4574
  this.writeTag(e, x.Bytes), this.writeBytes(t);
@@ -4612,7 +4604,7 @@ x.prototype = {
4612
4604
  this.writeVarintField(e, !!t);
4613
4605
  }
4614
4606
  };
4615
- function Oi(e, t, n) {
4607
+ function Ei(e, t, n) {
4616
4608
  var a = n.buf, i, o;
4617
4609
  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);
4618
4610
  throw new Error("Expected varint not more than 10 bytes");
@@ -4623,16 +4615,16 @@ function J(e) {
4623
4615
  function ye(e, t, n) {
4624
4616
  return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
4625
4617
  }
4626
- function bi(e, t) {
4618
+ function Ri(e, t) {
4627
4619
  var n, a;
4628
4620
  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)
4629
4621
  throw new Error("Given varint doesn't fit into 10 bytes");
4630
- t.realloc(10), Li(n, a, t), Gi(a, t);
4622
+ t.realloc(10), Oi(n, a, t), bi(a, t);
4631
4623
  }
4632
- function Li(e, t, n) {
4624
+ function Oi(e, t, n) {
4633
4625
  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;
4634
4626
  }
4635
- function Gi(e, t) {
4627
+ function bi(e, t) {
4636
4628
  var n = (e & 7) << 4;
4637
4629
  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)))));
4638
4630
  }
@@ -4641,31 +4633,31 @@ function xn(e, t, n) {
4641
4633
  n.realloc(a);
4642
4634
  for (var i = n.pos - 1; i >= e; i--) n.buf[i + a] = n.buf[i];
4643
4635
  }
4644
- function Ci(e, t) {
4636
+ function Li(e, t) {
4645
4637
  for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
4646
4638
  }
4647
4639
  function Ii(e, t) {
4648
4640
  for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
4649
4641
  }
4650
- function Ui(e, t) {
4642
+ function Gi(e, t) {
4651
4643
  for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
4652
4644
  }
4653
4645
  function Pi(e, t) {
4654
4646
  for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
4655
4647
  }
4656
- function Ai(e, t) {
4648
+ function Ui(e, t) {
4657
4649
  for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
4658
4650
  }
4659
- function Bi(e, t) {
4651
+ function Ci(e, t) {
4660
4652
  for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
4661
4653
  }
4662
- function Hi(e, t) {
4654
+ function Ai(e, t) {
4663
4655
  for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
4664
4656
  }
4665
- function Vi(e, t) {
4657
+ function Bi(e, t) {
4666
4658
  for (var n = 0; n < e.length; n++) t.writeFixed64(e[n]);
4667
4659
  }
4668
- function Yi(e, t) {
4660
+ function Hi(e, t) {
4669
4661
  for (var n = 0; n < e.length; n++) t.writeSFixed64(e[n]);
4670
4662
  }
4671
4663
  function Ye(e, t) {
@@ -4677,7 +4669,7 @@ function _e(e, t, n) {
4677
4669
  function Fn(e, t) {
4678
4670
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
4679
4671
  }
4680
- function zi(e, t, n) {
4672
+ function Vi(e, t, n) {
4681
4673
  for (var a = "", i = t; i < n; ) {
4682
4674
  var o = e[i], l = null, m = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
4683
4675
  if (i + m > n) break;
@@ -4686,10 +4678,10 @@ function zi(e, t, n) {
4686
4678
  }
4687
4679
  return a;
4688
4680
  }
4689
- function ji(e, t, n) {
4690
- return Ln.decode(e.subarray(t, n));
4681
+ function Yi(e, t, n) {
4682
+ return bn.decode(e.subarray(t, n));
4691
4683
  }
4692
- function $i(e, t, n) {
4684
+ function zi(e, t, n) {
4693
4685
  for (var a = 0, i, o; a < t.length; a++) {
4694
4686
  if (i = t.charCodeAt(a), i > 55295 && i < 57344)
4695
4687
  if (o)
@@ -4707,7 +4699,7 @@ function $i(e, t, n) {
4707
4699
  }
4708
4700
  return n;
4709
4701
  }
4710
- const Ki = /* @__PURE__ */ yi(Ei), yo = (e) => {
4702
+ const ji = /* @__PURE__ */ pi(Ni), po = (e) => {
4711
4703
  var a, i;
4712
4704
  if (!e || !e.data)
4713
4705
  return {};
@@ -4719,16 +4711,16 @@ const Ki = /* @__PURE__ */ yi(Ei), yo = (e) => {
4719
4711
  }
4720
4712
  return t;
4721
4713
  };
4722
- function Wi(e, t = 0) {
4714
+ function $i(e, t = 0) {
4723
4715
  let n = null;
4724
4716
  return (...a) => {
4725
4717
  n && clearTimeout(n), n = setTimeout(() => e(...a), t);
4726
4718
  };
4727
4719
  }
4728
- const Zi = { class: "legend" }, qi = {
4720
+ const Ki = { class: "legend" }, Wi = {
4729
4721
  key: 0,
4730
4722
  class: "legend-title"
4731
- }, Ji = { class: "legend-text" }, Xi = /* @__PURE__ */ Dt({
4723
+ }, Zi = { class: "legend-text" }, qi = /* @__PURE__ */ Dt({
4732
4724
  __name: "MapLegend",
4733
4725
  props: {
4734
4726
  metric: {},
@@ -4736,17 +4728,17 @@ const Zi = { class: "legend" }, qi = {
4736
4728
  data: {}
4737
4729
  },
4738
4730
  setup(e) {
4739
- return (t, n) => ($(), ae("div", Zi, [
4740
- e.metric ? ($(), ae("div", qi, we(e.title), 1)) : ke("", !0),
4741
- ($(!0), ae(Wr, null, Zr(e.data, (a, i) => ($(), ae("div", {
4731
+ return (t, n) => ($(), ae("div", Ki, [
4732
+ e.metric ? ($(), ae("div", Wi, we(e.title), 1)) : Ne("", !0),
4733
+ ($(!0), ae(Kr, null, Wr(e.data, (a, i) => ($(), ae("div", {
4742
4734
  key: i,
4743
4735
  class: "legend-item"
4744
4736
  }, [
4745
4737
  X("span", {
4746
4738
  class: "legend-color",
4747
- style: qr({ backgroundColor: a.color })
4739
+ style: Zr({ backgroundColor: a.color })
4748
4740
  }, null, 4),
4749
- X("span", Ji, we(a.range), 1)
4741
+ X("span", Zi, we(a.range), 1)
4750
4742
  ]))), 128))
4751
4743
  ]));
4752
4744
  }
@@ -4755,7 +4747,7 @@ const Zi = { class: "legend" }, qi = {
4755
4747
  for (const [a, i] of t)
4756
4748
  n[a] = i;
4757
4749
  return n;
4758
- }, Qi = /* @__PURE__ */ bt(Xi, [["__scopeId", "data-v-5f034736"]]), eo = { class: "map-tooltip" }, to = { class: "map-tooltip-text" }, no = { key: 0 }, ro = /* @__PURE__ */ Dt({
4750
+ }, Ji = /* @__PURE__ */ bt(qi, [["__scopeId", "data-v-5f034736"]]), Xi = { class: "map-tooltip" }, Qi = { class: "map-tooltip-text" }, eo = { key: 0 }, to = /* @__PURE__ */ Dt({
4759
4751
  __name: "MapTooltip",
4760
4752
  props: {
4761
4753
  data: {},
@@ -4764,22 +4756,22 @@ const Zi = { class: "legend" }, qi = {
4764
4756
  left: {}
4765
4757
  },
4766
4758
  setup(e) {
4767
- return Jr((t) => ({
4759
+ return qr((t) => ({
4768
4760
  v75a0a274: t.left,
4769
4761
  v144f4294: t.top,
4770
4762
  v6e49e79e: t.data.color
4771
- })), (t, n) => ($(), ae("div", eo, [
4763
+ })), (t, n) => ($(), ae("div", Xi, [
4772
4764
  n[0] || (n[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
4773
- X("div", to, [
4765
+ X("div", Qi, [
4774
4766
  X("div", null, we(e.data.label), 1),
4775
- e.showValue ? ($(), ae("span", no, we(e.data.value), 1)) : ke("", !0)
4767
+ e.showValue ? ($(), ae("span", eo, we(e.data.value), 1)) : Ne("", !0)
4776
4768
  ])
4777
4769
  ]));
4778
4770
  }
4779
- }), ao = /* @__PURE__ */ bt(ro, [["__scopeId", "data-v-6bea2641"]]), io = { class: "kong-ui-public-analytics-geo-map" }, oo = {
4771
+ }), no = /* @__PURE__ */ bt(to, [["__scopeId", "data-v-6bea2641"]]), ro = { class: "kong-ui-public-analytics-geo-map" }, ao = {
4780
4772
  key: 0,
4781
4773
  class: "no-location-overlay"
4782
- }, so = { class: "no-location-overlay-title" }, lo = { class: "no-location-overlay-description" }, uo = ["id"], co = /* @__PURE__ */ Dt({
4774
+ }, io = { class: "no-location-overlay-title" }, oo = { class: "no-location-overlay-description" }, so = ["id"], lo = /* @__PURE__ */ Dt({
4783
4775
  __name: "AnalyticsGeoMap",
4784
4776
  props: {
4785
4777
  countryMetrics: {},
@@ -4794,11 +4786,11 @@ const Zi = { class: "legend" }, qi = {
4794
4786
  },
4795
4787
  emits: ["boundsChange"],
4796
4788
  setup(e, { emit: t }) {
4797
- const n = import("./countries-simple-geo-BFUDnSiE.js").then((_) => _.default), a = t, { i18n: i } = Re.useI18n(), { getColor: o, legendData: l } = Re.useLegendScale({
4789
+ const n = import("./countries-simple-geo-BFUDnSiE.js").then((_) => _.default), a = t, { i18n: i } = Ee.useI18n(), { getColor: o, legendData: l } = Ee.useLegendScale({
4798
4790
  countryMetrics: Be(() => e.countryMetrics),
4799
4791
  metric: Be(() => e.metric),
4800
4792
  unit: Be(() => e.metricUnit)
4801
- }), { formatMetric: m } = Re.useMetricFormat({ unit: Be(() => e.metricUnit) }), f = Ne(), d = Xr(), c = Ne(), y = Ne(null), w = Ne({ left: "0px", top: "0px" }), g = Ne(!1), M = U(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), T = U(() => ({
4793
+ }), { formatMetric: m } = Ee.useMetricFormat({ unit: Be(() => e.metricUnit) }), f = De(), d = Jr(), c = De(), y = De(null), w = De({ left: "0px", top: "0px" }), g = De(!1), M = U(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), T = U(() => ({
4802
4794
  "fill-color": [
4803
4795
  "match",
4804
4796
  [
@@ -4814,14 +4806,14 @@ const Zi = { class: "legend" }, qi = {
4814
4806
  ...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([_, F]) => [
4815
4807
  _,
4816
4808
  o(F)
4817
- ]) : [Ee, Ee],
4818
- Ee
4809
+ ]) : [ke, ke],
4810
+ ke
4819
4811
  // default color if no match
4820
4812
  ],
4821
4813
  "fill-opacity": 0.7
4822
- })), B = U(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), A = U(() => e.metric && i.t(`metrics.${e.metric}`) || ""), C = (_) => {
4814
+ })), B = U(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), A = U(() => e.metric && i.t(`metrics.${e.metric}`) || ""), G = (_) => {
4823
4815
  const F = _.flat(1);
4824
- return Array.isArray(F[0]) && Array.isArray(F[0][0]) ? C(F) : F;
4816
+ return Array.isArray(F[0]) && Array.isArray(F[0][0]) ? G(F) : F;
4825
4817
  }, ie = (_) => {
4826
4818
  var S, k, ee, K, H, te, ne;
4827
4819
  if (_ === "RU") {
@@ -4849,14 +4841,14 @@ const Zi = { class: "legend" }, qi = {
4849
4841
  ]);
4850
4842
  return;
4851
4843
  }
4852
- const F = (H = y.value) == null ? void 0 : H.features.find((G) => {
4844
+ const F = (H = y.value) == null ? void 0 : H.features.find((I) => {
4853
4845
  var V, Y, z, v, j;
4854
- 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) === _;
4846
+ return (V = I.properties) != null && V.ISO_A2 ? ((Y = I.properties) == null ? void 0 : Y.ISO_A2) === _ : ((z = I.properties) == null ? void 0 : z.iso_a2) === "-99" ? ((v = I.properties) == null ? void 0 : v.iso_a2_eh) === _ : ((j = I.properties) == null ? void 0 : j.iso_a2) === _;
4855
4847
  });
4856
4848
  if (F) {
4857
- const G = (te = F.geometry) == null ? void 0 : te.coordinates;
4858
- if (!G) return;
4859
- const V = C(G), Y = V.map((W) => W[1]), z = V.map((W) => W[0]), v = Math.min(...Y), j = Math.max(...Y), de = Math.min(...z), O = Math.max(...z);
4849
+ const I = (te = F.geometry) == null ? void 0 : te.coordinates;
4850
+ if (!I) return;
4851
+ const V = G(I), Y = V.map((W) => W[1]), z = V.map((W) => W[0]), v = Math.min(...Y), j = Math.max(...Y), de = Math.min(...z), O = Math.max(...z);
4860
4852
  (ne = c.value) == null || ne.fitBounds([
4861
4853
  [de, v],
4862
4854
  [O, j]
@@ -4881,7 +4873,7 @@ const Zi = { class: "legend" }, qi = {
4881
4873
  }
4882
4874
  };
4883
4875
  return e.bounds && (_.bounds = e.bounds), _;
4884
- }), ce = Wi(() => {
4876
+ }), ce = $i(() => {
4885
4877
  if (!c.value) return;
4886
4878
  const _ = c.value.getBounds(), F = _.getSouthWest(), S = _.getNorthEast();
4887
4879
  a("boundsChange", [
@@ -4889,12 +4881,12 @@ const Zi = { class: "legend" }, qi = {
4889
4881
  [S.lng, S.lat]
4890
4882
  ]);
4891
4883
  }, 300);
4892
- return Qr(async () => {
4884
+ return Xr(async () => {
4893
4885
  var _, F, S;
4894
4886
  try {
4895
- const k = await n, ee = await fetch(k), K = new Uint8Array(await ee.arrayBuffer()), H = ki(new Ki(K));
4896
- y.value = H, c.value = new na(D.value), c.value.on("load", () => {
4897
- var te, ne, G, V, Y, z, v;
4887
+ const k = await n, ee = await fetch(k), K = new Uint8Array(await ee.arrayBuffer()), H = Di(new ji(K));
4888
+ y.value = H, c.value = new ta(D.value), c.value.on("load", () => {
4889
+ var te, ne, I, V, Y, z, v;
4898
4890
  (te = c.value) == null || te.addSource("countries", {
4899
4891
  type: "geojson",
4900
4892
  data: H
@@ -4903,9 +4895,9 @@ const Zi = { class: "legend" }, qi = {
4903
4895
  type: "fill",
4904
4896
  source: "countries",
4905
4897
  paint: T.value
4906
- }), (G = c.value) == null || G.addSource("lakes", {
4898
+ }), (I = c.value) == null || I.addSource("lakes", {
4907
4899
  type: "geojson",
4908
- data: hi
4900
+ data: fi
4909
4901
  }), (V = c.value) == null || V.addLayer({
4910
4902
  id: "lakes-layer",
4911
4903
  type: "fill",
@@ -4917,11 +4909,11 @@ const Zi = { class: "legend" }, qi = {
4917
4909
  var O;
4918
4910
  const de = (O = j.features) == null ? void 0 : O[0];
4919
4911
  if (de) {
4920
- const { iso_a2: W, iso_a2_eh: Le, ISO_A2: Je, admin: Xe } = de.properties, Qe = Je ?? W === "-99" ? Le : W, Te = e.countryMetrics[Qe];
4921
- Te !== void 0 && (f.value = {
4912
+ const { iso_a2: W, iso_a2_eh: Le, ISO_A2: Je, admin: Xe } = de.properties, Qe = Je ?? W === "-99" ? Le : W, Me = e.countryMetrics[Qe];
4913
+ Me !== void 0 && (f.value = {
4922
4914
  label: Xe,
4923
- color: o(Te),
4924
- value: m(Te)
4915
+ color: o(Me),
4916
+ value: m(Me)
4925
4917
  }, g.value = !0, w.value = {
4926
4918
  left: `${j.point.x}px`,
4927
4919
  top: `${j.point.y}px`
@@ -4959,48 +4951,48 @@ const Zi = { class: "legend" }, qi = {
4959
4951
  if (!_) return;
4960
4952
  const S = _ == null ? void 0 : _.flat(), k = F == null ? void 0 : F.flat();
4961
4953
  !(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(_);
4962
- }), (_, F) => ($(), ae("div", io, [
4963
- M.value ? ($(), ae("div", oo, [
4954
+ }), (_, F) => ($(), ae("div", ro, [
4955
+ M.value ? ($(), ae("div", ao, [
4964
4956
  mt(_.$slots, "no-location-icon", {}, () => [
4965
- ea(ue(ia), {
4966
- color: ue(li),
4967
- size: ue(ui)
4957
+ Qr(ue(aa), {
4958
+ color: ue(oi),
4959
+ size: ue(si)
4968
4960
  }, null, 8, ["color", "size"])
4969
4961
  ], !0),
4970
- X("div", so, [
4962
+ X("div", io, [
4971
4963
  mt(_.$slots, "no-location-title", {}, () => [
4972
- ta(we(ue(i).t("no_location_data")), 1)
4964
+ ea(we(ue(i).t("no_location_data")), 1)
4973
4965
  ], !0)
4974
4966
  ]),
4975
- X("div", lo, [
4967
+ X("div", oo, [
4976
4968
  mt(_.$slots, "no-location-description", {}, () => [
4977
4969
  X("p", null, we(ue(i).t("no_location_data_description")), 1)
4978
4970
  ], !0)
4979
4971
  ])
4980
- ])) : ke("", !0),
4972
+ ])) : Ne("", !0),
4981
4973
  X("div", {
4982
4974
  id: ue(d),
4983
4975
  class: "analytics-geo-map-container"
4984
- }, null, 8, uo),
4985
- B.value ? ($(), nn(Qi, {
4976
+ }, null, 8, so),
4977
+ B.value ? ($(), nn(Ji, {
4986
4978
  key: 1,
4987
4979
  class: "legend-container",
4988
4980
  data: ue(l),
4989
4981
  metric: e.metric,
4990
4982
  title: A.value
4991
- }, null, 8, ["data", "metric", "title"])) : ke("", !0),
4992
- g.value && f.value ? ($(), nn(ao, {
4983
+ }, null, 8, ["data", "metric", "title"])) : Ne("", !0),
4984
+ g.value && f.value ? ($(), nn(no, {
4993
4985
  key: 2,
4994
4986
  data: f.value,
4995
4987
  left: w.value.left,
4996
4988
  "show-value": e.showTooltipValue,
4997
4989
  top: w.value.top
4998
- }, null, 8, ["data", "left", "show-value", "top"])) : ke("", !0)
4990
+ }, null, 8, ["data", "left", "show-value", "top"])) : Ne("", !0)
4999
4991
  ]));
5000
4992
  }
5001
- }), _o = /* @__PURE__ */ bt(co, [["__scopeId", "data-v-4e998083"]]);
4993
+ }), ho = /* @__PURE__ */ bt(lo, [["__scopeId", "data-v-4e998083"]]);
5002
4994
  export {
5003
- _o as AnalyticsGeoMap,
5004
- Wi as debounce,
5005
- yo as exploreResultToCountryMetrics
4995
+ ho as AnalyticsGeoMap,
4996
+ $i as debounce,
4997
+ po as exploreResultToCountryMetrics
5006
4998
  };