@opengis/bi 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/bi.js +1 -1
  2. package/dist/bi.umd.cjs +109 -106
  3. package/dist/{import-file-C8BY90-b.js → import-file-DgBd_UN1.js} +20484 -18794
  4. package/dist/{map-component-mixin-CFtShPun.js → map-component-mixin-NewmNy_M.js} +502 -483
  5. package/dist/style.css +1 -1
  6. package/dist/{vs-calendar-B9vXdsaG.js → vs-calendar-CPXj4hBh.js} +1 -1
  7. package/dist/vs-donut-CUmi2ir5.js +148 -0
  8. package/dist/{vs-funnel-bar-Cj0O8tIf.js → vs-funnel-bar-B3DpbtUl.js} +1 -1
  9. package/dist/{vs-heatmap-C9oFph_f.js → vs-heatmap-COwT3bHE.js} +1 -1
  10. package/dist/{vs-map-WOn0RAU7.js → vs-map-DwyQHLpN.js} +2 -2
  11. package/dist/{vs-map-cluster-RJa6sNfI.js → vs-map-cluster-CnZ9g6k-.js} +2 -2
  12. package/dist/{vs-number-BG0szZL-.js → vs-number-LwROg9Oe.js} +5 -5
  13. package/dist/vs-table-Dt_MSaCC.js +68 -0
  14. package/dist/{vs-text-Kwl3-0yy.js → vs-text-DgAf3Ids.js} +2 -2
  15. package/package.json +6 -5
  16. package/plugin.js +1 -1
  17. package/server/helpers/mdToHTML.js +17 -0
  18. package/server/migrations/bi.dataset.sql +13 -0
  19. package/server/migrations/bi.sql +2 -0
  20. package/server/routes/dashboard/controllers/dashboard.js +10 -11
  21. package/server/routes/dashboard/controllers/dashboard.list.js +6 -6
  22. package/server/routes/data/controllers/data.js +14 -6
  23. package/server/routes/data/controllers/util/chartSQL.js +6 -3
  24. package/server/routes/dataset/controllers/bi.dataset.list.js +3 -1
  25. package/server/routes/dataset/controllers/comment.js +55 -0
  26. package/server/routes/dataset/controllers/createDatasetPost.js +132 -0
  27. package/server/routes/dataset/controllers/data.js +145 -0
  28. package/server/routes/{db → dataset}/controllers/dbTablePreview.js +17 -24
  29. package/server/routes/{db → dataset}/controllers/dbTables.js +7 -11
  30. package/server/routes/dataset/controllers/delete.js +39 -0
  31. package/server/routes/dataset/controllers/{bi.dataset.edit.js → editDataset.js} +32 -26
  32. package/server/routes/dataset/controllers/export.js +213 -0
  33. package/server/routes/dataset/controllers/form.js +99 -0
  34. package/server/routes/dataset/controllers/format.js +44 -0
  35. package/server/routes/dataset/controllers/insert.js +46 -0
  36. package/server/routes/dataset/controllers/table.js +69 -0
  37. package/server/routes/dataset/controllers/update.js +42 -0
  38. package/server/routes/dataset/index.mjs +88 -43
  39. package/server/routes/dataset/utils/convertJSONToCSV.js +17 -0
  40. package/server/routes/dataset/utils/convertJSONToXls.js +49 -0
  41. package/server/routes/dataset/utils/createTableQuery.js +59 -0
  42. package/server/routes/dataset/utils/datasetForms.js +1 -0
  43. package/server/routes/dataset/utils/descriptionList.js +46 -0
  44. package/server/routes/dataset/utils/downloadRemoteFile.js +58 -0
  45. package/server/routes/dataset/utils/executeQuery.js +46 -0
  46. package/server/routes/dataset/utils/getLayersData.js +107 -0
  47. package/server/routes/dataset/utils/getTableData.js +47 -0
  48. package/server/routes/dataset/utils/insertDataQuery.js +12 -0
  49. package/server/routes/dataset/utils/metaFormat.js +24 -0
  50. package/server/routes/edit/controllers/dashboard.add.js +3 -3
  51. package/server/routes/edit/controllers/widget.add.js +8 -3
  52. package/server/routes/edit/controllers/widget.edit.js +23 -5
  53. package/server/routes/map/controllers/cluster.js +41 -41
  54. package/server/routes/map/controllers/clusterVtile.js +5 -5
  55. package/server/routes/map/controllers/geojson.js +6 -6
  56. package/server/routes/map/controllers/heatmap.js +118 -0
  57. package/server/routes/map/controllers/map.js +3 -3
  58. package/server/routes/map/controllers/utils/downloadClusterData.js +6 -4
  59. package/server/routes/map/controllers/vtile.js +3 -3
  60. package/server/routes/map/index.mjs +2 -0
  61. package/server/utils/getWidget.js +10 -6
  62. package/server/routes/dataset/controllers/bi.dataset.add.js +0 -86
  63. package/server/routes/dataset/controllers/bi.dataset.data.add.js +0 -49
  64. package/server/routes/dataset/controllers/bi.dataset.data.del.js +0 -54
  65. package/server/routes/dataset/controllers/bi.dataset.data.edit.js +0 -55
  66. package/server/routes/dataset/controllers/bi.dataset.data.list.js +0 -71
  67. package/server/routes/dataset/controllers/bi.dataset.del.js +0 -48
  68. package/server/routes/dataset/controllers/bi.dataset.demo.add.js +0 -97
  69. package/server/routes/dataset/controllers/util/create.table.js +0 -21
  70. package/server/routes/dataset/controllers/util/prepare.data.js +0 -49
  71. package/server/routes/db/index.mjs +0 -17
@@ -1,6 +1,25 @@
1
- import { openBlock as Nt, createElementBlock as jt, createStaticVNode as Gp, resolveComponent as Uo, createElementVNode as ct, createVNode as $o, toDisplayString as Ln, createCommentVNode as jo, Fragment as oh, renderList as lh, normalizeStyle as Hu, normalizeClass as ch, withDirectives as Hp, vShow as Xp } from "vue";
2
- import { _ as en, j as Wp, V as Kp } from "./import-file-C8BY90-b.js";
3
- function Jp(te) {
1
+ import { openBlock as Bt, createElementBlock as Ft, createElementVNode as lt, createStaticVNode as Gp, resolveComponent as Uo, createVNode as $o, toDisplayString as Ln, createCommentVNode as jo, Fragment as oh, renderList as lh, normalizeStyle as Hu, normalizeClass as ch, withDirectives as Hp, vShow as Xp } from "vue";
2
+ import { _ as ms, V as Wp } from "./import-file-DgBd_UN1.js";
3
+ const Kp = {}, Jp = {
4
+ class: "shrink-0 size-3",
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "24",
7
+ height: "24",
8
+ viewBox: "0 0 24 24",
9
+ fill: "none",
10
+ stroke: "currentColor",
11
+ "stroke-width": "2",
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round"
14
+ };
15
+ function Yp(te, de) {
16
+ return Bt(), Ft("svg", Jp, de[0] || (de[0] = [
17
+ lt("path", { d: "M18 6 6 18" }, null, -1),
18
+ lt("path", { d: "m6 6 12 12" }, null, -1)
19
+ ]));
20
+ }
21
+ const Qp = /* @__PURE__ */ ms(Kp, [["render", Yp]]);
22
+ function ef(te) {
4
23
  return [
5
24
  {
6
25
  type: "fill",
@@ -12,7 +31,7 @@ function Jp(te) {
12
31
  }
13
32
  ];
14
33
  }
15
- function Yp(te) {
34
+ function tf(te) {
16
35
  return [
17
36
  {
18
37
  type: "line",
@@ -23,7 +42,7 @@ function Yp(te) {
23
42
  }
24
43
  ];
25
44
  }
26
- function Qp(te) {
45
+ function rf(te) {
27
46
  return [
28
47
  {
29
48
  type: "circle",
@@ -39,9 +58,9 @@ function Qp(te) {
39
58
  function Xu(te) {
40
59
  if (!te) return null;
41
60
  const de = te.type || "point";
42
- return de === "polygon" ? Jp(te) : de === "line" ? Yp(te) : Qp(te);
61
+ return de === "polygon" ? ef(te) : de === "line" ? tf(te) : rf(te);
43
62
  }
44
- const ef = {
63
+ const sf = {
45
64
  data() {
46
65
  return {
47
66
  layerList: [],
@@ -167,8 +186,8 @@ const ef = {
167
186
  }
168
187
  }
169
188
  };
170
- var tf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
171
- function rf(te) {
189
+ var nf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
190
+ function af(te) {
172
191
  return te && te.__esModule && Object.prototype.hasOwnProperty.call(te, "default") ? te.default : te;
173
192
  }
174
193
  var Ku = { exports: {} };
@@ -179,12 +198,12 @@ var Ku = { exports: {} };
179
198
  (function(te, de) {
180
199
  (function(me, Le) {
181
200
  te.exports = Le();
182
- })(tf, function() {
201
+ })(nf, function() {
183
202
  var me = {}, Le = {};
184
203
  function Ge(C, p, ht) {
185
204
  if (Le[C] = ht, C === "index") {
186
- var Bt = "var sharedModule = {}; (" + Le.shared + ")(sharedModule); (" + Le.worker + ")(sharedModule);", _t = {};
187
- return Le.shared(_t), Le.index(me, _t), typeof window < "u" && me.setWorkerUrl(window.URL.createObjectURL(new Blob([Bt], { type: "text/javascript" }))), me;
205
+ var Ot = "var sharedModule = {}; (" + Le.shared + ")(sharedModule); (" + Le.worker + ")(sharedModule);", _t = {};
206
+ return Le.shared(_t), Le.index(me, _t), typeof window < "u" && me.setWorkerUrl(window.URL.createObjectURL(new Blob([Ot], { type: "text/javascript" }))), me;
188
207
  }
189
208
  }
190
209
  Ge("shared", ["exports"], function(C) {
@@ -217,7 +236,7 @@ var Ku = { exports: {} };
217
236
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
218
237
  }
219
238
  typeof SuppressedError == "function" && SuppressedError;
220
- var Bt = _t;
239
+ var Ot = _t;
221
240
  function _t(i, t) {
222
241
  this.x = i, this.y = t;
223
242
  }
@@ -295,7 +314,7 @@ var Ku = { exports: {} };
295
314
  } }, _t.convert = function(i) {
296
315
  return i instanceof _t ? i : Array.isArray(i) ? new _t(i[0], i[1]) : i;
297
316
  };
298
- var he = ht(Bt), ae = Ii;
317
+ var he = ht(Ot), ae = Ii;
299
318
  function Ii(i, t, r, n) {
300
319
  this.cx = 3 * i, this.bx = 3 * (r - i) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * t, this.by = 3 * (n - t) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = i, this.p1y = t, this.p2x = r, this.p2y = n;
301
320
  }
@@ -383,7 +402,7 @@ var Ku = { exports: {} };
383
402
  function Tr(i) {
384
403
  return typeof WorkerGlobalScope < "u" && i !== void 0 && i instanceof WorkerGlobalScope;
385
404
  }
386
- let ms = null;
405
+ let gs = null;
387
406
  function ur(i) {
388
407
  return typeof ImageBitmap < "u" && i instanceof ImageBitmap;
389
408
  }
@@ -411,14 +430,14 @@ var Ku = { exports: {} };
411
430
  }
412
431
  let Ir, mi;
413
432
  const Hi = "AbortError";
414
- function gs() {
433
+ function _s() {
415
434
  return new Error(Hi);
416
435
  }
417
436
  const Lr = { MAX_PARALLEL_IMAGE_REQUESTS: 16, MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8, MAX_TILE_CACHE_ZOOM_LEVELS: 5, REGISTERED_PROTOCOLS: {}, WORKER_URL: "" };
418
437
  function dr(i) {
419
438
  return Lr.REGISTERED_PROTOCOLS[i.substring(0, i.indexOf("://"))];
420
439
  }
421
- const _s = "global-dispatcher";
440
+ const ys = "global-dispatcher";
422
441
  class Pi extends Error {
423
442
  constructor(t, r, n, l) {
424
443
  super(`AJAXError: ${r} (${t}): ${n}`), this.status = t, this.statusText = r, this.url = n, this.body = l;
@@ -428,7 +447,7 @@ var Ku = { exports: {} };
428
447
  if (/:\/\//.test(i.url) && !/^https?:|^file:/.test(i.url)) {
429
448
  const n = dr(i.url);
430
449
  if (n) return n(i, t);
431
- if (Tr(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, targetMapId: _s }, t);
450
+ if (Tr(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, targetMapId: ys }, t);
432
451
  }
433
452
  if (!(/^file:/.test(r = i.url) || /^file:/.test(Xi()) && !/^\w+:/.test(r))) {
434
453
  if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return function(n, l) {
@@ -443,11 +462,11 @@ var Ku = { exports: {} };
443
462
  let f;
444
463
  f = n.type === "arrayBuffer" || n.type === "image" ? d.arrayBuffer() : n.type === "json" ? d.json() : d.text();
445
464
  const g = yield f;
446
- if (l.signal.aborted) throw gs();
465
+ if (l.signal.aborted) throw _s();
447
466
  return { data: g, cacheControl: d.headers.get("Cache-Control"), expires: d.headers.get("Expires") };
448
467
  });
449
468
  }(i, t);
450
- if (Tr(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, mustQueue: !0, targetMapId: _s }, t);
469
+ if (Tr(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, mustQueue: !0, targetMapId: ys }, t);
451
470
  }
452
471
  var r;
453
472
  return function(n, l) {
@@ -472,7 +491,7 @@ var Ku = { exports: {} };
472
491
  d(new Pi(g.status, g.statusText, n.url, x));
473
492
  }
474
493
  }, l.signal.addEventListener("abort", () => {
475
- g.abort(), d(gs());
494
+ g.abort(), d(_s());
476
495
  }), g.send(n.body);
477
496
  });
478
497
  }(i, t);
@@ -501,7 +520,7 @@ var Ku = { exports: {} };
501
520
  super("error", Bi({ error: t }, r));
502
521
  }
503
522
  }
504
- class ys {
523
+ class xs {
505
524
  on(t, r) {
506
525
  return this._listeners = this._listeners || {}, rn(t, r, this._listeners), this;
507
526
  }
@@ -566,7 +585,7 @@ var Ku = { exports: {} };
566
585
  function Mr(i, t, r, n) {
567
586
  Fr(i, r, n), nn(i, t, r);
568
587
  }
569
- function xs(i, t, r) {
588
+ function vs(i, t, r) {
570
589
  let n;
571
590
  for (n in i[r]) if (Object.prototype.hasOwnProperty.call(i[r], n) && n !== "data" && !at(i[r][n], t[r][n])) return !1;
572
591
  for (n in t[r]) if (Object.prototype.hasOwnProperty.call(t[r], n) && n !== "data" && !at(i[r][n], t[r][n])) return !1;
@@ -653,15 +672,15 @@ var Ku = { exports: {} };
653
672
  }
654
673
  function rt([i, t, r, n]) {
655
674
  let l, u;
656
- const d = Ft((0.2225045 * (i = Ye(i)) + 0.7168786 * (t = Ye(t)) + 0.0606169 * (r = Ye(r))) / 1);
657
- i === t && t === r ? l = u = d : (l = Ft((0.4360747 * i + 0.3850649 * t + 0.1430804 * r) / q), u = Ft((0.0139322 * i + 0.0971045 * t + 0.7141733 * r) / ne));
675
+ const d = Vt((0.2225045 * (i = Ye(i)) + 0.7168786 * (t = Ye(t)) + 0.0606169 * (r = Ye(r))) / 1);
676
+ i === t && t === r ? l = u = d : (l = Vt((0.4360747 * i + 0.3850649 * t + 0.1430804 * r) / q), u = Vt((0.0139322 * i + 0.0971045 * t + 0.7141733 * r) / ne));
658
677
  const f = 116 * d - 16;
659
678
  return [f < 0 ? 0 : f, 500 * (l - d), 200 * (d - u), n];
660
679
  }
661
680
  function Ye(i) {
662
681
  return i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
663
682
  }
664
- function Ft(i) {
683
+ function Vt(i) {
665
684
  return i > Be ? Math.pow(i, 1 / 3) : i / ge + ce;
666
685
  }
667
686
  function At([i, t, r, n]) {
@@ -686,7 +705,7 @@ var Ku = { exports: {} };
686
705
  function ci(i) {
687
706
  return !i.some(Number.isNaN);
688
707
  }
689
- const vs = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] };
708
+ const bs = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] };
690
709
  class dt {
691
710
  constructor(t, r, n, l = 1, u = !0) {
692
711
  this.r = t, this.g = r, this.b = n, this.a = l, u || (this.r *= l, this.g *= l, this.b *= l, l || this.overwriteGetter("rgb", [t, r, n, l]));
@@ -696,7 +715,7 @@ var Ku = { exports: {} };
696
715
  if (typeof t != "string") return;
697
716
  const r = function(n) {
698
717
  if ((n = n.toLowerCase().trim()) === "transparent") return [0, 0, 0, 0];
699
- const l = vs[n];
718
+ const l = bs[n];
700
719
  if (l) {
701
720
  const [d, f, g] = l;
702
721
  return [d / 255, f / 255, g / 255, 1];
@@ -848,7 +867,7 @@ var Ku = { exports: {} };
848
867
  return t ? new Ai({ name: t, available: !1 }) : null;
849
868
  }
850
869
  }
851
- function bs(i, t, r, n) {
870
+ function ws(i, t, r, n) {
852
871
  return typeof i == "number" && i >= 0 && i <= 255 && typeof t == "number" && t >= 0 && t <= 255 && typeof r == "number" && r >= 0 && r <= 255 ? n === void 0 || typeof n == "number" && n >= 0 && n <= 1 ? null : `Invalid rgba value [${[i, t, r, n].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof n == "number" ? [i, t, r, n] : [i, t, r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
853
872
  }
854
873
  function Yr(i) {
@@ -863,7 +882,7 @@ var Ku = { exports: {} };
863
882
  }
864
883
  return !1;
865
884
  }
866
- function Ot(i) {
885
+ function Nt(i) {
867
886
  if (i === null) return Or;
868
887
  if (typeof i == "string") return Xe;
869
888
  if (typeof i == "boolean") return Ne;
@@ -878,7 +897,7 @@ var Ku = { exports: {} };
878
897
  const t = i.length;
879
898
  let r;
880
899
  for (const n of i) {
881
- const l = Ot(n);
900
+ const l = Nt(n);
882
901
  if (r) {
883
902
  if (r === l) continue;
884
903
  r = qe;
@@ -902,7 +921,7 @@ var Ku = { exports: {} };
902
921
  if (t.length !== 2) return r.error(`'literal' expression requires exactly one argument, but found ${t.length - 1} instead.`);
903
922
  if (!Yr(t[1])) return r.error("invalid value");
904
923
  const n = t[1];
905
- let l = Ot(n);
924
+ let l = Nt(n);
906
925
  const u = r.expectedType;
907
926
  return l.kind !== "array" || l.N !== 0 || !u || u.kind !== "array" || typeof u.N == "number" && u.N !== 0 || (l = u), new Ki(l, n);
908
927
  }
@@ -959,8 +978,8 @@ var Ku = { exports: {} };
959
978
  evaluate(t) {
960
979
  for (let r = 0; r < this.args.length; r++) {
961
980
  const n = this.args[r].evaluate(t);
962
- if (!O(this.type, Ot(n))) return n;
963
- if (r === this.args.length - 1) throw new Lt(`Expected value to be of type ${P(this.type)}, but found ${P(Ot(n))} instead.`);
981
+ if (!O(this.type, Nt(n))) return n;
982
+ if (r === this.args.length - 1) throw new Lt(`Expected value to be of type ${P(this.type)}, but found ${P(Nt(n))} instead.`);
964
983
  }
965
984
  throw new Error();
966
985
  }
@@ -1000,7 +1019,7 @@ var Ku = { exports: {} };
1000
1019
  if (typeof r == "string") {
1001
1020
  const u = t.parseColor(r);
1002
1021
  if (u) return u;
1003
- } else if (Array.isArray(r) && (n = r.length < 3 || r.length > 4 ? `Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.` : bs(r[0], r[1], r[2], r[3]), !n)) return new dt(r[0] / 255, r[1] / 255, r[2] / 255, r[3]);
1022
+ } else if (Array.isArray(r) && (n = r.length < 3 || r.length > 4 ? `Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.` : ws(r[0], r[1], r[2], r[3]), !n)) return new dt(r[0] / 255, r[1] / 255, r[2] / 255, r[3]);
1004
1023
  }
1005
1024
  throw new Lt(n || `Could not parse color from value '${typeof r == "string" ? r : JSON.stringify(r)}'`);
1006
1025
  }
@@ -1208,8 +1227,8 @@ var Ku = { exports: {} };
1208
1227
  evaluate(t) {
1209
1228
  const r = this.needle.evaluate(t), n = this.haystack.evaluate(t);
1210
1229
  if (!n) return !1;
1211
- if (!W(r, ["boolean", "string", "number", "null"])) throw new Lt(`Expected first argument to be of type boolean, string, number or null, but found ${P(Ot(r))} instead.`);
1212
- if (!W(n, ["string", "array"])) throw new Lt(`Expected second argument to be of type array or string, but found ${P(Ot(n))} instead.`);
1230
+ if (!W(r, ["boolean", "string", "number", "null"])) throw new Lt(`Expected first argument to be of type boolean, string, number or null, but found ${P(Nt(r))} instead.`);
1231
+ if (!W(n, ["string", "array"])) throw new Lt(`Expected second argument to be of type array or string, but found ${P(Nt(n))} instead.`);
1213
1232
  return n.indexOf(r) >= 0;
1214
1233
  }
1215
1234
  eachChild(t) {
@@ -1219,7 +1238,7 @@ var Ku = { exports: {} };
1219
1238
  return !0;
1220
1239
  }
1221
1240
  }
1222
- class ws {
1241
+ class Ss {
1223
1242
  constructor(t, r, n) {
1224
1243
  this.type = xe, this.needle = t, this.haystack = r, this.fromIndex = n;
1225
1244
  }
@@ -1230,20 +1249,20 @@ var Ku = { exports: {} };
1230
1249
  if (!H(n.type, [Ne, Xe, xe, Or, qe])) return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${P(n.type)} instead`);
1231
1250
  if (t.length === 4) {
1232
1251
  const u = r.parse(t[3], 3, xe);
1233
- return u ? new ws(n, l, u) : null;
1252
+ return u ? new Ss(n, l, u) : null;
1234
1253
  }
1235
- return new ws(n, l);
1254
+ return new Ss(n, l);
1236
1255
  }
1237
1256
  evaluate(t) {
1238
1257
  const r = this.needle.evaluate(t), n = this.haystack.evaluate(t);
1239
- if (!W(r, ["boolean", "string", "number", "null"])) throw new Lt(`Expected first argument to be of type boolean, string, number or null, but found ${P(Ot(r))} instead.`);
1258
+ if (!W(r, ["boolean", "string", "number", "null"])) throw new Lt(`Expected first argument to be of type boolean, string, number or null, but found ${P(Nt(r))} instead.`);
1240
1259
  let l;
1241
1260
  if (this.fromIndex && (l = this.fromIndex.evaluate(t)), W(n, ["string"])) {
1242
1261
  const u = n.indexOf(r, l);
1243
1262
  return u === -1 ? -1 : [...n.slice(0, u)].length;
1244
1263
  }
1245
1264
  if (W(n, ["array"])) return n.indexOf(r, l);
1246
- throw new Lt(`Expected second argument to be of type array or string, but found ${P(Ot(n))} instead.`);
1265
+ throw new Lt(`Expected second argument to be of type array or string, but found ${P(Nt(n))} instead.`);
1247
1266
  }
1248
1267
  eachChild(t) {
1249
1268
  t(this.needle), t(this.haystack), this.fromIndex && t(this.fromIndex);
@@ -1273,8 +1292,8 @@ var Ku = { exports: {} };
1273
1292
  if (typeof z == "number" && Math.abs(z) > Number.MAX_SAFE_INTEGER) return I.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);
1274
1293
  if (typeof z == "number" && Math.floor(z) !== z) return I.error("Numeric branch labels must be integer values.");
1275
1294
  if (n) {
1276
- if (I.checkSubtype(n, Ot(z))) return null;
1277
- } else n = Ot(z);
1295
+ if (I.checkSubtype(n, Nt(z))) return null;
1296
+ } else n = Nt(z);
1278
1297
  if (u[String(z)] !== void 0) return I.error("Branch labels must be unique.");
1279
1298
  u[String(z)] = d.length;
1280
1299
  }
@@ -1289,7 +1308,7 @@ var Ku = { exports: {} };
1289
1308
  }
1290
1309
  evaluate(t) {
1291
1310
  const r = this.input.evaluate(t);
1292
- return (Ot(r) === this.inputType && this.outputs[this.cases[r]] || this.otherwise).evaluate(t);
1311
+ return (Nt(r) === this.inputType && this.outputs[this.cases[r]] || this.otherwise).evaluate(t);
1293
1312
  }
1294
1313
  eachChild(t) {
1295
1314
  t(this.input), this.outputs.forEach(t), t(this.otherwise);
@@ -1352,7 +1371,7 @@ var Ku = { exports: {} };
1352
1371
  let l;
1353
1372
  if (this.endIndex && (l = this.endIndex.evaluate(t)), W(r, ["string"])) return [...r].slice(n, l).join("");
1354
1373
  if (W(r, ["array"])) return r.slice(n, l);
1355
- throw new Lt(`Expected first argument to be of type array or string, but found ${P(Ot(r))} instead.`);
1374
+ throw new Lt(`Expected first argument to be of type array or string, but found ${P(Nt(r))} instead.`);
1356
1375
  }
1357
1376
  eachChild(t) {
1358
1377
  t(this.input), t(this.beginIndex), this.endIndex && t(this.endIndex);
@@ -1373,7 +1392,7 @@ var Ku = { exports: {} };
1373
1392
  }
1374
1393
  return 0;
1375
1394
  }
1376
- class Ss {
1395
+ class Ts {
1377
1396
  constructor(t, r, n) {
1378
1397
  this.type = t, this.input = r, this.labels = [], this.outputs = [];
1379
1398
  for (const [l, u] of n) this.labels.push(l), this.outputs.push(u);
@@ -1394,7 +1413,7 @@ var Ku = { exports: {} };
1394
1413
  if (!w) return null;
1395
1414
  u = u || w.type, l.push([f, w]);
1396
1415
  }
1397
- return new Ss(u, n, l);
1416
+ return new Ts(u, n, l);
1398
1417
  }
1399
1418
  evaluate(t) {
1400
1419
  const r = this.labels, n = this.outputs;
@@ -1599,7 +1618,7 @@ var Ku = { exports: {} };
1599
1618
  function Go(i, t, r, n) {
1600
1619
  return n.compare(t, r) === 0;
1601
1620
  }
1602
- function Ts(i, t, r) {
1621
+ function Is(i, t, r) {
1603
1622
  const n = i !== "==" && i !== "!=";
1604
1623
  return class Ju {
1605
1624
  constructor(u, d, f) {
@@ -1626,11 +1645,11 @@ var Ku = { exports: {} };
1626
1645
  evaluate(u) {
1627
1646
  const d = this.lhs.evaluate(u), f = this.rhs.evaluate(u);
1628
1647
  if (n && this.hasUntypedArgument) {
1629
- const g = Ot(d), x = Ot(f);
1648
+ const g = Nt(d), x = Nt(f);
1630
1649
  if (g.kind !== x.kind || g.kind !== "string" && g.kind !== "number") throw new Lt(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${g.kind}, ${x.kind}) instead.`);
1631
1650
  }
1632
1651
  if (this.collator && !n && this.hasUntypedArgument) {
1633
- const g = Ot(d), x = Ot(f);
1652
+ const g = Nt(d), x = Nt(f);
1634
1653
  if (g.kind !== "string" || x.kind !== "string") return t(u, d, f);
1635
1654
  }
1636
1655
  return this.collator ? r(u, d, f, this.collator.evaluate(u)) : t(u, d, f);
@@ -1643,25 +1662,25 @@ var Ku = { exports: {} };
1643
1662
  }
1644
1663
  };
1645
1664
  }
1646
- const Kl = Ts("==", function(i, t, r) {
1665
+ const Kl = Is("==", function(i, t, r) {
1647
1666
  return t === r;
1648
- }, Go), Ho = Ts("!=", function(i, t, r) {
1667
+ }, Go), Ho = Is("!=", function(i, t, r) {
1649
1668
  return t !== r;
1650
1669
  }, function(i, t, r, n) {
1651
1670
  return !Go(0, t, r, n);
1652
- }), Xo = Ts("<", function(i, t, r) {
1671
+ }), Xo = Is("<", function(i, t, r) {
1653
1672
  return t < r;
1654
1673
  }, function(i, t, r, n) {
1655
1674
  return n.compare(t, r) < 0;
1656
- }), Jl = Ts(">", function(i, t, r) {
1675
+ }), Jl = Is(">", function(i, t, r) {
1657
1676
  return t > r;
1658
1677
  }, function(i, t, r, n) {
1659
1678
  return n.compare(t, r) > 0;
1660
- }), Yl = Ts("<=", function(i, t, r) {
1679
+ }), Yl = Is("<=", function(i, t, r) {
1661
1680
  return t <= r;
1662
1681
  }, function(i, t, r, n) {
1663
1682
  return n.compare(t, r) <= 0;
1664
- }), Wo = Ts(">=", function(i, t, r) {
1683
+ }), Wo = Is(">=", function(i, t, r) {
1665
1684
  return t >= r;
1666
1685
  }, function(i, t, r, n) {
1667
1686
  return n.compare(t, r) >= 0;
@@ -1755,7 +1774,7 @@ var Ku = { exports: {} };
1755
1774
  evaluate(t) {
1756
1775
  return new Mi(this.sections.map((r) => {
1757
1776
  const n = r.content.evaluate(t);
1758
- return Ot(n) === gr ? new Da("", n, null, null, null) : new Da(ln(n), null, r.scale ? r.scale.evaluate(t) : null, r.font ? r.font.evaluate(t).join(",") : null, r.textColor ? r.textColor.evaluate(t) : null);
1777
+ return Nt(n) === gr ? new Da("", n, null, null, null) : new Da(ln(n), null, r.scale ? r.scale.evaluate(t) : null, r.font ? r.font.evaluate(t).join(",") : null, r.textColor ? r.textColor.evaluate(t) : null);
1759
1778
  }));
1760
1779
  }
1761
1780
  eachChild(t) {
@@ -1798,7 +1817,7 @@ var Ku = { exports: {} };
1798
1817
  const r = this.input.evaluate(t);
1799
1818
  if (typeof r == "string") return [...r].length;
1800
1819
  if (Array.isArray(r)) return r.length;
1801
- throw new Lt(`Expected value to be of type string or array, but found ${P(Ot(r))} instead.`);
1820
+ throw new Lt(`Expected value to be of type string or array, but found ${P(Nt(r))} instead.`);
1802
1821
  }
1803
1822
  eachChild(t) {
1804
1823
  t(this.input);
@@ -1823,7 +1842,7 @@ var Ku = { exports: {} };
1823
1842
  function jr(i, t) {
1824
1843
  return !(i[0] <= t[0] || i[2] >= t[2] || i[1] <= t[1] || i[3] >= t[3]);
1825
1844
  }
1826
- function lt(i, t, r) {
1845
+ function ct(i, t, r) {
1827
1846
  const n = i[0] - t[0], l = i[1] - t[1], u = i[0] - r[0], d = i[1] - r[1];
1828
1847
  return n * d - u * l == 0 && n * u <= 0 && l * d <= 0;
1829
1848
  }
@@ -1835,21 +1854,21 @@ var Ku = { exports: {} };
1835
1854
  for (const n of r) for (let l = 0; l < n.length - 1; ++l) if (Gn(i, t, n[l], n[l + 1])) return !0;
1836
1855
  return !1;
1837
1856
  }
1838
- function Is(i, t, r = !1) {
1857
+ function Ps(i, t, r = !1) {
1839
1858
  let n = !1;
1840
1859
  for (const f of t) for (let g = 0; g < f.length - 1; g++) {
1841
- if (lt(i, f[g], f[g + 1])) return r;
1860
+ if (ct(i, f[g], f[g + 1])) return r;
1842
1861
  (u = f[g])[1] > (l = i)[1] != (d = f[g + 1])[1] > l[1] && l[0] < (d[0] - u[0]) * (l[1] - u[1]) / (d[1] - u[1]) + u[0] && (n = !n);
1843
1862
  }
1844
1863
  var l, u, d;
1845
1864
  return n;
1846
1865
  }
1847
1866
  function tc(i, t) {
1848
- for (const r of t) if (Is(i, r)) return !0;
1867
+ for (const r of t) if (Ps(i, r)) return !0;
1849
1868
  return !1;
1850
1869
  }
1851
1870
  function Ko(i, t) {
1852
- for (const r of i) if (!Is(r, t)) return !1;
1871
+ for (const r of i) if (!Ps(r, t)) return !1;
1853
1872
  for (let r = 0; r < i.length - 1; ++r) if (ec(i[r], i[r + 1], t)) return !1;
1854
1873
  return !0;
1855
1874
  }
@@ -1943,7 +1962,7 @@ var Ku = { exports: {} };
1943
1962
  if (n.type === "Polygon") {
1944
1963
  const f = Ua(n.coordinates, u, d), g = el(r.geometry(), l, u, d);
1945
1964
  if (!jr(l, u)) return !1;
1946
- for (const x of g) if (!Is(x, f)) return !1;
1965
+ for (const x of g) if (!Ps(x, f)) return !1;
1947
1966
  }
1948
1967
  if (n.type === "MultiPolygon") {
1949
1968
  const f = Yo(n.coordinates, u, d), g = el(r.geometry(), l, u, d);
@@ -2147,7 +2166,7 @@ var Ku = { exports: {} };
2147
2166
  return u;
2148
2167
  }
2149
2168
  function lc(i, t, r) {
2150
- if (Is(i, t, !0)) return 0;
2169
+ if (Ps(i, t, !0)) return 0;
2151
2170
  let n = 1 / 0;
2152
2171
  for (const l of t) {
2153
2172
  const u = l[0], d = l[l.length - 1];
@@ -2159,7 +2178,7 @@ var Ku = { exports: {} };
2159
2178
  }
2160
2179
  function Je(i, t, r, n) {
2161
2180
  if (!Ar(t, i.length)) return NaN;
2162
- for (let u = t[0]; u <= t[1]; ++u) if (Is(i[u], r, !0)) return 0;
2181
+ for (let u = t[0]; u <= t[1]; ++u) if (Ps(i[u], r, !0)) return 0;
2163
2182
  let l = 1 / 0;
2164
2183
  for (let u = t[0]; u < t[1]; ++u) {
2165
2184
  const d = i[u], f = i[u + 1];
@@ -2172,7 +2191,7 @@ var Ku = { exports: {} };
2172
2191
  return l;
2173
2192
  }
2174
2193
  function Kn(i, t) {
2175
- for (const r of i) for (const n of r) if (Is(n, t, !0)) return !0;
2194
+ for (const r of i) for (const n of r) if (Ps(n, t, !0)) return !0;
2176
2195
  return !1;
2177
2196
  }
2178
2197
  function xt(i, t, r, n = 1 / 0) {
@@ -2341,7 +2360,7 @@ var Ku = { exports: {} };
2341
2360
  return !0;
2342
2361
  }
2343
2362
  }
2344
- const Ps = { "==": Kl, "!=": Ho, ">": Jl, "<": Xo, ">=": Wo, "<=": Yl, array: Ji, at: Ra, boolean: Ji, case: Nn, coalesce: $n, collator: un, format: Zn, image: Va, in: Ba, "index-of": ws, interpolate: yi, "interpolate-hcl": yi, "interpolate-lab": yi, length: Na, let: Nr, literal: Ki, match: Fa, number: Ji, "number-format": Oa, object: Ji, slice: cn, step: Ss, string: Ji, "to-boolean": Yi, "to-color": Yi, "to-number": Yi, "to-string": Yi, var: ot, within: is, distance: ns };
2363
+ const Ms = { "==": Kl, "!=": Ho, ">": Jl, "<": Xo, ">=": Wo, "<=": Yl, array: Ji, at: Ra, boolean: Ji, case: Nn, coalesce: $n, collator: un, format: Zn, image: Va, in: Ba, "index-of": Ss, interpolate: yi, "interpolate-hcl": yi, "interpolate-lab": yi, length: Na, let: Nr, literal: Ki, match: Fa, number: Ji, "number-format": Oa, object: Ji, slice: cn, step: Ts, string: Ji, "to-boolean": Yi, "to-color": Yi, "to-number": Yi, "to-string": Yi, var: ot, within: is, distance: ns };
2345
2364
  class Vi {
2346
2365
  constructor(t, r, n, l) {
2347
2366
  this.name = t, this.type = r, this._evaluate = n, this.args = l;
@@ -2403,7 +2422,7 @@ var Ku = { exports: {} };
2403
2422
  }
2404
2423
  function Ka(i, [t, r, n, l]) {
2405
2424
  t = t.evaluate(i), r = r.evaluate(i), n = n.evaluate(i);
2406
- const u = l ? l.evaluate(i) : 1, d = bs(t, r, n, u);
2425
+ const u = l ? l.evaluate(i) : 1, d = ws(t, r, n, u);
2407
2426
  if (d) throw new Lt(d);
2408
2427
  return new dt(t / 255, r / 255, n / 255, u, !1);
2409
2428
  }
@@ -2433,11 +2452,11 @@ var Ku = { exports: {} };
2433
2452
  t && !gn(r) && (t = !1);
2434
2453
  }), t;
2435
2454
  }
2436
- function Ms(i) {
2455
+ function ks(i) {
2437
2456
  if (i instanceof Vi && i.name === "feature-state") return !1;
2438
2457
  let t = !0;
2439
2458
  return i.eachChild((r) => {
2440
- t && !Ms(r) && (t = !1);
2459
+ t && !ks(r) && (t = !1);
2441
2460
  }), t;
2442
2461
  }
2443
2462
  function _n(i, t) {
@@ -2450,10 +2469,10 @@ var Ku = { exports: {} };
2450
2469
  function Jn(i) {
2451
2470
  return { result: "success", value: i };
2452
2471
  }
2453
- function ks(i) {
2472
+ function As(i) {
2454
2473
  return { result: "error", value: i };
2455
2474
  }
2456
- function As(i) {
2475
+ function Cs(i) {
2457
2476
  return i["property-type"] === "data-driven" || i["property-type"] === "cross-faded-data-driven";
2458
2477
  }
2459
2478
  function ll(i) {
@@ -2507,17 +2526,17 @@ var Ku = { exports: {} };
2507
2526
  }
2508
2527
  return { kind: "source", evaluate(v, w) {
2509
2528
  const I = w && w.properties ? w.properties[i.property] : void 0;
2510
- return I === void 0 ? Cs(i.default, t.default) : f(i, t, I, g, x);
2529
+ return I === void 0 ? zs(i.default, t.default) : f(i, t, I, g, x);
2511
2530
  } };
2512
2531
  }
2513
- function Cs(i, t, r) {
2532
+ function zs(i, t, r) {
2514
2533
  return i !== void 0 ? i : t !== void 0 ? t : r !== void 0 ? r : void 0;
2515
2534
  }
2516
2535
  function hl(i, t, r, n, l) {
2517
- return Cs(typeof r === l ? n[r] : void 0, i.default, t.default);
2536
+ return zs(typeof r === l ? n[r] : void 0, i.default, t.default);
2518
2537
  }
2519
2538
  function Qn(i, t, r) {
2520
- if (st(r) !== "number") return Cs(i.default, t.default);
2539
+ if (st(r) !== "number") return zs(i.default, t.default);
2521
2540
  const n = i.stops.length;
2522
2541
  if (n === 1 || r <= i.stops[0][0]) return i.stops[0][1];
2523
2542
  if (r >= i.stops[n - 1][0]) return i.stops[n - 1][1];
@@ -2526,7 +2545,7 @@ var Ku = { exports: {} };
2526
2545
  }
2527
2546
  function ul(i, t, r) {
2528
2547
  const n = i.base !== void 0 ? i.base : 1;
2529
- if (st(r) !== "number") return Cs(i.default, t.default);
2548
+ if (st(r) !== "number") return zs(i.default, t.default);
2530
2549
  const l = i.stops.length;
2531
2550
  if (l === 1 || r <= i.stops[0][0]) return i.stops[0][1];
2532
2551
  if (r >= i.stops[l - 1][0]) return i.stops[l - 1][1];
@@ -2556,11 +2575,11 @@ var Ku = { exports: {} };
2556
2575
  default:
2557
2576
  st(r) === t.type || t.type === "enum" && t.values[r] || (r = void 0);
2558
2577
  }
2559
- return Cs(r, i.default, t.default);
2578
+ return zs(r, i.default, t.default);
2560
2579
  }
2561
- Vi.register(Ps, { error: [{ kind: "error" }, [Xe], (i, [t]) => {
2580
+ Vi.register(Ms, { error: [{ kind: "error" }, [Xe], (i, [t]) => {
2562
2581
  throw new Lt(t.evaluate(i));
2563
- }], typeof: [Xe, [qe], (i, [t]) => P(Ot(t.evaluate(i)))], "to-rgba": [M(xe, 4), [gi], (i, [t]) => {
2582
+ }], typeof: [Xe, [qe], (i, [t]) => P(Nt(t.evaluate(i)))], "to-rgba": [M(xe, 4), [gi], (i, [t]) => {
2564
2583
  const [r, n, l, u] = t.evaluate(i).rgb;
2565
2584
  return [255 * r, 255 * n, 255 * l, u];
2566
2585
  }], rgb: [gi, [xe, xe, xe], Ka], rgba: [gi, [xe, xe, xe, xe], Ka], has: { type: Ne, overloads: [[[Xe], (i, [t]) => Ja(t.evaluate(i), i.properties())], [[Xe, Wi], (i, [t, r]) => Ja(t.evaluate(i), r.evaluate(i))]] }, get: { type: qe, overloads: [[[Xe], (i, [t]) => Ya(t.evaluate(i), i.properties())], [[Xe, Wi], (i, [t, r]) => Ya(t.evaluate(i), r.evaluate(i))]] }, "feature-state": [qe, [Xe], (i, [t]) => Ya(t.evaluate(i), i.featureState || {})], properties: [Wi, [], (i) => i.properties()], "geometry-type": [Xe, [], (i) => i.geometryType()], id: [qe, [], (i) => i.id()], zoom: [xe, [], (i) => i.globals.zoom], "heatmap-density": [xe, [], (i) => i.globals.heatmapDensity || 0], "line-progress": [xe, [], (i) => i.globals.lineProgress || 0], accumulated: [qe, [], (i) => i.globals.accumulated === void 0 ? null : i.globals.accumulated], "+": [xe, as(xe), (i, t) => {
@@ -2636,18 +2655,18 @@ var Ku = { exports: {} };
2636
2655
  }
2637
2656
  }
2638
2657
  function ta(i) {
2639
- return Array.isArray(i) && i.length > 0 && typeof i[0] == "string" && i[0] in Ps;
2658
+ return Array.isArray(i) && i.length > 0 && typeof i[0] == "string" && i[0] in Ms;
2640
2659
  }
2641
- function zs(i, t) {
2642
- const r = new Qr(Ps, mn, [], t ? function(l) {
2660
+ function Es(i, t) {
2661
+ const r = new Qr(Ms, mn, [], t ? function(l) {
2643
2662
  const u = { color: gi, string: Xe, number: xe, enum: Xe, boolean: Ne, formatted: kr, padding: Vr, resolvedImage: gr, variableAnchorOffsetCollection: N };
2644
2663
  return l.type === "array" ? M(u[l.value] || qe, l.length) : u[l.type];
2645
2664
  }(t) : void 0), n = r.parse(i, void 0, void 0, void 0, t && t.type === "string" ? { typeAnnotation: "coerce" } : void 0);
2646
- return n ? Jn(new ea(n, t)) : ks(r.errors);
2665
+ return n ? Jn(new ea(n, t)) : As(r.errors);
2647
2666
  }
2648
- class Es {
2667
+ class Ds {
2649
2668
  constructor(t, r) {
2650
- this.kind = t, this._styleExpression = r, this.isStateDependent = t !== "constant" && !Ms(r.expression);
2669
+ this.kind = t, this._styleExpression = r, this.isStateDependent = t !== "constant" && !ks(r.expression);
2651
2670
  }
2652
2671
  evaluateWithoutErrorHandling(t, r, n, l, u, d) {
2653
2672
  return this._styleExpression.evaluateWithoutErrorHandling(t, r, n, l, u, d);
@@ -2656,9 +2675,9 @@ var Ku = { exports: {} };
2656
2675
  return this._styleExpression.evaluate(t, r, n, l, u, d);
2657
2676
  }
2658
2677
  }
2659
- class Ds {
2678
+ class Ls {
2660
2679
  constructor(t, r, n, l) {
2661
- this.kind = t, this.zoomStops = n, this._styleExpression = r, this.isStateDependent = t !== "camera" && !Ms(r.expression), this.interpolationType = l;
2680
+ this.kind = t, this.zoomStops = n, this._styleExpression = r, this.isStateDependent = t !== "camera" && !ks(r.expression), this.interpolationType = l;
2662
2681
  }
2663
2682
  evaluateWithoutErrorHandling(t, r, n, l, u, d) {
2664
2683
  return this._styleExpression.evaluateWithoutErrorHandling(t, r, n, l, u, d);
@@ -2671,21 +2690,21 @@ var Ku = { exports: {} };
2671
2690
  }
2672
2691
  }
2673
2692
  function eo(i, t) {
2674
- const r = zs(i, t);
2693
+ const r = Es(i, t);
2675
2694
  if (r.result === "error") return r;
2676
2695
  const n = r.value.expression, l = gn(n);
2677
- if (!l && !As(t)) return ks([new li("", "data expressions not supported")]);
2696
+ if (!l && !Cs(t)) return As([new li("", "data expressions not supported")]);
2678
2697
  const u = _n(n, ["zoom"]);
2679
- if (!u && !ll(t)) return ks([new li("", "zoom expressions not supported")]);
2698
+ if (!u && !ll(t)) return As([new li("", "zoom expressions not supported")]);
2680
2699
  const d = yn(n);
2681
- return d || u ? d instanceof li ? ks([d]) : d instanceof yi && !Qa(t) ? ks([new li("", '"interpolate" expressions cannot be used with this property')]) : Jn(d ? new Ds(l ? "camera" : "composite", r.value, d.labels, d instanceof yi ? d.interpolation : void 0) : new Es(l ? "constant" : "source", r.value)) : ks([new li("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
2700
+ return d || u ? d instanceof li ? As([d]) : d instanceof yi && !Qa(t) ? As([new li("", '"interpolate" expressions cannot be used with this property')]) : Jn(d ? new Ls(l ? "camera" : "composite", r.value, d.labels, d instanceof yi ? d.interpolation : void 0) : new Ds(l ? "constant" : "source", r.value)) : As([new li("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
2682
2701
  }
2683
- class Ls {
2702
+ class Rs {
2684
2703
  constructor(t, r) {
2685
2704
  this._parameters = t, this._specification = r, pr(this, cl(this._parameters, this._specification));
2686
2705
  }
2687
2706
  static deserialize(t) {
2688
- return new Ls(t._parameters, t._specification);
2707
+ return new Rs(t._parameters, t._specification);
2689
2708
  }
2690
2709
  static serialize(t) {
2691
2710
  return { _parameters: t._parameters, _specification: t._specification };
@@ -2696,7 +2715,7 @@ var Ku = { exports: {} };
2696
2715
  if (i instanceof Nr) t = yn(i.result);
2697
2716
  else if (i instanceof $n) {
2698
2717
  for (const r of i.args) if (t = yn(r), t) break;
2699
- } else (i instanceof Ss || i instanceof yi) && i.input instanceof Vi && i.input.name === "zoom" && (t = i);
2718
+ } else (i instanceof Ts || i instanceof yi) && i.input instanceof Vi && i.input.name === "zoom" && (t = i);
2700
2719
  return t instanceof li || i.eachChild((r) => {
2701
2720
  const n = yn(r);
2702
2721
  n instanceof li ? t = n : !t && n ? t = new li("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : t && n && t !== n && (t = new li("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
@@ -2733,7 +2752,7 @@ var Ku = { exports: {} };
2733
2752
  function to(i) {
2734
2753
  if (i == null) return { filter: () => !0, needGeometry: !1 };
2735
2754
  ia(i) || (i = sa(i));
2736
- const t = zs(i, ra);
2755
+ const t = Es(i, ra);
2737
2756
  if (t.result === "error") throw new Error(t.value.map((r) => `${r.key}: ${r.message}`).join(", "));
2738
2757
  return { filter: (r, n, l) => t.value.evaluate(r, n, {}, l), needGeometry: pl(i) };
2739
2758
  }
@@ -2870,7 +2889,7 @@ var Ku = { exports: {} };
2870
2889
  }, default: function(k) {
2871
2890
  return k.validateSpec({ key: k.key, value: k.value, valueSpec: t, validateSpec: k.validateSpec, style: k.style, styleSpec: k.styleSpec });
2872
2891
  } } });
2873
- return r === "identity" && f && v.push(new fe(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || v.push(new fe(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !Qa(i.valueSpec) && v.push(new fe(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (g && !As(i.valueSpec) ? v.push(new fe(i.key, i.value, "property functions not supported")) : f && !ll(i.valueSpec) && v.push(new fe(i.key, i.value, "zoom functions not supported"))), r !== "categorical" && !x || i.value.property !== void 0 || v.push(new fe(i.key, i.value, '"property" property is required')), v;
2892
+ return r === "identity" && f && v.push(new fe(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || v.push(new fe(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !Qa(i.valueSpec) && v.push(new fe(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (g && !Cs(i.valueSpec) ? v.push(new fe(i.key, i.value, "property functions not supported")) : f && !ll(i.valueSpec) && v.push(new fe(i.key, i.value, "zoom functions not supported"))), r !== "categorical" && !x || i.value.property !== void 0 || v.push(new fe(i.key, i.value, '"property" property is required')), v;
2874
2893
  function w(k) {
2875
2894
  let z = [];
2876
2895
  const E = k.value, F = k.key;
@@ -2893,18 +2912,18 @@ var Ku = { exports: {} };
2893
2912
  if (E !== "number" && E !== "string" && E !== "boolean") return [new fe(k.key, j, "stop domain value must be a number, string, or boolean")];
2894
2913
  if (E !== "number" && r !== "categorical") {
2895
2914
  let Q = `number expected, ${E} found`;
2896
- return As(t) && r === void 0 && (Q += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new fe(k.key, j, Q)];
2915
+ return Cs(t) && r === void 0 && (Q += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new fe(k.key, j, Q)];
2897
2916
  }
2898
2917
  return r !== "categorical" || E !== "number" || isFinite(F) && Math.floor(F) === F ? r !== "categorical" && E === "number" && l !== void 0 && F < l ? [new fe(k.key, j, "stop domain values must appear in ascending order")] : (l = F, r === "categorical" && F in d ? [new fe(k.key, j, "stop domain values must be unique")] : (d[F] = !0, [])) : [new fe(k.key, j, `integer expected, found ${F}`)];
2899
2918
  }
2900
2919
  }
2901
- function Rs(i) {
2902
- const t = (i.expressionContext === "property" ? eo : zs)(Qi(i.value), i.valueSpec);
2920
+ function Bs(i) {
2921
+ const t = (i.expressionContext === "property" ? eo : Es)(Qi(i.value), i.valueSpec);
2903
2922
  if (t.result === "error") return t.value.map((n) => new fe(`${i.key}${n.key}`, i.value, n.message));
2904
2923
  const r = t.value.expression || t.value._styleExpression.expression;
2905
2924
  if (i.expressionContext === "property" && i.propertyKey === "text-font" && !r.outputDefined()) return [new fe(i.key, i.value, `Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];
2906
- if (i.expressionContext === "property" && i.propertyType === "layout" && !Ms(r)) return [new fe(i.key, i.value, '"feature-state" data expressions are not supported with layout properties.')];
2907
- if (i.expressionContext === "filter" && !Ms(r)) return [new fe(i.key, i.value, '"feature-state" data expressions are not supported with filters.')];
2925
+ if (i.expressionContext === "property" && i.propertyType === "layout" && !ks(r)) return [new fe(i.key, i.value, '"feature-state" data expressions are not supported with layout properties.')];
2926
+ if (i.expressionContext === "filter" && !ks(r)) return [new fe(i.key, i.value, '"feature-state" data expressions are not supported with filters.')];
2908
2927
  if (i.expressionContext && i.expressionContext.indexOf("cluster") === 0) {
2909
2928
  if (!_n(r, ["zoom", "feature-state"])) return [new fe(i.key, i.value, '"zoom" and "feature-state" expressions are not supported with cluster properties.')];
2910
2929
  if (i.expressionContext === "cluster-initial" && !gn(r)) return [new fe(i.key, i.value, "Feature data expressions are not supported with initial expression part of cluster properties.")];
@@ -2916,7 +2935,7 @@ var Ku = { exports: {} };
2916
2935
  return Array.isArray(n.values) ? n.values.indexOf(Et(r)) === -1 && l.push(new fe(t, r, `expected one of [${n.values.join(", ")}], ${JSON.stringify(r)} found`)) : Object.keys(n.values).indexOf(Et(r)) === -1 && l.push(new fe(t, r, `expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(r)} found`)), l;
2917
2936
  }
2918
2937
  function so(i) {
2919
- return ia(Qi(i.value)) ? Rs(pr({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : aa(i);
2938
+ return ia(Qi(i.value)) ? Bs(pr({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : aa(i);
2920
2939
  }
2921
2940
  function aa(i) {
2922
2941
  const t = i.value, r = i.key;
@@ -2957,7 +2976,7 @@ var Ku = { exports: {} };
2957
2976
  const v = i.valueSpec || g[f];
2958
2977
  if (!v) return [new fe(r, d, `unknown property "${f}"`)];
2959
2978
  let w;
2960
- if (st(d) === "string" && As(v) && !v.tokens && (w = /^{([^}]+)}$/.exec(d))) return [new fe(r, d, `"${f}" does not support interpolation syntax
2979
+ if (st(d) === "string" && Cs(v) && !v.tokens && (w = /^{([^}]+)}$/.exec(d))) return [new fe(r, d, `"${f}" does not support interpolation syntax
2961
2980
  Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(w[1])} }\`.`)];
2962
2981
  const I = [];
2963
2982
  return i.layerType === "symbol" && (f === "text-field" && l && !l.glyphs && I.push(new fe(r, d, 'use of "text-field" requires a style "glyphs" property')), f === "text-font" && Yn(Qi(d)) && Et(d.type) === "identity" && I.push(new fe(r, d, '"text-font" does not support identity functions'))), I.concat(n({ key: i.key, value: d, valueSpec: v, style: l, styleSpec: u, expressionContext: "property", propertyType: t, propertyKey: f }));
@@ -3030,7 +3049,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3030
3049
  case "geojson":
3031
3050
  if (f = Ci({ key: r, value: t, valueSpec: n.source_geojson, style: l, styleSpec: n, validateSpec: u, objectElementValidators: la }), t.cluster) for (const g in t.clusterProperties) {
3032
3051
  const [x, v] = t.clusterProperties[g], w = typeof x == "string" ? [x, ["accumulated"], ["get", g]] : x;
3033
- f.push(...Rs({ key: `${r}.${g}.map`, value: v, validateSpec: u, expressionContext: "cluster-map" })), f.push(...Rs({ key: `${r}.${g}.reduce`, value: w, validateSpec: u, expressionContext: "cluster-reduce" }));
3052
+ f.push(...Bs({ key: `${r}.${g}.map`, value: v, validateSpec: u, expressionContext: "cluster-map" })), f.push(...Bs({ key: `${r}.${g}.reduce`, value: w, validateSpec: u, expressionContext: "cluster-reduce" }));
3034
3053
  }
3035
3054
  return f;
3036
3055
  case "video":
@@ -3096,9 +3115,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3096
3115
  for (const f in t) d = d.concat(n[f] ? i.validateSpec({ key: f, value: t[f], valueSpec: n[f], style: l, styleSpec: r }) : [new fe(f, t[f], `unknown property "${f}"`)]);
3097
3116
  return d;
3098
3117
  }, string: ls, formatted: function(i) {
3099
- return ls(i).length === 0 ? [] : Rs(i);
3118
+ return ls(i).length === 0 ? [] : Bs(i);
3100
3119
  }, resolvedImage: function(i) {
3101
- return ls(i).length === 0 ? [] : Rs(i);
3120
+ return ls(i).length === 0 ? [] : Bs(i);
3102
3121
  }, padding: function(i) {
3103
3122
  const t = i.key, r = i.value;
3104
3123
  if (st(r) === "array") {
@@ -3116,9 +3135,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3116
3135
  for (let d = 0; d < r.length; d += 2) u = u.concat(Cr({ key: `${t}[${d}]`, value: r[d], valueSpec: l.layout_symbol["text-anchor"] })), u = u.concat(bn({ key: `${t}[${d + 1}]`, value: r[d + 1], valueSpec: { length: 2, value: "number" }, validateSpec: i.validateSpec, style: i.style, styleSpec: l }));
3117
3136
  return u;
3118
3137
  }, sprite: uo };
3119
- function Bs(i) {
3138
+ function Fs(i) {
3120
3139
  const t = i.value, r = i.valueSpec, n = i.styleSpec;
3121
- return i.validateSpec = Bs, r.expression && Yn(Et(t)) ? na(i) : r.expression && ta(Qi(t)) ? Rs(i) : r.type && ca[r.type] ? ca[r.type](i) : Ci(pr({}, i, { valueSpec: r.type ? n[r.type] : r }));
3140
+ return i.validateSpec = Fs, r.expression && Yn(Et(t)) ? na(i) : r.expression && ta(Qi(t)) ? Bs(i) : r.type && ca[r.type] ? ca[r.type](i) : Ci(pr({}, i, { valueSpec: r.type ? n[r.type] : r }));
3122
3141
  }
3123
3142
  function gl(i) {
3124
3143
  const t = i.value, r = i.key, n = ls(i);
@@ -3126,11 +3145,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3126
3145
  }
3127
3146
  function Ni(i, t = re) {
3128
3147
  let r = [];
3129
- return r = r.concat(Bs({ key: "", value: i, valueSpec: t.$root, styleSpec: t, style: i, validateSpec: Bs, objectElementValidators: { glyphs: gl, "*": () => [] } })), i.constants && (r = r.concat(ml({ key: "constants", value: i.constants, style: i, styleSpec: t, validateSpec: Bs }))), po(r);
3148
+ return r = r.concat(Fs({ key: "", value: i, valueSpec: t.$root, styleSpec: t, style: i, validateSpec: Fs, objectElementValidators: { glyphs: gl, "*": () => [] } })), i.constants && (r = r.concat(ml({ key: "constants", value: i.constants, style: i, styleSpec: t, validateSpec: Fs }))), po(r);
3130
3149
  }
3131
3150
  function yr(i) {
3132
3151
  return function(t) {
3133
- return i({ ...t, validateSpec: Bs });
3152
+ return i({ ...t, validateSpec: Fs });
3134
3153
  };
3135
3154
  }
3136
3155
  function po(i) {
@@ -3148,7 +3167,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3148
3167
  if (t && t.length) for (const n of t) i.fire(new Br(new Error(n.message))), r = !0;
3149
3168
  return r;
3150
3169
  }
3151
- class Fs {
3170
+ class Os {
3152
3171
  constructor(t, r, n) {
3153
3172
  const l = this.cells = [];
3154
3173
  if (t instanceof ArrayBuffer) {
@@ -3232,7 +3251,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3232
3251
  return r && r.push(n), { buffer: n };
3233
3252
  }
3234
3253
  static deserialize(t) {
3235
- return new Fs(t.buffer);
3254
+ return new Os(t.buffer);
3236
3255
  }
3237
3256
  }
3238
3257
  const ji = {};
@@ -3240,8 +3259,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3240
3259
  if (ji[i]) throw new Error(`${i} is already registered.`);
3241
3260
  Object.defineProperty(t, "_classRegistryKey", { value: i, writeable: !1 }), ji[i] = { klass: t, omit: r.omit || [], shallow: r.shallow || [] };
3242
3261
  }
3243
- ke("Object", Object), ke("TransferableGridIndex", Fs), ke("Color", dt), ke("Error", Error), ke("AJAXError", Pi), ke("ResolvedImage", Ai), ke("StylePropertyFunction", Ls), ke("StyleExpression", ea, { omit: ["_evaluator"] }), ke("ZoomDependentExpression", Ds), ke("ZoomConstantExpression", Es), ke("CompoundExpression", Vi, { omit: ["_evaluate"] });
3244
- for (const i in Ps) Ps[i]._classRegistryKey || ke(`Expression_${i}`, Ps[i]);
3262
+ ke("Object", Object), ke("TransferableGridIndex", Os), ke("Color", dt), ke("Error", Error), ke("AJAXError", Pi), ke("ResolvedImage", Ai), ke("StylePropertyFunction", Rs), ke("StyleExpression", ea, { omit: ["_evaluator"] }), ke("ZoomDependentExpression", Ls), ke("ZoomConstantExpression", Ds), ke("CompoundExpression", Vi, { omit: ["_evaluate"] });
3263
+ for (const i in Ms) Ms[i]._classRegistryKey || ke(`Expression_${i}`, Ms[i]);
3245
3264
  function ha(i) {
3246
3265
  return i && typeof ArrayBuffer < "u" && (i instanceof ArrayBuffer || i.constructor && i.constructor.name === "ArrayBuffer");
3247
3266
  }
@@ -3255,11 +3274,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3255
3274
  return !(!r || r === "Object");
3256
3275
  }(i) && (i == null || typeof i == "boolean" || typeof i == "number" || typeof i == "string" || i instanceof Boolean || i instanceof Number || i instanceof String || i instanceof Date || i instanceof RegExp || i instanceof Blob || i instanceof Error || ha(i) || ur(i) || ArrayBuffer.isView(i) || i instanceof ImageData);
3257
3276
  }
3258
- function Os(i, t) {
3277
+ function Vs(i, t) {
3259
3278
  if (xl(i)) return (ha(i) || ur(i)) && t && t.push(i), ArrayBuffer.isView(i) && t && t.push(i.buffer), i instanceof ImageData && t && t.push(i.data.buffer), i;
3260
3279
  if (Array.isArray(i)) {
3261
3280
  const u = [];
3262
- for (const d of i) u.push(Os(d, t));
3281
+ for (const d of i) u.push(Vs(d, t));
3263
3282
  return u;
3264
3283
  }
3265
3284
  if (typeof i != "object") throw new Error("can't serialize object of type " + typeof i);
@@ -3273,16 +3292,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3273
3292
  for (const u in i) {
3274
3293
  if (!i.hasOwnProperty(u) || ji[r].omit.indexOf(u) >= 0) continue;
3275
3294
  const d = i[u];
3276
- l[u] = ji[r].shallow.indexOf(u) >= 0 ? d : Os(d, t);
3295
+ l[u] = ji[r].shallow.indexOf(u) >= 0 ? d : Vs(d, t);
3277
3296
  }
3278
3297
  i instanceof Error && (l.message = i.message);
3279
3298
  }
3280
3299
  if (l.$name) throw new Error("$name property is reserved for worker serialization logic.");
3281
3300
  return r !== "Object" && (l.$name = r), l;
3282
3301
  }
3283
- function Vs(i) {
3302
+ function Ns(i) {
3284
3303
  if (xl(i)) return i;
3285
- if (Array.isArray(i)) return i.map(Vs);
3304
+ if (Array.isArray(i)) return i.map(Ns);
3286
3305
  if (typeof i != "object") throw new Error("can't deserialize object of type " + typeof i);
3287
3306
  const t = mo(i) || "Object";
3288
3307
  if (!ji[t]) throw new Error(`can't deserialize unregistered class ${t}`);
@@ -3293,7 +3312,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3293
3312
  for (const l of Object.keys(i)) {
3294
3313
  if (l === "$name") continue;
3295
3314
  const u = i[l];
3296
- n[l] = ji[t].shallow.indexOf(l) >= 0 ? u : Vs(u);
3315
+ n[l] = ji[t].shallow.indexOf(l) >= 0 ? u : Ns(u);
3297
3316
  }
3298
3317
  return n;
3299
3318
  }
@@ -3312,7 +3331,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3312
3331
  return !1;
3313
3332
  }
3314
3333
  function pc(i) {
3315
- for (const t of i) if (!Ns(t.charCodeAt(0))) return !1;
3334
+ for (const t of i) if (!js(t.charCodeAt(0))) return !1;
3316
3335
  return !0;
3317
3336
  }
3318
3337
  function yo(i) {
@@ -3326,7 +3345,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3326
3345
  return new RegExp(t.join("|"), "u");
3327
3346
  }
3328
3347
  const fc = yo(["Arab", "Dupl", "Mong", "Ougr", "Syrc"]);
3329
- function Ns(i) {
3348
+ function js(i) {
3330
3349
  return !fc.test(String.fromCodePoint(i));
3331
3350
  }
3332
3351
  const vl = yo(["Bopo", "Hani", "Hira", "Kana", "Kits", "Nshu", "Tang", "Yiii"]);
@@ -3390,10 +3409,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3390
3409
  return t > this.zoomHistory.lastIntegerZoom ? { fromScale: 2, toScale: 1, t: r + (1 - r) * n } : { fromScale: 0.5, toScale: 1, t: 1 - (1 - n) * r };
3391
3410
  }
3392
3411
  }
3393
- class js {
3412
+ class Us {
3394
3413
  constructor(t, r) {
3395
3414
  this.property = t, this.value = r, this.expression = function(n, l) {
3396
- if (Yn(n)) return new Ls(n, l);
3415
+ if (Yn(n)) return new Rs(n, l);
3397
3416
  if (ta(n)) {
3398
3417
  const u = eo(n, l);
3399
3418
  if (u.result === "error") throw new Error(u.value.map((d) => `${d.key}: ${d.message}`).join(", "));
@@ -3414,7 +3433,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3414
3433
  }
3415
3434
  class ua {
3416
3435
  constructor(t) {
3417
- this.property = t, this.value = new js(t, void 0);
3436
+ this.property = t, this.value = new Us(t, void 0);
3418
3437
  }
3419
3438
  transitioned(t, r) {
3420
3439
  return new wl(this.property, this.value, r, Bi({}, t.transition, this.transition), t.now);
@@ -3431,7 +3450,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3431
3450
  return pt(this._values[t].value.value);
3432
3451
  }
3433
3452
  setValue(t, r) {
3434
- Object.prototype.hasOwnProperty.call(this._values, t) || (this._values[t] = new ua(this._values[t].property)), this._values[t].value = new js(this._values[t].property, r === null ? void 0 : pt(r));
3453
+ Object.prototype.hasOwnProperty.call(this._values, t) || (this._values[t] = new ua(this._values[t].property)), this._values[t].value = new Us(this._values[t].property, r === null ? void 0 : pt(r));
3435
3454
  }
3436
3455
  getTransition(t) {
3437
3456
  return pt(this._values[t].transition);
@@ -3508,7 +3527,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3508
3527
  return pt(this._values[t].value);
3509
3528
  }
3510
3529
  setValue(t, r) {
3511
- this._values[t] = new js(this._values[t].property, r === null ? void 0 : pt(r));
3530
+ this._values[t] = new Us(this._values[t].property, r === null ? void 0 : pt(r));
3512
3531
  }
3513
3532
  serialize() {
3514
3533
  const t = {};
@@ -3644,14 +3663,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3644
3663
  for (const r in t) {
3645
3664
  const n = t[r];
3646
3665
  n.specification.overridable && this.overridableProperties.push(r);
3647
- const l = this.defaultPropertyValues[r] = new js(n, void 0), u = this.defaultTransitionablePropertyValues[r] = new ua(n);
3666
+ const l = this.defaultPropertyValues[r] = new Us(n, void 0), u = this.defaultTransitionablePropertyValues[r] = new ua(n);
3648
3667
  this.defaultTransitioningPropertyValues[r] = u.untransitioned(), this.defaultPossiblyEvaluatedValues[r] = l.possiblyEvaluate({});
3649
3668
  }
3650
3669
  }
3651
3670
  }
3652
3671
  ke("DataDrivenProperty", Ve), ke("DataConstantProperty", Ce), ke("CrossFadedDataDrivenProperty", pa), ke("CrossFadedProperty", fa), ke("ColorRampProperty", bo);
3653
3672
  const e = "-transition";
3654
- class s extends ys {
3673
+ class s extends xs {
3655
3674
  constructor(t, r) {
3656
3675
  if (super(), this.id = t.id, this.type = t.type, this._featureFilter = { filter: () => !0, needGeometry: !1 }, t.type !== "custom" && (this.metadata = t.metadata, this.minzoom = t.minzoom, this.maxzoom = t.maxzoom, t.type !== "background" && (this.source = t.source, this.sourceLayer = t["source-layer"], this.filter = t.filter), r.layout && (this._unevaluatedLayout = new Tn(r.layout)), r.paint)) {
3657
3676
  this._transitionablePaint = new da(r.paint);
@@ -3720,7 +3739,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3720
3739
  isStateDependent() {
3721
3740
  for (const t in this.paint._values) {
3722
3741
  const r = this.paint.get(t);
3723
- if (r instanceof xr && As(r.property.specification) && (r.value.kind === "source" || r.value.kind === "composite") && r.value.isStateDependent) return !0;
3742
+ if (r instanceof xr && Cs(r.property.specification) && (r.value.kind === "source" || r.value.kind === "composite") && r.value.isStateDependent) return !0;
3724
3743
  }
3725
3744
  return !1;
3726
3745
  }
@@ -4355,11 +4374,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4355
4374
  }
4356
4375
  class vr extends y {
4357
4376
  }
4358
- class Us extends T {
4377
+ class $s extends T {
4359
4378
  }
4360
4379
  class ma extends A {
4361
4380
  }
4362
- class $s extends D {
4381
+ class qs extends D {
4363
4382
  }
4364
4383
  class Ui extends R {
4365
4384
  }
@@ -4400,8 +4419,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4400
4419
  return 256 * (i = $t(Math.floor(i), 0, 255)) + $t(Math.floor(t), 0, 255);
4401
4420
  }
4402
4421
  tt.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, ke("SegmentVector", tt);
4403
- const qs = m([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]);
4404
- var Zs = { exports: {} }, Sl = { exports: {} };
4422
+ const Zs = m([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]);
4423
+ var Gs = { exports: {} }, Sl = { exports: {} };
4405
4424
  Sl.exports = function(i, t) {
4406
4425
  var r, n, l, u, d, f, g, x;
4407
4426
  for (n = i.length - (r = 3 & i.length), l = t, d = 3432918353, f = 461845907, x = 0; x < n; ) g = 255 & i.charCodeAt(x) | (255 & i.charCodeAt(++x)) << 8 | (255 & i.charCodeAt(++x)) << 16 | (255 & i.charCodeAt(++x)) << 24, ++x, l = 27492 + (65535 & (u = 5 * (65535 & (l = (l ^= g = (65535 & (g = (g = (65535 & g) * d + (((g >>> 16) * d & 65535) << 16) & 4294967295) << 15 | g >>> 17)) * f + (((g >>> 16) * f & 65535) << 16) & 4294967295) << 13 | l >>> 19)) + ((5 * (l >>> 16) & 65535) << 16) & 4294967295)) + ((58964 + (u >>> 16) & 65535) << 16);
@@ -4429,8 +4448,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4429
4448
  return l = 1540483477 * (65535 & (l ^= l >>> 13)) + ((1540483477 * (l >>> 16) & 65535) << 16), (l ^= l >>> 15) >>> 0;
4430
4449
  };
4431
4450
  var $r = yc, Il = Tl.exports;
4432
- Zs.exports = $r, Zs.exports.murmur3 = $r, Zs.exports.murmur2 = Il;
4433
- var _a = ht(Zs.exports);
4451
+ Gs.exports = $r, Gs.exports.murmur3 = $r, Gs.exports.murmur2 = Il;
4452
+ var _a = ht(Gs.exports);
4434
4453
  class Pn {
4435
4454
  constructor() {
4436
4455
  this.ids = [], this.positions = [], this.indexed = !1;
@@ -4475,12 +4494,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4475
4494
  d--;
4476
4495
  while (i[d] > l);
4477
4496
  if (u >= d) break;
4478
- Gs(i, u, d), Gs(t, 3 * u, 3 * d), Gs(t, 3 * u + 1, 3 * d + 1), Gs(t, 3 * u + 2, 3 * d + 2);
4497
+ Hs(i, u, d), Hs(t, 3 * u, 3 * d), Hs(t, 3 * u + 1, 3 * d + 1), Hs(t, 3 * u + 2, 3 * d + 2);
4479
4498
  }
4480
4499
  d - r < n - d ? (xa(i, t, r, d), r = d + 1) : (xa(i, t, d + 1, n), n = d);
4481
4500
  }
4482
4501
  }
4483
- function Gs(i, t, r) {
4502
+ function Hs(i, t, r) {
4484
4503
  const n = i[t];
4485
4504
  i[t] = i[r], i[r] = n;
4486
4505
  }
@@ -4607,7 +4626,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4607
4626
  return new Pl(t, r);
4608
4627
  }
4609
4628
  }
4610
- class Hs {
4629
+ class Xs {
4611
4630
  constructor(t, r, n, l, u, d) {
4612
4631
  this.expression = t, this.type = r, this.useIntegerZoom = n, this.zoom = l, this.layerId = d, this.zoomInPaintVertexArray = new u(), this.zoomOutPaintVertexArray = new u();
4613
4632
  }
@@ -4624,7 +4643,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4624
4643
  if (g && x && v) for (let w = t; w < r; w++) this.zoomInPaintVertexArray.emplace(w, x.tl[0], x.tl[1], x.br[0], x.br[1], g.tl[0], g.tl[1], g.br[0], g.br[1], x.pixelRatio, g.pixelRatio), this.zoomOutPaintVertexArray.emplace(w, x.tl[0], x.tl[1], x.br[0], x.br[1], v.tl[0], v.tl[1], v.br[0], v.br[1], x.pixelRatio, v.pixelRatio);
4625
4644
  }
4626
4645
  upload(t) {
4627
- this.zoomInPaintVertexArray && this.zoomInPaintVertexArray.arrayBuffer && this.zoomOutPaintVertexArray && this.zoomOutPaintVertexArray.arrayBuffer && (this.zoomInPaintVertexBuffer = t.createVertexBuffer(this.zoomInPaintVertexArray, qs.members, this.expression.isStateDependent), this.zoomOutPaintVertexBuffer = t.createVertexBuffer(this.zoomOutPaintVertexArray, qs.members, this.expression.isStateDependent));
4646
+ this.zoomInPaintVertexArray && this.zoomInPaintVertexArray.arrayBuffer && this.zoomOutPaintVertexArray && this.zoomOutPaintVertexArray.arrayBuffer && (this.zoomInPaintVertexBuffer = t.createVertexBuffer(this.zoomInPaintVertexArray, Zs.members, this.expression.isStateDependent), this.zoomOutPaintVertexBuffer = t.createVertexBuffer(this.zoomOutPaintVertexArray, Zs.members, this.expression.isStateDependent));
4628
4647
  }
4629
4648
  destroy() {
4630
4649
  this.zoomOutPaintVertexBuffer && this.zoomOutPaintVertexBuffer.destroy(), this.zoomInPaintVertexBuffer && this.zoomInPaintVertexBuffer.destroy();
@@ -4637,12 +4656,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4637
4656
  for (const u in t.paint._values) {
4638
4657
  if (!n(u)) continue;
4639
4658
  const d = t.paint.get(u);
4640
- if (!(d instanceof xr && As(d.property.specification))) continue;
4659
+ if (!(d instanceof xr && Cs(d.property.specification))) continue;
4641
4660
  const f = td(u, t.type), g = d.value, x = d.property.specification.type, v = d.property.useIntegerZoom, w = d.property.specification["property-type"], I = w === "cross-faded" || w === "cross-faded-data-driven";
4642
4661
  if (g.kind === "constant") this.binders[u] = I ? new va(g.value, f) : new So(g.value, f, x), l.push(`/u_${u}`);
4643
4662
  else if (g.kind === "source" || I) {
4644
4663
  const k = ph(u, x, "source");
4645
- this.binders[u] = I ? new Hs(g, x, v, r, k, t.id) : new us(g, f, x, k), l.push(`/a_${u}`);
4664
+ this.binders[u] = I ? new Xs(g, x, v, r, k, t.id) : new us(g, f, x, k), l.push(`/a_${u}`);
4646
4665
  } else {
4647
4666
  const k = ph(u, x, "composite");
4648
4667
  this.binders[u] = new zr(g, f, x, v, r, k), l.push(`/z_${u}`);
@@ -4657,7 +4676,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4657
4676
  populatePaintArrays(t, r, n, l, u) {
4658
4677
  for (const d in this.binders) {
4659
4678
  const f = this.binders[d];
4660
- (f instanceof us || f instanceof zr || f instanceof Hs) && f.populatePaintArray(t, r, n, l, u);
4679
+ (f instanceof us || f instanceof zr || f instanceof Xs) && f.populatePaintArray(t, r, n, l, u);
4661
4680
  }
4662
4681
  }
4663
4682
  setConstantPatternPositions(t, r) {
@@ -4674,7 +4693,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4674
4693
  const v = n.feature(x.index);
4675
4694
  for (const w in this.binders) {
4676
4695
  const I = this.binders[w];
4677
- if ((I instanceof us || I instanceof zr || I instanceof Hs) && I.expression.isStateDependent === !0) {
4696
+ if ((I instanceof us || I instanceof zr || I instanceof Xs) && I.expression.isStateDependent === !0) {
4678
4697
  const k = l.paint.get(w);
4679
4698
  I.expression = k.value, I.updatePaintArray(x.start, x.end, v, t[f], u), d = !0;
4680
4699
  }
@@ -4696,7 +4715,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4696
4715
  for (const r in this.binders) {
4697
4716
  const n = this.binders[r];
4698
4717
  if (n instanceof us || n instanceof zr) for (let l = 0; l < n.paintVertexAttributes.length; l++) t.push(n.paintVertexAttributes[l].name);
4699
- else if (n instanceof Hs) for (let l = 0; l < qs.members.length; l++) t.push(qs.members[l].name);
4718
+ else if (n instanceof Xs) for (let l = 0; l < Zs.members.length; l++) t.push(Zs.members[l].name);
4700
4719
  }
4701
4720
  return t;
4702
4721
  }
@@ -4731,7 +4750,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4731
4750
  this._buffers = [];
4732
4751
  for (const r in this.binders) {
4733
4752
  const n = this.binders[r];
4734
- if (t && n instanceof Hs) {
4753
+ if (t && n instanceof Xs) {
4735
4754
  const l = t.fromScale === 2 ? n.zoomInPaintVertexBuffer : n.zoomOutPaintVertexBuffer;
4736
4755
  l && this._buffers.push(l);
4737
4756
  } else (n instanceof us || n instanceof zr) && n.paintVertexBuffer && this._buffers.push(n.paintVertexBuffer);
@@ -4740,14 +4759,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4740
4759
  upload(t) {
4741
4760
  for (const r in this.binders) {
4742
4761
  const n = this.binders[r];
4743
- (n instanceof us || n instanceof zr || n instanceof Hs) && n.upload(t);
4762
+ (n instanceof us || n instanceof zr || n instanceof Xs) && n.upload(t);
4744
4763
  }
4745
4764
  this.updatePaintBuffers();
4746
4765
  }
4747
4766
  destroy() {
4748
4767
  for (const t in this.binders) {
4749
4768
  const r = this.binders[t];
4750
- (r instanceof us || r instanceof zr || r instanceof Hs) && r.destroy();
4769
+ (r instanceof us || r instanceof zr || r instanceof Xs) && r.destroy();
4751
4770
  }
4752
4771
  }
4753
4772
  }
@@ -4786,10 +4805,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4786
4805
  }(i);
4787
4806
  return l && l[r] || n[t][r];
4788
4807
  }
4789
- ke("ConstantBinder", So), ke("CrossFadedConstantBinder", va), ke("SourceExpressionBinder", us), ke("CrossFadedCompositeBinder", Hs), ke("CompositeExpressionBinder", zr), ke("ProgramConfiguration", dh, { omit: ["_buffers"] }), ke("ProgramConfigurationSet", kn);
4790
- const Vt = 8192, vc = Math.pow(2, 14) - 1, fh = -vc - 1;
4808
+ ke("ConstantBinder", So), ke("CrossFadedConstantBinder", va), ke("SourceExpressionBinder", us), ke("CrossFadedCompositeBinder", Xs), ke("CompositeExpressionBinder", zr), ke("ProgramConfiguration", dh, { omit: ["_buffers"] }), ke("ProgramConfigurationSet", kn);
4809
+ const jt = 8192, vc = Math.pow(2, 14) - 1, fh = -vc - 1;
4791
4810
  function An(i) {
4792
- const t = Vt / i.extent, r = i.loadGeometry();
4811
+ const t = jt / i.extent, r = i.loadGeometry();
4793
4812
  for (let n = 0; n < r.length; n++) {
4794
4813
  const l = r[n];
4795
4814
  for (let u = 0; u < l.length; u++) {
@@ -4843,7 +4862,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4843
4862
  addFeature(t, r, n, l) {
4844
4863
  for (const u of r) for (const d of u) {
4845
4864
  const f = d.x, g = d.y;
4846
- if (f < 0 || f >= Vt || g < 0 || g >= Vt) continue;
4865
+ if (f < 0 || f >= jt || g < 0 || g >= jt) continue;
4847
4866
  const x = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray, t.sortKey), v = x.vertexLength;
4848
4867
  Ml(this.layoutVertexArray, f, g, -1, -1), Ml(this.layoutVertexArray, f, g, 1, -1), Ml(this.layoutVertexArray, f, g, 1, 1), Ml(this.layoutVertexArray, f, g, -1, 1), this.indexArray.emplaceBack(v, v + 1, v + 2), this.indexArray.emplaceBack(v, v + 3, v + 2), x.vertexLength += 4, x.primitiveLength += 2;
4849
4868
  }
@@ -5453,7 +5472,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5453
5472
  }
5454
5473
  }
5455
5474
  const Pd = m([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), Md = m([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: kd } = Pd;
5456
- var Xs = {}, Ad = Bt, Rh = Ta;
5475
+ var Ws = {}, Ad = Ot, Rh = Ta;
5457
5476
  function Ta(i, t, r, n, l) {
5458
5477
  this.properties = {}, this.extent = r, this.type = 0, this._pbf = i, this._geometry = -1, this._keys = n, this._values = l, i.readFields(Cd, this, t);
5459
5478
  }
@@ -5554,16 +5573,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5554
5573
  n.length && (t[n.name] = n);
5555
5574
  }
5556
5575
  }
5557
- Xs.VectorTile = function(i, t) {
5576
+ Ws.VectorTile = function(i, t) {
5558
5577
  this.layers = i.readFields(Rd, {}, t);
5559
- }, Xs.VectorTileFeature = Rh, Xs.VectorTileLayer = Bh;
5560
- const Bd = Xs.VectorTileFeature.types, Dc = Math.pow(2, 13);
5578
+ }, Ws.VectorTileFeature = Rh, Ws.VectorTileLayer = Bh;
5579
+ const Bd = Ws.VectorTileFeature.types, Dc = Math.pow(2, 13);
5561
5580
  function Co(i, t, r, n, l, u, d, f) {
5562
5581
  i.emplaceBack(t, r, 2 * Math.floor(n * Dc) + d, l * Dc * 2, u * Dc * 2, Math.round(f));
5563
5582
  }
5564
5583
  class Lc {
5565
5584
  constructor(t) {
5566
- this.zoom = t.zoom, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map((r) => r.id), this.index = t.index, this.hasPattern = !1, this.layoutVertexArray = new Us(), this.centroidVertexArray = new ti(), this.indexArray = new ir(), this.programConfigurations = new kn(t.layers, t.zoom), this.segments = new tt(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5585
+ this.zoom = t.zoom, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map((r) => r.id), this.index = t.index, this.hasPattern = !1, this.layoutVertexArray = new $s(), this.centroidVertexArray = new ti(), this.indexArray = new ir(), this.programConfigurations = new kn(t.layers, t.zoom), this.segments = new tt(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5567
5586
  }
5568
5587
  populate(t, r, n) {
5569
5588
  this.features = [], this.hasPattern = Cc("fill-extrusion", this.layers, r);
@@ -5639,10 +5658,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5639
5658
  }
5640
5659
  }
5641
5660
  function Fd(i, t) {
5642
- return i.x === t.x && (i.x < 0 || i.x > Vt) || i.y === t.y && (i.y < 0 || i.y > Vt);
5661
+ return i.x === t.x && (i.x < 0 || i.x > jt) || i.y === t.y && (i.y < 0 || i.y > jt);
5643
5662
  }
5644
5663
  function Od(i) {
5645
- return i.every((t) => t.x < 0) || i.every((t) => t.x > Vt) || i.every((t) => t.y < 0) || i.every((t) => t.y > Vt);
5664
+ return i.every((t) => t.x < 0) || i.every((t) => t.x > jt) || i.every((t) => t.y < 0) || i.every((t) => t.y > jt);
5646
5665
  }
5647
5666
  let Oh;
5648
5667
  ke("FillExtrusionBucket", Lc, { omit: ["layers", "features"] });
@@ -5719,12 +5738,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5719
5738
  return r;
5720
5739
  }
5721
5740
  }
5722
- const jd = m([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: Ud } = jd, $d = m([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: qd } = $d, Zd = Xs.VectorTileFeature.types, Gd = Math.cos(Math.PI / 180 * 37.5), Nh = Math.pow(2, 14) / 0.5;
5741
+ const jd = m([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: Ud } = jd, $d = m([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: qd } = $d, Zd = Ws.VectorTileFeature.types, Gd = Math.cos(Math.PI / 180 * 37.5), Nh = Math.pow(2, 14) / 0.5;
5723
5742
  class Rc {
5724
5743
  constructor(t) {
5725
5744
  this.zoom = t.zoom, this.overscaling = t.overscaling, this.layers = t.layers, this.layerIds = this.layers.map((r) => r.id), this.index = t.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((r) => {
5726
5745
  this.gradients[r.id] = {};
5727
- }), this.layoutVertexArray = new ma(), this.layoutVertexArray2 = new $s(), this.indexArray = new ir(), this.programConfigurations = new kn(t.layers, t.zoom), this.segments = new tt(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5746
+ }), this.layoutVertexArray = new ma(), this.layoutVertexArray2 = new qs(), this.indexArray = new ir(), this.programConfigurations = new kn(t.layers, t.zoom), this.segments = new tt(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5728
5747
  }
5729
5748
  populate(t, r, n) {
5730
5749
  this.hasPattern = Cc("line", this.layers, r);
@@ -5785,7 +5804,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5785
5804
  for (; x < g - 1 && t[x].equals(t[x + 1]); ) x++;
5786
5805
  if (g < (f ? 3 : 2)) return;
5787
5806
  n === "bevel" && (u = 1.05);
5788
- const v = this.overscaling <= 16 ? 15 * Vt / (512 * this.overscaling) : 0, w = this.segments.prepareSegment(10 * g, this.layoutVertexArray, this.indexArray);
5807
+ const v = this.overscaling <= 16 ? 15 * jt / (512 * this.overscaling) : 0, w = this.segments.prepareSegment(10 * g, this.layoutVertexArray, this.indexArray);
5789
5808
  let I, k, z, E, F;
5790
5809
  this.e1 = this.e2 = -1, f && (I = t[g - 2], F = t[x].sub(I)._unit()._perp());
5791
5810
  for (let j = x; j < g; j++) {
@@ -5882,7 +5901,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5882
5901
  const r = this.gradientExpression();
5883
5902
  this.stepInterpolant = !!function(n) {
5884
5903
  return n._styleExpression !== void 0;
5885
- }(r) && r._styleExpression.expression instanceof Ss, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER;
5904
+ }(r) && r._styleExpression.expression instanceof Ts, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER;
5886
5905
  }
5887
5906
  }
5888
5907
  gradientExpression() {
@@ -6320,8 +6339,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6320
6339
  n.update(r.data, void 0, { x: l, y: u });
6321
6340
  }
6322
6341
  }
6323
- var Ws;
6324
- ke("ImagePosition", Vc), ke("ImageAtlas", tu), C.ah = void 0, (Ws = C.ah || (C.ah = {}))[Ws.none = 0] = "none", Ws[Ws.horizontal = 1] = "horizontal", Ws[Ws.vertical = 2] = "vertical", Ws[Ws.horizontalOnly = 3] = "horizontalOnly";
6342
+ var Ks;
6343
+ ke("ImagePosition", Vc), ke("ImageAtlas", tu), C.ah = void 0, (Ks = C.ah || (C.ah = {}))[Ks.none = 0] = "none", Ks[Ks.horizontal = 1] = "horizontal", Ks[Ks.vertical = 2] = "vertical", Ks[Ks.horizontalOnly = 3] = "horizontalOnly";
6325
6344
  const Do = -17;
6326
6345
  class Lo {
6327
6346
  constructor() {
@@ -6599,7 +6618,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6599
6618
  const z = t.top * u, E = t.bottom * u;
6600
6619
  return r === "height" || r === "both" ? (v = l[1] + z - n[0], I = l[1] + E + n[2]) : (v = l[1] + (z + E - d.displaySize[1]) / 2, I = v + d.displaySize[1]), { image: d, top: v, right: w, bottom: I, left: k, collisionPadding: f };
6601
6620
  }
6602
- const Ro = 255, qr = 128, Ks = Ro * qr;
6621
+ const Ro = 255, qr = 128, Js = Ro * qr;
6603
6622
  function lu(i, t) {
6604
6623
  const { expression: r } = t;
6605
6624
  if (r.kind === "constant") return { kind: "constant", layoutSize: r.evaluate(new bt(i + 1)) };
@@ -6621,9 +6640,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6621
6640
  const l = i.get(t);
6622
6641
  return l ? n = l : i.get(r) && (n = "always"), n;
6623
6642
  }
6624
- const _p = Xs.VectorTileFeature.types, yp = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
6643
+ const _p = Ws.VectorTileFeature.types, yp = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
6625
6644
  function Ol(i, t, r, n, l, u, d, f, g, x, v, w, I) {
6626
- const k = f ? Math.min(Ks, Math.round(f[0])) : 0, z = f ? Math.min(Ks, Math.round(f[1])) : 0;
6645
+ const k = f ? Math.min(Js, Math.round(f[0])) : 0, z = f ? Math.min(Js, Math.round(f[1])) : 0;
6627
6646
  i.emplaceBack(t, r, Math.round(32 * n), Math.round(32 * l), u, d, (k << 1) + (g ? 1 : 0), z, 16 * x, 16 * v, 256 * w, 256 * I);
6628
6647
  }
6629
6648
  function $c(i, t, r) {
@@ -6942,7 +6961,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6942
6961
  if (!Vl.hasPaintOverride(this.layout, t)) continue;
6943
6962
  const r = this.paint.get(t), n = new uu(r), l = new ea(n, r.property.specification);
6944
6963
  let u = null;
6945
- u = r.value.kind === "constant" || r.value.kind === "source" ? new Es("source", l) : new Ds("composite", l, r.value.zoomStops), this.paint._values[t] = new xr(r.property, u, r.parameters);
6964
+ u = r.value.kind === "constant" || r.value.kind === "source" ? new Ds("source", l) : new Ls("composite", l, r.value.zoomStops), this.paint._values[t] = new xr(r.property, u, r.parameters);
6946
6965
  }
6947
6966
  }
6948
6967
  _handleOverridablePaintPropertyUpdate(t, r, n) {
@@ -6957,7 +6976,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6957
6976
  if (n.value.kind === "constant" && n.value.value instanceof Mi) d(n.value.value.sections);
6958
6977
  else if (n.value.kind === "source") {
6959
6978
  const f = (x) => {
6960
- u || (x instanceof Ki && Ot(x.value) === kr ? d(x.value.sections) : x instanceof Zn ? d(x.sections) : x.eachChild(f));
6979
+ u || (x instanceof Ki && Nt(x.value) === kr ? d(x.value.sections) : x instanceof Zn ? d(x.sections) : x.eachChild(f));
6961
6980
  }, g = n.value;
6962
6981
  g._styleExpression && f(g._styleExpression.expression);
6963
6982
  }
@@ -7024,13 +7043,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7024
7043
  }
7025
7044
  }
7026
7045
  const Hc = 63710088e-1;
7027
- class Js {
7046
+ class Ys {
7028
7047
  constructor(t, r) {
7029
7048
  if (isNaN(t) || isNaN(r)) throw new Error(`Invalid LngLat object: (${t}, ${r})`);
7030
7049
  if (this.lng = +t, this.lat = +r, this.lat > 90 || this.lat < -90) throw new Error("Invalid LngLat latitude value: must be between -90 and 90");
7031
7050
  }
7032
7051
  wrap() {
7033
- return new Js(cr(this.lng, -180, 180), this.lat);
7052
+ return new Ys(cr(this.lng, -180, 180), this.lat);
7034
7053
  }
7035
7054
  toArray() {
7036
7055
  return [this.lng, this.lat];
@@ -7043,9 +7062,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7043
7062
  return Hc * Math.acos(Math.min(u, 1));
7044
7063
  }
7045
7064
  static convert(t) {
7046
- if (t instanceof Js) return t;
7047
- if (Array.isArray(t) && (t.length === 2 || t.length === 3)) return new Js(Number(t[0]), Number(t[1]));
7048
- if (!Array.isArray(t) && typeof t == "object" && t !== null) return new Js(Number("lng" in t ? t.lng : t.lon), Number(t.lat));
7065
+ if (t instanceof Ys) return t;
7066
+ if (Array.isArray(t) && (t.length === 2 || t.length === 3)) return new Ys(Number(t[0]), Number(t[1]));
7067
+ if (!Array.isArray(t) && typeof t == "object" && t !== null) return new Ys(Number("lng" in t ? t.lng : t.lon), Number(t.lat));
7049
7068
  throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]");
7050
7069
  }
7051
7070
  }
@@ -7070,11 +7089,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7070
7089
  this.x = +t, this.y = +r, this.z = +n;
7071
7090
  }
7072
7091
  static fromLngLat(t, r = 0) {
7073
- const n = Js.convert(t);
7092
+ const n = Ys.convert(t);
7074
7093
  return new Bo(gu(n.lng), _u(n.lat), yu(r, n.lat));
7075
7094
  }
7076
7095
  toLngLat() {
7077
- return new Js(360 * this.x - 180, Xc(this.y));
7096
+ return new Ys(360 * this.x - 180, Xc(this.y));
7078
7097
  }
7079
7098
  toAltitude() {
7080
7099
  return this.z * mu(Xc(this.y));
@@ -7114,7 +7133,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7114
7133
  }
7115
7134
  getTilePoint(t) {
7116
7135
  const r = Math.pow(2, this.z);
7117
- return new he((t.x * r - this.x) * Vt, (t.y * r - this.y) * Vt);
7136
+ return new he((t.x * r - this.x) * jt, (t.y * r - this.y) * jt);
7118
7137
  }
7119
7138
  toString() {
7120
7139
  return `${this.z}/${this.x}/${this.y}`;
@@ -7280,7 +7299,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7280
7299
  }
7281
7300
  class Tu {
7282
7301
  constructor(t, r) {
7283
- this.tileID = t, this.x = t.canonical.x, this.y = t.canonical.y, this.z = t.canonical.z, this.grid = new Fs(Vt, 16, 0), this.grid3D = new Fs(Vt, 16, 0), this.featureIndexArray = new hi(), this.promoteId = r;
7302
+ this.tileID = t, this.x = t.canonical.x, this.y = t.canonical.y, this.z = t.canonical.z, this.grid = new Os(jt, 16, 0), this.grid3D = new Os(jt, 16, 0), this.featureIndexArray = new hi(), this.promoteId = r;
7284
7303
  }
7285
7304
  insert(t, r, n, l, u, d) {
7286
7305
  const f = this.featureIndexArray.length;
@@ -7292,15 +7311,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7292
7311
  const k = v[I];
7293
7312
  w[0] = Math.min(w[0], k.x), w[1] = Math.min(w[1], k.y), w[2] = Math.max(w[2], k.x), w[3] = Math.max(w[3], k.y);
7294
7313
  }
7295
- w[0] < Vt && w[1] < Vt && w[2] >= 0 && w[3] >= 0 && g.insert(f, w[0], w[1], w[2], w[3]);
7314
+ w[0] < jt && w[1] < jt && w[2] >= 0 && w[3] >= 0 && g.insert(f, w[0], w[1], w[2], w[3]);
7296
7315
  }
7297
7316
  }
7298
7317
  loadVTLayers() {
7299
- return this.vtLayers || (this.vtLayers = new Xs.VectorTile(new Fc(this.rawTileData)).layers, this.sourceLayerCoder = new wu(this.vtLayers ? Object.keys(this.vtLayers).sort() : ["_geojsonTileLayer"])), this.vtLayers;
7318
+ return this.vtLayers || (this.vtLayers = new Ws.VectorTile(new Fc(this.rawTileData)).layers, this.sourceLayerCoder = new wu(this.vtLayers ? Object.keys(this.vtLayers).sort() : ["_geojsonTileLayer"])), this.vtLayers;
7300
7319
  }
7301
7320
  query(t, r, n, l) {
7302
7321
  this.loadVTLayers();
7303
- const u = t.params || {}, d = Vt / t.tileSize / t.scale, f = to(u.filter), g = t.queryGeometry, x = t.queryPadding * d, v = Pu(g), w = this.grid.query(v.minX - x, v.minY - x, v.maxX + x, v.maxY + x), I = Pu(t.cameraQueryGeometry), k = this.grid3D.query(I.minX - x, I.minY - x, I.maxX + x, I.maxY + x, (F, j, Q, G) => function(J, se, ue, Ie, Oe) {
7322
+ const u = t.params || {}, d = jt / t.tileSize / t.scale, f = to(u.filter), g = t.queryGeometry, x = t.queryPadding * d, v = Pu(g), w = this.grid.query(v.minX - x, v.minY - x, v.maxX + x, v.maxY + x), I = Pu(t.cameraQueryGeometry), k = this.grid3D.query(I.minX - x, I.minY - x, I.maxX + x, I.maxY + x, (F, j, Q, G) => function(J, se, ue, Ie, Oe) {
7304
7323
  for (const be of J) if (se <= be.x && ue <= be.y && Ie >= be.x && Oe >= be.y) return !0;
7305
7324
  const Se = [new he(se, ue), new he(se, Oe), new he(Ie, Oe), new he(Ie, ue)];
7306
7325
  if (J.length > 2) {
@@ -7395,12 +7414,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7395
7414
  return u;
7396
7415
  }
7397
7416
  ke("FeatureIndex", Tu, { omit: ["rawTileData", "sourceLayerCoder"] });
7398
- class Ys extends he {
7417
+ class Qs extends he {
7399
7418
  constructor(t, r, n, l) {
7400
7419
  super(t, r), this.angle = n, l !== void 0 && (this.segment = l);
7401
7420
  }
7402
7421
  clone() {
7403
- return new Ys(this.x, this.y, this.angle, this.segment);
7422
+ return new Qs(this.x, this.y, this.angle, this.segment);
7404
7423
  }
7405
7424
  }
7406
7425
  function ku(i, t, r, n, l) {
@@ -7441,7 +7460,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7441
7460
  for (let v = 0; v < i.length - 1; v++) {
7442
7461
  const w = i[v], I = i[v + 1], k = w.dist(I);
7443
7462
  if (g + k > x) {
7444
- const z = (x - g) / k, E = _i.number(w.x, I.x, z), F = _i.number(w.y, I.y, z), j = new Ys(E, F, I.angleTo(w), v);
7463
+ const z = (x - g) / k, E = _i.number(w.x, I.x, z), F = _i.number(w.y, I.y, z), j = new Qs(E, F, I.angleTo(w), v);
7445
7464
  return j._round(), !d || ku(i, j, f, d, t) ? j : void 0;
7446
7465
  }
7447
7466
  g += k;
@@ -7460,7 +7479,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7460
7479
  I += r;
7461
7480
  const G = (I - w) / j, J = _i.number(E.x, F.x, G), se = _i.number(E.y, F.y, G);
7462
7481
  if (J >= 0 && J < g && se >= 0 && se < g && I - x >= 0 && I + x <= v) {
7463
- const ue = new Ys(J, se, Q, z);
7482
+ const ue = new Qs(J, se, Q, z);
7464
7483
  ue._round(), n && !ku(i, ue, u, n, l) || k.push(ue);
7465
7484
  }
7466
7485
  }
@@ -7468,7 +7487,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7468
7487
  }
7469
7488
  return f || k.length || d || (k = Eu(i, w / 2, r, n, l, u, d, !0, g)), k;
7470
7489
  }
7471
- ke("Anchor", Ys);
7490
+ ke("Anchor", Qs);
7472
7491
  const Aa = Di;
7473
7492
  function Du(i, t, r, n) {
7474
7493
  const l = [], u = i.image, d = u.pixelRatio, f = u.paddedRect.w - 2 * Aa, g = u.paddedRect.h - 2 * Aa;
@@ -7618,7 +7637,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7618
7637
  }
7619
7638
  var ri;
7620
7639
  C.aq = void 0, (ri = C.aq || (C.aq = {}))[ri.center = 1] = "center", ri[ri.left = 2] = "left", ri[ri.right = 3] = "right", ri[ri.top = 4] = "top", ri[ri.bottom = 5] = "bottom", ri[ri["top-left"] = 6] = "top-left", ri[ri["top-right"] = 7] = "top-right", ri[ri["bottom-left"] = 8] = "bottom-left", ri[ri["bottom-right"] = 9] = "bottom-right";
7621
- const Qs = 7, Kc = Number.POSITIVE_INFINITY;
7640
+ const en = 7, Kc = Number.POSITIVE_INFINITY;
7622
7641
  function Ru(i, t) {
7623
7642
  return t[1] !== Kc ? function(r, n, l) {
7624
7643
  let u = 0, d = 0;
@@ -7626,12 +7645,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7626
7645
  case "top-right":
7627
7646
  case "top-left":
7628
7647
  case "top":
7629
- d = l - Qs;
7648
+ d = l - en;
7630
7649
  break;
7631
7650
  case "bottom-right":
7632
7651
  case "bottom-left":
7633
7652
  case "bottom":
7634
- d = -l + Qs;
7653
+ d = -l + en;
7635
7654
  }
7636
7655
  switch (r) {
7637
7656
  case "top-right":
@@ -7652,17 +7671,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7652
7671
  switch (r) {
7653
7672
  case "top-right":
7654
7673
  case "top-left":
7655
- u = d - Qs;
7674
+ u = d - en;
7656
7675
  break;
7657
7676
  case "bottom-right":
7658
7677
  case "bottom-left":
7659
- u = -d + Qs;
7678
+ u = -d + en;
7660
7679
  break;
7661
7680
  case "bottom":
7662
- u = -n + Qs;
7681
+ u = -n + en;
7663
7682
  break;
7664
7683
  case "top":
7665
- u = n - Qs;
7684
+ u = n - en;
7666
7685
  }
7667
7686
  switch (r) {
7668
7687
  case "top-right":
@@ -7689,7 +7708,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7689
7708
  const f = u.values, g = [];
7690
7709
  for (let x = 0; x < f.length; x += 2) {
7691
7710
  const v = g[x] = f[x], w = f[x + 1].map((I) => I * Ut);
7692
- v.startsWith("top") ? w[1] -= Qs : v.startsWith("bottom") && (w[1] += Qs), g[x + 1] = w;
7711
+ v.startsWith("top") ? w[1] -= en : v.startsWith("bottom") && (w[1] += en), g[x + 1] = w;
7693
7712
  }
7694
7713
  return new Oi(g);
7695
7714
  }
@@ -7726,7 +7745,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7726
7745
  let Ae;
7727
7746
  n && De !== "none" && (i.allowVerticalPlacement && r.vertical && (Ae = ou(n, r.vertical, De, I.get("icon-text-fit-padding"), k, E)), z && (n = ou(n, z, De, I.get("icon-text-fit-padding"), k, E)));
7728
7747
  const Me = (oe, Re) => {
7729
- Re.x < 0 || Re.x >= Vt || Re.y < 0 || Re.y >= Vt || function(Ee, Ue, yt, gt, Zt, br, si, Gt, bi, wi, Si, Dt, Ht, di, ni, Ti, ai, nr, Li, nt, vt, It, Zi, Ct, za) {
7748
+ Re.x < 0 || Re.x >= jt || Re.y < 0 || Re.y >= jt || function(Ee, Ue, yt, gt, Zt, br, si, Gt, bi, wi, Si, Dt, Ht, di, ni, Ti, ai, nr, Li, nt, vt, It, Zi, Ct, za) {
7730
7749
  const Zr = Ee.addToLineVertexArray(Ue, yt);
7731
7750
  let Gr, wr, ar, Jt, ps = 0, No = 0, Uu = 0, $u = 0, nh = -1, ah = -1;
7732
7751
  const fs = {};
@@ -7740,7 +7759,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7740
7759
  wr = new $l(bi, Ue, wi, Si, Dt, Zt, ai, nr, !1, pi), ps = 4 * En.length;
7741
7760
  const Dn = Ee.iconSizeData;
7742
7761
  let Hr = null;
7743
- Dn.kind === "source" ? (Hr = [qr * Gt.layout.get("icon-size").evaluate(vt, {})], Hr[0] > Ks && Yt(`${Ee.layerIds[0]}: Value for "icon-size" is >= ${Ro}. Reduce your "icon-size".`)) : Dn.kind === "composite" && (Hr = [qr * It.compositeIconSizes[0].evaluate(vt, {}, Ct), qr * It.compositeIconSizes[1].evaluate(vt, {}, Ct)], (Hr[0] > Ks || Hr[1] > Ks) && Yt(`${Ee.layerIds[0]}: Value for "icon-size" is >= ${Ro}. Reduce your "icon-size".`)), Ee.addSymbols(Ee.icon, En, Hr, nt, Li, vt, C.ah.none, Ue, Zr.lineStartIndex, Zr.lineLength, -1, Ct), nh = Ee.icon.placedSymbolArray.length - 1, Dr && (No = 4 * Dr.length, Ee.addSymbols(Ee.icon, Dr, Hr, nt, Li, vt, C.ah.vertical, Ue, Zr.lineStartIndex, Zr.lineLength, -1, Ct), ah = Ee.icon.placedSymbolArray.length - 1);
7762
+ Dn.kind === "source" ? (Hr = [qr * Gt.layout.get("icon-size").evaluate(vt, {})], Hr[0] > Js && Yt(`${Ee.layerIds[0]}: Value for "icon-size" is >= ${Ro}. Reduce your "icon-size".`)) : Dn.kind === "composite" && (Hr = [qr * It.compositeIconSizes[0].evaluate(vt, {}, Ct), qr * It.compositeIconSizes[1].evaluate(vt, {}, Ct)], (Hr[0] > Js || Hr[1] > Js) && Yt(`${Ee.layerIds[0]}: Value for "icon-size" is >= ${Ro}. Reduce your "icon-size".`)), Ee.addSymbols(Ee.icon, En, Hr, nt, Li, vt, C.ah.none, Ue, Zr.lineStartIndex, Zr.lineLength, -1, Ct), nh = Ee.icon.placedSymbolArray.length - 1, Dr && (No = 4 * Dr.length, Ee.addSymbols(Ee.icon, Dr, Hr, nt, Li, vt, C.ah.vertical, Ue, Zr.lineStartIndex, Zr.lineLength, -1, Ct), ah = Ee.icon.placedSymbolArray.length - 1);
7744
7763
  }
7745
7764
  const Zu = Object.keys(gt.horizontal);
7746
7765
  for (const pi of Zu) {
@@ -7771,8 +7790,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7771
7790
  Ee.symbolInstances.emplaceBack(Ue.x, Ue.y, fs.right >= 0 ? fs.right : -1, fs.center >= 0 ? fs.center : -1, fs.left >= 0 ? fs.left : -1, fs.vertical || -1, nh, ah, qu, Rp, Bp, Fp, Op, Vp, Np, jp, Up, wi, Uu, $u, ps, No, Gu, 0, Ht, Er, qp, Zp);
7772
7791
  }(i, Re, oe, r, n, l, Ae, i.layers[0], i.collisionBoxArray, t.index, t.sourceLayerIndex, i.index, F, [J, J, J, J], Ie, g, Q, se, Oe, k, t, u, x, v, d);
7773
7792
  };
7774
- if (Se === "line") for (const oe of Mu(t.geometry, 0, 0, Vt, Vt)) {
7775
- const Re = kp(oe, G, ue, r.vertical || z, n, 24, j, i.overscaling, Vt);
7793
+ if (Se === "line") for (const oe of Mu(t.geometry, 0, 0, jt, jt)) {
7794
+ const Re = kp(oe, G, ue, r.vertical || z, n, 24, j, i.overscaling, jt);
7776
7795
  for (const Ee of Re) z && Dp(i, z.text, be, Ee) || Me(oe, Ee);
7777
7796
  }
7778
7797
  else if (Se === "line-center") {
@@ -7782,10 +7801,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7782
7801
  }
7783
7802
  } else if (t.type === "Polygon") for (const oe of Hn(t.geometry, 0)) {
7784
7803
  const Re = Cp(oe, 16);
7785
- Me(oe[0], new Ys(Re.x, Re.y, 0));
7804
+ Me(oe[0], new Qs(Re.x, Re.y, 0));
7786
7805
  }
7787
- else if (t.type === "LineString") for (const oe of t.geometry) Me(oe, new Ys(oe[0].x, oe[0].y, 0));
7788
- else if (t.type === "Point") for (const oe of t.geometry) for (const Re of oe) Me([Re], new Ys(Re.x, Re.y, 0));
7806
+ else if (t.type === "LineString") for (const oe of t.geometry) Me(oe, new Qs(oe[0].x, oe[0].y, 0));
7807
+ else if (t.type === "Point") for (const oe of t.geometry) for (const Re of oe) Me([Re], new Qs(Re.x, Re.y, 0));
7789
7808
  }
7790
7809
  function Fu(i, t, r, n, l, u, d, f, g, x, v, w, I, k, z) {
7791
7810
  const E = function(Q, G, J, se, ue, Ie, Oe, Se) {
@@ -7817,7 +7836,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7817
7836
  return De;
7818
7837
  }(0, r, f, l, u, d, n, i.allowVerticalPlacement), F = i.textSizeData;
7819
7838
  let j = null;
7820
- F.kind === "source" ? (j = [qr * l.layout.get("text-size").evaluate(d, {})], j[0] > Ks && Yt(`${i.layerIds[0]}: Value for "text-size" is >= ${Ro}. Reduce your "text-size".`)) : F.kind === "composite" && (j = [qr * k.compositeTextSizes[0].evaluate(d, {}, z), qr * k.compositeTextSizes[1].evaluate(d, {}, z)], (j[0] > Ks || j[1] > Ks) && Yt(`${i.layerIds[0]}: Value for "text-size" is >= ${Ro}. Reduce your "text-size".`)), i.addSymbols(i.text, E, j, f, u, d, x, t, g.lineStartIndex, g.lineLength, I, z);
7839
+ F.kind === "source" ? (j = [qr * l.layout.get("text-size").evaluate(d, {})], j[0] > Js && Yt(`${i.layerIds[0]}: Value for "text-size" is >= ${Ro}. Reduce your "text-size".`)) : F.kind === "composite" && (j = [qr * k.compositeTextSizes[0].evaluate(d, {}, z), qr * k.compositeTextSizes[1].evaluate(d, {}, z)], (j[0] > Js || j[1] > Js) && Yt(`${i.layerIds[0]}: Value for "text-size" is >= ${Ro}. Reduce your "text-size".`)), i.addSymbols(i.text, E, j, f, u, d, x, t, g.lineStartIndex, g.lineLength, I, z);
7821
7840
  for (const Q of v) w[Q] = i.text.placedSymbolArray.length - 1;
7822
7841
  return 4 * E.length;
7823
7842
  }
@@ -7943,12 +7962,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7943
7962
  } };
7944
7963
  C.$ = class extends S {
7945
7964
  }, C.A = wa, C.B = dc, C.C = function(i) {
7946
- if (ms == null) {
7965
+ if (gs == null) {
7947
7966
  const t = i.navigator ? i.navigator.userAgent : null;
7948
- ms = !!i.safari || !(!t || !(/\b(iPad|iPhone|iPod)\b/.test(t) || t.match("Safari") && !t.match("Chrome")));
7967
+ gs = !!i.safari || !(!t || !(/\b(iPad|iPhone|iPod)\b/.test(t) || t.match("Safari") && !t.match("Chrome")));
7949
7968
  }
7950
- return ms;
7951
- }, C.D = Ce, C.E = ys, C.F = class {
7969
+ return gs;
7970
+ }, C.D = Ce, C.E = xs, C.F = class {
7952
7971
  constructor(i, t) {
7953
7972
  this.target = i, this.mapId = t, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Ip(() => this.process()), this.subscription = function(r, n, l, u) {
7954
7973
  return r.addEventListener(n, l, !1), { unsubscribe: () => {
@@ -7967,7 +7986,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7967
7986
  const f = { id: l, type: "<cancel>", origin: location.origin, targetMapId: i.targetMapId, sourceMapId: this.mapId };
7968
7987
  this.target.postMessage(f);
7969
7988
  }, { once: !0 });
7970
- const u = [], d = Object.assign(Object.assign({}, i), { id: l, sourceMapId: this.mapId, origin: location.origin, data: Os(i.data, u) });
7989
+ const u = [], d = Object.assign(Object.assign({}, i), { id: l, sourceMapId: this.mapId, origin: location.origin, data: Vs(i.data, u) });
7971
7990
  this.target.postMessage(d, { transfer: u });
7972
7991
  });
7973
7992
  }
@@ -7992,10 +8011,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7992
8011
  return p(this, void 0, void 0, function* () {
7993
8012
  if (t.type === "<response>") {
7994
8013
  const l = this.resolveRejects[i];
7995
- return delete this.resolveRejects[i], l ? void (t.error ? l.reject(Vs(t.error)) : l.resolve(Vs(t.data))) : void 0;
8014
+ return delete this.resolveRejects[i], l ? void (t.error ? l.reject(Ns(t.error)) : l.resolve(Ns(t.data))) : void 0;
7996
8015
  }
7997
8016
  if (!this.messageHandlers[t.type]) return void this.completeTask(i, new Error(`Could not find a registered handler for ${t.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));
7998
- const r = Vs(t.data), n = new AbortController();
8017
+ const r = Ns(t.data), n = new AbortController();
7999
8018
  this.abortControllers[i] = n;
8000
8019
  try {
8001
8020
  const l = yield this.messageHandlers[t.type](t.sourceMapId, r, n);
@@ -8008,13 +8027,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8008
8027
  completeTask(i, t, r) {
8009
8028
  const n = [];
8010
8029
  delete this.abortControllers[i];
8011
- const l = { id: i, type: "<response>", sourceMapId: this.mapId, origin: location.origin, error: t ? Os(t) : null, data: Os(r, n) };
8030
+ const l = { id: i, type: "<response>", sourceMapId: this.mapId, origin: location.origin, error: t ? Vs(t) : null, data: Vs(r, n) };
8012
8031
  this.target.postMessage(l, { transfer: n });
8013
8032
  }
8014
8033
  remove() {
8015
8034
  this.invoker.remove(), this.subscription.unsubscribe();
8016
8035
  }
8017
- }, C.G = _s, C.H = function() {
8036
+ }, C.G = ys, C.H = function() {
8018
8037
  var i = new wa(16);
8019
8038
  return wa != Float32Array && (i[1] = 0, i[2] = 0, i[3] = 0, i[4] = 0, i[6] = 0, i[7] = 0, i[8] = 0, i[9] = 0, i[11] = 0, i[12] = 0, i[13] = 0, i[14] = 0), i[0] = 1, i[5] = 1, i[10] = 1, i[15] = 1, i;
8020
8039
  }, C.I = Vc, C.J = function(i, t, r) {
@@ -8030,7 +8049,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8030
8049
  l in i && (r[l] = i[l]);
8031
8050
  }
8032
8051
  return r;
8033
- }, C.N = Js, C.O = gu, C.P = he, C.Q = _u, C.R = rr, C.S = sr, C.T = da, C.U = Xt, C.V = Sr, C.W = Xr, C.X = Vt, C.Y = m, C.Z = Bo, C._ = p, C.a = Lr, C.a$ = function(i, t) {
8052
+ }, C.N = Ys, C.O = gu, C.P = he, C.Q = _u, C.R = rr, C.S = sr, C.T = da, C.U = Xt, C.V = Sr, C.W = Xr, C.X = jt, C.Y = m, C.Z = Bo, C._ = p, C.a = Lr, C.a$ = function(i, t) {
8034
8053
  var r = i[0], n = i[1], l = i[2], u = i[3], d = i[4], f = i[5], g = i[6], x = i[7], v = i[8], w = i[9], I = i[10], k = i[11], z = i[12], E = i[13], F = i[14], j = i[15], Q = t[0], G = t[1], J = t[2], se = t[3], ue = t[4], Ie = t[5], Oe = t[6], Se = t[7], be = t[8], De = t[9], Ae = t[10], Me = t[11], oe = t[12], Re = t[13], Ee = t[14], Ue = t[15];
8035
8054
  return Math.abs(r - Q) <= vi * Math.max(1, Math.abs(r), Math.abs(Q)) && Math.abs(n - G) <= vi * Math.max(1, Math.abs(n), Math.abs(G)) && Math.abs(l - J) <= vi * Math.max(1, Math.abs(l), Math.abs(J)) && Math.abs(u - se) <= vi * Math.max(1, Math.abs(u), Math.abs(se)) && Math.abs(d - ue) <= vi * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(f - Ie) <= vi * Math.max(1, Math.abs(f), Math.abs(Ie)) && Math.abs(g - Oe) <= vi * Math.max(1, Math.abs(g), Math.abs(Oe)) && Math.abs(x - Se) <= vi * Math.max(1, Math.abs(x), Math.abs(Se)) && Math.abs(v - be) <= vi * Math.max(1, Math.abs(v), Math.abs(be)) && Math.abs(w - De) <= vi * Math.max(1, Math.abs(w), Math.abs(De)) && Math.abs(I - Ae) <= vi * Math.max(1, Math.abs(I), Math.abs(Ae)) && Math.abs(k - Me) <= vi * Math.max(1, Math.abs(k), Math.abs(Me)) && Math.abs(z - oe) <= vi * Math.max(1, Math.abs(z), Math.abs(oe)) && Math.abs(E - Re) <= vi * Math.max(1, Math.abs(E), Math.abs(Re)) && Math.abs(F - Ee) <= vi * Math.max(1, Math.abs(F), Math.abs(Ee)) && Math.abs(j - Ue) <= vi * Math.max(1, Math.abs(j), Math.abs(Ue));
8036
8055
  }, C.a0 = tt, C.a1 = Wc, C.a2 = fe, C.a3 = (i) => {
@@ -8078,7 +8097,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8078
8097
  (function(d, f, g, x) {
8079
8098
  let v;
8080
8099
  for (v in f = f || {}, d = d || {}) Object.prototype.hasOwnProperty.call(d, v) && (Object.prototype.hasOwnProperty.call(f, v) || Fr(v, g, x));
8081
- for (v in f) Object.prototype.hasOwnProperty.call(f, v) && (Object.prototype.hasOwnProperty.call(d, v) ? at(d[v], f[v]) || (d[v].type === "geojson" && f[v].type === "geojson" && xs(d, f, v) ? kt(g, { command: "setGeoJSONSourceData", args: [v, f[v].data] }) : Mr(v, f, g, x)) : nn(v, f, g));
8100
+ for (v in f) Object.prototype.hasOwnProperty.call(f, v) && (Object.prototype.hasOwnProperty.call(d, v) ? at(d[v], f[v]) || (d[v].type === "geojson" && f[v].type === "geojson" && vs(d, f, v) ? kt(g, { command: "setGeoJSONSourceData", args: [v, f[v].data] }) : Mr(v, f, g, x)) : nn(v, f, g));
8082
8101
  })(i.sources, t.sources, l, n);
8083
8102
  const u = [];
8084
8103
  i.layers && i.layers.forEach((d) => {
@@ -8227,7 +8246,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8227
8246
  return t !== i && (i[0] = t[0], i[1] = t[1], i[2] = t[2], i[3] = t[3], i[12] = t[12], i[13] = t[13], i[14] = t[14], i[15] = t[15]), i[4] = u * l + x * n, i[5] = d * l + v * n, i[6] = f * l + w * n, i[7] = g * l + I * n, i[8] = x * l - u * n, i[9] = v * l - d * n, i[10] = w * l - f * n, i[11] = I * l - g * n, i;
8228
8247
  }, C.b8 = Mt, C.b9 = Gi, C.bA = Gh, C.bB = function(i) {
8229
8248
  return i.message === Hi;
8230
- }, C.bC = zs, C.bD = zi, C.ba = function(i) {
8249
+ }, C.bC = Es, C.bD = zi, C.ba = function(i) {
8231
8250
  return i * Math.PI / 180;
8232
8251
  }, C.bb = function(i, t) {
8233
8252
  const { x: r, y: n } = Bo.fromLngLat(t);
@@ -8251,7 +8270,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8251
8270
  for (const l in r) n.push(r[l]);
8252
8271
  return n;
8253
8272
  }, C.bl = ke, C.bm = wu, C.bn = Tu, C.bo = tu, C.bp = function(i) {
8254
- i.bucket.createArrays(), i.bucket.tilePixelRatio = Vt / (512 * i.bucket.overscaling), i.bucket.compareText = {}, i.bucket.iconsNeedLinear = !1;
8273
+ i.bucket.createArrays(), i.bucket.tilePixelRatio = jt / (512 * i.bucket.overscaling), i.bucket.compareText = {}, i.bucket.iconsNeedLinear = !1;
8255
8274
  const t = i.bucket.layers[0], r = t.layout, n = t._unevaluatedLayout._values, l = { layoutIconSize: n["icon-size"].possiblyEvaluate(new bt(i.bucket.zoom + 1), i.canonical), layoutTextSize: n["text-size"].possiblyEvaluate(new bt(i.bucket.zoom + 1), i.canonical), textMaxSize: n["text-size"].possiblyEvaluate(new bt(18)) };
8256
8275
  if (i.bucket.textSizeData.kind === "composite") {
8257
8276
  const { minZoom: x, maxZoom: v } = i.bucket.textSizeData;
@@ -8301,7 +8320,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8301
8320
  i.bucket.iconsInText = !!G && G.iconsInText, (G || F) && Ep(i.bucket, x, z, F, i.imageMap, l, I, k, j, Q, i.canonical);
8302
8321
  }
8303
8322
  i.showCollisionBoxes && i.bucket.generateCollisionDebugBuffers();
8304
- }, C.bq = Rc, C.br = Ec, C.bs = Lc, C.bt = Xs, C.bu = Fc, C.bv = class {
8323
+ }, C.bq = Rc, C.br = Ec, C.bs = Lc, C.bt = Ws, C.bu = Fc, C.bv = class {
8305
8324
  constructor(i) {
8306
8325
  this._marks = { start: [i.url, "start"].join("#"), end: [i.url, "end"].join("#"), measure: i.url.toString() }, performance.mark(this._marks.start);
8307
8326
  }
@@ -8323,7 +8342,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8323
8342
  return mi.clearRect(0, 0, v, w), I.data;
8324
8343
  }(i, t, r, n, l);
8325
8344
  });
8326
- }, C.bx = bu, C.by = ht, C.bz = Bt, C.c = gs, C.d = (i) => p(void 0, void 0, void 0, function* () {
8345
+ }, C.bx = bu, C.by = ht, C.bz = Ot, C.c = _s, C.d = (i) => p(void 0, void 0, void 0, function* () {
8327
8346
  if (i.byteLength === 0) return createImageBitmap(new ImageData(1, 1));
8328
8347
  const t = new Blob([new Uint8Array(i)], { type: "image/png" });
8329
8348
  try {
@@ -8400,7 +8419,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8400
8419
  }
8401
8420
  }
8402
8421
  C.bl("GlyphAtlas", ht);
8403
- class Bt {
8422
+ class Ot {
8404
8423
  constructor(M) {
8405
8424
  this.tileID = new C.S(M.tileID.overscaledZ, M.tileID.wrap, M.tileID.canonical.z, M.tileID.canonical.x, M.tileID.canonical.y), this.uid = M.uid, this.zoom = M.zoom, this.pixelRatio = M.pixelRatio, this.tileSize = M.tileSize, this.source = M.source, this.overscaling = this.tileID.overscaleFactor(), this.showCollisionBoxes = M.showCollisionBoxes, this.collectResourceTiming = !!M.collectResourceTiming, this.returnDependencies = !!M.returnDependencies, this.promoteId = M.promoteId, this.inFlightDependencies = [];
8406
8425
  }
@@ -8416,12 +8435,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8416
8435
  ut.version === 1 && C.w(`Vector tile source "${this.source}" layer "${We}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
8417
8436
  const Pt = H.encode(We), qt = [];
8418
8437
  for (let Wt = 0; Wt < ut.length; Wt++) {
8419
- const ci = ut.feature(Wt), vs = W.getId(ci, We);
8420
- qt.push({ feature: ci, id: vs, index: Wt, sourceLayerIndex: Pt });
8438
+ const ci = ut.feature(Wt), bs = W.getId(ci, We);
8439
+ qt.push({ feature: ci, id: bs, index: Wt, sourceLayerIndex: Pt });
8421
8440
  }
8422
8441
  for (const Wt of ne[We]) {
8423
8442
  const ci = Wt[0];
8424
- ci.source !== this.source && C.w(`layer.source = ${ci.source} does not equal this.source = ${this.source}`), ci.minzoom && this.zoom < Math.floor(ci.minzoom) || ci.maxzoom && this.zoom >= ci.maxzoom || ci.visibility !== "none" && (_t(Wt, this.zoom, L), (Y[ci.id] = ci.createBucket({ index: W.bucketLayerIDs.length, layers: Wt, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: Pt, sourceID: this.source })).populate(qt, q, this.tileID.canonical), W.bucketLayerIDs.push(Wt.map((vs) => vs.id)));
8443
+ ci.source !== this.source && C.w(`layer.source = ${ci.source} does not equal this.source = ${this.source}`), ci.minzoom && this.zoom < Math.floor(ci.minzoom) || ci.maxzoom && this.zoom >= ci.maxzoom || ci.visibility !== "none" && (_t(Wt, this.zoom, L), (Y[ci.id] = ci.createBucket({ index: W.bucketLayerIDs.length, layers: Wt, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: Pt, sourceID: this.source })).populate(qt, q, this.tileID.canonical), W.bucketLayerIDs.push(Wt.map((bs) => bs.id)));
8425
8444
  }
8426
8445
  }
8427
8446
  const ce = C.aF(q.glyphDependencies, (We) => Object.keys(We).map(Number));
@@ -8443,12 +8462,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8443
8462
  const We = new AbortController();
8444
8463
  this.inFlightDependencies.push(We), it = O.sendAsync({ type: "GI", data: { icons: Fe, source: this.source, tileID: this.tileID, type: "patterns" } }, We);
8445
8464
  }
8446
- const [Ze, rt, Ye] = yield Promise.all([ie, Be, it]), Ft = new ht(Ze), At = new C.bo(rt, Ye);
8465
+ const [Ze, rt, Ye] = yield Promise.all([ie, Be, it]), Vt = new ht(Ze), At = new C.bo(rt, Ye);
8447
8466
  for (const We in Y) {
8448
8467
  const ut = Y[We];
8449
- ut instanceof C.a6 ? (_t(ut.layers, this.zoom, L), C.bp({ bucket: ut, glyphMap: Ze, glyphPositions: Ft.positions, imageMap: rt, imagePositions: At.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : ut.hasPattern && (ut instanceof C.bq || ut instanceof C.br || ut instanceof C.bs) && (_t(ut.layers, this.zoom, L), ut.addFeatures(q, this.tileID.canonical, At.patternPositions));
8468
+ ut instanceof C.a6 ? (_t(ut.layers, this.zoom, L), C.bp({ bucket: ut, glyphMap: Ze, glyphPositions: Vt.positions, imageMap: rt, imagePositions: At.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : ut.hasPattern && (ut instanceof C.bq || ut instanceof C.br || ut instanceof C.bs) && (_t(ut.layers, this.zoom, L), ut.addFeatures(q, this.tileID.canonical, At.patternPositions));
8450
8469
  }
8451
- return this.status = "done", { buckets: Object.values(Y).filter((We) => !We.isEmpty()), featureIndex: W, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Ft.image, imageAtlas: At, glyphMap: this.returnDependencies ? Ze : null, iconMap: this.returnDependencies ? rt : null, glyphPositions: this.returnDependencies ? Ft.positions : null };
8470
+ return this.status = "done", { buckets: Object.values(Y).filter((We) => !We.isEmpty()), featureIndex: W, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Vt.image, imageAtlas: At, glyphMap: this.returnDependencies ? Ze : null, iconMap: this.returnDependencies ? rt : null, glyphPositions: this.returnDependencies ? Vt.positions : null };
8452
8471
  });
8453
8472
  }
8454
8473
  }
@@ -8474,7 +8493,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8474
8493
  }
8475
8494
  loadTile(M) {
8476
8495
  return C._(this, void 0, void 0, function* () {
8477
- const P = M.uid, L = !!(M && M.request && M.request.collectResourceTiming) && new C.bv(M.request), O = new Bt(M);
8496
+ const P = M.uid, L = !!(M && M.request && M.request.collectResourceTiming) && new C.bv(M.request), O = new Ot(M);
8478
8497
  this.loading[P] = O;
8479
8498
  const H = new AbortController();
8480
8499
  O.abort = H;
@@ -8609,7 +8628,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8609
8628
  var O = L.keys;
8610
8629
  for (P = 0; P < O.length; P++) M.writeStringField(3, O[P]);
8611
8630
  var H = L.values;
8612
- for (P = 0; P < H.length; P++) M.writeMessage(4, ms, H[P]);
8631
+ for (P = 0; P < H.length; P++) M.writeMessage(4, gs, H[P]);
8613
8632
  }
8614
8633
  function pt(N, M) {
8615
8634
  var P = N.feature;
@@ -8646,7 +8665,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8646
8665
  L === 3 && M.writeVarint(Yt(7, 1));
8647
8666
  }
8648
8667
  }
8649
- function ms(N, M) {
8668
+ function gs(N, M) {
8650
8669
  var P = typeof N;
8651
8670
  P === "string" ? M.writeStringField(1, N) : P === "boolean" ? M.writeBooleanField(7, N) : P === "number" && (N % 1 != 0 ? M.writeDoubleField(3, N) : N < 0 ? M.writeSVarintField(6, N) : M.writeVarintField(5, N));
8652
8671
  }
@@ -8659,7 +8678,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8659
8678
  var ur = C.by(Xt.exports);
8660
8679
  const Fn = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (N) => N }, Xr = Math.fround || (Ir = new Float32Array(1), (N) => (Ir[0] = +N, Ir[0]));
8661
8680
  var Ir;
8662
- const mi = 3, Hi = 5, gs = 6;
8681
+ const mi = 3, Hi = 5, _s = 6;
8663
8682
  class Lr {
8664
8683
  constructor(M) {
8665
8684
  this.options = Object.assign(Object.create(Fn), M), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
@@ -8748,7 +8767,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8748
8767
  for (const Y of M) {
8749
8768
  const q = Y * this.stride, ne = P[q + Hi] > 1;
8750
8769
  let ce, ie, ge;
8751
- if (ne) ce = _s(P, q, this.clusterProps), ie = P[q], ge = P[q + 1];
8770
+ if (ne) ce = ys(P, q, this.clusterProps), ie = P[q], ge = P[q + 1];
8752
8771
  else {
8753
8772
  const it = this.points[P[q + mi]];
8754
8773
  ce = it.properties;
@@ -8775,23 +8794,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8775
8794
  q[Ye + 2] > P && (Ze += q[Ye + Hi]);
8776
8795
  }
8777
8796
  if (Ze > it && Ze >= W) {
8778
- let rt, Ye = ge * it, Ft = Be * it, At = -1;
8797
+ let rt, Ye = ge * it, Vt = Be * it, At = -1;
8779
8798
  const We = ((ie / ce | 0) << 5) + (P + 1) + this.points.length;
8780
8799
  for (const ut of Fe) {
8781
8800
  const Pt = ut * ce;
8782
8801
  if (q[Pt + 2] <= P) continue;
8783
8802
  q[Pt + 2] = P;
8784
8803
  const qt = q[Pt + Hi];
8785
- Ye += q[Pt] * qt, Ft += q[Pt + 1] * qt, q[Pt + 4] = We, H && (rt || (rt = this._map(q, ie, !0), At = this.clusterProps.length, this.clusterProps.push(rt)), H(rt, this._map(q, Pt)));
8804
+ Ye += q[Pt] * qt, Vt += q[Pt + 1] * qt, q[Pt + 4] = We, H && (rt || (rt = this._map(q, ie, !0), At = this.clusterProps.length, this.clusterProps.push(rt)), H(rt, this._map(q, Pt)));
8786
8805
  }
8787
- q[ie + 4] = We, ne.push(Ye / Ze, Ft / Ze, 1 / 0, We, -1, Ze), H && ne.push(At);
8806
+ q[ie + 4] = We, ne.push(Ye / Ze, Vt / Ze, 1 / 0, We, -1, Ze), H && ne.push(At);
8788
8807
  } else {
8789
8808
  for (let rt = 0; rt < ce; rt++) ne.push(q[ie + rt]);
8790
8809
  if (Ze > 1) for (const rt of Fe) {
8791
8810
  const Ye = rt * ce;
8792
8811
  if (!(q[Ye + 2] <= P)) {
8793
8812
  q[Ye + 2] = P;
8794
- for (let Ft = 0; Ft < ce; Ft++) ne.push(q[Ye + Ft]);
8813
+ for (let Vt = 0; Vt < ce; Vt++) ne.push(q[Ye + Vt]);
8795
8814
  }
8796
8815
  }
8797
8816
  }
@@ -8806,7 +8825,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8806
8825
  }
8807
8826
  _map(M, P, L) {
8808
8827
  if (M[P + Hi] > 1) {
8809
- const W = this.clusterProps[M[P + gs]];
8828
+ const W = this.clusterProps[M[P + _s]];
8810
8829
  return L ? Object.assign({}, W) : W;
8811
8830
  }
8812
8831
  const O = this.points[M[P + mi]].properties, H = this.options.map(O);
@@ -8814,11 +8833,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8814
8833
  }
8815
8834
  }
8816
8835
  function dr(N, M, P) {
8817
- return { type: "Feature", id: N[M + mi], properties: _s(N, M, P), geometry: { type: "Point", coordinates: [(L = N[M], 360 * (L - 0.5)), Wr(N[M + 1])] } };
8836
+ return { type: "Feature", id: N[M + mi], properties: ys(N, M, P), geometry: { type: "Point", coordinates: [(L = N[M], 360 * (L - 0.5)), Wr(N[M + 1])] } };
8818
8837
  var L;
8819
8838
  }
8820
- function _s(N, M, P) {
8821
- const L = N[M + Hi], O = L >= 1e4 ? `${Math.round(L / 1e3)}k` : L >= 1e3 ? Math.round(L / 100) / 10 + "k" : L, H = N[M + gs], W = H === -1 ? {} : Object.assign({}, P[H]);
8839
+ function ys(N, M, P) {
8840
+ const L = N[M + Hi], O = L >= 1e4 ? `${Math.round(L / 1e3)}k` : L >= 1e3 ? Math.round(L / 100) / 10 + "k" : L, H = N[M + _s], W = H === -1 ? {} : Object.assign({}, P[H]);
8822
8841
  return Object.assign(W, { cluster: !0, cluster_id: N[M + mi], point_count: L, point_count_abbreviated: O });
8823
8842
  }
8824
8843
  function Pi(N) {
@@ -8872,8 +8891,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8872
8891
  if (O && O.length === 0) return;
8873
8892
  const H = M.geometry.type, W = Math.pow(P.tolerance / ((1 << P.maxZoom) * P.extent), 2);
8874
8893
  let Y = [], q = M.id;
8875
- if (P.promoteId ? q = M.properties[P.promoteId] : P.generateId && (q = L || 0), H === "Point") ys(O, Y);
8876
- else if (H === "MultiPoint") for (const ne of O) ys(ne, Y);
8894
+ if (P.promoteId ? q = M.properties[P.promoteId] : P.generateId && (q = L || 0), H === "Point") xs(O, Y);
8895
+ else if (H === "MultiPoint") for (const ne of O) xs(ne, Y);
8877
8896
  else if (H === "LineString") re(O, Y, W, !1);
8878
8897
  else if (H === "MultiLineString") {
8879
8898
  if (P.lineMetrics) {
@@ -8897,7 +8916,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8897
8916
  }
8898
8917
  N.push(Pr(q, H, Y, M.properties));
8899
8918
  }
8900
- function ys(N, M) {
8919
+ function xs(N, M) {
8901
8920
  M.push(sn(N[0]), at(N[1]), 0);
8902
8921
  }
8903
8922
  function re(N, M, P, L) {
@@ -8938,11 +8957,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8938
8957
  let Fe = [];
8939
8958
  if (ie === "Point" || ie === "MultiPoint") nn(ce, Fe, P, L, O);
8940
8959
  else if (ie === "LineString") Fr(ce, Fe, P, L, O, !1, Y.lineMetrics);
8941
- else if (ie === "MultiLineString") xs(ce, Fe, P, L, O, !1);
8942
- else if (ie === "Polygon") xs(ce, Fe, P, L, O, !0);
8960
+ else if (ie === "MultiLineString") vs(ce, Fe, P, L, O, !1);
8961
+ else if (ie === "Polygon") vs(ce, Fe, P, L, O, !0);
8943
8962
  else if (ie === "MultiPolygon") for (const it of ce) {
8944
8963
  const Ze = [];
8945
- xs(it, Ze, P, L, O, !0), Ze.length && Fe.push(Ze);
8964
+ vs(it, Ze, P, L, O, !0), Ze.length && Fe.push(Ze);
8946
8965
  }
8947
8966
  if (Fe.length) {
8948
8967
  if (Y.lineMetrics && ie === "LineString") {
@@ -8965,9 +8984,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8965
8984
  const q = O === 0 ? an : on;
8966
8985
  let ne, ce, ie = N.start;
8967
8986
  for (let Ze = 0; Ze < N.length - 3; Ze += 3) {
8968
- const rt = N[Ze], Ye = N[Ze + 1], Ft = N[Ze + 2], At = N[Ze + 3], We = N[Ze + 4], ut = O === 0 ? rt : Ye, Pt = O === 0 ? At : We;
8987
+ const rt = N[Ze], Ye = N[Ze + 1], Vt = N[Ze + 2], At = N[Ze + 3], We = N[Ze + 4], ut = O === 0 ? rt : Ye, Pt = O === 0 ? At : We;
8969
8988
  let qt = !1;
8970
- W && (ne = Math.sqrt(Math.pow(rt - At, 2) + Math.pow(Ye - We, 2))), ut < P ? Pt > P && (ce = q(Y, rt, Ye, At, We, P), W && (Y.start = ie + ne * ce)) : ut > L ? Pt < L && (ce = q(Y, rt, Ye, At, We, L), W && (Y.start = ie + ne * ce)) : Fi(Y, rt, Ye, Ft), Pt < P && ut >= P && (ce = q(Y, rt, Ye, At, We, P), qt = !0), Pt > L && ut <= L && (ce = q(Y, rt, Ye, At, We, L), qt = !0), !H && qt && (W && (Y.end = ie + ne * ce), M.push(Y), Y = Mr(N)), W && (ie += ne);
8989
+ W && (ne = Math.sqrt(Math.pow(rt - At, 2) + Math.pow(Ye - We, 2))), ut < P ? Pt > P && (ce = q(Y, rt, Ye, At, We, P), W && (Y.start = ie + ne * ce)) : ut > L ? Pt < L && (ce = q(Y, rt, Ye, At, We, L), W && (Y.start = ie + ne * ce)) : Fi(Y, rt, Ye, Vt), Pt < P && ut >= P && (ce = q(Y, rt, Ye, At, We, P), qt = !0), Pt > L && ut <= L && (ce = q(Y, rt, Ye, At, We, L), qt = !0), !H && qt && (W && (Y.end = ie + ne * ce), M.push(Y), Y = Mr(N)), W && (ie += ne);
8971
8990
  }
8972
8991
  let ge = N.length - 3;
8973
8992
  const Be = N[ge], Fe = N[ge + 1], it = O === 0 ? Be : Fe;
@@ -8977,7 +8996,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8977
8996
  const M = [];
8978
8997
  return M.size = N.size, M.start = N.start, M.end = N.end, M;
8979
8998
  }
8980
- function xs(N, M, P, L, O, H) {
8999
+ function vs(N, M, P, L, O, H) {
8981
9000
  for (const W of N) Fr(W, M, P, L, O, H, !1);
8982
9001
  }
8983
9002
  function Fi(N, M, P, L) {
@@ -9119,8 +9138,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9119
9138
  if (Be.source = null, M.length === 0) continue;
9120
9139
  ce > 1 && console.time("clipping");
9121
9140
  const Fe = 0.5 * ne.buffer / ne.extent, it = 0.5 - Fe, Ze = 0.5 + Fe, rt = 1 + Fe;
9122
- let Ye = null, Ft = null, At = null, We = null, ut = kt(M, ie, L - Fe, L + Ze, 0, Be.minX, Be.maxX, ne), Pt = kt(M, ie, L + it, L + rt, 0, Be.minX, Be.maxX, ne);
9123
- M = null, ut && (Ye = kt(ut, ie, O - Fe, O + Ze, 1, Be.minY, Be.maxY, ne), Ft = kt(ut, ie, O + it, O + rt, 1, Be.minY, Be.maxY, ne), ut = null), Pt && (At = kt(Pt, ie, O - Fe, O + Ze, 1, Be.minY, Be.maxY, ne), We = kt(Pt, ie, O + it, O + rt, 1, Be.minY, Be.maxY, ne), Pt = null), ce > 1 && console.timeEnd("clipping"), q.push(Ye || [], P + 1, 2 * L, 2 * O), q.push(Ft || [], P + 1, 2 * L, 2 * O + 1), q.push(At || [], P + 1, 2 * L + 1, 2 * O), q.push(We || [], P + 1, 2 * L + 1, 2 * O + 1);
9141
+ let Ye = null, Vt = null, At = null, We = null, ut = kt(M, ie, L - Fe, L + Ze, 0, Be.minX, Be.maxX, ne), Pt = kt(M, ie, L + it, L + rt, 0, Be.minX, Be.maxX, ne);
9142
+ M = null, ut && (Ye = kt(ut, ie, O - Fe, O + Ze, 1, Be.minY, Be.maxY, ne), Vt = kt(ut, ie, O + it, O + rt, 1, Be.minY, Be.maxY, ne), ut = null), Pt && (At = kt(Pt, ie, O - Fe, O + Ze, 1, Be.minY, Be.maxY, ne), We = kt(Pt, ie, O + it, O + rt, 1, Be.minY, Be.maxY, ne), Pt = null), ce > 1 && console.timeEnd("clipping"), q.push(Ye || [], P + 1, 2 * L, 2 * O), q.push(Vt || [], P + 1, 2 * L, 2 * O + 1), q.push(At || [], P + 1, 2 * L + 1, 2 * O), q.push(We || [], P + 1, 2 * L + 1, 2 * O + 1);
9124
9143
  }
9125
9144
  }
9126
9145
  getTile(M, P, L) {
@@ -9396,7 +9415,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9396
9415
  return C.i(self) && (self.worker = new gr(self)), gr;
9397
9416
  }), Ge("index", ["exports", "./shared"], function(C, p) {
9398
9417
  var ht = "4.7.1";
9399
- let Bt, _t;
9418
+ let Ot, _t;
9400
9419
  const he = { now: typeof performance < "u" && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (h) => new Promise((e, s) => {
9401
9420
  const a = requestAnimationFrame(e);
9402
9421
  h.signal.addEventListener("abort", () => {
@@ -9408,7 +9427,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9408
9427
  const e = window.document.createElement("canvas"), s = e.getContext("2d", { willReadFrequently: !0 });
9409
9428
  if (!s) throw new Error("failed to create canvas 2d context");
9410
9429
  return e.width = h.width, e.height = h.height, s.drawImage(h, 0, 0, h.width, h.height), s;
9411
- }, resolveURL: (h) => (Bt || (Bt = document.createElement("a")), Bt.href = h, Bt.href), hardwareConcurrency: typeof navigator < "u" && navigator.hardwareConcurrency || 4, get prefersReducedMotion() {
9430
+ }, resolveURL: (h) => (Ot || (Ot = document.createElement("a")), Ot.href = h, Ot.href), hardwareConcurrency: typeof navigator < "u" && navigator.hardwareConcurrency || 4, get prefersReducedMotion() {
9412
9431
  return !!matchMedia && (_t == null && (_t = matchMedia("(prefers-reduced-motion: reduce)")), _t.matches);
9413
9432
  } };
9414
9433
  class ae {
@@ -9729,10 +9748,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9729
9748
  }
9730
9749
  const oi = 1e20;
9731
9750
  function Tr(h, e, s, a, o, c, m, _, y) {
9732
- for (let b = e; b < e + a; b++) ms(h, s * c + b, c, o, m, _, y);
9733
- for (let b = s; b < s + o; b++) ms(h, b * c + e, 1, a, m, _, y);
9751
+ for (let b = e; b < e + a; b++) gs(h, s * c + b, c, o, m, _, y);
9752
+ for (let b = s; b < s + o; b++) gs(h, b * c + e, 1, a, m, _, y);
9734
9753
  }
9735
- function ms(h, e, s, a, o, c, m) {
9754
+ function gs(h, e, s, a, o, c, m) {
9736
9755
  c[0] = 0, m[0] = -oi, m[1] = oi, o[0] = h[e];
9737
9756
  for (let _ = 1, y = 0, b = 0; _ < a; _++) {
9738
9757
  o[_] = h[e + _ * s];
@@ -9914,7 +9933,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9914
9933
  return e < 60 ? 0 : e < 70 ? (e - 60) / 10 : 1;
9915
9934
  }
9916
9935
  }
9917
- class gs {
9936
+ class _s {
9918
9937
  constructor(e, s) {
9919
9938
  this.width = e, this.height = s, this.nextRow = 0, this.data = new Uint8Array(this.width * this.height), this.dashEntry = {};
9920
9939
  }
@@ -10005,12 +10024,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10005
10024
  return Object.keys(this.active).length;
10006
10025
  }
10007
10026
  }
10008
- const _s = Math.floor(he.hardwareConcurrency / 2);
10027
+ const ys = Math.floor(he.hardwareConcurrency / 2);
10009
10028
  let Pi, Xi;
10010
10029
  function Wr() {
10011
10030
  return Pi || (Pi = new dr()), Pi;
10012
10031
  }
10013
- dr.workerCount = p.C(globalThis) ? Math.max(Math.min(_s, 3), 1) : 1;
10032
+ dr.workerCount = p.C(globalThis) ? Math.max(Math.min(ys, 3), 1) : 1;
10014
10033
  class Kr {
10015
10034
  constructor(e, s) {
10016
10035
  this.workerPool = e, this.actors = [], this.currentActor = 0, this.id = s;
@@ -10081,7 +10100,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10081
10100
  const s = h.tileID, a = e.tileID;
10082
10101
  return s.overscaledZ - a.overscaledZ || s.canonical.y - a.canonical.y || s.wrap - a.wrap || s.canonical.x - a.canonical.x;
10083
10102
  }
10084
- function ys(h, e, s) {
10103
+ function xs(h, e, s) {
10085
10104
  return p._(this, void 0, void 0, function* () {
10086
10105
  let a = h;
10087
10106
  if (h.url ? a = (yield p.h(e.transformRequest(h.url, "Source"), s)).data : yield he.frameAsync(s), !a) return null;
@@ -10183,7 +10202,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10183
10202
  return p._(this, void 0, void 0, function* () {
10184
10203
  this._loaded = !1, this.fire(new p.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
10185
10204
  try {
10186
- const e = yield ys(this._options, this.map._requestManager, this._tileJSONRequest);
10205
+ const e = yield xs(this._options, this.map._requestManager, this._tileJSONRequest);
10187
10206
  this._tileJSONRequest = null, this._loaded = !0, this.map.style.sourceCaches[this.id].clearTiles(), e && (p.e(this, e), e.bounds && (this.tileBounds = new Jr(e.bounds, this.minzoom, this.maxzoom)), this.fire(new p.k("data", { dataType: "source", sourceDataType: "metadata" })), this.fire(new p.k("data", { dataType: "source", sourceDataType: "content" })));
10188
10207
  } catch (e) {
10189
10208
  this._tileJSONRequest = null, this.fire(new p.j(e));
@@ -10268,7 +10287,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10268
10287
  return p._(this, void 0, void 0, function* () {
10269
10288
  this._loaded = !1, this.fire(new p.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
10270
10289
  try {
10271
- const e = yield ys(this._options, this.map._requestManager, this._tileJSONRequest);
10290
+ const e = yield xs(this._options, this.map._requestManager, this._tileJSONRequest);
10272
10291
  this._tileJSONRequest = null, this._loaded = !0, e && (p.e(this, e), e.bounds && (this.tileBounds = new Jr(e.bounds, this.minzoom, this.maxzoom)), this.fire(new p.k("data", { dataType: "source", sourceDataType: "metadata" })), this.fire(new p.k("data", { dataType: "source", sourceDataType: "content" })));
10273
10292
  } catch (e) {
10274
10293
  this._tileJSONRequest = null, this.fire(new p.j(e));
@@ -10540,7 +10559,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10540
10559
  return !1;
10541
10560
  }
10542
10561
  }
10543
- class xs extends Mr {
10562
+ class vs extends Mr {
10544
10563
  constructor(e, s, a, o) {
10545
10564
  super(e, s, a, o), this.roundZoom = !0, this.type = "video", this.options = s;
10546
10565
  }
@@ -10655,7 +10674,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10655
10674
  case "vector":
10656
10675
  return sn;
10657
10676
  case "video":
10658
- return xs;
10677
+ return vs;
10659
10678
  case "canvas":
10660
10679
  return Fi;
10661
10680
  }
@@ -11745,7 +11764,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11745
11764
  function Ye(h, e, s) {
11746
11765
  return e * (p.X / (h.tileSize * Math.pow(2, s - h.tileID.overscaledZ)));
11747
11766
  }
11748
- class Ft {
11767
+ class Vt {
11749
11768
  constructor(e, s, a, o) {
11750
11769
  this.opacity = e ? Math.max(0, Math.min(1, e.opacity + (e.placed ? s : -s))) : o && a ? 1 : 0, this.placed = a;
11751
11770
  }
@@ -11755,7 +11774,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11755
11774
  }
11756
11775
  class At {
11757
11776
  constructor(e, s, a, o, c) {
11758
- this.text = new Ft(e ? e.text : null, s, a, c), this.icon = new Ft(e ? e.icon : null, s, o, c);
11777
+ this.text = new Vt(e ? e.text : null, s, a, c), this.icon = new Vt(e ? e.icon : null, s, o, c);
11759
11778
  }
11760
11779
  isHidden() {
11761
11780
  return this.text.isHidden() && this.icon.isHidden();
@@ -11833,10 +11852,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11833
11852
  var wt, He;
11834
11853
  if (s[ve.crossTileID]) return;
11835
11854
  if (D) return void (this.placements[ve.crossTileID] = new We(!1, !1, !1));
11836
- let Qe = !1, St = !1, ei = !0, tr = null, Tt = { box: null, placeable: !1, offscreen: null }, xi = { box: null, placeable: !1, offscreen: null }, hi = null, ti = null, ui = null, vr = 0, Us = 0, ma = 0;
11837
- Te.textFeatureIndex ? vr = Te.textFeatureIndex : ve.useRuntimeCollisionCircles && (vr = ve.featureIndex), Te.verticalTextFeatureIndex && (Us = Te.verticalTextFeatureIndex);
11838
- const $s = Te.textBox;
11839
- if ($s) {
11855
+ let Qe = !1, St = !1, ei = !0, tr = null, Tt = { box: null, placeable: !1, offscreen: null }, xi = { box: null, placeable: !1, offscreen: null }, hi = null, ti = null, ui = null, vr = 0, $s = 0, ma = 0;
11856
+ Te.textFeatureIndex ? vr = Te.textFeatureIndex : ve.useRuntimeCollisionCircles && (vr = ve.featureIndex), Te.verticalTextFeatureIndex && ($s = Te.verticalTextFeatureIndex);
11857
+ const qs = Te.textBox;
11858
+ if (qs) {
11840
11859
  const $i = (Kt) => {
11841
11860
  let ii = p.ah.horizontal;
11842
11861
  if (o.allowVerticalPlacement && !Kt && this.prevPlacement) {
@@ -11854,28 +11873,28 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11854
11873
  const tt = this.collisionIndex.placeCollisionBox(ii, B, A, y, b, pe, le, m, U.predicate, ze);
11855
11874
  return tt && tt.placeable && (this.markUsedOrientation(o, Ei, ve), this.placedOrientations[ve.crossTileID] = Ei), tt;
11856
11875
  };
11857
- qi(() => Kt($s, p.ah.horizontal), () => {
11876
+ qi(() => Kt(qs, p.ah.horizontal), () => {
11858
11877
  const ii = Te.verticalTextBox;
11859
11878
  return o.allowVerticalPlacement && ve.numVerticalGlyphVertices > 0 && ii ? Kt(ii, p.ah.vertical) : { box: null, offscreen: null };
11860
11879
  }), $i(Tt && Tt.placeable);
11861
11880
  } else {
11862
11881
  let Kt = p.aq[(He = (wt = this.prevPlacement) === null || wt === void 0 ? void 0 : wt.variableOffsets[ve.crossTileID]) === null || He === void 0 ? void 0 : He.anchor];
11863
- const ii = (tt, hs, qs) => {
11864
- const Zs = tt.x2 - tt.x1, Sl = tt.y2 - tt.y1, yc = ve.textBoxScale, Tl = we && K === "never" ? hs : null;
11882
+ const ii = (tt, hs, Zs) => {
11883
+ const Gs = tt.x2 - tt.x1, Sl = tt.y2 - tt.y1, yc = ve.textBoxScale, Tl = we && K === "never" ? hs : null;
11865
11884
  let $r = null, Il = B === "never" ? 1 : 2, _a = "never";
11866
11885
  Kt && Il++;
11867
11886
  for (let Pn = 0; Pn < Il; Pn++) {
11868
11887
  for (let ya = Ur; ya < ir; ya++) {
11869
11888
  const xa = o.textAnchorOffsets.get(ya);
11870
11889
  if (Kt && xa.textAnchor !== Kt) continue;
11871
- const Gs = this.attemptAnchorPlacement(xa, tt, Zs, Sl, yc, le, pe, A, y, b, U, _a, ve, o, qs, m, _, Tl, ze);
11872
- if (Gs && ($r = Gs.placedGlyphBoxes, $r && $r.placeable)) return Qe = !0, tr = Gs.shift, $r;
11890
+ const Hs = this.attemptAnchorPlacement(xa, tt, Gs, Sl, yc, le, pe, A, y, b, U, _a, ve, o, Zs, m, _, Tl, ze);
11891
+ if (Hs && ($r = Hs.placedGlyphBoxes, $r && $r.placeable)) return Qe = !0, tr = Hs.shift, $r;
11873
11892
  }
11874
11893
  Kt ? Kt = null : _a = B;
11875
11894
  }
11876
- return a && !$r && ($r = { box: this.collisionIndex.placeCollisionBox($s, "always", A, y, b, pe, le, m, U.predicate, ze, new p.P(0, 0)).box, offscreen: !1, placeable: !1 }), $r;
11895
+ return a && !$r && ($r = { box: this.collisionIndex.placeCollisionBox(qs, "always", A, y, b, pe, le, m, U.predicate, ze, new p.P(0, 0)).box, offscreen: !1, placeable: !1 }), $r;
11877
11896
  };
11878
- qi(() => ii($s, Te.iconBox, p.ah.horizontal), () => {
11897
+ qi(() => ii(qs, Te.iconBox, p.ah.horizontal), () => {
11879
11898
  const tt = Te.verticalTextBox;
11880
11899
  return o.allowVerticalPlacement && (!Tt || !Tt.placeable) && ve.numVerticalGlyphVertices > 0 && tt ? ii(tt, Te.verticalIconBox, p.ah.vertical) : { box: null, occluded: !0, offscreen: null };
11881
11900
  }), Tt && (Qe = Tt.placeable, ei = Tt.offscreen);
@@ -11897,7 +11916,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11897
11916
  const Ui = $ || ve.numHorizontalGlyphVertices === 0 && ve.numVerticalGlyphVertices === 0, ga = Z || ve.numIconVertices === 0;
11898
11917
  Ui || ga ? ga ? Ui || (St = St && Qe) : Qe = St && Qe : St = Qe = St && Qe;
11899
11918
  const wo = St && ui.placeable;
11900
- if (Qe && hi.placeable && this.collisionIndex.insertCollisionBox(hi.box, B, c.get("text-ignore-placement"), o.bucketInstanceId, xi && xi.placeable && Us ? Us : vr, U.ID), wo && this.collisionIndex.insertCollisionBox(ui.box, K, c.get("icon-ignore-placement"), o.bucketInstanceId, ma, U.ID), ti && Qe && this.collisionIndex.insertCollisionCircles(ti.circles, B, c.get("text-ignore-placement"), o.bucketInstanceId, vr, U.ID), a && this.storeCollisionData(o.bucketInstanceId, je, Te, hi, ui, ti), ve.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
11919
+ if (Qe && hi.placeable && this.collisionIndex.insertCollisionBox(hi.box, B, c.get("text-ignore-placement"), o.bucketInstanceId, xi && xi.placeable && $s ? $s : vr, U.ID), wo && this.collisionIndex.insertCollisionBox(ui.box, K, c.get("icon-ignore-placement"), o.bucketInstanceId, ma, U.ID), ti && Qe && this.collisionIndex.insertCollisionCircles(ti.circles, B, c.get("text-ignore-placement"), o.bucketInstanceId, vr, U.ID), a && this.storeCollisionData(o.bucketInstanceId, je, Te, hi, ui, ti), ve.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
11901
11920
  if (o.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
11902
11921
  this.placements[ve.crossTileID] = new We(Qe || ye, St || _e, ei || o.justReloaded), s[ve.crossTileID] = !0;
11903
11922
  };
@@ -11972,7 +11991,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11972
11991
  !e.collisionArrays && o && (e.hasIconCollisionBoxData() || e.hasTextCollisionBoxData()) && e.deserializeCollisionBoxes(o);
11973
11992
  const V = ($, Z, B) => {
11974
11993
  for (let X = 0; X < Z / 4; X++) $.opacityVertexArray.emplaceBack(B);
11975
- $.hasVisibleVertices = $.hasVisibleVertices || B !== bs;
11994
+ $.hasVisibleVertices = $.hasVisibleVertices || B !== ws;
11976
11995
  }, U = this.collisionBoxArrays.get(e.bucketInstanceId);
11977
11996
  for (let $ = 0; $ < e.symbolInstances.length; $++) {
11978
11997
  const Z = e.symbolInstances.get($), { numHorizontalGlyphVertices: B, numVerticalGlyphVertices: X, crossTileID: K } = Z;
@@ -11981,7 +12000,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11981
12000
  const le = Z.numIconVertices > 0, pe = this.placedOrientations[Z.crossTileID], we = pe === p.ah.vertical, Pe = pe === p.ah.horizontal || pe === p.ah.horizontalOnly;
11982
12001
  if (B > 0 || X > 0) {
11983
12002
  const _e = Ai(ee.text);
11984
- V(e.text, B, we ? bs : _e), V(e.text, X, Pe ? bs : _e);
12003
+ V(e.text, B, we ? ws : _e), V(e.text, X, Pe ? ws : _e);
11985
12004
  const ze = ee.text.isHidden();
11986
12005
  [Z.rightJustifiedTextSymbolIndex, Z.centerJustifiedTextSymbolIndex, Z.leftJustifiedTextSymbolIndex].forEach((Te) => {
11987
12006
  Te >= 0 && (e.text.placedSymbolArray.get(Te).hidden = ze || we ? 1 : 0);
@@ -11993,7 +12012,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11993
12012
  }
11994
12013
  if (le) {
11995
12014
  const _e = Ai(ee.icon), ze = !(D && Z.verticalPlacedIconSymbolIndex && we);
11996
- Z.placedIconSymbolIndex >= 0 && (V(e.icon, Z.numIconVertices, ze ? _e : bs), e.icon.placedSymbolArray.get(Z.placedIconSymbolIndex).hidden = ee.icon.isHidden()), Z.verticalPlacedIconSymbolIndex >= 0 && (V(e.icon, Z.numVerticalIconVertices, ze ? bs : _e), e.icon.placedSymbolArray.get(Z.verticalPlacedIconSymbolIndex).hidden = ee.icon.isHidden());
12015
+ Z.placedIconSymbolIndex >= 0 && (V(e.icon, Z.numIconVertices, ze ? _e : ws), e.icon.placedSymbolArray.get(Z.placedIconSymbolIndex).hidden = ee.icon.isHidden()), Z.verticalPlacedIconSymbolIndex >= 0 && (V(e.icon, Z.numVerticalIconVertices, ze ? ws : _e), e.icon.placedSymbolArray.get(Z.verticalPlacedIconSymbolIndex).hidden = ee.icon.isHidden());
11997
12016
  }
11998
12017
  const ye = U && U.has($) ? U.get($) : { text: null, icon: null };
11999
12018
  if (e.hasIconCollisionBoxData() || e.hasTextCollisionBoxData()) {
@@ -12008,13 +12027,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12008
12027
  }
12009
12028
  if (_e.textBox || _e.verticalTextBox) {
12010
12029
  let ve;
12011
- _e.textBox && (ve = we), _e.verticalTextBox && (ve = Pe), vs(e.textCollisionBox.collisionVertexArray, ee.text.placed, !$e || ve, ye.text, ze.x, ze.y);
12030
+ _e.textBox && (ve = we), _e.verticalTextBox && (ve = Pe), bs(e.textCollisionBox.collisionVertexArray, ee.text.placed, !$e || ve, ye.text, ze.x, ze.y);
12012
12031
  }
12013
12032
  }
12014
12033
  if (_e.iconBox || _e.verticalIconBox) {
12015
12034
  const $e = !!(!Pe && _e.verticalIconBox);
12016
12035
  let ve;
12017
- _e.iconBox && (ve = $e), _e.verticalIconBox && (ve = !$e), vs(e.iconCollisionBox.collisionVertexArray, ee.icon.placed, ve, ye.icon, D ? ze.x : 0, D ? ze.y : 0);
12036
+ _e.iconBox && (ve = $e), _e.verticalIconBox && (ve = !$e), bs(e.iconCollisionBox.collisionVertexArray, ee.icon.placed, ve, ye.icon, D ? ze.x : 0, D ? ze.y : 0);
12018
12037
  }
12019
12038
  }
12020
12039
  }
@@ -12043,7 +12062,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12043
12062
  this.stale = !0;
12044
12063
  }
12045
12064
  }
12046
- function vs(h, e, s, a, o, c) {
12065
+ function bs(h, e, s, a, o, c) {
12047
12066
  a && a.length !== 0 || (a = [0, 0, 0, 0]);
12048
12067
  const m = a[0] - Ze, _ = a[1] - Ze, y = a[2] - Ze, b = a[3] - Ze;
12049
12068
  h.emplaceBack(e ? 1 : 0, s ? 1 : 0, o || 0, c || 0, m, _), h.emplaceBack(e ? 1 : 0, s ? 1 : 0, o || 0, c || 0, y, _), h.emplaceBack(e ? 1 : 0, s ? 1 : 0, o || 0, c || 0, y, b), h.emplaceBack(e ? 1 : 0, s ? 1 : 0, o || 0, c || 0, m, b);
@@ -12055,7 +12074,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12055
12074
  const e = h.placed ? 1 : 0, s = Math.floor(127 * h.opacity);
12056
12075
  return s * dt + e * Ea + s * Da + e * Mi + s * ki + e * Gl + s * Oi + e;
12057
12076
  }
12058
- const bs = 0;
12077
+ const ws = 0;
12059
12078
  function Yr() {
12060
12079
  return { isOccluded: (h, e, s) => !1, getPitchedTextCorrection: (h, e, s) => 1, get useSpecialProjectionForSymbols() {
12061
12080
  return !1;
@@ -12071,7 +12090,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12071
12090
  return [y ? m[0] : Ye(c, m[0], o.zoom), y ? m[1] : Ye(c, m[1], o.zoom)];
12072
12091
  }(h, e, s, a), getCircleRadiusCorrection: (h) => 1 };
12073
12092
  }
12074
- class Ot {
12093
+ class Nt {
12075
12094
  constructor(e) {
12076
12095
  this._sortAcrossTiles = e.layout.get("symbol-z-order") !== "viewport-y" && !e.layout.get("symbol-sort-key").isConstant(), this._currentTileIndex = 0, this._currentPartIndex = 0, this._seenCrossTileIDs = {}, this._bucketParts = [];
12077
12096
  }
@@ -12094,7 +12113,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12094
12113
  for (; this._currentPlacementIndex >= 0; ) {
12095
12114
  const m = s[e[this._currentPlacementIndex]], _ = this.placement.collisionIndex.transform.zoom;
12096
12115
  if (m.type === "symbol" && (!m.minzoom || m.minzoom <= _) && (!m.maxzoom || m.maxzoom > _)) {
12097
- if (this._inProgressLayer || (this._inProgressLayer = new Ot(m)), this._inProgressLayer.continuePlacement(a[m.source], this.placement, this._showCollisionBoxes, m, c)) return;
12116
+ if (this._inProgressLayer || (this._inProgressLayer = new Nt(m)), this._inProgressLayer.continuePlacement(a[m.source], this.placement, this._showCollisionBoxes, m, c)) return;
12098
12117
  delete this._inProgressLayer;
12099
12118
  }
12100
12119
  this._currentPlacementIndex--;
@@ -12251,7 +12270,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12251
12270
  const o = this.sourceCaches[a].getSource().type;
12252
12271
  o !== "vector" && o !== "geojson" || this.sourceCaches[a].reload();
12253
12272
  }
12254
- }, this.map = e, this.dispatcher = new Kr(Wr(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", (a, o) => this.getGlyphs(a, o)), this.dispatcher.registerMessageHandler("GI", (a, o) => this.getImages(a, o)), this.imageManager = new Yt(), this.imageManager.setEventedParent(this), this.glyphManager = new ur(e._requestManager, s.localIdeographFontFamily), this.lineAtlas = new gs(256, 512), this.crossTileSymbolIndex = new La(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new p.ax(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", p.ay()), fr().on(fe, this._rtlPluginLoaded), this.on("data", (a) => {
12273
+ }, this.map = e, this.dispatcher = new Kr(Wr(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", (a, o) => this.getGlyphs(a, o)), this.dispatcher.registerMessageHandler("GI", (a, o) => this.getImages(a, o)), this.imageManager = new Yt(), this.imageManager.setEventedParent(this), this.glyphManager = new ur(e._requestManager, s.localIdeographFontFamily), this.lineAtlas = new _s(256, 512), this.crossTileSymbolIndex = new La(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new p.ax(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", p.ay()), fr().on(fe, this._rtlPluginLoaded), this.on("data", (a) => {
12255
12274
  if (a.dataType !== "source" || a.sourceDataType !== "metadata") return;
12256
12275
  const o = this.sourceCaches[a.sourceId];
12257
12276
  if (!o) return;
@@ -13470,7 +13489,7 @@ uniform ${S} ${T} u_${A};
13470
13489
  }
13471
13490
  }
13472
13491
  const Ba = (h, e, s, a, o) => ({ u_matrix: h, u_texture: 0, u_ele_delta: e, u_fog_matrix: s, u_fog_color: a ? a.properties.get("fog-color") : p.aM.white, u_fog_ground_blend: a ? a.properties.get("fog-ground-blend") : 1, u_fog_ground_blend_opacity: a ? a.calculateFogBlendOpacity(o) : 0, u_horizon_color: a ? a.properties.get("horizon-color") : p.aM.white, u_horizon_fog_blend: a ? a.properties.get("horizon-fog-blend") : 1 });
13473
- function ws(h) {
13492
+ function Ss(h) {
13474
13493
  const e = [];
13475
13494
  for (let s = 0; s < h.length; s++) {
13476
13495
  if (h[s] === null) continue;
@@ -13483,7 +13502,7 @@ uniform ${S} ${T} u_${A};
13483
13502
  constructor(e, s, a, o, c, m) {
13484
13503
  const _ = e.gl;
13485
13504
  this.program = _.createProgram();
13486
- const y = ws(s.staticAttributes), b = a ? a.getBinderAttributes() : [], S = y.concat(b), T = Nr.prelude.staticUniforms ? ws(Nr.prelude.staticUniforms) : [], A = s.staticUniforms ? ws(s.staticUniforms) : [], D = a ? a.getBinderUniforms() : [], R = T.concat(A).concat(D), V = [];
13505
+ const y = Ss(s.staticAttributes), b = a ? a.getBinderAttributes() : [], S = y.concat(b), T = Nr.prelude.staticUniforms ? Ss(Nr.prelude.staticUniforms) : [], A = s.staticUniforms ? Ss(s.staticUniforms) : [], D = a ? a.getBinderUniforms() : [], R = T.concat(A).concat(D), V = [];
13487
13506
  for (const ee of R) V.indexOf(ee) < 0 && V.push(ee);
13488
13507
  const U = a ? a.defines() : [];
13489
13508
  c && U.push("#define OVERDRAW_INSPECTOR;"), m && U.push("#define TERRAIN3D;");
@@ -13555,7 +13574,7 @@ uniform ${S} ${T} u_${A};
13555
13574
  }(m, m, _);
13556
13575
  const y = o.properties.get("color");
13557
13576
  return { u_matrix: h, u_lightpos: m, u_lightintensity: o.properties.get("intensity"), u_lightcolor: [y.r, y.g, y.b], u_vertical_gradient: +s, u_opacity: a };
13558
- }, jn = (h, e, s, a, o, c, m) => p.e(cn(h, e, s, a), Nn(c, e, m), { u_height_factor: -Math.pow(2, o.overscaledZ) / m.tileSize / 8 }), Ss = (h) => ({ u_matrix: h }), qo = (h, e, s, a) => p.e(Ss(h), Nn(s, e, a)), Xl = (h, e) => ({ u_matrix: h, u_world: e }), Zo = (h, e, s, a, o) => p.e(qo(h, e, s, a), { u_world: o }), Wl = (h, e, s, a) => {
13577
+ }, jn = (h, e, s, a, o, c, m) => p.e(cn(h, e, s, a), Nn(c, e, m), { u_height_factor: -Math.pow(2, o.overscaledZ) / m.tileSize / 8 }), Ts = (h) => ({ u_matrix: h }), qo = (h, e, s, a) => p.e(Ts(h), Nn(s, e, a)), Xl = (h, e) => ({ u_matrix: h, u_world: e }), Zo = (h, e, s, a, o) => p.e(qo(h, e, s, a), { u_world: o }), Wl = (h, e, s, a) => {
13559
13578
  const o = h.transform;
13560
13579
  let c, m;
13561
13580
  if (a.paint.get("circle-pitch-alignment") === "map") {
@@ -13576,7 +13595,7 @@ uniform ${S} ${T} u_${A};
13576
13595
  const qn = (h, e, s, a) => {
13577
13596
  const o = h.transform;
13578
13597
  return { u_matrix: Xo(h, e, s, a), u_ratio: 1 / Ye(e, 1, o.zoom), u_device_pixel_ratio: h.pixelRatio, u_units_to_pixels: [1 / o.pixelsToGLUnits[0], 1 / o.pixelsToGLUnits[1]] };
13579
- }, Go = (h, e, s, a, o) => p.e(qn(h, e, s, o), { u_image: 0, u_image_height: a }), Ts = (h, e, s, a, o) => {
13598
+ }, Go = (h, e, s, a, o) => p.e(qn(h, e, s, o), { u_image: 0, u_image_height: a }), Is = (h, e, s, a, o) => {
13580
13599
  const c = h.transform, m = Ho(e, c);
13581
13600
  return { u_matrix: Xo(h, e, s, o), u_texsize: e.imageAtlasTexture.size, u_ratio: 1 / Ye(e, 1, c.zoom), u_device_pixel_ratio: h.pixelRatio, u_image: 0, u_scale: [m, a.fromScale, a.toScale], u_fade: a.t, u_units_to_pixels: [1 / c.pixelsToGLUnits[0], 1 / c.pixelsToGLUnits[1]] };
13582
13601
  }, Kl = (h, e, s, a, o, c) => {
@@ -13666,7 +13685,7 @@ uniform ${S} ${T} u_${A};
13666
13685
  return ts.set(h, s), s;
13667
13686
  }
13668
13687
  }
13669
- class lt {
13688
+ class ct {
13670
13689
  constructor(e) {
13671
13690
  this.gl = e.gl, this.default = this.getDefault(), this.current = this.default, this.dirty = !1;
13672
13691
  }
@@ -13682,7 +13701,7 @@ uniform ${S} ${T} u_${A};
13682
13701
  this.set(this.default);
13683
13702
  }
13684
13703
  }
13685
- class Gn extends lt {
13704
+ class Gn extends ct {
13686
13705
  getDefault() {
13687
13706
  return p.aM.transparent;
13688
13707
  }
@@ -13691,7 +13710,7 @@ uniform ${S} ${T} u_${A};
13691
13710
  (e.r !== s.r || e.g !== s.g || e.b !== s.b || e.a !== s.a || this.dirty) && (this.gl.clearColor(e.r, e.g, e.b, e.a), this.current = e, this.dirty = !1);
13692
13711
  }
13693
13712
  }
13694
- class ec extends lt {
13713
+ class ec extends ct {
13695
13714
  getDefault() {
13696
13715
  return 1;
13697
13716
  }
@@ -13699,7 +13718,7 @@ uniform ${S} ${T} u_${A};
13699
13718
  (e !== this.current || this.dirty) && (this.gl.clearDepth(e), this.current = e, this.dirty = !1);
13700
13719
  }
13701
13720
  }
13702
- class Is extends lt {
13721
+ class Ps extends ct {
13703
13722
  getDefault() {
13704
13723
  return 0;
13705
13724
  }
@@ -13707,7 +13726,7 @@ uniform ${S} ${T} u_${A};
13707
13726
  (e !== this.current || this.dirty) && (this.gl.clearStencil(e), this.current = e, this.dirty = !1);
13708
13727
  }
13709
13728
  }
13710
- class tc extends lt {
13729
+ class tc extends ct {
13711
13730
  getDefault() {
13712
13731
  return [!0, !0, !0, !0];
13713
13732
  }
@@ -13716,7 +13735,7 @@ uniform ${S} ${T} u_${A};
13716
13735
  (e[0] !== s[0] || e[1] !== s[1] || e[2] !== s[2] || e[3] !== s[3] || this.dirty) && (this.gl.colorMask(e[0], e[1], e[2], e[3]), this.current = e, this.dirty = !1);
13717
13736
  }
13718
13737
  }
13719
- class Ko extends lt {
13738
+ class Ko extends ct {
13720
13739
  getDefault() {
13721
13740
  return !0;
13722
13741
  }
@@ -13724,7 +13743,7 @@ uniform ${S} ${T} u_${A};
13724
13743
  (e !== this.current || this.dirty) && (this.gl.depthMask(e), this.current = e, this.dirty = !1);
13725
13744
  }
13726
13745
  }
13727
- class ic extends lt {
13746
+ class ic extends ct {
13728
13747
  getDefault() {
13729
13748
  return 255;
13730
13749
  }
@@ -13732,7 +13751,7 @@ uniform ${S} ${T} u_${A};
13732
13751
  (e !== this.current || this.dirty) && (this.gl.stencilMask(e), this.current = e, this.dirty = !1);
13733
13752
  }
13734
13753
  }
13735
- class Jo extends lt {
13754
+ class Jo extends ct {
13736
13755
  getDefault() {
13737
13756
  return { func: this.gl.ALWAYS, ref: 0, mask: 255 };
13738
13757
  }
@@ -13741,7 +13760,7 @@ uniform ${S} ${T} u_${A};
13741
13760
  (e.func !== s.func || e.ref !== s.ref || e.mask !== s.mask || this.dirty) && (this.gl.stencilFunc(e.func, e.ref, e.mask), this.current = e, this.dirty = !1);
13742
13761
  }
13743
13762
  }
13744
- class Ua extends lt {
13763
+ class Ua extends ct {
13745
13764
  getDefault() {
13746
13765
  const e = this.gl;
13747
13766
  return [e.KEEP, e.KEEP, e.KEEP];
@@ -13751,7 +13770,7 @@ uniform ${S} ${T} u_${A};
13751
13770
  (e[0] !== s[0] || e[1] !== s[1] || e[2] !== s[2] || this.dirty) && (this.gl.stencilOp(e[0], e[1], e[2]), this.current = e, this.dirty = !1);
13752
13771
  }
13753
13772
  }
13754
- class Yo extends lt {
13773
+ class Yo extends ct {
13755
13774
  getDefault() {
13756
13775
  return !1;
13757
13776
  }
@@ -13761,7 +13780,7 @@ uniform ${S} ${T} u_${A};
13761
13780
  e ? s.enable(s.STENCIL_TEST) : s.disable(s.STENCIL_TEST), this.current = e, this.dirty = !1;
13762
13781
  }
13763
13782
  }
13764
- class Qo extends lt {
13783
+ class Qo extends ct {
13765
13784
  getDefault() {
13766
13785
  return [0, 1];
13767
13786
  }
@@ -13770,7 +13789,7 @@ uniform ${S} ${T} u_${A};
13770
13789
  (e[0] !== s[0] || e[1] !== s[1] || this.dirty) && (this.gl.depthRange(e[0], e[1]), this.current = e, this.dirty = !1);
13771
13790
  }
13772
13791
  }
13773
- class el extends lt {
13792
+ class el extends ct {
13774
13793
  getDefault() {
13775
13794
  return !1;
13776
13795
  }
@@ -13780,7 +13799,7 @@ uniform ${S} ${T} u_${A};
13780
13799
  e ? s.enable(s.DEPTH_TEST) : s.disable(s.DEPTH_TEST), this.current = e, this.dirty = !1;
13781
13800
  }
13782
13801
  }
13783
- class tl extends lt {
13802
+ class tl extends ct {
13784
13803
  getDefault() {
13785
13804
  return this.gl.LESS;
13786
13805
  }
@@ -13788,7 +13807,7 @@ uniform ${S} ${T} u_${A};
13788
13807
  (e !== this.current || this.dirty) && (this.gl.depthFunc(e), this.current = e, this.dirty = !1);
13789
13808
  }
13790
13809
  }
13791
- class is extends lt {
13810
+ class is extends ct {
13792
13811
  getDefault() {
13793
13812
  return !1;
13794
13813
  }
@@ -13798,7 +13817,7 @@ uniform ${S} ${T} u_${A};
13798
13817
  e ? s.enable(s.BLEND) : s.disable(s.BLEND), this.current = e, this.dirty = !1;
13799
13818
  }
13800
13819
  }
13801
- class il extends lt {
13820
+ class il extends ct {
13802
13821
  getDefault() {
13803
13822
  const e = this.gl;
13804
13823
  return [e.ONE, e.ZERO];
@@ -13808,7 +13827,7 @@ uniform ${S} ${T} u_${A};
13808
13827
  (e[0] !== s[0] || e[1] !== s[1] || this.dirty) && (this.gl.blendFunc(e[0], e[1]), this.current = e, this.dirty = !1);
13809
13828
  }
13810
13829
  }
13811
- class rc extends lt {
13830
+ class rc extends ct {
13812
13831
  getDefault() {
13813
13832
  return p.aM.transparent;
13814
13833
  }
@@ -13817,7 +13836,7 @@ uniform ${S} ${T} u_${A};
13817
13836
  (e.r !== s.r || e.g !== s.g || e.b !== s.b || e.a !== s.a || this.dirty) && (this.gl.blendColor(e.r, e.g, e.b, e.a), this.current = e, this.dirty = !1);
13818
13837
  }
13819
13838
  }
13820
- class rl extends lt {
13839
+ class rl extends ct {
13821
13840
  getDefault() {
13822
13841
  return this.gl.FUNC_ADD;
13823
13842
  }
@@ -13825,7 +13844,7 @@ uniform ${S} ${T} u_${A};
13825
13844
  (e !== this.current || this.dirty) && (this.gl.blendEquation(e), this.current = e, this.dirty = !1);
13826
13845
  }
13827
13846
  }
13828
- class dn extends lt {
13847
+ class dn extends ct {
13829
13848
  getDefault() {
13830
13849
  return !1;
13831
13850
  }
@@ -13835,7 +13854,7 @@ uniform ${S} ${T} u_${A};
13835
13854
  e ? s.enable(s.CULL_FACE) : s.disable(s.CULL_FACE), this.current = e, this.dirty = !1;
13836
13855
  }
13837
13856
  }
13838
- class sc extends lt {
13857
+ class sc extends ct {
13839
13858
  getDefault() {
13840
13859
  return this.gl.BACK;
13841
13860
  }
@@ -13843,7 +13862,7 @@ uniform ${S} ${T} u_${A};
13843
13862
  (e !== this.current || this.dirty) && (this.gl.cullFace(e), this.current = e, this.dirty = !1);
13844
13863
  }
13845
13864
  }
13846
- class Hn extends lt {
13865
+ class Hn extends ct {
13847
13866
  getDefault() {
13848
13867
  return this.gl.CCW;
13849
13868
  }
@@ -13851,7 +13870,7 @@ uniform ${S} ${T} u_${A};
13851
13870
  (e !== this.current || this.dirty) && (this.gl.frontFace(e), this.current = e, this.dirty = !1);
13852
13871
  }
13853
13872
  }
13854
- class nc extends lt {
13873
+ class nc extends ct {
13855
13874
  getDefault() {
13856
13875
  return null;
13857
13876
  }
@@ -13859,7 +13878,7 @@ uniform ${S} ${T} u_${A};
13859
13878
  (e !== this.current || this.dirty) && (this.gl.useProgram(e), this.current = e, this.dirty = !1);
13860
13879
  }
13861
13880
  }
13862
- class ac extends lt {
13881
+ class ac extends ct {
13863
13882
  getDefault() {
13864
13883
  return this.gl.TEXTURE0;
13865
13884
  }
@@ -13867,7 +13886,7 @@ uniform ${S} ${T} u_${A};
13867
13886
  (e !== this.current || this.dirty) && (this.gl.activeTexture(e), this.current = e, this.dirty = !1);
13868
13887
  }
13869
13888
  }
13870
- class sl extends lt {
13889
+ class sl extends ct {
13871
13890
  getDefault() {
13872
13891
  const e = this.gl;
13873
13892
  return [0, 0, e.drawingBufferWidth, e.drawingBufferHeight];
@@ -13877,7 +13896,7 @@ uniform ${S} ${T} u_${A};
13877
13896
  (e[0] !== s[0] || e[1] !== s[1] || e[2] !== s[2] || e[3] !== s[3] || this.dirty) && (this.gl.viewport(e[0], e[1], e[2], e[3]), this.current = e, this.dirty = !1);
13878
13897
  }
13879
13898
  }
13880
- class nl extends lt {
13899
+ class nl extends ct {
13881
13900
  getDefault() {
13882
13901
  return null;
13883
13902
  }
@@ -13887,7 +13906,7 @@ uniform ${S} ${T} u_${A};
13887
13906
  s.bindFramebuffer(s.FRAMEBUFFER, e), this.current = e, this.dirty = !1;
13888
13907
  }
13889
13908
  }
13890
- class al extends lt {
13909
+ class al extends ct {
13891
13910
  getDefault() {
13892
13911
  return null;
13893
13912
  }
@@ -13897,7 +13916,7 @@ uniform ${S} ${T} u_${A};
13897
13916
  s.bindRenderbuffer(s.RENDERBUFFER, e), this.current = e, this.dirty = !1;
13898
13917
  }
13899
13918
  }
13900
- class $a extends lt {
13919
+ class $a extends ct {
13901
13920
  getDefault() {
13902
13921
  return null;
13903
13922
  }
@@ -13907,7 +13926,7 @@ uniform ${S} ${T} u_${A};
13907
13926
  s.bindTexture(s.TEXTURE_2D, e), this.current = e, this.dirty = !1;
13908
13927
  }
13909
13928
  }
13910
- class ol extends lt {
13929
+ class ol extends ct {
13911
13930
  getDefault() {
13912
13931
  return null;
13913
13932
  }
@@ -13917,7 +13936,7 @@ uniform ${S} ${T} u_${A};
13917
13936
  s.bindBuffer(s.ARRAY_BUFFER, e), this.current = e, this.dirty = !1;
13918
13937
  }
13919
13938
  }
13920
- class Xn extends lt {
13939
+ class Xn extends ct {
13921
13940
  getDefault() {
13922
13941
  return null;
13923
13942
  }
@@ -13926,7 +13945,7 @@ uniform ${S} ${T} u_${A};
13926
13945
  s.bindBuffer(s.ELEMENT_ARRAY_BUFFER, e), this.current = e, this.dirty = !1;
13927
13946
  }
13928
13947
  }
13929
- class Ar extends lt {
13948
+ class Ar extends ct {
13930
13949
  getDefault() {
13931
13950
  return null;
13932
13951
  }
@@ -13937,7 +13956,7 @@ uniform ${S} ${T} u_${A};
13937
13956
  jr(a) ? a.bindVertexArray(e) : (s = a.getExtension("OES_vertex_array_object")) === null || s === void 0 || s.bindVertexArrayOES(e), this.current = e, this.dirty = !1;
13938
13957
  }
13939
13958
  }
13940
- class qa extends lt {
13959
+ class qa extends ct {
13941
13960
  getDefault() {
13942
13961
  return 4;
13943
13962
  }
@@ -13947,7 +13966,7 @@ uniform ${S} ${T} u_${A};
13947
13966
  s.pixelStorei(s.UNPACK_ALIGNMENT, e), this.current = e, this.dirty = !1;
13948
13967
  }
13949
13968
  }
13950
- class Za extends lt {
13969
+ class Za extends ct {
13951
13970
  getDefault() {
13952
13971
  return !1;
13953
13972
  }
@@ -13957,7 +13976,7 @@ uniform ${S} ${T} u_${A};
13957
13976
  s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, e), this.current = e, this.dirty = !1;
13958
13977
  }
13959
13978
  }
13960
- class Ga extends lt {
13979
+ class Ga extends ct {
13961
13980
  getDefault() {
13962
13981
  return !1;
13963
13982
  }
@@ -13967,7 +13986,7 @@ uniform ${S} ${T} u_${A};
13967
13986
  s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, e), this.current = e, this.dirty = !1;
13968
13987
  }
13969
13988
  }
13970
- class Wn extends lt {
13989
+ class Wn extends ct {
13971
13990
  constructor(e, s) {
13972
13991
  super(e), this.context = e, this.parent = s;
13973
13992
  }
@@ -14028,7 +14047,7 @@ uniform ${S} ${T} u_${A};
14028
14047
  class lc {
14029
14048
  constructor(e) {
14030
14049
  var s, a;
14031
- if (this.gl = e, this.clearColor = new Gn(this), this.clearDepth = new ec(this), this.clearStencil = new Is(this), this.colorMask = new tc(this), this.depthMask = new Ko(this), this.stencilMask = new ic(this), this.stencilFunc = new Jo(this), this.stencilOp = new Ua(this), this.stencilTest = new Yo(this), this.depthRange = new Qo(this), this.depthTest = new el(this), this.depthFunc = new tl(this), this.blend = new is(this), this.blendFunc = new il(this), this.blendColor = new rc(this), this.blendEquation = new rl(this), this.cullFace = new dn(this), this.cullFaceSide = new sc(this), this.frontFace = new Hn(this), this.program = new nc(this), this.activeTexture = new ac(this), this.viewport = new sl(this), this.bindFramebuffer = new nl(this), this.bindRenderbuffer = new al(this), this.bindTexture = new $a(this), this.bindVertexBuffer = new ol(this), this.bindElementBuffer = new Xn(this), this.bindVertexArray = new Ar(this), this.pixelStoreUnpack = new qa(this), this.pixelStoreUnpackPremultiplyAlpha = new Za(this), this.pixelStoreUnpackFlipY = new Ga(this), this.extTextureFilterAnisotropic = e.getExtension("EXT_texture_filter_anisotropic") || e.getExtension("MOZ_EXT_texture_filter_anisotropic") || e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = e.getParameter(e.MAX_TEXTURE_SIZE), jr(e)) {
14050
+ if (this.gl = e, this.clearColor = new Gn(this), this.clearDepth = new ec(this), this.clearStencil = new Ps(this), this.colorMask = new tc(this), this.depthMask = new Ko(this), this.stencilMask = new ic(this), this.stencilFunc = new Jo(this), this.stencilOp = new Ua(this), this.stencilTest = new Yo(this), this.depthRange = new Qo(this), this.depthTest = new el(this), this.depthFunc = new tl(this), this.blend = new is(this), this.blendFunc = new il(this), this.blendColor = new rc(this), this.blendEquation = new rl(this), this.cullFace = new dn(this), this.cullFaceSide = new sc(this), this.frontFace = new Hn(this), this.program = new nc(this), this.activeTexture = new ac(this), this.viewport = new sl(this), this.bindFramebuffer = new nl(this), this.bindRenderbuffer = new al(this), this.bindTexture = new $a(this), this.bindVertexBuffer = new ol(this), this.bindElementBuffer = new Xn(this), this.bindVertexArray = new Ar(this), this.pixelStoreUnpack = new qa(this), this.pixelStoreUnpackPremultiplyAlpha = new Za(this), this.pixelStoreUnpackFlipY = new Ga(this), this.extTextureFilterAnisotropic = e.getExtension("EXT_texture_filter_anisotropic") || e.getExtension("MOZ_EXT_texture_filter_anisotropic") || e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = e.getParameter(e.MAX_TEXTURE_SIZE), jr(e)) {
14032
14051
  this.HALF_FLOAT = e.HALF_FLOAT;
14033
14052
  const o = e.getExtension("EXT_color_buffer_half_float");
14034
14053
  this.RGBA16F = (s = e.RGBA16F) !== null && s !== void 0 ? s : o == null ? void 0 : o.RGBA16F_EXT, this.RGB16F = (a = e.RGB16F) !== null && a !== void 0 ? a : o == null ? void 0 : o.RGB16F_EXT, e.getExtension("EXT_color_buffer_float");
@@ -14163,7 +14182,7 @@ uniform ${S} ${T} u_${A};
14163
14182
  }
14164
14183
  return h.add(a);
14165
14184
  }
14166
- function Ps(h, e, s, a, o, c, m, _, y, b, S, T, A, D) {
14185
+ function Ms(h, e, s, a, o, c, m, _, y, b, S, T, A, D) {
14167
14186
  const R = h.text.placedSymbolArray, V = h.text.dynamicLayoutVertexArray, U = h.icon.dynamicLayoutVertexArray, $ = {};
14168
14187
  V.clear();
14169
14188
  for (let Z = 0; Z < R.length; Z++) {
@@ -14212,12 +14231,12 @@ uniform ${S} ${T} u_${A};
14212
14231
  const tt = s.layout.get("icon-size").constantOr(0) !== 1 || ze.iconsNeedLinear;
14213
14232
  tr = _e.imageAtlasTexture, Tt = Te || h.options.rotating || h.options.zooming || tt || wt ? D.LINEAR : D.NEAREST, ei = _e.imageAtlasTexture.size;
14214
14233
  }
14215
- const ui = Ye(_e, 1, h.transform.zoom), vr = X ? ye.posMatrix : fn, Us = Vr(vr, $, U, h.transform, ui), ma = gr(vr, $, U, h.transform, ui), $s = gr(ye.posMatrix, $, U, h.transform, ui), Ui = V.translatePosition(h.transform, _e, c, m), ga = pe && ze.hasTextData(), wo = s.layout.get("icon-text-fit") !== "none" && ga && ze.hasIconData();
14234
+ const ui = Ye(_e, 1, h.transform.zoom), vr = X ? ye.posMatrix : fn, $s = Vr(vr, $, U, h.transform, ui), ma = gr(vr, $, U, h.transform, ui), qs = gr(ye.posMatrix, $, U, h.transform, ui), Ui = V.translatePosition(h.transform, _e, c, m), ga = pe && ze.hasTextData(), wo = s.layout.get("icon-text-fit") !== "none" && ga && ze.hasIconData();
14216
14235
  if (Z) {
14217
- const tt = h.style.map.terrain ? (qs, Zs) => h.style.map.terrain.getElevation(ye, qs, Zs) : null, hs = s.layout.get("text-rotation-alignment") === "map";
14218
- L(ze, ye.posMatrix, h, o, Us, $s, $, b, hs, V, ye.toUnwrapped(), R.width, R.height, Ui, tt);
14236
+ const tt = h.style.map.terrain ? (Zs, Gs) => h.style.map.terrain.getElevation(ye, Zs, Gs) : null, hs = s.layout.get("text-rotation-alignment") === "map";
14237
+ L(ze, ye.posMatrix, h, o, $s, qs, $, b, hs, V, ye.toUnwrapped(), R.width, R.height, Ui, tt);
14219
14238
  }
14220
- const $i = ye.posMatrix, qi = o && pe || wo, Ur = Z || qi ? fn : Us, ir = ma, Kt = Te && s.paint.get(o ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
14239
+ const $i = ye.posMatrix, qi = o && pe || wo, Ur = Z || qi ? fn : $s, ir = ma, Kt = Te && s.paint.get(o ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
14221
14240
  let ii;
14222
14241
  ii = Te ? ze.iconsInText ? Oa(je.kind, Qe, B, $, Z, qi, h, $i, Ur, ir, Ui, ei, hi, Pe) : un(je.kind, Qe, B, $, Z, qi, h, $i, Ur, ir, Ui, o, ei, !0, Pe) : Wo(je.kind, Qe, B, $, Z, qi, h, $i, Ur, ir, Ui, o, ei, Pe);
14223
14242
  const Ei = { program: He, buffers: $e, uniformValues: ii, atlasTexture: tr, atlasTextureIcon: ti, atlasInterpolation: Tt, atlasInterpolationIcon: xi, isSDF: Te, hasHalo: Kt };
@@ -14268,7 +14287,7 @@ uniform ${S} ${T} u_${A};
14268
14287
  function gn(h, e) {
14269
14288
  return e.colorRampTexture || (e.colorRampTexture = new pt(h, e.colorRamp, h.gl.RGBA)), e.colorRampTexture;
14270
14289
  }
14271
- function Ms(h, e, s, a, o) {
14290
+ function ks(h, e, s, a, o) {
14272
14291
  if (!s || !a || !a.imageAtlas) return;
14273
14292
  const c = a.imageAtlas.patternPositions;
14274
14293
  let m = c[s.to.toString()], _ = c[s.from.toString()];
@@ -14289,13 +14308,13 @@ uniform ${S} ${T} u_${A};
14289
14308
  const X = B.getBucket(s);
14290
14309
  if (!X) continue;
14291
14310
  const K = X.programConfigurations.get(s.id), ee = h.useProgram(D, K), le = h.style.map.terrain && h.style.map.terrain.getTerrainData(Z);
14292
- S && (h.context.activeTexture.set(_.TEXTURE0), B.imageAtlasTexture.bind(_.LINEAR, _.CLAMP_TO_EDGE), K.updatePaintBuffers(T)), Ms(K, y, $, B, s);
14311
+ S && (h.context.activeTexture.set(_.TEXTURE0), B.imageAtlasTexture.bind(_.LINEAR, _.CLAMP_TO_EDGE), K.updatePaintBuffers(T)), ks(K, y, $, B, s);
14293
14312
  const pe = le ? Z : null, we = h.translatePosMatrix(pe ? pe.posMatrix : Z.posMatrix, B, s.paint.get("fill-translate"), s.paint.get("fill-translate-anchor"));
14294
14313
  if (m) {
14295
14314
  V = X.indexBuffer2, U = X.segments2;
14296
14315
  const Pe = [_.drawingBufferWidth, _.drawingBufferHeight];
14297
14316
  R = D === "fillOutlinePattern" && S ? Zo(we, h, T, B, Pe) : Xl(we, Pe);
14298
- } else V = X.indexBuffer, U = X.segments, R = S ? qo(we, h, T, B) : Ss(we);
14317
+ } else V = X.indexBuffer, U = X.segments, R = S ? qo(we, h, T, B) : Ts(we);
14299
14318
  ee.draw(h.context, A, o, h.stencilModeForClipping(Z), c, ft.disabled, R, le, s.id, X.layoutVertexBuffer, V, U, s.paint, h.transform.zoom, K);
14300
14319
  }
14301
14320
  }
@@ -14305,12 +14324,12 @@ uniform ${S} ${T} u_${A};
14305
14324
  const U = e.getTile(V), $ = U.getBucket(s);
14306
14325
  if (!$) continue;
14307
14326
  const Z = h.style.map.terrain && h.style.map.terrain.getTerrainData(V), B = $.programConfigurations.get(s.id), X = h.useProgram(T ? "fillExtrusionPattern" : "fillExtrusion", B);
14308
- T && (h.context.activeTexture.set(y.TEXTURE0), U.imageAtlasTexture.bind(y.LINEAR, y.CLAMP_TO_EDGE), B.updatePaintBuffers(A)), Ms(B, b, R, U, s);
14327
+ T && (h.context.activeTexture.set(y.TEXTURE0), U.imageAtlasTexture.bind(y.LINEAR, y.CLAMP_TO_EDGE), B.updatePaintBuffers(A)), ks(B, b, R, U, s);
14309
14328
  const K = h.translatePosMatrix(V.posMatrix, U, s.paint.get("fill-extrusion-translate"), s.paint.get("fill-extrusion-translate-anchor")), ee = s.paint.get("fill-extrusion-vertical-gradient"), le = T ? jn(K, h, ee, D, V, A, U) : cn(K, h, ee, D);
14310
14329
  X.draw(_, _.gl.TRIANGLES, o, c, m, ft.backCCW, le, Z, s.id, $.layoutVertexBuffer, $.indexBuffer, $.segments, s.paint, h.transform.zoom, B, h.style.map.terrain && $.centroidVertexBuffer);
14311
14330
  }
14312
14331
  }
14313
- function ks(h, e, s, a, o, c, m) {
14332
+ function As(h, e, s, a, o, c, m) {
14314
14333
  const _ = h.context, y = _.gl, b = s.fbo;
14315
14334
  if (!b) return;
14316
14335
  const S = h.useProgram("hillshade"), T = h.style.map.terrain && h.style.map.terrain.getTerrainData(e);
@@ -14322,7 +14341,7 @@ uniform ${S} ${T} u_${A};
14322
14341
  return { u_matrix: V ? V.posMatrix : A.transform.calculatePosMatrix(D.tileID.toUnwrapped(), X), u_image: 0, u_latrange: $n(0, D.tileID), u_light: [R.paint.get("hillshade-exaggeration"), B], u_shadow: U, u_highlight: $, u_accent: Z };
14323
14342
  })(h, s, a, T ? e : null), T, a.id, h.rasterBoundsBuffer, h.quadTriangleIndexBuffer, h.rasterBoundsSegments);
14324
14343
  }
14325
- function As(h, e, s, a, o, c) {
14344
+ function Cs(h, e, s, a, o, c) {
14326
14345
  const m = h.context, _ = m.gl, y = e.dem;
14327
14346
  if (y && y.data) {
14328
14347
  const b = y.dim, S = y.stride, T = y.getPixels();
@@ -14351,7 +14370,7 @@ uniform ${S} ${T} u_${A};
14351
14370
  return { opacity: 1, mix: 0 };
14352
14371
  }
14353
14372
  const Qa = new p.aM(1, 0, 0, 1), st = new p.aM(0, 1, 0, 1), Yn = new p.aM(0, 0, 1, 1), cc = new p.aM(1, 0, 1, 1), cl = new p.aM(0, 1, 1, 1);
14354
- function Cs(h, e, s, a) {
14373
+ function zs(h, e, s, a) {
14355
14374
  Qn(h, 0, e + s / 2, h.transform.width, s, a);
14356
14375
  }
14357
14376
  function hl(h, e, s, a) {
@@ -14514,7 +14533,7 @@ uniform ${S} ${T} u_${A};
14514
14533
  }
14515
14534
  this.options.showPadding && function(y) {
14516
14535
  const b = y.transform.padding;
14517
- Cs(y, y.transform.height - (b.top || 0), 3, Qa), Cs(y, b.bottom || 0, 3, st), hl(y, b.left || 0, 3, Yn), hl(y, y.transform.width - (b.right || 0), 3, cc);
14536
+ zs(y, y.transform.height - (b.top || 0), 3, Qa), zs(y, b.bottom || 0, 3, st), hl(y, b.left || 0, 3, Yn), hl(y, y.transform.width - (b.right || 0), 3, cc);
14518
14537
  const S = y.transform.centerPoint;
14519
14538
  (function(T, A, D, R) {
14520
14539
  Qn(T, A - 1, D - 10, 2, 20, R), Qn(T, A - 10, D - 1, 20, 2, R);
@@ -14559,7 +14578,7 @@ uniform ${S} ${T} u_${A};
14559
14578
  const _e = p.ag(ye.textSizeData, K.zoom), ze = Ye(Pe, 1, D.transform.zoom), $e = Vr(we.posMatrix, pe, le, D.transform, ze), ve = R.layout.get("icon-text-fit") !== "none" && ye.hasIconData();
14560
14579
  if (_e) {
14561
14580
  const Te = Math.pow(2, K.zoom - Pe.tileID.overscaledZ), je = D.style.map.terrain ? (He, Qe) => D.style.map.terrain.getElevation(we, He, Qe) : null, wt = ee.translatePosition(K, Pe, Z, B);
14562
- Ps(ye, le, pe, X, K, $e, we.posMatrix, Te, _e, ve, ee, wt, we.toUnwrapped(), je);
14581
+ Ms(ye, le, pe, X, K, $e, we.posMatrix, Te, _e, ve, ee, wt, we.toUnwrapped(), je);
14563
14582
  }
14564
14583
  }
14565
14584
  }(y, c, _, m, _.layout.get("text-rotation-alignment"), _.layout.get("text-pitch-alignment"), _.paint.get("text-translate"), _.paint.get("text-translate-anchor"), b), _.paint.get("icon-opacity").constantOr(1) !== 0 && Ka(c, m, _, y, !1, _.paint.get("icon-translate"), _.paint.get("icon-translate-anchor"), _.layout.get("icon-rotation-alignment"), _.layout.get("icon-pitch-alignment"), _.layout.get("icon-keep-upright"), S, T), _.paint.get("text-opacity").constantOr(1) !== 0 && Ka(c, m, _, y, !0, _.paint.get("text-translate"), _.paint.get("text-translate-anchor"), _.layout.get("text-rotation-alignment"), _.layout.get("text-pitch-alignment"), _.layout.get("text-keep-upright"), S, T), m.map.showCollisionBoxes && (pn(c, m, _, y, !0), pn(c, m, _, y, !1));
@@ -14639,7 +14658,7 @@ uniform ${S} ${T} u_${A};
14639
14658
  const je = le.imageAtlas, wt = je.patternPositions[$e.to.toString()], He = je.patternPositions[$e.from.toString()];
14640
14659
  wt && He && we.setConstantPatternPositions(wt, He);
14641
14660
  }
14642
- const ve = ze ? ee : null, Te = V ? Ts(c, le, _, $, ve) : D ? Kl(c, le, _, D, $, ve) : U ? Go(c, le, _, pe.lineClipsArray.length, ve) : qn(c, le, _, ve);
14661
+ const ve = ze ? ee : null, Te = V ? Is(c, le, _, $, ve) : D ? Kl(c, le, _, D, $, ve) : U ? Go(c, le, _, pe.lineClipsArray.length, ve) : qn(c, le, _, ve);
14643
14662
  if (V) B.activeTexture.set(X.TEXTURE0), le.imageAtlasTexture.bind(X.LINEAR, X.CLAMP_TO_EDGE), we.updatePaintBuffers($);
14644
14663
  else if (D && (_e || c.lineAtlas.dirty)) B.activeTexture.set(X.TEXTURE0), c.lineAtlas.bind(B);
14645
14664
  else if (U) {
@@ -14693,7 +14712,7 @@ uniform ${S} ${T} u_${A};
14693
14712
  const b = c.context, S = c.depthModeForSublayer(0, Je.ReadOnly), T = c.colorModeForRenderPass(), [A, D] = c.renderPass === "translucent" ? c.stencilConfigForOverlap(y) : [{}, y];
14694
14713
  for (const R of D) {
14695
14714
  const V = m.getTile(R);
14696
- V.needsHillshadePrepare !== void 0 && V.needsHillshadePrepare && c.renderPass === "offscreen" ? As(c, V, _, S, xt.disabled, T) : c.renderPass === "translucent" && ks(c, R, V, _, S, A[R.overscaledZ], T);
14715
+ V.needsHillshadePrepare !== void 0 && V.needsHillshadePrepare && c.renderPass === "offscreen" ? Cs(c, V, _, S, xt.disabled, T) : c.renderPass === "translucent" && As(c, R, V, _, S, A[R.overscaledZ], T);
14697
14716
  }
14698
14717
  b.viewport.set([0, 0, c.width, c.height]);
14699
14718
  })(e, s, a, o);
@@ -14792,7 +14811,7 @@ uniform ${S} ${T} u_${A};
14792
14811
  return this.width !== e || this.height !== s;
14793
14812
  }
14794
14813
  }
14795
- class zs {
14814
+ class Es {
14796
14815
  constructor(e, s) {
14797
14816
  this.points = e, this.planes = s;
14798
14817
  }
@@ -14811,10 +14830,10 @@ uniform ${S} ${T} u_${A};
14811
14830
  var S, T;
14812
14831
  return y.concat(b);
14813
14832
  });
14814
- return new zs(c, m);
14833
+ return new Es(c, m);
14815
14834
  }
14816
14835
  }
14817
- class Es {
14836
+ class Ds {
14818
14837
  constructor(e, s) {
14819
14838
  this.min = e, this.max = s, this.center = function(a, o, c) {
14820
14839
  return a[0] = 0.5 * o[0], a[1] = 0.5 * o[1], a[2] = 0.5 * o[2], a;
@@ -14825,7 +14844,7 @@ uniform ${S} ${T} u_${A};
14825
14844
  quadrant(e) {
14826
14845
  const s = [e % 2 == 0, e < 2], a = $t(this.min), o = $t(this.max);
14827
14846
  for (let c = 0; c < s.length; c++) a[c] = s[c] ? this.min[c] : this.center[c], o[c] = s[c] ? this.center[c] : this.max[c];
14828
- return o[2] = this.max[2], new Es(a, o);
14847
+ return o[2] = this.max[2], new Ds(a, o);
14829
14848
  }
14830
14849
  distanceX(e) {
14831
14850
  return Math.max(Math.min(this.max[0], e[0]), this.min[0]) - e[0];
@@ -14855,7 +14874,7 @@ uniform ${S} ${T} u_${A};
14855
14874
  return 1;
14856
14875
  }
14857
14876
  }
14858
- class Ds {
14877
+ class Ls {
14859
14878
  constructor(e = 0, s = 0, a = 0, o = 0) {
14860
14879
  if (isNaN(e) || e < 0 || isNaN(s) || s < 0 || isNaN(a) || a < 0 || isNaN(o) || o < 0) throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");
14861
14880
  this.top = e, this.bottom = s, this.left = a, this.right = o;
@@ -14871,19 +14890,19 @@ uniform ${S} ${T} u_${A};
14871
14890
  return this.top === e.top && this.bottom === e.bottom && this.left === e.left && this.right === e.right;
14872
14891
  }
14873
14892
  clone() {
14874
- return new Ds(this.top, this.bottom, this.left, this.right);
14893
+ return new Ls(this.top, this.bottom, this.left, this.right);
14875
14894
  }
14876
14895
  toJSON() {
14877
14896
  return { top: this.top, bottom: this.bottom, left: this.left, right: this.right };
14878
14897
  }
14879
14898
  }
14880
14899
  const eo = 85.051129;
14881
- class Ls {
14900
+ class Rs {
14882
14901
  constructor(e, s, a, o, c) {
14883
- this.tileSize = 512, this._renderWorldCopies = c === void 0 || !!c, this._minZoom = e || 0, this._maxZoom = s || 22, this._minPitch = a ?? 0, this._maxPitch = o ?? 60, this.setMaxBounds(), this.width = 0, this.height = 0, this._center = new p.N(0, 0), this._elevation = 0, this.zoom = 0, this.angle = 0, this._fov = 0.6435011087932844, this._pitch = 0, this._unmodified = !0, this._edgeInsets = new Ds(), this._posMatrixCache = {}, this._alignedPosMatrixCache = {}, this._fogMatrixCache = {}, this.minElevationForCurrentTile = 0;
14902
+ this.tileSize = 512, this._renderWorldCopies = c === void 0 || !!c, this._minZoom = e || 0, this._maxZoom = s || 22, this._minPitch = a ?? 0, this._maxPitch = o ?? 60, this.setMaxBounds(), this.width = 0, this.height = 0, this._center = new p.N(0, 0), this._elevation = 0, this.zoom = 0, this.angle = 0, this._fov = 0.6435011087932844, this._pitch = 0, this._unmodified = !0, this._edgeInsets = new Ls(), this._posMatrixCache = {}, this._alignedPosMatrixCache = {}, this._fogMatrixCache = {}, this.minElevationForCurrentTile = 0;
14884
14903
  }
14885
14904
  clone() {
14886
- const e = new Ls(this._minZoom, this._maxZoom, this._minPitch, this.maxPitch, this._renderWorldCopies);
14905
+ const e = new Rs(this._minZoom, this._maxZoom, this._minPitch, this.maxPitch, this._renderWorldCopies);
14887
14906
  return e.apply(this), e;
14888
14907
  }
14889
14908
  apply(e) {
@@ -15006,10 +15025,10 @@ uniform ${S} ${T} u_${A};
15006
15025
  const c = o;
15007
15026
  if (e.minzoom !== void 0 && o < e.minzoom) return [];
15008
15027
  e.maxzoom !== void 0 && o > e.maxzoom && (o = e.maxzoom);
15009
- const m = this.pointCoordinate(this.getCameraPoint()), _ = p.Z.fromLngLat(this.center), y = Math.pow(2, o), b = [y * m.x, y * m.y, 0], S = [y * _.x, y * _.y, 0], T = zs.fromInvProjectionMatrix(this.invModelViewProjectionMatrix, this.worldSize, o);
15028
+ const m = this.pointCoordinate(this.getCameraPoint()), _ = p.Z.fromLngLat(this.center), y = Math.pow(2, o), b = [y * m.x, y * m.y, 0], S = [y * _.x, y * _.y, 0], T = Es.fromInvProjectionMatrix(this.invModelViewProjectionMatrix, this.worldSize, o);
15010
15029
  let A = e.minzoom || 0;
15011
15030
  !e.terrain && this.pitch <= 60 && this._edgeInsets.top < 0.1 && (A = o);
15012
- const D = e.terrain ? 2 / Math.min(this.tileSize, e.tileSize) * this.tileSize : 3, R = (B) => ({ aabb: new Es([B * y, 0, 0], [(B + 1) * y, y, 0]), zoom: 0, x: 0, y: 0, wrap: B, fullyVisible: !1 }), V = [], U = [], $ = o, Z = e.reparseOverscaled ? c : o;
15031
+ const D = e.terrain ? 2 / Math.min(this.tileSize, e.tileSize) * this.tileSize : 3, R = (B) => ({ aabb: new Ds([B * y, 0, 0], [(B + 1) * y, y, 0]), zoom: 0, x: 0, y: 0, wrap: B, fullyVisible: !1 }), V = [], U = [], $ = o, Z = e.reparseOverscaled ? c : o;
15013
15032
  if (this._renderWorldCopies) for (let B = 1; B <= 3; B++) V.push(R(-B)), V.push(R(B));
15014
15033
  for (V.push(R(0)); V.length > 0; ) {
15015
15034
  const B = V.pop(), X = B.x, K = B.y;
@@ -15028,7 +15047,7 @@ uniform ${S} ${T} u_${A};
15028
15047
  let ve = B.aabb.quadrant(ye);
15029
15048
  if (e.terrain) {
15030
15049
  const Te = new p.S($e, B.wrap, $e, _e, ze), je = e.terrain.getMinMaxElevation(Te), wt = (s = je.minElevation) !== null && s !== void 0 ? s : this.elevation, He = (a = je.maxElevation) !== null && a !== void 0 ? a : this.elevation;
15031
- ve = new Es([ve.min[0], ve.min[1], wt], [ve.max[0], ve.max[1], He]);
15050
+ ve = new Ds([ve.min[0], ve.min[1], wt], [ve.max[0], ve.max[1], He]);
15032
15051
  }
15033
15052
  V.push({ aabb: ve, zoom: $e, x: _e, y: ze, wrap: B.wrap, fullyVisible: ee });
15034
15053
  }
@@ -15562,7 +15581,7 @@ uniform ${S} ${T} u_${A};
15562
15581
  }
15563
15582
  }
15564
15583
  }
15565
- class Rs {
15584
+ class Bs {
15566
15585
  constructor(e) {
15567
15586
  this._tr = new Qi(e), this._zoomIn = new na({ numTouches: 1, numTaps: 2 }), this._zoomOut = new na({ numTouches: 2, numTaps: 1 }), this.reset();
15568
15587
  }
@@ -15828,7 +15847,7 @@ uniform ${S} ${T} u_${A};
15828
15847
  function ca(h) {
15829
15848
  return Math.abs(h.y) > Math.abs(h.x);
15830
15849
  }
15831
- class Bs extends la {
15850
+ class Fs extends la {
15832
15851
  constructor(e) {
15833
15852
  super(), this._currentTouchCount = 0, this._map = e;
15834
15853
  }
@@ -16143,7 +16162,7 @@ uniform ${S} ${T} u_${A};
16143
16162
  this._rotationDisabled = !1, this._touchZoom.isEnabled() && this._touchRotate.enable();
16144
16163
  }
16145
16164
  }
16146
- class Fs {
16165
+ class Os {
16147
16166
  constructor(e, s) {
16148
16167
  this._bypassKey = navigator.userAgent.indexOf("Mac") !== -1 ? "metaKey" : "ctrlKey", this._map = e, this._options = s, this._enabled = !1;
16149
16168
  }
@@ -16221,13 +16240,13 @@ uniform ${S} ${T} u_${A};
16221
16240
  this._add("mapEvent", new ml(s, e));
16222
16241
  const o = s.boxZoom = new Ci(s, e);
16223
16242
  this._add("boxZoom", o), e.interactive && e.boxZoom && o.enable();
16224
- const c = s.cooperativeGestures = new Fs(s, e.cooperativeGestures);
16243
+ const c = s.cooperativeGestures = new Os(s, e.cooperativeGestures);
16225
16244
  this._add("cooperativeGestures", c), e.cooperativeGestures && c.enable();
16226
- const m = new Rs(s), _ = new uc(s);
16245
+ const m = new Bs(s), _ = new uc(s);
16227
16246
  s.doubleClickZoom = new cs(_, m), this._add("tapZoom", m), this._add("clickZoom", _), e.interactive && e.doubleClickZoom && s.doubleClickZoom.enable();
16228
16247
  const y = new dc();
16229
16248
  this._add("tapDragZoom", y);
16230
- const b = s.touchPitch = new Bs(s);
16249
+ const b = s.touchPitch = new Fs(s);
16231
16250
  this._add("touchPitch", b), e.interactive && e.touchPitch && s.touchPitch.enable(e.touchPitch);
16232
16251
  const S = ao(e), T = oo(e);
16233
16252
  s.dragRotate = new yl(e, S, T), this._add("mouseRotate", S, ["mousePitch"]), this._add("mousePitch", T, ["mouseRotate"]), e.interactive && e.dragRotate && s.dragRotate.enable();
@@ -16593,9 +16612,9 @@ uniform ${S} ${T} u_${A};
16593
16612
  return this.terrain ? this.terrain.getElevationForLngLatZoom(p.N.convert(e), this.transform.tileZoom) - this.transform.elevation : null;
16594
16613
  }
16595
16614
  }
16596
- const Os = { compact: !0, customAttribution: '<a href="https://maplibre.org/" target="_blank">MapLibre</a>' };
16597
- class Vs {
16598
- constructor(e = Os) {
16615
+ const Vs = { compact: !0, customAttribution: '<a href="https://maplibre.org/" target="_blank">MapLibre</a>' };
16616
+ class Ns {
16617
+ constructor(e = Vs) {
16599
16618
  this._toggleAttribution = () => {
16600
16619
  this._container.classList.contains("maplibregl-compact") && (this._container.classList.contains("maplibregl-compact-show") ? (this._container.setAttribute("open", ""), this._container.classList.remove("maplibregl-compact-show")) : (this._container.classList.add("maplibregl-compact-show"), this._container.removeAttribute("open")));
16601
16620
  }, this._updateData = (s) => {
@@ -16881,7 +16900,7 @@ uniform ${S} ${T} u_${A};
16881
16900
  return !(this._objects.length < this._size) && this._objects.some((e) => !e.inUse) === !1;
16882
16901
  }
16883
16902
  }
16884
- const Ns = { background: !0, fill: !0, line: !0, raster: !0, hillshade: !0 };
16903
+ const js = { background: !0, fill: !0, line: !0, raster: !0, hillshade: !0 };
16885
16904
  class vl {
16886
16905
  constructor(e, s) {
16887
16906
  this.painter = e, this.terrain = s, this.pool = new fc(e.context, 30, s.sourceCache.tileSize * s.qualityFactor);
@@ -16905,7 +16924,7 @@ uniform ${S} ${T} u_${A};
16905
16924
  this._coordsDescendingInvStr = {};
16906
16925
  for (const a of e._order) {
16907
16926
  const o = e._layers[a], c = o.source;
16908
- if (Ns[o.type] && !this._coordsDescendingInvStr[c]) {
16927
+ if (js[o.type] && !this._coordsDescendingInvStr[c]) {
16909
16928
  this._coordsDescendingInvStr[c] = {};
16910
16929
  for (const m in this._coordsDescendingInv[c]) this._coordsDescendingInvStr[c][m] = this._coordsDescendingInv[c][m].map((_) => _.key).sort().join();
16911
16930
  }
@@ -16918,8 +16937,8 @@ uniform ${S} ${T} u_${A};
16918
16937
  renderLayer(e) {
16919
16938
  if (e.isHidden(this.painter.transform.zoom)) return !1;
16920
16939
  const s = e.type, a = this.painter, o = this._renderableLayerIds[this._renderableLayerIds.length - 1] === e.id;
16921
- if (Ns[s] && (this._prevType && Ns[this._prevType] || this._stacks.push([]), this._prevType = s, this._stacks[this._stacks.length - 1].push(e.id), !o)) return !0;
16922
- if (Ns[this._prevType] || Ns[s] && o) {
16940
+ if (js[s] && (this._prevType && js[this._prevType] || this._stacks.push([]), this._prevType = s, this._stacks[this._stacks.length - 1].push(e.id), !o)) return !0;
16941
+ if (js[this._prevType] || js[s] && o) {
16923
16942
  this._prevType = s;
16924
16943
  const c = this._stacks.length - 1, m = this._stacks[c] || [];
16925
16944
  for (const _ of this._renderableTiles) {
@@ -16937,12 +16956,12 @@ uniform ${S} ${T} u_${A};
16937
16956
  a.context.viewport.set([0, 0, y.fbo.width, y.fbo.height]), a._renderTileClippingMasks(S, T), a.renderLayer(a, a.style.sourceCaches[S.source], S, T), S.source && (_.rttCoords[S.source] = this._coordsDescendingInvStr[S.source][_.tileID.key]);
16938
16957
  }
16939
16958
  }
16940
- return dl(this.painter, this.terrain, this._rttTiles), this._rttTiles = [], this.pool.freeAllObjects(), Ns[s];
16959
+ return dl(this.painter, this.terrain, this._rttTiles), this._rttTiles = [], this.pool.freeAllObjects(), js[s];
16941
16960
  }
16942
16961
  return !1;
16943
16962
  }
16944
16963
  }
16945
- const xo = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Reset bearing to north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" }, bl = ht, mc = { hash: !1, interactive: !0, bearingSnap: 7, attributionControl: Os, maplibreLogo: !1, failIfMajorPerformanceCaveat: !1, preserveDrawingBuffer: !1, refreshExpiredTiles: !0, scrollZoom: !0, minZoom: -2, maxZoom: 22, minPitch: 0, maxPitch: 60, boxZoom: !0, dragRotate: !0, dragPan: !0, keyboard: !0, doubleClickZoom: !0, touchZoomRotate: !0, touchPitch: !0, cooperativeGestures: !1, trackResize: !0, center: [0, 0], zoom: 0, bearing: 0, pitch: 0, renderWorldCopies: !0, maxTileCacheSize: null, maxTileCacheZoomLevels: p.a.MAX_TILE_CACHE_ZOOM_LEVELS, transformRequest: null, transformCameraUpdate: null, fadeDuration: 300, crossSourceCollisions: !0, clickTolerance: 3, localIdeographFontFamily: "sans-serif", pitchWithRotate: !0, validateStyle: !0, maxCanvasSize: [4096, 4096], cancelPendingTileRequestsWhileZooming: !0 }, vo = (h) => {
16964
+ const xo = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Reset bearing to north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" }, bl = ht, mc = { hash: !1, interactive: !0, bearingSnap: 7, attributionControl: Vs, maplibreLogo: !1, failIfMajorPerformanceCaveat: !1, preserveDrawingBuffer: !1, refreshExpiredTiles: !0, scrollZoom: !0, minZoom: -2, maxZoom: 22, minPitch: 0, maxPitch: 60, boxZoom: !0, dragRotate: !0, dragPan: !0, keyboard: !0, doubleClickZoom: !0, touchZoomRotate: !0, touchPitch: !0, cooperativeGestures: !1, trackResize: !0, center: [0, 0], zoom: 0, bearing: 0, pitch: 0, renderWorldCopies: !0, maxTileCacheSize: null, maxTileCacheZoomLevels: p.a.MAX_TILE_CACHE_ZOOM_LEVELS, transformRequest: null, transformCameraUpdate: null, fadeDuration: 300, crossSourceCollisions: !0, clickTolerance: 3, localIdeographFontFamily: "sans-serif", pitchWithRotate: !0, validateStyle: !0, maxCanvasSize: [4096, 4096], cancelPendingTileRequestsWhileZooming: !0 }, vo = (h) => {
16946
16965
  h.touchstart = h.dragStart, h.touchmoveWindow = h.dragMove, h.touchend = h.dragEnd;
16947
16966
  }, gc = { showCompass: !0, showZoom: !0, visualizePitch: !1 };
16948
16967
  class _c {
@@ -17013,10 +17032,10 @@ uniform ${S} ${T} u_${A};
17013
17032
  }
17014
17033
  return h.lng !== a.lng && s.locationPoint(h).y > s.height / 2 - s.getHorizon() ? h : a;
17015
17034
  }
17016
- const js = { center: "translate(-50%,-50%)", top: "translate(-50%,0)", "top-left": "translate(0,0)", "top-right": "translate(-100%,0)", bottom: "translate(-50%,-100%)", "bottom-left": "translate(0,-100%)", "bottom-right": "translate(-100%,-100%)", left: "translate(0,-50%)", right: "translate(-100%,-50%)" };
17035
+ const Us = { center: "translate(-50%,-50%)", top: "translate(-50%,0)", "top-left": "translate(0,0)", "top-right": "translate(-100%,0)", bottom: "translate(-50%,-100%)", "bottom-left": "translate(0,-100%)", "bottom-right": "translate(-100%,-100%)", left: "translate(0,-50%)", right: "translate(-100%,-50%)" };
17017
17036
  function ua(h, e, s) {
17018
17037
  const a = h.classList;
17019
- for (const o in js) a.remove(`maplibregl-${s}-anchor-${o}`);
17038
+ for (const o in Us) a.remove(`maplibregl-${s}-anchor-${o}`);
17020
17039
  a.add(`maplibregl-${s}-anchor-${e}`);
17021
17040
  }
17022
17041
  class da extends p.E {
@@ -17035,7 +17054,7 @@ uniform ${S} ${T} u_${A};
17035
17054
  let c = "";
17036
17055
  this._rotationAlignment === "viewport" || this._rotationAlignment === "auto" ? c = `rotateZ(${this._rotation}deg)` : this._rotationAlignment === "map" && (c = `rotateZ(${this._rotation - this._map.getBearing()}deg)`);
17037
17056
  let m = "";
17038
- this._pitchAlignment === "viewport" || this._pitchAlignment === "auto" ? m = "rotateX(0deg)" : this._pitchAlignment === "map" && (m = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || s && s.type !== "moveend" || (this._pos = this._pos.round()), ae.setTransform(this._element, `${js[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${m} ${c}`), he.frameAsync(new AbortController()).then(() => {
17057
+ this._pitchAlignment === "viewport" || this._pitchAlignment === "auto" ? m = "rotateX(0deg)" : this._pitchAlignment === "map" && (m = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || s && s.type !== "moveend" || (this._pos = this._pos.round()), ae.setTransform(this._element, `${Us[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${m} ${c}`), he.frameAsync(new AbortController()).then(() => {
17039
17058
  this._updateOpacity(s && s.type === "moveend");
17040
17059
  }).catch(() => {
17041
17060
  });
@@ -17219,7 +17238,7 @@ uniform ${S} ${T} u_${A};
17219
17238
  return fa(new p.P(0, 0));
17220
17239
  }
17221
17240
  const bo = ht;
17222
- C.AJAXError = p.bh, C.Evented = p.E, C.LngLat = p.N, C.MercatorCoordinate = p.Z, C.Point = p.P, C.addProtocol = p.bi, C.config = p.a, C.removeProtocol = p.bj, C.AttributionControl = Vs, C.BoxZoomHandler = Ci, C.CanvasSource = Fi, C.CooperativeGesturesHandler = Fs, C.DoubleClickZoomHandler = cs, C.DragPanHandler = _l, C.DragRotateHandler = yl, C.EdgeInsets = Ds, C.FullscreenControl = class extends p.E {
17241
+ C.AJAXError = p.bh, C.Evented = p.E, C.LngLat = p.N, C.MercatorCoordinate = p.Z, C.Point = p.P, C.addProtocol = p.bi, C.config = p.a, C.removeProtocol = p.bj, C.AttributionControl = Ns, C.BoxZoomHandler = Ci, C.CanvasSource = Fi, C.CooperativeGesturesHandler = Os, C.DoubleClickZoomHandler = cs, C.DragPanHandler = _l, C.DragRotateHandler = yl, C.EdgeInsets = Ls, C.FullscreenControl = class extends p.E {
17223
17242
  constructor(h = {}) {
17224
17243
  super(), this._onFullscreenChange = () => {
17225
17244
  var e;
@@ -17416,7 +17435,7 @@ uniform ${S} ${T} u_${A};
17416
17435
  if (e.minPitch != null && e.maxPitch != null && e.minPitch > e.maxPitch) throw new Error("maxPitch must be greater than or equal to minPitch");
17417
17436
  if (e.minPitch != null && e.minPitch < 0) throw new Error("minPitch must be greater than or equal to 0");
17418
17437
  if (e.maxPitch != null && e.maxPitch > 85) throw new Error("maxPitch must be less than or equal to 85");
17419
- if (super(new Ls(e.minZoom, e.maxZoom, e.minPitch, e.maxPitch, e.renderWorldCopies), { bearingSnap: e.bearingSnap }), this._idleTriggered = !1, this._crossFadingFactor = 1, this._renderTaskQueue = new et(), this._controls = [], this._mapId = p.a4(), this._contextLost = (s) => {
17438
+ if (super(new Rs(e.minZoom, e.maxZoom, e.minPitch, e.maxPitch, e.renderWorldCopies), { bearingSnap: e.bearingSnap }), this._idleTriggered = !1, this._crossFadingFactor = 1, this._renderTaskQueue = new et(), this._controls = [], this._mapId = p.a4(), this._contextLost = (s) => {
17420
17439
  s.preventDefault(), this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this.fire(new p.k("webglcontextlost", { originalEvent: s }));
17421
17440
  }, this._contextRestored = (s) => {
17422
17441
  this._setupPainter(), this.resize(), this._update(), this.fire(new p.k("webglcontextrestored", { originalEvent: s }));
@@ -17444,7 +17463,7 @@ uniform ${S} ${T} u_${A};
17444
17463
  s ? a(o) : s = !0;
17445
17464
  }), this._resizeObserver.observe(this._container);
17446
17465
  }
17447
- this.handlers = new mo(this, e), this._hash = e.hash && new ia(typeof e.hash == "string" && e.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: e.center, zoom: e.zoom, bearing: e.bearing, pitch: e.pitch }), e.bounds && (this.resize(), this.fitBounds(e.bounds, p.e({}, e.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = e.localIdeographFontFamily, this._validateStyle = e.validateStyle, e.style && this.setStyle(e.style, { localIdeographFontFamily: e.localIdeographFontFamily }), e.attributionControl && this.addControl(new Vs(typeof e.attributionControl == "boolean" ? void 0 : e.attributionControl)), e.maplibreLogo && this.addControl(new go(), e.logoPosition), this.on("style.load", () => {
17466
+ this.handlers = new mo(this, e), this._hash = e.hash && new ia(typeof e.hash == "string" && e.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: e.center, zoom: e.zoom, bearing: e.bearing, pitch: e.pitch }), e.bounds && (this.resize(), this.fitBounds(e.bounds, p.e({}, e.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = e.localIdeographFontFamily, this._validateStyle = e.validateStyle, e.style && this.setStyle(e.style, { localIdeographFontFamily: e.localIdeographFontFamily }), e.attributionControl && this.addControl(new Ns(typeof e.attributionControl == "boolean" ? void 0 : e.attributionControl)), e.maplibreLogo && this.addControl(new go(), e.logoPosition), this.on("style.load", () => {
17448
17467
  this.transform.unmodified && this.jumpTo(this.style.stylesheet);
17449
17468
  }), this.on("data", (s) => {
17450
17469
  this._update(s.dataType === "style"), this.fire(new p.k(`${s.dataType}data`, s));
@@ -18021,7 +18040,7 @@ uniform ${S} ${T} u_${A};
18021
18040
  b = a.y + c.bottom.y < y ? ["top"] : a.y > this._map.transform.height - y ? ["bottom"] : [], a.x < _ / 2 ? b.push("left") : a.x > this._map.transform.width - _ / 2 && b.push("right"), o = b.length === 0 ? "bottom" : b.join("-");
18022
18041
  }
18023
18042
  let m = a.add(c[o]);
18024
- this.options.subpixelPositioning || (m = m.round()), ae.setTransform(this._container, `${js[o]} translate(${m.x}px,${m.y}px)`), ua(this._container, o, "popup");
18043
+ this.options.subpixelPositioning || (m = m.round()), ae.setTransform(this._container, `${Us[o]} translate(${m.x}px,${m.y}px)`), ua(this._container, o, "popup");
18025
18044
  }, this._onClose = () => {
18026
18045
  this.remove();
18027
18046
  }, this.options = p.e(Object.create(Ve), h);
@@ -18119,7 +18138,7 @@ uniform ${S} ${T} u_${A};
18119
18138
  onRemove() {
18120
18139
  ae.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
18121
18140
  }
18122
- }, C.TwoFingersTouchPitchHandler = Bs, C.TwoFingersTouchRotateHandler = uo, C.TwoFingersTouchZoomHandler = co, C.TwoFingersTouchZoomRotateHandler = fo, C.VectorTileSource = sn, C.VideoSource = xs, C.addSourceType = (h, e) => p._(void 0, void 0, void 0, function* () {
18141
+ }, C.TwoFingersTouchPitchHandler = Fs, C.TwoFingersTouchRotateHandler = uo, C.TwoFingersTouchZoomHandler = co, C.TwoFingersTouchZoomRotateHandler = fo, C.VectorTileSource = sn, C.VideoSource = vs, C.addSourceType = (h, e) => p._(void 0, void 0, void 0, function* () {
18123
18142
  if (on(h)) throw new Error(`A source type called "${h}" already exists.`);
18124
18143
  ((s, a) => {
18125
18144
  an[s] = a;
@@ -18155,8 +18174,8 @@ uniform ${S} ${T} u_${A};
18155
18174
  return Ke;
18156
18175
  });
18157
18176
  })(Ku);
18158
- var sf = Ku.exports;
18159
- const Wu = /* @__PURE__ */ rf(sf), nf = {}, af = {
18177
+ var of = Ku.exports;
18178
+ const Wu = /* @__PURE__ */ af(of), lf = {}, cf = {
18160
18179
  xmlns: "http://www.w3.org/2000/svg",
18161
18180
  width: "24",
18162
18181
  height: "24",
@@ -18168,20 +18187,20 @@ const Wu = /* @__PURE__ */ rf(sf), nf = {}, af = {
18168
18187
  "stroke-linejoin": "round",
18169
18188
  class: "icon icon-tabler icons-tabler-outline icon-tabler-list-details"
18170
18189
  };
18171
- function of(te, de) {
18172
- return Nt(), jt("svg", af, de[0] || (de[0] = [
18190
+ function hf(te, de) {
18191
+ return Bt(), Ft("svg", cf, de[0] || (de[0] = [
18173
18192
  Gp('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M13 5h8"></path><path d="M13 9h5"></path><path d="M13 15h8"></path><path d="M13 19h5"></path><path d="M3 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"></path><path d="M3 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"></path>', 7)
18174
18193
  ]));
18175
18194
  }
18176
- const Yu = /* @__PURE__ */ en(nf, [["render", of]]), lf = {
18195
+ const Yu = /* @__PURE__ */ ms(lf, [["render", hf]]), uf = {
18177
18196
  pink: ["#fde7e2", "#feafbe", "#fd58a4", "#d7038e", "#86007b"],
18178
18197
  blue: ["#f1eef6", "#bdc9e1", "#74a9cf", "#2b8cbe", "#045a8d"],
18179
18198
  green: ["#edf8fb", "#b2e2e2", "#66c2a4", "#2ca25f", "#006d2c"],
18180
18199
  pink2: ["#f1eef6", "#d7b5d8", "#df65b0", "#dd1c77", "#980043"],
18181
18200
  red: ["#fef0d9", "#fdcc8a", "#fc8d59", "#e34a33", "#b30000"],
18182
18201
  teal: ["#f6eff7", "#bdc9e1", "#67a9cf", "#1c9099", "#016c59"]
18183
- }, cf = {
18184
- components: { legendIcon: Yu, closeIcon: Wp },
18202
+ }, df = {
18203
+ components: { legendIcon: Yu, closeIcon: Qp },
18185
18204
  props: {
18186
18205
  colors: { type: Array },
18187
18206
  sizes: { type: Array },
@@ -18195,7 +18214,7 @@ const Yu = /* @__PURE__ */ en(nf, [["render", of]]), lf = {
18195
18214
  data() {
18196
18215
  return {
18197
18216
  isOpenLegend: !1,
18198
- palette: lf
18217
+ palette: uf
18199
18218
  // palette: ['#69D2E7', 'yellow', '#FE4365'],
18200
18219
  };
18201
18220
  },
@@ -18223,36 +18242,36 @@ const Yu = /* @__PURE__ */ en(nf, [["render", of]]), lf = {
18223
18242
  return (te + 1) / this.sortedSizes.length;
18224
18243
  }
18225
18244
  }
18226
- }, hf = { class: "rounded-lg" }, uf = {
18245
+ }, pf = { class: "rounded-lg" }, ff = {
18227
18246
  key: 0,
18228
18247
  class: "w-full vs-map-portal__legend-body vs-map-portal__legend custom-scrollbar"
18229
- }, df = { class: "flex items-center justify-between pb-[10px] border-b border-[#0000001A]" }, pf = { class: "pt-[10px] w-full flex flex-col gap-[8px]" }, ff = {
18248
+ }, mf = { class: "flex items-center justify-between pb-[10px] border-b border-[#0000001A]" }, gf = { class: "pt-[10px] w-full flex flex-col gap-[8px]" }, _f = {
18230
18249
  key: 0,
18231
18250
  class: "flex flex-col w-full"
18232
- }, mf = {
18251
+ }, yf = {
18233
18252
  key: 0,
18234
18253
  class: "text-xs font-semibold leading-[1.2] text-[#1F2937] mb-[8px]"
18235
- }, gf = { class: "flex flex-col gap-[6px]" }, _f = { class: "text-xs text-[#1F2937] font-normal leading-[1.2]" }, yf = {
18254
+ }, xf = { class: "flex flex-col gap-[6px]" }, vf = { class: "text-xs text-[#1F2937] font-normal leading-[1.2]" }, bf = {
18236
18255
  key: 1,
18237
18256
  class: "flex flex-col w-full"
18238
- }, xf = {
18257
+ }, wf = {
18239
18258
  key: 0,
18240
18259
  class: "text-xs font-semibold leading-[1.2] text-[#1F2937] mb-[8px]"
18241
- }, vf = { class: "flex flex-col gap-[6px]" }, bf = { class: "flex flex-row items-center justify-start" }, wf = { class: "text-xs text-[#1F2937] font-normal leading-[1.2]" };
18242
- function Sf(te, de, me, Le, Ge, Ke) {
18243
- var ht, Bt;
18260
+ }, Sf = { class: "flex flex-col gap-[6px]" }, Tf = { class: "flex flex-row items-center justify-start" }, If = { class: "text-xs text-[#1F2937] font-normal leading-[1.2]" };
18261
+ function Pf(te, de, me, Le, Ge, Ke) {
18262
+ var ht, Ot;
18244
18263
  const C = Uo("legendIcon"), p = Uo("closeIcon");
18245
- return Nt(), jt("div", hf, [
18246
- ct("div", {
18264
+ return Bt(), Ft("div", pf, [
18265
+ lt("div", {
18247
18266
  class: "absolute flex justify-between items-center p-2 fixed z-100 bg-white shadow-lg bottom-[60px] right-0 rounded-lg",
18248
18267
  onClick: de[0] || (de[0] = (_t) => Ge.isOpenLegend = !Ge.isOpenLegend)
18249
18268
  }, [
18250
18269
  $o(C)
18251
18270
  ]),
18252
- Ge.isOpenLegend ? (Nt(), jt("div", uf, [
18253
- ct("div", df, [
18254
- de[2] || (de[2] = ct("h3", { class: "text-[16px] font-normal text-black leading-[1.2]" }, " Легенда ", -1)),
18255
- ct("button", {
18271
+ Ge.isOpenLegend ? (Bt(), Ft("div", ff, [
18272
+ lt("div", mf, [
18273
+ de[2] || (de[2] = lt("h3", { class: "text-[16px] font-normal text-black leading-[1.2]" }, " Легенда ", -1)),
18274
+ lt("button", {
18256
18275
  type: "button",
18257
18276
  class: "inline-flex items-center text-sm font-medium text-gray-500 rounded-lg gap-x-2 focus:outline-none disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:text-blue-500 dark:focus:text-blue-500",
18258
18277
  onClick: de[1] || (de[1] = (_t) => Ge.isOpenLegend = !1)
@@ -18260,42 +18279,42 @@ function Sf(te, de, me, Le, Ge, Ke) {
18260
18279
  $o(p, { class: "w-[20px]" })
18261
18280
  ])
18262
18281
  ]),
18263
- ct("div", pf, [
18264
- (ht = me.colors) != null && ht.length ? (Nt(), jt("div", ff, [
18265
- me.colorTitle ? (Nt(), jt("h4", mf, Ln(me.colorTitle), 1)) : jo("", !0),
18266
- ct("div", gf, [
18267
- (Nt(!0), jt(oh, null, lh(me.colors, (_t, he) => (Nt(), jt("div", {
18282
+ lt("div", gf, [
18283
+ (ht = me.colors) != null && ht.length ? (Bt(), Ft("div", _f, [
18284
+ me.colorTitle ? (Bt(), Ft("h4", yf, Ln(me.colorTitle), 1)) : jo("", !0),
18285
+ lt("div", xf, [
18286
+ (Bt(!0), Ft(oh, null, lh(me.colors, (_t, he) => (Bt(), Ft("div", {
18268
18287
  key: he,
18269
18288
  class: "flex items-center flex gap-[10px]"
18270
18289
  }, [
18271
- ct("div", {
18290
+ lt("div", {
18272
18291
  class: "w-[12px] h-[12px] rounded-full",
18273
18292
  style: Hu({
18274
18293
  backgroundColor: _t.color ? _t.color : Ge.palette[he]
18275
18294
  })
18276
18295
  }, null, 4),
18277
- ct("p", _f, Ln(_t.val), 1)
18296
+ lt("p", vf, Ln(_t.val), 1)
18278
18297
  ]))), 128))
18279
18298
  ])
18280
18299
  ])) : jo("", !0),
18281
- (Bt = me.sizes) != null && Bt.length ? (Nt(), jt("div", yf, [
18282
- te.sizeTitle ? (Nt(), jt("h4", xf, Ln(te.sizeTitle), 1)) : jo("", !0),
18283
- ct("div", vf, [
18284
- (Nt(!0), jt(oh, null, lh(Ke.sortedSizes, (_t, he) => {
18300
+ (Ot = me.sizes) != null && Ot.length ? (Bt(), Ft("div", bf, [
18301
+ te.sizeTitle ? (Bt(), Ft("h4", wf, Ln(te.sizeTitle), 1)) : jo("", !0),
18302
+ lt("div", Sf, [
18303
+ (Bt(!0), Ft(oh, null, lh(Ke.sortedSizes, (_t, he) => {
18285
18304
  var ae, Ii, fi;
18286
- return Nt(), jt("div", null, [
18287
- ct("div", bf, [
18288
- ct("div", {
18305
+ return Bt(), Ft("div", null, [
18306
+ lt("div", Tf, [
18307
+ lt("div", {
18289
18308
  class: ch([Ke.maxWidht ? `w-[${Ke.maxWidht}]` : "", "mr-[10px]"])
18290
18309
  }, [
18291
- ct("div", {
18310
+ lt("div", {
18292
18311
  class: ch(Ke.sizeClass(he)),
18293
18312
  style: Hu({
18294
18313
  backgroundColor: Ge.palette[me.color][he]
18295
18314
  })
18296
18315
  }, null, 6)
18297
18316
  ], 2),
18298
- ct("p", wf, Ln(he === ((ae = Ke.sortedSizes) == null ? void 0 : ae.length) - 1 ? ">" + _t : he == ((Ii = Ke.sortedSizes) == null ? void 0 : Ii.length) - 1 ? ">" + Ke.sortedSizes[((fi = Ke.sortedSizes) == null ? void 0 : fi.length) - 1] : _t + "-" + Ke.sortedSizes[he + 1]), 1)
18317
+ lt("p", If, Ln(he === ((ae = Ke.sortedSizes) == null ? void 0 : ae.length) - 1 ? ">" + _t : he == ((Ii = Ke.sortedSizes) == null ? void 0 : Ii.length) - 1 ? ">" + Ke.sortedSizes[((fi = Ke.sortedSizes) == null ? void 0 : fi.length) - 1] : _t + "-" + Ke.sortedSizes[he + 1]), 1)
18299
18318
  ])
18300
18319
  ]);
18301
18320
  }), 256))
@@ -18305,14 +18324,14 @@ function Sf(te, de, me, Le, Ge, Ke) {
18305
18324
  ])) : jo("", !0)
18306
18325
  ]);
18307
18326
  }
18308
- const Tf = /* @__PURE__ */ en(cf, [["render", Sf], ["__scopeId", "data-v-16c83b8b"]]);
18327
+ const Mf = /* @__PURE__ */ ms(df, [["render", Pf], ["__scopeId", "data-v-16c83b8b"]]);
18309
18328
  function Qu(te, de, me) {
18310
18329
  if (te !== null)
18311
- for (var Le, Ge, Ke, C, p, ht, Bt, _t = 0, he = 0, ae, Ii = te.type, fi = Ii === "FeatureCollection", Ri = Ii === "Feature", lr = fi ? te.features.length : 1, Xt = 0; Xt < lr; Xt++) {
18312
- Bt = fi ? te.features[Xt].geometry : Ri ? te.geometry : te, ae = Bt ? Bt.type === "GeometryCollection" : !1, p = ae ? Bt.geometries.length : 1;
18330
+ for (var Le, Ge, Ke, C, p, ht, Ot, _t = 0, he = 0, ae, Ii = te.type, fi = Ii === "FeatureCollection", Ri = Ii === "Feature", lr = fi ? te.features.length : 1, Xt = 0; Xt < lr; Xt++) {
18331
+ Ot = fi ? te.features[Xt].geometry : Ri ? te.geometry : te, ae = Ot ? Ot.type === "GeometryCollection" : !1, p = ae ? Ot.geometries.length : 1;
18313
18332
  for (var Sr = 0; Sr < p; Sr++) {
18314
18333
  var Mt = 0, Gi = 0;
18315
- if (C = ae ? Bt.geometries[Sr] : Bt, C !== null) {
18334
+ if (C = ae ? Ot.geometries[Sr] : Ot, C !== null) {
18316
18335
  ht = C.coordinates;
18317
18336
  var $t = C.type;
18318
18337
  switch (_t = 0, $t) {
@@ -18393,7 +18412,7 @@ function Qu(te, de, me) {
18393
18412
  }
18394
18413
  }
18395
18414
  }
18396
- function If(te, de = {}) {
18415
+ function kf(te, de = {}) {
18397
18416
  if (te.bbox != null && de.recompute !== !0)
18398
18417
  return te.bbox;
18399
18418
  const me = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
@@ -18401,7 +18420,7 @@ function If(te, de = {}) {
18401
18420
  me[0] > Le[0] && (me[0] = Le[0]), me[1] > Le[1] && (me[1] = Le[1]), me[2] < Le[0] && (me[2] = Le[0]), me[3] < Le[1] && (me[3] = Le[1]);
18402
18421
  }), me;
18403
18422
  }
18404
- const Pf = {
18423
+ const Af = {
18405
18424
  props: ["map", "coordinates"],
18406
18425
  data() {
18407
18426
  return {
@@ -18414,14 +18433,14 @@ const Pf = {
18414
18433
  return !(this != null && this.coordinates) || ((de = this.coordinates) == null ? void 0 : de.length) !== 2 ? "" : (this == null ? void 0 : this.coordinates).slice().reverse().map((me) => Number(me).toFixed(5)).join(", ");
18415
18434
  }
18416
18435
  }
18417
- }, Mf = { class: "map__settings" }, kf = {
18436
+ }, Cf = { class: "map__settings" }, zf = {
18418
18437
  ref: "attribution",
18419
18438
  class: "map__settings-attribution map__settings-item mt-[3px]"
18420
18439
  };
18421
- function Af(te, de, me, Le, Ge, Ke) {
18422
- return Nt(), jt("div", Mf, [
18423
- ct("div", kf, [
18424
- Hp(ct("div", {
18440
+ function Ef(te, de, me, Le, Ge, Ke) {
18441
+ return Bt(), Ft("div", Cf, [
18442
+ lt("div", zf, [
18443
+ Hp(lt("div", {
18425
18444
  ref: "mouse",
18426
18445
  class: "map__settings-item",
18427
18446
  style: { "min-width": "115px" }
@@ -18431,8 +18450,8 @@ function Af(te, de, me, Le, Ge, Ke) {
18431
18450
  ], 512)
18432
18451
  ]);
18433
18452
  }
18434
- const Cf = /* @__PURE__ */ en(Pf, [["render", Af]]), zf = {
18435
- mixins: [ef],
18453
+ const Df = /* @__PURE__ */ ms(Af, [["render", Ef]]), Lf = {
18454
+ mixins: [sf],
18436
18455
  props: {
18437
18456
  map: { type: Object, default: () => null }
18438
18457
  },
@@ -18482,22 +18501,22 @@ const Cf = /* @__PURE__ */ en(Pf, [["render", Af]]), zf = {
18482
18501
  return te.id === this.activeLayer;
18483
18502
  }
18484
18503
  }
18485
- }, Ef = { class: "vs-map-slot-layers" }, Df = ["onClick"], Lf = ["src"];
18486
- function Rf(te, de, me, Le, Ge, Ke) {
18487
- return Nt(), jt("div", Ef, [
18488
- (Nt(!0), jt(oh, null, lh(Ge.baseLayers, (C) => (Nt(), jt("div", {
18504
+ }, Rf = { class: "vs-map-slot-layers" }, Bf = ["onClick"], Ff = ["src"];
18505
+ function Of(te, de, me, Le, Ge, Ke) {
18506
+ return Bt(), Ft("div", Rf, [
18507
+ (Bt(!0), Ft(oh, null, lh(Ge.baseLayers, (C) => (Bt(), Ft("div", {
18489
18508
  key: C.id,
18490
18509
  class: ch(["vs-map-slot-layers__layer", { focused: Ke.isLayerInFocus(C) }]),
18491
18510
  onClick: (p) => te.changeBaseLayer(C.id)
18492
18511
  }, [
18493
- ct("img", {
18512
+ lt("img", {
18494
18513
  src: C.image,
18495
18514
  class: "vs-map-slot-layers__image"
18496
- }, null, 8, Lf)
18497
- ], 10, Df))), 128))
18515
+ }, null, 8, Ff)
18516
+ ], 10, Bf))), 128))
18498
18517
  ]);
18499
18518
  }
18500
- const Bf = /* @__PURE__ */ en(zf, [["render", Rf], ["__scopeId", "data-v-aebbde6b"]]), Ff = {}, Of = {
18519
+ const Vf = /* @__PURE__ */ ms(Lf, [["render", Of], ["__scopeId", "data-v-aebbde6b"]]), Nf = {}, jf = {
18501
18520
  xmlns: "http://www.w3.org/2000/svg",
18502
18521
  width: "24",
18503
18522
  height: "24",
@@ -18509,42 +18528,42 @@ const Bf = /* @__PURE__ */ en(zf, [["render", Rf], ["__scopeId", "data-v-aebbde6
18509
18528
  "stroke-linejoin": "round",
18510
18529
  class: "icon icon-tabler icons-tabler-outline icon-tabler-home"
18511
18530
  };
18512
- function Vf(te, de) {
18513
- return Nt(), jt("svg", Of, de[0] || (de[0] = [
18514
- ct("path", {
18531
+ function Uf(te, de) {
18532
+ return Bt(), Ft("svg", jf, de[0] || (de[0] = [
18533
+ lt("path", {
18515
18534
  stroke: "none",
18516
18535
  d: "M0 0h24v24H0z",
18517
18536
  fill: "none"
18518
18537
  }, null, -1),
18519
- ct("path", { d: "M5 12l-2 0l9 -9l9 9l-2 0" }, null, -1),
18520
- ct("path", { d: "M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" }, null, -1),
18521
- ct("path", { d: "M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" }, null, -1)
18538
+ lt("path", { d: "M5 12l-2 0l9 -9l9 9l-2 0" }, null, -1),
18539
+ lt("path", { d: "M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" }, null, -1),
18540
+ lt("path", { d: "M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" }, null, -1)
18522
18541
  ]));
18523
18542
  }
18524
- const Nf = /* @__PURE__ */ en(Ff, [["render", Vf]]), jf = {
18543
+ const $f = /* @__PURE__ */ ms(Nf, [["render", Uf]]), qf = {
18525
18544
  props: ["bbox", "map"],
18526
- components: { homeIcon: Nf },
18545
+ components: { homeIcon: $f },
18527
18546
  methods: {
18528
18547
  setBounds() {
18529
18548
  const te = {
18530
18549
  type: "Feature",
18531
18550
  geometry: this == null ? void 0 : this.bbox
18532
- }, de = If(te);
18551
+ }, de = kf(te);
18533
18552
  this.map.fitBounds(de);
18534
18553
  }
18535
18554
  }
18536
- }, Uf = { class: "absolute flex justify-between items-center p-2 fixed z-100 bg-white shadow-lg rounded-lg" };
18537
- function $f(te, de, me, Le, Ge, Ke) {
18555
+ }, Zf = { class: "absolute flex justify-between items-center p-2 fixed z-100 bg-white shadow-lg rounded-lg" };
18556
+ function Gf(te, de, me, Le, Ge, Ke) {
18538
18557
  const C = Uo("homeIcon");
18539
- return Nt(), jt("div", Uf, [
18540
- ct("button", {
18558
+ return Bt(), Ft("div", Zf, [
18559
+ lt("button", {
18541
18560
  onClick: de[0] || (de[0] = (...p) => Ke.setBounds && Ke.setBounds(...p))
18542
18561
  }, [
18543
18562
  $o(C, { class: "text-[16px] font-black" })
18544
18563
  ])
18545
18564
  ]);
18546
18565
  }
18547
- const qf = /* @__PURE__ */ en(jf, [["render", $f]]), Zf = {}, Gf = {
18566
+ const Hf = /* @__PURE__ */ ms(qf, [["render", Gf]]), Xf = {}, Wf = {
18548
18567
  class: "shrink-0 size-4",
18549
18568
  xmlns: "http://www.w3.org/2000/svg",
18550
18569
  width: "24",
@@ -18556,27 +18575,27 @@ const qf = /* @__PURE__ */ en(jf, [["render", $f]]), Zf = {}, Gf = {
18556
18575
  "stroke-linecap": "#9E9E9E",
18557
18576
  "stroke-linejoin": "#9E9E9E"
18558
18577
  };
18559
- function Hf(te, de) {
18560
- return Nt(), jt("svg", Gf, de[0] || (de[0] = [
18561
- ct("circle", {
18578
+ function Kf(te, de) {
18579
+ return Bt(), Ft("svg", Wf, de[0] || (de[0] = [
18580
+ lt("circle", {
18562
18581
  cx: "12",
18563
18582
  cy: "12",
18564
18583
  r: "1"
18565
18584
  }, null, -1),
18566
- ct("circle", {
18585
+ lt("circle", {
18567
18586
  cx: "12",
18568
18587
  cy: "5",
18569
18588
  r: "1"
18570
18589
  }, null, -1),
18571
- ct("circle", {
18590
+ lt("circle", {
18572
18591
  cx: "12",
18573
18592
  cy: "19",
18574
18593
  r: "1"
18575
18594
  }, null, -1)
18576
18595
  ]));
18577
18596
  }
18578
- const Xf = /* @__PURE__ */ en(Zf, [["render", Hf]]), Wf = {
18579
- components: { legendIcon: Yu, VsListbar: Kp, menuIcon: Xf },
18597
+ const Jf = /* @__PURE__ */ ms(Xf, [["render", Kf]]), Yf = {
18598
+ components: { legendIcon: Yu, VsListbar: Wp, menuIcon: Jf },
18580
18599
  props: ["source", "count", "total"],
18581
18600
  data() {
18582
18601
  return {
@@ -18595,17 +18614,17 @@ const Xf = /* @__PURE__ */ en(Zf, [["render", Hf]]), Wf = {
18595
18614
  return ((te = this.sizes) == null ? void 0 : te[0]) > ((me = this.sizes) == null ? void 0 : me[((de = this.sizes) == null ? void 0 : de.length) - 1]) ? (Le = this.sizes) == null ? void 0 : Le[0] : (Ke = this.sizes) == null ? void 0 : Ke[((Ge = this.sizes) == null ? void 0 : Ge.length) - 1];
18596
18615
  }
18597
18616
  }
18598
- }, Kf = { class: "vs-map-portal__list rounded-lg z-10" }, Jf = {
18617
+ }, Qf = { class: "vs-map-portal__list rounded-lg z-10" }, em = {
18599
18618
  key: 1,
18600
18619
  class: "vs-map-portal__legend-body custom-scrollbar"
18601
- }, Yf = { class: "vs-map-portal__legend-title flex items-center justify-between" }, Qf = { class: "vs-map-portal__legend-body__content px-2" }, em = { class: "flex gap-2" };
18602
- function tm(te, de, me, Le, Ge, Ke) {
18620
+ }, tm = { class: "vs-map-portal__legend-title flex items-center justify-between" }, im = { class: "vs-map-portal__legend-body__content px-2" }, rm = { class: "flex gap-2" };
18621
+ function sm(te, de, me, Le, Ge, Ke) {
18603
18622
  const C = Uo("menuIcon"), p = Uo("VsListbar");
18604
- return Nt(), jt("div", Kf, [
18605
- Ge.isOpenLegend ? (Nt(), jt("div", Jf, [
18606
- ct("div", Yf, [
18607
- de[3] || (de[3] = ct("div", { class: "p-2" }, "Інфо", -1)),
18608
- (Nt(), jt("svg", {
18623
+ return Bt(), Ft("div", Qf, [
18624
+ Ge.isOpenLegend ? (Bt(), Ft("div", em, [
18625
+ lt("div", tm, [
18626
+ de[3] || (de[3] = lt("div", { class: "p-2" }, "Інфо", -1)),
18627
+ (Bt(), Ft("svg", {
18609
18628
  xmlns: "http://www.w3.org/2000/svg",
18610
18629
  width: "14",
18611
18630
  height: "14",
@@ -18618,23 +18637,23 @@ function tm(te, de, me, Le, Ge, Ke) {
18618
18637
  class: "icon icon-tabler icons-tabler-outline icon-tabler-x cursor-pointer",
18619
18638
  onClick: de[1] || (de[1] = (ht) => Ge.isOpenLegend = !1)
18620
18639
  }, de[2] || (de[2] = [
18621
- ct("path", {
18640
+ lt("path", {
18622
18641
  stroke: "none",
18623
18642
  d: "M0 0h24v24H0z",
18624
18643
  fill: "none"
18625
18644
  }, null, -1),
18626
- ct("path", { d: "M18 6l-12 12" }, null, -1),
18627
- ct("path", { d: "M6 6l12 12" }, null, -1)
18645
+ lt("path", { d: "M18 6l-12 12" }, null, -1),
18646
+ lt("path", { d: "M6 6l12 12" }, null, -1)
18628
18647
  ])))
18629
18648
  ]),
18630
- ct("div", Qf, [
18631
- ct("div", em, [
18632
- ct("span", null, " Total : " + Ln(me.total), 1),
18633
- ct("span", null, " Count : " + Ln(me.count), 1)
18649
+ lt("div", im, [
18650
+ lt("div", rm, [
18651
+ lt("span", null, " Total : " + Ln(me.total), 1),
18652
+ lt("span", null, " Count : " + Ln(me.count), 1)
18634
18653
  ]),
18635
18654
  $o(p, { source: me.source }, null, 8, ["source"])
18636
18655
  ])
18637
- ])) : (Nt(), jt("div", {
18656
+ ])) : (Bt(), Ft("div", {
18638
18657
  key: 0,
18639
18658
  class: "absolute flex justify-between items-center p-2 left-1 top-1 fixed z-100 bg-white shadow-lg rounded-lg",
18640
18659
  onClick: de[0] || (de[0] = (ht) => Ge.isOpenLegend = !0)
@@ -18643,13 +18662,13 @@ function tm(te, de, me, Le, Ge, Ke) {
18643
18662
  ]))
18644
18663
  ]);
18645
18664
  }
18646
- const im = /* @__PURE__ */ en(Wf, [["render", tm]]), nm = {
18665
+ const nm = /* @__PURE__ */ ms(Yf, [["render", sm]]), lm = {
18647
18666
  components: {
18648
- VsMapSetting: Cf,
18649
- VsMapSlotLayers: Bf,
18650
- VsMapLegend: Tf,
18651
- VsMapGoHome: qf,
18652
- VsList: im
18667
+ VsMapSetting: Df,
18668
+ VsMapSlotLayers: Vf,
18669
+ VsMapLegend: Mf,
18670
+ VsMapGoHome: Hf,
18671
+ VsList: nm
18653
18672
  },
18654
18673
  data() {
18655
18674
  return {
@@ -18717,7 +18736,7 @@ const im = /* @__PURE__ */ en(Wf, [["render", tm]]), nm = {
18717
18736
  }
18718
18737
  };
18719
18738
  export {
18720
- ef as l,
18721
- nm as m,
18722
- lf as p
18739
+ sf as l,
18740
+ lm as m,
18741
+ uf as p
18723
18742
  };