@kong-ui-public/analytics-geo-map 1.9.10 → 1.9.11
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/README.md +21 -0
- package/dist/style.css +1 -1
- package/dist/types/components/AnalyticsGeoMap.vue.d.ts +1 -1
- package/dist/types/components/AnalyticsGeoMap.vue.d.ts.map +1 -1
- package/dist/types/composables/useLegendScale.d.ts +2 -1
- package/dist/types/composables/useLegendScale.d.ts.map +1 -1
- package/dist/types/utils/colors.d.ts +9 -0
- package/dist/types/utils/colors.d.ts.map +1 -0
- package/dist/vitals-geo-map.es.js +1331 -1325
- package/dist/vitals-geo-map.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,52 +1,37 @@
|
|
|
1
|
-
import { computed as j, defineComponent as ft, openBlock as
|
|
2
|
-
import { Map as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const aa = { ms: "ms", bytes: "Byte{plural}", count: "request{plural}", "count/minute": "rpm", requests: "request{plural}" }, ia = { error_rate: "Error rate", request_count: "Request count", request_per_minute: "Requests per minute", response_latency_average: "Response latency (avg)", response_latency_p99: "Response latency (p99)", response_latency_p95: "Response latency (p95)", response_latency_p50: "Response latency (p50)", kong_latency_average: "Kong latency (avg)", kong_latency_p99: "Kong latency (p99)", kong_latency_p95: "Kong latency (p95)", kong_latency_p50: "Kong latency (p50)", upstream_latency_average: "Upstream latency (avg)", upstream_latency_p99: "Upstream latency (p99)", upstream_latency_p95: "Upstream latency (p95)", upstream_latency_p50: "Upstream latency (p50)", response_size_average: "Response size (avg)", response_size_p99: "Response size (p99)", response_size_p95: "Response size (p95)", response_size_p50: "Response size (p50)", response_size_sum: "Response size (sum)", request_size_average: "Request size (avg)", request_size_p99: "Request size (p99)", request_size_p95: "Request size (p95)", request_size_p50: "Request size (p50)", request_size_sum: "Request size (sum)", cache_hit_rate: "Cache hit rate" }, oa = { windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map", mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map", mobile_zoom_help_text: "Use two fingers to zoom the map" }, sa = "No data in the current time frame", la = "Once there is traffic, it will display here", ua = {
|
|
6
|
-
metricUnits: aa,
|
|
7
|
-
metrics: ia,
|
|
8
|
-
cooperative_gestures: oa,
|
|
9
|
-
no_location_data: sa,
|
|
10
|
-
no_location_data_description: la
|
|
11
|
-
};
|
|
12
|
-
function ca() {
|
|
13
|
-
const e = ta("en-us", ua);
|
|
14
|
-
return {
|
|
15
|
-
i18n: e,
|
|
16
|
-
i18nT: na(e)
|
|
17
|
-
// Translation component <i18n-t>
|
|
18
|
-
};
|
|
19
|
-
}
|
|
1
|
+
import { computed as j, defineComponent as ft, openBlock as Q, createElementBlock as re, toDisplayString as _e, createCommentVNode as Me, Fragment as Kr, renderList as qr, createElementVNode as te, normalizeStyle as Wr, useCssVars as Zr, inject as Jr, toRef as ve, ref as se, useId as Qr, onUnmounted as Xr, onMounted as ea, watch as Pe, renderSlot as Xe, createVNode as ta, unref as le, createTextVNode as na, createBlock as zt } from "vue";
|
|
2
|
+
import { Map as ra } from "maplibre-gl";
|
|
3
|
+
import { AnalyticsIcon as aa } from "@kong/icons";
|
|
4
|
+
import { createI18n as ia, i18nTComponent as oa } from "@kong-ui-public/i18n";
|
|
20
5
|
const Ht = "kapture:prepare", Yt = "kapture:restore";
|
|
21
|
-
function
|
|
6
|
+
function sa(t) {
|
|
22
7
|
let n;
|
|
23
8
|
const a = () => {
|
|
24
9
|
n?.(), n = void 0;
|
|
25
|
-
},
|
|
26
|
-
|
|
10
|
+
}, o = (u) => {
|
|
11
|
+
u.detail?.waitUntil(
|
|
27
12
|
(async () => {
|
|
28
|
-
n = await
|
|
13
|
+
n = await t();
|
|
29
14
|
})()
|
|
30
15
|
);
|
|
31
16
|
};
|
|
32
|
-
return window.addEventListener(Ht,
|
|
33
|
-
window.removeEventListener(Ht,
|
|
17
|
+
return window.addEventListener(Ht, o), window.addEventListener(Yt, a), () => {
|
|
18
|
+
window.removeEventListener(Ht, o), window.removeEventListener(Yt, a), a();
|
|
34
19
|
};
|
|
35
20
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
38
|
-
const a =
|
|
21
|
+
function la(t, n = {}) {
|
|
22
|
+
return sa(async () => {
|
|
23
|
+
const a = t();
|
|
39
24
|
if (!a)
|
|
40
25
|
return;
|
|
41
26
|
n.redraw?.();
|
|
42
|
-
const
|
|
43
|
-
return
|
|
44
|
-
|
|
27
|
+
const o = new Image();
|
|
28
|
+
return o.src = a.toDataURL("image/png"), await o.decode(), o.style.cssText = `position:absolute;top:0;left:0;width:${a.clientWidth}px;height:${a.clientHeight}px;`, a.parentElement?.appendChild(o), a.style.visibility = "hidden", () => {
|
|
29
|
+
o.remove(), a.style.visibility = "";
|
|
45
30
|
};
|
|
46
31
|
});
|
|
47
32
|
}
|
|
48
|
-
var v = /* @__PURE__ */ ((
|
|
49
|
-
const
|
|
33
|
+
var v = /* @__PURE__ */ ((t) => (t.FIFTEEN_MIN = "15m", t.ONE_HOUR = "1h", t.SIX_HOUR = "6h", t.TWELVE_HOUR = "12h", t.ONE_DAY = "24h", t.SEVEN_DAY = "7d", t.THIRTY_DAY = "30d", t.NINETY_DAY = "90d", t.ONE_HUNDRED_EIGHTY_DAY = "180d", t.ONE_YEAR = "365d", t.CURRENT_WEEK = "current_week", t.CURRENT_MONTH = "current_month", t.CURRENT_QUARTER = "current_quarter", t.CURRENT_YEAR = "current_year", t.PREVIOUS_WEEK = "previous_week", t.PREVIOUS_MONTH = "previous_month", t.PREVIOUS_QUARTER = "previous_quarter", t.PREVIOUS_YEAR = "previous_year", t))(v || {});
|
|
34
|
+
const ua = ["in", "not_in", "selector"], ca = ["empty", "not_empty"], ue = (t) => t.filter((n) => n !== "time"), _n = [
|
|
50
35
|
"api",
|
|
51
36
|
"api_package",
|
|
52
37
|
"api_product",
|
|
@@ -60,14 +45,14 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
|
|
|
60
45
|
"status_code",
|
|
61
46
|
"status_code_grouped",
|
|
62
47
|
"time"
|
|
63
|
-
],
|
|
48
|
+
], gn = ue(_n), da = [
|
|
64
49
|
"active_services",
|
|
65
50
|
"error_rate",
|
|
66
51
|
"request_count",
|
|
67
52
|
"request_per_minute",
|
|
68
53
|
"response_latency_average"
|
|
69
|
-
],
|
|
70
|
-
...
|
|
54
|
+
], wn = [
|
|
55
|
+
..._n,
|
|
71
56
|
"application",
|
|
72
57
|
"bot_info_action",
|
|
73
58
|
"bot_info_detection_reason",
|
|
@@ -84,8 +69,8 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
|
|
|
84
69
|
"realm",
|
|
85
70
|
"portal_api",
|
|
86
71
|
"principal"
|
|
87
|
-
],
|
|
88
|
-
...
|
|
72
|
+
], vn = ue(wn), ma = [
|
|
73
|
+
...da,
|
|
89
74
|
"cache_hit_rate",
|
|
90
75
|
"response_latency_p99",
|
|
91
76
|
"response_latency_p95",
|
|
@@ -112,7 +97,7 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
|
|
|
112
97
|
"request_size_p50",
|
|
113
98
|
"request_size_average",
|
|
114
99
|
"request_size_sum"
|
|
115
|
-
],
|
|
100
|
+
], fa = [
|
|
116
101
|
"control_plane",
|
|
117
102
|
"control_plane_group",
|
|
118
103
|
"ai_control_plane",
|
|
@@ -139,7 +124,7 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
|
|
|
139
124
|
"model",
|
|
140
125
|
"agent",
|
|
141
126
|
"ai_data_plane_node"
|
|
142
|
-
],
|
|
127
|
+
], xn = ue(fa), pa = [
|
|
143
128
|
"a2a_context_id",
|
|
144
129
|
"a2a_error",
|
|
145
130
|
"a2a_method",
|
|
@@ -195,8 +180,8 @@ const fa = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], se = (e) =
|
|
|
195
180
|
"upstream_status_code_grouped",
|
|
196
181
|
"websocket"
|
|
197
182
|
];
|
|
198
|
-
|
|
199
|
-
const
|
|
183
|
+
ue(pa);
|
|
184
|
+
const ya = [
|
|
200
185
|
"ai_count",
|
|
201
186
|
"latencies_response_ms",
|
|
202
187
|
"latencies_upstream_ms",
|
|
@@ -208,9 +193,9 @@ const wa = [
|
|
|
208
193
|
"status_code",
|
|
209
194
|
"upstream_status_code"
|
|
210
195
|
];
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
...
|
|
196
|
+
ue(ya);
|
|
197
|
+
const ha = [
|
|
198
|
+
...wn,
|
|
214
199
|
"a2a_context_id",
|
|
215
200
|
"a2a_error",
|
|
216
201
|
"a2a_method",
|
|
@@ -219,11 +204,11 @@ const va = [
|
|
|
219
204
|
"mcp_method",
|
|
220
205
|
"mcp_session_id",
|
|
221
206
|
"mcp_tool_name"
|
|
222
|
-
],
|
|
207
|
+
], Mn = ue(ha);
|
|
223
208
|
[
|
|
224
|
-
...
|
|
209
|
+
...ma
|
|
225
210
|
];
|
|
226
|
-
const
|
|
211
|
+
const _a = [
|
|
227
212
|
"control_plane",
|
|
228
213
|
"data_plane_group",
|
|
229
214
|
"managed_cache",
|
|
@@ -231,8 +216,8 @@ const xa = [
|
|
|
231
216
|
"provider",
|
|
232
217
|
"provider_region",
|
|
233
218
|
"time"
|
|
234
|
-
],
|
|
235
|
-
new Set(
|
|
219
|
+
], Fn = ue(_a);
|
|
220
|
+
new Set(gn), new Set(vn), new Set(xn), new Set(Mn), new Set(Fn);
|
|
236
221
|
const pt = [
|
|
237
222
|
{ code: "AF", name: "Afghanistan" },
|
|
238
223
|
{ code: "AX", name: "Aland Islands" },
|
|
@@ -481,8 +466,8 @@ const pt = [
|
|
|
481
466
|
{ code: "ZM", name: "Zambia" },
|
|
482
467
|
{ code: "ZW", name: "Zimbabwe" }
|
|
483
468
|
];
|
|
484
|
-
pt.map((
|
|
485
|
-
const
|
|
469
|
+
pt.map((t) => t.code);
|
|
470
|
+
const ga = (t) => ({
|
|
486
471
|
type: "array",
|
|
487
472
|
description: "A list of filters to apply to the query",
|
|
488
473
|
items: {
|
|
@@ -493,11 +478,11 @@ const Fa = (e) => ({
|
|
|
493
478
|
properties: {
|
|
494
479
|
field: {
|
|
495
480
|
type: "string",
|
|
496
|
-
...
|
|
481
|
+
...t ? { enum: t } : {}
|
|
497
482
|
},
|
|
498
483
|
operator: {
|
|
499
484
|
type: "string",
|
|
500
|
-
enum:
|
|
485
|
+
enum: ua
|
|
501
486
|
},
|
|
502
487
|
value: {
|
|
503
488
|
type: "array",
|
|
@@ -519,11 +504,11 @@ const Fa = (e) => ({
|
|
|
519
504
|
properties: {
|
|
520
505
|
field: {
|
|
521
506
|
type: "string",
|
|
522
|
-
...
|
|
507
|
+
...t ? { enum: t } : {}
|
|
523
508
|
},
|
|
524
509
|
operator: {
|
|
525
510
|
type: "string",
|
|
526
|
-
enum:
|
|
511
|
+
enum: ca
|
|
527
512
|
}
|
|
528
513
|
},
|
|
529
514
|
required: [
|
|
@@ -534,7 +519,7 @@ const Fa = (e) => ({
|
|
|
534
519
|
}
|
|
535
520
|
]
|
|
536
521
|
}
|
|
537
|
-
}),
|
|
522
|
+
}), wa = [
|
|
538
523
|
"control_plane",
|
|
539
524
|
"gateway_service",
|
|
540
525
|
"realm",
|
|
@@ -548,86 +533,86 @@ const Fa = (e) => ({
|
|
|
548
533
|
"region",
|
|
549
534
|
"hostname"
|
|
550
535
|
];
|
|
551
|
-
|
|
536
|
+
ga([
|
|
552
537
|
.../* @__PURE__ */ new Set([
|
|
553
|
-
...gn,
|
|
554
|
-
...hn,
|
|
555
|
-
...wn,
|
|
556
538
|
...vn,
|
|
557
|
-
...
|
|
558
|
-
...xn
|
|
539
|
+
...gn,
|
|
540
|
+
...xn,
|
|
541
|
+
...Mn,
|
|
542
|
+
...wa,
|
|
543
|
+
...Fn
|
|
559
544
|
])
|
|
560
545
|
]);
|
|
561
|
-
let
|
|
562
|
-
function
|
|
563
|
-
return
|
|
546
|
+
let va = {};
|
|
547
|
+
function xa() {
|
|
548
|
+
return va;
|
|
564
549
|
}
|
|
565
|
-
const
|
|
566
|
-
function Te(
|
|
567
|
-
return typeof
|
|
550
|
+
const Ma = 60, Fa = 3600, $t = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
551
|
+
function Te(t, n) {
|
|
552
|
+
return typeof t == "function" ? t(n) : t && typeof t == "object" && $t in t ? t[$t](n) : t instanceof Date ? new t.constructor(n) : new Date(n);
|
|
568
553
|
}
|
|
569
|
-
function
|
|
570
|
-
return Te(n ||
|
|
554
|
+
function ce(t, n) {
|
|
555
|
+
return Te(n || t, t);
|
|
571
556
|
}
|
|
572
|
-
function
|
|
573
|
-
const a =
|
|
557
|
+
function Le(t, n) {
|
|
558
|
+
const a = ce(t, n?.in);
|
|
574
559
|
return a.setHours(0, 0, 0, 0), a;
|
|
575
560
|
}
|
|
576
|
-
function Be(
|
|
577
|
-
const a =
|
|
578
|
-
return
|
|
561
|
+
function Be(t, n) {
|
|
562
|
+
const a = xa(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, u = ce(t, n?.in), d = u.getDay(), y = (d < o ? 7 : 0) + d - o;
|
|
563
|
+
return u.setDate(u.getDate() - y), u.setHours(0, 0, 0, 0), u;
|
|
579
564
|
}
|
|
580
|
-
function
|
|
581
|
-
const
|
|
582
|
-
return isNaN(n) ? Te(
|
|
565
|
+
function Ce(t, n, a) {
|
|
566
|
+
const o = ce(t, a?.in);
|
|
567
|
+
return isNaN(n) ? Te(t, NaN) : (o.setDate(o.getDate() + n), o);
|
|
583
568
|
}
|
|
584
|
-
function
|
|
585
|
-
const
|
|
586
|
-
if (isNaN(n)) return Te(
|
|
569
|
+
function Tn(t, n, a) {
|
|
570
|
+
const o = ce(t, a?.in);
|
|
571
|
+
if (isNaN(n)) return Te(t, NaN);
|
|
587
572
|
if (!n)
|
|
588
|
-
return
|
|
589
|
-
const
|
|
590
|
-
d.setMonth(
|
|
573
|
+
return o;
|
|
574
|
+
const u = o.getDate(), d = Te(t, o.getTime());
|
|
575
|
+
d.setMonth(o.getMonth() + n + 1, 0);
|
|
591
576
|
const y = d.getDate();
|
|
592
|
-
return
|
|
577
|
+
return u >= y ? d : (o.setFullYear(
|
|
593
578
|
d.getFullYear(),
|
|
594
579
|
d.getMonth(),
|
|
595
|
-
|
|
596
|
-
),
|
|
580
|
+
u
|
|
581
|
+
), o);
|
|
597
582
|
}
|
|
598
|
-
function
|
|
599
|
-
return
|
|
583
|
+
function Ta(t, n, a) {
|
|
584
|
+
return Tn(t, n * 3, a);
|
|
600
585
|
}
|
|
601
|
-
function
|
|
602
|
-
const a =
|
|
603
|
-
return a.setMonth(
|
|
586
|
+
function ye(t, n) {
|
|
587
|
+
const a = ce(t, n?.in), o = a.getMonth(), u = o - o % 3;
|
|
588
|
+
return a.setMonth(u, 1), a.setHours(0, 0, 0, 0), a;
|
|
604
589
|
}
|
|
605
|
-
function
|
|
606
|
-
const a =
|
|
590
|
+
function he(t, n) {
|
|
591
|
+
const a = ce(t, n?.in);
|
|
607
592
|
return a.setDate(1), a.setHours(0, 0, 0, 0), a;
|
|
608
593
|
}
|
|
609
|
-
function
|
|
610
|
-
const a =
|
|
611
|
-
return d.setFullYear(
|
|
594
|
+
function Sa(t, n) {
|
|
595
|
+
const a = ce(t, n?.in), o = a.getFullYear(), u = a.getMonth(), d = Te(a, 0);
|
|
596
|
+
return d.setFullYear(o, u + 1, 0), d.setHours(0, 0, 0, 0), d.getDate();
|
|
612
597
|
}
|
|
613
|
-
function jt(
|
|
614
|
-
return Math.trunc(
|
|
598
|
+
function jt(t) {
|
|
599
|
+
return Math.trunc(t * Fa);
|
|
615
600
|
}
|
|
616
|
-
function
|
|
617
|
-
const n =
|
|
601
|
+
function Da(t) {
|
|
602
|
+
const n = t / Ma;
|
|
618
603
|
return Math.trunc(n);
|
|
619
604
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
605
|
+
function Sn(t, n, a) {
|
|
606
|
+
return Tn(t, -1, a);
|
|
622
607
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
608
|
+
function Dn(t, n, a) {
|
|
609
|
+
return Ta(t, -1, a);
|
|
625
610
|
}
|
|
626
|
-
function
|
|
627
|
-
const a =
|
|
628
|
-
return "formatToParts" in a ?
|
|
611
|
+
function ka(t, n) {
|
|
612
|
+
const a = La(n);
|
|
613
|
+
return "formatToParts" in a ? Ra(a, t) : Ea(a, t);
|
|
629
614
|
}
|
|
630
|
-
const
|
|
615
|
+
const Na = {
|
|
631
616
|
year: 0,
|
|
632
617
|
month: 1,
|
|
633
618
|
day: 2,
|
|
@@ -635,32 +620,32 @@ const Pa = {
|
|
|
635
620
|
minute: 4,
|
|
636
621
|
second: 5
|
|
637
622
|
};
|
|
638
|
-
function
|
|
623
|
+
function Ra(t, n) {
|
|
639
624
|
try {
|
|
640
|
-
const a =
|
|
641
|
-
for (let
|
|
642
|
-
const d =
|
|
643
|
-
d !== void 0 && (
|
|
625
|
+
const a = t.formatToParts(n), o = [];
|
|
626
|
+
for (let u = 0; u < a.length; u++) {
|
|
627
|
+
const d = Na[a[u].type];
|
|
628
|
+
d !== void 0 && (o[d] = parseInt(a[u].value, 10));
|
|
644
629
|
}
|
|
645
|
-
return
|
|
630
|
+
return o;
|
|
646
631
|
} catch (a) {
|
|
647
632
|
if (a instanceof RangeError)
|
|
648
633
|
return [NaN];
|
|
649
634
|
throw a;
|
|
650
635
|
}
|
|
651
636
|
}
|
|
652
|
-
function
|
|
653
|
-
const a =
|
|
637
|
+
function Ea(t, n) {
|
|
638
|
+
const a = t.format(n), o = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(a);
|
|
654
639
|
return [
|
|
655
|
-
parseInt(
|
|
656
|
-
parseInt(
|
|
657
|
-
parseInt(
|
|
658
|
-
parseInt(
|
|
659
|
-
parseInt(
|
|
660
|
-
parseInt(
|
|
640
|
+
parseInt(o[3], 10),
|
|
641
|
+
parseInt(o[1], 10),
|
|
642
|
+
parseInt(o[2], 10),
|
|
643
|
+
parseInt(o[4], 10),
|
|
644
|
+
parseInt(o[5], 10),
|
|
645
|
+
parseInt(o[6], 10)
|
|
661
646
|
];
|
|
662
647
|
}
|
|
663
|
-
const
|
|
648
|
+
const et = {}, Kt = new Intl.DateTimeFormat("en-US", {
|
|
664
649
|
hourCycle: "h23",
|
|
665
650
|
timeZone: "America/New_York",
|
|
666
651
|
year: "numeric",
|
|
@@ -669,11 +654,11 @@ const tt = {}, Kt = new Intl.DateTimeFormat("en-US", {
|
|
|
669
654
|
hour: "2-digit",
|
|
670
655
|
minute: "2-digit",
|
|
671
656
|
second: "2-digit"
|
|
672
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
673
|
-
function
|
|
674
|
-
return
|
|
657
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Pa = Kt === "06/25/2014, 00:00:00" || Kt === "06/25/2014 00:00:00";
|
|
658
|
+
function La(t) {
|
|
659
|
+
return et[t] || (et[t] = Pa ? new Intl.DateTimeFormat("en-US", {
|
|
675
660
|
hourCycle: "h23",
|
|
676
|
-
timeZone:
|
|
661
|
+
timeZone: t,
|
|
677
662
|
year: "numeric",
|
|
678
663
|
month: "numeric",
|
|
679
664
|
day: "2-digit",
|
|
@@ -682,81 +667,81 @@ function Ca(e) {
|
|
|
682
667
|
second: "2-digit"
|
|
683
668
|
}) : new Intl.DateTimeFormat("en-US", {
|
|
684
669
|
hour12: !1,
|
|
685
|
-
timeZone:
|
|
670
|
+
timeZone: t,
|
|
686
671
|
year: "numeric",
|
|
687
672
|
month: "numeric",
|
|
688
673
|
day: "2-digit",
|
|
689
674
|
hour: "2-digit",
|
|
690
675
|
minute: "2-digit",
|
|
691
676
|
second: "2-digit"
|
|
692
|
-
})),
|
|
677
|
+
})), et[t];
|
|
693
678
|
}
|
|
694
|
-
function yt(
|
|
695
|
-
const
|
|
696
|
-
return
|
|
679
|
+
function yt(t, n, a, o, u, d, y) {
|
|
680
|
+
const h = /* @__PURE__ */ new Date(0);
|
|
681
|
+
return h.setUTCFullYear(t, n, a), h.setUTCHours(o, u, d, y), h;
|
|
697
682
|
}
|
|
698
|
-
const qt = 36e5,
|
|
683
|
+
const qt = 36e5, Ca = 6e4, tt = {
|
|
699
684
|
timezoneZ: /^(Z)$/,
|
|
700
685
|
timezoneHH: /^([+-]\d{2})$/,
|
|
701
686
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
702
687
|
};
|
|
703
|
-
function
|
|
704
|
-
if (!
|
|
688
|
+
function be(t, n, a) {
|
|
689
|
+
if (!t)
|
|
705
690
|
return 0;
|
|
706
|
-
let
|
|
707
|
-
if (
|
|
691
|
+
let o = tt.timezoneZ.exec(t);
|
|
692
|
+
if (o)
|
|
708
693
|
return 0;
|
|
709
|
-
let
|
|
710
|
-
if (
|
|
711
|
-
return
|
|
712
|
-
if (
|
|
713
|
-
|
|
714
|
-
const y = parseInt(
|
|
715
|
-
return Wt(
|
|
716
|
-
}
|
|
717
|
-
if (
|
|
694
|
+
let u, d;
|
|
695
|
+
if (o = tt.timezoneHH.exec(t), o)
|
|
696
|
+
return u = parseInt(o[1], 10), Wt(u) ? -(u * qt) : NaN;
|
|
697
|
+
if (o = tt.timezoneHHMM.exec(t), o) {
|
|
698
|
+
u = parseInt(o[2], 10);
|
|
699
|
+
const y = parseInt(o[3], 10);
|
|
700
|
+
return Wt(u, y) ? (d = Math.abs(u) * qt + y * Ca, o[1] === "+" ? -d : d) : NaN;
|
|
701
|
+
}
|
|
702
|
+
if (Ia(t)) {
|
|
718
703
|
n = new Date(n || Date.now());
|
|
719
|
-
const y = a ? n :
|
|
720
|
-
return -(a ?
|
|
704
|
+
const y = a ? n : Ga(n), h = dt(y, t);
|
|
705
|
+
return -(a ? h : Oa(n, h, t));
|
|
721
706
|
}
|
|
722
707
|
return NaN;
|
|
723
708
|
}
|
|
724
|
-
function
|
|
725
|
-
return yt(
|
|
709
|
+
function Ga(t) {
|
|
710
|
+
return yt(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds());
|
|
726
711
|
}
|
|
727
|
-
function dt(
|
|
728
|
-
const a =
|
|
729
|
-
let
|
|
730
|
-
const d =
|
|
731
|
-
return
|
|
712
|
+
function dt(t, n) {
|
|
713
|
+
const a = ka(t, n), o = yt(a[0], a[1] - 1, a[2], a[3] % 24, a[4], a[5], 0).getTime();
|
|
714
|
+
let u = t.getTime();
|
|
715
|
+
const d = u % 1e3;
|
|
716
|
+
return u -= d >= 0 ? d : 1e3 + d, o - u;
|
|
732
717
|
}
|
|
733
|
-
function
|
|
734
|
-
let
|
|
735
|
-
const
|
|
736
|
-
if (n ===
|
|
718
|
+
function Oa(t, n, a) {
|
|
719
|
+
let o = t.getTime() - n;
|
|
720
|
+
const u = dt(new Date(o), a);
|
|
721
|
+
if (n === u)
|
|
737
722
|
return n;
|
|
738
|
-
|
|
739
|
-
const d = dt(new Date(
|
|
740
|
-
return
|
|
723
|
+
o -= u - n;
|
|
724
|
+
const d = dt(new Date(o), a);
|
|
725
|
+
return u === d ? u : Math.max(u, d);
|
|
741
726
|
}
|
|
742
|
-
function Wt(
|
|
743
|
-
return -23 <=
|
|
727
|
+
function Wt(t, n) {
|
|
728
|
+
return -23 <= t && t <= 23 && (n == null || 0 <= n && n <= 59);
|
|
744
729
|
}
|
|
745
730
|
const Zt = {};
|
|
746
|
-
function
|
|
747
|
-
if (Zt[
|
|
731
|
+
function Ia(t) {
|
|
732
|
+
if (Zt[t])
|
|
748
733
|
return !0;
|
|
749
734
|
try {
|
|
750
|
-
return new Intl.DateTimeFormat(void 0, { timeZone:
|
|
735
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: t }), Zt[t] = !0, !0;
|
|
751
736
|
} catch {
|
|
752
737
|
return !1;
|
|
753
738
|
}
|
|
754
739
|
}
|
|
755
|
-
function Jt(
|
|
756
|
-
const n = new Date(Date.UTC(
|
|
757
|
-
return n.setUTCFullYear(
|
|
740
|
+
function Jt(t) {
|
|
741
|
+
const n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
742
|
+
return n.setUTCFullYear(t.getFullYear()), +t - +n;
|
|
758
743
|
}
|
|
759
|
-
const
|
|
744
|
+
const kn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, nt = 36e5, Qt = 6e4, Ua = 2, H = {
|
|
760
745
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
761
746
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
762
747
|
// year tokens
|
|
@@ -788,64 +773,64 @@ const Sn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
788
773
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
789
774
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
790
775
|
// time zone tokens (to identify the presence of a tz)
|
|
791
|
-
timeZone:
|
|
776
|
+
timeZone: kn
|
|
792
777
|
};
|
|
793
|
-
function mt(
|
|
778
|
+
function mt(t, n = {}) {
|
|
794
779
|
if (arguments.length < 1)
|
|
795
780
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
796
|
-
if (
|
|
781
|
+
if (t === null)
|
|
797
782
|
return /* @__PURE__ */ new Date(NaN);
|
|
798
|
-
const a = n.additionalDigits == null ?
|
|
783
|
+
const a = n.additionalDigits == null ? Ua : Number(n.additionalDigits);
|
|
799
784
|
if (a !== 2 && a !== 1 && a !== 0)
|
|
800
785
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
801
|
-
if (
|
|
802
|
-
return new Date(
|
|
803
|
-
if (typeof
|
|
804
|
-
return new Date(
|
|
805
|
-
if (Object.prototype.toString.call(
|
|
786
|
+
if (t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]")
|
|
787
|
+
return new Date(t.getTime());
|
|
788
|
+
if (typeof t == "number" || Object.prototype.toString.call(t) === "[object Number]")
|
|
789
|
+
return new Date(t);
|
|
790
|
+
if (Object.prototype.toString.call(t) !== "[object String]")
|
|
806
791
|
return /* @__PURE__ */ new Date(NaN);
|
|
807
|
-
const
|
|
792
|
+
const o = Aa(t), { year: u, restDateString: d } = Va(o.date, a), y = Ba(d, u);
|
|
808
793
|
if (y === null || isNaN(y.getTime()))
|
|
809
794
|
return /* @__PURE__ */ new Date(NaN);
|
|
810
795
|
if (y) {
|
|
811
|
-
const
|
|
812
|
-
let
|
|
813
|
-
if (
|
|
796
|
+
const h = y.getTime();
|
|
797
|
+
let T = 0, N;
|
|
798
|
+
if (o.time && (T = ba(o.time), T === null || isNaN(T)))
|
|
814
799
|
return /* @__PURE__ */ new Date(NaN);
|
|
815
|
-
if (
|
|
816
|
-
if (
|
|
800
|
+
if (o.timeZone || n.timeZone) {
|
|
801
|
+
if (N = be(o.timeZone || n.timeZone, new Date(h + T)), isNaN(N))
|
|
817
802
|
return /* @__PURE__ */ new Date(NaN);
|
|
818
803
|
} else
|
|
819
|
-
|
|
820
|
-
return new Date(
|
|
804
|
+
N = Jt(new Date(h + T)), N = Jt(new Date(h + T + N));
|
|
805
|
+
return new Date(h + T + N);
|
|
821
806
|
} else
|
|
822
807
|
return /* @__PURE__ */ new Date(NaN);
|
|
823
808
|
}
|
|
824
|
-
function
|
|
809
|
+
function Aa(t) {
|
|
825
810
|
const n = {};
|
|
826
|
-
let a =
|
|
827
|
-
if (a ? (n.date = a[1],
|
|
828
|
-
const
|
|
829
|
-
|
|
811
|
+
let a = H.dateTimePattern.exec(t), o;
|
|
812
|
+
if (a ? (n.date = a[1], o = a[3]) : (a = H.datePattern.exec(t), a ? (n.date = a[1], o = a[2]) : (n.date = null, o = t)), o) {
|
|
813
|
+
const u = H.timeZone.exec(o);
|
|
814
|
+
u ? (n.time = o.replace(u[1], ""), n.timeZone = u[1].trim()) : n.time = o;
|
|
830
815
|
}
|
|
831
816
|
return n;
|
|
832
817
|
}
|
|
833
|
-
function
|
|
834
|
-
if (
|
|
835
|
-
const a =
|
|
836
|
-
let
|
|
837
|
-
if (
|
|
838
|
-
const d =
|
|
818
|
+
function Va(t, n) {
|
|
819
|
+
if (t) {
|
|
820
|
+
const a = H.YYY[n], o = H.YYYYY[n];
|
|
821
|
+
let u = H.YYYY.exec(t) || o.exec(t);
|
|
822
|
+
if (u) {
|
|
823
|
+
const d = u[1];
|
|
839
824
|
return {
|
|
840
825
|
year: parseInt(d, 10),
|
|
841
|
-
restDateString:
|
|
826
|
+
restDateString: t.slice(d.length)
|
|
842
827
|
};
|
|
843
828
|
}
|
|
844
|
-
if (
|
|
845
|
-
const d =
|
|
829
|
+
if (u = H.YY.exec(t) || a.exec(t), u) {
|
|
830
|
+
const d = u[1];
|
|
846
831
|
return {
|
|
847
832
|
year: parseInt(d, 10) * 100,
|
|
848
|
-
restDateString:
|
|
833
|
+
restDateString: t.slice(d.length)
|
|
849
834
|
};
|
|
850
835
|
}
|
|
851
836
|
}
|
|
@@ -853,132 +838,132 @@ function Ha(e, n) {
|
|
|
853
838
|
year: null
|
|
854
839
|
};
|
|
855
840
|
}
|
|
856
|
-
function
|
|
841
|
+
function Ba(t, n) {
|
|
857
842
|
if (n === null)
|
|
858
843
|
return null;
|
|
859
|
-
let a,
|
|
860
|
-
if (!
|
|
844
|
+
let a, o, u;
|
|
845
|
+
if (!t || !t.length)
|
|
861
846
|
return a = /* @__PURE__ */ new Date(0), a.setUTCFullYear(n), a;
|
|
862
|
-
let d =
|
|
847
|
+
let d = H.MM.exec(t);
|
|
863
848
|
if (d)
|
|
864
|
-
return a = /* @__PURE__ */ new Date(0),
|
|
865
|
-
if (d =
|
|
849
|
+
return a = /* @__PURE__ */ new Date(0), o = parseInt(d[1], 10) - 1, en(n, o) ? (a.setUTCFullYear(n, o), a) : /* @__PURE__ */ new Date(NaN);
|
|
850
|
+
if (d = H.DDD.exec(t), d) {
|
|
866
851
|
a = /* @__PURE__ */ new Date(0);
|
|
867
852
|
const y = parseInt(d[1], 10);
|
|
868
|
-
return
|
|
853
|
+
return Ya(n, y) ? (a.setUTCFullYear(n, 0, y), a) : /* @__PURE__ */ new Date(NaN);
|
|
869
854
|
}
|
|
870
|
-
if (d =
|
|
871
|
-
a = /* @__PURE__ */ new Date(0),
|
|
855
|
+
if (d = H.MMDD.exec(t), d) {
|
|
856
|
+
a = /* @__PURE__ */ new Date(0), o = parseInt(d[1], 10) - 1;
|
|
872
857
|
const y = parseInt(d[2], 10);
|
|
873
|
-
return en(n,
|
|
858
|
+
return en(n, o, y) ? (a.setUTCFullYear(n, o, y), a) : /* @__PURE__ */ new Date(NaN);
|
|
874
859
|
}
|
|
875
|
-
if (d =
|
|
876
|
-
return
|
|
877
|
-
if (d =
|
|
878
|
-
|
|
860
|
+
if (d = H.Www.exec(t), d)
|
|
861
|
+
return u = parseInt(d[1], 10) - 1, tn(u) ? Xt(n, u) : /* @__PURE__ */ new Date(NaN);
|
|
862
|
+
if (d = H.WwwD.exec(t), d) {
|
|
863
|
+
u = parseInt(d[1], 10) - 1;
|
|
879
864
|
const y = parseInt(d[2], 10) - 1;
|
|
880
|
-
return tn(
|
|
865
|
+
return tn(u, y) ? Xt(n, u, y) : /* @__PURE__ */ new Date(NaN);
|
|
881
866
|
}
|
|
882
867
|
return null;
|
|
883
868
|
}
|
|
884
|
-
function
|
|
885
|
-
let n, a,
|
|
886
|
-
if (
|
|
887
|
-
return n = parseFloat(
|
|
888
|
-
if (
|
|
889
|
-
return n = parseInt(
|
|
890
|
-
if (
|
|
891
|
-
n = parseInt(
|
|
892
|
-
const
|
|
893
|
-
return
|
|
869
|
+
function ba(t) {
|
|
870
|
+
let n, a, o = H.HH.exec(t);
|
|
871
|
+
if (o)
|
|
872
|
+
return n = parseFloat(o[1].replace(",", ".")), rt(n) ? n % 24 * nt : NaN;
|
|
873
|
+
if (o = H.HHMM.exec(t), o)
|
|
874
|
+
return n = parseInt(o[1], 10), a = parseFloat(o[2].replace(",", ".")), rt(n, a) ? n % 24 * nt + a * Qt : NaN;
|
|
875
|
+
if (o = H.HHMMSS.exec(t), o) {
|
|
876
|
+
n = parseInt(o[1], 10), a = parseInt(o[2], 10);
|
|
877
|
+
const u = parseFloat(o[3].replace(",", "."));
|
|
878
|
+
return rt(n, a, u) ? n % 24 * nt + a * Qt + u * 1e3 : NaN;
|
|
894
879
|
}
|
|
895
880
|
return null;
|
|
896
881
|
}
|
|
897
|
-
function Xt(
|
|
882
|
+
function Xt(t, n, a) {
|
|
898
883
|
n = n || 0, a = a || 0;
|
|
899
|
-
const
|
|
900
|
-
|
|
901
|
-
const
|
|
902
|
-
return
|
|
884
|
+
const o = /* @__PURE__ */ new Date(0);
|
|
885
|
+
o.setUTCFullYear(t, 0, 4);
|
|
886
|
+
const u = o.getUTCDay() || 7, d = n * 7 + a + 1 - u;
|
|
887
|
+
return o.setUTCDate(o.getUTCDate() + d), o;
|
|
903
888
|
}
|
|
904
|
-
const
|
|
905
|
-
function
|
|
906
|
-
return
|
|
889
|
+
const za = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ha = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
890
|
+
function Nn(t) {
|
|
891
|
+
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
907
892
|
}
|
|
908
|
-
function en(
|
|
893
|
+
function en(t, n, a) {
|
|
909
894
|
if (n < 0 || n > 11)
|
|
910
895
|
return !1;
|
|
911
896
|
if (a != null) {
|
|
912
897
|
if (a < 1)
|
|
913
898
|
return !1;
|
|
914
|
-
const
|
|
915
|
-
if (
|
|
899
|
+
const o = Nn(t);
|
|
900
|
+
if (o && a > Ha[n] || !o && a > za[n])
|
|
916
901
|
return !1;
|
|
917
902
|
}
|
|
918
903
|
return !0;
|
|
919
904
|
}
|
|
920
|
-
function
|
|
905
|
+
function Ya(t, n) {
|
|
921
906
|
if (n < 1)
|
|
922
907
|
return !1;
|
|
923
|
-
const a =
|
|
908
|
+
const a = Nn(t);
|
|
924
909
|
return !(a && n > 366 || !a && n > 365);
|
|
925
910
|
}
|
|
926
|
-
function tn(
|
|
927
|
-
return !(
|
|
911
|
+
function tn(t, n) {
|
|
912
|
+
return !(t < 0 || t > 52 || n != null && (n < 0 || n > 6));
|
|
928
913
|
}
|
|
929
|
-
function
|
|
930
|
-
return !(
|
|
914
|
+
function rt(t, n, a) {
|
|
915
|
+
return !(t < 0 || t >= 25 || n != null && (n < 0 || n >= 60) || a != null && (a < 0 || a >= 60));
|
|
931
916
|
}
|
|
932
|
-
function
|
|
933
|
-
|
|
934
|
-
const
|
|
935
|
-
return d.setFullYear(
|
|
917
|
+
function $a(t, n, a) {
|
|
918
|
+
t = mt(t, a);
|
|
919
|
+
const o = be(n, t, !0), u = new Date(t.getTime() - o), d = /* @__PURE__ */ new Date(0);
|
|
920
|
+
return d.setFullYear(u.getUTCFullYear(), u.getUTCMonth(), u.getUTCDate()), d.setHours(u.getUTCHours(), u.getUTCMinutes(), u.getUTCSeconds(), u.getUTCMilliseconds()), d;
|
|
936
921
|
}
|
|
937
|
-
function
|
|
938
|
-
if (typeof
|
|
939
|
-
return mt(
|
|
940
|
-
|
|
941
|
-
const
|
|
942
|
-
return new Date(
|
|
922
|
+
function ja(t, n, a) {
|
|
923
|
+
if (typeof t == "string" && !t.match(kn))
|
|
924
|
+
return mt(t, { ...a, timeZone: n });
|
|
925
|
+
t = mt(t, a);
|
|
926
|
+
const o = yt(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()).getTime(), u = be(n, new Date(o));
|
|
927
|
+
return new Date(o + u);
|
|
943
928
|
}
|
|
944
|
-
function
|
|
945
|
-
return -
|
|
929
|
+
function Ka(t, n) {
|
|
930
|
+
return -be(t, n);
|
|
946
931
|
}
|
|
947
|
-
var
|
|
932
|
+
var Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ue = { exports: {} };
|
|
948
933
|
Ue.exports;
|
|
949
934
|
var nn;
|
|
950
|
-
function
|
|
951
|
-
return nn || (nn = 1, (function(
|
|
952
|
-
var a = 200,
|
|
953
|
-
|
|
954
|
-
var
|
|
955
|
-
function
|
|
935
|
+
function qa() {
|
|
936
|
+
return nn || (nn = 1, (function(t, n) {
|
|
937
|
+
var a = 200, o = "__lodash_hash_undefined__", u = 9007199254740991, d = "[object Arguments]", y = "[object Array]", h = "[object Boolean]", T = "[object Date]", N = "[object Error]", S = "[object Function]", E = "[object GeneratorFunction]", F = "[object Map]", O = "[object Number]", C = "[object Object]", P = "[object Promise]", L = "[object RegExp]", A = "[object Set]", I = "[object String]", U = "[object Symbol]", z = "[object WeakMap]", b = "[object ArrayBuffer]", f = "[object DataView]", _ = "[object Float32Array]", s = "[object Float64Array]", p = "[object Int8Array]", g = "[object Int16Array]", D = "[object Int32Array]", e = "[object Uint8Array]", i = "[object Uint8ClampedArray]", l = "[object Uint16Array]", w = "[object Uint32Array]", x = /[\\^$.*+?()[\]{}|]/g, k = /\w*$/, G = /^\[object .+?Constructor\]$/, K = /^(?:0|[1-9]\d*)$/, R = {};
|
|
938
|
+
R[d] = R[y] = R[b] = R[f] = R[h] = R[T] = R[_] = R[s] = R[p] = R[g] = R[D] = R[F] = R[O] = R[C] = R[L] = R[A] = R[I] = R[U] = R[e] = R[i] = R[l] = R[w] = !0, R[N] = R[S] = R[z] = !1;
|
|
939
|
+
var W = typeof Ge == "object" && Ge && Ge.Object === Object && Ge, J = typeof self == "object" && self && self.Object === Object && self, q = W || J || Function("return this")(), _t = n && !n.nodeType && n, gt = _t && !0 && t && !t.nodeType && t, Rn = gt && gt.exports === _t;
|
|
940
|
+
function En(r, c) {
|
|
956
941
|
return r.set(c[0], c[1]), r;
|
|
957
942
|
}
|
|
958
|
-
function
|
|
943
|
+
function Pn(r, c) {
|
|
959
944
|
return r.add(c), r;
|
|
960
945
|
}
|
|
961
|
-
function
|
|
962
|
-
for (var
|
|
946
|
+
function Ln(r, c) {
|
|
947
|
+
for (var m = -1, M = r ? r.length : 0; ++m < M && c(r[m], m, r) !== !1; )
|
|
963
948
|
;
|
|
964
949
|
return r;
|
|
965
950
|
}
|
|
966
|
-
function
|
|
967
|
-
for (var
|
|
968
|
-
r[B +
|
|
951
|
+
function Cn(r, c) {
|
|
952
|
+
for (var m = -1, M = c.length, B = r.length; ++m < M; )
|
|
953
|
+
r[B + m] = c[m];
|
|
969
954
|
return r;
|
|
970
955
|
}
|
|
971
|
-
function wt(r, c,
|
|
972
|
-
for (var B = -1,
|
|
973
|
-
|
|
974
|
-
return
|
|
956
|
+
function wt(r, c, m, M) {
|
|
957
|
+
for (var B = -1, Y = r ? r.length : 0; ++B < Y; )
|
|
958
|
+
m = c(m, r[B], B, r);
|
|
959
|
+
return m;
|
|
975
960
|
}
|
|
976
|
-
function
|
|
977
|
-
for (var
|
|
978
|
-
M[
|
|
961
|
+
function Gn(r, c) {
|
|
962
|
+
for (var m = -1, M = Array(r); ++m < r; )
|
|
963
|
+
M[m] = c(m);
|
|
979
964
|
return M;
|
|
980
965
|
}
|
|
981
|
-
function
|
|
966
|
+
function On(r, c) {
|
|
982
967
|
return r?.[c];
|
|
983
968
|
}
|
|
984
969
|
function vt(r) {
|
|
@@ -991,352 +976,352 @@ function Qa() {
|
|
|
991
976
|
return c;
|
|
992
977
|
}
|
|
993
978
|
function xt(r) {
|
|
994
|
-
var c = -1,
|
|
979
|
+
var c = -1, m = Array(r.size);
|
|
995
980
|
return r.forEach(function(M, B) {
|
|
996
|
-
|
|
997
|
-
}),
|
|
981
|
+
m[++c] = [B, M];
|
|
982
|
+
}), m;
|
|
998
983
|
}
|
|
999
|
-
function
|
|
1000
|
-
return function(
|
|
1001
|
-
return r(c(
|
|
984
|
+
function ze(r, c) {
|
|
985
|
+
return function(m) {
|
|
986
|
+
return r(c(m));
|
|
1002
987
|
};
|
|
1003
988
|
}
|
|
1004
|
-
function
|
|
1005
|
-
var c = -1,
|
|
989
|
+
function Mt(r) {
|
|
990
|
+
var c = -1, m = Array(r.size);
|
|
1006
991
|
return r.forEach(function(M) {
|
|
1007
|
-
|
|
1008
|
-
}),
|
|
992
|
+
m[++c] = M;
|
|
993
|
+
}), m;
|
|
1009
994
|
}
|
|
1010
|
-
var
|
|
995
|
+
var In = Array.prototype, Un = Function.prototype, Se = Object.prototype, He = q["__core-js_shared__"], Ft = (function() {
|
|
1011
996
|
var r = /[^.]+$/.exec(He && He.keys && He.keys.IE_PROTO || "");
|
|
1012
997
|
return r ? "Symbol(src)_1." + r : "";
|
|
1013
|
-
})(), Tt =
|
|
1014
|
-
"^" + Tt.call(
|
|
1015
|
-
), St =
|
|
1016
|
-
function
|
|
1017
|
-
var c = -1,
|
|
1018
|
-
for (this.clear(); ++c <
|
|
998
|
+
})(), Tt = Un.toString, ne = Se.hasOwnProperty, De = Se.toString, An = RegExp(
|
|
999
|
+
"^" + Tt.call(ne).replace(x, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1000
|
+
), St = Rn ? q.Buffer : void 0, Dt = q.Symbol, kt = q.Uint8Array, Vn = ze(Object.getPrototypeOf, Object), Bn = Object.create, bn = Se.propertyIsEnumerable, zn = In.splice, Nt = Object.getOwnPropertySymbols, Hn = St ? St.isBuffer : void 0, Yn = ze(Object.keys, Object), Ye = fe(q, "DataView"), ge = fe(q, "Map"), $e = fe(q, "Promise"), je = fe(q, "Set"), Ke = fe(q, "WeakMap"), we = fe(Object, "create"), $n = oe(Ye), jn = oe(ge), Kn = oe($e), qn = oe(je), Wn = oe(Ke), Rt = Dt ? Dt.prototype : void 0, Et = Rt ? Rt.valueOf : void 0;
|
|
1001
|
+
function ae(r) {
|
|
1002
|
+
var c = -1, m = r ? r.length : 0;
|
|
1003
|
+
for (this.clear(); ++c < m; ) {
|
|
1019
1004
|
var M = r[c];
|
|
1020
1005
|
this.set(M[0], M[1]);
|
|
1021
1006
|
}
|
|
1022
1007
|
}
|
|
1023
|
-
function
|
|
1024
|
-
this.__data__ =
|
|
1008
|
+
function Zn() {
|
|
1009
|
+
this.__data__ = we ? we(null) : {};
|
|
1025
1010
|
}
|
|
1026
|
-
function
|
|
1011
|
+
function Jn(r) {
|
|
1027
1012
|
return this.has(r) && delete this.__data__[r];
|
|
1028
1013
|
}
|
|
1029
|
-
function
|
|
1014
|
+
function Qn(r) {
|
|
1030
1015
|
var c = this.__data__;
|
|
1031
|
-
if (
|
|
1032
|
-
var
|
|
1033
|
-
return
|
|
1016
|
+
if (we) {
|
|
1017
|
+
var m = c[r];
|
|
1018
|
+
return m === o ? void 0 : m;
|
|
1034
1019
|
}
|
|
1035
|
-
return
|
|
1020
|
+
return ne.call(c, r) ? c[r] : void 0;
|
|
1036
1021
|
}
|
|
1037
|
-
function
|
|
1022
|
+
function Xn(r) {
|
|
1038
1023
|
var c = this.__data__;
|
|
1039
|
-
return
|
|
1024
|
+
return we ? c[r] !== void 0 : ne.call(c, r);
|
|
1040
1025
|
}
|
|
1041
|
-
function
|
|
1042
|
-
var
|
|
1043
|
-
return
|
|
1026
|
+
function er(r, c) {
|
|
1027
|
+
var m = this.__data__;
|
|
1028
|
+
return m[r] = we && c === void 0 ? o : c, this;
|
|
1044
1029
|
}
|
|
1045
|
-
|
|
1046
|
-
function
|
|
1047
|
-
var c = -1,
|
|
1048
|
-
for (this.clear(); ++c <
|
|
1030
|
+
ae.prototype.clear = Zn, ae.prototype.delete = Jn, ae.prototype.get = Qn, ae.prototype.has = Xn, ae.prototype.set = er;
|
|
1031
|
+
function X(r) {
|
|
1032
|
+
var c = -1, m = r ? r.length : 0;
|
|
1033
|
+
for (this.clear(); ++c < m; ) {
|
|
1049
1034
|
var M = r[c];
|
|
1050
1035
|
this.set(M[0], M[1]);
|
|
1051
1036
|
}
|
|
1052
1037
|
}
|
|
1053
|
-
function
|
|
1038
|
+
function tr() {
|
|
1054
1039
|
this.__data__ = [];
|
|
1055
1040
|
}
|
|
1056
|
-
function
|
|
1057
|
-
var c = this.__data__,
|
|
1058
|
-
if (
|
|
1041
|
+
function nr(r) {
|
|
1042
|
+
var c = this.__data__, m = ke(c, r);
|
|
1043
|
+
if (m < 0)
|
|
1059
1044
|
return !1;
|
|
1060
1045
|
var M = c.length - 1;
|
|
1061
|
-
return
|
|
1046
|
+
return m == M ? c.pop() : zn.call(c, m, 1), !0;
|
|
1062
1047
|
}
|
|
1063
|
-
function
|
|
1064
|
-
var c = this.__data__,
|
|
1065
|
-
return
|
|
1048
|
+
function rr(r) {
|
|
1049
|
+
var c = this.__data__, m = ke(c, r);
|
|
1050
|
+
return m < 0 ? void 0 : c[m][1];
|
|
1066
1051
|
}
|
|
1067
|
-
function
|
|
1068
|
-
return
|
|
1052
|
+
function ar(r) {
|
|
1053
|
+
return ke(this.__data__, r) > -1;
|
|
1069
1054
|
}
|
|
1070
|
-
function
|
|
1071
|
-
var
|
|
1072
|
-
return M < 0 ?
|
|
1055
|
+
function ir(r, c) {
|
|
1056
|
+
var m = this.__data__, M = ke(m, r);
|
|
1057
|
+
return M < 0 ? m.push([r, c]) : m[M][1] = c, this;
|
|
1073
1058
|
}
|
|
1074
|
-
|
|
1075
|
-
function
|
|
1076
|
-
var c = -1,
|
|
1077
|
-
for (this.clear(); ++c <
|
|
1059
|
+
X.prototype.clear = tr, X.prototype.delete = nr, X.prototype.get = rr, X.prototype.has = ar, X.prototype.set = ir;
|
|
1060
|
+
function de(r) {
|
|
1061
|
+
var c = -1, m = r ? r.length : 0;
|
|
1062
|
+
for (this.clear(); ++c < m; ) {
|
|
1078
1063
|
var M = r[c];
|
|
1079
1064
|
this.set(M[0], M[1]);
|
|
1080
1065
|
}
|
|
1081
1066
|
}
|
|
1082
|
-
function
|
|
1067
|
+
function or() {
|
|
1083
1068
|
this.__data__ = {
|
|
1084
|
-
hash: new
|
|
1085
|
-
map: new (
|
|
1086
|
-
string: new
|
|
1069
|
+
hash: new ae(),
|
|
1070
|
+
map: new (ge || X)(),
|
|
1071
|
+
string: new ae()
|
|
1087
1072
|
};
|
|
1088
1073
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return
|
|
1074
|
+
function sr(r) {
|
|
1075
|
+
return Ne(this, r).delete(r);
|
|
1091
1076
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return
|
|
1077
|
+
function lr(r) {
|
|
1078
|
+
return Ne(this, r).get(r);
|
|
1094
1079
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return
|
|
1080
|
+
function ur(r) {
|
|
1081
|
+
return Ne(this, r).has(r);
|
|
1097
1082
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return
|
|
1083
|
+
function cr(r, c) {
|
|
1084
|
+
return Ne(this, r).set(r, c), this;
|
|
1100
1085
|
}
|
|
1101
|
-
|
|
1102
|
-
function
|
|
1103
|
-
this.__data__ = new
|
|
1086
|
+
de.prototype.clear = or, de.prototype.delete = sr, de.prototype.get = lr, de.prototype.has = ur, de.prototype.set = cr;
|
|
1087
|
+
function me(r) {
|
|
1088
|
+
this.__data__ = new X(r);
|
|
1104
1089
|
}
|
|
1105
|
-
function
|
|
1106
|
-
this.__data__ = new
|
|
1090
|
+
function dr() {
|
|
1091
|
+
this.__data__ = new X();
|
|
1107
1092
|
}
|
|
1108
|
-
function
|
|
1093
|
+
function mr(r) {
|
|
1109
1094
|
return this.__data__.delete(r);
|
|
1110
1095
|
}
|
|
1111
|
-
function
|
|
1096
|
+
function fr(r) {
|
|
1112
1097
|
return this.__data__.get(r);
|
|
1113
1098
|
}
|
|
1114
|
-
function
|
|
1099
|
+
function pr(r) {
|
|
1115
1100
|
return this.__data__.has(r);
|
|
1116
1101
|
}
|
|
1117
|
-
function
|
|
1118
|
-
var
|
|
1119
|
-
if (
|
|
1120
|
-
var M =
|
|
1121
|
-
if (!
|
|
1102
|
+
function yr(r, c) {
|
|
1103
|
+
var m = this.__data__;
|
|
1104
|
+
if (m instanceof X) {
|
|
1105
|
+
var M = m.__data__;
|
|
1106
|
+
if (!ge || M.length < a - 1)
|
|
1122
1107
|
return M.push([r, c]), this;
|
|
1123
|
-
|
|
1108
|
+
m = this.__data__ = new de(M);
|
|
1124
1109
|
}
|
|
1125
|
-
return
|
|
1110
|
+
return m.set(r, c), this;
|
|
1126
1111
|
}
|
|
1127
|
-
|
|
1128
|
-
function
|
|
1129
|
-
var
|
|
1130
|
-
for (var
|
|
1131
|
-
|
|
1132
|
-
return
|
|
1112
|
+
me.prototype.clear = dr, me.prototype.delete = mr, me.prototype.get = fr, me.prototype.has = pr, me.prototype.set = yr;
|
|
1113
|
+
function hr(r, c) {
|
|
1114
|
+
var m = Ze(r) || Br(r) ? Gn(r.length, String) : [], M = m.length, B = !!M;
|
|
1115
|
+
for (var Y in r)
|
|
1116
|
+
ne.call(r, Y) && !(B && (Y == "length" || Ir(Y, M))) && m.push(Y);
|
|
1117
|
+
return m;
|
|
1133
1118
|
}
|
|
1134
|
-
function
|
|
1119
|
+
function Pt(r, c, m) {
|
|
1135
1120
|
var M = r[c];
|
|
1136
|
-
(!(
|
|
1121
|
+
(!(ne.call(r, c) && Ot(M, m)) || m === void 0 && !(c in r)) && (r[c] = m);
|
|
1137
1122
|
}
|
|
1138
|
-
function
|
|
1139
|
-
for (var
|
|
1140
|
-
if (
|
|
1141
|
-
return
|
|
1123
|
+
function ke(r, c) {
|
|
1124
|
+
for (var m = r.length; m--; )
|
|
1125
|
+
if (Ot(r[m][0], c))
|
|
1126
|
+
return m;
|
|
1142
1127
|
return -1;
|
|
1143
1128
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return r &&
|
|
1129
|
+
function _r(r, c) {
|
|
1130
|
+
return r && Lt(c, Je(c), r);
|
|
1146
1131
|
}
|
|
1147
|
-
function qe(r, c,
|
|
1148
|
-
var
|
|
1149
|
-
if (M && (
|
|
1150
|
-
return
|
|
1132
|
+
function qe(r, c, m, M, B, Y, ee) {
|
|
1133
|
+
var $;
|
|
1134
|
+
if (M && ($ = Y ? M(r, B, Y, ee) : M(r)), $ !== void 0)
|
|
1135
|
+
return $;
|
|
1151
1136
|
if (!Re(r))
|
|
1152
1137
|
return r;
|
|
1153
1138
|
var At = Ze(r);
|
|
1154
1139
|
if (At) {
|
|
1155
|
-
if (
|
|
1156
|
-
return
|
|
1140
|
+
if ($ = Cr(r), !c)
|
|
1141
|
+
return Er(r, $);
|
|
1157
1142
|
} else {
|
|
1158
|
-
var
|
|
1159
|
-
if (
|
|
1160
|
-
return
|
|
1161
|
-
if (
|
|
1143
|
+
var pe = ie(r), Vt = pe == S || pe == E;
|
|
1144
|
+
if (zr(r))
|
|
1145
|
+
return Fr(r, c);
|
|
1146
|
+
if (pe == C || pe == d || Vt && !Y) {
|
|
1162
1147
|
if (vt(r))
|
|
1163
|
-
return
|
|
1164
|
-
if (
|
|
1165
|
-
return
|
|
1148
|
+
return Y ? r : {};
|
|
1149
|
+
if ($ = Gr(Vt ? {} : r), !c)
|
|
1150
|
+
return Pr(r, _r($, r));
|
|
1166
1151
|
} else {
|
|
1167
|
-
if (!
|
|
1168
|
-
return
|
|
1169
|
-
|
|
1152
|
+
if (!R[pe])
|
|
1153
|
+
return Y ? r : {};
|
|
1154
|
+
$ = Or(r, pe, qe, c);
|
|
1170
1155
|
}
|
|
1171
1156
|
}
|
|
1172
|
-
|
|
1173
|
-
var Bt =
|
|
1157
|
+
ee || (ee = new me());
|
|
1158
|
+
var Bt = ee.get(r);
|
|
1174
1159
|
if (Bt)
|
|
1175
1160
|
return Bt;
|
|
1176
|
-
if (
|
|
1177
|
-
var
|
|
1178
|
-
return
|
|
1179
|
-
|
|
1180
|
-
}),
|
|
1161
|
+
if (ee.set(r, $), !At)
|
|
1162
|
+
var bt = m ? Lr(r) : Je(r);
|
|
1163
|
+
return Ln(bt || r, function(Qe, Ee) {
|
|
1164
|
+
bt && (Ee = Qe, Qe = r[Ee]), Pt($, Ee, qe(Qe, c, m, M, Ee, r, ee));
|
|
1165
|
+
}), $;
|
|
1181
1166
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return Re(r) ?
|
|
1167
|
+
function gr(r) {
|
|
1168
|
+
return Re(r) ? Bn(r) : {};
|
|
1184
1169
|
}
|
|
1185
|
-
function
|
|
1170
|
+
function wr(r, c, m) {
|
|
1186
1171
|
var M = c(r);
|
|
1187
|
-
return Ze(r) ? M :
|
|
1172
|
+
return Ze(r) ? M : Cn(M, m(r));
|
|
1188
1173
|
}
|
|
1189
|
-
function
|
|
1174
|
+
function vr(r) {
|
|
1190
1175
|
return De.call(r);
|
|
1191
1176
|
}
|
|
1192
|
-
function
|
|
1193
|
-
if (!Re(r) ||
|
|
1177
|
+
function xr(r) {
|
|
1178
|
+
if (!Re(r) || Ar(r))
|
|
1194
1179
|
return !1;
|
|
1195
|
-
var c = Ut(r) || vt(r) ?
|
|
1196
|
-
return c.test(
|
|
1180
|
+
var c = Ut(r) || vt(r) ? An : G;
|
|
1181
|
+
return c.test(oe(r));
|
|
1197
1182
|
}
|
|
1198
|
-
function
|
|
1199
|
-
if (!
|
|
1200
|
-
return
|
|
1183
|
+
function Mr(r) {
|
|
1184
|
+
if (!Gt(r))
|
|
1185
|
+
return Yn(r);
|
|
1201
1186
|
var c = [];
|
|
1202
|
-
for (var
|
|
1203
|
-
|
|
1187
|
+
for (var m in Object(r))
|
|
1188
|
+
ne.call(r, m) && m != "constructor" && c.push(m);
|
|
1204
1189
|
return c;
|
|
1205
1190
|
}
|
|
1206
|
-
function
|
|
1191
|
+
function Fr(r, c) {
|
|
1207
1192
|
if (c)
|
|
1208
1193
|
return r.slice();
|
|
1209
|
-
var
|
|
1210
|
-
return r.copy(
|
|
1194
|
+
var m = new r.constructor(r.length);
|
|
1195
|
+
return r.copy(m), m;
|
|
1211
1196
|
}
|
|
1212
1197
|
function We(r) {
|
|
1213
1198
|
var c = new r.constructor(r.byteLength);
|
|
1214
|
-
return new
|
|
1199
|
+
return new kt(c).set(new kt(r)), c;
|
|
1215
1200
|
}
|
|
1216
|
-
function
|
|
1217
|
-
var
|
|
1218
|
-
return new r.constructor(
|
|
1201
|
+
function Tr(r, c) {
|
|
1202
|
+
var m = c ? We(r.buffer) : r.buffer;
|
|
1203
|
+
return new r.constructor(m, r.byteOffset, r.byteLength);
|
|
1219
1204
|
}
|
|
1220
|
-
function
|
|
1221
|
-
var M = c ?
|
|
1222
|
-
return wt(M,
|
|
1205
|
+
function Sr(r, c, m) {
|
|
1206
|
+
var M = c ? m(xt(r), !0) : xt(r);
|
|
1207
|
+
return wt(M, En, new r.constructor());
|
|
1223
1208
|
}
|
|
1224
|
-
function
|
|
1225
|
-
var c = new r.constructor(r.source,
|
|
1209
|
+
function Dr(r) {
|
|
1210
|
+
var c = new r.constructor(r.source, k.exec(r));
|
|
1226
1211
|
return c.lastIndex = r.lastIndex, c;
|
|
1227
1212
|
}
|
|
1228
|
-
function
|
|
1229
|
-
var M = c ?
|
|
1230
|
-
return wt(M,
|
|
1213
|
+
function kr(r, c, m) {
|
|
1214
|
+
var M = c ? m(Mt(r), !0) : Mt(r);
|
|
1215
|
+
return wt(M, Pn, new r.constructor());
|
|
1231
1216
|
}
|
|
1232
|
-
function
|
|
1217
|
+
function Nr(r) {
|
|
1233
1218
|
return Et ? Object(Et.call(r)) : {};
|
|
1234
1219
|
}
|
|
1235
|
-
function
|
|
1236
|
-
var
|
|
1237
|
-
return new r.constructor(
|
|
1220
|
+
function Rr(r, c) {
|
|
1221
|
+
var m = c ? We(r.buffer) : r.buffer;
|
|
1222
|
+
return new r.constructor(m, r.byteOffset, r.length);
|
|
1238
1223
|
}
|
|
1239
|
-
function
|
|
1240
|
-
var
|
|
1241
|
-
for (c || (c = Array(M)); ++
|
|
1242
|
-
c[
|
|
1224
|
+
function Er(r, c) {
|
|
1225
|
+
var m = -1, M = r.length;
|
|
1226
|
+
for (c || (c = Array(M)); ++m < M; )
|
|
1227
|
+
c[m] = r[m];
|
|
1243
1228
|
return c;
|
|
1244
1229
|
}
|
|
1245
|
-
function
|
|
1246
|
-
|
|
1247
|
-
for (var B = -1,
|
|
1248
|
-
var
|
|
1249
|
-
|
|
1230
|
+
function Lt(r, c, m, M) {
|
|
1231
|
+
m || (m = {});
|
|
1232
|
+
for (var B = -1, Y = c.length; ++B < Y; ) {
|
|
1233
|
+
var ee = c[B], $ = void 0;
|
|
1234
|
+
Pt(m, ee, $ === void 0 ? r[ee] : $);
|
|
1250
1235
|
}
|
|
1251
|
-
return
|
|
1236
|
+
return m;
|
|
1252
1237
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return
|
|
1238
|
+
function Pr(r, c) {
|
|
1239
|
+
return Lt(r, Ct(r), c);
|
|
1255
1240
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return
|
|
1241
|
+
function Lr(r) {
|
|
1242
|
+
return wr(r, Je, Ct);
|
|
1258
1243
|
}
|
|
1259
|
-
function
|
|
1260
|
-
var
|
|
1261
|
-
return
|
|
1244
|
+
function Ne(r, c) {
|
|
1245
|
+
var m = r.__data__;
|
|
1246
|
+
return Ur(c) ? m[typeof c == "string" ? "string" : "hash"] : m.map;
|
|
1262
1247
|
}
|
|
1263
|
-
function
|
|
1264
|
-
var
|
|
1265
|
-
return
|
|
1248
|
+
function fe(r, c) {
|
|
1249
|
+
var m = On(r, c);
|
|
1250
|
+
return xr(m) ? m : void 0;
|
|
1266
1251
|
}
|
|
1267
|
-
var
|
|
1268
|
-
(Ye &&
|
|
1269
|
-
var c = De.call(r),
|
|
1252
|
+
var Ct = Nt ? ze(Nt, Object) : $r, ie = vr;
|
|
1253
|
+
(Ye && ie(new Ye(new ArrayBuffer(1))) != f || ge && ie(new ge()) != F || $e && ie($e.resolve()) != P || je && ie(new je()) != A || Ke && ie(new Ke()) != z) && (ie = function(r) {
|
|
1254
|
+
var c = De.call(r), m = c == C ? r.constructor : void 0, M = m ? oe(m) : void 0;
|
|
1270
1255
|
if (M)
|
|
1271
1256
|
switch (M) {
|
|
1272
|
-
case Hn:
|
|
1273
|
-
return p;
|
|
1274
|
-
case Yn:
|
|
1275
|
-
return L;
|
|
1276
1257
|
case $n:
|
|
1277
|
-
return
|
|
1258
|
+
return f;
|
|
1278
1259
|
case jn:
|
|
1279
|
-
return
|
|
1260
|
+
return F;
|
|
1280
1261
|
case Kn:
|
|
1281
|
-
return
|
|
1262
|
+
return P;
|
|
1263
|
+
case qn:
|
|
1264
|
+
return A;
|
|
1265
|
+
case Wn:
|
|
1266
|
+
return z;
|
|
1282
1267
|
}
|
|
1283
1268
|
return c;
|
|
1284
1269
|
});
|
|
1285
|
-
function
|
|
1286
|
-
var c = r.length,
|
|
1287
|
-
return c && typeof r[0] == "string" &&
|
|
1270
|
+
function Cr(r) {
|
|
1271
|
+
var c = r.length, m = r.constructor(c);
|
|
1272
|
+
return c && typeof r[0] == "string" && ne.call(r, "index") && (m.index = r.index, m.input = r.input), m;
|
|
1288
1273
|
}
|
|
1289
|
-
function
|
|
1290
|
-
return typeof r.constructor == "function" && !
|
|
1274
|
+
function Gr(r) {
|
|
1275
|
+
return typeof r.constructor == "function" && !Gt(r) ? gr(Vn(r)) : {};
|
|
1291
1276
|
}
|
|
1292
|
-
function
|
|
1277
|
+
function Or(r, c, m, M) {
|
|
1293
1278
|
var B = r.constructor;
|
|
1294
1279
|
switch (c) {
|
|
1295
|
-
case
|
|
1280
|
+
case b:
|
|
1296
1281
|
return We(r);
|
|
1297
|
-
case
|
|
1298
|
-
case
|
|
1282
|
+
case h:
|
|
1283
|
+
case T:
|
|
1299
1284
|
return new B(+r);
|
|
1285
|
+
case f:
|
|
1286
|
+
return Tr(r, M);
|
|
1287
|
+
case _:
|
|
1288
|
+
case s:
|
|
1300
1289
|
case p:
|
|
1301
|
-
return Fr(r, M);
|
|
1302
1290
|
case g:
|
|
1303
|
-
case
|
|
1304
|
-
case
|
|
1305
|
-
case
|
|
1306
|
-
case
|
|
1307
|
-
case
|
|
1308
|
-
|
|
1309
|
-
case u:
|
|
1291
|
+
case D:
|
|
1292
|
+
case e:
|
|
1293
|
+
case i:
|
|
1294
|
+
case l:
|
|
1295
|
+
case w:
|
|
1296
|
+
return Rr(r, M);
|
|
1310
1297
|
case F:
|
|
1311
|
-
return
|
|
1312
|
-
case
|
|
1313
|
-
|
|
1314
|
-
case R:
|
|
1315
|
-
case U:
|
|
1298
|
+
return Sr(r, M, m);
|
|
1299
|
+
case O:
|
|
1300
|
+
case I:
|
|
1316
1301
|
return new B(r);
|
|
1317
|
-
case
|
|
1318
|
-
return Tr(r);
|
|
1319
|
-
case V:
|
|
1320
|
-
return Sr(r, M, f);
|
|
1321
|
-
case z:
|
|
1302
|
+
case L:
|
|
1322
1303
|
return Dr(r);
|
|
1304
|
+
case A:
|
|
1305
|
+
return kr(r, M, m);
|
|
1306
|
+
case U:
|
|
1307
|
+
return Nr(r);
|
|
1323
1308
|
}
|
|
1324
1309
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return c = c ??
|
|
1310
|
+
function Ir(r, c) {
|
|
1311
|
+
return c = c ?? u, !!c && (typeof r == "number" || K.test(r)) && r > -1 && r % 1 == 0 && r < c;
|
|
1327
1312
|
}
|
|
1328
|
-
function
|
|
1313
|
+
function Ur(r) {
|
|
1329
1314
|
var c = typeof r;
|
|
1330
1315
|
return c == "string" || c == "number" || c == "symbol" || c == "boolean" ? r !== "__proto__" : r === null;
|
|
1331
1316
|
}
|
|
1332
|
-
function
|
|
1333
|
-
return !!
|
|
1317
|
+
function Ar(r) {
|
|
1318
|
+
return !!Ft && Ft in r;
|
|
1334
1319
|
}
|
|
1335
|
-
function
|
|
1336
|
-
var c = r && r.constructor,
|
|
1337
|
-
return r ===
|
|
1320
|
+
function Gt(r) {
|
|
1321
|
+
var c = r && r.constructor, m = typeof c == "function" && c.prototype || Se;
|
|
1322
|
+
return r === m;
|
|
1338
1323
|
}
|
|
1339
|
-
function
|
|
1324
|
+
function oe(r) {
|
|
1340
1325
|
if (r != null) {
|
|
1341
1326
|
try {
|
|
1342
1327
|
return Tt.call(r);
|
|
@@ -1349,52 +1334,52 @@ function Qa() {
|
|
|
1349
1334
|
}
|
|
1350
1335
|
return "";
|
|
1351
1336
|
}
|
|
1352
|
-
function
|
|
1337
|
+
function Vr(r) {
|
|
1353
1338
|
return qe(r, !0, !0);
|
|
1354
1339
|
}
|
|
1355
|
-
function
|
|
1340
|
+
function Ot(r, c) {
|
|
1356
1341
|
return r === c || r !== r && c !== c;
|
|
1357
1342
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1343
|
+
function Br(r) {
|
|
1344
|
+
return br(r) && ne.call(r, "callee") && (!bn.call(r, "callee") || De.call(r) == d);
|
|
1360
1345
|
}
|
|
1361
1346
|
var Ze = Array.isArray;
|
|
1362
|
-
function
|
|
1363
|
-
return r != null &&
|
|
1347
|
+
function It(r) {
|
|
1348
|
+
return r != null && Hr(r.length) && !Ut(r);
|
|
1364
1349
|
}
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1350
|
+
function br(r) {
|
|
1351
|
+
return Yr(r) && It(r);
|
|
1367
1352
|
}
|
|
1368
|
-
var
|
|
1353
|
+
var zr = Hn || jr;
|
|
1369
1354
|
function Ut(r) {
|
|
1370
1355
|
var c = Re(r) ? De.call(r) : "";
|
|
1371
|
-
return c ==
|
|
1356
|
+
return c == S || c == E;
|
|
1372
1357
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return typeof r == "number" && r > -1 && r % 1 == 0 && r <=
|
|
1358
|
+
function Hr(r) {
|
|
1359
|
+
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= u;
|
|
1375
1360
|
}
|
|
1376
1361
|
function Re(r) {
|
|
1377
1362
|
var c = typeof r;
|
|
1378
1363
|
return !!r && (c == "object" || c == "function");
|
|
1379
1364
|
}
|
|
1380
|
-
function
|
|
1365
|
+
function Yr(r) {
|
|
1381
1366
|
return !!r && typeof r == "object";
|
|
1382
1367
|
}
|
|
1383
1368
|
function Je(r) {
|
|
1384
|
-
return
|
|
1369
|
+
return It(r) ? hr(r) : Mr(r);
|
|
1385
1370
|
}
|
|
1386
|
-
function
|
|
1371
|
+
function $r() {
|
|
1387
1372
|
return [];
|
|
1388
1373
|
}
|
|
1389
|
-
function
|
|
1374
|
+
function jr() {
|
|
1390
1375
|
return !1;
|
|
1391
1376
|
}
|
|
1392
|
-
|
|
1377
|
+
t.exports = Vr;
|
|
1393
1378
|
})(Ue, Ue.exports)), Ue.exports;
|
|
1394
1379
|
}
|
|
1395
|
-
|
|
1396
|
-
const
|
|
1397
|
-
class
|
|
1380
|
+
qa();
|
|
1381
|
+
const Z = (t, n) => new Date(t.getTime() - Ka(n, t));
|
|
1382
|
+
class V {
|
|
1398
1383
|
timeframeText;
|
|
1399
1384
|
key;
|
|
1400
1385
|
display;
|
|
@@ -1441,8 +1426,8 @@ class A {
|
|
|
1441
1426
|
allowedGranularities(n) {
|
|
1442
1427
|
if (this._allowedGranularitiesOverride && n)
|
|
1443
1428
|
return new Set(this._allowedGranularitiesOverride);
|
|
1444
|
-
const a = /* @__PURE__ */ new Set(),
|
|
1445
|
-
return
|
|
1429
|
+
const a = /* @__PURE__ */ new Set(), o = this.maximumTimeframeLength() / 3600;
|
|
1430
|
+
return o <= 6 && a.add("minutely"), o >= 2 && o <= 168 && a.add("hourly"), o >= 48 && a.add("daily"), o >= 672 && a.add("weekly"), a;
|
|
1446
1431
|
}
|
|
1447
1432
|
cacheKey() {
|
|
1448
1433
|
return this.key !== "custom" ? this.key : `${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`;
|
|
@@ -1463,90 +1448,90 @@ class A {
|
|
|
1463
1448
|
tzAdjustedDate(n) {
|
|
1464
1449
|
if (!n)
|
|
1465
1450
|
return /* @__PURE__ */ new Date();
|
|
1466
|
-
const a =
|
|
1467
|
-
return
|
|
1451
|
+
const a = ja(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
1452
|
+
return $a(a, n);
|
|
1468
1453
|
}
|
|
1469
1454
|
}
|
|
1470
|
-
class
|
|
1455
|
+
class Wa extends V {
|
|
1471
1456
|
rawStart(n) {
|
|
1472
1457
|
let a = Be(this.tzAdjustedDate(n), { weekStartsOn: 1 });
|
|
1473
|
-
return n && (a =
|
|
1458
|
+
return n && (a = Z(a, n)), a;
|
|
1474
1459
|
}
|
|
1475
1460
|
maximumTimeframeLength() {
|
|
1476
1461
|
return 3600 * 24 * 7;
|
|
1477
1462
|
}
|
|
1478
1463
|
}
|
|
1479
|
-
class
|
|
1464
|
+
class Za extends V {
|
|
1480
1465
|
rawStart(n) {
|
|
1481
|
-
let a =
|
|
1482
|
-
return n && (a =
|
|
1466
|
+
let a = he(this.tzAdjustedDate(n));
|
|
1467
|
+
return n && (a = Z(a, n)), a;
|
|
1483
1468
|
}
|
|
1484
1469
|
maximumTimeframeLength() {
|
|
1485
1470
|
return 3600 * 24 * 31;
|
|
1486
1471
|
}
|
|
1487
1472
|
}
|
|
1488
|
-
class
|
|
1473
|
+
class Ja extends V {
|
|
1489
1474
|
rawStart(n) {
|
|
1490
|
-
let a =
|
|
1491
|
-
return n && (a =
|
|
1475
|
+
let a = ye(this.tzAdjustedDate(n));
|
|
1476
|
+
return n && (a = Z(a, n)), a;
|
|
1492
1477
|
}
|
|
1493
1478
|
maximumTimeframeLength() {
|
|
1494
1479
|
return 3600 * 24 * 92;
|
|
1495
1480
|
}
|
|
1496
1481
|
}
|
|
1497
|
-
class
|
|
1482
|
+
class Qa extends V {
|
|
1498
1483
|
rawStart(n) {
|
|
1499
1484
|
let a = new Date(this.tzAdjustedDate(n).getFullYear(), 0, 1);
|
|
1500
|
-
return n && (a =
|
|
1485
|
+
return n && (a = Z(a, n)), a;
|
|
1501
1486
|
}
|
|
1502
1487
|
maximumTimeframeLength() {
|
|
1503
1488
|
return 3600 * 24 * 366;
|
|
1504
1489
|
}
|
|
1505
1490
|
}
|
|
1506
|
-
class
|
|
1491
|
+
class Xa extends V {
|
|
1507
1492
|
rawEnd(n) {
|
|
1508
1493
|
let a = Be(this.tzAdjustedDate(n), { weekStartsOn: 1 });
|
|
1509
|
-
return n && (a =
|
|
1494
|
+
return n && (a = Z(a, n)), a;
|
|
1510
1495
|
}
|
|
1511
1496
|
rawStart(n) {
|
|
1512
1497
|
const a = this.tzAdjustedDate(n);
|
|
1513
|
-
let
|
|
1498
|
+
let o = Be(a.setDate(a.getDate() - 7), {
|
|
1514
1499
|
weekStartsOn: 1
|
|
1515
1500
|
});
|
|
1516
|
-
return n && (
|
|
1501
|
+
return n && (o = Z(o, n)), o;
|
|
1517
1502
|
}
|
|
1518
1503
|
}
|
|
1519
|
-
class
|
|
1504
|
+
class ei extends V {
|
|
1520
1505
|
rawEnd(n) {
|
|
1521
|
-
let a =
|
|
1522
|
-
return n && (a =
|
|
1506
|
+
let a = ye(this.tzAdjustedDate(n));
|
|
1507
|
+
return n && (a = Z(a, n)), a;
|
|
1523
1508
|
}
|
|
1524
1509
|
rawStart(n) {
|
|
1525
|
-
let a =
|
|
1526
|
-
return n && (a =
|
|
1510
|
+
let a = ye(Dn(this.tzAdjustedDate(n)));
|
|
1511
|
+
return n && (a = Z(a, n)), a;
|
|
1527
1512
|
}
|
|
1528
1513
|
}
|
|
1529
|
-
class
|
|
1514
|
+
class ti extends V {
|
|
1530
1515
|
rawEnd(n) {
|
|
1531
|
-
let a =
|
|
1532
|
-
return n && (a =
|
|
1516
|
+
let a = he(this.tzAdjustedDate(n));
|
|
1517
|
+
return n && (a = Z(a, n)), a;
|
|
1533
1518
|
}
|
|
1534
1519
|
rawStart(n) {
|
|
1535
|
-
let a =
|
|
1536
|
-
return n && (a =
|
|
1520
|
+
let a = he(Sn(this.tzAdjustedDate(n)));
|
|
1521
|
+
return n && (a = Z(a, n)), a;
|
|
1537
1522
|
}
|
|
1538
1523
|
}
|
|
1539
|
-
class
|
|
1524
|
+
class ni extends V {
|
|
1540
1525
|
rawEnd(n) {
|
|
1541
1526
|
let a = new Date(this.tzAdjustedDate(n).getFullYear(), 0, 1);
|
|
1542
|
-
return n && (a =
|
|
1527
|
+
return n && (a = Z(a, n)), a;
|
|
1543
1528
|
}
|
|
1544
1529
|
rawStart(n) {
|
|
1545
1530
|
let a = new Date(this.tzAdjustedDate(n).getFullYear() - 1, 0, 1);
|
|
1546
|
-
return n && (a =
|
|
1531
|
+
return n && (a = Z(a, n)), a;
|
|
1547
1532
|
}
|
|
1548
1533
|
}
|
|
1549
|
-
v.FIFTEEN_MIN, new
|
|
1534
|
+
v.FIFTEEN_MIN, new V({
|
|
1550
1535
|
key: v.FIFTEEN_MIN,
|
|
1551
1536
|
display: "Last 15 minutes",
|
|
1552
1537
|
timeframeText: "15 minutes",
|
|
@@ -1557,7 +1542,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1557
1542
|
fineGrainedDefaultGranularity: "thirtySecondly",
|
|
1558
1543
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1559
1544
|
allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely"]
|
|
1560
|
-
}), v.ONE_HOUR, new
|
|
1545
|
+
}), v.ONE_HOUR, new V({
|
|
1561
1546
|
key: v.ONE_HOUR,
|
|
1562
1547
|
display: "Last hour",
|
|
1563
1548
|
timeframeText: "One hour",
|
|
@@ -1568,7 +1553,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1568
1553
|
fineGrainedDefaultGranularity: "minutely",
|
|
1569
1554
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1570
1555
|
allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely"]
|
|
1571
|
-
}), v.SIX_HOUR, new
|
|
1556
|
+
}), v.SIX_HOUR, new V({
|
|
1572
1557
|
key: v.SIX_HOUR,
|
|
1573
1558
|
display: "Last 6 hours",
|
|
1574
1559
|
timeframeText: "6 hours",
|
|
@@ -1579,7 +1564,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1579
1564
|
fineGrainedDefaultGranularity: "fiveMinutely",
|
|
1580
1565
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1581
1566
|
allowedGranularitiesOverride: ["thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
|
|
1582
|
-
}), v.TWELVE_HOUR, new
|
|
1567
|
+
}), v.TWELVE_HOUR, new V({
|
|
1583
1568
|
key: v.TWELVE_HOUR,
|
|
1584
1569
|
display: "Last 12 hours",
|
|
1585
1570
|
timeframeText: "12 hours",
|
|
@@ -1590,7 +1575,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1590
1575
|
fineGrainedDefaultGranularity: "tenMinutely",
|
|
1591
1576
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1592
1577
|
allowedGranularitiesOverride: ["minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
|
|
1593
|
-
}), v.ONE_DAY, new
|
|
1578
|
+
}), v.ONE_DAY, new V({
|
|
1594
1579
|
key: v.ONE_DAY,
|
|
1595
1580
|
display: "Last 24 hours",
|
|
1596
1581
|
timeframeText: "24 hours",
|
|
@@ -1601,7 +1586,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1601
1586
|
fineGrainedDefaultGranularity: "thirtyMinutely",
|
|
1602
1587
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1603
1588
|
allowedGranularitiesOverride: ["fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
|
|
1604
|
-
}), v.SEVEN_DAY, new
|
|
1589
|
+
}), v.SEVEN_DAY, new V({
|
|
1605
1590
|
key: v.SEVEN_DAY,
|
|
1606
1591
|
display: "Last 7 days",
|
|
1607
1592
|
timeframeText: "7 days",
|
|
@@ -1612,7 +1597,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1612
1597
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1613
1598
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1614
1599
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1615
|
-
}), v.THIRTY_DAY, new
|
|
1600
|
+
}), v.THIRTY_DAY, new V({
|
|
1616
1601
|
key: v.THIRTY_DAY,
|
|
1617
1602
|
display: "Last 30 days",
|
|
1618
1603
|
timeframeText: "30 days",
|
|
@@ -1623,7 +1608,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1623
1608
|
fineGrainedDefaultGranularity: "twelveHourly",
|
|
1624
1609
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1625
1610
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1626
|
-
}), v.NINETY_DAY, new
|
|
1611
|
+
}), v.NINETY_DAY, new V({
|
|
1627
1612
|
key: v.NINETY_DAY,
|
|
1628
1613
|
display: "Last 90 days",
|
|
1629
1614
|
timeframeText: "90 days",
|
|
@@ -1634,7 +1619,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1634
1619
|
fineGrainedDefaultGranularity: "daily",
|
|
1635
1620
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1636
1621
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1637
|
-
}), v.ONE_HUNDRED_EIGHTY_DAY, new
|
|
1622
|
+
}), v.ONE_HUNDRED_EIGHTY_DAY, new V({
|
|
1638
1623
|
key: v.ONE_HUNDRED_EIGHTY_DAY,
|
|
1639
1624
|
display: "Last 180 days",
|
|
1640
1625
|
timeframeText: "180 days",
|
|
@@ -1645,7 +1630,7 @@ v.FIFTEEN_MIN, new A({
|
|
|
1645
1630
|
fineGrainedDefaultGranularity: "daily",
|
|
1646
1631
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1647
1632
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1648
|
-
}), v.ONE_YEAR, new
|
|
1633
|
+
}), v.ONE_YEAR, new V({
|
|
1649
1634
|
key: v.ONE_YEAR,
|
|
1650
1635
|
display: "Last 365 days",
|
|
1651
1636
|
timeframeText: "365 days",
|
|
@@ -1656,13 +1641,13 @@ v.FIFTEEN_MIN, new A({
|
|
|
1656
1641
|
fineGrainedDefaultGranularity: "daily",
|
|
1657
1642
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1658
1643
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1659
|
-
}), v.CURRENT_WEEK, new
|
|
1644
|
+
}), v.CURRENT_WEEK, new Wa({
|
|
1660
1645
|
key: v.CURRENT_WEEK,
|
|
1661
1646
|
display: "This week",
|
|
1662
1647
|
timeframeText: "Week",
|
|
1663
1648
|
timeframeLength: () => {
|
|
1664
|
-
const
|
|
1665
|
-
return (
|
|
1649
|
+
const t = Be(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
1650
|
+
return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
|
|
1666
1651
|
},
|
|
1667
1652
|
defaultResponseGranularity: "daily",
|
|
1668
1653
|
dataGranularity: "daily",
|
|
@@ -1670,43 +1655,43 @@ v.FIFTEEN_MIN, new A({
|
|
|
1670
1655
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1671
1656
|
allowedTiers: ["plus", "enterprise"],
|
|
1672
1657
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1673
|
-
}), v.CURRENT_MONTH, new
|
|
1658
|
+
}), v.CURRENT_MONTH, new Za({
|
|
1674
1659
|
key: v.CURRENT_MONTH,
|
|
1675
1660
|
display: "This month",
|
|
1676
1661
|
timeframeText: "Month",
|
|
1677
1662
|
timeframeLength: () => {
|
|
1678
|
-
const
|
|
1679
|
-
return (
|
|
1663
|
+
const t = he(/* @__PURE__ */ new Date());
|
|
1664
|
+
return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
|
|
1680
1665
|
},
|
|
1681
1666
|
defaultResponseGranularity: "daily",
|
|
1682
1667
|
dataGranularity: "daily",
|
|
1683
1668
|
isRelative: !1,
|
|
1684
1669
|
allowedTiers: ["plus", "enterprise"]
|
|
1685
|
-
}), v.CURRENT_QUARTER, new
|
|
1670
|
+
}), v.CURRENT_QUARTER, new Ja({
|
|
1686
1671
|
key: v.CURRENT_QUARTER,
|
|
1687
1672
|
display: "This quarter",
|
|
1688
1673
|
timeframeText: "Quarter",
|
|
1689
1674
|
timeframeLength: () => {
|
|
1690
|
-
const
|
|
1691
|
-
return (
|
|
1675
|
+
const t = ye(/* @__PURE__ */ new Date());
|
|
1676
|
+
return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
|
|
1692
1677
|
},
|
|
1693
1678
|
defaultResponseGranularity: "daily",
|
|
1694
1679
|
dataGranularity: "daily",
|
|
1695
1680
|
isRelative: !1,
|
|
1696
1681
|
allowedTiers: ["plus", "enterprise"]
|
|
1697
|
-
}), v.CURRENT_YEAR, new
|
|
1682
|
+
}), v.CURRENT_YEAR, new Qa({
|
|
1698
1683
|
key: v.CURRENT_YEAR,
|
|
1699
1684
|
display: "This year",
|
|
1700
1685
|
timeframeText: "Year",
|
|
1701
1686
|
timeframeLength: () => {
|
|
1702
|
-
const
|
|
1703
|
-
return (
|
|
1687
|
+
const t = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
|
|
1688
|
+
return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
|
|
1704
1689
|
},
|
|
1705
1690
|
defaultResponseGranularity: "daily",
|
|
1706
1691
|
dataGranularity: "daily",
|
|
1707
1692
|
isRelative: !1,
|
|
1708
1693
|
allowedTiers: ["plus", "enterprise"]
|
|
1709
|
-
}), v.PREVIOUS_WEEK, new
|
|
1694
|
+
}), v.PREVIOUS_WEEK, new Xa({
|
|
1710
1695
|
key: v.PREVIOUS_WEEK,
|
|
1711
1696
|
display: "Previous week",
|
|
1712
1697
|
timeframeText: "Week",
|
|
@@ -1717,246 +1702,148 @@ v.FIFTEEN_MIN, new A({
|
|
|
1717
1702
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1718
1703
|
allowedTiers: ["plus", "enterprise"],
|
|
1719
1704
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1720
|
-
}), v.PREVIOUS_MONTH, new
|
|
1705
|
+
}), v.PREVIOUS_MONTH, new ti({
|
|
1721
1706
|
key: v.PREVIOUS_MONTH,
|
|
1722
1707
|
display: "Previous month",
|
|
1723
1708
|
timeframeText: "Month",
|
|
1724
1709
|
timeframeLength: () => {
|
|
1725
|
-
let
|
|
1726
|
-
const n =
|
|
1727
|
-
return n.getTimezoneOffset() !== a.getTimezoneOffset() && (
|
|
1710
|
+
let t = 0;
|
|
1711
|
+
const n = he(/* @__PURE__ */ new Date()), a = he(Sn(/* @__PURE__ */ new Date()));
|
|
1712
|
+
return n.getTimezoneOffset() !== a.getTimezoneOffset() && (t = rn(n, a)), 3600 * 24 * Sa((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + jt(t);
|
|
1728
1713
|
},
|
|
1729
1714
|
defaultResponseGranularity: "daily",
|
|
1730
1715
|
dataGranularity: "daily",
|
|
1731
1716
|
isRelative: !1,
|
|
1732
1717
|
allowedTiers: ["plus", "enterprise"]
|
|
1733
|
-
}), v.PREVIOUS_QUARTER, new
|
|
1718
|
+
}), v.PREVIOUS_QUARTER, new ei({
|
|
1734
1719
|
key: v.PREVIOUS_QUARTER,
|
|
1735
1720
|
display: "Previous quarter",
|
|
1736
1721
|
timeframeText: "Quarter",
|
|
1737
1722
|
timeframeLength: () => {
|
|
1738
|
-
const
|
|
1739
|
-
return (
|
|
1723
|
+
const t = ye(/* @__PURE__ */ new Date()), n = ye(Dn(/* @__PURE__ */ new Date()));
|
|
1724
|
+
return (t.getTime() - n.getTime()) / 1e3;
|
|
1740
1725
|
},
|
|
1741
1726
|
defaultResponseGranularity: "daily",
|
|
1742
1727
|
dataGranularity: "daily",
|
|
1743
1728
|
isRelative: !1,
|
|
1744
1729
|
allowedTiers: ["plus", "enterprise"]
|
|
1745
|
-
}), v.PREVIOUS_YEAR, new
|
|
1730
|
+
}), v.PREVIOUS_YEAR, new ni({
|
|
1746
1731
|
key: v.PREVIOUS_YEAR,
|
|
1747
1732
|
display: "Previous year",
|
|
1748
1733
|
timeframeText: "Year",
|
|
1749
1734
|
timeframeLength: () => {
|
|
1750
|
-
const
|
|
1735
|
+
const t = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), n = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
|
|
1751
1736
|
let a = 0;
|
|
1752
|
-
return
|
|
1737
|
+
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (a = rn(t, n)), 3600 * 24 * (365 + (n.getFullYear() % 4 === 0 ? 1 : 0)) + jt(a);
|
|
1753
1738
|
},
|
|
1754
1739
|
defaultResponseGranularity: "daily",
|
|
1755
1740
|
dataGranularity: "daily",
|
|
1756
1741
|
isRelative: !1,
|
|
1757
1742
|
allowedTiers: ["plus", "enterprise"]
|
|
1758
1743
|
});
|
|
1759
|
-
function rn(
|
|
1760
|
-
return
|
|
1744
|
+
function rn(t, n) {
|
|
1745
|
+
return Da(t.getTimezoneOffset() - n.getTimezoneOffset());
|
|
1761
1746
|
}
|
|
1762
1747
|
v.FIFTEEN_MIN, v.ONE_HOUR, v.SIX_HOUR, v.TWELVE_HOUR, v.ONE_DAY, v.SEVEN_DAY, v.FIFTEEN_MIN, v.ONE_HOUR, v.SIX_HOUR, v.TWELVE_HOUR, v.ONE_DAY, v.SEVEN_DAY, v.THIRTY_DAY, v.NINETY_DAY, v.ONE_HUNDRED_EIGHTY_DAY, v.ONE_YEAR, v.CURRENT_WEEK, v.CURRENT_MONTH, v.CURRENT_QUARTER, v.CURRENT_YEAR, v.PREVIOUS_WEEK, v.PREVIOUS_MONTH, v.PREVIOUS_QUARTER, v.PREVIOUS_YEAR;
|
|
1763
|
-
new Map(pt.map((
|
|
1764
|
-
const an = 1e3,
|
|
1765
|
-
if (n.separator === !1 ||
|
|
1766
|
-
return
|
|
1767
|
-
const a = typeof n.separator == "string" ? n.separator : ",",
|
|
1768
|
-
return Math.round(
|
|
1769
|
-
d && d % 3 === 0 &&
|
|
1770
|
-
}),
|
|
1771
|
-
},
|
|
1772
|
-
const
|
|
1748
|
+
new Map(pt.map((t) => [t.code, { code: t.code, name: t.name }]));
|
|
1749
|
+
const an = 1e3, ri = 1e4, on = 1e6, sn = 1e9, ln = 1e12, Ae = (t, n) => {
|
|
1750
|
+
if (n.separator === !1 || t < 1e3)
|
|
1751
|
+
return t.toString();
|
|
1752
|
+
const a = typeof n.separator == "string" ? n.separator : ",", o = [];
|
|
1753
|
+
return Math.round(t).toString().split("").reverse().forEach((u, d) => {
|
|
1754
|
+
d && d % 3 === 0 && o.push(a), o.push(u);
|
|
1755
|
+
}), o.reverse().join("");
|
|
1756
|
+
}, xe = (t, n, a) => {
|
|
1757
|
+
const o = t / n, u = a.round ? "round" : "floor";
|
|
1773
1758
|
if (a.decimal === !1)
|
|
1774
|
-
return Math[
|
|
1759
|
+
return Math[u](o).toString();
|
|
1775
1760
|
let d;
|
|
1776
|
-
a.precision ? d =
|
|
1761
|
+
a.precision ? d = o : d = o < 10 ? Math[u](o * 10) / 10 : Math[u](o);
|
|
1777
1762
|
let y = d.toString();
|
|
1778
1763
|
return typeof a.decimal == "string" && (y = y.replace(".", a.decimal)), y;
|
|
1779
1764
|
};
|
|
1780
|
-
function Ve(
|
|
1765
|
+
function Ve(t, n = {}) {
|
|
1781
1766
|
let a;
|
|
1782
|
-
const
|
|
1783
|
-
|
|
1784
|
-
const
|
|
1785
|
-
return
|
|
1767
|
+
const o = t < 0;
|
|
1768
|
+
o && (t = Math.abs(t)), n.precision && (t = parseFloat(t.toPrecision(n.precision)));
|
|
1769
|
+
const u = n.min10k ? ri : an;
|
|
1770
|
+
return t < u || n.precision && n.precision > Math.log10(t) ? a = Ae(xe(t, 1, n), n) : t < on ? a = `${xe(t, an, n)}k` : t < sn ? a = `${xe(t, on, n)}m` : t < ln ? a = `${Ae(xe(t, sn, n), n)}b` : a = `${Ae(xe(t, ln, n), n)}t`, o && (a = `-${a}`), n.capital && (a = a.toUpperCase()), n.prefix && (a = `${n.prefix}${a}`), n.suffix && (a = `${a}${n.suffix}`), a;
|
|
1786
1771
|
}
|
|
1787
1772
|
Ve.addCommas = Ae;
|
|
1788
|
-
const
|
|
1789
|
-
function
|
|
1790
|
-
i18n:
|
|
1773
|
+
const ai = typeof document < "u" && document.documentElement?.lang || "en-US", at = new Intl.NumberFormat(ai);
|
|
1774
|
+
function ii({
|
|
1775
|
+
i18n: t
|
|
1791
1776
|
}) {
|
|
1792
|
-
const n = (
|
|
1793
|
-
if (isNaN(
|
|
1777
|
+
const n = (o, u) => {
|
|
1778
|
+
if (isNaN(o))
|
|
1794
1779
|
return "0 B";
|
|
1795
|
-
const d =
|
|
1796
|
-
let
|
|
1797
|
-
return
|
|
1798
|
-
Number.parseFloat((
|
|
1780
|
+
const d = u ? Math.pow(2, 50) : 1e15, y = u ? Math.pow(2, 40) : 1e12, h = u ? Math.pow(2, 30) : 1e9, T = u ? Math.pow(2, 20) : 1e6, N = u ? Math.pow(2, 10) : 1e3;
|
|
1781
|
+
let S;
|
|
1782
|
+
return o >= d ? S = t.formatNumber(
|
|
1783
|
+
Number.parseFloat((o / d).toPrecision(3)),
|
|
1799
1784
|
{ style: "unit", unit: "petabyte", unitDisplay: "narrow" }
|
|
1800
|
-
) :
|
|
1801
|
-
Number.parseFloat((
|
|
1785
|
+
) : o >= y ? S = t.formatNumber(
|
|
1786
|
+
Number.parseFloat((o / y).toPrecision(3)),
|
|
1802
1787
|
{ style: "unit", unit: "terabyte", unitDisplay: "narrow" }
|
|
1803
|
-
) :
|
|
1804
|
-
Number.parseFloat((
|
|
1788
|
+
) : o >= h ? S = t.formatNumber(
|
|
1789
|
+
Number.parseFloat((o / h).toPrecision(3)),
|
|
1805
1790
|
{ style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
|
|
1806
|
-
) :
|
|
1807
|
-
Number.parseFloat((
|
|
1791
|
+
) : o >= T ? S = t.formatNumber(
|
|
1792
|
+
Number.parseFloat((o / T).toPrecision(3)),
|
|
1808
1793
|
{ style: "unit", unit: "megabyte", unitDisplay: "narrow" }
|
|
1809
|
-
) :
|
|
1810
|
-
Number.parseFloat((
|
|
1794
|
+
) : o >= N ? S = t.formatNumber(
|
|
1795
|
+
Number.parseFloat((o / N).toPrecision(3)),
|
|
1811
1796
|
{ style: "unit", unit: "kilobyte", unitDisplay: "narrow" }
|
|
1812
|
-
) :
|
|
1813
|
-
Number.parseFloat(
|
|
1797
|
+
) : S = t.formatNumber(
|
|
1798
|
+
Number.parseFloat(o.toPrecision(3)),
|
|
1814
1799
|
{ style: "unit", unit: "byte", unitDisplay: "narrow" }
|
|
1815
|
-
),
|
|
1816
|
-
}, a = (
|
|
1817
|
-
return { formatUnit: (
|
|
1800
|
+
), S.replace(/([a-zA-Z]*)$/, " $1");
|
|
1801
|
+
}, a = (o, u = "USD") => isNaN(o) ? u === "USD" ? "$0.00" : `${o}` : o >= 0.01 || u !== "USD" ? t.formatNumber(o, { style: "currency", currency: u }) : o < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(o.toPrecision(4))}`;
|
|
1802
|
+
return { formatUnit: (o, u, {
|
|
1818
1803
|
isBytes1024: d = !1,
|
|
1819
1804
|
currency: y = "USD",
|
|
1820
|
-
approximate:
|
|
1821
|
-
translateUnit:
|
|
1805
|
+
approximate: h = !1,
|
|
1806
|
+
translateUnit: T = (N) => N
|
|
1822
1807
|
} = {}) => {
|
|
1823
|
-
const
|
|
1824
|
-
switch (
|
|
1808
|
+
const N = T(u, o);
|
|
1809
|
+
switch (u) {
|
|
1825
1810
|
case "bytes":
|
|
1826
|
-
return n(
|
|
1811
|
+
return n(o, d);
|
|
1827
1812
|
case "usd":
|
|
1828
|
-
return a(
|
|
1813
|
+
return a(o, y);
|
|
1829
1814
|
default:
|
|
1830
|
-
return isNaN(
|
|
1815
|
+
return isNaN(o) ? `${o}` : h ? `${Ve(o, { capital: !0 })} ${N}` : o >= 0.01 ? `${at.format(Number.parseFloat(o.toFixed(2)))} ${N}` : `${Number.parseFloat(o.toPrecision(4))} ${N}`;
|
|
1831
1816
|
}
|
|
1832
|
-
}, formatBytes: n, formatCost: a, formatRange: (
|
|
1817
|
+
}, formatBytes: n, formatCost: a, formatRange: (o, u, d, {
|
|
1833
1818
|
isBytes1024: y = !1,
|
|
1834
|
-
currency:
|
|
1835
|
-
approximate:
|
|
1836
|
-
translateUnit:
|
|
1819
|
+
currency: h = "USD",
|
|
1820
|
+
approximate: T = !1,
|
|
1821
|
+
translateUnit: N = (S) => S
|
|
1837
1822
|
} = {}) => {
|
|
1838
|
-
const
|
|
1823
|
+
const S = N(d, u);
|
|
1839
1824
|
switch (d) {
|
|
1840
1825
|
case "bytes":
|
|
1841
|
-
return `${n(
|
|
1826
|
+
return `${n(o, y)} - ${n(u, y)}`;
|
|
1842
1827
|
case "usd":
|
|
1843
|
-
return `${a(
|
|
1828
|
+
return `${a(o, h)} - ${a(u, h)}`;
|
|
1844
1829
|
default:
|
|
1845
|
-
if (isNaN(
|
|
1846
|
-
return `${
|
|
1847
|
-
if (
|
|
1848
|
-
return `${Ve(
|
|
1830
|
+
if (isNaN(o) || isNaN(u))
|
|
1831
|
+
return `${o} - ${u}`;
|
|
1832
|
+
if (T)
|
|
1833
|
+
return `${Ve(o, { capital: !0 })} - ${Ve(u, { capital: !0 })} ${S}`;
|
|
1849
1834
|
}
|
|
1850
|
-
const E =
|
|
1851
|
-
return `${E} - ${
|
|
1835
|
+
const E = o >= 0.01 ? `${at.format(Number.parseFloat(o.toFixed(2)))}` : `${Number.parseFloat(o.toPrecision(4))}`, F = u >= 0.01 ? `${at.format(Number.parseFloat(u.toFixed(2)))}` : `${Number.parseFloat(u.toPrecision(4))}`;
|
|
1836
|
+
return `${E} - ${F} ${S}`;
|
|
1852
1837
|
} };
|
|
1853
1838
|
}
|
|
1854
|
-
|
|
1855
|
-
"
|
|
1856
|
-
"#00abd2",
|
|
1857
|
-
"#00c8f4",
|
|
1858
|
-
"#67e3ff",
|
|
1859
|
-
"#b3f1ff"
|
|
1860
|
-
], mi = (e, n) => {
|
|
1861
|
-
const a = e.length;
|
|
1862
|
-
if (!a)
|
|
1863
|
-
return NaN;
|
|
1864
|
-
const i = (a - 1) * n, l = Math.floor(i), d = Math.ceil(i);
|
|
1865
|
-
return l === d ? e[l] : e[l] + (i - l) * (e[d] - e[l]);
|
|
1866
|
-
}, st = (e, n) => {
|
|
1867
|
-
if (e.length === 0)
|
|
1868
|
-
return [];
|
|
1869
|
-
const a = e.filter((w) => w > 0).map(Math.log).sort((w, S) => w - S), i = Math.min(...a), d = (Math.max(...a) - i) / n;
|
|
1870
|
-
return Array.from({ length: n }, (w, S) => i + S * d).map((w) => Math.exp(w)).reverse();
|
|
1871
|
-
};
|
|
1872
|
-
function fi({
|
|
1873
|
-
countryMetrics: e,
|
|
1874
|
-
metric: n,
|
|
1875
|
-
unit: a
|
|
1876
|
-
}) {
|
|
1877
|
-
const { formatMetric: i, formatMetricRange: l } = Me.useMetricFormat({ unit: a }), d = j(() => {
|
|
1878
|
-
const R = { ...e.value };
|
|
1879
|
-
for (const P of Object.keys(R))
|
|
1880
|
-
pt.find((O) => O.code === P) || delete R[P];
|
|
1881
|
-
return R;
|
|
1882
|
-
}), y = j(() => Object.values(d.value)), w = j(() => Object.keys(d.value).length), S = j(() => w.value < un - 1 ? w.value : un), D = j(() => !n.value?.includes("latency")), h = j(() => {
|
|
1883
|
-
const R = [];
|
|
1884
|
-
if (y.value.length > 10) {
|
|
1885
|
-
const P = [...y.value].sort((I, q) => I - q), O = mi(P, 0.75), C = y.value.filter((I) => I >= O), V = y.value.filter((I) => I < O), U = st(C, 3), z = st(V, 2);
|
|
1886
|
-
return R.push(...U, ...z), R;
|
|
1887
|
-
}
|
|
1888
|
-
return st(y.value, S.value);
|
|
1889
|
-
}), E = j(() => y.value.length === 1 ? [{
|
|
1890
|
-
color: L(y.value[0]),
|
|
1891
|
-
range: i(y.value[0], {
|
|
1892
|
-
approximate: D.value,
|
|
1893
|
-
showUnit: !a.value.includes("count")
|
|
1894
|
-
}).trim()
|
|
1895
|
-
}] : h.value.map((R, P) => {
|
|
1896
|
-
const O = P === 0 ? Math.max(...h.value) : h.value[P - 1], C = R, V = O;
|
|
1897
|
-
let U = "";
|
|
1898
|
-
return P === 0 ? U = `> ${i(C, {
|
|
1899
|
-
showUnit: !a.value.includes("count"),
|
|
1900
|
-
approximate: D.value
|
|
1901
|
-
})}`.trim() : P === h.value.length - 1 ? U = `< ${i(V, {
|
|
1902
|
-
showUnit: !a.value.includes("count"),
|
|
1903
|
-
approximate: D.value
|
|
1904
|
-
})}`.trim() : U = l(C, V, {
|
|
1905
|
-
showUnit: !a.value.includes("count"),
|
|
1906
|
-
approximate: D.value
|
|
1907
|
-
}).trim(), {
|
|
1908
|
-
color: L(C),
|
|
1909
|
-
range: U
|
|
1910
|
-
};
|
|
1911
|
-
})), L = (R) => {
|
|
1912
|
-
if (R === 0)
|
|
1913
|
-
return Fe;
|
|
1914
|
-
const P = h.value.findIndex((O) => R >= O);
|
|
1915
|
-
return P === -1 ? ot[ot.length - 1] : ot[P] ?? Fe;
|
|
1916
|
-
};
|
|
1917
|
-
return {
|
|
1918
|
-
getColor: L,
|
|
1919
|
-
legendData: E,
|
|
1920
|
-
scale: h
|
|
1921
|
-
};
|
|
1922
|
-
}
|
|
1923
|
-
function pi({
|
|
1924
|
-
unit: e
|
|
1925
|
-
}) {
|
|
1926
|
-
const { i18n: n } = Me.useI18n(), { formatUnit: a, formatRange: i } = ui({ i18n: n });
|
|
1927
|
-
return {
|
|
1928
|
-
formatMetric: (y, {
|
|
1929
|
-
showUnit: w = !0,
|
|
1930
|
-
approximate: S = !1
|
|
1931
|
-
} = {}) => a(y, e.value, {
|
|
1932
|
-
approximate: S,
|
|
1933
|
-
translateUnit: (D) => w ? n.t(`metricUnits.${D}`, { plural: y > 1 ? "s" : "" }) : ""
|
|
1934
|
-
}),
|
|
1935
|
-
formatMetricRange: (y, w, {
|
|
1936
|
-
showUnit: S = !0,
|
|
1937
|
-
approximate: D = !1
|
|
1938
|
-
} = {}) => i(y, w, e.value, {
|
|
1939
|
-
approximate: D,
|
|
1940
|
-
translateUnit: (h) => S ? n.t(`metricUnits.${h}`, { plural: w > 1 ? "s" : "" }) : ""
|
|
1941
|
-
})
|
|
1942
|
-
};
|
|
1839
|
+
function oi(t) {
|
|
1840
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1943
1841
|
}
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
}, yi = "FeatureCollection", hi = /* @__PURE__ */ JSON.parse('[{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBaikal","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[106.57998579307912,52.79998159444554],[106.53998823448521,52.93999888774037],[107.0800069519353,53.18001007751998],[107.2999935242018,53.37999787048953],[107.59997521365611,53.51998932556822],[108.03994835818912,53.859968573616456],[108.37997928266967,54.25999583598784],[109.05270307824526,55.027597561251326],[109.19346967980832,55.53560272889659],[109.50699059452313,55.73091380474372],[109.92980716353523,55.7129562445223],[109.70000206913326,54.980003567110515],[109.66000451053935,54.71999359803395],[109.47996382043448,54.33999095317566],[109.31997358605884,53.81999685323869],[109.22003136600637,53.619983222052994],[108.99999311730755,53.78002513286093],[108.60001753136845,53.4399942083804],[108.800005324338,53.37999787048953],[108.76000776574409,53.200008856816936],[108.45997439985749,53.14001251892607],[108.17999148970011,52.79998159444554],[107.79996300662566,52.579995022179034],[107.31999230349876,52.42000478780339],[106.64003380740229,52.32001089131862],[106.1000150899522,52.03997630472897],[105.740037062607,51.759993394571595],[105.24001590375084,51.52000804300813],[104.81998986208251,51.46001170511727],[104.30002160036167,51.50000926371118],[103.7600028829116,51.60000316019595],[103.6200114278329,51.73999461527464],[103.85999677939637,51.85998729105637],[104.39996382041414,51.85998729105637],[105.05997521364597,52.0000045843512],[105.4800012553143,52.28001333272471],[105.98002241417046,52.51999868428817],[106.26000532432784,52.619992580772944],[106.57998579307912,52.79998159444554]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rWinnipeg","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-98.95540137408423,53.92978343364277],[-97.95799455441879,54.337097072967325],[-97.8050064766187,54.05938792583079],[-97.64380184608419,53.42521474874492],[-96.39258622921722,51.39730235453108],[-96.23789282915149,50.6910147161819],[-96.72558915890605,50.448910630894474],[-96.92110694048235,50.75405996357799],[-97.23568722205913,51.49778717712263],[-98.20097713905517,52.18456696228162],[-99.23680538612963,53.21628693298888],[-98.95540137408423,53.92978343364277]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Great\\rSlave Lake","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-115.00000342492967,61.9723932969562],[-115.80669837122196,62.54171255151576],[-116.0585951404287,62.77880402287089],[-115.84279435917783,62.7503044704619],[-114.45259497766185,62.42820526798667],[-113.35341142459757,62.04448192000336],[-111.77890804731261,62.44360484480964],[-111.04001258018727,62.92000987410843],[-110.20001217328286,63.08000010848407],[-109.40000932497237,62.87817780216814],[-109.09010576051801,62.814099026126215],[-109.11651241741916,62.6928144395372],[-110.10089677614705,62.51561595320837],[-111.27599300824811,62.34911448836395],[-112.63050981326654,61.55991201440246],[-113.64000891808828,61.07999298770784],[-115.3409903634076,60.87659455020702],[-116.43999304895887,60.86000641544133],[-118.06110856817108,61.31196849226605],[-118.3474735177165,61.36137116153708],[-118.3849906075604,61.52110301375126],[-118.17960262741634,61.55629466414203],[-116.8028132800801,61.32589529076871],[-115.67879920129957,61.69179026961132],[-115.00000342492967,61.9723932969562]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Ontario","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-79.05630591502026,43.25410431576152],[-79.36168779164908,43.20237620703736],[-79.76047481964547,43.29720246029295],[-79.46116492381094,43.639197089200565],[-79.1561706204243,43.75743276628437],[-78.45052893747877,43.9031861435636],[-77.60536088734519,44.039327704436545],[-77.16148617217414,43.850140285815996],[-76.88269181995948,44.0694550644627],[-76.56555355498425,44.20802541765336],[-76.35303422718391,44.134670722015045],[-76.23926856149336,43.979150499032656],[-76.17999569365458,43.5900011256587],[-76.9300015937227,43.2599954290428],[-77.74915056019732,43.342832750006664],[-78.53499406605984,43.379988104824534],[-79.05630591502026,43.25410431576152]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Erie","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-83.12001135937246,42.08001577409016],[-82.57123348664891,42.01702220312636],[-81.82918575715374,42.33552989355732],[-81.39226152212595,42.61517690690481],[-81.09496700715081,42.66075552018623],[-80.54515560578142,42.560089830081665],[-80.27917700877515,42.71566172949635],[-79.79135148793986,42.84203644466612],[-78.92000932485044,42.96500051530464],[-78.90057898630869,42.8667119410855],[-79.76220598012725,42.269616604169045],[-80.51644934764329,41.980331936199136],[-81.03119828970264,41.845508124349635],[-81.62351355663209,41.568935858723535],[-82.34744869660895,41.435920722004255],[-82.84610043000939,41.48710622818935],[-83.46283281119673,41.69396698665372],[-83.12001135937246,42.08001577409016],[-83.12001135937246,42.08001577409016]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Superior","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-89.60000342482806,48.00998973244721],[-89.19405921095924,48.40546946877693],[-88.62641944044917,48.56251414651193],[-88.40423661981026,48.80632355406499],[-88.17895321323383,48.93670319273738],[-87.24903581414156,48.73511343036678],[-86.56000810417788,48.71108388935106],[-86.32103044304411,48.57729360614741],[-85.98652889681881,48.01035146747326],[-84.8642201403039,47.86007640236849],[-85.04061764193222,47.575700995466306],[-84.64500871452178,47.28220469826462],[-84.81528255892351,46.90233124448706],[-84.39559241406505,46.77683502866624],[-84.60490780306328,46.439594631529474],[-84.9100054593145,46.48000560158172],[-85.11999264193253,46.76001434995524],[-86.1026200019625,46.67265534116582],[-86.99000769727856,46.45000743263628],[-87.69427995476835,46.83104360614041],[-88.2612220934425,46.958581041036766],[-87.93992387566777,47.485913194359185],[-88.82260901564527,47.154796454449],[-89.62498897984119,46.83083690041124],[-90.39703487828177,46.57648550067064],[-91.00999487991183,46.92000458433087],[-92.01192338740282,46.71167104754619],[-92.00877112503301,46.85843211525511],[-91.33000118687926,47.28000844989221],[-90.61999284540505,47.68000987404746],[-89.60000342482806,48.00998973244721]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rVictoria","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[33.85036827976734,0.128157863766091],[33.85036827976734,0.128157863766091],[34.13624230320599,-0.319308363449238],[34.0726286150547,-1.059831638191795],[33.579428745261055,-1.506005954599821],[33.251748488098286,-1.957968031424549],[33.64717654799571,-2.30089283611342],[33.07672041192572,-2.547131035984201],[32.95176679864397,-2.43044565186915],[32.37309410983957,-2.489925225437091],[31.926558058405476,-2.714511000177573],[31.648022088352292,-2.32921152100937],[31.836020949030114,-1.629305922048232],[31.866199985488578,-1.027378838712494],[31.815143670384202,-0.64042571371094],[32.27284183119332,-0.056120293786734],[32.906136508930246,0.0867650415003],[33.33184695815069,0.324993394365833],[33.85036827976734,0.128157863766091]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rLadoga","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[29.836711460089845,61.22608226179696],[29.836711460089845,61.22608226179696],[30.85199832532828,61.77504100203353],[32.52688317234018,61.11751007755173],[32.94432539239392,60.64260366478942],[32.81575442885176,60.481889960361684],[32.599901971168606,60.533514716221276],[32.583882277158125,60.20893504499601],[31.699440138482714,60.23565176049091],[31.50973595553924,59.92034800886205],[31.106246372204282,59.92768606224749],[31.10893354668346,60.14645823835514],[30.533878208139498,60.63009796817478],[30.502045525847706,60.843211574946466],[29.836711460089845,61.22608226179696]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBalkhash","name_alt":"Balqash Köli","admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[78.99076541536459,46.748619696634876],[78.99076541536459,46.748619696634876],[79.2451684915375,46.64516347918655],[78.88989301953086,46.369934800800024],[78.44506229036242,46.29717438413307],[77.20606814973246,46.3955663112168],[75.61128177277294,46.50718740496724],[75.46333214712132,46.6706141220903],[75.40566124868357,46.47080719663377],[74.91122114451494,46.404661363300164],[74.77138471873312,46.107831936215646],[74.27802981964263,46.004065660173566],[74.0999528339648,44.98893382423201],[73.4367375019309,45.60946442319282],[73.4399931171653,45.80586070411809],[73.73713260284359,46.012747300798594],[73.67925499867667,46.18307282163262],[74.02068118682908,46.20490611427593],[74.09432010284502,46.42781240496693],[74.939384800114,46.81678091082786],[76.20313195181177,46.7800131292522],[77.18131513866464,46.64340648048862],[77.85993004752152,46.64785065366573],[78.29700931184618,46.46853343361292],[78.39710656119556,46.657669175801175],[78.99076541536459,46.748619696634876]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rTanganyika","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[30.806006300588507,-8.578339125201033],[30.46442508313922,-8.498188978716335],[30.566847771941724,-8.1150082332721],[30.27735639824263,-7.848357842646031],[30.14702843600253,-7.299244073112582],[29.536523064906334,-6.7541610652979],[29.19318484875913,-6.038029066597119],[29.371985304489016,-5.616452731960017],[29.101717563602506,-5.054006442895265],[29.281034783655315,-3.455499362810748],[29.652588331833897,-4.420143324403149],[29.600085076625334,-4.896393324405054],[29.79195966972506,-5.040880629093131],[29.758421665167646,-5.466901136907339],[29.951226434048635,-5.860985609565162],[29.722041456834177,-6.244114678577112],[30.52803877129051,-6.922729587433992],[30.604158156056457,-7.541916599155222],[31.189032016735865,-8.729906101113095],[31.022117140433124,-8.786543470904988],[30.806006300588507,-8.578339125201033],[30.806006300588507,-8.578339125201033]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Malawi","name_alt":"Lake Nyasa","admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[35.2602047055542,-14.277474460510291],[35.236226840970915,-14.401291192281633],[34.881209751125766,-14.012012627826891],[34.706543409979076,-14.262023207255027],[34.54675988133266,-14.047669366108266],[34.55110070164528,-13.67208505621096],[34.3209338722171,-13.379389743709737],[34.32997724786827,-12.944584242405995],[34.032527703596315,-12.208556817272836],[34.322690870915096,-11.652983493702834],[34.25990400568048,-10.447579034062642],[33.906592238100984,-9.801726983278854],[33.99557905450757,-9.495440769084837],[34.52422895685345,-10.03013681400887],[34.60789310073403,-11.080511976773494],[34.93702029800096,-11.463434340056267],[34.69388268406766,-12.422393894096615],[34.86756717300062,-13.701127211159019],[35.05597944513687,-13.742933444883136],[35.2602047055542,-14.277474460510291]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Aral\\rSea","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[60.05285159692946,44.264636949229114],[59.77002648299603,44.15999217383806],[59.06288618351405,44.36928172462015],[59.34571129744745,44.99720205339871],[59.35930219914022,45.190006822279685],[58.96139367049281,45.37500844988459],[58.92144778833119,45.101846828789746],[58.92144778833119,44.73556427670495],[58.497132602782614,44.212340399749735],[58.285000848224456,44.473952338227335],[58.285000848224456,44.89255727800766],[58.689989048095896,45.50001373959863],[58.78000939314833,45.88673432065487],[59.20427290226462,45.93905670835039],[59.535002068932585,45.70501414650049],[59.55784305200561,46.30533926043519],[59.77002648299603,46.25299103452352],[60.12359663273702,46.096023871436955],[60.12359663273702,45.88673432065487],[59.94675988143425,45.808211981787366],[59.84071984237133,45.520477606786216],[60.12359663273702,45.572774156265595],[60.23997195825834,44.78403677019473],[60.05285159692946,44.264636949229114]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Vänern","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[13.979281447005576,59.20491364199721],[13.979281447005576,59.20491364199721],[13.984449090234762,59.086212877022774],[13.91892337408865,58.902503160225166],[13.28268313971111,58.608670966213566],[12.830100945698888,58.50903880475484],[12.460149366921371,58.50619660097878],[12.537767368223768,58.77594757754237],[12.522161085671598,58.880282294339665],[12.697085808979608,58.953843695707135],[13.027039829163215,58.993531195707305],[13.195298292705559,59.12900096296045],[13.59144982265505,59.336481838612315],[13.979281447005576,59.20491364199721]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Okeechobee","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-80.70643775096435,26.788959458924822],[-80.93244462759287,26.823272609966622],[-80.91970638703292,27.068916530866048],[-80.69369951040441,27.034629218040394],[-80.70643775096435,26.788959458924822],[-80.70643775096435,26.788959458924822]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago de\\rNicaragua","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-84.85548682324658,11.147898667846633],[-85.29013729525353,11.176165676310276],[-85.79132117383625,11.509737046754324],[-85.8851655748783,11.900100816287136],[-85.5653401354239,11.940330918826362],[-85.03684526237491,11.5216484643976],[-84.85548682324658,11.147898667846633],[-84.85548682324658,11.147898667846633]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Tana","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[37.14370730972843,11.850594794151519],[37.01482628759251,12.035596421756424],[37.24401126480697,12.233878892460353],[37.518361443844526,12.160601711470477],[37.48187788264647,11.825092474815477],[37.33635704931254,11.713393866416595],[37.14370730972843,11.850594794151519],[37.14370730972843,11.850594794151519]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago Titicaca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-69.40673987494259,-16.126198825752063],[-69.7290974595793,-15.928794854397104],[-69.98365556504908,-15.73717864345884],[-69.8770212470148,-15.669844252182529],[-69.8679778713637,-15.546079196843493],[-69.88559953477524,-15.35425628017606],[-69.59675411647981,-15.410480238509614],[-68.98697221543571,-15.885903415594846],[-68.9596870591856,-15.91329192470954],[-68.74623755560401,-16.356003920154023],[-68.90524593776611,-16.506640720284835],[-69.00115739609983,-16.536406345284952],[-69.09084184434238,-16.461992282784657],[-69.18205074733753,-16.40116912197712],[-69.25098710801488,-16.227536309476427],[-69.40673987494259,-16.126198825752063],[-69.40673987494259,-16.126198825752063]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rWinnipegosis","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-99.40377193886468,53.1258531764781],[-99.54846594928192,53.120427151087455],[-99.80498775917877,53.14290639913442],[-100.43146114785316,53.2841897650204],[-100.60685095905177,53.531616522833886],[-100.33487789589965,53.745246893928496],[-100.42673275429846,53.90740753846039],[-100.4044860501968,53.94507965760117],[-100.32629960813921,54.094011135466346],[-100.23586585162842,54.23033356385231],[-99.99549292682278,54.215864162810576],[-100.04778947630214,54.10013479269293],[-100.18356930214904,53.930351874397985],[-99.87128862180926,53.928465684619326],[-99.91066606321566,53.821314602262134],[-100.05649695514333,53.44332733826322],[-99.66551306842301,53.29581696228607],[-99.39317827024485,53.26791168884846],[-99.40377193886468,53.1258531764781],[-99.40377193886468,53.1258531764781]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rOnega","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[35.71464725112901,62.2802298041189],[36.0541614112866,61.716310736733874],[36.391401808423325,61.27605337182331],[36.10945519383887,61.01508738874924],[35.35074181492962,60.948579820389625],[34.866843702948586,61.11637319604125],[35.207288038887384,61.114435329830485],[35.57832482274313,61.08634918887975],[35.16000410334027,61.39428904890701],[34.85733523940689,61.55179881453273],[34.48691857273877,61.86697337508076],[34.265019972477376,62.21914826114994],[34.289824659977455,62.29774811466581],[34.66561567560399,62.22979360620195],[34.62613488133297,62.45223480900245],[34.8356311378443,62.29676626245225],[35.080267368314026,62.1411943630377],[35.21658979669991,62.193284206787894],[35.463706495919666,62.2560193955901],[35.13969526544963,62.48776235620312],[34.614352654770414,62.762448432050576],[34.99541466649072,62.748469957115674],[35.23395307795005,62.675347805422575],[35.71464725112901,62.2802298041189]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great Salt Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-112.18405127648089,41.34124949804567],[-112.13875688357706,41.142346910154174],[-112.17193315310845,40.851460272783186],[-112.67882727745939,41.130487168943205],[-112.70549231652205,41.16753917089636],[-112.87814327680917,41.62815705013003],[-112.58955624067522,41.43891795507716],[-112.40532975955472,41.33801972102742],[-112.21901038292629,41.42855683040267],[-112.18405127648089,41.34124949804567]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great\\rBear Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-117.7592923653704,66.22368419052789],[-117.97374955938167,65.85489533147692],[-118.10710059291085,65.76691620550001],[-119.7200520432652,65.73479930283061],[-119.74568355368197,65.65436493596833],[-119.6648099371452,65.52742178004333],[-119.70219783590836,65.36794830999061],[-121.35509436098008,64.87999359807459],[-121.33610327211281,64.99461192489797],[-120.94527441468938,65.37774099390991],[-121.05728308168202,65.4463414577774],[-122.56450374412293,65.0310696478799],[-123.232705851873,65.18041453720339],[-123.17963415590926,65.31937246363624],[-122.32599117087979,65.79378795029179],[-122.35622188377054,65.90184337021411],[-124.95363440005697,66.04925039332666],[-124.89753963280414,66.15115631780624],[-119.48724971579031,66.96929759385118],[-119.35743771042887,66.87519481064767],[-120.1769492193738,66.46527151149239],[-117.60545162643749,66.55934845647975],[-117.61278967982294,66.41997711858856],[-117.7592923653704,66.22368419052789],[-117.7592923653704,66.22368419052789]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Athabasca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-109.65330135785099,59.03763703066841],[-111.08626298708849,58.56017263450765],[-111.19948605023998,58.685565497463884],[-111.160005255969,58.75985036888345],[-109.09672034385136,59.55042226830068],[-106.54517066122398,59.31968699811746],[-106.54695349813804,59.292815253325685],[-109.65330135785099,59.03763703066841],[-109.65330135785099,59.03763703066841]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Reindeer\\rLake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-101.89514441608819,58.01403025983099],[-101.89514441608819,58.01403025983099],[-101.54384802936804,57.86809601503873],[-101.97090206582807,57.34867035585697],[-101.93403093138781,57.23066722271848],[-103.20416012247362,56.34539826112639],[-103.2825015938281,56.40994212505895],[-103.1487371488406,56.70411021588043],[-103.07832800984292,56.71080231386223],[-103.01440426309787,56.56510061301529],[-102.57680823445028,56.938281968811054],[-102.81322791218561,57.28714956321349],[-102.81369300007623,57.46434804954232],[-102.12874772826359,58.01914622662788],[-101.89514441608819,58.01403025983099]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rHuron","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-80.41056433787725,45.590137437515665],[-79.76292945017934,44.824602769543844],[-80.08500281443844,44.493925279308144],[-80.89769222687659,44.63164297136599],[-81.40233842642287,45.25005483660284],[-81.27567949087549,44.6201708033972],[-81.75265296092948,44.06464915625956],[-81.70017554393709,43.590052802090995],[-81.78272864452336,43.310845038417995],[-82.43000179719522,42.98001251888543],[-82.4799987454376,43.39001333268915],[-82.6599877591102,43.970003770516996],[-83.02999101432,44.06999766700177],[-83.6500048489579,43.62999868425261],[-83.84870073112015,43.63831858985161],[-83.89998959016984,43.88998281511303],[-83.34999732128743,44.29001007748441],[-83.25878841829228,44.74574453386644],[-83.33999793163895,45.200006211928155],[-84.08000444205858,45.58998240821879],[-84.93000423861146,45.789996039404485],[-84.75355506055087,45.924483954444085],[-84.71999121777729,45.91998810483469],[-83.83919226757845,46.010215155616294],[-84.33670711946846,46.40876963966737],[-84.14870825879063,46.55576325132161],[-83.95257036002683,46.334278062518635],[-83.20251278352643,46.21015127215355],[-82.44199072948692,46.19963511818216],[-81.63136837434045,46.09754832618957],[-80.73679765493583,45.90381338152733],[-80.41056433787725,45.590137437515665]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rMichigan","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-85.53999284538475,46.03000722918408],[-84.75355506055087,45.924483954444085],[-84.93000423861146,45.789996039404485],[-85.06999569369015,45.40999339454619],[-85.29044735384727,45.30824249936349],[-85.46710323763705,44.81457754167923],[-85.55999162468169,45.150009263685774],[-85.95983801954006,44.91059235287753],[-86.20935767286137,44.574798895844935],[-86.47027197950304,44.08423452409818],[-86.52001054558397,43.65999685319804],[-86.18842871778315,43.04140412044818],[-86.21604977084317,42.38170278581012],[-86.62191647006355,41.8944198675139],[-86.8244364082154,41.75618541113313],[-87.09444576694042,41.64616628678374],[-87.4342183092595,41.640714423176945],[-87.52617652052288,41.70851390234388],[-87.79569495314115,42.23411489518453],[-87.80344641798493,42.49399567318035],[-87.77672970249003,42.740853990238634],[-87.90214840366241,43.23051402442029],[-87.71221167677363,43.79650014909703],[-87.486359829442,44.49335683855294],[-86.9674767727993,45.26287059181122],[-87.11806189649782,45.25933075619923],[-87.85282324903983,44.61505483660031],[-87.98831885450912,44.73331635190026],[-87.5964306302237,45.093707790703775],[-87.00000708692704,45.73999909116209],[-86.31999691439827,45.829993597998396],[-85.53999284538475,46.03000722918408]]]}}]'), _i = {
|
|
1949
|
-
type: yi,
|
|
1950
|
-
features: hi
|
|
1951
|
-
};
|
|
1952
|
-
function gi(e) {
|
|
1953
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1954
|
-
}
|
|
1955
|
-
var Ie = {}, lt, cn;
|
|
1956
|
-
function wi() {
|
|
1957
|
-
if (cn) return lt;
|
|
1958
|
-
cn = 1, lt = w;
|
|
1959
|
-
var e, n, a, i, l, d = 1e6, y = {
|
|
1842
|
+
var Oe = {}, it, un;
|
|
1843
|
+
function si() {
|
|
1844
|
+
if (un) return it;
|
|
1845
|
+
un = 1, it = h;
|
|
1846
|
+
var t, n, a, o, u, d = 1e6, y = {
|
|
1960
1847
|
Point: 0,
|
|
1961
1848
|
MultiPoint: 1,
|
|
1962
1849
|
LineString: 2,
|
|
@@ -1965,135 +1852,135 @@ function wi() {
|
|
|
1965
1852
|
MultiPolygon: 5,
|
|
1966
1853
|
GeometryCollection: 6
|
|
1967
1854
|
};
|
|
1968
|
-
function
|
|
1969
|
-
|
|
1970
|
-
for (var
|
|
1971
|
-
return
|
|
1855
|
+
function h(s, p) {
|
|
1856
|
+
t = {}, a = [], n = 0, o = 0, u = 1, T(s), u = Math.min(u, d);
|
|
1857
|
+
for (var g = Math.ceil(Math.log(u) / Math.LN10), D = 0; D < a.length; D++) p.writeStringField(1, a[D]);
|
|
1858
|
+
return o !== 2 && p.writeVarintField(2, o), g !== 6 && p.writeVarintField(3, g), s.type === "FeatureCollection" ? p.writeMessage(4, O, s) : s.type === "Feature" ? p.writeMessage(5, C, s) : p.writeMessage(6, P, s), t = null, p.finish();
|
|
1972
1859
|
}
|
|
1973
|
-
function
|
|
1974
|
-
var
|
|
1860
|
+
function T(s) {
|
|
1861
|
+
var p, g;
|
|
1975
1862
|
if (s.type === "FeatureCollection")
|
|
1976
|
-
for (
|
|
1863
|
+
for (p = 0; p < s.features.length; p++) T(s.features[p]);
|
|
1977
1864
|
else if (s.type === "Feature") {
|
|
1978
|
-
s.geometry !== null &&
|
|
1979
|
-
for (
|
|
1865
|
+
s.geometry !== null && T(s.geometry);
|
|
1866
|
+
for (g in s.properties) F(g);
|
|
1980
1867
|
} else if (s.type === "Point") E(s.coordinates);
|
|
1981
|
-
else if (s.type === "MultiPoint")
|
|
1868
|
+
else if (s.type === "MultiPoint") S(s.coordinates);
|
|
1982
1869
|
else if (s.type === "GeometryCollection")
|
|
1983
|
-
for (
|
|
1984
|
-
else if (s.type === "LineString")
|
|
1985
|
-
else if (s.type === "Polygon" || s.type === "MultiLineString")
|
|
1870
|
+
for (p = 0; p < s.geometries.length; p++) T(s.geometries[p]);
|
|
1871
|
+
else if (s.type === "LineString") S(s.coordinates);
|
|
1872
|
+
else if (s.type === "Polygon" || s.type === "MultiLineString") N(s.coordinates);
|
|
1986
1873
|
else if (s.type === "MultiPolygon")
|
|
1987
|
-
for (
|
|
1988
|
-
for (
|
|
1989
|
-
g
|
|
1874
|
+
for (p = 0; p < s.coordinates.length; p++) N(s.coordinates[p]);
|
|
1875
|
+
for (g in s)
|
|
1876
|
+
_(g, s.type) || F(g);
|
|
1990
1877
|
}
|
|
1991
|
-
function
|
|
1992
|
-
for (var
|
|
1878
|
+
function N(s) {
|
|
1879
|
+
for (var p = 0; p < s.length; p++) S(s[p]);
|
|
1993
1880
|
}
|
|
1994
|
-
function
|
|
1995
|
-
for (var
|
|
1881
|
+
function S(s) {
|
|
1882
|
+
for (var p = 0; p < s.length; p++) E(s[p]);
|
|
1996
1883
|
}
|
|
1997
1884
|
function E(s) {
|
|
1998
|
-
|
|
1999
|
-
for (var
|
|
2000
|
-
for (; Math.round(s[
|
|
2001
|
-
}
|
|
2002
|
-
function
|
|
2003
|
-
|
|
2004
|
-
}
|
|
2005
|
-
function
|
|
2006
|
-
for (var
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
}
|
|
2010
|
-
function
|
|
2011
|
-
s.geometry !== null &&
|
|
2012
|
-
}
|
|
2013
|
-
function
|
|
2014
|
-
|
|
2015
|
-
var
|
|
2016
|
-
if (s.type === "Point")
|
|
2017
|
-
else if (s.type === "MultiPoint")
|
|
2018
|
-
else if (s.type === "LineString")
|
|
2019
|
-
else if (s.type === "MultiLineString")
|
|
2020
|
-
else if (s.type === "Polygon")
|
|
2021
|
-
else if (s.type === "MultiPolygon")
|
|
1885
|
+
o = Math.max(o, s.length);
|
|
1886
|
+
for (var p = 0; p < s.length; p++)
|
|
1887
|
+
for (; Math.round(s[p] * u) / u !== s[p] && u < d; ) u *= 10;
|
|
1888
|
+
}
|
|
1889
|
+
function F(s) {
|
|
1890
|
+
t[s] === void 0 && (a.push(s), t[s] = n++);
|
|
1891
|
+
}
|
|
1892
|
+
function O(s, p) {
|
|
1893
|
+
for (var g = 0; g < s.features.length; g++)
|
|
1894
|
+
p.writeMessage(1, C, s.features[g]);
|
|
1895
|
+
L(s, p, !0);
|
|
1896
|
+
}
|
|
1897
|
+
function C(s, p) {
|
|
1898
|
+
s.geometry !== null && p.writeMessage(1, P, s.geometry), s.id !== void 0 && (typeof s.id == "number" && s.id % 1 === 0 ? p.writeSVarintField(12, s.id) : p.writeStringField(11, s.id)), s.properties && L(s.properties, p), L(s, p, !0);
|
|
1899
|
+
}
|
|
1900
|
+
function P(s, p) {
|
|
1901
|
+
p.writeVarintField(1, y[s.type]);
|
|
1902
|
+
var g = s.coordinates;
|
|
1903
|
+
if (s.type === "Point") I(g, p);
|
|
1904
|
+
else if (s.type === "MultiPoint") U(g, p);
|
|
1905
|
+
else if (s.type === "LineString") U(g, p);
|
|
1906
|
+
else if (s.type === "MultiLineString") z(g, p);
|
|
1907
|
+
else if (s.type === "Polygon") z(g, p, !0);
|
|
1908
|
+
else if (s.type === "MultiPolygon") b(g, p);
|
|
2022
1909
|
else if (s.type === "GeometryCollection")
|
|
2023
|
-
for (var
|
|
2024
|
-
|
|
1910
|
+
for (var D = 0; D < s.geometries.length; D++) p.writeMessage(4, P, s.geometries[D]);
|
|
1911
|
+
L(s, p, !0);
|
|
2025
1912
|
}
|
|
2026
|
-
function
|
|
2027
|
-
var
|
|
2028
|
-
for (var
|
|
2029
|
-
|
|
2030
|
-
|
|
1913
|
+
function L(s, p, g) {
|
|
1914
|
+
var D = [], e = 0;
|
|
1915
|
+
for (var i in s)
|
|
1916
|
+
g && _(i, s.type) || (p.writeMessage(13, A, s[i]), D.push(t[i]), D.push(e++));
|
|
1917
|
+
p.writePackedVarint(g ? 15 : 14, D);
|
|
2031
1918
|
}
|
|
2032
|
-
function
|
|
1919
|
+
function A(s, p) {
|
|
2033
1920
|
if (s !== null) {
|
|
2034
|
-
var
|
|
2035
|
-
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
function
|
|
2039
|
-
for (var
|
|
2040
|
-
|
|
2041
|
-
}
|
|
2042
|
-
function
|
|
2043
|
-
var
|
|
2044
|
-
|
|
2045
|
-
}
|
|
2046
|
-
function
|
|
2047
|
-
var
|
|
2048
|
-
if (
|
|
2049
|
-
var
|
|
2050
|
-
for (
|
|
2051
|
-
|
|
2052
|
-
}
|
|
2053
|
-
var
|
|
2054
|
-
for (
|
|
2055
|
-
|
|
2056
|
-
}
|
|
2057
|
-
function
|
|
2058
|
-
var
|
|
2059
|
-
if (
|
|
2060
|
-
var
|
|
2061
|
-
for (
|
|
2062
|
-
for (
|
|
2063
|
-
|
|
2064
|
-
}
|
|
2065
|
-
var
|
|
2066
|
-
for (
|
|
2067
|
-
for (
|
|
2068
|
-
|
|
2069
|
-
}
|
|
2070
|
-
function
|
|
2071
|
-
var
|
|
2072
|
-
for (
|
|
2073
|
-
for (
|
|
2074
|
-
for (
|
|
2075
|
-
var
|
|
2076
|
-
s.push(
|
|
1921
|
+
var g = typeof s;
|
|
1922
|
+
g === "string" ? p.writeStringField(1, s) : g === "boolean" ? p.writeBooleanField(5, s) : g === "object" ? p.writeStringField(6, JSON.stringify(s)) : g === "number" && (s % 1 !== 0 ? p.writeDoubleField(2, s) : s >= 0 ? p.writeVarintField(3, s) : p.writeVarintField(4, -s));
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
function I(s, p) {
|
|
1926
|
+
for (var g = [], D = 0; D < o; D++) g.push(Math.round(s[D] * u));
|
|
1927
|
+
p.writePackedSVarint(3, g);
|
|
1928
|
+
}
|
|
1929
|
+
function U(s, p) {
|
|
1930
|
+
var g = [];
|
|
1931
|
+
f(g, s), p.writePackedSVarint(3, g);
|
|
1932
|
+
}
|
|
1933
|
+
function z(s, p, g) {
|
|
1934
|
+
var D = s.length, e;
|
|
1935
|
+
if (D !== 1) {
|
|
1936
|
+
var i = [];
|
|
1937
|
+
for (e = 0; e < D; e++) i.push(s[e].length - (g ? 1 : 0));
|
|
1938
|
+
p.writePackedVarint(2, i);
|
|
1939
|
+
}
|
|
1940
|
+
var l = [];
|
|
1941
|
+
for (e = 0; e < D; e++) f(l, s[e], g);
|
|
1942
|
+
p.writePackedSVarint(3, l);
|
|
1943
|
+
}
|
|
1944
|
+
function b(s, p) {
|
|
1945
|
+
var g = s.length, D, e;
|
|
1946
|
+
if (g !== 1 || s[0].length !== 1) {
|
|
1947
|
+
var i = [g];
|
|
1948
|
+
for (D = 0; D < g; D++)
|
|
1949
|
+
for (i.push(s[D].length), e = 0; e < s[D].length; e++) i.push(s[D][e].length - 1);
|
|
1950
|
+
p.writePackedVarint(2, i);
|
|
1951
|
+
}
|
|
1952
|
+
var l = [];
|
|
1953
|
+
for (D = 0; D < g; D++)
|
|
1954
|
+
for (e = 0; e < s[D].length; e++) f(l, s[D][e], !0);
|
|
1955
|
+
p.writePackedSVarint(3, l);
|
|
1956
|
+
}
|
|
1957
|
+
function f(s, p, g) {
|
|
1958
|
+
var D, e, i = p.length - (g ? 1 : 0), l = new Array(o);
|
|
1959
|
+
for (e = 0; e < o; e++) l[e] = 0;
|
|
1960
|
+
for (D = 0; D < i; D++)
|
|
1961
|
+
for (e = 0; e < o; e++) {
|
|
1962
|
+
var w = Math.round(p[D][e] * u) - l[e];
|
|
1963
|
+
s.push(w), l[e] += w;
|
|
2077
1964
|
}
|
|
2078
1965
|
}
|
|
2079
|
-
function
|
|
1966
|
+
function _(s, p) {
|
|
2080
1967
|
if (s === "type") return !0;
|
|
2081
|
-
if (
|
|
1968
|
+
if (p === "FeatureCollection") {
|
|
2082
1969
|
if (s === "features") return !0;
|
|
2083
|
-
} else if (
|
|
1970
|
+
} else if (p === "Feature") {
|
|
2084
1971
|
if (s === "id" || s === "properties" || s === "geometry") return !0;
|
|
2085
|
-
} else if (
|
|
1972
|
+
} else if (p === "GeometryCollection") {
|
|
2086
1973
|
if (s === "geometries") return !0;
|
|
2087
1974
|
} else if (s === "coordinates") return !0;
|
|
2088
1975
|
return !1;
|
|
2089
1976
|
}
|
|
2090
|
-
return
|
|
1977
|
+
return it;
|
|
2091
1978
|
}
|
|
2092
|
-
var
|
|
2093
|
-
function
|
|
2094
|
-
if (
|
|
2095
|
-
|
|
2096
|
-
var
|
|
1979
|
+
var ot, cn;
|
|
1980
|
+
function li() {
|
|
1981
|
+
if (cn) return ot;
|
|
1982
|
+
cn = 1, ot = y;
|
|
1983
|
+
var t, n, a, o, u, d = [
|
|
2097
1984
|
"Point",
|
|
2098
1985
|
"MultiPoint",
|
|
2099
1986
|
"LineString",
|
|
@@ -2102,522 +1989,644 @@ function vi() {
|
|
|
2102
1989
|
"MultiPolygon",
|
|
2103
1990
|
"GeometryCollection"
|
|
2104
1991
|
];
|
|
2105
|
-
function y(
|
|
2106
|
-
|
|
2107
|
-
var
|
|
2108
|
-
return
|
|
1992
|
+
function y(f) {
|
|
1993
|
+
o = 2, u = Math.pow(10, 6), a = null, t = [], n = [];
|
|
1994
|
+
var _ = f.readFields(h, {});
|
|
1995
|
+
return t = null, _;
|
|
2109
1996
|
}
|
|
2110
|
-
function
|
|
2111
|
-
|
|
1997
|
+
function h(f, _, s) {
|
|
1998
|
+
f === 1 ? t.push(s.readString()) : f === 2 ? o = s.readVarint() : f === 3 ? u = Math.pow(10, s.readVarint()) : f === 4 ? T(s, _) : f === 5 ? N(s, _) : f === 6 && S(s, _);
|
|
2112
1999
|
}
|
|
2113
|
-
function
|
|
2114
|
-
return
|
|
2000
|
+
function T(f, _) {
|
|
2001
|
+
return _.type = "FeatureCollection", _.features = [], f.readMessage(E, _);
|
|
2115
2002
|
}
|
|
2116
|
-
function
|
|
2117
|
-
|
|
2118
|
-
var s =
|
|
2003
|
+
function N(f, _) {
|
|
2004
|
+
_.type = "Feature";
|
|
2005
|
+
var s = f.readMessage(F, _);
|
|
2119
2006
|
return "geometry" in s || (s.geometry = null), s;
|
|
2120
2007
|
}
|
|
2121
|
-
function
|
|
2122
|
-
return
|
|
2008
|
+
function S(f, _) {
|
|
2009
|
+
return _.type = "Point", f.readMessage(O, _);
|
|
2123
2010
|
}
|
|
2124
|
-
function E(
|
|
2125
|
-
|
|
2011
|
+
function E(f, _, s) {
|
|
2012
|
+
f === 1 ? _.features.push(N(s, {})) : f === 13 ? n.push(P(s)) : f === 15 && L(s, _);
|
|
2126
2013
|
}
|
|
2127
|
-
function
|
|
2128
|
-
|
|
2014
|
+
function F(f, _, s) {
|
|
2015
|
+
f === 1 ? _.geometry = S(s, {}) : f === 11 ? _.id = s.readString() : f === 12 ? _.id = s.readSVarint() : f === 13 ? n.push(P(s)) : f === 14 ? _.properties = L(s, {}) : f === 15 && L(s, _);
|
|
2129
2016
|
}
|
|
2130
|
-
function
|
|
2131
|
-
|
|
2017
|
+
function O(f, _, s) {
|
|
2018
|
+
f === 1 ? _.type = d[s.readVarint()] : f === 2 ? a = s.readPackedVarint() : f === 3 ? C(_, s, _.type) : f === 4 ? (_.geometries = _.geometries || [], _.geometries.push(S(s, {}))) : f === 13 ? n.push(P(s)) : f === 15 && L(s, _);
|
|
2132
2019
|
}
|
|
2133
|
-
function
|
|
2134
|
-
s === "Point" ?
|
|
2020
|
+
function C(f, _, s) {
|
|
2021
|
+
s === "Point" ? f.coordinates = A(_) : s === "MultiPoint" || s === "LineString" ? f.coordinates = U(_) : s === "MultiLineString" ? f.coordinates = z(_) : s === "Polygon" ? f.coordinates = z(_, !0) : s === "MultiPolygon" && (f.coordinates = b(_));
|
|
2135
2022
|
}
|
|
2136
|
-
function
|
|
2137
|
-
for (var
|
|
2138
|
-
var
|
|
2139
|
-
|
|
2023
|
+
function P(f) {
|
|
2024
|
+
for (var _ = f.readVarint() + f.pos, s = null; f.pos < _; ) {
|
|
2025
|
+
var p = f.readVarint(), g = p >> 3;
|
|
2026
|
+
g === 1 ? s = f.readString() : g === 2 ? s = f.readDouble() : g === 3 ? s = f.readVarint() : g === 4 ? s = -f.readVarint() : g === 5 ? s = f.readBoolean() : g === 6 && (s = JSON.parse(f.readString()));
|
|
2140
2027
|
}
|
|
2141
2028
|
return s;
|
|
2142
2029
|
}
|
|
2143
|
-
function
|
|
2144
|
-
for (var s =
|
|
2145
|
-
return n = [],
|
|
2030
|
+
function L(f, _) {
|
|
2031
|
+
for (var s = f.readVarint() + f.pos; f.pos < s; ) _[t[f.readVarint()]] = n[f.readVarint()];
|
|
2032
|
+
return n = [], _;
|
|
2146
2033
|
}
|
|
2147
|
-
function
|
|
2148
|
-
for (var
|
|
2034
|
+
function A(f) {
|
|
2035
|
+
for (var _ = f.readVarint() + f.pos, s = []; f.pos < _; ) s.push(f.readSVarint() / u);
|
|
2149
2036
|
return s;
|
|
2150
2037
|
}
|
|
2151
|
-
function
|
|
2152
|
-
var
|
|
2153
|
-
for (
|
|
2154
|
-
for (; s ?
|
|
2155
|
-
for (
|
|
2156
|
-
|
|
2157
|
-
|
|
2038
|
+
function I(f, _, s, p) {
|
|
2039
|
+
var g = 0, D = [], e, i, l = [];
|
|
2040
|
+
for (i = 0; i < o; i++) l[i] = 0;
|
|
2041
|
+
for (; s ? g < s : f.pos < _; ) {
|
|
2042
|
+
for (e = [], i = 0; i < o; i++)
|
|
2043
|
+
l[i] += f.readSVarint(), e[i] = l[i] / u;
|
|
2044
|
+
D.push(e), g++;
|
|
2158
2045
|
}
|
|
2159
|
-
return
|
|
2046
|
+
return p && D.push(D[0]), D;
|
|
2160
2047
|
}
|
|
2161
|
-
function
|
|
2162
|
-
return
|
|
2048
|
+
function U(f) {
|
|
2049
|
+
return I(f, f.readVarint() + f.pos);
|
|
2163
2050
|
}
|
|
2164
|
-
function
|
|
2165
|
-
var s =
|
|
2166
|
-
if (!a) return [
|
|
2167
|
-
for (var
|
|
2168
|
-
return a = null,
|
|
2051
|
+
function z(f, _) {
|
|
2052
|
+
var s = f.readVarint() + f.pos;
|
|
2053
|
+
if (!a) return [I(f, s, null, _)];
|
|
2054
|
+
for (var p = [], g = 0; g < a.length; g++) p.push(I(f, s, a[g], _));
|
|
2055
|
+
return a = null, p;
|
|
2169
2056
|
}
|
|
2170
|
-
function
|
|
2171
|
-
var
|
|
2172
|
-
if (!a) return [[
|
|
2173
|
-
for (var s = [],
|
|
2174
|
-
for (var
|
|
2175
|
-
|
|
2057
|
+
function b(f) {
|
|
2058
|
+
var _ = f.readVarint() + f.pos;
|
|
2059
|
+
if (!a) return [[I(f, _, null, !0)]];
|
|
2060
|
+
for (var s = [], p = 1, g = 0; g < a[0]; g++) {
|
|
2061
|
+
for (var D = [], e = 0; e < a[p]; e++) D.push(I(f, _, a[p + 1 + e], !0));
|
|
2062
|
+
p += a[p] + 1, s.push(D);
|
|
2176
2063
|
}
|
|
2177
2064
|
return a = null, s;
|
|
2178
2065
|
}
|
|
2179
|
-
return
|
|
2066
|
+
return ot;
|
|
2180
2067
|
}
|
|
2068
|
+
var dn;
|
|
2069
|
+
function ui() {
|
|
2070
|
+
return dn || (dn = 1, Oe.encode = si(), Oe.decode = li()), Oe;
|
|
2071
|
+
}
|
|
2072
|
+
var ci = ui(), Ie = {};
|
|
2181
2073
|
var mn;
|
|
2182
|
-
function
|
|
2183
|
-
return mn || (mn = 1, Ie.
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
var fn;
|
|
2187
|
-
function Mi() {
|
|
2188
|
-
return fn || (fn = 1, Ce.read = function(e, n, a, i, l) {
|
|
2189
|
-
var d, y, w = l * 8 - i - 1, S = (1 << w) - 1, D = S >> 1, h = -7, E = a ? l - 1 : 0, L = a ? -1 : 1, R = e[n + E];
|
|
2190
|
-
for (E += L, d = R & (1 << -h) - 1, R >>= -h, h += w; h > 0; d = d * 256 + e[n + E], E += L, h -= 8)
|
|
2074
|
+
function di() {
|
|
2075
|
+
return mn || (mn = 1, Ie.read = function(t, n, a, o, u) {
|
|
2076
|
+
var d, y, h = u * 8 - o - 1, T = (1 << h) - 1, N = T >> 1, S = -7, E = a ? u - 1 : 0, F = a ? -1 : 1, O = t[n + E];
|
|
2077
|
+
for (E += F, d = O & (1 << -S) - 1, O >>= -S, S += h; S > 0; d = d * 256 + t[n + E], E += F, S -= 8)
|
|
2191
2078
|
;
|
|
2192
|
-
for (y = d & (1 << -
|
|
2079
|
+
for (y = d & (1 << -S) - 1, d >>= -S, S += o; S > 0; y = y * 256 + t[n + E], E += F, S -= 8)
|
|
2193
2080
|
;
|
|
2194
2081
|
if (d === 0)
|
|
2195
|
-
d = 1 -
|
|
2082
|
+
d = 1 - N;
|
|
2196
2083
|
else {
|
|
2197
|
-
if (d ===
|
|
2198
|
-
return y ? NaN : (
|
|
2199
|
-
y = y + Math.pow(2,
|
|
2200
|
-
}
|
|
2201
|
-
return (
|
|
2202
|
-
},
|
|
2203
|
-
var y,
|
|
2204
|
-
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (
|
|
2084
|
+
if (d === T)
|
|
2085
|
+
return y ? NaN : (O ? -1 : 1) * (1 / 0);
|
|
2086
|
+
y = y + Math.pow(2, o), d = d - N;
|
|
2087
|
+
}
|
|
2088
|
+
return (O ? -1 : 1) * y * Math.pow(2, d - o);
|
|
2089
|
+
}, Ie.write = function(t, n, a, o, u, d) {
|
|
2090
|
+
var y, h, T, N = d * 8 - u - 1, S = (1 << N) - 1, E = S >> 1, F = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, O = o ? 0 : d - 1, C = o ? 1 : -1, P = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
2091
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (h = isNaN(n) ? 1 : 0, y = S) : (y = Math.floor(Math.log(n) / Math.LN2), n * (T = Math.pow(2, -y)) < 1 && (y--, T *= 2), y + E >= 1 ? n += F / T : n += F * Math.pow(2, 1 - E), n * T >= 2 && (y++, T /= 2), y + E >= S ? (h = 0, y = S) : y + E >= 1 ? (h = (n * T - 1) * Math.pow(2, u), y = y + E) : (h = n * Math.pow(2, E - 1) * Math.pow(2, u), y = 0)); u >= 8; t[a + O] = h & 255, O += C, h /= 256, u -= 8)
|
|
2205
2092
|
;
|
|
2206
|
-
for (y = y <<
|
|
2093
|
+
for (y = y << u | h, N += u; N > 0; t[a + O] = y & 255, O += C, y /= 256, N -= 8)
|
|
2207
2094
|
;
|
|
2208
|
-
|
|
2209
|
-
}),
|
|
2095
|
+
t[a + O - C] |= P * 128;
|
|
2096
|
+
}), Ie;
|
|
2210
2097
|
}
|
|
2211
|
-
var
|
|
2212
|
-
function
|
|
2213
|
-
if (
|
|
2214
|
-
|
|
2215
|
-
var
|
|
2216
|
-
function n(
|
|
2217
|
-
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(
|
|
2098
|
+
var st, fn;
|
|
2099
|
+
function mi() {
|
|
2100
|
+
if (fn) return st;
|
|
2101
|
+
fn = 1, st = n;
|
|
2102
|
+
var t = di();
|
|
2103
|
+
function n(e) {
|
|
2104
|
+
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
|
|
2218
2105
|
}
|
|
2219
2106
|
n.Varint = 0, n.Fixed64 = 1, n.Bytes = 2, n.Fixed32 = 5;
|
|
2220
|
-
var a = 65536 * 65536,
|
|
2107
|
+
var a = 65536 * 65536, o = 1 / a, u = 12, d = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
|
|
2221
2108
|
n.prototype = {
|
|
2222
2109
|
destroy: function() {
|
|
2223
2110
|
this.buf = null;
|
|
2224
2111
|
},
|
|
2225
2112
|
// === READING =================================================================
|
|
2226
|
-
readFields: function(
|
|
2227
|
-
for (
|
|
2228
|
-
var
|
|
2229
|
-
this.type =
|
|
2113
|
+
readFields: function(e, i, l) {
|
|
2114
|
+
for (l = l || this.length; this.pos < l; ) {
|
|
2115
|
+
var w = this.readVarint(), x = w >> 3, k = this.pos;
|
|
2116
|
+
this.type = w & 7, e(x, i, this), this.pos === k && this.skip(w);
|
|
2230
2117
|
}
|
|
2231
|
-
return
|
|
2118
|
+
return i;
|
|
2232
2119
|
},
|
|
2233
|
-
readMessage: function(
|
|
2234
|
-
return this.readFields(
|
|
2120
|
+
readMessage: function(e, i) {
|
|
2121
|
+
return this.readFields(e, i, this.readVarint() + this.pos);
|
|
2235
2122
|
},
|
|
2236
2123
|
readFixed32: function() {
|
|
2237
|
-
var
|
|
2238
|
-
return this.pos += 4,
|
|
2124
|
+
var e = f(this.buf, this.pos);
|
|
2125
|
+
return this.pos += 4, e;
|
|
2239
2126
|
},
|
|
2240
2127
|
readSFixed32: function() {
|
|
2241
|
-
var
|
|
2242
|
-
return this.pos += 4,
|
|
2128
|
+
var e = s(this.buf, this.pos);
|
|
2129
|
+
return this.pos += 4, e;
|
|
2243
2130
|
},
|
|
2244
2131
|
// 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
|
|
2245
2132
|
readFixed64: function() {
|
|
2246
|
-
var
|
|
2247
|
-
return this.pos += 8,
|
|
2133
|
+
var e = f(this.buf, this.pos) + f(this.buf, this.pos + 4) * a;
|
|
2134
|
+
return this.pos += 8, e;
|
|
2248
2135
|
},
|
|
2249
2136
|
readSFixed64: function() {
|
|
2250
|
-
var
|
|
2251
|
-
return this.pos += 8,
|
|
2137
|
+
var e = f(this.buf, this.pos) + s(this.buf, this.pos + 4) * a;
|
|
2138
|
+
return this.pos += 8, e;
|
|
2252
2139
|
},
|
|
2253
2140
|
readFloat: function() {
|
|
2254
|
-
var
|
|
2255
|
-
return this.pos += 4,
|
|
2141
|
+
var e = t.read(this.buf, this.pos, !0, 23, 4);
|
|
2142
|
+
return this.pos += 4, e;
|
|
2256
2143
|
},
|
|
2257
2144
|
readDouble: function() {
|
|
2258
|
-
var
|
|
2259
|
-
return this.pos += 8,
|
|
2145
|
+
var e = t.read(this.buf, this.pos, !0, 52, 8);
|
|
2146
|
+
return this.pos += 8, e;
|
|
2260
2147
|
},
|
|
2261
|
-
readVarint: function(
|
|
2262
|
-
var
|
|
2263
|
-
return
|
|
2148
|
+
readVarint: function(e) {
|
|
2149
|
+
var i = this.buf, l, w;
|
|
2150
|
+
return w = i[this.pos++], l = w & 127, w < 128 || (w = i[this.pos++], l |= (w & 127) << 7, w < 128) || (w = i[this.pos++], l |= (w & 127) << 14, w < 128) || (w = i[this.pos++], l |= (w & 127) << 21, w < 128) ? l : (w = i[this.pos], l |= (w & 15) << 28, y(l, e, this));
|
|
2264
2151
|
},
|
|
2265
2152
|
readVarint64: function() {
|
|
2266
2153
|
return this.readVarint(!0);
|
|
2267
2154
|
},
|
|
2268
2155
|
readSVarint: function() {
|
|
2269
|
-
var
|
|
2270
|
-
return
|
|
2156
|
+
var e = this.readVarint();
|
|
2157
|
+
return e % 2 === 1 ? (e + 1) / -2 : e / 2;
|
|
2271
2158
|
},
|
|
2272
2159
|
readBoolean: function() {
|
|
2273
2160
|
return !!this.readVarint();
|
|
2274
2161
|
},
|
|
2275
2162
|
readString: function() {
|
|
2276
|
-
var
|
|
2277
|
-
return this.pos =
|
|
2163
|
+
var e = this.readVarint() + this.pos, i = this.pos;
|
|
2164
|
+
return this.pos = e, e - i >= u && d ? g(this.buf, i, e) : p(this.buf, i, e);
|
|
2278
2165
|
},
|
|
2279
2166
|
readBytes: function() {
|
|
2280
|
-
var
|
|
2281
|
-
return this.pos =
|
|
2167
|
+
var e = this.readVarint() + this.pos, i = this.buf.subarray(this.pos, e);
|
|
2168
|
+
return this.pos = e, i;
|
|
2282
2169
|
},
|
|
2283
2170
|
// verbose for performance reasons; doesn't affect gzipped size
|
|
2284
|
-
readPackedVarint: function(
|
|
2285
|
-
if (this.type !== n.Bytes) return
|
|
2286
|
-
var
|
|
2287
|
-
for (
|
|
2288
|
-
return
|
|
2171
|
+
readPackedVarint: function(e, i) {
|
|
2172
|
+
if (this.type !== n.Bytes) return e.push(this.readVarint(i));
|
|
2173
|
+
var l = h(this);
|
|
2174
|
+
for (e = e || []; this.pos < l; ) e.push(this.readVarint(i));
|
|
2175
|
+
return e;
|
|
2289
2176
|
},
|
|
2290
|
-
readPackedSVarint: function(
|
|
2291
|
-
if (this.type !== n.Bytes) return
|
|
2292
|
-
var
|
|
2293
|
-
for (
|
|
2294
|
-
return
|
|
2177
|
+
readPackedSVarint: function(e) {
|
|
2178
|
+
if (this.type !== n.Bytes) return e.push(this.readSVarint());
|
|
2179
|
+
var i = h(this);
|
|
2180
|
+
for (e = e || []; this.pos < i; ) e.push(this.readSVarint());
|
|
2181
|
+
return e;
|
|
2295
2182
|
},
|
|
2296
|
-
readPackedBoolean: function(
|
|
2297
|
-
if (this.type !== n.Bytes) return
|
|
2298
|
-
var
|
|
2299
|
-
for (
|
|
2300
|
-
return
|
|
2183
|
+
readPackedBoolean: function(e) {
|
|
2184
|
+
if (this.type !== n.Bytes) return e.push(this.readBoolean());
|
|
2185
|
+
var i = h(this);
|
|
2186
|
+
for (e = e || []; this.pos < i; ) e.push(this.readBoolean());
|
|
2187
|
+
return e;
|
|
2301
2188
|
},
|
|
2302
|
-
readPackedFloat: function(
|
|
2303
|
-
if (this.type !== n.Bytes) return
|
|
2304
|
-
var
|
|
2305
|
-
for (
|
|
2306
|
-
return
|
|
2189
|
+
readPackedFloat: function(e) {
|
|
2190
|
+
if (this.type !== n.Bytes) return e.push(this.readFloat());
|
|
2191
|
+
var i = h(this);
|
|
2192
|
+
for (e = e || []; this.pos < i; ) e.push(this.readFloat());
|
|
2193
|
+
return e;
|
|
2307
2194
|
},
|
|
2308
|
-
readPackedDouble: function(
|
|
2309
|
-
if (this.type !== n.Bytes) return
|
|
2310
|
-
var
|
|
2311
|
-
for (
|
|
2312
|
-
return
|
|
2195
|
+
readPackedDouble: function(e) {
|
|
2196
|
+
if (this.type !== n.Bytes) return e.push(this.readDouble());
|
|
2197
|
+
var i = h(this);
|
|
2198
|
+
for (e = e || []; this.pos < i; ) e.push(this.readDouble());
|
|
2199
|
+
return e;
|
|
2313
2200
|
},
|
|
2314
|
-
readPackedFixed32: function(
|
|
2315
|
-
if (this.type !== n.Bytes) return
|
|
2316
|
-
var
|
|
2317
|
-
for (
|
|
2318
|
-
return
|
|
2201
|
+
readPackedFixed32: function(e) {
|
|
2202
|
+
if (this.type !== n.Bytes) return e.push(this.readFixed32());
|
|
2203
|
+
var i = h(this);
|
|
2204
|
+
for (e = e || []; this.pos < i; ) e.push(this.readFixed32());
|
|
2205
|
+
return e;
|
|
2319
2206
|
},
|
|
2320
|
-
readPackedSFixed32: function(
|
|
2321
|
-
if (this.type !== n.Bytes) return
|
|
2322
|
-
var
|
|
2323
|
-
for (
|
|
2324
|
-
return
|
|
2207
|
+
readPackedSFixed32: function(e) {
|
|
2208
|
+
if (this.type !== n.Bytes) return e.push(this.readSFixed32());
|
|
2209
|
+
var i = h(this);
|
|
2210
|
+
for (e = e || []; this.pos < i; ) e.push(this.readSFixed32());
|
|
2211
|
+
return e;
|
|
2325
2212
|
},
|
|
2326
|
-
readPackedFixed64: function(
|
|
2327
|
-
if (this.type !== n.Bytes) return
|
|
2328
|
-
var
|
|
2329
|
-
for (
|
|
2330
|
-
return
|
|
2213
|
+
readPackedFixed64: function(e) {
|
|
2214
|
+
if (this.type !== n.Bytes) return e.push(this.readFixed64());
|
|
2215
|
+
var i = h(this);
|
|
2216
|
+
for (e = e || []; this.pos < i; ) e.push(this.readFixed64());
|
|
2217
|
+
return e;
|
|
2331
2218
|
},
|
|
2332
|
-
readPackedSFixed64: function(
|
|
2333
|
-
if (this.type !== n.Bytes) return
|
|
2334
|
-
var
|
|
2335
|
-
for (
|
|
2336
|
-
return
|
|
2219
|
+
readPackedSFixed64: function(e) {
|
|
2220
|
+
if (this.type !== n.Bytes) return e.push(this.readSFixed64());
|
|
2221
|
+
var i = h(this);
|
|
2222
|
+
for (e = e || []; this.pos < i; ) e.push(this.readSFixed64());
|
|
2223
|
+
return e;
|
|
2337
2224
|
},
|
|
2338
|
-
skip: function(
|
|
2339
|
-
var
|
|
2340
|
-
if (
|
|
2225
|
+
skip: function(e) {
|
|
2226
|
+
var i = e & 7;
|
|
2227
|
+
if (i === n.Varint) for (; this.buf[this.pos++] > 127; )
|
|
2341
2228
|
;
|
|
2342
|
-
else if (
|
|
2343
|
-
else if (
|
|
2344
|
-
else if (
|
|
2345
|
-
else throw new Error("Unimplemented type: " +
|
|
2229
|
+
else if (i === n.Bytes) this.pos = this.readVarint() + this.pos;
|
|
2230
|
+
else if (i === n.Fixed32) this.pos += 4;
|
|
2231
|
+
else if (i === n.Fixed64) this.pos += 8;
|
|
2232
|
+
else throw new Error("Unimplemented type: " + i);
|
|
2346
2233
|
},
|
|
2347
2234
|
// === WRITING =================================================================
|
|
2348
|
-
writeTag: function(
|
|
2349
|
-
this.writeVarint(
|
|
2235
|
+
writeTag: function(e, i) {
|
|
2236
|
+
this.writeVarint(e << 3 | i);
|
|
2350
2237
|
},
|
|
2351
|
-
realloc: function(
|
|
2352
|
-
for (var
|
|
2353
|
-
if (
|
|
2354
|
-
var
|
|
2355
|
-
|
|
2238
|
+
realloc: function(e) {
|
|
2239
|
+
for (var i = this.length || 16; i < this.pos + e; ) i *= 2;
|
|
2240
|
+
if (i !== this.length) {
|
|
2241
|
+
var l = new Uint8Array(i);
|
|
2242
|
+
l.set(this.buf), this.buf = l, this.length = i;
|
|
2356
2243
|
}
|
|
2357
2244
|
},
|
|
2358
2245
|
finish: function() {
|
|
2359
2246
|
return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
|
|
2360
2247
|
},
|
|
2361
|
-
writeFixed32: function(
|
|
2362
|
-
this.realloc(4),
|
|
2248
|
+
writeFixed32: function(e) {
|
|
2249
|
+
this.realloc(4), _(this.buf, e, this.pos), this.pos += 4;
|
|
2363
2250
|
},
|
|
2364
|
-
writeSFixed32: function(
|
|
2365
|
-
this.realloc(4),
|
|
2251
|
+
writeSFixed32: function(e) {
|
|
2252
|
+
this.realloc(4), _(this.buf, e, this.pos), this.pos += 4;
|
|
2366
2253
|
},
|
|
2367
|
-
writeFixed64: function(
|
|
2368
|
-
this.realloc(8),
|
|
2254
|
+
writeFixed64: function(e) {
|
|
2255
|
+
this.realloc(8), _(this.buf, e & -1, this.pos), _(this.buf, Math.floor(e * o), this.pos + 4), this.pos += 8;
|
|
2369
2256
|
},
|
|
2370
|
-
writeSFixed64: function(
|
|
2371
|
-
this.realloc(8),
|
|
2257
|
+
writeSFixed64: function(e) {
|
|
2258
|
+
this.realloc(8), _(this.buf, e & -1, this.pos), _(this.buf, Math.floor(e * o), this.pos + 4), this.pos += 8;
|
|
2372
2259
|
},
|
|
2373
|
-
writeVarint: function(
|
|
2374
|
-
if (
|
|
2375
|
-
|
|
2260
|
+
writeVarint: function(e) {
|
|
2261
|
+
if (e = +e || 0, e > 268435455 || e < 0) {
|
|
2262
|
+
N(e, this);
|
|
2376
2263
|
return;
|
|
2377
2264
|
}
|
|
2378
|
-
this.realloc(4), this.buf[this.pos++] =
|
|
2265
|
+
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)));
|
|
2379
2266
|
},
|
|
2380
|
-
writeSVarint: function(
|
|
2381
|
-
this.writeVarint(
|
|
2267
|
+
writeSVarint: function(e) {
|
|
2268
|
+
this.writeVarint(e < 0 ? -e * 2 - 1 : e * 2);
|
|
2382
2269
|
},
|
|
2383
|
-
writeBoolean: function(
|
|
2384
|
-
this.writeVarint(!!
|
|
2270
|
+
writeBoolean: function(e) {
|
|
2271
|
+
this.writeVarint(!!e);
|
|
2385
2272
|
},
|
|
2386
|
-
writeString: function(
|
|
2387
|
-
|
|
2388
|
-
var
|
|
2389
|
-
this.pos =
|
|
2390
|
-
var
|
|
2391
|
-
|
|
2273
|
+
writeString: function(e) {
|
|
2274
|
+
e = String(e), this.realloc(e.length * 4), this.pos++;
|
|
2275
|
+
var i = this.pos;
|
|
2276
|
+
this.pos = D(this.buf, e, this.pos);
|
|
2277
|
+
var l = this.pos - i;
|
|
2278
|
+
l >= 128 && F(i, l, this), this.pos = i - 1, this.writeVarint(l), this.pos += l;
|
|
2392
2279
|
},
|
|
2393
|
-
writeFloat: function(
|
|
2394
|
-
this.realloc(4),
|
|
2280
|
+
writeFloat: function(e) {
|
|
2281
|
+
this.realloc(4), t.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
|
|
2395
2282
|
},
|
|
2396
|
-
writeDouble: function(
|
|
2397
|
-
this.realloc(8),
|
|
2283
|
+
writeDouble: function(e) {
|
|
2284
|
+
this.realloc(8), t.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
|
|
2398
2285
|
},
|
|
2399
|
-
writeBytes: function(
|
|
2400
|
-
var
|
|
2401
|
-
this.writeVarint(
|
|
2402
|
-
for (var
|
|
2286
|
+
writeBytes: function(e) {
|
|
2287
|
+
var i = e.length;
|
|
2288
|
+
this.writeVarint(i), this.realloc(i);
|
|
2289
|
+
for (var l = 0; l < i; l++) this.buf[this.pos++] = e[l];
|
|
2403
2290
|
},
|
|
2404
|
-
writeRawMessage: function(
|
|
2291
|
+
writeRawMessage: function(e, i) {
|
|
2405
2292
|
this.pos++;
|
|
2406
|
-
var
|
|
2407
|
-
|
|
2408
|
-
var
|
|
2409
|
-
|
|
2293
|
+
var l = this.pos;
|
|
2294
|
+
e(i, this);
|
|
2295
|
+
var w = this.pos - l;
|
|
2296
|
+
w >= 128 && F(l, w, this), this.pos = l - 1, this.writeVarint(w), this.pos += w;
|
|
2410
2297
|
},
|
|
2411
|
-
writeMessage: function(
|
|
2412
|
-
this.writeTag(
|
|
2298
|
+
writeMessage: function(e, i, l) {
|
|
2299
|
+
this.writeTag(e, n.Bytes), this.writeRawMessage(i, l);
|
|
2413
2300
|
},
|
|
2414
|
-
writePackedVarint: function(
|
|
2415
|
-
|
|
2301
|
+
writePackedVarint: function(e, i) {
|
|
2302
|
+
i.length && this.writeMessage(e, O, i);
|
|
2416
2303
|
},
|
|
2417
|
-
writePackedSVarint: function(
|
|
2418
|
-
|
|
2304
|
+
writePackedSVarint: function(e, i) {
|
|
2305
|
+
i.length && this.writeMessage(e, C, i);
|
|
2419
2306
|
},
|
|
2420
|
-
writePackedBoolean: function(
|
|
2421
|
-
|
|
2307
|
+
writePackedBoolean: function(e, i) {
|
|
2308
|
+
i.length && this.writeMessage(e, A, i);
|
|
2422
2309
|
},
|
|
2423
|
-
writePackedFloat: function(
|
|
2424
|
-
|
|
2310
|
+
writePackedFloat: function(e, i) {
|
|
2311
|
+
i.length && this.writeMessage(e, P, i);
|
|
2425
2312
|
},
|
|
2426
|
-
writePackedDouble: function(
|
|
2427
|
-
|
|
2313
|
+
writePackedDouble: function(e, i) {
|
|
2314
|
+
i.length && this.writeMessage(e, L, i);
|
|
2428
2315
|
},
|
|
2429
|
-
writePackedFixed32: function(
|
|
2430
|
-
|
|
2316
|
+
writePackedFixed32: function(e, i) {
|
|
2317
|
+
i.length && this.writeMessage(e, I, i);
|
|
2431
2318
|
},
|
|
2432
|
-
writePackedSFixed32: function(
|
|
2433
|
-
|
|
2319
|
+
writePackedSFixed32: function(e, i) {
|
|
2320
|
+
i.length && this.writeMessage(e, U, i);
|
|
2434
2321
|
},
|
|
2435
|
-
writePackedFixed64: function(
|
|
2436
|
-
|
|
2322
|
+
writePackedFixed64: function(e, i) {
|
|
2323
|
+
i.length && this.writeMessage(e, z, i);
|
|
2437
2324
|
},
|
|
2438
|
-
writePackedSFixed64: function(
|
|
2439
|
-
|
|
2325
|
+
writePackedSFixed64: function(e, i) {
|
|
2326
|
+
i.length && this.writeMessage(e, b, i);
|
|
2440
2327
|
},
|
|
2441
|
-
writeBytesField: function(
|
|
2442
|
-
this.writeTag(
|
|
2328
|
+
writeBytesField: function(e, i) {
|
|
2329
|
+
this.writeTag(e, n.Bytes), this.writeBytes(i);
|
|
2443
2330
|
},
|
|
2444
|
-
writeFixed32Field: function(
|
|
2445
|
-
this.writeTag(
|
|
2331
|
+
writeFixed32Field: function(e, i) {
|
|
2332
|
+
this.writeTag(e, n.Fixed32), this.writeFixed32(i);
|
|
2446
2333
|
},
|
|
2447
|
-
writeSFixed32Field: function(
|
|
2448
|
-
this.writeTag(
|
|
2334
|
+
writeSFixed32Field: function(e, i) {
|
|
2335
|
+
this.writeTag(e, n.Fixed32), this.writeSFixed32(i);
|
|
2449
2336
|
},
|
|
2450
|
-
writeFixed64Field: function(
|
|
2451
|
-
this.writeTag(
|
|
2337
|
+
writeFixed64Field: function(e, i) {
|
|
2338
|
+
this.writeTag(e, n.Fixed64), this.writeFixed64(i);
|
|
2452
2339
|
},
|
|
2453
|
-
writeSFixed64Field: function(
|
|
2454
|
-
this.writeTag(
|
|
2340
|
+
writeSFixed64Field: function(e, i) {
|
|
2341
|
+
this.writeTag(e, n.Fixed64), this.writeSFixed64(i);
|
|
2455
2342
|
},
|
|
2456
|
-
writeVarintField: function(
|
|
2457
|
-
this.writeTag(
|
|
2343
|
+
writeVarintField: function(e, i) {
|
|
2344
|
+
this.writeTag(e, n.Varint), this.writeVarint(i);
|
|
2458
2345
|
},
|
|
2459
|
-
writeSVarintField: function(
|
|
2460
|
-
this.writeTag(
|
|
2346
|
+
writeSVarintField: function(e, i) {
|
|
2347
|
+
this.writeTag(e, n.Varint), this.writeSVarint(i);
|
|
2461
2348
|
},
|
|
2462
|
-
writeStringField: function(
|
|
2463
|
-
this.writeTag(
|
|
2349
|
+
writeStringField: function(e, i) {
|
|
2350
|
+
this.writeTag(e, n.Bytes), this.writeString(i);
|
|
2464
2351
|
},
|
|
2465
|
-
writeFloatField: function(
|
|
2466
|
-
this.writeTag(
|
|
2352
|
+
writeFloatField: function(e, i) {
|
|
2353
|
+
this.writeTag(e, n.Fixed32), this.writeFloat(i);
|
|
2467
2354
|
},
|
|
2468
|
-
writeDoubleField: function(
|
|
2469
|
-
this.writeTag(
|
|
2355
|
+
writeDoubleField: function(e, i) {
|
|
2356
|
+
this.writeTag(e, n.Fixed64), this.writeDouble(i);
|
|
2470
2357
|
},
|
|
2471
|
-
writeBooleanField: function(
|
|
2472
|
-
this.writeVarintField(
|
|
2358
|
+
writeBooleanField: function(e, i) {
|
|
2359
|
+
this.writeVarintField(e, !!i);
|
|
2473
2360
|
}
|
|
2474
2361
|
};
|
|
2475
|
-
function y(
|
|
2476
|
-
var
|
|
2477
|
-
if (
|
|
2362
|
+
function y(e, i, l) {
|
|
2363
|
+
var w = l.buf, x, k;
|
|
2364
|
+
if (k = w[l.pos++], x = (k & 112) >> 4, k < 128 || (k = w[l.pos++], x |= (k & 127) << 3, k < 128) || (k = w[l.pos++], x |= (k & 127) << 10, k < 128) || (k = w[l.pos++], x |= (k & 127) << 17, k < 128) || (k = w[l.pos++], x |= (k & 127) << 24, k < 128) || (k = w[l.pos++], x |= (k & 1) << 31, k < 128)) return T(e, x, i);
|
|
2478
2365
|
throw new Error("Expected varint not more than 10 bytes");
|
|
2479
2366
|
}
|
|
2480
|
-
function
|
|
2481
|
-
return
|
|
2367
|
+
function h(e) {
|
|
2368
|
+
return e.type === n.Bytes ? e.readVarint() + e.pos : e.pos + 1;
|
|
2482
2369
|
}
|
|
2483
|
-
function
|
|
2484
|
-
return
|
|
2370
|
+
function T(e, i, l) {
|
|
2371
|
+
return l ? i * 4294967296 + (e >>> 0) : (i >>> 0) * 4294967296 + (e >>> 0);
|
|
2485
2372
|
}
|
|
2486
|
-
function
|
|
2487
|
-
var
|
|
2488
|
-
if (
|
|
2373
|
+
function N(e, i) {
|
|
2374
|
+
var l, w;
|
|
2375
|
+
if (e >= 0 ? (l = e % 4294967296 | 0, w = e / 4294967296 | 0) : (l = ~(-e % 4294967296), w = ~(-e / 4294967296), l ^ 4294967295 ? l = l + 1 | 0 : (l = 0, w = w + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
|
|
2489
2376
|
throw new Error("Given varint doesn't fit into 10 bytes");
|
|
2490
|
-
|
|
2377
|
+
i.realloc(10), S(l, w, i), E(w, i);
|
|
2491
2378
|
}
|
|
2492
|
-
function
|
|
2493
|
-
|
|
2379
|
+
function S(e, i, l) {
|
|
2380
|
+
l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos++] = e & 127 | 128, e >>>= 7, l.buf[l.pos] = e & 127;
|
|
2494
2381
|
}
|
|
2495
|
-
function E(
|
|
2496
|
-
var
|
|
2497
|
-
|
|
2382
|
+
function E(e, i) {
|
|
2383
|
+
var l = (e & 7) << 4;
|
|
2384
|
+
i.buf[i.pos++] |= l | ((e >>>= 3) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (i.buf[i.pos++] = e & 127)))));
|
|
2498
2385
|
}
|
|
2499
|
-
function
|
|
2500
|
-
var
|
|
2501
|
-
|
|
2502
|
-
for (var
|
|
2386
|
+
function F(e, i, l) {
|
|
2387
|
+
var w = i <= 16383 ? 1 : i <= 2097151 ? 2 : i <= 268435455 ? 3 : Math.floor(Math.log(i) / (Math.LN2 * 7));
|
|
2388
|
+
l.realloc(w);
|
|
2389
|
+
for (var x = l.pos - 1; x >= e; x--) l.buf[x + w] = l.buf[x];
|
|
2503
2390
|
}
|
|
2504
|
-
function
|
|
2505
|
-
for (var
|
|
2391
|
+
function O(e, i) {
|
|
2392
|
+
for (var l = 0; l < e.length; l++) i.writeVarint(e[l]);
|
|
2506
2393
|
}
|
|
2507
|
-
function
|
|
2508
|
-
for (var
|
|
2394
|
+
function C(e, i) {
|
|
2395
|
+
for (var l = 0; l < e.length; l++) i.writeSVarint(e[l]);
|
|
2509
2396
|
}
|
|
2510
|
-
function
|
|
2511
|
-
for (var
|
|
2397
|
+
function P(e, i) {
|
|
2398
|
+
for (var l = 0; l < e.length; l++) i.writeFloat(e[l]);
|
|
2512
2399
|
}
|
|
2513
|
-
function
|
|
2514
|
-
for (var
|
|
2400
|
+
function L(e, i) {
|
|
2401
|
+
for (var l = 0; l < e.length; l++) i.writeDouble(e[l]);
|
|
2515
2402
|
}
|
|
2516
|
-
function
|
|
2517
|
-
for (var
|
|
2403
|
+
function A(e, i) {
|
|
2404
|
+
for (var l = 0; l < e.length; l++) i.writeBoolean(e[l]);
|
|
2518
2405
|
}
|
|
2519
|
-
function
|
|
2520
|
-
for (var
|
|
2406
|
+
function I(e, i) {
|
|
2407
|
+
for (var l = 0; l < e.length; l++) i.writeFixed32(e[l]);
|
|
2521
2408
|
}
|
|
2522
|
-
function
|
|
2523
|
-
for (var
|
|
2409
|
+
function U(e, i) {
|
|
2410
|
+
for (var l = 0; l < e.length; l++) i.writeSFixed32(e[l]);
|
|
2524
2411
|
}
|
|
2525
|
-
function
|
|
2526
|
-
for (var
|
|
2412
|
+
function z(e, i) {
|
|
2413
|
+
for (var l = 0; l < e.length; l++) i.writeFixed64(e[l]);
|
|
2527
2414
|
}
|
|
2528
|
-
function
|
|
2529
|
-
for (var
|
|
2415
|
+
function b(e, i) {
|
|
2416
|
+
for (var l = 0; l < e.length; l++) i.writeSFixed64(e[l]);
|
|
2530
2417
|
}
|
|
2531
|
-
function
|
|
2532
|
-
return (
|
|
2418
|
+
function f(e, i) {
|
|
2419
|
+
return (e[i] | e[i + 1] << 8 | e[i + 2] << 16) + e[i + 3] * 16777216;
|
|
2533
2420
|
}
|
|
2534
|
-
function
|
|
2535
|
-
|
|
2421
|
+
function _(e, i, l) {
|
|
2422
|
+
e[l] = i, e[l + 1] = i >>> 8, e[l + 2] = i >>> 16, e[l + 3] = i >>> 24;
|
|
2536
2423
|
}
|
|
2537
|
-
function s(
|
|
2538
|
-
return (
|
|
2424
|
+
function s(e, i) {
|
|
2425
|
+
return (e[i] | e[i + 1] << 8 | e[i + 2] << 16) + (e[i + 3] << 24);
|
|
2539
2426
|
}
|
|
2540
|
-
function
|
|
2541
|
-
for (var
|
|
2542
|
-
var
|
|
2543
|
-
if (
|
|
2544
|
-
var
|
|
2545
|
-
|
|
2427
|
+
function p(e, i, l) {
|
|
2428
|
+
for (var w = "", x = i; x < l; ) {
|
|
2429
|
+
var k = e[x], G = null, K = k > 239 ? 4 : k > 223 ? 3 : k > 191 ? 2 : 1;
|
|
2430
|
+
if (x + K > l) break;
|
|
2431
|
+
var R, W, J;
|
|
2432
|
+
K === 1 ? k < 128 && (G = k) : K === 2 ? (R = e[x + 1], (R & 192) === 128 && (G = (k & 31) << 6 | R & 63, G <= 127 && (G = null))) : K === 3 ? (R = e[x + 1], W = e[x + 2], (R & 192) === 128 && (W & 192) === 128 && (G = (k & 15) << 12 | (R & 63) << 6 | W & 63, (G <= 2047 || G >= 55296 && G <= 57343) && (G = null))) : K === 4 && (R = e[x + 1], W = e[x + 2], J = e[x + 3], (R & 192) === 128 && (W & 192) === 128 && (J & 192) === 128 && (G = (k & 15) << 18 | (R & 63) << 12 | (W & 63) << 6 | J & 63, (G <= 65535 || G >= 1114112) && (G = null))), G === null ? (G = 65533, K = 1) : G > 65535 && (G -= 65536, w += String.fromCharCode(G >>> 10 & 1023 | 55296), G = 56320 | G & 1023), w += String.fromCharCode(G), x += K;
|
|
2546
2433
|
}
|
|
2547
|
-
return
|
|
2434
|
+
return w;
|
|
2548
2435
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return d.decode(
|
|
2436
|
+
function g(e, i, l) {
|
|
2437
|
+
return d.decode(e.subarray(i, l));
|
|
2551
2438
|
}
|
|
2552
|
-
function
|
|
2553
|
-
for (var
|
|
2554
|
-
if (
|
|
2555
|
-
if (
|
|
2556
|
-
if (
|
|
2557
|
-
|
|
2439
|
+
function D(e, i, l) {
|
|
2440
|
+
for (var w = 0, x, k; w < i.length; w++) {
|
|
2441
|
+
if (x = i.charCodeAt(w), x > 55295 && x < 57344)
|
|
2442
|
+
if (k)
|
|
2443
|
+
if (x < 56320) {
|
|
2444
|
+
e[l++] = 239, e[l++] = 191, e[l++] = 189, k = x;
|
|
2558
2445
|
continue;
|
|
2559
2446
|
} else
|
|
2560
|
-
|
|
2447
|
+
x = k - 55296 << 10 | x - 56320 | 65536, k = null;
|
|
2561
2448
|
else {
|
|
2562
|
-
|
|
2449
|
+
x > 56319 || w + 1 === i.length ? (e[l++] = 239, e[l++] = 191, e[l++] = 189) : k = x;
|
|
2563
2450
|
continue;
|
|
2564
2451
|
}
|
|
2565
|
-
else
|
|
2566
|
-
|
|
2452
|
+
else k && (e[l++] = 239, e[l++] = 191, e[l++] = 189, k = null);
|
|
2453
|
+
x < 128 ? e[l++] = x : (x < 2048 ? e[l++] = x >> 6 | 192 : (x < 65536 ? e[l++] = x >> 12 | 224 : (e[l++] = x >> 18 | 240, e[l++] = x >> 12 & 63 | 128), e[l++] = x >> 6 & 63 | 128), e[l++] = x & 63 | 128);
|
|
2567
2454
|
}
|
|
2568
|
-
return
|
|
2455
|
+
return l;
|
|
2569
2456
|
}
|
|
2570
|
-
return
|
|
2457
|
+
return st;
|
|
2458
|
+
}
|
|
2459
|
+
var fi = mi();
|
|
2460
|
+
const pi = /* @__PURE__ */ oi(fi), pn = "#ffffff", yn = "#e0e4ea", yi = "#828a9e", hi = "32px", _i = { ms: "ms", bytes: "Byte{plural}", count: "request{plural}", "count/minute": "rpm", requests: "request{plural}" }, gi = { error_rate: "Error rate", request_count: "Request count", request_per_minute: "Requests per minute", response_latency_average: "Response latency (avg)", response_latency_p99: "Response latency (p99)", response_latency_p95: "Response latency (p95)", response_latency_p50: "Response latency (p50)", kong_latency_average: "Kong latency (avg)", kong_latency_p99: "Kong latency (p99)", kong_latency_p95: "Kong latency (p95)", kong_latency_p50: "Kong latency (p50)", upstream_latency_average: "Upstream latency (avg)", upstream_latency_p99: "Upstream latency (p99)", upstream_latency_p95: "Upstream latency (p95)", upstream_latency_p50: "Upstream latency (p50)", response_size_average: "Response size (avg)", response_size_p99: "Response size (p99)", response_size_p95: "Response size (p95)", response_size_p50: "Response size (p50)", response_size_sum: "Response size (sum)", request_size_average: "Request size (avg)", request_size_p99: "Request size (p99)", request_size_p95: "Request size (p95)", request_size_p50: "Request size (p50)", request_size_sum: "Request size (sum)", cache_hit_rate: "Cache hit rate" }, wi = { windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map", mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map", mobile_zoom_help_text: "Use two fingers to zoom the map" }, vi = "No data in the current time frame", xi = "Once there is traffic, it will display here", Mi = {
|
|
2461
|
+
metricUnits: _i,
|
|
2462
|
+
metrics: gi,
|
|
2463
|
+
cooperative_gestures: wi,
|
|
2464
|
+
no_location_data: vi,
|
|
2465
|
+
no_location_data_description: xi
|
|
2466
|
+
};
|
|
2467
|
+
function Fi() {
|
|
2468
|
+
const t = ia("en-us", Mi);
|
|
2469
|
+
return {
|
|
2470
|
+
i18n: t,
|
|
2471
|
+
i18nT: oa(t)
|
|
2472
|
+
// Translation component <i18n-t>
|
|
2473
|
+
};
|
|
2571
2474
|
}
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2475
|
+
const hn = 5, lt = [
|
|
2476
|
+
"#00819d",
|
|
2477
|
+
"#00abd2",
|
|
2478
|
+
"#00c8f4",
|
|
2479
|
+
"#67e3ff",
|
|
2480
|
+
"#b3f1ff"
|
|
2481
|
+
], Ti = (t, n) => {
|
|
2482
|
+
const a = t.length;
|
|
2483
|
+
if (!a)
|
|
2484
|
+
return NaN;
|
|
2485
|
+
const o = (a - 1) * n, u = Math.floor(o), d = Math.ceil(o);
|
|
2486
|
+
return u === d ? t[u] : t[u] + (o - u) * (t[d] - t[u]);
|
|
2487
|
+
}, ut = (t, n) => {
|
|
2488
|
+
if (t.length === 0)
|
|
2489
|
+
return [];
|
|
2490
|
+
const a = t.filter((h) => h > 0).map(Math.log).sort((h, T) => h - T), o = Math.min(...a), d = (Math.max(...a) - o) / n;
|
|
2491
|
+
return Array.from({ length: n }, (h, T) => o + T * d).map((h) => Math.exp(h)).reverse();
|
|
2492
|
+
};
|
|
2493
|
+
function Si({
|
|
2494
|
+
countryMetrics: t,
|
|
2495
|
+
metric: n,
|
|
2496
|
+
unit: a,
|
|
2497
|
+
emptyCountryFill: o
|
|
2498
|
+
}) {
|
|
2499
|
+
const { formatMetric: u, formatMetricRange: d } = Fe.useMetricFormat({ unit: a }), y = j(() => {
|
|
2500
|
+
const C = { ...t.value };
|
|
2501
|
+
for (const P of Object.keys(C))
|
|
2502
|
+
pt.find((L) => L.code === P) || delete C[P];
|
|
2503
|
+
return C;
|
|
2504
|
+
}), h = j(() => Object.values(y.value)), T = j(() => Object.keys(y.value).length), N = j(() => T.value < hn - 1 ? T.value : hn), S = j(() => !n.value?.includes("latency")), E = j(() => {
|
|
2505
|
+
const C = [];
|
|
2506
|
+
if (h.value.length > 10) {
|
|
2507
|
+
const P = [...h.value].sort((b, f) => b - f), L = Ti(P, 0.75), A = h.value.filter((b) => b >= L), I = h.value.filter((b) => b < L), U = ut(A, 3), z = ut(I, 2);
|
|
2508
|
+
return C.push(...U, ...z), C;
|
|
2509
|
+
}
|
|
2510
|
+
return ut(h.value, N.value);
|
|
2511
|
+
}), F = j(() => h.value.length === 1 ? [{
|
|
2512
|
+
color: O(h.value[0]),
|
|
2513
|
+
range: u(h.value[0], {
|
|
2514
|
+
approximate: S.value,
|
|
2515
|
+
showUnit: !a.value.includes("count")
|
|
2516
|
+
}).trim()
|
|
2517
|
+
}] : E.value.map((C, P) => {
|
|
2518
|
+
const L = P === 0 ? Math.max(...E.value) : E.value[P - 1], A = C, I = L;
|
|
2519
|
+
let U = "";
|
|
2520
|
+
return P === 0 ? U = `> ${u(A, {
|
|
2521
|
+
showUnit: !a.value.includes("count"),
|
|
2522
|
+
approximate: S.value
|
|
2523
|
+
})}`.trim() : P === E.value.length - 1 ? U = `< ${u(I, {
|
|
2524
|
+
showUnit: !a.value.includes("count"),
|
|
2525
|
+
approximate: S.value
|
|
2526
|
+
})}`.trim() : U = d(A, I, {
|
|
2527
|
+
showUnit: !a.value.includes("count"),
|
|
2528
|
+
approximate: S.value
|
|
2529
|
+
}).trim(), {
|
|
2530
|
+
color: O(A),
|
|
2531
|
+
range: U
|
|
2532
|
+
};
|
|
2533
|
+
})), O = (C) => {
|
|
2534
|
+
if (C === 0)
|
|
2535
|
+
return o.value;
|
|
2536
|
+
const P = E.value.findIndex((L) => C >= L);
|
|
2537
|
+
return P === -1 ? lt[lt.length - 1] : lt[P] ?? o.value;
|
|
2538
|
+
};
|
|
2539
|
+
return {
|
|
2540
|
+
getColor: O,
|
|
2541
|
+
legendData: F,
|
|
2542
|
+
scale: E
|
|
2543
|
+
};
|
|
2544
|
+
}
|
|
2545
|
+
function Di({
|
|
2546
|
+
unit: t
|
|
2547
|
+
}) {
|
|
2548
|
+
const { i18n: n } = Fe.useI18n(), { formatUnit: a, formatRange: o } = ii({ i18n: n });
|
|
2549
|
+
return {
|
|
2550
|
+
formatMetric: (y, {
|
|
2551
|
+
showUnit: h = !0,
|
|
2552
|
+
approximate: T = !1
|
|
2553
|
+
} = {}) => a(y, t.value, {
|
|
2554
|
+
approximate: T,
|
|
2555
|
+
translateUnit: (N) => h ? n.t(`metricUnits.${N}`, { plural: y > 1 ? "s" : "" }) : ""
|
|
2556
|
+
}),
|
|
2557
|
+
formatMetricRange: (y, h, {
|
|
2558
|
+
showUnit: T = !0,
|
|
2559
|
+
approximate: N = !1
|
|
2560
|
+
} = {}) => o(y, h, t.value, {
|
|
2561
|
+
approximate: N,
|
|
2562
|
+
translateUnit: (S) => T ? n.t(`metricUnits.${S}`, { plural: h > 1 ? "s" : "" }) : ""
|
|
2563
|
+
})
|
|
2564
|
+
};
|
|
2565
|
+
}
|
|
2566
|
+
const Fe = {
|
|
2567
|
+
useI18n: Fi,
|
|
2568
|
+
useLegendScale: Si,
|
|
2569
|
+
useMetricFormat: Di
|
|
2570
|
+
}, Ji = (t) => {
|
|
2571
|
+
if (!t || !t.data)
|
|
2575
2572
|
return {};
|
|
2576
|
-
const n = {}, a =
|
|
2573
|
+
const n = {}, a = t.data;
|
|
2577
2574
|
if (a)
|
|
2578
|
-
for (const
|
|
2579
|
-
const
|
|
2580
|
-
|
|
2575
|
+
for (const o of a) {
|
|
2576
|
+
const u = o?.event?.country_code, d = t.meta.metric_names?.[0];
|
|
2577
|
+
u && (n[u] = d ? o.event[d] : 0);
|
|
2581
2578
|
}
|
|
2582
2579
|
return n;
|
|
2583
2580
|
};
|
|
2584
|
-
function
|
|
2581
|
+
function ki(t, n = 0) {
|
|
2585
2582
|
let a = null;
|
|
2586
|
-
return (...
|
|
2587
|
-
a && clearTimeout(a), a = setTimeout(() =>
|
|
2583
|
+
return (...o) => {
|
|
2584
|
+
a && clearTimeout(a), a = setTimeout(() => t(...o), n);
|
|
2588
2585
|
};
|
|
2589
2586
|
}
|
|
2590
|
-
const
|
|
2587
|
+
const ct = (t) => {
|
|
2588
|
+
const n = t ?? (typeof document > "u" ? null : document.documentElement);
|
|
2589
|
+
if (typeof window > "u" || !n)
|
|
2590
|
+
return {
|
|
2591
|
+
emptyCountryFill: yn,
|
|
2592
|
+
waterFill: pn
|
|
2593
|
+
};
|
|
2594
|
+
const a = window.getComputedStyle(n), o = (u, d) => a.getPropertyValue(u).trim() || d;
|
|
2595
|
+
return {
|
|
2596
|
+
emptyCountryFill: o("--kui-color-background-neutral-weaker", yn),
|
|
2597
|
+
waterFill: o("--kui-color-background", pn)
|
|
2598
|
+
};
|
|
2599
|
+
}, Ni = { class: "legend" }, Ri = {
|
|
2591
2600
|
key: 0,
|
|
2592
2601
|
class: "legend-title"
|
|
2593
|
-
}, Ei = { class: "legend-text" },
|
|
2602
|
+
}, Ei = { class: "legend-text" }, Pi = /* @__PURE__ */ ft({
|
|
2594
2603
|
__name: "MapLegend",
|
|
2595
2604
|
props: {
|
|
2596
2605
|
metric: {},
|
|
2597
2606
|
title: {},
|
|
2598
2607
|
data: {}
|
|
2599
2608
|
},
|
|
2600
|
-
setup(
|
|
2601
|
-
return (n, a) => (
|
|
2602
|
-
|
|
2603
|
-
(
|
|
2604
|
-
key:
|
|
2609
|
+
setup(t) {
|
|
2610
|
+
return (n, a) => (Q(), re("div", Ni, [
|
|
2611
|
+
t.metric ? (Q(), re("div", Ri, _e(t.title), 1)) : Me("", !0),
|
|
2612
|
+
(Q(!0), re(Kr, null, qr(t.data, (o, u) => (Q(), re("div", {
|
|
2613
|
+
key: u,
|
|
2605
2614
|
class: "legend-item"
|
|
2606
2615
|
}, [
|
|
2607
|
-
|
|
2616
|
+
te("span", {
|
|
2608
2617
|
class: "legend-color",
|
|
2609
|
-
style:
|
|
2618
|
+
style: Wr({ backgroundColor: o.color })
|
|
2610
2619
|
}, null, 4),
|
|
2611
|
-
|
|
2620
|
+
te("span", Ei, _e(o.range), 1)
|
|
2612
2621
|
]))), 128))
|
|
2613
2622
|
]));
|
|
2614
2623
|
}
|
|
2615
|
-
}), ht = (
|
|
2616
|
-
const a =
|
|
2617
|
-
for (const [
|
|
2618
|
-
a[
|
|
2624
|
+
}), ht = (t, n) => {
|
|
2625
|
+
const a = t.__vccOpts || t;
|
|
2626
|
+
for (const [o, u] of n)
|
|
2627
|
+
a[o] = u;
|
|
2619
2628
|
return a;
|
|
2620
|
-
},
|
|
2629
|
+
}, Li = /* @__PURE__ */ ht(Pi, [["__scopeId", "data-v-2858aa0d"]]), Ci = { class: "map-tooltip" }, Gi = { class: "map-tooltip-text" }, Oi = { key: 0 }, Ii = /* @__PURE__ */ ft({
|
|
2621
2630
|
__name: "MapTooltip",
|
|
2622
2631
|
props: {
|
|
2623
2632
|
data: {},
|
|
@@ -2625,23 +2634,26 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2625
2634
|
top: {},
|
|
2626
2635
|
left: {}
|
|
2627
2636
|
},
|
|
2628
|
-
setup(
|
|
2629
|
-
return
|
|
2637
|
+
setup(t) {
|
|
2638
|
+
return Zr((n) => ({
|
|
2630
2639
|
v75a0a274: n.left,
|
|
2631
2640
|
v144f4294: n.top,
|
|
2632
2641
|
v6e49e79e: n.data.color
|
|
2633
|
-
})), (n, a) => (
|
|
2634
|
-
a[0] || (a[0] =
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2642
|
+
})), (n, a) => (Q(), re("div", Ci, [
|
|
2643
|
+
a[0] || (a[0] = te("div", { class: "map-tooltip-color" }, null, -1)),
|
|
2644
|
+
te("div", Gi, [
|
|
2645
|
+
te("div", null, _e(t.data.label), 1),
|
|
2646
|
+
t.showValue ? (Q(), re("span", Oi, _e(t.data.value), 1)) : Me("", !0)
|
|
2638
2647
|
])
|
|
2639
2648
|
]));
|
|
2640
2649
|
}
|
|
2641
|
-
}), Ui = /* @__PURE__ */ ht(Ci, [["__scopeId", "data-v-6bea2641"]]), Ai = { class: "kong-ui-public-analytics-geo-map" }, Vi = {
|
|
2650
|
+
}), Ui = /* @__PURE__ */ ht(Ii, [["__scopeId", "data-v-6bea2641"]]), Ai = "FeatureCollection", Vi = /* @__PURE__ */ JSON.parse('[{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBaikal","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[106.57998579307912,52.79998159444554],[106.53998823448521,52.93999888774037],[107.0800069519353,53.18001007751998],[107.2999935242018,53.37999787048953],[107.59997521365611,53.51998932556822],[108.03994835818912,53.859968573616456],[108.37997928266967,54.25999583598784],[109.05270307824526,55.027597561251326],[109.19346967980832,55.53560272889659],[109.50699059452313,55.73091380474372],[109.92980716353523,55.7129562445223],[109.70000206913326,54.980003567110515],[109.66000451053935,54.71999359803395],[109.47996382043448,54.33999095317566],[109.31997358605884,53.81999685323869],[109.22003136600637,53.619983222052994],[108.99999311730755,53.78002513286093],[108.60001753136845,53.4399942083804],[108.800005324338,53.37999787048953],[108.76000776574409,53.200008856816936],[108.45997439985749,53.14001251892607],[108.17999148970011,52.79998159444554],[107.79996300662566,52.579995022179034],[107.31999230349876,52.42000478780339],[106.64003380740229,52.32001089131862],[106.1000150899522,52.03997630472897],[105.740037062607,51.759993394571595],[105.24001590375084,51.52000804300813],[104.81998986208251,51.46001170511727],[104.30002160036167,51.50000926371118],[103.7600028829116,51.60000316019595],[103.6200114278329,51.73999461527464],[103.85999677939637,51.85998729105637],[104.39996382041414,51.85998729105637],[105.05997521364597,52.0000045843512],[105.4800012553143,52.28001333272471],[105.98002241417046,52.51999868428817],[106.26000532432784,52.619992580772944],[106.57998579307912,52.79998159444554]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rWinnipeg","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-98.95540137408423,53.92978343364277],[-97.95799455441879,54.337097072967325],[-97.8050064766187,54.05938792583079],[-97.64380184608419,53.42521474874492],[-96.39258622921722,51.39730235453108],[-96.23789282915149,50.6910147161819],[-96.72558915890605,50.448910630894474],[-96.92110694048235,50.75405996357799],[-97.23568722205913,51.49778717712263],[-98.20097713905517,52.18456696228162],[-99.23680538612963,53.21628693298888],[-98.95540137408423,53.92978343364277]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Great\\rSlave Lake","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-115.00000342492967,61.9723932969562],[-115.80669837122196,62.54171255151576],[-116.0585951404287,62.77880402287089],[-115.84279435917783,62.7503044704619],[-114.45259497766185,62.42820526798667],[-113.35341142459757,62.04448192000336],[-111.77890804731261,62.44360484480964],[-111.04001258018727,62.92000987410843],[-110.20001217328286,63.08000010848407],[-109.40000932497237,62.87817780216814],[-109.09010576051801,62.814099026126215],[-109.11651241741916,62.6928144395372],[-110.10089677614705,62.51561595320837],[-111.27599300824811,62.34911448836395],[-112.63050981326654,61.55991201440246],[-113.64000891808828,61.07999298770784],[-115.3409903634076,60.87659455020702],[-116.43999304895887,60.86000641544133],[-118.06110856817108,61.31196849226605],[-118.3474735177165,61.36137116153708],[-118.3849906075604,61.52110301375126],[-118.17960262741634,61.55629466414203],[-116.8028132800801,61.32589529076871],[-115.67879920129957,61.69179026961132],[-115.00000342492967,61.9723932969562]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Ontario","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-79.05630591502026,43.25410431576152],[-79.36168779164908,43.20237620703736],[-79.76047481964547,43.29720246029295],[-79.46116492381094,43.639197089200565],[-79.1561706204243,43.75743276628437],[-78.45052893747877,43.9031861435636],[-77.60536088734519,44.039327704436545],[-77.16148617217414,43.850140285815996],[-76.88269181995948,44.0694550644627],[-76.56555355498425,44.20802541765336],[-76.35303422718391,44.134670722015045],[-76.23926856149336,43.979150499032656],[-76.17999569365458,43.5900011256587],[-76.9300015937227,43.2599954290428],[-77.74915056019732,43.342832750006664],[-78.53499406605984,43.379988104824534],[-79.05630591502026,43.25410431576152]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Erie","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-83.12001135937246,42.08001577409016],[-82.57123348664891,42.01702220312636],[-81.82918575715374,42.33552989355732],[-81.39226152212595,42.61517690690481],[-81.09496700715081,42.66075552018623],[-80.54515560578142,42.560089830081665],[-80.27917700877515,42.71566172949635],[-79.79135148793986,42.84203644466612],[-78.92000932485044,42.96500051530464],[-78.90057898630869,42.8667119410855],[-79.76220598012725,42.269616604169045],[-80.51644934764329,41.980331936199136],[-81.03119828970264,41.845508124349635],[-81.62351355663209,41.568935858723535],[-82.34744869660895,41.435920722004255],[-82.84610043000939,41.48710622818935],[-83.46283281119673,41.69396698665372],[-83.12001135937246,42.08001577409016],[-83.12001135937246,42.08001577409016]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Superior","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-89.60000342482806,48.00998973244721],[-89.19405921095924,48.40546946877693],[-88.62641944044917,48.56251414651193],[-88.40423661981026,48.80632355406499],[-88.17895321323383,48.93670319273738],[-87.24903581414156,48.73511343036678],[-86.56000810417788,48.71108388935106],[-86.32103044304411,48.57729360614741],[-85.98652889681881,48.01035146747326],[-84.8642201403039,47.86007640236849],[-85.04061764193222,47.575700995466306],[-84.64500871452178,47.28220469826462],[-84.81528255892351,46.90233124448706],[-84.39559241406505,46.77683502866624],[-84.60490780306328,46.439594631529474],[-84.9100054593145,46.48000560158172],[-85.11999264193253,46.76001434995524],[-86.1026200019625,46.67265534116582],[-86.99000769727856,46.45000743263628],[-87.69427995476835,46.83104360614041],[-88.2612220934425,46.958581041036766],[-87.93992387566777,47.485913194359185],[-88.82260901564527,47.154796454449],[-89.62498897984119,46.83083690041124],[-90.39703487828177,46.57648550067064],[-91.00999487991183,46.92000458433087],[-92.01192338740282,46.71167104754619],[-92.00877112503301,46.85843211525511],[-91.33000118687926,47.28000844989221],[-90.61999284540505,47.68000987404746],[-89.60000342482806,48.00998973244721]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rVictoria","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[33.85036827976734,0.128157863766091],[33.85036827976734,0.128157863766091],[34.13624230320599,-0.319308363449238],[34.0726286150547,-1.059831638191795],[33.579428745261055,-1.506005954599821],[33.251748488098286,-1.957968031424549],[33.64717654799571,-2.30089283611342],[33.07672041192572,-2.547131035984201],[32.95176679864397,-2.43044565186915],[32.37309410983957,-2.489925225437091],[31.926558058405476,-2.714511000177573],[31.648022088352292,-2.32921152100937],[31.836020949030114,-1.629305922048232],[31.866199985488578,-1.027378838712494],[31.815143670384202,-0.64042571371094],[32.27284183119332,-0.056120293786734],[32.906136508930246,0.0867650415003],[33.33184695815069,0.324993394365833],[33.85036827976734,0.128157863766091]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rLadoga","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[29.836711460089845,61.22608226179696],[29.836711460089845,61.22608226179696],[30.85199832532828,61.77504100203353],[32.52688317234018,61.11751007755173],[32.94432539239392,60.64260366478942],[32.81575442885176,60.481889960361684],[32.599901971168606,60.533514716221276],[32.583882277158125,60.20893504499601],[31.699440138482714,60.23565176049091],[31.50973595553924,59.92034800886205],[31.106246372204282,59.92768606224749],[31.10893354668346,60.14645823835514],[30.533878208139498,60.63009796817478],[30.502045525847706,60.843211574946466],[29.836711460089845,61.22608226179696]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBalkhash","name_alt":"Balqash Köli","admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[78.99076541536459,46.748619696634876],[78.99076541536459,46.748619696634876],[79.2451684915375,46.64516347918655],[78.88989301953086,46.369934800800024],[78.44506229036242,46.29717438413307],[77.20606814973246,46.3955663112168],[75.61128177277294,46.50718740496724],[75.46333214712132,46.6706141220903],[75.40566124868357,46.47080719663377],[74.91122114451494,46.404661363300164],[74.77138471873312,46.107831936215646],[74.27802981964263,46.004065660173566],[74.0999528339648,44.98893382423201],[73.4367375019309,45.60946442319282],[73.4399931171653,45.80586070411809],[73.73713260284359,46.012747300798594],[73.67925499867667,46.18307282163262],[74.02068118682908,46.20490611427593],[74.09432010284502,46.42781240496693],[74.939384800114,46.81678091082786],[76.20313195181177,46.7800131292522],[77.18131513866464,46.64340648048862],[77.85993004752152,46.64785065366573],[78.29700931184618,46.46853343361292],[78.39710656119556,46.657669175801175],[78.99076541536459,46.748619696634876]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rTanganyika","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[30.806006300588507,-8.578339125201033],[30.46442508313922,-8.498188978716335],[30.566847771941724,-8.1150082332721],[30.27735639824263,-7.848357842646031],[30.14702843600253,-7.299244073112582],[29.536523064906334,-6.7541610652979],[29.19318484875913,-6.038029066597119],[29.371985304489016,-5.616452731960017],[29.101717563602506,-5.054006442895265],[29.281034783655315,-3.455499362810748],[29.652588331833897,-4.420143324403149],[29.600085076625334,-4.896393324405054],[29.79195966972506,-5.040880629093131],[29.758421665167646,-5.466901136907339],[29.951226434048635,-5.860985609565162],[29.722041456834177,-6.244114678577112],[30.52803877129051,-6.922729587433992],[30.604158156056457,-7.541916599155222],[31.189032016735865,-8.729906101113095],[31.022117140433124,-8.786543470904988],[30.806006300588507,-8.578339125201033],[30.806006300588507,-8.578339125201033]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Malawi","name_alt":"Lake Nyasa","admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[35.2602047055542,-14.277474460510291],[35.236226840970915,-14.401291192281633],[34.881209751125766,-14.012012627826891],[34.706543409979076,-14.262023207255027],[34.54675988133266,-14.047669366108266],[34.55110070164528,-13.67208505621096],[34.3209338722171,-13.379389743709737],[34.32997724786827,-12.944584242405995],[34.032527703596315,-12.208556817272836],[34.322690870915096,-11.652983493702834],[34.25990400568048,-10.447579034062642],[33.906592238100984,-9.801726983278854],[33.99557905450757,-9.495440769084837],[34.52422895685345,-10.03013681400887],[34.60789310073403,-11.080511976773494],[34.93702029800096,-11.463434340056267],[34.69388268406766,-12.422393894096615],[34.86756717300062,-13.701127211159019],[35.05597944513687,-13.742933444883136],[35.2602047055542,-14.277474460510291]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Aral\\rSea","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[60.05285159692946,44.264636949229114],[59.77002648299603,44.15999217383806],[59.06288618351405,44.36928172462015],[59.34571129744745,44.99720205339871],[59.35930219914022,45.190006822279685],[58.96139367049281,45.37500844988459],[58.92144778833119,45.101846828789746],[58.92144778833119,44.73556427670495],[58.497132602782614,44.212340399749735],[58.285000848224456,44.473952338227335],[58.285000848224456,44.89255727800766],[58.689989048095896,45.50001373959863],[58.78000939314833,45.88673432065487],[59.20427290226462,45.93905670835039],[59.535002068932585,45.70501414650049],[59.55784305200561,46.30533926043519],[59.77002648299603,46.25299103452352],[60.12359663273702,46.096023871436955],[60.12359663273702,45.88673432065487],[59.94675988143425,45.808211981787366],[59.84071984237133,45.520477606786216],[60.12359663273702,45.572774156265595],[60.23997195825834,44.78403677019473],[60.05285159692946,44.264636949229114]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Vänern","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[13.979281447005576,59.20491364199721],[13.979281447005576,59.20491364199721],[13.984449090234762,59.086212877022774],[13.91892337408865,58.902503160225166],[13.28268313971111,58.608670966213566],[12.830100945698888,58.50903880475484],[12.460149366921371,58.50619660097878],[12.537767368223768,58.77594757754237],[12.522161085671598,58.880282294339665],[12.697085808979608,58.953843695707135],[13.027039829163215,58.993531195707305],[13.195298292705559,59.12900096296045],[13.59144982265505,59.336481838612315],[13.979281447005576,59.20491364199721]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Okeechobee","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-80.70643775096435,26.788959458924822],[-80.93244462759287,26.823272609966622],[-80.91970638703292,27.068916530866048],[-80.69369951040441,27.034629218040394],[-80.70643775096435,26.788959458924822],[-80.70643775096435,26.788959458924822]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago de\\rNicaragua","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-84.85548682324658,11.147898667846633],[-85.29013729525353,11.176165676310276],[-85.79132117383625,11.509737046754324],[-85.8851655748783,11.900100816287136],[-85.5653401354239,11.940330918826362],[-85.03684526237491,11.5216484643976],[-84.85548682324658,11.147898667846633],[-84.85548682324658,11.147898667846633]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Tana","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[37.14370730972843,11.850594794151519],[37.01482628759251,12.035596421756424],[37.24401126480697,12.233878892460353],[37.518361443844526,12.160601711470477],[37.48187788264647,11.825092474815477],[37.33635704931254,11.713393866416595],[37.14370730972843,11.850594794151519],[37.14370730972843,11.850594794151519]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago Titicaca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-69.40673987494259,-16.126198825752063],[-69.7290974595793,-15.928794854397104],[-69.98365556504908,-15.73717864345884],[-69.8770212470148,-15.669844252182529],[-69.8679778713637,-15.546079196843493],[-69.88559953477524,-15.35425628017606],[-69.59675411647981,-15.410480238509614],[-68.98697221543571,-15.885903415594846],[-68.9596870591856,-15.91329192470954],[-68.74623755560401,-16.356003920154023],[-68.90524593776611,-16.506640720284835],[-69.00115739609983,-16.536406345284952],[-69.09084184434238,-16.461992282784657],[-69.18205074733753,-16.40116912197712],[-69.25098710801488,-16.227536309476427],[-69.40673987494259,-16.126198825752063],[-69.40673987494259,-16.126198825752063]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rWinnipegosis","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-99.40377193886468,53.1258531764781],[-99.54846594928192,53.120427151087455],[-99.80498775917877,53.14290639913442],[-100.43146114785316,53.2841897650204],[-100.60685095905177,53.531616522833886],[-100.33487789589965,53.745246893928496],[-100.42673275429846,53.90740753846039],[-100.4044860501968,53.94507965760117],[-100.32629960813921,54.094011135466346],[-100.23586585162842,54.23033356385231],[-99.99549292682278,54.215864162810576],[-100.04778947630214,54.10013479269293],[-100.18356930214904,53.930351874397985],[-99.87128862180926,53.928465684619326],[-99.91066606321566,53.821314602262134],[-100.05649695514333,53.44332733826322],[-99.66551306842301,53.29581696228607],[-99.39317827024485,53.26791168884846],[-99.40377193886468,53.1258531764781],[-99.40377193886468,53.1258531764781]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rOnega","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[35.71464725112901,62.2802298041189],[36.0541614112866,61.716310736733874],[36.391401808423325,61.27605337182331],[36.10945519383887,61.01508738874924],[35.35074181492962,60.948579820389625],[34.866843702948586,61.11637319604125],[35.207288038887384,61.114435329830485],[35.57832482274313,61.08634918887975],[35.16000410334027,61.39428904890701],[34.85733523940689,61.55179881453273],[34.48691857273877,61.86697337508076],[34.265019972477376,62.21914826114994],[34.289824659977455,62.29774811466581],[34.66561567560399,62.22979360620195],[34.62613488133297,62.45223480900245],[34.8356311378443,62.29676626245225],[35.080267368314026,62.1411943630377],[35.21658979669991,62.193284206787894],[35.463706495919666,62.2560193955901],[35.13969526544963,62.48776235620312],[34.614352654770414,62.762448432050576],[34.99541466649072,62.748469957115674],[35.23395307795005,62.675347805422575],[35.71464725112901,62.2802298041189]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great Salt Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-112.18405127648089,41.34124949804567],[-112.13875688357706,41.142346910154174],[-112.17193315310845,40.851460272783186],[-112.67882727745939,41.130487168943205],[-112.70549231652205,41.16753917089636],[-112.87814327680917,41.62815705013003],[-112.58955624067522,41.43891795507716],[-112.40532975955472,41.33801972102742],[-112.21901038292629,41.42855683040267],[-112.18405127648089,41.34124949804567]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great\\rBear Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-117.7592923653704,66.22368419052789],[-117.97374955938167,65.85489533147692],[-118.10710059291085,65.76691620550001],[-119.7200520432652,65.73479930283061],[-119.74568355368197,65.65436493596833],[-119.6648099371452,65.52742178004333],[-119.70219783590836,65.36794830999061],[-121.35509436098008,64.87999359807459],[-121.33610327211281,64.99461192489797],[-120.94527441468938,65.37774099390991],[-121.05728308168202,65.4463414577774],[-122.56450374412293,65.0310696478799],[-123.232705851873,65.18041453720339],[-123.17963415590926,65.31937246363624],[-122.32599117087979,65.79378795029179],[-122.35622188377054,65.90184337021411],[-124.95363440005697,66.04925039332666],[-124.89753963280414,66.15115631780624],[-119.48724971579031,66.96929759385118],[-119.35743771042887,66.87519481064767],[-120.1769492193738,66.46527151149239],[-117.60545162643749,66.55934845647975],[-117.61278967982294,66.41997711858856],[-117.7592923653704,66.22368419052789],[-117.7592923653704,66.22368419052789]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Athabasca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-109.65330135785099,59.03763703066841],[-111.08626298708849,58.56017263450765],[-111.19948605023998,58.685565497463884],[-111.160005255969,58.75985036888345],[-109.09672034385136,59.55042226830068],[-106.54517066122398,59.31968699811746],[-106.54695349813804,59.292815253325685],[-109.65330135785099,59.03763703066841],[-109.65330135785099,59.03763703066841]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Reindeer\\rLake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-101.89514441608819,58.01403025983099],[-101.89514441608819,58.01403025983099],[-101.54384802936804,57.86809601503873],[-101.97090206582807,57.34867035585697],[-101.93403093138781,57.23066722271848],[-103.20416012247362,56.34539826112639],[-103.2825015938281,56.40994212505895],[-103.1487371488406,56.70411021588043],[-103.07832800984292,56.71080231386223],[-103.01440426309787,56.56510061301529],[-102.57680823445028,56.938281968811054],[-102.81322791218561,57.28714956321349],[-102.81369300007623,57.46434804954232],[-102.12874772826359,58.01914622662788],[-101.89514441608819,58.01403025983099]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rHuron","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-80.41056433787725,45.590137437515665],[-79.76292945017934,44.824602769543844],[-80.08500281443844,44.493925279308144],[-80.89769222687659,44.63164297136599],[-81.40233842642287,45.25005483660284],[-81.27567949087549,44.6201708033972],[-81.75265296092948,44.06464915625956],[-81.70017554393709,43.590052802090995],[-81.78272864452336,43.310845038417995],[-82.43000179719522,42.98001251888543],[-82.4799987454376,43.39001333268915],[-82.6599877591102,43.970003770516996],[-83.02999101432,44.06999766700177],[-83.6500048489579,43.62999868425261],[-83.84870073112015,43.63831858985161],[-83.89998959016984,43.88998281511303],[-83.34999732128743,44.29001007748441],[-83.25878841829228,44.74574453386644],[-83.33999793163895,45.200006211928155],[-84.08000444205858,45.58998240821879],[-84.93000423861146,45.789996039404485],[-84.75355506055087,45.924483954444085],[-84.71999121777729,45.91998810483469],[-83.83919226757845,46.010215155616294],[-84.33670711946846,46.40876963966737],[-84.14870825879063,46.55576325132161],[-83.95257036002683,46.334278062518635],[-83.20251278352643,46.21015127215355],[-82.44199072948692,46.19963511818216],[-81.63136837434045,46.09754832618957],[-80.73679765493583,45.90381338152733],[-80.41056433787725,45.590137437515665]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rMichigan","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-85.53999284538475,46.03000722918408],[-84.75355506055087,45.924483954444085],[-84.93000423861146,45.789996039404485],[-85.06999569369015,45.40999339454619],[-85.29044735384727,45.30824249936349],[-85.46710323763705,44.81457754167923],[-85.55999162468169,45.150009263685774],[-85.95983801954006,44.91059235287753],[-86.20935767286137,44.574798895844935],[-86.47027197950304,44.08423452409818],[-86.52001054558397,43.65999685319804],[-86.18842871778315,43.04140412044818],[-86.21604977084317,42.38170278581012],[-86.62191647006355,41.8944198675139],[-86.8244364082154,41.75618541113313],[-87.09444576694042,41.64616628678374],[-87.4342183092595,41.640714423176945],[-87.52617652052288,41.70851390234388],[-87.79569495314115,42.23411489518453],[-87.80344641798493,42.49399567318035],[-87.77672970249003,42.740853990238634],[-87.90214840366241,43.23051402442029],[-87.71221167677363,43.79650014909703],[-87.486359829442,44.49335683855294],[-86.9674767727993,45.26287059181122],[-87.11806189649782,45.25933075619923],[-87.85282324903983,44.61505483660031],[-87.98831885450912,44.73331635190026],[-87.5964306302237,45.093707790703775],[-87.00000708692704,45.73999909116209],[-86.31999691439827,45.829993597998396],[-85.53999284538475,46.03000722918408]]]}}]'), Bi = {
|
|
2651
|
+
type: Ai,
|
|
2652
|
+
features: Vi
|
|
2653
|
+
}, bi = { class: "kong-ui-public-analytics-geo-map" }, zi = {
|
|
2642
2654
|
key: 0,
|
|
2643
2655
|
class: "no-location-overlay"
|
|
2644
|
-
},
|
|
2656
|
+
}, Hi = { class: "no-location-overlay-title" }, Yi = { class: "no-location-overlay-description" }, $i = ["id"], ji = /* @__PURE__ */ ft({
|
|
2645
2657
|
__name: "AnalyticsGeoMap",
|
|
2646
2658
|
props: {
|
|
2647
2659
|
countryMetrics: {},
|
|
@@ -2655,12 +2667,13 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2655
2667
|
} }
|
|
2656
2668
|
},
|
|
2657
2669
|
emits: ["boundsChange"],
|
|
2658
|
-
setup(
|
|
2659
|
-
const a = import("./countries-simple-geo-BFUDnSiE.js").then((
|
|
2660
|
-
countryMetrics:
|
|
2661
|
-
metric:
|
|
2662
|
-
unit:
|
|
2663
|
-
|
|
2670
|
+
setup(t, { emit: n }) {
|
|
2671
|
+
const a = import("./countries-simple-geo-BFUDnSiE.js").then((e) => e.default), o = n, { i18n: u } = Fe.useI18n(), d = Jr("app:konnectColorMode", j(() => "light")), { getColor: y, legendData: h } = Fe.useLegendScale({
|
|
2672
|
+
countryMetrics: ve(() => t.countryMetrics),
|
|
2673
|
+
metric: ve(() => t.metric),
|
|
2674
|
+
unit: ve(() => t.metricUnit),
|
|
2675
|
+
emptyCountryFill: ve(() => L.value.emptyCountryFill)
|
|
2676
|
+
}), { formatMetric: T } = Fe.useMetricFormat({ unit: ve(() => t.metricUnit) }), N = se(), S = Qr(), E = se(), F = se(), O = se(null), C = se({ left: "0px", top: "0px" }), P = se(!1), L = se(ct()), A = j(() => Object.keys(t.countryMetrics).length === 0 && !t.fitToCountry), I = j(() => ({
|
|
2664
2677
|
"fill-color": [
|
|
2665
2678
|
"match",
|
|
2666
2679
|
[
|
|
@@ -2673,56 +2686,58 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2673
2686
|
],
|
|
2674
2687
|
["get", "ISO_A2"]
|
|
2675
2688
|
],
|
|
2676
|
-
...Object.keys(
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
]) : [
|
|
2680
|
-
|
|
2689
|
+
...Object.keys(t.countryMetrics).length ? Object.entries(t.countryMetrics).flatMap(([e, i]) => [
|
|
2690
|
+
e,
|
|
2691
|
+
y(i)
|
|
2692
|
+
]) : [L.value.emptyCountryFill, L.value.emptyCountryFill],
|
|
2693
|
+
L.value.emptyCountryFill
|
|
2681
2694
|
// default color if no match
|
|
2682
2695
|
],
|
|
2683
2696
|
"fill-opacity": 0.7
|
|
2684
|
-
})),
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2697
|
+
})), U = j(() => ({
|
|
2698
|
+
"fill-color": L.value.waterFill
|
|
2699
|
+
})), z = j(() => t.withLegend && Object.keys(t.countryMetrics).length > 0), b = j(() => t.metric && u.t(`metrics.${t.metric}`) || ""), f = (e) => {
|
|
2700
|
+
const i = e.flat(1);
|
|
2701
|
+
return Array.isArray(i[0]) && Array.isArray(i[0][0]) ? f(i) : i;
|
|
2702
|
+
}, _ = (e) => {
|
|
2703
|
+
if (e === "RU") {
|
|
2704
|
+
F.value?.fitBounds([
|
|
2690
2705
|
[20, 40],
|
|
2691
2706
|
[180, 80]
|
|
2692
2707
|
]);
|
|
2693
2708
|
return;
|
|
2694
|
-
} else if (
|
|
2695
|
-
|
|
2709
|
+
} else if (e === "US") {
|
|
2710
|
+
F.value?.fitBounds([
|
|
2696
2711
|
[-130, 20],
|
|
2697
2712
|
[-60, 50]
|
|
2698
2713
|
]);
|
|
2699
2714
|
return;
|
|
2700
|
-
} else if (
|
|
2701
|
-
|
|
2715
|
+
} else if (e === "FR") {
|
|
2716
|
+
F.value?.fitBounds([
|
|
2702
2717
|
[-5, 42],
|
|
2703
2718
|
[9, 51]
|
|
2704
2719
|
]);
|
|
2705
2720
|
return;
|
|
2706
|
-
} else if (
|
|
2707
|
-
|
|
2721
|
+
} else if (e === "NO") {
|
|
2722
|
+
F.value?.fitBounds([
|
|
2708
2723
|
[4, 57],
|
|
2709
2724
|
[32, 71]
|
|
2710
2725
|
]);
|
|
2711
2726
|
return;
|
|
2712
2727
|
}
|
|
2713
|
-
const
|
|
2714
|
-
if (
|
|
2715
|
-
const
|
|
2716
|
-
if (!
|
|
2717
|
-
const
|
|
2718
|
-
|
|
2719
|
-
[
|
|
2720
|
-
[
|
|
2728
|
+
const i = O.value?.features.find((l) => l.properties?.ISO_A2 ? l.properties?.ISO_A2 === e : l.properties?.iso_a2 === "-99" ? l.properties?.iso_a2_eh === e : l.properties?.iso_a2 === e);
|
|
2729
|
+
if (i) {
|
|
2730
|
+
const l = i.geometry?.coordinates;
|
|
2731
|
+
if (!l) return;
|
|
2732
|
+
const w = f(l), x = w.map((J) => J[1]), k = w.map((J) => J[0]), G = Math.min(...x), K = Math.max(...x), R = Math.min(...k), W = Math.max(...k);
|
|
2733
|
+
F.value?.fitBounds([
|
|
2734
|
+
[R, G],
|
|
2735
|
+
[W, K]
|
|
2721
2736
|
]);
|
|
2722
2737
|
}
|
|
2723
|
-
},
|
|
2724
|
-
const
|
|
2725
|
-
container:
|
|
2738
|
+
}, s = j(() => {
|
|
2739
|
+
const e = {
|
|
2740
|
+
container: S,
|
|
2726
2741
|
style: { version: 8, sources: {}, layers: [] },
|
|
2727
2742
|
attributionControl: !1,
|
|
2728
2743
|
// fit bounds for whole world minus antarctica
|
|
@@ -2733,132 +2748,123 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2733
2748
|
],
|
|
2734
2749
|
cooperativeGestures: !0,
|
|
2735
2750
|
locale: {
|
|
2736
|
-
"CooperativeGesturesHandler.WindowsHelpText":
|
|
2737
|
-
"CooperativeGesturesHandler.MacHelpText":
|
|
2738
|
-
"CooperativeGesturesHandler.MobileHelpText":
|
|
2751
|
+
"CooperativeGesturesHandler.WindowsHelpText": u.t("cooperative_gestures.windows_zoom_help_text"),
|
|
2752
|
+
"CooperativeGesturesHandler.MacHelpText": u.t("cooperative_gestures.mac_zoom_help_text"),
|
|
2753
|
+
"CooperativeGesturesHandler.MobileHelpText": u.t("cooperative_gestures.mobile_zoom_help_text")
|
|
2739
2754
|
}
|
|
2740
2755
|
};
|
|
2741
|
-
return
|
|
2742
|
-
}),
|
|
2743
|
-
if (!
|
|
2744
|
-
const
|
|
2745
|
-
|
|
2746
|
-
[
|
|
2747
|
-
[
|
|
2756
|
+
return t.bounds && (e.bounds = t.bounds), e;
|
|
2757
|
+
}), g = ki(() => {
|
|
2758
|
+
if (!F.value) return;
|
|
2759
|
+
const e = F.value.getBounds(), i = e.getSouthWest(), l = e.getNorthEast();
|
|
2760
|
+
o("boundsChange", [
|
|
2761
|
+
[i.lng, i.lat],
|
|
2762
|
+
[l.lng, l.lat]
|
|
2748
2763
|
]);
|
|
2749
|
-
}, 300),
|
|
2750
|
-
() =>
|
|
2751
|
-
{ redraw: () =>
|
|
2764
|
+
}, 300), D = la(
|
|
2765
|
+
() => F.value?.getCanvas(),
|
|
2766
|
+
{ redraw: () => F.value?.redraw() }
|
|
2752
2767
|
);
|
|
2753
|
-
return
|
|
2754
|
-
|
|
2755
|
-
}),
|
|
2768
|
+
return Xr(() => {
|
|
2769
|
+
D();
|
|
2770
|
+
}), ea(async () => {
|
|
2771
|
+
L.value = ct(E.value);
|
|
2756
2772
|
try {
|
|
2757
|
-
const
|
|
2758
|
-
|
|
2759
|
-
|
|
2773
|
+
const e = await a, i = await fetch(e), l = new Uint8Array(await i.arrayBuffer()), w = ci.decode(new pi(l));
|
|
2774
|
+
O.value = w, F.value = new ra(s.value), F.value.on("load", () => {
|
|
2775
|
+
F.value?.addSource("countries", {
|
|
2760
2776
|
type: "geojson",
|
|
2761
|
-
data:
|
|
2762
|
-
}),
|
|
2777
|
+
data: w
|
|
2778
|
+
}), F.value?.addLayer({
|
|
2763
2779
|
id: "countries-layer",
|
|
2764
2780
|
type: "fill",
|
|
2765
2781
|
source: "countries",
|
|
2766
|
-
paint:
|
|
2767
|
-
}),
|
|
2782
|
+
paint: I.value
|
|
2783
|
+
}), F.value?.addSource("lakes", {
|
|
2768
2784
|
type: "geojson",
|
|
2769
|
-
data:
|
|
2770
|
-
}),
|
|
2785
|
+
data: Bi
|
|
2786
|
+
}), F.value?.addLayer({
|
|
2771
2787
|
id: "lakes-layer",
|
|
2772
2788
|
type: "fill",
|
|
2773
2789
|
source: "lakes",
|
|
2774
|
-
paint:
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
left: `${t.point.x}px`,
|
|
2787
|
-
top: `${t.point.y}px`
|
|
2790
|
+
paint: U.value
|
|
2791
|
+
}), F.value?.on("mousemove", "countries-layer", (x) => {
|
|
2792
|
+
const k = x.features?.[0];
|
|
2793
|
+
if (k) {
|
|
2794
|
+
const { iso_a2: G, iso_a2_eh: K, ISO_A2: R, admin: W } = k.properties, J = R ?? G === "-99" ? K : G, q = t.countryMetrics[J];
|
|
2795
|
+
q !== void 0 && (N.value = {
|
|
2796
|
+
label: W,
|
|
2797
|
+
color: y(q),
|
|
2798
|
+
value: T(q)
|
|
2799
|
+
}, P.value = !0, C.value = {
|
|
2800
|
+
left: `${x.point.x}px`,
|
|
2801
|
+
top: `${x.point.y}px`
|
|
2788
2802
|
});
|
|
2789
2803
|
}
|
|
2790
|
-
}),
|
|
2791
|
-
|
|
2792
|
-
}),
|
|
2793
|
-
}),
|
|
2794
|
-
} catch (
|
|
2795
|
-
console.error(
|
|
2804
|
+
}), F.value?.on("mouseleave", "countries-layer", () => {
|
|
2805
|
+
P.value = !1;
|
|
2806
|
+
}), F.value?.on("move", g), t.fitToCountry && _(t.fitToCountry);
|
|
2807
|
+
}), F.value?.dragRotate.disable(), F.value?.keyboard.disable(), F.value?.touchZoomRotate.disableRotation();
|
|
2808
|
+
} catch (e) {
|
|
2809
|
+
console.error(e);
|
|
2796
2810
|
}
|
|
2797
|
-
}),
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
}), h.value.removeLayer("lakes-layer"), h.value?.addLayer({
|
|
2804
|
-
id: "lakes-layer",
|
|
2805
|
-
type: "fill",
|
|
2806
|
-
source: "lakes",
|
|
2807
|
-
paint: {
|
|
2808
|
-
"fill-color": "#FFFFFF"
|
|
2809
|
-
}
|
|
2810
|
-
}));
|
|
2811
|
-
}), Xe(() => e.fitToCountry, (s) => {
|
|
2812
|
-
h.value && s ? z(s) : !I.value.center && !I.value.zoom ? h.value?.fitBounds([
|
|
2811
|
+
}), Pe(d, () => {
|
|
2812
|
+
L.value = ct(E.value);
|
|
2813
|
+
}), Pe([I, U], () => {
|
|
2814
|
+
F.value?.isStyleLoaded() && (F.value.getLayer("countries-layer") && F.value.setPaintProperty("countries-layer", "fill-color", I.value["fill-color"]), F.value.getLayer("lakes-layer") && F.value.setPaintProperty("lakes-layer", "fill-color", U.value["fill-color"]));
|
|
2815
|
+
}), Pe(() => t.fitToCountry, (e) => {
|
|
2816
|
+
F.value && e ? _(e) : !s.value.center && !s.value.zoom ? F.value?.fitBounds([
|
|
2813
2817
|
[-180, -90],
|
|
2814
2818
|
[180, 90]
|
|
2815
|
-
]) : (
|
|
2816
|
-
}),
|
|
2817
|
-
if (!
|
|
2818
|
-
const
|
|
2819
|
-
!(
|
|
2820
|
-
}), (
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
color: `var(--kui-icon-color-neutral, ${
|
|
2825
|
-
size: `var(--kui-icon-size-60, ${
|
|
2819
|
+
]) : (s.value.zoom && F.value?.setZoom(s.value.zoom), s.value.center && F.value?.flyTo({ center: s.value.center }));
|
|
2820
|
+
}), Pe(() => t.bounds, (e, i) => {
|
|
2821
|
+
if (!e) return;
|
|
2822
|
+
const l = e?.flat(), w = i?.flat();
|
|
2823
|
+
!(l && w && l.length === w.length && l.every((k, G) => Math.round(k * 100) / 100 === Math.round(w[G] * 100) / 100)) && F.value && F.value.fitBounds(e);
|
|
2824
|
+
}), (e, i) => (Q(), re("div", bi, [
|
|
2825
|
+
A.value ? (Q(), re("div", zi, [
|
|
2826
|
+
Xe(e.$slots, "no-location-icon", {}, () => [
|
|
2827
|
+
ta(le(aa), {
|
|
2828
|
+
color: `var(--kui-icon-color-neutral, ${le(yi)})`,
|
|
2829
|
+
size: `var(--kui-icon-size-60, ${le(hi)})`
|
|
2826
2830
|
}, null, 8, ["color", "size"])
|
|
2827
2831
|
], !0),
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2832
|
+
te("div", Hi, [
|
|
2833
|
+
Xe(e.$slots, "no-location-title", {}, () => [
|
|
2834
|
+
na(_e(le(u).t("no_location_data")), 1)
|
|
2831
2835
|
], !0)
|
|
2832
2836
|
]),
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2837
|
+
te("div", Yi, [
|
|
2838
|
+
Xe(e.$slots, "no-location-description", {}, () => [
|
|
2839
|
+
te("p", null, _e(le(u).t("no_location_data_description")), 1)
|
|
2836
2840
|
], !0)
|
|
2837
2841
|
])
|
|
2838
|
-
])) :
|
|
2839
|
-
|
|
2840
|
-
id:
|
|
2842
|
+
])) : Me("", !0),
|
|
2843
|
+
te("div", {
|
|
2844
|
+
id: le(S),
|
|
2845
|
+
ref_key: "mapContainer",
|
|
2846
|
+
ref: E,
|
|
2841
2847
|
class: "analytics-geo-map-container"
|
|
2842
|
-
}, null, 8,
|
|
2843
|
-
|
|
2848
|
+
}, null, 8, $i),
|
|
2849
|
+
z.value ? (Q(), zt(Li, {
|
|
2844
2850
|
key: 1,
|
|
2845
2851
|
class: "legend-container",
|
|
2846
|
-
data:
|
|
2847
|
-
metric:
|
|
2848
|
-
title:
|
|
2849
|
-
}, null, 8, ["data", "metric", "title"])) :
|
|
2850
|
-
|
|
2852
|
+
data: le(h),
|
|
2853
|
+
metric: t.metric,
|
|
2854
|
+
title: b.value
|
|
2855
|
+
}, null, 8, ["data", "metric", "title"])) : Me("", !0),
|
|
2856
|
+
P.value && N.value ? (Q(), zt(Ui, {
|
|
2851
2857
|
key: 2,
|
|
2852
|
-
data:
|
|
2853
|
-
left:
|
|
2854
|
-
"show-value":
|
|
2855
|
-
top:
|
|
2856
|
-
}, null, 8, ["data", "left", "show-value", "top"])) :
|
|
2858
|
+
data: N.value,
|
|
2859
|
+
left: C.value.left,
|
|
2860
|
+
"show-value": t.showTooltipValue,
|
|
2861
|
+
top: C.value.top
|
|
2862
|
+
}, null, 8, ["data", "left", "show-value", "top"])) : Me("", !0)
|
|
2857
2863
|
]));
|
|
2858
2864
|
}
|
|
2859
|
-
}),
|
|
2865
|
+
}), Qi = /* @__PURE__ */ ht(ji, [["__scopeId", "data-v-7dea982a"]]);
|
|
2860
2866
|
export {
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2867
|
+
Qi as AnalyticsGeoMap,
|
|
2868
|
+
ki as debounce,
|
|
2869
|
+
Ji as exploreResultToCountryMetrics
|
|
2864
2870
|
};
|