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