@maptiler/sdk 4.0.1 → 4.0.2-rc.1

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,14 +4,14 @@ var Dn = (r) => {
4
4
  };
5
5
  var Mo = (r, e, t) => e in r ? _o(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
6
  var y = (r, e, t) => Mo(r, typeof e != "symbol" ? e + "" : e, t), Er = (r, e, t) => e.has(r) || Dn("Cannot " + t);
7
- var E = (r, e, t) => (Er(r, e, "read from private field"), t ? t.call(r) : e.get(r)), Y = (r, e, t) => e.has(r) ? Dn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), Q = (r, e, t, n) => (Er(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), ee = (r, e, t) => (Er(r, e, "access private method"), t);
7
+ var E = (r, e, t) => (Er(r, e, "read from private field"), t ? t.call(r) : e.get(r)), W = (r, e, t) => e.has(r) ? Dn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), Q = (r, e, t, n) => (Er(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), ee = (r, e, t) => (Er(r, e, "access private method"), t);
8
8
  import k from "maplibre-gl";
9
9
  import { Base64 as Po } from "js-base64";
10
10
  import Ro from "events";
11
11
  import * as Ot from "@maptiler/client";
12
12
  import { Language as Oo, getLanguageInfoFromCode as Un, config as Lr, MapStyle as dt, mapStylePresetList as Cr, expandMapStyle as zo, MapStyleVariant as Fo, ReferenceMapStyle as $o, toLanguageInfo as Bn, getLanguageInfoFromFlag as No, geolocation as qn } from "@maptiler/client";
13
- import { MapStyle as fd, MapStyleVariant as dd, ReferenceMapStyle as hd, ServiceError as md, areSameLanguages as yd, bufferToPixelDataBrowser as gd, canParsePixelData as vd, circumferenceAtLatitude as bd, coordinates as wd, data as Sd, elevation as xd, expandMapStyle as kd, geolocation as Ed, getAutoLanguage as Ld, getBufferToPixelDataParser as Cd, getLanguageInfoFromCode as Ad, getLanguageInfoFromFlag as Td, getLanguageInfoFromKey as Id, getTileCache as _d, isLanguageInfo as Md, mapStylePresetList as Pd, math as Rd, misc as Od, staticMaps as zd, styleToStyle as Fd, toLanguageInfo as $d } from "@maptiler/client";
14
- import { v4 as Ya } from "uuid";
13
+ import { MapStyle as dd, MapStyleVariant as hd, ReferenceMapStyle as md, ServiceError as yd, areSameLanguages as gd, bufferToPixelDataBrowser as vd, canParsePixelData as bd, circumferenceAtLatitude as wd, coordinates as Sd, data as xd, elevation as kd, expandMapStyle as Ed, geolocation as Ld, getAutoLanguage as Cd, getBufferToPixelDataParser as Ad, getLanguageInfoFromCode as Td, getLanguageInfoFromFlag as Id, getLanguageInfoFromKey as _d, getTileCache as Md, isLanguageInfo as Pd, mapStylePresetList as Rd, math as Od, misc as zd, staticMaps as Fd, styleToStyle as $d, toLanguageInfo as Nd } from "@maptiler/client";
14
+ import { v4 as Wa } from "uuid";
15
15
  (function() {
16
16
  typeof window > "u" || (window.requestIdleCallback = window.requestIdleCallback || function(r) {
17
17
  const e = Date.now();
@@ -32,52 +32,52 @@ let jo = class extends k.Marker {
32
32
  return super.addTo(e);
33
33
  }
34
34
  };
35
- class Up extends k.Popup {
35
+ class Bp extends k.Popup {
36
36
  addTo(e) {
37
37
  return super.addTo(e);
38
38
  }
39
39
  }
40
- class Bp extends k.Style {
40
+ class qp extends k.Style {
41
41
  constructor(e, t = {}) {
42
42
  super(e, t);
43
43
  }
44
44
  }
45
- class qp extends k.CanvasSource {
45
+ class Vp extends k.CanvasSource {
46
46
  onAdd(e) {
47
47
  super.onAdd(e);
48
48
  }
49
49
  }
50
- class Vp extends k.GeoJSONSource {
50
+ class Gp extends k.GeoJSONSource {
51
51
  onAdd(e) {
52
52
  super.onAdd(e);
53
53
  }
54
54
  }
55
- class Gp extends k.ImageSource {
55
+ class Hp extends k.ImageSource {
56
56
  onAdd(e) {
57
57
  super.onAdd(e);
58
58
  }
59
59
  }
60
- class Hp extends k.RasterTileSource {
60
+ class Kp extends k.RasterTileSource {
61
61
  onAdd(e) {
62
62
  super.onAdd(e);
63
63
  }
64
64
  }
65
- class Kp extends k.RasterDEMTileSource {
65
+ class Zp extends k.RasterDEMTileSource {
66
66
  onAdd(e) {
67
67
  super.onAdd(e);
68
68
  }
69
69
  }
70
- class Zp extends k.VectorTileSource {
70
+ class Xp extends k.VectorTileSource {
71
71
  onAdd(e) {
72
72
  super.onAdd(e);
73
73
  }
74
74
  }
75
- class Xp extends k.VideoSource {
75
+ class Wp extends k.VideoSource {
76
76
  onAdd(e) {
77
77
  super.onAdd(e);
78
78
  }
79
79
  }
80
- class Wa extends k.NavigationControl {
80
+ class Ya extends k.NavigationControl {
81
81
  onAdd(e) {
82
82
  return super.onAdd(e);
83
83
  }
@@ -107,47 +107,47 @@ class qo extends k.FullscreenControl {
107
107
  return super.onAdd(e);
108
108
  }
109
109
  }
110
- class Wp extends k.TerrainControl {
110
+ class Jp extends k.TerrainControl {
111
111
  onAdd(e) {
112
112
  return super.onAdd(e);
113
113
  }
114
114
  }
115
- class Jp extends k.BoxZoomHandler {
115
+ class Qp extends k.BoxZoomHandler {
116
116
  constructor(e, t) {
117
117
  super(e, t);
118
118
  }
119
119
  }
120
- class Qp extends k.ScrollZoomHandler {
120
+ class ef extends k.ScrollZoomHandler {
121
121
  constructor(e, t) {
122
122
  super(e, t);
123
123
  }
124
124
  }
125
- class ef extends k.CooperativeGesturesHandler {
125
+ class tf extends k.CooperativeGesturesHandler {
126
126
  constructor(e, t) {
127
127
  super(e, t);
128
128
  }
129
129
  }
130
- class tf extends k.KeyboardHandler {
130
+ class rf extends k.KeyboardHandler {
131
131
  constructor(e) {
132
132
  super(e);
133
133
  }
134
134
  }
135
- class rf extends k.TwoFingersTouchPitchHandler {
135
+ class nf extends k.TwoFingersTouchPitchHandler {
136
136
  constructor(e) {
137
137
  super(e);
138
138
  }
139
139
  }
140
- class nf extends k.MapWheelEvent {
140
+ class af extends k.MapWheelEvent {
141
141
  constructor(e, t, n) {
142
142
  super(e, t, n);
143
143
  }
144
144
  }
145
- class af extends k.MapTouchEvent {
145
+ class of extends k.MapTouchEvent {
146
146
  constructor(e, t, n) {
147
147
  super(e, t, n);
148
148
  }
149
149
  }
150
- class of extends k.MapMouseEvent {
150
+ class sf extends k.MapMouseEvent {
151
151
  constructor(e, t, n, a = {}) {
152
152
  super(e, t, n, a);
153
153
  }
@@ -208,7 +208,7 @@ function Vn() {
208
208
  }
209
209
  return Array.from(new Set(navigator.languages.map((e) => e.split("-")[0]))).map((e) => Un(e)).filter((e) => e)[0] ?? O.LOCAL;
210
210
  }
211
- const W = {
211
+ const Y = {
212
212
  maptilerLogoURL: "https://api.maptiler.com/resources/logo.svg",
213
213
  maptilerURL: "https://www.maptiler.com/",
214
214
  maptilerApiHost: "api.maptiler.com",
@@ -219,15 +219,15 @@ const W = {
219
219
  terrainSourceURL: "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json",
220
220
  terrainSourceId: "maptiler-terrain"
221
221
  };
222
- Object.freeze(W);
223
- const ir = Ya();
222
+ Object.freeze(Y);
223
+ const ir = Wa();
224
224
  class Vo extends Ro {
225
225
  constructor() {
226
226
  super(...arguments);
227
227
  /**
228
228
  * The primary language. By default, the language of the web browser is used.
229
229
  */
230
- y(this, "primaryLanguage", W.primaryLanguage);
230
+ y(this, "primaryLanguage", Y.primaryLanguage);
231
231
  /**
232
232
  * The secondary language, to overwrite the default language defined in the map style.
233
233
  * This settings is highly dependant on the style compatibility and may not work in most cases.
@@ -317,7 +317,7 @@ class Gn extends Uo {
317
317
  super(t);
318
318
  y(this, "logoURL", "");
319
319
  y(this, "linkURL", "");
320
- this.logoURL = t.logoURL ?? W.maptilerLogoURL, this.linkURL = t.linkURL ?? W.maptilerURL;
320
+ this.logoURL = t.logoURL ?? Y.maptilerLogoURL, this.linkURL = t.linkURL ?? Y.maptilerURL;
321
321
  }
322
322
  onAdd(t) {
323
323
  this._map = t, this._compact = this.options.compact ?? !1, this._container = window.document.createElement("div"), this._container.className = "maplibregl-ctrl";
@@ -327,7 +327,7 @@ class Gn extends Uo {
327
327
  }
328
328
  const qr = "localcache_source", Vr = "localcache", Go = "maptiler_sdk", Ho = 1e3, Ko = 100, Gr = typeof caches < "u", { addProtocol: Hn } = k;
329
329
  function Zo(r, e) {
330
- if (Gr && j.caching && j.session && r.host === W.maptilerApiHost) {
330
+ if (Gr && j.caching && j.session && r.host === Y.maptilerApiHost) {
331
331
  if (e === "Source" && r.href.includes("tiles.json"))
332
332
  return r.href.replace("https://", `${qr}://`);
333
333
  if (e === "Tile" || e === "Glyphs")
@@ -345,7 +345,7 @@ async function Xo() {
345
345
  for (const n of t)
346
346
  r.delete(n);
347
347
  }
348
- function Yo() {
348
+ function Wo() {
349
349
  Hn(
350
350
  qr,
351
351
  async (r, e) => {
@@ -381,12 +381,12 @@ function Yo() {
381
381
  }), ++Kn > Ko && (Xo(), Kn = 0)), s(p);
382
382
  });
383
383
  }
384
- async function Wo(r) {
384
+ async function Yo(r) {
385
385
  if (typeof window > "u") return;
386
386
  const e = k.getRTLTextPluginStatus();
387
387
  if (e === "unavailable" || e === "requested")
388
388
  try {
389
- await k.setRTLTextPlugin(r ?? W.rtlPluginURL, !0);
389
+ await k.setRTLTextPlugin(r ?? Y.rtlPluginURL, !0);
390
390
  } catch (t) {
391
391
  console.error("Error enabling RTL plugin. It is enabled by default and cannot be unset after. Are you attempting to enable it twice?", t);
392
392
  }
@@ -404,7 +404,7 @@ function Zn(r, e) {
404
404
  url: r
405
405
  };
406
406
  }
407
- return t.host === W.maptilerApiHost && (t.searchParams.has("key") || t.searchParams.append("key", j.apiKey), j.session && t.searchParams.append("mtsid", ir)), {
407
+ return t.host === Y.maptilerApiHost && (t.searchParams.has("key") || t.searchParams.append("key", j.apiKey), j.session && t.searchParams.append("mtsid", ir)), {
408
408
  url: Zo(t, e)
409
409
  };
410
410
  }
@@ -433,37 +433,44 @@ function Qo(r) {
433
433
  }
434
434
  return null;
435
435
  }
436
- function es() {
437
- 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.";
436
+ const es = {
437
+ antialias: !1,
438
+ preserveDrawingBuffer: !1,
439
+ powerPreference: "high-performance",
440
+ failIfMajorPerformanceCaveat: !1,
441
+ desynchronized: !1
442
+ };
443
+ function ts(r = {}) {
444
+ return document.createElement("canvas").getContext("webgl2", { ...es, ...r }) ? 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.";
438
445
  }
439
- function ts(r) {
440
- const e = es();
441
- if (!e) return;
442
- let t = null;
443
- if (typeof r == "string" ? t = document.getElementById(r) : r instanceof HTMLElement && (t = r), !t)
446
+ function rs(r, e) {
447
+ const t = ts(e);
448
+ if (!t) return;
449
+ let n = null;
450
+ if (typeof r == "string" ? n = document.getElementById(r) : r instanceof HTMLElement && (n = r), !n)
444
451
  throw new Error("The Map container must be provided.");
445
- const n = document.createElement("div");
446
- throw n.innerHTML = e, n.classList.add("webgl-warning-div"), t.appendChild(n), new Error(e);
452
+ const a = document.createElement("div");
453
+ throw a.innerHTML = t, a.classList.add("webgl-warning-div"), n.appendChild(a), new Error(t);
447
454
  }
448
- function sf(r) {
455
+ function lf(r) {
449
456
  const e = "The WebGL context was lost.", t = r.getContainer(), n = document.createElement("div");
450
457
  n.innerHTML = e, n.classList.add("webgl-warning-div"), t.appendChild(n);
451
458
  }
452
- function rs(r, e) {
459
+ function ns(r, e) {
453
460
  const t = e ? /\{name:\S+\}/ : /\{name\}/;
454
461
  return {
455
462
  contains: t.test(r),
456
463
  exactMatch: new RegExp(`^${t.source}$`).test(r)
457
464
  };
458
465
  }
459
- function ns(r, e, t) {
466
+ function as(r, e, t) {
460
467
  const n = t ? /\{name:\S+\}/ : /\{name\}/, a = r.split(n);
461
468
  return ["concat", ...a.flatMap((s, l) => {
462
- const u = as(s);
469
+ const u = is(s);
463
470
  return l === a.length - 1 ? [u] : [u, e];
464
471
  })];
465
472
  }
466
- function as(r) {
473
+ function is(r) {
467
474
  return typeof r != "string" || !r.includes("{ele}") ? r : [
468
475
  "case",
469
476
  // if the value contains {ele}
@@ -486,7 +493,7 @@ function as(r) {
486
493
  ""
487
494
  ];
488
495
  }
489
- function is(r) {
496
+ function os(r) {
490
497
  var n;
491
498
  const e = /\{name(?::(?<language>\S+))?\}/g, t = [];
492
499
  for (; ; ) {
@@ -497,7 +504,7 @@ function is(r) {
497
504
  }
498
505
  return t;
499
506
  }
500
- function os(r) {
507
+ function ss(r) {
501
508
  return !Array.isArray(r) || r.length !== 2 || r[0] !== "get" || typeof r[1] != "string" ? null : r[1].trim() === "name" ? {
502
509
  isLanguage: !0,
503
510
  localization: null
@@ -506,17 +513,17 @@ function os(r) {
506
513
  localization: r[1].trim().split(":").pop()
507
514
  } : null;
508
515
  }
509
- function ss(r) {
516
+ function ls(r) {
510
517
  const e = [], t = structuredClone(r), n = (a) => {
511
518
  if (typeof a != "string")
512
519
  for (let i = 0; i < a.length; i += 1) {
513
- const o = os(a[i]);
520
+ const o = ss(a[i]);
514
521
  o ? e.push(o.localization) : n(a[i]);
515
522
  }
516
523
  };
517
524
  return n([t]), e;
518
525
  }
519
- function ls(r, e) {
526
+ function us(r, e) {
520
527
  const t = [];
521
528
  for (const i of r) {
522
529
  if (i.type !== "symbol")
@@ -527,10 +534,10 @@ function ls(r, e) {
527
534
  const u = e.getLayoutProperty(s, "text-field");
528
535
  if (u)
529
536
  if (typeof u == "string") {
530
- const c = is(u);
537
+ const c = os(u);
531
538
  t.push(c);
532
539
  } else {
533
- const c = ss(u);
540
+ const c = ls(u);
534
541
  t.push(c);
535
542
  }
536
543
  }
@@ -542,7 +549,7 @@ function ls(r, e) {
542
549
  i === null ? a.unlocalized += 1 : (i in a.localized || (a.localized[i] = 0), a.localized[i] += 1);
543
550
  return a;
544
551
  }
545
- var us = 8, cs = {
552
+ var cs = 8, ps = {
546
553
  version: {
547
554
  required: !0,
548
555
  type: "enum",
@@ -620,18 +627,18 @@ var us = 8, cs = {
620
627
  type: "array",
621
628
  value: "layer"
622
629
  }
623
- }, ps = {
630
+ }, fs = {
624
631
  "*": {
625
632
  type: "source"
626
633
  }
627
- }, fs = [
634
+ }, ds = [
628
635
  "source_vector",
629
636
  "source_raster",
630
637
  "source_raster_dem",
631
638
  "source_geojson",
632
639
  "source_video",
633
640
  "source_image"
634
- ], ds = {
641
+ ], hs = {
635
642
  type: {
636
643
  required: !0,
637
644
  type: "enum",
@@ -694,7 +701,7 @@ var us = 8, cs = {
694
701
  "*": {
695
702
  type: "*"
696
703
  }
697
- }, hs = {
704
+ }, ms = {
698
705
  type: {
699
706
  required: !0,
700
707
  type: "enum",
@@ -751,7 +758,7 @@ var us = 8, cs = {
751
758
  "*": {
752
759
  type: "*"
753
760
  }
754
- }, ms = {
761
+ }, ys = {
755
762
  type: {
756
763
  required: !0,
757
764
  type: "enum",
@@ -825,7 +832,7 @@ var us = 8, cs = {
825
832
  "*": {
826
833
  type: "*"
827
834
  }
828
- }, ys = {
835
+ }, gs = {
829
836
  type: {
830
837
  required: !0,
831
838
  type: "enum",
@@ -886,7 +893,7 @@ var us = 8, cs = {
886
893
  promoteId: {
887
894
  type: "promoteId"
888
895
  }
889
- }, gs = {
896
+ }, vs = {
890
897
  type: {
891
898
  required: !0,
892
899
  type: "enum",
@@ -909,7 +916,7 @@ var us = 8, cs = {
909
916
  value: "number"
910
917
  }
911
918
  }
912
- }, vs = {
919
+ }, bs = {
913
920
  type: {
914
921
  required: !0,
915
922
  type: "enum",
@@ -931,7 +938,7 @@ var us = 8, cs = {
931
938
  value: "number"
932
939
  }
933
940
  }
934
- }, bs = {
941
+ }, ws = {
935
942
  id: {
936
943
  type: "string",
937
944
  required: !0
@@ -980,7 +987,7 @@ var us = 8, cs = {
980
987
  paint: {
981
988
  type: "paint"
982
989
  }
983
- }, ws = [
990
+ }, Ss = [
984
991
  "layout_fill",
985
992
  "layout_line",
986
993
  "layout_circle",
@@ -991,7 +998,7 @@ var us = 8, cs = {
991
998
  "layout_hillshade",
992
999
  "layout_color-relief",
993
1000
  "layout_background"
994
- ], Ss = {
1001
+ ], xs = {
995
1002
  visibility: {
996
1003
  type: "enum",
997
1004
  values: {
@@ -1007,7 +1014,7 @@ var us = 8, cs = {
1007
1014
  },
1008
1015
  "property-type": "data-constant"
1009
1016
  }
1010
- }, xs = {
1017
+ }, ks = {
1011
1018
  "fill-sort-key": {
1012
1019
  type: "number",
1013
1020
  expression: {
@@ -1034,7 +1041,7 @@ var us = 8, cs = {
1034
1041
  },
1035
1042
  "property-type": "data-constant"
1036
1043
  }
1037
- }, ks = {
1044
+ }, Es = {
1038
1045
  "circle-sort-key": {
1039
1046
  type: "number",
1040
1047
  expression: {
@@ -1061,7 +1068,7 @@ var us = 8, cs = {
1061
1068
  },
1062
1069
  "property-type": "data-constant"
1063
1070
  }
1064
- }, Es = {
1071
+ }, Ls = {
1065
1072
  visibility: {
1066
1073
  type: "enum",
1067
1074
  values: {
@@ -1077,7 +1084,7 @@ var us = 8, cs = {
1077
1084
  },
1078
1085
  "property-type": "data-constant"
1079
1086
  }
1080
- }, Ls = {
1087
+ }, Cs = {
1081
1088
  "line-cap": {
1082
1089
  type: "enum",
1083
1090
  values: {
@@ -1169,7 +1176,7 @@ var us = 8, cs = {
1169
1176
  },
1170
1177
  "property-type": "data-constant"
1171
1178
  }
1172
- }, Cs = {
1179
+ }, As = {
1173
1180
  "symbol-placement": {
1174
1181
  type: "enum",
1175
1182
  values: {
@@ -2002,7 +2009,7 @@ var us = 8, cs = {
2002
2009
  },
2003
2010
  "property-type": "data-constant"
2004
2011
  }
2005
- }, As = {
2012
+ }, Ts = {
2006
2013
  visibility: {
2007
2014
  type: "enum",
2008
2015
  values: {
@@ -2018,7 +2025,7 @@ var us = 8, cs = {
2018
2025
  },
2019
2026
  "property-type": "data-constant"
2020
2027
  }
2021
- }, Ts = {
2028
+ }, Is = {
2022
2029
  visibility: {
2023
2030
  type: "enum",
2024
2031
  values: {
@@ -2034,7 +2041,7 @@ var us = 8, cs = {
2034
2041
  },
2035
2042
  "property-type": "data-constant"
2036
2043
  }
2037
- }, Is = {
2044
+ }, _s = {
2038
2045
  type: "boolean",
2039
2046
  expression: {
2040
2047
  interpolated: !1,
@@ -2044,7 +2051,7 @@ var us = 8, cs = {
2044
2051
  ]
2045
2052
  },
2046
2053
  "property-type": "data-driven"
2047
- }, _s = {
2054
+ }, Ms = {
2048
2055
  type: "enum",
2049
2056
  values: {
2050
2057
  "==": {},
@@ -2061,14 +2068,14 @@ var us = 8, cs = {
2061
2068
  has: {},
2062
2069
  "!has": {}
2063
2070
  }
2064
- }, Ms = {
2071
+ }, Ps = {
2065
2072
  type: "enum",
2066
2073
  values: {
2067
2074
  Point: {},
2068
2075
  LineString: {},
2069
2076
  Polygon: {}
2070
2077
  }
2071
- }, Ps = {
2078
+ }, Rs = {
2072
2079
  type: "array",
2073
2080
  minimum: 0,
2074
2081
  maximum: 24,
@@ -2077,11 +2084,11 @@ var us = 8, cs = {
2077
2084
  "color"
2078
2085
  ],
2079
2086
  length: 2
2080
- }, Rs = {
2087
+ }, Os = {
2081
2088
  type: "array",
2082
2089
  value: "expression_name",
2083
2090
  minimum: 1
2084
- }, Os = {
2091
+ }, zs = {
2085
2092
  anchor: {
2086
2093
  type: "enum",
2087
2094
  default: "viewport",
@@ -2142,7 +2149,7 @@ var us = 8, cs = {
2142
2149
  },
2143
2150
  transition: !0
2144
2151
  }
2145
- }, zs = {
2152
+ }, Fs = {
2146
2153
  "sky-color": {
2147
2154
  type: "color",
2148
2155
  "property-type": "data-constant",
@@ -2235,7 +2242,7 @@ var us = 8, cs = {
2235
2242
  },
2236
2243
  transition: !0
2237
2244
  }
2238
- }, Fs = {
2245
+ }, $s = {
2239
2246
  source: {
2240
2247
  type: "string",
2241
2248
  required: !0
@@ -2245,7 +2252,7 @@ var us = 8, cs = {
2245
2252
  minimum: 0,
2246
2253
  default: 1
2247
2254
  }
2248
- }, $s = {
2255
+ }, Ns = {
2249
2256
  type: {
2250
2257
  type: "projectionDefinition",
2251
2258
  default: "mercator",
@@ -2258,7 +2265,7 @@ var us = 8, cs = {
2258
2265
  ]
2259
2266
  }
2260
2267
  }
2261
- }, Ns = [
2268
+ }, js = [
2262
2269
  "paint_fill",
2263
2270
  "paint_line",
2264
2271
  "paint_circle",
@@ -2269,7 +2276,7 @@ var us = 8, cs = {
2269
2276
  "paint_hillshade",
2270
2277
  "paint_color-relief",
2271
2278
  "paint_background"
2272
- ], js = {
2279
+ ], Ds = {
2273
2280
  "fill-antialias": {
2274
2281
  type: "boolean",
2275
2282
  default: !0,
@@ -2385,7 +2392,7 @@ var us = 8, cs = {
2385
2392
  },
2386
2393
  "property-type": "cross-faded-data-driven"
2387
2394
  }
2388
- }, Ds = {
2395
+ }, Us = {
2389
2396
  "line-opacity": {
2390
2397
  type: "number",
2391
2398
  default: 1,
@@ -2577,7 +2584,7 @@ var us = 8, cs = {
2577
2584
  },
2578
2585
  "property-type": "color-ramp"
2579
2586
  }
2580
- }, Us = {
2587
+ }, Bs = {
2581
2588
  "circle-radius": {
2582
2589
  type: "number",
2583
2590
  default: 5,
@@ -2750,7 +2757,7 @@ var us = 8, cs = {
2750
2757
  },
2751
2758
  "property-type": "data-driven"
2752
2759
  }
2753
- }, Bs = {
2760
+ }, qs = {
2754
2761
  "heatmap-radius": {
2755
2762
  type: "number",
2756
2763
  default: 30,
@@ -2841,7 +2848,7 @@ var us = 8, cs = {
2841
2848
  },
2842
2849
  "property-type": "data-constant"
2843
2850
  }
2844
- }, qs = {
2851
+ }, Vs = {
2845
2852
  "icon-opacity": {
2846
2853
  type: "number",
2847
2854
  default: 1,
@@ -3105,7 +3112,7 @@ var us = 8, cs = {
3105
3112
  },
3106
3113
  "property-type": "data-constant"
3107
3114
  }
3108
- }, Vs = {
3115
+ }, Gs = {
3109
3116
  "raster-opacity": {
3110
3117
  type: "number",
3111
3118
  default: 1,
@@ -3234,7 +3241,7 @@ var us = 8, cs = {
3234
3241
  },
3235
3242
  "property-type": "data-constant"
3236
3243
  }
3237
- }, Gs = {
3244
+ }, Hs = {
3238
3245
  "hillshade-illumination-direction": {
3239
3246
  type: "numberArray",
3240
3247
  default: 335,
@@ -3361,7 +3368,7 @@ var us = 8, cs = {
3361
3368
  },
3362
3369
  "property-type": "data-constant"
3363
3370
  }
3364
- }, Hs = {
3371
+ }, Ks = {
3365
3372
  "background-color": {
3366
3373
  type: "color",
3367
3374
  default: "#000000",
@@ -3404,7 +3411,7 @@ var us = 8, cs = {
3404
3411
  },
3405
3412
  "property-type": "data-constant"
3406
3413
  }
3407
- }, Ks = {
3414
+ }, Zs = {
3408
3415
  duration: {
3409
3416
  type: "number",
3410
3417
  default: 300,
@@ -3417,11 +3424,11 @@ var us = 8, cs = {
3417
3424
  minimum: 0,
3418
3425
  units: "milliseconds"
3419
3426
  }
3420
- }, Zs = {
3427
+ }, Xs = {
3421
3428
  "*": {
3422
3429
  type: "string"
3423
3430
  }
3424
- }, Xs = {
3431
+ }, Ws = {
3425
3432
  type: "array",
3426
3433
  value: "interpolation_name",
3427
3434
  minimum: 1
@@ -3491,23 +3498,23 @@ var us = 8, cs = {
3491
3498
  }
3492
3499
  }
3493
3500
  }
3494
- }, Ws = {
3495
- $version: us,
3496
- $root: cs,
3497
- sources: ps,
3498
- source: fs,
3499
- source_vector: ds,
3500
- source_raster: hs,
3501
- source_raster_dem: ms,
3502
- source_geojson: ys,
3503
- source_video: gs,
3504
- source_image: vs,
3505
- layer: bs,
3506
- layout: ws,
3507
- layout_background: Ss,
3508
- layout_fill: xs,
3509
- layout_circle: ks,
3510
- layout_heatmap: Es,
3501
+ }, Js = {
3502
+ $version: cs,
3503
+ $root: ps,
3504
+ sources: fs,
3505
+ source: ds,
3506
+ source_vector: hs,
3507
+ source_raster: ms,
3508
+ source_raster_dem: ys,
3509
+ source_geojson: gs,
3510
+ source_video: vs,
3511
+ source_image: bs,
3512
+ layer: ws,
3513
+ layout: Ss,
3514
+ layout_background: xs,
3515
+ layout_fill: ks,
3516
+ layout_circle: Es,
3517
+ layout_heatmap: Ls,
3511
3518
  "layout_fill-extrusion": {
3512
3519
  visibility: {
3513
3520
  type: "enum",
@@ -3525,10 +3532,10 @@ var us = 8, cs = {
3525
3532
  "property-type": "data-constant"
3526
3533
  }
3527
3534
  },
3528
- layout_line: Ls,
3529
- layout_symbol: Cs,
3530
- layout_raster: As,
3531
- layout_hillshade: Ts,
3535
+ layout_line: Cs,
3536
+ layout_symbol: As,
3537
+ layout_raster: Ts,
3538
+ layout_hillshade: Is,
3532
3539
  "layout_color-relief": {
3533
3540
  visibility: {
3534
3541
  type: "enum",
@@ -3546,9 +3553,9 @@ var us = 8, cs = {
3546
3553
  "property-type": "data-constant"
3547
3554
  }
3548
3555
  },
3549
- filter: Is,
3550
- filter_operator: _s,
3551
- geometry_type: Ms,
3556
+ filter: _s,
3557
+ filter_operator: Ms,
3558
+ geometry_type: Ps,
3552
3559
  function: {
3553
3560
  expression: {
3554
3561
  type: "expression"
@@ -3590,14 +3597,14 @@ var us = 8, cs = {
3590
3597
  required: !1
3591
3598
  }
3592
3599
  },
3593
- function_stop: Ps,
3594
- expression: Rs,
3595
- light: Os,
3596
- sky: zs,
3597
- terrain: Fs,
3598
- projection: $s,
3599
- paint: Ns,
3600
- paint_fill: js,
3600
+ function_stop: Rs,
3601
+ expression: Os,
3602
+ light: zs,
3603
+ sky: Fs,
3604
+ terrain: $s,
3605
+ projection: Ns,
3606
+ paint: js,
3607
+ paint_fill: Ds,
3601
3608
  "paint_fill-extrusion": {
3602
3609
  "fill-extrusion-opacity": {
3603
3610
  type: "number",
@@ -3728,12 +3735,12 @@ var us = 8, cs = {
3728
3735
  "property-type": "data-constant"
3729
3736
  }
3730
3737
  },
3731
- paint_line: Ds,
3732
- paint_circle: Us,
3733
- paint_heatmap: Bs,
3734
- paint_symbol: qs,
3735
- paint_raster: Vs,
3736
- paint_hillshade: Gs,
3738
+ paint_line: Us,
3739
+ paint_circle: Bs,
3740
+ paint_heatmap: qs,
3741
+ paint_symbol: Vs,
3742
+ paint_raster: Gs,
3743
+ paint_hillshade: Hs,
3737
3744
  "paint_color-relief": {
3738
3745
  "color-relief-opacity": {
3739
3746
  type: "number",
@@ -3776,8 +3783,8 @@ var us = 8, cs = {
3776
3783
  "property-type": "data-constant"
3777
3784
  }
3778
3785
  },
3779
- paint_background: Hs,
3780
- transition: Ks,
3786
+ paint_background: Ks,
3787
+ transition: Zs,
3781
3788
  "property-type": {
3782
3789
  "data-driven": {
3783
3790
  type: "property-type"
@@ -3798,8 +3805,8 @@ var us = 8, cs = {
3798
3805
  type: "property-type"
3799
3806
  }
3800
3807
  },
3801
- promoteId: Zs,
3802
- interpolation: Xs,
3808
+ promoteId: Xs,
3809
+ interpolation: Ws,
3803
3810
  interpolation_name: Ys
3804
3811
  };
3805
3812
  class w {
@@ -3840,7 +3847,7 @@ class dn {
3840
3847
  }
3841
3848
  const sr = { kind: "null" }, S = { kind: "number" }, I = { kind: "string" }, P = { kind: "boolean" }, be = { kind: "color" }, lr = {
3842
3849
  kind: "projectionDefinition"
3843
- }, qe = { kind: "object" }, M = { kind: "value" }, Js = { kind: "error" }, ur = { kind: "collator" }, cr = { kind: "formatted" }, pr = { kind: "padding" }, gt = { kind: "colorArray" }, fr = { kind: "numberArray" }, It = { kind: "resolvedImage" }, dr = {
3850
+ }, qe = { kind: "object" }, M = { kind: "value" }, Qs = { kind: "error" }, ur = { kind: "collator" }, cr = { kind: "formatted" }, pr = { kind: "padding" }, gt = { kind: "colorArray" }, fr = { kind: "numberArray" }, It = { kind: "resolvedImage" }, dr = {
3844
3851
  kind: "variableAnchorOffsetCollection"
3845
3852
  };
3846
3853
  function J(r, e) {
@@ -3857,7 +3864,7 @@ function D(r) {
3857
3864
  } else
3858
3865
  return r.kind;
3859
3866
  }
3860
- const Qs = [
3867
+ const el = [
3861
3868
  sr,
3862
3869
  S,
3863
3870
  I,
@@ -3883,7 +3890,7 @@ function vt(r, e) {
3883
3890
  if (r.kind === e.kind)
3884
3891
  return null;
3885
3892
  if (r.kind === "value") {
3886
- for (const t of Qs)
3893
+ for (const t of el)
3887
3894
  if (!vt(t, e))
3888
3895
  return null;
3889
3896
  }
@@ -3899,7 +3906,7 @@ function Ve(r, e) {
3899
3906
  function Ae(r, e) {
3900
3907
  return r.kind === "array" && e.kind === "array" ? r.itemType.kind === e.itemType.kind && typeof r.N == "number" : r.kind === e.kind;
3901
3908
  }
3902
- const ei = 0.96422, ti = 1, ri = 0.82521, ni = 4 / 29, nt = 6 / 29, ai = 3 * nt * nt, el = nt * nt * nt, tl = Math.PI / 180, rl = 180 / Math.PI;
3909
+ const ei = 0.96422, ti = 1, ri = 0.82521, ni = 4 / 29, nt = 6 / 29, ai = 3 * nt * nt, tl = nt * nt * nt, rl = Math.PI / 180, nl = 180 / Math.PI;
3903
3910
  function ii(r) {
3904
3911
  return r = r % 360, r < 0 && (r += 360), r;
3905
3912
  }
@@ -3915,7 +3922,7 @@ function Tr(r) {
3915
3922
  return r <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
3916
3923
  }
3917
3924
  function Ir(r) {
3918
- return r > el ? Math.pow(r, 1 / 3) : r / ai + ni;
3925
+ return r > tl ? Math.pow(r, 1 / 3) : r / ai + ni;
3919
3926
  }
3920
3927
  function si([r, e, t, n]) {
3921
3928
  let a = (r + 16) / 116, i = isNaN(e) ? a : a + e / 500, o = isNaN(t) ? a : a - t / 200;
@@ -3933,14 +3940,14 @@ function _r(r) {
3933
3940
  function Mr(r) {
3934
3941
  return r > nt ? r * r * r : ai * (r - ni);
3935
3942
  }
3936
- function nl(r) {
3943
+ function al(r) {
3937
3944
  const [e, t, n, a] = oi(r), i = Math.sqrt(t * t + n * n);
3938
- return [Math.round(i * 1e4) ? ii(Math.atan2(n, t) * rl) : NaN, i, e, a];
3939
- }
3940
- function al([r, e, t, n]) {
3941
- return r = isNaN(r) ? 0 : r * tl, si([t, Math.cos(r) * e, Math.sin(r) * e, n]);
3945
+ return [Math.round(i * 1e4) ? ii(Math.atan2(n, t) * nl) : NaN, i, e, a];
3942
3946
  }
3943
3947
  function il([r, e, t, n]) {
3948
+ return r = isNaN(r) ? 0 : r * rl, si([t, Math.cos(r) * e, Math.sin(r) * e, n]);
3949
+ }
3950
+ function ol([r, e, t, n]) {
3944
3951
  r = ii(r), e /= 100, t /= 100;
3945
3952
  function a(i) {
3946
3953
  const o = (i + r / 30) % 12, s = e * Math.min(t, 1 - t);
@@ -3948,16 +3955,16 @@ function il([r, e, t, n]) {
3948
3955
  }
3949
3956
  return [a(0), a(8), a(4), n];
3950
3957
  }
3951
- const ol = Object.hasOwn || function(e, t) {
3958
+ const sl = Object.hasOwn || function(e, t) {
3952
3959
  return Object.prototype.hasOwnProperty.call(e, t);
3953
3960
  };
3954
3961
  function ht(r, e) {
3955
- return ol(r, e) ? r[e] : void 0;
3962
+ return sl(r, e) ? r[e] : void 0;
3956
3963
  }
3957
- function sl(r) {
3964
+ function ll(r) {
3958
3965
  if (r = r.toLowerCase().trim(), r === "transparent")
3959
3966
  return [0, 0, 0, 0];
3960
- const e = ht(ll, r);
3967
+ const e = ht(ul, r);
3961
3968
  if (e) {
3962
3969
  const [a, i, o] = e;
3963
3970
  return [a / 255, i / 255, o / 255, 1];
@@ -4008,9 +4015,9 @@ function sl(r) {
4008
4015
  et(+s / C, 0, 1),
4009
4016
  et(+c / C, 0, 1),
4010
4017
  et(+d / C, 0, 1),
4011
- g ? Yn(+g, b) : 1
4018
+ g ? Wn(+g, b) : 1
4012
4019
  ];
4013
- if (Wn(L))
4020
+ if (Yn(L))
4014
4021
  return L;
4015
4022
  }
4016
4023
  }
@@ -4044,26 +4051,26 @@ function sl(r) {
4044
4051
  +i,
4045
4052
  et(+s, 0, 100),
4046
4053
  et(+u, 0, 100),
4047
- p ? Yn(+p, f) : 1
4054
+ p ? Wn(+p, f) : 1
4048
4055
  ];
4049
- if (Wn(h))
4050
- return il(h);
4056
+ if (Yn(h))
4057
+ return ol(h);
4051
4058
  }
4052
4059
  }
4053
4060
  }
4054
4061
  function zt(r) {
4055
4062
  return parseInt(r.padEnd(2, r), 16) / 255;
4056
4063
  }
4057
- function Yn(r, e) {
4064
+ function Wn(r, e) {
4058
4065
  return et(e ? r / 100 : r, 0, 1);
4059
4066
  }
4060
4067
  function et(r, e, t) {
4061
4068
  return Math.min(Math.max(e, r), t);
4062
4069
  }
4063
- function Wn(r) {
4070
+ function Yn(r) {
4064
4071
  return !r.some(Number.isNaN);
4065
4072
  }
4066
- const ll = {
4073
+ const ul = {
4067
4074
  aliceblue: [240, 248, 255],
4068
4075
  antiquewhite: [250, 235, 215],
4069
4076
  aqua: [0, 255, 255],
@@ -4248,7 +4255,7 @@ class $ {
4248
4255
  return e;
4249
4256
  if (typeof e != "string")
4250
4257
  return;
4251
- const t = sl(e);
4258
+ const t = ll(e);
4252
4259
  if (t)
4253
4260
  return new $(...t, !1);
4254
4261
  }
@@ -4267,7 +4274,7 @@ class $ {
4267
4274
  * @returns Gien color, with reversed alpha blending, in HCL color space.
4268
4275
  */
4269
4276
  get hcl() {
4270
- return this.overwriteGetter("hcl", nl(this.rgb));
4277
+ return this.overwriteGetter("hcl", al(this.rgb));
4271
4278
  }
4272
4279
  /**
4273
4280
  * Used in color interpolation.
@@ -4328,7 +4335,7 @@ class $ {
4328
4335
  let x = u - i;
4329
4336
  u > i && x > 180 ? x -= 360 : u < i && i - u > 180 && (x += 360), d = i + n * x;
4330
4337
  } else isNaN(i) ? isNaN(u) ? d = NaN : (d = u, (s === 1 || s === 0) && (h = c)) : (d = i, (p === 1 || p === 0) && (h = o));
4331
- const [m, g, b, v] = al([
4338
+ const [m, g, b, v] = il([
4332
4339
  d,
4333
4340
  h ?? Ge(o, c, n),
4334
4341
  Ge(s, p, n),
@@ -4361,7 +4368,7 @@ class mn {
4361
4368
  return new Intl.Collator(this.locale ? this.locale : []).resolvedOptions().locale;
4362
4369
  }
4363
4370
  }
4364
- const ul = ["bottom", "center", "top"];
4371
+ const cl = ["bottom", "center", "top"];
4365
4372
  class Hr {
4366
4373
  constructor(e, t, n, a, i, o) {
4367
4374
  this.text = e, this.image = t, this.scale = n, this.fontStack = a, this.textColor = i, this.verticalAlign = o;
@@ -4500,7 +4507,7 @@ class V extends Error {
4500
4507
  return this.message;
4501
4508
  }
4502
4509
  }
4503
- const cl = /* @__PURE__ */ new Set([
4510
+ const pl = /* @__PURE__ */ new Set([
4504
4511
  "center",
4505
4512
  "left",
4506
4513
  "right",
@@ -4521,7 +4528,7 @@ class we {
4521
4528
  if (!(!Array.isArray(e) || e.length < 1 || e.length % 2 !== 0)) {
4522
4529
  for (let t = 0; t < e.length; t += 2) {
4523
4530
  const n = e[t], a = e[t + 1];
4524
- if (typeof n != "string" || !cl.has(n) || !Array.isArray(a) || a.length !== 2 || typeof a[0] != "number" || typeof a[1] != "number")
4531
+ if (typeof n != "string" || !pl.has(n) || !Array.isArray(a) || a.length !== 2 || typeof a[0] != "number" || typeof a[1] != "number")
4525
4532
  return;
4526
4533
  }
4527
4534
  return new we(e);
@@ -4840,7 +4847,7 @@ class Re {
4840
4847
  return this.args.every((e) => e.outputDefined());
4841
4848
  }
4842
4849
  }
4843
- const pl = ["Unknown", "Point", "LineString", "Polygon"];
4850
+ const fl = ["Unknown", "Point", "LineString", "Polygon"];
4844
4851
  class ui {
4845
4852
  constructor() {
4846
4853
  this.globals = null, this.feature = null, this.featureState = null, this.formattedSection = null, this._parseColorCache = /* @__PURE__ */ new Map(), this.availableImages = null, this.canonical = null;
@@ -4849,7 +4856,7 @@ class ui {
4849
4856
  return this.feature && "id" in this.feature ? this.feature.id : null;
4850
4857
  }
4851
4858
  geometryType() {
4852
- return this.feature ? typeof this.feature.type == "number" ? pl[this.feature.type] : this.feature.type : null;
4859
+ return this.feature ? typeof this.feature.type == "number" ? fl[this.feature.type] : this.feature.type : null;
4853
4860
  }
4854
4861
  geometry() {
4855
4862
  return this.feature && "geometry" in this.feature ? this.feature.geometry : null;
@@ -5200,7 +5207,7 @@ class bn {
5200
5207
  return this.branches.every(([e, t]) => t.outputDefined()) && this.otherwise.outputDefined();
5201
5208
  }
5202
5209
  }
5203
- class Yt {
5210
+ class Wt {
5204
5211
  constructor(e, t, n, a) {
5205
5212
  this.type = e, this.input = t, this.beginIndex = n, this.endIndex = a;
5206
5213
  }
@@ -5214,9 +5221,9 @@ class Yt {
5214
5221
  return t.error(`Expected first argument to be of type array or string, but found ${D(n.type)} instead`);
5215
5222
  if (e.length === 4) {
5216
5223
  const i = t.parse(e[3], 3, S);
5217
- return i ? new Yt(n.type, n, a, i) : null;
5224
+ return i ? new Wt(n.type, n, a, i) : null;
5218
5225
  } else
5219
- return new Yt(n.type, n, a);
5226
+ return new Wt(n.type, n, a);
5220
5227
  }
5221
5228
  evaluate(e) {
5222
5229
  const t = this.input.evaluate(e), n = this.beginIndex.evaluate(e);
@@ -5300,11 +5307,11 @@ class gr {
5300
5307
  return this.outputs.every((e) => e.outputDefined());
5301
5308
  }
5302
5309
  }
5303
- function fl(r) {
5310
+ function dl(r) {
5304
5311
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
5305
5312
  }
5306
5313
  var Pr, Qn;
5307
- function dl() {
5314
+ function hl() {
5308
5315
  if (Qn) return Pr;
5309
5316
  Qn = 1, Pr = r;
5310
5317
  function r(e, t, n, a) {
@@ -5340,7 +5347,7 @@ function dl() {
5340
5347
  }
5341
5348
  }, Pr;
5342
5349
  }
5343
- var hl = dl(), ml = /* @__PURE__ */ fl(hl);
5350
+ var ml = hl(), yl = /* @__PURE__ */ dl(ml);
5344
5351
  class Se {
5345
5352
  constructor(e, t, n, a, i) {
5346
5353
  this.type = e, this.operator = t, this.interpolation = n, this.input = a, this.labels = [], this.outputs = [];
@@ -5355,7 +5362,7 @@ class Se {
5355
5362
  i = Rr(t, 1, n, a);
5356
5363
  else if (e.name === "cubic-bezier") {
5357
5364
  const o = e.controlPoints;
5358
- i = new ml(o[0], o[1], o[2], o[3]).solve(Rr(t, 1, n, a));
5365
+ i = new yl(o[0], o[1], o[2], o[3]).solve(Rr(t, 1, n, a));
5359
5366
  }
5360
5367
  return i;
5361
5368
  }
@@ -5505,40 +5512,40 @@ class St {
5505
5512
  function ea(r, e) {
5506
5513
  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";
5507
5514
  }
5508
- function yl(r, e, t) {
5515
+ function gl(r, e, t) {
5509
5516
  return e === t;
5510
5517
  }
5511
- function gl(r, e, t) {
5518
+ function vl(r, e, t) {
5512
5519
  return e !== t;
5513
5520
  }
5514
- function vl(r, e, t) {
5521
+ function bl(r, e, t) {
5515
5522
  return e < t;
5516
5523
  }
5517
- function bl(r, e, t) {
5524
+ function wl(r, e, t) {
5518
5525
  return e > t;
5519
5526
  }
5520
- function wl(r, e, t) {
5527
+ function Sl(r, e, t) {
5521
5528
  return e <= t;
5522
5529
  }
5523
- function Sl(r, e, t) {
5530
+ function xl(r, e, t) {
5524
5531
  return e >= t;
5525
5532
  }
5526
5533
  function pi(r, e, t, n) {
5527
5534
  return n.compare(e, t) === 0;
5528
5535
  }
5529
- function xl(r, e, t, n) {
5536
+ function kl(r, e, t, n) {
5530
5537
  return !pi(r, e, t, n);
5531
5538
  }
5532
- function kl(r, e, t, n) {
5539
+ function El(r, e, t, n) {
5533
5540
  return n.compare(e, t) < 0;
5534
5541
  }
5535
- function El(r, e, t, n) {
5542
+ function Ll(r, e, t, n) {
5536
5543
  return n.compare(e, t) > 0;
5537
5544
  }
5538
- function Ll(r, e, t, n) {
5545
+ function Cl(r, e, t, n) {
5539
5546
  return n.compare(e, t) <= 0;
5540
5547
  }
5541
- function Cl(r, e, t, n) {
5548
+ function Al(r, e, t, n) {
5542
5549
  return n.compare(e, t) >= 0;
5543
5550
  }
5544
5551
  function ut(r, e, t) {
@@ -5595,7 +5602,7 @@ function ut(r, e, t) {
5595
5602
  }
5596
5603
  };
5597
5604
  }
5598
- const Al = ut("==", yl, pi), Tl = ut("!=", gl, xl), Il = ut("<", vl, kl), _l = ut(">", bl, El), Ml = ut("<=", wl, Ll), Pl = ut(">=", Sl, Cl);
5605
+ const Tl = ut("==", gl, pi), Il = ut("!=", vl, kl), _l = ut("<", bl, El), Ml = ut(">", wl, Ll), Pl = ut("<=", Sl, Cl), Rl = ut(">=", xl, Al);
5599
5606
  class vr {
5600
5607
  constructor(e, t, n) {
5601
5608
  this.type = ur, this.locale = n, this.caseSensitive = e, this.diacriticSensitive = t;
@@ -5698,7 +5705,7 @@ class Sn {
5698
5705
  return null;
5699
5706
  let p = null;
5700
5707
  if (s["vertical-align"]) {
5701
- if (typeof s["vertical-align"] == "string" && !ul.includes(s["vertical-align"]))
5708
+ if (typeof s["vertical-align"] == "string" && !cl.includes(s["vertical-align"]))
5702
5709
  return t.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);
5703
5710
  if (p = t.parse(s["vertical-align"], 1, I), !p)
5704
5711
  return null;
@@ -5785,24 +5792,24 @@ class kn {
5785
5792
  }
5786
5793
  }
5787
5794
  const xe = 8192;
5788
- function Rl(r, e) {
5789
- const t = Ol(r[0]), n = Fl(r[1]), a = Math.pow(2, e.z);
5795
+ function Ol(r, e) {
5796
+ const t = zl(r[0]), n = $l(r[1]), a = Math.pow(2, e.z);
5790
5797
  return [Math.round(t * a * xe), Math.round(n * a * xe)];
5791
5798
  }
5792
5799
  function En(r, e) {
5793
5800
  const t = Math.pow(2, e.z), n = (r[0] / xe + e.x) / t, a = (r[1] / xe + e.y) / t;
5794
- return [zl(n), $l(a)];
5801
+ return [Fl(n), Nl(a)];
5795
5802
  }
5796
- function Ol(r) {
5803
+ function zl(r) {
5797
5804
  return (180 + r) / 360;
5798
5805
  }
5799
- function zl(r) {
5806
+ function Fl(r) {
5800
5807
  return r * 360 - 180;
5801
5808
  }
5802
- function Fl(r) {
5809
+ function $l(r) {
5803
5810
  return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + r * Math.PI / 360))) / 360;
5804
5811
  }
5805
- function $l(r) {
5812
+ function Nl(r) {
5806
5813
  return 360 / Math.PI * Math.atan(Math.exp((180 - r * 360) * Math.PI / 180)) - 90;
5807
5814
  }
5808
5815
  function _t(r, e) {
@@ -5811,18 +5818,18 @@ function _t(r, e) {
5811
5818
  function xt(r, e) {
5812
5819
  return !(r[0] <= e[0] || r[2] >= e[2] || r[1] <= e[1] || r[3] >= e[3]);
5813
5820
  }
5814
- function Nl(r, e, t) {
5821
+ function jl(r, e, t) {
5815
5822
  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];
5816
5823
  }
5817
- function jl(r, e, t) {
5824
+ function Dl(r, e, t) {
5818
5825
  const n = r[0] - e[0], a = r[1] - e[1], i = r[0] - t[0], o = r[1] - t[1];
5819
5826
  return n * o - i * a === 0 && n * i <= 0 && a * o <= 0;
5820
5827
  }
5821
5828
  function br(r, e, t, n) {
5822
5829
  const a = [e[0] - r[0], e[1] - r[1]], i = [n[0] - t[0], n[1] - t[1]];
5823
- return ql(i, a) === 0 ? !1 : !!(ta(r, e, t, n) && ta(t, n, r, e));
5830
+ return Vl(i, a) === 0 ? !1 : !!(ta(r, e, t, n) && ta(t, n, r, e));
5824
5831
  }
5825
- function Dl(r, e, t) {
5832
+ function Ul(r, e, t) {
5826
5833
  for (const n of t)
5827
5834
  for (let a = 0; a < n.length - 1; ++a)
5828
5835
  if (br(r, e, n[a], n[a + 1]))
@@ -5833,13 +5840,13 @@ function ct(r, e, t = !1) {
5833
5840
  let n = !1;
5834
5841
  for (const a of e)
5835
5842
  for (let i = 0; i < a.length - 1; i++) {
5836
- if (jl(r, a[i], a[i + 1]))
5843
+ if (Dl(r, a[i], a[i + 1]))
5837
5844
  return t;
5838
- Nl(r, a[i], a[i + 1]) && (n = !n);
5845
+ jl(r, a[i], a[i + 1]) && (n = !n);
5839
5846
  }
5840
5847
  return n;
5841
5848
  }
5842
- function Ul(r, e) {
5849
+ function Bl(r, e) {
5843
5850
  for (const t of e)
5844
5851
  if (ct(r, t))
5845
5852
  return !0;
@@ -5850,17 +5857,17 @@ function di(r, e) {
5850
5857
  if (!ct(t, e))
5851
5858
  return !1;
5852
5859
  for (let t = 0; t < r.length - 1; ++t)
5853
- if (Dl(r[t], r[t + 1], e))
5860
+ if (Ul(r[t], r[t + 1], e))
5854
5861
  return !1;
5855
5862
  return !0;
5856
5863
  }
5857
- function Bl(r, e) {
5864
+ function ql(r, e) {
5858
5865
  for (const t of e)
5859
5866
  if (di(r, t))
5860
5867
  return !0;
5861
5868
  return !1;
5862
5869
  }
5863
- function ql(r, e) {
5870
+ function Vl(r, e) {
5864
5871
  return r[0] * e[1] - r[1] * e[0];
5865
5872
  }
5866
5873
  function ta(r, e, t, n) {
@@ -5872,7 +5879,7 @@ function Ln(r, e, t) {
5872
5879
  for (let a = 0; a < r.length; a++) {
5873
5880
  const i = [];
5874
5881
  for (let o = 0; o < r[a].length; o++) {
5875
- const s = Rl(r[a][o], t);
5882
+ const s = Ol(r[a][o], t);
5876
5883
  _t(e, s), i.push(s);
5877
5884
  }
5878
5885
  n.push(i);
@@ -5895,7 +5902,7 @@ function mi(r, e, t, n) {
5895
5902
  }
5896
5903
  _t(e, r);
5897
5904
  }
5898
- function Vl(r) {
5905
+ function Gl(r) {
5899
5906
  r[0] = r[1] = 1 / 0, r[2] = r[3] = -1 / 0;
5900
5907
  }
5901
5908
  function ra(r, e, t, n) {
@@ -5918,14 +5925,14 @@ function na(r, e, t, n) {
5918
5925
  o.push(l);
5919
5926
  }
5920
5927
  if (e[2] - e[0] <= a / 2) {
5921
- Vl(e);
5928
+ Gl(e);
5922
5929
  for (const s of o)
5923
5930
  for (const l of s)
5924
5931
  mi(l, e, t, a);
5925
5932
  }
5926
5933
  return o;
5927
5934
  }
5928
- function Gl(r, e) {
5935
+ function Hl(r, e) {
5929
5936
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n = [1 / 0, 1 / 0, -1 / 0, -1 / 0], a = r.canonicalID();
5930
5937
  if (e.type === "Polygon") {
5931
5938
  const i = Ln(e.coordinates, n, a), o = ra(r.geometry(), t, n, a);
@@ -5940,12 +5947,12 @@ function Gl(r, e) {
5940
5947
  if (!xt(t, n))
5941
5948
  return !1;
5942
5949
  for (const s of o)
5943
- if (!Ul(s, i))
5950
+ if (!Bl(s, i))
5944
5951
  return !1;
5945
5952
  }
5946
5953
  return !0;
5947
5954
  }
5948
- function Hl(r, e) {
5955
+ function Kl(r, e) {
5949
5956
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n = [1 / 0, 1 / 0, -1 / 0, -1 / 0], a = r.canonicalID();
5950
5957
  if (e.type === "Polygon") {
5951
5958
  const i = Ln(e.coordinates, n, a), o = na(r.geometry(), t, n, a);
@@ -5960,7 +5967,7 @@ function Hl(r, e) {
5960
5967
  if (!xt(t, n))
5961
5968
  return !1;
5962
5969
  for (const s of o)
5963
- if (!Bl(s, i))
5970
+ if (!ql(s, i))
5964
5971
  return !1;
5965
5972
  }
5966
5973
  return !0;
@@ -5999,9 +6006,9 @@ class He {
5999
6006
  evaluate(e) {
6000
6007
  if (e.geometry() != null && e.canonicalID() != null) {
6001
6008
  if (e.geometryType() === "Point")
6002
- return Gl(e, this.geometries);
6003
- if (e.geometryType() === "LineString")
6004
6009
  return Hl(e, this.geometries);
6010
+ if (e.geometryType() === "LineString")
6011
+ return Kl(e, this.geometries);
6005
6012
  }
6006
6013
  return !1;
6007
6014
  }
@@ -6047,27 +6054,27 @@ class yi {
6047
6054
  t[e] = i;
6048
6055
  }
6049
6056
  }
6050
- function Kl(r, e) {
6057
+ function Zl(r, e) {
6051
6058
  if (r.length <= 1)
6052
6059
  return [r];
6053
6060
  const n = [];
6054
6061
  let a, i;
6055
6062
  for (const o of r) {
6056
- const s = Zl(o);
6063
+ const s = Xl(o);
6057
6064
  s !== 0 && (o.area = Math.abs(s), i === void 0 && (i = s < 0), i === s < 0 ? (a && n.push(a), a = [o]) : a.push(o));
6058
6065
  }
6059
6066
  return a && n.push(a), n;
6060
6067
  }
6061
- function Zl(r) {
6068
+ function Xl(r) {
6062
6069
  let e = 0;
6063
6070
  for (let t = 0, n = r.length, a = n - 1, i, o; t < n; a = t++)
6064
6071
  i = r[t], o = r[a], e += (o.x - i.x) * (i.y + o.y);
6065
6072
  return e;
6066
6073
  }
6067
- const Xl = 6378.137, aa = 1 / 298.257223563, ia = aa * (2 - aa), oa = Math.PI / 180;
6074
+ const Wl = 6378.137, aa = 1 / 298.257223563, ia = aa * (2 - aa), oa = Math.PI / 180;
6068
6075
  class Cn {
6069
6076
  constructor(e) {
6070
- const t = oa * Xl * 1e3, n = Math.cos(e * oa), a = 1 / (1 - ia * (1 - n * n)), i = Math.sqrt(a);
6077
+ const t = oa * Wl * 1e3, n = Math.cos(e * oa), a = 1 / (1 - ia * (1 - n * n)), i = Math.sqrt(a);
6071
6078
  this.kx = t * i * n, this.ky = t * i * a * (1 - ia);
6072
6079
  }
6073
6080
  /**
@@ -6122,7 +6129,7 @@ const Kr = 100, Zr = 50;
6122
6129
  function gi(r, e) {
6123
6130
  return e[0] - r[0];
6124
6131
  }
6125
- function Wt(r) {
6132
+ function Yt(r) {
6126
6133
  return r[1] - r[0] + 1;
6127
6134
  }
6128
6135
  function Ce(r, e) {
@@ -6131,7 +6138,7 @@ function Ce(r, e) {
6131
6138
  function Xr(r, e) {
6132
6139
  if (r[0] > r[1])
6133
6140
  return [null, null];
6134
- const t = Wt(r);
6141
+ const t = Yt(r);
6135
6142
  if (e) {
6136
6143
  if (t === 2)
6137
6144
  return [r, null];
@@ -6149,7 +6156,7 @@ function Xr(r, e) {
6149
6156
  [r[0] + n + 1, r[1]]
6150
6157
  ];
6151
6158
  }
6152
- function Yr(r, e) {
6159
+ function Wr(r, e) {
6153
6160
  if (!Ce(e, r.length))
6154
6161
  return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
6155
6162
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
@@ -6157,7 +6164,7 @@ function Yr(r, e) {
6157
6164
  _t(t, r[n]);
6158
6165
  return t;
6159
6166
  }
6160
- function Wr(r) {
6167
+ function Yr(r) {
6161
6168
  const e = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
6162
6169
  for (const t of r)
6163
6170
  for (const n of t)
@@ -6196,7 +6203,7 @@ function Yl(r, e, t, n, a) {
6196
6203
  }
6197
6204
  return o;
6198
6205
  }
6199
- function Wl(r, e, t, n, a) {
6206
+ function Jl(r, e, t, n, a) {
6200
6207
  if (!(Ce(e, r.length) && Ce(n, t.length)))
6201
6208
  return NaN;
6202
6209
  let o = 1 / 0;
@@ -6206,7 +6213,7 @@ function Wl(r, e, t, n, a) {
6206
6213
  return o;
6207
6214
  return o;
6208
6215
  }
6209
- function Jl(r, e, t) {
6216
+ function Ql(r, e, t) {
6210
6217
  if (ct(r, e, !0))
6211
6218
  return 0;
6212
6219
  let n = 1 / 0;
@@ -6220,7 +6227,7 @@ function Jl(r, e, t) {
6220
6227
  }
6221
6228
  return n;
6222
6229
  }
6223
- function Ql(r, e, t, n) {
6230
+ function eu(r, e, t, n) {
6224
6231
  if (!Ce(e, r.length))
6225
6232
  return NaN;
6226
6233
  for (let i = e[0]; i <= e[1]; ++i)
@@ -6246,8 +6253,8 @@ function la(r, e) {
6246
6253
  return !0;
6247
6254
  return !1;
6248
6255
  }
6249
- function eu(r, e, t, n = 1 / 0) {
6250
- const a = Wr(r), i = Wr(e);
6256
+ function tu(r, e, t, n = 1 / 0) {
6257
+ const a = Yr(r), i = Yr(e);
6251
6258
  if (n !== 1 / 0 && An(a, i, t) >= n)
6252
6259
  return n;
6253
6260
  if (xt(a, i)) {
@@ -6272,36 +6279,36 @@ function eu(r, e, t, n = 1 / 0) {
6272
6279
  function ua(r, e, t, n, a, i) {
6273
6280
  if (!i)
6274
6281
  return;
6275
- const o = An(Yr(n, i), a, t);
6282
+ const o = An(Wr(n, i), a, t);
6276
6283
  o < e && r.push([o, i, [0, 0]]);
6277
6284
  }
6278
6285
  function $t(r, e, t, n, a, i, o) {
6279
6286
  if (!i || !o)
6280
6287
  return;
6281
- const s = An(Yr(n, i), Yr(a, o), t);
6288
+ const s = An(Wr(n, i), Wr(a, o), t);
6282
6289
  s < e && r.push([s, i, o]);
6283
6290
  }
6284
6291
  function Jt(r, e, t, n, a = 1 / 0) {
6285
6292
  let i = Math.min(n.distance(r[0], t[0][0]), a);
6286
6293
  if (i === 0)
6287
6294
  return i;
6288
- const o = new yi([[0, [0, r.length - 1], [0, 0]]], gi), s = Wr(t);
6295
+ const o = new yi([[0, [0, r.length - 1], [0, 0]]], gi), s = Yr(t);
6289
6296
  for (; o.length > 0; ) {
6290
6297
  const l = o.pop();
6291
6298
  if (l[0] >= i)
6292
6299
  continue;
6293
6300
  const u = l[1], c = e ? Zr : Kr;
6294
- if (Wt(u) <= c) {
6301
+ if (Yt(u) <= c) {
6295
6302
  if (!Ce(u, r.length))
6296
6303
  return NaN;
6297
6304
  if (e) {
6298
- const p = Ql(r, u, t, n);
6305
+ const p = eu(r, u, t, n);
6299
6306
  if (isNaN(p) || p === 0)
6300
6307
  return p;
6301
6308
  i = Math.min(i, p);
6302
6309
  } else
6303
6310
  for (let p = u[0]; p <= u[1]; ++p) {
6304
- const f = Jl(r[p], t, n);
6311
+ const f = Ql(r[p], t, n);
6305
6312
  if (i = Math.min(i, f), i === 0)
6306
6313
  return 0;
6307
6314
  }
@@ -6322,7 +6329,7 @@ function Qt(r, e, t, n, a, i = 1 / 0) {
6322
6329
  if (l[0] >= o)
6323
6330
  continue;
6324
6331
  const u = l[1], c = l[2], p = e ? Zr : Kr, f = n ? Zr : Kr;
6325
- if (Wt(u) <= p && Wt(c) <= f) {
6332
+ if (Yt(u) <= p && Yt(c) <= f) {
6326
6333
  if (!Ce(u, r.length) && Ce(c, t.length))
6327
6334
  return NaN;
6328
6335
  let d;
@@ -6339,7 +6346,7 @@ function Qt(r, e, t, n, a, i = 1 / 0) {
6339
6346
  if (d = Be(r[m], h, a), o = Math.min(o, d), o === 0)
6340
6347
  return o;
6341
6348
  } else
6342
- d = Wl(r, u, t, c, a), o = Math.min(o, d);
6349
+ d = Jl(r, u, t, c, a), o = Math.min(o, d);
6343
6350
  } else {
6344
6351
  const d = Xr(u, e), h = Xr(c, n);
6345
6352
  $t(s, o, a, r, t, d[0], h[0]), $t(s, o, a, r, t, d[0], h[1]), $t(s, o, a, r, t, d[1], h[0]), $t(s, o, a, r, t, d[1], h[1]);
@@ -6347,7 +6354,7 @@ function Qt(r, e, t, n, a, i = 1 / 0) {
6347
6354
  }
6348
6355
  return o;
6349
6356
  }
6350
- function tu(r, e) {
6357
+ function ru(r, e) {
6351
6358
  const t = r.geometry(), n = t.flat().map((o) => En([o.x, o.y], r.canonical));
6352
6359
  if (t.length === 0)
6353
6360
  return NaN;
@@ -6370,7 +6377,7 @@ function tu(r, e) {
6370
6377
  }
6371
6378
  return i;
6372
6379
  }
6373
- function ru(r, e) {
6380
+ function nu(r, e) {
6374
6381
  const t = r.geometry(), n = t.flat().map((o) => En([o.x, o.y], r.canonical));
6375
6382
  if (t.length === 0)
6376
6383
  return NaN;
@@ -6393,11 +6400,11 @@ function ru(r, e) {
6393
6400
  }
6394
6401
  return i;
6395
6402
  }
6396
- function nu(r, e) {
6403
+ function au(r, e) {
6397
6404
  const t = r.geometry();
6398
6405
  if (t.length === 0 || t[0].length === 0)
6399
6406
  return NaN;
6400
- const n = Kl(t).map((o) => o.map((s) => s.map((l) => En([l.x, l.y], r.canonical)))), a = new Cn(n[0][0][0][1]);
6407
+ const n = Zl(t).map((o) => o.map((s) => s.map((l) => En([l.x, l.y], r.canonical)))), a = new Cn(n[0][0][0][1]);
6401
6408
  let i = 1 / 0;
6402
6409
  for (const o of e)
6403
6410
  for (const s of n) {
@@ -6409,7 +6416,7 @@ function nu(r, e) {
6409
6416
  i = Math.min(i, Jt(o.coordinates, !0, s, a, i));
6410
6417
  break;
6411
6418
  case "Polygon":
6412
- i = Math.min(i, eu(s, o.coordinates, a, i));
6419
+ i = Math.min(i, tu(s, o.coordinates, a, i));
6413
6420
  break;
6414
6421
  }
6415
6422
  if (i === 0)
@@ -6450,11 +6457,11 @@ class Ke {
6450
6457
  evaluate(e) {
6451
6458
  if (e.geometry() != null && e.canonicalID() != null) {
6452
6459
  if (e.geometryType() === "Point")
6453
- return tu(e, this.geometries);
6454
- if (e.geometryType() === "LineString")
6455
6460
  return ru(e, this.geometries);
6456
- if (e.geometryType() === "Polygon")
6461
+ if (e.geometryType() === "LineString")
6457
6462
  return nu(e, this.geometries);
6463
+ if (e.geometryType() === "Polygon")
6464
+ return au(e, this.geometries);
6458
6465
  }
6459
6466
  return NaN;
6460
6467
  }
@@ -6487,12 +6494,12 @@ class Mt {
6487
6494
  }
6488
6495
  const In = {
6489
6496
  // special forms
6490
- "==": Al,
6491
- "!=": Tl,
6492
- ">": _l,
6493
- "<": Il,
6494
- ">=": Pl,
6495
- "<=": Ml,
6497
+ "==": Tl,
6498
+ "!=": Il,
6499
+ ">": Ml,
6500
+ "<": _l,
6501
+ ">=": Rl,
6502
+ "<=": Pl,
6496
6503
  array: fe,
6497
6504
  at: yn,
6498
6505
  boolean: fe,
@@ -6513,7 +6520,7 @@ const In = {
6513
6520
  number: fe,
6514
6521
  "number-format": wn,
6515
6522
  object: fe,
6516
- slice: Yt,
6523
+ slice: Wt,
6517
6524
  step: gr,
6518
6525
  string: fe,
6519
6526
  "to-boolean": Re,
@@ -6576,7 +6583,7 @@ class me {
6576
6583
  if (s.length === 1)
6577
6584
  t.errors.push(...l.errors);
6578
6585
  else {
6579
- const c = (s.length ? s : o).map(([f]) => iu(f)).join(" | "), p = [];
6586
+ const c = (s.length ? s : o).map(([f]) => ou(f)).join(" | "), p = [];
6580
6587
  for (let f = 1; f < e.length; f++) {
6581
6588
  const d = t.parse(e[f], 1 + p.length);
6582
6589
  if (!d)
@@ -6607,7 +6614,7 @@ function zr(r, e) {
6607
6614
  const t = e[r];
6608
6615
  return typeof t > "u" ? null : t;
6609
6616
  }
6610
- function au(r, e, t, n) {
6617
+ function iu(r, e, t, n) {
6611
6618
  for (; t <= n; ) {
6612
6619
  const a = t + n >> 1;
6613
6620
  if (e[a] === r)
@@ -6621,7 +6628,7 @@ function De(r) {
6621
6628
  }
6622
6629
  me.register(In, {
6623
6630
  error: [
6624
- Js,
6631
+ Qs,
6625
6632
  [I],
6626
6633
  (r, [e]) => {
6627
6634
  throw new V(e.evaluate(r));
@@ -6840,7 +6847,7 @@ me.register(In, {
6840
6847
  P,
6841
6848
  [I, J(M)],
6842
6849
  // assumes v is a array literal with values sorted in ascending order and of a single type
6843
- (r, [e, t]) => au(r.properties()[e.value], t.value, 0, t.value.length - 1)
6850
+ (r, [e, t]) => iu(r.properties()[e.value], t.value, 0, t.value.length - 1)
6844
6851
  ],
6845
6852
  all: {
6846
6853
  type: P,
@@ -6905,7 +6912,7 @@ me.register(In, {
6905
6912
  (r, [e]) => e.evaluate(r).resolvedLocale()
6906
6913
  ]
6907
6914
  });
6908
- function iu(r) {
6915
+ function ou(r) {
6909
6916
  return Array.isArray(r) ? `(${r.map(D).join(", ")})` : `(${D(r.type)}...)`;
6910
6917
  }
6911
6918
  function er(r) {
@@ -6991,9 +6998,9 @@ function R(r) {
6991
6998
  function _n(r) {
6992
6999
  return typeof r == "object" && r !== null && !Array.isArray(r) && H(r) === qe;
6993
7000
  }
6994
- class ou {
7001
+ class su {
6995
7002
  constructor(e, t, n) {
6996
- this.expression = e, this._warningHistory = {}, this._evaluator = new ui(), this._defaultValue = t ? uu(t) : null, this._enumValues = t && t.type === "enum" ? t.values : null, this._globalState = n;
7003
+ this.expression = e, this._warningHistory = {}, this._evaluator = new ui(), this._defaultValue = t ? cu(t) : null, this._enumValues = t && t.type === "enum" ? t.values : null, this._globalState = n;
6997
7004
  }
6998
7005
  evaluateWithoutErrorHandling(e, t, n, a, i, o) {
6999
7006
  return this._globalState && (e = st(e, this._globalState)), this._evaluator.globals = e, this._evaluator.feature = t, this._evaluator.featureState = n, this._evaluator.canonical = a, this._evaluator.availableImages = i || null, this._evaluator.formattedSection = o, this.expression.evaluate(this._evaluator);
@@ -7016,8 +7023,8 @@ function wi(r) {
7016
7023
  return Array.isArray(r) && r.length > 0 && typeof r[0] == "string" && r[0] in In;
7017
7024
  }
7018
7025
  function Si(r, e, t) {
7019
- const n = new hr(In, er, [], e ? lu(e) : void 0), a = n.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
7020
- return a ? Jr(new ou(a, e, t)) : tt(n.errors);
7026
+ const n = new hr(In, er, [], e ? uu(e) : void 0), a = n.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
7027
+ return a ? Jr(new su(a, e, t)) : tt(n.errors);
7021
7028
  }
7022
7029
  class fa {
7023
7030
  constructor(e, t, n) {
@@ -7044,7 +7051,7 @@ class da {
7044
7051
  return this.interpolationType ? Se.interpolationFactor(this.interpolationType, e, t, n) : 0;
7045
7052
  }
7046
7053
  }
7047
- function su(r, e, t) {
7054
+ function lu(r, e, t) {
7048
7055
  const n = Si(r, e, t);
7049
7056
  if (n.result === "error")
7050
7057
  return n;
@@ -7089,7 +7096,7 @@ function Mn(r, e = /* @__PURE__ */ new Set()) {
7089
7096
  Mn(t, e);
7090
7097
  }), e;
7091
7098
  }
7092
- function lu(r) {
7099
+ function uu(r) {
7093
7100
  const e = {
7094
7101
  color: be,
7095
7102
  string: I,
@@ -7106,7 +7113,7 @@ function lu(r) {
7106
7113
  };
7107
7114
  return r.type === "array" ? J(e[r.value] || M, r.length) : e[r.type];
7108
7115
  }
7109
- function uu(r) {
7116
+ function cu(r) {
7110
7117
  if (r.type === "color" && _n(r.default))
7111
7118
  return new $(0, 0, 0, 0);
7112
7119
  switch (r.type) {
@@ -7383,7 +7390,7 @@ function Ei(r) {
7383
7390
  }
7384
7391
  }
7385
7392
  function lt(r) {
7386
- const e = (r.expressionContext === "property" ? su : Si)(Xe(r.value), r.valueSpec);
7393
+ const e = (r.expressionContext === "property" ? lu : Si)(Xe(r.value), r.valueSpec);
7387
7394
  if (e.result === "error")
7388
7395
  return e.value.map((n) => new w(`${r.key}${n.key}`, r.value, n.message));
7389
7396
  const t = e.value.expression || e.value._styleExpression.expression;
@@ -7411,7 +7418,7 @@ function lt(r) {
7411
7418
  }
7412
7419
  return [];
7413
7420
  }
7414
- function cu(r) {
7421
+ function pu(r) {
7415
7422
  const e = r.value, t = r.key, n = R(e);
7416
7423
  return n !== "boolean" ? [new w(t, e, `boolean expected, ${n} found`)] : [];
7417
7424
  }
@@ -7618,7 +7625,7 @@ function $e(r) {
7618
7625
  const e = r.value, t = r.key, n = R(e);
7619
7626
  return n !== "string" ? [new w(t, e, `string expected, ${n} found`)] : [];
7620
7627
  }
7621
- function pu(r) {
7628
+ function fu(r) {
7622
7629
  var e;
7623
7630
  const t = (e = r.sourceName) !== null && e !== void 0 ? e : "", n = r.value, a = r.styleSpec, i = a.source_raster_dem, o = r.style;
7624
7631
  let s = [];
@@ -7640,7 +7647,7 @@ function pu(r) {
7640
7647
  return s;
7641
7648
  }
7642
7649
  const ha = {
7643
- promoteId: fu
7650
+ promoteId: du
7644
7651
  };
7645
7652
  function _i(r) {
7646
7653
  const e = r.value, t = r.key, n = r.styleSpec, a = r.style, i = r.validateSpec;
@@ -7661,7 +7668,7 @@ function _i(r) {
7661
7668
  validateSpec: i
7662
7669
  }), s;
7663
7670
  case "raster-dem":
7664
- return s = pu({
7671
+ return s = fu({
7665
7672
  sourceName: t,
7666
7673
  value: e,
7667
7674
  style: r.style,
@@ -7723,7 +7730,7 @@ function _i(r) {
7723
7730
  });
7724
7731
  }
7725
7732
  }
7726
- function fu({ key: r, value: e }) {
7733
+ function du({ key: r, value: e }) {
7727
7734
  if (R(e) === "string")
7728
7735
  return $e({ key: r, value: e });
7729
7736
  {
@@ -7807,13 +7814,13 @@ function Ri(r) {
7807
7814
  ]);
7808
7815
  return i;
7809
7816
  }
7810
- function du(r) {
7811
- return $e(r).length === 0 ? [] : lt(r);
7812
- }
7813
7817
  function hu(r) {
7814
7818
  return $e(r).length === 0 ? [] : lt(r);
7815
7819
  }
7816
7820
  function mu(r) {
7821
+ return $e(r).length === 0 ? [] : lt(r);
7822
+ }
7823
+ function yu(r) {
7817
7824
  const e = r.key, t = r.value;
7818
7825
  if (R(t) === "array") {
7819
7826
  if (t.length < 1 || t.length > 4)
@@ -7839,7 +7846,7 @@ function mu(r) {
7839
7846
  valueSpec: {}
7840
7847
  });
7841
7848
  }
7842
- function yu(r) {
7849
+ function gu(r) {
7843
7850
  const e = r.key, t = r.value;
7844
7851
  if (R(t) === "array") {
7845
7852
  const a = {
@@ -7865,7 +7872,7 @@ function yu(r) {
7865
7872
  valueSpec: {}
7866
7873
  });
7867
7874
  }
7868
- function gu(r) {
7875
+ function vu(r) {
7869
7876
  const e = r.key, t = r.value;
7870
7877
  if (R(t) === "array") {
7871
7878
  if (t.length < 1)
@@ -7885,7 +7892,7 @@ function gu(r) {
7885
7892
  value: t
7886
7893
  });
7887
7894
  }
7888
- function vu(r) {
7895
+ function bu(r) {
7889
7896
  const e = r.key, t = r.value, n = R(t), a = r.styleSpec;
7890
7897
  if (n !== "array" || t.length < 1 || t.length % 2 !== 0)
7891
7898
  return [
@@ -7941,7 +7948,7 @@ function Oi(r) {
7941
7948
  value: t
7942
7949
  });
7943
7950
  }
7944
- function bu(r) {
7951
+ function wu(r) {
7945
7952
  const e = r.value, t = r.styleSpec, n = t.projection, a = r.style, i = R(e);
7946
7953
  if (e === void 0)
7947
7954
  return [];
@@ -7962,21 +7969,21 @@ function bu(r) {
7962
7969
  ]);
7963
7970
  return o;
7964
7971
  }
7965
- function wu(r) {
7972
+ function Su(r) {
7966
7973
  const e = r.key;
7967
7974
  let t = r.value;
7968
7975
  t = t instanceof String ? t.valueOf() : t;
7969
7976
  const n = R(t);
7970
- return n === "array" && !xu(t) && !Su(t) ? [
7977
+ return n === "array" && !ku(t) && !xu(t) ? [
7971
7978
  new w(e, t, `projection expected, invalid array ${JSON.stringify(t)} found`)
7972
7979
  ] : ["array", "string"].includes(n) ? [] : [
7973
7980
  new w(e, t, `projection expected, invalid type "${n}" found`)
7974
7981
  ];
7975
7982
  }
7976
- function Su(r) {
7983
+ function xu(r) {
7977
7984
  return !!["interpolate", "step", "literal"].includes(r[0]);
7978
7985
  }
7979
- function xu(r) {
7986
+ function ku(r) {
7980
7987
  return Array.isArray(r) && r.length === 3 && typeof r[0] == "string" && typeof r[1] == "string" && typeof r[2] == "number";
7981
7988
  }
7982
7989
  function zi(r) {
@@ -7987,7 +7994,7 @@ function Fi(r) {
7987
7994
  new w(r.key, r.value, `object expected, ${R(r.value)} found`)
7988
7995
  ];
7989
7996
  }
7990
- function ku(r) {
7997
+ function Eu(r) {
7991
7998
  const e = r.key, t = r.value, n = r.validateSpec, a = r.styleSpec, i = r.style;
7992
7999
  if (!zi(t))
7993
8000
  return [new w(e, t, `object expected, ${R(t)} found`)];
@@ -8029,7 +8036,7 @@ const ma = {
8029
8036
  return [];
8030
8037
  },
8031
8038
  array: Pn,
8032
- boolean: cu,
8039
+ boolean: pu,
8033
8040
  number: xr,
8034
8041
  color: Qr,
8035
8042
  constants: ki,
@@ -8042,18 +8049,18 @@ const ma = {
8042
8049
  light: Mi,
8043
8050
  sky: Pi,
8044
8051
  terrain: Ri,
8045
- projection: bu,
8046
- projectionDefinition: wu,
8052
+ projection: wu,
8053
+ projectionDefinition: Su,
8047
8054
  string: $e,
8048
- formatted: du,
8049
- resolvedImage: hu,
8050
- padding: mu,
8051
- numberArray: yu,
8052
- colorArray: gu,
8053
- variableAnchorOffsetCollection: vu,
8055
+ formatted: hu,
8056
+ resolvedImage: mu,
8057
+ padding: yu,
8058
+ numberArray: gu,
8059
+ colorArray: vu,
8060
+ variableAnchorOffsetCollection: bu,
8054
8061
  sprite: Oi,
8055
8062
  state: Fi,
8056
- fontFaces: ku
8063
+ fontFaces: Eu
8057
8064
  };
8058
8065
  function rr(r) {
8059
8066
  const e = r.value, t = r.valueSpec, n = r.styleSpec;
@@ -8065,7 +8072,7 @@ function $i(r) {
8065
8072
  const e = r.value, t = r.key, n = $e(r);
8066
8073
  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;
8067
8074
  }
8068
- function se(r, e = Ws) {
8075
+ function se(r, e = Js) {
8069
8076
  let t = [];
8070
8077
  return t = t.concat(rr({
8071
8078
  key: "",
@@ -8118,7 +8125,7 @@ function ya(r) {
8118
8125
  isFallback: !0
8119
8126
  };
8120
8127
  if (typeof r == "string") {
8121
- const t = Lu(r);
8128
+ const t = Cu(r);
8122
8129
  return t.isValidStyle ? {
8123
8130
  style: t.styleObject,
8124
8131
  requiresUrlMonitoring: !1,
@@ -8129,7 +8136,7 @@ function ya(r) {
8129
8136
  // default styles don't require URL monitoring
8130
8137
  isFallback: !0
8131
8138
  } : r.startsWith("http") ? { style: r, requiresUrlMonitoring: !0, isFallback: !1 } : r.toLowerCase().includes(".json") ? {
8132
- style: Eu(r),
8139
+ style: Lu(r),
8133
8140
  requiresUrlMonitoring: !0,
8134
8141
  isFallback: !1
8135
8142
  } : {
@@ -8158,14 +8165,14 @@ function ya(r) {
8158
8165
  isFallback: !0
8159
8166
  };
8160
8167
  }
8161
- function Eu(r) {
8168
+ function Lu(r) {
8162
8169
  try {
8163
8170
  return new URL(r).href;
8164
8171
  } catch {
8165
8172
  }
8166
8173
  return new URL(r, location.origin).href;
8167
8174
  }
8168
- function Lu(r) {
8175
+ function Cu(r) {
8169
8176
  try {
8170
8177
  const e = JSON.parse(r), t = se(e);
8171
8178
  return {
@@ -8188,7 +8195,7 @@ function Le(r, e, t) {
8188
8195
  function Lt(r) {
8189
8196
  r.parentNode && r.parentNode.removeChild(r);
8190
8197
  }
8191
- class Cu {
8198
+ class Au {
8192
8199
  constructor() {
8193
8200
  y(this, "_map");
8194
8201
  y(this, "_container");
@@ -8211,7 +8218,7 @@ class Cu {
8211
8218
  function ji(r) {
8212
8219
  r.hasTerrain() ? r.disableTerrain() : r.enableTerrain();
8213
8220
  }
8214
- class Au extends Wa {
8221
+ class Tu extends Ya {
8215
8222
  constructor(t = {}) {
8216
8223
  super({
8217
8224
  showCompass: t.showCompass ?? !0,
@@ -8237,8 +8244,8 @@ class Au extends Wa {
8237
8244
  return a.clickFunction = n, a;
8238
8245
  }
8239
8246
  }
8240
- const ga = k.Marker, va = k.LngLat, Tu = k.LngLatBounds;
8241
- class Iu extends Do {
8247
+ const ga = k.Marker, va = k.LngLat, Iu = k.LngLatBounds;
8248
+ class _u extends Do {
8242
8249
  constructor() {
8243
8250
  super(...arguments);
8244
8251
  y(this, "lastUpdatedCenter", new va(0, 0));
@@ -8255,7 +8262,7 @@ class Iu extends Do {
8255
8262
  ...this.options.fitBoundsOptions,
8256
8263
  linear: !0
8257
8264
  }, s = this._map.getZoom();
8258
- s > (((c = this.options.fitBoundsOptions) == null ? void 0 : c.maxZoom) ?? 30) && (o.zoom = s), this._map.fitBounds(Tu.fromLngLat(n, a), o, {
8265
+ s > (((c = this.options.fitBoundsOptions) == null ? void 0 : c.maxZoom) ?? 30) && (o.zoom = s), this._map.fitBounds(Iu.fromLngLat(n, a), o, {
8259
8266
  geolocateSource: !0
8260
8267
  // tag this camera change so it won't cause the control to change to background state
8261
8268
  });
@@ -8319,18 +8326,18 @@ class Iu extends Do {
8319
8326
  }
8320
8327
  }
8321
8328
  var Te, te, Ie, _e, at;
8322
- class _u {
8329
+ class Mu {
8323
8330
  /**
8324
8331
  * @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
8325
8332
  * @param onClick Function called when the element is clicked
8326
8333
  * @param onRender Function called every time the underlying map renders a new state
8327
8334
  */
8328
8335
  constructor(e, t, n) {
8329
- Y(this, Te);
8330
- Y(this, te);
8331
- Y(this, Ie);
8332
- Y(this, _e);
8333
- Y(this, at);
8336
+ W(this, Te);
8337
+ W(this, te);
8338
+ W(this, Ie);
8339
+ W(this, _e);
8340
+ W(this, at);
8334
8341
  if (typeof e == "string") {
8335
8342
  const a = document.querySelector(e);
8336
8343
  if (!a) throw new Error(`No element has been found with selector "${e}" when creating an external control.`);
@@ -8351,7 +8358,7 @@ class _u {
8351
8358
  }
8352
8359
  }
8353
8360
  Te = new WeakMap(), te = new WeakMap(), Ie = new WeakMap(), _e = new WeakMap(), at = new WeakMap();
8354
- class Mu {
8361
+ class Pu {
8355
8362
  constructor() {
8356
8363
  y(this, "map");
8357
8364
  y(this, "container");
@@ -8392,7 +8399,7 @@ const pt = {
8392
8399
  }
8393
8400
  };
8394
8401
  var At, it;
8395
- class en extends _u {
8402
+ class en extends Mu {
8396
8403
  /**
8397
8404
  * Constructs an instance of External Control to have a predefined functionality
8398
8405
  * @param controlElement Element to be used as control, specified as reference to element itself
@@ -8401,8 +8408,8 @@ class en extends _u {
8401
8408
  constructor(t, n) {
8402
8409
  if (n && !(n in pt)) throw new Error(`data-maptiler-control value "${n}" is invalid.`);
8403
8410
  super(t, n && pt[n]);
8404
- Y(this, At);
8405
- Y(this, it, /* @__PURE__ */ new Map());
8411
+ W(this, At);
8412
+ W(this, it, /* @__PURE__ */ new Map());
8406
8413
  }
8407
8414
  onAdd(t) {
8408
8415
  return Q(this, At, t), super.onAdd(t);
@@ -8432,14 +8439,14 @@ At = new WeakMap(), it = new WeakMap(), y(en, "controlCallbacks", pt);
8432
8439
  var re, ce, Me, Pe, ne, Tt, K, Ui, ue, Bi;
8433
8440
  class Fr {
8434
8441
  constructor(e, t) {
8435
- Y(this, K);
8436
- Y(this, re);
8442
+ W(this, K);
8443
+ W(this, re);
8437
8444
  y(this, "map");
8438
- Y(this, ce);
8439
- Y(this, Me);
8440
- Y(this, Pe);
8441
- Y(this, ne, !1);
8442
- Y(this, Tt);
8445
+ W(this, ce);
8446
+ W(this, Me);
8447
+ W(this, Pe);
8448
+ W(this, ne, !1);
8449
+ W(this, Tt);
8443
8450
  e.style !== void 0 && Q(this, ne, !0), Q(this, re, {
8444
8451
  // set defaults
8445
8452
  zoomAdjust: -4,
@@ -8572,7 +8579,7 @@ re = new WeakMap(), ce = new WeakMap(), Me = new WeakMap(), Pe = new WeakMap(),
8572
8579
  i();
8573
8580
  };
8574
8581
  };
8575
- class Pu {
8582
+ class Ru {
8576
8583
  /**
8577
8584
  *
8578
8585
  * @param map : a Map instance
@@ -8608,7 +8615,7 @@ class Pu {
8608
8615
  this.viewerType = e;
8609
8616
  }
8610
8617
  preparePayload() {
8611
- const e = new URL(W.telemetryURL);
8618
+ const e = new URL(Y.telemetryURL);
8612
8619
  return e.searchParams.append("sdk", So()), e.searchParams.append("key", j.apiKey), e.searchParams.append("mtsid", ir), 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;
8613
8620
  }
8614
8621
  }
@@ -8617,14 +8624,14 @@ function yt() {
8617
8624
  var r = new Ct(16);
8618
8625
  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;
8619
8626
  }
8620
- function Ru(r, e, t, n, a, i, o, s, l, u, c, p, f, d, h, m, g) {
8627
+ function Ou(r, e, t, n, a, i, o, s, l, u, c, p, f, d, h, m, g) {
8621
8628
  return r[0] = e, r[1] = t, r[2] = n, r[3] = a, r[4] = i, r[5] = o, r[6] = s, r[7] = l, r[8] = u, r[9] = c, r[10] = p, r[11] = f, r[12] = d, r[13] = h, r[14] = m, r[15] = g, r;
8622
8629
  }
8623
- function Ou(r, e, t) {
8630
+ function zu(r, e, t) {
8624
8631
  var n = e[0], a = e[1], i = e[2], o = e[3], s = e[4], l = e[5], u = e[6], c = e[7], p = e[8], f = e[9], d = e[10], h = e[11], m = e[12], g = e[13], b = e[14], v = e[15], x = t[0], C = t[1], L = t[2], A = t[3];
8625
8632
  return r[0] = x * n + C * s + L * p + A * m, r[1] = x * a + C * l + L * f + A * g, r[2] = x * i + C * u + L * d + A * b, r[3] = x * o + C * c + L * h + A * v, x = t[4], C = t[5], L = t[6], A = t[7], r[4] = x * n + C * s + L * p + A * m, r[5] = x * a + C * l + L * f + A * g, r[6] = x * i + C * u + L * d + A * b, r[7] = x * o + C * c + L * h + A * v, x = t[8], C = t[9], L = t[10], A = t[11], r[8] = x * n + C * s + L * p + A * m, r[9] = x * a + C * l + L * f + A * g, r[10] = x * i + C * u + L * d + A * b, r[11] = x * o + C * c + L * h + A * v, x = t[12], C = t[13], L = t[14], A = t[15], r[12] = x * n + C * s + L * p + A * m, r[13] = x * a + C * l + L * f + A * g, r[14] = x * i + C * u + L * d + A * b, r[15] = x * o + C * c + L * h + A * v, r;
8626
8633
  }
8627
- function zu(r, e, t) {
8634
+ function Fu(r, e, t) {
8628
8635
  var n = t[0], a = t[1], i = t[2];
8629
8636
  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] * i, r[9] = e[9] * i, r[10] = e[10] * i, r[11] = e[11] * i, r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15], r;
8630
8637
  }
@@ -8632,7 +8639,7 @@ function ba(r, e, t) {
8632
8639
  var n = Math.sin(t), a = Math.cos(t), i = e[4], o = e[5], s = e[6], l = e[7], u = e[8], c = e[9], p = e[10], f = e[11];
8633
8640
  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] = i * a + u * n, r[5] = o * a + c * n, r[6] = s * a + p * n, r[7] = l * a + f * n, r[8] = u * a - i * n, r[9] = c * a - o * n, r[10] = p * a - s * n, r[11] = f * a - l * n, r;
8634
8641
  }
8635
- function Fu(r, e, t) {
8642
+ function $u(r, e, t) {
8636
8643
  var n = Math.sin(t), a = Math.cos(t), i = e[0], o = e[1], s = e[2], l = e[3], u = e[8], c = e[9], p = e[10], f = e[11];
8637
8644
  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] = i * a - u * n, r[1] = o * a - c * n, r[2] = s * a - p * n, r[3] = l * a - f * n, r[8] = i * n + u * a, r[9] = o * n + c * a, r[10] = s * n + p * a, r[11] = l * n + f * a, r;
8638
8645
  }
@@ -8640,7 +8647,7 @@ function wa(r, e, t) {
8640
8647
  var n = Math.sin(t), a = Math.cos(t), i = e[0], o = e[1], s = e[2], l = e[3], u = e[4], c = e[5], p = e[6], f = e[7];
8641
8648
  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] = i * a + u * n, r[1] = o * a + c * n, r[2] = s * a + p * n, r[3] = l * a + f * n, r[4] = u * a - i * n, r[5] = c * a - o * n, r[6] = p * a - s * n, r[7] = f * a - l * n, r;
8642
8649
  }
8643
- function $u(r, e, t, n, a) {
8650
+ function Nu(r, e, t, n, a) {
8644
8651
  var i = 1 / Math.tan(e / 2);
8645
8652
  if (r[0] = i / t, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = i, 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) {
8646
8653
  var o = 1 / (n - a);
@@ -8649,12 +8656,12 @@ function $u(r, e, t, n, a) {
8649
8656
  r[10] = -1, r[14] = -2 * n;
8650
8657
  return r;
8651
8658
  }
8652
- var Nu = $u;
8659
+ var ju = Nu;
8653
8660
  function Gt() {
8654
8661
  var r = new Ct(3);
8655
8662
  return Ct != Float32Array && (r[0] = 0, r[1] = 0, r[2] = 0), r;
8656
8663
  }
8657
- function ju(r, e, t) {
8664
+ function Du(r, e, t) {
8658
8665
  var n = new Ct(3);
8659
8666
  return n[0] = r, n[1] = e, n[2] = t, n;
8660
8667
  }
@@ -8675,11 +8682,11 @@ function Sa(r, e, t) {
8675
8682
  return e;
8676
8683
  };
8677
8684
  })();
8678
- function Du(r) {
8685
+ function Uu(r) {
8679
8686
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
8680
8687
  }
8681
8688
  var Nr, xa;
8682
- function Uu() {
8689
+ function Bu() {
8683
8690
  return xa || (xa = 1, Nr = {
8684
8691
  aliceblue: [240, 248, 255],
8685
8692
  antiquewhite: [250, 235, 215],
@@ -8835,7 +8842,7 @@ var jr, ka;
8835
8842
  function qi() {
8836
8843
  if (ka) return jr;
8837
8844
  ka = 1;
8838
- const r = Uu(), e = {};
8845
+ const r = Bu(), e = {};
8839
8846
  for (const a of Object.keys(r))
8840
8847
  e[r[a]] = a;
8841
8848
  const t = {
@@ -9135,7 +9142,7 @@ function qi() {
9135
9142
  }, jr;
9136
9143
  }
9137
9144
  var Dr, Ea;
9138
- function Bu() {
9145
+ function qu() {
9139
9146
  if (Ea) return Dr;
9140
9147
  Ea = 1;
9141
9148
  const r = qi();
@@ -9183,10 +9190,10 @@ function Bu() {
9183
9190
  }, Dr;
9184
9191
  }
9185
9192
  var Ur, La;
9186
- function qu() {
9193
+ function Vu() {
9187
9194
  if (La) return Ur;
9188
9195
  La = 1;
9189
- const r = qi(), e = Bu(), t = {}, n = Object.keys(r);
9196
+ const r = qi(), e = qu(), t = {}, n = Object.keys(r);
9190
9197
  function a(o) {
9191
9198
  const s = function(...l) {
9192
9199
  const u = l[0];
@@ -9217,8 +9224,8 @@ function qu() {
9217
9224
  });
9218
9225
  }), Ur = t, Ur;
9219
9226
  }
9220
- var Vu = qu();
9221
- const Gu = /* @__PURE__ */ Du(Vu);
9227
+ var Gu = Vu();
9228
+ const Hu = /* @__PURE__ */ Uu(Gu);
9222
9229
  function Ca({ gl: r, type: e, source: t }) {
9223
9230
  const n = r.createShader(e);
9224
9231
  if (n === null)
@@ -9227,7 +9234,7 @@ function Ca({ gl: r, type: e, source: t }) {
9227
9234
  throw console.error("Shader compilation error:", r.getShaderInfoLog(n)), r.deleteShader(n), new Error("Cannot compile shader");
9228
9235
  return n;
9229
9236
  }
9230
- function Hu({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }) {
9237
+ function Ku({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }) {
9231
9238
  const n = Ca({
9232
9239
  gl: r,
9233
9240
  type: r.VERTEX_SHADER,
@@ -9237,7 +9244,7 @@ function Hu({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }) {
9237
9244
  throw console.error("Error: ", r.getProgramInfoLog(i)), new Error("Cannot link shader program");
9238
9245
  return i;
9239
9246
  }
9240
- function Ku(r, e, t) {
9247
+ function Zu(r, e, t) {
9241
9248
  const n = r.getUniformLocation(e, t);
9242
9249
  if (n === null)
9243
9250
  throw new Error(`Cannot get uniform location for ${t}`);
@@ -9252,7 +9259,7 @@ function Vi({
9252
9259
  vertices: i,
9253
9260
  indices: o
9254
9261
  }) {
9255
- const s = Hu({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }), l = n.reduce((d, h) => (d[h] = r.getAttribLocation(s, `a_${h}`), d), {}), u = a.reduce((d, h) => (d[h] = Ku(r, s, `u_${h}`), d), {}), c = r.createBuffer();
9262
+ const s = Ku({ gl: r, vertexShaderSource: e, fragmentShaderSource: t }), l = n.reduce((d, h) => (d[h] = r.getAttribLocation(s, `a_${h}`), d), {}), u = a.reduce((d, h) => (d[h] = Zu(r, s, `u_${h}`), d), {}), c = r.createBuffer();
9256
9263
  r.bindBuffer(r.ARRAY_BUFFER, c), r.bufferData(r.ARRAY_BUFFER, new Float32Array(i), r.STATIC_DRAW);
9257
9264
  let p, f;
9258
9265
  return o !== void 0 && (p = r.createBuffer(), f = o.length, r.bindBuffer(r.ELEMENT_ARRAY_BUFFER, p), r.bufferData(r.ELEMENT_ARRAY_BUFFER, new Uint16Array(o), r.STATIC_DRAW)), {
@@ -9272,10 +9279,10 @@ function Ht(r) {
9272
9279
  if (r === "transparent")
9273
9280
  return [1, 1, 1, 0];
9274
9281
  try {
9275
- const e = Zu(r), t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);
9282
+ const e = Xu(r), t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);
9276
9283
  if (t != null && t.length) {
9277
9284
  const a = !!t[4];
9278
- return [...Gu.hex.rgb(e).map((i) => i / 255), a ? parseInt(t[4], 16) / 255 : 1];
9285
+ return [...Hu.hex.rgb(e).map((i) => i / 255), a ? parseInt(t[4], 16) / 255 : 1];
9279
9286
  }
9280
9287
  const n = e.match(/(\d\.\d(\d+)?|\d{3}|\d{2}|\d{1})/gi) ?? ["0", "0", "0"];
9281
9288
  if (e.includes("rgb")) {
@@ -9290,10 +9297,10 @@ function Ht(r) {
9290
9297
  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];
9291
9298
  }
9292
9299
  let ft;
9293
- function Zu(r) {
9300
+ function Xu(r) {
9294
9301
  return ft = ft ?? document.createElement("canvas").getContext("2d"), ft ? (ft.fillStyle = r, ft.fillStyle) : "#000000";
9295
9302
  }
9296
- const On = 1, U = On / 2, B = On / 2, q = On / 2, Xu = [-U, -B, q, U, -B, q, U, B, q, -U, B, q], Yu = [-U, -B, -q, -U, B, -q, U, B, -q, U, -B, -q], Wu = [-U, B, -q, -U, B, q, U, B, q, U, B, -q], Ju = [-U, -B, -q, U, -B, -q, U, -B, q, -U, -B, q], Qu = [U, -B, -q, U, B, -q, U, B, q, U, -B, q], ec = [-U, -B, -q, -U, -B, q, -U, B, q, -U, B, -q], tc = [...Xu, ...Yu, ...Wu, ...Ju, ...Qu, ...ec], rc = [
9303
+ const On = 1, U = On / 2, B = On / 2, q = On / 2, Wu = [-U, -B, q, U, -B, q, U, B, q, -U, B, q], Yu = [-U, -B, -q, -U, B, -q, U, B, -q, U, -B, -q], Ju = [-U, B, -q, -U, B, q, U, B, q, U, B, -q], Qu = [-U, -B, -q, U, -B, -q, U, -B, q, -U, -B, q], ec = [U, -B, -q, U, B, -q, U, B, q, U, -B, q], tc = [-U, -B, -q, -U, -B, q, -U, B, q, -U, B, -q], rc = [...Wu, ...Yu, ...Ju, ...Qu, ...ec, ...tc], nc = [
9297
9304
  // Front
9298
9305
  0,
9299
9306
  1,
@@ -9336,7 +9343,7 @@ const On = 1, U = On / 2, B = On / 2, q = On / 2, Xu = [-U, -B, q, U, -B, q, U,
9336
9343
  20,
9337
9344
  22,
9338
9345
  23
9339
- ], nc = `attribute vec3 a_vertexPosition;
9346
+ ], ac = `attribute vec3 a_vertexPosition;
9340
9347
  varying vec3 vTextureCoord;
9341
9348
 
9342
9349
  uniform mat4 u_projectionMatrix;
@@ -9376,7 +9383,7 @@ void main(void) {
9376
9383
  #endif
9377
9384
  }
9378
9385
  `;
9379
- var ac = /* @__PURE__ */ ((r) => (r.UNIVERSE_DARK = "universe-dark", r))(ac || {});
9386
+ var ic = /* @__PURE__ */ ((r) => (r.UNIVERSE_DARK = "universe-dark", r))(ic || {});
9380
9387
  const ze = {
9381
9388
  stars: {
9382
9389
  color: "hsl(233,100%,92%)",
@@ -9405,13 +9412,13 @@ const ze = {
9405
9412
  };
9406
9413
  var Ue = /* @__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))(Ue || {});
9407
9414
  const rt = /* @__PURE__ */ new Map();
9408
- function ic(r) {
9415
+ function oc(r) {
9409
9416
  const e = rt.get(r);
9410
9417
  e && (rt.delete(r), r.deleteTexture(e));
9411
9418
  }
9412
9419
  const Ta = /* @__PURE__ */ new Map();
9413
9420
  let Ia;
9414
- function oc({ gl: r, faces: e, onReady: t, forceRefresh: n }) {
9421
+ function sc({ gl: r, faces: e, onReady: t, forceRefresh: n }) {
9415
9422
  if (rt.get(r) && !n && Ia === JSON.stringify(e)) {
9416
9423
  t(rt.get(r), Ta.get(r));
9417
9424
  return;
@@ -9449,7 +9456,7 @@ function oc({ gl: r, faces: e, onReady: t, forceRefresh: n }) {
9449
9456
  console.warn("[CubemapLayer][loadCubemapTexture]: Image or key is null");
9450
9457
  continue;
9451
9458
  }
9452
- const g = sc(r, m);
9459
+ const g = lc(r, m);
9453
9460
  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(g, 0, p, f, d, h);
9454
9461
  }
9455
9462
  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);
@@ -9459,7 +9466,7 @@ function oc({ gl: r, faces: e, onReady: t, forceRefresh: n }) {
9459
9466
  console.error("[CubemapLayer][loadCubemapTexture]: Error loading cubemap texture", s);
9460
9467
  });
9461
9468
  }
9462
- function sc(r, e) {
9469
+ function lc(r, e) {
9463
9470
  if (e === Ue.POSITIVE_X)
9464
9471
  return r.TEXTURE_CUBE_MAP_POSITIVE_X;
9465
9472
  if (e === Ue.NEGATIVE_X)
@@ -9474,7 +9481,7 @@ function sc(r, e) {
9474
9481
  return r.TEXTURE_CUBE_MAP_NEGATIVE_Z;
9475
9482
  throw new Error(`[CubemapLayer][loadCubemapTexture]: Invalid key ${e}`);
9476
9483
  }
9477
- function lc(r, e, t) {
9484
+ function uc(r, e, t) {
9478
9485
  return [
9479
9486
  Oe(r[0], e[0], t),
9480
9487
  Oe(r[1], e[1], t),
@@ -9491,8 +9498,8 @@ function nr(r) {
9491
9498
  const e = Object.keys(r).sort().map((t) => [t, r[t]]);
9492
9499
  return Object.fromEntries(e);
9493
9500
  }
9494
- const Qe = "https://api.maptiler.com/resources/space", uc = ["vertexPosition"], cc = ["projectionMatrix", "modelViewMatrix", "cubeSampler", "bgColor", "fadeOpacity"], _a = "%USE_TEXTURE_MACRO_MARKER%", pc = "#define USE_TEXTURE", Ma = ze.stars;
9495
- function fc(r, e) {
9501
+ const Qe = "https://api.maptiler.com/resources/space", cc = ["vertexPosition"], pc = ["projectionMatrix", "modelViewMatrix", "cubeSampler", "bgColor", "fadeOpacity"], _a = "%USE_TEXTURE_MACRO_MARKER%", fc = "#define USE_TEXTURE", Ma = ze.stars;
9502
+ function dc(r, e) {
9496
9503
  if (!tn(r))
9497
9504
  return {
9498
9505
  color: "transparent"
@@ -9640,7 +9647,7 @@ class Nt {
9640
9647
  throw new Error(`[CubemapLayer]: Invalid cubemap specification:
9641
9648
  - ${t.join(`
9642
9649
  - `)}`);
9643
- const n = fc(e, Ma);
9650
+ const n = dc(e, Ma);
9644
9651
  this.options = n, this.currentFacesDefinitionKey = JSON.stringify(n.faces ?? n.preset ?? n.path), this.bgColor = [0, 0, 0, 0], this.targetBgColor = Ht(n.color), this.faces = Pa(n), this.useCubemapTexture = this.faces !== null;
9645
9652
  }
9646
9653
  /**
@@ -9653,16 +9660,16 @@ class Nt {
9653
9660
  */
9654
9661
  updateCubemap({ facesNeedUpdate: e } = { facesNeedUpdate: !0 }) {
9655
9662
  this.useCubemapTexture = this.faces !== null;
9656
- const t = cc.filter((n) => n === "cubeSampler" || n === "fadeOpacity" ? this.useCubemapTexture : !0);
9663
+ const t = pc.filter((n) => n === "cubeSampler" || n === "fadeOpacity" ? this.useCubemapTexture : !0);
9657
9664
  this.cubemap = Vi({
9658
9665
  gl: this.gl,
9659
- vertexShaderSource: nc,
9666
+ vertexShaderSource: ac,
9660
9667
  // Because we only want to use the read the texture in gl if we're supposed to
9661
- fragmentShaderSource: this.useCubemapTexture ? Aa.replace(_a, pc) : Aa.replace(_a, ""),
9662
- attributesKeys: uc,
9668
+ fragmentShaderSource: this.useCubemapTexture ? Aa.replace(_a, fc) : Aa.replace(_a, ""),
9669
+ attributesKeys: cc,
9663
9670
  uniformsKeys: t,
9664
- vertices: tc,
9665
- indices: rc
9671
+ vertices: rc,
9672
+ indices: nc
9666
9673
  }), this.cubeMapNeedsUpdate = e, this.useCubemapTexture && this.updateTexture(this.gl, this.faces), this.animateColorChange();
9667
9674
  }
9668
9675
  /**
@@ -9683,7 +9690,7 @@ class Nt {
9683
9690
  * @param {WebGLRenderingContext | WebGL2RenderingContext} gl - The WebGL context used for rendering.
9684
9691
  */
9685
9692
  onRemove(e, t) {
9686
- this.cubemap && (this.texture && (ic(t), this.texture = void 0), t.deleteProgram(this.cubemap.shaderProgram), t.deleteBuffer(this.cubemap.positionBuffer));
9693
+ this.cubemap && (this.texture && (oc(t), this.texture = void 0), t.deleteProgram(this.cubemap.shaderProgram), t.deleteBuffer(this.cubemap.positionBuffer));
9687
9694
  }
9688
9695
  /**
9689
9696
  * Updates the cubemap texture with the provided faces.
@@ -9696,7 +9703,7 @@ class Nt {
9696
9703
  if (this.cubeMapNeedsUpdate === !0 && !this.imageIsAnimating) {
9697
9704
  if (this.cubeMapNeedsUpdate = !1, !this.useCubemapTexture)
9698
9705
  return;
9699
- oc({
9706
+ sc({
9700
9707
  gl: e,
9701
9708
  faces: t,
9702
9709
  onReady: (n) => {
@@ -9723,7 +9730,7 @@ class Nt {
9723
9730
  */
9724
9731
  animateColorChange() {
9725
9732
  const e = () => {
9726
- this.transitionDelta < 1 && (requestAnimationFrame(e), this.bgColor = lc(this.previousBgColor, this.targetBgColor, this.transitionDelta), this.transitionDelta += 0.075, this.map.triggerRepaint());
9733
+ this.transitionDelta < 1 && (requestAnimationFrame(e), this.bgColor = uc(this.previousBgColor, this.targetBgColor, this.transitionDelta), this.transitionDelta += 0.075, this.map.triggerRepaint());
9727
9734
  };
9728
9735
  requestAnimationFrame(e);
9729
9736
  }
@@ -9790,9 +9797,9 @@ class Nt {
9790
9797
  throw new Error("[CubemapLayer]: Cubemap is undefined");
9791
9798
  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);
9792
9799
  const n = 0.1, a = 1e4, i = e.canvas, o = i.clientWidth / i.clientHeight, s = this.map.transform, l = s.fov * (Math.PI / 180), u = yt();
9793
- Nu(u, l, o, n, a), wa(u, u, s.rollInRadians), ba(u, u, -s.pitchInRadians), wa(u, u, s.bearingInRadians);
9800
+ ju(u, l, o, n, a), wa(u, u, s.rollInRadians), ba(u, u, -s.pitchInRadians), wa(u, u, s.bearingInRadians);
9794
9801
  const c = s.center.lat * Math.PI / 180, p = s.center.lng * Math.PI / 180;
9795
- ba(u, u, c), Fu(u, u, -p), e.uniformMatrix4fv(this.cubemap.programInfo.uniformsLocations.projectionMatrix, !1, u);
9802
+ ba(u, u, c), $u(u, u, -p), e.uniformMatrix4fv(this.cubemap.programInfo.uniformsLocations.projectionMatrix, !1, u);
9796
9803
  const f = yt();
9797
9804
  if (e.uniformMatrix4fv(this.cubemap.programInfo.uniformsLocations.modelViewMatrix, !1, f), 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)
9798
9805
  throw new Error("Index buffer is undefined");
@@ -9922,7 +9929,7 @@ function Pa(r) {
9922
9929
  }
9923
9930
  return null;
9924
9931
  }
9925
- const dc = `attribute vec3 a_position;
9932
+ const hc = `attribute vec3 a_position;
9926
9933
 
9927
9934
  uniform mat4 u_matrix;
9928
9935
  uniform mat4 u_rotationMatrix;
@@ -9937,7 +9944,7 @@ void main() {
9937
9944
  v_pos = a_position.xy * u_scale;
9938
9945
  gl_Position = u_matrix * u_rotationMatrix * vec4(a_position, 1.0);
9939
9946
  }
9940
- `, hc = `precision mediump float;
9947
+ `, mc = `precision mediump float;
9941
9948
  varying vec2 v_pos;
9942
9949
 
9943
9950
  uniform int u_stopsNumber;
@@ -9996,7 +10003,7 @@ void main() {
9996
10003
  // gl_FragColor = color;
9997
10004
  gl_FragColor = vec4(color.rgb * color.a, color.a);
9998
10005
  }
9999
- `, ke = 2, mc = ["position"], yc = ["matrix", "rotationMatrix", "stopsNumber", "stops", "colors", "maxDistance", "scale"], gc = [
10006
+ `, ke = 2, yc = ["position"], gc = ["matrix", "rotationMatrix", "stopsNumber", "stops", "colors", "maxDistance", "scale"], vc = [
10000
10007
  -ke,
10001
10008
  -ke,
10002
10009
  0,
@@ -10097,11 +10104,11 @@ class Ut {
10097
10104
  onAdd(e, t) {
10098
10105
  this.map = e, this.plane = Vi({
10099
10106
  gl: t,
10100
- vertexShaderSource: dc,
10101
- fragmentShaderSource: hc,
10102
- attributesKeys: mc,
10103
- uniformsKeys: yc,
10104
- vertices: gc
10107
+ vertexShaderSource: hc,
10108
+ fragmentShaderSource: mc,
10109
+ attributesKeys: yc,
10110
+ uniformsKeys: gc,
10111
+ vertices: vc
10105
10112
  }), this.animateIn();
10106
10113
  }
10107
10114
  /**
@@ -10195,15 +10202,15 @@ class Ut {
10195
10202
  const n = this.plane.programInfo.attributesLocations.position;
10196
10203
  e.enableVertexAttribArray(n), e.vertexAttribPointer(n, 3, e.FLOAT, !1, 0, 0);
10197
10204
  const a = yt(), i = this.scale;
10198
- zu(a, a, [i, i, i]);
10205
+ Fu(a, a, [i, i, i]);
10199
10206
  const o = yt();
10200
- Ou(o, t.defaultProjectionData.mainMatrix, a);
10207
+ zu(o, t.defaultProjectionData.mainMatrix, a);
10201
10208
  const s = this.plane.programInfo.uniformsLocations.matrix;
10202
10209
  e.uniformMatrix4fv(s, !1, o);
10203
- const l = yt(), u = this.map.transform.cameraPosition, c = $r(Gt(), u), p = ju(0, 1, 0), f = Gt();
10210
+ const l = yt(), u = this.map.transform.cameraPosition, c = $r(Gt(), u), p = Du(0, 1, 0), f = Gt();
10204
10211
  Sa(f, p, c), $r(f, f);
10205
10212
  const d = Gt();
10206
- Sa(d, c, f), $r(d, d), Ru(l, f[0], f[1], f[2], 0, d[0], d[1], d[2], 0, c[0], c[1], c[2], 0, 0, 0, 0, 1);
10213
+ Sa(d, c, f), $r(d, d), Ou(l, f[0], f[1], f[2], 0, d[0], d[1], d[2], 0, c[0], c[1], c[2], 0, 0, 0, 0, 1);
10207
10214
  const h = this.plane.programInfo.uniformsLocations.rotationMatrix;
10208
10215
  e.uniformMatrix4fv(h, !1, l);
10209
10216
  const m = this.gradient.stops.length, g = [], b = [];
@@ -10248,21 +10255,21 @@ class Ut {
10248
10255
  this.map.setLayoutProperty(this.id, "visibility", "none");
10249
10256
  }
10250
10257
  }
10251
- const vc = ["scale", "stops"];
10258
+ const bc = ["scale", "stops"];
10252
10259
  function Oa(r) {
10253
10260
  var t;
10254
10261
  const e = [];
10255
10262
  if (typeof r == "boolean")
10256
10263
  return [];
10257
10264
  try {
10258
- const n = Object.keys(r).filter((a) => !vc.includes(a));
10265
+ const n = Object.keys(r).filter((a) => !bc.includes(a));
10259
10266
  n.length > 0 && e.push(`Properties ${n.map((a) => `\`${a}\``).join(", ")} are not supported.`);
10260
10267
  } catch {
10261
10268
  e.push("Halo specification is not an object.");
10262
10269
  }
10263
10270
  return typeof r.scale != "number" && e.push("Halo `scale` property is not a number."), !r.stops || r.stops.length === 0 || !Array.isArray(r.stops) ? (e.push("Halo `stops` property is not an array."), e) : ((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);
10264
10271
  }
10265
- function bc() {
10272
+ function wc() {
10266
10273
  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;";
10267
10274
  console.info(
10268
10275
  `%c❖%c❖%c❖ %cMapTiler SDK JS v${So()} %c❖%c❖%c❖`,
@@ -10275,13 +10282,13 @@ function bc() {
10275
10282
  e + "padding-left: 0;"
10276
10283
  );
10277
10284
  }
10278
- const wc = {
10285
+ const Sc = {
10279
10286
  POINT: "POINT",
10280
10287
  COUNTRY: "COUNTRY"
10281
10288
  };
10282
10289
  let Gi = class Hi extends k.Map {
10283
10290
  constructor(t) {
10284
- t.logSDKVersion !== !1 && bc(), ts(t.container), t.apiKey && (j.apiKey = t.apiKey);
10291
+ t.logSDKVersion !== !1 && wc(), rs(t.container, t.canvasContextAttributes), t.apiKey && (j.apiKey = t.apiKey);
10285
10292
  const { style: n, requiresUrlMonitoring: a, isFallback: i } = ya(t.style);
10286
10293
  i && console.warn(
10287
10294
  "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."
@@ -10333,7 +10340,7 @@ let Gi = class Hi extends k.Map {
10333
10340
  this.getStyle() ? h += " Leaving the style as is." : (this.setStyle(dt.STREETS), h += `Loading default MapTiler Cloud style "${dt.STREETS.getDefaultVariant().getId()}" as a fallback.`), console.warn(h);
10334
10341
  };
10335
10342
  if (this.on("style.load", () => {
10336
- this.styleInProcess = !1, (typeof t.rtlTextPlugin == "string" || typeof t.rtlTextPlugin > "u") && Wo(t.rtlTextPlugin);
10343
+ this.styleInProcess = !1, (typeof t.rtlTextPlugin == "string" || typeof t.rtlTextPlugin > "u") && Yo(t.rtlTextPlugin);
10337
10344
  }), this.on("error", (h) => {
10338
10345
  if (h.error instanceof k.AJAXError) {
10339
10346
  const g = h.error.url, b = new URL(g);
@@ -10346,7 +10353,7 @@ let Gi = class Hi extends k.Map {
10346
10353
  u();
10347
10354
  return;
10348
10355
  }
10349
- }), j.caching && !Gr && console.warn("The cache API is only available in secure contexts. More info at https://developer.mozilla.org/en-US/docs/Web/API/Cache"), j.caching && Gr && Yo(), typeof t.language > "u")
10356
+ }), j.caching && !Gr && console.warn("The cache API is only available in secure contexts. More info at https://developer.mozilla.org/en-US/docs/Web/API/Cache"), j.caching && Gr && Wo(), typeof t.language > "u")
10350
10357
  this.primaryLanguage = j.primaryLanguage;
10351
10358
  else {
10352
10359
  const h = Bn(t.language, O);
@@ -10358,7 +10365,7 @@ let Gi = class Hi extends k.Map {
10358
10365
  if (!t.geolocate || t.center || t.hash && o)
10359
10366
  return;
10360
10367
  try {
10361
- if (t.geolocate === wc.COUNTRY) {
10368
+ if (t.geolocate === Sc.COUNTRY) {
10362
10369
  await this.fitToIpBounds();
10363
10370
  return;
10364
10371
  }
@@ -10449,13 +10456,13 @@ let Gi = class Hi extends k.Map {
10449
10456
  }
10450
10457
  if (t.navigationControl !== !1) {
10451
10458
  const m = t.navigationControl === !0 || t.navigationControl === void 0 ? "top-right" : t.navigationControl;
10452
- this.addControl(new Au(), m);
10459
+ this.addControl(new Tu(), m);
10453
10460
  }
10454
10461
  if (t.geolocateControl !== !1) {
10455
10462
  const m = t.geolocateControl === !0 || t.geolocateControl === void 0 ? "top-right" : t.geolocateControl;
10456
10463
  this.addControl(
10457
10464
  // new maplibregl.GeolocateControl({
10458
- new Iu({
10465
+ new _u({
10459
10466
  positionOptions: {
10460
10467
  enableHighAccuracy: !0,
10461
10468
  maximumAge: 0,
@@ -10473,11 +10480,11 @@ let Gi = class Hi extends k.Map {
10473
10480
  }
10474
10481
  if (t.terrainControl) {
10475
10482
  const m = t.terrainControl === !0 || t.terrainControl === void 0 ? "top-right" : t.terrainControl;
10476
- this.addControl(new Cu(), m);
10483
+ this.addControl(new Au(), m);
10477
10484
  }
10478
10485
  if (t.projectionControl) {
10479
10486
  const m = t.projectionControl === !0 || t.projectionControl === void 0 ? "top-right" : t.projectionControl;
10480
- this.addControl(new Mu(), m);
10487
+ this.addControl(new Pu(), m);
10481
10488
  }
10482
10489
  if (t.fullscreenControl) {
10483
10490
  const m = t.fullscreenControl === !0 || t.fullscreenControl === void 0 ? "top-right" : t.fullscreenControl;
@@ -10502,8 +10509,8 @@ let Gi = class Hi extends k.Map {
10502
10509
  refreshExpiredTiles: A,
10503
10510
  maxBounds: N,
10504
10511
  scrollZoom: le,
10505
- minZoom: Ye,
10506
- maxZoom: We,
10512
+ minZoom: We,
10513
+ maxZoom: Ye,
10507
10514
  boxZoom: X,
10508
10515
  locale: Je,
10509
10516
  fadeDuration: ko,
@@ -10526,8 +10533,8 @@ let Gi = class Hi extends k.Map {
10526
10533
  refreshExpiredTiles: A,
10527
10534
  maxBounds: N,
10528
10535
  scrollZoom: le,
10529
- minZoom: Ye,
10530
- maxZoom: We,
10536
+ minZoom: We,
10537
+ maxZoom: Ye,
10531
10538
  boxZoom: X,
10532
10539
  locale: Je,
10533
10540
  fadeDuration: ko,
@@ -10557,7 +10564,7 @@ let Gi = class Hi extends k.Map {
10557
10564
  });
10558
10565
  const h = this.getLayersOrder()[0];
10559
10566
  t.space && this.initSpace({ options: t, before: h }), t.halo && this.initHalo({ options: t, before: h });
10560
- }), this.telemetry = new Pu(this);
10567
+ }), this.telemetry = new Ru(this);
10561
10568
  }
10562
10569
  getSpace() {
10563
10570
  return this.space;
@@ -11068,30 +11075,32 @@ let Gi = class Hi extends k.Map {
11068
11075
  ]) : i.flag === O.AUTO.flag ? (o = Vn().flag, s = ["coalesce", ["get", o], ["get", O.LOCAL.flag]]) : i === O.LOCAL ? (o = O.LOCAL.flag, s = ["get", o]) : (o = i.flag, s = ["coalesce", ["get", o], ["get", O.LOCAL.flag]]);
11069
11076
  const { layers: l } = this.getStyle(), u = this.originalLabelStyle.size === 0;
11070
11077
  if (u) {
11071
- const c = ls(l, this);
11078
+ const c = us(l, this);
11072
11079
  this.isStyleLocalized = Object.keys(c.localized).length > 0;
11073
11080
  }
11074
11081
  for (const c of l) {
11075
11082
  if (c.type !== "symbol")
11076
11083
  continue;
11077
11084
  const p = c, f = this.getSource(p.source);
11078
- if (!f || !("url" in f && typeof f.url == "string") || new URL(f.url).host !== W.maptilerApiHost)
11085
+ if (!f || !("url" in f && typeof f.url == "string") || new URL(f.url).host !== Y.maptilerApiHost)
11079
11086
  continue;
11080
11087
  const { id: h, layout: m } = p;
11081
11088
  if (!m || !("text-field" in m))
11082
11089
  continue;
11083
11090
  let g;
11084
11091
  if (u ? (g = this.getLayoutProperty(h, "text-field"), this.originalLabelStyle.set(h, g)) : g = this.originalLabelStyle.get(h), typeof g == "string") {
11085
- const { contains: b, exactMatch: v } = rs(g, this.isStyleLocalized);
11092
+ const { contains: b, exactMatch: v } = ns(g, this.isStyleLocalized);
11086
11093
  if (!b) continue;
11087
11094
  if (v)
11088
11095
  this.setLayoutProperty(h, "text-field", s);
11089
11096
  else {
11090
- const x = ns(g, s, this.isStyleLocalized);
11097
+ const x = as(g, s, this.isStyleLocalized);
11091
11098
  this.setLayoutProperty(h, "text-field", x);
11092
11099
  }
11093
- } else
11094
- this.setLayoutProperty(h, "text-field", s);
11100
+ } else {
11101
+ const b = JSON.stringify(g);
11102
+ (b.includes('"name"') || b.includes('"name:')) && this.setLayoutProperty(h, "text-field", s);
11103
+ }
11095
11104
  }
11096
11105
  this.languageIsUpdated = !0;
11097
11106
  }
@@ -11143,11 +11152,11 @@ let Gi = class Hi extends k.Map {
11143
11152
  const n = (i) => {
11144
11153
  !this.terrain || i.type !== "data" || i.dataType !== "source" || !("source" in i) || i.sourceId !== "maptiler-terrain" || i.source.type !== "raster-dem" || i.isSourceLoaded && (this.off("data", n), this.growTerrain(t));
11145
11154
  }, a = () => {
11146
- this.isTerrainEnabled = !0, this.terrainExaggeration = t, this.on("data", n), this.addSource(W.terrainSourceId, {
11155
+ this.isTerrainEnabled = !0, this.terrainExaggeration = t, this.on("data", n), this.addSource(Y.terrainSourceId, {
11147
11156
  type: "raster-dem",
11148
- url: W.terrainSourceURL
11157
+ url: Y.terrainSourceURL
11149
11158
  }), this.setTerrain({
11150
- source: W.terrainSourceId,
11159
+ source: Y.terrainSourceId,
11151
11160
  exaggeration: 0
11152
11161
  });
11153
11162
  };
@@ -11159,7 +11168,7 @@ let Gi = class Hi extends k.Map {
11159
11168
  a();
11160
11169
  else {
11161
11170
  const i = () => {
11162
- this.getTerrain() && this.getSource(W.terrainSourceId) || a();
11171
+ this.getTerrain() && this.getSource(Y.terrainSourceId) || a();
11163
11172
  };
11164
11173
  this.once(this.style._loaded ? "render" : "load", () => {
11165
11174
  i();
@@ -11183,7 +11192,7 @@ let Gi = class Hi extends k.Map {
11183
11192
  const o = (1 - i) ** 4, s = n * o;
11184
11193
  this.terrain.exaggeration = s, requestAnimationFrame(a);
11185
11194
  } else
11186
- 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 });
11195
+ this.terrain.exaggeration = 0, this.terrainGrowing = !1, this.terrainFlattening = !1, this.setTerrain(), this.getSource(Y.terrainSourceId) && this.removeSource(Y.terrainSourceId), this.fire("terrainAnimationStop", { terrain: null });
11187
11196
  this.triggerRepaint();
11188
11197
  };
11189
11198
  !this.terrainGrowing && !this.terrainFlattening && this.fire("terrainAnimationStart", { terrain: this.terrain }), this.terrainGrowing = !1, this.terrainFlattening = !0, requestAnimationFrame(a);
@@ -11302,7 +11311,7 @@ function Bt(r) {
11302
11311
  }
11303
11312
  return delete r.session, r;
11304
11313
  }
11305
- const lf = {
11314
+ const uf = {
11306
11315
  forward: (r, e = {}) => Ot.geocoding.forward(r, Bt(e)),
11307
11316
  reverse: (r, e = {}) => Ot.geocoding.reverse(r, Bt(e)),
11308
11317
  byId: (r, e = {}) => Ot.geocoding.byId(r, Bt(e)),
@@ -11333,7 +11342,7 @@ const Ki = [
11333
11342
  ], Zi = [
11334
11343
  "error"
11335
11344
  // ErrorEvent
11336
- ], Xi = ["resize"], Yi = ["webglcontextlost", "webglcontextrestored"], Wi = [
11345
+ ], Xi = ["resize"], Wi = ["webglcontextlost", "webglcontextrestored"], Yi = [
11337
11346
  "moveend",
11338
11347
  "movestart",
11339
11348
  "move",
@@ -11359,18 +11368,18 @@ const Ki = [
11359
11368
  // this is fired on layers, not the map
11360
11369
  // keeping it for reference
11361
11370
  // "metadata",
11362
- ], Sc = [
11371
+ ], xc = [
11363
11372
  ...Ki,
11364
11373
  ...Zi,
11365
11374
  ...Xi,
11366
- ...Yi,
11367
11375
  ...Wi,
11376
+ ...Yi,
11368
11377
  ...Ji,
11369
11378
  ...eo,
11370
11379
  ...Qi
11371
- ], xc = ["lngLat", "_defaultPrevented"];
11372
- function kc({ map: r, viewer: e, lngLatToPx: t }) {
11373
- Sc.forEach((n) => {
11380
+ ], kc = ["lngLat", "_defaultPrevented"];
11381
+ function Ec({ map: r, viewer: e, lngLatToPx: t }) {
11382
+ xc.forEach((n) => {
11374
11383
  try {
11375
11384
  r.on(n, (a) => {
11376
11385
  const i = n;
@@ -11379,13 +11388,13 @@ function kc({ map: r, viewer: e, lngLatToPx: t }) {
11379
11388
  isOutOfBounds: m ? h[0] < 0 || h[0] > m.width || h[1] < 0 || h[1] > m.height : !0,
11380
11389
  imageX: h[0],
11381
11390
  imageY: h[1],
11382
- ...Object.fromEntries(Object.entries(a).filter(([v]) => !xc.includes(v)))
11391
+ ...Object.fromEntries(Object.entries(a).filter(([v]) => !kc.includes(v)))
11383
11392
  };
11384
11393
  e.fire(new ae(n, e, d.originalEvent, b));
11385
11394
  return;
11386
11395
  }
11387
11396
  const o = n;
11388
- if (Wi.includes(o)) {
11397
+ if (Yi.includes(o)) {
11389
11398
  const d = a;
11390
11399
  e.fire(new ae(n, e, d.originalEvent, d));
11391
11400
  return;
@@ -11403,7 +11412,7 @@ function kc({ map: r, viewer: e, lngLatToPx: t }) {
11403
11412
  return;
11404
11413
  }
11405
11414
  const u = n;
11406
- if (Yi.includes(u)) {
11415
+ if (Wi.includes(u)) {
11407
11416
  const d = a;
11408
11417
  e.fire(new ae(n, e, d.originalEvent, d));
11409
11418
  return;
@@ -11431,7 +11440,7 @@ function kc({ map: r, viewer: e, lngLatToPx: t }) {
11431
11440
  }
11432
11441
  });
11433
11442
  }
11434
- class Ec extends Error {
11443
+ class Lc extends Error {
11435
11444
  constructor(t, n, a) {
11436
11445
  const i = `[${a}]: Failed to fetch ${n} at ${t.url}: ${t.status.toString()}: ${t.statusText}`;
11437
11446
  super(i);
@@ -11441,13 +11450,13 @@ class Ec extends Error {
11441
11450
  }
11442
11451
  }
11443
11452
  const za = 85.051129;
11444
- function Lc(r, e) {
11453
+ function Cc(r, e) {
11445
11454
  return new fn(e.x / r, e.y / r).toLngLat();
11446
11455
  }
11447
- function Cc(r) {
11456
+ function Ac(r) {
11448
11457
  return Math.pow(2, r);
11449
11458
  }
11450
- function Ac(r) {
11459
+ function Tc(r) {
11451
11460
  return Math.log(r) / Math.LN2;
11452
11461
  }
11453
11462
  function to(r, e, t) {
@@ -11463,11 +11472,11 @@ function Fa(r, e, t) {
11463
11472
  const n = t - e, a = ((r - e) % n + n) % n + e;
11464
11473
  return a === e ? t : a;
11465
11474
  }
11466
- function Tc(r, e) {
11475
+ function Ic(r, e) {
11467
11476
  const t = to(e.lat, -za, za);
11468
11477
  return new xo(nn(e.lng) * r, rn(t) * r);
11469
11478
  }
11470
- const Ic = function(r, e) {
11479
+ const _c = function(r, e) {
11471
11480
  e = to(e, this.minZoom, this.maxZoom);
11472
11481
  const t = {
11473
11482
  center: new Ne(r.lng, r.lat),
@@ -11479,33 +11488,33 @@ const Ic = function(r, e) {
11479
11488
  const X = 179.9999999999;
11480
11489
  n = [-X, X];
11481
11490
  }
11482
- const i = this.tileSize * Cc(t.zoom);
11491
+ const i = this.tileSize * Ac(t.zoom);
11483
11492
  let o = 0, s = i, l = 0, u = i, c = 0, p = 0;
11484
11493
  const { x: f, y: d } = this.size, h = 0.5;
11485
11494
  a && (o = rn(a[1]) * i, s = rn(a[0]) * i, s - o < h * d && (c = h * d / (s - o))), n && (l = Fa(nn(n[0]) * i, 0, i), u = Fa(nn(n[1]) * i, 0, i), u < l && (u += i), u - l < h * f && (p = h * f / (u - l)));
11486
- const { x: m, y: g } = Tc(i, r);
11495
+ const { x: m, y: g } = Ic(i, r);
11487
11496
  let b, v;
11488
11497
  const x = Math.min(p || 0, c || 0);
11489
11498
  if (x)
11490
- return t.zoom += Ac(x), t;
11499
+ return t.zoom += Tc(x), t;
11491
11500
  let C = 0, L = 0;
11492
11501
  const A = 1, N = 1 - (s - o) / d, le = 1 - (u - l) / f;
11493
11502
  C = Math.max(le, A), L = Math.max(N, A);
11494
- const Ye = 1 - C, We = 1 - L;
11503
+ const We = 1 - C, Ye = 1 - L;
11495
11504
  if (a) {
11496
- const X = We * d / 2;
11505
+ const X = Ye * d / 2;
11497
11506
  g - X < o && (v = o + X), g + X > s && (v = s - X);
11498
11507
  }
11499
11508
  if (n) {
11500
- const X = m, Je = Ye * f / 2;
11509
+ const X = m, Je = We * f / 2;
11501
11510
  X - Je < l && (b = l + Je), X + Je > u && (b = u - Je);
11502
11511
  }
11503
11512
  if (b !== void 0 || v !== void 0) {
11504
11513
  const X = new xo(b ?? m, v ?? g);
11505
- t.center = Lc(i, X).wrap();
11514
+ t.center = Cc(i, X).wrap();
11506
11515
  }
11507
11516
  return t;
11508
- }, _c = {
11517
+ }, Mc = {
11509
11518
  center: "translate(-50%,-50%)",
11510
11519
  top: "translate(-50%,0)",
11511
11520
  "top-left": "translate(0,0)",
@@ -11516,7 +11525,7 @@ const Ic = function(r, e) {
11516
11525
  left: "translate(0,-50%)",
11517
11526
  right: "translate(-100%,-50%)"
11518
11527
  };
11519
- function Mc(r) {
11528
+ function Pc(r) {
11520
11529
  function e(t) {
11521
11530
  if (!this._map) return;
11522
11531
  const n = this._map.loaded() && !this._map.isMoving();
@@ -11525,12 +11534,12 @@ function Mc(r) {
11525
11534
  this._rotationAlignment === "viewport" || this._rotationAlignment === "auto" ? a = `rotateZ(${this._rotation}deg)` : this._rotationAlignment === "map" && (a = `rotateZ(${this._rotation - this._map.getBearing()}deg)`);
11526
11535
  let i = "";
11527
11536
  this._pitchAlignment === "viewport" || this._pitchAlignment === "auto" ? i = "rotateX(0deg)" : this._pitchAlignment === "map" && (i = `rotateX(${this._map.getPitch()}deg)`), !this._subpixelPositioning && (!t || t.type === "moveend") && (this._pos = this._pos.round());
11528
- const o = `${_c[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${a}`;
11537
+ const o = `${Mc[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${a}`;
11529
11538
  this._element.style.transform = o;
11530
11539
  }
11531
11540
  r._update = e.bind(r);
11532
11541
  }
11533
- class Pc {
11542
+ class Rc {
11534
11543
  constructor({ imageViewer: e }) {
11535
11544
  y(this, "viewer");
11536
11545
  y(this, "container");
@@ -11551,7 +11560,7 @@ class Pc {
11551
11560
  this.container.remove();
11552
11561
  }
11553
11562
  }
11554
- const ro = Symbol("MapTiler:ImageViewer:Internal:lngLatToPxInternal"), no = Symbol("MapTiler:ImageViewer:Internal:pxToLngLatInternal"), { Evented: Rc } = k, Oc = {
11563
+ const ro = Symbol("MapTiler:ImageViewer:Internal:lngLatToPxInternal"), no = Symbol("MapTiler:ImageViewer:Internal:pxToLngLatInternal"), { Evented: Oc } = k, zc = {
11555
11564
  style: {
11556
11565
  version: 8,
11557
11566
  sources: {},
@@ -11570,14 +11579,14 @@ const ro = Symbol("MapTiler:ImageViewer:Internal:lngLatToPxInternal"), no = Symb
11570
11579
  terrain: !1,
11571
11580
  space: !1,
11572
11581
  halo: !1,
11573
- transformConstrain: Ic
11574
- }, zc = {
11582
+ transformConstrain: _c
11583
+ }, Fc = {
11575
11584
  debug: !1,
11576
11585
  fitToBoundsControl: !0,
11577
11586
  navigationControl: !0
11578
11587
  };
11579
11588
  var Ka, Za, Xa;
11580
- class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
11589
+ class $c extends (Xa = Oc, Za = ro, Ka = no, Xa) {
11581
11590
  //#region constructor
11582
11591
  /**
11583
11592
  * The constructor for the ImageViewer.
@@ -11661,12 +11670,12 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
11661
11670
  if (typeof t.container != "string" && !(t.container instanceof HTMLElement))
11662
11671
  throw new Error("[ImageViewer]: `container` is required and must be a string or HTMLElement");
11663
11672
  this.options = {
11664
- ...zc,
11673
+ ...Fc,
11665
11674
  ...t
11666
11675
  };
11667
11676
  const n = {
11668
11677
  ...this.options,
11669
- ...Oc
11678
+ ...zc
11670
11679
  };
11671
11680
  delete n.center, this.sdk = new Gi(n), this.sdk.telemetry.registerViewerType("ImageViewer");
11672
11681
  const { imageUUID: a, debug: i } = t;
@@ -11721,11 +11730,11 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
11721
11730
  var t, n, a;
11722
11731
  try {
11723
11732
  await this.sdk.onReadyAsync(), await this.fetchImageMetadata(), this.addImageSource(), this.options.navigationControl && this.sdk.addControl(
11724
- new Wa({
11733
+ new Ya({
11725
11734
  visualizePitch: !1,
11726
11735
  visualizeRoll: !1
11727
11736
  })
11728
- ), this.fitToBoundsControlInstance = new Pc({ imageViewer: this }), this.options.fitToBoundsControl && this.sdk.addControl(this.fitToBoundsControlInstance), kc({
11737
+ ), this.fitToBoundsControlInstance = new Rc({ imageViewer: this }), this.options.fitToBoundsControl && this.sdk.addControl(this.fitToBoundsControlInstance), Ec({
11729
11738
  map: this.sdk,
11730
11739
  viewer: this,
11731
11740
  lngLatToPx: (u) => this.lngLatToPx(u)
@@ -11767,9 +11776,9 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
11767
11776
  * @returns {Promise<void>}
11768
11777
  */
11769
11778
  async fetchImageMetadata() {
11770
- const t = $c(this.imageUUID), n = await fetch(t);
11779
+ const t = Nc(this.imageUUID), n = await fetch(t);
11771
11780
  if (!n.ok)
11772
- throw new Ec(n, "image metadata", "ImageViewer");
11781
+ throw new Lc(n, "image metadata", "ImageViewer");
11773
11782
  const a = await n.json();
11774
11783
  this.imageMetadata = a, Object.freeze(this.imageMetadata);
11775
11784
  }
@@ -11783,7 +11792,7 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
11783
11792
  addImageSource() {
11784
11793
  if (!this.imageMetadata)
11785
11794
  throw this.fire("error", new ae("error", this, null, { error: new Error("[ImageViewer]: Image metadata not found") })), new Error("[ImageViewer]: Image metadata not found");
11786
- const t = Nc(this.imageUUID), n = (s) => Math.pow(2, Math.ceil(Math.log(s) / Math.LN2));
11795
+ const t = jc(this.imageUUID), n = (s) => Math.pow(2, Math.ceil(Math.log(s) / Math.LN2));
11787
11796
  this.imageSize = [this.imageMetadata.width, this.imageMetadata.height], this.paddedSizeMax = Math.max(n(this.imageSize[0]), n(this.imageSize[1]));
11788
11797
  const a = this.pxToLngLat([0, 0]), i = this.pxToLngLat(this.imageSize), o = [a.lng, i.lat, i.lng, a.lat];
11789
11798
  this.sdk.addSource("image", {
@@ -12118,7 +12127,7 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
12118
12127
  * @returns {ImageViewer} The ImageViewer instance.
12119
12128
  */
12120
12129
  fitImageBounds([t, n]) {
12121
- const a = this.pxToLngLat(t), i = this.pxToLngLat(n), o = Rp.convert([a, i]);
12130
+ const a = this.pxToLngLat(t), i = this.pxToLngLat(n), o = Op.convert([a, i]);
12122
12131
  return this.sdk.fitBounds(o), this;
12123
12132
  }
12124
12133
  //#region remove
@@ -12149,17 +12158,17 @@ class Fc extends (Xa = Rc, Za = ro, Ka = no, Xa) {
12149
12158
  return t[0] >= a[0][0] && t[0] <= a[1][0] && t[1] >= a[0][1] && t[1] <= a[1][1];
12150
12159
  }
12151
12160
  }
12152
- function $c(r) {
12161
+ function Nc(r) {
12153
12162
  return `${ao()}/${r}/image.json?key=${j.apiKey}`;
12154
12163
  }
12155
- function Nc(r) {
12164
+ function jc(r) {
12156
12165
  return `${ao()}/${r}/{z}/{x}/{y}?key=${j.apiKey}`;
12157
12166
  }
12158
12167
  function ao() {
12159
12168
  return "https://api.maptiler.com/images";
12160
12169
  }
12161
- const { Evented: jc } = k;
12162
- class uf extends jc {
12170
+ const { Evented: Dc } = k;
12171
+ class cf extends Dc {
12163
12172
  constructor({ ...t }) {
12164
12173
  super();
12165
12174
  y(this, "viewer");
@@ -12174,11 +12183,11 @@ class uf extends jc {
12174
12183
  * @returns {ImageViewerMarker} The ImageViewerMarker instance.
12175
12184
  */
12176
12185
  addTo(t) {
12177
- if (!(t instanceof Fc))
12186
+ if (!(t instanceof $c))
12178
12187
  throw new Error("[ImageViewerMarker]: an ImageViewerMarker must be added to an instance of ImageViewer");
12179
- this.viewer = t, qc(this.marker, this, this.viewer[ro]);
12188
+ this.viewer = t, Vc(this.marker, this, this.viewer[ro]);
12180
12189
  const n = this.viewer.getSDKInternal();
12181
- return this.setPosition(this.position), Mc(this.marker), this.marker.addTo(n), this;
12190
+ return this.setPosition(this.position), Pc(this.marker), this.marker.addTo(n), this;
12182
12191
  }
12183
12192
  /**
12184
12193
  * Adds a class name to the ImageViewerMarker.
@@ -12428,16 +12437,16 @@ class uf extends jc {
12428
12437
  return this.marker.togglePopup(), this;
12429
12438
  }
12430
12439
  }
12431
- const Dc = ["dragstart", "drag", "dragend"], Uc = ["lngLat", "_defaultPrevented", "target"];
12432
- class Bc {
12440
+ const Uc = ["dragstart", "drag", "dragend"], Bc = ["lngLat", "_defaultPrevented", "target"];
12441
+ class qc {
12433
12442
  constructor(e, t, n) {
12434
12443
  y(this, "type");
12435
12444
  y(this, "target");
12436
12445
  this.type = e, this.target = t, Object.assign(this, n);
12437
12446
  }
12438
12447
  }
12439
- function qc(r, e, t) {
12440
- Dc.forEach((n) => {
12448
+ function Vc(r, e, t) {
12449
+ Uc.forEach((n) => {
12441
12450
  r.on(n, (a) => {
12442
12451
  var o, s;
12443
12452
  if ((o = a.target) == null ? void 0 : o.getLngLat()) {
@@ -12446,8 +12455,8 @@ function qc(r, e, t) {
12446
12455
  }
12447
12456
  e.fire(
12448
12457
  n,
12449
- new Bc(n, e, {
12450
- ...Object.fromEntries(Object.entries(a).filter(([l]) => !Uc.includes(l)))
12458
+ new qc(n, e, {
12459
+ ...Object.fromEntries(Object.entries(a).filter(([l]) => !Bc.includes(l)))
12451
12460
  })
12452
12461
  );
12453
12462
  });
@@ -12486,15 +12495,15 @@ function oo(r) {
12486
12495
  features: []
12487
12496
  };
12488
12497
  for (const o of Array.from(t)) {
12489
- const s = Kc(o);
12498
+ const s = Zc(o);
12490
12499
  s && i.features.push(s);
12491
12500
  }
12492
12501
  for (const o of Array.from(n)) {
12493
- const s = Zc(o);
12502
+ const s = Xc(o);
12494
12503
  s && i.features.push(s);
12495
12504
  }
12496
12505
  for (const o of Array.from(a))
12497
- i.features.push(Xc(o));
12506
+ i.features.push(Wc(o));
12498
12507
  return i;
12499
12508
  }
12500
12509
  function so(r, e) {
@@ -12517,7 +12526,7 @@ function so(r, e) {
12517
12526
  o[`#${Ze(c, "id")}`] = f;
12518
12527
  }
12519
12528
  for (const c of Array.from(s))
12520
- n.features = n.features.concat(Hc(c, a, i, o));
12529
+ n.features = n.features.concat(Kc(c, a, i, o));
12521
12530
  return n;
12522
12531
  }
12523
12532
  function Na(r) {
@@ -12525,15 +12534,15 @@ function Na(r) {
12525
12534
  let e = "", t = 1, n = r;
12526
12535
  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];
12527
12536
  }
12528
- function Vc(r) {
12537
+ function Gc(r) {
12529
12538
  return co(r.split(" "));
12530
12539
  }
12531
- function Gc(r) {
12540
+ function Hc(r) {
12532
12541
  let e = Z(r, "coord");
12533
12542
  const t = [], n = [];
12534
12543
  e.length === 0 && (e = Z(r, "gx:coord"));
12535
12544
  for (const i of Array.from(e))
12536
- t.push(Vc(F(i) ?? ""));
12545
+ t.push(Gc(F(i) ?? ""));
12537
12546
  const a = Z(r, "when");
12538
12547
  for (const i of Array.from(a)) n.push(F(i));
12539
12548
  return {
@@ -12573,7 +12582,7 @@ function Kt(r) {
12573
12582
  coordinates: c
12574
12583
  });
12575
12584
  } else if (e[a] === "Track" || e[a] === "gx:Track") {
12576
- const u = Gc(t);
12585
+ const u = Hc(t);
12577
12586
  s.push({
12578
12587
  type: "LineString",
12579
12588
  coordinates: u.coords
@@ -12582,7 +12591,7 @@ function Kt(r) {
12582
12591
  }
12583
12592
  return { geoms: s, coordTimes: l };
12584
12593
  }
12585
- function Hc(r, e, t, n) {
12594
+ function Kc(r, e, t, n) {
12586
12595
  const a = Kt(r), i = {}, o = F(_(r, "name")), s = F(_(r, "address")), l = F(_(r, "description")), u = _(r, "TimeSpan"), c = _(r, "TimeStamp"), p = _(r, "ExtendedData"), f = _(r, "visibility");
12587
12596
  let d, h = F(_(r, "styleUrl")), m = _(r, "LineStyle"), g = _(r, "PolyStyle");
12588
12597
  if (!a.geoms.length) return [];
@@ -12647,7 +12656,7 @@ function lo(r, e) {
12647
12656
  };
12648
12657
  }
12649
12658
  }
12650
- function Kc(r) {
12659
+ function Zc(r) {
12651
12660
  const e = Z(r, "trkseg"), t = [], n = [], a = [];
12652
12661
  let i;
12653
12662
  for (let s = 0; s < e.length; s++)
@@ -12678,7 +12687,7 @@ function Kc(r) {
12678
12687
  }
12679
12688
  };
12680
12689
  }
12681
- function Zc(r) {
12690
+ function Xc(r) {
12682
12691
  const e = lo(r, "rtept");
12683
12692
  return e === void 0 ? void 0 : {
12684
12693
  type: "Feature",
@@ -12692,7 +12701,7 @@ function Zc(r) {
12692
12701
  }
12693
12702
  };
12694
12703
  }
12695
- function Xc(r) {
12704
+ function Wc(r) {
12696
12705
  return {
12697
12706
  type: "Feature",
12698
12707
  properties: { ...Fn(r), ...an(r, ["sym"]) },
@@ -12780,7 +12789,7 @@ function fo(r) {
12780
12789
  heartRate: n !== null ? Number.parseFloat(F(n) ?? "0") : null
12781
12790
  };
12782
12791
  }
12783
- function Wc(r) {
12792
+ function Jc(r) {
12784
12793
  let e = r;
12785
12794
  try {
12786
12795
  typeof e == "string" && (e = zn(e));
@@ -12797,8 +12806,8 @@ function Wc(r) {
12797
12806
  }
12798
12807
  return null;
12799
12808
  }
12800
- async function Jc(r, e = {}) {
12801
- const t = e.download ?? !1, n = await Qc(r);
12809
+ async function Qc(r, e = {}) {
12810
+ const t = e.download ?? !1, n = await ep(r);
12802
12811
  if (t) {
12803
12812
  const a = e.filename ?? "maptiler_screenshot.png", i = document.createElement("a");
12804
12813
  i.style.display = "none", document.body.appendChild(i), i.href = URL.createObjectURL(n), i.download = a, i.click(), setTimeout(() => {
@@ -12807,7 +12816,7 @@ async function Jc(r, e = {}) {
12807
12816
  }
12808
12817
  return n;
12809
12818
  }
12810
- function Qc(r) {
12819
+ function ep(r) {
12811
12820
  return new Promise((e, t) => {
12812
12821
  r.redraw(), r.once("idle", () => {
12813
12822
  r.getCanvas().toBlob((n) => {
@@ -12959,7 +12968,7 @@ function qt(r) {
12959
12968
  const e = r.toString(16);
12960
12969
  return e.length === 1 ? `0${e}` : e;
12961
12970
  }
12962
- function ep(r) {
12971
+ function tp(r) {
12963
12972
  return `#${qt(r[0])}${qt(r[1])}${qt(r[2])}${r.length === 4 ? qt(r[3]) : ""}`;
12964
12973
  }
12965
12974
  class T extends Array {
@@ -13053,7 +13062,7 @@ class T extends Array {
13053
13062
  smooth: !0,
13054
13063
  withAlpha: !1
13055
13064
  }) {
13056
- return ep(this.getColor(t, n));
13065
+ return tp(this.getColor(t, n));
13057
13066
  }
13058
13067
  /**
13059
13068
  * Get the color of the color ramp at a relative position in [0, 1]
@@ -13896,7 +13905,7 @@ const vo = {
13896
13905
  ]
13897
13906
  })
13898
13907
  };
13899
- async function tp(r, e, t = {}) {
13908
+ async function rp(r, e, t = {}) {
13900
13909
  var a, i;
13901
13910
  if (!e.sourceId && !e.data)
13902
13911
  throw new Error("Creating a polyline layer requires an existing .sourceId or a valid .data property");
@@ -13911,18 +13920,18 @@ async function tp(r, e, t = {}) {
13911
13920
  const s = await (await fetch(n, t)).text();
13912
13921
  n = so(s);
13913
13922
  } else {
13914
- const o = Qo(n) ?? Wc(n);
13923
+ const o = Qo(n) ?? Jc(n);
13915
13924
  o && (n = o);
13916
13925
  }
13917
13926
  if (!n)
13918
13927
  throw new Error("Polyline data was provided as string but is incompatible with valid formats.");
13919
13928
  }
13920
- return rp(r, {
13929
+ return np(r, {
13921
13930
  ...e,
13922
13931
  data: n
13923
13932
  });
13924
13933
  }
13925
- function rp(r, e) {
13934
+ function np(r, e) {
13926
13935
  if (e.layerId && r.getLayer(e.layerId))
13927
13936
  throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
13928
13937
  const t = e.sourceId ?? Pt(), n = e.layerId ?? Rt(), a = {
@@ -13988,7 +13997,7 @@ function rp(r, e) {
13988
13997
  e.beforeId
13989
13998
  ), a;
13990
13999
  }
13991
- function np(r, e) {
14000
+ function ap(r, e) {
13992
14001
  if (e.layerId && r.getLayer(e.layerId))
13993
14002
  throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
13994
14003
  const t = e.sourceId ?? Pt(), n = e.layerId ?? Rt(), a = {
@@ -14071,7 +14080,7 @@ function np(r, e) {
14071
14080
  console.error("Could not load the pattern image.", m.message), h();
14072
14081
  }) : h(), a;
14073
14082
  }
14074
- function ap(r, e) {
14083
+ function ip(r, e) {
14075
14084
  if (e.layerId && r.getLayer(e.layerId))
14076
14085
  throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
14077
14086
  const t = e.minPointRadius ?? 10, n = e.maxPointRadius ?? 50, a = e.cluster ?? !1, i = 20, o = Array.isArray(e.pointColor) ? e.pointColor : vo.TURBO.scale(10, e.cluster ? 1e4 : 1e3).resample("ease-out-square"), s = o.getBounds(), l = e.sourceId ?? Pt(), u = e.layerId ?? Rt(), c = e.showLabel ?? a, p = e.alignOnViewport ?? !0, f = e.outline ?? !1, d = e.outlineOpacity ?? 1, h = e.outlineWidth ?? 1, m = e.outlineColor ?? "#FFFFFF";
@@ -14171,12 +14180,12 @@ function ap(r, e) {
14171
14180
  { zoom: 16, value: t * 1 }
14172
14181
  ]) : t;
14173
14182
  if (e.property && Array.isArray(e.pointColor)) {
14174
- const N = Array.from({ length: i }, (le, Ye) => {
14175
- const We = s.min + Ye * (s.max - s.min) / (i - 1);
14183
+ const N = Array.from({ length: i }, (le, We) => {
14184
+ const Ye = s.min + We * (s.max - s.min) / (i - 1);
14176
14185
  return {
14177
- value: We,
14178
- pointRadius: typeof e.pointRadius == "number" ? e.pointRadius : t + (n - t) * (Ye / (i - 1)) ** 0.5,
14179
- color: typeof e.pointColor == "string" ? e.pointColor : o.getColorHex(We)
14186
+ value: Ye,
14187
+ pointRadius: typeof e.pointRadius == "number" ? e.pointRadius : t + (n - t) * (We / (i - 1)) ** 0.5,
14188
+ color: typeof e.pointColor == "string" ? e.pointColor : o.getColorHex(Ye)
14180
14189
  };
14181
14190
  });
14182
14191
  L = ln(N, e.property), A = un(N, e.property, b);
@@ -14238,7 +14247,7 @@ function ap(r, e) {
14238
14247
  }
14239
14248
  return C;
14240
14249
  }
14241
- function ip(r, e) {
14250
+ function op(r, e) {
14242
14251
  if (e.layerId && r.getLayer(e.layerId))
14243
14252
  throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
14244
14253
  const t = e.sourceId ?? Pt(), n = e.layerId ?? Rt(), a = e.minzoom ?? 0, i = e.maxzoom ?? 23, o = e.zoomCompensation ?? !0, s = e.opacity ?? [
@@ -14295,12 +14304,12 @@ function ip(r, e) {
14295
14304
  e.beforeId
14296
14305
  ), b;
14297
14306
  }
14298
- const cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14307
+ const pf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14299
14308
  __proto__: null,
14300
- addHeatmap: ip,
14301
- addPoint: ap,
14302
- addPolygon: np,
14303
- addPolyline: tp,
14309
+ addHeatmap: op,
14310
+ addPoint: ip,
14311
+ addPolygon: ap,
14312
+ addPolyline: rp,
14304
14313
  colorDrivenByProperty: ln,
14305
14314
  colorPalettes: on,
14306
14315
  computeRampedOutlineWidth: ho,
@@ -14316,9 +14325,9 @@ const cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14316
14325
  radiusDrivenByPropertyHeatmap: yo,
14317
14326
  rampedOptionsToLayerPaintSpec: z,
14318
14327
  rampedPropertyValueWeight: mo,
14319
- takeScreenshot: Jc
14328
+ takeScreenshot: Qc
14320
14329
  }, Symbol.toStringTag, { value: "Module" }));
14321
- function op(...r) {
14330
+ function sp(...r) {
14322
14331
  const e = r[0].length;
14323
14332
  return r.every((t) => t.length === e);
14324
14333
  }
@@ -14333,7 +14342,7 @@ function bo(r) {
14333
14342
  return r.map((e, t, n) => {
14334
14343
  if (typeof e == "number")
14335
14344
  return e;
14336
- const [a, i] = lp(n, t), [o, s] = sp(n, t);
14345
+ const [a, i] = up(n, t), [o, s] = lp(n, t);
14337
14346
  if (a === null || i === null)
14338
14347
  return n[t + 1];
14339
14348
  if (o === null || s === null)
@@ -14342,28 +14351,28 @@ function bo(r) {
14342
14351
  return ar(i, s, l);
14343
14352
  });
14344
14353
  }
14345
- function sp(r, e) {
14354
+ function lp(r, e) {
14346
14355
  for (let t = e + 1; t < r.length; t++)
14347
14356
  if (r[t] !== null)
14348
14357
  return [t, r[t]];
14349
14358
  return [null, null];
14350
14359
  }
14351
- function lp(r, e) {
14360
+ function up(r, e) {
14352
14361
  for (let t = e - 1; t >= 0; t--)
14353
14362
  if (r[t] !== null)
14354
14363
  return [t, r[t]];
14355
14364
  return [null, null];
14356
14365
  }
14357
- const up = {
14366
+ const cp = {
14358
14367
  defaultEasing: "Linear",
14359
14368
  pathSmoothing: {
14360
14369
  resolution: 20,
14361
14370
  epsilon: 5
14362
14371
  }
14363
14372
  }, Ba = ["MultiPoint", "LineString", "MultiLineString", "Polygon"];
14364
- function cp(r, e = {}) {
14373
+ function pp(r, e = {}) {
14365
14374
  const { defaultEasing: t, pathSmoothing: n, ignoreFields: a } = {
14366
- ...up,
14375
+ ...cp,
14367
14376
  ...e
14368
14377
  }, i = r.geometry, o = r.properties ?? {}, s = o["@easing"];
14369
14378
  s || console.warn(`[parseGeoJSONFeatureToKeyframes]: No '@easing' property found in GeoJSON properties, using default easing ${t}`);
@@ -14380,7 +14389,7 @@ function cp(r, e = {}) {
14380
14389
  [b]: v
14381
14390
  }, {}), h = l ?? c.map((g, b) => b / c.length), m = s ?? h.map(() => t ?? "Linear");
14382
14391
  if (c.some((g) => g.length > 2) && console.warn("[parseGeoJSONFeatureToKeyframes]: Smoothing is not supported for 3D paths, only 2D smoothing will be applied, ignoring altitude"), n) {
14383
- const g = pp(c, n.resolution, n.epsilon), b = bo(qa([0, 1], g.length)), v = b.map(() => t ?? "Linear"), x = Object.entries(d).reduce((C, [L, A]) => {
14392
+ const g = fp(c, n.resolution, n.epsilon), b = bo(qa([0, 1], g.length)), v = b.map(() => t ?? "Linear"), x = Object.entries(d).reduce((C, [L, A]) => {
14384
14393
  if (!Array.isArray(A))
14385
14394
  return C;
14386
14395
  const N = g.length, le = qa(A, N);
@@ -14401,7 +14410,7 @@ function qa(r, e) {
14401
14410
  return Array.from({ length: e }, (n, a) => t.includes(a) ? r[t.indexOf(a)] : null);
14402
14411
  }
14403
14412
  function Va(r, e, t, n = {}) {
14404
- if (!op(r, e, t, ...Object.values(n)))
14413
+ if (!sp(r, e, t, ...Object.values(n)))
14405
14414
  throw new Error(`
14406
14415
  [parseGeoJSONFeatureToKeyframes]: If smoothing is not applied, coordinates, deltas, easings and property arrays must be the same length
14407
14416
 
@@ -14440,8 +14449,8 @@ function Br(r, e, t, n, a, i, o, s) {
14440
14449
  const f = (1 - s) ** 3 * t[0] + 3 * (1 - s) ** 2 * s * l[0] + 3 * (1 - s) * s ** 2 * u[0] + s ** 3 * n[0], d = (1 - s) ** 3 * t[1] + 3 * (1 - s) ** 2 * s * l[1] + 3 * (1 - s) * s ** 2 * u[1] + s ** 3 * n[1];
14441
14450
  s - p > 1e-10 ? r.push([f, d]) : r[r.length - 1] = [f, d];
14442
14451
  }
14443
- function pp(r, e = 20, t) {
14444
- const n = typeof t == "number" ? dp(r, t) : r;
14452
+ function fp(r, e = 20, t) {
14453
+ const n = typeof t == "number" ? hp(r, t) : r;
14445
14454
  if (n.length < 4) return n;
14446
14455
  typeof t == "number" && (n[n.length - 1] = [...r[r.length - 1]]);
14447
14456
  const a = [], i = [2 * n[0][0] - n[1][0], 2 * n[0][1] - n[1][1]];
@@ -14454,15 +14463,15 @@ function pp(r, e = 20, t) {
14454
14463
  const s = [2 * n[n.length - 1][0] - n[n.length - 2][0], 2 * n[n.length - 1][1] - n[n.length - 2][1]];
14455
14464
  return Br(a, n[n.length - 3], n[n.length - 2], n[n.length - 1], s, e, o, 1), a;
14456
14465
  }
14457
- function fp(r) {
14466
+ function dp(r) {
14458
14467
  return r.map((e, t) => {
14459
14468
  if (t === 0) return 0;
14460
14469
  const n = r[t - 1], a = new Ne(e[0], e[1]), i = new Ne(n[0], n[1]);
14461
14470
  return a.distanceTo(i);
14462
14471
  }).reduce((e, t) => e + t, 0) / r.length;
14463
14472
  }
14464
- function dp(r, e) {
14465
- const t = hp(r, fp(r) * e);
14473
+ function hp(r, e) {
14474
+ const t = mp(r, dp(r) * e);
14466
14475
  if (t.length < 2) return t;
14467
14476
  const n = [t[0]];
14468
14477
  let a = t[0];
@@ -14472,7 +14481,7 @@ function dp(r, e) {
14472
14481
  }
14473
14482
  return n.push([...r[r.length - 1]]), n;
14474
14483
  }
14475
- function hp(r, e = 10) {
14484
+ function mp(r, e = 10) {
14476
14485
  if (r.length < 2) return r;
14477
14486
  const t = [r[0]];
14478
14487
  let n = e;
@@ -14545,84 +14554,84 @@ const Ga = {
14545
14554
  "animationend",
14546
14555
  "keyframe",
14547
14556
  "iteration"
14548
- ], mp = {
14549
- Linear: yp,
14550
- QuadraticIn: gp,
14551
- QuadraticOut: vp,
14552
- QuadraticInOut: bp,
14553
- CubicIn: wp,
14554
- CubicOut: Sp,
14555
- CubicInOut: xp,
14556
- SinusoidalIn: kp,
14557
- SinusoidalOut: Ep,
14558
- SinusoidalInOut: Lp,
14559
- ExponentialIn: Cp,
14560
- ExponentialOut: Ap,
14561
- ExponentialInOut: Tp,
14562
- ElasticIn: Ip,
14563
- ElasticOut: _p,
14564
- ElasticInOut: Mp,
14557
+ ], yp = {
14558
+ Linear: gp,
14559
+ QuadraticIn: vp,
14560
+ QuadraticOut: bp,
14561
+ QuadraticInOut: wp,
14562
+ CubicIn: Sp,
14563
+ CubicOut: xp,
14564
+ CubicInOut: kp,
14565
+ SinusoidalIn: Ep,
14566
+ SinusoidalOut: Lp,
14567
+ SinusoidalInOut: Cp,
14568
+ ExponentialIn: Ap,
14569
+ ExponentialOut: Tp,
14570
+ ExponentialInOut: Ip,
14571
+ ElasticIn: _p,
14572
+ ElasticOut: Mp,
14573
+ ElasticInOut: Pp,
14565
14574
  BounceIn: wo,
14566
14575
  BounceOut: Nn,
14567
- BounceInOut: Pp
14576
+ BounceInOut: Rp
14568
14577
  };
14569
- function yp(r) {
14578
+ function gp(r) {
14570
14579
  return r;
14571
14580
  }
14572
- function gp(r) {
14581
+ function vp(r) {
14573
14582
  return r * r;
14574
14583
  }
14575
- function vp(r) {
14584
+ function bp(r) {
14576
14585
  return r * (2 - r);
14577
14586
  }
14578
- function bp(r) {
14587
+ function wp(r) {
14579
14588
  let e = r * 2;
14580
14589
  return e < 1 ? 0.5 * e * e : (e -= 1, -0.5 * (e * (e - 2) - 1));
14581
14590
  }
14582
- function wp(r) {
14591
+ function Sp(r) {
14583
14592
  return r * r * r;
14584
14593
  }
14585
- function Sp(r) {
14594
+ function xp(r) {
14586
14595
  return --r * r * r + 1;
14587
14596
  }
14588
- function xp(r) {
14597
+ function kp(r) {
14589
14598
  let e = r * 2;
14590
14599
  return e < 1 ? 0.5 * e * e * e : (e -= 2, 0.5 * (e * e * e + 2));
14591
14600
  }
14592
- function kp(r) {
14601
+ function Ep(r) {
14593
14602
  return 1 - Math.cos(r * Math.PI / 2);
14594
14603
  }
14595
- function Ep(r) {
14604
+ function Lp(r) {
14596
14605
  return Math.sin(r * Math.PI / 2);
14597
14606
  }
14598
- function Lp(r) {
14607
+ function Cp(r) {
14599
14608
  return 0.5 * (1 - Math.cos(Math.PI * r));
14600
14609
  }
14601
- function Cp(r) {
14610
+ function Ap(r) {
14602
14611
  return r === 0 ? 0 : 1024 ** (r - 1);
14603
14612
  }
14604
- function Ap(r) {
14613
+ function Tp(r) {
14605
14614
  return r === 1 ? 1 : 1 - 2 ** (-10 * r);
14606
14615
  }
14607
- function Tp(r) {
14616
+ function Ip(r) {
14608
14617
  if (r === 0) return 0;
14609
14618
  if (r === 1) return 1;
14610
14619
  const e = r * 2;
14611
14620
  return e < 1 ? 0.5 * 1024 ** (e - 1) : 0.5 * (-(2 ** (-10 * (e - 1))) + 2);
14612
14621
  }
14613
- function Ip(r) {
14622
+ function _p(r) {
14614
14623
  let e = 0.1;
14615
14624
  const t = 0.4;
14616
14625
  let n;
14617
14626
  return r === 0 ? 0 : r === 1 ? 1 : (e < 1 ? (e = 1, n = t / 4) : n = t * Math.asin(1 / e) / (2 * Math.PI), r -= 1, -(e * 2 ** (10 * r) * Math.sin((r - n) * (2 * Math.PI) / t)));
14618
14627
  }
14619
- function _p(r) {
14628
+ function Mp(r) {
14620
14629
  let e = 0.1;
14621
14630
  const t = 0.4;
14622
14631
  let n;
14623
14632
  return r === 0 ? 0 : r === 1 ? 1 : (e < 1 ? (e = 1, n = t / 4) : n = t * Math.asin(1 / e) / (2 * Math.PI), e * 2 ** (-10 * r) * Math.sin((r - n) * (2 * Math.PI) / t) + 1);
14624
14633
  }
14625
- function Mp(r) {
14634
+ function Pp(r) {
14626
14635
  let e = 0.1;
14627
14636
  const t = 0.4;
14628
14637
  let n;
@@ -14653,7 +14662,7 @@ function Nn(r) {
14653
14662
  const e = r - 2.625 / 2.75;
14654
14663
  return 7.5625 * e * e + 0.984375;
14655
14664
  }
14656
- function Pp(r) {
14665
+ function Rp(r) {
14657
14666
  return r < 0.5 ? wo(r * 2) * 0.5 : Nn(r * 2 - 1) * 0.5 + 0.5;
14658
14667
  }
14659
14668
  class jn {
@@ -14800,7 +14809,7 @@ class jn {
14800
14809
  (o == null ? void 0 : o.id) !== this.currentKeyframe && this.emitEvent("keyframe", o, i), this.currentKeyframe = o == null ? void 0 : o.id;
14801
14810
  const s = Object.keys((o == null ? void 0 : o.props) ?? {}).reduce((l, u) => {
14802
14811
  if (o && i) {
14803
- const c = o.props[u], p = i.props[u], f = (this.currentDelta - o.delta) / (i.delta - o.delta), h = (mp[o.easing] ?? ((m) => m))(f);
14812
+ const c = o.props[u], p = i.props[u], f = (this.currentDelta - o.delta) / (i.delta - o.delta), h = (yp[o.easing] ?? ((m) => m))(f);
14804
14813
  l[u] = ar(c, p, h);
14805
14814
  }
14806
14815
  return o && !i && (l[u] = o.props[u]), l;
@@ -14936,7 +14945,7 @@ class jn {
14936
14945
  }
14937
14946
  }
14938
14947
  const Ha = "animated-route-layer";
14939
- class pf {
14948
+ class ff {
14940
14949
  constructor({
14941
14950
  keyframes: e,
14942
14951
  source: t,
@@ -14953,7 +14962,7 @@ class pf {
14953
14962
  manualUpdate: c = !1
14954
14963
  }) {
14955
14964
  /** Unique ID for the layer */
14956
- y(this, "id", `${Ha}-${Ya()}`);
14965
+ y(this, "id", `${Ha}-${Wa()}`);
14957
14966
  y(this, "type", "custom");
14958
14967
  /** The MaptilerAnimation instance that handles the animation */
14959
14968
  y(this, "animationInstance", null);
@@ -15137,7 +15146,7 @@ class pf {
15137
15146
  throw new Error("[AnimatedRouteLayer.onAdd]: The first feature in the source data is not a valid GeoJSON of type `Feature`");
15138
15147
  const a = n;
15139
15148
  a.properties["@duration"] && (this.duration = a.properties["@duration"] ?? 1e3), a.properties["@iterations"] && (this.iterations = a.properties["@iterations"] ?? 0), a.properties["@delay"] && (this.delay = a.properties["@delay"] ?? 0), a.properties["@autoplay"] && (this.autoplay = a.properties["@autoplay"] ?? !1);
15140
- const i = cp(a, {
15149
+ const i = pp(a, {
15141
15150
  pathSmoothing: this.cameraMaptilerAnimationOptions ? this.cameraMaptilerAnimationOptions.pathSmoothing : !1,
15142
15151
  defaultEasing: this.easing
15143
15152
  }), o = this.duration, s = this.iterations, l = this.delay, u = this.autoplay;
@@ -15176,193 +15185,193 @@ class pf {
15176
15185
  }
15177
15186
  }
15178
15187
  function So() {
15179
- return "4.0.1";
15188
+ return "4.0.2-rc.1";
15180
15189
  }
15181
- const ff = k.Map, df = k.Marker, hf = k.Popup, mf = k.Style, yf = k.CanvasSource, gf = k.GeoJSONSource, vf = k.ImageSource, bf = k.RasterTileSource, wf = k.RasterDEMTileSource, Sf = k.VectorTileSource, xf = k.VideoSource, kf = k.NavigationControl, Ef = k.GeolocateControl, Lf = k.AttributionControl, Cf = k.LogoControl, Af = k.ScaleControl, Tf = k.FullscreenControl, If = k.TerrainControl, _f = k.BoxZoomHandler, Mf = k.ScrollZoomHandler, Pf = k.CooperativeGesturesHandler, Rf = k.KeyboardHandler, Of = k.TwoFingersTouchPitchHandler, zf = k.MapWheelEvent, Ff = k.MapTouchEvent, $f = k.MapMouseEvent, Nf = k.config, jf = k.getVersion, {
15182
- setRTLTextPlugin: Df,
15183
- getRTLTextPluginStatus: Uf,
15190
+ const df = k.Map, hf = k.Marker, mf = k.Popup, yf = k.Style, gf = k.CanvasSource, vf = k.GeoJSONSource, bf = k.ImageSource, wf = k.RasterTileSource, Sf = k.RasterDEMTileSource, xf = k.VectorTileSource, kf = k.VideoSource, Ef = k.NavigationControl, Lf = k.GeolocateControl, Cf = k.AttributionControl, Af = k.LogoControl, Tf = k.ScaleControl, If = k.FullscreenControl, _f = k.TerrainControl, Mf = k.BoxZoomHandler, Pf = k.ScrollZoomHandler, Rf = k.CooperativeGesturesHandler, Of = k.KeyboardHandler, zf = k.TwoFingersTouchPitchHandler, Ff = k.MapWheelEvent, $f = k.MapTouchEvent, Nf = k.MapMouseEvent, jf = k.config, Df = k.getVersion, {
15191
+ setRTLTextPlugin: Uf,
15192
+ getRTLTextPluginStatus: Bf,
15184
15193
  LngLat: Ne,
15185
- LngLatBounds: Rp,
15194
+ LngLatBounds: Op,
15186
15195
  MercatorCoordinate: fn,
15187
- Evented: Bf,
15188
- AJAXError: qf,
15189
- prewarm: Vf,
15190
- clearPrewarmedResources: Gf,
15191
- Hash: Hf,
15196
+ Evented: qf,
15197
+ AJAXError: Vf,
15198
+ prewarm: Gf,
15199
+ clearPrewarmedResources: Hf,
15200
+ Hash: Kf,
15192
15201
  Point: xo,
15193
- EdgeInsets: Kf,
15194
- DragRotateHandler: Zf,
15195
- DragPanHandler: Xf,
15202
+ EdgeInsets: Zf,
15203
+ DragRotateHandler: Xf,
15204
+ DragPanHandler: Wf,
15196
15205
  TwoFingersTouchZoomRotateHandler: Yf,
15197
- DoubleClickZoomHandler: Wf,
15198
- TwoFingersTouchZoomHandler: Jf,
15199
- TwoFingersTouchRotateHandler: Qf,
15200
- getWorkerCount: ed,
15201
- setWorkerCount: td,
15202
- getMaxParallelImageRequests: rd,
15203
- setMaxParallelImageRequests: nd,
15204
- getWorkerUrl: ad,
15205
- setWorkerUrl: id,
15206
- addSourceType: od,
15207
- importScriptInWorkers: sd,
15208
- addProtocol: ld,
15209
- removeProtocol: ud
15206
+ DoubleClickZoomHandler: Jf,
15207
+ TwoFingersTouchZoomHandler: Qf,
15208
+ TwoFingersTouchRotateHandler: ed,
15209
+ getWorkerCount: td,
15210
+ setWorkerCount: rd,
15211
+ getMaxParallelImageRequests: nd,
15212
+ setMaxParallelImageRequests: ad,
15213
+ getWorkerUrl: id,
15214
+ setWorkerUrl: od,
15215
+ addSourceType: sd,
15216
+ importScriptInWorkers: ld,
15217
+ addProtocol: ud,
15218
+ removeProtocol: cd
15210
15219
  } = k;
15211
15220
  export {
15212
- qf as AJAXError,
15221
+ Vf as AJAXError,
15213
15222
  Ha as ANIM_LAYER_PREFIX,
15214
- pf as AnimatedRouteLayer,
15223
+ ff as AnimatedRouteLayer,
15215
15224
  Yp as AttributionControl,
15216
- Lf as AttributionControlMLGL,
15217
- Jp as BoxZoomHandler,
15218
- _f as BoxZoomHandlerMLGL,
15219
- qp as CanvasSource,
15220
- yf as CanvasSourceMLGL,
15225
+ Cf as AttributionControlMLGL,
15226
+ Qp as BoxZoomHandler,
15227
+ Mf as BoxZoomHandlerMLGL,
15228
+ Vp as CanvasSource,
15229
+ gf as CanvasSourceMLGL,
15221
15230
  T as ColorRamp,
15222
15231
  vo as ColorRampCollection,
15223
- ef as CooperativeGesturesHandler,
15224
- Pf as CooperativeGesturesHandlerMLGL,
15232
+ tf as CooperativeGesturesHandler,
15233
+ Rf as CooperativeGesturesHandlerMLGL,
15225
15234
  Ue as CubemapFaceNames,
15226
- ac as CubemapImagesPresets,
15235
+ ic as CubemapImagesPresets,
15227
15236
  Nt as CubemapLayer,
15228
15237
  Le as DOMcreate,
15229
15238
  Lt as DOMremove,
15230
- Wf as DoubleClickZoomHandler,
15231
- Xf as DragPanHandler,
15232
- Zf as DragRotateHandler,
15233
- Kf as EdgeInsets,
15234
- Bf as Evented,
15239
+ Jf as DoubleClickZoomHandler,
15240
+ Wf as DragPanHandler,
15241
+ Xf as DragRotateHandler,
15242
+ Zf as EdgeInsets,
15243
+ qf as Evented,
15235
15244
  qo as FullscreenControl,
15236
- Tf as FullscreenControlMLGL,
15237
- Vp as GeoJSONSource,
15238
- gf as GeoJSONSourceMLGL,
15245
+ If as FullscreenControlMLGL,
15246
+ Gp as GeoJSONSource,
15247
+ vf as GeoJSONSourceMLGL,
15239
15248
  Do as GeolocateControl,
15240
- Ef as GeolocateControlMLGL,
15241
- wc as GeolocationType,
15242
- Hf as Hash,
15243
- Gp as ImageSource,
15244
- vf as ImageSourceMLGL,
15245
- Fc as ImageViewer,
15249
+ Lf as GeolocateControlMLGL,
15250
+ Sc as GeolocationType,
15251
+ Kf as Hash,
15252
+ Hp as ImageSource,
15253
+ bf as ImageSourceMLGL,
15254
+ $c as ImageViewer,
15246
15255
  ae as ImageViewerEvent,
15247
- uf as ImageViewerMarker,
15248
- Bc as ImageViewerMarkerEvent,
15249
- tf as KeyboardHandler,
15250
- Rf as KeyboardHandlerMLGL,
15256
+ cf as ImageViewerMarker,
15257
+ qc as ImageViewerMarkerEvent,
15258
+ rf as KeyboardHandler,
15259
+ Of as KeyboardHandlerMLGL,
15251
15260
  O as Language,
15252
15261
  Ne as LngLat,
15253
- Rp as LngLatBounds,
15262
+ Op as LngLatBounds,
15254
15263
  Uo as LogoControl,
15255
- Cf as LogoControlMLGL,
15264
+ Af as LogoControlMLGL,
15256
15265
  Gi as Map,
15257
- ff as MapMLGL,
15258
- of as MapMouseEvent,
15259
- $f as MapMouseEventMLGL,
15260
- fd as MapStyle,
15261
- dd as MapStyleVariant,
15262
- af as MapTouchEvent,
15263
- Ff as MapTouchEventMLGL,
15264
- nf as MapWheelEvent,
15265
- zf as MapWheelEventMLGL,
15266
+ df as MapMLGL,
15267
+ sf as MapMouseEvent,
15268
+ Nf as MapMouseEventMLGL,
15269
+ dd as MapStyle,
15270
+ hd as MapStyleVariant,
15271
+ of as MapTouchEvent,
15272
+ $f as MapTouchEventMLGL,
15273
+ af as MapWheelEvent,
15274
+ Ff as MapWheelEventMLGL,
15266
15275
  jn as MaptilerAnimation,
15267
- _u as MaptilerCustomControl,
15276
+ Mu as MaptilerCustomControl,
15268
15277
  en as MaptilerExternalControl,
15269
- Iu as MaptilerGeolocateControl,
15278
+ _u as MaptilerGeolocateControl,
15270
15279
  Gn as MaptilerLogoControl,
15271
- Au as MaptilerNavigationControl,
15272
- Mu as MaptilerProjectionControl,
15273
- Cu as MaptilerTerrainControl,
15280
+ Tu as MaptilerNavigationControl,
15281
+ Pu as MaptilerProjectionControl,
15282
+ Au as MaptilerTerrainControl,
15274
15283
  jo as Marker,
15275
- df as MarkerMLGL,
15284
+ hf as MarkerMLGL,
15276
15285
  fn as MercatorCoordinate,
15277
- kf as NavigationControMLGL,
15278
- Wa as NavigationControl,
15286
+ Ef as NavigationControMLGL,
15287
+ Ya as NavigationControl,
15279
15288
  xo as Point,
15280
- Up as Popup,
15281
- hf as PopupMLGL,
15289
+ Bp as Popup,
15290
+ mf as PopupMLGL,
15282
15291
  Ut as RadialGradientLayer,
15283
- Kp as RasterDEMTileSource,
15284
- wf as RasterDEMTileSourceMLGL,
15285
- Hp as RasterTileSource,
15286
- bf as RasterTileSourceMLGL,
15287
- hd as ReferenceMapStyle,
15292
+ Zp as RasterDEMTileSource,
15293
+ Sf as RasterDEMTileSourceMLGL,
15294
+ Kp as RasterTileSource,
15295
+ wf as RasterTileSourceMLGL,
15296
+ md as ReferenceMapStyle,
15288
15297
  Bo as ScaleControl,
15289
- Af as ScaleControlMLGL,
15290
- Qp as ScrollZoomHandler,
15291
- Mf as ScrollZoomHandlerMLGL,
15298
+ Tf as ScaleControlMLGL,
15299
+ ef as ScrollZoomHandler,
15300
+ Pf as ScrollZoomHandlerMLGL,
15292
15301
  Vo as SdkConfig,
15293
- md as ServiceError,
15294
- Bp as Style,
15295
- mf as StyleMLGL,
15296
- If as TerrainControMLGL,
15297
- Wp as TerrainControl,
15298
- rf as TwoFingersTouchPitchHandler,
15299
- Of as TwoFingersTouchPitchHandlerMLGL,
15300
- Qf as TwoFingersTouchRotateHandler,
15301
- Jf as TwoFingersTouchZoomHandler,
15302
+ yd as ServiceError,
15303
+ qp as Style,
15304
+ yf as StyleMLGL,
15305
+ _f as TerrainControMLGL,
15306
+ Jp as TerrainControl,
15307
+ nf as TwoFingersTouchPitchHandler,
15308
+ zf as TwoFingersTouchPitchHandlerMLGL,
15309
+ ed as TwoFingersTouchRotateHandler,
15310
+ Qf as TwoFingersTouchZoomHandler,
15302
15311
  Yf as TwoFingersTouchZoomRotateHandler,
15303
- Zp as VectorTileSource,
15304
- Sf as VectorTileSourceMLGL,
15305
- Xp as VideoSource,
15306
- xf as VideoSourceMLGL,
15307
- ld as addProtocol,
15308
- od as addSourceType,
15309
- yd as areSameLanguages,
15310
- gd as bufferToPixelDataBrowser,
15311
- vd as canParsePixelData,
15312
- bd as circumferenceAtLatitude,
15313
- Gf as clearPrewarmedResources,
15312
+ Xp as VectorTileSource,
15313
+ xf as VectorTileSourceMLGL,
15314
+ Wp as VideoSource,
15315
+ kf as VideoSourceMLGL,
15316
+ ud as addProtocol,
15317
+ sd as addSourceType,
15318
+ gd as areSameLanguages,
15319
+ vd as bufferToPixelDataBrowser,
15320
+ bd as canParsePixelData,
15321
+ wd as circumferenceAtLatitude,
15322
+ Hf as clearPrewarmedResources,
15314
15323
  j as config,
15315
- Nf as configMLGL,
15316
- wd as coordinates,
15317
- pp as createBezierPathFromCoordinates,
15324
+ jf as configMLGL,
15325
+ Sd as coordinates,
15326
+ fp as createBezierPathFromCoordinates,
15318
15327
  ze as cubemapPresets,
15319
- Sd as data,
15320
- sf as displayWebGLContextLostWarning,
15321
- xd as elevation,
15322
- kd as expandMapStyle,
15323
- lf as geocoding,
15324
- Ed as geolocation,
15325
- Ld as getAutoLanguage,
15326
- fp as getAverageDistance,
15328
+ xd as data,
15329
+ lf as displayWebGLContextLostWarning,
15330
+ kd as elevation,
15331
+ Ed as expandMapStyle,
15332
+ uf as geocoding,
15333
+ Ld as geolocation,
15334
+ Cd as getAutoLanguage,
15335
+ dp as getAverageDistance,
15327
15336
  Vn as getBrowserLanguage,
15328
- Cd as getBufferToPixelDataParser,
15329
- Ad as getLanguageInfoFromCode,
15330
- Td as getLanguageInfoFromFlag,
15331
- Id as getLanguageInfoFromKey,
15332
- jf as getMapLibreVersion,
15333
- rd as getMaxParallelImageRequests,
15334
- Uf as getRTLTextPluginStatus,
15335
- _d as getTileCache,
15337
+ Ad as getBufferToPixelDataParser,
15338
+ Td as getLanguageInfoFromCode,
15339
+ Id as getLanguageInfoFromFlag,
15340
+ _d as getLanguageInfoFromKey,
15341
+ Df as getMapLibreVersion,
15342
+ nd as getMaxParallelImageRequests,
15343
+ Bf as getRTLTextPluginStatus,
15344
+ Md as getTileCache,
15336
15345
  So as getVersion,
15337
- es as getWebGLSupportError,
15338
- ed as getWorkerCount,
15339
- ad as getWorkerUrl,
15346
+ ts as getWebGLSupportError,
15347
+ td as getWorkerCount,
15348
+ id as getWorkerUrl,
15340
15349
  oo as gpx,
15341
- Wc as gpxOrKml,
15350
+ Jc as gpxOrKml,
15342
15351
  io as hasChildNodeWithName,
15343
- cf as helpers,
15344
- sd as importScriptInWorkers,
15345
- Md as isLanguageInfo,
15352
+ pf as helpers,
15353
+ ld as importScriptInWorkers,
15354
+ Pd as isLanguageInfo,
15346
15355
  so as kml,
15347
15356
  ar as lerp,
15348
15357
  bo as lerpArrayValues,
15349
- Pd as mapStylePresetList,
15350
- Rd as math,
15351
- Od as misc,
15352
- cp as parseGeoJSONFeatureToKeyframes,
15353
- Vf as prewarm,
15354
- ud as removeProtocol,
15355
- hp as resamplePath,
15356
- nd as setMaxParallelImageRequests,
15357
- Df as setRTLTextPlugin,
15358
- td as setWorkerCount,
15359
- id as setWorkerUrl,
15360
- dp as simplifyPath,
15361
- zd as staticMaps,
15358
+ Rd as mapStylePresetList,
15359
+ Od as math,
15360
+ zd as misc,
15361
+ pp as parseGeoJSONFeatureToKeyframes,
15362
+ Gf as prewarm,
15363
+ cd as removeProtocol,
15364
+ mp as resamplePath,
15365
+ ad as setMaxParallelImageRequests,
15366
+ Uf as setRTLTextPlugin,
15367
+ rd as setWorkerCount,
15368
+ od as setWorkerUrl,
15369
+ hp as simplifyPath,
15370
+ Fd as staticMaps,
15362
15371
  zn as str2xml,
15363
15372
  qa as stretchNumericalArray,
15364
- Fd as styleToStyle,
15365
- $d as toLanguageInfo,
15373
+ $d as styleToStyle,
15374
+ Nd as toLanguageInfo,
15366
15375
  Di as toggleProjection,
15367
15376
  ji as toggleTerrain,
15368
15377
  $a as xml2str