@opengis/partsmap 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/PartsMap.js CHANGED
@@ -1,6 +1,6 @@
1
- import { openBlock as St, createElementBlock as $t, createStaticVNode as Qd, Fragment as gc, renderList as _c, normalizeClass as yc, createElementVNode as it, normalizeStyle as ep, toDisplayString as Ns, createCommentVNode as Cr, resolveComponent as Yi, createVNode as kr, createBlock as Vo, Teleport as Tm, Transition as Fd, withCtx as nl, withDirectives as Im, renderSlot as sl, vShow as Pm, pushScopeId as Am, popScopeId as Cm, defineComponent as km, createTextVNode as Em } from "vue";
2
- var Mm = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function zm(y) {
1
+ import { openBlock as It, createElementBlock as qt, createStaticVNode as Qd, Fragment as gc, renderList as _c, normalizeClass as yc, createElementVNode as it, normalizeStyle as ep, toDisplayString as Ns, createCommentVNode as jr, resolveComponent as Yi, createVNode as Cr, createBlock as Vo, Teleport as Im, Transition as Fd, withCtx as nl, withDirectives as Pm, renderSlot as sl, vShow as Am, pushScopeId as Cm, popScopeId as km, defineComponent as Em, createTextVNode as Mm } from "vue";
2
+ var zm = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
+ function Dm(y) {
4
4
  return y && y.__esModule && Object.prototype.hasOwnProperty.call(y, "default") ? y.default : y;
5
5
  }
6
6
  var tp = { exports: {} };
@@ -11,12 +11,12 @@ var tp = { exports: {} };
11
11
  (function(y, T) {
12
12
  (function(z, D) {
13
13
  y.exports = D();
14
- })(Mm, function() {
14
+ })(zm, function() {
15
15
  var z = {}, D = {};
16
16
  function N(S, c, xe) {
17
17
  if (D[S] = xe, S === "index") {
18
- var _e = "var sharedModule = {}; (" + D.shared + ")(sharedModule); (" + D.worker + ")(sharedModule);", we = {};
19
- return D.shared(we), D.index(z, we), typeof window < "u" && z.setWorkerUrl(window.URL.createObjectURL(new Blob([_e], { type: "text/javascript" }))), z;
18
+ var _e = "var sharedModule = {}; (" + D.shared + ")(sharedModule); (" + D.worker + ")(sharedModule);", ve = {};
19
+ return D.shared(ve), D.index(z, ve), typeof window < "u" && z.setWorkerUrl(window.URL.createObjectURL(new Blob([_e], { type: "text/javascript" }))), z;
20
20
  }
21
21
  }
22
22
  N("shared", ["exports"], function(S) {
@@ -49,12 +49,12 @@ var tp = { exports: {} };
49
49
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
50
50
  }
51
51
  typeof SuppressedError == "function" && SuppressedError;
52
- var _e = we;
53
- function we(i, e) {
52
+ var _e = ve;
53
+ function ve(i, e) {
54
54
  this.x = i, this.y = e;
55
55
  }
56
- we.prototype = { clone: function() {
57
- return new we(this.x, this.y);
56
+ ve.prototype = { clone: function() {
57
+ return new ve(this.x, this.y);
58
58
  }, add: function(i) {
59
59
  return this.clone()._add(i);
60
60
  }, sub: function(i) {
@@ -124,8 +124,8 @@ var tp = { exports: {} };
124
124
  return this.x = e.x + r * (this.x - e.x) - s * (this.y - e.y), this.y = l, this;
125
125
  }, _round: function() {
126
126
  return this.x = Math.round(this.x), this.y = Math.round(this.y), this;
127
- } }, we.convert = function(i) {
128
- return i instanceof we ? i : Array.isArray(i) ? new we(i[0], i[1]) : i;
127
+ } }, ve.convert = function(i) {
128
+ return i instanceof ve ? i : Array.isArray(i) ? new ve(i[0], i[1]) : i;
129
129
  };
130
130
  var ae = xe(_e), oe = ut;
131
131
  function ut(i, e, r, s) {
@@ -212,7 +212,7 @@ var tp = { exports: {} };
212
212
  function Ti(i, e, r) {
213
213
  return (r.y - i.y) * (e.x - i.x) > (e.y - i.y) * (r.x - i.x);
214
214
  }
215
- function Er(i) {
215
+ function kr(i) {
216
216
  return typeof WorkerGlobalScope < "u" && i !== void 0 && i instanceof WorkerGlobalScope;
217
217
  }
218
218
  let Mn = null;
@@ -241,7 +241,7 @@ var tp = { exports: {} };
241
241
  }
242
242
  });
243
243
  }
244
- let Mr, Ei;
244
+ let Er, Ei;
245
245
  const ir = "AbortError";
246
246
  function zn() {
247
247
  return new Error(ir);
@@ -256,11 +256,11 @@ var tp = { exports: {} };
256
256
  super(`AJAXError: ${r} (${e}): ${s}`), this.status = e, this.statusText = r, this.url = s, this.body = l;
257
257
  }
258
258
  }
259
- const rr = () => Er(self) ? self.worker && self.worker.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href, un = function(i, e) {
259
+ const rr = () => kr(self) ? self.worker && self.worker.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href, un = function(i, e) {
260
260
  if (/:\/\//.test(i.url) && !/^https?:|^file:/.test(i.url)) {
261
261
  const s = _r(i.url);
262
262
  if (s) return s(i, e);
263
- if (Er(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, targetMapId: Dn }, e);
263
+ if (kr(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, targetMapId: Dn }, e);
264
264
  }
265
265
  if (!(/^file:/.test(r = i.url) || /^file:/.test(rr()) && !/^\w+:/.test(r))) {
266
266
  if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return function(s, l) {
@@ -279,7 +279,7 @@ var tp = { exports: {} };
279
279
  return { data: g, cacheControl: p.headers.get("Cache-Control"), expires: p.headers.get("Expires") };
280
280
  });
281
281
  }(i, e);
282
- if (Er(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, mustQueue: !0, targetMapId: Dn }, e);
282
+ if (kr(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, mustQueue: !0, targetMapId: Dn }, e);
283
283
  }
284
284
  var r;
285
285
  return function(s, l) {
@@ -317,7 +317,7 @@ var tp = { exports: {} };
317
317
  function ss(i, e, r) {
318
318
  r[i] && r[i].indexOf(e) !== -1 || (r[i] = r[i] || [], r[i].push(e));
319
319
  }
320
- function zr(i, e, r) {
320
+ function Mr(i, e, r) {
321
321
  if (r && r[i]) {
322
322
  const s = r[i].indexOf(e);
323
323
  s !== -1 && r[i].splice(s, 1);
@@ -338,7 +338,7 @@ var tp = { exports: {} };
338
338
  return this._listeners = this._listeners || {}, ss(e, r, this._listeners), this;
339
339
  }
340
340
  off(e, r) {
341
- return zr(e, r, this._listeners), zr(e, r, this._oneTimeListeners), this;
341
+ return Mr(e, r, this._listeners), Mr(e, r, this._oneTimeListeners), this;
342
342
  }
343
343
  once(e, r) {
344
344
  return r ? (this._oneTimeListeners = this._oneTimeListeners || {}, ss(e, r, this._oneTimeListeners), this) : new Promise((s) => this.once(e, s));
@@ -351,7 +351,7 @@ var tp = { exports: {} };
351
351
  const l = this._listeners && this._listeners[s] ? this._listeners[s].slice() : [];
352
352
  for (const f of l) f.call(this, e);
353
353
  const d = this._oneTimeListeners && this._oneTimeListeners[s] ? this._oneTimeListeners[s].slice() : [];
354
- for (const f of d) zr(s, f, this._oneTimeListeners), f.call(this, e);
354
+ for (const f of d) Mr(s, f, this._oneTimeListeners), f.call(this, e);
355
355
  const p = this._eventedParent;
356
356
  p && (Pt(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), p.fire(e));
357
357
  } else e instanceof Gr && console.error(e.error);
@@ -395,7 +395,7 @@ var tp = { exports: {} };
395
395
  function Hr(i, e, r) {
396
396
  Zt(e, { command: "removeSource", args: [i] }), r[i] = !0;
397
397
  }
398
- function Dr(i, e, r, s) {
398
+ function zr(i, e, r, s) {
399
399
  Hr(i, r, s), as(i, e, r);
400
400
  }
401
401
  function Rn(i, e, r) {
@@ -446,7 +446,7 @@ var tp = { exports: {} };
446
446
  return !!this.bindings[e] || !!this.parent && this.parent.has(e);
447
447
  }
448
448
  }
449
- const Wr = { kind: "null" }, Ae = { kind: "number" }, at = { kind: "string" }, Ye = { kind: "boolean" }, Mi = { kind: "color" }, nr = { kind: "object" }, rt = { kind: "value" }, vr = { kind: "collator" }, Lr = { kind: "formatted" }, Xr = { kind: "padding" }, br = { kind: "resolvedImage" }, G = { kind: "variableAnchorOffsetCollection" };
449
+ const Wr = { kind: "null" }, Ae = { kind: "number" }, at = { kind: "string" }, Ye = { kind: "boolean" }, Mi = { kind: "color" }, nr = { kind: "object" }, rt = { kind: "value" }, vr = { kind: "collator" }, Dr = { kind: "formatted" }, Xr = { kind: "padding" }, br = { kind: "resolvedImage" }, G = { kind: "variableAnchorOffsetCollection" };
450
450
  function E(i, e) {
451
451
  return { kind: "array", itemType: i, N: e };
452
452
  }
@@ -457,7 +457,7 @@ var tp = { exports: {} };
457
457
  }
458
458
  return i.kind;
459
459
  }
460
- const O = [Wr, Ae, at, Ye, Mi, Lr, nr, E(rt), Xr, br, G];
460
+ const O = [Wr, Ae, at, Ye, Mi, Dr, nr, E(rt), Xr, br, G];
461
461
  function q(i, e) {
462
462
  if (e.kind === "error") return null;
463
463
  if (i.kind === "array") {
@@ -498,12 +498,12 @@ var tp = { exports: {} };
498
498
  }
499
499
  function Qt([i, e, r, s]) {
500
500
  let l = (i + 16) / 116, d = isNaN(e) ? l : l + e / 500, p = isNaN(r) ? l : l - r / 200;
501
- return l = 1 * Tt(l), d = X * Tt(d), p = de * Tt(p), [lt(3.1338561 * d - 1.6168667 * l - 0.4906146 * p), lt(-0.9787684 * d + 1.9161415 * l + 0.033454 * p), lt(0.0719453 * d - 0.2289914 * l + 1.4052427 * p), s];
501
+ return l = 1 * St(l), d = X * St(d), p = de * St(p), [lt(3.1338561 * d - 1.6168667 * l - 0.4906146 * p), lt(-0.9787684 * d + 1.9161415 * l + 0.033454 * p), lt(0.0719453 * d - 0.2289914 * l + 1.4052427 * p), s];
502
502
  }
503
503
  function lt(i) {
504
504
  return (i = i <= 304e-5 ? 12.92 * i : 1.055 * Math.pow(i, 1 / 2.4) - 0.055) < 0 ? 0 : i > 1 ? 1 : i;
505
505
  }
506
- function Tt(i) {
506
+ function St(i) {
507
507
  return i > ce ? i * i * i : Ie * (i - ge);
508
508
  }
509
509
  function jt(i) {
@@ -519,12 +519,12 @@ var tp = { exports: {} };
519
519
  return !i.some(Number.isNaN);
520
520
  }
521
521
  const hs = { 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] };
522
- class It {
522
+ class Tt {
523
523
  constructor(e, r, s, l = 1, d = !0) {
524
524
  this.r = e, this.g = r, this.b = s, this.a = l, d || (this.r *= l, this.g *= l, this.b *= l, l || this.overwriteGetter("rgb", [e, r, s, l]));
525
525
  }
526
526
  static parse(e) {
527
- if (e instanceof It) return e;
527
+ if (e instanceof Tt) return e;
528
528
  if (typeof e != "string") return;
529
529
  const r = function(s) {
530
530
  if ((s = s.toLowerCase().trim()) === "transparent") return [0, 0, 0, 0];
@@ -567,7 +567,7 @@ var tp = { exports: {} };
567
567
  }
568
568
  }
569
569
  }(e);
570
- return r ? new It(...r, !1) : void 0;
570
+ return r ? new Tt(...r, !1) : void 0;
571
571
  }
572
572
  get rgb() {
573
573
  const { r: e, g: r, b: s, a: l } = this, d = l || 1 / 0;
@@ -590,7 +590,7 @@ var tp = { exports: {} };
590
590
  return `rgba(${[e, r, s].map((d) => Math.round(255 * d)).join(",")},${l})`;
591
591
  }
592
592
  }
593
- It.black = new It(0, 0, 0, 1), It.white = new It(1, 1, 1, 1), It.transparent = new It(0, 0, 0, 0), It.red = new It(1, 0, 0, 1);
593
+ Tt.black = new Tt(0, 0, 0, 1), Tt.white = new Tt(1, 1, 1, 1), Tt.transparent = new Tt(0, 0, 0, 0), Tt.red = new Tt(1, 0, 0, 1);
594
594
  class Uo {
595
595
  constructor(e, r, s) {
596
596
  this.sensitivity = e ? r ? "variant" : "case" : r ? "accent" : "base", this.locale = s, this.collator = new Intl.Collator(this.locale ? this.locale : [], { sensitivity: this.sensitivity, usage: "search" });
@@ -684,7 +684,7 @@ var tp = { exports: {} };
684
684
  return typeof i == "number" && i >= 0 && i <= 255 && typeof e == "number" && e >= 0 && e <= 255 && typeof r == "number" && r >= 0 && r <= 255 ? s === void 0 || typeof s == "number" && s >= 0 && s <= 1 ? null : `Invalid rgba value [${[i, e, r, s].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof s == "number" ? [i, e, r, s] : [i, e, r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
685
685
  }
686
686
  function us(i) {
687
- if (i === null || typeof i == "string" || typeof i == "boolean" || typeof i == "number" || i instanceof It || i instanceof Uo || i instanceof Ni || i instanceof ji || i instanceof Ui || i instanceof fi) return !0;
687
+ if (i === null || typeof i == "string" || typeof i == "boolean" || typeof i == "number" || i instanceof Tt || i instanceof Uo || i instanceof Ni || i instanceof ji || i instanceof Ui || i instanceof fi) return !0;
688
688
  if (Array.isArray(i)) {
689
689
  for (const e of i) if (!us(e)) return !1;
690
690
  return !0;
@@ -700,9 +700,9 @@ var tp = { exports: {} };
700
700
  if (typeof i == "string") return at;
701
701
  if (typeof i == "boolean") return Ye;
702
702
  if (typeof i == "number") return Ae;
703
- if (i instanceof It) return Mi;
703
+ if (i instanceof Tt) return Mi;
704
704
  if (i instanceof Uo) return vr;
705
- if (i instanceof Ni) return Lr;
705
+ if (i instanceof Ni) return Dr;
706
706
  if (i instanceof ji) return Xr;
707
707
  if (i instanceof Ui) return G;
708
708
  if (i instanceof fi) return br;
@@ -722,9 +722,9 @@ var tp = { exports: {} };
722
722
  }
723
723
  return nr;
724
724
  }
725
- function Rr(i) {
725
+ function Lr(i) {
726
726
  const e = typeof i;
727
- return i === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(i) : i instanceof It || i instanceof Ni || i instanceof ji || i instanceof Ui || i instanceof fi ? i.toString() : JSON.stringify(i);
727
+ return i === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(i) : i instanceof Tt || i instanceof Ni || i instanceof ji || i instanceof Ui || i instanceof fi ? i.toString() : JSON.stringify(i);
728
728
  }
729
729
  class fn {
730
730
  constructor(e, r) {
@@ -828,11 +828,11 @@ var tp = { exports: {} };
828
828
  case "color": {
829
829
  let r, s;
830
830
  for (const l of this.args) {
831
- if (r = l.evaluate(e), s = null, r instanceof It) return r;
831
+ if (r = l.evaluate(e), s = null, r instanceof Tt) return r;
832
832
  if (typeof r == "string") {
833
833
  const d = e.parseColor(r);
834
834
  if (d) return d;
835
- } else if (Array.isArray(r) && (s = r.length < 3 || r.length > 4 ? `Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.` : Zs(r[0], r[1], r[2], r[3]), !s)) return new It(r[0] / 255, r[1] / 255, r[2] / 255, r[3]);
835
+ } else if (Array.isArray(r) && (s = r.length < 3 || r.length > 4 ? `Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.` : Zs(r[0], r[1], r[2], r[3]), !s)) return new Tt(r[0] / 255, r[1] / 255, r[2] / 255, r[3]);
836
836
  }
837
837
  throw new Jt(s || `Could not parse color from value '${typeof r == "string" ? r : JSON.stringify(r)}'`);
838
838
  }
@@ -864,11 +864,11 @@ var tp = { exports: {} };
864
864
  throw new Jt(`Could not convert ${JSON.stringify(r)} to number.`);
865
865
  }
866
866
  case "formatted":
867
- return Ni.fromString(Rr(this.args[0].evaluate(e)));
867
+ return Ni.fromString(Lr(this.args[0].evaluate(e)));
868
868
  case "resolvedImage":
869
- return fi.fromString(Rr(this.args[0].evaluate(e)));
869
+ return fi.fromString(Lr(this.args[0].evaluate(e)));
870
870
  default:
871
- return Rr(this.args[0].evaluate(e));
871
+ return Lr(this.args[0].evaluate(e));
872
872
  }
873
873
  }
874
874
  eachChild(e) {
@@ -900,7 +900,7 @@ var tp = { exports: {} };
900
900
  }
901
901
  parseColor(e) {
902
902
  let r = this._parseColorCache[e];
903
- return r || (r = this._parseColorCache[e] = It.parse(e)), r;
903
+ return r || (r = this._parseColorCache[e] = Tt.parse(e)), r;
904
904
  }
905
905
  }
906
906
  class Kr {
@@ -1285,7 +1285,7 @@ var tp = { exports: {} };
1285
1285
  switch (s) {
1286
1286
  case "rgb": {
1287
1287
  const [l, d, p, f] = gs(i.rgb, e.rgb, r);
1288
- return new It(l, d, p, f, !1);
1288
+ return new Tt(l, d, p, f, !1);
1289
1289
  }
1290
1290
  case "hcl": {
1291
1291
  const [l, d, p, f] = i.hcl, [g, x, w, I] = e.hcl;
@@ -1298,11 +1298,11 @@ var tp = { exports: {} };
1298
1298
  const [R, B, $, W] = function([se, Y, ie, ue]) {
1299
1299
  return se = isNaN(se) ? 0 : se * He, Qt([ie, Math.cos(se) * Y, Math.sin(se) * Y, ue]);
1300
1300
  }([C, M ?? Yr(d, x, r), Yr(p, w, r), Yr(f, I, r)]);
1301
- return new It(R, B, $, W, !1);
1301
+ return new Tt(R, B, $, W, !1);
1302
1302
  }
1303
1303
  case "lab": {
1304
1304
  const [l, d, p, f] = Qt(gs(i.lab, e.lab, r));
1305
- return new It(l, d, p, f, !1);
1305
+ return new Tt(l, d, p, f, !1);
1306
1306
  }
1307
1307
  }
1308
1308
  }, array: gs, padding: function(i, e, r) {
@@ -1555,7 +1555,7 @@ var tp = { exports: {} };
1555
1555
  }
1556
1556
  class eo {
1557
1557
  constructor(e) {
1558
- this.type = Lr, this.sections = e;
1558
+ this.type = Dr, this.sections = e;
1559
1559
  }
1560
1560
  static parse(e, r) {
1561
1561
  if (e.length < 2) return r.error("Expected at least one argument.");
@@ -1588,7 +1588,7 @@ var tp = { exports: {} };
1588
1588
  evaluate(e) {
1589
1589
  return new Ni(this.sections.map((r) => {
1590
1590
  const s = r.content.evaluate(e);
1591
- return ei(s) === br ? new $o("", s, null, null, null) : new $o(Rr(s), null, r.scale ? r.scale.evaluate(e) : null, r.font ? r.font.evaluate(e).join(",") : null, r.textColor ? r.textColor.evaluate(e) : null);
1591
+ return ei(s) === br ? new $o("", s, null, null, null) : new $o(Lr(s), null, r.scale ? r.scale.evaluate(e) : null, r.font ? r.font.evaluate(e).join(",") : null, r.textColor ? r.textColor.evaluate(e) : null);
1592
1592
  }));
1593
1593
  }
1594
1594
  eachChild(e) {
@@ -1920,7 +1920,7 @@ var tp = { exports: {} };
1920
1920
  function ro(i) {
1921
1921
  return i[1] - i[0] + 1;
1922
1922
  }
1923
- function Fr(i, e) {
1923
+ function Rr(i, e) {
1924
1924
  return i[1] >= i[0] && i[1] < e;
1925
1925
  }
1926
1926
  function vs(i, e) {
@@ -1936,7 +1936,7 @@ var tp = { exports: {} };
1936
1936
  return [[i[0], i[0] + s], [i[0] + s + 1, i[1]]];
1937
1937
  }
1938
1938
  function Yo(i, e) {
1939
- if (!Fr(e, i.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1939
+ if (!Rr(e, i.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1940
1940
  const r = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1941
1941
  for (let s = e[0]; s <= e[1]; ++s) ft(r, i[s]);
1942
1942
  return r;
@@ -1963,7 +1963,7 @@ var tp = { exports: {} };
1963
1963
  return Math.min(d, p);
1964
1964
  }
1965
1965
  function dt(i, e, r, s, l) {
1966
- if (!Fr(e, i.length) || !Fr(s, r.length)) return 1 / 0;
1966
+ if (!Rr(e, i.length) || !Rr(s, r.length)) return 1 / 0;
1967
1967
  let d = 1 / 0;
1968
1968
  for (let p = e[0]; p < e[1]; ++p) {
1969
1969
  const f = i[p], g = i[p + 1];
@@ -1976,7 +1976,7 @@ var tp = { exports: {} };
1976
1976
  return d;
1977
1977
  }
1978
1978
  function ia(i, e, r, s, l) {
1979
- if (!Fr(e, i.length) || !Fr(s, r.length)) return NaN;
1979
+ if (!Rr(e, i.length) || !Rr(s, r.length)) return NaN;
1980
1980
  let d = 1 / 0;
1981
1981
  for (let p = e[0]; p <= e[1]; ++p) for (let f = s[0]; f <= s[1]; ++f) if (d = Math.min(d, l.distance(i[p], r[f])), d === 0) return d;
1982
1982
  return d;
@@ -1993,7 +1993,7 @@ var tp = { exports: {} };
1993
1993
  return s;
1994
1994
  }
1995
1995
  function Rt(i, e, r, s) {
1996
- if (!Fr(e, i.length)) return NaN;
1996
+ if (!Rr(e, i.length)) return NaN;
1997
1997
  for (let d = e[0]; d <= e[1]; ++d) if (On(i[d], r, !0)) return 0;
1998
1998
  let l = 1 / 0;
1999
1999
  for (let d = e[0]; d < e[1]; ++d) {
@@ -2046,7 +2046,7 @@ var tp = { exports: {} };
2046
2046
  if (g[0] >= d) continue;
2047
2047
  const x = g[1], w = e ? 50 : 100;
2048
2048
  if (ro(x) <= w) {
2049
- if (!Fr(x, i.length)) return NaN;
2049
+ if (!Rr(x, i.length)) return NaN;
2050
2050
  if (e) {
2051
2051
  const I = Rt(i, x, r, s);
2052
2052
  if (isNaN(I) || I === 0) return I;
@@ -2071,7 +2071,7 @@ var tp = { exports: {} };
2071
2071
  if (g[0] >= p) continue;
2072
2072
  const x = g[1], w = g[2], I = e ? 50 : 100, C = s ? 50 : 100;
2073
2073
  if (ro(x) <= I && ro(w) <= C) {
2074
- if (!Fr(x, i.length) && Fr(w, r.length)) return NaN;
2074
+ if (!Rr(x, i.length) && Rr(w, r.length)) return NaN;
2075
2075
  let M;
2076
2076
  if (e && s) M = dt(i, x, r, w, l), p = Math.min(p, M);
2077
2077
  else if (e && !s) {
@@ -2240,7 +2240,7 @@ var tp = { exports: {} };
2240
2240
  e = e.evaluate(i), r = r.evaluate(i), s = s.evaluate(i);
2241
2241
  const d = l ? l.evaluate(i) : 1, p = Zs(e, r, s, d);
2242
2242
  if (p) throw new Jt(p);
2243
- return new It(e / 255, r / 255, s / 255, d, !1);
2243
+ return new Tt(e / 255, r / 255, s / 255, d, !1);
2244
2244
  }
2245
2245
  function ao(i, e) {
2246
2246
  return i in e;
@@ -2309,7 +2309,7 @@ var tp = { exports: {} };
2309
2309
  function Ml(i, e) {
2310
2310
  const r = e.type === "color", s = i.stops && typeof i.stops[0][0] == "object", l = s || !(s || i.property !== void 0), d = i.type || (Nn(e) ? "exponential" : "interval");
2311
2311
  if (r || e.type === "padding") {
2312
- const w = r ? It.parse : ji.parse;
2312
+ const w = r ? Tt.parse : ji.parse;
2313
2313
  (i = yr({}, i)).stops && (i.stops = i.stops.map((I) => [I[0], w(I[1])])), i.default = w(i.default ? i.default : e.default);
2314
2314
  }
2315
2315
  if (i.colorSpace && (p = i.colorSpace) !== "rgb" && p !== "hcl" && p !== "lab") throw new Error(`Unknown color space: "${i.colorSpace}"`);
@@ -2377,7 +2377,7 @@ var tp = { exports: {} };
2377
2377
  function ca(i, e, r) {
2378
2378
  switch (e.type) {
2379
2379
  case "color":
2380
- r = It.parse(r);
2380
+ r = Tt.parse(r);
2381
2381
  break;
2382
2382
  case "formatted":
2383
2383
  r = Ni.fromString(r.toString());
@@ -2449,11 +2449,11 @@ var tp = { exports: {} };
2449
2449
  }]] }, "!": [Ye, [Ye], (i, [e]) => !e.evaluate(i)], "is-supported-script": [Ye, [at], (i, [e]) => {
2450
2450
  const r = i.globals && i.globals.isSupportedScript;
2451
2451
  return !r || r(e.evaluate(i));
2452
- }], upcase: [at, [at], (i, [e]) => e.evaluate(i).toUpperCase()], downcase: [at, [at], (i, [e]) => e.evaluate(i).toLowerCase()], concat: [at, yn(rt), (i, e) => e.map((r) => Rr(r.evaluate(i))).join("")], "resolved-locale": [at, [vr], (i, [e]) => e.evaluate(i).resolvedLocale()] });
2452
+ }], upcase: [at, [at], (i, [e]) => e.evaluate(i).toUpperCase()], downcase: [at, [at], (i, [e]) => e.evaluate(i).toLowerCase()], concat: [at, yn(rt), (i, e) => e.map((r) => Lr(r.evaluate(i))).join("")], "resolved-locale": [at, [vr], (i, [e]) => e.evaluate(i).resolvedLocale()] });
2453
2453
  class fo {
2454
2454
  constructor(e, r) {
2455
2455
  var s;
2456
- this.expression = e, this._warningHistory = {}, this._evaluator = new ps(), this._defaultValue = r ? (s = r).type === "color" && Ss(s.default) ? new It(0, 0, 0, 0) : s.type === "color" ? It.parse(s.default) || null : s.type === "padding" ? ji.parse(s.default) || null : s.type === "variableAnchorOffsetCollection" ? Ui.parse(s.default) || null : s.default === void 0 ? null : s.default : null, this._enumValues = r && r.type === "enum" ? r.values : null;
2456
+ this.expression = e, this._warningHistory = {}, this._evaluator = new ps(), this._defaultValue = r ? (s = r).type === "color" && Ss(s.default) ? new Tt(0, 0, 0, 0) : s.type === "color" ? Tt.parse(s.default) || null : s.type === "padding" ? ji.parse(s.default) || null : s.type === "variableAnchorOffsetCollection" ? Ui.parse(s.default) || null : s.default === void 0 ? null : s.default : null, this._enumValues = r && r.type === "enum" ? r.values : null;
2457
2457
  }
2458
2458
  evaluateWithoutErrorHandling(e, r, s, l, d, p) {
2459
2459
  return this._evaluator.globals = e, this._evaluator.feature = r, this._evaluator.featureState = s, this._evaluator.canonical = l, this._evaluator.availableImages = d || null, this._evaluator.formattedSection = p, this.expression.evaluate(this._evaluator);
@@ -2475,7 +2475,7 @@ var tp = { exports: {} };
2475
2475
  }
2476
2476
  function bn(i, e) {
2477
2477
  const r = new Kr(_n, lo, [], e ? function(l) {
2478
- const d = { color: Mi, string: at, number: Ae, enum: at, boolean: Ye, formatted: Lr, padding: Xr, resolvedImage: br, variableAnchorOffsetCollection: G };
2478
+ const d = { color: Mi, string: at, number: Ae, enum: at, boolean: Ye, formatted: Dr, padding: Xr, resolvedImage: br, variableAnchorOffsetCollection: G };
2479
2479
  return l.type === "array" ? E(d[l.value] || rt, l.length) : d[l.type];
2480
2480
  }(e) : void 0), s = r.parse(i, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
2481
2481
  return s ? kl(new fo(s, e)) : Vn(r.errors);
@@ -2829,15 +2829,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2829
2829
  } else e.push(new Te(s, r, 'missing required property "source"'));
2830
2830
  return e = e.concat(zi({ key: s, value: r, valueSpec: d.layer, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, objectElementValidators: { "*": () => [], type: () => i.validateSpec({ key: `${s}.type`, value: r.type, valueSpec: d.layer.type, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, object: r, objectKey: "type" }), filter: Cs, layout: (g) => zi({ layer: r, key: g.key, value: g.value, style: g.style, styleSpec: g.styleSpec, validateSpec: g.validateSpec, objectElementValidators: { "*": (x) => va(yr({ layerType: p }, x)) } }), paint: (g) => zi({ layer: r, key: g.key, value: g.value, style: g.style, styleSpec: g.styleSpec, validateSpec: g.validateSpec, objectElementValidators: { "*": (x) => xa(yr({ layerType: p }, x)) } }) } })), e;
2831
2831
  }
2832
- function Br(i) {
2832
+ function Fr(i) {
2833
2833
  const e = i.value, r = i.key, s = gt(e);
2834
2834
  return s !== "string" ? [new Te(r, e, `string expected, ${s} found`)] : [];
2835
2835
  }
2836
2836
  const wa = { promoteId: function({ key: i, value: e }) {
2837
- if (gt(e) === "string") return Br({ key: i, value: e });
2837
+ if (gt(e) === "string") return Fr({ key: i, value: e });
2838
2838
  {
2839
2839
  const r = [];
2840
- for (const s in e) r.push(...Br({ key: `${i}.${s}`, value: e[s] }));
2840
+ for (const s in e) r.push(...Fr({ key: `${i}.${s}`, value: e[s] }));
2841
2841
  return r;
2842
2842
  }
2843
2843
  } };
@@ -2915,14 +2915,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2915
2915
  for (const p in r) r[p].id && l.includes(r[p].id) && e.push(new Te(s, r, `all the sprites' ids must be unique, but ${r[p].id} is duplicated`)), l.push(r[p].id), r[p].url && d.includes(r[p].url) && e.push(new Te(s, r, `all the sprites' URLs must be unique, but ${r[p].url} is duplicated`)), d.push(r[p].url), e = e.concat(zi({ key: `${s}[${p}]`, value: r[p], valueSpec: { id: { type: "string", required: !0 }, url: { type: "string", required: !0 } }, validateSpec: i.validateSpec }));
2916
2916
  return e;
2917
2917
  }
2918
- return Br({ key: s, value: r });
2918
+ return Fr({ key: s, value: r });
2919
2919
  }
2920
2920
  const Pa = { "*": () => [], array: xo, boolean: function(i) {
2921
2921
  const e = i.value, r = i.key, s = gt(e);
2922
2922
  return s !== "boolean" ? [new Te(r, e, `boolean expected, ${s} found`)] : [];
2923
2923
  }, number: Ps, color: function(i) {
2924
2924
  const e = i.key, r = i.value, s = gt(r);
2925
- return s !== "string" ? [new Te(e, r, `color expected, ${s} found`)] : It.parse(String(r)) ? [] : [new Te(e, r, `color expected, "${r}" found`)];
2925
+ return s !== "string" ? [new Te(e, r, `color expected, ${s} found`)] : Tt.parse(String(r)) ? [] : [new Te(e, r, `color expected, "${r}" found`)];
2926
2926
  }, constants: Dl, enum: As, filter: Cs, function: _a, layer: ba, object: zi, source: Ll, light: Sa, sky: Rl, terrain: Ta, projection: function(i) {
2927
2927
  const e = i.value, r = i.styleSpec, s = r.projection, l = i.style, d = gt(e);
2928
2928
  if (e === void 0) return [];
@@ -2930,10 +2930,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2930
2930
  let p = [];
2931
2931
  for (const f in e) p = p.concat(s[f] ? i.validateSpec({ key: f, value: e[f], valueSpec: s[f], style: l, styleSpec: r }) : [new Te(f, e[f], `unknown property "${f}"`)]);
2932
2932
  return p;
2933
- }, string: Br, formatted: function(i) {
2934
- return Br(i).length === 0 ? [] : Sn(i);
2933
+ }, string: Fr, formatted: function(i) {
2934
+ return Fr(i).length === 0 ? [] : Sn(i);
2935
2935
  }, resolvedImage: function(i) {
2936
- return Br(i).length === 0 ? [] : Sn(i);
2936
+ return Fr(i).length === 0 ? [] : Sn(i);
2937
2937
  }, padding: function(i) {
2938
2938
  const e = i.key, r = i.value;
2939
2939
  if (gt(r) === "array") {
@@ -2956,7 +2956,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2956
2956
  return i.validateSpec = Es, r.expression && Ss(Ft(e)) ? _a(i) : r.expression && Ts(wn(e)) ? Sn(i) : r.type && Pa[r.type] ? Pa[r.type](i) : zi(yr({}, i, { valueSpec: r.type ? s[r.type] : r }));
2957
2957
  }
2958
2958
  function Fl(i) {
2959
- const e = i.value, r = i.key, s = Br(i);
2959
+ const e = i.value, r = i.key, s = Fr(i);
2960
2960
  return s.length || (e.indexOf("{fontstack}") === -1 && s.push(new Te(r, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && s.push(new Te(r, e, '"glyphs" url must include a "{range}" token'))), s;
2961
2961
  }
2962
2962
  function Ji(i, e = he) {
@@ -2977,7 +2977,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2977
2977
  };
2978
2978
  }
2979
2979
  Ji.source = or(sr(Ll)), Ji.sprite = or(sr(Ia)), Ji.glyphs = or(sr(Fl)), Ji.light = or(sr(Sa)), Ji.sky = or(sr(Rl)), Ji.terrain = or(sr(Ta)), Ji.layer = or(sr(ba)), Ji.filter = or(sr(Cs)), Ji.paintProperty = or(sr(xa)), Ji.layoutProperty = or(sr(va));
2980
- const Or = Ji, Uc = Or.light, Ca = Or.sky, $c = Or.paintProperty, qc = Or.layoutProperty;
2980
+ const Br = Ji, Uc = Br.light, Ca = Br.sky, $c = Br.paintProperty, qc = Br.layoutProperty;
2981
2981
  function ka(i, e) {
2982
2982
  let r = !1;
2983
2983
  if (e && e.length) for (const s of e) i.fire(new Gr(new Error(s.message))), r = !0;
@@ -3075,7 +3075,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3075
3075
  if (Sr[i]) throw new Error(`${i} is already registered.`);
3076
3076
  Object.defineProperty(e, "_classRegistryKey", { value: i, writeable: !1 }), Sr[i] = { klass: e, omit: r.omit || [], shallow: r.shallow || [] };
3077
3077
  }
3078
- Be("Object", Object), Be("TransferableGridIndex", qn), Be("Color", It), Be("Error", Error), Be("AJAXError", Vi), Be("ResolvedImage", fi), Be("StylePropertyFunction", mo), Be("StyleExpression", fo, { omit: ["_evaluator"] }), Be("ZoomDependentExpression", ua), Be("ZoomConstantExpression", ha), Be("CompoundExpression", Zi, { omit: ["_evaluate"] });
3078
+ Be("Object", Object), Be("TransferableGridIndex", qn), Be("Color", Tt), Be("Error", Error), Be("AJAXError", Vi), Be("ResolvedImage", fi), Be("StylePropertyFunction", mo), Be("StyleExpression", fo, { omit: ["_evaluator"] }), Be("ZoomDependentExpression", ua), Be("ZoomConstantExpression", ha), Be("CompoundExpression", Zi, { omit: ["_evaluate"] });
3079
3079
  for (const i in _n) _n[i]._classRegistryKey || Be(`Expression_${i}`, _n[i]);
3080
3080
  function Bl(i) {
3081
3081
  return i && typeof ArrayBuffer < "u" && (i instanceof ArrayBuffer || i.constructor && i.constructor.name === "ArrayBuffer");
@@ -3223,7 +3223,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3223
3223
  }
3224
3224
  {
3225
3225
  let d = s;
3226
- return l.type === "color" && typeof s == "string" ? d = It.parse(s) : l.type !== "padding" || typeof s != "number" && !Array.isArray(s) ? l.type === "variableAnchorOffsetCollection" && Array.isArray(s) && (d = Ui.parse(s)) : d = ji.parse(s), { kind: "constant", evaluate: () => d };
3226
+ return l.type === "color" && typeof s == "string" ? d = Tt.parse(s) : l.type !== "padding" || typeof s != "number" && !Array.isArray(s) ? l.type === "variableAnchorOffsetCollection" && Array.isArray(s) && (d = Ui.parse(s)) : d = ji.parse(s), { kind: "constant", evaluate: () => d };
3227
3227
  }
3228
3228
  }(r === void 0 ? e.specification.default : r, e.specification);
3229
3229
  }
@@ -3526,7 +3526,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3526
3526
  return this.visibility && (e.layout = e.layout || {}, e.layout.visibility = this.visibility), tr(e, (r, s) => !(r === void 0 || s === "layout" && !Object.keys(r).length || s === "paint" && !Object.keys(r).length));
3527
3527
  }
3528
3528
  _validate(e, r, s, l, d = {}) {
3529
- return (!d || d.validate !== !1) && ka(this, e.call(Or, { key: r, layerType: this.type, objectKey: s, value: l, styleSpec: he, style: { glyphs: !0, sprite: !0 } }));
3529
+ return (!d || d.validate !== !1) && ka(this, e.call(Br, { key: r, layerType: this.type, objectKey: s, value: l, styleSpec: he, style: { glyphs: !0, sprite: !0 } }));
3530
3530
  }
3531
3531
  is3D() {
3532
3532
  return !1;
@@ -3775,7 +3775,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3775
3775
  }
3776
3776
  }
3777
3777
  me.prototype.bytesPerElement = 16, Be("StructArrayLayout2f1f2i16", me);
3778
- class ve extends v {
3778
+ class be extends v {
3779
3779
  _refreshViews() {
3780
3780
  this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
3781
3781
  }
@@ -3788,7 +3788,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3788
3788
  return this.uint8[g + 0] = r, this.uint8[g + 1] = s, this.float32[x + 1] = l, this.float32[x + 2] = d, this.int16[w + 6] = p, this.int16[w + 7] = f, e;
3789
3789
  }
3790
3790
  }
3791
- ve.prototype.bytesPerElement = 16, Be("StructArrayLayout2ub2f2i16", ve);
3791
+ be.prototype.bytesPerElement = 16, Be("StructArrayLayout2ub2f2i16", be);
3792
3792
  class ze extends v {
3793
3793
  _refreshViews() {
3794
3794
  this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
@@ -3817,7 +3817,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3817
3817
  }
3818
3818
  }
3819
3819
  Le.prototype.bytesPerElement = 48, Be("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", Le);
3820
- class be extends v {
3820
+ class we extends v {
3821
3821
  _refreshViews() {
3822
3822
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
3823
3823
  }
@@ -3830,7 +3830,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3830
3830
  return this.int16[fe + 0] = r, this.int16[fe + 1] = s, this.int16[fe + 2] = l, this.int16[fe + 3] = d, this.int16[fe + 4] = p, this.int16[fe + 5] = f, this.int16[fe + 6] = g, this.int16[fe + 7] = x, this.uint16[fe + 8] = w, this.uint16[fe + 9] = I, this.uint16[fe + 10] = C, this.uint16[fe + 11] = M, this.uint16[fe + 12] = R, this.uint16[fe + 13] = B, this.uint16[fe + 14] = $, this.uint16[fe + 15] = W, this.uint16[fe + 16] = se, this.uint16[fe + 17] = Y, this.uint16[fe + 18] = ie, this.uint16[fe + 19] = ue, this.uint16[fe + 20] = ye, this.uint16[fe + 21] = De, this.uint16[fe + 22] = We, this.uint32[Ze + 12] = Ee, this.float32[Ze + 13] = Ce, this.float32[Ze + 14] = $e, this.uint16[fe + 30] = Oe, this.uint16[fe + 31] = Re, e;
3831
3831
  }
3832
3832
  }
3833
- be.prototype.bytesPerElement = 64, Be("StructArrayLayout8i15ui1ul2f2ui64", be);
3833
+ we.prototype.bytesPerElement = 64, Be("StructArrayLayout8i15ui1ul2f2ui64", we);
3834
3834
  class Se extends v {
3835
3835
  _refreshViews() {
3836
3836
  this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
@@ -4111,7 +4111,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4111
4111
  }
4112
4112
  }
4113
4113
  mi.prototype.size = 64;
4114
- class ar extends be {
4114
+ class ar extends we {
4115
4115
  get(e) {
4116
4116
  return new mi(this, e);
4117
4117
  }
@@ -4193,11 +4193,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4193
4193
  }
4194
4194
  class yi extends le {
4195
4195
  }
4196
- class xi extends ve {
4196
+ class xi extends be {
4197
4197
  }
4198
4198
  class oi extends ze {
4199
4199
  }
4200
- class qt extends Pe {
4200
+ class $t extends Pe {
4201
4201
  }
4202
4202
  const Xn = b([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Fa } = Xn;
4203
4203
  class ri {
@@ -4330,13 +4330,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4330
4330
  }
4331
4331
  class eu extends Ds {
4332
4332
  constructor(e, r) {
4333
- super(e, r), this.current = It.transparent;
4333
+ super(e, r), this.current = Tt.transparent;
4334
4334
  }
4335
4335
  set(e) {
4336
4336
  e.r === this.current.r && e.g === this.current.g && e.b === this.current.b && e.a === this.current.a || (this.current = e, this.gl.uniform4f(this.location, e.r, e.g, e.b, e.a));
4337
4337
  }
4338
4338
  }
4339
- const Mp = new Float32Array(16);
4339
+ const zp = new Float32Array(16);
4340
4340
  function Hc(i) {
4341
4341
  return [ql(255 * i.r, 255 * i.g), ql(255 * i.b, 255 * i.a)];
4342
4342
  }
@@ -4394,7 +4394,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4394
4394
  this.paintVertexBuffer && this.paintVertexBuffer.destroy();
4395
4395
  }
4396
4396
  }
4397
- class Vr {
4397
+ class Or {
4398
4398
  constructor(e, r, s, l, d, p) {
4399
4399
  this.expression = e, this.uniformNames = r.map((f) => `u_${f}_t`), this.type = s, this.useIntegerZoom = l, this.zoom = d, this.maxValue = 0, this.paintVertexAttributes = r.map((f) => ({ name: `a_${f}`, type: "Float32", components: s === "color" ? 4 : 2, offset: 0 })), this.paintVertexArray = new p();
4400
4400
  }
@@ -4460,26 +4460,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4460
4460
  if (!s(d)) continue;
4461
4461
  const p = e.paint.get(d);
4462
4462
  if (!(p instanceof Ir && xn(p.property.specification))) continue;
4463
- const f = zp(d, e.type), g = p.value, x = p.property.specification.type, w = p.property.useIntegerZoom, I = p.property.specification["property-type"], C = I === "cross-faded" || I === "cross-faded-data-driven";
4463
+ const f = Dp(d, e.type), g = p.value, x = p.property.specification.type, w = p.property.useIntegerZoom, I = p.property.specification["property-type"], C = I === "cross-faded" || I === "cross-faded-data-driven";
4464
4464
  if (g.kind === "constant") this.binders[d] = C ? new Ao(g.value, f) : new Na(g.value, f, x), l.push(`/u_${d}`);
4465
4465
  else if (g.kind === "source" || C) {
4466
4466
  const M = iu(d, x, "source");
4467
4467
  this.binders[d] = C ? new Kn(g, x, w, r, M, e.id) : new Pn(g, f, x, M), l.push(`/a_${d}`);
4468
4468
  } else {
4469
4469
  const M = iu(d, x, "composite");
4470
- this.binders[d] = new Vr(g, f, x, w, r, M), l.push(`/z_${d}`);
4470
+ this.binders[d] = new Or(g, f, x, w, r, M), l.push(`/z_${d}`);
4471
4471
  }
4472
4472
  }
4473
4473
  this.cacheKey = l.sort().join("");
4474
4474
  }
4475
4475
  getMaxValue(e) {
4476
4476
  const r = this.binders[e];
4477
- return r instanceof Pn || r instanceof Vr ? r.maxValue : 0;
4477
+ return r instanceof Pn || r instanceof Or ? r.maxValue : 0;
4478
4478
  }
4479
4479
  populatePaintArrays(e, r, s, l, d) {
4480
4480
  for (const p in this.binders) {
4481
4481
  const f = this.binders[p];
4482
- (f instanceof Pn || f instanceof Vr || f instanceof Kn) && f.populatePaintArray(e, r, s, l, d);
4482
+ (f instanceof Pn || f instanceof Or || f instanceof Kn) && f.populatePaintArray(e, r, s, l, d);
4483
4483
  }
4484
4484
  }
4485
4485
  setConstantPatternPositions(e, r) {
@@ -4496,7 +4496,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4496
4496
  const w = s.feature(x.index);
4497
4497
  for (const I in this.binders) {
4498
4498
  const C = this.binders[I];
4499
- if ((C instanceof Pn || C instanceof Vr || C instanceof Kn) && C.expression.isStateDependent === !0) {
4499
+ if ((C instanceof Pn || C instanceof Or || C instanceof Kn) && C.expression.isStateDependent === !0) {
4500
4500
  const M = l.paint.get(I);
4501
4501
  C.expression = M.value, C.updatePaintArray(x.start, x.end, w, e[f], d), p = !0;
4502
4502
  }
@@ -4517,7 +4517,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4517
4517
  const e = [];
4518
4518
  for (const r in this.binders) {
4519
4519
  const s = this.binders[r];
4520
- if (s instanceof Pn || s instanceof Vr) for (let l = 0; l < s.paintVertexAttributes.length; l++) e.push(s.paintVertexAttributes[l].name);
4520
+ if (s instanceof Pn || s instanceof Or) for (let l = 0; l < s.paintVertexAttributes.length; l++) e.push(s.paintVertexAttributes[l].name);
4521
4521
  else if (s instanceof Kn) for (let l = 0; l < To.members.length; l++) e.push(To.members[l].name);
4522
4522
  }
4523
4523
  return e;
@@ -4526,7 +4526,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4526
4526
  const e = [];
4527
4527
  for (const r in this.binders) {
4528
4528
  const s = this.binders[r];
4529
- if (s instanceof Na || s instanceof Ao || s instanceof Vr) for (const l of s.uniformNames) e.push(l);
4529
+ if (s instanceof Na || s instanceof Ao || s instanceof Or) for (const l of s.uniformNames) e.push(l);
4530
4530
  }
4531
4531
  return e;
4532
4532
  }
@@ -4537,7 +4537,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4537
4537
  const s = [];
4538
4538
  for (const l in this.binders) {
4539
4539
  const d = this.binders[l];
4540
- if (d instanceof Na || d instanceof Ao || d instanceof Vr) {
4540
+ if (d instanceof Na || d instanceof Ao || d instanceof Or) {
4541
4541
  for (const p of d.uniformNames) if (r[p]) {
4542
4542
  const f = d.getBinding(e, r[p], p);
4543
4543
  s.push({ name: p, property: l, binding: f });
@@ -4556,20 +4556,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4556
4556
  if (e && s instanceof Kn) {
4557
4557
  const l = e.fromScale === 2 ? s.zoomInPaintVertexBuffer : s.zoomOutPaintVertexBuffer;
4558
4558
  l && this._buffers.push(l);
4559
- } else (s instanceof Pn || s instanceof Vr) && s.paintVertexBuffer && this._buffers.push(s.paintVertexBuffer);
4559
+ } else (s instanceof Pn || s instanceof Or) && s.paintVertexBuffer && this._buffers.push(s.paintVertexBuffer);
4560
4560
  }
4561
4561
  }
4562
4562
  upload(e) {
4563
4563
  for (const r in this.binders) {
4564
4564
  const s = this.binders[r];
4565
- (s instanceof Pn || s instanceof Vr || s instanceof Kn) && s.upload(e);
4565
+ (s instanceof Pn || s instanceof Or || s instanceof Kn) && s.upload(e);
4566
4566
  }
4567
4567
  this.updatePaintBuffers();
4568
4568
  }
4569
4569
  destroy() {
4570
4570
  for (const e in this.binders) {
4571
4571
  const r = this.binders[e];
4572
- (r instanceof Pn || r instanceof Vr || r instanceof Kn) && r.destroy();
4572
+ (r instanceof Pn || r instanceof Or || r instanceof Kn) && r.destroy();
4573
4573
  }
4574
4574
  }
4575
4575
  }
@@ -4599,7 +4599,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4599
4599
  for (const e in this.programConfigurations) this.programConfigurations[e].destroy();
4600
4600
  }
4601
4601
  }
4602
- function zp(i, e) {
4602
+ function Dp(i, e) {
4603
4603
  return { "text-opacity": ["opacity"], "icon-opacity": ["opacity"], "text-color": ["fill_color"], "icon-color": ["fill_color"], "text-halo-color": ["halo_color"], "icon-halo-color": ["halo_color"], "text-halo-blur": ["halo_blur"], "icon-halo-blur": ["halo_blur"], "text-halo-width": ["halo_width"], "icon-halo-width": ["halo_width"], "line-gap-width": ["gapwidth"], "line-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-extrusion-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"] }[i] || [i.replace(`${e}-`, "").replace(/-/g, "_")];
4604
4604
  }
4605
4605
  function iu(i, e, r) {
@@ -4608,7 +4608,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4608
4608
  }(i);
4609
4609
  return l && l[r] || s[e][r];
4610
4610
  }
4611
- Be("ConstantBinder", Na), Be("CrossFadedConstantBinder", Ao), Be("SourceExpressionBinder", Pn), Be("CrossFadedCompositeBinder", Kn), Be("CompositeExpressionBinder", Vr), Be("ProgramConfiguration", tu, { omit: ["_buffers"] }), Be("ProgramConfigurationSet", Ls);
4611
+ Be("ConstantBinder", Na), Be("CrossFadedConstantBinder", Ao), Be("SourceExpressionBinder", Pn), Be("CrossFadedCompositeBinder", Kn), Be("CompositeExpressionBinder", Or), Be("ProgramConfiguration", tu, { omit: ["_buffers"] }), Be("ProgramConfigurationSet", Ls);
4612
4612
  const ti = 8192, Wc = Math.pow(2, 14) - 1, ru = -Wc - 1;
4613
4613
  function Rs(i) {
4614
4614
  const e = ti / i.extent, r = i.loadGeometry();
@@ -4677,7 +4677,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4677
4677
  for (let r = 0; r < e.length; r++) if (Co(i, e[r])) return !0;
4678
4678
  return !!Jc(i, e);
4679
4679
  }
4680
- function Dp(i, e, r) {
4680
+ function Lp(i, e, r) {
4681
4681
  return !!Co(i, e) || !!Kc(e, i, r);
4682
4682
  }
4683
4683
  function su(i, e) {
@@ -4690,7 +4690,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4690
4690
  for (let r = 0; r < e.length; r++) if (Jc(i, e[r])) return !0;
4691
4691
  return !1;
4692
4692
  }
4693
- function Lp(i, e, r) {
4693
+ function Rp(i, e, r) {
4694
4694
  if (i.length > 1) {
4695
4695
  if (Jc(i, e)) return !0;
4696
4696
  for (let s = 0; s < e.length; s++) if (Kc(e[s], i, r)) return !0;
@@ -4702,11 +4702,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4702
4702
  if (i.length === 0 || e.length === 0) return !1;
4703
4703
  for (let r = 0; r < i.length - 1; r++) {
4704
4704
  const s = i[r], l = i[r + 1];
4705
- for (let d = 0; d < e.length - 1; d++) if (Rp(s, l, e[d], e[d + 1])) return !0;
4705
+ for (let d = 0; d < e.length - 1; d++) if (Fp(s, l, e[d], e[d + 1])) return !0;
4706
4706
  }
4707
4707
  return !1;
4708
4708
  }
4709
- function Rp(i, e, r, s) {
4709
+ function Fp(i, e, r, s) {
4710
4710
  return Ti(i, r, s) !== Ti(e, r, s) && Ti(i, e, r) !== Ti(i, e, s);
4711
4711
  }
4712
4712
  function Kc(i, e, r) {
@@ -4737,7 +4737,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4737
4737
  }
4738
4738
  return r;
4739
4739
  }
4740
- function Fp(i, e, r) {
4740
+ function Bp(i, e, r) {
4741
4741
  const s = r[0], l = r[2];
4742
4742
  if (i.x < s.x && e.x < s.x || i.x > l.x && e.x > l.x || i.y < s.y && e.y < s.y || i.y > l.y && e.y > l.y) return !1;
4743
4743
  const d = Ti(i, e, r[0]);
@@ -4760,7 +4760,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4760
4760
  }
4761
4761
  let lu, cu;
4762
4762
  Be("CircleBucket", Xc, { omit: ["layers"] });
4763
- var Bp = { get paint() {
4763
+ var Op = { get paint() {
4764
4764
  return cu = cu || new o({ "circle-radius": new Xe(he.paint_circle["circle-radius"]), "circle-color": new Xe(he.paint_circle["circle-color"]), "circle-blur": new Xe(he.paint_circle["circle-blur"]), "circle-opacity": new Xe(he.paint_circle["circle-opacity"]), "circle-translate": new qe(he.paint_circle["circle-translate"]), "circle-translate-anchor": new qe(he.paint_circle["circle-translate-anchor"]), "circle-pitch-scale": new qe(he.paint_circle["circle-pitch-scale"]), "circle-pitch-alignment": new qe(he.paint_circle["circle-pitch-alignment"]), "circle-stroke-width": new Xe(he.paint_circle["circle-stroke-width"]), "circle-stroke-color": new Xe(he.paint_circle["circle-stroke-color"]), "circle-stroke-opacity": new Xe(he.paint_circle["circle-stroke-opacity"]) });
4765
4765
  }, get layout() {
4766
4766
  return lu = lu || new o({ "circle-sort-key": new Xe(he.layout_circle["circle-sort-key"]) });
@@ -4776,15 +4776,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4776
4776
  for (var i = 0, e = arguments.length; e--; ) i += arguments[e] * arguments[e];
4777
4777
  return Math.sqrt(i);
4778
4778
  });
4779
- var Ua, Op = hu;
4779
+ var Ua, Vp = hu;
4780
4780
  function Kl(i, e, r) {
4781
4781
  var s = e[0], l = e[1], d = e[2], p = e[3];
4782
4782
  return i[0] = r[0] * s + r[4] * l + r[8] * d + r[12] * p, i[1] = r[1] * s + r[5] * l + r[9] * d + r[13] * p, i[2] = r[2] * s + r[6] * l + r[10] * d + r[14] * p, i[3] = r[3] * s + r[7] * l + r[11] * d + r[15] * p, i;
4783
4783
  }
4784
4784
  Ua = new ko(4), ko != Float32Array && (Ua[0] = 0, Ua[1] = 0, Ua[2] = 0, Ua[3] = 0);
4785
- class Vp extends h {
4785
+ class Np extends h {
4786
4786
  constructor(e) {
4787
- super(e, Bp);
4787
+ super(e, Op);
4788
4788
  }
4789
4789
  createBucket(e) {
4790
4790
  return new Xc(e);
@@ -4801,7 +4801,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4801
4801
  const $ = I ? B : uu(B, g);
4802
4802
  let W = M;
4803
4803
  const se = Kl([], [B.x, B.y, 0, 1], g);
4804
- if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? W *= se[3] / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (W *= p.cameraToCenterDistance / se[3]), Dp(C, $, W)) return !0;
4804
+ if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? W *= se[3] / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (W *= p.cameraToCenterDistance / se[3]), Lp(C, $, W)) return !0;
4805
4805
  }
4806
4806
  return !1;
4807
4807
  }
@@ -4814,7 +4814,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4814
4814
  }
4815
4815
  let pu;
4816
4816
  Be("HeatmapBucket", du, { omit: ["layers"] });
4817
- var Np = { get paint() {
4817
+ var jp = { get paint() {
4818
4818
  return pu = pu || new o({ "heatmap-radius": new Xe(he.paint_heatmap["heatmap-radius"]), "heatmap-weight": new Xe(he.paint_heatmap["heatmap-weight"]), "heatmap-intensity": new qe(he.paint_heatmap["heatmap-intensity"]), "heatmap-color": new n(he.paint_heatmap["heatmap-color"]), "heatmap-opacity": new qe(he.paint_heatmap["heatmap-opacity"]) });
4819
4819
  } };
4820
4820
  function Qc(i, { width: e, height: r }, s, l) {
@@ -4888,12 +4888,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4888
4888
  return l;
4889
4889
  }
4890
4890
  Be("AlphaImage", $a), Be("RGBAImage", hr);
4891
- class jp extends h {
4891
+ class Up extends h {
4892
4892
  createBucket(e) {
4893
4893
  return new du(e);
4894
4894
  }
4895
4895
  constructor(e) {
4896
- super(e, Np), this._updateColorRamp();
4896
+ super(e, jp), this._updateColorRamp();
4897
4897
  }
4898
4898
  _handleSpecialPaintPropertyUpdate(e) {
4899
4899
  e === "heatmap-color" && this._updateColorRamp();
@@ -4915,18 +4915,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4915
4915
  }
4916
4916
  }
4917
4917
  let gu;
4918
- var Up = { get paint() {
4918
+ var $p = { get paint() {
4919
4919
  return gu = gu || new o({ "hillshade-illumination-direction": new qe(he.paint_hillshade["hillshade-illumination-direction"]), "hillshade-illumination-anchor": new qe(he.paint_hillshade["hillshade-illumination-anchor"]), "hillshade-exaggeration": new qe(he.paint_hillshade["hillshade-exaggeration"]), "hillshade-shadow-color": new qe(he.paint_hillshade["hillshade-shadow-color"]), "hillshade-highlight-color": new qe(he.paint_hillshade["hillshade-highlight-color"]), "hillshade-accent-color": new qe(he.paint_hillshade["hillshade-accent-color"]) });
4920
4920
  } };
4921
- class $p extends h {
4921
+ class qp extends h {
4922
4922
  constructor(e) {
4923
- super(e, Up);
4923
+ super(e, $p);
4924
4924
  }
4925
4925
  hasOffscreenPass() {
4926
4926
  return this.paint.get("hillshade-exaggeration") !== 0 && this.visibility !== "none";
4927
4927
  }
4928
4928
  }
4929
- const qp = b([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Zp } = qp;
4929
+ const Zp = b([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Gp } = Zp;
4930
4930
  function _u(i, e, r = 2) {
4931
4931
  const s = e && e.length, l = s ? e[0] * r : i.length;
4932
4932
  let d = yu(i, 0, l, r, !0);
@@ -4937,10 +4937,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4937
4937
  const R = [];
4938
4938
  for (let B = 0, $ = I.length; B < $; B++) {
4939
4939
  const W = yu(w, I[B] * M, B < $ - 1 ? I[B + 1] * M : w.length, M, !1);
4940
- W === W.next && (W.steiner = !0), R.push(Qp(W));
4940
+ W === W.next && (W.steiner = !0), R.push(ef(W));
4941
4941
  }
4942
- R.sort(Jp);
4943
- for (let B = 0; B < R.length; B++) C = Kp(R[B], C);
4942
+ R.sort(Kp);
4943
+ for (let B = 0; B < R.length; B++) C = Yp(R[B], C);
4944
4944
  return C;
4945
4945
  }(i, e, d, r)), i.length > 80 * r) {
4946
4946
  f = 1 / 0, g = 1 / 0;
@@ -5004,14 +5004,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5004
5004
  let f = i;
5005
5005
  for (; i.prev !== i.next; ) {
5006
5006
  const g = i.prev, x = i.next;
5007
- if (d ? Hp(i, s, l, d) : Gp(i)) e.push(g.i, i.i, x.i), Ga(i), i = x.next, f = x.next;
5007
+ if (d ? Wp(i, s, l, d) : Hp(i)) e.push(g.i, i.i, x.i), Ga(i), i = x.next, f = x.next;
5008
5008
  else if ((i = x) === f) {
5009
- p ? p === 1 ? qa(i = Wp(Bs(i), e), e, r, s, l, d, 2) : p === 2 && Xp(i, e, r, s, l, d) : qa(Bs(i), e, r, s, l, d, 1);
5009
+ p ? p === 1 ? qa(i = Xp(Bs(i), e), e, r, s, l, d, 2) : p === 2 && Jp(i, e, r, s, l, d) : qa(Bs(i), e, r, s, l, d, 1);
5010
5010
  break;
5011
5011
  }
5012
5012
  }
5013
5013
  }
5014
- function Gp(i) {
5014
+ function Hp(i) {
5015
5015
  const e = i.prev, r = i, s = i.next;
5016
5016
  if (Kt(e, r, s) >= 0) return !1;
5017
5017
  const l = e.x, d = r.x, p = s.x, f = e.y, g = r.y, x = s.y, w = l < d ? l < p ? l : p : d < p ? d : p, I = f < g ? f < x ? f : x : g < x ? g : x, C = l > d ? l > p ? l : p : d > p ? d : p, M = f > g ? f > x ? f : x : g > x ? g : x;
@@ -5022,7 +5022,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5022
5022
  }
5023
5023
  return !0;
5024
5024
  }
5025
- function Hp(i, e, r, s) {
5025
+ function Wp(i, e, r, s) {
5026
5026
  const l = i.prev, d = i, p = i.next;
5027
5027
  if (Kt(l, d, p) >= 0) return !1;
5028
5028
  const f = l.x, g = d.x, x = p.x, w = l.y, I = d.y, C = p.y, M = f < g ? f < x ? f : x : g < x ? g : x, R = w < I ? w < C ? w : C : I < C ? I : C, B = f > g ? f > x ? f : x : g > x ? g : x, $ = w > I ? w > C ? w : C : I > C ? I : C, W = th(M, R, e, r, s), se = th(B, $, e, r, s);
@@ -5041,7 +5041,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5041
5041
  }
5042
5042
  return !0;
5043
5043
  }
5044
- function Wp(i, e) {
5044
+ function Xp(i, e) {
5045
5045
  let r = i;
5046
5046
  do {
5047
5047
  const s = r.prev, l = r.next.next;
@@ -5049,12 +5049,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5049
5049
  } while (r !== i);
5050
5050
  return Bs(r);
5051
5051
  }
5052
- function Xp(i, e, r, s, l, d) {
5052
+ function Jp(i, e, r, s, l, d) {
5053
5053
  let p = i;
5054
5054
  do {
5055
5055
  let f = p.next.next;
5056
5056
  for (; f !== p.prev; ) {
5057
- if (p.i !== f.i && ef(p, f)) {
5057
+ if (p.i !== f.i && tf(p, f)) {
5058
5058
  let g = vu(p, f);
5059
5059
  return p = Bs(p, p.next), g = Bs(g, g.next), qa(p, e, r, s, l, d, 0), void qa(g, e, r, s, l, d, 0);
5060
5060
  }
@@ -5063,10 +5063,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5063
5063
  p = p.next;
5064
5064
  } while (p !== i);
5065
5065
  }
5066
- function Jp(i, e) {
5066
+ function Kp(i, e) {
5067
5067
  return i.x - e.x;
5068
5068
  }
5069
- function Kp(i, e) {
5069
+ function Yp(i, e) {
5070
5070
  const r = function(l, d) {
5071
5071
  let p = d;
5072
5072
  const f = l.x, g = l.y;
@@ -5085,7 +5085,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5085
5085
  do {
5086
5086
  if (f >= p.x && p.x >= C && f !== p.x && Eo(g < M ? f : w, g, C, M, g < M ? w : f, g, p.x, p.y)) {
5087
5087
  const B = Math.abs(g - p.y) / (f - p.x);
5088
- Za(p, l) && (B < R || B === R && (p.x > x.x || p.x === x.x && Yp(x, p))) && (x = p, R = B);
5088
+ Za(p, l) && (B < R || B === R && (p.x > x.x || p.x === x.x && Qp(x, p))) && (x = p, R = B);
5089
5089
  }
5090
5090
  p = p.next;
5091
5091
  } while (p !== I);
@@ -5095,13 +5095,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5095
5095
  const s = vu(r, i);
5096
5096
  return Bs(s, s.next), Bs(r, r.next);
5097
5097
  }
5098
- function Yp(i, e) {
5098
+ function Qp(i, e) {
5099
5099
  return Kt(i.prev, i, e.prev) < 0 && Kt(e.next, i, i.next) < 0;
5100
5100
  }
5101
5101
  function th(i, e, r, s, l) {
5102
5102
  return (i = 1431655765 & ((i = 858993459 & ((i = 252645135 & ((i = 16711935 & ((i = (i - r) * l | 0) | i << 8)) | i << 4)) | i << 2)) | i << 1)) | (e = 1431655765 & ((e = 858993459 & ((e = 252645135 & ((e = 16711935 & ((e = (e - s) * l | 0) | e << 8)) | e << 4)) | e << 2)) | e << 1)) << 1;
5103
5103
  }
5104
- function Qp(i) {
5104
+ function ef(i) {
5105
5105
  let e = i, r = i;
5106
5106
  do
5107
5107
  (e.x < r.x || e.x === r.x && e.y < r.y) && (r = e), e = e.next;
@@ -5111,7 +5111,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5111
5111
  function Eo(i, e, r, s, l, d, p, f) {
5112
5112
  return (l - p) * (e - f) >= (i - p) * (d - f) && (i - p) * (s - f) >= (r - p) * (e - f) && (r - p) * (d - f) >= (l - p) * (s - f);
5113
5113
  }
5114
- function ef(i, e) {
5114
+ function tf(i, e) {
5115
5115
  return i.next.i !== e.i && i.prev.i !== e.i && !function(r, s) {
5116
5116
  let l = r;
5117
5117
  do {
@@ -5185,7 +5185,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5185
5185
  }
5186
5186
  class sh {
5187
5187
  constructor(e) {
5188
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Hn(), this.indexArray = new oi(), this.indexArray2 = new qt(), this.programConfigurations = new Ls(e.layers, e.zoom), this.segments = new ri(), this.segments2 = new ri(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5188
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new Hn(), this.indexArray = new oi(), this.indexArray2 = new $t(), this.programConfigurations = new Ls(e.layers, e.zoom), this.segments = new ri(), this.segments2 = new ri(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
5189
5189
  }
5190
5190
  populate(e, r, s) {
5191
5191
  this.hasPattern = rh("fill", this.layers, r);
@@ -5219,7 +5219,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5219
5219
  return !this.uploaded || this.programConfigurations.needsUpload;
5220
5220
  }
5221
5221
  upload(e) {
5222
- this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Zp), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.indexBuffer2 = e.createIndexBuffer(this.indexArray2)), this.programConfigurations.upload(e), this.uploaded = !0;
5222
+ this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Gp), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.indexBuffer2 = e.createIndexBuffer(this.indexArray2)), this.programConfigurations.upload(e), this.uploaded = !0;
5223
5223
  }
5224
5224
  destroy() {
5225
5225
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.indexBuffer2.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.segments2.destroy());
@@ -5246,14 +5246,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5246
5246
  }
5247
5247
  let wu, Su;
5248
5248
  Be("FillBucket", sh, { omit: ["layers", "patternFeatures"] });
5249
- var tf = { get paint() {
5249
+ var rf = { get paint() {
5250
5250
  return Su = Su || new o({ "fill-antialias": new qe(he.paint_fill["fill-antialias"]), "fill-opacity": new Xe(he.paint_fill["fill-opacity"]), "fill-color": new Xe(he.paint_fill["fill-color"]), "fill-outline-color": new Xe(he.paint_fill["fill-outline-color"]), "fill-translate": new qe(he.paint_fill["fill-translate"]), "fill-translate-anchor": new qe(he.paint_fill["fill-translate-anchor"]), "fill-pattern": new u(he.paint_fill["fill-pattern"]) });
5251
5251
  }, get layout() {
5252
5252
  return wu = wu || new o({ "fill-sort-key": new Xe(he.layout_fill["fill-sort-key"]) });
5253
5253
  } };
5254
- class rf extends h {
5254
+ class nf extends h {
5255
5255
  constructor(e) {
5256
- super(e, tf);
5256
+ super(e, rf);
5257
5257
  }
5258
5258
  recalculate(e, r) {
5259
5259
  super.recalculate(e, r);
@@ -5273,12 +5273,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5273
5273
  return !0;
5274
5274
  }
5275
5275
  }
5276
- const nf = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), sf = b([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: of } = nf;
5277
- var Yn = {}, af = _e, Tu = Mo;
5276
+ const sf = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), of = b([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: af } = sf;
5277
+ var Yn = {}, lf = _e, Tu = Mo;
5278
5278
  function Mo(i, e, r, s, l) {
5279
- this.properties = {}, this.extent = r, this.type = 0, this._pbf = i, this._geometry = -1, this._keys = s, this._values = l, i.readFields(lf, this, e);
5279
+ this.properties = {}, this.extent = r, this.type = 0, this._pbf = i, this._geometry = -1, this._keys = s, this._values = l, i.readFields(cf, this, e);
5280
5280
  }
5281
- function lf(i, e, r) {
5281
+ function cf(i, e, r) {
5282
5282
  i == 1 ? e.id = r.readVarint() : i == 2 ? function(s, l) {
5283
5283
  for (var d = s.readVarint() + s.pos; s.pos < d; ) {
5284
5284
  var p = l._keys[s.readVarint()], f = l._values[s.readVarint()];
@@ -5286,7 +5286,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5286
5286
  }
5287
5287
  }(r, e) : i == 3 ? e.type = r.readVarint() : i == 4 && (e._geometry = r.pos);
5288
5288
  }
5289
- function cf(i) {
5289
+ function hf(i) {
5290
5290
  for (var e, r, s = 0, l = 0, d = i.length, p = d - 1; l < d; p = l++) s += ((r = i[p]).x - (e = i[l]).x) * (e.y + r.y);
5291
5291
  return s;
5292
5292
  }
@@ -5298,7 +5298,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5298
5298
  var g = i.readVarint();
5299
5299
  s = 7 & g, l = g >> 3;
5300
5300
  }
5301
- if (l--, s === 1 || s === 2) d += i.readSVarint(), p += i.readSVarint(), s === 1 && (e && f.push(e), e = []), e.push(new af(d, p));
5301
+ if (l--, s === 1 || s === 2) d += i.readSVarint(), p += i.readSVarint(), s === 1 && (e && f.push(e), e = []), e.push(new lf(d, p));
5302
5302
  else {
5303
5303
  if (s !== 7) throw new Error("unknown command " + s);
5304
5304
  e && e.push(e[0].clone());
@@ -5339,7 +5339,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5339
5339
  var R = M.length;
5340
5340
  if (R <= 1) return [M];
5341
5341
  for (var B, $, W = [], se = 0; se < R; se++) {
5342
- var Y = cf(M[se]);
5342
+ var Y = hf(M[se]);
5343
5343
  Y !== 0 && ($ === void 0 && ($ = Y < 0), $ === Y < 0 ? (B && W.push(B), B = [M[se]]) : B.push(M[se]));
5344
5344
  }
5345
5345
  return B && W.push(B), W;
@@ -5349,11 +5349,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5349
5349
  var C = { type: "Feature", geometry: { type: x, coordinates: g }, properties: this.properties };
5350
5350
  return "id" in this && (C.id = this.id), C;
5351
5351
  };
5352
- var hf = Tu, Iu = Pu;
5352
+ var uf = Tu, Iu = Pu;
5353
5353
  function Pu(i, e) {
5354
- this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = i, this._keys = [], this._values = [], this._features = [], i.readFields(uf, this, e), this.length = this._features.length;
5354
+ this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = i, this._keys = [], this._values = [], this._features = [], i.readFields(df, this, e), this.length = this._features.length;
5355
5355
  }
5356
- function uf(i, e, r) {
5356
+ function df(i, e, r) {
5357
5357
  i === 15 ? e.version = r.readVarint() : i === 1 ? e.name = r.readString() : i === 5 ? e.extent = r.readVarint() : i === 2 ? e._features.push(r.pos) : i === 3 ? e._keys.push(r.readString()) : i === 4 && e._values.push(function(s) {
5358
5358
  for (var l = null, d = s.readVarint() + s.pos; s.pos < d; ) {
5359
5359
  var p = s.readVarint() >> 3;
@@ -5366,19 +5366,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5366
5366
  if (i < 0 || i >= this._features.length) throw new Error("feature index out of bounds");
5367
5367
  this._pbf.pos = this._features[i];
5368
5368
  var e = this._pbf.readVarint() + this._pbf.pos;
5369
- return new hf(this._pbf, e, this.extent, this._keys, this._values);
5369
+ return new uf(this._pbf, e, this.extent, this._keys, this._values);
5370
5370
  };
5371
- var df = Iu;
5372
- function pf(i, e, r) {
5371
+ var pf = Iu;
5372
+ function ff(i, e, r) {
5373
5373
  if (i === 3) {
5374
- var s = new df(r, r.readVarint() + r.pos);
5374
+ var s = new pf(r, r.readVarint() + r.pos);
5375
5375
  s.length && (e[s.name] = s);
5376
5376
  }
5377
5377
  }
5378
5378
  Yn.VectorTile = function(i, e) {
5379
- this.layers = i.readFields(pf, {}, e);
5379
+ this.layers = i.readFields(ff, {}, e);
5380
5380
  }, Yn.VectorTileFeature = Tu, Yn.VectorTileLayer = Iu;
5381
- const ff = Yn.VectorTileFeature.types, oh = Math.pow(2, 13);
5381
+ const mf = Yn.VectorTileFeature.types, oh = Math.pow(2, 13);
5382
5382
  function Ha(i, e, r, s, l, d, p, f) {
5383
5383
  i.emplaceBack(e, r, 2 * Math.floor(s * oh) + p, l * oh * 2, d * oh * 2, Math.round(f));
5384
5384
  }
@@ -5411,7 +5411,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5411
5411
  return !this.uploaded || this.programConfigurations.needsUpload;
5412
5412
  }
5413
5413
  upload(e) {
5414
- this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, of), this.centroidVertexBuffer = e.createVertexBuffer(this.centroidVertexArray, sf.members, !0), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
5414
+ this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, af), this.centroidVertexBuffer = e.createVertexBuffer(this.centroidVertexArray, of.members, !0), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
5415
5415
  }
5416
5416
  destroy() {
5417
5417
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.centroidVertexBuffer.destroy());
@@ -5423,13 +5423,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5423
5423
  for (const R of p) g += R.length;
5424
5424
  let x = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray);
5425
5425
  for (const R of p) {
5426
- if (R.length === 0 || gf(R)) continue;
5426
+ if (R.length === 0 || _f(R)) continue;
5427
5427
  let B = 0;
5428
5428
  for (let $ = 0; $ < R.length; $++) {
5429
5429
  const W = R[$];
5430
5430
  if ($ >= 1) {
5431
5431
  const se = R[$ - 1];
5432
- if (!mf(W, se)) {
5432
+ if (!gf(W, se)) {
5433
5433
  x.vertexLength + 4 > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray));
5434
5434
  const Y = W.sub(se)._perp()._unit(), ie = se.dist(W);
5435
5435
  B + ie > 32768 && (B = 0), Ha(this.layoutVertexArray, W.x, W.y, Y.x, Y.y, 0, 0, B), Ha(this.layoutVertexArray, W.x, W.y, Y.x, Y.y, 0, 1, B), f.x += 2 * W.x, f.y += 2 * W.y, f.vertexCount += 2, B += ie, Ha(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 0, B), Ha(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 1, B), f.x += 2 * se.x, f.y += 2 * se.y, f.vertexCount += 2;
@@ -5439,7 +5439,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5439
5439
  }
5440
5440
  }
5441
5441
  }
5442
- if (x.vertexLength + g > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(g, this.layoutVertexArray, this.indexArray)), ff[e.type] !== "Polygon") continue;
5442
+ if (x.vertexLength + g > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(g, this.layoutVertexArray, this.indexArray)), mf[e.type] !== "Polygon") continue;
5443
5443
  const w = [], I = [], C = x.vertexLength;
5444
5444
  for (const R of p) if (R.length !== 0) {
5445
5445
  R !== p[0] && I.push(w.length / 2);
@@ -5459,20 +5459,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5459
5459
  this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, s, d, l);
5460
5460
  }
5461
5461
  }
5462
- function mf(i, e) {
5462
+ function gf(i, e) {
5463
5463
  return i.x === e.x && (i.x < 0 || i.x > ti) || i.y === e.y && (i.y < 0 || i.y > ti);
5464
5464
  }
5465
- function gf(i) {
5465
+ function _f(i) {
5466
5466
  return i.every((e) => e.x < 0) || i.every((e) => e.x > ti) || i.every((e) => e.y < 0) || i.every((e) => e.y > ti);
5467
5467
  }
5468
5468
  let Au;
5469
5469
  Be("FillExtrusionBucket", ah, { omit: ["layers", "features"] });
5470
- var _f = { get paint() {
5470
+ var yf = { get paint() {
5471
5471
  return Au = Au || new o({ "fill-extrusion-opacity": new qe(he["paint_fill-extrusion"]["fill-extrusion-opacity"]), "fill-extrusion-color": new Xe(he["paint_fill-extrusion"]["fill-extrusion-color"]), "fill-extrusion-translate": new qe(he["paint_fill-extrusion"]["fill-extrusion-translate"]), "fill-extrusion-translate-anchor": new qe(he["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]), "fill-extrusion-pattern": new u(he["paint_fill-extrusion"]["fill-extrusion-pattern"]), "fill-extrusion-height": new Xe(he["paint_fill-extrusion"]["fill-extrusion-height"]), "fill-extrusion-base": new Xe(he["paint_fill-extrusion"]["fill-extrusion-base"]), "fill-extrusion-vertical-gradient": new qe(he["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) });
5472
5472
  } };
5473
- class yf extends h {
5473
+ class xf extends h {
5474
5474
  constructor(e) {
5475
- super(e, _f);
5475
+ super(e, yf);
5476
5476
  }
5477
5477
  createBucket(e) {
5478
5478
  return new ah(e);
@@ -5540,7 +5540,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5540
5540
  return r;
5541
5541
  }
5542
5542
  }
5543
- const xf = b([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: vf } = xf, bf = b([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: wf } = bf, Sf = Yn.VectorTileFeature.types, Tf = Math.cos(Math.PI / 180 * 37.5), ku = Math.pow(2, 14) / 0.5;
5543
+ const vf = b([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: bf } = vf, wf = b([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: Sf } = wf, Tf = Yn.VectorTileFeature.types, If = Math.cos(Math.PI / 180 * 37.5), ku = Math.pow(2, 14) / 0.5;
5544
5544
  class lh {
5545
5545
  constructor(e) {
5546
5546
  this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((r) => {
@@ -5579,7 +5579,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5579
5579
  return !this.uploaded || this.programConfigurations.needsUpload;
5580
5580
  }
5581
5581
  upload(e) {
5582
- this.uploaded || (this.layoutVertexArray2.length !== 0 && (this.layoutVertexBuffer2 = e.createVertexBuffer(this.layoutVertexArray2, wf)), this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, vf), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
5582
+ this.uploaded || (this.layoutVertexArray2.length !== 0 && (this.layoutVertexBuffer2 = e.createVertexBuffer(this.layoutVertexArray2, Sf)), this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, bf), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
5583
5583
  }
5584
5584
  destroy() {
5585
5585
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());
@@ -5599,7 +5599,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5599
5599
  for (let W = 0; W < e.length - 1; W++) this.totalDistance += e[W].dist(e[W + 1]);
5600
5600
  this.updateScaledDistance(), this.maxLineLength = Math.max(this.maxLineLength, this.totalDistance);
5601
5601
  }
5602
- const f = Sf[r.type] === "Polygon";
5602
+ const f = Tf[r.type] === "Polygon";
5603
5603
  let g = e.length;
5604
5604
  for (; g >= 2 && e[g - 1].equals(e[g - 2]); ) g--;
5605
5605
  let x = 0;
@@ -5614,7 +5614,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5614
5614
  $ && (B = $), C && (M = C), C = e[W], $ = R ? R.sub(C)._unit()._perp() : B, B = B || $;
5615
5615
  let se = B.add($);
5616
5616
  se.x === 0 && se.y === 0 || se._unit();
5617
- const Y = B.x * $.x + B.y * $.y, ie = se.x * $.x + se.y * $.y, ue = ie !== 0 ? 1 / ie : 1 / 0, ye = 2 * Math.sqrt(2 - 2 * ie), De = ie < Tf && M && R, We = B.x * $.y - B.y * $.x > 0;
5617
+ const Y = B.x * $.x + B.y * $.y, ie = se.x * $.x + se.y * $.y, ue = ie !== 0 ? 1 / ie : 1 / 0, ye = 2 * Math.sqrt(2 - 2 * ie), De = ie < If && M && R, We = B.x * $.y - B.y * $.x > 0;
5618
5618
  if (De && W > x) {
5619
5619
  const $e = C.dist(M);
5620
5620
  if ($e > 2 * w) {
@@ -5685,7 +5685,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5685
5685
  }, get layout() {
5686
5686
  return Eu = Eu || new o({ "line-cap": new qe(he.layout_line["line-cap"]), "line-join": new Xe(he.layout_line["line-join"]), "line-miter-limit": new qe(he.layout_line["line-miter-limit"]), "line-round-limit": new qe(he.layout_line["line-round-limit"]), "line-sort-key": new Xe(he.layout_line["line-sort-key"]) });
5687
5687
  } };
5688
- class If extends Xe {
5688
+ class Pf extends Xe {
5689
5689
  possiblyEvaluate(e, r) {
5690
5690
  return r = new Dt(Math.floor(r.zoom), { now: r.now, fadeDuration: r.fadeDuration, zoomHistory: r.zoomHistory, transition: r.transition }), super.possiblyEvaluate(e, r);
5691
5691
  }
@@ -5694,9 +5694,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5694
5694
  }
5695
5695
  }
5696
5696
  let tc;
5697
- class Pf extends h {
5697
+ class Af extends h {
5698
5698
  constructor(e) {
5699
- super(e, zu), this.gradientVersion = 0, tc || (tc = new If(zu.paint.properties["line-width"].specification), tc.useIntegerZoom = !0);
5699
+ super(e, zu), this.gradientVersion = 0, tc || (tc = new Pf(zu.paint.properties["line-width"].specification), tc.useIntegerZoom = !0);
5700
5700
  }
5701
5701
  _handleSpecialPaintPropertyUpdate(e) {
5702
5702
  if (e === "line-gradient") {
@@ -5738,7 +5738,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5738
5738
  if (I.length >= 3) {
5739
5739
  for (let $ = 0; $ < B.length; $++) if (Co(I, B[$])) return !0;
5740
5740
  }
5741
- if (Lp(I, B, M)) return !0;
5741
+ if (Rp(I, B, M)) return !0;
5742
5742
  }
5743
5743
  return !1;
5744
5744
  }(g, l, x);
@@ -5750,12 +5750,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5750
5750
  function Du(i, e) {
5751
5751
  return e > 0 ? e + 2 * i : i;
5752
5752
  }
5753
- const Af = b([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), Cf = b([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
5753
+ const Cf = b([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), kf = b([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
5754
5754
  b([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
5755
- const kf = b([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }, { name: "a_box_real", components: 2, type: "Int16" }]);
5755
+ const Ef = b([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }, { name: "a_box_real", components: 2, type: "Int16" }]);
5756
5756
  b([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
5757
- const Lu = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), Ef = b([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
5758
- function Mf(i, e, r) {
5757
+ const Lu = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), Mf = b([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
5758
+ function zf(i, e, r) {
5759
5759
  return i.sections.forEach((s) => {
5760
5760
  s.text = function(l, d, p) {
5761
5761
  const f = d.layout.get("text-transform").evaluate(p, {});
@@ -5797,31 +5797,31 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5797
5797
  r.realloc(s);
5798
5798
  for (var l = r.pos - 1; l >= i; l--) r.buf[l + s] = r.buf[l];
5799
5799
  }
5800
- function zf(i, e) {
5800
+ function Df(i, e) {
5801
5801
  for (var r = 0; r < i.length; r++) e.writeVarint(i[r]);
5802
5802
  }
5803
- function Df(i, e) {
5803
+ function Lf(i, e) {
5804
5804
  for (var r = 0; r < i.length; r++) e.writeSVarint(i[r]);
5805
5805
  }
5806
- function Lf(i, e) {
5806
+ function Rf(i, e) {
5807
5807
  for (var r = 0; r < i.length; r++) e.writeFloat(i[r]);
5808
5808
  }
5809
- function Rf(i, e) {
5809
+ function Ff(i, e) {
5810
5810
  for (var r = 0; r < i.length; r++) e.writeDouble(i[r]);
5811
5811
  }
5812
- function Ff(i, e) {
5812
+ function Bf(i, e) {
5813
5813
  for (var r = 0; r < i.length; r++) e.writeBoolean(i[r]);
5814
5814
  }
5815
- function Bf(i, e) {
5815
+ function Of(i, e) {
5816
5816
  for (var r = 0; r < i.length; r++) e.writeFixed32(i[r]);
5817
5817
  }
5818
- function Of(i, e) {
5818
+ function Vf(i, e) {
5819
5819
  for (var r = 0; r < i.length; r++) e.writeSFixed32(i[r]);
5820
5820
  }
5821
- function Vf(i, e) {
5821
+ function Nf(i, e) {
5822
5822
  for (var r = 0; r < i.length; r++) e.writeFixed64(i[r]);
5823
5823
  }
5824
- function Nf(i, e) {
5824
+ function jf(i, e) {
5825
5825
  for (var r = 0; r < i.length; r++) e.writeSFixed64(i[r]);
5826
5826
  }
5827
5827
  function ic(i, e) {
@@ -6016,23 +6016,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6016
6016
  }, writeMessage: function(i, e, r) {
6017
6017
  this.writeTag(i, At.Bytes), this.writeRawMessage(e, r);
6018
6018
  }, writePackedVarint: function(i, e) {
6019
- e.length && this.writeMessage(i, zf, e);
6020
- }, writePackedSVarint: function(i, e) {
6021
6019
  e.length && this.writeMessage(i, Df, e);
6020
+ }, writePackedSVarint: function(i, e) {
6021
+ e.length && this.writeMessage(i, Lf, e);
6022
6022
  }, writePackedBoolean: function(i, e) {
6023
- e.length && this.writeMessage(i, Ff, e);
6023
+ e.length && this.writeMessage(i, Bf, e);
6024
6024
  }, writePackedFloat: function(i, e) {
6025
- e.length && this.writeMessage(i, Lf, e);
6026
- }, writePackedDouble: function(i, e) {
6027
6025
  e.length && this.writeMessage(i, Rf, e);
6026
+ }, writePackedDouble: function(i, e) {
6027
+ e.length && this.writeMessage(i, Ff, e);
6028
6028
  }, writePackedFixed32: function(i, e) {
6029
- e.length && this.writeMessage(i, Bf, e);
6030
- }, writePackedSFixed32: function(i, e) {
6031
6029
  e.length && this.writeMessage(i, Of, e);
6032
- }, writePackedFixed64: function(i, e) {
6030
+ }, writePackedSFixed32: function(i, e) {
6033
6031
  e.length && this.writeMessage(i, Vf, e);
6034
- }, writePackedSFixed64: function(i, e) {
6032
+ }, writePackedFixed64: function(i, e) {
6035
6033
  e.length && this.writeMessage(i, Nf, e);
6034
+ }, writePackedSFixed64: function(i, e) {
6035
+ e.length && this.writeMessage(i, jf, e);
6036
6036
  }, writeBytesField: function(i, e) {
6037
6037
  this.writeTag(i, At.Bytes), this.writeBytes(e);
6038
6038
  }, writeFixed32Field: function(i, e) {
@@ -6058,16 +6058,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6058
6058
  } };
6059
6059
  var hh = xe(Ru);
6060
6060
  const uh = 3;
6061
- function jf(i, e, r) {
6062
- i === 1 && r.readMessage(Uf, e);
6063
- }
6064
6061
  function Uf(i, e, r) {
6062
+ i === 1 && r.readMessage($f, e);
6063
+ }
6064
+ function $f(i, e, r) {
6065
6065
  if (i === 3) {
6066
- const { id: s, bitmap: l, width: d, height: p, left: f, top: g, advance: x } = r.readMessage($f, {});
6066
+ const { id: s, bitmap: l, width: d, height: p, left: f, top: g, advance: x } = r.readMessage(qf, {});
6067
6067
  e.push({ id: s, bitmap: new $a({ width: d + 2 * uh, height: p + 2 * uh }, l), metrics: { width: d, height: p, left: f, top: g, advance: x } });
6068
6068
  }
6069
6069
  }
6070
- function $f(i, e, r) {
6070
+ function qf(i, e, r) {
6071
6071
  i === 1 ? e.id = r.readVarint() : i === 2 ? e.bitmap = r.readBytes() : i === 3 ? e.width = r.readVarint() : i === 4 ? e.height = r.readVarint() : i === 5 ? e.left = r.readSVarint() : i === 6 ? e.top = r.readSVarint() : i === 7 && (e.advance = r.readVarint());
6072
6072
  }
6073
6073
  const Uu = uh;
@@ -6289,7 +6289,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6289
6289
  }
6290
6290
  Ar ? (ue.verticalizable = !0, Oi.push({ glyph: Nt, imageName: on, x: et, y: kt + Ki, vertical: Ar, scale: _t.scale, fontStack: _t.fontStack, sectionIndex: Lt, metrics: Ht, rect: Oo }), et += an * _t.scale + fe) : (Oi.push({ glyph: Nt, imageName: on, x: et, y: kt + Ki, vertical: Ar, scale: _t.scale, fontStack: _t.fontStack, sectionIndex: Lt, metrics: Ht, rect: Oo }), et += Ht.advance * _t.scale + fe);
6291
6291
  }
6292
- Oi.length !== 0 && (Ct = Math.max(et - fe, Ct), Hf(Oi, 0, Oi.length - 1, Pr, Si)), et = 0;
6292
+ Oi.length !== 0 && (Ct = Math.max(et - fe, Ct), Wf(Oi, 0, Oi.length - 1, Pr, Si)), et = 0;
6293
6293
  const dr = Ce * li + Si;
6294
6294
  wi.lineOffset = Math.max(Si, Ci), kt += dr, ai = Math.max(dr, ai), ++bi;
6295
6295
  }
@@ -6306,7 +6306,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6306
6306
  return !0;
6307
6307
  }(Y) && ie;
6308
6308
  }
6309
- const nc = { 9: !0, 10: !0, 11: !0, 12: !0, 13: !0, 32: !0 }, qf = { 10: !0, 32: !0, 38: !0, 41: !0, 43: !0, 45: !0, 47: !0, 173: !0, 183: !0, 8203: !0, 8208: !0, 8211: !0, 8231: !0 }, Zf = { 40: !0 };
6309
+ const nc = { 9: !0, 10: !0, 11: !0, 12: !0, 13: !0, 32: !0 }, Zf = { 10: !0, 32: !0, 38: !0, 41: !0, 43: !0, 45: !0, 47: !0, 173: !0, 183: !0, 8203: !0, 8208: !0, 8211: !0, 8231: !0 }, Gf = { 40: !0 };
6310
6310
  function Zu(i, e, r, s, l, d) {
6311
6311
  if (e.imageName) {
6312
6312
  const p = s[e.imageName];
@@ -6321,7 +6321,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6321
6321
  const l = Math.pow(i - e, 2);
6322
6322
  return s ? i < e ? l / 2 : 2 * l : l + Math.abs(r) * r;
6323
6323
  }
6324
- function Gf(i, e, r) {
6324
+ function Hf(i, e, r) {
6325
6325
  let s = 0;
6326
6326
  return i === 10 && (s -= 1e4), r && (s += 150), i !== 40 && i !== 65288 || (s += 50), e !== 41 && e !== 65289 || (s += 50), s;
6327
6327
  }
@@ -6351,7 +6351,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6351
6351
  const C = i.getSection(I), M = i.getCharCode(I);
6352
6352
  if (nc[M] || (x += Zu(M, C, s, l, e, d)), I < i.length() - 1) {
6353
6353
  const R = !((w = M) < 11904 || !(Me["Bopomofo Extended"](w) || Me.Bopomofo(w) || Me["CJK Compatibility Forms"](w) || Me["CJK Compatibility Ideographs"](w) || Me["CJK Compatibility"](w) || Me["CJK Radicals Supplement"](w) || Me["CJK Strokes"](w) || Me["CJK Symbols and Punctuation"](w) || Me["CJK Unified Ideographs Extension A"](w) || Me["CJK Unified Ideographs"](w) || Me["Enclosed CJK Letters and Months"](w) || Me["Halfwidth and Fullwidth Forms"](w) || Me.Hiragana(w) || Me["Ideographic Description Characters"](w) || Me["Kangxi Radicals"](w) || Me["Katakana Phonetic Extensions"](w) || Me.Katakana(w) || Me["Vertical Forms"](w) || Me["Yi Radicals"](w) || Me["Yi Syllables"](w)));
6354
- (qf[M] || R || C.imageName || I !== i.length() - 2 && Zf[i.getCharCode(I + 1)]) && p.push(Hu(I + 1, x, f, p, Gf(M, i.getCharCode(I + 1), R && g), !1));
6354
+ (Zf[M] || R || C.imageName || I !== i.length() - 2 && Gf[i.getCharCode(I + 1)]) && p.push(Hu(I + 1, x, f, p, Hf(M, i.getCharCode(I + 1), R && g), !1));
6355
6355
  }
6356
6356
  }
6357
6357
  var w;
@@ -6383,12 +6383,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6383
6383
  }
6384
6384
  return { horizontalAlign: e, verticalAlign: r };
6385
6385
  }
6386
- function Hf(i, e, r, s, l) {
6386
+ function Wf(i, e, r, s, l) {
6387
6387
  if (!s && !l) return;
6388
6388
  const d = i[r], p = (i[r].x + d.metrics.advance * d.scale) * s;
6389
6389
  for (let f = e; f <= r; f++) i[f].x -= p, i[f].y += l;
6390
6390
  }
6391
- function Wf(i, e, r) {
6391
+ function Xf(i, e, r) {
6392
6392
  const { horizontalAlign: s, verticalAlign: l } = fh(r), d = e[0] - i.displaySize[0] * s, p = e[1] - i.displaySize[1] * l;
6393
6393
  return { image: i, top: p, bottom: p + i.displaySize[1], left: d, right: d + i.displaySize[0] };
6394
6394
  }
@@ -6442,7 +6442,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6442
6442
  const l = i.get(e);
6443
6443
  return l ? s = l : i.get(r) && (s = "always"), s;
6444
6444
  }
6445
- const Xf = Yn.VectorTileFeature.types, Jf = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
6445
+ const Jf = Yn.VectorTileFeature.types, Kf = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
6446
6446
  function sc(i, e, r, s, l, d, p, f, g, x, w, I, C) {
6447
6447
  const M = f ? Math.min(es, Math.round(f[0])) : 0, R = f ? Math.min(es, Math.round(f[1])) : 0;
6448
6448
  i.emplaceBack(e, r, Math.round(32 * s), Math.round(32 * l), d, p, (M << 1) + (g ? 1 : 0), R, 16 * x, 16 * w, 256 * I, 256 * C);
@@ -6450,7 +6450,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6450
6450
  function gh(i, e, r) {
6451
6451
  i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r);
6452
6452
  }
6453
- function Kf(i) {
6453
+ function Yf(i) {
6454
6454
  for (const e of i.sections) if (Da(e.text)) return !0;
6455
6455
  return !1;
6456
6456
  }
@@ -6462,7 +6462,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6462
6462
  return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
6463
6463
  }
6464
6464
  upload(e, r, s, l) {
6465
- this.isEmpty() || (s && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Af.members), this.indexBuffer = e.createIndexBuffer(this.indexArray, r), this.dynamicLayoutVertexBuffer = e.createVertexBuffer(this.dynamicLayoutVertexArray, Cf.members, !0), this.opacityVertexBuffer = e.createVertexBuffer(this.opacityVertexArray, Jf, !0), this.opacityVertexBuffer.itemSize = 1), (s || l) && this.programConfigurations.upload(e));
6465
+ this.isEmpty() || (s && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Cf.members), this.indexBuffer = e.createIndexBuffer(this.indexArray, r), this.dynamicLayoutVertexBuffer = e.createVertexBuffer(this.dynamicLayoutVertexArray, kf.members, !0), this.opacityVertexBuffer = e.createVertexBuffer(this.opacityVertexArray, Kf, !0), this.opacityVertexBuffer.itemSize = 1), (s || l) && this.programConfigurations.upload(e));
6466
6466
  }
6467
6467
  destroy() {
6468
6468
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.dynamicLayoutVertexBuffer.destroy(), this.opacityVertexBuffer.destroy());
@@ -6474,7 +6474,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6474
6474
  this.layoutVertexArray = new e(), this.layoutAttributes = r, this.indexArray = new s(), this.segments = new ri(), this.collisionVertexArray = new xi();
6475
6475
  }
6476
6476
  upload(e) {
6477
- this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, kf.members, !0);
6477
+ this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, Ef.members, !0);
6478
6478
  }
6479
6479
  destroy() {
6480
6480
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.segments.destroy(), this.collisionVertexBuffer.destroy());
@@ -6507,8 +6507,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6507
6507
  if (!l._featureFilter.filter(B, ue, s)) continue;
6508
6508
  let ye, De;
6509
6509
  if (ie || (ue.geometry = Rs($)), x) {
6510
- const Ee = l.getValueAndResolveTokens("text-field", ue, s, R), Ce = Ni.factory(Ee), $e = this.hasRTLText = this.hasRTLText || Kf(Ce);
6511
- (!$e || tn.getRTLTextPluginStatus() === "unavailable" || $e && tn.isParsed()) && (ye = Mf(Ce, l, ue));
6510
+ const Ee = l.getValueAndResolveTokens("text-field", ue, s, R), Ce = Ni.factory(Ee), $e = this.hasRTLText = this.hasRTLText || Yf(Ce);
6511
+ (!$e || tn.getRTLTextPluginStatus() === "unavailable" || $e && tn.isParsed()) && (ye = zf(Ce, l, ue));
6512
6512
  }
6513
6513
  if (w) {
6514
6514
  const Ee = l.getValueAndResolveTokens("icon-image", ue, s, R);
@@ -6516,7 +6516,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6516
6516
  }
6517
6517
  if (!ye && !De) continue;
6518
6518
  const We = this.sortFeaturesByKey ? I.evaluate(ue, {}, s) : void 0;
6519
- if (this.features.push({ id: W, text: ye, icon: De, index: se, sourceLayerIndex: Y, geometry: ue.geometry, properties: $.properties, type: Xf[$.type], sortKey: We }), De && (C[De.name] = !0), ye) {
6519
+ if (this.features.push({ id: W, text: ye, icon: De, index: se, sourceLayerIndex: Y, geometry: ue.geometry, properties: $.properties, type: Jf[$.type], sortKey: We }), De && (C[De.name] = !0), ye) {
6520
6520
  const Ee = p.evaluate(ue, {}, s).join(","), Ce = d.get("text-rotation-alignment") !== "viewport" && d.get("symbol-placement") !== "point";
6521
6521
  this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(S.ai.vertical) >= 0;
6522
6522
  for (const $e of ye.sections) if ($e.image) C[$e.image.name] = !0;
@@ -6615,7 +6615,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6615
6615
  }
6616
6616
  }
6617
6617
  generateCollisionDebugBuffers() {
6618
- this.hasDebugData() && this.destroyDebugData(), this.textCollisionBox = new yh(yi, Lu.members, qt), this.iconCollisionBox = new yh(yi, Lu.members, qt);
6618
+ this.hasDebugData() && this.destroyDebugData(), this.textCollisionBox = new yh(yi, Lu.members, $t), this.iconCollisionBox = new yh(yi, Lu.members, $t);
6619
6619
  for (let e = 0; e < this.symbolInstances.length; e++) {
6620
6620
  const r = this.symbolInstances.get(e);
6621
6621
  this.addDebugCollisionBoxes(r.textBoxStartIndex, r.textBoxEndIndex, r, !0), this.addDebugCollisionBoxes(r.verticalTextBoxStartIndex, r.verticalTextBoxEndIndex, r, !0), this.addDebugCollisionBoxes(r.iconBoxStartIndex, r.iconBoxEndIndex, r, !1), this.addDebugCollisionBoxes(r.verticalIconBoxStartIndex, r.verticalIconBoxEndIndex, r, !1);
@@ -6778,7 +6778,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6778
6778
  if (s.value.kind === "constant" && s.value.value instanceof Ni) p(s.value.value.sections);
6779
6779
  else if (s.value.kind === "source") {
6780
6780
  const f = (x) => {
6781
- d || (x instanceof fn && ei(x.value) === Lr ? p(x.value.sections) : x instanceof eo ? p(x.sections) : x.eachChild(f));
6781
+ d || (x instanceof fn && ei(x.value) === Dr ? p(x.value.sections) : x instanceof eo ? p(x.sections) : x.eachChild(f));
6782
6782
  }, g = s.value;
6783
6783
  g._styleExpression && f(g._styleExpression.expression);
6784
6784
  }
@@ -6786,24 +6786,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6786
6786
  }
6787
6787
  }
6788
6788
  let td;
6789
- var Yf = { get paint() {
6789
+ var Qf = { get paint() {
6790
6790
  return td = td || new o({ "background-color": new qe(he.paint_background["background-color"]), "background-pattern": new t(he.paint_background["background-pattern"]), "background-opacity": new qe(he.paint_background["background-opacity"]) });
6791
6791
  } };
6792
- class Qf extends h {
6792
+ class em extends h {
6793
6793
  constructor(e) {
6794
- super(e, Yf);
6794
+ super(e, Qf);
6795
6795
  }
6796
6796
  }
6797
6797
  let id;
6798
- var em = { get paint() {
6798
+ var tm = { get paint() {
6799
6799
  return id = id || new o({ "raster-opacity": new qe(he.paint_raster["raster-opacity"]), "raster-hue-rotate": new qe(he.paint_raster["raster-hue-rotate"]), "raster-brightness-min": new qe(he.paint_raster["raster-brightness-min"]), "raster-brightness-max": new qe(he.paint_raster["raster-brightness-max"]), "raster-saturation": new qe(he.paint_raster["raster-saturation"]), "raster-contrast": new qe(he.paint_raster["raster-contrast"]), "raster-resampling": new qe(he.paint_raster["raster-resampling"]), "raster-fade-duration": new qe(he.paint_raster["raster-fade-duration"]) });
6800
6800
  } };
6801
- class tm extends h {
6801
+ class im extends h {
6802
6802
  constructor(e) {
6803
- super(e, em);
6803
+ super(e, tm);
6804
6804
  }
6805
6805
  }
6806
- class im extends h {
6806
+ class rm extends h {
6807
6807
  constructor(e) {
6808
6808
  super(e, {}), this.onAdd = (r) => {
6809
6809
  this.implementation.onAdd && this.implementation.onAdd(r, r.painter.context.gl);
@@ -6828,7 +6828,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6828
6828
  throw new Error("Custom layers cannot be serialized");
6829
6829
  }
6830
6830
  }
6831
- class rm {
6831
+ class nm {
6832
6832
  constructor(e) {
6833
6833
  this._methodToThrottle = e, this._triggered = !1, typeof MessageChannel < "u" && (this._channel = new MessageChannel(), this._channel.port2.onmessage = () => {
6834
6834
  this._triggered = !1, this._methodToThrottle();
@@ -7125,11 +7125,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7125
7125
  if (ie.length > 2) {
7126
7126
  for (const Ce of Ee) if (Co(ie, Ce)) return !0;
7127
7127
  }
7128
- for (let Ce = 0; Ce < ie.length - 1; Ce++) if (Fp(ie[Ce], ie[Ce + 1], Ee)) return !0;
7128
+ for (let Ce = 0; Ce < ie.length - 1; Ce++) if (Bp(ie[Ce], ie[Ce + 1], Ee)) return !0;
7129
7129
  return !1;
7130
7130
  }(e.cameraQueryGeometry, $ - x, W - x, se + x, Y + x));
7131
7131
  for (const $ of M) I.push($);
7132
- I.sort(nm);
7132
+ I.sort(sm);
7133
7133
  const R = {};
7134
7134
  let B;
7135
7135
  for (let $ = 0; $ < I.length; $++) {
@@ -7198,7 +7198,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7198
7198
  for (const d of i) e = Math.min(e, d.x), r = Math.min(r, d.y), s = Math.max(s, d.x), l = Math.max(l, d.y);
7199
7199
  return { minX: e, minY: r, maxX: s, maxY: l };
7200
7200
  }
7201
- function nm(i, e) {
7201
+ function sm(i, e) {
7202
7202
  return e - i;
7203
7203
  }
7204
7204
  function gd(i, e, r, s, l) {
@@ -7253,7 +7253,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7253
7253
  function vd(i, e) {
7254
7254
  return Math.max(i ? i.right - i.left : 0, e ? e.right - e.left : 0);
7255
7255
  }
7256
- function sm(i, e, r, s, l, d) {
7256
+ function om(i, e, r, s, l, d) {
7257
7257
  const p = xd(r, l, d), f = vd(r, s) * d;
7258
7258
  let g = 0;
7259
7259
  const x = yd(i) / 2;
@@ -7266,7 +7266,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7266
7266
  g += M;
7267
7267
  }
7268
7268
  }
7269
- function om(i, e, r, s, l, d, p, f, g) {
7269
+ function am(i, e, r, s, l, d, p, f, g) {
7270
7270
  const x = xd(s, d, p), w = vd(s, l), I = w * p, C = i[0].x === 0 || i[0].x === g || i[0].y === 0 || i[0].y === g;
7271
7271
  return e - I < e / 4 && (e = I + e / 4), bd(i, C ? e / 2 * f % e : (w / 2 + 2 * d) * p * f % e, e, x, r, I, C, !1, g);
7272
7272
  }
@@ -7357,7 +7357,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7357
7357
  this.boxEndIndex = e.length;
7358
7358
  }
7359
7359
  }
7360
- class am {
7360
+ class lm {
7361
7361
  constructor(e = [], r = (s, l) => s < l ? -1 : s > l ? 1 : 0) {
7362
7362
  if (this.data = e, this.length = this.data.length, this.compare = r, this.length > 0) for (let s = (this.length >> 1) - 1; s >= 0; s--) this._down(s);
7363
7363
  }
@@ -7392,7 +7392,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7392
7392
  r[e] = d;
7393
7393
  }
7394
7394
  }
7395
- function lm(i, e = 1, r = !1) {
7395
+ function cm(i, e = 1, r = !1) {
7396
7396
  let s = 1 / 0, l = 1 / 0, d = -1 / 0, p = -1 / 0;
7397
7397
  const f = i[0];
7398
7398
  for (let M = 0; M < f.length; M++) {
@@ -7401,7 +7401,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7401
7401
  }
7402
7402
  const g = Math.min(d - s, p - l);
7403
7403
  let x = g / 2;
7404
- const w = new am([], cm);
7404
+ const w = new lm([], hm);
7405
7405
  if (g === 0) return new ae(s, l);
7406
7406
  for (let M = s; M < d; M += g) for (let R = l; R < p; R += g) w.push(new Bo(M + x, R + x, x, i));
7407
7407
  let I = function(M) {
@@ -7419,7 +7419,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7419
7419
  }
7420
7420
  return r && (console.log(`num probes: ${C}`), console.log(`best distance: ${I.d}`)), I.p;
7421
7421
  }
7422
- function cm(i, e) {
7422
+ function hm(i, e) {
7423
7423
  return e.max - i.max;
7424
7424
  }
7425
7425
  function Bo(i, e, r, s) {
@@ -7535,7 +7535,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7535
7535
  }
7536
7536
  return "center";
7537
7537
  }
7538
- function hm(i, e, r, s, l, d, p, f, g, x, w) {
7538
+ function um(i, e, r, s, l, d, p, f, g, x, w) {
7539
7539
  let I = d.textMaxSize.evaluate(e, {});
7540
7540
  I === void 0 && (I = p);
7541
7541
  const C = i.layers[0].layout, M = C.get("icon-offset").evaluate(e, {}, w), R = Ad(r.horizontal), B = p / 24, $ = i.tilePixelRatio * B, W = i.tilePixelRatio * I / 24, se = i.tilePixelRatio * f, Y = i.tilePixelRatio * C.get("symbol-spacing"), ie = C.get("text-padding") * i.tilePixelRatio, ue = function(fe, Ze, Ue, et = 1) {
@@ -7555,52 +7555,52 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7555
7555
  pr = new uc(Ri, et, Fi, Bi, Xt, Ct.vertical, li, Ci, wi, ki), bi && (hi = new uc(Ri, et, Fi, Bi, Xt, bi, Si, dr, wi, ki));
7556
7556
  }
7557
7557
  if (ai) {
7558
- const ki = Wt.layout.get("icon-rotate").evaluate(Lt, {}), fr = Wt.layout.get("icon-text-fit") !== "none", Os = wd(ai, ki, Ki, fr), jr = bi ? wd(bi, ki, Ki, fr) : void 0;
7558
+ const ki = Wt.layout.get("icon-rotate").evaluate(Lt, {}), fr = Wt.layout.get("icon-text-fit") !== "none", Os = wd(ai, ki, Ki, fr), Nr = bi ? wd(bi, ki, Ki, fr) : void 0;
7559
7559
  Ar = new uc(Ri, et, Fi, Bi, Xt, ai, Si, dr, !1, ki), Cn = 4 * Os.length;
7560
7560
  const Vs = Ue.iconSizeData;
7561
7561
  let ln = null;
7562
- Vs.kind === "source" ? (ln = [sn * Wt.layout.get("icon-size").evaluate(Lt, {})], ln[0] > es && ui(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${Ya}. Reduce your "icon-size".`)) : Vs.kind === "composite" && (ln = [sn * Nt.compositeIconSizes[0].evaluate(Lt, {}, Ht), sn * Nt.compositeIconSizes[1].evaluate(Lt, {}, Ht)], (ln[0] > es || ln[1] > es) && ui(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${Ya}. Reduce your "icon-size".`)), Ue.addSymbols(Ue.icon, Os, ln, _t, Hi, Lt, S.ai.none, et, on.lineStartIndex, on.lineLength, -1, Ht), zh = Ue.icon.placedSymbolArray.length - 1, jr && (il = 4 * jr.length, Ue.addSymbols(Ue.icon, jr, ln, _t, Hi, Lt, S.ai.vertical, et, on.lineStartIndex, on.lineLength, -1, Ht), Dh = Ue.icon.placedSymbolArray.length - 1);
7562
+ Vs.kind === "source" ? (ln = [sn * Wt.layout.get("icon-size").evaluate(Lt, {})], ln[0] > es && ui(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${Ya}. Reduce your "icon-size".`)) : Vs.kind === "composite" && (ln = [sn * Nt.compositeIconSizes[0].evaluate(Lt, {}, Ht), sn * Nt.compositeIconSizes[1].evaluate(Lt, {}, Ht)], (ln[0] > es || ln[1] > es) && ui(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${Ya}. Reduce your "icon-size".`)), Ue.addSymbols(Ue.icon, Os, ln, _t, Hi, Lt, S.ai.none, et, on.lineStartIndex, on.lineLength, -1, Ht), zh = Ue.icon.placedSymbolArray.length - 1, Nr && (il = 4 * Nr.length, Ue.addSymbols(Ue.icon, Nr, ln, _t, Hi, Lt, S.ai.vertical, et, on.lineStartIndex, on.lineLength, -1, Ht), Dh = Ue.icon.placedSymbolArray.length - 1);
7563
7563
  }
7564
7564
  const Ld = Object.keys(Ct.horizontal);
7565
7565
  for (const ki of Ld) {
7566
7566
  const fr = Ct.horizontal[ki];
7567
7567
  if (!an) {
7568
7568
  Dd = Po(fr.text);
7569
- const jr = Wt.layout.get("text-rotate").evaluate(Lt, {}, Ht);
7570
- an = new uc(Ri, et, Fi, Bi, Xt, fr, li, Ci, wi, jr);
7569
+ const Nr = Wt.layout.get("text-rotate").evaluate(Lt, {}, Ht);
7570
+ an = new uc(Ri, et, Fi, Bi, Xt, fr, li, Ci, wi, Nr);
7571
7571
  }
7572
7572
  const Os = fr.positionedLines.length === 1;
7573
7573
  if (Md += Pd(Ue, et, fr, Pr, Wt, wi, Lt, Oi, on, Ct.vertical ? S.ai.horizontal : S.ai.horizontalOnly, Os ? Ld : [ki], kn, zh, Nt, Ht), Os) break;
7574
7574
  }
7575
7575
  Ct.vertical && (zd += Pd(Ue, et, Ct.vertical, Pr, Wt, wi, Lt, Oi, on, S.ai.vertical, ["vertical"], kn, Dh, Nt, Ht));
7576
- const pm = an ? an.boxStartIndex : Ue.collisionBoxArray.length, fm = an ? an.boxEndIndex : Ue.collisionBoxArray.length, mm = pr ? pr.boxStartIndex : Ue.collisionBoxArray.length, gm = pr ? pr.boxEndIndex : Ue.collisionBoxArray.length, _m = Ar ? Ar.boxStartIndex : Ue.collisionBoxArray.length, ym = Ar ? Ar.boxEndIndex : Ue.collisionBoxArray.length, xm = hi ? hi.boxStartIndex : Ue.collisionBoxArray.length, vm = hi ? hi.boxEndIndex : Ue.collisionBoxArray.length;
7577
- let Nr = -1;
7576
+ const fm = an ? an.boxStartIndex : Ue.collisionBoxArray.length, mm = an ? an.boxEndIndex : Ue.collisionBoxArray.length, gm = pr ? pr.boxStartIndex : Ue.collisionBoxArray.length, _m = pr ? pr.boxEndIndex : Ue.collisionBoxArray.length, ym = Ar ? Ar.boxStartIndex : Ue.collisionBoxArray.length, xm = Ar ? Ar.boxEndIndex : Ue.collisionBoxArray.length, vm = hi ? hi.boxStartIndex : Ue.collisionBoxArray.length, bm = hi ? hi.boxEndIndex : Ue.collisionBoxArray.length;
7577
+ let Vr = -1;
7578
7578
  const pc = (ki, fr) => ki && ki.circleDiameter ? Math.max(ki.circleDiameter, fr) : fr;
7579
- Nr = pc(an, Nr), Nr = pc(pr, Nr), Nr = pc(Ar, Nr), Nr = pc(hi, Nr);
7580
- const Rd = Nr > -1 ? 1 : 0;
7581
- Rd && (Nr *= Oo / ni), Ue.glyphOffsetArray.length >= Ro.MAX_GLYPHS && ui("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Lt.sortKey !== void 0 && Ue.addToSortKeyRanges(Ue.symbolInstances.length, Lt.sortKey);
7582
- const bm = Id(Wt, Lt, Ht), [wm, Sm] = function(ki, fr) {
7583
- const Os = ki.length, jr = fr == null ? void 0 : fr.values;
7584
- if ((jr == null ? void 0 : jr.length) > 0) for (let Vs = 0; Vs < jr.length; Vs += 2) {
7585
- const ln = jr[Vs + 1];
7586
- ki.emplaceBack(S.ar[jr[Vs]], ln[0], ln[1]);
7579
+ Vr = pc(an, Vr), Vr = pc(pr, Vr), Vr = pc(Ar, Vr), Vr = pc(hi, Vr);
7580
+ const Rd = Vr > -1 ? 1 : 0;
7581
+ Rd && (Vr *= Oo / ni), Ue.glyphOffsetArray.length >= Ro.MAX_GLYPHS && ui("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Lt.sortKey !== void 0 && Ue.addToSortKeyRanges(Ue.symbolInstances.length, Lt.sortKey);
7582
+ const wm = Id(Wt, Lt, Ht), [Sm, Tm] = function(ki, fr) {
7583
+ const Os = ki.length, Nr = fr == null ? void 0 : fr.values;
7584
+ if ((Nr == null ? void 0 : Nr.length) > 0) for (let Vs = 0; Vs < Nr.length; Vs += 2) {
7585
+ const ln = Nr[Vs + 1];
7586
+ ki.emplaceBack(S.ar[Nr[Vs]], ln[0], ln[1]);
7587
7587
  }
7588
7588
  return [Os, ki.length];
7589
- }(Ue.textAnchorOffsets, bm);
7590
- Ue.symbolInstances.emplaceBack(et.x, et.y, kn.right >= 0 ? kn.right : -1, kn.center >= 0 ? kn.center : -1, kn.left >= 0 ? kn.left : -1, kn.vertical || -1, zh, Dh, Dd, pm, fm, mm, gm, _m, ym, xm, vm, Fi, Md, zd, Cn, il, Rd, 0, li, Nr, wm, Sm);
7589
+ }(Ue.textAnchorOffsets, wm);
7590
+ Ue.symbolInstances.emplaceBack(et.x, et.y, kn.right >= 0 ? kn.right : -1, kn.center >= 0 ? kn.center : -1, kn.left >= 0 ? kn.left : -1, kn.vertical || -1, zh, Dh, Dd, fm, mm, gm, _m, ym, xm, vm, bm, Fi, Md, zd, Cn, il, Rd, 0, li, Vr, Sm, Tm);
7591
7591
  }(i, Ze, fe, r, s, l, Oe, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, $, [ie, ie, ie, ie], De, g, se, ue, We, M, e, d, x, w, p);
7592
7592
  };
7593
7593
  if (Ee === "line") for (const fe of gd(e.geometry, 0, 0, ti, ti)) {
7594
- const Ze = om(fe, Y, ye, r.vertical || R, s, 24, W, i.overscaling, ti);
7595
- for (const Ue of Ze) R && um(i, R.text, Ce, Ue) || Re(fe, Ue);
7594
+ const Ze = am(fe, Y, ye, r.vertical || R, s, 24, W, i.overscaling, ti);
7595
+ for (const Ue of Ze) R && dm(i, R.text, Ce, Ue) || Re(fe, Ue);
7596
7596
  }
7597
7597
  else if (Ee === "line-center") {
7598
7598
  for (const fe of e.geometry) if (fe.length > 1) {
7599
- const Ze = sm(fe, ye, r.vertical || R, s, 24, W);
7599
+ const Ze = om(fe, ye, r.vertical || R, s, 24, W);
7600
7600
  Ze && Re(fe, Ze);
7601
7601
  }
7602
7602
  } else if (e.type === "Polygon") for (const fe of io(e.geometry, 0)) {
7603
- const Ze = lm(fe, 16);
7603
+ const Ze = cm(fe, 16);
7604
7604
  Re(fe[0], new is(Ze.x, Ze.y, 0));
7605
7605
  }
7606
7606
  else if (e.type === "LineString") for (const fe of e.geometry) Re(fe, new is(fe[0].x, fe[0].y, 0));
@@ -7644,7 +7644,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7644
7644
  for (const e in i) return i[e];
7645
7645
  return null;
7646
7646
  }
7647
- function um(i, e, r, s) {
7647
+ function dm(i, e, r, s) {
7648
7648
  const l = i.compareText;
7649
7649
  if (e in l) {
7650
7650
  const d = l[e];
@@ -7747,7 +7747,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7747
7747
  var Ch;
7748
7748
  S.bf = void 0, (Ch = S.bf || (S.bf = {})).create = "create", Ch.load = "load", Ch.fullLoad = "fullLoad";
7749
7749
  let dc = null, tl = [];
7750
- const kh = 1e3 / 60, Eh = "loadTime", Mh = "fullLoadTime", dm = { mark(i) {
7750
+ const kh = 1e3 / 60, Eh = "loadTime", Mh = "fullLoadTime", pm = { mark(i) {
7751
7751
  performance.mark(i);
7752
7752
  }, frame(i) {
7753
7753
  const e = i;
@@ -7769,11 +7769,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7769
7769
  return Mn;
7770
7770
  }, S.D = qe, S.E = Ln, S.F = class {
7771
7771
  constructor(i, e) {
7772
- this.target = i, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new rm(() => this.process()), this.subscription = function(r, s, l, d) {
7772
+ this.target = i, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new nm(() => this.process()), this.subscription = function(r, s, l, d) {
7773
7773
  return r.addEventListener(s, l, !1), { unsubscribe: () => {
7774
7774
  r.removeEventListener(s, l, !1);
7775
7775
  } };
7776
- }(this.target, "message", (r) => this.receive(r)), this.globalScope = Er(self) ? i : window;
7776
+ }(this.target, "message", (r) => this.receive(r)), this.globalScope = kr(self) ? i : window;
7777
7777
  }
7778
7778
  registerMessageHandler(i, e) {
7779
7779
  this.messageHandlers[i] = e;
@@ -7798,7 +7798,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7798
7798
  const s = this.abortControllers[r];
7799
7799
  return delete this.abortControllers[r], void (s && s.abort());
7800
7800
  }
7801
- if (Er(self) || e.mustQueue) return this.tasks[r] = e, this.taskQueue.push(r), void this.invoker.trigger();
7801
+ if (kr(self) || e.mustQueue) return this.tasks[r] = e, this.taskQueue.push(r), void this.invoker.trigger();
7802
7802
  this.processTask(r, e);
7803
7803
  }
7804
7804
  }
@@ -7872,24 +7872,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7872
7872
  for (let r = 0; r < i.length; r++) "ref" in i[r] && (i[r] = os(i[r], e[i[r].ref]));
7873
7873
  return i;
7874
7874
  }, S.aB = function(i) {
7875
- if (i.type === "custom") return new im(i);
7875
+ if (i.type === "custom") return new rm(i);
7876
7876
  switch (i.type) {
7877
7877
  case "background":
7878
- return new Qf(i);
7878
+ return new em(i);
7879
7879
  case "circle":
7880
- return new Vp(i);
7880
+ return new Np(i);
7881
7881
  case "fill":
7882
- return new rf(i);
7882
+ return new nf(i);
7883
7883
  case "fill-extrusion":
7884
- return new yf(i);
7884
+ return new xf(i);
7885
7885
  case "heatmap":
7886
- return new jp(i);
7886
+ return new Up(i);
7887
7887
  case "hillshade":
7888
- return new $p(i);
7888
+ return new qp(i);
7889
7889
  case "line":
7890
- return new Pf(i);
7890
+ return new Af(i);
7891
7891
  case "raster":
7892
- return new tm(i);
7892
+ return new im(i);
7893
7893
  case "symbol":
7894
7894
  return new oc(i);
7895
7895
  }
@@ -7903,7 +7903,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7903
7903
  (function(p, f, g, x) {
7904
7904
  let w;
7905
7905
  for (w in f = f || {}, p = p || {}) Object.prototype.hasOwnProperty.call(p, w) && (Object.prototype.hasOwnProperty.call(f, w) || Hr(w, g, x));
7906
- for (w in f) Object.prototype.hasOwnProperty.call(f, w) && (Object.prototype.hasOwnProperty.call(p, w) ? xt(p[w], f[w]) || (p[w].type === "geojson" && f[w].type === "geojson" && Rn(p, f, w) ? Zt(g, { command: "setGeoJSONSourceData", args: [w, f[w].data] }) : Dr(w, f, g, x)) : as(w, f, g));
7906
+ for (w in f) Object.prototype.hasOwnProperty.call(f, w) && (Object.prototype.hasOwnProperty.call(p, w) ? xt(p[w], f[w]) || (p[w].type === "geojson" && f[w].type === "geojson" && Rn(p, f, w) ? Zt(g, { command: "setGeoJSONSourceData", args: [w, f[w].data] }) : zr(w, f, g, x)) : as(w, f, g));
7907
7907
  })(i.sources, e.sources, l, s);
7908
7908
  const d = [];
7909
7909
  i.layers && i.layers.forEach((p) => {
@@ -7947,7 +7947,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7947
7947
  }
7948
7948
  }, S.aJ = Hl, S.aK = class extends Ds {
7949
7949
  constructor(i, e) {
7950
- super(i, e), this.current = Mp;
7950
+ super(i, e), this.current = zp;
7951
7951
  }
7952
7952
  set(i) {
7953
7953
  if (i[12] !== this.current[12] || i[0] !== this.current[0]) return this.current = i, void this.gl.uniformMatrix4fv(this.location, !1, i);
@@ -7956,7 +7956,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7956
7956
  break;
7957
7957
  }
7958
7958
  }
7959
- }, S.aL = Qh, S.aM = eu, S.aN = It, S.aO = class extends Ds {
7959
+ }, S.aL = Qh, S.aM = eu, S.aN = Tt, S.aO = class extends Ds {
7960
7960
  constructor(i, e) {
7961
7961
  super(i, e), this.current = [0, 0, 0];
7962
7962
  }
@@ -7973,8 +7973,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7973
7973
  }, S.aQ = function(i, e, r, s, l, d, p) {
7974
7974
  var f = 1 / (e - r), g = 1 / (s - l), x = 1 / (d - p);
7975
7975
  return i[0] = -2 * f, i[1] = 0, i[2] = 0, i[3] = 0, i[4] = 0, i[5] = -2 * g, i[6] = 0, i[7] = 0, i[8] = 0, i[9] = 0, i[10] = 2 * x, i[11] = 0, i[12] = (e + r) * f, i[13] = (l + s) * g, i[14] = (p + d) * x, i[15] = 1, i;
7976
- }, S.aR = Op, S.aS = class extends me {
7977
- }, S.aT = Ef, S.aU = class extends ze {
7976
+ }, S.aR = Vp, S.aS = class extends me {
7977
+ }, S.aT = Mf, S.aU = class extends ze {
7978
7978
  }, S.aV = function(i) {
7979
7979
  return i <= 1 ? 1 : Math.pow(2, Math.ceil(Math.log(i) / Math.LN2));
7980
7980
  }, S.aW = mu, S.aX = Tn, S.aY = oi, S.aZ = class extends ke {
@@ -8051,7 +8051,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8051
8051
  }, S.bb = function(i, e) {
8052
8052
  return i[0] = e[0], i[1] = 0, i[2] = 0, i[3] = 0, i[4] = 0, i[5] = e[1], i[6] = 0, i[7] = 0, i[8] = 0, i[9] = 0, i[10] = e[2], i[11] = 0, i[12] = 0, i[13] = 0, i[14] = 0, i[15] = 1, i;
8053
8053
  }, S.bc = class extends L {
8054
- }, S.bd = vh, S.be = dm, S.bg = Vi, S.bh = function(i, e) {
8054
+ }, S.bd = vh, S.be = pm, S.bg = Vi, S.bh = function(i, e) {
8055
8055
  qr.REGISTERED_PROTOCOLS[i] = e;
8056
8056
  }, S.bi = function(i) {
8057
8057
  delete qr.REGISTERED_PROTOCOLS[i];
@@ -8111,10 +8111,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8111
8111
  let se = !1;
8112
8112
  if (x.icon && x.icon.name) {
8113
8113
  const ie = i.imageMap[x.icon.name];
8114
- ie && ($ = Wf(i.imagePositions[x.icon.name], r.get("icon-offset").evaluate(x, {}, i.canonical), r.get("icon-anchor").evaluate(x, {}, i.canonical)), se = !!ie.sdf, i.bucket.sdfIcons === void 0 ? i.bucket.sdfIcons = se : i.bucket.sdfIcons !== se && ui("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (ie.pixelRatio !== i.bucket.pixelRatio || r.get("icon-rotate").constantOr(1) !== 0) && (i.bucket.iconsNeedLinear = !0));
8114
+ ie && ($ = Xf(i.imagePositions[x.icon.name], r.get("icon-offset").evaluate(x, {}, i.canonical), r.get("icon-anchor").evaluate(x, {}, i.canonical)), se = !!ie.sdf, i.bucket.sdfIcons === void 0 ? i.bucket.sdfIcons = se : i.bucket.sdfIcons !== se && ui("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (ie.pixelRatio !== i.bucket.pixelRatio || r.get("icon-rotate").constantOr(1) !== 0) && (i.bucket.iconsNeedLinear = !0));
8115
8115
  }
8116
8116
  const Y = Ad(R.horizontal) || R.vertical;
8117
- i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || $) && hm(i.bucket, x, R, $, i.imageMap, l, C, M, W, se, i.canonical);
8117
+ i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || $) && um(i.bucket, x, R, $, i.imageMap, l, C, M, W, se, i.canonical);
8118
8118
  }
8119
8119
  i.showCollisionBoxes && i.bucket.generateCollisionDebugBuffers();
8120
8120
  }, S.bp = lh, S.bq = sh, S.br = ah, S.bs = Yn, S.bt = hh, S.bu = class {
@@ -8134,7 +8134,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8134
8134
  }
8135
8135
  return function(d, p, f, g, x) {
8136
8136
  const w = d.width, I = d.height;
8137
- Mr && Ei || (Mr = new OffscreenCanvas(w, I), Ei = Mr.getContext("2d", { willReadFrequently: !0 })), Mr.width = w, Mr.height = I, Ei.drawImage(d, 0, 0, w, I);
8137
+ Er && Ei || (Er = new OffscreenCanvas(w, I), Ei = Er.getContext("2d", { willReadFrequently: !0 })), Er.width = w, Er.height = I, Ei.drawImage(d, 0, 0, w, I);
8138
8138
  const C = Ei.getImageData(p, f, g, x);
8139
8139
  return Ei.clearRect(0, 0, w, I), C.data;
8140
8140
  }(i, e, r, s, l);
@@ -8156,9 +8156,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8156
8156
  }, s.onerror = () => r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
8157
8157
  const l = new Blob([new Uint8Array(i)], { type: "image/png" });
8158
8158
  s.src = i.byteLength ? URL.createObjectURL(l) : qs;
8159
- }), S.g = _r, S.h = (i, e) => un(Pt(i, { type: "json" }), e), S.i = Er, S.j = Gr, S.k = Zr, S.l = (i, e) => un(Pt(i, { type: "arrayBuffer" }), e), S.m = un, S.n = function(i) {
8160
- return new hh(i).readFields(jf, []);
8161
- }, S.o = $a, S.p = $u, S.q = o, S.r = Uc, S.s = dn, S.t = ka, S.u = Me, S.v = he, S.w = ui, S.x = Or, S.y = function([i, e, r]) {
8159
+ }), S.g = _r, S.h = (i, e) => un(Pt(i, { type: "json" }), e), S.i = kr, S.j = Gr, S.k = Zr, S.l = (i, e) => un(Pt(i, { type: "arrayBuffer" }), e), S.m = un, S.n = function(i) {
8160
+ return new hh(i).readFields(Uf, []);
8161
+ }, S.o = $a, S.p = $u, S.q = o, S.r = Uc, S.s = dn, S.t = ka, S.u = Me, S.v = he, S.w = ui, S.x = Br, S.y = function([i, e, r]) {
8162
8162
  return e += 90, e *= Math.PI / 180, r *= Math.PI / 180, { x: i * Math.cos(e) * Math.sin(r), y: i * Math.sin(e) * Math.sin(r), z: i * Math.cos(r) };
8163
8163
  }, S.z = $i;
8164
8164
  }), N("worker", ["./shared"], function(S) {
@@ -8227,17 +8227,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8227
8227
  te.bucketLayerIDs = [];
8228
8228
  const re = {}, X = { featureIndex: te, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, availableImages: O }, de = k.familiesBySource[this.source];
8229
8229
  for (const lt in de) {
8230
- const Tt = E.layers[lt];
8231
- if (!Tt) continue;
8232
- Tt.version === 1 && S.w(`Vector tile source "${this.source}" layer "${lt}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
8230
+ const St = E.layers[lt];
8231
+ if (!St) continue;
8232
+ St.version === 1 && S.w(`Vector tile source "${this.source}" layer "${lt}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
8233
8233
  const jt = Q.encode(lt), ii = [];
8234
- for (let di = 0; di < Tt.length; di++) {
8235
- const pi = Tt.feature(di), hs = te.getId(pi, lt);
8234
+ for (let di = 0; di < St.length; di++) {
8235
+ const pi = St.feature(di), hs = te.getId(pi, lt);
8236
8236
  ii.push({ feature: pi, id: hs, index: di, sourceLayerIndex: jt });
8237
8237
  }
8238
8238
  for (const di of de[lt]) {
8239
8239
  const pi = di[0];
8240
- pi.source !== this.source && S.w(`layer.source = ${pi.source} does not equal this.source = ${this.source}`), pi.minzoom && this.zoom < Math.floor(pi.minzoom) || pi.maxzoom && this.zoom >= pi.maxzoom || pi.visibility !== "none" && (we(di, this.zoom, O), (re[pi.id] = pi.createBucket({ index: te.bucketLayerIDs.length, layers: di, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: jt, sourceID: this.source })).populate(ii, X, this.tileID.canonical), te.bucketLayerIDs.push(di.map((hs) => hs.id)));
8240
+ pi.source !== this.source && S.w(`layer.source = ${pi.source} does not equal this.source = ${this.source}`), pi.minzoom && this.zoom < Math.floor(pi.minzoom) || pi.maxzoom && this.zoom >= pi.maxzoom || pi.visibility !== "none" && (ve(di, this.zoom, O), (re[pi.id] = pi.createBucket({ index: te.bucketLayerIDs.length, layers: di, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: jt, sourceID: this.source })).populate(ii, X, this.tileID.canonical), te.bucketLayerIDs.push(di.map((hs) => hs.id)));
8241
8241
  }
8242
8242
  }
8243
8243
  const ge = S.aG(X.glyphDependencies, (lt) => Object.keys(lt).map(Number));
@@ -8261,14 +8261,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8261
8261
  }
8262
8262
  const [mt, nt, Mt] = yield Promise.all([ce, Ge, st]), Gt = new xe(mt), Qt = new S.bn(nt, Mt);
8263
8263
  for (const lt in re) {
8264
- const Tt = re[lt];
8265
- Tt instanceof S.a6 ? (we(Tt.layers, this.zoom, O), S.bo({ bucket: Tt, glyphMap: mt, glyphPositions: Gt.positions, imageMap: nt, imagePositions: Qt.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : Tt.hasPattern && (Tt instanceof S.bp || Tt instanceof S.bq || Tt instanceof S.br) && (we(Tt.layers, this.zoom, O), Tt.addFeatures(X, this.tileID.canonical, Qt.patternPositions));
8264
+ const St = re[lt];
8265
+ St instanceof S.a6 ? (ve(St.layers, this.zoom, O), S.bo({ bucket: St, glyphMap: mt, glyphPositions: Gt.positions, imageMap: nt, imagePositions: Qt.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : St.hasPattern && (St instanceof S.bp || St instanceof S.bq || St instanceof S.br) && (ve(St.layers, this.zoom, O), St.addFeatures(X, this.tileID.canonical, Qt.patternPositions));
8266
8266
  }
8267
8267
  return this.status = "done", { buckets: Object.values(re).filter((lt) => !lt.isEmpty()), featureIndex: te, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Gt.image, imageAtlas: Qt, glyphMap: this.returnDependencies ? mt : null, iconMap: this.returnDependencies ? nt : null, glyphPositions: this.returnDependencies ? Gt.positions : null };
8268
8268
  });
8269
8269
  }
8270
8270
  }
8271
- function we(G, E, k) {
8271
+ function ve(G, E, k) {
8272
8272
  const O = new S.a9(E);
8273
8273
  for (const q of G) q.recalculate(O, k);
8274
8274
  }
@@ -8429,7 +8429,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8429
8429
  }
8430
8430
  function bt(G, E) {
8431
8431
  var k = G.feature;
8432
- k.id !== void 0 && E.writeVarintField(1, k.id), E.writeMessage(2, En, G), E.writeVarintField(3, k.type), E.writeMessage(4, Er, k);
8432
+ k.id !== void 0 && E.writeVarintField(1, k.id), E.writeMessage(2, En, G), E.writeVarintField(3, k.type), E.writeMessage(4, kr, k);
8433
8433
  }
8434
8434
  function En(G, E) {
8435
8435
  var k = G.feature, O = G.keys, q = G.values, Q = G.keycache, te = G.valuecache;
@@ -8450,7 +8450,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8450
8450
  function Ti(G) {
8451
8451
  return G << 1 ^ G >> 31;
8452
8452
  }
8453
- function Er(G, E) {
8453
+ function kr(G, E) {
8454
8454
  for (var k = G.loadGeometry(), O = G.type, q = 0, Q = 0, te = k.length, re = 0; re < te; re++) {
8455
8455
  var X = k[re], de = 1;
8456
8456
  O === 1 && (de = X.length), E.writeVarint(ui(1, de));
@@ -8473,8 +8473,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8473
8473
  return si({ layers: k });
8474
8474
  }, ct.exports.GeoJSONWrapper = er;
8475
8475
  var gr = S.bx(ct.exports);
8476
- const qs = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (G) => G }, hn = Math.fround || (Mr = new Float32Array(1), (G) => (Mr[0] = +G, Mr[0]));
8477
- var Mr;
8476
+ const qs = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (G) => G }, hn = Math.fround || (Er = new Float32Array(1), (G) => (Er[0] = +G, Er[0]));
8477
+ var Er;
8478
8478
  const Ei = 3, ir = 5, zn = 6;
8479
8479
  class qr {
8480
8480
  constructor(E) {
@@ -8593,8 +8593,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8593
8593
  if (mt > st && mt >= te) {
8594
8594
  let nt, Mt = Ie * st, Gt = Ge * st, Qt = -1;
8595
8595
  const lt = ((ce / ge | 0) << 5) + (k + 1) + this.points.length;
8596
- for (const Tt of He) {
8597
- const jt = Tt * ge;
8596
+ for (const St of He) {
8597
+ const jt = St * ge;
8598
8598
  if (X[jt + 2] <= k) continue;
8599
8599
  X[jt + 2] = k;
8600
8600
  const ii = X[jt + ir];
@@ -8671,7 +8671,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8671
8671
  }
8672
8672
  return te = G - k, re = E - O, te * te + re * re;
8673
8673
  }
8674
- function zr(G, E, k, O) {
8674
+ function Mr(G, E, k, O) {
8675
8675
  const q = { id: G ?? null, type: E, geometry: k, tags: O, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
8676
8676
  if (E === "Point" || E === "MultiPoint" || E === "LineString") Zr(q, k);
8677
8677
  else if (E === "Polygon") Zr(q, k[0]);
@@ -8693,7 +8693,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8693
8693
  else if (Q === "LineString") he(q, re, te, !1);
8694
8694
  else if (Q === "MultiLineString") {
8695
8695
  if (k.lineMetrics) {
8696
- for (const de of q) re = [], he(de, re, te, !1), G.push(zr(X, "LineString", re, E.properties));
8696
+ for (const de of q) re = [], he(de, re, te, !1), G.push(Mr(X, "LineString", re, E.properties));
8697
8697
  return;
8698
8698
  }
8699
8699
  pn(q, re, te, !1);
@@ -8711,7 +8711,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8711
8711
  pn(de, ge, te, !0), re.push(ge);
8712
8712
  }
8713
8713
  }
8714
- G.push(zr(X, Q, re, E.properties));
8714
+ G.push(Mr(X, Q, re, E.properties));
8715
8715
  }
8716
8716
  function Ln(G, E) {
8717
8717
  E.push(os(G[0]), xt(G[1]), 0);
@@ -8762,10 +8762,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8762
8762
  }
8763
8763
  if (He.length) {
8764
8764
  if (re.lineMetrics && ce === "LineString") {
8765
- for (const st of He) X.push(zr(de.id, ce, st, de.tags));
8765
+ for (const st of He) X.push(Mr(de.id, ce, st, de.tags));
8766
8766
  continue;
8767
8767
  }
8768
- ce !== "LineString" && ce !== "MultiLineString" || (He.length === 1 ? (ce = "LineString", He = He[0]) : ce = "MultiLineString"), ce !== "Point" && ce !== "MultiPoint" || (ce = He.length === 3 ? "Point" : "MultiPoint"), X.push(zr(de.id, ce, He, de.tags));
8768
+ ce !== "LineString" && ce !== "MultiLineString" || (He.length === 1 ? (ce = "LineString", He = He[0]) : ce = "MultiLineString"), ce !== "Point" && ce !== "MultiPoint" || (ce = He.length === 3 ? "Point" : "MultiPoint"), X.push(Mr(de.id, ce, He, de.tags));
8769
8769
  }
8770
8770
  }
8771
8771
  return X.length ? X : null;
@@ -8777,19 +8777,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8777
8777
  }
8778
8778
  }
8779
8779
  function Hr(G, E, k, O, q, Q, te) {
8780
- let re = Dr(G);
8780
+ let re = zr(G);
8781
8781
  const X = q === 0 ? ls : cs;
8782
8782
  let de, ge, ce = G.start;
8783
8783
  for (let mt = 0; mt < G.length - 3; mt += 3) {
8784
- const nt = G[mt], Mt = G[mt + 1], Gt = G[mt + 2], Qt = G[mt + 3], lt = G[mt + 4], Tt = q === 0 ? nt : Mt, jt = q === 0 ? Qt : lt;
8784
+ const nt = G[mt], Mt = G[mt + 1], Gt = G[mt + 2], Qt = G[mt + 3], lt = G[mt + 4], St = q === 0 ? nt : Mt, jt = q === 0 ? Qt : lt;
8785
8785
  let ii = !1;
8786
- te && (de = Math.sqrt(Math.pow(nt - Qt, 2) + Math.pow(Mt - lt, 2))), Tt < k ? jt > k && (ge = X(re, nt, Mt, Qt, lt, k), te && (re.start = ce + de * ge)) : Tt > O ? jt < O && (ge = X(re, nt, Mt, Qt, lt, O), te && (re.start = ce + de * ge)) : Wi(re, nt, Mt, Gt), jt < k && Tt >= k && (ge = X(re, nt, Mt, Qt, lt, k), ii = !0), jt > O && Tt <= O && (ge = X(re, nt, Mt, Qt, lt, O), ii = !0), !Q && ii && (te && (re.end = ce + de * ge), E.push(re), re = Dr(G)), te && (ce += de);
8786
+ te && (de = Math.sqrt(Math.pow(nt - Qt, 2) + Math.pow(Mt - lt, 2))), St < k ? jt > k && (ge = X(re, nt, Mt, Qt, lt, k), te && (re.start = ce + de * ge)) : St > O ? jt < O && (ge = X(re, nt, Mt, Qt, lt, O), te && (re.start = ce + de * ge)) : Wi(re, nt, Mt, Gt), jt < k && St >= k && (ge = X(re, nt, Mt, Qt, lt, k), ii = !0), jt > O && St <= O && (ge = X(re, nt, Mt, Qt, lt, O), ii = !0), !Q && ii && (te && (re.end = ce + de * ge), E.push(re), re = zr(G)), te && (ce += de);
8787
8787
  }
8788
8788
  let Ie = G.length - 3;
8789
8789
  const Ge = G[Ie], He = G[Ie + 1], st = q === 0 ? Ge : He;
8790
8790
  st >= k && st <= O && Wi(re, Ge, He, G[Ie + 2]), Ie = re.length - 3, Q && Ie >= 3 && (re[Ie] !== re[0] || re[Ie + 1] !== re[1]) && Wi(re, re[0], re[1], re[2]), re.length && E.push(re);
8791
8791
  }
8792
- function Dr(G) {
8792
+ function zr(G) {
8793
8793
  const E = [];
8794
8794
  return E.size = G.size, E.start = G.start, E.end = G.end, E;
8795
8795
  }
@@ -8824,7 +8824,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8824
8824
  te.push(X);
8825
8825
  }
8826
8826
  }
8827
- k.push(zr(q.id, Q, te, q.tags));
8827
+ k.push(Mr(q.id, Q, te, q.tags));
8828
8828
  }
8829
8829
  return k;
8830
8830
  }
@@ -8935,8 +8935,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8935
8935
  if (Ge.source = null, E.length === 0) continue;
8936
8936
  ge > 1 && console.time("clipping");
8937
8937
  const He = 0.5 * de.buffer / de.extent, st = 0.5 - He, mt = 0.5 + He, nt = 1 + He;
8938
- let Mt = null, Gt = null, Qt = null, lt = null, Tt = Zt(E, ce, O - He, O + mt, 0, Ge.minX, Ge.maxX, de), jt = Zt(E, ce, O + st, O + nt, 0, Ge.minX, Ge.maxX, de);
8939
- E = null, Tt && (Mt = Zt(Tt, ce, q - He, q + mt, 1, Ge.minY, Ge.maxY, de), Gt = Zt(Tt, ce, q + st, q + nt, 1, Ge.minY, Ge.maxY, de), Tt = null), jt && (Qt = Zt(jt, ce, q - He, q + mt, 1, Ge.minY, Ge.maxY, de), lt = Zt(jt, ce, q + st, q + nt, 1, Ge.minY, Ge.maxY, de), jt = null), ge > 1 && console.timeEnd("clipping"), X.push(Mt || [], k + 1, 2 * O, 2 * q), X.push(Gt || [], k + 1, 2 * O, 2 * q + 1), X.push(Qt || [], k + 1, 2 * O + 1, 2 * q), X.push(lt || [], k + 1, 2 * O + 1, 2 * q + 1);
8938
+ let Mt = null, Gt = null, Qt = null, lt = null, St = Zt(E, ce, O - He, O + mt, 0, Ge.minX, Ge.maxX, de), jt = Zt(E, ce, O + st, O + nt, 0, Ge.minX, Ge.maxX, de);
8939
+ E = null, St && (Mt = Zt(St, ce, q - He, q + mt, 1, Ge.minY, Ge.maxY, de), Gt = Zt(St, ce, q + st, q + nt, 1, Ge.minY, Ge.maxY, de), St = null), jt && (Qt = Zt(jt, ce, q - He, q + mt, 1, Ge.minY, Ge.maxY, de), lt = Zt(jt, ce, q + st, q + nt, 1, Ge.minY, Ge.maxY, de), jt = null), ge > 1 && console.timeEnd("clipping"), X.push(Mt || [], k + 1, 2 * O, 2 * q), X.push(Gt || [], k + 1, 2 * O, 2 * q + 1), X.push(Qt || [], k + 1, 2 * O + 1, 2 * q), X.push(lt || [], k + 1, 2 * O + 1, 2 * q + 1);
8940
8940
  }
8941
8941
  }
8942
8942
  getTile(E, k, O) {
@@ -8971,7 +8971,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8971
8971
  }
8972
8972
  return !1;
8973
8973
  }
8974
- function Lr(G, E) {
8974
+ function Dr(G, E) {
8975
8975
  const k = /* @__PURE__ */ new Map();
8976
8976
  if (G != null) if (G.type === "Feature") k.set(rt(G, E), G);
8977
8977
  else for (const O of G.features) k.set(rt(O, E), O);
@@ -9085,11 +9085,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9085
9085
  const { promoteId: O } = E;
9086
9086
  if (E.request) {
9087
9087
  const q = yield S.h(E.request, k);
9088
- return this._dataUpdateable = vr(q.data, O) ? Lr(q.data, O) : void 0, q.data;
9088
+ return this._dataUpdateable = vr(q.data, O) ? Dr(q.data, O) : void 0, q.data;
9089
9089
  }
9090
9090
  if (typeof E.data == "string") try {
9091
9091
  const q = JSON.parse(E.data);
9092
- return this._dataUpdateable = vr(q, O) ? Lr(q, O) : void 0, q;
9092
+ return this._dataUpdateable = vr(q, O) ? Dr(q, O) : void 0, q;
9093
9093
  } catch {
9094
9094
  throw new Error(`Input data given to '${E.source}' is not a valid GeoJSON object.`);
9095
9095
  }
@@ -9212,7 +9212,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9212
9212
  return S.i(self) && (self.worker = new br(self)), br;
9213
9213
  }), N("index", ["exports", "./shared"], function(S, c) {
9214
9214
  var xe = "4.5.2";
9215
- let _e, we;
9215
+ let _e, ve;
9216
9216
  const ae = { now: typeof performance < "u" && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (u) => new Promise((t, n) => {
9217
9217
  const o = requestAnimationFrame(t);
9218
9218
  u.signal.addEventListener("abort", () => {
@@ -9225,7 +9225,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9225
9225
  if (!n) throw new Error("failed to create canvas 2d context");
9226
9226
  return t.width = u.width, t.height = u.height, n.drawImage(u, 0, 0, u.width, u.height), n;
9227
9227
  }, resolveURL: (u) => (_e || (_e = document.createElement("a")), _e.href = u, _e.href), hardwareConcurrency: typeof navigator < "u" && navigator.hardwareConcurrency || 4, get prefersReducedMotion() {
9228
- return !!matchMedia && (we == null && (we = matchMedia("(prefers-reduced-motion: reduce)")), we.matches);
9228
+ return !!matchMedia && (ve == null && (ve = matchMedia("(prefers-reduced-motion: reduce)")), ve.matches);
9229
9229
  } };
9230
9230
  class oe {
9231
9231
  static testProp(t) {
@@ -9544,7 +9544,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9544
9544
  }
9545
9545
  }
9546
9546
  const Ti = 1e20;
9547
- function Er(u, t, n, o, a, h, m, _, v) {
9547
+ function kr(u, t, n, o, a, h, m, _, v) {
9548
9548
  for (let b = t; b < t + o; b++) Mn(u, n * h + b, h, a, m, _, v);
9549
9549
  for (let b = n; b < n + a; b++) Mn(u, b * h + t, 1, o, m, _, v);
9550
9550
  }
@@ -9651,7 +9651,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9651
9651
  H[le] = me > 0 ? me * me : 0, U[le] = me < 0 ? me * me : 0;
9652
9652
  }
9653
9653
  }
9654
- Er(H, 0, 0, b, P, b, this.f, this.v, this.z), Er(U, Z, Z, _, v, b, this.f, this.v, this.z);
9654
+ kr(H, 0, 0, b, P, b, this.f, this.v, this.z), kr(U, Z, Z, _, v, b, this.f, this.v, this.z);
9655
9655
  for (let j = 0; j < A; j++) {
9656
9656
  const ee = Math.sqrt(H[j]) - Math.sqrt(U[j]);
9657
9657
  L[j] = Math.round(255 - 255 * (ee / this.radius + this.cutoff));
@@ -9671,7 +9671,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9671
9671
  }
9672
9672
  }
9673
9673
  let hn;
9674
- class Mr extends c.E {
9674
+ class Er extends c.E {
9675
9675
  constructor(t) {
9676
9676
  super(), hn = hn || new c.q({ anchor: new c.D(c.v.light.anchor), position: new qs(), color: new c.D(c.v.light.color), intensity: new c.D(c.v.light.intensity) }), this._transitionable = new c.T(hn), this.setLight(t), this._transitioning = this._transitionable.untransitioned();
9677
9677
  }
@@ -9854,7 +9854,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9854
9854
  function ss() {
9855
9855
  return rr || (rr = new dn(un(), c.G), rr.registerMessageHandler("GR", (u, t, n) => c.m(t, n))), rr;
9856
9856
  }
9857
- function zr(u, t) {
9857
+ function Mr(u, t) {
9858
9858
  const n = c.H();
9859
9859
  return c.J(n, n, [1, 1, 0]), c.K(n, n, [0.5 * u.width, 0.5 * u.height, 1]), c.L(n, n, u.calculatePosMatrix(t.toUnwrapped()));
9860
9860
  }
@@ -9872,7 +9872,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9872
9872
  }(a && a.layers, t, u.id), _ = h.maxPitchScaleFactor(), v = u.tilesIn(o, _, m);
9873
9873
  v.sort(Gr);
9874
9874
  const b = [];
9875
- for (const A of v) b.push({ wrappedTileID: A.tileID.wrapped().key, queryResults: A.tile.queryRenderedFeatures(t, n, u._state, A.queryGeometry, A.cameraQueryGeometry, A.scale, a, h, _, zr(u.transform, A.tileID)) });
9875
+ for (const A of v) b.push({ wrappedTileID: A.tileID.wrapped().key, queryResults: A.tile.queryRenderedFeatures(t, n, u._state, A.queryGeometry, A.cameraQueryGeometry, A.scale, a, h, _, Mr(u.transform, A.tileID)) });
9876
9876
  const P = function(A) {
9877
9877
  const L = {}, F = {};
9878
9878
  for (const V of A) {
@@ -10282,7 +10282,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10282
10282
  }
10283
10283
  }
10284
10284
  var Hr = c.Y([{ name: "a_pos", type: "Int16", components: 2 }, { name: "a_texture_pos", type: "Int16", components: 2 }]);
10285
- class Dr extends c.E {
10285
+ class zr extends c.E {
10286
10286
  constructor(t, n, o, a) {
10287
10287
  super(), this.id = t, this.dispatcher = o, this.coordinates = n.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.setEventedParent(a), this.options = n;
10288
10288
  }
@@ -10349,7 +10349,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10349
10349
  return !1;
10350
10350
  }
10351
10351
  }
10352
- class Rn extends Dr {
10352
+ class Rn extends zr {
10353
10353
  constructor(t, n, o, a) {
10354
10354
  super(t, n, o, a), this.roundZoom = !0, this.type = "video", this.options = n;
10355
10355
  }
@@ -10406,7 +10406,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10406
10406
  return this.video && !this.video.paused;
10407
10407
  }
10408
10408
  }
10409
- class Wi extends Dr {
10409
+ class Wi extends zr {
10410
10410
  constructor(t, n, o, a) {
10411
10411
  super(t, n, o, a), n.coordinates ? Array.isArray(n.coordinates) && n.coordinates.length === 4 && !n.coordinates.some((h) => !Array.isArray(h) || h.length !== 2 || h.some((m) => typeof m != "number")) || this.fire(new c.j(new c.a2(`sources.${t}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new c.j(new c.a2(`sources.${t}`, null, 'missing required property "coordinates"'))), n.animate && typeof n.animate != "boolean" && this.fire(new c.j(new c.a2(`sources.${t}`, null, 'optional "animate" property must be a boolean value'))), n.canvas ? typeof n.canvas == "string" || n.canvas instanceof HTMLCanvasElement || this.fire(new c.j(new c.a2(`sources.${t}`, null, '"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new c.j(new c.a2(`sources.${t}`, null, 'missing required property "canvas"'))), this.options = n, this.animate = n.animate === void 0 || n.animate;
10412
10412
  }
@@ -10456,7 +10456,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10456
10456
  case "geojson":
10457
10457
  return as;
10458
10458
  case "image":
10459
- return Dr;
10459
+ return zr;
10460
10460
  case "raster":
10461
10461
  return xt;
10462
10462
  case "raster-dem":
@@ -11166,7 +11166,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11166
11166
  let n = !0;
11167
11167
  return u === "always" || u !== "never" && t !== "never" || (n = !1), n;
11168
11168
  }
11169
- class Lr {
11169
+ class Dr {
11170
11170
  constructor(t, n, o) {
11171
11171
  const a = this.boxCells = [], h = this.circleCells = [];
11172
11172
  this.xCellCount = Math.ceil(t / o), this.yCellCount = Math.ceil(n / o);
@@ -11313,19 +11313,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11313
11313
  const j = u.lineVertexArray, ee = o ? u.text.placedSymbolArray : u.icon.placedSymbolArray, ne = n.transform.width / n.transform.height;
11314
11314
  let le = !1;
11315
11315
  for (let me = 0; me < ee.length; me++) {
11316
- const ve = ee.get(me);
11317
- if (ve.hidden || ve.writingMode === c.ai.vertical && !le) {
11318
- He(ve.numGlyphs, K);
11316
+ const be = ee.get(me);
11317
+ if (be.hidden || be.writingMode === c.ai.vertical && !le) {
11318
+ He(be.numGlyphs, K);
11319
11319
  continue;
11320
11320
  }
11321
11321
  le = !1;
11322
- const ze = G(new c.P(ve.anchorX, ve.anchorY), t, V);
11322
+ const ze = G(new c.P(be.anchorX, be.anchorY), t, V);
11323
11323
  if (!k(ze.point, H)) {
11324
- He(ve.numGlyphs, K);
11324
+ He(be.numGlyphs, K);
11325
11325
  continue;
11326
11326
  }
11327
- const Le = E(n.transform.cameraToCenterDistance, ze.signedDistanceFromCamera), be = c.aj(Z, U, ve), Se = m ? be / Le : be * Le, Ve = { getElevation: V, labelPlaneMatrix: a, lineVertexArray: j, pitchWithMap: m, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: b, tileAnchorPoint: new c.P(ve.anchorX, ve.anchorY), unwrappedTileID: P, width: A, height: L, translation: F }, tt = te(Ve, ve, Se, !1, _, t, h, u.glyphOffsetArray, K, ne, v);
11328
- le = tt.useVertical, (tt.notEnoughRoom || le || tt.needsFlipping && te(Ve, ve, Se, !0, _, t, h, u.glyphOffsetArray, K, ne, v).notEnoughRoom) && He(ve.numGlyphs, K);
11327
+ const Le = E(n.transform.cameraToCenterDistance, ze.signedDistanceFromCamera), we = c.aj(Z, U, be), Se = m ? we / Le : we * Le, Ve = { getElevation: V, labelPlaneMatrix: a, lineVertexArray: j, pitchWithMap: m, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: b, tileAnchorPoint: new c.P(be.anchorX, be.anchorY), unwrappedTileID: P, width: A, height: L, translation: F }, tt = te(Ve, be, Se, !1, _, t, h, u.glyphOffsetArray, K, ne, v);
11328
+ le = tt.useVertical, (tt.notEnoughRoom || le || tt.needsFlipping && te(Ve, be, Se, !0, _, t, h, u.glyphOffsetArray, K, ne, v).notEnoughRoom) && He(be.numGlyphs, K);
11329
11329
  }
11330
11330
  o ? u.text.dynamicLayoutVertexBuffer.updateData(K) : u.icon.dynamicLayoutVertexBuffer.updateData(K);
11331
11331
  }
@@ -11354,8 +11354,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11354
11354
  V.push(K.last);
11355
11355
  } else {
11356
11356
  if (a && !o) {
11357
- const U = G(u.tileAnchorPoint, h, u.getElevation).point, H = t.lineStartIndex + t.segment + 1, K = new c.P(u.lineVertexArray.getx(H), u.lineVertexArray.gety(H)), j = G(K, h, u.getElevation), ee = j.signedDistanceFromCamera > 0 ? j.point : function(le, me, ve, ze, Le, be) {
11358
- return re(le, me, ve, 1, Le, be);
11357
+ const U = G(u.tileAnchorPoint, h, u.getElevation).point, H = t.lineStartIndex + t.segment + 1, K = new c.P(u.lineVertexArray.getx(H), u.lineVertexArray.gety(H)), j = G(K, h, u.getElevation), ee = j.signedDistanceFromCamera > 0 ? j.point : function(le, me, be, ze, Le, we) {
11358
+ return re(le, me, be, 1, Le, we);
11359
11359
  }(u.tileAnchorPoint, K, U, 0, h, u), ne = Q(t.writingMode, U, ee, b);
11360
11360
  if (ne) return ne;
11361
11361
  }
@@ -11411,13 +11411,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11411
11411
  if (U = X(F, _, ze), n === 0) ne.push(H), le = U.sub(H);
11412
11412
  else {
11413
11413
  let Le;
11414
- const be = U.sub(H);
11415
- Le = be.mag() === 0 ? ge(X(F + P, _, ze).sub(U), n, P) : ge(be, n, P), Z || (Z = H.add(Le)), V = ce(F, Le, U, h, m, Z, n, _, ze), ne.push(Z), le = V.sub(Z);
11414
+ const we = U.sub(H);
11415
+ Le = we.mag() === 0 ? ge(X(F + P, _, ze).sub(U), n, P) : ge(we, n, P), Z || (Z = H.add(Le)), V = ce(F, Le, U, h, m, Z, n, _, ze), ne.push(Z), le = V.sub(Z);
11416
11416
  }
11417
11417
  j = le.mag();
11418
11418
  }
11419
- const me = le._mult((ee - K) / j)._add(Z || H), ve = A + Math.atan2(U.y - H.y, U.x - H.x);
11420
- return ne.push(me), { point: me, angle: v ? ve : 0, path: ne };
11419
+ const me = le._mult((ee - K) / j)._add(Z || H), be = A + Math.atan2(U.y - H.y, U.x - H.x);
11420
+ return ne.push(me), { point: me, angle: v ? be : 0, path: ne };
11421
11421
  }
11422
11422
  const Ge = new Float32Array([-1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0, -1 / 0, -1 / 0, 0]);
11423
11423
  function He(u, t) {
@@ -11428,7 +11428,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11428
11428
  }
11429
11429
  const st = 100;
11430
11430
  class mt {
11431
- constructor(t, n, o = new Lr(t.width + 200, t.height + 200, 25), a = new Lr(t.width + 200, t.height + 200, 25)) {
11431
+ constructor(t, n, o = new Dr(t.width + 200, t.height + 200, 25), a = new Dr(t.width + 200, t.height + 200, 25)) {
11432
11432
  this.transform = t, this.mapProjection = n, this.grid = o, this.ignoredGrid = a, this.pitchFactor = Math.cos(t._pitch) * t.cameraToCenterDistance, this.screenRightBoundary = t.width + st, this.screenBottomBoundary = t.height + st, this.gridRightBoundary = t.width + 200, this.gridBottomBoundary = t.height + 200, this.perspectiveRatioCutoff = 0.6;
11433
11433
  }
11434
11434
  placeCollisionBox(t, n, o, a, h, m, _, v, b, P, A) {
@@ -11437,9 +11437,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11437
11437
  }
11438
11438
  placeCollisionCircles(t, n, o, a, h, m, _, v, b, P, A, L, F, V, Z, U) {
11439
11439
  const H = [], K = new c.P(n.anchorX, n.anchorY), j = this.getPerspectiveRatio(m, K.x, K.y, _, U), ee = (A ? h / j : h * j) / c.aq, ne = { getElevation: U, labelPlaneMatrix: v, lineVertexArray: o, pitchWithMap: A, projectionCache: { projections: {}, offsets: {}, cachedAnchorPoint: void 0, anyProjectionOccluded: !1 }, projection: this.mapProjection, tileAnchorPoint: K, unwrappedTileID: _, width: this.transform.width, height: this.transform.height, translation: Z }, le = q(ee, a, n.lineOffsetX * ee, n.lineOffsetY * ee, !1, n, !1, ne);
11440
- let me = !1, ve = !1, ze = !0;
11440
+ let me = !1, be = !1, ze = !0;
11441
11441
  if (le) {
11442
- const Le = 0.5 * F * j + V, be = new c.P(-100, -100), Se = new c.P(this.screenRightBoundary, this.screenBottomBoundary), Ve = new rt(), tt = le.first, Pe = le.last;
11442
+ const Le = 0.5 * F * j + V, we = new c.P(-100, -100), Se = new c.P(this.screenRightBoundary, this.screenBottomBoundary), Ve = new rt(), tt = le.first, Pe = le.last;
11443
11443
  let ke = [];
11444
11444
  for (let ot = tt.path.length - 1; ot >= 1; ot--) ke.push(tt.path[ot]);
11445
11445
  for (let ot = 1; ot < Pe.path.length; ot++) ke.push(Pe.path[ot]);
@@ -11452,7 +11452,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11452
11452
  if (ke.length > 0) {
11453
11453
  const ot = ke[0].clone(), pt = ke[0].clone();
11454
11454
  for (let Ot = 1; Ot < ke.length; Ot++) ot.x = Math.min(ot.x, ke[Ot].x), ot.y = Math.min(ot.y, ke[Ot].y), pt.x = Math.max(pt.x, ke[Ot].x), pt.y = Math.max(pt.y, ke[Ot].y);
11455
- Bt = ot.x >= be.x && pt.x <= Se.x && ot.y >= be.y && pt.y <= Se.y ? [ke] : pt.x < be.x || ot.x > Se.x || pt.y < be.y || ot.y > Se.y ? [] : c.am([ke], be.x, be.y, Se.x, Se.y);
11455
+ Bt = ot.x >= we.x && pt.x <= Se.x && ot.y >= we.y && pt.y <= Se.y ? [ke] : pt.x < we.x || ot.x > Se.x || pt.y < we.y || ot.y > Se.y ? [] : c.am([ke], we.x, we.y, Se.x, Se.y);
11456
11456
  }
11457
11457
  for (const ot of Bt) {
11458
11458
  Ve.reset(ot, 0.25 * Le);
@@ -11462,11 +11462,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11462
11462
  const mi = Ot / Math.max(pt - 1, 1), ar = Ve.lerp(mi), Vt = ar.x + st, Di = ar.y + st;
11463
11463
  H.push(Vt, Di, Le, 0);
11464
11464
  const Ai = Vt - Le, gi = Di - Le, _i = Vt + Le, lr = Di + Le;
11465
- if (ze = ze && this.isOffscreen(Ai, gi, _i, lr), ve = ve || this.isInsideGrid(Ai, gi, _i, lr), t !== "always" && this.grid.hitTestCircle(Vt, Di, Le, t, L) && (me = !0, !P)) return { circles: [], offscreen: !1, collisionDetected: me };
11465
+ if (ze = ze && this.isOffscreen(Ai, gi, _i, lr), be = be || this.isInsideGrid(Ai, gi, _i, lr), t !== "always" && this.grid.hitTestCircle(Vt, Di, Le, t, L) && (me = !0, !P)) return { circles: [], offscreen: !1, collisionDetected: me };
11466
11466
  }
11467
11467
  }
11468
11468
  }
11469
- return { circles: !P && me || !ve || j < this.perspectiveRatioCutoff ? [] : H, offscreen: ze, collisionDetected: me };
11469
+ return { circles: !P && me || !be || j < this.perspectiveRatioCutoff ? [] : H, offscreen: ze, collisionDetected: me };
11470
11470
  }
11471
11471
  projectPathToScreenSpace(t, n, o) {
11472
11472
  return t.map((a) => G(a, o, n.getElevation));
@@ -11518,11 +11518,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11518
11518
  let L = new c.P(1, 0), F = new c.P(0, 1);
11519
11519
  const V = new c.P(t.anchorPointX + _[0], t.anchorPointY + _[1]);
11520
11520
  if (m && !h) {
11521
- const Le = this.projectAndGetPerspectiveRatio(o, V.x + 1, V.y, a, b).point.sub(v.point).unit(), be = Math.atan(Le.y / Le.x) + (Le.x < 0 ? Math.PI : 0), Se = Math.sin(be), Ve = Math.cos(be);
11521
+ const Le = this.projectAndGetPerspectiveRatio(o, V.x + 1, V.y, a, b).point.sub(v.point).unit(), we = Math.atan(Le.y / Le.x) + (Le.x < 0 ? Math.PI : 0), Se = Math.sin(we), Ve = Math.cos(we);
11522
11522
  L = new c.P(Ve, Se), F = new c.P(-Se, Ve);
11523
11523
  } else if (!m && h) {
11524
- const Le = -this.transform.angle, be = Math.sin(Le), Se = Math.cos(Le);
11525
- L = new c.P(Se, be), F = new c.P(-be, Se);
11524
+ const Le = -this.transform.angle, we = Math.sin(Le), Se = Math.cos(Le);
11525
+ L = new c.P(Se, we), F = new c.P(-we, Se);
11526
11526
  }
11527
11527
  let Z = v.point, U = A;
11528
11528
  if (h) {
@@ -11532,14 +11532,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11532
11532
  }
11533
11533
  P && (Z = Z.add(L.mult(P.x * U)).add(F.mult(P.y * U)));
11534
11534
  const H = t.x1 * U, K = t.x2 * U, j = (H + K) / 2, ee = t.y1 * U, ne = t.y2 * U, le = (ee + ne) / 2, me = [{ offsetX: H, offsetY: ee }, { offsetX: j, offsetY: ee }, { offsetX: K, offsetY: ee }, { offsetX: K, offsetY: le }, { offsetX: K, offsetY: ne }, { offsetX: j, offsetY: ne }, { offsetX: H, offsetY: ne }, { offsetX: H, offsetY: le }];
11535
- let ve = [];
11536
- for (const { offsetX: Le, offsetY: be } of me) ve.push(new c.P(Z.x + L.x * Le + F.x * be, Z.y + L.y * Le + F.y * be));
11535
+ let be = [];
11536
+ for (const { offsetX: Le, offsetY: we } of me) be.push(new c.P(Z.x + L.x * Le + F.x * we, Z.y + L.y * Le + F.y * we));
11537
11537
  let ze = !1;
11538
11538
  if (h) {
11539
- const Le = ve.map((be) => this.projectAndGetPerspectiveRatio(o, be.x, be.y, a, b));
11540
- ze = Le.some((be) => !be.isOccluded), ve = Le.map((be) => be.point);
11539
+ const Le = be.map((we) => this.projectAndGetPerspectiveRatio(o, we.x, we.y, a, b));
11540
+ ze = Le.some((we) => !we.isOccluded), be = Le.map((we) => we.point);
11541
11541
  } else ze = !0;
11542
- return { box: c.ap(ve), allPointsOccluded: !ze };
11542
+ return { box: c.ap(be), allPointsOccluded: !ze };
11543
11543
  }
11544
11544
  }
11545
11545
  function nt(u, t, n) {
@@ -11571,7 +11571,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11571
11571
  this.invProjMatrix = c.H(), this.viewportMatrix = c.H(), this.circles = [];
11572
11572
  }
11573
11573
  }
11574
- class Tt {
11574
+ class St {
11575
11575
  constructor(t, n, o, a, h) {
11576
11576
  this.bucketInstanceId = t, this.featureIndex = n, this.sourceLayerIndex = o, this.bucketIndex = a, this.tileID = h;
11577
11577
  }
@@ -11610,24 +11610,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11610
11610
  const le = br(F, V, Z, this.transform, U);
11611
11611
  ee = c.L([], this.transform.labelPlaneMatrix, le);
11612
11612
  }
11613
- this.retainedQueryData[h.bucketInstanceId] = new Tt(h.bucketInstanceId, m, h.sourceLayerIndex, h.index, o.tileID);
11613
+ this.retainedQueryData[h.bucketInstanceId] = new St(h.bucketInstanceId, m, h.sourceLayerIndex, h.index, o.tileID);
11614
11614
  const ne = { bucket: h, layout: v, translationText: H, translationIcon: K, posMatrix: F, unwrappedTileID: L, textLabelPlaneMatrix: j, labelToScreenMatrix: ee, scale: P, textPixelRatio: A, holdingForFade: o.holdingForFade(), collisionBoxArray: _, partiallyEvaluatedTextSize: c.ah(h.textSizeData, this.transform.zoom), collisionGroup: this.collisionGroups.get(h.sourceID) };
11615
11615
  if (a) for (const le of h.sortKeyRanges) {
11616
- const { sortKey: me, symbolInstanceStart: ve, symbolInstanceEnd: ze } = le;
11617
- t.push({ sortKey: me, symbolInstanceStart: ve, symbolInstanceEnd: ze, parameters: ne });
11616
+ const { sortKey: me, symbolInstanceStart: be, symbolInstanceEnd: ze } = le;
11617
+ t.push({ sortKey: me, symbolInstanceStart: be, symbolInstanceEnd: ze, parameters: ne });
11618
11618
  }
11619
11619
  else t.push({ symbolInstanceStart: 0, symbolInstanceEnd: h.symbolInstances.length, parameters: ne });
11620
11620
  }
11621
11621
  attemptAnchorPlacement(t, n, o, a, h, m, _, v, b, P, A, L, F, V, Z, U, H, K, j) {
11622
11622
  const ee = c.ar[t.textAnchor], ne = [t.textOffset0, t.textOffset1], le = ii(ee, o, a, ne, h), me = this.collisionIndex.placeCollisionBox(n, L, v, b, P, _, m, U, A.predicate, j, le);
11623
11623
  if ((!K || this.collisionIndex.placeCollisionBox(K, L, v, b, P, _, m, H, A.predicate, j, le).placeable) && me.placeable) {
11624
- let ve;
11625
- if (this.prevPlacement && this.prevPlacement.variableOffsets[F.crossTileID] && this.prevPlacement.placements[F.crossTileID] && this.prevPlacement.placements[F.crossTileID].text && (ve = this.prevPlacement.variableOffsets[F.crossTileID].anchor), F.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
11626
- return this.variableOffsets[F.crossTileID] = { textOffset: ne, width: o, height: a, anchor: ee, textBoxScale: h, prevAnchor: ve }, this.markUsedJustification(V, ee, F, Z), V.allowVerticalPlacement && (this.markUsedOrientation(V, Z, F), this.placedOrientations[F.crossTileID] = Z), { shift: le, placedGlyphBoxes: me };
11624
+ let be;
11625
+ if (this.prevPlacement && this.prevPlacement.variableOffsets[F.crossTileID] && this.prevPlacement.placements[F.crossTileID] && this.prevPlacement.placements[F.crossTileID].text && (be = this.prevPlacement.variableOffsets[F.crossTileID].anchor), F.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
11626
+ return this.variableOffsets[F.crossTileID] = { textOffset: ne, width: o, height: a, anchor: ee, textBoxScale: h, prevAnchor: be }, this.markUsedJustification(V, ee, F, Z), V.allowVerticalPlacement && (this.markUsedOrientation(V, Z, F), this.placedOrientations[F.crossTileID] = Z), { shift: le, placedGlyphBoxes: me };
11627
11627
  }
11628
11628
  }
11629
11629
  placeLayerBucketPart(t, n, o) {
11630
- const { bucket: a, layout: h, translationText: m, translationIcon: _, posMatrix: v, unwrappedTileID: b, textLabelPlaneMatrix: P, labelToScreenMatrix: A, textPixelRatio: L, holdingForFade: F, collisionBoxArray: V, partiallyEvaluatedTextSize: Z, collisionGroup: U } = t.parameters, H = h.get("text-optional"), K = h.get("icon-optional"), j = c.as(h, "text-overlap", "text-allow-overlap"), ee = j === "always", ne = c.as(h, "icon-overlap", "icon-allow-overlap"), le = ne === "always", me = h.get("text-rotation-alignment") === "map", ve = h.get("text-pitch-alignment") === "map", ze = h.get("icon-text-fit") !== "none", Le = h.get("symbol-z-order") === "viewport-y", be = ee && (le || !a.hasIconData() || K), Se = le && (ee || !a.hasTextData() || H);
11630
+ const { bucket: a, layout: h, translationText: m, translationIcon: _, posMatrix: v, unwrappedTileID: b, textLabelPlaneMatrix: P, labelToScreenMatrix: A, textPixelRatio: L, holdingForFade: F, collisionBoxArray: V, partiallyEvaluatedTextSize: Z, collisionGroup: U } = t.parameters, H = h.get("text-optional"), K = h.get("icon-optional"), j = c.as(h, "text-overlap", "text-allow-overlap"), ee = j === "always", ne = c.as(h, "icon-overlap", "icon-allow-overlap"), le = ne === "always", me = h.get("text-rotation-alignment") === "map", be = h.get("text-pitch-alignment") === "map", ze = h.get("icon-text-fit") !== "none", Le = h.get("symbol-z-order") === "viewport-y", we = ee && (le || !a.hasIconData() || K), Se = le && (ee || !a.hasTextData() || H);
11631
11631
  !a.collisionArrays && V && a.deserializeCollisionBoxes(V);
11632
11632
  const Ve = this._getTerrainElevationFunc(this.retainedQueryData[a.bucketInstanceId].tileID), tt = (Pe, ke, Qe) => {
11633
11633
  var Bt, ot;
@@ -11651,8 +11651,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11651
11651
  }, rn = Pe.textAnchorOffsetStartIndex, Wn = Pe.textAnchorOffsetEndIndex;
11652
11652
  if (Wn === rn) {
11653
11653
  const yi = (xi, oi) => {
11654
- const qt = this.collisionIndex.placeCollisionBox(xi, j, L, v, b, ve, me, m, U.predicate, Ve);
11655
- return qt && qt.placeable && (this.markUsedOrientation(a, oi, Pe), this.placedOrientations[Pe.crossTileID] = oi), qt;
11654
+ const $t = this.collisionIndex.placeCollisionBox(xi, j, L, v, b, be, me, m, U.predicate, Ve);
11655
+ return $t && $t.placeable && (this.markUsedOrientation(a, oi, Pe), this.placedOrientations[Pe.crossTileID] = oi), $t;
11656
11656
  };
11657
11657
  cr(() => yi(Hn, c.ai.horizontal), () => {
11658
11658
  const xi = ke.verticalTextBox;
@@ -11660,38 +11660,38 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11660
11660
  }), ci(Vt && Vt.placeable);
11661
11661
  } else {
11662
11662
  let yi = c.ar[(ot = (Bt = this.prevPlacement) === null || Bt === void 0 ? void 0 : Bt.variableOffsets[Pe.crossTileID]) === null || ot === void 0 ? void 0 : ot.anchor];
11663
- const xi = (qt, Xn, Fa) => {
11664
- const ri = qt.x2 - qt.x1, ql = qt.y2 - qt.y1, To = Pe.textBoxScale, Io = ze && ne === "never" ? Xn : null;
11663
+ const xi = ($t, Xn, Fa) => {
11664
+ const ri = $t.x2 - $t.x1, ql = $t.y2 - $t.y1, To = Pe.textBoxScale, Io = ze && ne === "never" ? Xn : null;
11665
11665
  let nn = null, Zl = j === "never" ? 1 : 2, Ba = "never";
11666
11666
  yi && Zl++;
11667
11667
  for (let Oa = 0; Oa < Zl; Oa++) {
11668
11668
  for (let Va = rn; Va < Wn; Va++) {
11669
11669
  const Po = a.textAnchorOffsets.get(Va);
11670
11670
  if (yi && Po.textAnchor !== yi) continue;
11671
- const Jn = this.attemptAnchorPlacement(Po, qt, ri, ql, To, me, ve, L, v, b, U, Ba, Pe, a, Fa, m, _, Io, Ve);
11671
+ const Jn = this.attemptAnchorPlacement(Po, $t, ri, ql, To, me, be, L, v, b, U, Ba, Pe, a, Fa, m, _, Io, Ve);
11672
11672
  if (Jn && (nn = Jn.placedGlyphBoxes, nn && nn.placeable)) return pt = !0, ar = Jn.shift, nn;
11673
11673
  }
11674
11674
  yi ? yi = null : Ba = j;
11675
11675
  }
11676
- return o && !nn && (nn = { box: this.collisionIndex.placeCollisionBox(Hn, "always", L, v, b, ve, me, m, U.predicate, Ve, new c.P(0, 0)).box, offscreen: !1, placeable: !1 }), nn;
11676
+ return o && !nn && (nn = { box: this.collisionIndex.placeCollisionBox(Hn, "always", L, v, b, be, me, m, U.predicate, Ve, new c.P(0, 0)).box, offscreen: !1, placeable: !1 }), nn;
11677
11677
  };
11678
11678
  cr(() => xi(Hn, ke.iconBox, c.ai.horizontal), () => {
11679
- const qt = ke.verticalTextBox;
11680
- return a.allowVerticalPlacement && (!Vt || !Vt.placeable) && Pe.numVerticalGlyphVertices > 0 && qt ? xi(qt, ke.verticalIconBox, c.ai.vertical) : { box: null, occluded: !0, offscreen: null };
11679
+ const $t = ke.verticalTextBox;
11680
+ return a.allowVerticalPlacement && (!Vt || !Vt.placeable) && Pe.numVerticalGlyphVertices > 0 && $t ? xi($t, ke.verticalIconBox, c.ai.vertical) : { box: null, occluded: !0, offscreen: null };
11681
11681
  }), Vt && (pt = Vt.placeable, mi = Vt.offscreen);
11682
11682
  const oi = ci(Vt && Vt.placeable);
11683
11683
  if (!pt && this.prevPlacement) {
11684
- const qt = this.prevPlacement.variableOffsets[Pe.crossTileID];
11685
- qt && (this.variableOffsets[Pe.crossTileID] = qt, this.markUsedJustification(a, qt.anchor, Pe, oi));
11684
+ const $t = this.prevPlacement.variableOffsets[Pe.crossTileID];
11685
+ $t && (this.variableOffsets[Pe.crossTileID] = $t, this.markUsedJustification(a, $t.anchor, Pe, oi));
11686
11686
  }
11687
11687
  }
11688
11688
  }
11689
11689
  if (Ai = Vt, pt = Ai && Ai.placeable, mi = Ai && Ai.offscreen, Pe.useRuntimeCollisionCircles) {
11690
11690
  const ci = a.text.placedSymbolArray.get(Pe.centerJustifiedTextSymbolIndex), cr = c.aj(a.textSizeData, Z, ci), rn = h.get("text-padding");
11691
- gi = this.collisionIndex.placeCollisionCircles(j, ci, a.lineVertexArray, a.glyphOffsetArray, cr, v, b, P, A, o, ve, U.predicate, Pe.collisionCircleDiameter, rn, m, Ve), gi.circles.length && gi.collisionDetected && !o && c.w("Collisions detected, but collision boxes are not shown"), pt = ee || gi.circles.length > 0 && !gi.collisionDetected, mi = mi && gi.offscreen;
11691
+ gi = this.collisionIndex.placeCollisionCircles(j, ci, a.lineVertexArray, a.glyphOffsetArray, cr, v, b, P, A, o, be, U.predicate, Pe.collisionCircleDiameter, rn, m, Ve), gi.circles.length && gi.collisionDetected && !o && c.w("Collisions detected, but collision boxes are not shown"), pt = ee || gi.circles.length > 0 && !gi.collisionDetected, mi = mi && gi.offscreen;
11692
11692
  }
11693
11693
  if (ke.iconFeatureIndex && (wo = ke.iconFeatureIndex), ke.iconBox) {
11694
- const ci = (cr) => this.collisionIndex.placeCollisionBox(cr, ne, L, v, b, ve, me, _, U.predicate, Ve, ze && ar ? ar : void 0);
11694
+ const ci = (cr) => this.collisionIndex.placeCollisionBox(cr, ne, L, v, b, be, me, _, U.predicate, Ve, ze && ar ? ar : void 0);
11695
11695
  Di && Di.placeable && ke.verticalIconBox ? (_i = ci(ke.verticalIconBox), Ot = _i.placeable) : (_i = ci(ke.iconBox), Ot = _i.placeable), mi = mi && _i.offscreen;
11696
11696
  }
11697
11697
  const In = H || Pe.numHorizontalGlyphVertices === 0 && Pe.numVerticalGlyphVertices === 0, So = K || Pe.numIconVertices === 0;
@@ -11699,7 +11699,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11699
11699
  const Ra = Ot && _i.placeable;
11700
11700
  if (pt && Ai.placeable && this.collisionIndex.insertCollisionBox(Ai.box, j, h.get("text-ignore-placement"), a.bucketInstanceId, Di && Di.placeable && Tn ? Tn : lr, U.ID), Ra && this.collisionIndex.insertCollisionBox(_i.box, ne, h.get("icon-ignore-placement"), a.bucketInstanceId, wo, U.ID), gi && pt && this.collisionIndex.insertCollisionCircles(gi.circles, j, h.get("text-ignore-placement"), a.bucketInstanceId, lr, U.ID), o && this.storeCollisionData(a.bucketInstanceId, Qe, ke, Ai, _i, gi), Pe.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
11701
11701
  if (a.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
11702
- this.placements[Pe.crossTileID] = new Qt(pt || be, Ot || Se, mi || a.justReloaded), n[Pe.crossTileID] = !0;
11702
+ this.placements[Pe.crossTileID] = new Qt(pt || we, Ot || Se, mi || a.justReloaded), n[Pe.crossTileID] = !0;
11703
11703
  };
11704
11704
  if (Le) {
11705
11705
  if (t.symbolInstanceStart !== 0) throw new Error("bucket.bucketInstanceId should be 0");
@@ -11778,7 +11778,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11778
11778
  const K = t.symbolInstances.get(H), { numHorizontalGlyphVertices: j, numVerticalGlyphVertices: ee, crossTileID: ne } = K;
11779
11779
  let le = this.opacities[ne];
11780
11780
  o[ne] ? le = _ : le || (le = V, this.opacities[ne] = le), o[ne] = !0;
11781
- const me = K.numIconVertices > 0, ve = this.placedOrientations[K.crossTileID], ze = ve === c.ai.vertical, Le = ve === c.ai.horizontal || ve === c.ai.horizontalOnly;
11781
+ const me = K.numIconVertices > 0, be = this.placedOrientations[K.crossTileID], ze = be === c.ai.vertical, Le = be === c.ai.horizontal || be === c.ai.horizontalOnly;
11782
11782
  if (j > 0 || ee > 0) {
11783
11783
  const Se = Ui(le.text);
11784
11784
  Z(t.text, j, ze ? fi : Se), Z(t.text, ee, Le ? fi : Se);
@@ -11787,7 +11787,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11787
11787
  ke >= 0 && (t.text.placedSymbolArray.get(ke).hidden = Ve || ze ? 1 : 0);
11788
11788
  }), K.verticalPlacedTextSymbolIndex >= 0 && (t.text.placedSymbolArray.get(K.verticalPlacedTextSymbolIndex).hidden = Ve || Le ? 1 : 0);
11789
11789
  const tt = this.variableOffsets[K.crossTileID];
11790
- tt && this.markUsedJustification(t, tt.anchor, K, ve);
11790
+ tt && this.markUsedJustification(t, tt.anchor, K, be);
11791
11791
  const Pe = this.placedOrientations[K.crossTileID];
11792
11792
  Pe && (this.markUsedJustification(t, "left", K, Pe), this.markUsedOrientation(t, Pe, K));
11793
11793
  }
@@ -11795,7 +11795,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11795
11795
  const Se = Ui(le.icon), Ve = !(F && K.verticalPlacedIconSymbolIndex && ze);
11796
11796
  K.placedIconSymbolIndex >= 0 && (Z(t.icon, K.numIconVertices, Ve ? Se : fi), t.icon.placedSymbolArray.get(K.placedIconSymbolIndex).hidden = le.icon.isHidden()), K.verticalPlacedIconSymbolIndex >= 0 && (Z(t.icon, K.numVerticalIconVertices, Ve ? fi : Se), t.icon.placedSymbolArray.get(K.verticalPlacedIconSymbolIndex).hidden = le.icon.isHidden());
11797
11797
  }
11798
- const be = U && U.has(H) ? U.get(H) : { text: null, icon: null };
11798
+ const we = U && U.has(H) ? U.get(H) : { text: null, icon: null };
11799
11799
  if (t.hasIconCollisionBoxData() || t.hasTextCollisionBoxData()) {
11800
11800
  const Se = t.collisionArrays[H];
11801
11801
  if (Se) {
@@ -11808,13 +11808,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11808
11808
  }
11809
11809
  if (Se.textBox || Se.verticalTextBox) {
11810
11810
  let Pe;
11811
- Se.textBox && (Pe = ze), Se.verticalTextBox && (Pe = Le), pi(t.textCollisionBox.collisionVertexArray, le.text.placed, !tt || Pe, be.text, Ve.x, Ve.y);
11811
+ Se.textBox && (Pe = ze), Se.verticalTextBox && (Pe = Le), pi(t.textCollisionBox.collisionVertexArray, le.text.placed, !tt || Pe, we.text, Ve.x, Ve.y);
11812
11812
  }
11813
11813
  }
11814
11814
  if (Se.iconBox || Se.verticalIconBox) {
11815
11815
  const tt = !!(!Le && Se.verticalIconBox);
11816
11816
  let Pe;
11817
- Se.iconBox && (Pe = tt), Se.verticalIconBox && (Pe = !tt), pi(t.iconCollisionBox.collisionVertexArray, le.icon.placed, Pe, be.icon, F ? Ve.x : 0, F ? Ve.y : 0);
11817
+ Se.iconBox && (Pe = tt), Se.verticalIconBox && (Pe = !tt), pi(t.iconCollisionBox.collisionVertexArray, le.icon.placed, Pe, we.icon, F ? Ve.x : 0, F ? Ve.y : 0);
11818
11818
  }
11819
11819
  }
11820
11820
  }
@@ -11848,12 +11848,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11848
11848
  const m = o[0] - st, _ = o[1] - st, v = o[2] - st, b = o[3] - st;
11849
11849
  u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, m, _), u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, v, _), u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, v, b), u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, m, b);
11850
11850
  }
11851
- const hs = Math.pow(2, 25), It = Math.pow(2, 24), Uo = Math.pow(2, 17), $o = Math.pow(2, 16), Ni = Math.pow(2, 9), ji = Math.pow(2, 8), Pc = Math.pow(2, 1);
11851
+ const hs = Math.pow(2, 25), Tt = Math.pow(2, 24), Uo = Math.pow(2, 17), $o = Math.pow(2, 16), Ni = Math.pow(2, 9), ji = Math.pow(2, 8), Pc = Math.pow(2, 1);
11852
11852
  function Ui(u) {
11853
11853
  if (u.opacity === 0 && !u.placed) return 0;
11854
11854
  if (u.opacity === 1 && u.placed) return 4294967295;
11855
11855
  const t = u.placed ? 1 : 0, n = Math.floor(127 * u.opacity);
11856
- return n * hs + t * It + n * Uo + t * $o + n * Ni + t * ji + n * Pc + t;
11856
+ return n * hs + t * Tt + n * Uo + t * $o + n * Ni + t * ji + n * Pc + t;
11857
11857
  }
11858
11858
  const fi = 0;
11859
11859
  function Zs() {
@@ -11905,7 +11905,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11905
11905
  return this.placement.commit(t), this.placement;
11906
11906
  }
11907
11907
  }
11908
- const Rr = 512 / c.X / 2;
11908
+ const Lr = 512 / c.X / 2;
11909
11909
  class fn {
11910
11910
  constructor(t, n, o) {
11911
11911
  this.tileID = t, this.bucketInstanceId = o, this._symbolsByKey = {};
@@ -11915,7 +11915,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11915
11915
  v ? v.push(m) : a.set(_, [m]);
11916
11916
  }
11917
11917
  for (const [h, m] of a) {
11918
- const _ = { positions: m.map((v) => ({ x: Math.floor(v.anchorX * Rr), y: Math.floor(v.anchorY * Rr) })), crossTileIDs: m.map((v) => v.crossTileID) };
11918
+ const _ = { positions: m.map((v) => ({ x: Math.floor(v.anchorX * Lr), y: Math.floor(v.anchorY * Lr) })), crossTileIDs: m.map((v) => v.crossTileID) };
11919
11919
  if (_.positions.length > 128) {
11920
11920
  const v = new c.aw(_.positions.length, 16, Uint16Array);
11921
11921
  for (const { x: b, y: P } of _.positions) v.add(b, P);
@@ -11925,8 +11925,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11925
11925
  }
11926
11926
  }
11927
11927
  getScaledCoordinates(t, n) {
11928
- const { x: o, y: a, z: h } = this.tileID.canonical, { x: m, y: _, z: v } = n.canonical, b = Rr / Math.pow(2, v - h), P = (_ * c.X + t.anchorY) * b, A = a * c.X * Rr;
11929
- return { x: Math.floor((m * c.X + t.anchorX) * b - o * c.X * Rr), y: Math.floor(P - A) };
11928
+ const { x: o, y: a, z: h } = this.tileID.canonical, { x: m, y: _, z: v } = n.canonical, b = Lr / Math.pow(2, v - h), P = (_ * c.X + t.anchorY) * b, A = a * c.X * Lr;
11929
+ return { x: Math.floor((m * c.X + t.anchorX) * b - o * c.X * Lr), y: Math.floor(P - A) };
11930
11930
  }
11931
11931
  findMatches(t, n, o) {
11932
11932
  const a = this.tileID.canonical.z < n.canonical.z ? 1 : Math.pow(2, this.tileID.canonical.z - n.canonical.z);
@@ -12088,7 +12088,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12088
12088
  if (!n.validate || !ds(this, c.x(h))) {
12089
12089
  this._loaded = !0, this.stylesheet = h;
12090
12090
  for (const m in h.sources) this.addSource(m, h.sources[m], { validate: !1 });
12091
- h.sprite ? this._loadSprite(h.sprite) : this.imageManager.setLoaded(!0), this.glyphManager.setURL(h.glyphs), this._createLayers(), this.light = new Mr(this.stylesheet.light), this.sky = new ir(this.stylesheet.sky), this.map.setTerrain((a = this.stylesheet.terrain) !== null && a !== void 0 ? a : null), this.fire(new c.k("data", { dataType: "style" })), this.fire(new c.k("style.load"));
12091
+ h.sprite ? this._loadSprite(h.sprite) : this.imageManager.setLoaded(!0), this.glyphManager.setURL(h.glyphs), this._createLayers(), this.light = new Er(this.stylesheet.light), this.sky = new ir(this.stylesheet.sky), this.map.setTerrain((a = this.stylesheet.terrain) !== null && a !== void 0 ? a : null), this.fire(new c.k("data", { dataType: "style" })), this.fire(new c.k("style.load"));
12092
12092
  }
12093
12093
  }
12094
12094
  _createLayers() {
@@ -12117,8 +12117,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12117
12117
  Z[U] = {};
12118
12118
  const H = ae.getImageCanvasContext((yield V[U]).data), K = (yield F[U]).data;
12119
12119
  for (const j in K) {
12120
- const { width: ee, height: ne, x: le, y: me, sdf: ve, pixelRatio: ze, stretchX: Le, stretchY: be, content: Se, textFitWidth: Ve, textFitHeight: tt } = K[j];
12121
- Z[U][j] = { data: null, pixelRatio: ze, sdf: ve, stretchX: Le, stretchY: be, content: Se, textFitWidth: Ve, textFitHeight: tt, spriteData: { width: ee, height: ne, x: le, y: me, context: H } };
12120
+ const { width: ee, height: ne, x: le, y: me, sdf: be, pixelRatio: ze, stretchX: Le, stretchY: we, content: Se, textFitWidth: Ve, textFitHeight: tt } = K[j];
12121
+ Z[U][j] = { data: null, pixelRatio: ze, sdf: be, stretchX: Le, stretchY: we, content: Se, textFitWidth: Ve, textFitHeight: tt, spriteData: { width: ee, height: ne, x: le, y: me, context: H } };
12122
12122
  }
12123
12123
  }
12124
12124
  return Z;
@@ -12514,10 +12514,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12514
12514
  for (const j in K) {
12515
12515
  const ee = V[j] = V[j] || [], ne = K[j];
12516
12516
  ne.sort((le, me) => {
12517
- const ve = H.featureSortOrder;
12518
- if (ve) {
12519
- const ze = ve.indexOf(le.featureIndex);
12520
- return ve.indexOf(me.featureIndex) - ze;
12517
+ const be = H.featureSortOrder;
12518
+ if (be) {
12519
+ const ze = be.indexOf(le.featureIndex);
12520
+ return be.indexOf(me.featureIndex) - ze;
12521
12521
  }
12522
12522
  return me.featureIndex - le.featureIndex;
12523
12523
  });
@@ -13300,8 +13300,8 @@ uniform ${P} ${A} u_${L};
13300
13300
  for (let le = 0; le < Z.length; le++) {
13301
13301
  const me = Z[le];
13302
13302
  if (me && !ne[me]) {
13303
- const ve = _.getUniformLocation(this.program, me);
13304
- ve && (ne[me] = ve);
13303
+ const be = _.getUniformLocation(this.program, me);
13304
+ be && (ne[me] = be);
13305
13305
  }
13306
13306
  }
13307
13307
  this.fixedUniforms = a(t, ne), this.terrainUniforms = ((le, me) => ({ u_depth: new c.aI(le, me.u_depth), u_terrain: new c.aI(le, me.u_terrain), u_terrain_dim: new c.aJ(le, me.u_terrain_dim), u_terrain_matrix: new c.aK(le, me.u_terrain_matrix), u_terrain_unpack: new c.aL(le, me.u_terrain_unpack), u_terrain_exaggeration: new c.aJ(le, me.u_terrain_exaggeration) }))(t, ne), this.binderUniforms = o ? o.getUniforms(t, ne) : [];
@@ -13747,7 +13747,7 @@ uniform ${P} ${A} u_${L};
13747
13747
  n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL, t), this.current = t, this.dirty = !1;
13748
13748
  }
13749
13749
  }
13750
- class Fr extends ft {
13750
+ class Rr extends ft {
13751
13751
  getDefault() {
13752
13752
  return !1;
13753
13753
  }
@@ -13818,7 +13818,7 @@ uniform ${P} ${A} u_${L};
13818
13818
  class ta {
13819
13819
  constructor(t) {
13820
13820
  var n, o;
13821
- if (this.gl = t, this.clearColor = new ys(this), this.clearDepth = new Dc(this), this.clearStencil = new to(this), this.colorMask = new Lc(this), this.depthMask = new On(this), this.stencilMask = new Rc(this), this.stencilFunc = new ml(this), this.stencilOp = new Fc(this), this.stencilTest = new gl(this), this.depthRange = new Jo(this), this.depthTest = new _l(this), this.depthFunc = new yl(this), this.blend = new xl(this), this.blendFunc = new vl(this), this.blendColor = new gn(this), this.blendEquation = new bl(this), this.cullFace = new Bc(this), this.cullFaceSide = new Oc(this), this.frontFace = new wl(this), this.program = new xs(this), this.activeTexture = new Vc(this), this.viewport = new io(this), this.bindFramebuffer = new Nc(this), this.bindRenderbuffer = new jc(this), this.bindTexture = new Sl(this), this.bindVertexBuffer = new Tl(this), this.bindElementBuffer = new Il(this), this.bindVertexArray = new Ko(this), this.pixelStoreUnpack = new Pl(this), this.pixelStoreUnpackPremultiplyAlpha = new ro(this), this.pixelStoreUnpackFlipY = new Fr(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic") || t.getExtension("MOZ_EXT_texture_filter_anisotropic") || t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), Bn(t)) {
13821
+ if (this.gl = t, this.clearColor = new ys(this), this.clearDepth = new Dc(this), this.clearStencil = new to(this), this.colorMask = new Lc(this), this.depthMask = new On(this), this.stencilMask = new Rc(this), this.stencilFunc = new ml(this), this.stencilOp = new Fc(this), this.stencilTest = new gl(this), this.depthRange = new Jo(this), this.depthTest = new _l(this), this.depthFunc = new yl(this), this.blend = new xl(this), this.blendFunc = new vl(this), this.blendColor = new gn(this), this.blendEquation = new bl(this), this.cullFace = new Bc(this), this.cullFaceSide = new Oc(this), this.frontFace = new wl(this), this.program = new xs(this), this.activeTexture = new Vc(this), this.viewport = new io(this), this.bindFramebuffer = new Nc(this), this.bindRenderbuffer = new jc(this), this.bindTexture = new Sl(this), this.bindVertexBuffer = new Tl(this), this.bindElementBuffer = new Il(this), this.bindVertexArray = new Ko(this), this.pixelStoreUnpack = new Pl(this), this.pixelStoreUnpackPremultiplyAlpha = new ro(this), this.pixelStoreUnpackFlipY = new Rr(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic") || t.getExtension("MOZ_EXT_texture_filter_anisotropic") || t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), Bn(t)) {
13822
13822
  this.HALF_FLOAT = t.HALF_FLOAT;
13823
13823
  const a = t.getExtension("EXT_color_buffer_half_float");
13824
13824
  this.RGBA16F = (n = t.RGBA16F) !== null && n !== void 0 ? n : a == null ? void 0 : a.RGBA16F_EXT, this.RGB16F = (o = t.RGB16F) !== null && o !== void 0 ? o : a == null ? void 0 : a.RGB16F_EXT, t.getExtension("EXT_color_buffer_float");
@@ -13957,10 +13957,10 @@ uniform ${P} ${A} u_${L};
13957
13957
  for (let K = 0; K < V.length; K++) {
13958
13958
  const j = V.get(K), ee = j.hidden || !j.crossTileID || u.allowVerticalPlacement && !j.placedOrientation ? null : o[j.crossTileID];
13959
13959
  if (ee) {
13960
- const ne = new c.P(j.anchorX, j.anchorY), le = { getElevation: F, width: a.width, height: a.height, labelPlaneMatrix: h, lineVertexArray: null, pitchWithMap: n, projection: P, projectionCache: null, tileAnchorPoint: ne, translation: A, unwrappedTileID: L }, me = n ? G(ne, m, F) : de(ne.x, ne.y, le), ve = E(a.cameraToCenterDistance, me.signedDistanceFromCamera);
13961
- let ze = c.aj(u.textSizeData, v, j) * ve / c.aq;
13960
+ const ne = new c.P(j.anchorX, j.anchorY), le = { getElevation: F, width: a.width, height: a.height, labelPlaneMatrix: h, lineVertexArray: null, pitchWithMap: n, projection: P, projectionCache: null, tileAnchorPoint: ne, translation: A, unwrappedTileID: L }, me = n ? G(ne, m, F) : de(ne.x, ne.y, le), be = E(a.cameraToCenterDistance, me.signedDistanceFromCamera);
13961
+ let ze = c.aj(u.textSizeData, v, j) * be / c.aq;
13962
13962
  n && (ze *= u.tilePixelRatio / _);
13963
- const { width: Le, height: be, anchor: Se, textOffset: Ve, textBoxScale: tt } = ee, Pe = no(Se, Le, be, Ve, tt, ze), ke = P.getPitchedTextCorrection(a, ne.add(new c.P(A[0], A[1])), L), Qe = so(me.point, le, t, Pe, a.angle, ke), Bt = u.allowVerticalPlacement && j.placedOrientation === c.ai.vertical ? Math.PI / 2 : 0;
13963
+ const { width: Le, height: we, anchor: Se, textOffset: Ve, textBoxScale: tt } = ee, Pe = no(Se, Le, we, Ve, tt, ze), ke = P.getPitchedTextCorrection(a, ne.add(new c.P(A[0], A[1])), L), Qe = so(me.point, le, t, Pe, a.angle, ke), Bt = u.allowVerticalPlacement && j.placedOrientation === c.ai.vertical ? Math.PI / 2 : 0;
13964
13964
  for (let ot = 0; ot < j.numGlyphs; ot++) c.ak(Z, Qe, Bt);
13965
13965
  b && j.associatedIconIndex >= 0 && (H[j.associatedIconIndex] = { shiftedAnchor: Qe, angle: Bt });
13966
13966
  } else He(j.numGlyphs, Z);
@@ -13987,42 +13987,42 @@ uniform ${P} ${A} u_${L};
13987
13987
  function Qr(u, t, n, o, a, h, m, _, v, b, P, A) {
13988
13988
  const L = u.context, F = L.gl, V = u.transform, Z = Zs(), U = _ === "map", H = v === "map", K = _ !== "viewport" && n.layout.get("symbol-placement") !== "point", j = U && !H && !K, ee = !H && K, ne = !n.layout.get("symbol-sort-key").isConstant();
13989
13989
  let le = !1;
13990
- const me = u.depthModeForSublayer(0, dt.ReadOnly), ve = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), ze = [], Le = Z.getCircleRadiusCorrection(V);
13991
- for (const be of o) {
13992
- const Se = t.getTile(be), Ve = Se.getBucket(n);
13990
+ const me = u.depthModeForSublayer(0, dt.ReadOnly), be = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), ze = [], Le = Z.getCircleRadiusCorrection(V);
13991
+ for (const we of o) {
13992
+ const Se = t.getTile(we), Ve = Se.getBucket(n);
13993
13993
  if (!Ve) continue;
13994
13994
  const tt = a ? Ve.text : Ve.icon;
13995
13995
  if (!tt || !tt.segments.get().length || !tt.hasVisibleVertices) continue;
13996
- const Pe = tt.programConfigurations.get(n.id), ke = a || Ve.sdfIcons, Qe = a ? Ve.textSizeData : Ve.iconSizeData, Bt = H || V.pitch !== 0, ot = u.useProgram(na(ke, a, Ve), Pe), pt = c.ah(Qe, V.zoom), Ot = u.style.map.terrain && u.style.map.terrain.getTerrainData(be);
13996
+ const Pe = tt.programConfigurations.get(n.id), ke = a || Ve.sdfIcons, Qe = a ? Ve.textSizeData : Ve.iconSizeData, Bt = H || V.pitch !== 0, ot = u.useProgram(na(ke, a, Ve), Pe), pt = c.ah(Qe, V.zoom), Ot = u.style.map.terrain && u.style.map.terrain.getTerrainData(we);
13997
13997
  let mi, ar, Vt, Di, Ai = [0, 0], gi = null;
13998
13998
  if (a) ar = Se.glyphAtlasTexture, Vt = F.LINEAR, mi = Se.glyphAtlasTexture.size, Ve.iconsInText && (Ai = Se.imageAtlasTexture.size, gi = Se.imageAtlasTexture, Di = Bt || u.options.rotating || u.options.zooming || Qe.kind === "composite" || Qe.kind === "camera" ? F.LINEAR : F.NEAREST);
13999
13999
  else {
14000
- const qt = n.layout.get("icon-size").constantOr(0) !== 1 || Ve.iconsNeedLinear;
14001
- ar = Se.imageAtlasTexture, Vt = ke || u.options.rotating || u.options.zooming || qt || Bt ? F.LINEAR : F.NEAREST, mi = Se.imageAtlasTexture.size;
14000
+ const $t = n.layout.get("icon-size").constantOr(0) !== 1 || Ve.iconsNeedLinear;
14001
+ ar = Se.imageAtlasTexture, Vt = ke || u.options.rotating || u.options.zooming || $t || Bt ? F.LINEAR : F.NEAREST, mi = Se.imageAtlasTexture.size;
14002
14002
  }
14003
- const _i = nt(Se, 1, u.transform.zoom), lr = ee ? be.posMatrix : ra, Tn = Xr(lr, H, U, u.transform, _i), wo = br(lr, H, U, u.transform, _i), Hn = br(be.posMatrix, H, U, u.transform, _i), In = Z.translatePosition(u.transform, Se, h, m), So = ve && Ve.hasTextData(), Ra = n.layout.get("icon-text-fit") !== "none" && So && Ve.hasIconData();
14003
+ const _i = nt(Se, 1, u.transform.zoom), lr = ee ? we.posMatrix : ra, Tn = Xr(lr, H, U, u.transform, _i), wo = br(lr, H, U, u.transform, _i), Hn = br(we.posMatrix, H, U, u.transform, _i), In = Z.translatePosition(u.transform, Se, h, m), So = be && Ve.hasTextData(), Ra = n.layout.get("icon-text-fit") !== "none" && So && Ve.hasIconData();
14004
14004
  if (K) {
14005
- const qt = u.style.map.terrain ? (Fa, ri) => u.style.map.terrain.getElevation(be, Fa, ri) : null, Xn = n.layout.get("text-rotation-alignment") === "map";
14006
- O(Ve, be.posMatrix, u, a, Tn, Hn, H, b, Xn, Z, be.toUnwrapped(), V.width, V.height, In, qt);
14005
+ const $t = u.style.map.terrain ? (Fa, ri) => u.style.map.terrain.getElevation(we, Fa, ri) : null, Xn = n.layout.get("text-rotation-alignment") === "map";
14006
+ O(Ve, we.posMatrix, u, a, Tn, Hn, H, b, Xn, Z, we.toUnwrapped(), V.width, V.height, In, $t);
14007
14007
  }
14008
- const ci = be.posMatrix, cr = a && ve || Ra, rn = K || cr ? ra : Tn, Wn = wo, yi = ke && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
14008
+ const ci = we.posMatrix, cr = a && be || Ra, rn = K || cr ? ra : Tn, Wn = wo, yi = ke && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
14009
14009
  let xi;
14010
14010
  xi = ke ? Ve.iconsInText ? zc(Qe.kind, pt, j, H, K, cr, u, ci, rn, Wn, In, mi, Ai, Le) : fl(Qe.kind, pt, j, H, K, cr, u, ci, rn, Wn, In, a, mi, !0, Le) : pl(Qe.kind, pt, j, H, K, cr, u, ci, rn, Wn, In, a, mi, Le);
14011
14011
  const oi = { program: ot, buffers: tt, uniformValues: xi, atlasTexture: ar, atlasTextureIcon: gi, atlasInterpolation: Vt, atlasInterpolationIcon: Di, isSDF: ke, hasHalo: yi };
14012
14012
  if (ne && Ve.canOverlap) {
14013
14013
  le = !0;
14014
- const qt = tt.segments.get();
14015
- for (const Xn of qt) ze.push({ segments: new c.a0([Xn]), sortKey: Xn.sortKey, state: oi, terrainData: Ot });
14014
+ const $t = tt.segments.get();
14015
+ for (const Xn of $t) ze.push({ segments: new c.a0([Xn]), sortKey: Xn.sortKey, state: oi, terrainData: Ot });
14016
14016
  } else ze.push({ segments: tt.segments, sortKey: 0, state: oi, terrainData: Ot });
14017
14017
  }
14018
- le && ze.sort((be, Se) => be.sortKey - Se.sortKey);
14019
- for (const be of ze) {
14020
- const Se = be.state;
14018
+ le && ze.sort((we, Se) => we.sortKey - Se.sortKey);
14019
+ for (const we of ze) {
14020
+ const Se = we.state;
14021
14021
  if (L.activeTexture.set(F.TEXTURE0), Se.atlasTexture.bind(Se.atlasInterpolation, F.CLAMP_TO_EDGE), Se.atlasTextureIcon && (L.activeTexture.set(F.TEXTURE1), Se.atlasTextureIcon && Se.atlasTextureIcon.bind(Se.atlasInterpolationIcon, F.CLAMP_TO_EDGE)), Se.isSDF) {
14022
14022
  const Ve = Se.uniformValues;
14023
- Se.hasHalo && (Ve.u_is_halo = 1, _n(Se.buffers, be.segments, n, u, Se.program, me, P, A, Ve, be.terrainData)), Ve.u_is_halo = 0;
14023
+ Se.hasHalo && (Ve.u_is_halo = 1, _n(Se.buffers, we.segments, n, u, Se.program, me, P, A, Ve, we.terrainData)), Ve.u_is_halo = 0;
14024
14024
  }
14025
- _n(Se.buffers, be.segments, n, u, Se.program, me, P, A, Se.uniformValues, be.terrainData);
14025
+ _n(Se.buffers, we.segments, n, u, Se.program, me, P, A, Se.uniformValues, we.terrainData);
14026
14026
  }
14027
14027
  }
14028
14028
  function _n(u, t, n, o, a, h, m, _, v, b) {
@@ -14051,7 +14051,7 @@ uniform ${P} ${A} u_${L};
14051
14051
  if (!ee) continue;
14052
14052
  const ne = ee.programConfigurations.get(n.id), le = u.useProgram(F, ne), me = u.style.map.terrain && u.style.map.terrain.getTerrainData(K);
14053
14053
  P && (u.context.activeTexture.set(_.TEXTURE0), j.imageAtlasTexture.bind(_.LINEAR, _.CLAMP_TO_EDGE), ne.updatePaintBuffers(A)), Zi(ne, v, H, j, n);
14054
- const ve = me ? K : null, ze = u.translatePosMatrix(ve ? ve.posMatrix : K.posMatrix, j, n.paint.get("fill-translate"), n.paint.get("fill-translate-anchor"));
14054
+ const be = me ? K : null, ze = u.translatePosMatrix(be ? be.posMatrix : K.posMatrix, j, n.paint.get("fill-translate"), n.paint.get("fill-translate-anchor"));
14055
14055
  if (m) {
14056
14056
  Z = ee.indexBuffer2, U = ee.segments2;
14057
14057
  const Le = [_.drawingBufferWidth, _.drawingBufferHeight];
@@ -14314,14 +14314,14 @@ uniform ${P} ${A} u_${L};
14314
14314
  if (h.renderPass !== "translucent") return;
14315
14315
  const P = Ut.disabled, A = h.colorModeForRenderPass();
14316
14316
  (_._unevaluatedLayout.hasValue("text-variable-anchor") || _._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(L, F, V, Z, U, H, K, j, ee) {
14317
- const ne = F.transform, le = Zs(), me = U === "map", ve = H === "map";
14317
+ const ne = F.transform, le = Zs(), me = U === "map", be = H === "map";
14318
14318
  for (const ze of L) {
14319
- const Le = Z.getTile(ze), be = Le.getBucket(V);
14320
- if (!be || !be.text || !be.text.segments.get().length) continue;
14321
- const Se = c.ah(be.textSizeData, ne.zoom), Ve = nt(Le, 1, F.transform.zoom), tt = Xr(ze.posMatrix, ve, me, F.transform, Ve), Pe = V.layout.get("icon-text-fit") !== "none" && be.hasIconData();
14319
+ const Le = Z.getTile(ze), we = Le.getBucket(V);
14320
+ if (!we || !we.text || !we.text.segments.get().length) continue;
14321
+ const Se = c.ah(we.textSizeData, ne.zoom), Ve = nt(Le, 1, F.transform.zoom), tt = Xr(ze.posMatrix, be, me, F.transform, Ve), Pe = V.layout.get("icon-text-fit") !== "none" && we.hasIconData();
14322
14322
  if (Se) {
14323
14323
  const ke = Math.pow(2, ne.zoom - Le.tileID.overscaledZ), Qe = F.style.map.terrain ? (ot, pt) => F.style.map.terrain.getElevation(ze, ot, pt) : null, Bt = le.translatePosition(ne, Le, K, j);
14324
- oo(be, me, ve, ee, ne, tt, ze.posMatrix, ke, Se, Pe, le, Bt, ze.toUnwrapped(), Qe);
14324
+ oo(we, me, be, ee, ne, tt, ze.posMatrix, ke, Se, Pe, le, Bt, ze.toUnwrapped(), Qe);
14325
14325
  }
14326
14326
  }
14327
14327
  }(v, h, _, 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 && Qr(h, m, _, v, !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"), P, A), _.paint.get("text-opacity").constantOr(1) !== 0 && Qr(h, m, _, v, !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"), P, A), m.map.showCollisionBoxes && (Cl(h, m, _, v, !0), Cl(h, m, _, v, !1));
@@ -14336,7 +14336,7 @@ uniform ${P} ${A} u_${L};
14336
14336
  for (let j = 0; j < v.length; j++) {
14337
14337
  const ee = v[j], ne = m.getTile(ee), le = ne.getBucket(_);
14338
14338
  if (!le) continue;
14339
- const me = le.programConfigurations.get(_.id), ve = h.useProgram("circle", me), ze = le.layoutVertexBuffer, Le = le.indexBuffer, be = h.style.map.terrain && h.style.map.terrain.getTerrainData(ee), Se = { programConfiguration: me, program: ve, layoutVertexBuffer: ze, indexBuffer: Le, uniformValues: cl(h, ee, ne, _), terrainData: be };
14339
+ const me = le.programConfigurations.get(_.id), be = h.useProgram("circle", me), ze = le.layoutVertexBuffer, Le = le.indexBuffer, we = h.style.map.terrain && h.style.map.terrain.getTerrainData(ee), Se = { programConfiguration: me, program: be, layoutVertexBuffer: ze, indexBuffer: Le, uniformValues: cl(h, ee, ne, _), terrainData: we };
14340
14340
  if (L) {
14341
14341
  const Ve = le.segments.get();
14342
14342
  for (const tt of Ve) K.push({ segments: new c.a0([tt]), sortKey: tt.sortKey, state: Se });
@@ -14344,8 +14344,8 @@ uniform ${P} ${A} u_${L};
14344
14344
  }
14345
14345
  L && K.sort((j, ee) => j.sortKey - ee.sortKey);
14346
14346
  for (const j of K) {
14347
- const { programConfiguration: ee, program: ne, layoutVertexBuffer: le, indexBuffer: me, uniformValues: ve, terrainData: ze } = j.state;
14348
- ne.draw(F, V.TRIANGLES, Z, U, H, Rt.disabled, ve, ze, _.id, le, me, j.segments, _.paint, h.transform.zoom, ee);
14347
+ const { programConfiguration: ee, program: ne, layoutVertexBuffer: le, indexBuffer: me, uniformValues: be, terrainData: ze } = j.state;
14348
+ ne.draw(F, V.TRIANGLES, Z, U, H, Rt.disabled, be, ze, _.id, le, me, j.segments, _.paint, h.transform.zoom, ee);
14349
14349
  }
14350
14350
  })(t, n, o, a);
14351
14351
  break;
@@ -14361,9 +14361,9 @@ uniform ${P} ${A} u_${L};
14361
14361
  else {
14362
14362
  const K = U.createTexture();
14363
14363
  U.bindTexture(U.TEXTURE_2D, K), U.texParameteri(U.TEXTURE_2D, U.TEXTURE_WRAP_S, U.CLAMP_TO_EDGE), U.texParameteri(U.TEXTURE_2D, U.TEXTURE_WRAP_T, U.CLAMP_TO_EDGE), U.texParameteri(U.TEXTURE_2D, U.TEXTURE_MIN_FILTER, U.LINEAR), U.texParameteri(U.TEXTURE_2D, U.TEXTURE_MAG_FILTER, U.LINEAR), H = Z.heatmapFbo = F.createFramebuffer(V.width / 4, V.height / 4, !1, !1), function(j, ee, ne, le) {
14364
- var me, ve;
14365
- const ze = j.gl, Le = (me = j.HALF_FLOAT) !== null && me !== void 0 ? me : ze.UNSIGNED_BYTE, be = (ve = j.RGBA16F) !== null && ve !== void 0 ? ve : ze.RGBA;
14366
- ze.texImage2D(ze.TEXTURE_2D, 0, be, ee.width / 4, ee.height / 4, 0, ze.RGBA, Le, null), le.colorAttachment.set(ne);
14364
+ var me, be;
14365
+ const ze = j.gl, Le = (me = j.HALF_FLOAT) !== null && me !== void 0 ? me : ze.UNSIGNED_BYTE, we = (be = j.RGBA16F) !== null && be !== void 0 ? be : ze.RGBA;
14366
+ ze.texImage2D(ze.TEXTURE_2D, 0, we, ee.width / 4, ee.height / 4, 0, ze.RGBA, Le, null), le.colorAttachment.set(ne);
14367
14367
  }(F, V, K, H);
14368
14368
  }
14369
14369
  })(b, h, _), b.clear({ color: c.aN.transparent });
@@ -14400,30 +14400,30 @@ uniform ${P} ${A} u_${L};
14400
14400
  for (const le of v) {
14401
14401
  const me = m.getTile(le);
14402
14402
  if (Z && !me.patternsLoaded()) continue;
14403
- const ve = me.getBucket(_);
14404
- if (!ve) continue;
14405
- const ze = ve.programConfigurations.get(_.id), Le = h.context.program.get(), be = h.useProgram(K, ze), Se = ne || be.program !== Le, Ve = h.style.map.terrain && h.style.map.terrain.getTerrainData(le), tt = V.constantOr(null);
14403
+ const be = me.getBucket(_);
14404
+ if (!be) continue;
14405
+ const ze = be.programConfigurations.get(_.id), Le = h.context.program.get(), we = h.useProgram(K, ze), Se = ne || we.program !== Le, Ve = h.style.map.terrain && h.style.map.terrain.getTerrainData(le), tt = V.constantOr(null);
14406
14406
  if (tt && me.imageAtlas) {
14407
14407
  const Qe = me.imageAtlas, Bt = Qe.patternPositions[tt.to.toString()], ot = Qe.patternPositions[tt.from.toString()];
14408
14408
  Bt && ot && ze.setConstantPatternPositions(Bt, ot);
14409
14409
  }
14410
- const Pe = Ve ? le : null, ke = Z ? hl(h, me, _, H, Pe) : F ? ul(h, me, _, F, H, Pe) : U ? Ys(h, me, _, ve.lineClipsArray.length, Pe) : _s(h, me, _, Pe);
14410
+ const Pe = Ve ? le : null, ke = Z ? hl(h, me, _, H, Pe) : F ? ul(h, me, _, F, H, Pe) : U ? Ys(h, me, _, be.lineClipsArray.length, Pe) : _s(h, me, _, Pe);
14411
14411
  if (Z) j.activeTexture.set(ee.TEXTURE0), me.imageAtlasTexture.bind(ee.LINEAR, ee.CLAMP_TO_EDGE), ze.updatePaintBuffers(H);
14412
14412
  else if (F && (Se || h.lineAtlas.dirty)) j.activeTexture.set(ee.TEXTURE0), h.lineAtlas.bind(j);
14413
14413
  else if (U) {
14414
- const Qe = ve.gradients[_.id];
14414
+ const Qe = be.gradients[_.id];
14415
14415
  let Bt = Qe.texture;
14416
14416
  if (_.gradientVersion !== Qe.version) {
14417
14417
  let ot = 256;
14418
14418
  if (_.stepInterpolant) {
14419
14419
  const pt = m.getSource().maxzoom, Ot = le.canonical.z === pt ? Math.ceil(1 << h.transform.maxZoom - le.canonical.z) : 1;
14420
- ot = c.ad(c.aV(ve.maxLineLength / c.X * 1024 * Ot), 256, j.maxTextureSize);
14420
+ ot = c.ad(c.aV(be.maxLineLength / c.X * 1024 * Ot), 256, j.maxTextureSize);
14421
14421
  }
14422
- Qe.gradient = c.aW({ expression: _.gradientExpression(), evaluationKey: "lineProgress", resolution: ot, image: Qe.gradient || void 0, clips: ve.lineClipsArray }), Qe.texture ? Qe.texture.update(Qe.gradient) : Qe.texture = new bt(j, Qe.gradient, ee.RGBA), Qe.version = _.gradientVersion, Bt = Qe.texture;
14422
+ Qe.gradient = c.aW({ expression: _.gradientExpression(), evaluationKey: "lineProgress", resolution: ot, image: Qe.gradient || void 0, clips: be.lineClipsArray }), Qe.texture ? Qe.texture.update(Qe.gradient) : Qe.texture = new bt(j, Qe.gradient, ee.RGBA), Qe.version = _.gradientVersion, Bt = Qe.texture;
14423
14423
  }
14424
14424
  j.activeTexture.set(ee.TEXTURE0), Bt.bind(_.stepInterpolant ? ee.NEAREST : ee.LINEAR, ee.CLAMP_TO_EDGE);
14425
14425
  }
14426
- be.draw(j, ee.TRIANGLES, A, h.stencilModeForClipping(le), L, Rt.disabled, ke, Ve, _.id, ve.layoutVertexBuffer, ve.indexBuffer, ve.segments, _.paint, h.transform.zoom, ze, ve.layoutVertexBuffer2), ne = !1;
14426
+ we.draw(j, ee.TRIANGLES, A, h.stencilModeForClipping(le), L, Rt.disabled, ke, Ve, _.id, be.layoutVertexBuffer, be.indexBuffer, be.segments, _.paint, h.transform.zoom, ze, be.layoutVertexBuffer2), ne = !1;
14427
14427
  }
14428
14428
  })(t, n, o, a);
14429
14429
  break;
@@ -14469,16 +14469,16 @@ uniform ${P} ${A} u_${L};
14469
14469
  case "raster":
14470
14470
  (function(h, m, _, v) {
14471
14471
  if (h.renderPass !== "translucent" || _.paint.get("raster-opacity") === 0 || !v.length) return;
14472
- const b = h.context, P = b.gl, A = m.getSource(), L = h.useProgram("raster"), F = h.colorModeForRenderPass(), [V, Z] = A instanceof Dr ? [{}, v] : h.stencilConfigForOverlap(v), U = Z[Z.length - 1].overscaledZ, H = !h.options.moving;
14472
+ const b = h.context, P = b.gl, A = m.getSource(), L = h.useProgram("raster"), F = h.colorModeForRenderPass(), [V, Z] = A instanceof zr ? [{}, v] : h.stencilConfigForOverlap(v), U = Z[Z.length - 1].overscaledZ, H = !h.options.moving;
14473
14473
  for (const K of Z) {
14474
14474
  const j = h.depthModeForSublayer(K.overscaledZ - U, _.paint.get("raster-opacity") === 1 ? dt.ReadWrite : dt.ReadOnly, P.LESS), ee = m.getTile(K);
14475
14475
  ee.registerFadeDuration(_.paint.get("raster-fade-duration"));
14476
14476
  const ne = m.findLoadedParent(K, 0), le = m.findLoadedSibling(K), me = lo(ee, ne || le || null, m, _, h.transform, h.style.map.terrain);
14477
- let ve, ze;
14477
+ let be, ze;
14478
14478
  const Le = _.paint.get("raster-resampling") === "nearest" ? P.NEAREST : P.LINEAR;
14479
- b.activeTexture.set(P.TEXTURE0), ee.texture.bind(Le, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), b.activeTexture.set(P.TEXTURE1), ne ? (ne.texture.bind(Le, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), ve = Math.pow(2, ne.tileID.overscaledZ - ee.tileID.overscaledZ), ze = [ee.tileID.canonical.x * ve % 1, ee.tileID.canonical.y * ve % 1]) : ee.texture.bind(Le, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), ee.texture.useMipmap && b.extTextureFilterAnisotropic && h.transform.pitch > 20 && P.texParameterf(P.TEXTURE_2D, b.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, b.extTextureFilterAnisotropicMax);
14480
- const be = h.style.map.terrain && h.style.map.terrain.getTerrainData(K), Se = be ? K : null, Ve = Se ? Se.posMatrix : h.transform.calculatePosMatrix(K.toUnwrapped(), H), tt = Ec(Ve, ze || [0, 0], ve || 1, me, _);
14481
- A instanceof Dr ? L.draw(b, P.TRIANGLES, j, Ut.disabled, F, Rt.disabled, tt, be, _.id, A.boundsBuffer, h.quadTriangleIndexBuffer, A.boundsSegments) : L.draw(b, P.TRIANGLES, j, V[K.overscaledZ], F, Rt.disabled, tt, be, _.id, h.rasterBoundsBuffer, h.quadTriangleIndexBuffer, h.rasterBoundsSegments);
14479
+ b.activeTexture.set(P.TEXTURE0), ee.texture.bind(Le, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), b.activeTexture.set(P.TEXTURE1), ne ? (ne.texture.bind(Le, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), be = Math.pow(2, ne.tileID.overscaledZ - ee.tileID.overscaledZ), ze = [ee.tileID.canonical.x * be % 1, ee.tileID.canonical.y * be % 1]) : ee.texture.bind(Le, P.CLAMP_TO_EDGE, P.LINEAR_MIPMAP_NEAREST), ee.texture.useMipmap && b.extTextureFilterAnisotropic && h.transform.pitch > 20 && P.texParameterf(P.TEXTURE_2D, b.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, b.extTextureFilterAnisotropicMax);
14480
+ const we = h.style.map.terrain && h.style.map.terrain.getTerrainData(K), Se = we ? K : null, Ve = Se ? Se.posMatrix : h.transform.calculatePosMatrix(K.toUnwrapped(), H), tt = Ec(Ve, ze || [0, 0], be || 1, me, _);
14481
+ A instanceof zr ? L.draw(b, P.TRIANGLES, j, Ut.disabled, F, Rt.disabled, tt, we, _.id, A.boundsBuffer, h.quadTriangleIndexBuffer, A.boundsSegments) : L.draw(b, P.TRIANGLES, j, V[K.overscaledZ], F, Rt.disabled, tt, we, _.id, h.rasterBoundsBuffer, h.quadTriangleIndexBuffer, h.rasterBoundsSegments);
14482
14482
  }
14483
14483
  })(t, n, o, a);
14484
14484
  break;
@@ -14494,7 +14494,7 @@ uniform ${P} ${A} u_${L};
14494
14494
  Z && (A.activeTexture.set(L.TEXTURE0), h.imageManager.bind(h.context));
14495
14495
  const le = _.getCrossfadeParameters();
14496
14496
  for (const me of ne) {
14497
- const ve = v ? me.posMatrix : h.transform.calculatePosMatrix(me.toUnwrapped()), ze = Z ? Go(ve, P, h, Z, { tileID: me, tileSize: V }, le) : Qs(ve, P, b), Le = h.style.map.terrain && h.style.map.terrain.getTerrainData(me);
14497
+ const be = v ? me.posMatrix : h.transform.calculatePosMatrix(me.toUnwrapped()), ze = Z ? Go(be, P, h, Z, { tileID: me, tileSize: V }, le) : Qs(be, P, b), Le = h.style.map.terrain && h.style.map.terrain.getTerrainData(me);
14498
14498
  ee.draw(A, L.TRIANGLES, K, H, j, Rt.disabled, ze, Le, _.id, h.tileExtentBuffer, h.quadTriangleIndexBuffer, h.tileExtentSegments);
14499
14499
  }
14500
14500
  })(t, 0, o, a);
@@ -14783,17 +14783,17 @@ uniform ${P} ${A} u_${L};
14783
14783
  const j = Z.pop(), ee = j.x, ne = j.y;
14784
14784
  let le = j.fullyVisible;
14785
14785
  if (!le) {
14786
- const be = j.aabb.intersects(A);
14787
- if (be === 0) continue;
14788
- le = be === 2;
14786
+ const we = j.aabb.intersects(A);
14787
+ if (we === 0) continue;
14788
+ le = we === 2;
14789
14789
  }
14790
- const me = t.terrain ? b : P, ve = j.aabb.distanceX(me), ze = j.aabb.distanceY(me), Le = Math.max(Math.abs(ve), Math.abs(ze));
14790
+ const me = t.terrain ? b : P, be = j.aabb.distanceX(me), ze = j.aabb.distanceY(me), Le = Math.max(Math.abs(be), Math.abs(ze));
14791
14791
  if (j.zoom === H || Le > F + (1 << H - j.zoom) - 2 && j.zoom >= L) {
14792
- const be = H - j.zoom, Se = b[0] - 0.5 - (ee << be), Ve = b[1] - 0.5 - (ne << be);
14792
+ const we = H - j.zoom, Se = b[0] - 0.5 - (ee << we), Ve = b[1] - 0.5 - (ne << we);
14793
14793
  U.push({ tileID: new c.S(j.zoom === H ? K : j.zoom, j.wrap, j.zoom, ee, ne), distanceSq: er([P[0] - 0.5 - ee, P[1] - 0.5 - ne]), tileDistanceToCamera: Math.sqrt(Se * Se + Ve * Ve) });
14794
- } else for (let be = 0; be < 4; be++) {
14795
- const Se = (ee << 1) + be % 2, Ve = (ne << 1) + (be >> 1), tt = j.zoom + 1;
14796
- let Pe = j.aabb.quadrant(be);
14794
+ } else for (let we = 0; we < 4; we++) {
14795
+ const Se = (ee << 1) + we % 2, Ve = (ne << 1) + (we >> 1), tt = j.zoom + 1;
14796
+ let Pe = j.aabb.quadrant(we);
14797
14797
  if (t.terrain) {
14798
14798
  const ke = new c.S(tt, j.wrap, tt, Se, Ve), Qe = t.terrain.getMinMaxElevation(ke), Bt = (n = Qe.minElevation) !== null && n !== void 0 ? n : this.elevation, ot = (o = Qe.maxElevation) !== null && o !== void 0 ? o : this.elevation;
14799
14799
  Pe = new uo([Pe.min[0], Pe.min[1], Bt], [Pe.max[0], Pe.max[1], ot]);
@@ -15593,7 +15593,7 @@ uniform ${P} ${A} u_${L};
15593
15593
  return Math.abs(o) < n;
15594
15594
  }
15595
15595
  }
15596
- function Br(u) {
15596
+ function Fr(u) {
15597
15597
  return Math.abs(u.y) > Math.abs(u.x);
15598
15598
  }
15599
15599
  class wa extends Cs {
@@ -15607,7 +15607,7 @@ uniform ${P} ${A} u_${L};
15607
15607
  super.touchstart(t, n, o), this._currentTouchCount = o.length;
15608
15608
  }
15609
15609
  _start(t) {
15610
- this._lastPoints = t, Br(t[0].sub(t[1])) && (this._valid = !1);
15610
+ this._lastPoints = t, Fr(t[0].sub(t[1])) && (this._valid = !1);
15611
15611
  }
15612
15612
  _move(t, n, o) {
15613
15613
  if (this._map.cooperativeGestures.isEnabled() && this._currentTouchCount < 3) return;
@@ -15620,7 +15620,7 @@ uniform ${P} ${A} u_${L};
15620
15620
  if (!a && !h) return;
15621
15621
  if (!a || !h) return this._firstMove === void 0 && (this._firstMove = o), o - this._firstMove < 100 && void 0;
15622
15622
  const m = t.y > 0 == n.y > 0;
15623
- return Br(t) && Br(n) && m;
15623
+ return Fr(t) && Fr(n) && m;
15624
15624
  }
15625
15625
  }
15626
15626
  const Ll = { panStep: 100, bearingStep: 15, pitchStep: 10 };
@@ -15952,7 +15952,7 @@ uniform ${P} ${A} u_${L};
15952
15952
  }, 100));
15953
15953
  }
15954
15954
  }
15955
- const Or = (u) => u.zoom || u.drag || u.pitch || u.rotate;
15955
+ const Br = (u) => u.zoom || u.drag || u.pitch || u.rotate;
15956
15956
  class Uc extends c.k {
15957
15957
  }
15958
15958
  function Ca(u) {
@@ -16031,7 +16031,7 @@ uniform ${P} ${A} u_${L};
16031
16031
  return !!this._eventsInProgress.rotate;
16032
16032
  }
16033
16033
  isMoving() {
16034
- return !!Or(this._eventsInProgress) || this.isZooming();
16034
+ return !!Br(this._eventsInProgress) || this.isZooming();
16035
16035
  }
16036
16036
  _blockedByActive(t, n, o) {
16037
16037
  for (const a in t) if (a !== o && (!n || n.indexOf(a) < 0)) return !0;
@@ -16062,7 +16062,7 @@ uniform ${P} ${A} u_${L};
16062
16062
  b && (h.bearing += b), P && (h.pitch += P), v && (h.zoom += v), m ? this._terrainMovement || !n.drag && !n.zoom ? n.drag && this._terrainMovement ? h.center = h.pointLocation(h.centerPoint.sub(_)) : h.setLocationAtPoint(F, A) : (this._terrainMovement = !0, this._map._elevationFreeze = !0, h.setLocationAtPoint(F, A)) : h.setLocationAtPoint(F, A), a._applyUpdatedTransform(h), this._map._update(), t.noInertia || this._inertia.record(t), this._fireEvents(n, o, !0);
16063
16063
  }
16064
16064
  _fireEvents(t, n, o) {
16065
- const a = Or(this._eventsInProgress), h = Or(t), m = {};
16065
+ const a = Br(this._eventsInProgress), h = Br(t), m = {};
16066
16066
  for (const A in t) {
16067
16067
  const { originalEvent: L } = t[A];
16068
16068
  this._eventsInProgress[A] || (m[`${A}start`] = L), this._eventsInProgress[A] = t[A];
@@ -16081,7 +16081,7 @@ uniform ${P} ${A} u_${L};
16081
16081
  this._handlersById[L].isActive() || (delete this._eventsInProgress[A], v = n[L] || F, _[`${A}end`] = v);
16082
16082
  }
16083
16083
  for (const A in _) this._fireEvent(A, _[A]);
16084
- const b = Or(this._eventsInProgress), P = (a || h) && !b;
16084
+ const b = Br(this._eventsInProgress), P = (a || h) && !b;
16085
16085
  if (P && this._terrainMovement) {
16086
16086
  this._map._elevationFreeze = !1, this._terrainMovement = !1;
16087
16087
  const A = this._map._getTransformForUpdate();
@@ -16179,13 +16179,13 @@ uniform ${P} ${A} u_${L};
16179
16179
  _cameraForBoxAndBearing(t, n, o, a) {
16180
16180
  const h = { top: 0, bottom: 0, right: 0, left: 0 };
16181
16181
  if (typeof (a = c.e({ padding: h, offset: [0, 0], maxZoom: this.transform.maxZoom }, a)).padding == "number") {
16182
- const be = a.padding;
16183
- a.padding = { top: be, bottom: be, right: be, left: be };
16182
+ const we = a.padding;
16183
+ a.padding = { top: we, bottom: we, right: we, left: we };
16184
16184
  }
16185
16185
  a.padding = c.e(h, a.padding);
16186
16186
  const m = this.transform, _ = m.padding, v = new he(t, n), b = m.project(v.getNorthWest()), P = m.project(v.getNorthEast()), A = m.project(v.getSouthEast()), L = m.project(v.getSouthWest()), F = c.ba(-o), V = b.rotate(F), Z = P.rotate(F), U = A.rotate(F), H = L.rotate(F), K = new c.P(Math.max(V.x, Z.x, H.x, U.x), Math.max(V.y, Z.y, H.y, U.y)), j = new c.P(Math.min(V.x, Z.x, H.x, U.x), Math.min(V.y, Z.y, H.y, U.y)), ee = K.sub(j), ne = (m.width - (_.left + _.right + a.padding.left + a.padding.right)) / ee.x, le = (m.height - (_.top + _.bottom + a.padding.top + a.padding.bottom)) / ee.y;
16187
16187
  if (le < 0 || ne < 0) return void c.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");
16188
- const me = Math.min(m.scaleZoom(m.scale * Math.min(ne, le)), a.maxZoom), ve = c.P.convert(a.offset), ze = new c.P((a.padding.left - a.padding.right) / 2, (a.padding.top - a.padding.bottom) / 2).rotate(c.ba(o)), Le = ve.add(ze).mult(m.scale / m.zoomScale(me));
16188
+ const me = Math.min(m.scaleZoom(m.scale * Math.min(ne, le)), a.maxZoom), be = c.P.convert(a.offset), ze = new c.P((a.padding.left - a.padding.right) / 2, (a.padding.top - a.padding.bottom) / 2).rotate(c.ba(o)), Le = be.add(ze).mult(m.scale / m.zoomScale(me));
16189
16189
  return { center: m.unproject(b.add(A).div(2).sub(Le)), zoom: me, bearing: o };
16190
16190
  }
16191
16191
  fitBounds(t, n, o) {
@@ -16224,8 +16224,8 @@ uniform ${P} ${A} u_${L};
16224
16224
  return this._zooming = this._zooming || U !== h, this._rotating = this._rotating || m !== b, this._pitching = this._pitching || P !== _, this._padding = !a.isPaddingEqual(A), this._easeId = t.easeId, this._prepareEase(n, t.noMoveStart, le), this.terrain && this._prepareElevation(Z), this._ease((me) => {
16225
16225
  if (this._zooming && (a.zoom = c.z.number(h, U, me)), this._rotating && (a.bearing = c.z.number(m, b, me)), this._pitching && (a.pitch = c.z.number(_, P, me)), this._padding && (a.interpolatePadding(v, A, me), F = a.centerPoint.add(L)), this.terrain && !t.freezeElevation && this._updateElevation(me), ee) a.setLocationAtPoint(ee, ne);
16226
16226
  else {
16227
- const ve = a.zoomScale(a.zoom - h), ze = U > h ? Math.min(2, j) : Math.max(0.5, j), Le = Math.pow(ze, 1 - me), be = a.unproject(H.add(K.mult(me * Le)).mult(ve));
16228
- a.setLocationAtPoint(a.renderWorldCopies ? be.wrap() : be, F);
16227
+ const be = a.zoomScale(a.zoom - h), ze = U > h ? Math.min(2, j) : Math.max(0.5, j), Le = Math.pow(ze, 1 - me), we = a.unproject(H.add(K.mult(me * Le)).mult(be));
16228
+ a.setLocationAtPoint(a.renderWorldCopies ? we.wrap() : we, F);
16229
16229
  }
16230
16230
  this._applyUpdatedTransform(a), this._fireMoveEvents(n);
16231
16231
  }, (me) => {
@@ -16298,22 +16298,22 @@ uniform ${P} ${A} u_${L};
16298
16298
  const ke = c.ad(Math.min(t.minZoom, h, U), a.minZoom, a.maxZoom), Qe = ne / a.zoomScale(ke - h);
16299
16299
  ee = Math.sqrt(Qe / me * 2);
16300
16300
  }
16301
- const ve = ee * ee;
16301
+ const be = ee * ee;
16302
16302
  function ze(ke) {
16303
- const Qe = (le * le - ne * ne + (ke ? -1 : 1) * ve * ve * me * me) / (2 * (ke ? le : ne) * ve * me);
16303
+ const Qe = (le * le - ne * ne + (ke ? -1 : 1) * be * be * me * me) / (2 * (ke ? le : ne) * be * me);
16304
16304
  return Math.log(Math.sqrt(Qe * Qe + 1) - Qe);
16305
16305
  }
16306
16306
  function Le(ke) {
16307
16307
  return (Math.exp(ke) - Math.exp(-ke)) / 2;
16308
16308
  }
16309
- function be(ke) {
16309
+ function we(ke) {
16310
16310
  return (Math.exp(ke) + Math.exp(-ke)) / 2;
16311
16311
  }
16312
16312
  const Se = ze(!1);
16313
16313
  let Ve = function(ke) {
16314
- return be(Se) / be(Se + ee * ke);
16314
+ return we(Se) / we(Se + ee * ke);
16315
16315
  }, tt = function(ke) {
16316
- return ne * ((be(Se) * (Le(Qe = Se + ee * ke) / be(Qe)) - Le(Se)) / ve) / me;
16316
+ return ne * ((we(Se) * (Le(Qe = Se + ee * ke) / we(Qe)) - Le(Se)) / be) / me;
16317
16317
  var Qe;
16318
16318
  }, Pe = (ze(!0) - Se) / ee;
16319
16319
  if (Math.abs(me) < 1e-6 || !isFinite(Pe)) {
@@ -17175,7 +17175,7 @@ uniform ${P} ${A} u_${L};
17175
17175
  _clearWatch() {
17176
17176
  window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0, this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "false"), this.options.showUserLocation && this._updateMarker(null);
17177
17177
  }
17178
- }, S.Hash = Ts, S.ImageSource = Dr, S.KeyboardHandler = Sa, S.LngLatBounds = he, S.LogoControl = Sr, S.Map = class extends qc {
17178
+ }, S.Hash = Ts, S.ImageSource = zr, S.KeyboardHandler = Sa, S.LngLatBounds = he, S.LogoControl = Sr, S.Map = class extends qc {
17179
17179
  constructor(u) {
17180
17180
  c.be.mark(c.bf.create);
17181
17181
  const t = Object.assign(Object.assign({}, Zc), u);
@@ -17909,9 +17909,9 @@ uniform ${P} ${A} u_${L};
17909
17909
  return J;
17910
17910
  });
17911
17911
  })(tp);
17912
- var Dm = tp.exports;
17913
- const Oh = /* @__PURE__ */ zm(Dm);
17914
- function Lm(y) {
17912
+ var Lm = tp.exports;
17913
+ const Oh = /* @__PURE__ */ Dm(Lm);
17914
+ function Rm(y) {
17915
17915
  return [
17916
17916
  {
17917
17917
  type: "fill",
@@ -17923,7 +17923,7 @@ function Lm(y) {
17923
17923
  }
17924
17924
  ];
17925
17925
  }
17926
- function Rm(y) {
17926
+ function Fm(y) {
17927
17927
  return [
17928
17928
  {
17929
17929
  type: "line",
@@ -17934,7 +17934,7 @@ function Rm(y) {
17934
17934
  }
17935
17935
  ];
17936
17936
  }
17937
- function Fm(y) {
17937
+ function Bm(y) {
17938
17938
  return [
17939
17939
  {
17940
17940
  type: "circle",
@@ -17950,7 +17950,7 @@ function Fm(y) {
17950
17950
  function Bd(y) {
17951
17951
  if (!y) return null;
17952
17952
  const T = y.type || "point";
17953
- return T === "polygon" ? Lm(y) : T === "line" ? Rm(y) : Fm(y);
17953
+ return T === "polygon" ? Rm(y) : T === "line" ? Fm(y) : Bm(y);
17954
17954
  }
17955
17955
  const Gh = {
17956
17956
  data() {
@@ -18071,47 +18071,47 @@ const Gh = {
18071
18071
  for (const [D, N] of T)
18072
18072
  z[D] = N;
18073
18073
  return z;
18074
- }, Bm = {}, Om = {
18074
+ }, Om = {}, Vm = {
18075
18075
  class: "w-48 mx-auto mb-4",
18076
18076
  width: "178",
18077
18077
  height: "90",
18078
18078
  viewBox: "0 0 178 90",
18079
18079
  fill: "none",
18080
18080
  xmlns: "http://www.w3.org/2000/svg"
18081
- }, Vm = /* @__PURE__ */ Qd('<rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter2)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter2" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs>', 12), Nm = [
18082
- Vm
18081
+ }, Nm = /* @__PURE__ */ Qd('<rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter2)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter2" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs>', 12), jm = [
18082
+ Nm
18083
18083
  ];
18084
- function jm(y, T) {
18085
- return St(), $t("svg", Om, Nm);
18084
+ function Um(y, T) {
18085
+ return It(), qt("svg", Vm, jm);
18086
18086
  }
18087
- const Um = /* @__PURE__ */ cn(Bm, [["render", jm]]);
18087
+ const $m = /* @__PURE__ */ cn(Om, [["render", Um]]);
18088
18088
  function rp(y, T) {
18089
18089
  return function() {
18090
18090
  return y.apply(T, arguments);
18091
18091
  };
18092
18092
  }
18093
- const { toString: $m } = Object.prototype, { getPrototypeOf: Hh } = Object, bc = /* @__PURE__ */ ((y) => (T) => {
18094
- const z = $m.call(T);
18093
+ const { toString: qm } = Object.prototype, { getPrototypeOf: Hh } = Object, bc = /* @__PURE__ */ ((y) => (T) => {
18094
+ const z = qm.call(T);
18095
18095
  return y[z] || (y[z] = z.slice(8, -1).toLowerCase());
18096
18096
  })(/* @__PURE__ */ Object.create(null)), $r = (y) => (y = y.toLowerCase(), (T) => bc(T) === y), wc = (y) => (T) => typeof T === y, { isArray: No } = Array, ol = wc("undefined");
18097
- function qm(y) {
18097
+ function Zm(y) {
18098
18098
  return y !== null && !ol(y) && y.constructor !== null && !ol(y.constructor) && mr(y.constructor.isBuffer) && y.constructor.isBuffer(y);
18099
18099
  }
18100
18100
  const np = $r("ArrayBuffer");
18101
- function Zm(y) {
18101
+ function Gm(y) {
18102
18102
  let T;
18103
18103
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? T = ArrayBuffer.isView(y) : T = y && y.buffer && np(y.buffer), T;
18104
18104
  }
18105
- const Gm = wc("string"), mr = wc("function"), sp = wc("number"), Sc = (y) => y !== null && typeof y == "object", Hm = (y) => y === !0 || y === !1, fc = (y) => {
18105
+ const Hm = wc("string"), mr = wc("function"), sp = wc("number"), Sc = (y) => y !== null && typeof y == "object", Wm = (y) => y === !0 || y === !1, fc = (y) => {
18106
18106
  if (bc(y) !== "object")
18107
18107
  return !1;
18108
18108
  const T = Hh(y);
18109
18109
  return (T === null || T === Object.prototype || Object.getPrototypeOf(T) === null) && !(Symbol.toStringTag in y) && !(Symbol.iterator in y);
18110
- }, Wm = $r("Date"), Xm = $r("File"), Jm = $r("Blob"), Km = $r("FileList"), Ym = (y) => Sc(y) && mr(y.pipe), Qm = (y) => {
18110
+ }, Xm = $r("Date"), Jm = $r("File"), Km = $r("Blob"), Ym = $r("FileList"), Qm = (y) => Sc(y) && mr(y.pipe), eg = (y) => {
18111
18111
  let T;
18112
18112
  return y && (typeof FormData == "function" && y instanceof FormData || mr(y.append) && ((T = bc(y)) === "formdata" || // detect form-data instance
18113
18113
  T === "object" && mr(y.toString) && y.toString() === "[object FormData]"));
18114
- }, eg = $r("URLSearchParams"), [tg, ig, rg, ng] = ["ReadableStream", "Request", "Response", "Headers"].map($r), sg = (y) => y.trim ? y.trim() : y.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
18114
+ }, tg = $r("URLSearchParams"), [ig, rg, ng, sg] = ["ReadableStream", "Request", "Response", "Headers"].map($r), og = (y) => y.trim ? y.trim() : y.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
18115
18115
  function al(y, T, { allOwnKeys: z = !1 } = {}) {
18116
18116
  if (y === null || typeof y > "u")
18117
18117
  return;
@@ -18145,13 +18145,13 @@ function Vh() {
18145
18145
  arguments[D] && al(arguments[D], z);
18146
18146
  return T;
18147
18147
  }
18148
- const og = (y, T, z, { allOwnKeys: D } = {}) => (al(T, (N, J) => {
18148
+ const ag = (y, T, z, { allOwnKeys: D } = {}) => (al(T, (N, J) => {
18149
18149
  z && mr(N) ? y[J] = rp(N, z) : y[J] = N;
18150
- }, { allOwnKeys: D }), y), ag = (y) => (y.charCodeAt(0) === 65279 && (y = y.slice(1)), y), lg = (y, T, z, D) => {
18150
+ }, { allOwnKeys: D }), y), lg = (y) => (y.charCodeAt(0) === 65279 && (y = y.slice(1)), y), cg = (y, T, z, D) => {
18151
18151
  y.prototype = Object.create(T.prototype, D), y.prototype.constructor = y, Object.defineProperty(y, "super", {
18152
18152
  value: T.prototype
18153
18153
  }), z && Object.assign(y.prototype, z);
18154
- }, cg = (y, T, z, D) => {
18154
+ }, hg = (y, T, z, D) => {
18155
18155
  let N, J, S;
18156
18156
  const c = {};
18157
18157
  if (T = T || {}, y == null) return T;
@@ -18161,11 +18161,11 @@ const og = (y, T, z, { allOwnKeys: D } = {}) => (al(T, (N, J) => {
18161
18161
  y = z !== !1 && Hh(y);
18162
18162
  } while (y && (!z || z(y, T)) && y !== Object.prototype);
18163
18163
  return T;
18164
- }, hg = (y, T, z) => {
18164
+ }, ug = (y, T, z) => {
18165
18165
  y = String(y), (z === void 0 || z > y.length) && (z = y.length), z -= T.length;
18166
18166
  const D = y.indexOf(T, z);
18167
18167
  return D !== -1 && D === z;
18168
- }, ug = (y) => {
18168
+ }, dg = (y) => {
18169
18169
  if (!y) return null;
18170
18170
  if (No(y)) return y;
18171
18171
  let T = y.length;
@@ -18174,31 +18174,31 @@ const og = (y, T, z, { allOwnKeys: D } = {}) => (al(T, (N, J) => {
18174
18174
  for (; T-- > 0; )
18175
18175
  z[T] = y[T];
18176
18176
  return z;
18177
- }, dg = /* @__PURE__ */ ((y) => (T) => y && T instanceof y)(typeof Uint8Array < "u" && Hh(Uint8Array)), pg = (y, T) => {
18177
+ }, pg = /* @__PURE__ */ ((y) => (T) => y && T instanceof y)(typeof Uint8Array < "u" && Hh(Uint8Array)), fg = (y, T) => {
18178
18178
  const D = (y && y[Symbol.iterator]).call(y);
18179
18179
  let N;
18180
18180
  for (; (N = D.next()) && !N.done; ) {
18181
18181
  const J = N.value;
18182
18182
  T.call(y, J[0], J[1]);
18183
18183
  }
18184
- }, fg = (y, T) => {
18184
+ }, mg = (y, T) => {
18185
18185
  let z;
18186
18186
  const D = [];
18187
18187
  for (; (z = y.exec(T)) !== null; )
18188
18188
  D.push(z);
18189
18189
  return D;
18190
- }, mg = $r("HTMLFormElement"), gg = (y) => y.toLowerCase().replace(
18190
+ }, gg = $r("HTMLFormElement"), _g = (y) => y.toLowerCase().replace(
18191
18191
  /[-_\s]([a-z\d])(\w*)/g,
18192
18192
  function(z, D, N) {
18193
18193
  return D.toUpperCase() + N;
18194
18194
  }
18195
- ), Od = (({ hasOwnProperty: y }) => (T, z) => y.call(T, z))(Object.prototype), _g = $r("RegExp"), lp = (y, T) => {
18195
+ ), Od = (({ hasOwnProperty: y }) => (T, z) => y.call(T, z))(Object.prototype), yg = $r("RegExp"), lp = (y, T) => {
18196
18196
  const z = Object.getOwnPropertyDescriptors(y), D = {};
18197
18197
  al(z, (N, J) => {
18198
18198
  let S;
18199
18199
  (S = T(N, J, y)) !== !1 && (D[J] = S || N);
18200
18200
  }), Object.defineProperties(y, D);
18201
- }, yg = (y) => {
18201
+ }, xg = (y) => {
18202
18202
  lp(y, (T, z) => {
18203
18203
  if (mr(y) && ["arguments", "caller", "callee"].indexOf(z) !== -1)
18204
18204
  return !1;
@@ -18213,29 +18213,29 @@ const og = (y, T, z, { allOwnKeys: D } = {}) => (al(T, (N, J) => {
18213
18213
  });
18214
18214
  }
18215
18215
  });
18216
- }, xg = (y, T) => {
18216
+ }, vg = (y, T) => {
18217
18217
  const z = {}, D = (N) => {
18218
18218
  N.forEach((J) => {
18219
18219
  z[J] = !0;
18220
18220
  });
18221
18221
  };
18222
18222
  return No(y) ? D(y) : D(String(y).split(T)), z;
18223
- }, vg = () => {
18224
- }, bg = (y, T) => y != null && Number.isFinite(y = +y) ? y : T, Lh = "abcdefghijklmnopqrstuvwxyz", Vd = "0123456789", cp = {
18223
+ }, bg = () => {
18224
+ }, wg = (y, T) => y != null && Number.isFinite(y = +y) ? y : T, Lh = "abcdefghijklmnopqrstuvwxyz", Vd = "0123456789", cp = {
18225
18225
  DIGIT: Vd,
18226
18226
  ALPHA: Lh,
18227
18227
  ALPHA_DIGIT: Lh + Lh.toUpperCase() + Vd
18228
- }, wg = (y = 16, T = cp.ALPHA_DIGIT) => {
18228
+ }, Sg = (y = 16, T = cp.ALPHA_DIGIT) => {
18229
18229
  let z = "";
18230
18230
  const { length: D } = T;
18231
18231
  for (; y--; )
18232
18232
  z += T[Math.random() * D | 0];
18233
18233
  return z;
18234
18234
  };
18235
- function Sg(y) {
18235
+ function Tg(y) {
18236
18236
  return !!(y && mr(y.append) && y[Symbol.toStringTag] === "FormData" && y[Symbol.iterator]);
18237
18237
  }
18238
- const Tg = (y) => {
18238
+ const Ig = (y) => {
18239
18239
  const T = new Array(10), z = (D, N) => {
18240
18240
  if (Sc(D)) {
18241
18241
  if (T.indexOf(D) >= 0)
@@ -18252,72 +18252,72 @@ const Tg = (y) => {
18252
18252
  return D;
18253
18253
  };
18254
18254
  return z(y, 0);
18255
- }, Ig = $r("AsyncFunction"), Pg = (y) => y && (Sc(y) || mr(y)) && mr(y.then) && mr(y.catch), hp = ((y, T) => y ? setImmediate : T ? ((z, D) => (js.addEventListener("message", ({ source: N, data: J }) => {
18255
+ }, Pg = $r("AsyncFunction"), Ag = (y) => y && (Sc(y) || mr(y)) && mr(y.then) && mr(y.catch), hp = ((y, T) => y ? setImmediate : T ? ((z, D) => (js.addEventListener("message", ({ source: N, data: J }) => {
18256
18256
  N === js && J === z && D.length && D.shift()();
18257
18257
  }, !1), (N) => {
18258
18258
  D.push(N), js.postMessage(z, "*");
18259
18259
  }))(`axios@${Math.random()}`, []) : (z) => setTimeout(z))(
18260
18260
  typeof setImmediate == "function",
18261
18261
  mr(js.postMessage)
18262
- ), Ag = typeof queueMicrotask < "u" ? queueMicrotask.bind(js) : typeof process < "u" && process.nextTick || hp, pe = {
18262
+ ), Cg = typeof queueMicrotask < "u" ? queueMicrotask.bind(js) : typeof process < "u" && process.nextTick || hp, pe = {
18263
18263
  isArray: No,
18264
18264
  isArrayBuffer: np,
18265
- isBuffer: qm,
18266
- isFormData: Qm,
18267
- isArrayBufferView: Zm,
18268
- isString: Gm,
18265
+ isBuffer: Zm,
18266
+ isFormData: eg,
18267
+ isArrayBufferView: Gm,
18268
+ isString: Hm,
18269
18269
  isNumber: sp,
18270
- isBoolean: Hm,
18270
+ isBoolean: Wm,
18271
18271
  isObject: Sc,
18272
18272
  isPlainObject: fc,
18273
- isReadableStream: tg,
18274
- isRequest: ig,
18275
- isResponse: rg,
18276
- isHeaders: ng,
18273
+ isReadableStream: ig,
18274
+ isRequest: rg,
18275
+ isResponse: ng,
18276
+ isHeaders: sg,
18277
18277
  isUndefined: ol,
18278
- isDate: Wm,
18279
- isFile: Xm,
18280
- isBlob: Jm,
18281
- isRegExp: _g,
18278
+ isDate: Xm,
18279
+ isFile: Jm,
18280
+ isBlob: Km,
18281
+ isRegExp: yg,
18282
18282
  isFunction: mr,
18283
- isStream: Ym,
18284
- isURLSearchParams: eg,
18285
- isTypedArray: dg,
18286
- isFileList: Km,
18283
+ isStream: Qm,
18284
+ isURLSearchParams: tg,
18285
+ isTypedArray: pg,
18286
+ isFileList: Ym,
18287
18287
  forEach: al,
18288
18288
  merge: Vh,
18289
- extend: og,
18290
- trim: sg,
18291
- stripBOM: ag,
18292
- inherits: lg,
18293
- toFlatObject: cg,
18289
+ extend: ag,
18290
+ trim: og,
18291
+ stripBOM: lg,
18292
+ inherits: cg,
18293
+ toFlatObject: hg,
18294
18294
  kindOf: bc,
18295
18295
  kindOfTest: $r,
18296
- endsWith: hg,
18297
- toArray: ug,
18298
- forEachEntry: pg,
18299
- matchAll: fg,
18300
- isHTMLForm: mg,
18296
+ endsWith: ug,
18297
+ toArray: dg,
18298
+ forEachEntry: fg,
18299
+ matchAll: mg,
18300
+ isHTMLForm: gg,
18301
18301
  hasOwnProperty: Od,
18302
18302
  hasOwnProp: Od,
18303
18303
  // an alias to avoid ESLint no-prototype-builtins detection
18304
18304
  reduceDescriptors: lp,
18305
- freezeMethods: yg,
18306
- toObjectSet: xg,
18307
- toCamelCase: gg,
18308
- noop: vg,
18309
- toFiniteNumber: bg,
18305
+ freezeMethods: xg,
18306
+ toObjectSet: vg,
18307
+ toCamelCase: _g,
18308
+ noop: bg,
18309
+ toFiniteNumber: wg,
18310
18310
  findKey: op,
18311
18311
  global: js,
18312
18312
  isContextDefined: ap,
18313
18313
  ALPHABET: cp,
18314
- generateString: wg,
18315
- isSpecCompliantForm: Sg,
18316
- toJSONObject: Tg,
18317
- isAsyncFn: Ig,
18318
- isThenable: Pg,
18314
+ generateString: Sg,
18315
+ isSpecCompliantForm: Tg,
18316
+ toJSONObject: Ig,
18317
+ isAsyncFn: Pg,
18318
+ isThenable: Ag,
18319
18319
  setImmediate: hp,
18320
- asap: Ag
18320
+ asap: Cg
18321
18321
  };
18322
18322
  function ht(y, T, z, D, N) {
18323
18323
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = y, this.name = "AxiosError", T && (this.code = T), z && (this.config = z), D && (this.request = D), N && (this.response = N);
@@ -18369,7 +18369,7 @@ ht.from = (y, T, z, D, N, J) => {
18369
18369
  return xe !== Error.prototype;
18370
18370
  }, (c) => c !== "isAxiosError"), ht.call(S, y.message, T, z, D, N), S.cause = y, S.name = y.name, J && Object.assign(S, J), S;
18371
18371
  };
18372
- const Cg = null;
18372
+ const kg = null;
18373
18373
  function Nh(y) {
18374
18374
  return pe.isPlainObject(y) || pe.isArray(y);
18375
18375
  }
@@ -18381,10 +18381,10 @@ function Nd(y, T, z) {
18381
18381
  return N = pp(N), !z && J ? "[" + N + "]" : N;
18382
18382
  }).join(z ? "." : "") : T;
18383
18383
  }
18384
- function kg(y) {
18384
+ function Eg(y) {
18385
18385
  return pe.isArray(y) && !y.some(Nh);
18386
18386
  }
18387
- const Eg = pe.toFlatObject(pe, {}, null, function(T) {
18387
+ const Mg = pe.toFlatObject(pe, {}, null, function(T) {
18388
18388
  return /^is[A-Z]/.test(T);
18389
18389
  });
18390
18390
  function Tc(y, T, z) {
@@ -18397,7 +18397,7 @@ function Tc(y, T, z) {
18397
18397
  }, !1, function(Je, Fe) {
18398
18398
  return !pe.isUndefined(Fe[Je]);
18399
18399
  });
18400
- const D = z.metaTokens, N = z.visitor || we, J = z.dots, S = z.indexes, xe = (z.Blob || typeof Blob < "u" && Blob) && pe.isSpecCompliantForm(T);
18400
+ const D = z.metaTokens, N = z.visitor || ve, J = z.dots, S = z.indexes, xe = (z.Blob || typeof Blob < "u" && Blob) && pe.isSpecCompliantForm(T);
18401
18401
  if (!pe.isFunction(N))
18402
18402
  throw new TypeError("visitor must be a function");
18403
18403
  function _e(Ne) {
@@ -18408,12 +18408,12 @@ function Tc(y, T, z) {
18408
18408
  throw new ht("Blob is not supported. Use a Buffer instead.");
18409
18409
  return pe.isArrayBuffer(Ne) || pe.isTypedArray(Ne) ? xe && typeof Blob == "function" ? new Blob([Ne]) : Buffer.from(Ne) : Ne;
18410
18410
  }
18411
- function we(Ne, Je, Fe) {
18411
+ function ve(Ne, Je, Fe) {
18412
18412
  let ct = Ne;
18413
18413
  if (Ne && !Fe && typeof Ne == "object") {
18414
18414
  if (pe.endsWith(Je, "{}"))
18415
18415
  Je = D ? Je : Je.slice(0, -2), Ne = JSON.stringify(Ne);
18416
- else if (pe.isArray(Ne) && kg(Ne) || (pe.isFileList(Ne) || pe.endsWith(Je, "[]")) && (ct = pe.toArray(Ne)))
18416
+ else if (pe.isArray(Ne) && Eg(Ne) || (pe.isFileList(Ne) || pe.endsWith(Je, "[]")) && (ct = pe.toArray(Ne)))
18417
18417
  return Je = pp(Je), ct.forEach(function(je, wt) {
18418
18418
  !(pe.isUndefined(je) || je === null) && T.append(
18419
18419
  // eslint-disable-next-line no-nested-ternary
@@ -18424,8 +18424,8 @@ function Tc(y, T, z) {
18424
18424
  }
18425
18425
  return Nh(Ne) ? !0 : (T.append(Nd(Fe, Je, J), _e(Ne)), !1);
18426
18426
  }
18427
- const ae = [], oe = Object.assign(Eg, {
18428
- defaultVisitor: we,
18427
+ const ae = [], oe = Object.assign(Mg, {
18428
+ defaultVisitor: ve,
18429
18429
  convertValue: _e,
18430
18430
  isVisitable: Nh
18431
18431
  });
@@ -18477,13 +18477,13 @@ fp.toString = function(T) {
18477
18477
  return z(N[0]) + "=" + z(N[1]);
18478
18478
  }, "").join("&");
18479
18479
  };
18480
- function Mg(y) {
18480
+ function zg(y) {
18481
18481
  return encodeURIComponent(y).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
18482
18482
  }
18483
18483
  function mp(y, T, z) {
18484
18484
  if (!T)
18485
18485
  return y;
18486
- const D = z && z.encode || Mg, N = z && z.serialize;
18486
+ const D = z && z.encode || zg, N = z && z.serialize;
18487
18487
  let J;
18488
18488
  if (N ? J = N(T, z) : J = pe.isURLSearchParams(T) ? T.toString() : new Wh(T, z).toString(D), J) {
18489
18489
  const S = y.indexOf("#");
@@ -18549,36 +18549,36 @@ const gp = {
18549
18549
  silentJSONParsing: !0,
18550
18550
  forcedJSONParsing: !0,
18551
18551
  clarifyTimeoutError: !1
18552
- }, zg = typeof URLSearchParams < "u" ? URLSearchParams : Wh, Dg = typeof FormData < "u" ? FormData : null, Lg = typeof Blob < "u" ? Blob : null, Rg = {
18552
+ }, Dg = typeof URLSearchParams < "u" ? URLSearchParams : Wh, Lg = typeof FormData < "u" ? FormData : null, Rg = typeof Blob < "u" ? Blob : null, Fg = {
18553
18553
  isBrowser: !0,
18554
18554
  classes: {
18555
- URLSearchParams: zg,
18556
- FormData: Dg,
18557
- Blob: Lg
18555
+ URLSearchParams: Dg,
18556
+ FormData: Lg,
18557
+ Blob: Rg
18558
18558
  },
18559
18559
  protocols: ["http", "https", "file", "blob", "url", "data"]
18560
- }, Xh = typeof window < "u" && typeof document < "u", Fg = ((y) => Xh && ["ReactNative", "NativeScript", "NS"].indexOf(y) < 0)(typeof navigator < "u" && navigator.product), Bg = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
18561
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Og = Xh && window.location.href || "http://localhost", Vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18560
+ }, Xh = typeof window < "u" && typeof document < "u", Bg = ((y) => Xh && ["ReactNative", "NativeScript", "NS"].indexOf(y) < 0)(typeof navigator < "u" && navigator.product), Og = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
18561
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Vg = Xh && window.location.href || "http://localhost", Ng = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18562
18562
  __proto__: null,
18563
18563
  hasBrowserEnv: Xh,
18564
- hasStandardBrowserEnv: Fg,
18565
- hasStandardBrowserWebWorkerEnv: Bg,
18566
- origin: Og
18564
+ hasStandardBrowserEnv: Bg,
18565
+ hasStandardBrowserWebWorkerEnv: Og,
18566
+ origin: Vg
18567
18567
  }, Symbol.toStringTag, { value: "Module" })), Ur = {
18568
- ...Vg,
18569
- ...Rg
18568
+ ...Ng,
18569
+ ...Fg
18570
18570
  };
18571
- function Ng(y, T) {
18571
+ function jg(y, T) {
18572
18572
  return Tc(y, new Ur.classes.URLSearchParams(), Object.assign({
18573
18573
  visitor: function(z, D, N, J) {
18574
18574
  return Ur.isNode && pe.isBuffer(z) ? (this.append(D, z.toString("base64")), !1) : J.defaultVisitor.apply(this, arguments);
18575
18575
  }
18576
18576
  }, T));
18577
18577
  }
18578
- function jg(y) {
18578
+ function Ug(y) {
18579
18579
  return pe.matchAll(/\w+|\[(\w*)]/g, y).map((T) => T[0] === "[]" ? "" : T[1] || T[0]);
18580
18580
  }
18581
- function Ug(y) {
18581
+ function $g(y) {
18582
18582
  const T = {}, z = Object.keys(y);
18583
18583
  let D;
18584
18584
  const N = z.length;
@@ -18592,17 +18592,17 @@ function _p(y) {
18592
18592
  let S = z[J++];
18593
18593
  if (S === "__proto__") return !0;
18594
18594
  const c = Number.isFinite(+S), xe = J >= z.length;
18595
- return S = !S && pe.isArray(N) ? N.length : S, xe ? (pe.hasOwnProp(N, S) ? N[S] = [N[S], D] : N[S] = D, !c) : ((!N[S] || !pe.isObject(N[S])) && (N[S] = []), T(z, D, N[S], J) && pe.isArray(N[S]) && (N[S] = Ug(N[S])), !c);
18595
+ return S = !S && pe.isArray(N) ? N.length : S, xe ? (pe.hasOwnProp(N, S) ? N[S] = [N[S], D] : N[S] = D, !c) : ((!N[S] || !pe.isObject(N[S])) && (N[S] = []), T(z, D, N[S], J) && pe.isArray(N[S]) && (N[S] = $g(N[S])), !c);
18596
18596
  }
18597
18597
  if (pe.isFormData(y) && pe.isFunction(y.entries)) {
18598
18598
  const z = {};
18599
18599
  return pe.forEachEntry(y, (D, N) => {
18600
- T(jg(D), N, z, 0);
18600
+ T(Ug(D), N, z, 0);
18601
18601
  }), z;
18602
18602
  }
18603
18603
  return null;
18604
18604
  }
18605
- function $g(y, T, z) {
18605
+ function qg(y, T, z) {
18606
18606
  if (pe.isString(y))
18607
18607
  try {
18608
18608
  return (T || JSON.parse)(y), pe.trim(y);
@@ -18628,7 +18628,7 @@ const ll = {
18628
18628
  let c;
18629
18629
  if (J) {
18630
18630
  if (D.indexOf("application/x-www-form-urlencoded") > -1)
18631
- return Ng(T, this.formSerializer).toString();
18631
+ return jg(T, this.formSerializer).toString();
18632
18632
  if ((c = pe.isFileList(T)) || D.indexOf("multipart/form-data") > -1) {
18633
18633
  const xe = this.env && this.env.FormData;
18634
18634
  return Tc(
@@ -18638,7 +18638,7 @@ const ll = {
18638
18638
  );
18639
18639
  }
18640
18640
  }
18641
- return J || N ? (z.setContentType("application/json", !1), $g(T)) : T;
18641
+ return J || N ? (z.setContentType("application/json", !1), qg(T)) : T;
18642
18642
  }],
18643
18643
  transformResponse: [function(T) {
18644
18644
  const z = this.transitional || ll.transitional, D = z && z.forcedJSONParsing, N = this.responseType === "json";
@@ -18681,7 +18681,7 @@ const ll = {
18681
18681
  pe.forEach(["delete", "get", "head", "post", "put", "patch"], (y) => {
18682
18682
  ll.headers[y] = {};
18683
18683
  });
18684
- const qg = pe.toObjectSet([
18684
+ const Zg = pe.toObjectSet([
18685
18685
  "age",
18686
18686
  "authorization",
18687
18687
  "content-length",
@@ -18699,12 +18699,12 @@ const qg = pe.toObjectSet([
18699
18699
  "referer",
18700
18700
  "retry-after",
18701
18701
  "user-agent"
18702
- ]), Zg = (y) => {
18702
+ ]), Gg = (y) => {
18703
18703
  const T = {};
18704
18704
  let z, D, N;
18705
18705
  return y && y.split(`
18706
18706
  `).forEach(function(S) {
18707
- N = S.indexOf(":"), z = S.substring(0, N).trim().toLowerCase(), D = S.substring(N + 1).trim(), !(!z || T[z] && qg[z]) && (z === "set-cookie" ? T[z] ? T[z].push(D) : T[z] = [D] : T[z] = T[z] ? T[z] + ", " + D : D);
18707
+ N = S.indexOf(":"), z = S.substring(0, N).trim().toLowerCase(), D = S.substring(N + 1).trim(), !(!z || T[z] && Zg[z]) && (z === "set-cookie" ? T[z] ? T[z].push(D) : T[z] = [D] : T[z] = T[z] ? T[z] + ", " + D : D);
18708
18708
  }), T;
18709
18709
  }, $d = Symbol("internals");
18710
18710
  function rl(y) {
@@ -18713,14 +18713,14 @@ function rl(y) {
18713
18713
  function mc(y) {
18714
18714
  return y === !1 || y == null ? y : pe.isArray(y) ? y.map(mc) : String(y);
18715
18715
  }
18716
- function Gg(y) {
18716
+ function Hg(y) {
18717
18717
  const T = /* @__PURE__ */ Object.create(null), z = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
18718
18718
  let D;
18719
18719
  for (; D = z.exec(y); )
18720
18720
  T[D[1]] = D[2];
18721
18721
  return T;
18722
18722
  }
18723
- const Hg = (y) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(y.trim());
18723
+ const Wg = (y) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(y.trim());
18724
18724
  function Rh(y, T, z, D, N) {
18725
18725
  if (pe.isFunction(D))
18726
18726
  return D.call(this, T, z);
@@ -18731,10 +18731,10 @@ function Rh(y, T, z, D, N) {
18731
18731
  return D.test(T);
18732
18732
  }
18733
18733
  }
18734
- function Wg(y) {
18734
+ function Xg(y) {
18735
18735
  return y.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (T, z, D) => z.toUpperCase() + D);
18736
18736
  }
18737
- function Xg(y, T) {
18737
+ function Jg(y, T) {
18738
18738
  const z = pe.toCamelCase(" " + T);
18739
18739
  ["get", "set", "has"].forEach((D) => {
18740
18740
  Object.defineProperty(y, D + z, {
@@ -18752,17 +18752,17 @@ class Qi {
18752
18752
  set(T, z, D) {
18753
18753
  const N = this;
18754
18754
  function J(c, xe, _e) {
18755
- const we = rl(xe);
18756
- if (!we)
18755
+ const ve = rl(xe);
18756
+ if (!ve)
18757
18757
  throw new Error("header name must be a non-empty string");
18758
- const ae = pe.findKey(N, we);
18758
+ const ae = pe.findKey(N, ve);
18759
18759
  (!ae || N[ae] === void 0 || _e === !0 || _e === void 0 && N[ae] !== !1) && (N[ae || xe] = mc(c));
18760
18760
  }
18761
- const S = (c, xe) => pe.forEach(c, (_e, we) => J(_e, we, xe));
18761
+ const S = (c, xe) => pe.forEach(c, (_e, ve) => J(_e, ve, xe));
18762
18762
  if (pe.isPlainObject(T) || T instanceof this.constructor)
18763
18763
  S(T, z);
18764
- else if (pe.isString(T) && (T = T.trim()) && !Hg(T))
18765
- S(Zg(T), z);
18764
+ else if (pe.isString(T) && (T = T.trim()) && !Wg(T))
18765
+ S(Gg(T), z);
18766
18766
  else if (pe.isHeaders(T))
18767
18767
  for (const [c, xe] of T.entries())
18768
18768
  J(xe, c, D);
@@ -18778,7 +18778,7 @@ class Qi {
18778
18778
  if (!z)
18779
18779
  return N;
18780
18780
  if (z === !0)
18781
- return Gg(N);
18781
+ return Hg(N);
18782
18782
  if (pe.isFunction(z))
18783
18783
  return z.call(this, N, D);
18784
18784
  if (pe.isRegExp(z))
@@ -18822,7 +18822,7 @@ class Qi {
18822
18822
  z[S] = mc(N), delete z[J];
18823
18823
  return;
18824
18824
  }
18825
- const c = T ? Wg(J) : String(J).trim();
18825
+ const c = T ? Xg(J) : String(J).trim();
18826
18826
  c !== J && delete z[J], z[c] = mc(N), D[c] = !0;
18827
18827
  }), this;
18828
18828
  }
@@ -18858,7 +18858,7 @@ class Qi {
18858
18858
  }).accessors, N = this.prototype;
18859
18859
  function J(S) {
18860
18860
  const c = rl(S);
18861
- D[c] || (Xg(N, S), D[c] = !0);
18861
+ D[c] || (Jg(N, S), D[c] = !0);
18862
18862
  }
18863
18863
  return pe.isArray(T) ? T.forEach(J) : J(T), this;
18864
18864
  }
@@ -18900,43 +18900,43 @@ function xp(y, T, z) {
18900
18900
  z
18901
18901
  ));
18902
18902
  }
18903
- function Jg(y) {
18903
+ function Kg(y) {
18904
18904
  const T = /^([-+\w]{1,25})(:?\/\/|:)/.exec(y);
18905
18905
  return T && T[1] || "";
18906
18906
  }
18907
- function Kg(y, T) {
18907
+ function Yg(y, T) {
18908
18908
  y = y || 10;
18909
18909
  const z = new Array(y), D = new Array(y);
18910
18910
  let N = 0, J = 0, S;
18911
18911
  return T = T !== void 0 ? T : 1e3, function(xe) {
18912
- const _e = Date.now(), we = D[J];
18912
+ const _e = Date.now(), ve = D[J];
18913
18913
  S || (S = _e), z[N] = xe, D[N] = _e;
18914
18914
  let ae = J, oe = 0;
18915
18915
  for (; ae !== N; )
18916
18916
  oe += z[ae++], ae = ae % y;
18917
18917
  if (N = (N + 1) % y, N === J && (J = (J + 1) % y), _e - S < T)
18918
18918
  return;
18919
- const ut = we && _e - we;
18919
+ const ut = ve && _e - ve;
18920
18920
  return ut ? Math.round(oe * 1e3 / ut) : void 0;
18921
18921
  };
18922
18922
  }
18923
- function Yg(y, T) {
18923
+ function Qg(y, T) {
18924
18924
  let z = 0, D = 1e3 / T, N, J;
18925
- const S = (_e, we = Date.now()) => {
18926
- z = we, N = null, J && (clearTimeout(J), J = null), y.apply(null, _e);
18925
+ const S = (_e, ve = Date.now()) => {
18926
+ z = ve, N = null, J && (clearTimeout(J), J = null), y.apply(null, _e);
18927
18927
  };
18928
18928
  return [(..._e) => {
18929
- const we = Date.now(), ae = we - z;
18930
- ae >= D ? S(_e, we) : (N = _e, J || (J = setTimeout(() => {
18929
+ const ve = Date.now(), ae = ve - z;
18930
+ ae >= D ? S(_e, ve) : (N = _e, J || (J = setTimeout(() => {
18931
18931
  J = null, S(N);
18932
18932
  }, D - ae)));
18933
18933
  }, () => N && S(N)];
18934
18934
  }
18935
18935
  const xc = (y, T, z = 3) => {
18936
18936
  let D = 0;
18937
- const N = Kg(50, 250);
18938
- return Yg((J) => {
18939
- const S = J.loaded, c = J.lengthComputable ? J.total : void 0, xe = S - D, _e = N(xe), we = S <= c;
18937
+ const N = Yg(50, 250);
18938
+ return Qg((J) => {
18939
+ const S = J.loaded, c = J.lengthComputable ? J.total : void 0, xe = S - D, _e = N(xe), ve = S <= c;
18940
18940
  D = S;
18941
18941
  const ae = {
18942
18942
  loaded: S,
@@ -18944,7 +18944,7 @@ const xc = (y, T, z = 3) => {
18944
18944
  progress: c ? S / c : void 0,
18945
18945
  bytes: xe,
18946
18946
  rate: _e || void 0,
18947
- estimated: _e && c && we ? (c - S) / _e : void 0,
18947
+ estimated: _e && c && ve ? (c - S) / _e : void 0,
18948
18948
  event: J,
18949
18949
  lengthComputable: c != null,
18950
18950
  [T ? "download" : "upload"]: !0
@@ -18958,7 +18958,7 @@ const xc = (y, T, z = 3) => {
18958
18958
  total: y,
18959
18959
  loaded: D
18960
18960
  }), T[1]];
18961
- }, Zd = (y) => (...T) => pe.asap(() => y(...T)), Qg = Ur.hasStandardBrowserEnv ? (
18961
+ }, Zd = (y) => (...T) => pe.asap(() => y(...T)), e_ = Ur.hasStandardBrowserEnv ? (
18962
18962
  // Standard browser envs have full support of the APIs needed to test
18963
18963
  // whether the request URL is of the same origin as current location.
18964
18964
  function() {
@@ -18989,7 +18989,7 @@ const xc = (y, T, z = 3) => {
18989
18989
  return !0;
18990
18990
  };
18991
18991
  }()
18992
- ), e_ = Ur.hasStandardBrowserEnv ? (
18992
+ ), t_ = Ur.hasStandardBrowserEnv ? (
18993
18993
  // Standard browser envs support document.cookie
18994
18994
  {
18995
18995
  write(y, T, z, D, N, J) {
@@ -19016,41 +19016,41 @@ const xc = (y, T, z = 3) => {
19016
19016
  }
19017
19017
  }
19018
19018
  );
19019
- function t_(y) {
19019
+ function i_(y) {
19020
19020
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(y);
19021
19021
  }
19022
- function i_(y, T) {
19022
+ function r_(y, T) {
19023
19023
  return T ? y.replace(/\/?\/$/, "") + "/" + T.replace(/^\/+/, "") : y;
19024
19024
  }
19025
19025
  function vp(y, T) {
19026
- return y && !t_(T) ? i_(y, T) : T;
19026
+ return y && !i_(T) ? r_(y, T) : T;
19027
19027
  }
19028
19028
  const Gd = (y) => y instanceof Qi ? { ...y } : y;
19029
19029
  function $s(y, T) {
19030
19030
  T = T || {};
19031
19031
  const z = {};
19032
- function D(_e, we, ae) {
19033
- return pe.isPlainObject(_e) && pe.isPlainObject(we) ? pe.merge.call({ caseless: ae }, _e, we) : pe.isPlainObject(we) ? pe.merge({}, we) : pe.isArray(we) ? we.slice() : we;
19032
+ function D(_e, ve, ae) {
19033
+ return pe.isPlainObject(_e) && pe.isPlainObject(ve) ? pe.merge.call({ caseless: ae }, _e, ve) : pe.isPlainObject(ve) ? pe.merge({}, ve) : pe.isArray(ve) ? ve.slice() : ve;
19034
19034
  }
19035
- function N(_e, we, ae) {
19036
- if (pe.isUndefined(we)) {
19035
+ function N(_e, ve, ae) {
19036
+ if (pe.isUndefined(ve)) {
19037
19037
  if (!pe.isUndefined(_e))
19038
19038
  return D(void 0, _e, ae);
19039
- } else return D(_e, we, ae);
19039
+ } else return D(_e, ve, ae);
19040
19040
  }
19041
- function J(_e, we) {
19042
- if (!pe.isUndefined(we))
19043
- return D(void 0, we);
19041
+ function J(_e, ve) {
19042
+ if (!pe.isUndefined(ve))
19043
+ return D(void 0, ve);
19044
19044
  }
19045
- function S(_e, we) {
19046
- if (pe.isUndefined(we)) {
19045
+ function S(_e, ve) {
19046
+ if (pe.isUndefined(ve)) {
19047
19047
  if (!pe.isUndefined(_e))
19048
19048
  return D(void 0, _e);
19049
- } else return D(void 0, we);
19049
+ } else return D(void 0, ve);
19050
19050
  }
19051
- function c(_e, we, ae) {
19051
+ function c(_e, ve, ae) {
19052
19052
  if (ae in T)
19053
- return D(_e, we);
19053
+ return D(_e, ve);
19054
19054
  if (ae in y)
19055
19055
  return D(void 0, _e);
19056
19056
  }
@@ -19083,11 +19083,11 @@ function $s(y, T) {
19083
19083
  socketPath: S,
19084
19084
  responseEncoding: S,
19085
19085
  validateStatus: c,
19086
- headers: (_e, we) => N(Gd(_e), Gd(we), !0)
19086
+ headers: (_e, ve) => N(Gd(_e), Gd(ve), !0)
19087
19087
  };
19088
- return pe.forEach(Object.keys(Object.assign({}, y, T)), function(we) {
19089
- const ae = xe[we] || N, oe = ae(y[we], T[we], we);
19090
- pe.isUndefined(oe) && ae !== c || (z[we] = oe);
19088
+ return pe.forEach(Object.keys(Object.assign({}, y, T)), function(ve) {
19089
+ const ae = xe[ve] || N, oe = ae(y[ve], T[ve], ve);
19090
+ pe.isUndefined(oe) && ae !== c || (z[ve] = oe);
19091
19091
  }), z;
19092
19092
  }
19093
19093
  const bp = (y) => {
@@ -19102,23 +19102,23 @@ const bp = (y) => {
19102
19102
  if (Ur.hasStandardBrowserEnv || Ur.hasStandardBrowserWebWorkerEnv)
19103
19103
  S.setContentType(void 0);
19104
19104
  else if ((xe = S.getContentType()) !== !1) {
19105
- const [_e, ...we] = xe ? xe.split(";").map((ae) => ae.trim()).filter(Boolean) : [];
19106
- S.setContentType([_e || "multipart/form-data", ...we].join("; "));
19105
+ const [_e, ...ve] = xe ? xe.split(";").map((ae) => ae.trim()).filter(Boolean) : [];
19106
+ S.setContentType([_e || "multipart/form-data", ...ve].join("; "));
19107
19107
  }
19108
19108
  }
19109
- if (Ur.hasStandardBrowserEnv && (D && pe.isFunction(D) && (D = D(T)), D || D !== !1 && Qg(T.url))) {
19110
- const _e = N && J && e_.read(J);
19109
+ if (Ur.hasStandardBrowserEnv && (D && pe.isFunction(D) && (D = D(T)), D || D !== !1 && e_(T.url))) {
19110
+ const _e = N && J && t_.read(J);
19111
19111
  _e && S.set(N, _e);
19112
19112
  }
19113
19113
  return T;
19114
- }, r_ = typeof XMLHttpRequest < "u", n_ = r_ && function(y) {
19114
+ }, n_ = typeof XMLHttpRequest < "u", s_ = n_ && function(y) {
19115
19115
  return new Promise(function(z, D) {
19116
19116
  const N = bp(y);
19117
19117
  let J = N.data;
19118
19118
  const S = Qi.from(N.headers).normalize();
19119
- let { responseType: c, onUploadProgress: xe, onDownloadProgress: _e } = N, we, ae, oe, ut, Ne;
19119
+ let { responseType: c, onUploadProgress: xe, onDownloadProgress: _e } = N, ve, ae, oe, ut, Ne;
19120
19120
  function Je() {
19121
- ut && ut(), Ne && Ne(), N.cancelToken && N.cancelToken.unsubscribe(we), N.signal && N.signal.removeEventListener("abort", we);
19121
+ ut && ut(), Ne && Ne(), N.cancelToken && N.cancelToken.unsubscribe(ve), N.signal && N.signal.removeEventListener("abort", ve);
19122
19122
  }
19123
19123
  let Fe = new XMLHttpRequest();
19124
19124
  Fe.open(N.method.toUpperCase(), N.url, !0), Fe.timeout = N.timeout;
@@ -19158,17 +19158,17 @@ const bp = (y) => {
19158
19158
  )), Fe = null;
19159
19159
  }, J === void 0 && S.setContentType(null), "setRequestHeader" in Fe && pe.forEach(S.toJSON(), function(wt, yt) {
19160
19160
  Fe.setRequestHeader(yt, wt);
19161
- }), pe.isUndefined(N.withCredentials) || (Fe.withCredentials = !!N.withCredentials), c && c !== "json" && (Fe.responseType = N.responseType), _e && ([oe, Ne] = xc(_e, !0), Fe.addEventListener("progress", oe)), xe && Fe.upload && ([ae, ut] = xc(xe), Fe.upload.addEventListener("progress", ae), Fe.upload.addEventListener("loadend", ut)), (N.cancelToken || N.signal) && (we = (je) => {
19161
+ }), pe.isUndefined(N.withCredentials) || (Fe.withCredentials = !!N.withCredentials), c && c !== "json" && (Fe.responseType = N.responseType), _e && ([oe, Ne] = xc(_e, !0), Fe.addEventListener("progress", oe)), xe && Fe.upload && ([ae, ut] = xc(xe), Fe.upload.addEventListener("progress", ae), Fe.upload.addEventListener("loadend", ut)), (N.cancelToken || N.signal) && (ve = (je) => {
19162
19162
  Fe && (D(!je || je.type ? new jo(null, y, Fe) : je), Fe.abort(), Fe = null);
19163
- }, N.cancelToken && N.cancelToken.subscribe(we), N.signal && (N.signal.aborted ? we() : N.signal.addEventListener("abort", we)));
19164
- const Ke = Jg(N.url);
19163
+ }, N.cancelToken && N.cancelToken.subscribe(ve), N.signal && (N.signal.aborted ? ve() : N.signal.addEventListener("abort", ve)));
19164
+ const Ke = Kg(N.url);
19165
19165
  if (Ke && Ur.protocols.indexOf(Ke) === -1) {
19166
19166
  D(new ht("Unsupported protocol " + Ke + ":", ht.ERR_BAD_REQUEST, y));
19167
19167
  return;
19168
19168
  }
19169
19169
  Fe.send(J || null);
19170
19170
  });
19171
- }, s_ = (y, T) => {
19171
+ }, o_ = (y, T) => {
19172
19172
  let z = new AbortController(), D;
19173
19173
  const N = function(xe) {
19174
19174
  if (!D) {
@@ -19190,7 +19190,7 @@ const bp = (y) => {
19190
19190
  return c.unsubscribe = S, [c, () => {
19191
19191
  J && clearTimeout(J), J = null;
19192
19192
  }];
19193
- }, o_ = function* (y, T) {
19193
+ }, a_ = function* (y, T) {
19194
19194
  let z = y.byteLength;
19195
19195
  if (!T || z < T) {
19196
19196
  yield y;
@@ -19199,19 +19199,19 @@ const bp = (y) => {
19199
19199
  let D = 0, N;
19200
19200
  for (; D < z; )
19201
19201
  N = D + T, yield y.slice(D, N), D = N;
19202
- }, a_ = async function* (y, T, z) {
19202
+ }, l_ = async function* (y, T, z) {
19203
19203
  for await (const D of y)
19204
- yield* o_(ArrayBuffer.isView(D) ? D : await z(String(D)), T);
19204
+ yield* a_(ArrayBuffer.isView(D) ? D : await z(String(D)), T);
19205
19205
  }, Hd = (y, T, z, D, N) => {
19206
- const J = a_(y, T, N);
19206
+ const J = l_(y, T, N);
19207
19207
  let S = 0, c, xe = (_e) => {
19208
19208
  c || (c = !0, D && D(_e));
19209
19209
  };
19210
19210
  return new ReadableStream({
19211
19211
  async pull(_e) {
19212
19212
  try {
19213
- const { done: we, value: ae } = await J.next();
19214
- if (we) {
19213
+ const { done: ve, value: ae } = await J.next();
19214
+ if (ve) {
19215
19215
  xe(), _e.close();
19216
19216
  return;
19217
19217
  }
@@ -19221,8 +19221,8 @@ const bp = (y) => {
19221
19221
  z(ut);
19222
19222
  }
19223
19223
  _e.enqueue(new Uint8Array(ae));
19224
- } catch (we) {
19225
- throw xe(we), we;
19224
+ } catch (ve) {
19225
+ throw xe(ve), ve;
19226
19226
  }
19227
19227
  },
19228
19228
  cancel(_e) {
@@ -19237,7 +19237,7 @@ const bp = (y) => {
19237
19237
  } catch {
19238
19238
  return !1;
19239
19239
  }
19240
- }, l_ = wp && Sp(() => {
19240
+ }, c_ = wp && Sp(() => {
19241
19241
  let y = !1;
19242
19242
  const T = new Request(Ur.origin, {
19243
19243
  body: new ReadableStream(),
@@ -19257,7 +19257,7 @@ Ic && ((y) => {
19257
19257
  });
19258
19258
  });
19259
19259
  })(new Response());
19260
- const c_ = async (y) => {
19260
+ const h_ = async (y) => {
19261
19261
  if (y == null)
19262
19262
  return 0;
19263
19263
  if (pe.isBlob(y))
@@ -19268,10 +19268,10 @@ const c_ = async (y) => {
19268
19268
  return y.byteLength;
19269
19269
  if (pe.isURLSearchParams(y) && (y = y + ""), pe.isString(y))
19270
19270
  return (await jh(y)).byteLength;
19271
- }, h_ = async (y, T) => {
19271
+ }, u_ = async (y, T) => {
19272
19272
  const z = pe.toFiniteNumber(y.getContentLength());
19273
- return z ?? c_(T);
19274
- }, u_ = Ic && (async (y) => {
19273
+ return z ?? h_(T);
19274
+ }, d_ = Ic && (async (y) => {
19275
19275
  let {
19276
19276
  url: T,
19277
19277
  method: z,
@@ -19282,12 +19282,12 @@ const c_ = async (y) => {
19282
19282
  onDownloadProgress: c,
19283
19283
  onUploadProgress: xe,
19284
19284
  responseType: _e,
19285
- headers: we,
19285
+ headers: ve,
19286
19286
  withCredentials: ae = "same-origin",
19287
19287
  fetchOptions: oe
19288
19288
  } = bp(y);
19289
19289
  _e = _e ? (_e + "").toLowerCase() : "text";
19290
- let [ut, Ne] = N || J || S ? s_([N, J], S) : [], Je, Fe;
19290
+ let [ut, Ne] = N || J || S ? o_([N, J], S) : [], Je, Fe;
19291
19291
  const ct = () => {
19292
19292
  !Je && setTimeout(() => {
19293
19293
  ut && ut.unsubscribe();
@@ -19295,13 +19295,13 @@ const c_ = async (y) => {
19295
19295
  };
19296
19296
  let Ke;
19297
19297
  try {
19298
- if (xe && l_ && z !== "get" && z !== "head" && (Ke = await h_(we, D)) !== 0) {
19298
+ if (xe && c_ && z !== "get" && z !== "head" && (Ke = await u_(ve, D)) !== 0) {
19299
19299
  let Et = new Request(T, {
19300
19300
  method: "POST",
19301
19301
  body: D,
19302
19302
  duplex: "half"
19303
19303
  }), Pt;
19304
- if (pe.isFormData(D) && (Pt = Et.headers.get("content-type")) && we.setContentType(Pt), Et.body) {
19304
+ if (pe.isFormData(D) && (Pt = Et.headers.get("content-type")) && ve.setContentType(Pt), Et.body) {
19305
19305
  const [er, si] = qd(
19306
19306
  Ke,
19307
19307
  xc(Zd(xe))
@@ -19313,7 +19313,7 @@ const c_ = async (y) => {
19313
19313
  ...oe,
19314
19314
  signal: ut,
19315
19315
  method: z.toUpperCase(),
19316
- headers: we.normalize().toJSON(),
19316
+ headers: ve.normalize().toJSON(),
19317
19317
  body: D,
19318
19318
  duplex: "half",
19319
19319
  credentials: ae
@@ -19357,9 +19357,9 @@ const c_ = async (y) => {
19357
19357
  ) : ht.from(je, je && je.code, y, Fe);
19358
19358
  }
19359
19359
  }), $h = {
19360
- http: Cg,
19361
- xhr: n_,
19362
- fetch: u_
19360
+ http: kg,
19361
+ xhr: s_,
19362
+ fetch: d_
19363
19363
  };
19364
19364
  pe.forEach($h, (y, T) => {
19365
19365
  if (y) {
@@ -19370,7 +19370,7 @@ pe.forEach($h, (y, T) => {
19370
19370
  Object.defineProperty(y, "adapterName", { value: T });
19371
19371
  }
19372
19372
  });
19373
- const Xd = (y) => `- ${y}`, d_ = (y) => pe.isFunction(y) || y === null || y === !1, Tp = {
19373
+ const Xd = (y) => `- ${y}`, p_ = (y) => pe.isFunction(y) || y === null || y === !1, Tp = {
19374
19374
  getAdapter: (y) => {
19375
19375
  y = pe.isArray(y) ? y : [y];
19376
19376
  const { length: T } = y;
@@ -19379,7 +19379,7 @@ const Xd = (y) => `- ${y}`, d_ = (y) => pe.isFunction(y) || y === null || y ===
19379
19379
  for (let J = 0; J < T; J++) {
19380
19380
  z = y[J];
19381
19381
  let S;
19382
- if (D = z, !d_(z) && (D = $h[(S = String(z)).toLowerCase()], D === void 0))
19382
+ if (D = z, !p_(z) && (D = $h[(S = String(z)).toLowerCase()], D === void 0))
19383
19383
  throw new ht(`Unknown adapter '${S}'`);
19384
19384
  if (D)
19385
19385
  break;
@@ -19448,7 +19448,7 @@ Jh.transitional = function(T, z, D) {
19448
19448
  )), T ? T(J, S, c) : !0;
19449
19449
  };
19450
19450
  };
19451
- function p_(y, T, z) {
19451
+ function f_(y, T, z) {
19452
19452
  if (typeof y != "object")
19453
19453
  throw new ht("options must be an object", ht.ERR_BAD_OPTION_VALUE);
19454
19454
  const D = Object.keys(y);
@@ -19466,7 +19466,7 @@ function p_(y, T, z) {
19466
19466
  }
19467
19467
  }
19468
19468
  const qh = {
19469
- assertOptions: p_,
19469
+ assertOptions: f_,
19470
19470
  validators: Jh
19471
19471
  }, ns = qh.validators;
19472
19472
  class Us {
@@ -19533,12 +19533,12 @@ class Us {
19533
19533
  this.interceptors.response.forEach(function(Je) {
19534
19534
  _e.push(Je.fulfilled, Je.rejected);
19535
19535
  });
19536
- let we, ae = 0, oe;
19536
+ let ve, ae = 0, oe;
19537
19537
  if (!xe) {
19538
19538
  const Ne = [Jd.bind(this), void 0];
19539
- for (Ne.unshift.apply(Ne, c), Ne.push.apply(Ne, _e), oe = Ne.length, we = Promise.resolve(z); ae < oe; )
19540
- we = we.then(Ne[ae++], Ne[ae++]);
19541
- return we;
19539
+ for (Ne.unshift.apply(Ne, c), Ne.push.apply(Ne, _e), oe = Ne.length, ve = Promise.resolve(z); ae < oe; )
19540
+ ve = ve.then(Ne[ae++], Ne[ae++]);
19541
+ return ve;
19542
19542
  }
19543
19543
  oe = c.length;
19544
19544
  let ut = z;
@@ -19552,13 +19552,13 @@ class Us {
19552
19552
  }
19553
19553
  }
19554
19554
  try {
19555
- we = Jd.call(this, ut);
19555
+ ve = Jd.call(this, ut);
19556
19556
  } catch (Ne) {
19557
19557
  return Promise.reject(Ne);
19558
19558
  }
19559
19559
  for (ae = 0, oe = _e.length; ae < oe; )
19560
- we = we.then(_e[ae++], _e[ae++]);
19561
- return we;
19560
+ ve = ve.then(_e[ae++], _e[ae++]);
19561
+ return ve;
19562
19562
  }
19563
19563
  getUri(T) {
19564
19564
  T = $s(this.defaults, T);
@@ -19657,12 +19657,12 @@ class Kh {
19657
19657
  };
19658
19658
  }
19659
19659
  }
19660
- function f_(y) {
19660
+ function m_(y) {
19661
19661
  return function(z) {
19662
19662
  return y.apply(null, z);
19663
19663
  };
19664
19664
  }
19665
- function m_(y) {
19665
+ function g_(y) {
19666
19666
  return pe.isObject(y) && y.isAxiosError === !0;
19667
19667
  }
19668
19668
  const Zh = {
@@ -19751,15 +19751,15 @@ Yt.Cancel = Yt.CanceledError;
19751
19751
  Yt.all = function(T) {
19752
19752
  return Promise.all(T);
19753
19753
  };
19754
- Yt.spread = f_;
19755
- Yt.isAxiosError = m_;
19754
+ Yt.spread = m_;
19755
+ Yt.isAxiosError = g_;
19756
19756
  Yt.mergeConfig = $s;
19757
19757
  Yt.AxiosHeaders = Qi;
19758
19758
  Yt.formToJSON = (y) => _p(pe.isHTMLForm(y) ? new FormData(y) : y);
19759
19759
  Yt.getAdapter = Tp.getAdapter;
19760
19760
  Yt.HttpStatusCode = Zh;
19761
19761
  Yt.default = Yt;
19762
- const g_ = (y, T = 300) => {
19762
+ const __ = (y, T = 300) => {
19763
19763
  let z;
19764
19764
  return function(...N) {
19765
19765
  clearTimeout(z), z = setTimeout(() => {
@@ -19771,7 +19771,7 @@ function Ap(y, T, z = {}) {
19771
19771
  const D = { type: "Feature" };
19772
19772
  return (z.id === 0 || z.id) && (D.id = z.id), z.bbox && (D.bbox = z.bbox), D.properties = T || {}, D.geometry = y, D;
19773
19773
  }
19774
- function __(y, T, z = {}) {
19774
+ function y_(y, T, z = {}) {
19775
19775
  if (!y)
19776
19776
  throw new Error("coordinates is required");
19777
19777
  if (!Array.isArray(y))
@@ -19785,7 +19785,7 @@ function __(y, T, z = {}) {
19785
19785
  coordinates: y
19786
19786
  }, T, z);
19787
19787
  }
19788
- function y_(y, T, z = {}) {
19788
+ function x_(y, T, z = {}) {
19789
19789
  for (const N of y) {
19790
19790
  if (N.length < 4)
19791
19791
  throw new Error(
@@ -19807,14 +19807,14 @@ function Yd(y) {
19807
19807
  }
19808
19808
  function Cp(y, T, z) {
19809
19809
  if (y !== null)
19810
- for (var D, N, J, S, c, xe, _e, we = 0, ae = 0, oe, ut = y.type, Ne = ut === "FeatureCollection", Je = ut === "Feature", Fe = Ne ? y.features.length : 1, ct = 0; ct < Fe; ct++) {
19810
+ for (var D, N, J, S, c, xe, _e, ve = 0, ae = 0, oe, ut = y.type, Ne = ut === "FeatureCollection", Je = ut === "Feature", Fe = Ne ? y.features.length : 1, ct = 0; ct < Fe; ct++) {
19811
19811
  _e = Ne ? y.features[ct].geometry : Je ? y.geometry : y, oe = _e ? _e.type === "GeometryCollection" : !1, c = oe ? _e.geometries.length : 1;
19812
19812
  for (var Ke = 0; Ke < c; Ke++) {
19813
19813
  var je = 0, wt = 0;
19814
19814
  if (S = oe ? _e.geometries[Ke] : _e, S !== null) {
19815
19815
  xe = S.coordinates;
19816
19816
  var yt = S.type;
19817
- switch (we = 0, yt) {
19817
+ switch (ve = 0, yt) {
19818
19818
  case null:
19819
19819
  break;
19820
19820
  case "Point":
@@ -19846,7 +19846,7 @@ function Cp(y, T, z) {
19846
19846
  case "Polygon":
19847
19847
  case "MultiLineString":
19848
19848
  for (D = 0; D < xe.length; D++) {
19849
- for (N = 0; N < xe[D].length - we; N++) {
19849
+ for (N = 0; N < xe[D].length - ve; N++) {
19850
19850
  if (T(
19851
19851
  xe[D][N],
19852
19852
  ae,
@@ -19864,7 +19864,7 @@ function Cp(y, T, z) {
19864
19864
  case "MultiPolygon":
19865
19865
  for (D = 0; D < xe.length; D++) {
19866
19866
  for (wt = 0, N = 0; N < xe[D].length; N++) {
19867
- for (J = 0; J < xe[D][N].length - we; J++) {
19867
+ for (J = 0; J < xe[D][N].length - ve; J++) {
19868
19868
  if (T(
19869
19869
  xe[D][N][J],
19870
19870
  ae,
@@ -19892,7 +19892,7 @@ function Cp(y, T, z) {
19892
19892
  }
19893
19893
  }
19894
19894
  }
19895
- function x_(y, T = {}) {
19895
+ function kp(y, T = {}) {
19896
19896
  if (y.bbox != null && T.recompute !== !0)
19897
19897
  return y.bbox;
19898
19898
  const z = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
@@ -19901,8 +19901,8 @@ function x_(y, T = {}) {
19901
19901
  }), z;
19902
19902
  }
19903
19903
  function v_(y, T = {}) {
19904
- const z = x_(y), D = (z[0] + z[2]) / 2, N = (z[1] + z[3]) / 2;
19905
- return __([D, N], T.properties, T);
19904
+ const z = kp(y), D = (z[0] + z[2]) / 2, N = (z[1] + z[3]) / 2;
19905
+ return y_([D, N], T.properties, T);
19906
19906
  }
19907
19907
  const b_ = {
19908
19908
  mixins: [Gh],
@@ -19972,8 +19972,8 @@ const b_ = {
19972
19972
  }
19973
19973
  }, w_ = { class: "vs-map-slot-layers" }, S_ = ["onClick"], T_ = ["src", "alt"];
19974
19974
  function I_(y, T, z, D, N, J) {
19975
- return St(), $t("div", w_, [
19976
- (St(!0), $t(gc, null, _c(z.baseLayers, (S) => (St(), $t("div", {
19975
+ return It(), qt("div", w_, [
19976
+ (It(!0), qt(gc, null, _c(z.baseLayers, (S) => (It(), qt("div", {
19977
19977
  key: S.id,
19978
19978
  class: yc(["vs-map-slot-layers__layer", { focused: S.id == N.selectedLayer }]),
19979
19979
  onClick: (c) => J.toggleLayerVisibility(S.id)
@@ -19995,15 +19995,15 @@ const P_ = /* @__PURE__ */ cn(b_, [["render", I_], ["__scopeId", "data-v-6644a27
19995
19995
  class: "flex justify-start items-center gap-2"
19996
19996
  }, M_ = { class: "ml-1" };
19997
19997
  function z_(y, T, z, D, N, J) {
19998
- return St(), $t("div", C_, [
19999
- (St(!0), $t(gc, null, _c(z.colors, (S) => (St(), $t("div", k_, [
20000
- S.id > 0 ? (St(), $t("div", E_, [
19998
+ return It(), qt("div", C_, [
19999
+ (It(!0), qt(gc, null, _c(z.colors, (S) => (It(), qt("div", k_, [
20000
+ S.id > 0 ? (It(), qt("div", E_, [
20001
20001
  it("div", {
20002
20002
  class: "w-[15px] h-[15px] rounded-[50%] min-w-[15px]",
20003
20003
  style: ep({ backgroundColor: S.color })
20004
20004
  }, null, 4),
20005
20005
  it("div", M_, Ns(S.text), 1)
20006
- ])) : Cr("", !0)
20006
+ ])) : jr("", !0)
20007
20007
  ]))), 256))
20008
20008
  ]);
20009
20009
  }
@@ -20043,12 +20043,12 @@ const D_ = /* @__PURE__ */ cn(A_, [["render", z_]]), L_ = {
20043
20043
  };
20044
20044
  },
20045
20045
  async mounted() {
20046
- var y, T, z, D, N, J, S, c, xe, _e, we, ae, oe, ut, Ne, Je, Fe, ct, Ke, je, wt, yt, Et, Pt, er, si, tr, bt;
20046
+ var y, T, z, D, N, J, S, c, xe, _e, ve, ae, oe, ut, Ne, Je, Fe, ct, Ke, je, wt, yt, Et, Pt, er, si, tr, bt;
20047
20047
  if (await this.createMap(), (y = this.row) != null && y.geom) {
20048
20048
  const En = new URLSearchParams(window.location.search);
20049
20049
  if (((z = (T = this.row) == null ? void 0 : T.geom) == null ? void 0 : z.coordinates.length) <= 1 && En.has("id")) {
20050
20050
  if (typeof ((c = (S = (J = (N = (D = this.row) == null ? void 0 : D.geom) == null ? void 0 : N.coordinates) == null ? void 0 : J[0]) == null ? void 0 : S[0]) == null ? void 0 : c[0]) == "number")
20051
- (ae = this.map) == null || ae.fitBounds((we = (_e = (xe = this.row) == null ? void 0 : xe.geom) == null ? void 0 : _e.coordinates) == null ? void 0 : we[0], {
20051
+ (ae = this.map) == null || ae.fitBounds((ve = (_e = (xe = this.row) == null ? void 0 : xe.geom) == null ? void 0 : _e.coordinates) == null ? void 0 : ve[0], {
20052
20052
  maxZoom: 13,
20053
20053
  padding: 30
20054
20054
  });
@@ -20176,14 +20176,14 @@ const D_ = /* @__PURE__ */ cn(A_, [["render", z_]]), L_ = {
20176
20176
  }, R_ = { class: "vs-map-portal relative" };
20177
20177
  function F_(y, T, z, D, N, J) {
20178
20178
  const S = Yi("MapLegend"), c = Yi("MapSlotLayers");
20179
- return St(), $t("div", R_, [
20179
+ return It(), qt("div", R_, [
20180
20180
  it("div", {
20181
20181
  id: "maplibre-map",
20182
20182
  ref: "maplibreMap",
20183
20183
  style: ep({ height: z.height, width: z.width })
20184
20184
  }, null, 4),
20185
- kr(S, { colors: N.colors }, null, 8, ["colors"]),
20186
- kr(c, {
20185
+ Cr(S, { colors: N.colors }, null, 8, ["colors"]),
20186
+ Cr(c, {
20187
20187
  map: N.map,
20188
20188
  baseLayers: z.basemap
20189
20189
  }, null, 8, ["map", "baseLayers"])
@@ -20204,7 +20204,7 @@ const B_ = /* @__PURE__ */ cn(L_, [["render", F_]]), O_ = {}, V_ = {
20204
20204
  N_
20205
20205
  ];
20206
20206
  function U_(y, T) {
20207
- return St(), $t("svg", V_, j_);
20207
+ return It(), qt("svg", V_, j_);
20208
20208
  }
20209
20209
  const $_ = /* @__PURE__ */ cn(O_, [["render", U_]]), q_ = {}, Z_ = {
20210
20210
  xmlns: "http://www.w3.org/2000/svg",
@@ -20228,7 +20228,7 @@ const $_ = /* @__PURE__ */ cn(O_, [["render", U_]]), q_ = {}, Z_ = {
20228
20228
  X_
20229
20229
  ];
20230
20230
  function K_(y, T) {
20231
- return St(), $t("svg", Z_, J_);
20231
+ return It(), qt("svg", Z_, J_);
20232
20232
  }
20233
20233
  const Y_ = /* @__PURE__ */ cn(q_, [["render", K_]]), Q_ = {}, ey = {
20234
20234
  xmlns: "http://www.w3.org/2000/svg",
@@ -20252,7 +20252,7 @@ const Y_ = /* @__PURE__ */ cn(q_, [["render", K_]]), Q_ = {}, ey = {
20252
20252
  ny
20253
20253
  ];
20254
20254
  function oy(y, T) {
20255
- return St(), $t("svg", ey, sy);
20255
+ return It(), qt("svg", ey, sy);
20256
20256
  }
20257
20257
  const ay = /* @__PURE__ */ cn(Q_, [["render", oy]]), ly = {}, cy = {
20258
20258
  class: "shrink-0 size-3",
@@ -20270,7 +20270,7 @@ const ay = /* @__PURE__ */ cn(Q_, [["render", oy]]), ly = {}, cy = {
20270
20270
  uy
20271
20271
  ];
20272
20272
  function py(y, T) {
20273
- return St(), $t("svg", cy, dy);
20273
+ return It(), qt("svg", cy, dy);
20274
20274
  }
20275
20275
  const fy = /* @__PURE__ */ cn(ly, [["render", py]]), my = {
20276
20276
  props: {
@@ -20303,7 +20303,7 @@ const fy = /* @__PURE__ */ cn(ly, [["render", py]]), my = {
20303
20303
  this.$emit("update:visible", !1), this.$emit("onClose");
20304
20304
  }
20305
20305
  }
20306
- }, kp = (y) => (Am("data-v-0a173fd8"), y = y(), Cm(), y), gy = { class: "vsTailwind ui-dialog__wrapper" }, _y = { class: "w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50" }, yy = { class: "py-2.5 px-4 flex justify-between items-center border-b" }, xy = { class: "font-medium text-gray-800" }, vy = /* @__PURE__ */ kp(() => /* @__PURE__ */ it("span", { class: "sr-only" }, "Close", -1)), by = /* @__PURE__ */ kp(() => /* @__PURE__ */ it("svg", {
20306
+ }, Ep = (y) => (Cm("data-v-0a173fd8"), y = y(), km(), y), gy = { class: "vsTailwind ui-dialog__wrapper" }, _y = { class: "w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50" }, yy = { class: "py-2.5 px-4 flex justify-between items-center border-b" }, xy = { class: "font-medium text-gray-800" }, vy = /* @__PURE__ */ Ep(() => /* @__PURE__ */ it("span", { class: "sr-only" }, "Close", -1)), by = /* @__PURE__ */ Ep(() => /* @__PURE__ */ it("svg", {
20307
20307
  class: "flex-shrink-0 w-4 h-4",
20308
20308
  xmlns: "http://www.w3.org/2000/svg",
20309
20309
  width: "24",
@@ -20325,12 +20325,12 @@ const fy = /* @__PURE__ */ cn(ly, [["render", py]]), my = {
20325
20325
  class: "flex justify-end gap-x-2"
20326
20326
  };
20327
20327
  function Iy(y, T, z, D, N, J) {
20328
- return St(), Vo(Tm, { to: "#modal" }, [
20329
- kr(Fd, { name: "fade" }, {
20328
+ return It(), Vo(Im, { to: "#modal" }, [
20329
+ Cr(Fd, { name: "fade" }, {
20330
20330
  default: nl(() => [
20331
- Im(it("div", gy, [
20331
+ Pm(it("div", gy, [
20332
20332
  it("div", _y, [
20333
- kr(Fd, {
20333
+ Cr(Fd, {
20334
20334
  name: "content",
20335
20335
  appear: ""
20336
20336
  }, {
@@ -20349,38 +20349,38 @@ function Iy(y, T, z, D, N, J) {
20349
20349
  it("div", Sy, [
20350
20350
  sl(y.$slots, "default", {}, void 0, !0)
20351
20351
  ]),
20352
- J.hasSlot ? (St(), $t("div", Ty, [
20352
+ J.hasSlot ? (It(), qt("div", Ty, [
20353
20353
  sl(y.$slots, "footer", {}, void 0, !0)
20354
- ])) : Cr("", !0)
20354
+ ])) : jr("", !0)
20355
20355
  ], 2)
20356
20356
  ]),
20357
20357
  _: 3
20358
20358
  })
20359
20359
  ])
20360
20360
  ], 512), [
20361
- [Pm, z.visible]
20361
+ [Am, z.visible]
20362
20362
  ])
20363
20363
  ]),
20364
20364
  _: 3
20365
20365
  })
20366
20366
  ]);
20367
20367
  }
20368
- const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd8"]]), Ay = km({
20368
+ const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd8"]]), Ay = Em({
20369
20369
  props: [
20370
20370
  "title",
20371
20371
  "table",
20372
- "tableComponent",
20373
20372
  "rows",
20374
20373
  "initTotal",
20375
20374
  "colorAttr",
20376
20375
  "maxBounds",
20377
20376
  "id",
20378
- "isAutocomplete"
20377
+ "isAutocomplete",
20378
+ "zoom"
20379
20379
  ],
20380
20380
  mixins: [Gh],
20381
20381
  components: {
20382
20382
  MapPortal: B_,
20383
- NoData: Um,
20383
+ NoData: $m,
20384
20384
  FilterIcon: $_,
20385
20385
  VisibleMapIcon: Y_,
20386
20386
  HiddenMapIcon: ay,
@@ -20414,6 +20414,7 @@ const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd
20414
20414
  activeFiltersCount: "",
20415
20415
  visibleTrue: !0,
20416
20416
  regionSelectValue: null,
20417
+ currentBbox: null,
20417
20418
  optionRowsCount: [
20418
20419
  {
20419
20420
  value: 10,
@@ -20428,12 +20429,11 @@ const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd
20428
20429
  label: "30"
20429
20430
  }
20430
20431
  ],
20431
- handleDebouncedUpdateValue: g_((y) => {
20432
+ handleDebouncedUpdateValue: __((y) => {
20432
20433
  this.handleSearchValue(y);
20433
20434
  }, 500)
20434
20435
  };
20435
20436
  },
20436
- computed: {},
20437
20437
  watch: {
20438
20438
  map() {
20439
20439
  this.map.on("mousemove", this.handleMapHover), this.map.on("click", this.handleMapClick);
@@ -20452,20 +20452,23 @@ const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd
20452
20452
  searchRegion(y) {
20453
20453
  this.getReginOptions();
20454
20454
  },
20455
- async regionSelectValue() {
20456
- var N, J, S, c, xe, _e;
20457
- const y = y_((S = (J = (N = this.regionSelectValue) == null ? void 0 : N.geom) == null ? void 0 : J.coordinates) == null ? void 0 : S[0]), T = v_(y).geometry.coordinates, z = this.map.getSource("region-search-id");
20458
- z ? z.setData({
20455
+ async regionSelectValue(y, T) {
20456
+ var S, c, xe, _e, ve, ae;
20457
+ y && (this.filtersParam.includes("katottg=") ? this.filtersParam = this.filtersParam.replace(/katottg=[^|]*/, `katottg=${y.codifier}`) : this.filtersParam = this.filtersParam + `|katottg=${y.codifier}`), y || (this.filtersParam = this.filtersParam.replace(/katottg=[^|]*/, null)), this.getData();
20458
+ const z = x_(
20459
+ (xe = (c = (S = this.regionSelectValue) == null ? void 0 : S.geom) == null ? void 0 : c.coordinates) == null ? void 0 : xe[0]
20460
+ ), D = v_(z).geometry.coordinates, N = this.map.getSource("region-search-id");
20461
+ this.currentBbox = kp(z), N ? N.setData({
20459
20462
  type: "Feature",
20460
- geometry: (xe = this.regionSelectValue) == null ? void 0 : xe.geom
20463
+ geometry: (ve = this.regionSelectValue) == null ? void 0 : ve.geom
20461
20464
  }) : this.map.addSource("region-search-id", {
20462
20465
  type: "geojson",
20463
20466
  data: {
20464
20467
  type: "Feature",
20465
- geometry: (c = this.regionSelectValue) == null ? void 0 : c.geom
20468
+ geometry: (_e = this.regionSelectValue) == null ? void 0 : _e.geom
20466
20469
  }
20467
20470
  });
20468
- const D = {
20471
+ const J = {
20469
20472
  id: "region-search-id",
20470
20473
  type: "fill",
20471
20474
  source: "region-search-id",
@@ -20474,7 +20477,7 @@ const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd
20474
20477
  "fill-opacity": 0.1
20475
20478
  }
20476
20479
  };
20477
- await this.map.addLayer(D), this.moveLayer("site.prc.parcel_object.table"), (_e = this.map) == null || _e.fitBounds([T, T], { zoom: 10, padding: 20 });
20480
+ await this.map.addLayer(J), this.moveLayer("site.prc.parcel_object.table"), (ae = this.map) == null || ae.fitBounds([D, D], { zoom: 10, padding: 20 }), this.getData();
20478
20481
  }
20479
20482
  },
20480
20483
  created() {
@@ -20558,7 +20561,7 @@ const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd
20558
20561
  [40, 52.5]
20559
20562
  ],
20560
20563
  {}
20561
- ), this.map.removeLayer("region-search-id"));
20564
+ ), this.currentBbox = null, this.map.removeLayer("region-search-id"), this.getData());
20562
20565
  },
20563
20566
  handleFilterChange(y) {
20564
20567
  this.currentPage = y.state.page || 1, this.filterUrl = y.url.split("|").filter((T) => !T.includes("page=")).join("|");
@@ -20597,7 +20600,7 @@ const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd
20597
20600
  this.toggleFilterShown(), this.isFilterVisible = !1;
20598
20601
  },
20599
20602
  resetFilters() {
20600
- this.$refs.filter && (this.$refs.filter.clearAll(), this.search = "", this.isFilterVisible = !1, this.filtersParam = "", this.activeFilters = null, this.tabsIsVisible = !1, this.getData());
20603
+ this.$refs.filter && (this.$refs.filter.clearAll(), this.search = "", this.isFilterVisible = !1, this.filtersParam = "", this.regionSelectValue = null, this.activeFilters = null, this.tabsIsVisible = !1, this.handleSearchRegionValue(""));
20601
20604
  },
20602
20605
  checkFilterLength() {
20603
20606
  var T, z;
@@ -20618,12 +20621,12 @@ const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd
20618
20621
  )), this.checkUrl();
20619
20622
  },
20620
20623
  async selectRow(y) {
20621
- var N, J, S, c, xe, _e, we, ae, oe, ut, Ne, Je, Fe, ct, Ke, je, wt, yt, Et, Pt;
20624
+ var N, J, S, c, xe, _e, ve, ae, oe, ut, Ne, Je, Fe, ct, Ke, je, wt, yt, Et, Pt;
20622
20625
  this.isMapVisible = !0, this.selectedRow = y;
20623
20626
  const T = window.location.pathname, z = new URLSearchParams(window.location.search);
20624
20627
  z.set("id", `${y.id}`);
20625
20628
  const D = `${T}?${z.toString()}`;
20626
- window.history.pushState({}, "", D), this.checkUrl(), y != null && y.geom && (((N = y == null ? void 0 : y.geom) == null ? void 0 : N.coordinates.length) <= 1 ? typeof ((xe = (c = (S = (J = y == null ? void 0 : y.geom) == null ? void 0 : J.coordinates) == null ? void 0 : S[0]) == null ? void 0 : c[0]) == null ? void 0 : xe[0]) == "number" ? (ae = this.map) == null || ae.fitBounds((we = (_e = y == null ? void 0 : y.geom) == null ? void 0 : _e.coordinates) == null ? void 0 : we[0], {
20629
+ window.history.pushState({}, "", D), this.checkUrl(), y != null && y.geom && (((N = y == null ? void 0 : y.geom) == null ? void 0 : N.coordinates.length) <= 1 ? typeof ((xe = (c = (S = (J = y == null ? void 0 : y.geom) == null ? void 0 : J.coordinates) == null ? void 0 : S[0]) == null ? void 0 : c[0]) == null ? void 0 : xe[0]) == "number" ? (ae = this.map) == null || ae.fitBounds((ve = (_e = y == null ? void 0 : y.geom) == null ? void 0 : _e.coordinates) == null ? void 0 : ve[0], {
20627
20630
  maxZoom: 13,
20628
20631
  padding: 30
20629
20632
  }) : typeof ((Je = (Ne = (ut = (oe = y == null ? void 0 : y.geom) == null ? void 0 : oe.coordinates) == null ? void 0 : ut[0]) == null ? void 0 : Ne[0]) == null ? void 0 : Je[0]) == "object" && ((je = this.map) == null || je.fitBounds((Ke = (ct = (Fe = y == null ? void 0 : y.geom) == null ? void 0 : Fe.coordinates) == null ? void 0 : ct[0]) == null ? void 0 : Ke[0], {
@@ -20686,12 +20689,12 @@ const Py = /* @__PURE__ */ cn(my, [["render", Iy], ["__scopeId", "data-v-0a173fd
20686
20689
  style: { display: "none" }
20687
20690
  };
20688
20691
  function r0(y, T, z, D, N, J) {
20689
- const S = Yi("VsAutocompleteOption"), c = Yi("vs-autocomplete"), xe = Yi("vs-text"), _e = Yi("FilterIcon"), we = Yi("VsFilter"), ae = Yi("VsDialog"), oe = Yi("VisibleMapIcon"), ut = Yi("HiddenMapIcon"), Ne = Yi("CloseIcon"), Je = Yi("NoData"), Fe = Yi("VsPagination"), ct = Yi("MapPortal");
20690
- return St(), $t("section", Cy, [
20692
+ const S = Yi("VsAutocompleteOption"), c = Yi("vs-autocomplete"), xe = Yi("vs-text"), _e = Yi("FilterIcon"), ve = Yi("VsFilter"), ae = Yi("VsDialog"), oe = Yi("VisibleMapIcon"), ut = Yi("HiddenMapIcon"), Ne = Yi("CloseIcon"), Je = Yi("NoData"), Fe = Yi("VsPagination"), ct = Yi("MapPortal");
20693
+ return It(), qt("section", Cy, [
20691
20694
  it("div", null, [
20692
20695
  it("div", ky, [
20693
20696
  it("div", Ey, [
20694
- y.isAutocomplete ? (St(), Vo(c, {
20697
+ y.isAutocomplete ? (It(), Vo(c, {
20695
20698
  key: 0,
20696
20699
  modelValue: y.regionSelectValue,
20697
20700
  "onUpdate:modelValue": [
@@ -20707,7 +20710,7 @@ function r0(y, T, z, D, N, J) {
20707
20710
  class: "w-[350px]"
20708
20711
  }, {
20709
20712
  default: nl(() => [
20710
- (St(!0), $t(gc, null, _c(y.searchRegionResult, (Ke) => (St(), Vo(S, {
20713
+ (It(!0), qt(gc, null, _c(y.searchRegionResult, (Ke) => (It(), Vo(S, {
20711
20714
  class: "px-0 py-0",
20712
20715
  key: Ke == null ? void 0 : Ke.id,
20713
20716
  value: Ke,
@@ -20715,8 +20718,8 @@ function r0(y, T, z, D, N, J) {
20715
20718
  }, null, 8, ["value", "label"]))), 128))
20716
20719
  ]),
20717
20720
  _: 1
20718
- }, 8, ["modelValue", "onUpdate:modelValue", "onClick"])) : Cr("", !0),
20719
- kr(xe, {
20721
+ }, 8, ["modelValue", "onUpdate:modelValue", "onClick"])) : jr("", !0),
20722
+ Cr(xe, {
20720
20723
  "model-value": y.search,
20721
20724
  "onUpdate:modelValue": y.handleDebouncedUpdateValue,
20722
20725
  class: "w-full table-interface-search [&>input:focus]:ring-1",
@@ -20727,17 +20730,16 @@ function r0(y, T, z, D, N, J) {
20727
20730
  style: { height: "38px", "min-width": "300px", "max-width": "300px" },
20728
20731
  ref: "searchInput"
20729
20732
  }, null, 8, ["model-value", "onUpdate:modelValue"]),
20730
- y.total >= 1 ? (St(), $t("button", {
20731
- key: 1,
20733
+ it("button", {
20732
20734
  type: "button",
20733
20735
  class: "py-2 px-2.5 max-h-[38px] inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
20734
20736
  onClick: T[2] || (T[2] = (...Ke) => y.toggleFilterShown && y.toggleFilterShown(...Ke))
20735
20737
  }, [
20736
- kr(_e),
20737
- Em(" Фільтри "),
20738
- y.activeFiltersCount >= 1 ? (St(), $t("span", My, Ns(y.activeFiltersCount), 1)) : Cr("", !0)
20739
- ])) : Cr("", !0),
20740
- kr(ae, {
20738
+ Cr(_e),
20739
+ Mm(" Фільтри "),
20740
+ y.activeFiltersCount >= 1 ? (It(), qt("span", My, Ns(y.activeFiltersCount), 1)) : jr("", !0)
20741
+ ]),
20742
+ Cr(ae, {
20741
20743
  visible: y.isFilterVisible,
20742
20744
  "onUpdate:visible": T[5] || (T[5] = (Ke) => y.isFilterVisible = Ke),
20743
20745
  title: "Фільтри",
@@ -20759,7 +20761,7 @@ function r0(y, T, z, D, N, J) {
20759
20761
  ])
20760
20762
  ]),
20761
20763
  default: nl(() => [
20762
- y.filters ? (St(), Vo(we, {
20764
+ y.filters ? (It(), Vo(ve, {
20763
20765
  key: 0,
20764
20766
  ref: "filter",
20765
20767
  scheme: y.filters,
@@ -20768,7 +20770,7 @@ function r0(y, T, z, D, N, J) {
20768
20770
  name: "filter",
20769
20771
  layout: "default",
20770
20772
  onFilterChange: y.handleFilterChange
20771
- }, null, 8, ["scheme", "onFilterClose", "onFilterChange"])) : Cr("", !0)
20773
+ }, null, 8, ["scheme", "onFilterClose", "onFilterChange"])) : jr("", !0)
20772
20774
  ]),
20773
20775
  _: 1
20774
20776
  }, 8, ["visible"])
@@ -20779,7 +20781,7 @@ function r0(y, T, z, D, N, J) {
20779
20781
  title: y.isMapVisible ? "Приховати карту" : "Показати карту",
20780
20782
  onClick: T[7] || (T[7] = (...Ke) => y.toggleMapVisible && y.toggleMapVisible(...Ke))
20781
20783
  }, [
20782
- y.isMapVisible ? (St(), Vo(oe, { key: 0 })) : (St(), Vo(ut, { key: 1 })),
20784
+ y.isMapVisible ? (It(), Vo(oe, { key: 0 })) : (It(), Vo(ut, { key: 1 })),
20783
20785
  Ly
20784
20786
  ], 8, Dy)
20785
20787
  ]),
@@ -20797,8 +20799,8 @@ function r0(y, T, z, D, N, J) {
20797
20799
  Vy
20798
20800
  ]),
20799
20801
  it("div", Ny, [
20800
- y.activeFilters ? (St(), $t("div", jy, [
20801
- (St(!0), $t(gc, null, _c(y.activeFilters, (Ke, je, wt) => (St(), $t("span", {
20802
+ y.activeFilters ? (It(), qt("div", jy, [
20803
+ (It(!0), qt(gc, null, _c(y.activeFilters, (Ke, je, wt) => (It(), qt("span", {
20802
20804
  class: "mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full",
20803
20805
  key: wt
20804
20806
  }, [
@@ -20810,28 +20812,28 @@ function r0(y, T, z, D, N, J) {
20810
20812
  class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
20811
20813
  onClick: (yt) => y.clearFilter(je)
20812
20814
  }, [
20813
- kr(Ne)
20815
+ Cr(Ne)
20814
20816
  ], 8, Zy)
20815
20817
  ]))), 128)),
20816
- Object.keys(y.activeFilters).length >= 2 ? (St(), $t("span", Gy, [
20818
+ Object.keys(y.activeFilters).length >= 2 ? (It(), qt("span", Gy, [
20817
20819
  Hy,
20818
20820
  it("button", {
20819
20821
  type: "button",
20820
20822
  class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
20821
20823
  onClick: T[8] || (T[8] = (...Ke) => y.resetFilters && y.resetFilters(...Ke))
20822
20824
  }, [
20823
- kr(Ne)
20825
+ Cr(Ne)
20824
20826
  ])
20825
- ])) : Cr("", !0)
20826
- ])) : Cr("", !0),
20827
+ ])) : jr("", !0)
20828
+ ])) : jr("", !0),
20827
20829
  y.total >= 1 ? sl(y.$slots, "table", {
20828
20830
  key: 1,
20829
20831
  rows: y.tableData,
20830
20832
  map: y.map,
20831
20833
  selectRow: y.selectRow,
20832
20834
  getData: y.getData
20833
- }) : (St(), $t("div", Wy, [
20834
- kr(Je),
20835
+ }) : (It(), qt("div", Wy, [
20836
+ Cr(Je),
20835
20837
  Xy,
20836
20838
  Jy,
20837
20839
  it("button", {
@@ -20841,10 +20843,10 @@ function r0(y, T, z, D, N, J) {
20841
20843
  }, " Очистити дані пошуку ")
20842
20844
  ]))
20843
20845
  ]),
20844
- y.total >= 1 ? (St(), $t("hr", Ky)) : Cr("", !0),
20845
- y.total >= 1 ? (St(), $t("div", Yy, [
20846
+ y.total >= 1 ? (It(), qt("hr", Ky)) : jr("", !0),
20847
+ y.total >= 1 ? (It(), qt("div", Yy, [
20846
20848
  it("div", Qy, [
20847
- kr(Fe, {
20849
+ Cr(Fe, {
20848
20850
  total: y.total,
20849
20851
  maxPages: 7,
20850
20852
  defaultPage: y.currentPage,
@@ -20858,9 +20860,9 @@ function r0(y, T, z, D, N, J) {
20858
20860
  onPageSizeChange: y.changeLimit
20859
20861
  }, null, 8, ["total", "defaultPage", "pageSize", "onPageChange", "onPageSizeChange"])
20860
20862
  ])
20861
- ])) : Cr("", !0)
20863
+ ])) : jr("", !0)
20862
20864
  ], 2),
20863
- y.isSelectObj ? (St(), $t("div", {
20865
+ y.isSelectObj ? (It(), qt("div", {
20864
20866
  key: 0,
20865
20867
  class: yc(y.isMapVisible ? "w-2/4 mr-0 pb-5" : "w-full pb-5 mr-3"),
20866
20868
  style: { height: "calc(100vh - 152px)" }
@@ -20871,20 +20873,21 @@ function r0(y, T, z, D, N, J) {
20871
20873
  selectedRow: y.selectedRow,
20872
20874
  map: y.map
20873
20875
  })
20874
- ], 2)) : Cr("", !0),
20875
- y.isMapVisible ? (St(), $t("div", e0, [
20876
+ ], 2)) : jr("", !0),
20877
+ y.isMapVisible ? (It(), qt("div", e0, [
20876
20878
  it("section", t0, [
20877
- kr(ct, {
20879
+ Cr(ct, {
20878
20880
  height: "calc(100vh - 152px)",
20879
20881
  width: "w-2/4",
20880
20882
  table: y.table,
20881
20883
  filtersParam: y.filtersParam,
20882
20884
  row: y.selectedRow,
20883
20885
  colorAttr: y.colorAttr,
20884
- maxBounds: y.maxBounds
20885
- }, null, 8, ["table", "filtersParam", "row", "colorAttr", "maxBounds"])
20886
+ maxBounds: y.maxBounds,
20887
+ zoom: y.zoom
20888
+ }, null, 8, ["table", "filtersParam", "row", "colorAttr", "maxBounds", "zoom"])
20886
20889
  ])
20887
- ])) : Cr("", !0)
20890
+ ])) : jr("", !0)
20888
20891
  ]),
20889
20892
  it("div", i0, [
20890
20893
  sl(y.$slots, "popup", { data: y.hoverData })
@@ -20892,12 +20895,12 @@ function r0(y, T, z, D, N, J) {
20892
20895
  ])
20893
20896
  ]);
20894
20897
  }
20895
- const Ep = /* @__PURE__ */ cn(Ay, [["render", r0]]), n0 = (y) => {
20896
- y.component("VsPartsMap", Ep);
20898
+ const Mp = /* @__PURE__ */ cn(Ay, [["render", r0]]), n0 = (y) => {
20899
+ y.component("VsPartsMap", Mp);
20897
20900
  }, s0 = {
20898
20901
  install: n0,
20899
20902
  components: {
20900
- VsPartsMap: Ep
20903
+ VsPartsMap: Mp
20901
20904
  }
20902
20905
  };
20903
20906
  typeof window < "u" && (window.PartsMap = s0);