@kong-ui-public/analytics-geo-map 1.4.15 → 1.4.16-pr.2582.b7f4be1f1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/dist/countries-simple-geo-BFUDnSiE.js +0 -4
  3. package/dist/style.css +0 -1
  4. package/dist/types/components/AnalyticsGeoMap.vue.d.ts +0 -33
  5. package/dist/types/components/AnalyticsGeoMap.vue.d.ts.map +0 -1
  6. package/dist/types/components/MapLegend.vue.d.ts +0 -12
  7. package/dist/types/components/MapLegend.vue.d.ts.map +0 -1
  8. package/dist/types/components/MapTooltip.vue.d.ts +0 -15
  9. package/dist/types/components/MapTooltip.vue.d.ts.map +0 -1
  10. package/dist/types/composables/index.d.ts +0 -8
  11. package/dist/types/composables/index.d.ts.map +0 -1
  12. package/dist/types/composables/useI18n.d.ts +0 -9
  13. package/dist/types/composables/useI18n.d.ts.map +0 -1
  14. package/dist/types/composables/useMetricUtils.d.ts +0 -16
  15. package/dist/types/composables/useMetricUtils.d.ts.map +0 -1
  16. package/dist/types/index.d.ts +0 -5
  17. package/dist/types/index.d.ts.map +0 -1
  18. package/dist/types/types/index.d.ts +0 -5
  19. package/dist/types/types/index.d.ts.map +0 -1
  20. package/dist/types/types/map-options.d.ts +0 -5
  21. package/dist/types/types/map-options.d.ts.map +0 -1
  22. package/dist/types/types/metric-units.d.ts +0 -2
  23. package/dist/types/types/metric-units.d.ts.map +0 -1
  24. package/dist/types/utils/debounce.d.ts +0 -2
  25. package/dist/types/utils/debounce.d.ts.map +0 -1
  26. package/dist/types/utils/explore-to-country-metrics.d.ts +0 -3
  27. package/dist/types/utils/explore-to-country-metrics.d.ts.map +0 -1
  28. package/dist/types/utils/index.d.ts +0 -3
  29. package/dist/types/utils/index.d.ts.map +0 -1
  30. package/dist/vitals-geo-map.es.js +0 -3346
  31. package/dist/vitals-geo-map.umd.js +0 -1
@@ -1,3346 +0,0 @@
1
- import { computed as k, defineComponent as f0, createElementBlock as T, openBlock as M, createCommentVNode as W, toDisplayString as R, Fragment as I0, renderList as R0, createElementVNode as B, normalizeStyle as O0, useCssVars as E0, toRef as v0, ref as j, useId as A0, onMounted as $0, watch as s0, createBlock as g0, renderSlot as l0, createVNode as G0, unref as I, createTextVNode as q0 } from "vue";
2
- import { Map as H0 } from "maplibre-gl";
3
- import { createI18n as K0, i18nTComponent as j0 } from "@kong-ui-public/i18n";
4
- import { AnalyticsIcon as W0 } from "@kong/icons";
5
- const Z0 = {
6
- ms: "ms",
7
- bytes: "Byte{plural}",
8
- count: "request{plural}",
9
- "count/minute": "rpm",
10
- requests: "request{plural}"
11
- }, J0 = {
12
- request_count: "Request count",
13
- request_per_minute: "Requests per minute",
14
- response_latency_average: "Response latency (avg)",
15
- response_latency_p99: "Response latency (p99)",
16
- response_latency_p95: "Response latency (p95)",
17
- response_latency_p50: "Response latency (p50)",
18
- kong_latency_average: "Kong latency (avg)",
19
- kong_latency_p99: "Kong latency (p99)",
20
- kong_latency_p95: "Kong latency (p95)",
21
- kong_latency_p50: "Kong latency (p50)",
22
- upstream_latency_average: "Upstream latency (avg)",
23
- upstream_latency_p99: "Upstream latency (p99)",
24
- upstream_latency_p95: "Upstream latency (p95)",
25
- upstream_latency_p50: "Upstream latency (p50)",
26
- response_size_average: "Response size (avg)",
27
- response_size_p99: "Response size (p99)",
28
- response_size_p95: "Response size (p95)",
29
- response_size_p50: "Response size (p50)",
30
- response_size_sum: "Response size (sum)",
31
- request_size_average: "Request size (avg)",
32
- request_size_p99: "Request size (p99)",
33
- request_size_p95: "Request size (p95)",
34
- request_size_p50: "Request size (p50)",
35
- request_size_sum: "Request size (sum)"
36
- }, X0 = {
37
- windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map",
38
- mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map",
39
- mobile_zoom_help_text: "Use two fingers to zoom the map"
40
- }, Q0 = "No location", Y0 = "No location data found.", b0 = {
41
- metricUnits: Z0,
42
- metrics: J0,
43
- cooperative_gestures: X0,
44
- no_location_data: Q0,
45
- no_location_data_description: Y0
46
- };
47
- function ee() {
48
- const e = K0("en-us", b0);
49
- return {
50
- i18n: e,
51
- i18nT: j0(e)
52
- // Translation component <i18n-t>
53
- };
54
- }
55
- function P0(e) {
56
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
57
- }
58
- var S0 = { exports: {} };
59
- (function(e) {
60
- (function() {
61
- function t(l, r) {
62
- if (r.separator === !1 || l < 1e3)
63
- return l.toString();
64
- var u = typeof r.separator == "string" ? r.separator : ",", h = [], m = Math.round(l).toString().split("");
65
- return m.reverse().forEach(function(_, v) {
66
- v && v % 3 === 0 && h.push(u), h.push(_);
67
- }), h.reverse().join("");
68
- }
69
- function i(l, r, u) {
70
- var h = l / r, m = u.round ? "round" : "floor";
71
- return u.decimal === !1 ? (l = Math[m](h), l.toString()) : (u.precision ? l = h : l = h < 10 ? Math[m](h * 10) / 10 : Math[m](h), l = l.toString(), typeof u.decimal == "string" && (l = l.replace(".", u.decimal)), l);
72
- }
73
- var a = 1e3, n = 1e4, o = 1e6, s = 1e9, c = 1e12;
74
- function f(l, r) {
75
- var u;
76
- r = r || {};
77
- var h = l < 0;
78
- h && (l = Math.abs(l)), r.precision && (l = parseFloat(l.toPrecision(r.precision)));
79
- var m = r.min10k ? n : a;
80
- return l < m || r.precision && r.precision > Math.log10(l) ? u = t(i(l, 1, r), r) : l < o ? u = i(l, a, r) + "k" : l < s ? u = i(l, o, r) + "m" : l < c ? u = t(i(l, s, r), r) + "b" : u = t(i(l, c, r), r) + "t", h && (u = "-" + u), r.capital && (u = u.toUpperCase()), r.prefix && (u = r.prefix + u), r.suffix && (u = u + r.suffix), u;
81
- }
82
- f.addCommas = t, e.exports = f;
83
- })();
84
- })(S0);
85
- var te = S0.exports;
86
- const ie = /* @__PURE__ */ P0(te), Z = "#e0e4ea", ne = "#828a9e", ae = "32px", _0 = 5, u0 = [
87
- "#00819d",
88
- "#00abd2",
89
- "#00c8f4",
90
- "#67e3ff",
91
- "#b3f1ff"
92
- ], re = (e, t) => {
93
- const i = e.length;
94
- if (!i)
95
- return NaN;
96
- const a = (i - 1) * t, n = Math.floor(a), o = Math.ceil(a);
97
- return n === o ? e[n] : e[n] + (a - n) * (e[o] - e[n]);
98
- }, c0 = (e, t) => {
99
- if (e.length === 0)
100
- return [];
101
- const i = e.filter((c) => c > 0).map(Math.log).sort((c, f) => c - f), a = Math.min(...i), o = (Math.max(...i) - a) / t;
102
- return Array.from({ length: t }, (c, f) => a + f * o).map((c) => Math.exp(c)).reverse();
103
- };
104
- function oe({
105
- countryMetrics: e,
106
- metric: t
107
- }) {
108
- const i = k(() => Object.values(e.value)), a = k(() => Object.keys(e.value).length), n = k(() => a.value < _0 - 1 ? a.value : _0), o = k(() => {
109
- var r;
110
- return !((r = t.value) != null && r.includes("latency"));
111
- }), s = k(() => {
112
- const r = [];
113
- if (i.value.length > 10) {
114
- const u = [...i.value].sort((C, X) => C - X), h = re(u, 0.25), m = i.value.filter((C) => C >= h), _ = i.value.filter((C) => C < h), v = c0(m, 3), o0 = c0(_, 2);
115
- return r.push(...v, ...o0), r;
116
- }
117
- return c0(i.value, n.value);
118
- }), c = k(() => i.value.length === 1 ? [{
119
- color: f(i.value[0]),
120
- range: l(i.value[0])
121
- }] : s.value.map((r, u) => {
122
- const h = u === 0 ? Math.max(...s.value) : s.value[u - 1], m = r, _ = h;
123
- let v = "";
124
- return u === 0 ? v = `> ${l(m)}` : u === s.value.length - 1 ? v = `< ${l(_)}` : v = `${l(m)} - ${l(_)}`, {
125
- color: f(m),
126
- range: v
127
- };
128
- })), f = (r) => {
129
- if (r === 0)
130
- return Z;
131
- const u = s.value.findIndex((h) => r >= h);
132
- return u === -1 ? u0[u0.length - 1] : u0[u] ?? Z;
133
- }, l = (r) => {
134
- var h;
135
- const u = Math.trunc(r);
136
- return o.value ? ie(u, { capital: !0 }) : new Intl.NumberFormat(((h = document == null ? void 0 : document.documentElement) == null ? void 0 : h.lang) || "en-US").format(u);
137
- };
138
- return {
139
- getColor: f,
140
- formatMetric: l,
141
- legendData: c,
142
- scale: s
143
- };
144
- }
145
- const F0 = {
146
- useI18n: ee,
147
- useMetricUtils: oe
148
- }, se = "FeatureCollection", le = [
149
- {
150
- type: "Feature",
151
- properties: {
152
- scalerank: 0,
153
- featurecla: "Lake",
154
- name: "Lake\rBaikal",
155
- name_alt: null,
156
- admin: null,
157
- min_zoom: 1,
158
- min_label: 3
159
- },
160
- geometry: {
161
- type: "Polygon",
162
- coordinates: [
163
- [
164
- [
165
- 106.57998579307912,
166
- 52.79998159444554
167
- ],
168
- [
169
- 106.53998823448521,
170
- 52.93999888774037
171
- ],
172
- [
173
- 107.0800069519353,
174
- 53.18001007751998
175
- ],
176
- [
177
- 107.2999935242018,
178
- 53.37999787048953
179
- ],
180
- [
181
- 107.59997521365611,
182
- 53.51998932556822
183
- ],
184
- [
185
- 108.03994835818912,
186
- 53.859968573616456
187
- ],
188
- [
189
- 108.37997928266967,
190
- 54.25999583598784
191
- ],
192
- [
193
- 109.05270307824526,
194
- 55.027597561251326
195
- ],
196
- [
197
- 109.19346967980832,
198
- 55.53560272889659
199
- ],
200
- [
201
- 109.50699059452313,
202
- 55.73091380474372
203
- ],
204
- [
205
- 109.92980716353523,
206
- 55.7129562445223
207
- ],
208
- [
209
- 109.70000206913326,
210
- 54.980003567110515
211
- ],
212
- [
213
- 109.66000451053935,
214
- 54.71999359803395
215
- ],
216
- [
217
- 109.47996382043448,
218
- 54.33999095317566
219
- ],
220
- [
221
- 109.31997358605884,
222
- 53.81999685323869
223
- ],
224
- [
225
- 109.22003136600637,
226
- 53.619983222052994
227
- ],
228
- [
229
- 108.99999311730755,
230
- 53.78002513286093
231
- ],
232
- [
233
- 108.60001753136845,
234
- 53.4399942083804
235
- ],
236
- [
237
- 108.800005324338,
238
- 53.37999787048953
239
- ],
240
- [
241
- 108.76000776574409,
242
- 53.200008856816936
243
- ],
244
- [
245
- 108.45997439985749,
246
- 53.14001251892607
247
- ],
248
- [
249
- 108.17999148970011,
250
- 52.79998159444554
251
- ],
252
- [
253
- 107.79996300662566,
254
- 52.579995022179034
255
- ],
256
- [
257
- 107.31999230349876,
258
- 52.42000478780339
259
- ],
260
- [
261
- 106.64003380740229,
262
- 52.32001089131862
263
- ],
264
- [
265
- 106.1000150899522,
266
- 52.03997630472897
267
- ],
268
- [
269
- 105.740037062607,
270
- 51.759993394571595
271
- ],
272
- [
273
- 105.24001590375084,
274
- 51.52000804300813
275
- ],
276
- [
277
- 104.81998986208251,
278
- 51.46001170511727
279
- ],
280
- [
281
- 104.30002160036167,
282
- 51.50000926371118
283
- ],
284
- [
285
- 103.7600028829116,
286
- 51.60000316019595
287
- ],
288
- [
289
- 103.6200114278329,
290
- 51.73999461527464
291
- ],
292
- [
293
- 103.85999677939637,
294
- 51.85998729105637
295
- ],
296
- [
297
- 104.39996382041414,
298
- 51.85998729105637
299
- ],
300
- [
301
- 105.05997521364597,
302
- 52.0000045843512
303
- ],
304
- [
305
- 105.4800012553143,
306
- 52.28001333272471
307
- ],
308
- [
309
- 105.98002241417046,
310
- 52.51999868428817
311
- ],
312
- [
313
- 106.26000532432784,
314
- 52.619992580772944
315
- ],
316
- [
317
- 106.57998579307912,
318
- 52.79998159444554
319
- ]
320
- ]
321
- ]
322
- }
323
- },
324
- {
325
- type: "Feature",
326
- properties: {
327
- scalerank: 0,
328
- featurecla: "Lake",
329
- name: "Lake\rWinnipeg",
330
- name_alt: null,
331
- admin: null,
332
- min_zoom: 1,
333
- min_label: 3
334
- },
335
- geometry: {
336
- type: "Polygon",
337
- coordinates: [
338
- [
339
- [
340
- -98.95540137408423,
341
- 53.92978343364277
342
- ],
343
- [
344
- -97.95799455441879,
345
- 54.337097072967325
346
- ],
347
- [
348
- -97.8050064766187,
349
- 54.05938792583079
350
- ],
351
- [
352
- -97.64380184608419,
353
- 53.42521474874492
354
- ],
355
- [
356
- -96.39258622921722,
357
- 51.39730235453108
358
- ],
359
- [
360
- -96.23789282915149,
361
- 50.6910147161819
362
- ],
363
- [
364
- -96.72558915890605,
365
- 50.448910630894474
366
- ],
367
- [
368
- -96.92110694048235,
369
- 50.75405996357799
370
- ],
371
- [
372
- -97.23568722205913,
373
- 51.49778717712263
374
- ],
375
- [
376
- -98.20097713905517,
377
- 52.18456696228162
378
- ],
379
- [
380
- -99.23680538612963,
381
- 53.21628693298888
382
- ],
383
- [
384
- -98.95540137408423,
385
- 53.92978343364277
386
- ]
387
- ]
388
- ]
389
- }
390
- },
391
- {
392
- type: "Feature",
393
- properties: {
394
- scalerank: 0,
395
- featurecla: "Lake",
396
- name: "Great\rSlave Lake",
397
- name_alt: null,
398
- admin: null,
399
- min_zoom: 1,
400
- min_label: 3
401
- },
402
- geometry: {
403
- type: "Polygon",
404
- coordinates: [
405
- [
406
- [
407
- -115.00000342492967,
408
- 61.9723932969562
409
- ],
410
- [
411
- -115.80669837122196,
412
- 62.54171255151576
413
- ],
414
- [
415
- -116.0585951404287,
416
- 62.77880402287089
417
- ],
418
- [
419
- -115.84279435917783,
420
- 62.7503044704619
421
- ],
422
- [
423
- -114.45259497766185,
424
- 62.42820526798667
425
- ],
426
- [
427
- -113.35341142459757,
428
- 62.04448192000336
429
- ],
430
- [
431
- -111.77890804731261,
432
- 62.44360484480964
433
- ],
434
- [
435
- -111.04001258018727,
436
- 62.92000987410843
437
- ],
438
- [
439
- -110.20001217328286,
440
- 63.08000010848407
441
- ],
442
- [
443
- -109.40000932497237,
444
- 62.87817780216814
445
- ],
446
- [
447
- -109.09010576051801,
448
- 62.814099026126215
449
- ],
450
- [
451
- -109.11651241741916,
452
- 62.6928144395372
453
- ],
454
- [
455
- -110.10089677614705,
456
- 62.51561595320837
457
- ],
458
- [
459
- -111.27599300824811,
460
- 62.34911448836395
461
- ],
462
- [
463
- -112.63050981326654,
464
- 61.55991201440246
465
- ],
466
- [
467
- -113.64000891808828,
468
- 61.07999298770784
469
- ],
470
- [
471
- -115.3409903634076,
472
- 60.87659455020702
473
- ],
474
- [
475
- -116.43999304895887,
476
- 60.86000641544133
477
- ],
478
- [
479
- -118.06110856817108,
480
- 61.31196849226605
481
- ],
482
- [
483
- -118.3474735177165,
484
- 61.36137116153708
485
- ],
486
- [
487
- -118.3849906075604,
488
- 61.52110301375126
489
- ],
490
- [
491
- -118.17960262741634,
492
- 61.55629466414203
493
- ],
494
- [
495
- -116.8028132800801,
496
- 61.32589529076871
497
- ],
498
- [
499
- -115.67879920129957,
500
- 61.69179026961132
501
- ],
502
- [
503
- -115.00000342492967,
504
- 61.9723932969562
505
- ]
506
- ]
507
- ]
508
- }
509
- },
510
- {
511
- type: "Feature",
512
- properties: {
513
- scalerank: 0,
514
- featurecla: "Lake",
515
- name: "L. Ontario",
516
- name_alt: null,
517
- admin: "admin-0",
518
- min_zoom: 1,
519
- min_label: 3
520
- },
521
- geometry: {
522
- type: "Polygon",
523
- coordinates: [
524
- [
525
- [
526
- -79.05630591502026,
527
- 43.25410431576152
528
- ],
529
- [
530
- -79.36168779164908,
531
- 43.20237620703736
532
- ],
533
- [
534
- -79.76047481964547,
535
- 43.29720246029295
536
- ],
537
- [
538
- -79.46116492381094,
539
- 43.639197089200565
540
- ],
541
- [
542
- -79.1561706204243,
543
- 43.75743276628437
544
- ],
545
- [
546
- -78.45052893747877,
547
- 43.9031861435636
548
- ],
549
- [
550
- -77.60536088734519,
551
- 44.039327704436545
552
- ],
553
- [
554
- -77.16148617217414,
555
- 43.850140285815996
556
- ],
557
- [
558
- -76.88269181995948,
559
- 44.0694550644627
560
- ],
561
- [
562
- -76.56555355498425,
563
- 44.20802541765336
564
- ],
565
- [
566
- -76.35303422718391,
567
- 44.134670722015045
568
- ],
569
- [
570
- -76.23926856149336,
571
- 43.979150499032656
572
- ],
573
- [
574
- -76.17999569365458,
575
- 43.5900011256587
576
- ],
577
- [
578
- -76.9300015937227,
579
- 43.2599954290428
580
- ],
581
- [
582
- -77.74915056019732,
583
- 43.342832750006664
584
- ],
585
- [
586
- -78.53499406605984,
587
- 43.379988104824534
588
- ],
589
- [
590
- -79.05630591502026,
591
- 43.25410431576152
592
- ]
593
- ]
594
- ]
595
- }
596
- },
597
- {
598
- type: "Feature",
599
- properties: {
600
- scalerank: 0,
601
- featurecla: "Lake",
602
- name: "L. Erie",
603
- name_alt: null,
604
- admin: "admin-0",
605
- min_zoom: 1,
606
- min_label: 3
607
- },
608
- geometry: {
609
- type: "Polygon",
610
- coordinates: [
611
- [
612
- [
613
- -83.12001135937246,
614
- 42.08001577409016
615
- ],
616
- [
617
- -82.57123348664891,
618
- 42.01702220312636
619
- ],
620
- [
621
- -81.82918575715374,
622
- 42.33552989355732
623
- ],
624
- [
625
- -81.39226152212595,
626
- 42.61517690690481
627
- ],
628
- [
629
- -81.09496700715081,
630
- 42.66075552018623
631
- ],
632
- [
633
- -80.54515560578142,
634
- 42.560089830081665
635
- ],
636
- [
637
- -80.27917700877515,
638
- 42.71566172949635
639
- ],
640
- [
641
- -79.79135148793986,
642
- 42.84203644466612
643
- ],
644
- [
645
- -78.92000932485044,
646
- 42.96500051530464
647
- ],
648
- [
649
- -78.90057898630869,
650
- 42.8667119410855
651
- ],
652
- [
653
- -79.76220598012725,
654
- 42.269616604169045
655
- ],
656
- [
657
- -80.51644934764329,
658
- 41.980331936199136
659
- ],
660
- [
661
- -81.03119828970264,
662
- 41.845508124349635
663
- ],
664
- [
665
- -81.62351355663209,
666
- 41.568935858723535
667
- ],
668
- [
669
- -82.34744869660895,
670
- 41.435920722004255
671
- ],
672
- [
673
- -82.84610043000939,
674
- 41.48710622818935
675
- ],
676
- [
677
- -83.46283281119673,
678
- 41.69396698665372
679
- ],
680
- [
681
- -83.12001135937246,
682
- 42.08001577409016
683
- ],
684
- [
685
- -83.12001135937246,
686
- 42.08001577409016
687
- ]
688
- ]
689
- ]
690
- }
691
- },
692
- {
693
- type: "Feature",
694
- properties: {
695
- scalerank: 0,
696
- featurecla: "Lake",
697
- name: "Lake Superior",
698
- name_alt: null,
699
- admin: "admin-0",
700
- min_zoom: 1,
701
- min_label: 3
702
- },
703
- geometry: {
704
- type: "Polygon",
705
- coordinates: [
706
- [
707
- [
708
- -89.60000342482806,
709
- 48.00998973244721
710
- ],
711
- [
712
- -89.19405921095924,
713
- 48.40546946877693
714
- ],
715
- [
716
- -88.62641944044917,
717
- 48.56251414651193
718
- ],
719
- [
720
- -88.40423661981026,
721
- 48.80632355406499
722
- ],
723
- [
724
- -88.17895321323383,
725
- 48.93670319273738
726
- ],
727
- [
728
- -87.24903581414156,
729
- 48.73511343036678
730
- ],
731
- [
732
- -86.56000810417788,
733
- 48.71108388935106
734
- ],
735
- [
736
- -86.32103044304411,
737
- 48.57729360614741
738
- ],
739
- [
740
- -85.98652889681881,
741
- 48.01035146747326
742
- ],
743
- [
744
- -84.8642201403039,
745
- 47.86007640236849
746
- ],
747
- [
748
- -85.04061764193222,
749
- 47.575700995466306
750
- ],
751
- [
752
- -84.64500871452178,
753
- 47.28220469826462
754
- ],
755
- [
756
- -84.81528255892351,
757
- 46.90233124448706
758
- ],
759
- [
760
- -84.39559241406505,
761
- 46.77683502866624
762
- ],
763
- [
764
- -84.60490780306328,
765
- 46.439594631529474
766
- ],
767
- [
768
- -84.9100054593145,
769
- 46.48000560158172
770
- ],
771
- [
772
- -85.11999264193253,
773
- 46.76001434995524
774
- ],
775
- [
776
- -86.1026200019625,
777
- 46.67265534116582
778
- ],
779
- [
780
- -86.99000769727856,
781
- 46.45000743263628
782
- ],
783
- [
784
- -87.69427995476835,
785
- 46.83104360614041
786
- ],
787
- [
788
- -88.2612220934425,
789
- 46.958581041036766
790
- ],
791
- [
792
- -87.93992387566777,
793
- 47.485913194359185
794
- ],
795
- [
796
- -88.82260901564527,
797
- 47.154796454449
798
- ],
799
- [
800
- -89.62498897984119,
801
- 46.83083690041124
802
- ],
803
- [
804
- -90.39703487828177,
805
- 46.57648550067064
806
- ],
807
- [
808
- -91.00999487991183,
809
- 46.92000458433087
810
- ],
811
- [
812
- -92.01192338740282,
813
- 46.71167104754619
814
- ],
815
- [
816
- -92.00877112503301,
817
- 46.85843211525511
818
- ],
819
- [
820
- -91.33000118687926,
821
- 47.28000844989221
822
- ],
823
- [
824
- -90.61999284540505,
825
- 47.68000987404746
826
- ],
827
- [
828
- -89.60000342482806,
829
- 48.00998973244721
830
- ]
831
- ]
832
- ]
833
- }
834
- },
835
- {
836
- type: "Feature",
837
- properties: {
838
- scalerank: 0,
839
- featurecla: "Lake",
840
- name: "Lake\rVictoria",
841
- name_alt: null,
842
- admin: "admin-0",
843
- min_zoom: 1,
844
- min_label: 3
845
- },
846
- geometry: {
847
- type: "Polygon",
848
- coordinates: [
849
- [
850
- [
851
- 33.85036827976734,
852
- 0.128157863766091
853
- ],
854
- [
855
- 33.85036827976734,
856
- 0.128157863766091
857
- ],
858
- [
859
- 34.13624230320599,
860
- -0.319308363449238
861
- ],
862
- [
863
- 34.0726286150547,
864
- -1.059831638191795
865
- ],
866
- [
867
- 33.579428745261055,
868
- -1.506005954599821
869
- ],
870
- [
871
- 33.251748488098286,
872
- -1.957968031424549
873
- ],
874
- [
875
- 33.64717654799571,
876
- -2.30089283611342
877
- ],
878
- [
879
- 33.07672041192572,
880
- -2.547131035984201
881
- ],
882
- [
883
- 32.95176679864397,
884
- -2.43044565186915
885
- ],
886
- [
887
- 32.37309410983957,
888
- -2.489925225437091
889
- ],
890
- [
891
- 31.926558058405476,
892
- -2.714511000177573
893
- ],
894
- [
895
- 31.648022088352292,
896
- -2.32921152100937
897
- ],
898
- [
899
- 31.836020949030114,
900
- -1.629305922048232
901
- ],
902
- [
903
- 31.866199985488578,
904
- -1.027378838712494
905
- ],
906
- [
907
- 31.815143670384202,
908
- -0.64042571371094
909
- ],
910
- [
911
- 32.27284183119332,
912
- -0.056120293786734
913
- ],
914
- [
915
- 32.906136508930246,
916
- 0.0867650415003
917
- ],
918
- [
919
- 33.33184695815069,
920
- 0.324993394365833
921
- ],
922
- [
923
- 33.85036827976734,
924
- 0.128157863766091
925
- ]
926
- ]
927
- ]
928
- }
929
- },
930
- {
931
- type: "Feature",
932
- properties: {
933
- scalerank: 0,
934
- featurecla: "Lake",
935
- name: "Lake\rLadoga",
936
- name_alt: null,
937
- admin: null,
938
- min_zoom: 1,
939
- min_label: 3
940
- },
941
- geometry: {
942
- type: "Polygon",
943
- coordinates: [
944
- [
945
- [
946
- 29.836711460089845,
947
- 61.22608226179696
948
- ],
949
- [
950
- 29.836711460089845,
951
- 61.22608226179696
952
- ],
953
- [
954
- 30.85199832532828,
955
- 61.77504100203353
956
- ],
957
- [
958
- 32.52688317234018,
959
- 61.11751007755173
960
- ],
961
- [
962
- 32.94432539239392,
963
- 60.64260366478942
964
- ],
965
- [
966
- 32.81575442885176,
967
- 60.481889960361684
968
- ],
969
- [
970
- 32.599901971168606,
971
- 60.533514716221276
972
- ],
973
- [
974
- 32.583882277158125,
975
- 60.20893504499601
976
- ],
977
- [
978
- 31.699440138482714,
979
- 60.23565176049091
980
- ],
981
- [
982
- 31.50973595553924,
983
- 59.92034800886205
984
- ],
985
- [
986
- 31.106246372204282,
987
- 59.92768606224749
988
- ],
989
- [
990
- 31.10893354668346,
991
- 60.14645823835514
992
- ],
993
- [
994
- 30.533878208139498,
995
- 60.63009796817478
996
- ],
997
- [
998
- 30.502045525847706,
999
- 60.843211574946466
1000
- ],
1001
- [
1002
- 29.836711460089845,
1003
- 61.22608226179696
1004
- ]
1005
- ]
1006
- ]
1007
- }
1008
- },
1009
- {
1010
- type: "Feature",
1011
- properties: {
1012
- scalerank: 0,
1013
- featurecla: "Lake",
1014
- name: "Lake\rBalkhash",
1015
- name_alt: "Balqash Köli",
1016
- admin: null,
1017
- min_zoom: 1,
1018
- min_label: 3
1019
- },
1020
- geometry: {
1021
- type: "Polygon",
1022
- coordinates: [
1023
- [
1024
- [
1025
- 78.99076541536459,
1026
- 46.748619696634876
1027
- ],
1028
- [
1029
- 78.99076541536459,
1030
- 46.748619696634876
1031
- ],
1032
- [
1033
- 79.2451684915375,
1034
- 46.64516347918655
1035
- ],
1036
- [
1037
- 78.88989301953086,
1038
- 46.369934800800024
1039
- ],
1040
- [
1041
- 78.44506229036242,
1042
- 46.29717438413307
1043
- ],
1044
- [
1045
- 77.20606814973246,
1046
- 46.3955663112168
1047
- ],
1048
- [
1049
- 75.61128177277294,
1050
- 46.50718740496724
1051
- ],
1052
- [
1053
- 75.46333214712132,
1054
- 46.6706141220903
1055
- ],
1056
- [
1057
- 75.40566124868357,
1058
- 46.47080719663377
1059
- ],
1060
- [
1061
- 74.91122114451494,
1062
- 46.404661363300164
1063
- ],
1064
- [
1065
- 74.77138471873312,
1066
- 46.107831936215646
1067
- ],
1068
- [
1069
- 74.27802981964263,
1070
- 46.004065660173566
1071
- ],
1072
- [
1073
- 74.0999528339648,
1074
- 44.98893382423201
1075
- ],
1076
- [
1077
- 73.4367375019309,
1078
- 45.60946442319282
1079
- ],
1080
- [
1081
- 73.4399931171653,
1082
- 45.80586070411809
1083
- ],
1084
- [
1085
- 73.73713260284359,
1086
- 46.012747300798594
1087
- ],
1088
- [
1089
- 73.67925499867667,
1090
- 46.18307282163262
1091
- ],
1092
- [
1093
- 74.02068118682908,
1094
- 46.20490611427593
1095
- ],
1096
- [
1097
- 74.09432010284502,
1098
- 46.42781240496693
1099
- ],
1100
- [
1101
- 74.939384800114,
1102
- 46.81678091082786
1103
- ],
1104
- [
1105
- 76.20313195181177,
1106
- 46.7800131292522
1107
- ],
1108
- [
1109
- 77.18131513866464,
1110
- 46.64340648048862
1111
- ],
1112
- [
1113
- 77.85993004752152,
1114
- 46.64785065366573
1115
- ],
1116
- [
1117
- 78.29700931184618,
1118
- 46.46853343361292
1119
- ],
1120
- [
1121
- 78.39710656119556,
1122
- 46.657669175801175
1123
- ],
1124
- [
1125
- 78.99076541536459,
1126
- 46.748619696634876
1127
- ]
1128
- ]
1129
- ]
1130
- }
1131
- },
1132
- {
1133
- type: "Feature",
1134
- properties: {
1135
- scalerank: 0,
1136
- featurecla: "Lake",
1137
- name: "Lake\rTanganyika",
1138
- name_alt: null,
1139
- admin: "admin-0",
1140
- min_zoom: 1,
1141
- min_label: 3
1142
- },
1143
- geometry: {
1144
- type: "Polygon",
1145
- coordinates: [
1146
- [
1147
- [
1148
- 30.806006300588507,
1149
- -8.578339125201033
1150
- ],
1151
- [
1152
- 30.46442508313922,
1153
- -8.498188978716335
1154
- ],
1155
- [
1156
- 30.566847771941724,
1157
- -8.1150082332721
1158
- ],
1159
- [
1160
- 30.27735639824263,
1161
- -7.848357842646031
1162
- ],
1163
- [
1164
- 30.14702843600253,
1165
- -7.299244073112582
1166
- ],
1167
- [
1168
- 29.536523064906334,
1169
- -6.7541610652979
1170
- ],
1171
- [
1172
- 29.19318484875913,
1173
- -6.038029066597119
1174
- ],
1175
- [
1176
- 29.371985304489016,
1177
- -5.616452731960017
1178
- ],
1179
- [
1180
- 29.101717563602506,
1181
- -5.054006442895265
1182
- ],
1183
- [
1184
- 29.281034783655315,
1185
- -3.455499362810748
1186
- ],
1187
- [
1188
- 29.652588331833897,
1189
- -4.420143324403149
1190
- ],
1191
- [
1192
- 29.600085076625334,
1193
- -4.896393324405054
1194
- ],
1195
- [
1196
- 29.79195966972506,
1197
- -5.040880629093131
1198
- ],
1199
- [
1200
- 29.758421665167646,
1201
- -5.466901136907339
1202
- ],
1203
- [
1204
- 29.951226434048635,
1205
- -5.860985609565162
1206
- ],
1207
- [
1208
- 29.722041456834177,
1209
- -6.244114678577112
1210
- ],
1211
- [
1212
- 30.52803877129051,
1213
- -6.922729587433992
1214
- ],
1215
- [
1216
- 30.604158156056457,
1217
- -7.541916599155222
1218
- ],
1219
- [
1220
- 31.189032016735865,
1221
- -8.729906101113095
1222
- ],
1223
- [
1224
- 31.022117140433124,
1225
- -8.786543470904988
1226
- ],
1227
- [
1228
- 30.806006300588507,
1229
- -8.578339125201033
1230
- ],
1231
- [
1232
- 30.806006300588507,
1233
- -8.578339125201033
1234
- ]
1235
- ]
1236
- ]
1237
- }
1238
- },
1239
- {
1240
- type: "Feature",
1241
- properties: {
1242
- scalerank: 0,
1243
- featurecla: "Lake",
1244
- name: "Lake Malawi",
1245
- name_alt: "Lake Nyasa",
1246
- admin: "admin-0",
1247
- min_zoom: 1,
1248
- min_label: 3
1249
- },
1250
- geometry: {
1251
- type: "Polygon",
1252
- coordinates: [
1253
- [
1254
- [
1255
- 35.2602047055542,
1256
- -14.277474460510291
1257
- ],
1258
- [
1259
- 35.236226840970915,
1260
- -14.401291192281633
1261
- ],
1262
- [
1263
- 34.881209751125766,
1264
- -14.012012627826891
1265
- ],
1266
- [
1267
- 34.706543409979076,
1268
- -14.262023207255027
1269
- ],
1270
- [
1271
- 34.54675988133266,
1272
- -14.047669366108266
1273
- ],
1274
- [
1275
- 34.55110070164528,
1276
- -13.67208505621096
1277
- ],
1278
- [
1279
- 34.3209338722171,
1280
- -13.379389743709737
1281
- ],
1282
- [
1283
- 34.32997724786827,
1284
- -12.944584242405995
1285
- ],
1286
- [
1287
- 34.032527703596315,
1288
- -12.208556817272836
1289
- ],
1290
- [
1291
- 34.322690870915096,
1292
- -11.652983493702834
1293
- ],
1294
- [
1295
- 34.25990400568048,
1296
- -10.447579034062642
1297
- ],
1298
- [
1299
- 33.906592238100984,
1300
- -9.801726983278854
1301
- ],
1302
- [
1303
- 33.99557905450757,
1304
- -9.495440769084837
1305
- ],
1306
- [
1307
- 34.52422895685345,
1308
- -10.03013681400887
1309
- ],
1310
- [
1311
- 34.60789310073403,
1312
- -11.080511976773494
1313
- ],
1314
- [
1315
- 34.93702029800096,
1316
- -11.463434340056267
1317
- ],
1318
- [
1319
- 34.69388268406766,
1320
- -12.422393894096615
1321
- ],
1322
- [
1323
- 34.86756717300062,
1324
- -13.701127211159019
1325
- ],
1326
- [
1327
- 35.05597944513687,
1328
- -13.742933444883136
1329
- ],
1330
- [
1331
- 35.2602047055542,
1332
- -14.277474460510291
1333
- ]
1334
- ]
1335
- ]
1336
- }
1337
- },
1338
- {
1339
- type: "Feature",
1340
- properties: {
1341
- scalerank: 0,
1342
- featurecla: "Lake",
1343
- name: "Aral\rSea",
1344
- name_alt: null,
1345
- admin: null,
1346
- min_zoom: 1,
1347
- min_label: 3
1348
- },
1349
- geometry: {
1350
- type: "Polygon",
1351
- coordinates: [
1352
- [
1353
- [
1354
- 60.05285159692946,
1355
- 44.264636949229114
1356
- ],
1357
- [
1358
- 59.77002648299603,
1359
- 44.15999217383806
1360
- ],
1361
- [
1362
- 59.06288618351405,
1363
- 44.36928172462015
1364
- ],
1365
- [
1366
- 59.34571129744745,
1367
- 44.99720205339871
1368
- ],
1369
- [
1370
- 59.35930219914022,
1371
- 45.190006822279685
1372
- ],
1373
- [
1374
- 58.96139367049281,
1375
- 45.37500844988459
1376
- ],
1377
- [
1378
- 58.92144778833119,
1379
- 45.101846828789746
1380
- ],
1381
- [
1382
- 58.92144778833119,
1383
- 44.73556427670495
1384
- ],
1385
- [
1386
- 58.497132602782614,
1387
- 44.212340399749735
1388
- ],
1389
- [
1390
- 58.285000848224456,
1391
- 44.473952338227335
1392
- ],
1393
- [
1394
- 58.285000848224456,
1395
- 44.89255727800766
1396
- ],
1397
- [
1398
- 58.689989048095896,
1399
- 45.50001373959863
1400
- ],
1401
- [
1402
- 58.78000939314833,
1403
- 45.88673432065487
1404
- ],
1405
- [
1406
- 59.20427290226462,
1407
- 45.93905670835039
1408
- ],
1409
- [
1410
- 59.535002068932585,
1411
- 45.70501414650049
1412
- ],
1413
- [
1414
- 59.55784305200561,
1415
- 46.30533926043519
1416
- ],
1417
- [
1418
- 59.77002648299603,
1419
- 46.25299103452352
1420
- ],
1421
- [
1422
- 60.12359663273702,
1423
- 46.096023871436955
1424
- ],
1425
- [
1426
- 60.12359663273702,
1427
- 45.88673432065487
1428
- ],
1429
- [
1430
- 59.94675988143425,
1431
- 45.808211981787366
1432
- ],
1433
- [
1434
- 59.84071984237133,
1435
- 45.520477606786216
1436
- ],
1437
- [
1438
- 60.12359663273702,
1439
- 45.572774156265595
1440
- ],
1441
- [
1442
- 60.23997195825834,
1443
- 44.78403677019473
1444
- ],
1445
- [
1446
- 60.05285159692946,
1447
- 44.264636949229114
1448
- ]
1449
- ]
1450
- ]
1451
- }
1452
- },
1453
- {
1454
- type: "Feature",
1455
- properties: {
1456
- scalerank: 1,
1457
- featurecla: "Lake",
1458
- name: "Vänern",
1459
- name_alt: null,
1460
- admin: null,
1461
- min_zoom: 1.7,
1462
- min_label: 3.6
1463
- },
1464
- geometry: {
1465
- type: "Polygon",
1466
- coordinates: [
1467
- [
1468
- [
1469
- 13.979281447005576,
1470
- 59.20491364199721
1471
- ],
1472
- [
1473
- 13.979281447005576,
1474
- 59.20491364199721
1475
- ],
1476
- [
1477
- 13.984449090234762,
1478
- 59.086212877022774
1479
- ],
1480
- [
1481
- 13.91892337408865,
1482
- 58.902503160225166
1483
- ],
1484
- [
1485
- 13.28268313971111,
1486
- 58.608670966213566
1487
- ],
1488
- [
1489
- 12.830100945698888,
1490
- 58.50903880475484
1491
- ],
1492
- [
1493
- 12.460149366921371,
1494
- 58.50619660097878
1495
- ],
1496
- [
1497
- 12.537767368223768,
1498
- 58.77594757754237
1499
- ],
1500
- [
1501
- 12.522161085671598,
1502
- 58.880282294339665
1503
- ],
1504
- [
1505
- 12.697085808979608,
1506
- 58.953843695707135
1507
- ],
1508
- [
1509
- 13.027039829163215,
1510
- 58.993531195707305
1511
- ],
1512
- [
1513
- 13.195298292705559,
1514
- 59.12900096296045
1515
- ],
1516
- [
1517
- 13.59144982265505,
1518
- 59.336481838612315
1519
- ],
1520
- [
1521
- 13.979281447005576,
1522
- 59.20491364199721
1523
- ]
1524
- ]
1525
- ]
1526
- }
1527
- },
1528
- {
1529
- type: "Feature",
1530
- properties: {
1531
- scalerank: 1,
1532
- featurecla: "Lake",
1533
- name: "Lake Okeechobee",
1534
- name_alt: null,
1535
- admin: null,
1536
- min_zoom: 1.7,
1537
- min_label: 3.6
1538
- },
1539
- geometry: {
1540
- type: "Polygon",
1541
- coordinates: [
1542
- [
1543
- [
1544
- -80.70643775096435,
1545
- 26.788959458924822
1546
- ],
1547
- [
1548
- -80.93244462759287,
1549
- 26.823272609966622
1550
- ],
1551
- [
1552
- -80.91970638703292,
1553
- 27.068916530866048
1554
- ],
1555
- [
1556
- -80.69369951040441,
1557
- 27.034629218040394
1558
- ],
1559
- [
1560
- -80.70643775096435,
1561
- 26.788959458924822
1562
- ],
1563
- [
1564
- -80.70643775096435,
1565
- 26.788959458924822
1566
- ]
1567
- ]
1568
- ]
1569
- }
1570
- },
1571
- {
1572
- type: "Feature",
1573
- properties: {
1574
- scalerank: 1,
1575
- featurecla: "Lake",
1576
- name: "Lago de\rNicaragua",
1577
- name_alt: null,
1578
- admin: null,
1579
- min_zoom: 1.7,
1580
- min_label: 3.6
1581
- },
1582
- geometry: {
1583
- type: "Polygon",
1584
- coordinates: [
1585
- [
1586
- [
1587
- -84.85548682324658,
1588
- 11.147898667846633
1589
- ],
1590
- [
1591
- -85.29013729525353,
1592
- 11.176165676310276
1593
- ],
1594
- [
1595
- -85.79132117383625,
1596
- 11.509737046754324
1597
- ],
1598
- [
1599
- -85.8851655748783,
1600
- 11.900100816287136
1601
- ],
1602
- [
1603
- -85.5653401354239,
1604
- 11.940330918826362
1605
- ],
1606
- [
1607
- -85.03684526237491,
1608
- 11.5216484643976
1609
- ],
1610
- [
1611
- -84.85548682324658,
1612
- 11.147898667846633
1613
- ],
1614
- [
1615
- -84.85548682324658,
1616
- 11.147898667846633
1617
- ]
1618
- ]
1619
- ]
1620
- }
1621
- },
1622
- {
1623
- type: "Feature",
1624
- properties: {
1625
- scalerank: 1,
1626
- featurecla: "Lake",
1627
- name: "Lake Tana",
1628
- name_alt: null,
1629
- admin: null,
1630
- min_zoom: 1.7,
1631
- min_label: 3.6
1632
- },
1633
- geometry: {
1634
- type: "Polygon",
1635
- coordinates: [
1636
- [
1637
- [
1638
- 37.14370730972843,
1639
- 11.850594794151519
1640
- ],
1641
- [
1642
- 37.01482628759251,
1643
- 12.035596421756424
1644
- ],
1645
- [
1646
- 37.24401126480697,
1647
- 12.233878892460353
1648
- ],
1649
- [
1650
- 37.518361443844526,
1651
- 12.160601711470477
1652
- ],
1653
- [
1654
- 37.48187788264647,
1655
- 11.825092474815477
1656
- ],
1657
- [
1658
- 37.33635704931254,
1659
- 11.713393866416595
1660
- ],
1661
- [
1662
- 37.14370730972843,
1663
- 11.850594794151519
1664
- ],
1665
- [
1666
- 37.14370730972843,
1667
- 11.850594794151519
1668
- ]
1669
- ]
1670
- ]
1671
- }
1672
- },
1673
- {
1674
- type: "Feature",
1675
- properties: {
1676
- scalerank: 1,
1677
- featurecla: "Lake",
1678
- name: "Lago Titicaca",
1679
- name_alt: null,
1680
- admin: null,
1681
- min_zoom: 1.7,
1682
- min_label: 3.6
1683
- },
1684
- geometry: {
1685
- type: "Polygon",
1686
- coordinates: [
1687
- [
1688
- [
1689
- -69.40673987494259,
1690
- -16.126198825752063
1691
- ],
1692
- [
1693
- -69.7290974595793,
1694
- -15.928794854397104
1695
- ],
1696
- [
1697
- -69.98365556504908,
1698
- -15.73717864345884
1699
- ],
1700
- [
1701
- -69.8770212470148,
1702
- -15.669844252182529
1703
- ],
1704
- [
1705
- -69.8679778713637,
1706
- -15.546079196843493
1707
- ],
1708
- [
1709
- -69.88559953477524,
1710
- -15.35425628017606
1711
- ],
1712
- [
1713
- -69.59675411647981,
1714
- -15.410480238509614
1715
- ],
1716
- [
1717
- -68.98697221543571,
1718
- -15.885903415594846
1719
- ],
1720
- [
1721
- -68.9596870591856,
1722
- -15.91329192470954
1723
- ],
1724
- [
1725
- -68.74623755560401,
1726
- -16.356003920154023
1727
- ],
1728
- [
1729
- -68.90524593776611,
1730
- -16.506640720284835
1731
- ],
1732
- [
1733
- -69.00115739609983,
1734
- -16.536406345284952
1735
- ],
1736
- [
1737
- -69.09084184434238,
1738
- -16.461992282784657
1739
- ],
1740
- [
1741
- -69.18205074733753,
1742
- -16.40116912197712
1743
- ],
1744
- [
1745
- -69.25098710801488,
1746
- -16.227536309476427
1747
- ],
1748
- [
1749
- -69.40673987494259,
1750
- -16.126198825752063
1751
- ],
1752
- [
1753
- -69.40673987494259,
1754
- -16.126198825752063
1755
- ]
1756
- ]
1757
- ]
1758
- }
1759
- },
1760
- {
1761
- type: "Feature",
1762
- properties: {
1763
- scalerank: 1,
1764
- featurecla: "Lake",
1765
- name: "Lake\rWinnipegosis",
1766
- name_alt: null,
1767
- admin: null,
1768
- min_zoom: 1.7,
1769
- min_label: 3.6
1770
- },
1771
- geometry: {
1772
- type: "Polygon",
1773
- coordinates: [
1774
- [
1775
- [
1776
- -99.40377193886468,
1777
- 53.1258531764781
1778
- ],
1779
- [
1780
- -99.54846594928192,
1781
- 53.120427151087455
1782
- ],
1783
- [
1784
- -99.80498775917877,
1785
- 53.14290639913442
1786
- ],
1787
- [
1788
- -100.43146114785316,
1789
- 53.2841897650204
1790
- ],
1791
- [
1792
- -100.60685095905177,
1793
- 53.531616522833886
1794
- ],
1795
- [
1796
- -100.33487789589965,
1797
- 53.745246893928496
1798
- ],
1799
- [
1800
- -100.42673275429846,
1801
- 53.90740753846039
1802
- ],
1803
- [
1804
- -100.4044860501968,
1805
- 53.94507965760117
1806
- ],
1807
- [
1808
- -100.32629960813921,
1809
- 54.094011135466346
1810
- ],
1811
- [
1812
- -100.23586585162842,
1813
- 54.23033356385231
1814
- ],
1815
- [
1816
- -99.99549292682278,
1817
- 54.215864162810576
1818
- ],
1819
- [
1820
- -100.04778947630214,
1821
- 54.10013479269293
1822
- ],
1823
- [
1824
- -100.18356930214904,
1825
- 53.930351874397985
1826
- ],
1827
- [
1828
- -99.87128862180926,
1829
- 53.928465684619326
1830
- ],
1831
- [
1832
- -99.91066606321566,
1833
- 53.821314602262134
1834
- ],
1835
- [
1836
- -100.05649695514333,
1837
- 53.44332733826322
1838
- ],
1839
- [
1840
- -99.66551306842301,
1841
- 53.29581696228607
1842
- ],
1843
- [
1844
- -99.39317827024485,
1845
- 53.26791168884846
1846
- ],
1847
- [
1848
- -99.40377193886468,
1849
- 53.1258531764781
1850
- ],
1851
- [
1852
- -99.40377193886468,
1853
- 53.1258531764781
1854
- ]
1855
- ]
1856
- ]
1857
- }
1858
- },
1859
- {
1860
- type: "Feature",
1861
- properties: {
1862
- scalerank: 1,
1863
- featurecla: "Lake",
1864
- name: "Lake\rOnega",
1865
- name_alt: null,
1866
- admin: null,
1867
- min_zoom: 1.7,
1868
- min_label: 3.6
1869
- },
1870
- geometry: {
1871
- type: "Polygon",
1872
- coordinates: [
1873
- [
1874
- [
1875
- 35.71464725112901,
1876
- 62.2802298041189
1877
- ],
1878
- [
1879
- 36.0541614112866,
1880
- 61.716310736733874
1881
- ],
1882
- [
1883
- 36.391401808423325,
1884
- 61.27605337182331
1885
- ],
1886
- [
1887
- 36.10945519383887,
1888
- 61.01508738874924
1889
- ],
1890
- [
1891
- 35.35074181492962,
1892
- 60.948579820389625
1893
- ],
1894
- [
1895
- 34.866843702948586,
1896
- 61.11637319604125
1897
- ],
1898
- [
1899
- 35.207288038887384,
1900
- 61.114435329830485
1901
- ],
1902
- [
1903
- 35.57832482274313,
1904
- 61.08634918887975
1905
- ],
1906
- [
1907
- 35.16000410334027,
1908
- 61.39428904890701
1909
- ],
1910
- [
1911
- 34.85733523940689,
1912
- 61.55179881453273
1913
- ],
1914
- [
1915
- 34.48691857273877,
1916
- 61.86697337508076
1917
- ],
1918
- [
1919
- 34.265019972477376,
1920
- 62.21914826114994
1921
- ],
1922
- [
1923
- 34.289824659977455,
1924
- 62.29774811466581
1925
- ],
1926
- [
1927
- 34.66561567560399,
1928
- 62.22979360620195
1929
- ],
1930
- [
1931
- 34.62613488133297,
1932
- 62.45223480900245
1933
- ],
1934
- [
1935
- 34.8356311378443,
1936
- 62.29676626245225
1937
- ],
1938
- [
1939
- 35.080267368314026,
1940
- 62.1411943630377
1941
- ],
1942
- [
1943
- 35.21658979669991,
1944
- 62.193284206787894
1945
- ],
1946
- [
1947
- 35.463706495919666,
1948
- 62.2560193955901
1949
- ],
1950
- [
1951
- 35.13969526544963,
1952
- 62.48776235620312
1953
- ],
1954
- [
1955
- 34.614352654770414,
1956
- 62.762448432050576
1957
- ],
1958
- [
1959
- 34.99541466649072,
1960
- 62.748469957115674
1961
- ],
1962
- [
1963
- 35.23395307795005,
1964
- 62.675347805422575
1965
- ],
1966
- [
1967
- 35.71464725112901,
1968
- 62.2802298041189
1969
- ]
1970
- ]
1971
- ]
1972
- }
1973
- },
1974
- {
1975
- type: "Feature",
1976
- properties: {
1977
- scalerank: 1,
1978
- featurecla: "Lake",
1979
- name: "Great Salt Lake",
1980
- name_alt: null,
1981
- admin: null,
1982
- min_zoom: 1.7,
1983
- min_label: 3.6
1984
- },
1985
- geometry: {
1986
- type: "Polygon",
1987
- coordinates: [
1988
- [
1989
- [
1990
- -112.18405127648089,
1991
- 41.34124949804567
1992
- ],
1993
- [
1994
- -112.13875688357706,
1995
- 41.142346910154174
1996
- ],
1997
- [
1998
- -112.17193315310845,
1999
- 40.851460272783186
2000
- ],
2001
- [
2002
- -112.67882727745939,
2003
- 41.130487168943205
2004
- ],
2005
- [
2006
- -112.70549231652205,
2007
- 41.16753917089636
2008
- ],
2009
- [
2010
- -112.87814327680917,
2011
- 41.62815705013003
2012
- ],
2013
- [
2014
- -112.58955624067522,
2015
- 41.43891795507716
2016
- ],
2017
- [
2018
- -112.40532975955472,
2019
- 41.33801972102742
2020
- ],
2021
- [
2022
- -112.21901038292629,
2023
- 41.42855683040267
2024
- ],
2025
- [
2026
- -112.18405127648089,
2027
- 41.34124949804567
2028
- ]
2029
- ]
2030
- ]
2031
- }
2032
- },
2033
- {
2034
- type: "Feature",
2035
- properties: {
2036
- scalerank: 1,
2037
- featurecla: "Lake",
2038
- name: "Great\rBear Lake",
2039
- name_alt: null,
2040
- admin: null,
2041
- min_zoom: 1.7,
2042
- min_label: 3.6
2043
- },
2044
- geometry: {
2045
- type: "Polygon",
2046
- coordinates: [
2047
- [
2048
- [
2049
- -117.7592923653704,
2050
- 66.22368419052789
2051
- ],
2052
- [
2053
- -117.97374955938167,
2054
- 65.85489533147692
2055
- ],
2056
- [
2057
- -118.10710059291085,
2058
- 65.76691620550001
2059
- ],
2060
- [
2061
- -119.7200520432652,
2062
- 65.73479930283061
2063
- ],
2064
- [
2065
- -119.74568355368197,
2066
- 65.65436493596833
2067
- ],
2068
- [
2069
- -119.6648099371452,
2070
- 65.52742178004333
2071
- ],
2072
- [
2073
- -119.70219783590836,
2074
- 65.36794830999061
2075
- ],
2076
- [
2077
- -121.35509436098008,
2078
- 64.87999359807459
2079
- ],
2080
- [
2081
- -121.33610327211281,
2082
- 64.99461192489797
2083
- ],
2084
- [
2085
- -120.94527441468938,
2086
- 65.37774099390991
2087
- ],
2088
- [
2089
- -121.05728308168202,
2090
- 65.4463414577774
2091
- ],
2092
- [
2093
- -122.56450374412293,
2094
- 65.0310696478799
2095
- ],
2096
- [
2097
- -123.232705851873,
2098
- 65.18041453720339
2099
- ],
2100
- [
2101
- -123.17963415590926,
2102
- 65.31937246363624
2103
- ],
2104
- [
2105
- -122.32599117087979,
2106
- 65.79378795029179
2107
- ],
2108
- [
2109
- -122.35622188377054,
2110
- 65.90184337021411
2111
- ],
2112
- [
2113
- -124.95363440005697,
2114
- 66.04925039332666
2115
- ],
2116
- [
2117
- -124.89753963280414,
2118
- 66.15115631780624
2119
- ],
2120
- [
2121
- -119.48724971579031,
2122
- 66.96929759385118
2123
- ],
2124
- [
2125
- -119.35743771042887,
2126
- 66.87519481064767
2127
- ],
2128
- [
2129
- -120.1769492193738,
2130
- 66.46527151149239
2131
- ],
2132
- [
2133
- -117.60545162643749,
2134
- 66.55934845647975
2135
- ],
2136
- [
2137
- -117.61278967982294,
2138
- 66.41997711858856
2139
- ],
2140
- [
2141
- -117.7592923653704,
2142
- 66.22368419052789
2143
- ],
2144
- [
2145
- -117.7592923653704,
2146
- 66.22368419052789
2147
- ]
2148
- ]
2149
- ]
2150
- }
2151
- },
2152
- {
2153
- type: "Feature",
2154
- properties: {
2155
- scalerank: 1,
2156
- featurecla: "Lake",
2157
- name: "Lake Athabasca",
2158
- name_alt: null,
2159
- admin: null,
2160
- min_zoom: 1.7,
2161
- min_label: 3.6
2162
- },
2163
- geometry: {
2164
- type: "Polygon",
2165
- coordinates: [
2166
- [
2167
- [
2168
- -109.65330135785099,
2169
- 59.03763703066841
2170
- ],
2171
- [
2172
- -111.08626298708849,
2173
- 58.56017263450765
2174
- ],
2175
- [
2176
- -111.19948605023998,
2177
- 58.685565497463884
2178
- ],
2179
- [
2180
- -111.160005255969,
2181
- 58.75985036888345
2182
- ],
2183
- [
2184
- -109.09672034385136,
2185
- 59.55042226830068
2186
- ],
2187
- [
2188
- -106.54517066122398,
2189
- 59.31968699811746
2190
- ],
2191
- [
2192
- -106.54695349813804,
2193
- 59.292815253325685
2194
- ],
2195
- [
2196
- -109.65330135785099,
2197
- 59.03763703066841
2198
- ],
2199
- [
2200
- -109.65330135785099,
2201
- 59.03763703066841
2202
- ]
2203
- ]
2204
- ]
2205
- }
2206
- },
2207
- {
2208
- type: "Feature",
2209
- properties: {
2210
- scalerank: 1,
2211
- featurecla: "Lake",
2212
- name: "Reindeer\rLake",
2213
- name_alt: null,
2214
- admin: null,
2215
- min_zoom: 1.7,
2216
- min_label: 3.6
2217
- },
2218
- geometry: {
2219
- type: "Polygon",
2220
- coordinates: [
2221
- [
2222
- [
2223
- -101.89514441608819,
2224
- 58.01403025983099
2225
- ],
2226
- [
2227
- -101.89514441608819,
2228
- 58.01403025983099
2229
- ],
2230
- [
2231
- -101.54384802936804,
2232
- 57.86809601503873
2233
- ],
2234
- [
2235
- -101.97090206582807,
2236
- 57.34867035585697
2237
- ],
2238
- [
2239
- -101.93403093138781,
2240
- 57.23066722271848
2241
- ],
2242
- [
2243
- -103.20416012247362,
2244
- 56.34539826112639
2245
- ],
2246
- [
2247
- -103.2825015938281,
2248
- 56.40994212505895
2249
- ],
2250
- [
2251
- -103.1487371488406,
2252
- 56.70411021588043
2253
- ],
2254
- [
2255
- -103.07832800984292,
2256
- 56.71080231386223
2257
- ],
2258
- [
2259
- -103.01440426309787,
2260
- 56.56510061301529
2261
- ],
2262
- [
2263
- -102.57680823445028,
2264
- 56.938281968811054
2265
- ],
2266
- [
2267
- -102.81322791218561,
2268
- 57.28714956321349
2269
- ],
2270
- [
2271
- -102.81369300007623,
2272
- 57.46434804954232
2273
- ],
2274
- [
2275
- -102.12874772826359,
2276
- 58.01914622662788
2277
- ],
2278
- [
2279
- -101.89514441608819,
2280
- 58.01403025983099
2281
- ]
2282
- ]
2283
- ]
2284
- }
2285
- },
2286
- {
2287
- type: "Feature",
2288
- properties: {
2289
- scalerank: 0,
2290
- featurecla: "Lake",
2291
- name: "Lake\rHuron",
2292
- name_alt: null,
2293
- admin: "admin-0",
2294
- min_zoom: 1,
2295
- min_label: 3
2296
- },
2297
- geometry: {
2298
- type: "Polygon",
2299
- coordinates: [
2300
- [
2301
- [
2302
- -80.41056433787725,
2303
- 45.590137437515665
2304
- ],
2305
- [
2306
- -79.76292945017934,
2307
- 44.824602769543844
2308
- ],
2309
- [
2310
- -80.08500281443844,
2311
- 44.493925279308144
2312
- ],
2313
- [
2314
- -80.89769222687659,
2315
- 44.63164297136599
2316
- ],
2317
- [
2318
- -81.40233842642287,
2319
- 45.25005483660284
2320
- ],
2321
- [
2322
- -81.27567949087549,
2323
- 44.6201708033972
2324
- ],
2325
- [
2326
- -81.75265296092948,
2327
- 44.06464915625956
2328
- ],
2329
- [
2330
- -81.70017554393709,
2331
- 43.590052802090995
2332
- ],
2333
- [
2334
- -81.78272864452336,
2335
- 43.310845038417995
2336
- ],
2337
- [
2338
- -82.43000179719522,
2339
- 42.98001251888543
2340
- ],
2341
- [
2342
- -82.4799987454376,
2343
- 43.39001333268915
2344
- ],
2345
- [
2346
- -82.6599877591102,
2347
- 43.970003770516996
2348
- ],
2349
- [
2350
- -83.02999101432,
2351
- 44.06999766700177
2352
- ],
2353
- [
2354
- -83.6500048489579,
2355
- 43.62999868425261
2356
- ],
2357
- [
2358
- -83.84870073112015,
2359
- 43.63831858985161
2360
- ],
2361
- [
2362
- -83.89998959016984,
2363
- 43.88998281511303
2364
- ],
2365
- [
2366
- -83.34999732128743,
2367
- 44.29001007748441
2368
- ],
2369
- [
2370
- -83.25878841829228,
2371
- 44.74574453386644
2372
- ],
2373
- [
2374
- -83.33999793163895,
2375
- 45.200006211928155
2376
- ],
2377
- [
2378
- -84.08000444205858,
2379
- 45.58998240821879
2380
- ],
2381
- [
2382
- -84.93000423861146,
2383
- 45.789996039404485
2384
- ],
2385
- [
2386
- -84.75355506055087,
2387
- 45.924483954444085
2388
- ],
2389
- [
2390
- -84.71999121777729,
2391
- 45.91998810483469
2392
- ],
2393
- [
2394
- -83.83919226757845,
2395
- 46.010215155616294
2396
- ],
2397
- [
2398
- -84.33670711946846,
2399
- 46.40876963966737
2400
- ],
2401
- [
2402
- -84.14870825879063,
2403
- 46.55576325132161
2404
- ],
2405
- [
2406
- -83.95257036002683,
2407
- 46.334278062518635
2408
- ],
2409
- [
2410
- -83.20251278352643,
2411
- 46.21015127215355
2412
- ],
2413
- [
2414
- -82.44199072948692,
2415
- 46.19963511818216
2416
- ],
2417
- [
2418
- -81.63136837434045,
2419
- 46.09754832618957
2420
- ],
2421
- [
2422
- -80.73679765493583,
2423
- 45.90381338152733
2424
- ],
2425
- [
2426
- -80.41056433787725,
2427
- 45.590137437515665
2428
- ]
2429
- ]
2430
- ]
2431
- }
2432
- },
2433
- {
2434
- type: "Feature",
2435
- properties: {
2436
- scalerank: 0,
2437
- featurecla: "Lake",
2438
- name: "Lake\rMichigan",
2439
- name_alt: null,
2440
- admin: "admin-0",
2441
- min_zoom: 1,
2442
- min_label: 3
2443
- },
2444
- geometry: {
2445
- type: "Polygon",
2446
- coordinates: [
2447
- [
2448
- [
2449
- -85.53999284538475,
2450
- 46.03000722918408
2451
- ],
2452
- [
2453
- -84.75355506055087,
2454
- 45.924483954444085
2455
- ],
2456
- [
2457
- -84.93000423861146,
2458
- 45.789996039404485
2459
- ],
2460
- [
2461
- -85.06999569369015,
2462
- 45.40999339454619
2463
- ],
2464
- [
2465
- -85.29044735384727,
2466
- 45.30824249936349
2467
- ],
2468
- [
2469
- -85.46710323763705,
2470
- 44.81457754167923
2471
- ],
2472
- [
2473
- -85.55999162468169,
2474
- 45.150009263685774
2475
- ],
2476
- [
2477
- -85.95983801954006,
2478
- 44.91059235287753
2479
- ],
2480
- [
2481
- -86.20935767286137,
2482
- 44.574798895844935
2483
- ],
2484
- [
2485
- -86.47027197950304,
2486
- 44.08423452409818
2487
- ],
2488
- [
2489
- -86.52001054558397,
2490
- 43.65999685319804
2491
- ],
2492
- [
2493
- -86.18842871778315,
2494
- 43.04140412044818
2495
- ],
2496
- [
2497
- -86.21604977084317,
2498
- 42.38170278581012
2499
- ],
2500
- [
2501
- -86.62191647006355,
2502
- 41.8944198675139
2503
- ],
2504
- [
2505
- -86.8244364082154,
2506
- 41.75618541113313
2507
- ],
2508
- [
2509
- -87.09444576694042,
2510
- 41.64616628678374
2511
- ],
2512
- [
2513
- -87.4342183092595,
2514
- 41.640714423176945
2515
- ],
2516
- [
2517
- -87.52617652052288,
2518
- 41.70851390234388
2519
- ],
2520
- [
2521
- -87.79569495314115,
2522
- 42.23411489518453
2523
- ],
2524
- [
2525
- -87.80344641798493,
2526
- 42.49399567318035
2527
- ],
2528
- [
2529
- -87.77672970249003,
2530
- 42.740853990238634
2531
- ],
2532
- [
2533
- -87.90214840366241,
2534
- 43.23051402442029
2535
- ],
2536
- [
2537
- -87.71221167677363,
2538
- 43.79650014909703
2539
- ],
2540
- [
2541
- -87.486359829442,
2542
- 44.49335683855294
2543
- ],
2544
- [
2545
- -86.9674767727993,
2546
- 45.26287059181122
2547
- ],
2548
- [
2549
- -87.11806189649782,
2550
- 45.25933075619923
2551
- ],
2552
- [
2553
- -87.85282324903983,
2554
- 44.61505483660031
2555
- ],
2556
- [
2557
- -87.98831885450912,
2558
- 44.73331635190026
2559
- ],
2560
- [
2561
- -87.5964306302237,
2562
- 45.093707790703775
2563
- ],
2564
- [
2565
- -87.00000708692704,
2566
- 45.73999909116209
2567
- ],
2568
- [
2569
- -86.31999691439827,
2570
- 45.829993597998396
2571
- ],
2572
- [
2573
- -85.53999284538475,
2574
- 46.03000722918408
2575
- ]
2576
- ]
2577
- ]
2578
- }
2579
- }
2580
- ], ue = {
2581
- type: se,
2582
- features: le
2583
- };
2584
- var ce = fe, i0, G, F, n0, r0, de = [
2585
- "Point",
2586
- "MultiPoint",
2587
- "LineString",
2588
- "MultiLineString",
2589
- "Polygon",
2590
- "MultiPolygon",
2591
- "GeometryCollection"
2592
- ];
2593
- function fe(e) {
2594
- n0 = 2, r0 = Math.pow(10, 6), F = null, i0 = [], G = [];
2595
- var t = e.readFields(he, {});
2596
- return i0 = null, t;
2597
- }
2598
- function he(e, t, i) {
2599
- e === 1 ? i0.push(i.readString()) : e === 2 ? n0 = i.readVarint() : e === 3 ? r0 = Math.pow(10, i.readVarint()) : e === 4 ? pe(i, t) : e === 5 ? V0(i, t) : e === 6 && h0(i, t);
2600
- }
2601
- function pe(e, t) {
2602
- return t.type = "FeatureCollection", t.features = [], e.readMessage(me, t);
2603
- }
2604
- function V0(e, t) {
2605
- t.type = "Feature";
2606
- var i = e.readMessage(ye, t);
2607
- return "geometry" in i || (i.geometry = null), i;
2608
- }
2609
- function h0(e, t) {
2610
- return t.type = "Point", e.readMessage(xe, t);
2611
- }
2612
- function me(e, t, i) {
2613
- e === 1 ? t.features.push(V0(i, {})) : e === 13 ? G.push(p0(i)) : e === 15 && a0(i, t);
2614
- }
2615
- function ye(e, t, i) {
2616
- e === 1 ? t.geometry = h0(i, {}) : e === 11 ? t.id = i.readString() : e === 12 ? t.id = i.readSVarint() : e === 13 ? G.push(p0(i)) : e === 14 ? t.properties = a0(i, {}) : e === 15 && a0(i, t);
2617
- }
2618
- function xe(e, t, i) {
2619
- e === 1 ? t.type = de[i.readVarint()] : e === 2 ? F = i.readPackedVarint() : e === 3 ? ve(t, i, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(h0(i, {}))) : e === 13 ? G.push(p0(i)) : e === 15 && a0(i, t);
2620
- }
2621
- function ve(e, t, i) {
2622
- i === "Point" ? e.coordinates = ge(t) : i === "MultiPoint" || i === "LineString" ? e.coordinates = w0(t) : i === "MultiLineString" ? e.coordinates = k0(t) : i === "Polygon" ? e.coordinates = k0(t, !0) : i === "MultiPolygon" && (e.coordinates = _e(t));
2623
- }
2624
- function p0(e) {
2625
- for (var t = e.readVarint() + e.pos, i = null; e.pos < t; ) {
2626
- var a = e.readVarint(), n = a >> 3;
2627
- n === 1 ? i = e.readString() : n === 2 ? i = e.readDouble() : n === 3 ? i = e.readVarint() : n === 4 ? i = -e.readVarint() : n === 5 ? i = e.readBoolean() : n === 6 && (i = JSON.parse(e.readString()));
2628
- }
2629
- return i;
2630
- }
2631
- function a0(e, t) {
2632
- for (var i = e.readVarint() + e.pos; e.pos < i; ) t[i0[e.readVarint()]] = G[e.readVarint()];
2633
- return G = [], t;
2634
- }
2635
- function ge(e) {
2636
- for (var t = e.readVarint() + e.pos, i = []; e.pos < t; ) i.push(e.readSVarint() / r0);
2637
- return i;
2638
- }
2639
- function J(e, t, i, a) {
2640
- var n = 0, o = [], s, c, f = [];
2641
- for (c = 0; c < n0; c++) f[c] = 0;
2642
- for (; i ? n < i : e.pos < t; ) {
2643
- for (s = [], c = 0; c < n0; c++)
2644
- f[c] += e.readSVarint(), s[c] = f[c] / r0;
2645
- o.push(s), n++;
2646
- }
2647
- return a && o.push(o[0]), o;
2648
- }
2649
- function w0(e) {
2650
- return J(e, e.readVarint() + e.pos);
2651
- }
2652
- function k0(e, t) {
2653
- var i = e.readVarint() + e.pos;
2654
- if (!F) return [J(e, i, null, t)];
2655
- for (var a = [], n = 0; n < F.length; n++) a.push(J(e, i, F[n], t));
2656
- return F = null, a;
2657
- }
2658
- function _e(e) {
2659
- var t = e.readVarint() + e.pos;
2660
- if (!F) return [[J(e, t, null, !0)]];
2661
- for (var i = [], a = 1, n = 0; n < F[0]; n++) {
2662
- for (var o = [], s = 0; s < F[a]; s++) o.push(J(e, t, F[a + 1 + s], !0));
2663
- a += F[a] + 1, i.push(o);
2664
- }
2665
- return F = null, i;
2666
- }
2667
- var Fe = ce, m0 = {};
2668
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2669
- m0.read = function(e, t, i, a, n) {
2670
- var o, s, c = n * 8 - a - 1, f = (1 << c) - 1, l = f >> 1, r = -7, u = i ? n - 1 : 0, h = i ? -1 : 1, m = e[t + u];
2671
- for (u += h, o = m & (1 << -r) - 1, m >>= -r, r += c; r > 0; o = o * 256 + e[t + u], u += h, r -= 8)
2672
- ;
2673
- for (s = o & (1 << -r) - 1, o >>= -r, r += a; r > 0; s = s * 256 + e[t + u], u += h, r -= 8)
2674
- ;
2675
- if (o === 0)
2676
- o = 1 - l;
2677
- else {
2678
- if (o === f)
2679
- return s ? NaN : (m ? -1 : 1) * (1 / 0);
2680
- s = s + Math.pow(2, a), o = o - l;
2681
- }
2682
- return (m ? -1 : 1) * s * Math.pow(2, o - a);
2683
- };
2684
- m0.write = function(e, t, i, a, n, o) {
2685
- var s, c, f, l = o * 8 - n - 1, r = (1 << l) - 1, u = r >> 1, h = n === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = a ? 0 : o - 1, _ = a ? 1 : -1, v = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
2686
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (c = isNaN(t) ? 1 : 0, s = r) : (s = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -s)) < 1 && (s--, f *= 2), s + u >= 1 ? t += h / f : t += h * Math.pow(2, 1 - u), t * f >= 2 && (s++, f /= 2), s + u >= r ? (c = 0, s = r) : s + u >= 1 ? (c = (t * f - 1) * Math.pow(2, n), s = s + u) : (c = t * Math.pow(2, u - 1) * Math.pow(2, n), s = 0)); n >= 8; e[i + m] = c & 255, m += _, c /= 256, n -= 8)
2687
- ;
2688
- for (s = s << n | c, l += n; l > 0; e[i + m] = s & 255, m += _, s /= 256, l -= 8)
2689
- ;
2690
- e[i + m - _] |= v * 128;
2691
- };
2692
- var we = p, e0 = m0;
2693
- function p(e) {
2694
- this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
2695
- }
2696
- p.Varint = 0;
2697
- p.Fixed64 = 1;
2698
- p.Bytes = 2;
2699
- p.Fixed32 = 5;
2700
- var d0 = 65536 * 65536, M0 = 1 / d0, ke = 12, z0 = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
2701
- p.prototype = {
2702
- destroy: function() {
2703
- this.buf = null;
2704
- },
2705
- // === READING =================================================================
2706
- readFields: function(e, t, i) {
2707
- for (i = i || this.length; this.pos < i; ) {
2708
- var a = this.readVarint(), n = a >> 3, o = this.pos;
2709
- this.type = a & 7, e(n, t, this), this.pos === o && this.skip(a);
2710
- }
2711
- return t;
2712
- },
2713
- readMessage: function(e, t) {
2714
- return this.readFields(e, t, this.readVarint() + this.pos);
2715
- },
2716
- readFixed32: function() {
2717
- var e = t0(this.buf, this.pos);
2718
- return this.pos += 4, e;
2719
- },
2720
- readSFixed32: function() {
2721
- var e = B0(this.buf, this.pos);
2722
- return this.pos += 4, e;
2723
- },
2724
- // 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
2725
- readFixed64: function() {
2726
- var e = t0(this.buf, this.pos) + t0(this.buf, this.pos + 4) * d0;
2727
- return this.pos += 8, e;
2728
- },
2729
- readSFixed64: function() {
2730
- var e = t0(this.buf, this.pos) + B0(this.buf, this.pos + 4) * d0;
2731
- return this.pos += 8, e;
2732
- },
2733
- readFloat: function() {
2734
- var e = e0.read(this.buf, this.pos, !0, 23, 4);
2735
- return this.pos += 4, e;
2736
- },
2737
- readDouble: function() {
2738
- var e = e0.read(this.buf, this.pos, !0, 52, 8);
2739
- return this.pos += 8, e;
2740
- },
2741
- readVarint: function(e) {
2742
- var t = this.buf, i, a;
2743
- return a = t[this.pos++], i = a & 127, a < 128 || (a = t[this.pos++], i |= (a & 127) << 7, a < 128) || (a = t[this.pos++], i |= (a & 127) << 14, a < 128) || (a = t[this.pos++], i |= (a & 127) << 21, a < 128) ? i : (a = t[this.pos], i |= (a & 15) << 28, Me(i, e, this));
2744
- },
2745
- readVarint64: function() {
2746
- return this.readVarint(!0);
2747
- },
2748
- readSVarint: function() {
2749
- var e = this.readVarint();
2750
- return e % 2 === 1 ? (e + 1) / -2 : e / 2;
2751
- },
2752
- readBoolean: function() {
2753
- return !!this.readVarint();
2754
- },
2755
- readString: function() {
2756
- var e = this.readVarint() + this.pos, t = this.pos;
2757
- return this.pos = e, e - t >= ke && z0 ? Oe(this.buf, t, e) : Re(this.buf, t, e);
2758
- },
2759
- readBytes: function() {
2760
- var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
2761
- return this.pos = e, t;
2762
- },
2763
- // verbose for performance reasons; doesn't affect gzipped size
2764
- readPackedVarint: function(e, t) {
2765
- if (this.type !== p.Bytes) return e.push(this.readVarint(t));
2766
- var i = L(this);
2767
- for (e = e || []; this.pos < i; ) e.push(this.readVarint(t));
2768
- return e;
2769
- },
2770
- readPackedSVarint: function(e) {
2771
- if (this.type !== p.Bytes) return e.push(this.readSVarint());
2772
- var t = L(this);
2773
- for (e = e || []; this.pos < t; ) e.push(this.readSVarint());
2774
- return e;
2775
- },
2776
- readPackedBoolean: function(e) {
2777
- if (this.type !== p.Bytes) return e.push(this.readBoolean());
2778
- var t = L(this);
2779
- for (e = e || []; this.pos < t; ) e.push(this.readBoolean());
2780
- return e;
2781
- },
2782
- readPackedFloat: function(e) {
2783
- if (this.type !== p.Bytes) return e.push(this.readFloat());
2784
- var t = L(this);
2785
- for (e = e || []; this.pos < t; ) e.push(this.readFloat());
2786
- return e;
2787
- },
2788
- readPackedDouble: function(e) {
2789
- if (this.type !== p.Bytes) return e.push(this.readDouble());
2790
- var t = L(this);
2791
- for (e = e || []; this.pos < t; ) e.push(this.readDouble());
2792
- return e;
2793
- },
2794
- readPackedFixed32: function(e) {
2795
- if (this.type !== p.Bytes) return e.push(this.readFixed32());
2796
- var t = L(this);
2797
- for (e = e || []; this.pos < t; ) e.push(this.readFixed32());
2798
- return e;
2799
- },
2800
- readPackedSFixed32: function(e) {
2801
- if (this.type !== p.Bytes) return e.push(this.readSFixed32());
2802
- var t = L(this);
2803
- for (e = e || []; this.pos < t; ) e.push(this.readSFixed32());
2804
- return e;
2805
- },
2806
- readPackedFixed64: function(e) {
2807
- if (this.type !== p.Bytes) return e.push(this.readFixed64());
2808
- var t = L(this);
2809
- for (e = e || []; this.pos < t; ) e.push(this.readFixed64());
2810
- return e;
2811
- },
2812
- readPackedSFixed64: function(e) {
2813
- if (this.type !== p.Bytes) return e.push(this.readSFixed64());
2814
- var t = L(this);
2815
- for (e = e || []; this.pos < t; ) e.push(this.readSFixed64());
2816
- return e;
2817
- },
2818
- skip: function(e) {
2819
- var t = e & 7;
2820
- if (t === p.Varint) for (; this.buf[this.pos++] > 127; )
2821
- ;
2822
- else if (t === p.Bytes) this.pos = this.readVarint() + this.pos;
2823
- else if (t === p.Fixed32) this.pos += 4;
2824
- else if (t === p.Fixed64) this.pos += 8;
2825
- else throw new Error("Unimplemented type: " + t);
2826
- },
2827
- // === WRITING =================================================================
2828
- writeTag: function(e, t) {
2829
- this.writeVarint(e << 3 | t);
2830
- },
2831
- realloc: function(e) {
2832
- for (var t = this.length || 16; t < this.pos + e; ) t *= 2;
2833
- if (t !== this.length) {
2834
- var i = new Uint8Array(t);
2835
- i.set(this.buf), this.buf = i, this.length = t;
2836
- }
2837
- },
2838
- finish: function() {
2839
- return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
2840
- },
2841
- writeFixed32: function(e) {
2842
- this.realloc(4), $(this.buf, e, this.pos), this.pos += 4;
2843
- },
2844
- writeSFixed32: function(e) {
2845
- this.realloc(4), $(this.buf, e, this.pos), this.pos += 4;
2846
- },
2847
- writeFixed64: function(e) {
2848
- this.realloc(8), $(this.buf, e & -1, this.pos), $(this.buf, Math.floor(e * M0), this.pos + 4), this.pos += 8;
2849
- },
2850
- writeSFixed64: function(e) {
2851
- this.realloc(8), $(this.buf, e & -1, this.pos), $(this.buf, Math.floor(e * M0), this.pos + 4), this.pos += 8;
2852
- },
2853
- writeVarint: function(e) {
2854
- if (e = +e || 0, e > 268435455 || e < 0) {
2855
- Le(e, this);
2856
- return;
2857
- }
2858
- 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)));
2859
- },
2860
- writeSVarint: function(e) {
2861
- this.writeVarint(e < 0 ? -e * 2 - 1 : e * 2);
2862
- },
2863
- writeBoolean: function(e) {
2864
- this.writeVarint(!!e);
2865
- },
2866
- writeString: function(e) {
2867
- e = String(e), this.realloc(e.length * 4), this.pos++;
2868
- var t = this.pos;
2869
- this.pos = Ee(this.buf, e, this.pos);
2870
- var i = this.pos - t;
2871
- i >= 128 && L0(t, i, this), this.pos = t - 1, this.writeVarint(i), this.pos += i;
2872
- },
2873
- writeFloat: function(e) {
2874
- this.realloc(4), e0.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
2875
- },
2876
- writeDouble: function(e) {
2877
- this.realloc(8), e0.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
2878
- },
2879
- writeBytes: function(e) {
2880
- var t = e.length;
2881
- this.writeVarint(t), this.realloc(t);
2882
- for (var i = 0; i < t; i++) this.buf[this.pos++] = e[i];
2883
- },
2884
- writeRawMessage: function(e, t) {
2885
- this.pos++;
2886
- var i = this.pos;
2887
- e(t, this);
2888
- var a = this.pos - i;
2889
- a >= 128 && L0(i, a, this), this.pos = i - 1, this.writeVarint(a), this.pos += a;
2890
- },
2891
- writeMessage: function(e, t, i) {
2892
- this.writeTag(e, p.Bytes), this.writeRawMessage(t, i);
2893
- },
2894
- writePackedVarint: function(e, t) {
2895
- t.length && this.writeMessage(e, Se, t);
2896
- },
2897
- writePackedSVarint: function(e, t) {
2898
- t.length && this.writeMessage(e, Ve, t);
2899
- },
2900
- writePackedBoolean: function(e, t) {
2901
- t.length && this.writeMessage(e, Ce, t);
2902
- },
2903
- writePackedFloat: function(e, t) {
2904
- t.length && this.writeMessage(e, ze, t);
2905
- },
2906
- writePackedDouble: function(e, t) {
2907
- t.length && this.writeMessage(e, Te, t);
2908
- },
2909
- writePackedFixed32: function(e, t) {
2910
- t.length && this.writeMessage(e, De, t);
2911
- },
2912
- writePackedSFixed32: function(e, t) {
2913
- t.length && this.writeMessage(e, Ne, t);
2914
- },
2915
- writePackedFixed64: function(e, t) {
2916
- t.length && this.writeMessage(e, Ue, t);
2917
- },
2918
- writePackedSFixed64: function(e, t) {
2919
- t.length && this.writeMessage(e, Ie, t);
2920
- },
2921
- writeBytesField: function(e, t) {
2922
- this.writeTag(e, p.Bytes), this.writeBytes(t);
2923
- },
2924
- writeFixed32Field: function(e, t) {
2925
- this.writeTag(e, p.Fixed32), this.writeFixed32(t);
2926
- },
2927
- writeSFixed32Field: function(e, t) {
2928
- this.writeTag(e, p.Fixed32), this.writeSFixed32(t);
2929
- },
2930
- writeFixed64Field: function(e, t) {
2931
- this.writeTag(e, p.Fixed64), this.writeFixed64(t);
2932
- },
2933
- writeSFixed64Field: function(e, t) {
2934
- this.writeTag(e, p.Fixed64), this.writeSFixed64(t);
2935
- },
2936
- writeVarintField: function(e, t) {
2937
- this.writeTag(e, p.Varint), this.writeVarint(t);
2938
- },
2939
- writeSVarintField: function(e, t) {
2940
- this.writeTag(e, p.Varint), this.writeSVarint(t);
2941
- },
2942
- writeStringField: function(e, t) {
2943
- this.writeTag(e, p.Bytes), this.writeString(t);
2944
- },
2945
- writeFloatField: function(e, t) {
2946
- this.writeTag(e, p.Fixed32), this.writeFloat(t);
2947
- },
2948
- writeDoubleField: function(e, t) {
2949
- this.writeTag(e, p.Fixed64), this.writeDouble(t);
2950
- },
2951
- writeBooleanField: function(e, t) {
2952
- this.writeVarintField(e, !!t);
2953
- }
2954
- };
2955
- function Me(e, t, i) {
2956
- var a = i.buf, n, o;
2957
- if (o = a[i.pos++], n = (o & 112) >> 4, o < 128 || (o = a[i.pos++], n |= (o & 127) << 3, o < 128) || (o = a[i.pos++], n |= (o & 127) << 10, o < 128) || (o = a[i.pos++], n |= (o & 127) << 17, o < 128) || (o = a[i.pos++], n |= (o & 127) << 24, o < 128) || (o = a[i.pos++], n |= (o & 1) << 31, o < 128)) return A(e, n, t);
2958
- throw new Error("Expected varint not more than 10 bytes");
2959
- }
2960
- function L(e) {
2961
- return e.type === p.Bytes ? e.readVarint() + e.pos : e.pos + 1;
2962
- }
2963
- function A(e, t, i) {
2964
- return i ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
2965
- }
2966
- function Le(e, t) {
2967
- var i, a;
2968
- if (e >= 0 ? (i = e % 4294967296 | 0, a = e / 4294967296 | 0) : (i = ~(-e % 4294967296), a = ~(-e / 4294967296), i ^ 4294967295 ? i = i + 1 | 0 : (i = 0, a = a + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
2969
- throw new Error("Given varint doesn't fit into 10 bytes");
2970
- t.realloc(10), Be(i, a, t), Pe(a, t);
2971
- }
2972
- function Be(e, t, i) {
2973
- i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos++] = e & 127 | 128, e >>>= 7, i.buf[i.pos] = e & 127;
2974
- }
2975
- function Pe(e, t) {
2976
- var i = (e & 7) << 4;
2977
- t.buf[t.pos++] |= i | ((e >>>= 3) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127)))));
2978
- }
2979
- function L0(e, t, i) {
2980
- var a = t <= 16383 ? 1 : t <= 2097151 ? 2 : t <= 268435455 ? 3 : Math.floor(Math.log(t) / (Math.LN2 * 7));
2981
- i.realloc(a);
2982
- for (var n = i.pos - 1; n >= e; n--) i.buf[n + a] = i.buf[n];
2983
- }
2984
- function Se(e, t) {
2985
- for (var i = 0; i < e.length; i++) t.writeVarint(e[i]);
2986
- }
2987
- function Ve(e, t) {
2988
- for (var i = 0; i < e.length; i++) t.writeSVarint(e[i]);
2989
- }
2990
- function ze(e, t) {
2991
- for (var i = 0; i < e.length; i++) t.writeFloat(e[i]);
2992
- }
2993
- function Te(e, t) {
2994
- for (var i = 0; i < e.length; i++) t.writeDouble(e[i]);
2995
- }
2996
- function Ce(e, t) {
2997
- for (var i = 0; i < e.length; i++) t.writeBoolean(e[i]);
2998
- }
2999
- function De(e, t) {
3000
- for (var i = 0; i < e.length; i++) t.writeFixed32(e[i]);
3001
- }
3002
- function Ne(e, t) {
3003
- for (var i = 0; i < e.length; i++) t.writeSFixed32(e[i]);
3004
- }
3005
- function Ue(e, t) {
3006
- for (var i = 0; i < e.length; i++) t.writeFixed64(e[i]);
3007
- }
3008
- function Ie(e, t) {
3009
- for (var i = 0; i < e.length; i++) t.writeSFixed64(e[i]);
3010
- }
3011
- function t0(e, t) {
3012
- return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + e[t + 3] * 16777216;
3013
- }
3014
- function $(e, t, i) {
3015
- e[i] = t, e[i + 1] = t >>> 8, e[i + 2] = t >>> 16, e[i + 3] = t >>> 24;
3016
- }
3017
- function B0(e, t) {
3018
- return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
3019
- }
3020
- function Re(e, t, i) {
3021
- for (var a = "", n = t; n < i; ) {
3022
- var o = e[n], s = null, c = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
3023
- if (n + c > i) break;
3024
- var f, l, r;
3025
- c === 1 ? o < 128 && (s = o) : c === 2 ? (f = e[n + 1], (f & 192) === 128 && (s = (o & 31) << 6 | f & 63, s <= 127 && (s = null))) : c === 3 ? (f = e[n + 1], l = e[n + 2], (f & 192) === 128 && (l & 192) === 128 && (s = (o & 15) << 12 | (f & 63) << 6 | l & 63, (s <= 2047 || s >= 55296 && s <= 57343) && (s = null))) : c === 4 && (f = e[n + 1], l = e[n + 2], r = e[n + 3], (f & 192) === 128 && (l & 192) === 128 && (r & 192) === 128 && (s = (o & 15) << 18 | (f & 63) << 12 | (l & 63) << 6 | r & 63, (s <= 65535 || s >= 1114112) && (s = null))), s === null ? (s = 65533, c = 1) : s > 65535 && (s -= 65536, a += String.fromCharCode(s >>> 10 & 1023 | 55296), s = 56320 | s & 1023), a += String.fromCharCode(s), n += c;
3026
- }
3027
- return a;
3028
- }
3029
- function Oe(e, t, i) {
3030
- return z0.decode(e.subarray(t, i));
3031
- }
3032
- function Ee(e, t, i) {
3033
- for (var a = 0, n, o; a < t.length; a++) {
3034
- if (n = t.charCodeAt(a), n > 55295 && n < 57344)
3035
- if (o)
3036
- if (n < 56320) {
3037
- e[i++] = 239, e[i++] = 191, e[i++] = 189, o = n;
3038
- continue;
3039
- } else
3040
- n = o - 55296 << 10 | n - 56320 | 65536, o = null;
3041
- else {
3042
- n > 56319 || a + 1 === t.length ? (e[i++] = 239, e[i++] = 191, e[i++] = 189) : o = n;
3043
- continue;
3044
- }
3045
- else o && (e[i++] = 239, e[i++] = 191, e[i++] = 189, o = null);
3046
- n < 128 ? e[i++] = n : (n < 2048 ? e[i++] = n >> 6 | 192 : (n < 65536 ? e[i++] = n >> 12 | 224 : (e[i++] = n >> 18 | 240, e[i++] = n >> 12 & 63 | 128), e[i++] = n >> 6 & 63 | 128), e[i++] = n & 63 | 128);
3047
- }
3048
- return i;
3049
- }
3050
- const Ae = /* @__PURE__ */ P0(we), u1 = (e) => {
3051
- var a, n;
3052
- if (!e || !e.data)
3053
- return {};
3054
- const t = {}, i = e.data;
3055
- if (i)
3056
- for (const o of i) {
3057
- const s = (a = o == null ? void 0 : o.event) == null ? void 0 : a.country_code, c = (n = e.meta.metric_names) == null ? void 0 : n[0];
3058
- s && (t[s] = c ? o.event[c] : 0);
3059
- }
3060
- return t;
3061
- };
3062
- function $e(e, t = 0) {
3063
- let i = null;
3064
- return (...a) => {
3065
- i && clearTimeout(i), i = setTimeout(() => e(...a), t);
3066
- };
3067
- }
3068
- const Ge = { class: "legend" }, qe = {
3069
- key: 0,
3070
- class: "legend-title"
3071
- }, He = { class: "legend-text" }, Ke = /* @__PURE__ */ f0({
3072
- __name: "MapLegend",
3073
- props: {
3074
- metric: {},
3075
- title: {},
3076
- data: {}
3077
- },
3078
- setup(e) {
3079
- return (t, i) => (M(), T("div", Ge, [
3080
- t.metric ? (M(), T("div", qe, R(t.title), 1)) : W("", !0),
3081
- (M(!0), T(I0, null, R0(t.data, (a, n) => (M(), T("div", {
3082
- key: n,
3083
- class: "legend-item"
3084
- }, [
3085
- B("span", {
3086
- class: "legend-color",
3087
- style: O0({ backgroundColor: a.color })
3088
- }, null, 4),
3089
- B("span", He, R(a.range), 1)
3090
- ]))), 128))
3091
- ]));
3092
- }
3093
- }), y0 = (e, t) => {
3094
- const i = e.__vccOpts || e;
3095
- for (const [a, n] of t)
3096
- i[a] = n;
3097
- return i;
3098
- }, je = /* @__PURE__ */ y0(Ke, [["__scopeId", "data-v-5f034736"]]), We = { class: "map-tooltip" }, Ze = { class: "map-tooltip-text" }, Je = { key: 0 }, Xe = /* @__PURE__ */ f0({
3099
- __name: "MapTooltip",
3100
- props: {
3101
- data: {},
3102
- showValue: { type: Boolean },
3103
- top: {},
3104
- left: {}
3105
- },
3106
- setup(e) {
3107
- return E0((t) => ({
3108
- "55ff282a": t.left,
3109
- "23ce2e1e": t.top,
3110
- "011f7503": t.data.color
3111
- })), (t, i) => (M(), T("div", We, [
3112
- i[0] || (i[0] = B("div", { class: "map-tooltip-color" }, null, -1)),
3113
- B("div", Ze, [
3114
- B("div", null, R(t.data.label), 1),
3115
- t.showValue ? (M(), T("span", Je, R(t.data.value) + " " + R(t.data.unit), 1)) : W("", !0)
3116
- ])
3117
- ]));
3118
- }
3119
- }), Qe = /* @__PURE__ */ y0(Xe, [["__scopeId", "data-v-5e8af715"]]), Ye = { class: "kong-ui-public-analytics-geo-map" }, be = {
3120
- key: 0,
3121
- class: "no-location-overlay"
3122
- }, e1 = { class: "no-location-overlay-title" }, t1 = { class: "no-location-overlay-description" }, i1 = ["id"], n1 = /* @__PURE__ */ f0({
3123
- __name: "AnalyticsGeoMap",
3124
- props: {
3125
- countryMetrics: {},
3126
- metricUnit: {},
3127
- metric: {},
3128
- withLegend: { type: Boolean, default: !0 },
3129
- showTooltipValue: { type: Boolean, default: !0 },
3130
- fitToCountry: { default: () => {
3131
- } },
3132
- bounds: { default: () => {
3133
- } }
3134
- },
3135
- emits: ["boundsChange"],
3136
- setup(e, { emit: t }) {
3137
- const i = import("./countries-simple-geo-BFUDnSiE.js").then((d) => d.default), a = t, { i18n: n } = F0.useI18n(), { getColor: o, formatMetric: s, legendData: c } = F0.useMetricUtils({
3138
- countryMetrics: v0(() => e.countryMetrics),
3139
- metric: v0(() => e.metric)
3140
- }), f = j(), l = A0(), r = j(), u = j(null), h = j({ left: "0px", top: "0px" }), m = j(!1), _ = k(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), v = k(() => ({
3141
- "fill-color": [
3142
- "match",
3143
- [
3144
- "coalesce",
3145
- [
3146
- "case",
3147
- ["==", ["get", "iso_a2"], "-99"],
3148
- ["get", "iso_a2_eh"],
3149
- ["get", "iso_a2"]
3150
- ],
3151
- ["get", "ISO_A2"]
3152
- ],
3153
- ...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([d, y]) => [
3154
- d,
3155
- o(y)
3156
- ]) : [Z, Z],
3157
- Z
3158
- // default color if no match
3159
- ],
3160
- "fill-opacity": 0.7
3161
- })), o0 = k(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), C = k(() => e.metric && n.t(`metrics.${e.metric}`) || ""), X = (d) => {
3162
- const y = d.flat(1);
3163
- return Array.isArray(y[0]) && Array.isArray(y[0][0]) ? X(y) : y;
3164
- }, x0 = (d) => {
3165
- var x, g, q, O, N, H, K;
3166
- if (d === "RU") {
3167
- (x = r.value) == null || x.fitBounds([
3168
- [20, 40],
3169
- [180, 80]
3170
- ]);
3171
- return;
3172
- } else if (d === "US") {
3173
- (g = r.value) == null || g.fitBounds([
3174
- [-130, 20],
3175
- [-60, 50]
3176
- ]);
3177
- return;
3178
- } else if (d === "FR") {
3179
- (q = r.value) == null || q.fitBounds([
3180
- [-5, 42],
3181
- [9, 51]
3182
- ]);
3183
- return;
3184
- } else if (d === "NO") {
3185
- (O = r.value) == null || O.fitBounds([
3186
- [4, 57],
3187
- [32, 71]
3188
- ]);
3189
- return;
3190
- }
3191
- const y = (N = u.value) == null ? void 0 : N.features.find((w) => {
3192
- var P, S, V, U, z;
3193
- return (P = w.properties) != null && P.ISO_A2 ? ((S = w.properties) == null ? void 0 : S.ISO_A2) === d : ((V = w.properties) == null ? void 0 : V.iso_a2) === "-99" ? ((U = w.properties) == null ? void 0 : U.iso_a2_eh) === d : ((z = w.properties) == null ? void 0 : z.iso_a2) === d;
3194
- });
3195
- if (y) {
3196
- const w = (H = y.geometry) == null ? void 0 : H.coordinates;
3197
- if (!w) return;
3198
- const P = X(w), S = P.map((E) => E[1]), V = P.map((E) => E[0]), U = Math.min(...S), z = Math.max(...S), Q = Math.min(...V), Y = Math.max(...V);
3199
- (K = r.value) == null || K.fitBounds([
3200
- [Q, U],
3201
- [Y, z]
3202
- ]);
3203
- }
3204
- }, D = k(() => {
3205
- const d = {
3206
- container: l,
3207
- style: { version: 8, sources: {}, layers: [] },
3208
- attributionControl: !1,
3209
- // fit bounds for whole world minus antarctica
3210
- maxBounds: [
3211
- [-179, -75],
3212
- // -75 south tip of south america
3213
- [179, 90]
3214
- ],
3215
- cooperativeGestures: !0,
3216
- locale: {
3217
- "CooperativeGesturesHandler.WindowsHelpText": n.t("cooperative_gestures.windows_zoom_help_text"),
3218
- "CooperativeGesturesHandler.MacHelpText": n.t("cooperative_gestures.mac_zoom_help_text"),
3219
- "CooperativeGesturesHandler.MobileHelpText": n.t("cooperative_gestures.mobile_zoom_help_text")
3220
- }
3221
- };
3222
- return e.bounds && (d.bounds = e.bounds), d;
3223
- }), T0 = $e(() => {
3224
- if (!r.value) return;
3225
- const d = r.value.getBounds(), y = d.getSouthWest(), x = d.getNorthEast();
3226
- a("boundsChange", [
3227
- [y.lng, y.lat],
3228
- [x.lng, x.lat]
3229
- ]);
3230
- }, 300);
3231
- return $0(async () => {
3232
- var d, y, x;
3233
- try {
3234
- const g = await i, q = await fetch(g), O = new Uint8Array(await q.arrayBuffer()), N = Fe(new Ae(O));
3235
- u.value = N, r.value = new H0(D.value), r.value.on("load", () => {
3236
- var H, K, w, P, S, V, U;
3237
- (H = r.value) == null || H.addSource("countries", {
3238
- type: "geojson",
3239
- data: N
3240
- }), (K = r.value) == null || K.addLayer({
3241
- id: "countries-layer",
3242
- type: "fill",
3243
- source: "countries",
3244
- paint: v.value
3245
- }), (w = r.value) == null || w.addSource("lakes", {
3246
- type: "geojson",
3247
- data: ue
3248
- }), (P = r.value) == null || P.addLayer({
3249
- id: "lakes-layer",
3250
- type: "fill",
3251
- source: "lakes",
3252
- paint: {
3253
- "fill-color": "#FFFFFF"
3254
- }
3255
- }), (S = r.value) == null || S.on("mousemove", "countries-layer", (z) => {
3256
- var Y;
3257
- const Q = (Y = z.features) == null ? void 0 : Y[0];
3258
- if (Q) {
3259
- const { iso_a2: E, iso_a2_eh: C0, ISO_A2: D0, admin: N0 } = Q.properties, U0 = D0 ?? E === "-99" ? C0 : E, b = e.countryMetrics[U0];
3260
- b !== void 0 && (f.value = {
3261
- label: N0,
3262
- color: o(b),
3263
- value: s(b),
3264
- unit: n.t(`metricUnits.${e.metricUnit}`, { plural: b > 1 ? "s" : "" })
3265
- }, m.value = !0, h.value = {
3266
- left: `${z.point.x}px`,
3267
- top: `${z.point.y}px`
3268
- });
3269
- }
3270
- }), (V = r.value) == null || V.on("mouseleave", "countries-layer", () => {
3271
- m.value = !1;
3272
- }), (U = r.value) == null || U.on("move", T0), e.fitToCountry && x0(e.fitToCountry);
3273
- }), (d = r.value) == null || d.dragRotate.disable(), (y = r.value) == null || y.keyboard.disable(), (x = r.value) == null || x.touchZoomRotate.disableRotation();
3274
- } catch (g) {
3275
- console.error(g);
3276
- }
3277
- }), s0(() => e.countryMetrics, () => {
3278
- var d;
3279
- r.value && r.value.isStyleLoaded() && (r.value.getLayer("countries-layer") && r.value.removeLayer("countries-layer"), r.value.addLayer({
3280
- id: "countries-layer",
3281
- type: "fill",
3282
- source: "countries",
3283
- paint: v.value
3284
- }), r.value.removeLayer("lakes-layer"), (d = r.value) == null || d.addLayer({
3285
- id: "lakes-layer",
3286
- type: "fill",
3287
- source: "lakes",
3288
- paint: {
3289
- "fill-color": "#FFFFFF"
3290
- }
3291
- }));
3292
- }), s0(() => e.fitToCountry, (d) => {
3293
- var y, x, g;
3294
- r.value && d ? x0(d) : !D.value.center && !D.value.zoom ? (y = r.value) == null || y.fitBounds([
3295
- [-180, -90],
3296
- [180, 90]
3297
- ]) : (D.value.zoom && ((x = r.value) == null || x.setZoom(D.value.zoom)), D.value.center && ((g = r.value) == null || g.flyTo({ center: D.value.center })));
3298
- }), s0(() => e.bounds, (d, y) => {
3299
- if (!d) return;
3300
- const x = d == null ? void 0 : d.flat(), g = y == null ? void 0 : y.flat();
3301
- !(x && g && x.length === g.length && x.every((O, N) => Math.round(O * 100) / 100 === Math.round(g[N] * 100) / 100)) && r.value && r.value.fitBounds(d);
3302
- }), (d, y) => (M(), T("div", Ye, [
3303
- _.value ? (M(), T("div", be, [
3304
- l0(d.$slots, "no-location-icon", {}, () => [
3305
- G0(I(W0), {
3306
- color: I(ne),
3307
- size: I(ae)
3308
- }, null, 8, ["color", "size"])
3309
- ], !0),
3310
- B("div", e1, [
3311
- l0(d.$slots, "no-location-title", {}, () => [
3312
- q0(R(I(n).t("no_location_data")), 1)
3313
- ], !0)
3314
- ]),
3315
- B("div", t1, [
3316
- l0(d.$slots, "no-location-description", {}, () => [
3317
- B("p", null, R(I(n).t("no_location_data_description")), 1)
3318
- ], !0)
3319
- ])
3320
- ])) : W("", !0),
3321
- B("div", {
3322
- id: I(l),
3323
- class: "analytics-geo-map-container"
3324
- }, null, 8, i1),
3325
- o0.value ? (M(), g0(je, {
3326
- key: 1,
3327
- class: "legend-container",
3328
- data: I(c),
3329
- metric: d.metric,
3330
- title: C.value
3331
- }, null, 8, ["data", "metric", "title"])) : W("", !0),
3332
- m.value && f.value ? (M(), g0(Qe, {
3333
- key: 2,
3334
- data: f.value,
3335
- left: h.value.left,
3336
- "show-value": d.showTooltipValue,
3337
- top: h.value.top
3338
- }, null, 8, ["data", "left", "show-value", "top"])) : W("", !0)
3339
- ]));
3340
- }
3341
- }), c1 = /* @__PURE__ */ y0(n1, [["__scopeId", "data-v-f8b9de28"]]);
3342
- export {
3343
- c1 as AnalyticsGeoMap,
3344
- $e as debounce,
3345
- u1 as exploreResultToCountryMetrics
3346
- };