@maptiler/sdk 3.10.2-rc.1 → 3.10.2-rc.2

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.
@@ -4,134 +4,134 @@ var Pn = (r) => {
4
4
  };
5
5
  var yi = (r, e, t) => e in r ? mi(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
6
  var g = (r, e, t) => yi(r, typeof e != "symbol" ? e + "" : e, t), gr = (r, e, t) => e.has(r) || Pn("Cannot " + t);
7
- var k = (r, e, t) => (gr(r, e, "read from private field"), t ? t.call(r) : e.get(r)), Y = (r, e, t) => e.has(r) ? Pn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), W = (r, e, t, n) => (gr(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), J = (r, e, t) => (gr(r, e, "access private method"), t);
8
- import L from "maplibre-gl";
7
+ var L = (r, e, t) => (gr(r, e, "read from private field"), t ? t.call(r) : e.get(r)), Y = (r, e, t) => e.has(r) ? Pn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), J = (r, e, t, n) => (gr(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), Q = (r, e, t) => (gr(r, e, "access private method"), t);
8
+ import k from "maplibre-gl";
9
9
  import { Base64 as gi } from "js-base64";
10
10
  import vi from "events";
11
11
  import { Language as bi, getLanguageInfoFromCode as Rn, config as vr, MapStyle as ft, mapStylePresetList as br, expandMapStyle as wi, MapStyleVariant as Si, ReferenceMapStyle as xi, toLanguageInfo as zn, getLanguageInfoFromFlag as ki, geolocation as On } from "@maptiler/client";
12
- import { MapStyle as wf, MapStyleVariant as Sf, ReferenceMapStyle as xf, ServiceError as kf, areSameLanguages as Lf, bufferToPixelDataBrowser as Cf, canParsePixelData as Ef, circumferenceAtLatitude as Af, coordinates as Tf, data as _f, elevation as If, expandMapStyle as Mf, geocoding as Pf, geolocation as Rf, getAutoLanguage as zf, getBufferToPixelDataParser as Of, getLanguageInfoFromCode as Ff, getLanguageInfoFromFlag as $f, getLanguageInfoFromKey as Nf, getTileCache as jf, isLanguageInfo as Df, mapStylePresetList as Uf, math as Bf, misc as qf, staticMaps as Vf, styleToStyle as Gf, toLanguageInfo as Hf } from "@maptiler/client";
12
+ import { MapStyle as Sf, MapStyleVariant as xf, ReferenceMapStyle as kf, ServiceError as Lf, areSameLanguages as Cf, bufferToPixelDataBrowser as Ef, canParsePixelData as Af, circumferenceAtLatitude as Tf, coordinates as _f, data as If, elevation as Mf, expandMapStyle as Pf, geocoding as Rf, geolocation as zf, getAutoLanguage as Of, getBufferToPixelDataParser as Ff, getLanguageInfoFromCode as $f, getLanguageInfoFromFlag as Nf, getLanguageInfoFromKey as jf, getTileCache as Df, isLanguageInfo as Uf, mapStylePresetList as Bf, math as qf, misc as Vf, staticMaps as Gf, styleToStyle as Hf, toLanguageInfo as Zf } from "@maptiler/client";
13
13
  import { v4 as Li } from "uuid";
14
- let Ci = class extends L.Marker {
14
+ let Ci = class extends k.Marker {
15
15
  addTo(e) {
16
16
  return super.addTo(e);
17
17
  }
18
18
  };
19
- class Wc extends L.Popup {
19
+ class Jc extends k.Popup {
20
20
  addTo(e) {
21
21
  return super.addTo(e);
22
22
  }
23
23
  }
24
- class Jc extends L.Style {
24
+ class Qc extends k.Style {
25
25
  constructor(e, t = {}) {
26
26
  super(e, t);
27
27
  }
28
28
  }
29
- class Qc extends L.CanvasSource {
29
+ class ep extends k.CanvasSource {
30
30
  onAdd(e) {
31
31
  super.onAdd(e);
32
32
  }
33
33
  }
34
- class ep extends L.GeoJSONSource {
34
+ class tp extends k.GeoJSONSource {
35
35
  onAdd(e) {
36
36
  super.onAdd(e);
37
37
  }
38
38
  }
39
- class tp extends L.ImageSource {
39
+ class rp extends k.ImageSource {
40
40
  onAdd(e) {
41
41
  super.onAdd(e);
42
42
  }
43
43
  }
44
- class rp extends L.RasterTileSource {
44
+ class np extends k.RasterTileSource {
45
45
  onAdd(e) {
46
46
  super.onAdd(e);
47
47
  }
48
48
  }
49
- class np extends L.RasterDEMTileSource {
49
+ class ap extends k.RasterDEMTileSource {
50
50
  onAdd(e) {
51
51
  super.onAdd(e);
52
52
  }
53
53
  }
54
- class ap extends L.VectorTileSource {
54
+ class op extends k.VectorTileSource {
55
55
  onAdd(e) {
56
56
  super.onAdd(e);
57
57
  }
58
58
  }
59
- class op extends L.VideoSource {
59
+ class ip extends k.VideoSource {
60
60
  onAdd(e) {
61
61
  super.onAdd(e);
62
62
  }
63
63
  }
64
- class Na extends L.NavigationControl {
64
+ class Na extends k.NavigationControl {
65
65
  onAdd(e) {
66
66
  return super.onAdd(e);
67
67
  }
68
68
  }
69
- class Ei extends L.GeolocateControl {
69
+ class Ei extends k.GeolocateControl {
70
70
  onAdd(e) {
71
71
  return super.onAdd(e);
72
72
  }
73
73
  }
74
- class ip extends L.AttributionControl {
74
+ class sp extends k.AttributionControl {
75
75
  onAdd(e) {
76
76
  return super.onAdd(e);
77
77
  }
78
78
  }
79
- class Ai extends L.LogoControl {
79
+ class Ai extends k.LogoControl {
80
80
  onAdd(e) {
81
81
  return super.onAdd(e);
82
82
  }
83
83
  }
84
- class Ti extends L.ScaleControl {
84
+ class Ti extends k.ScaleControl {
85
85
  onAdd(e) {
86
86
  return super.onAdd(e);
87
87
  }
88
88
  }
89
- class _i extends L.FullscreenControl {
89
+ class _i extends k.FullscreenControl {
90
90
  onAdd(e) {
91
91
  return super.onAdd(e);
92
92
  }
93
93
  }
94
- class sp extends L.TerrainControl {
94
+ class lp extends k.TerrainControl {
95
95
  onAdd(e) {
96
96
  return super.onAdd(e);
97
97
  }
98
98
  }
99
- class lp extends L.BoxZoomHandler {
99
+ class up extends k.BoxZoomHandler {
100
100
  constructor(e, t) {
101
101
  super(e, t);
102
102
  }
103
103
  }
104
- class up extends L.ScrollZoomHandler {
104
+ class cp extends k.ScrollZoomHandler {
105
105
  constructor(e, t) {
106
106
  super(e, t);
107
107
  }
108
108
  }
109
- class cp extends L.CooperativeGesturesHandler {
109
+ class pp extends k.CooperativeGesturesHandler {
110
110
  constructor(e, t) {
111
111
  super(e, t);
112
112
  }
113
113
  }
114
- class pp extends L.KeyboardHandler {
114
+ class fp extends k.KeyboardHandler {
115
115
  constructor(e) {
116
116
  super(e);
117
117
  }
118
118
  }
119
- class fp extends L.TwoFingersTouchPitchHandler {
119
+ class dp extends k.TwoFingersTouchPitchHandler {
120
120
  constructor(e) {
121
121
  super(e);
122
122
  }
123
123
  }
124
- class dp extends L.MapWheelEvent {
124
+ class hp extends k.MapWheelEvent {
125
125
  constructor(e, t, n) {
126
126
  super(e, t, n);
127
127
  }
128
128
  }
129
- class hp extends L.MapTouchEvent {
129
+ class mp extends k.MapTouchEvent {
130
130
  constructor(e, t, n) {
131
131
  super(e, t, n);
132
132
  }
133
133
  }
134
- class mp extends L.MapMouseEvent {
134
+ class yp extends k.MapMouseEvent {
135
135
  constructor(e, t, n, a = {}) {
136
136
  super(e, t, n, a);
137
137
  }
@@ -192,7 +192,7 @@ function Fn() {
192
192
  }
193
193
  return Array.from(new Set(navigator.languages.map((e) => e.split("-")[0]))).map((e) => Rn(e)).filter((e) => e)[0] ?? z.LOCAL;
194
194
  }
195
- const te = {
195
+ const W = {
196
196
  maptilerLogoURL: "https://api.maptiler.com/resources/logo.svg",
197
197
  maptilerURL: "https://www.maptiler.com/",
198
198
  maptilerApiHost: "api.maptiler.com",
@@ -203,7 +203,7 @@ const te = {
203
203
  terrainSourceURL: "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json",
204
204
  terrainSourceId: "maptiler-terrain"
205
205
  };
206
- Object.freeze(te);
206
+ Object.freeze(W);
207
207
  const on = Li();
208
208
  class Ii extends vi {
209
209
  constructor() {
@@ -211,7 +211,7 @@ class Ii extends vi {
211
211
  /**
212
212
  * The primary language. By default, the language of the web browser is used.
213
213
  */
214
- g(this, "primaryLanguage", te.primaryLanguage);
214
+ g(this, "primaryLanguage", W.primaryLanguage);
215
215
  /**
216
216
  * The secondary language, to overwrite the default language defined in the map style.
217
217
  * This settings is highly dependant on the style compatibility and may not work in most cases.
@@ -301,7 +301,7 @@ class $n extends Ai {
301
301
  super(t);
302
302
  g(this, "logoURL", "");
303
303
  g(this, "linkURL", "");
304
- this.logoURL = t.logoURL ?? te.maptilerLogoURL, this.linkURL = t.linkURL ?? te.maptilerURL;
304
+ this.logoURL = t.logoURL ?? W.maptilerLogoURL, this.linkURL = t.linkURL ?? W.maptilerURL;
305
305
  }
306
306
  onAdd(t) {
307
307
  this._map = t, this._compact = this.options.compact ?? !1, this._container = window.document.createElement("div"), this._container.className = "maplibregl-ctrl";
@@ -309,9 +309,9 @@ class $n extends Ai {
309
309
  return n.style.backgroundRepeat = "no-repeat", n.style.cursor = "pointer", n.style.display = "block", n.style.height = "23px", n.style.margin = "0 0 -4px -4px", n.style.overflow = "hidden", n.style.width = "88px", n.style.backgroundImage = `url(${this.logoURL})`, n.style.backgroundSize = "100px 30px", n.style.width = "100px", n.style.height = "30px", n.target = "_blank", n.rel = "noopener", n.href = this.linkURL, n.setAttribute("aria-label", "MapTiler logo"), n.setAttribute("rel", "noopener"), this._container.appendChild(n), this._container.style.display = "block", this._map.on("resize", this._updateCompact), this._updateCompact(), this._container;
310
310
  }
311
311
  }
312
- const $r = "localcache_source", Nr = "localcache", Mi = "maptiler_sdk", Pi = 1e3, Ri = 100, jr = typeof caches < "u", { addProtocol: Nn } = L;
312
+ const $r = "localcache_source", Nr = "localcache", Mi = "maptiler_sdk", Pi = 1e3, Ri = 100, jr = typeof caches < "u", { addProtocol: Nn } = k;
313
313
  function zi(r, e) {
314
- if (jr && j.caching && j.session && r.host === te.maptilerApiHost) {
314
+ if (jr && j.caching && j.session && r.host === W.maptilerApiHost) {
315
315
  if (e === "Source" && r.href.includes("tiles.json"))
316
316
  return r.href.replace("https://", `${$r}://`);
317
317
  if (e === "Tile" || e === "Glyphs")
@@ -365,7 +365,17 @@ function Fi() {
365
365
  }), ++jn > Ri && (Oi(), jn = 0)), s(p);
366
366
  });
367
367
  }
368
- function $i(r, e) {
368
+ async function $i(r) {
369
+ if (typeof window > "u") return;
370
+ const e = k.getRTLTextPluginStatus();
371
+ if (e === "unavailable" || e === "requested")
372
+ try {
373
+ await k.setRTLTextPlugin(r ?? W.rtlPluginURL, !0);
374
+ } catch (t) {
375
+ console.error("Error enabling RTL plugin. It is enabled by default and cannot be unset after. Are you attempting to enable it twice?", t);
376
+ }
377
+ }
378
+ function Ni(r, e) {
369
379
  for (const t of r)
370
380
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
371
381
  }
@@ -378,7 +388,7 @@ function Dn(r, e) {
378
388
  url: r
379
389
  };
380
390
  }
381
- return t.host === te.maptilerApiHost && (t.searchParams.has("key") || t.searchParams.append("key", j.apiKey), j.session && t.searchParams.append("mtsid", on)), {
391
+ return t.host === W.maptilerApiHost && (t.searchParams.has("key") || t.searchParams.append("key", j.apiKey), j.session && t.searchParams.append("mtsid", on)), {
382
392
  url: zi(t, e)
383
393
  };
384
394
  }
@@ -400,18 +410,18 @@ function Da() {
400
410
  function Qt(r) {
401
411
  return /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(r);
402
412
  }
403
- function Ni(r) {
413
+ function ji(r) {
404
414
  try {
405
415
  return JSON.parse(r);
406
416
  } catch {
407
417
  }
408
418
  return null;
409
419
  }
410
- function ji() {
420
+ function Di() {
411
421
  return document.createElement("canvas").getContext("webgl2") ? null : typeof WebGL2RenderingContext < "u" ? "Graphic rendering with WebGL2 has been disabled or is not supported by your graphic card. The map cannot be displayed." : "Your browser does not support graphic rendering with WebGL2. The map cannot be displayed.";
412
422
  }
413
- function Di(r) {
414
- const e = ji();
423
+ function Ui(r) {
424
+ const e = Di();
415
425
  if (!e) return;
416
426
  let t = null;
417
427
  if (typeof r == "string" ? t = document.getElementById(r) : r instanceof HTMLElement && (t = r), !t)
@@ -419,14 +429,14 @@ function Di(r) {
419
429
  const n = document.createElement("div");
420
430
  throw n.innerHTML = e, n.classList.add("webgl-warning-div"), t.appendChild(n), new Error(e);
421
431
  }
422
- function yp(r) {
432
+ function gp(r) {
423
433
  const e = "The WebGL context was lost.", t = r.getContainer(), n = document.createElement("div");
424
434
  n.innerHTML = e, n.classList.add("webgl-warning-div"), t.appendChild(n);
425
435
  }
426
436
  function Bn(r, e) {
427
437
  return !(!Array.isArray(r) || r.length !== 2 || r[0] !== "get" || typeof r[1] != "string" || e && !r[1].startsWith("name:") || !e && r[1] !== "name");
428
438
  }
429
- function Ui(r, e, t) {
439
+ function Bi(r, e, t) {
430
440
  const n = structuredClone(r), a = (o) => {
431
441
  if (typeof o != "string")
432
442
  for (let i = 0; i < o.length; i += 1)
@@ -434,18 +444,18 @@ function Ui(r, e, t) {
434
444
  };
435
445
  return Bn(n, t) ? e : (a(n), n);
436
446
  }
437
- function Bi(r, e) {
447
+ function qi(r, e) {
438
448
  const t = e ? /\{name:\S+\}/ : /\{name\}/;
439
449
  return {
440
450
  contains: t.test(r),
441
451
  exactMatch: new RegExp(`^${t.source}$`).test(r)
442
452
  };
443
453
  }
444
- function qi(r, e, t) {
454
+ function Vi(r, e, t) {
445
455
  const n = t ? /\{name:\S+\}/ : /\{name\}/, a = r.split(n);
446
456
  return ["concat", ...a.flatMap((s, l) => l === a.length - 1 ? [s] : [s, e])];
447
457
  }
448
- function Vi(r) {
458
+ function Gi(r) {
449
459
  var n;
450
460
  const e = /\{name(?::(?<language>\S+))?\}/g, t = [];
451
461
  for (; ; ) {
@@ -456,7 +466,7 @@ function Vi(r) {
456
466
  }
457
467
  return t;
458
468
  }
459
- function Gi(r) {
469
+ function Hi(r) {
460
470
  return !Array.isArray(r) || r.length !== 2 || r[0] !== "get" || typeof r[1] != "string" ? null : r[1].trim() === "name" ? {
461
471
  isLanguage: !0,
462
472
  localization: null
@@ -465,17 +475,17 @@ function Gi(r) {
465
475
  localization: r[1].trim().split(":").pop()
466
476
  } : null;
467
477
  }
468
- function Hi(r) {
478
+ function Zi(r) {
469
479
  const e = [], t = structuredClone(r), n = (a) => {
470
480
  if (typeof a != "string")
471
481
  for (let o = 0; o < a.length; o += 1) {
472
- const i = Gi(a[o]);
482
+ const i = Hi(a[o]);
473
483
  i ? e.push(i.localization) : n(a[o]);
474
484
  }
475
485
  };
476
486
  return n([t]), e;
477
487
  }
478
- function Zi(r, e) {
488
+ function Ki(r, e) {
479
489
  const t = [];
480
490
  for (const o of r) {
481
491
  if (o.type !== "symbol")
@@ -486,10 +496,10 @@ function Zi(r, e) {
486
496
  const u = e.getLayoutProperty(s, "text-field");
487
497
  if (u)
488
498
  if (typeof u == "string") {
489
- const c = Vi(u);
499
+ const c = Gi(u);
490
500
  t.push(c);
491
501
  } else {
492
- const c = Hi(u);
502
+ const c = Zi(u);
493
503
  t.push(c);
494
504
  }
495
505
  }
@@ -501,7 +511,7 @@ function Zi(r, e) {
501
511
  o === null ? a.unlocalized += 1 : (o in a.localized || (a.localized[o] = 0), a.localized[o] += 1);
502
512
  return a;
503
513
  }
504
- var Ki = 8, Xi = {
514
+ var Xi = 8, Yi = {
505
515
  version: {
506
516
  required: !0,
507
517
  type: "enum",
@@ -579,18 +589,18 @@ var Ki = 8, Xi = {
579
589
  type: "array",
580
590
  value: "layer"
581
591
  }
582
- }, Yi = {
592
+ }, Wi = {
583
593
  "*": {
584
594
  type: "source"
585
595
  }
586
- }, Wi = [
596
+ }, Ji = [
587
597
  "source_vector",
588
598
  "source_raster",
589
599
  "source_raster_dem",
590
600
  "source_geojson",
591
601
  "source_video",
592
602
  "source_image"
593
- ], Ji = {
603
+ ], Qi = {
594
604
  type: {
595
605
  required: !0,
596
606
  type: "enum",
@@ -653,7 +663,7 @@ var Ki = 8, Xi = {
653
663
  "*": {
654
664
  type: "*"
655
665
  }
656
- }, Qi = {
666
+ }, es = {
657
667
  type: {
658
668
  required: !0,
659
669
  type: "enum",
@@ -710,7 +720,7 @@ var Ki = 8, Xi = {
710
720
  "*": {
711
721
  type: "*"
712
722
  }
713
- }, es = {
723
+ }, ts = {
714
724
  type: {
715
725
  required: !0,
716
726
  type: "enum",
@@ -784,7 +794,7 @@ var Ki = 8, Xi = {
784
794
  "*": {
785
795
  type: "*"
786
796
  }
787
- }, ts = {
797
+ }, rs = {
788
798
  type: {
789
799
  required: !0,
790
800
  type: "enum",
@@ -845,7 +855,7 @@ var Ki = 8, Xi = {
845
855
  promoteId: {
846
856
  type: "promoteId"
847
857
  }
848
- }, rs = {
858
+ }, ns = {
849
859
  type: {
850
860
  required: !0,
851
861
  type: "enum",
@@ -868,7 +878,7 @@ var Ki = 8, Xi = {
868
878
  value: "number"
869
879
  }
870
880
  }
871
- }, ns = {
881
+ }, as = {
872
882
  type: {
873
883
  required: !0,
874
884
  type: "enum",
@@ -890,7 +900,7 @@ var Ki = 8, Xi = {
890
900
  value: "number"
891
901
  }
892
902
  }
893
- }, as = {
903
+ }, os = {
894
904
  id: {
895
905
  type: "string",
896
906
  required: !0
@@ -939,7 +949,7 @@ var Ki = 8, Xi = {
939
949
  paint: {
940
950
  type: "paint"
941
951
  }
942
- }, os = [
952
+ }, is = [
943
953
  "layout_fill",
944
954
  "layout_line",
945
955
  "layout_circle",
@@ -950,7 +960,7 @@ var Ki = 8, Xi = {
950
960
  "layout_hillshade",
951
961
  "layout_color-relief",
952
962
  "layout_background"
953
- ], is = {
963
+ ], ss = {
954
964
  visibility: {
955
965
  type: "enum",
956
966
  values: {
@@ -960,7 +970,7 @@ var Ki = 8, Xi = {
960
970
  default: "visible",
961
971
  "property-type": "constant"
962
972
  }
963
- }, ss = {
973
+ }, ls = {
964
974
  "fill-sort-key": {
965
975
  type: "number",
966
976
  expression: {
@@ -981,7 +991,7 @@ var Ki = 8, Xi = {
981
991
  default: "visible",
982
992
  "property-type": "constant"
983
993
  }
984
- }, ls = {
994
+ }, us = {
985
995
  "circle-sort-key": {
986
996
  type: "number",
987
997
  expression: {
@@ -1002,7 +1012,7 @@ var Ki = 8, Xi = {
1002
1012
  default: "visible",
1003
1013
  "property-type": "constant"
1004
1014
  }
1005
- }, us = {
1015
+ }, cs = {
1006
1016
  visibility: {
1007
1017
  type: "enum",
1008
1018
  values: {
@@ -1012,7 +1022,7 @@ var Ki = 8, Xi = {
1012
1022
  default: "visible",
1013
1023
  "property-type": "constant"
1014
1024
  }
1015
- }, cs = {
1025
+ }, ps = {
1016
1026
  "line-cap": {
1017
1027
  type: "enum",
1018
1028
  values: {
@@ -1098,7 +1108,7 @@ var Ki = 8, Xi = {
1098
1108
  default: "visible",
1099
1109
  "property-type": "constant"
1100
1110
  }
1101
- }, ps = {
1111
+ }, fs = {
1102
1112
  "symbol-placement": {
1103
1113
  type: "enum",
1104
1114
  values: {
@@ -1925,7 +1935,7 @@ var Ki = 8, Xi = {
1925
1935
  default: "visible",
1926
1936
  "property-type": "constant"
1927
1937
  }
1928
- }, fs = {
1938
+ }, ds = {
1929
1939
  visibility: {
1930
1940
  type: "enum",
1931
1941
  values: {
@@ -1935,7 +1945,7 @@ var Ki = 8, Xi = {
1935
1945
  default: "visible",
1936
1946
  "property-type": "constant"
1937
1947
  }
1938
- }, ds = {
1948
+ }, hs = {
1939
1949
  visibility: {
1940
1950
  type: "enum",
1941
1951
  values: {
@@ -1945,10 +1955,10 @@ var Ki = 8, Xi = {
1945
1955
  default: "visible",
1946
1956
  "property-type": "constant"
1947
1957
  }
1948
- }, hs = {
1958
+ }, ms = {
1949
1959
  type: "array",
1950
1960
  value: "*"
1951
- }, ms = {
1961
+ }, ys = {
1952
1962
  type: "enum",
1953
1963
  values: {
1954
1964
  "==": {},
@@ -1965,14 +1975,14 @@ var Ki = 8, Xi = {
1965
1975
  has: {},
1966
1976
  "!has": {}
1967
1977
  }
1968
- }, ys = {
1978
+ }, gs = {
1969
1979
  type: "enum",
1970
1980
  values: {
1971
1981
  Point: {},
1972
1982
  LineString: {},
1973
1983
  Polygon: {}
1974
1984
  }
1975
- }, gs = {
1985
+ }, vs = {
1976
1986
  type: "array",
1977
1987
  minimum: 0,
1978
1988
  maximum: 24,
@@ -1981,11 +1991,11 @@ var Ki = 8, Xi = {
1981
1991
  "color"
1982
1992
  ],
1983
1993
  length: 2
1984
- }, vs = {
1994
+ }, bs = {
1985
1995
  type: "array",
1986
1996
  value: "*",
1987
1997
  minimum: 1
1988
- }, bs = {
1998
+ }, ws = {
1989
1999
  anchor: {
1990
2000
  type: "enum",
1991
2001
  default: "viewport",
@@ -2046,7 +2056,7 @@ var Ki = 8, Xi = {
2046
2056
  },
2047
2057
  transition: !0
2048
2058
  }
2049
- }, ws = {
2059
+ }, Ss = {
2050
2060
  "sky-color": {
2051
2061
  type: "color",
2052
2062
  "property-type": "data-constant",
@@ -2139,7 +2149,7 @@ var Ki = 8, Xi = {
2139
2149
  },
2140
2150
  transition: !0
2141
2151
  }
2142
- }, Ss = {
2152
+ }, xs = {
2143
2153
  source: {
2144
2154
  type: "string",
2145
2155
  required: !0
@@ -2149,7 +2159,7 @@ var Ki = 8, Xi = {
2149
2159
  minimum: 0,
2150
2160
  default: 1
2151
2161
  }
2152
- }, xs = {
2162
+ }, ks = {
2153
2163
  type: {
2154
2164
  type: "projectionDefinition",
2155
2165
  default: "mercator",
@@ -2162,7 +2172,7 @@ var Ki = 8, Xi = {
2162
2172
  ]
2163
2173
  }
2164
2174
  }
2165
- }, ks = [
2175
+ }, Ls = [
2166
2176
  "paint_fill",
2167
2177
  "paint_line",
2168
2178
  "paint_circle",
@@ -2173,7 +2183,7 @@ var Ki = 8, Xi = {
2173
2183
  "paint_hillshade",
2174
2184
  "paint_color-relief",
2175
2185
  "paint_background"
2176
- ], Ls = {
2186
+ ], Cs = {
2177
2187
  "fill-antialias": {
2178
2188
  type: "boolean",
2179
2189
  default: !0,
@@ -2289,7 +2299,7 @@ var Ki = 8, Xi = {
2289
2299
  },
2290
2300
  "property-type": "cross-faded-data-driven"
2291
2301
  }
2292
- }, Cs = {
2302
+ }, Es = {
2293
2303
  "line-opacity": {
2294
2304
  type: "number",
2295
2305
  default: 1,
@@ -2481,7 +2491,7 @@ var Ki = 8, Xi = {
2481
2491
  },
2482
2492
  "property-type": "color-ramp"
2483
2493
  }
2484
- }, Es = {
2494
+ }, As = {
2485
2495
  "circle-radius": {
2486
2496
  type: "number",
2487
2497
  default: 5,
@@ -2654,7 +2664,7 @@ var Ki = 8, Xi = {
2654
2664
  },
2655
2665
  "property-type": "data-driven"
2656
2666
  }
2657
- }, As = {
2667
+ }, Ts = {
2658
2668
  "heatmap-radius": {
2659
2669
  type: "number",
2660
2670
  default: 30,
@@ -2745,7 +2755,7 @@ var Ki = 8, Xi = {
2745
2755
  },
2746
2756
  "property-type": "data-constant"
2747
2757
  }
2748
- }, Ts = {
2758
+ }, _s = {
2749
2759
  "icon-opacity": {
2750
2760
  type: "number",
2751
2761
  default: 1,
@@ -3009,7 +3019,7 @@ var Ki = 8, Xi = {
3009
3019
  },
3010
3020
  "property-type": "data-constant"
3011
3021
  }
3012
- }, _s = {
3022
+ }, Is = {
3013
3023
  "raster-opacity": {
3014
3024
  type: "number",
3015
3025
  default: 1,
@@ -3123,7 +3133,7 @@ var Ki = 8, Xi = {
3123
3133
  },
3124
3134
  "property-type": "data-constant"
3125
3135
  }
3126
- }, Is = {
3136
+ }, Ms = {
3127
3137
  "hillshade-illumination-direction": {
3128
3138
  type: "numberArray",
3129
3139
  default: 335,
@@ -3235,7 +3245,7 @@ var Ki = 8, Xi = {
3235
3245
  },
3236
3246
  "property-type": "data-constant"
3237
3247
  }
3238
- }, Ms = {
3248
+ }, Ps = {
3239
3249
  "background-color": {
3240
3250
  type: "color",
3241
3251
  default: "#000000",
@@ -3278,7 +3288,7 @@ var Ki = 8, Xi = {
3278
3288
  },
3279
3289
  "property-type": "data-constant"
3280
3290
  }
3281
- }, Ps = {
3291
+ }, Rs = {
3282
3292
  duration: {
3283
3293
  type: "number",
3284
3294
  default: 300,
@@ -3291,27 +3301,27 @@ var Ki = 8, Xi = {
3291
3301
  minimum: 0,
3292
3302
  units: "milliseconds"
3293
3303
  }
3294
- }, Rs = {
3304
+ }, zs = {
3295
3305
  "*": {
3296
3306
  type: "string"
3297
3307
  }
3298
- }, zs = {
3299
- $version: Ki,
3300
- $root: Xi,
3301
- sources: Yi,
3302
- source: Wi,
3303
- source_vector: Ji,
3304
- source_raster: Qi,
3305
- source_raster_dem: es,
3306
- source_geojson: ts,
3307
- source_video: rs,
3308
- source_image: ns,
3309
- layer: as,
3310
- layout: os,
3311
- layout_background: is,
3312
- layout_fill: ss,
3313
- layout_circle: ls,
3314
- layout_heatmap: us,
3308
+ }, Os = {
3309
+ $version: Xi,
3310
+ $root: Yi,
3311
+ sources: Wi,
3312
+ source: Ji,
3313
+ source_vector: Qi,
3314
+ source_raster: es,
3315
+ source_raster_dem: ts,
3316
+ source_geojson: rs,
3317
+ source_video: ns,
3318
+ source_image: as,
3319
+ layer: os,
3320
+ layout: is,
3321
+ layout_background: ss,
3322
+ layout_fill: ls,
3323
+ layout_circle: us,
3324
+ layout_heatmap: cs,
3315
3325
  "layout_fill-extrusion": {
3316
3326
  visibility: {
3317
3327
  type: "enum",
@@ -3323,10 +3333,10 @@ var Ki = 8, Xi = {
3323
3333
  "property-type": "constant"
3324
3334
  }
3325
3335
  },
3326
- layout_line: cs,
3327
- layout_symbol: ps,
3328
- layout_raster: fs,
3329
- layout_hillshade: ds,
3336
+ layout_line: ps,
3337
+ layout_symbol: fs,
3338
+ layout_raster: ds,
3339
+ layout_hillshade: hs,
3330
3340
  "layout_color-relief": {
3331
3341
  visibility: {
3332
3342
  type: "enum",
@@ -3338,9 +3348,9 @@ var Ki = 8, Xi = {
3338
3348
  "property-type": "constant"
3339
3349
  }
3340
3350
  },
3341
- filter: hs,
3342
- filter_operator: ms,
3343
- geometry_type: ys,
3351
+ filter: ms,
3352
+ filter_operator: ys,
3353
+ geometry_type: gs,
3344
3354
  function: {
3345
3355
  expression: {
3346
3356
  type: "expression"
@@ -3382,14 +3392,14 @@ var Ki = 8, Xi = {
3382
3392
  required: !1
3383
3393
  }
3384
3394
  },
3385
- function_stop: gs,
3386
- expression: vs,
3387
- light: bs,
3388
- sky: ws,
3389
- terrain: Ss,
3390
- projection: xs,
3391
- paint: ks,
3392
- paint_fill: Ls,
3395
+ function_stop: vs,
3396
+ expression: bs,
3397
+ light: ws,
3398
+ sky: Ss,
3399
+ terrain: xs,
3400
+ projection: ks,
3401
+ paint: Ls,
3402
+ paint_fill: Cs,
3393
3403
  "paint_fill-extrusion": {
3394
3404
  "fill-extrusion-opacity": {
3395
3405
  type: "number",
@@ -3520,12 +3530,12 @@ var Ki = 8, Xi = {
3520
3530
  "property-type": "data-constant"
3521
3531
  }
3522
3532
  },
3523
- paint_line: Cs,
3524
- paint_circle: Es,
3525
- paint_heatmap: As,
3526
- paint_symbol: Ts,
3527
- paint_raster: _s,
3528
- paint_hillshade: Is,
3533
+ paint_line: Es,
3534
+ paint_circle: As,
3535
+ paint_heatmap: Ts,
3536
+ paint_symbol: _s,
3537
+ paint_raster: Is,
3538
+ paint_hillshade: Ms,
3529
3539
  "paint_color-relief": {
3530
3540
  "color-relief-opacity": {
3531
3541
  type: "number",
@@ -3553,8 +3563,8 @@ var Ki = 8, Xi = {
3553
3563
  "property-type": "color-ramp"
3554
3564
  }
3555
3565
  },
3556
- paint_background: Ms,
3557
- transition: Ps,
3566
+ paint_background: Ps,
3567
+ transition: Rs,
3558
3568
  "property-type": {
3559
3569
  "data-driven": {
3560
3570
  type: "property-type"
@@ -3575,7 +3585,7 @@ var Ki = 8, Xi = {
3575
3585
  type: "property-type"
3576
3586
  }
3577
3587
  },
3578
- promoteId: Rs
3588
+ promoteId: zs
3579
3589
  };
3580
3590
  class w {
3581
3591
  constructor(e, t, n, a) {
@@ -3613,7 +3623,7 @@ class sn {
3613
3623
  return this.bindings[e] ? !0 : this.parent ? this.parent.has(e) : !1;
3614
3624
  }
3615
3625
  }
3616
- const er = { kind: "null" }, S = { kind: "number" }, P = { kind: "string" }, M = { kind: "boolean" }, be = { kind: "color" }, tr = { kind: "projectionDefinition" }, De = { kind: "object" }, I = { kind: "value" }, Os = { kind: "error" }, rr = { kind: "collator" }, nr = { kind: "formatted" }, ar = { kind: "padding" }, yt = { kind: "colorArray" }, or = { kind: "numberArray" }, Tt = { kind: "resolvedImage" }, ir = { kind: "variableAnchorOffsetCollection" };
3626
+ const er = { kind: "null" }, S = { kind: "number" }, P = { kind: "string" }, M = { kind: "boolean" }, be = { kind: "color" }, tr = { kind: "projectionDefinition" }, De = { kind: "object" }, I = { kind: "value" }, Fs = { kind: "error" }, rr = { kind: "collator" }, nr = { kind: "formatted" }, ar = { kind: "padding" }, yt = { kind: "colorArray" }, or = { kind: "numberArray" }, Tt = { kind: "resolvedImage" }, ir = { kind: "variableAnchorOffsetCollection" };
3617
3627
  function ae(r, e) {
3618
3628
  return {
3619
3629
  kind: "array",
@@ -3628,7 +3638,7 @@ function D(r) {
3628
3638
  } else
3629
3639
  return r.kind;
3630
3640
  }
3631
- const Fs = [
3641
+ const $s = [
3632
3642
  er,
3633
3643
  S,
3634
3644
  P,
@@ -3654,7 +3664,7 @@ function gt(r, e) {
3654
3664
  if (r.kind === e.kind)
3655
3665
  return null;
3656
3666
  if (r.kind === "value") {
3657
- for (const t of Fs)
3667
+ for (const t of $s)
3658
3668
  if (!gt(t, e))
3659
3669
  return null;
3660
3670
  }
@@ -3670,7 +3680,7 @@ function Ue(r, e) {
3670
3680
  function Ae(r, e) {
3671
3681
  return r.kind === "array" && e.kind === "array" ? r.itemType.kind === e.itemType.kind && typeof r.N == "number" : r.kind === e.kind;
3672
3682
  }
3673
- const Ua = 0.96422, Ba = 1, qa = 0.82521, Va = 4 / 29, rt = 6 / 29, Ga = 3 * rt * rt, $s = rt * rt * rt, Ns = Math.PI / 180, js = 180 / Math.PI;
3683
+ const Ua = 0.96422, Ba = 1, qa = 0.82521, Va = 4 / 29, rt = 6 / 29, Ga = 3 * rt * rt, Ns = rt * rt * rt, js = Math.PI / 180, Ds = 180 / Math.PI;
3674
3684
  function Ha(r) {
3675
3685
  return r = r % 360, r < 0 && (r += 360), r;
3676
3686
  }
@@ -3686,7 +3696,7 @@ function Sr(r) {
3686
3696
  return r <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
3687
3697
  }
3688
3698
  function xr(r) {
3689
- return r > $s ? Math.pow(r, 1 / 3) : r / Ga + Va;
3699
+ return r > Ns ? Math.pow(r, 1 / 3) : r / Ga + Va;
3690
3700
  }
3691
3701
  function Ka([r, e, t, n]) {
3692
3702
  let a = (r + 16) / 116, o = isNaN(e) ? a : a + e / 500, i = isNaN(t) ? a : a - t / 200;
@@ -3704,14 +3714,14 @@ function kr(r) {
3704
3714
  function Lr(r) {
3705
3715
  return r > rt ? r * r * r : Ga * (r - Va);
3706
3716
  }
3707
- function Ds(r) {
3717
+ function Us(r) {
3708
3718
  const [e, t, n, a] = Za(r), o = Math.sqrt(t * t + n * n);
3709
- return [Math.round(o * 1e4) ? Ha(Math.atan2(n, t) * js) : NaN, o, e, a];
3710
- }
3711
- function Us([r, e, t, n]) {
3712
- return r = isNaN(r) ? 0 : r * Ns, Ka([t, Math.cos(r) * e, Math.sin(r) * e, n]);
3719
+ return [Math.round(o * 1e4) ? Ha(Math.atan2(n, t) * Ds) : NaN, o, e, a];
3713
3720
  }
3714
3721
  function Bs([r, e, t, n]) {
3722
+ return r = isNaN(r) ? 0 : r * js, Ka([t, Math.cos(r) * e, Math.sin(r) * e, n]);
3723
+ }
3724
+ function qs([r, e, t, n]) {
3715
3725
  r = Ha(r), e /= 100, t /= 100;
3716
3726
  function a(o) {
3717
3727
  const i = (o + r / 30) % 12, s = e * Math.min(t, 1 - t);
@@ -3719,16 +3729,16 @@ function Bs([r, e, t, n]) {
3719
3729
  }
3720
3730
  return [a(0), a(8), a(4), n];
3721
3731
  }
3722
- const qs = Object.hasOwn || function(e, t) {
3732
+ const Vs = Object.hasOwn || function(e, t) {
3723
3733
  return Object.prototype.hasOwnProperty.call(e, t);
3724
3734
  };
3725
3735
  function dt(r, e) {
3726
- return qs(r, e) ? r[e] : void 0;
3736
+ return Vs(r, e) ? r[e] : void 0;
3727
3737
  }
3728
- function Vs(r) {
3738
+ function Gs(r) {
3729
3739
  if (r = r.toLowerCase().trim(), r === "transparent")
3730
3740
  return [0, 0, 0, 0];
3731
- const e = dt(Gs, r);
3741
+ const e = dt(Hs, r);
3732
3742
  if (e) {
3733
3743
  const [a, o, i] = e;
3734
3744
  return [a / 255, o / 255, i / 255, 1];
@@ -3818,7 +3828,7 @@ function Vs(r) {
3818
3828
  p ? qn(+p, d) : 1
3819
3829
  ];
3820
3830
  if (Vn(h))
3821
- return Bs(h);
3831
+ return qs(h);
3822
3832
  }
3823
3833
  }
3824
3834
  }
@@ -3834,7 +3844,7 @@ function Qe(r, e, t) {
3834
3844
  function Vn(r) {
3835
3845
  return !r.some(Number.isNaN);
3836
3846
  }
3837
- const Gs = {
3847
+ const Hs = {
3838
3848
  aliceblue: [240, 248, 255],
3839
3849
  antiquewhite: [250, 235, 215],
3840
3850
  aqua: [0, 255, 255],
@@ -4019,7 +4029,7 @@ class $ {
4019
4029
  return e;
4020
4030
  if (typeof e != "string")
4021
4031
  return;
4022
- const t = Vs(e);
4032
+ const t = Gs(e);
4023
4033
  if (t)
4024
4034
  return new $(...t, !1);
4025
4035
  }
@@ -4038,7 +4048,7 @@ class $ {
4038
4048
  * @returns Gien color, with reversed alpha blending, in HCL color space.
4039
4049
  */
4040
4050
  get hcl() {
4041
- return this.overwriteGetter("hcl", Ds(this.rgb));
4051
+ return this.overwriteGetter("hcl", Us(this.rgb));
4042
4052
  }
4043
4053
  /**
4044
4054
  * Used in color interpolation.
@@ -4099,7 +4109,7 @@ class $ {
4099
4109
  let x = u - o;
4100
4110
  u > o && x > 180 ? x -= 360 : u < o && o - u > 180 && (x += 360), f = o + n * x;
4101
4111
  } else isNaN(o) ? isNaN(u) ? f = NaN : (f = u, (s === 1 || s === 0) && (h = c)) : (f = o, (p === 1 || p === 0) && (h = i));
4102
- const [m, y, b, v] = Us([
4112
+ const [m, y, b, v] = Bs([
4103
4113
  f,
4104
4114
  h ?? Be(i, c, n),
4105
4115
  Be(s, p, n),
@@ -4129,7 +4139,7 @@ class un {
4129
4139
  return new Intl.Collator(this.locale ? this.locale : []).resolvedOptions().locale;
4130
4140
  }
4131
4141
  }
4132
- const Hs = ["bottom", "center", "top"];
4142
+ const Zs = ["bottom", "center", "top"];
4133
4143
  class Dr {
4134
4144
  constructor(e, t, n, a, o, i) {
4135
4145
  this.text = e, this.image = t, this.scale = n, this.fontStack = a, this.textColor = o, this.verticalAlign = i;
@@ -4268,7 +4278,7 @@ class V extends Error {
4268
4278
  return this.message;
4269
4279
  }
4270
4280
  }
4271
- const Zs = /* @__PURE__ */ new Set(["center", "left", "right", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"]);
4281
+ const Ks = /* @__PURE__ */ new Set(["center", "left", "right", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"]);
4272
4282
  class we {
4273
4283
  constructor(e) {
4274
4284
  this.values = e.slice();
@@ -4279,7 +4289,7 @@ class we {
4279
4289
  if (!(!Array.isArray(e) || e.length < 1 || e.length % 2 !== 0)) {
4280
4290
  for (let t = 0; t < e.length; t += 2) {
4281
4291
  const n = e[t], a = e[t + 1];
4282
- if (typeof n != "string" || !Zs.has(n) || !Array.isArray(a) || a.length !== 2 || typeof a[0] != "number" || typeof a[1] != "number")
4292
+ if (typeof n != "string" || !Ks.has(n) || !Array.isArray(a) || a.length !== 2 || typeof a[0] != "number" || typeof a[1] != "number")
4283
4293
  return;
4284
4294
  }
4285
4295
  return new we(e);
@@ -4598,7 +4608,7 @@ class Re {
4598
4608
  return this.args.every((e) => e.outputDefined());
4599
4609
  }
4600
4610
  }
4601
- const Ks = ["Unknown", "Point", "LineString", "Polygon"];
4611
+ const Xs = ["Unknown", "Point", "LineString", "Polygon"];
4602
4612
  class Ya {
4603
4613
  constructor() {
4604
4614
  this.globals = null, this.feature = null, this.featureState = null, this.formattedSection = null, this._parseColorCache = /* @__PURE__ */ new Map(), this.availableImages = null, this.canonical = null;
@@ -4607,7 +4617,7 @@ class Ya {
4607
4617
  return this.feature && "id" in this.feature ? this.feature.id : null;
4608
4618
  }
4609
4619
  geometryType() {
4610
- return this.feature ? typeof this.feature.type == "number" ? Ks[this.feature.type] : this.feature.type : null;
4620
+ return this.feature ? typeof this.feature.type == "number" ? Xs[this.feature.type] : this.feature.type : null;
4611
4621
  }
4612
4622
  geometry() {
4613
4623
  return this.feature && "geometry" in this.feature ? this.feature.geometry : null;
@@ -5058,11 +5068,11 @@ class cr {
5058
5068
  return this.outputs.every((e) => e.outputDefined());
5059
5069
  }
5060
5070
  }
5061
- function Xs(r) {
5071
+ function Ys(r) {
5062
5072
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
5063
5073
  }
5064
5074
  var Cr, Hn;
5065
- function Ys() {
5075
+ function Ws() {
5066
5076
  if (Hn) return Cr;
5067
5077
  Hn = 1, Cr = r;
5068
5078
  function r(e, t, n, a) {
@@ -5098,7 +5108,7 @@ function Ys() {
5098
5108
  }
5099
5109
  }, Cr;
5100
5110
  }
5101
- var Ws = Ys(), Js = /* @__PURE__ */ Xs(Ws);
5111
+ var Js = Ws(), Qs = /* @__PURE__ */ Ys(Js);
5102
5112
  class Se {
5103
5113
  constructor(e, t, n, a, o) {
5104
5114
  this.type = e, this.operator = t, this.interpolation = n, this.input = a, this.labels = [], this.outputs = [];
@@ -5113,7 +5123,7 @@ class Se {
5113
5123
  o = Er(t, 1, n, a);
5114
5124
  else if (e.name === "cubic-bezier") {
5115
5125
  const i = e.controlPoints;
5116
- o = new Js(i[0], i[1], i[2], i[3]).solve(Er(t, 1, n, a));
5126
+ o = new Qs(i[0], i[1], i[2], i[3]).solve(Er(t, 1, n, a));
5117
5127
  }
5118
5128
  return o;
5119
5129
  }
@@ -5261,40 +5271,40 @@ class wt {
5261
5271
  function Zn(r, e) {
5262
5272
  return r === "==" || r === "!=" ? e.kind === "boolean" || e.kind === "string" || e.kind === "number" || e.kind === "null" || e.kind === "value" : e.kind === "string" || e.kind === "number" || e.kind === "value";
5263
5273
  }
5264
- function Qs(r, e, t) {
5274
+ function el(r, e, t) {
5265
5275
  return e === t;
5266
5276
  }
5267
- function el(r, e, t) {
5277
+ function tl(r, e, t) {
5268
5278
  return e !== t;
5269
5279
  }
5270
- function tl(r, e, t) {
5280
+ function rl(r, e, t) {
5271
5281
  return e < t;
5272
5282
  }
5273
- function rl(r, e, t) {
5283
+ function nl(r, e, t) {
5274
5284
  return e > t;
5275
5285
  }
5276
- function nl(r, e, t) {
5286
+ function al(r, e, t) {
5277
5287
  return e <= t;
5278
5288
  }
5279
- function al(r, e, t) {
5289
+ function ol(r, e, t) {
5280
5290
  return e >= t;
5281
5291
  }
5282
5292
  function Ja(r, e, t, n) {
5283
5293
  return n.compare(e, t) === 0;
5284
5294
  }
5285
- function ol(r, e, t, n) {
5295
+ function il(r, e, t, n) {
5286
5296
  return !Ja(r, e, t, n);
5287
5297
  }
5288
- function il(r, e, t, n) {
5298
+ function sl(r, e, t, n) {
5289
5299
  return n.compare(e, t) < 0;
5290
5300
  }
5291
- function sl(r, e, t, n) {
5301
+ function ll(r, e, t, n) {
5292
5302
  return n.compare(e, t) > 0;
5293
5303
  }
5294
- function ll(r, e, t, n) {
5304
+ function ul(r, e, t, n) {
5295
5305
  return n.compare(e, t) <= 0;
5296
5306
  }
5297
- function ul(r, e, t, n) {
5307
+ function cl(r, e, t, n) {
5298
5308
  return n.compare(e, t) >= 0;
5299
5309
  }
5300
5310
  function lt(r, e, t) {
@@ -5351,7 +5361,7 @@ function lt(r, e, t) {
5351
5361
  }
5352
5362
  };
5353
5363
  }
5354
- const cl = lt("==", Qs, Ja), pl = lt("!=", el, ol), fl = lt("<", tl, il), dl = lt(">", rl, sl), hl = lt("<=", nl, ll), ml = lt(">=", al, ul);
5364
+ const pl = lt("==", el, Ja), fl = lt("!=", tl, il), dl = lt("<", rl, sl), hl = lt(">", nl, ll), ml = lt("<=", al, ul), yl = lt(">=", ol, cl);
5355
5365
  class pr {
5356
5366
  constructor(e, t, n) {
5357
5367
  this.type = rr, this.locale = n, this.caseSensitive = e, this.diacriticSensitive = t;
@@ -5448,7 +5458,7 @@ class mn {
5448
5458
  return null;
5449
5459
  let p = null;
5450
5460
  if (s["vertical-align"]) {
5451
- if (typeof s["vertical-align"] == "string" && !Hs.includes(s["vertical-align"]))
5461
+ if (typeof s["vertical-align"] == "string" && !Zs.includes(s["vertical-align"]))
5452
5462
  return t.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);
5453
5463
  if (p = t.parse(s["vertical-align"], 1, P), !p)
5454
5464
  return null;
@@ -5529,24 +5539,24 @@ class gn {
5529
5539
  }
5530
5540
  }
5531
5541
  const xe = 8192;
5532
- function yl(r, e) {
5533
- const t = gl(r[0]), n = bl(r[1]), a = Math.pow(2, e.z);
5542
+ function gl(r, e) {
5543
+ const t = vl(r[0]), n = wl(r[1]), a = Math.pow(2, e.z);
5534
5544
  return [Math.round(t * a * xe), Math.round(n * a * xe)];
5535
5545
  }
5536
5546
  function vn(r, e) {
5537
5547
  const t = Math.pow(2, e.z), n = (r[0] / xe + e.x) / t, a = (r[1] / xe + e.y) / t;
5538
- return [vl(n), wl(a)];
5548
+ return [bl(n), Sl(a)];
5539
5549
  }
5540
- function gl(r) {
5550
+ function vl(r) {
5541
5551
  return (180 + r) / 360;
5542
5552
  }
5543
- function vl(r) {
5553
+ function bl(r) {
5544
5554
  return r * 360 - 180;
5545
5555
  }
5546
- function bl(r) {
5556
+ function wl(r) {
5547
5557
  return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + r * Math.PI / 360))) / 360;
5548
5558
  }
5549
- function wl(r) {
5559
+ function Sl(r) {
5550
5560
  return 360 / Math.PI * Math.atan(Math.exp((180 - r * 360) * Math.PI / 180)) - 90;
5551
5561
  }
5552
5562
  function _t(r, e) {
@@ -5555,18 +5565,18 @@ function _t(r, e) {
5555
5565
  function St(r, e) {
5556
5566
  return !(r[0] <= e[0] || r[2] >= e[2] || r[1] <= e[1] || r[3] >= e[3]);
5557
5567
  }
5558
- function Sl(r, e, t) {
5568
+ function xl(r, e, t) {
5559
5569
  return e[1] > r[1] != t[1] > r[1] && r[0] < (t[0] - e[0]) * (r[1] - e[1]) / (t[1] - e[1]) + e[0];
5560
5570
  }
5561
- function xl(r, e, t) {
5571
+ function kl(r, e, t) {
5562
5572
  const n = r[0] - e[0], a = r[1] - e[1], o = r[0] - t[0], i = r[1] - t[1];
5563
5573
  return n * i - o * a === 0 && n * o <= 0 && a * i <= 0;
5564
5574
  }
5565
5575
  function fr(r, e, t, n) {
5566
5576
  const a = [e[0] - r[0], e[1] - r[1]], o = [n[0] - t[0], n[1] - t[1]];
5567
- return El(o, a) === 0 ? !1 : !!(Kn(r, e, t, n) && Kn(t, n, r, e));
5577
+ return Al(o, a) === 0 ? !1 : !!(Kn(r, e, t, n) && Kn(t, n, r, e));
5568
5578
  }
5569
- function kl(r, e, t) {
5579
+ function Ll(r, e, t) {
5570
5580
  for (const n of t)
5571
5581
  for (let a = 0; a < n.length - 1; ++a)
5572
5582
  if (fr(r, e, n[a], n[a + 1]))
@@ -5577,13 +5587,13 @@ function ut(r, e, t = !1) {
5577
5587
  let n = !1;
5578
5588
  for (const a of e)
5579
5589
  for (let o = 0; o < a.length - 1; o++) {
5580
- if (xl(r, a[o], a[o + 1]))
5590
+ if (kl(r, a[o], a[o + 1]))
5581
5591
  return t;
5582
- Sl(r, a[o], a[o + 1]) && (n = !n);
5592
+ xl(r, a[o], a[o + 1]) && (n = !n);
5583
5593
  }
5584
5594
  return n;
5585
5595
  }
5586
- function Ll(r, e) {
5596
+ function Cl(r, e) {
5587
5597
  for (const t of e)
5588
5598
  if (ut(r, t))
5589
5599
  return !0;
@@ -5594,17 +5604,17 @@ function eo(r, e) {
5594
5604
  if (!ut(t, e))
5595
5605
  return !1;
5596
5606
  for (let t = 0; t < r.length - 1; ++t)
5597
- if (kl(r[t], r[t + 1], e))
5607
+ if (Ll(r[t], r[t + 1], e))
5598
5608
  return !1;
5599
5609
  return !0;
5600
5610
  }
5601
- function Cl(r, e) {
5611
+ function El(r, e) {
5602
5612
  for (const t of e)
5603
5613
  if (eo(r, t))
5604
5614
  return !0;
5605
5615
  return !1;
5606
5616
  }
5607
- function El(r, e) {
5617
+ function Al(r, e) {
5608
5618
  return r[0] * e[1] - r[1] * e[0];
5609
5619
  }
5610
5620
  function Kn(r, e, t, n) {
@@ -5616,7 +5626,7 @@ function bn(r, e, t) {
5616
5626
  for (let a = 0; a < r.length; a++) {
5617
5627
  const o = [];
5618
5628
  for (let i = 0; i < r[a].length; i++) {
5619
- const s = yl(r[a][i], t);
5629
+ const s = gl(r[a][i], t);
5620
5630
  _t(e, s), o.push(s);
5621
5631
  }
5622
5632
  n.push(o);
@@ -5639,7 +5649,7 @@ function ro(r, e, t, n) {
5639
5649
  }
5640
5650
  _t(e, r);
5641
5651
  }
5642
- function Al(r) {
5652
+ function Tl(r) {
5643
5653
  r[0] = r[1] = 1 / 0, r[2] = r[3] = -1 / 0;
5644
5654
  }
5645
5655
  function Xn(r, e, t, n) {
@@ -5662,14 +5672,14 @@ function Yn(r, e, t, n) {
5662
5672
  i.push(l);
5663
5673
  }
5664
5674
  if (e[2] - e[0] <= a / 2) {
5665
- Al(e);
5675
+ Tl(e);
5666
5676
  for (const s of i)
5667
5677
  for (const l of s)
5668
5678
  ro(l, e, t, a);
5669
5679
  }
5670
5680
  return i;
5671
5681
  }
5672
- function Tl(r, e) {
5682
+ function _l(r, e) {
5673
5683
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n = [1 / 0, 1 / 0, -1 / 0, -1 / 0], a = r.canonicalID();
5674
5684
  if (e.type === "Polygon") {
5675
5685
  const o = bn(e.coordinates, n, a), i = Xn(r.geometry(), t, n, a);
@@ -5684,12 +5694,12 @@ function Tl(r, e) {
5684
5694
  if (!St(t, n))
5685
5695
  return !1;
5686
5696
  for (const s of i)
5687
- if (!Ll(s, o))
5697
+ if (!Cl(s, o))
5688
5698
  return !1;
5689
5699
  }
5690
5700
  return !0;
5691
5701
  }
5692
- function _l(r, e) {
5702
+ function Il(r, e) {
5693
5703
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n = [1 / 0, 1 / 0, -1 / 0, -1 / 0], a = r.canonicalID();
5694
5704
  if (e.type === "Polygon") {
5695
5705
  const o = bn(e.coordinates, n, a), i = Yn(r.geometry(), t, n, a);
@@ -5704,7 +5714,7 @@ function _l(r, e) {
5704
5714
  if (!St(t, n))
5705
5715
  return !1;
5706
5716
  for (const s of i)
5707
- if (!Cl(s, o))
5717
+ if (!El(s, o))
5708
5718
  return !1;
5709
5719
  }
5710
5720
  return !0;
@@ -5743,9 +5753,9 @@ class qe {
5743
5753
  evaluate(e) {
5744
5754
  if (e.geometry() != null && e.canonicalID() != null) {
5745
5755
  if (e.geometryType() === "Point")
5746
- return Tl(e, this.geometries);
5747
- if (e.geometryType() === "LineString")
5748
5756
  return _l(e, this.geometries);
5757
+ if (e.geometryType() === "LineString")
5758
+ return Il(e, this.geometries);
5749
5759
  }
5750
5760
  return !1;
5751
5761
  }
@@ -5791,27 +5801,27 @@ class no {
5791
5801
  t[e] = o;
5792
5802
  }
5793
5803
  }
5794
- function Il(r, e) {
5804
+ function Ml(r, e) {
5795
5805
  if (r.length <= 1)
5796
5806
  return [r];
5797
5807
  const n = [];
5798
5808
  let a, o;
5799
5809
  for (const i of r) {
5800
- const s = Ml(i);
5810
+ const s = Pl(i);
5801
5811
  s !== 0 && (i.area = Math.abs(s), o === void 0 && (o = s < 0), o === s < 0 ? (a && n.push(a), a = [i]) : a.push(i));
5802
5812
  }
5803
5813
  return a && n.push(a), n;
5804
5814
  }
5805
- function Ml(r) {
5815
+ function Pl(r) {
5806
5816
  let e = 0;
5807
5817
  for (let t = 0, n = r.length, a = n - 1, o, i; t < n; a = t++)
5808
5818
  o = r[t], i = r[a], e += (i.x - o.x) * (o.y + i.y);
5809
5819
  return e;
5810
5820
  }
5811
- const Pl = 6378.137, Wn = 1 / 298.257223563, Jn = Wn * (2 - Wn), Qn = Math.PI / 180;
5821
+ const Rl = 6378.137, Wn = 1 / 298.257223563, Jn = Wn * (2 - Wn), Qn = Math.PI / 180;
5812
5822
  class wn {
5813
5823
  constructor(e) {
5814
- const t = Qn * Pl * 1e3, n = Math.cos(e * Qn), a = 1 / (1 - Jn * (1 - n * n)), o = Math.sqrt(a);
5824
+ const t = Qn * Rl * 1e3, n = Math.cos(e * Qn), a = 1 / (1 - Jn * (1 - n * n)), o = Math.sqrt(a);
5815
5825
  this.kx = t * o * n, this.ky = t * o * a * (1 - Jn);
5816
5826
  }
5817
5827
  /**
@@ -5925,7 +5935,7 @@ function xn(r, e, t, n, a) {
5925
5935
  const o = Math.min(je(r, [t, n], a), je(e, [t, n], a)), i = Math.min(je(t, [r, e], a), je(n, [r, e], a));
5926
5936
  return Math.min(o, i);
5927
5937
  }
5928
- function Rl(r, e, t, n, a) {
5938
+ function zl(r, e, t, n, a) {
5929
5939
  if (!(Ee(e, r.length) && Ee(n, t.length)))
5930
5940
  return 1 / 0;
5931
5941
  let i = 1 / 0;
@@ -5940,7 +5950,7 @@ function Rl(r, e, t, n, a) {
5940
5950
  }
5941
5951
  return i;
5942
5952
  }
5943
- function zl(r, e, t, n, a) {
5953
+ function Ol(r, e, t, n, a) {
5944
5954
  if (!(Ee(e, r.length) && Ee(n, t.length)))
5945
5955
  return NaN;
5946
5956
  let i = 1 / 0;
@@ -5950,7 +5960,7 @@ function zl(r, e, t, n, a) {
5950
5960
  return i;
5951
5961
  return i;
5952
5962
  }
5953
- function Ol(r, e, t) {
5963
+ function Fl(r, e, t) {
5954
5964
  if (ut(r, e, !0))
5955
5965
  return 0;
5956
5966
  let n = 1 / 0;
@@ -5964,7 +5974,7 @@ function Ol(r, e, t) {
5964
5974
  }
5965
5975
  return n;
5966
5976
  }
5967
- function Fl(r, e, t, n) {
5977
+ function $l(r, e, t, n) {
5968
5978
  if (!Ee(e, r.length))
5969
5979
  return NaN;
5970
5980
  for (let o = e[0]; o <= e[1]; ++o)
@@ -5990,7 +6000,7 @@ function ta(r, e) {
5990
6000
  return !0;
5991
6001
  return !1;
5992
6002
  }
5993
- function $l(r, e, t, n = 1 / 0) {
6003
+ function Nl(r, e, t, n = 1 / 0) {
5994
6004
  const a = Gr(r), o = Gr(e);
5995
6005
  if (n !== 1 / 0 && Sn(a, o, t) >= n)
5996
6006
  return n;
@@ -6039,13 +6049,13 @@ function Zt(r, e, t, n, a = 1 / 0) {
6039
6049
  if (!Ee(u, r.length))
6040
6050
  return NaN;
6041
6051
  if (e) {
6042
- const p = Fl(r, u, t, n);
6052
+ const p = $l(r, u, t, n);
6043
6053
  if (isNaN(p) || p === 0)
6044
6054
  return p;
6045
6055
  o = Math.min(o, p);
6046
6056
  } else
6047
6057
  for (let p = u[0]; p <= u[1]; ++p) {
6048
- const d = Ol(r[p], t, n);
6058
+ const d = Fl(r[p], t, n);
6049
6059
  if (o = Math.min(o, d), o === 0)
6050
6060
  return 0;
6051
6061
  }
@@ -6071,7 +6081,7 @@ function Kt(r, e, t, n, a, o = 1 / 0) {
6071
6081
  return NaN;
6072
6082
  let f;
6073
6083
  if (e && n)
6074
- f = Rl(r, u, t, c, a), i = Math.min(i, f);
6084
+ f = zl(r, u, t, c, a), i = Math.min(i, f);
6075
6085
  else if (e && !n) {
6076
6086
  const h = r.slice(u[0], u[1] + 1);
6077
6087
  for (let m = c[0]; m <= c[1]; ++m)
@@ -6083,7 +6093,7 @@ function Kt(r, e, t, n, a, o = 1 / 0) {
6083
6093
  if (f = je(r[m], h, a), i = Math.min(i, f), i === 0)
6084
6094
  return i;
6085
6095
  } else
6086
- f = zl(r, u, t, c, a), i = Math.min(i, f);
6096
+ f = Ol(r, u, t, c, a), i = Math.min(i, f);
6087
6097
  } else {
6088
6098
  const f = qr(u, e), h = qr(c, n);
6089
6099
  Ot(s, i, a, r, t, f[0], h[0]), Ot(s, i, a, r, t, f[0], h[1]), Ot(s, i, a, r, t, f[1], h[0]), Ot(s, i, a, r, t, f[1], h[1]);
@@ -6091,7 +6101,7 @@ function Kt(r, e, t, n, a, o = 1 / 0) {
6091
6101
  }
6092
6102
  return i;
6093
6103
  }
6094
- function Nl(r, e) {
6104
+ function jl(r, e) {
6095
6105
  const t = r.geometry(), n = t.flat().map((i) => vn([i.x, i.y], r.canonical));
6096
6106
  if (t.length === 0)
6097
6107
  return NaN;
@@ -6114,7 +6124,7 @@ function Nl(r, e) {
6114
6124
  }
6115
6125
  return o;
6116
6126
  }
6117
- function jl(r, e) {
6127
+ function Dl(r, e) {
6118
6128
  const t = r.geometry(), n = t.flat().map((i) => vn([i.x, i.y], r.canonical));
6119
6129
  if (t.length === 0)
6120
6130
  return NaN;
@@ -6137,11 +6147,11 @@ function jl(r, e) {
6137
6147
  }
6138
6148
  return o;
6139
6149
  }
6140
- function Dl(r, e) {
6150
+ function Ul(r, e) {
6141
6151
  const t = r.geometry();
6142
6152
  if (t.length === 0 || t[0].length === 0)
6143
6153
  return NaN;
6144
- const n = Il(t).map((i) => i.map((s) => s.map((l) => vn([l.x, l.y], r.canonical)))), a = new wn(n[0][0][0][1]);
6154
+ const n = Ml(t).map((i) => i.map((s) => s.map((l) => vn([l.x, l.y], r.canonical)))), a = new wn(n[0][0][0][1]);
6145
6155
  let o = 1 / 0;
6146
6156
  for (const i of e)
6147
6157
  for (const s of n) {
@@ -6153,7 +6163,7 @@ function Dl(r, e) {
6153
6163
  o = Math.min(o, Zt(i.coordinates, !0, s, a, o));
6154
6164
  break;
6155
6165
  case "Polygon":
6156
- o = Math.min(o, $l(s, i.coordinates, a, o));
6166
+ o = Math.min(o, Nl(s, i.coordinates, a, o));
6157
6167
  break;
6158
6168
  }
6159
6169
  if (o === 0)
@@ -6194,11 +6204,11 @@ class Ve {
6194
6204
  evaluate(e) {
6195
6205
  if (e.geometry() != null && e.canonicalID() != null) {
6196
6206
  if (e.geometryType() === "Point")
6197
- return Nl(e, this.geometries);
6198
- if (e.geometryType() === "LineString")
6199
6207
  return jl(e, this.geometries);
6200
- if (e.geometryType() === "Polygon")
6208
+ if (e.geometryType() === "LineString")
6201
6209
  return Dl(e, this.geometries);
6210
+ if (e.geometryType() === "Polygon")
6211
+ return Ul(e, this.geometries);
6202
6212
  }
6203
6213
  return NaN;
6204
6214
  }
@@ -6231,12 +6241,12 @@ class It {
6231
6241
  }
6232
6242
  const kn = {
6233
6243
  // special forms
6234
- "==": cl,
6235
- "!=": pl,
6236
- ">": dl,
6237
- "<": fl,
6238
- ">=": ml,
6239
- "<=": hl,
6244
+ "==": pl,
6245
+ "!=": fl,
6246
+ ">": hl,
6247
+ "<": dl,
6248
+ ">=": yl,
6249
+ "<=": ml,
6240
6250
  array: pe,
6241
6251
  at: cn,
6242
6252
  boolean: pe,
@@ -6317,7 +6327,7 @@ class he {
6317
6327
  if (s.length === 1)
6318
6328
  t.errors.push(...l.errors);
6319
6329
  else {
6320
- const c = (s.length ? s : i).map(([d]) => Bl(d)).join(" | "), p = [];
6330
+ const c = (s.length ? s : i).map(([d]) => ql(d)).join(" | "), p = [];
6321
6331
  for (let d = 1; d < e.length; d++) {
6322
6332
  const f = t.parse(e[d], 1 + p.length);
6323
6333
  if (!f)
@@ -6348,7 +6358,7 @@ function Tr(r, e) {
6348
6358
  const t = e[r];
6349
6359
  return typeof t > "u" ? null : t;
6350
6360
  }
6351
- function Ul(r, e, t, n) {
6361
+ function Bl(r, e, t, n) {
6352
6362
  for (; t <= n; ) {
6353
6363
  const a = t + n >> 1;
6354
6364
  if (e[a] === r)
@@ -6362,7 +6372,7 @@ function $e(r) {
6362
6372
  }
6363
6373
  he.register(kn, {
6364
6374
  error: [
6365
- Os,
6375
+ Fs,
6366
6376
  [P],
6367
6377
  (r, [e]) => {
6368
6378
  throw new V(e.evaluate(r));
@@ -6717,7 +6727,7 @@ he.register(kn, {
6717
6727
  M,
6718
6728
  [P, ae(I)],
6719
6729
  // assumes v is a array literal with values sorted in ascending order and of a single type
6720
- (r, [e, t]) => Ul(r.properties()[e.value], t.value, 0, t.value.length - 1)
6730
+ (r, [e, t]) => Bl(r.properties()[e.value], t.value, 0, t.value.length - 1)
6721
6731
  ],
6722
6732
  all: {
6723
6733
  type: M,
@@ -6790,7 +6800,7 @@ he.register(kn, {
6790
6800
  (r, [e]) => e.evaluate(r).resolvedLocale()
6791
6801
  ]
6792
6802
  });
6793
- function Bl(r) {
6803
+ function ql(r) {
6794
6804
  return Array.isArray(r) ? `(${r.map(D).join(", ")})` : `(${D(r.type)}...)`;
6795
6805
  }
6796
6806
  function Xt(r) {
@@ -6869,9 +6879,9 @@ function R(r) {
6869
6879
  function Ln(r) {
6870
6880
  return typeof r == "object" && r !== null && !Array.isArray(r) && H(r) === De;
6871
6881
  }
6872
- class ql {
6882
+ class Vl {
6873
6883
  constructor(e, t, n) {
6874
- this.expression = e, this._warningHistory = {}, this._evaluator = new Ya(), this._defaultValue = t ? Hl(t) : null, this._enumValues = t && t.type === "enum" ? t.values : null, this._globalState = n;
6884
+ this.expression = e, this._warningHistory = {}, this._evaluator = new Ya(), this._defaultValue = t ? Zl(t) : null, this._enumValues = t && t.type === "enum" ? t.values : null, this._globalState = n;
6875
6885
  }
6876
6886
  evaluateWithoutErrorHandling(e, t, n, a, o, i) {
6877
6887
  return this._globalState && (e = it(e, this._globalState)), this._evaluator.globals = e, this._evaluator.feature = t, this._evaluator.featureState = n, this._evaluator.canonical = a, this._evaluator.availableImages = o || null, this._evaluator.formattedSection = i, this.expression.evaluate(this._evaluator);
@@ -6894,8 +6904,8 @@ function so(r) {
6894
6904
  return Array.isArray(r) && r.length > 0 && typeof r[0] == "string" && r[0] in kn;
6895
6905
  }
6896
6906
  function lo(r, e, t) {
6897
- const n = new sr(kn, Xt, [], e ? Gl(e) : void 0), a = n.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
6898
- return a ? Hr(new ql(a, e, t)) : et(n.errors);
6907
+ const n = new sr(kn, Xt, [], e ? Hl(e) : void 0), a = n.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
6908
+ return a ? Hr(new Vl(a, e, t)) : et(n.errors);
6899
6909
  }
6900
6910
  class oa {
6901
6911
  constructor(e, t, n) {
@@ -6922,7 +6932,7 @@ class ia {
6922
6932
  return this.interpolationType ? Se.interpolationFactor(this.interpolationType, e, t, n) : 0;
6923
6933
  }
6924
6934
  }
6925
- function Vl(r, e, t) {
6935
+ function Gl(r, e, t) {
6926
6936
  const n = lo(r, e, t);
6927
6937
  if (n.result === "error")
6928
6938
  return n;
@@ -6963,7 +6973,7 @@ function Cn(r, e = /* @__PURE__ */ new Set()) {
6963
6973
  Cn(t, e);
6964
6974
  }), e;
6965
6975
  }
6966
- function Gl(r) {
6976
+ function Hl(r) {
6967
6977
  const e = {
6968
6978
  color: be,
6969
6979
  string: P,
@@ -6980,7 +6990,7 @@ function Gl(r) {
6980
6990
  };
6981
6991
  return r.type === "array" ? ae(e[r.value] || I, r.length) : e[r.type];
6982
6992
  }
6983
- function Hl(r) {
6993
+ function Zl(r) {
6984
6994
  if (r.type === "color" && Ln(r.default))
6985
6995
  return new $(0, 0, 0, 0);
6986
6996
  switch (r.type) {
@@ -7228,7 +7238,7 @@ function po(r) {
7228
7238
  }
7229
7239
  }
7230
7240
  function st(r) {
7231
- const e = (r.expressionContext === "property" ? Vl : lo)(Ze(r.value), r.valueSpec);
7241
+ const e = (r.expressionContext === "property" ? Gl : lo)(Ze(r.value), r.valueSpec);
7232
7242
  if (e.result === "error")
7233
7243
  return e.value.map((n) => new w(`${r.key}${n.key}`, r.value, n.message));
7234
7244
  const t = e.value.expression || e.value._styleExpression.expression;
@@ -7246,7 +7256,7 @@ function st(r) {
7246
7256
  }
7247
7257
  return [];
7248
7258
  }
7249
- function Zl(r) {
7259
+ function Kl(r) {
7250
7260
  const e = r.value, t = r.key, n = R(e);
7251
7261
  return n !== "boolean" ? [new w(t, e, `boolean expected, ${n} found`)] : [];
7252
7262
  }
@@ -7450,7 +7460,7 @@ function Ke(r) {
7450
7460
  const e = r.value, t = r.key, n = R(e);
7451
7461
  return n !== "string" ? [new w(t, e, `string expected, ${n} found`)] : [];
7452
7462
  }
7453
- function Kl(r) {
7463
+ function Xl(r) {
7454
7464
  var e;
7455
7465
  const t = (e = r.sourceName) !== null && e !== void 0 ? e : "", n = r.value, a = r.styleSpec, o = a.source_raster_dem, i = r.style;
7456
7466
  let s = [];
@@ -7472,7 +7482,7 @@ function Kl(r) {
7472
7482
  return s;
7473
7483
  }
7474
7484
  const sa = {
7475
- promoteId: Xl
7485
+ promoteId: Yl
7476
7486
  };
7477
7487
  function vo(r) {
7478
7488
  const e = r.value, t = r.key, n = r.styleSpec, a = r.style, o = r.validateSpec;
@@ -7493,7 +7503,7 @@ function vo(r) {
7493
7503
  validateSpec: o
7494
7504
  }), s;
7495
7505
  case "raster-dem":
7496
- return s = Kl({
7506
+ return s = Xl({
7497
7507
  sourceName: t,
7498
7508
  value: e,
7499
7509
  style: r.style,
@@ -7551,7 +7561,7 @@ function vo(r) {
7551
7561
  });
7552
7562
  }
7553
7563
  }
7554
- function Xl({ key: r, value: e }) {
7564
+ function Yl({ key: r, value: e }) {
7555
7565
  if (R(e) === "string")
7556
7566
  return Ke({ key: r, value: e });
7557
7567
  {
@@ -7625,13 +7635,13 @@ function So(r) {
7625
7635
  })) : o = o.concat([new w(s, e[s], `unknown property "${s}"`)]);
7626
7636
  return o;
7627
7637
  }
7628
- function Yl(r) {
7629
- return Ke(r).length === 0 ? [] : st(r);
7630
- }
7631
7638
  function Wl(r) {
7632
7639
  return Ke(r).length === 0 ? [] : st(r);
7633
7640
  }
7634
7641
  function Jl(r) {
7642
+ return Ke(r).length === 0 ? [] : st(r);
7643
+ }
7644
+ function Ql(r) {
7635
7645
  const e = r.key, t = r.value;
7636
7646
  if (R(t) === "array") {
7637
7647
  if (t.length < 1 || t.length > 4)
@@ -7655,7 +7665,7 @@ function Jl(r) {
7655
7665
  valueSpec: {}
7656
7666
  });
7657
7667
  }
7658
- function Ql(r) {
7668
+ function eu(r) {
7659
7669
  const e = r.key, t = r.value;
7660
7670
  if (R(t) === "array") {
7661
7671
  const a = {
@@ -7679,7 +7689,7 @@ function Ql(r) {
7679
7689
  valueSpec: {}
7680
7690
  });
7681
7691
  }
7682
- function eu(r) {
7692
+ function tu(r) {
7683
7693
  const e = r.key, t = r.value;
7684
7694
  if (R(t) === "array") {
7685
7695
  if (t.length < 1)
@@ -7697,7 +7707,7 @@ function eu(r) {
7697
7707
  value: t
7698
7708
  });
7699
7709
  }
7700
- function tu(r) {
7710
+ function ru(r) {
7701
7711
  const e = r.key, t = r.value, n = R(t), a = r.styleSpec;
7702
7712
  if (n !== "array" || t.length < 1 || t.length % 2 !== 0)
7703
7713
  return [new w(e, t, "variableAnchorOffsetCollection requires a non-empty array of even length")];
@@ -7751,7 +7761,7 @@ function xo(r) {
7751
7761
  value: t
7752
7762
  });
7753
7763
  }
7754
- function ru(r) {
7764
+ function nu(r) {
7755
7765
  const e = r.value, t = r.styleSpec, n = t.projection, a = r.style, o = R(e);
7756
7766
  if (e === void 0)
7757
7767
  return [];
@@ -7768,24 +7778,24 @@ function ru(r) {
7768
7778
  })) : i = i.concat([new w(s, e[s], `unknown property "${s}"`)]);
7769
7779
  return i;
7770
7780
  }
7771
- function nu(r) {
7781
+ function au(r) {
7772
7782
  const e = r.key;
7773
7783
  let t = r.value;
7774
7784
  t = t instanceof String ? t.valueOf() : t;
7775
7785
  const n = R(t);
7776
- return n === "array" && !ou(t) && !au(t) ? [new w(e, t, `projection expected, invalid array ${JSON.stringify(t)} found`)] : ["array", "string"].includes(n) ? [] : [new w(e, t, `projection expected, invalid type "${n}" found`)];
7786
+ return n === "array" && !iu(t) && !ou(t) ? [new w(e, t, `projection expected, invalid array ${JSON.stringify(t)} found`)] : ["array", "string"].includes(n) ? [] : [new w(e, t, `projection expected, invalid type "${n}" found`)];
7777
7787
  }
7778
- function au(r) {
7788
+ function ou(r) {
7779
7789
  return !!["interpolate", "step", "literal"].includes(r[0]);
7780
7790
  }
7781
- function ou(r) {
7791
+ function iu(r) {
7782
7792
  return Array.isArray(r) && r.length === 3 && typeof r[0] == "string" && typeof r[1] == "string" && typeof r[2] == "number";
7783
7793
  }
7784
- function iu(r) {
7794
+ function su(r) {
7785
7795
  return !!r && r.constructor === Object;
7786
7796
  }
7787
7797
  function ko(r) {
7788
- return iu(r.value) ? [] : [
7798
+ return su(r.value) ? [] : [
7789
7799
  new w(r.key, r.value, `object expected, ${R(r.value)} found`)
7790
7800
  ];
7791
7801
  }
@@ -7794,7 +7804,7 @@ const la = {
7794
7804
  return [];
7795
7805
  },
7796
7806
  array: En,
7797
- boolean: Zl,
7807
+ boolean: Kl,
7798
7808
  number: mr,
7799
7809
  color: Zr,
7800
7810
  constants: co,
@@ -7807,15 +7817,15 @@ const la = {
7807
7817
  light: bo,
7808
7818
  sky: wo,
7809
7819
  terrain: So,
7810
- projection: ru,
7811
- projectionDefinition: nu,
7820
+ projection: nu,
7821
+ projectionDefinition: au,
7812
7822
  string: Ke,
7813
- formatted: Yl,
7814
- resolvedImage: Wl,
7815
- padding: Jl,
7816
- numberArray: Ql,
7817
- colorArray: eu,
7818
- variableAnchorOffsetCollection: tu,
7823
+ formatted: Wl,
7824
+ resolvedImage: Jl,
7825
+ padding: Ql,
7826
+ numberArray: eu,
7827
+ colorArray: tu,
7828
+ variableAnchorOffsetCollection: ru,
7819
7829
  sprite: xo,
7820
7830
  state: ko
7821
7831
  };
@@ -7829,7 +7839,7 @@ function Lo(r) {
7829
7839
  const e = r.value, t = r.key, n = Ke(r);
7830
7840
  return n.length || (e.indexOf("{fontstack}") === -1 && n.push(new w(t, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && n.push(new w(t, e, '"glyphs" url must include a "{range}" token'))), n;
7831
7841
  }
7832
- function ie(r, e = zs) {
7842
+ function ie(r, e = Os) {
7833
7843
  let t = [];
7834
7844
  return t = t.concat(Wt({
7835
7845
  key: "",
@@ -7882,7 +7892,7 @@ function ua(r) {
7882
7892
  isFallback: !0
7883
7893
  };
7884
7894
  if (typeof r == "string") {
7885
- const t = lu(r);
7895
+ const t = uu(r);
7886
7896
  return t.isValidStyle ? {
7887
7897
  style: t.styleObject,
7888
7898
  requiresUrlMonitoring: !1,
@@ -7893,7 +7903,7 @@ function ua(r) {
7893
7903
  // default styles don't require URL monitoring
7894
7904
  isFallback: !0
7895
7905
  } : r.startsWith("http") ? { style: r, requiresUrlMonitoring: !0, isFallback: !1 } : r.toLowerCase().includes(".json") ? {
7896
- style: su(r),
7906
+ style: lu(r),
7897
7907
  requiresUrlMonitoring: !0,
7898
7908
  isFallback: !1
7899
7909
  } : {
@@ -7922,14 +7932,14 @@ function ua(r) {
7922
7932
  isFallback: !0
7923
7933
  };
7924
7934
  }
7925
- function su(r) {
7935
+ function lu(r) {
7926
7936
  try {
7927
7937
  return new URL(r).href;
7928
7938
  } catch {
7929
7939
  }
7930
7940
  return new URL(r, location.origin).href;
7931
7941
  }
7932
- function lu(r) {
7942
+ function uu(r) {
7933
7943
  try {
7934
7944
  const e = JSON.parse(r), t = ie(e);
7935
7945
  return {
@@ -7952,12 +7962,12 @@ function Ce(r, e, t) {
7952
7962
  function Lt(r) {
7953
7963
  r.parentNode && r.parentNode.removeChild(r);
7954
7964
  }
7955
- class uu {
7965
+ class cu {
7956
7966
  constructor() {
7957
7967
  g(this, "_map");
7958
7968
  g(this, "_container");
7959
7969
  g(this, "_terrainButton");
7960
- $i(["_toggleTerrain", "_updateTerrainIcon"], this);
7970
+ Ni(["_toggleTerrain", "_updateTerrainIcon"], this);
7961
7971
  }
7962
7972
  onAdd(e) {
7963
7973
  return this._map = e, this._container = Ce("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._terrainButton = Ce("button", "maplibregl-ctrl-terrain", this._container), Ce("span", "maplibregl-ctrl-icon", this._terrainButton).setAttribute("aria-hidden", "true"), this._terrainButton.type = "button", this._terrainButton.addEventListener("click", this._toggleTerrain), this._updateTerrainIcon(), this._map.on("terrain", this._updateTerrainIcon), this._container;
@@ -7975,7 +7985,7 @@ class uu {
7975
7985
  function Eo(r) {
7976
7986
  r.hasTerrain() ? r.disableTerrain() : r.enableTerrain();
7977
7987
  }
7978
- class cu extends Na {
7988
+ class pu extends Na {
7979
7989
  constructor(t = {}) {
7980
7990
  super({
7981
7991
  showCompass: t.showCompass ?? !0,
@@ -8001,8 +8011,8 @@ class cu extends Na {
8001
8011
  return a.clickFunction = n, a;
8002
8012
  }
8003
8013
  }
8004
- const ca = L.Marker, pa = L.LngLat, pu = L.LngLatBounds;
8005
- class fu extends Ei {
8014
+ const ca = k.Marker, pa = k.LngLat, fu = k.LngLatBounds;
8015
+ class du extends Ei {
8006
8016
  constructor() {
8007
8017
  super(...arguments);
8008
8018
  g(this, "lastUpdatedCenter", new pa(0, 0));
@@ -8019,7 +8029,7 @@ class fu extends Ei {
8019
8029
  ...this.options.fitBoundsOptions,
8020
8030
  linear: !0
8021
8031
  }, s = this._map.getZoom();
8022
- s > (((c = this.options.fitBoundsOptions) == null ? void 0 : c.maxZoom) ?? 30) && (i.zoom = s), this._map.fitBounds(pu.fromLngLat(n, a), i, {
8032
+ s > (((c = this.options.fitBoundsOptions) == null ? void 0 : c.maxZoom) ?? 30) && (i.zoom = s), this._map.fitBounds(fu.fromLngLat(n, a), i, {
8023
8033
  geolocateSource: !0
8024
8034
  // tag this camera change so it won't cause the control to change to background state
8025
8035
  });
@@ -8082,8 +8092,8 @@ class fu extends Ei {
8082
8092
  }
8083
8093
  }
8084
8094
  }
8085
- var Te, Q, _e, Ie, nt;
8086
- class du {
8095
+ var Te, ee, _e, Ie, nt;
8096
+ class hu {
8087
8097
  /**
8088
8098
  * @param selectorOrElement Element to be used as control, specified as either reference to element itself or a CSS selector to find the element in DOM
8089
8099
  * @param onClick Function called when the element is clicked
@@ -8091,31 +8101,31 @@ class du {
8091
8101
  */
8092
8102
  constructor(e, t, n) {
8093
8103
  Y(this, Te);
8094
- Y(this, Q);
8104
+ Y(this, ee);
8095
8105
  Y(this, _e);
8096
8106
  Y(this, Ie);
8097
8107
  Y(this, nt);
8098
8108
  if (typeof e == "string") {
8099
8109
  const a = document.querySelector(e);
8100
8110
  if (!a) throw new Error(`No element has been found with selector "${e}" when creating an external control.`);
8101
- W(this, Q, a);
8111
+ J(this, ee, a);
8102
8112
  } else
8103
- W(this, Q, e);
8104
- t && W(this, _e, (a) => {
8105
- t(k(this, Te), k(this, Q), a);
8106
- }), n && W(this, Ie, (a) => {
8107
- n(k(this, Te), k(this, Q), a);
8108
- }), W(this, nt, k(this, Q).parentElement);
8113
+ J(this, ee, e);
8114
+ t && J(this, _e, (a) => {
8115
+ t(L(this, Te), L(this, ee), a);
8116
+ }), n && J(this, Ie, (a) => {
8117
+ n(L(this, Te), L(this, ee), a);
8118
+ }), J(this, nt, L(this, ee).parentElement);
8109
8119
  }
8110
8120
  onAdd(e) {
8111
- return W(this, Te, e), k(this, _e) && k(this, Q).addEventListener("click", k(this, _e)), k(this, Ie) && k(this, Te).on("render", k(this, Ie)), Lt(k(this, Q)), k(this, Q);
8121
+ return J(this, Te, e), L(this, _e) && L(this, ee).addEventListener("click", L(this, _e)), L(this, Ie) && L(this, Te).on("render", L(this, Ie)), Lt(L(this, ee)), L(this, ee);
8112
8122
  }
8113
8123
  onRemove() {
8114
- k(this, _e) && k(this, Q).removeEventListener("click", k(this, _e)), k(this, Ie) && k(this, Te).off("render", k(this, Ie)), k(this, nt) ? k(this, nt).appendChild(k(this, Q)) : Lt(k(this, Q));
8124
+ L(this, _e) && L(this, ee).removeEventListener("click", L(this, _e)), L(this, Ie) && L(this, Te).off("render", L(this, Ie)), L(this, nt) ? L(this, nt).appendChild(L(this, ee)) : Lt(L(this, ee));
8115
8125
  }
8116
8126
  }
8117
- Te = new WeakMap(), Q = new WeakMap(), _e = new WeakMap(), Ie = new WeakMap(), nt = new WeakMap();
8118
- class hu {
8127
+ Te = new WeakMap(), ee = new WeakMap(), _e = new WeakMap(), Ie = new WeakMap(), nt = new WeakMap();
8128
+ class mu {
8119
8129
  constructor() {
8120
8130
  g(this, "map");
8121
8131
  g(this, "container");
@@ -8156,7 +8166,7 @@ const ct = {
8156
8166
  }
8157
8167
  };
8158
8168
  var Et, at;
8159
- class Kr extends du {
8169
+ class Kr extends hu {
8160
8170
  /**
8161
8171
  * Constructs an instance of External Control to have a predefined functionality
8162
8172
  * @param controlElement Element to be used as control, specified as reference to element itself
@@ -8169,14 +8179,14 @@ class Kr extends du {
8169
8179
  Y(this, at, /* @__PURE__ */ new Map());
8170
8180
  }
8171
8181
  onAdd(t) {
8172
- return W(this, Et, t), super.onAdd(t);
8182
+ return J(this, Et, t), super.onAdd(t);
8173
8183
  }
8174
8184
  onRemove() {
8175
- for (const [t, n] of k(this, at)) {
8185
+ for (const [t, n] of L(this, at)) {
8176
8186
  const a = t.deref();
8177
8187
  a && a.removeEventListener("click", n);
8178
8188
  }
8179
- k(this, at).clear(), super.onRemove();
8189
+ L(this, at).clear(), super.onRemove();
8180
8190
  }
8181
8191
  /**
8182
8192
  * Configure a child element to be part of this control and to have a predefined functionality added
@@ -8187,24 +8197,24 @@ class Kr extends du {
8187
8197
  if (!n) return;
8188
8198
  if (!(n in ct)) throw new Error(`data-maptiler-control value "${n}" is invalid.`);
8189
8199
  const a = (o) => {
8190
- ct[n](k(this, Et), t, o);
8200
+ ct[n](L(this, Et), t, o);
8191
8201
  };
8192
- t.addEventListener("click", a), k(this, at).set(new WeakRef(t), a);
8202
+ t.addEventListener("click", a), L(this, at).set(new WeakRef(t), a);
8193
8203
  }
8194
8204
  }
8195
8205
  Et = new WeakMap(), at = new WeakMap(), g(Kr, "controlCallbacks", ct);
8196
- var ee, ue, Me, Pe, re, At, Z, To, se, _o;
8206
+ var te, ue, Me, Pe, re, At, Z, To, se, _o;
8197
8207
  class _r {
8198
8208
  constructor(e, t) {
8199
8209
  Y(this, Z);
8200
- Y(this, ee);
8210
+ Y(this, te);
8201
8211
  g(this, "map");
8202
8212
  Y(this, ue);
8203
8213
  Y(this, Me);
8204
8214
  Y(this, Pe);
8205
8215
  Y(this, re, !1);
8206
8216
  Y(this, At);
8207
- e.style !== void 0 && W(this, re, !0), W(this, ee, {
8217
+ e.style !== void 0 && J(this, re, !0), J(this, te, {
8208
8218
  // set defaults
8209
8219
  zoomAdjust: -4,
8210
8220
  position: "top-right",
@@ -8227,52 +8237,52 @@ class _r {
8227
8237
  height: "300px",
8228
8238
  ...e.containerStyle ?? {}
8229
8239
  }
8230
- }), e.lockZoom !== void 0 && (k(this, ee).minZoom = e.lockZoom, k(this, ee).maxZoom = e.lockZoom);
8240
+ }), e.lockZoom !== void 0 && (L(this, te).minZoom = e.lockZoom, L(this, te).maxZoom = e.lockZoom);
8231
8241
  }
8232
8242
  setStyle(e, t) {
8233
- k(this, re) || this.map.setStyle(e, t), J(this, Z, se).call(this);
8243
+ L(this, re) || this.map.setStyle(e, t), Q(this, Z, se).call(this);
8234
8244
  }
8235
8245
  addLayer(e, t) {
8236
- return k(this, re) || this.map.addLayer(e, t), J(this, Z, se).call(this), this.map;
8246
+ return L(this, re) || this.map.addLayer(e, t), Q(this, Z, se).call(this), this.map;
8237
8247
  }
8238
8248
  moveLayer(e, t) {
8239
- return k(this, re) || this.map.moveLayer(e, t), J(this, Z, se).call(this), this.map;
8249
+ return L(this, re) || this.map.moveLayer(e, t), Q(this, Z, se).call(this), this.map;
8240
8250
  }
8241
8251
  removeLayer(e) {
8242
- return k(this, re) || this.map.removeLayer(e), J(this, Z, se).call(this), this;
8252
+ return L(this, re) || this.map.removeLayer(e), Q(this, Z, se).call(this), this;
8243
8253
  }
8244
8254
  setLayerZoomRange(e, t, n) {
8245
- return k(this, re) || this.map.setLayerZoomRange(e, t, n), J(this, Z, se).call(this), this;
8255
+ return L(this, re) || this.map.setLayerZoomRange(e, t, n), Q(this, Z, se).call(this), this;
8246
8256
  }
8247
8257
  setFilter(e, t, n) {
8248
- return k(this, re) || this.map.setFilter(e, t, n), J(this, Z, se).call(this), this;
8258
+ return L(this, re) || this.map.setFilter(e, t, n), Q(this, Z, se).call(this), this;
8249
8259
  }
8250
8260
  setPaintProperty(e, t, n, a) {
8251
- return k(this, re) || this.map.setPaintProperty(e, t, n, a), J(this, Z, se).call(this), this;
8261
+ return L(this, re) || this.map.setPaintProperty(e, t, n, a), Q(this, Z, se).call(this), this;
8252
8262
  }
8253
8263
  setLayoutProperty(e, t, n, a) {
8254
- return k(this, re) || this.map.setLayoutProperty(e, t, n, a), J(this, Z, se).call(this), this;
8264
+ return L(this, re) || this.map.setLayoutProperty(e, t, n, a), Q(this, Z, se).call(this), this;
8255
8265
  }
8256
8266
  setGlyphs(e, t) {
8257
- return k(this, re) || this.map.setGlyphs(e, t), J(this, Z, se).call(this), this;
8267
+ return L(this, re) || this.map.setGlyphs(e, t), Q(this, Z, se).call(this), this;
8258
8268
  }
8259
8269
  onAdd(e) {
8260
- W(this, ue, e), W(this, Me, Ce("div", "maplibregl-ctrl maplibregl-ctrl-group"));
8261
- for (const [t, n] of Object.entries(k(this, ee).containerStyle))
8262
- k(this, Me).style.setProperty(t, n);
8263
- return k(this, ee).container = k(this, Me), k(this, ee).zoom = e.getZoom() + k(this, ee).zoomAdjust, this.map = new Po(k(this, ee)), this.map.once("style.load", () => {
8270
+ J(this, ue, e), J(this, Me, Ce("div", "maplibregl-ctrl maplibregl-ctrl-group"));
8271
+ for (const [t, n] of Object.entries(L(this, te).containerStyle))
8272
+ L(this, Me).style.setProperty(t, n);
8273
+ return L(this, te).container = L(this, Me), L(this, te).zoom = e.getZoom() + L(this, te).zoomAdjust, this.map = new Po(L(this, te)), this.map.once("style.load", () => {
8264
8274
  this.map.resize();
8265
8275
  }), this.map.once("load", () => {
8266
- J(this, Z, To).call(this, k(this, ee).parentRect), W(this, At, J(this, Z, _o).call(this));
8267
- }), k(this, Me);
8276
+ Q(this, Z, To).call(this, L(this, te).parentRect), J(this, At, Q(this, Z, _o).call(this));
8277
+ }), L(this, Me);
8268
8278
  }
8269
8279
  onRemove() {
8270
8280
  var e;
8271
- (e = k(this, At)) == null || e.call(this), Lt(k(this, Me));
8281
+ (e = L(this, At)) == null || e.call(this), Lt(L(this, Me));
8272
8282
  }
8273
8283
  }
8274
- ee = new WeakMap(), ue = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(), re = new WeakMap(), At = new WeakMap(), Z = new WeakSet(), To = function(e) {
8275
- e === void 0 || e.linePaint === void 0 && e.fillPaint === void 0 || (W(this, Pe, {
8284
+ te = new WeakMap(), ue = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(), re = new WeakMap(), At = new WeakMap(), Z = new WeakSet(), To = function(e) {
8285
+ e === void 0 || e.linePaint === void 0 && e.fillPaint === void 0 || (J(this, Pe, {
8276
8286
  type: "Feature",
8277
8287
  properties: {
8278
8288
  name: "parentRect"
@@ -8283,7 +8293,7 @@ ee = new WeakMap(), ue = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(),
8283
8293
  }
8284
8294
  }), this.map.addSource("parentRect", {
8285
8295
  type: "geojson",
8286
- data: k(this, Pe)
8296
+ data: L(this, Pe)
8287
8297
  }), (e.lineLayout !== void 0 || e.linePaint !== void 0) && this.map.addLayer({
8288
8298
  id: "parentRectOutline",
8289
8299
  type: "line",
@@ -8307,37 +8317,37 @@ ee = new WeakMap(), ue = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(),
8307
8317
  "fill-opacity": 0.135,
8308
8318
  ...e.fillPaint
8309
8319
  }
8310
- }), J(this, Z, se).call(this));
8320
+ }), Q(this, Z, se).call(this));
8311
8321
  }, se = function() {
8312
- if (k(this, Pe) === void 0) return;
8313
- const { devicePixelRatio: e } = window, t = k(this, ue).getCanvas(), n = t.width / e, a = t.height / e, o = k(this, ue).unproject.bind(k(this, ue)), i = o([0, 0]), s = o([n, 0]), l = o([0, a]), u = o([n, a]);
8314
- k(this, Pe).geometry.coordinates = [[l.toArray(), u.toArray(), s.toArray(), i.toArray(), l.toArray()]];
8322
+ if (L(this, Pe) === void 0) return;
8323
+ const { devicePixelRatio: e } = window, t = L(this, ue).getCanvas(), n = t.width / e, a = t.height / e, o = L(this, ue).unproject.bind(L(this, ue)), i = o([0, 0]), s = o([n, 0]), l = o([0, a]), u = o([n, a]);
8324
+ L(this, Pe).geometry.coordinates = [[l.toArray(), u.toArray(), s.toArray(), i.toArray(), l.toArray()]];
8315
8325
  const c = this.map.getSource("parentRect");
8316
- c !== void 0 && c.setData(k(this, Pe));
8326
+ c !== void 0 && c.setData(L(this, Pe));
8317
8327
  }, _o = function() {
8318
- const { pitchAdjust: e } = k(this, ee), t = () => {
8328
+ const { pitchAdjust: e } = L(this, te), t = () => {
8319
8329
  i("parent");
8320
8330
  }, n = () => {
8321
8331
  i("minimap");
8322
8332
  }, a = () => {
8323
- k(this, ue).on("move", t), this.map.on("move", n);
8333
+ L(this, ue).on("move", t), this.map.on("move", n);
8324
8334
  }, o = () => {
8325
- k(this, ue).off("move", t), this.map.off("move", n);
8335
+ L(this, ue).off("move", t), this.map.off("move", n);
8326
8336
  }, i = (s) => {
8327
8337
  o();
8328
- const l = s === "parent" ? k(this, ue) : this.map, u = s === "parent" ? this.map : k(this, ue), c = l.getCenter(), p = l.getZoom() + k(this, ee).zoomAdjust * (s === "parent" ? 1 : -1), d = l.getBearing(), f = l.getPitch();
8338
+ const l = s === "parent" ? L(this, ue) : this.map, u = s === "parent" ? this.map : L(this, ue), c = l.getCenter(), p = l.getZoom() + L(this, te).zoomAdjust * (s === "parent" ? 1 : -1), d = l.getBearing(), f = l.getPitch();
8329
8339
  u.jumpTo({
8330
8340
  center: c,
8331
8341
  zoom: p,
8332
8342
  bearing: d,
8333
8343
  pitch: e ? f : 0
8334
- }), J(this, Z, se).call(this), a();
8344
+ }), Q(this, Z, se).call(this), a();
8335
8345
  };
8336
8346
  return a(), () => {
8337
8347
  o();
8338
8348
  };
8339
8349
  };
8340
- class mu {
8350
+ class yu {
8341
8351
  /**
8342
8352
  *
8343
8353
  * @param map : a Map instance
@@ -8373,7 +8383,7 @@ class mu {
8373
8383
  this.viewerType = e;
8374
8384
  }
8375
8385
  preparePayload() {
8376
- const e = new URL(te.telemetryURL);
8386
+ const e = new URL(W.telemetryURL);
8377
8387
  return e.searchParams.append("sdk", oi()), e.searchParams.append("key", j.apiKey), e.searchParams.append("mtsid", on), e.searchParams.append("session", j.session ? "1" : "0"), e.searchParams.append("caching", j.caching ? "1" : "0"), e.searchParams.append("lang-updated", this.map.isLanguageUpdated() ? "1" : "0"), e.searchParams.append("terrain", this.map.getTerrain() ? "1" : "0"), e.searchParams.append("globe", this.map.isGlobeProjection() ? "1" : "0"), e.searchParams.append("viewerType", this.viewerType), this.registeredModules.size > 0 && e.searchParams.append("modules", Array.from(this.registeredModules).join("|")), e.href;
8378
8388
  }
8379
8389
  }
@@ -8382,14 +8392,14 @@ function mt() {
8382
8392
  var r = new Ct(16);
8383
8393
  return Ct != Float32Array && (r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[11] = 0, r[12] = 0, r[13] = 0, r[14] = 0), r[0] = 1, r[5] = 1, r[10] = 1, r[15] = 1, r;
8384
8394
  }
8385
- function yu(r, e, t, n, a, o, i, s, l, u, c, p, d, f, h, m, y) {
8395
+ function gu(r, e, t, n, a, o, i, s, l, u, c, p, d, f, h, m, y) {
8386
8396
  return r[0] = e, r[1] = t, r[2] = n, r[3] = a, r[4] = o, r[5] = i, r[6] = s, r[7] = l, r[8] = u, r[9] = c, r[10] = p, r[11] = d, r[12] = f, r[13] = h, r[14] = m, r[15] = y, r;
8387
8397
  }
8388
- function gu(r, e, t) {
8398
+ function vu(r, e, t) {
8389
8399
  var n = e[0], a = e[1], o = e[2], i = e[3], s = e[4], l = e[5], u = e[6], c = e[7], p = e[8], d = e[9], f = e[10], h = e[11], m = e[12], y = e[13], b = e[14], v = e[15], x = t[0], E = t[1], C = t[2], T = t[3];
8390
8400
  return r[0] = x * n + E * s + C * p + T * m, r[1] = x * a + E * l + C * d + T * y, r[2] = x * o + E * u + C * f + T * b, r[3] = x * i + E * c + C * h + T * v, x = t[4], E = t[5], C = t[6], T = t[7], r[4] = x * n + E * s + C * p + T * m, r[5] = x * a + E * l + C * d + T * y, r[6] = x * o + E * u + C * f + T * b, r[7] = x * i + E * c + C * h + T * v, x = t[8], E = t[9], C = t[10], T = t[11], r[8] = x * n + E * s + C * p + T * m, r[9] = x * a + E * l + C * d + T * y, r[10] = x * o + E * u + C * f + T * b, r[11] = x * i + E * c + C * h + T * v, x = t[12], E = t[13], C = t[14], T = t[15], r[12] = x * n + E * s + C * p + T * m, r[13] = x * a + E * l + C * d + T * y, r[14] = x * o + E * u + C * f + T * b, r[15] = x * i + E * c + C * h + T * v, r;
8391
8401
  }
8392
- function vu(r, e, t) {
8402
+ function bu(r, e, t) {
8393
8403
  var n = t[0], a = t[1], o = t[2];
8394
8404
  return r[0] = e[0] * n, r[1] = e[1] * n, r[2] = e[2] * n, r[3] = e[3] * n, r[4] = e[4] * a, r[5] = e[5] * a, r[6] = e[6] * a, r[7] = e[7] * a, r[8] = e[8] * o, r[9] = e[9] * o, r[10] = e[10] * o, r[11] = e[11] * o, r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15], r;
8395
8405
  }
@@ -8397,7 +8407,7 @@ function fa(r, e, t) {
8397
8407
  var n = Math.sin(t), a = Math.cos(t), o = e[4], i = e[5], s = e[6], l = e[7], u = e[8], c = e[9], p = e[10], d = e[11];
8398
8408
  return e !== r && (r[0] = e[0], r[1] = e[1], r[2] = e[2], r[3] = e[3], r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15]), r[4] = o * a + u * n, r[5] = i * a + c * n, r[6] = s * a + p * n, r[7] = l * a + d * n, r[8] = u * a - o * n, r[9] = c * a - i * n, r[10] = p * a - s * n, r[11] = d * a - l * n, r;
8399
8409
  }
8400
- function bu(r, e, t) {
8410
+ function wu(r, e, t) {
8401
8411
  var n = Math.sin(t), a = Math.cos(t), o = e[0], i = e[1], s = e[2], l = e[3], u = e[8], c = e[9], p = e[10], d = e[11];
8402
8412
  return e !== r && (r[4] = e[4], r[5] = e[5], r[6] = e[6], r[7] = e[7], r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15]), r[0] = o * a - u * n, r[1] = i * a - c * n, r[2] = s * a - p * n, r[3] = l * a - d * n, r[8] = o * n + u * a, r[9] = i * n + c * a, r[10] = s * n + p * a, r[11] = l * n + d * a, r;
8403
8413
  }
@@ -8405,7 +8415,7 @@ function da(r, e, t) {
8405
8415
  var n = Math.sin(t), a = Math.cos(t), o = e[0], i = e[1], s = e[2], l = e[3], u = e[4], c = e[5], p = e[6], d = e[7];
8406
8416
  return e !== r && (r[8] = e[8], r[9] = e[9], r[10] = e[10], r[11] = e[11], r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15]), r[0] = o * a + u * n, r[1] = i * a + c * n, r[2] = s * a + p * n, r[3] = l * a + d * n, r[4] = u * a - o * n, r[5] = c * a - i * n, r[6] = p * a - s * n, r[7] = d * a - l * n, r;
8407
8417
  }
8408
- function wu(r, e, t, n, a) {
8418
+ function Su(r, e, t, n, a) {
8409
8419
  var o = 1 / Math.tan(e / 2);
8410
8420
  if (r[0] = o / t, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = o, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[11] = -1, r[12] = 0, r[13] = 0, r[15] = 0, a != null && a !== 1 / 0) {
8411
8421
  var i = 1 / (n - a);
@@ -8414,12 +8424,12 @@ function wu(r, e, t, n, a) {
8414
8424
  r[10] = -1, r[14] = -2 * n;
8415
8425
  return r;
8416
8426
  }
8417
- var Su = wu;
8427
+ var xu = Su;
8418
8428
  function Dt() {
8419
8429
  var r = new Ct(3);
8420
8430
  return Ct != Float32Array && (r[0] = 0, r[1] = 0, r[2] = 0), r;
8421
8431
  }
8422
- function xu(r, e, t) {
8432
+ function ku(r, e, t) {
8423
8433
  var n = new Ct(3);
8424
8434
  return n[0] = r, n[1] = e, n[2] = t, n;
8425
8435
  }
@@ -8440,11 +8450,11 @@ function ha(r, e, t) {
8440
8450
  return e;
8441
8451
  };
8442
8452
  })();
8443
- function ku(r) {
8453
+ function Lu(r) {
8444
8454
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
8445
8455
  }
8446
8456
  var Mr, ma;
8447
- function Lu() {
8457
+ function Cu() {
8448
8458
  return ma || (ma = 1, Mr = {
8449
8459
  aliceblue: [240, 248, 255],
8450
8460
  antiquewhite: [250, 235, 215],
@@ -8600,7 +8610,7 @@ var Pr, ya;
8600
8610
  function Io() {
8601
8611
  if (ya) return Pr;
8602
8612
  ya = 1;
8603
- const r = Lu(), e = {};
8613
+ const r = Cu(), e = {};
8604
8614
  for (const a of Object.keys(r))
8605
8615
  e[r[a]] = a;
8606
8616
  const t = {
@@ -8900,7 +8910,7 @@ function Io() {
8900
8910
  }, Pr;
8901
8911
  }
8902
8912
  var Rr, ga;
8903
- function Cu() {
8913
+ function Eu() {
8904
8914
  if (ga) return Rr;
8905
8915
  ga = 1;
8906
8916
  const r = Io();
@@ -8948,10 +8958,10 @@ function Cu() {
8948
8958
  }, Rr;
8949
8959
  }
8950
8960
  var zr, va;
8951
- function Eu() {
8961
+ function Au() {
8952
8962
  if (va) return zr;
8953
8963
  va = 1;
8954
- const r = Io(), e = Cu(), t = {}, n = Object.keys(r);
8964
+ const r = Io(), e = Eu(), t = {}, n = Object.keys(r);
8955
8965
  function a(i) {
8956
8966
  const s = function(...l) {
8957
8967
  const u = l[0];
@@ -8982,8 +8992,8 @@ function Eu() {
8982
8992
  });
8983
8993
  }), zr = t, zr;
8984
8994
  }
8985
- var Au = Eu();
8986
- const Tu = /* @__PURE__ */ ku(Au);
8995
+ var Tu = Au();
8996
+ const _u = /* @__PURE__ */ Lu(Tu);
8987
8997
  function ba({ gl: r, type: e, source: t }) {
8988
8998
  const n = r.createShader(e);
8989
8999
  if (n === null)
@@ -8992,7 +9002,7 @@ function ba({ gl: r, type: e, source: t }) {
8992
9002
  throw console.error("Shader compilation error:", r.getShaderInfoLog(n)), r.deleteShader(n), new Error("Cannot compile shader");
8993
9003
  return n;
8994
9004
  }
8995
- function _u({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }) {
9005
+ function Iu({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }) {
8996
9006
  const n = ba({
8997
9007
  gl: r,
8998
9008
  type: r.VERTEX_SHADER,
@@ -9002,7 +9012,7 @@ function _u({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }) {
9002
9012
  throw console.error("Error: ", r.getProgramInfoLog(o)), new Error("Cannot link shader program");
9003
9013
  return o;
9004
9014
  }
9005
- function Iu(r, e, t) {
9015
+ function Mu(r, e, t) {
9006
9016
  const n = r.getUniformLocation(e, t);
9007
9017
  if (n === null)
9008
9018
  throw new Error(`Cannot get uniform location for ${t}`);
@@ -9017,7 +9027,7 @@ function Mo({
9017
9027
  vertices: o,
9018
9028
  indices: i
9019
9029
  }) {
9020
- const s = _u({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }), l = n.reduce((f, h) => (f[h] = r.getAttribLocation(s, `a_${h}`), f), {}), u = a.reduce((f, h) => (f[h] = Iu(r, s, `u_${h}`), f), {}), c = r.createBuffer();
9030
+ const s = Iu({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }), l = n.reduce((f, h) => (f[h] = r.getAttribLocation(s, `a_${h}`), f), {}), u = a.reduce((f, h) => (f[h] = Mu(r, s, `u_${h}`), f), {}), c = r.createBuffer();
9021
9031
  r.bindBuffer(r.ARRAY_BUFFER, c), r.bufferData(r.ARRAY_BUFFER, new Float32Array(o), r.STATIC_DRAW);
9022
9032
  let p, d;
9023
9033
  return i !== void 0 && (p = r.createBuffer(), d = i.length, r.bindBuffer(r.ELEMENT_ARRAY_BUFFER, p), r.bufferData(r.ELEMENT_ARRAY_BUFFER, new Uint16Array(i), r.STATIC_DRAW)), {
@@ -9037,10 +9047,10 @@ function Ut(r) {
9037
9047
  if (r === "transparent")
9038
9048
  return [1, 1, 1, 0];
9039
9049
  try {
9040
- const e = Mu(r), t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);
9050
+ const e = Pu(r), t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);
9041
9051
  if (t != null && t.length) {
9042
9052
  const a = !!t[4];
9043
- return [...Tu.hex.rgb(e).map((o) => o / 255), a ? parseInt(t[4], 16) / 255 : 1];
9053
+ return [..._u.hex.rgb(e).map((o) => o / 255), a ? parseInt(t[4], 16) / 255 : 1];
9044
9054
  }
9045
9055
  const n = e.match(/(\d\.\d(\d+)?|\d{3}|\d{2}|\d{1})/gi) ?? ["0", "0", "0"];
9046
9056
  if (e.includes("rgb")) {
@@ -9055,10 +9065,10 @@ function Ut(r) {
9055
9065
  return console.warn([`[parseColorStringToVec4]: Color ${r} is either not a valid color or its type is not supported, defaulting to black`]), [0, 0, 0, 1];
9056
9066
  }
9057
9067
  let pt;
9058
- function Mu(r) {
9068
+ function Pu(r) {
9059
9069
  return pt = pt ?? document.createElement("canvas").getContext("2d"), pt ? (pt.fillStyle = r, pt.fillStyle) : "#000000";
9060
9070
  }
9061
- const Tn = 1, U = Tn / 2, B = Tn / 2, q = Tn / 2, Pu = [-U, -B, q, U, -B, q, U, B, q, -U, B, q], Ru = [-U, -B, -q, -U, B, -q, U, B, -q, U, -B, -q], zu = [-U, B, -q, -U, B, q, U, B, q, U, B, -q], Ou = [-U, -B, -q, U, -B, -q, U, -B, q, -U, -B, q], Fu = [U, -B, -q, U, B, -q, U, B, q, U, -B, q], $u = [-U, -B, -q, -U, -B, q, -U, B, q, -U, B, -q], Nu = [...Pu, ...Ru, ...zu, ...Ou, ...Fu, ...$u], ju = [
9071
+ const Tn = 1, U = Tn / 2, B = Tn / 2, q = Tn / 2, Ru = [-U, -B, q, U, -B, q, U, B, q, -U, B, q], zu = [-U, -B, -q, -U, B, -q, U, B, -q, U, -B, -q], Ou = [-U, B, -q, -U, B, q, U, B, q, U, B, -q], Fu = [-U, -B, -q, U, -B, -q, U, -B, q, -U, -B, q], $u = [U, -B, -q, U, B, -q, U, B, q, U, -B, q], Nu = [-U, -B, -q, -U, -B, q, -U, B, q, -U, B, -q], ju = [...Ru, ...zu, ...Ou, ...Fu, ...$u, ...Nu], Du = [
9062
9072
  // Front
9063
9073
  0,
9064
9074
  1,
@@ -9101,7 +9111,7 @@ const Tn = 1, U = Tn / 2, B = Tn / 2, q = Tn / 2, Pu = [-U, -B, q, U, -B, q, U,
9101
9111
  20,
9102
9112
  22,
9103
9113
  23
9104
- ], Du = `attribute vec3 a_vertexPosition;
9114
+ ], Uu = `attribute vec3 a_vertexPosition;
9105
9115
  varying vec3 vTextureCoord;
9106
9116
 
9107
9117
  uniform mat4 u_projectionMatrix;
@@ -9141,7 +9151,7 @@ void main(void) {
9141
9151
  #endif
9142
9152
  }
9143
9153
  `;
9144
- var Uu = /* @__PURE__ */ ((r) => (r.UNIVERSE_DARK = "universe-dark", r))(Uu || {});
9154
+ var Bu = /* @__PURE__ */ ((r) => (r.UNIVERSE_DARK = "universe-dark", r))(Bu || {});
9145
9155
  const Ge = {
9146
9156
  stars: {
9147
9157
  color: "hsl(233,100%,92%)",
@@ -9170,13 +9180,13 @@ const Ge = {
9170
9180
  };
9171
9181
  var Ne = /* @__PURE__ */ ((r) => (r.POSITIVE_X = "pX", r.NEGATIVE_X = "nX", r.POSITIVE_Y = "pY", r.NEGATIVE_Y = "nY", r.POSITIVE_Z = "pZ", r.NEGATIVE_Z = "nZ", r))(Ne || {});
9172
9182
  const tt = /* @__PURE__ */ new Map();
9173
- function Bu(r) {
9183
+ function qu(r) {
9174
9184
  const e = tt.get(r);
9175
9185
  e && (tt.delete(r), r.deleteTexture(e));
9176
9186
  }
9177
9187
  const Sa = /* @__PURE__ */ new Map();
9178
9188
  let xa;
9179
- function qu({ gl: r, faces: e, onReady: t, forceRefresh: n }) {
9189
+ function Vu({ gl: r, faces: e, onReady: t, forceRefresh: n }) {
9180
9190
  if (tt.get(r) && !n && xa === JSON.stringify(e)) {
9181
9191
  t(tt.get(r), Sa.get(r));
9182
9192
  return;
@@ -9214,7 +9224,7 @@ function qu({ gl: r, faces: e, onReady: t, forceRefresh: n }) {
9214
9224
  console.warn("[CubemapLayer][loadCubemapTexture]: Image or key is null");
9215
9225
  continue;
9216
9226
  }
9217
- const y = Vu(r, m);
9227
+ const y = Gu(r, m);
9218
9228
  r.bindTexture(r.TEXTURE_CUBE_MAP, a), r.texParameteri(r.TEXTURE_CUBE_MAP, r.TEXTURE_MAG_FILTER, r.LINEAR), r.texParameteri(r.TEXTURE_CUBE_MAP, r.TEXTURE_MIN_FILTER, r.LINEAR), r.texParameteri(r.TEXTURE_CUBE_MAP, r.TEXTURE_WRAP_S, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_CUBE_MAP, r.TEXTURE_WRAP_T, r.CLAMP_TO_EDGE), r.texImage2D(y, 0, p, d, f, h);
9219
9229
  }
9220
9230
  r.bindTexture(r.TEXTURE_CUBE_MAP, a), r.generateMipmap(r.TEXTURE_CUBE_MAP), r.texParameteri(r.TEXTURE_CUBE_MAP, r.TEXTURE_MIN_FILTER, r.LINEAR_MIPMAP_LINEAR), r.texParameteri(r.TEXTURE_CUBE_MAP, r.TEXTURE_MAG_FILTER, r.LINEAR);
@@ -9224,7 +9234,7 @@ function qu({ gl: r, faces: e, onReady: t, forceRefresh: n }) {
9224
9234
  console.error("[CubemapLayer][loadCubemapTexture]: Error loading cubemap texture", s);
9225
9235
  });
9226
9236
  }
9227
- function Vu(r, e) {
9237
+ function Gu(r, e) {
9228
9238
  if (e === Ne.POSITIVE_X)
9229
9239
  return r.TEXTURE_CUBE_MAP_POSITIVE_X;
9230
9240
  if (e === Ne.NEGATIVE_X)
@@ -9239,7 +9249,7 @@ function Vu(r, e) {
9239
9249
  return r.TEXTURE_CUBE_MAP_NEGATIVE_Z;
9240
9250
  throw new Error(`[CubemapLayer][loadCubemapTexture]: Invalid key ${e}`);
9241
9251
  }
9242
- function Gu(r, e, t) {
9252
+ function Hu(r, e, t) {
9243
9253
  return [
9244
9254
  ze(r[0], e[0], t),
9245
9255
  ze(r[1], e[1], t),
@@ -9256,8 +9266,8 @@ function Jt(r) {
9256
9266
  const e = Object.keys(r).sort().map((t) => [t, r[t]]);
9257
9267
  return Object.fromEntries(e);
9258
9268
  }
9259
- const Je = "https://api.maptiler.com/resources/space", Hu = ["vertexPosition"], Zu = ["projectionMatrix", "modelViewMatrix", "cubeSampler", "bgColor", "fadeOpacity"], ka = "%USE_TEXTURE_MACRO_MARKER%", Ku = "#define USE_TEXTURE", La = Ge.stars;
9260
- function Xu(r, e) {
9269
+ const Je = "https://api.maptiler.com/resources/space", Zu = ["vertexPosition"], Ku = ["projectionMatrix", "modelViewMatrix", "cubeSampler", "bgColor", "fadeOpacity"], ka = "%USE_TEXTURE_MACRO_MARKER%", Xu = "#define USE_TEXTURE", La = Ge.stars;
9270
+ function Yu(r, e) {
9261
9271
  if (!Xr(r))
9262
9272
  return {
9263
9273
  color: "transparent"
@@ -9400,7 +9410,7 @@ class Or {
9400
9410
  * @private
9401
9411
  */
9402
9412
  g(this, "imageFadeInDelta", 0);
9403
- const t = Xu(e, La);
9413
+ const t = Yu(e, La);
9404
9414
  this.options = t, this.currentFacesDefinitionKey = JSON.stringify(t.faces ?? t.preset ?? t.path), this.bgColor = [0, 0, 0, 0], this.targetBgColor = Ut(t.color), this.faces = Ca(t), this.useCubemapTexture = this.faces !== null;
9405
9415
  }
9406
9416
  /**
@@ -9413,16 +9423,16 @@ class Or {
9413
9423
  */
9414
9424
  updateCubemap({ facesNeedUpdate: e } = { facesNeedUpdate: !0 }) {
9415
9425
  this.useCubemapTexture = this.faces !== null;
9416
- const t = Zu.filter((n) => n === "cubeSampler" || n === "fadeOpacity" ? this.useCubemapTexture : !0);
9426
+ const t = Ku.filter((n) => n === "cubeSampler" || n === "fadeOpacity" ? this.useCubemapTexture : !0);
9417
9427
  this.cubemap = Mo({
9418
9428
  gl: this.gl,
9419
- vertexShaderSource: Du,
9429
+ vertexShaderSource: Uu,
9420
9430
  // Because we only want to use the read the texture in gl if we're supposed to
9421
- fragmentShaderSource: this.useCubemapTexture ? wa.replace(ka, Ku) : wa.replace(ka, ""),
9422
- attributesKeys: Hu,
9431
+ fragmentShaderSource: this.useCubemapTexture ? wa.replace(ka, Xu) : wa.replace(ka, ""),
9432
+ attributesKeys: Zu,
9423
9433
  uniformsKeys: t,
9424
- vertices: Nu,
9425
- indices: ju
9434
+ vertices: ju,
9435
+ indices: Du
9426
9436
  }), this.cubeMapNeedsUpdate = e, this.useCubemapTexture && this.updateTexture(this.gl, this.faces), this.animateColorChange();
9427
9437
  }
9428
9438
  /**
@@ -9443,7 +9453,7 @@ class Or {
9443
9453
  * @param {WebGLRenderingContext | WebGL2RenderingContext} gl - The WebGL context used for rendering.
9444
9454
  */
9445
9455
  onRemove(e, t) {
9446
- this.cubemap && (this.texture && (Bu(t), this.texture = void 0), t.deleteProgram(this.cubemap.shaderProgram), t.deleteBuffer(this.cubemap.positionBuffer));
9456
+ this.cubemap && (this.texture && (qu(t), this.texture = void 0), t.deleteProgram(this.cubemap.shaderProgram), t.deleteBuffer(this.cubemap.positionBuffer));
9447
9457
  }
9448
9458
  /**
9449
9459
  * Updates the cubemap texture with the provided faces.
@@ -9456,7 +9466,7 @@ class Or {
9456
9466
  if (this.cubeMapNeedsUpdate === !0 && !this.imageIsAnimating) {
9457
9467
  if (this.cubeMapNeedsUpdate = !1, !this.useCubemapTexture)
9458
9468
  return;
9459
- qu({
9469
+ Vu({
9460
9470
  gl: e,
9461
9471
  faces: t,
9462
9472
  onReady: (n) => {
@@ -9483,7 +9493,7 @@ class Or {
9483
9493
  */
9484
9494
  animateColorChange() {
9485
9495
  const e = () => {
9486
- this.transitionDelta < 1 && (requestAnimationFrame(e), this.bgColor = Gu(this.previousBgColor, this.targetBgColor, this.transitionDelta), this.transitionDelta += 0.075, this.map.triggerRepaint());
9496
+ this.transitionDelta < 1 && (requestAnimationFrame(e), this.bgColor = Hu(this.previousBgColor, this.targetBgColor, this.transitionDelta), this.transitionDelta += 0.075, this.map.triggerRepaint());
9487
9497
  };
9488
9498
  requestAnimationFrame(e);
9489
9499
  }
@@ -9550,9 +9560,9 @@ class Or {
9550
9560
  throw new Error("[CubemapLayer]: Cubemap is undefined");
9551
9561
  this.texture, e.disable(e.DEPTH_TEST), e.enable(e.BLEND), e.blendFunc(e.SRC_ALPHA, e.DST_ALPHA), e.useProgram(this.cubemap.shaderProgram), e.bindBuffer(e.ARRAY_BUFFER, this.cubemap.positionBuffer), e.vertexAttribPointer(this.cubemap.programInfo.attributesLocations.vertexPosition, 3, e.FLOAT, !1, 0, 0), e.enableVertexAttribArray(this.cubemap.programInfo.attributesLocations.vertexPosition);
9552
9562
  const n = 0.1, a = 1e4, o = e.canvas, i = o.clientWidth / o.clientHeight, s = this.map.transform, l = s.fov * (Math.PI / 180), u = mt();
9553
- Su(u, l, i, n, a), da(u, u, s.rollInRadians), fa(u, u, -s.pitchInRadians), da(u, u, s.bearingInRadians);
9563
+ xu(u, l, i, n, a), da(u, u, s.rollInRadians), fa(u, u, -s.pitchInRadians), da(u, u, s.bearingInRadians);
9554
9564
  const c = s.center.lat * Math.PI / 180, p = s.center.lng * Math.PI / 180;
9555
- fa(u, u, c), bu(u, u, -p), e.uniformMatrix4fv(this.cubemap.programInfo.uniformsLocations.projectionMatrix, !1, u);
9565
+ fa(u, u, c), wu(u, u, -p), e.uniformMatrix4fv(this.cubemap.programInfo.uniformsLocations.projectionMatrix, !1, u);
9556
9566
  const d = mt();
9557
9567
  if (e.uniformMatrix4fv(this.cubemap.programInfo.uniformsLocations.modelViewMatrix, !1, d), e.uniform4fv(this.cubemap.programInfo.uniformsLocations.bgColor, new Float32Array(this.bgColor)), e.uniform1f(this.cubemap.programInfo.uniformsLocations.fadeOpacity, this.currentFadeOpacity), this.useCubemapTexture && this.texture && (e.activeTexture(e.TEXTURE0), e.bindTexture(e.TEXTURE_CUBE_MAP, this.texture), e.uniform1i(this.cubemap.programInfo.uniformsLocations.cubeSampler, 0)), this.cubemap.indexBuffer === void 0)
9558
9568
  throw new Error("Index buffer is undefined");
@@ -9659,7 +9669,7 @@ function Ca(r) {
9659
9669
  }
9660
9670
  return null;
9661
9671
  }
9662
- const Yu = `attribute vec3 a_position;
9672
+ const Wu = `attribute vec3 a_position;
9663
9673
 
9664
9674
  uniform mat4 u_matrix;
9665
9675
  uniform mat4 u_rotationMatrix;
@@ -9674,7 +9684,7 @@ void main() {
9674
9684
  v_pos = a_position.xy * u_scale;
9675
9685
  gl_Position = u_matrix * u_rotationMatrix * vec4(a_position, 1.0);
9676
9686
  }
9677
- `, Wu = `precision mediump float;
9687
+ `, Ju = `precision mediump float;
9678
9688
  varying vec2 v_pos;
9679
9689
 
9680
9690
  uniform int u_stopsNumber;
@@ -9733,7 +9743,7 @@ void main() {
9733
9743
  // gl_FragColor = color;
9734
9744
  gl_FragColor = vec4(color.rgb * color.a, color.a);
9735
9745
  }
9736
- `, ke = 2, Ju = ["position"], Qu = ["matrix", "rotationMatrix", "stopsNumber", "stops", "colors", "maxDistance", "scale"], ec = [
9746
+ `, ke = 2, Qu = ["position"], ec = ["matrix", "rotationMatrix", "stopsNumber", "stops", "colors", "maxDistance", "scale"], tc = [
9737
9747
  -ke,
9738
9748
  -ke,
9739
9749
  0,
@@ -9834,11 +9844,11 @@ class Fr {
9834
9844
  onAdd(e, t) {
9835
9845
  this.map = e, this.plane = Mo({
9836
9846
  gl: t,
9837
- vertexShaderSource: Yu,
9838
- fragmentShaderSource: Wu,
9839
- attributesKeys: Ju,
9840
- uniformsKeys: Qu,
9841
- vertices: ec
9847
+ vertexShaderSource: Wu,
9848
+ fragmentShaderSource: Ju,
9849
+ attributesKeys: Qu,
9850
+ uniformsKeys: ec,
9851
+ vertices: tc
9842
9852
  }), this.animateIn();
9843
9853
  }
9844
9854
  /**
@@ -9932,15 +9942,15 @@ class Fr {
9932
9942
  const n = this.plane.programInfo.attributesLocations.position;
9933
9943
  e.enableVertexAttribArray(n), e.vertexAttribPointer(n, 3, e.FLOAT, !1, 0, 0);
9934
9944
  const a = mt(), o = this.scale;
9935
- vu(a, a, [o, o, o]);
9945
+ bu(a, a, [o, o, o]);
9936
9946
  const i = mt();
9937
- gu(i, t.defaultProjectionData.mainMatrix, a);
9947
+ vu(i, t.defaultProjectionData.mainMatrix, a);
9938
9948
  const s = this.plane.programInfo.uniformsLocations.matrix;
9939
9949
  e.uniformMatrix4fv(s, !1, i);
9940
- const l = mt(), u = this.map.transform.cameraPosition, c = Ir(Dt(), u), p = xu(0, 1, 0), d = Dt();
9950
+ const l = mt(), u = this.map.transform.cameraPosition, c = Ir(Dt(), u), p = ku(0, 1, 0), d = Dt();
9941
9951
  ha(d, p, c), Ir(d, d);
9942
9952
  const f = Dt();
9943
- ha(f, c, d), Ir(f, f), yu(l, d[0], d[1], d[2], 0, f[0], f[1], f[2], 0, c[0], c[1], c[2], 0, 0, 0, 0, 1);
9953
+ ha(f, c, d), Ir(f, f), gu(l, d[0], d[1], d[2], 0, f[0], f[1], f[2], 0, c[0], c[1], c[2], 0, 0, 0, 0, 1);
9944
9954
  const h = this.plane.programInfo.uniformsLocations.rotationMatrix;
9945
9955
  e.uniformMatrix4fv(h, !1, l);
9946
9956
  const m = this.gradient.stops.length, y = [], b = [];
@@ -9985,21 +9995,21 @@ class Fr {
9985
9995
  this.map.setLayoutProperty(this.id, "visibility", "none");
9986
9996
  }
9987
9997
  }
9988
- const tc = ["scale", "stops"];
9998
+ const rc = ["scale", "stops"];
9989
9999
  function Aa(r) {
9990
10000
  var t;
9991
10001
  const e = [];
9992
10002
  if (typeof r == "boolean")
9993
10003
  return [];
9994
10004
  try {
9995
- const n = Object.keys(r).filter((a) => !tc.includes(a));
10005
+ const n = Object.keys(r).filter((a) => !rc.includes(a));
9996
10006
  n.length > 0 && e.push(`Properties ${n.map((a) => `\`${a}\``).join(", ")} are not supported.`);
9997
10007
  } catch {
9998
10008
  e.push("Halo specification is not an object.");
9999
10009
  }
10000
10010
  return typeof r.scale != "number" && e.push("Halo `scale` property is not a number."), (!r.stops || r.stops.length === 0) && e.push("Halo `stops` property is not an array."), (t = r.stops) != null && t.some((n) => typeof n[0] != "number" || typeof n[1] != "string") && e.push("Halo `stops` property is not an array of [number, string]"), e;
10001
10011
  }
10002
- function rc() {
10012
+ function nc() {
10003
10013
  const r = "color: #3A1888; background: white; padding: 5px 0; font-weight: bold;", e = "color: #FBC935; background: white; padding: 5px; font-weight: bold;", t = "color: #F1175D; background: white; padding: 5px 0; font-weight: bold;";
10004
10014
  console.info(
10005
10015
  `%c❖%c❖%c❖ %cMapTiler SDK JS v${oi()} %c❖%c❖%c❖`,
@@ -10012,13 +10022,13 @@ function rc() {
10012
10022
  e + "padding-left: 0;"
10013
10023
  );
10014
10024
  }
10015
- const nc = {
10025
+ const ac = {
10016
10026
  POINT: "POINT",
10017
10027
  COUNTRY: "COUNTRY"
10018
10028
  };
10019
- let Po = class Ro extends L.Map {
10029
+ let Po = class Ro extends k.Map {
10020
10030
  constructor(t) {
10021
- t.logSDKVersion !== !1 && rc(), Di(t.container), t.apiKey && (j.apiKey = t.apiKey);
10031
+ t.logSDKVersion !== !1 && nc(), Ui(t.container), t.apiKey && (j.apiKey = t.apiKey);
10022
10032
  const { style: n, requiresUrlMonitoring: a, isFallback: o } = ua(t.style);
10023
10033
  o && console.warn(
10024
10034
  "Invalid style. A style must be a valid URL to a style.json, a JSON string representing a valid StyleSpecification or a valid StyleSpecification object. Fallback to default MapTiler style."
@@ -10070,9 +10080,9 @@ let Po = class Ro extends L.Map {
10070
10080
  this.getStyle() ? h += " Leaving the style as is." : (this.setStyle(ft.STREETS), h += `Loading default MapTiler Cloud style "${ft.STREETS.getDefaultVariant().getId()}" as a fallback.`), console.warn(h);
10071
10081
  };
10072
10082
  if (this.on("style.load", () => {
10073
- this.styleInProcess = !1;
10083
+ this.styleInProcess = !1, (typeof t.rtlTextPlugin == "string" || typeof t.rtlTextPlugin > "u") && $i(t.rtlTextPlugin);
10074
10084
  }), this.on("error", (h) => {
10075
- if (h.error instanceof L.AJAXError) {
10085
+ if (h.error instanceof k.AJAXError) {
10076
10086
  const y = h.error.url, b = new URL(y);
10077
10087
  b.search = "";
10078
10088
  const v = b.href;
@@ -10095,7 +10105,7 @@ let Po = class Ro extends L.Map {
10095
10105
  if (!t.geolocate || t.center || t.hash && i)
10096
10106
  return;
10097
10107
  try {
10098
- if (t.geolocate === nc.COUNTRY) {
10108
+ if (t.geolocate === ac.COUNTRY) {
10099
10109
  await this.fitToIpBounds();
10100
10110
  return;
10101
10111
  }
@@ -10186,13 +10196,13 @@ let Po = class Ro extends L.Map {
10186
10196
  }
10187
10197
  if (t.navigationControl !== !1) {
10188
10198
  const m = t.navigationControl === !0 || t.navigationControl === void 0 ? "top-right" : t.navigationControl;
10189
- this.addControl(new cu(), m);
10199
+ this.addControl(new pu(), m);
10190
10200
  }
10191
10201
  if (t.geolocateControl !== !1) {
10192
10202
  const m = t.geolocateControl === !0 || t.geolocateControl === void 0 ? "top-right" : t.geolocateControl;
10193
10203
  this.addControl(
10194
10204
  // new maplibregl.GeolocateControl({
10195
- new fu({
10205
+ new du({
10196
10206
  positionOptions: {
10197
10207
  enableHighAccuracy: !0,
10198
10208
  maximumAge: 0,
@@ -10210,11 +10220,11 @@ let Po = class Ro extends L.Map {
10210
10220
  }
10211
10221
  if (t.terrainControl) {
10212
10222
  const m = t.terrainControl === !0 || t.terrainControl === void 0 ? "top-right" : t.terrainControl;
10213
- this.addControl(new uu(), m);
10223
+ this.addControl(new cu(), m);
10214
10224
  }
10215
10225
  if (t.projectionControl) {
10216
10226
  const m = t.projectionControl === !0 || t.projectionControl === void 0 ? "top-right" : t.projectionControl;
10217
- this.addControl(new hu(), m);
10227
+ this.addControl(new mu(), m);
10218
10228
  }
10219
10229
  if (t.fullscreenControl) {
10220
10230
  const m = t.fullscreenControl === !0 || t.fullscreenControl === void 0 ? "top-right" : t.fullscreenControl;
@@ -10294,7 +10304,7 @@ let Po = class Ro extends L.Map {
10294
10304
  });
10295
10305
  const h = this.getLayersOrder()[0];
10296
10306
  t.space && this.initSpace({ options: t, before: h }), t.halo && this.initHalo({ options: t, before: h });
10297
- }), this.telemetry = new mu(this);
10307
+ }), this.telemetry = new yu(this);
10298
10308
  }
10299
10309
  getSpace() {
10300
10310
  return this.space;
@@ -10808,30 +10818,30 @@ let Po = class Ro extends L.Map {
10808
10818
  ]) : o.flag === z.AUTO.flag ? (i = Fn().flag, s = ["coalesce", ["get", i], ["get", z.LOCAL.flag]]) : o === z.LOCAL ? (i = z.LOCAL.flag, s = ["get", i]) : (i = o.flag, s = ["coalesce", ["get", i], ["get", z.LOCAL.flag]]);
10809
10819
  const { layers: l } = this.getStyle(), u = this.originalLabelStyle.size === 0;
10810
10820
  if (u) {
10811
- const c = Zi(l, this);
10821
+ const c = Ki(l, this);
10812
10822
  this.isStyleLocalized = Object.keys(c.localized).length > 0;
10813
10823
  }
10814
10824
  for (const c of l) {
10815
10825
  if (c.type !== "symbol")
10816
10826
  continue;
10817
10827
  const p = c, d = this.getSource(p.source);
10818
- if (!d || !("url" in d && typeof d.url == "string") || new URL(d.url).host !== te.maptilerApiHost)
10828
+ if (!d || !("url" in d && typeof d.url == "string") || new URL(d.url).host !== W.maptilerApiHost)
10819
10829
  continue;
10820
10830
  const { id: h, layout: m } = p;
10821
10831
  if (!m || !("text-field" in m))
10822
10832
  continue;
10823
10833
  let y;
10824
10834
  if (u ? (y = this.getLayoutProperty(h, "text-field"), this.originalLabelStyle.set(h, y)) : y = this.originalLabelStyle.get(h), typeof y == "string") {
10825
- const { contains: b, exactMatch: v } = Bi(y, this.isStyleLocalized);
10835
+ const { contains: b, exactMatch: v } = qi(y, this.isStyleLocalized);
10826
10836
  if (!b) continue;
10827
10837
  if (v)
10828
10838
  this.setLayoutProperty(h, "text-field", s);
10829
10839
  else {
10830
- const x = qi(y, s, this.isStyleLocalized);
10840
+ const x = Vi(y, s, this.isStyleLocalized);
10831
10841
  this.setLayoutProperty(h, "text-field", x);
10832
10842
  }
10833
10843
  } else {
10834
- const b = Ui(y, s, this.isStyleLocalized);
10844
+ const b = Bi(y, s, this.isStyleLocalized);
10835
10845
  this.setLayoutProperty(h, "text-field", b);
10836
10846
  }
10837
10847
  }
@@ -10885,11 +10895,11 @@ let Po = class Ro extends L.Map {
10885
10895
  const n = (o) => {
10886
10896
  !this.terrain || o.type !== "data" || o.dataType !== "source" || !("source" in o) || o.sourceId !== "maptiler-terrain" || o.source.type !== "raster-dem" || o.isSourceLoaded && (this.off("data", n), this.growTerrain(t));
10887
10897
  }, a = () => {
10888
- this.isTerrainEnabled = !0, this.terrainExaggeration = t, this.on("data", n), this.addSource(te.terrainSourceId, {
10898
+ this.isTerrainEnabled = !0, this.terrainExaggeration = t, this.on("data", n), this.addSource(W.terrainSourceId, {
10889
10899
  type: "raster-dem",
10890
- url: te.terrainSourceURL
10900
+ url: W.terrainSourceURL
10891
10901
  }), this.setTerrain({
10892
- source: te.terrainSourceId,
10902
+ source: W.terrainSourceId,
10893
10903
  exaggeration: 0
10894
10904
  });
10895
10905
  };
@@ -10901,7 +10911,7 @@ let Po = class Ro extends L.Map {
10901
10911
  a();
10902
10912
  else {
10903
10913
  const o = () => {
10904
- this.getTerrain() && this.getSource(te.terrainSourceId) || a();
10914
+ this.getTerrain() && this.getSource(W.terrainSourceId) || a();
10905
10915
  };
10906
10916
  this.once("load", () => {
10907
10917
  o();
@@ -10925,7 +10935,7 @@ let Po = class Ro extends L.Map {
10925
10935
  const i = (1 - o) ** 4, s = n * i;
10926
10936
  this.terrain.exaggeration = s, requestAnimationFrame(a);
10927
10937
  } else
10928
- this.terrain.exaggeration = 0, this.terrainGrowing = !1, this.terrainFlattening = !1, this.setTerrain(), this.getSource(te.terrainSourceId) && this.removeSource(te.terrainSourceId), this.fire("terrainAnimationStop", { terrain: null });
10938
+ this.terrain.exaggeration = 0, this.terrainGrowing = !1, this.terrainFlattening = !1, this.setTerrain(), this.getSource(W.terrainSourceId) && this.removeSource(W.terrainSourceId), this.fire("terrainAnimationStop", { terrain: null });
10929
10939
  this.triggerRepaint();
10930
10940
  };
10931
10941
  !this.terrainGrowing && !this.terrainFlattening && this.fire("terrainAnimationStart", { terrain: this.terrain }), this.terrainGrowing = !1, this.terrainFlattening = !0, requestAnimationFrame(a);
@@ -11092,7 +11102,7 @@ const zo = [
11092
11102
  // this is fired on layers, not the map
11093
11103
  // keeping it for reference
11094
11104
  // "metadata",
11095
- ], ac = [
11105
+ ], oc = [
11096
11106
  ...zo,
11097
11107
  ...Oo,
11098
11108
  ...Fo,
@@ -11101,9 +11111,9 @@ const zo = [
11101
11111
  ...jo,
11102
11112
  ...Uo,
11103
11113
  ...Do
11104
- ], oc = ["lngLat", "_defaultPrevented"];
11105
- function ic({ map: r, viewer: e, lngLatToPx: t }) {
11106
- ac.forEach((n) => {
11114
+ ], ic = ["lngLat", "_defaultPrevented"];
11115
+ function sc({ map: r, viewer: e, lngLatToPx: t }) {
11116
+ oc.forEach((n) => {
11107
11117
  try {
11108
11118
  r.on(n, (a) => {
11109
11119
  const o = n;
@@ -11112,7 +11122,7 @@ function ic({ map: r, viewer: e, lngLatToPx: t }) {
11112
11122
  isOutOfBounds: m ? h[0] < 0 || h[0] > m.width || h[1] < 0 || h[1] > m.height : !0,
11113
11123
  imageX: h[0],
11114
11124
  imageY: h[1],
11115
- ...Object.fromEntries(Object.entries(a).filter(([v]) => !oc.includes(v)))
11125
+ ...Object.fromEntries(Object.entries(a).filter(([v]) => !ic.includes(v)))
11116
11126
  };
11117
11127
  e.fire(new ne(n, e, f.originalEvent, b));
11118
11128
  return;
@@ -11164,7 +11174,7 @@ function ic({ map: r, viewer: e, lngLatToPx: t }) {
11164
11174
  }
11165
11175
  });
11166
11176
  }
11167
- class sc extends Error {
11177
+ class lc extends Error {
11168
11178
  constructor(t, n, a) {
11169
11179
  const o = `[${a}]: Failed to fetch ${n} at ${t.url}: ${t.status.toString()}: ${t.statusText}`;
11170
11180
  super(o);
@@ -11174,13 +11184,13 @@ class sc extends Error {
11174
11184
  }
11175
11185
  }
11176
11186
  const Ta = 85.051129;
11177
- function lc(r, e) {
11187
+ function uc(r, e) {
11178
11188
  return new an(e.x / r, e.y / r).toLngLat();
11179
11189
  }
11180
- function uc(r) {
11190
+ function cc(r) {
11181
11191
  return Math.pow(2, r);
11182
11192
  }
11183
- function cc(r) {
11193
+ function pc(r) {
11184
11194
  return Math.log(r) / Math.LN2;
11185
11195
  }
11186
11196
  function Bo(r, e, t) {
@@ -11196,11 +11206,11 @@ function _a(r, e, t) {
11196
11206
  const n = t - e, a = ((r - e) % n + n) % n + e;
11197
11207
  return a === e ? t : a;
11198
11208
  }
11199
- function pc(r, e) {
11209
+ function fc(r, e) {
11200
11210
  const t = Bo(e.lat, -Ta, Ta);
11201
11211
  return new si(Wr(e.lng) * r, Yr(t) * r);
11202
11212
  }
11203
- const fc = function(r, e) {
11213
+ const dc = function(r, e) {
11204
11214
  e = Bo(e, this.minZoom, this.maxZoom);
11205
11215
  const t = {
11206
11216
  center: new ii(r.lng, r.lat),
@@ -11212,15 +11222,15 @@ const fc = function(r, e) {
11212
11222
  const X = 179.9999999999;
11213
11223
  n = [-X, X];
11214
11224
  }
11215
- const o = this.tileSize * uc(t.zoom);
11225
+ const o = this.tileSize * cc(t.zoom);
11216
11226
  let i = 0, s = o, l = 0, u = o, c = 0, p = 0;
11217
11227
  const { x: d, y: f } = this.size, h = 0.5;
11218
11228
  a && (i = Yr(a[1]) * o, s = Yr(a[0]) * o, s - i < h * f && (c = h * f / (s - i))), n && (l = _a(Wr(n[0]) * o, 0, o), u = _a(Wr(n[1]) * o, 0, o), u < l && (u += o), u - l < h * d && (p = h * d / (u - l)));
11219
- const { x: m, y } = pc(o, r);
11229
+ const { x: m, y } = fc(o, r);
11220
11230
  let b, v;
11221
11231
  const x = Math.min(p || 0, c || 0);
11222
11232
  if (x)
11223
- return t.zoom += cc(x), t;
11233
+ return t.zoom += pc(x), t;
11224
11234
  let E = 0, C = 0;
11225
11235
  const T = 1, N = 1 - (s - i) / f, ge = 1 - (u - l) / d;
11226
11236
  E = Math.max(ge, T), C = Math.max(N, T);
@@ -11235,10 +11245,10 @@ const fc = function(r, e) {
11235
11245
  }
11236
11246
  if (b !== void 0 || v !== void 0) {
11237
11247
  const X = new si(b ?? m, v ?? y);
11238
- t.center = lc(o, X).wrap();
11248
+ t.center = uc(o, X).wrap();
11239
11249
  }
11240
11250
  return t;
11241
- }, dc = {
11251
+ }, hc = {
11242
11252
  center: "translate(-50%,-50%)",
11243
11253
  top: "translate(-50%,0)",
11244
11254
  "top-left": "translate(0,0)",
@@ -11249,7 +11259,7 @@ const fc = function(r, e) {
11249
11259
  left: "translate(0,-50%)",
11250
11260
  right: "translate(-100%,-50%)"
11251
11261
  };
11252
- function hc(r) {
11262
+ function mc(r) {
11253
11263
  function e(t) {
11254
11264
  if (!this._map) return;
11255
11265
  const n = this._map.loaded() && !this._map.isMoving();
@@ -11258,12 +11268,12 @@ function hc(r) {
11258
11268
  this._rotationAlignment === "viewport" || this._rotationAlignment === "auto" ? a = `rotateZ(${this._rotation}deg)` : this._rotationAlignment === "map" && (a = `rotateZ(${this._rotation - this._map.getBearing()}deg)`);
11259
11269
  let o = "";
11260
11270
  this._pitchAlignment === "viewport" || this._pitchAlignment === "auto" ? o = "rotateX(0deg)" : this._pitchAlignment === "map" && (o = `rotateX(${this._map.getPitch()}deg)`), !this._subpixelPositioning && (!t || t.type === "moveend") && (this._pos = this._pos.round());
11261
- const i = `${dc[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${o} ${a}`;
11271
+ const i = `${hc[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${o} ${a}`;
11262
11272
  this._element.style.transform = i;
11263
11273
  }
11264
11274
  r._update = e.bind(r);
11265
11275
  }
11266
- class mc {
11276
+ class yc {
11267
11277
  constructor({ imageViewer: e }) {
11268
11278
  g(this, "viewer");
11269
11279
  g(this, "container");
@@ -11284,7 +11294,7 @@ class mc {
11284
11294
  this.container.remove();
11285
11295
  }
11286
11296
  }
11287
- const qo = Symbol("MapTiler:ImageViewer:Internal:lngLatToPxInternal"), Vo = Symbol("MapTiler:ImageViewer:Internal:pxToLngLatInternal"), { Evented: yc } = L, gc = {
11297
+ const qo = Symbol("MapTiler:ImageViewer:Internal:lngLatToPxInternal"), Vo = Symbol("MapTiler:ImageViewer:Internal:pxToLngLatInternal"), { Evented: gc } = k, vc = {
11288
11298
  style: {
11289
11299
  version: 8,
11290
11300
  sources: {},
@@ -11303,14 +11313,14 @@ const qo = Symbol("MapTiler:ImageViewer:Internal:lngLatToPxInternal"), Vo = Symb
11303
11313
  terrain: !1,
11304
11314
  space: !1,
11305
11315
  halo: !1,
11306
- transformConstrain: fc
11307
- }, vc = {
11316
+ transformConstrain: dc
11317
+ }, bc = {
11308
11318
  debug: !1,
11309
11319
  fitToBoundsControl: !0,
11310
11320
  navigationControl: !0
11311
11321
  };
11312
11322
  var Oa, Fa, $a;
11313
- class bc extends ($a = yc, Fa = qo, Oa = Vo, $a) {
11323
+ class wc extends ($a = gc, Fa = qo, Oa = Vo, $a) {
11314
11324
  //#region constructor
11315
11325
  /**
11316
11326
  * The constructor for the ImageViewer.
@@ -11394,12 +11404,12 @@ class bc extends ($a = yc, Fa = qo, Oa = Vo, $a) {
11394
11404
  if (typeof t.container != "string" && !(t.container instanceof HTMLElement))
11395
11405
  throw new Error("[ImageViewer]: `container` is required and must be a string or HTMLElement");
11396
11406
  this.options = {
11397
- ...vc,
11407
+ ...bc,
11398
11408
  ...t
11399
11409
  };
11400
11410
  const n = {
11401
11411
  ...this.options,
11402
- ...gc
11412
+ ...vc
11403
11413
  };
11404
11414
  delete n.center, this.sdk = new Po(n), this.sdk.telemetry.registerViewerType("ImageViewer");
11405
11415
  const { imageUUID: a, debug: o } = t;
@@ -11458,7 +11468,7 @@ class bc extends ($a = yc, Fa = qo, Oa = Vo, $a) {
11458
11468
  visualizePitch: !1,
11459
11469
  visualizeRoll: !1
11460
11470
  })
11461
- ), this.fitToBoundsControlInstance = new mc({ imageViewer: this }), this.options.fitToBoundsControl && this.sdk.addControl(this.fitToBoundsControlInstance), ic({
11471
+ ), this.fitToBoundsControlInstance = new yc({ imageViewer: this }), this.options.fitToBoundsControl && this.sdk.addControl(this.fitToBoundsControlInstance), sc({
11462
11472
  map: this.sdk,
11463
11473
  viewer: this,
11464
11474
  lngLatToPx: (u) => this.lngLatToPx(u)
@@ -11500,9 +11510,9 @@ class bc extends ($a = yc, Fa = qo, Oa = Vo, $a) {
11500
11510
  * @returns {Promise<void>}
11501
11511
  */
11502
11512
  async fetchImageMetadata() {
11503
- const t = wc(this.imageUUID), n = await fetch(t);
11513
+ const t = Sc(this.imageUUID), n = await fetch(t);
11504
11514
  if (!n.ok)
11505
- throw new sc(n, "image metadata", "ImageViewer");
11515
+ throw new lc(n, "image metadata", "ImageViewer");
11506
11516
  const a = await n.json();
11507
11517
  this.imageMetadata = a, Object.freeze(this.imageMetadata);
11508
11518
  }
@@ -11516,7 +11526,7 @@ class bc extends ($a = yc, Fa = qo, Oa = Vo, $a) {
11516
11526
  addImageSource() {
11517
11527
  if (!this.imageMetadata)
11518
11528
  throw this.fire("error", new ne("error", this, null, { error: new Error("[ImageViewer]: Image metadata not found") })), new Error("[ImageViewer]: Image metadata not found");
11519
- const t = Sc(this.imageUUID), n = (s) => Math.pow(2, Math.ceil(Math.log(s) / Math.LN2));
11529
+ const t = xc(this.imageUUID), n = (s) => Math.pow(2, Math.ceil(Math.log(s) / Math.LN2));
11520
11530
  this.imageSize = [this.imageMetadata.width, this.imageMetadata.height], this.paddedSizeMax = Math.max(n(this.imageSize[0]), n(this.imageSize[1]));
11521
11531
  const a = this.pxToLngLat([0, 0]), o = this.pxToLngLat(this.imageSize), i = [a.lng, o.lat, o.lng, a.lat];
11522
11532
  this.sdk.addSource("image", {
@@ -11851,7 +11861,7 @@ class bc extends ($a = yc, Fa = qo, Oa = Vo, $a) {
11851
11861
  * @returns {ImageViewer} The ImageViewer instance.
11852
11862
  */
11853
11863
  fitImageBounds([t, n]) {
11854
- const a = this.pxToLngLat(t), o = this.pxToLngLat(n), i = qc.convert([a, o]);
11864
+ const a = this.pxToLngLat(t), o = this.pxToLngLat(n), i = Vc.convert([a, o]);
11855
11865
  return this.sdk.fitBounds(i), this;
11856
11866
  }
11857
11867
  //#region remove
@@ -11882,17 +11892,17 @@ class bc extends ($a = yc, Fa = qo, Oa = Vo, $a) {
11882
11892
  return t[0] >= a[0][0] && t[0] <= a[1][0] && t[1] >= a[0][1] && t[1] <= a[1][1];
11883
11893
  }
11884
11894
  }
11885
- function wc(r) {
11895
+ function Sc(r) {
11886
11896
  return `${Go()}/${r}/image.json?key=${j.apiKey}`;
11887
11897
  }
11888
- function Sc(r) {
11898
+ function xc(r) {
11889
11899
  return `${Go()}/${r}/{z}/{x}/{y}?key=${j.apiKey}`;
11890
11900
  }
11891
11901
  function Go() {
11892
11902
  return "https://api.maptiler.com/images";
11893
11903
  }
11894
- const { Evented: xc } = L;
11895
- class gp extends xc {
11904
+ const { Evented: kc } = k;
11905
+ class vp extends kc {
11896
11906
  constructor({ ...t }) {
11897
11907
  super();
11898
11908
  g(this, "viewer");
@@ -11907,11 +11917,11 @@ class gp extends xc {
11907
11917
  * @returns {ImageViewerMarker} The ImageViewerMarker instance.
11908
11918
  */
11909
11919
  addTo(t) {
11910
- if (!(t instanceof bc))
11920
+ if (!(t instanceof wc))
11911
11921
  throw new Error("[ImageViewerMarker]: an ImageViewerMarker must be added to an instance of ImageViewer");
11912
- this.viewer = t, Ec(this.marker, this, this.viewer[qo]);
11922
+ this.viewer = t, Ac(this.marker, this, this.viewer[qo]);
11913
11923
  const n = this.viewer.getSDKInternal();
11914
- return this.setPosition(this.position), hc(this.marker), this.marker.addTo(n), this;
11924
+ return this.setPosition(this.position), mc(this.marker), this.marker.addTo(n), this;
11915
11925
  }
11916
11926
  /**
11917
11927
  * Adds a class name to the ImageViewerMarker.
@@ -12161,16 +12171,16 @@ class gp extends xc {
12161
12171
  return this.marker.togglePopup(), this;
12162
12172
  }
12163
12173
  }
12164
- const kc = ["dragstart", "drag", "dragend"], Lc = ["lngLat", "_defaultPrevented", "target"];
12165
- class Cc {
12174
+ const Lc = ["dragstart", "drag", "dragend"], Cc = ["lngLat", "_defaultPrevented", "target"];
12175
+ class Ec {
12166
12176
  constructor(e, t, n) {
12167
12177
  g(this, "type");
12168
12178
  g(this, "target");
12169
12179
  this.type = e, this.target = t, Object.assign(this, n);
12170
12180
  }
12171
12181
  }
12172
- function Ec(r, e, t) {
12173
- kc.forEach((n) => {
12182
+ function Ac(r, e, t) {
12183
+ Lc.forEach((n) => {
12174
12184
  r.on(n, (a) => {
12175
12185
  var i, s;
12176
12186
  if ((i = a.target) == null ? void 0 : i.getLngLat()) {
@@ -12179,8 +12189,8 @@ function Ec(r, e, t) {
12179
12189
  }
12180
12190
  e.fire(
12181
12191
  n,
12182
- new Cc(n, e, {
12183
- ...Object.fromEntries(Object.entries(a).filter(([l]) => !Lc.includes(l)))
12192
+ new Ec(n, e, {
12193
+ ...Object.fromEntries(Object.entries(a).filter(([l]) => !Cc.includes(l)))
12184
12194
  })
12185
12195
  );
12186
12196
  });
@@ -12219,15 +12229,15 @@ function Zo(r) {
12219
12229
  features: []
12220
12230
  };
12221
12231
  for (const i of Array.from(t)) {
12222
- const s = Ic(i);
12232
+ const s = Mc(i);
12223
12233
  s && o.features.push(s);
12224
12234
  }
12225
12235
  for (const i of Array.from(n)) {
12226
- const s = Mc(i);
12236
+ const s = Pc(i);
12227
12237
  s && o.features.push(s);
12228
12238
  }
12229
12239
  for (const i of Array.from(a))
12230
- o.features.push(Pc(i));
12240
+ o.features.push(Rc(i));
12231
12241
  return o;
12232
12242
  }
12233
12243
  function Ko(r, e) {
@@ -12250,7 +12260,7 @@ function Ko(r, e) {
12250
12260
  i[`#${He(c, "id")}`] = d;
12251
12261
  }
12252
12262
  for (const c of Array.from(s))
12253
- n.features = n.features.concat(_c(c, a, o, i));
12263
+ n.features = n.features.concat(Ic(c, a, o, i));
12254
12264
  return n;
12255
12265
  }
12256
12266
  function Ma(r) {
@@ -12258,15 +12268,15 @@ function Ma(r) {
12258
12268
  let e = "", t = 1, n = r;
12259
12269
  return n.startsWith("#") && (n = n.substring(1)), (n.length === 6 || n.length === 3) && (e = n), n.length === 8 && (t = Number.parseInt(n.substring(0, 2), 16) / 255, e = `#${n.substring(6, 8)}${n.substring(4, 6)}${n.substring(2, 4)}`), [e ?? "#000000", t ?? 1];
12260
12270
  }
12261
- function Ac(r) {
12271
+ function Tc(r) {
12262
12272
  return Wo(r.split(" "));
12263
12273
  }
12264
- function Tc(r) {
12274
+ function _c(r) {
12265
12275
  let e = K(r, "coord");
12266
12276
  const t = [], n = [];
12267
12277
  e.length === 0 && (e = K(r, "gx:coord"));
12268
12278
  for (const o of Array.from(e))
12269
- t.push(Ac(F(o) ?? ""));
12279
+ t.push(Tc(F(o) ?? ""));
12270
12280
  const a = K(r, "when");
12271
12281
  for (const o of Array.from(a)) n.push(F(o));
12272
12282
  return {
@@ -12306,7 +12316,7 @@ function Bt(r) {
12306
12316
  coordinates: c
12307
12317
  });
12308
12318
  } else if (e[a] === "Track" || e[a] === "gx:Track") {
12309
- const u = Tc(t);
12319
+ const u = _c(t);
12310
12320
  s.push({
12311
12321
  type: "LineString",
12312
12322
  coordinates: u.coords
@@ -12315,7 +12325,7 @@ function Bt(r) {
12315
12325
  }
12316
12326
  return { geoms: s, coordTimes: l };
12317
12327
  }
12318
- function _c(r, e, t, n) {
12328
+ function Ic(r, e, t, n) {
12319
12329
  const a = Bt(r), o = {}, i = F(_(r, "name")), s = F(_(r, "address")), l = F(_(r, "description")), u = _(r, "TimeSpan"), c = _(r, "TimeStamp"), p = _(r, "ExtendedData"), d = _(r, "visibility");
12320
12330
  let f, h = F(_(r, "styleUrl")), m = _(r, "LineStyle"), y = _(r, "PolyStyle");
12321
12331
  if (!a.geoms.length) return [];
@@ -12380,7 +12390,7 @@ function Xo(r, e) {
12380
12390
  };
12381
12391
  }
12382
12392
  }
12383
- function Ic(r) {
12393
+ function Mc(r) {
12384
12394
  const e = K(r, "trkseg"), t = [], n = [], a = [];
12385
12395
  let o;
12386
12396
  for (let s = 0; s < e.length; s++)
@@ -12411,7 +12421,7 @@ function Ic(r) {
12411
12421
  }
12412
12422
  };
12413
12423
  }
12414
- function Mc(r) {
12424
+ function Pc(r) {
12415
12425
  const e = Xo(r, "rtept");
12416
12426
  return e === void 0 ? void 0 : {
12417
12427
  type: "Feature",
@@ -12425,7 +12435,7 @@ function Mc(r) {
12425
12435
  }
12426
12436
  };
12427
12437
  }
12428
- function Pc(r) {
12438
+ function Rc(r) {
12429
12439
  return {
12430
12440
  type: "Feature",
12431
12441
  properties: { ...In(r), ...Jr(r, ["sym"]) },
@@ -12480,14 +12490,14 @@ function _(r, e) {
12480
12490
  const t = K(r, e);
12481
12491
  return t.length ? t[0] : null;
12482
12492
  }
12483
- function Rc(r) {
12493
+ function zc(r) {
12484
12494
  return r.normalize && r.normalize(), r;
12485
12495
  }
12486
12496
  function Wo(r) {
12487
12497
  return r.map(Number.parseFloat).map((e) => Number.isNaN(e) ? null : e);
12488
12498
  }
12489
12499
  function F(r) {
12490
- return r && Rc(r), r && r.textContent;
12500
+ return r && zc(r), r && r.textContent;
12491
12501
  }
12492
12502
  function Jr(r, e) {
12493
12503
  const t = {};
@@ -12513,7 +12523,7 @@ function Qo(r) {
12513
12523
  heartRate: n !== null ? Number.parseFloat(F(n) ?? "0") : null
12514
12524
  };
12515
12525
  }
12516
- function zc(r) {
12526
+ function Oc(r) {
12517
12527
  let e = r;
12518
12528
  try {
12519
12529
  typeof e == "string" && (e = _n(e));
@@ -12530,8 +12540,8 @@ function zc(r) {
12530
12540
  }
12531
12541
  return null;
12532
12542
  }
12533
- async function Oc(r, e = {}) {
12534
- const t = e.download ?? !1, n = await Fc(r);
12543
+ async function Fc(r, e = {}) {
12544
+ const t = e.download ?? !1, n = await $c(r);
12535
12545
  if (t) {
12536
12546
  const a = e.filename ?? "maptiler_screenshot.png", o = document.createElement("a");
12537
12547
  o.style.display = "none", document.body.appendChild(o), o.href = URL.createObjectURL(n), o.download = a, o.click(), setTimeout(() => {
@@ -12540,7 +12550,7 @@ async function Oc(r, e = {}) {
12540
12550
  }
12541
12551
  return n;
12542
12552
  }
12543
- function Fc(r) {
12553
+ function $c(r) {
12544
12554
  return new Promise((e, t) => {
12545
12555
  r.redraw(), r.once("idle", () => {
12546
12556
  r.getCanvas().toBlob((n) => {
@@ -12692,7 +12702,7 @@ function Nt(r) {
12692
12702
  const e = r.toString(16);
12693
12703
  return e.length === 1 ? `0${e}` : e;
12694
12704
  }
12695
- function $c(r) {
12705
+ function Nc(r) {
12696
12706
  return `#${Nt(r[0])}${Nt(r[1])}${Nt(r[2])}${r.length === 4 ? Nt(r[3]) : ""}`;
12697
12707
  }
12698
12708
  class A extends Array {
@@ -12786,7 +12796,7 @@ class A extends Array {
12786
12796
  smooth: !0,
12787
12797
  withAlpha: !1
12788
12798
  }) {
12789
- return $c(this.getColor(t, n));
12799
+ return Nc(this.getColor(t, n));
12790
12800
  }
12791
12801
  /**
12792
12802
  * Get the color of the color ramp at a relative position in [0, 1]
@@ -13629,7 +13639,7 @@ const ai = {
13629
13639
  ]
13630
13640
  })
13631
13641
  };
13632
- async function Nc(r, e, t = {}) {
13642
+ async function jc(r, e, t = {}) {
13633
13643
  var a, o;
13634
13644
  if (!e.sourceId && !e.data)
13635
13645
  throw new Error("Creating a polyline layer requires an existing .sourceId or a valid .data property");
@@ -13644,18 +13654,18 @@ async function Nc(r, e, t = {}) {
13644
13654
  const s = await (await fetch(n, t)).text();
13645
13655
  n = Ko(s);
13646
13656
  } else {
13647
- const i = Ni(n) ?? zc(n);
13657
+ const i = ji(n) ?? Oc(n);
13648
13658
  i && (n = i);
13649
13659
  }
13650
13660
  if (!n)
13651
13661
  throw new Error("Polyline data was provided as string but is incompatible with valid formats.");
13652
13662
  }
13653
- return jc(r, {
13663
+ return Dc(r, {
13654
13664
  ...e,
13655
13665
  data: n
13656
13666
  });
13657
13667
  }
13658
- function jc(r, e) {
13668
+ function Dc(r, e) {
13659
13669
  if (e.layerId && r.getLayer(e.layerId))
13660
13670
  throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
13661
13671
  const t = e.sourceId ?? Mt(), n = e.layerId ?? Pt(), a = {
@@ -13721,7 +13731,7 @@ function jc(r, e) {
13721
13731
  e.beforeId
13722
13732
  ), a;
13723
13733
  }
13724
- function Dc(r, e) {
13734
+ function Uc(r, e) {
13725
13735
  if (e.layerId && r.getLayer(e.layerId))
13726
13736
  throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
13727
13737
  const t = e.sourceId ?? Mt(), n = e.layerId ?? Pt(), a = {
@@ -13804,7 +13814,7 @@ function Dc(r, e) {
13804
13814
  console.error("Could not load the pattern image.", m.message), h();
13805
13815
  }) : h(), a;
13806
13816
  }
13807
- function Uc(r, e) {
13817
+ function Bc(r, e) {
13808
13818
  if (e.layerId && r.getLayer(e.layerId))
13809
13819
  throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
13810
13820
  const t = e.minPointRadius ?? 10, n = e.maxPointRadius ?? 50, a = e.cluster ?? !1, o = 20, i = Array.isArray(e.pointColor) ? e.pointColor : ai.TURBO.scale(10, e.cluster ? 1e4 : 1e3).resample("ease-out-square"), s = i.getBounds(), l = e.sourceId ?? Mt(), u = e.layerId ?? Pt(), c = e.showLabel ?? a, p = e.alignOnViewport ?? !0, d = e.outline ?? !1, f = e.outlineOpacity ?? 1, h = e.outlineWidth ?? 1, m = e.outlineColor ?? "#FFFFFF";
@@ -13971,7 +13981,7 @@ function Uc(r, e) {
13971
13981
  }
13972
13982
  return E;
13973
13983
  }
13974
- function Bc(r, e) {
13984
+ function qc(r, e) {
13975
13985
  if (e.layerId && r.getLayer(e.layerId))
13976
13986
  throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
13977
13987
  const t = e.sourceId ?? Mt(), n = e.layerId ?? Pt(), a = e.minzoom ?? 0, o = e.maxzoom ?? 23, i = e.zoomCompensation ?? !0, s = e.opacity ?? [
@@ -14028,12 +14038,12 @@ function Bc(r, e) {
14028
14038
  e.beforeId
14029
14039
  ), b;
14030
14040
  }
14031
- const vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14041
+ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14032
14042
  __proto__: null,
14033
- addHeatmap: Bc,
14034
- addPoint: Uc,
14035
- addPolygon: Dc,
14036
- addPolyline: Nc,
14043
+ addHeatmap: qc,
14044
+ addPoint: Bc,
14045
+ addPolygon: Uc,
14046
+ addPolyline: jc,
14037
14047
  colorDrivenByProperty: tn,
14038
14048
  colorPalettes: Qr,
14039
14049
  computeRampedOutlineWidth: ei,
@@ -14049,185 +14059,185 @@ const vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14049
14059
  radiusDrivenByPropertyHeatmap: ri,
14050
14060
  rampedOptionsToLayerPaintSpec: O,
14051
14061
  rampedPropertyValueWeight: ti,
14052
- takeScreenshot: Oc
14062
+ takeScreenshot: Fc
14053
14063
  }, Symbol.toStringTag, { value: "Module" }));
14054
14064
  function oi() {
14055
- return "3.10.2-rc.1";
14065
+ return "3.10.2-rc.2";
14056
14066
  }
14057
- const bp = L.Map, wp = L.Marker, Sp = L.Popup, xp = L.Style, kp = L.CanvasSource, Lp = L.GeoJSONSource, Cp = L.ImageSource, Ep = L.RasterTileSource, Ap = L.RasterDEMTileSource, Tp = L.VectorTileSource, _p = L.VideoSource, Ip = L.NavigationControl, Mp = L.GeolocateControl, Pp = L.AttributionControl, Rp = L.LogoControl, zp = L.ScaleControl, Op = L.FullscreenControl, Fp = L.TerrainControl, $p = L.BoxZoomHandler, Np = L.ScrollZoomHandler, jp = L.CooperativeGesturesHandler, Dp = L.KeyboardHandler, Up = L.TwoFingersTouchPitchHandler, Bp = L.MapWheelEvent, qp = L.MapTouchEvent, Vp = L.MapMouseEvent, Gp = L.config, Hp = L.getVersion, {
14058
- setRTLTextPlugin: Zp,
14059
- getRTLTextPluginStatus: Kp,
14067
+ const wp = k.Map, Sp = k.Marker, xp = k.Popup, kp = k.Style, Lp = k.CanvasSource, Cp = k.GeoJSONSource, Ep = k.ImageSource, Ap = k.RasterTileSource, Tp = k.RasterDEMTileSource, _p = k.VectorTileSource, Ip = k.VideoSource, Mp = k.NavigationControl, Pp = k.GeolocateControl, Rp = k.AttributionControl, zp = k.LogoControl, Op = k.ScaleControl, Fp = k.FullscreenControl, $p = k.TerrainControl, Np = k.BoxZoomHandler, jp = k.ScrollZoomHandler, Dp = k.CooperativeGesturesHandler, Up = k.KeyboardHandler, Bp = k.TwoFingersTouchPitchHandler, qp = k.MapWheelEvent, Vp = k.MapTouchEvent, Gp = k.MapMouseEvent, Hp = k.config, Zp = k.getVersion, {
14068
+ setRTLTextPlugin: Kp,
14069
+ getRTLTextPluginStatus: Xp,
14060
14070
  LngLat: ii,
14061
- LngLatBounds: qc,
14071
+ LngLatBounds: Vc,
14062
14072
  MercatorCoordinate: an,
14063
- Evented: Xp,
14064
- AJAXError: Yp,
14065
- prewarm: Wp,
14066
- clearPrewarmedResources: Jp,
14067
- Hash: Qp,
14073
+ Evented: Yp,
14074
+ AJAXError: Wp,
14075
+ prewarm: Jp,
14076
+ clearPrewarmedResources: Qp,
14077
+ Hash: ef,
14068
14078
  Point: si,
14069
- EdgeInsets: ef,
14070
- DragRotateHandler: tf,
14071
- DragPanHandler: rf,
14072
- TwoFingersTouchZoomRotateHandler: nf,
14073
- DoubleClickZoomHandler: af,
14074
- TwoFingersTouchZoomHandler: of,
14075
- TwoFingersTouchRotateHandler: sf,
14076
- getWorkerCount: lf,
14077
- setWorkerCount: uf,
14078
- getMaxParallelImageRequests: cf,
14079
- setMaxParallelImageRequests: pf,
14080
- getWorkerUrl: ff,
14081
- setWorkerUrl: df,
14082
- addSourceType: hf,
14083
- importScriptInWorkers: mf,
14084
- addProtocol: yf,
14085
- removeProtocol: gf
14086
- } = L;
14079
+ EdgeInsets: tf,
14080
+ DragRotateHandler: rf,
14081
+ DragPanHandler: nf,
14082
+ TwoFingersTouchZoomRotateHandler: af,
14083
+ DoubleClickZoomHandler: of,
14084
+ TwoFingersTouchZoomHandler: sf,
14085
+ TwoFingersTouchRotateHandler: lf,
14086
+ getWorkerCount: uf,
14087
+ setWorkerCount: cf,
14088
+ getMaxParallelImageRequests: pf,
14089
+ setMaxParallelImageRequests: ff,
14090
+ getWorkerUrl: df,
14091
+ setWorkerUrl: hf,
14092
+ addSourceType: mf,
14093
+ importScriptInWorkers: yf,
14094
+ addProtocol: gf,
14095
+ removeProtocol: vf
14096
+ } = k;
14087
14097
  export {
14088
- Yp as AJAXError,
14089
- ip as AttributionControl,
14090
- Pp as AttributionControlMLGL,
14091
- lp as BoxZoomHandler,
14092
- $p as BoxZoomHandlerMLGL,
14093
- Qc as CanvasSource,
14094
- kp as CanvasSourceMLGL,
14098
+ Wp as AJAXError,
14099
+ sp as AttributionControl,
14100
+ Rp as AttributionControlMLGL,
14101
+ up as BoxZoomHandler,
14102
+ Np as BoxZoomHandlerMLGL,
14103
+ ep as CanvasSource,
14104
+ Lp as CanvasSourceMLGL,
14095
14105
  A as ColorRamp,
14096
14106
  ai as ColorRampCollection,
14097
- cp as CooperativeGesturesHandler,
14098
- jp as CooperativeGesturesHandlerMLGL,
14107
+ pp as CooperativeGesturesHandler,
14108
+ Dp as CooperativeGesturesHandlerMLGL,
14099
14109
  Ne as CubemapFaceNames,
14100
- Uu as CubemapImagesPresets,
14110
+ Bu as CubemapImagesPresets,
14101
14111
  Or as CubemapLayer,
14102
14112
  Ce as DOMcreate,
14103
14113
  Lt as DOMremove,
14104
- af as DoubleClickZoomHandler,
14105
- rf as DragPanHandler,
14106
- tf as DragRotateHandler,
14107
- ef as EdgeInsets,
14108
- Xp as Evented,
14114
+ of as DoubleClickZoomHandler,
14115
+ nf as DragPanHandler,
14116
+ rf as DragRotateHandler,
14117
+ tf as EdgeInsets,
14118
+ Yp as Evented,
14109
14119
  _i as FullscreenControl,
14110
- Op as FullscreenControlMLGL,
14111
- ep as GeoJSONSource,
14112
- Lp as GeoJSONSourceMLGL,
14120
+ Fp as FullscreenControlMLGL,
14121
+ tp as GeoJSONSource,
14122
+ Cp as GeoJSONSourceMLGL,
14113
14123
  Ei as GeolocateControl,
14114
- Mp as GeolocateControlMLGL,
14115
- nc as GeolocationType,
14116
- Qp as Hash,
14117
- tp as ImageSource,
14118
- Cp as ImageSourceMLGL,
14119
- bc as ImageViewer,
14124
+ Pp as GeolocateControlMLGL,
14125
+ ac as GeolocationType,
14126
+ ef as Hash,
14127
+ rp as ImageSource,
14128
+ Ep as ImageSourceMLGL,
14129
+ wc as ImageViewer,
14120
14130
  ne as ImageViewerEvent,
14121
- gp as ImageViewerMarker,
14122
- Cc as ImageViewerMarkerEvent,
14123
- pp as KeyboardHandler,
14124
- Dp as KeyboardHandlerMLGL,
14131
+ vp as ImageViewerMarker,
14132
+ Ec as ImageViewerMarkerEvent,
14133
+ fp as KeyboardHandler,
14134
+ Up as KeyboardHandlerMLGL,
14125
14135
  z as Language,
14126
14136
  ii as LngLat,
14127
- qc as LngLatBounds,
14137
+ Vc as LngLatBounds,
14128
14138
  Ai as LogoControl,
14129
- Rp as LogoControlMLGL,
14139
+ zp as LogoControlMLGL,
14130
14140
  Po as Map,
14131
- bp as MapMLGL,
14132
- mp as MapMouseEvent,
14133
- Vp as MapMouseEventMLGL,
14134
- wf as MapStyle,
14135
- Sf as MapStyleVariant,
14136
- hp as MapTouchEvent,
14137
- qp as MapTouchEventMLGL,
14138
- dp as MapWheelEvent,
14139
- Bp as MapWheelEventMLGL,
14140
- du as MaptilerCustomControl,
14141
+ wp as MapMLGL,
14142
+ yp as MapMouseEvent,
14143
+ Gp as MapMouseEventMLGL,
14144
+ Sf as MapStyle,
14145
+ xf as MapStyleVariant,
14146
+ mp as MapTouchEvent,
14147
+ Vp as MapTouchEventMLGL,
14148
+ hp as MapWheelEvent,
14149
+ qp as MapWheelEventMLGL,
14150
+ hu as MaptilerCustomControl,
14141
14151
  Kr as MaptilerExternalControl,
14142
- fu as MaptilerGeolocateControl,
14152
+ du as MaptilerGeolocateControl,
14143
14153
  $n as MaptilerLogoControl,
14144
- cu as MaptilerNavigationControl,
14145
- hu as MaptilerProjectionControl,
14146
- uu as MaptilerTerrainControl,
14154
+ pu as MaptilerNavigationControl,
14155
+ mu as MaptilerProjectionControl,
14156
+ cu as MaptilerTerrainControl,
14147
14157
  Ci as Marker,
14148
- wp as MarkerMLGL,
14158
+ Sp as MarkerMLGL,
14149
14159
  an as MercatorCoordinate,
14150
- Ip as NavigationControMLGL,
14160
+ Mp as NavigationControMLGL,
14151
14161
  Na as NavigationControl,
14152
14162
  si as Point,
14153
- Wc as Popup,
14154
- Sp as PopupMLGL,
14163
+ Jc as Popup,
14164
+ xp as PopupMLGL,
14155
14165
  Fr as RadialGradientLayer,
14156
- np as RasterDEMTileSource,
14157
- Ap as RasterDEMTileSourceMLGL,
14158
- rp as RasterTileSource,
14159
- Ep as RasterTileSourceMLGL,
14160
- xf as ReferenceMapStyle,
14166
+ ap as RasterDEMTileSource,
14167
+ Tp as RasterDEMTileSourceMLGL,
14168
+ np as RasterTileSource,
14169
+ Ap as RasterTileSourceMLGL,
14170
+ kf as ReferenceMapStyle,
14161
14171
  Ti as ScaleControl,
14162
- zp as ScaleControlMLGL,
14163
- up as ScrollZoomHandler,
14164
- Np as ScrollZoomHandlerMLGL,
14172
+ Op as ScaleControlMLGL,
14173
+ cp as ScrollZoomHandler,
14174
+ jp as ScrollZoomHandlerMLGL,
14165
14175
  Ii as SdkConfig,
14166
- kf as ServiceError,
14167
- Jc as Style,
14168
- xp as StyleMLGL,
14169
- Fp as TerrainControMLGL,
14170
- sp as TerrainControl,
14171
- fp as TwoFingersTouchPitchHandler,
14172
- Up as TwoFingersTouchPitchHandlerMLGL,
14173
- sf as TwoFingersTouchRotateHandler,
14174
- of as TwoFingersTouchZoomHandler,
14175
- nf as TwoFingersTouchZoomRotateHandler,
14176
- ap as VectorTileSource,
14177
- Tp as VectorTileSourceMLGL,
14178
- op as VideoSource,
14179
- _p as VideoSourceMLGL,
14180
- yf as addProtocol,
14181
- hf as addSourceType,
14182
- Lf as areSameLanguages,
14183
- Cf as bufferToPixelDataBrowser,
14184
- Ef as canParsePixelData,
14185
- Af as circumferenceAtLatitude,
14186
- Jp as clearPrewarmedResources,
14176
+ Lf as ServiceError,
14177
+ Qc as Style,
14178
+ kp as StyleMLGL,
14179
+ $p as TerrainControMLGL,
14180
+ lp as TerrainControl,
14181
+ dp as TwoFingersTouchPitchHandler,
14182
+ Bp as TwoFingersTouchPitchHandlerMLGL,
14183
+ lf as TwoFingersTouchRotateHandler,
14184
+ sf as TwoFingersTouchZoomHandler,
14185
+ af as TwoFingersTouchZoomRotateHandler,
14186
+ op as VectorTileSource,
14187
+ _p as VectorTileSourceMLGL,
14188
+ ip as VideoSource,
14189
+ Ip as VideoSourceMLGL,
14190
+ gf as addProtocol,
14191
+ mf as addSourceType,
14192
+ Cf as areSameLanguages,
14193
+ Ef as bufferToPixelDataBrowser,
14194
+ Af as canParsePixelData,
14195
+ Tf as circumferenceAtLatitude,
14196
+ Qp as clearPrewarmedResources,
14187
14197
  j as config,
14188
- Gp as configMLGL,
14189
- Tf as coordinates,
14198
+ Hp as configMLGL,
14199
+ _f as coordinates,
14190
14200
  Ge as cubemapPresets,
14191
- _f as data,
14192
- yp as displayWebGLContextLostWarning,
14193
- If as elevation,
14194
- Mf as expandMapStyle,
14195
- Pf as geocoding,
14196
- Rf as geolocation,
14197
- zf as getAutoLanguage,
14201
+ If as data,
14202
+ gp as displayWebGLContextLostWarning,
14203
+ Mf as elevation,
14204
+ Pf as expandMapStyle,
14205
+ Rf as geocoding,
14206
+ zf as geolocation,
14207
+ Of as getAutoLanguage,
14198
14208
  Fn as getBrowserLanguage,
14199
- Of as getBufferToPixelDataParser,
14200
- Ff as getLanguageInfoFromCode,
14201
- $f as getLanguageInfoFromFlag,
14202
- Nf as getLanguageInfoFromKey,
14203
- Hp as getMapLibreVersion,
14204
- cf as getMaxParallelImageRequests,
14205
- Kp as getRTLTextPluginStatus,
14206
- jf as getTileCache,
14209
+ Ff as getBufferToPixelDataParser,
14210
+ $f as getLanguageInfoFromCode,
14211
+ Nf as getLanguageInfoFromFlag,
14212
+ jf as getLanguageInfoFromKey,
14213
+ Zp as getMapLibreVersion,
14214
+ pf as getMaxParallelImageRequests,
14215
+ Xp as getRTLTextPluginStatus,
14216
+ Df as getTileCache,
14207
14217
  oi as getVersion,
14208
- ji as getWebGLSupportError,
14209
- lf as getWorkerCount,
14210
- ff as getWorkerUrl,
14218
+ Di as getWebGLSupportError,
14219
+ uf as getWorkerCount,
14220
+ df as getWorkerUrl,
14211
14221
  Zo as gpx,
14212
- zc as gpxOrKml,
14222
+ Oc as gpxOrKml,
14213
14223
  Ho as hasChildNodeWithName,
14214
- vp as helpers,
14215
- mf as importScriptInWorkers,
14216
- Df as isLanguageInfo,
14224
+ bp as helpers,
14225
+ yf as importScriptInWorkers,
14226
+ Uf as isLanguageInfo,
14217
14227
  Ko as kml,
14218
- Uf as mapStylePresetList,
14219
- Bf as math,
14220
- qf as misc,
14221
- Wp as prewarm,
14222
- gf as removeProtocol,
14223
- pf as setMaxParallelImageRequests,
14224
- Zp as setRTLTextPlugin,
14225
- uf as setWorkerCount,
14226
- df as setWorkerUrl,
14227
- Vf as staticMaps,
14228
+ Bf as mapStylePresetList,
14229
+ qf as math,
14230
+ Vf as misc,
14231
+ Jp as prewarm,
14232
+ vf as removeProtocol,
14233
+ ff as setMaxParallelImageRequests,
14234
+ Kp as setRTLTextPlugin,
14235
+ cf as setWorkerCount,
14236
+ hf as setWorkerUrl,
14237
+ Gf as staticMaps,
14228
14238
  _n as str2xml,
14229
- Gf as styleToStyle,
14230
- Hf as toLanguageInfo,
14239
+ Hf as styleToStyle,
14240
+ Zf as toLanguageInfo,
14231
14241
  Ao as toggleProjection,
14232
14242
  Eo as toggleTerrain,
14233
14243
  Ia as xml2str