@opengis/gis 0.1.41 → 0.1.42

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.
@@ -1,7 +1,7 @@
1
1
  var C0 = Object.defineProperty;
2
2
  var P0 = (u, d, y) => d in u ? C0(u, d, { enumerable: !0, configurable: !0, writable: !0, value: y }) : u[d] = y;
3
3
  var br = (u, d, y) => P0(u, typeof d != "symbol" ? d + "" : d, y);
4
- import { computed as lr, createElementBlock as Ae, openBlock as ve, normalizeStyle as Zo, createCommentVNode as yt, createElementVNode as se, toDisplayString as ot, Fragment as ft, renderList as Ot, normalizeClass as zi, ref as Or, onMounted as el, resolveComponent as Kt, createBlock as jr, withCtx as or, createTextVNode as hr, watch as $n, withDirectives as Yn, vModelText as pd, vModelCheckbox as Ad, createVNode as tr, nextTick as vc, createStaticVNode as vh, withModifiers as I0, resolveDynamicComponent as $a, vShow as dh, withKeys as E0, Teleport as kd, onUnmounted as M0, mergeProps as L0, renderSlot as R0 } from "vue";
4
+ import { computed as lr, createElementBlock as Ae, openBlock as ve, normalizeStyle as Zo, createCommentVNode as yt, createElementVNode as se, toDisplayString as ot, Fragment as ft, renderList as Ot, normalizeClass as zi, ref as Or, onMounted as el, resolveComponent as Kt, createBlock as jr, withCtx as sr, createTextVNode as hr, watch as $n, withDirectives as Yn, vModelText as pd, vModelCheckbox as Ad, createVNode as tr, nextTick as vc, createStaticVNode as vh, withModifiers as I0, resolveDynamicComponent as $a, vShow as dh, withKeys as E0, Teleport as kd, onUnmounted as M0, mergeProps as L0, renderSlot as R0 } from "vue";
5
5
  function Fg(u, d) {
6
6
  return function() {
7
7
  return u.apply(d, arguments);
@@ -3521,19 +3521,19 @@ function Kx() {
3521
3521
  for (const c in n) o[c] = t.call(this, n[c], c, n);
3522
3522
  return o;
3523
3523
  }
3524
- function Ut(n, t, i) {
3524
+ function jt(n, t, i) {
3525
3525
  const o = {};
3526
3526
  for (const c in n) t.call(this, n[c], c, n) && (o[c] = n[c]);
3527
3527
  return o;
3528
3528
  }
3529
- function Lt(n) {
3530
- return Array.isArray(n) ? n.map(Lt) : typeof n == "object" && n ? kt(n, Lt) : n;
3529
+ function It(n) {
3530
+ return Array.isArray(n) ? n.map(It) : typeof n == "object" && n ? kt(n, It) : n;
3531
3531
  }
3532
- const It = {};
3533
- function ar(n) {
3534
- It[n] || (typeof console < "u" && console.warn(n), It[n] = !0);
3532
+ const Et = {};
3533
+ function or(n) {
3534
+ Et[n] || (typeof console < "u" && console.warn(n), Et[n] = !0);
3535
3535
  }
3536
- function nr(n, t, i) {
3536
+ function ar(n, t, i) {
3537
3537
  return (i.y - n.y) * (t.x - n.x) > (t.y - n.y) * (i.x - n.x);
3538
3538
  }
3539
3539
  function wr(n) {
@@ -3565,7 +3565,7 @@ function Kx() {
3565
3565
  }
3566
3566
  });
3567
3567
  }
3568
- let Xt, Qt;
3568
+ let Yt, Xt;
3569
3569
  function Ct(n, t, i, o) {
3570
3570
  return n.addEventListener(t, i, o), { unsubscribe: () => {
3571
3571
  n.removeEventListener(t, i, o);
@@ -3750,7 +3750,7 @@ function Kx() {
3750
3750
  for (const m in n) Object.prototype.hasOwnProperty.call(n, m) && (Ce(n[m], t[m]) || i.push({ command: f, args: [o, m, t[m], c] }));
3751
3751
  for (const m in t) Object.prototype.hasOwnProperty.call(t, m) && !Object.prototype.hasOwnProperty.call(n, m) && (Ce(n[m], t[m]) || i.push({ command: f, args: [o, m, t[m], c] }));
3752
3752
  }
3753
- function Et(n) {
3753
+ function Mt(n) {
3754
3754
  return n.id;
3755
3755
  }
3756
3756
  function St(n, t) {
@@ -3761,7 +3761,7 @@ function Kx() {
3761
3761
  this.message = (t ? `${t}: ` : "") + o, c && (this.identifier = c), i != null && i.__line__ && (this.line = i.__line__);
3762
3762
  }
3763
3763
  }
3764
- function sr(n, ...t) {
3764
+ function nr(n, ...t) {
3765
3765
  for (const i of t) for (const o in i) n[o] = i[o];
3766
3766
  return n;
3767
3767
  }
@@ -3770,13 +3770,13 @@ function Kx() {
3770
3770
  super(i), this.message = i, this.key = t;
3771
3771
  }
3772
3772
  }
3773
- class Yt {
3773
+ class Qt {
3774
3774
  constructor(t, i = []) {
3775
3775
  this.parent = t, this.bindings = {};
3776
3776
  for (const [o, c] of i) this.bindings[o] = c;
3777
3777
  }
3778
3778
  concat(t) {
3779
- return new Yt(this, t);
3779
+ return new Qt(this, t);
3780
3780
  }
3781
3781
  get(t) {
3782
3782
  if (this.bindings[t]) return this.bindings[t];
@@ -3787,7 +3787,7 @@ function Kx() {
3787
3787
  return !!this.bindings[t] || !!this.parent && this.parent.has(t);
3788
3788
  }
3789
3789
  }
3790
- const wt = { kind: "null" }, Ne = { kind: "number" }, xt = { kind: "string" }, Mt = { kind: "boolean" }, Lr = { kind: "color" }, Rr = { kind: "projectionDefinition" }, Di = { kind: "object" }, Rt = { kind: "value" }, As = { kind: "collator" }, $s = { kind: "formatted" }, ts = { kind: "padding" }, eo = { kind: "colorArray" }, Sn = { kind: "numberArray" }, rs = { kind: "resolvedImage" }, Wr = { kind: "variableAnchorOffsetCollection" };
3790
+ const wt = { kind: "null" }, Ne = { kind: "number" }, xt = { kind: "string" }, Lt = { kind: "boolean" }, Lr = { kind: "color" }, Rr = { kind: "projectionDefinition" }, Di = { kind: "object" }, Rt = { kind: "value" }, As = { kind: "collator" }, $s = { kind: "formatted" }, ts = { kind: "padding" }, eo = { kind: "colorArray" }, Sn = { kind: "numberArray" }, rs = { kind: "resolvedImage" }, Wr = { kind: "variableAnchorOffsetCollection" };
3791
3791
  function Ni(n, t) {
3792
3792
  return { kind: "array", itemType: n, N: t };
3793
3793
  }
@@ -3798,7 +3798,7 @@ function Kx() {
3798
3798
  }
3799
3799
  return n.kind;
3800
3800
  }
3801
- const to = [wt, Ne, xt, Mt, Lr, Rr, $s, Di, Ni(Rt), ts, Sn, eo, rs, Wr];
3801
+ const to = [wt, Ne, xt, Lt, Lr, Rr, $s, Di, Ni(Rt), ts, Sn, eo, rs, Wr];
3802
3802
  function ks(n, t) {
3803
3803
  if (t.kind === "error") return null;
3804
3804
  if (n.kind === "array") {
@@ -4160,7 +4160,7 @@ function Kx() {
4160
4160
  function zr(n) {
4161
4161
  if (n === null) return wt;
4162
4162
  if (typeof n == "string") return xt;
4163
- if (typeof n == "boolean") return Mt;
4163
+ if (typeof n == "boolean") return Lt;
4164
4164
  if (typeof n == "number") return Ne;
4165
4165
  if (n instanceof Wt) return Lr;
4166
4166
  if (n instanceof Oi) return Rr;
@@ -4212,7 +4212,7 @@ function Kx() {
4212
4212
  return !0;
4213
4213
  }
4214
4214
  }
4215
- const Es = { string: xt, number: Ne, boolean: Mt, object: Di };
4215
+ const Es = { string: xt, number: Ne, boolean: Lt, object: Di };
4216
4216
  class zt {
4217
4217
  constructor(t, i) {
4218
4218
  this.type = t, this.args = i;
@@ -4260,7 +4260,7 @@ function Kx() {
4260
4260
  return this.args.every((t) => t.outputDefined());
4261
4261
  }
4262
4262
  }
4263
- const Xo = { "to-boolean": Mt, "to-color": Lr, "to-number": Ne, "to-string": xt };
4263
+ const Xo = { "to-boolean": Lt, "to-color": Lr, "to-number": Ne, "to-string": xt };
4264
4264
  class Si {
4265
4265
  constructor(t, i) {
4266
4266
  this.type = t, this.args = i;
@@ -4381,7 +4381,7 @@ function Kx() {
4381
4381
  }
4382
4382
  }
4383
4383
  class ao {
4384
- constructor(t, i, o = [], c, f = new Yt(), m = []) {
4384
+ constructor(t, i, o = [], c, f = new Qt(), m = []) {
4385
4385
  this.registry = t, this.path = o, this.key = o.map((_) => `[${_}]`).join(""), this.scope = f, this.errors = m, this.expectedType = c, this._isConstant = i;
4386
4386
  }
4387
4387
  parse(t, i, o, c, f = {}) {
@@ -4505,12 +4505,12 @@ function Kx() {
4505
4505
  }
4506
4506
  class Qo {
4507
4507
  constructor(t, i) {
4508
- this.type = Mt, this.needle = t, this.haystack = i;
4508
+ this.type = Lt, this.needle = t, this.haystack = i;
4509
4509
  }
4510
4510
  static parse(t, i) {
4511
4511
  if (t.length !== 3) return i.error(`Expected 2 arguments, but found ${t.length - 1} instead.`);
4512
4512
  const o = i.parse(t[1], 1, Rt), c = i.parse(t[2], 2, Rt);
4513
- return o && c ? il(o.type, [Mt, xt, Ne, wt, Rt]) ? new Qo(o, c) : i.error(`Expected first argument to be of type boolean, string, number or null, but found ${xr(o.type)} instead`) : null;
4513
+ return o && c ? il(o.type, [Lt, xt, Ne, wt, Rt]) ? new Qo(o, c) : i.error(`Expected first argument to be of type boolean, string, number or null, but found ${xr(o.type)} instead`) : null;
4514
4514
  }
4515
4515
  evaluate(t) {
4516
4516
  const i = this.needle.evaluate(t), o = this.haystack.evaluate(t);
@@ -4534,7 +4534,7 @@ function Kx() {
4534
4534
  if (t.length <= 2 || t.length >= 5) return i.error(`Expected 3 or 4 arguments, but found ${t.length - 1} instead.`);
4535
4535
  const o = i.parse(t[1], 1, Rt), c = i.parse(t[2], 2, Rt);
4536
4536
  if (!o || !c) return null;
4537
- if (!il(o.type, [Mt, xt, Ne, wt, Rt])) return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${xr(o.type)} instead`);
4537
+ if (!il(o.type, [Lt, xt, Ne, wt, Rt])) return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${xr(o.type)} instead`);
4538
4538
  if (t.length === 4) {
4539
4539
  const f = i.parse(t[3], 3, Ne);
4540
4540
  return f ? new co(o, c, f) : null;
@@ -4616,7 +4616,7 @@ function Kx() {
4616
4616
  i.expectedType && i.expectedType.kind !== "value" && (o = i.expectedType);
4617
4617
  const c = [];
4618
4618
  for (let m = 1; m < t.length - 1; m += 2) {
4619
- const _ = i.parse(t[m], m, Mt);
4619
+ const _ = i.parse(t[m], m, Lt);
4620
4620
  if (!_) return null;
4621
4621
  const w = i.parse(t[m + 1], m + 1, o);
4622
4622
  if (!w) return null;
@@ -4895,7 +4895,7 @@ function Kx() {
4895
4895
  const o = n !== "==" && n !== "!=";
4896
4896
  return class by {
4897
4897
  constructor(f, m, _) {
4898
- this.type = Mt, this.lhs = f, this.rhs = m, this.collator = _, this.hasUntypedArgument = f.type.kind === "value" || m.type.kind === "value";
4898
+ this.type = Lt, this.lhs = f, this.rhs = m, this.collator = _, this.hasUntypedArgument = f.type.kind === "value" || m.type.kind === "value";
4899
4899
  }
4900
4900
  static parse(f, m) {
4901
4901
  if (f.length !== 3 && f.length !== 4) return m.error("Expected two or three arguments.");
@@ -4966,9 +4966,9 @@ function Kx() {
4966
4966
  if (t.length !== 2) return i.error("Expected one argument.");
4967
4967
  const o = t[1];
4968
4968
  if (typeof o != "object" || Array.isArray(o)) return i.error("Collator options argument must be an object.");
4969
- const c = i.parse(o["case-sensitive"] !== void 0 && o["case-sensitive"], 1, Mt);
4969
+ const c = i.parse(o["case-sensitive"] !== void 0 && o["case-sensitive"], 1, Lt);
4970
4970
  if (!c) return null;
4971
- const f = i.parse(o["diacritic-sensitive"] !== void 0 && o["diacritic-sensitive"], 1, Mt);
4971
+ const f = i.parse(o["diacritic-sensitive"] !== void 0 && o["diacritic-sensitive"], 1, Lt);
4972
4972
  if (!f) return null;
4973
4973
  let m = null;
4974
4974
  return o.locale && (m = i.parse(o.locale, 1, xt), !m) ? null : new ta(c, f, m);
@@ -5213,7 +5213,7 @@ function Kx() {
5213
5213
  }
5214
5214
  class qn {
5215
5215
  constructor(t, i) {
5216
- this.type = Mt, this.geojson = t, this.geometries = i;
5216
+ this.type = Lt, this.geojson = t, this.geometries = i;
5217
5217
  }
5218
5218
  static parse(t, i) {
5219
5219
  if (t.length !== 2) return i.error(`'within' expression requires exactly one argument, but found ${t.length - 1} instead.`);
@@ -5801,7 +5801,7 @@ function Kx() {
5801
5801
  return null;
5802
5802
  }
5803
5803
  }(t);
5804
- if (f && ((n = sr({}, n)).stops && (n.stops = n.stops.map((R) => [R[0], f(R[1])])), n.default = f(n.default ? n.default : t.default)), n.colorSpace && (m = n.colorSpace) !== "rgb" && m !== "hcl" && m !== "lab") throw new Error(`Unknown color space: "${n.colorSpace}"`);
5804
+ if (f && ((n = nr({}, n)).stops && (n.stops = n.stops.map((R) => [R[0], f(R[1])])), n.default = f(n.default ? n.default : t.default)), n.colorSpace && (m = n.colorSpace) !== "rgb" && m !== "hcl" && m !== "lab") throw new Error(`Unknown color space: "${n.colorSpace}"`);
5805
5805
  var m;
5806
5806
  const _ = function(R) {
5807
5807
  switch (R) {
@@ -5902,7 +5902,7 @@ function Kx() {
5902
5902
  }], typeof: [xt, [Rt], (n, [t]) => xr(zr(t.evaluate(n)))], "to-rgba": [Ni(Ne, 4), [Lr], (n, [t]) => {
5903
5903
  const [i, o, c, f] = t.evaluate(n).rgb;
5904
5904
  return [255 * i, 255 * o, 255 * c, f];
5905
- }], rgb: [Lr, [Ne, Ne, Ne], Xc], rgba: [Lr, [Ne, Ne, Ne, Ne], Xc], has: { type: Mt, overloads: [[[xt], (n, [t]) => Qc(t.evaluate(n), n.properties())], [[xt, Di], (n, [t, i]) => Qc(t.evaluate(n), i.evaluate(n))]] }, get: { type: Rt, overloads: [[[xt], (n, [t]) => Sl(t.evaluate(n), n.properties())], [[xt, Di], (n, [t, i]) => Sl(t.evaluate(n), i.evaluate(n))]] }, "feature-state": [Rt, [xt], (n, [t]) => Sl(t.evaluate(n), n.featureState || {})], properties: [Di, [], (n) => n.properties()], "geometry-type": [xt, [], (n) => n.geometryType()], id: [Rt, [], (n) => n.id()], zoom: [Ne, [], (n) => n.globals.zoom], "heatmap-density": [Ne, [], (n) => n.globals.heatmapDensity || 0], "line-progress": [Ne, [], (n) => n.globals.lineProgress || 0], accumulated: [Rt, [], (n) => n.globals.accumulated === void 0 ? null : n.globals.accumulated], "+": [Ne, fs(Ne), (n, t) => {
5905
+ }], rgb: [Lr, [Ne, Ne, Ne], Xc], rgba: [Lr, [Ne, Ne, Ne, Ne], Xc], has: { type: Lt, overloads: [[[xt], (n, [t]) => Qc(t.evaluate(n), n.properties())], [[xt, Di], (n, [t, i]) => Qc(t.evaluate(n), i.evaluate(n))]] }, get: { type: Rt, overloads: [[[xt], (n, [t]) => Sl(t.evaluate(n), n.properties())], [[xt, Di], (n, [t, i]) => Sl(t.evaluate(n), i.evaluate(n))]] }, "feature-state": [Rt, [xt], (n, [t]) => Sl(t.evaluate(n), n.featureState || {})], properties: [Di, [], (n) => n.properties()], "geometry-type": [xt, [], (n) => n.geometryType()], id: [Rt, [], (n) => n.id()], zoom: [Ne, [], (n) => n.globals.zoom], "heatmap-density": [Ne, [], (n) => n.globals.heatmapDensity || 0], "line-progress": [Ne, [], (n) => n.globals.lineProgress || 0], accumulated: [Rt, [], (n) => n.globals.accumulated === void 0 ? null : n.globals.accumulated], "+": [Ne, fs(Ne), (n, t) => {
5906
5906
  let i = 0;
5907
5907
  for (const o of t) i += o.evaluate(n);
5908
5908
  return i;
@@ -5913,44 +5913,44 @@ function Kx() {
5913
5913
  }], "-": { type: Ne, overloads: [[[Ne, Ne], (n, [t, i]) => t.evaluate(n) - i.evaluate(n)], [[Ne], (n, [t]) => -t.evaluate(n)]] }, "/": [Ne, [Ne, Ne], (n, [t, i]) => t.evaluate(n) / i.evaluate(n)], "%": [Ne, [Ne, Ne], (n, [t, i]) => t.evaluate(n) % i.evaluate(n)], ln2: [Ne, [], () => Math.LN2], pi: [Ne, [], () => Math.PI], e: [Ne, [], () => Math.E], "^": [Ne, [Ne, Ne], (n, [t, i]) => Math.pow(t.evaluate(n), i.evaluate(n))], sqrt: [Ne, [Ne], (n, [t]) => Math.sqrt(t.evaluate(n))], log10: [Ne, [Ne], (n, [t]) => Math.log(t.evaluate(n)) / Math.LN10], ln: [Ne, [Ne], (n, [t]) => Math.log(t.evaluate(n))], log2: [Ne, [Ne], (n, [t]) => Math.log(t.evaluate(n)) / Math.LN2], sin: [Ne, [Ne], (n, [t]) => Math.sin(t.evaluate(n))], cos: [Ne, [Ne], (n, [t]) => Math.cos(t.evaluate(n))], tan: [Ne, [Ne], (n, [t]) => Math.tan(t.evaluate(n))], asin: [Ne, [Ne], (n, [t]) => Math.asin(t.evaluate(n))], acos: [Ne, [Ne], (n, [t]) => Math.acos(t.evaluate(n))], atan: [Ne, [Ne], (n, [t]) => Math.atan(t.evaluate(n))], min: [Ne, fs(Ne), (n, t) => Math.min(...t.map((i) => i.evaluate(n)))], max: [Ne, fs(Ne), (n, t) => Math.max(...t.map((i) => i.evaluate(n)))], abs: [Ne, [Ne], (n, [t]) => Math.abs(t.evaluate(n))], round: [Ne, [Ne], (n, [t]) => {
5914
5914
  const i = t.evaluate(n);
5915
5915
  return i < 0 ? -Math.round(-i) : Math.round(i);
5916
- }], floor: [Ne, [Ne], (n, [t]) => Math.floor(t.evaluate(n))], ceil: [Ne, [Ne], (n, [t]) => Math.ceil(t.evaluate(n))], "filter-==": [Mt, [xt, Rt], (n, [t, i]) => n.properties()[t.value] === i.value], "filter-id-==": [Mt, [Rt], (n, [t]) => n.id() === t.value], "filter-type-==": [Mt, [xt], (n, [t]) => n.geometryType() === t.value], "filter-<": [Mt, [xt, Rt], (n, [t, i]) => {
5916
+ }], floor: [Ne, [Ne], (n, [t]) => Math.floor(t.evaluate(n))], ceil: [Ne, [Ne], (n, [t]) => Math.ceil(t.evaluate(n))], "filter-==": [Lt, [xt, Rt], (n, [t, i]) => n.properties()[t.value] === i.value], "filter-id-==": [Lt, [Rt], (n, [t]) => n.id() === t.value], "filter-type-==": [Lt, [xt], (n, [t]) => n.geometryType() === t.value], "filter-<": [Lt, [xt, Rt], (n, [t, i]) => {
5917
5917
  const o = n.properties()[t.value], c = i.value;
5918
5918
  return typeof o == typeof c && o < c;
5919
- }], "filter-id-<": [Mt, [Rt], (n, [t]) => {
5919
+ }], "filter-id-<": [Lt, [Rt], (n, [t]) => {
5920
5920
  const i = n.id(), o = t.value;
5921
5921
  return typeof i == typeof o && i < o;
5922
- }], "filter->": [Mt, [xt, Rt], (n, [t, i]) => {
5922
+ }], "filter->": [Lt, [xt, Rt], (n, [t, i]) => {
5923
5923
  const o = n.properties()[t.value], c = i.value;
5924
5924
  return typeof o == typeof c && o > c;
5925
- }], "filter-id->": [Mt, [Rt], (n, [t]) => {
5925
+ }], "filter-id->": [Lt, [Rt], (n, [t]) => {
5926
5926
  const i = n.id(), o = t.value;
5927
5927
  return typeof i == typeof o && i > o;
5928
- }], "filter-<=": [Mt, [xt, Rt], (n, [t, i]) => {
5928
+ }], "filter-<=": [Lt, [xt, Rt], (n, [t, i]) => {
5929
5929
  const o = n.properties()[t.value], c = i.value;
5930
5930
  return typeof o == typeof c && o <= c;
5931
- }], "filter-id-<=": [Mt, [Rt], (n, [t]) => {
5931
+ }], "filter-id-<=": [Lt, [Rt], (n, [t]) => {
5932
5932
  const i = n.id(), o = t.value;
5933
5933
  return typeof i == typeof o && i <= o;
5934
- }], "filter->=": [Mt, [xt, Rt], (n, [t, i]) => {
5934
+ }], "filter->=": [Lt, [xt, Rt], (n, [t, i]) => {
5935
5935
  const o = n.properties()[t.value], c = i.value;
5936
5936
  return typeof o == typeof c && o >= c;
5937
- }], "filter-id->=": [Mt, [Rt], (n, [t]) => {
5937
+ }], "filter-id->=": [Lt, [Rt], (n, [t]) => {
5938
5938
  const i = n.id(), o = t.value;
5939
5939
  return typeof i == typeof o && i >= o;
5940
- }], "filter-has": [Mt, [Rt], (n, [t]) => t.value in n.properties()], "filter-has-id": [Mt, [], (n) => n.id() !== null && n.id() !== void 0], "filter-type-in": [Mt, [Ni(xt)], (n, [t]) => t.value.indexOf(n.geometryType()) >= 0], "filter-id-in": [Mt, [Ni(Rt)], (n, [t]) => t.value.indexOf(n.id()) >= 0], "filter-in-small": [Mt, [xt, Ni(Rt)], (n, [t, i]) => i.value.indexOf(n.properties()[t.value]) >= 0], "filter-in-large": [Mt, [xt, Ni(Rt)], (n, [t, i]) => function(o, c, f, m) {
5940
+ }], "filter-has": [Lt, [Rt], (n, [t]) => t.value in n.properties()], "filter-has-id": [Lt, [], (n) => n.id() !== null && n.id() !== void 0], "filter-type-in": [Lt, [Ni(xt)], (n, [t]) => t.value.indexOf(n.geometryType()) >= 0], "filter-id-in": [Lt, [Ni(Rt)], (n, [t]) => t.value.indexOf(n.id()) >= 0], "filter-in-small": [Lt, [xt, Ni(Rt)], (n, [t, i]) => i.value.indexOf(n.properties()[t.value]) >= 0], "filter-in-large": [Lt, [xt, Ni(Rt)], (n, [t, i]) => function(o, c, f, m) {
5941
5941
  for (; f <= m; ) {
5942
5942
  const _ = f + m >> 1;
5943
5943
  if (c[_] === o) return !0;
5944
5944
  c[_] > o ? m = _ - 1 : f = _ + 1;
5945
5945
  }
5946
5946
  return !1;
5947
- }(n.properties()[t.value], i.value, 0, i.value.length - 1)], all: { type: Mt, overloads: [[[Mt, Mt], (n, [t, i]) => t.evaluate(n) && i.evaluate(n)], [fs(Mt), (n, t) => {
5947
+ }(n.properties()[t.value], i.value, 0, i.value.length - 1)], all: { type: Lt, overloads: [[[Lt, Lt], (n, [t, i]) => t.evaluate(n) && i.evaluate(n)], [fs(Lt), (n, t) => {
5948
5948
  for (const i of t) if (!i.evaluate(n)) return !1;
5949
5949
  return !0;
5950
- }]] }, any: { type: Mt, overloads: [[[Mt, Mt], (n, [t, i]) => t.evaluate(n) || i.evaluate(n)], [fs(Mt), (n, t) => {
5950
+ }]] }, any: { type: Lt, overloads: [[[Lt, Lt], (n, [t, i]) => t.evaluate(n) || i.evaluate(n)], [fs(Lt), (n, t) => {
5951
5951
  for (const i of t) if (i.evaluate(n)) return !0;
5952
5952
  return !1;
5953
- }]] }, "!": [Mt, [Mt], (n, [t]) => !t.evaluate(n)], "is-supported-script": [Mt, [xt], (n, [t]) => {
5953
+ }]] }, "!": [Lt, [Lt], (n, [t]) => !t.evaluate(n)], "is-supported-script": [Lt, [xt], (n, [t]) => {
5954
5954
  const i = n.globals && n.globals.isSupportedScript;
5955
5955
  return !i || i(t.evaluate(n));
5956
5956
  }], upcase: [xt, [xt], (n, [t]) => t.evaluate(n).toUpperCase()], downcase: [xt, [xt], (n, [t]) => t.evaluate(n).toLowerCase()], concat: [xt, fs(Rt), (n, t) => t.map((i) => Ht(i.evaluate(n))).join("")], "resolved-locale": [xt, [As], (n, [t]) => t.evaluate(n).resolvedLocale()] });
@@ -5996,7 +5996,7 @@ function Kx() {
5996
5996
  }
5997
5997
  function va(n, t) {
5998
5998
  const i = new ao(zs, ha, [], t ? function(c) {
5999
- const f = { color: Lr, string: xt, number: Ne, enum: xt, boolean: Mt, formatted: $s, padding: ts, numberArray: Sn, colorArray: eo, projectionDefinition: Rr, resolvedImage: rs, variableAnchorOffsetCollection: Wr };
5999
+ const f = { color: Lr, string: xt, number: Ne, enum: xt, boolean: Lt, formatted: $s, padding: ts, numberArray: Sn, colorArray: eo, projectionDefinition: Rr, resolvedImage: rs, variableAnchorOffsetCollection: Wr };
6000
6000
  return c.type === "array" ? Ni(f[c.value] || Rt, c.length) : f[c.type];
6001
6001
  }(t) : void 0), o = i.parse(n, void 0, void 0, void 0, t && t.type === "string" ? { typeAnnotation: "coerce" } : void 0);
6002
6002
  return o ? fa(new _a(o, t)) : Ds(i.errors);
@@ -6038,7 +6038,7 @@ function Kx() {
6038
6038
  }
6039
6039
  class xo {
6040
6040
  constructor(t, i) {
6041
- this._parameters = t, this._specification = i, sr(this, Al(this._parameters, this._specification));
6041
+ this._parameters = t, this._specification = i, nr(this, Al(this._parameters, this._specification));
6042
6042
  }
6043
6043
  static deserialize(t) {
6044
6044
  return new xo(t._parameters, t._specification);
@@ -6276,7 +6276,7 @@ function Kx() {
6276
6276
  return Array.isArray(o.values) ? o.values.indexOf(Ur(i)) === -1 && c.push(new Oe(t, i, `expected one of [${o.values.join(", ")}], ${JSON.stringify(i)} found`)) : Object.keys(o.values).indexOf(Ur(i)) === -1 && c.push(new Oe(t, i, `expected one of [${Object.keys(o.values).join(", ")}], ${JSON.stringify(i)} found`)), c;
6277
6277
  }
6278
6278
  function Ll(n) {
6279
- return wo(Un(n.value)) ? vn(sr({}, n, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : nu(n);
6279
+ return wo(Un(n.value)) ? vn(nr({}, n, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : nu(n);
6280
6280
  }
6281
6281
  function nu(n) {
6282
6282
  const t = n.value, i = n.key;
@@ -6353,7 +6353,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6353
6353
  const w = c.sources && c.sources[i.source], P = w && Ur(w.type);
6354
6354
  w ? P === "vector" && m === "raster" ? t.push(new Oe(o, i.source, `layer "${i.id}" requires a raster source`)) : P !== "raster-dem" && m === "hillshade" ? t.push(new Oe(o, i.source, `layer "${i.id}" requires a raster-dem source`)) : P === "raster" && m !== "raster" ? t.push(new Oe(o, i.source, `layer "${i.id}" requires a vector source`)) : P !== "vector" || i["source-layer"] ? P === "raster-dem" && m !== "hillshade" ? t.push(new Oe(o, i.source, "raster-dem source can only be used with layer type 'hillshade'.")) : m !== "line" || !i.paint || !i.paint["line-gradient"] || P === "geojson" && w.lineMetrics || t.push(new Oe(o, i, `layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : t.push(new Oe(o, i, `layer "${i.id}" must specify a "source-layer"`)) : t.push(new Oe(o, i.source, `source "${i.source}" not found`));
6355
6355
  } else t.push(new Oe(o, i, 'missing required property "source"'));
6356
- return t = t.concat(Hi({ key: o, value: i, valueSpec: f.layer, style: n.style, styleSpec: n.styleSpec, validateSpec: n.validateSpec, objectElementValidators: { "*": () => [], type: () => n.validateSpec({ key: `${o}.type`, value: i.type, valueSpec: f.layer.type, style: n.style, styleSpec: n.styleSpec, validateSpec: n.validateSpec, object: i, objectKey: "type" }), filter: Ll, layout: (w) => Hi({ layer: i, key: w.key, value: w.value, style: w.style, styleSpec: w.styleSpec, validateSpec: w.validateSpec, objectElementValidators: { "*": (P) => Os(sr({ layerType: m }, P)) } }), paint: (w) => Hi({ layer: i, key: w.key, value: w.value, style: w.style, styleSpec: w.styleSpec, validateSpec: w.validateSpec, objectElementValidators: { "*": (P) => ou(sr({ layerType: m }, P)) } }) } })), t;
6356
+ return t = t.concat(Hi({ key: o, value: i, valueSpec: f.layer, style: n.style, styleSpec: n.styleSpec, validateSpec: n.validateSpec, objectElementValidators: { "*": () => [], type: () => n.validateSpec({ key: `${o}.type`, value: i.type, valueSpec: f.layer.type, style: n.style, styleSpec: n.styleSpec, validateSpec: n.validateSpec, object: i, objectKey: "type" }), filter: Ll, layout: (w) => Hi({ layer: i, key: w.key, value: w.value, style: w.style, styleSpec: w.styleSpec, validateSpec: w.validateSpec, objectElementValidators: { "*": (P) => Os(nr({ layerType: m }, P)) } }), paint: (w) => Hi({ layer: i, key: w.key, value: w.value, style: w.style, styleSpec: w.styleSpec, validateSpec: w.validateSpec, objectElementValidators: { "*": (P) => ou(nr({ layerType: m }, P)) } }) } })), t;
6357
6357
  }
6358
6358
  function $r(n) {
6359
6359
  const t = n.value, i = n.key, o = Ft(t);
@@ -6509,7 +6509,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6509
6509
  }, sprite: zl, state: ka };
6510
6510
  function Us(n) {
6511
6511
  const t = n.value, i = n.valueSpec, o = n.styleSpec;
6512
- return n.validateSpec = Us, i.expression && ga(Ur(t)) ? El(n) : i.expression && vo(Un(t)) ? vn(n) : i.type && cu[i.type] ? cu[i.type](n) : Hi(sr({}, n, { valueSpec: i.type ? o[i.type] : i }));
6512
+ return n.validateSpec = Us, i.expression && ga(Ur(t)) ? El(n) : i.expression && vo(Un(t)) ? vn(n) : i.type && cu[i.type] ? cu[i.type](n) : Hi(nr({}, n, { valueSpec: i.type ? o[i.type] : i }));
6513
6513
  }
6514
6514
  function uu(n) {
6515
6515
  const t = n.value, i = n.key, o = $r(n);
@@ -6834,16 +6834,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6834
6834
  this._properties = t, this._values = Object.create(t.defaultTransitionablePropertyValues);
6835
6835
  }
6836
6836
  getValue(t) {
6837
- return Lt(this._values[t].value.value);
6837
+ return It(this._values[t].value.value);
6838
6838
  }
6839
6839
  setValue(t, i) {
6840
- Object.prototype.hasOwnProperty.call(this._values, t) || (this._values[t] = new ql(this._values[t].property)), this._values[t].value = new Io(this._values[t].property, i === null ? void 0 : Lt(i));
6840
+ Object.prototype.hasOwnProperty.call(this._values, t) || (this._values[t] = new ql(this._values[t].property)), this._values[t].value = new Io(this._values[t].property, i === null ? void 0 : It(i));
6841
6841
  }
6842
6842
  getTransition(t) {
6843
- return Lt(this._values[t].transition);
6843
+ return It(this._values[t].transition);
6844
6844
  }
6845
6845
  setTransition(t, i) {
6846
- Object.prototype.hasOwnProperty.call(this._values, t) || (this._values[t] = new ql(this._values[t].property)), this._values[t].transition = Lt(i) || void 0;
6846
+ Object.prototype.hasOwnProperty.call(this._values, t) || (this._values[t] = new ql(this._values[t].property)), this._values[t].transition = It(i) || void 0;
6847
6847
  }
6848
6848
  serialize() {
6849
6849
  const t = {};
@@ -6906,10 +6906,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6906
6906
  return this._values[t].value !== void 0;
6907
6907
  }
6908
6908
  getValue(t) {
6909
- return Lt(this._values[t].value);
6909
+ return It(this._values[t].value);
6910
6910
  }
6911
6911
  setValue(t, i) {
6912
- this._values[t] = new Io(this._values[t].property, i === null ? void 0 : Lt(i));
6912
+ this._values[t] = new Io(this._values[t].property, i === null ? void 0 : It(i));
6913
6913
  }
6914
6914
  serialize() {
6915
6915
  const t = {};
@@ -7102,7 +7102,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7102
7102
  }
7103
7103
  serialize() {
7104
7104
  const t = { id: this.id, type: this.type, source: this.source, "source-layer": this.sourceLayer, metadata: this.metadata, minzoom: this.minzoom, maxzoom: this.maxzoom, filter: this.filter, layout: this._unevaluatedLayout && this._unevaluatedLayout.serialize(), paint: this._transitionablePaint && this._transitionablePaint.serialize() };
7105
- return this.visibility && (t.layout = t.layout || {}, t.layout.visibility = this.visibility), Ut(t, (i, o) => !(i === void 0 || o === "layout" && !Object.keys(i).length || o === "paint" && !Object.keys(i).length));
7105
+ return this.visibility && (t.layout = t.layout || {}, t.layout.visibility = this.visibility), jt(t, (i, o) => !(i === void 0 || o === "layout" && !Object.keys(i).length || o === "paint" && !Object.keys(i).length));
7106
7106
  }
7107
7107
  _validate(t, i, o, c, f = {}) {
7108
7108
  return (!f || f.validate !== !1) && Bl(this, t.call(Ns, { key: i, layerType: this.type, objectKey: o, value: c, styleSpec: ee, style: { glyphs: !0, sprite: !0 } }));
@@ -7785,7 +7785,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7785
7785
  }
7786
7786
  prepareSegment(t, i, o, c) {
7787
7787
  const f = this.segments[this.segments.length - 1];
7788
- return t > er.MAX_VERTEX_ARRAY_LENGTH && ar(`Max vertices per segment is ${er.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${er.MAX_VERTEX_ARRAY_LENGTH} vertices.`), this._forceNewSegmentOnNextPrepare || !f || f.vertexLength + t > er.MAX_VERTEX_ARRAY_LENGTH || f.sortKey !== c ? this.createNewSegment(i, o, c) : f;
7788
+ return t > er.MAX_VERTEX_ARRAY_LENGTH && or(`Max vertices per segment is ${er.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${er.MAX_VERTEX_ARRAY_LENGTH} vertices.`), this._forceNewSegmentOnNextPrepare || !f || f.vertexLength + t > er.MAX_VERTEX_ARRAY_LENGTH || f.sortKey !== c ? this.createNewSegment(i, o, c) : f;
7789
7789
  }
7790
7790
  createNewSegment(t, i, o) {
7791
7791
  const c = { vertexOffset: t.length, primitiveOffset: i.length, vertexLength: 0, primitiveLength: 0, vaos: {} };
@@ -8204,7 +8204,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8204
8204
  const c = i[o];
8205
8205
  for (let f = 0; f < c.length; f++) {
8206
8206
  const m = c[f], _ = Math.round(m.x * t), w = Math.round(m.y * t);
8207
- m.x = rt(_, Ud, up), m.y = rt(w, Ud, up), (_ < m.x || _ > m.x + 1 || w < m.y || w > m.y + 1) && ar("Geometry exceeds allowed extent, reduce your vector tile buffer size");
8207
+ m.x = rt(_, Ud, up), m.y = rt(w, Ud, up), (_ < m.x || _ > m.x + 1 || w < m.y || w > m.y + 1) && or("Geometry exceeds allowed extent, reduce your vector tile buffer size");
8208
8208
  }
8209
8209
  }
8210
8210
  return i;
@@ -8323,7 +8323,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8323
8323
  return !1;
8324
8324
  }
8325
8325
  function Zy(n, t, i, o) {
8326
- return nr(n, i, o) !== nr(t, i, o) && nr(n, t, i) !== nr(n, t, o);
8326
+ return ar(n, i, o) !== ar(t, i, o) && ar(n, t, i) !== ar(n, t, o);
8327
8327
  }
8328
8328
  function dp(n, t, i) {
8329
8329
  const o = i * i;
@@ -8352,8 +8352,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8352
8352
  function Ky(n, t, i) {
8353
8353
  const o = i[0], c = i[2];
8354
8354
  if (n.x < o.x && t.x < o.x || n.x > c.x && t.x > c.x || n.y < o.y && t.y < o.y || n.y > c.y && t.y > c.y) return !1;
8355
- const f = nr(n, t, i[0]);
8356
- return f !== nr(n, t, i[1]) || f !== nr(n, t, i[2]) || f !== nr(n, t, i[3]);
8355
+ const f = ar(n, t, i[0]);
8356
+ return f !== ar(n, t, i[1]) || f !== ar(n, t, i[2]) || f !== ar(n, t, i[3]);
8357
8357
  }
8358
8358
  function Jl(n, t, i) {
8359
8359
  const o = t.paint.get(n).value;
@@ -9385,7 +9385,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9385
9385
  for (const Je of N) {
9386
9386
  const Ze = [], Xe = [];
9387
9387
  for (const Ue of Je) {
9388
- const lt = Ue.x, vt = Ue.y, mt = $[0] * lt + $[4] * vt + $[12], ht = $[1] * lt + $[5] * vt + $[13], jt = $[2] * lt + $[6] * vt + $[14], Br = $[3] * lt + $[7] * vt + $[15], ri = jt + Q, Ci = Br + de, hn = mt + Ie, Gi = ht + He, _i = jt + Re, Pr = Br + Fe, li = new k((mt + ue) / Ci, (ht + j) / Ci);
9388
+ const lt = Ue.x, vt = Ue.y, mt = $[0] * lt + $[4] * vt + $[12], ht = $[1] * lt + $[5] * vt + $[13], Ut = $[2] * lt + $[6] * vt + $[14], Br = $[3] * lt + $[7] * vt + $[15], ri = Ut + Q, Ci = Br + de, hn = mt + Ie, Gi = ht + He, _i = Ut + Re, Pr = Br + Fe, li = new k((mt + ue) / Ci, (ht + j) / Ci);
9389
9389
  li.z = ri / Ci, Ze.push(li);
9390
9390
  const vi = new k(hn / Pr, Gi / Pr);
9391
9391
  vi.z = _i / Pr, Xe.push(vi);
@@ -9531,8 +9531,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9531
9531
  const Br = ht - 0.5;
9532
9532
  ht += ht * Br * (ht - 1) * ((1.0904 + Q * (Q * (3.55645 - 1.43519 * Q) - 3.2452)) * Br * Br + (0.848013 + Q * (0.215638 * Q - 1.06021)));
9533
9533
  }
9534
- const jt = _e.sub(le)._mult(ht)._add(le)._unit()._mult(Fe ? -1 : 1);
9535
- this.addHalfVertex(W, jt.x, jt.y, !1, Fe, 0, N);
9534
+ const Ut = _e.sub(le)._mult(ht)._add(le)._unit()._mult(Fe ? -1 : 1);
9535
+ this.addHalfVertex(W, Ut.x, Ut.y, !1, Fe, 0, N);
9536
9536
  }
9537
9537
  }
9538
9538
  $ && this.addCurrentVertex(W, _e, -Ue, -lt, N);
@@ -10125,9 +10125,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10125
10125
  }
10126
10126
  addImageSection(t) {
10127
10127
  const i = t.image ? t.image.name : "";
10128
- if (i.length === 0) return void ar("Can't add FormattedSection with an empty image.");
10128
+ if (i.length === 0) return void or("Can't add FormattedSection with an empty image.");
10129
10129
  const o = this.getNextImageSectionCharCode();
10130
- o ? (this.text += String.fromCharCode(o), this.sections.push(ac.forImage(i, t.verticalAlign)), this.sectionIndex.push(this.sections.length - 1)) : ar("Reached maximum number of images 6401");
10130
+ o ? (this.text += String.fromCharCode(o), this.sections.push(ac.forImage(i, t.verticalAlign)), this.sectionIndex.push(this.sections.length - 1)) : or("Reached maximum number of images 6401");
10131
10131
  }
10132
10132
  getNextImageSectionCharCode() {
10133
10133
  return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);
@@ -10162,7 +10162,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10162
10162
  }(J, Rp(J, P, f, t, o, N));
10163
10163
  const ue = [], j = { positionedLines: ue, text: J.toString(), top: R[1], bottom: R[1], left: R[0], right: R[0], writingMode: B, iconsInText: !1, verticalizable: !1 };
10164
10164
  return function(Q, de, Ie, He, Re, Fe, Je, Ze, Xe, Ue, lt, vt) {
10165
- let mt = 0, ht = 0, jt = 0, Br = 0;
10165
+ let mt = 0, ht = 0, Ut = 0, Br = 0;
10166
10166
  const ri = Ze === "right" ? 1 : Ze === "left" ? 0 : 0.5, Ci = ti / vt;
10167
10167
  let hn = 0;
10168
10168
  for (const Pr of Re) {
@@ -10186,7 +10186,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10186
10186
  const { rect: In, metrics: Na, baselineOffset: En } = vr;
10187
10187
  xi.push({ glyph: hi, imageName: ii.imageName, x: mt, y: ht + En + Cu, vertical: Qr, scale: ii.scale, fontStack: ii.fontStack, sectionIndex: ui, metrics: Na, rect: In }), Qr ? (Q.verticalizable = !0, mt += (ii.imageName ? Na.advance : ti) * ii.scale + Ue) : mt += Na.advance * ii.scale + Ue;
10188
10188
  }
10189
- xi.length !== 0 && (jt = Math.max(mt - Ue, jt), G_(xi, 0, xi.length - 1, ri)), mt = 0, vi.lineOffset = Math.max(Fi, (li - 1) * ti);
10189
+ xi.length !== 0 && (Ut = Math.max(mt - Ue, Ut), G_(xi, 0, xi.length - 1, ri)), mt = 0, vi.lineOffset = Math.max(Fi, (li - 1) * ti);
10190
10190
  const ci = Fe * li + Fi;
10191
10191
  ht += ci, Br = Math.max(ci, Br), ++hn;
10192
10192
  }
@@ -10196,7 +10196,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10196
10196
  let hi = 0;
10197
10197
  hi = pn !== ci ? -Ji * xi - Cu : -xi * ii * ci + 0.5 * ci;
10198
10198
  for (const Qr of Pr) for (const vr of Qr.positionedGlyphs) vr.x += ui, vr.y += hi;
10199
- })(Q.positionedLines, ri, Gi, _i, jt, Br, Fe, ht, Re.length), Q.top += -_i * ht, Q.bottom = Q.top + ht, Q.left += -Gi * jt, Q.right = Q.left + jt;
10199
+ })(Q.positionedLines, ri, Gi, _i, Ut, Br, Fe, ht, Re.length), Q.top += -_i * ht, Q.bottom = Q.top + ht, Q.left += -Gi * Ut, Q.right = Q.left + Ut;
10200
10200
  }(j, t, i, o, $, m, _, w, B, P, q, W), !function(Q) {
10201
10201
  for (const de of Q) if (de.positionedGlyphs.length !== 0) return !1;
10202
10202
  return !0;
@@ -10952,7 +10952,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10952
10952
  class $f {
10953
10953
  constructor(t, i, o, c = 1, f = 1, m = 1, _ = 0) {
10954
10954
  if (this.uid = t, i.height !== i.width) throw new RangeError("DEM tiles must be square");
10955
- if (o && !["mapbox", "terrarium", "custom"].includes(o)) return void ar(`"${o}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);
10955
+ if (o && !["mapbox", "terrarium", "custom"].includes(o)) return void or(`"${o}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);
10956
10956
  this.stride = i.height;
10957
10957
  const w = this.dim = i.height - 2;
10958
10958
  switch (this.data = new Uint32Array(i.data.buffer), o) {
@@ -11243,7 +11243,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11243
11243
  (f.textFitWidth || f.textFitHeight) && (P = Of(n)), le = Lu(R, 0, Ue[0]), ue = Lu(B, 0, Ue[1]), _e = Lu(R, Ue[0], Ue[2]), j = Lu(B, Ue[1], Ue[3]), Q = Ue[0] - le, Ie = Ue[1] - ue, de = lt - _e, He = vt - j;
11244
11244
  }
11245
11245
  const Re = P.x1, Fe = P.y1, Je = P.x2 - Re, Ze = P.y2 - Fe, Xe = (Ue, lt, vt, mt) => {
11246
- const ht = Ru(Ue.stretch - le, _e, Je, Re), jt = zu(Ue.fixed - Q, de, Ue.stretch, N), Br = Ru(lt.stretch - ue, j, Ze, Fe), ri = zu(lt.fixed - Ie, He, lt.stretch, W), Ci = Ru(vt.stretch - le, _e, Je, Re), hn = zu(vt.fixed - Q, de, vt.stretch, N), Gi = Ru(mt.stretch - ue, j, Ze, Fe), _i = zu(mt.fixed - Ie, He, mt.stretch, W), Pr = new k(ht, Br), li = new k(Ci, Br), vi = new k(Ci, Gi), xi = new k(ht, Gi), Fi = new k(jt / m, ri / m), pn = new k(hn / m, _i / m), ci = t * Math.PI / 180;
11246
+ const ht = Ru(Ue.stretch - le, _e, Je, Re), Ut = zu(Ue.fixed - Q, de, Ue.stretch, N), Br = Ru(lt.stretch - ue, j, Ze, Fe), ri = zu(lt.fixed - Ie, He, lt.stretch, W), Ci = Ru(vt.stretch - le, _e, Je, Re), hn = zu(vt.fixed - Q, de, vt.stretch, N), Gi = Ru(mt.stretch - ue, j, Ze, Fe), _i = zu(mt.fixed - Ie, He, mt.stretch, W), Pr = new k(ht, Br), li = new k(Ci, Br), vi = new k(Ci, Gi), xi = new k(ht, Gi), Fi = new k(Ut / m, ri / m), pn = new k(hn / m, _i / m), ci = t * Math.PI / 180;
11247
11247
  if (ci) {
11248
11248
  const ui = Math.sin(ci), hi = Math.cos(ci), Qr = [hi, -ui, ui, hi];
11249
11249
  Pr._matMult(Qr), li._matMult(Qr), xi._matMult(Qr), vi._matMult(Qr);
@@ -11255,7 +11255,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11255
11255
  const Ue = pm(R, J, N), lt = pm(B, $, W);
11256
11256
  for (let vt = 0; vt < Ue.length - 1; vt++) {
11257
11257
  const mt = Ue[vt], ht = Ue[vt + 1];
11258
- for (let jt = 0; jt < lt.length - 1; jt++) c.push(Xe(mt, lt[jt], ht, lt[jt + 1]));
11258
+ for (let Ut = 0; Ut < lt.length - 1; Ut++) c.push(Xe(mt, lt[Ut], ht, lt[Ut + 1]));
11259
11259
  }
11260
11260
  } else c.push(Xe({ fixed: 0, stretch: -1 }, { fixed: 0, stretch: -1 }, { fixed: 0, stretch: _ + 1 }, { fixed: 0, stretch: w + 1 }));
11261
11261
  return c;
@@ -11482,28 +11482,28 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11482
11482
  function p0(n, t, i, o, c, f, m, _, w, P, R, B) {
11483
11483
  let q = f.textMaxSize.evaluate(t, {});
11484
11484
  q === void 0 && (q = m);
11485
- const N = n.layers[0].layout, W = N.get("icon-offset").evaluate(t, {}, R), J = gm(i.horizontal), $ = m / 24, le = n.tilePixelRatio * $, _e = n.tilePixelRatio * q / 24, ue = n.tilePixelRatio * _, j = n.tilePixelRatio * N.get("symbol-spacing"), Q = N.get("text-padding") * n.tilePixelRatio, de = function(vt, mt, ht, jt = 1) {
11485
+ const N = n.layers[0].layout, W = N.get("icon-offset").evaluate(t, {}, R), J = gm(i.horizontal), $ = m / 24, le = n.tilePixelRatio * $, _e = n.tilePixelRatio * q / 24, ue = n.tilePixelRatio * _, j = n.tilePixelRatio * N.get("symbol-spacing"), Q = N.get("text-padding") * n.tilePixelRatio, de = function(vt, mt, ht, Ut = 1) {
11486
11486
  const Br = vt.get("icon-padding").evaluate(mt, {}, ht), ri = Br && Br.values;
11487
- return [ri[0] * jt, ri[1] * jt, ri[2] * jt, ri[3] * jt];
11487
+ return [ri[0] * Ut, ri[1] * Ut, ri[2] * Ut, ri[3] * Ut];
11488
11488
  }(N, t, R, n.tilePixelRatio), Ie = N.get("text-max-angle") / 180 * Math.PI, He = N.get("text-rotation-alignment") !== "viewport" && N.get("symbol-placement") !== "point", Re = N.get("icon-rotation-alignment") === "map" && N.get("symbol-placement") !== "point", Fe = N.get("symbol-placement"), Je = j / 2, Ze = N.get("icon-text-fit");
11489
11489
  let Xe;
11490
11490
  o && Ze !== "none" && (n.allowVerticalPlacement && i.vertical && (Xe = Ff(o, i.vertical, Ze, N.get("icon-text-fit-padding"), W, $)), J && (o = Ff(o, J, Ze, N.get("icon-text-fit-padding"), W, $)));
11491
11491
  const Ue = R ? B.line.getGranularityForZoomLevel(R.z) : 1, lt = (vt, mt) => {
11492
- mt.x < 0 || mt.x >= ir || mt.y < 0 || mt.y >= ir || function(ht, jt, Br, ri, Ci, hn, Gi, _i, Pr, li, vi, xi, Fi, pn, ci, Ji, ii, ui, hi, Qr, vr, In, Na, En, m0) {
11493
- const Wa = ht.addToLineVertexArray(jt, Br);
11492
+ mt.x < 0 || mt.x >= ir || mt.y < 0 || mt.y >= ir || function(ht, Ut, Br, ri, Ci, hn, Gi, _i, Pr, li, vi, xi, Fi, pn, ci, Ji, ii, ui, hi, Qr, vr, In, Na, En, m0) {
11493
+ const Wa = ht.addToLineVertexArray(Ut, Br);
11494
11494
  let qo, Ha, Za, Ka, xm = 0, bm = 0, wm = 0, Sm = 0, Yp = -1, $p = -1;
11495
11495
  const vs = {};
11496
11496
  let Am = Cn("");
11497
11497
  if (ht.allowVerticalPlacement && ri.vertical) {
11498
11498
  const Ri = _i.layout.get("text-rotate").evaluate(vr, {}, En) + 90;
11499
- Za = new Du(Pr, jt, li, vi, xi, ri.vertical, Fi, pn, ci, Ri), Gi && (Ka = new Du(Pr, jt, li, vi, xi, Gi, ii, ui, ci, Ri));
11499
+ Za = new Du(Pr, Ut, li, vi, xi, ri.vertical, Fi, pn, ci, Ri), Gi && (Ka = new Du(Pr, Ut, li, vi, xi, Gi, ii, ui, ci, Ri));
11500
11500
  }
11501
11501
  if (Ci) {
11502
11502
  const Ri = _i.layout.get("icon-rotate").evaluate(vr, {}), dn = _i.layout.get("icon-text-fit") !== "none", Uo = hm(Ci, Ri, Na, dn), Ln = Gi ? hm(Gi, Ri, Na, dn) : void 0;
11503
- Ha = new Du(Pr, jt, li, vi, xi, Ci, ii, ui, !1, Ri), xm = 4 * Uo.length;
11503
+ Ha = new Du(Pr, Ut, li, vi, xi, Ci, ii, ui, !1, Ri), xm = 4 * Uo.length;
11504
11504
  const jo = ht.iconSizeData;
11505
11505
  let Jn = null;
11506
- jo.kind === "source" ? (Jn = [Gn * _i.layout.get("icon-size").evaluate(vr, {})], Jn[0] > Js && ar(`${ht.layerIds[0]}: Value for "icon-size" is >= ${lc}. Reduce your "icon-size".`)) : jo.kind === "composite" && (Jn = [Gn * In.compositeIconSizes[0].evaluate(vr, {}, En), Gn * In.compositeIconSizes[1].evaluate(vr, {}, En)], (Jn[0] > Js || Jn[1] > Js) && ar(`${ht.layerIds[0]}: Value for "icon-size" is >= ${lc}. Reduce your "icon-size".`)), ht.addSymbols(ht.icon, Uo, Jn, Qr, hi, vr, v.al.none, jt, Wa.lineStartIndex, Wa.lineLength, -1, En), Yp = ht.icon.placedSymbolArray.length - 1, Ln && (bm = 4 * Ln.length, ht.addSymbols(ht.icon, Ln, Jn, Qr, hi, vr, v.al.vertical, jt, Wa.lineStartIndex, Wa.lineLength, -1, En), $p = ht.icon.placedSymbolArray.length - 1);
11506
+ jo.kind === "source" ? (Jn = [Gn * _i.layout.get("icon-size").evaluate(vr, {})], Jn[0] > Js && or(`${ht.layerIds[0]}: Value for "icon-size" is >= ${lc}. Reduce your "icon-size".`)) : jo.kind === "composite" && (Jn = [Gn * In.compositeIconSizes[0].evaluate(vr, {}, En), Gn * In.compositeIconSizes[1].evaluate(vr, {}, En)], (Jn[0] > Js || Jn[1] > Js) && or(`${ht.layerIds[0]}: Value for "icon-size" is >= ${lc}. Reduce your "icon-size".`)), ht.addSymbols(ht.icon, Uo, Jn, Qr, hi, vr, v.al.none, Ut, Wa.lineStartIndex, Wa.lineLength, -1, En), Yp = ht.icon.placedSymbolArray.length - 1, Ln && (bm = 4 * Ln.length, ht.addSymbols(ht.icon, Ln, Jn, Qr, hi, vr, v.al.vertical, Ut, Wa.lineStartIndex, Wa.lineLength, -1, En), $p = ht.icon.placedSymbolArray.length - 1);
11507
11507
  }
11508
11508
  const km = Object.keys(ri.horizontal);
11509
11509
  for (const Ri of km) {
@@ -11511,18 +11511,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11511
11511
  if (!qo) {
11512
11512
  Am = Cn(dn.text);
11513
11513
  const Ln = _i.layout.get("text-rotate").evaluate(vr, {}, En);
11514
- qo = new Du(Pr, jt, li, vi, xi, dn, Fi, pn, ci, Ln);
11514
+ qo = new Du(Pr, Ut, li, vi, xi, dn, Fi, pn, ci, Ln);
11515
11515
  }
11516
11516
  const Uo = dn.positionedLines.length === 1;
11517
- if (wm += mm(ht, jt, dn, hn, _i, ci, vr, Ji, Wa, ri.vertical ? v.al.horizontal : v.al.horizontalOnly, Uo ? km : [Ri], vs, Yp, In, En), Uo) break;
11517
+ if (wm += mm(ht, Ut, dn, hn, _i, ci, vr, Ji, Wa, ri.vertical ? v.al.horizontal : v.al.horizontalOnly, Uo ? km : [Ri], vs, Yp, In, En), Uo) break;
11518
11518
  }
11519
- ri.vertical && (Sm += mm(ht, jt, ri.vertical, hn, _i, ci, vr, Ji, Wa, v.al.vertical, ["vertical"], vs, $p, In, En));
11519
+ ri.vertical && (Sm += mm(ht, Ut, ri.vertical, hn, _i, ci, vr, Ji, Wa, v.al.vertical, ["vertical"], vs, $p, In, En));
11520
11520
  const g0 = qo ? qo.boxStartIndex : ht.collisionBoxArray.length, y0 = qo ? qo.boxEndIndex : ht.collisionBoxArray.length, _0 = Za ? Za.boxStartIndex : ht.collisionBoxArray.length, v0 = Za ? Za.boxEndIndex : ht.collisionBoxArray.length, x0 = Ha ? Ha.boxStartIndex : ht.collisionBoxArray.length, b0 = Ha ? Ha.boxEndIndex : ht.collisionBoxArray.length, w0 = Ka ? Ka.boxStartIndex : ht.collisionBoxArray.length, S0 = Ka ? Ka.boxEndIndex : ht.collisionBoxArray.length;
11521
11521
  let Mn = -1;
11522
11522
  const Ou = (Ri, dn) => Ri && Ri.circleDiameter ? Math.max(Ri.circleDiameter, dn) : dn;
11523
11523
  Mn = Ou(qo, Mn), Mn = Ou(Za, Mn), Mn = Ou(Ha, Mn), Mn = Ou(Ka, Mn);
11524
11524
  const Tm = Mn > -1 ? 1 : 0;
11525
- Tm && (Mn *= m0 / ti), ht.glyphOffsetArray.length >= qa.MAX_GLYPHS && ar("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), vr.sortKey !== void 0 && ht.addToSortKeyRanges(ht.symbolInstances.length, vr.sortKey);
11525
+ Tm && (Mn *= m0 / ti), ht.glyphOffsetArray.length >= qa.MAX_GLYPHS && or("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), vr.sortKey !== void 0 && ht.addToSortKeyRanges(ht.symbolInstances.length, vr.sortKey);
11526
11526
  const A0 = fm(_i, vr, En), [k0, T0] = function(Ri, dn) {
11527
11527
  const Uo = Ri.length, Ln = dn == null ? void 0 : dn.values;
11528
11528
  if ((Ln == null ? void 0 : Ln.length) > 0) for (let jo = 0; jo < Ln.length; jo += 2) {
@@ -11531,12 +11531,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11531
11531
  }
11532
11532
  return [Uo, Ri.length];
11533
11533
  }(ht.textAnchorOffsets, A0);
11534
- ht.symbolInstances.emplaceBack(jt.x, jt.y, vs.right >= 0 ? vs.right : -1, vs.center >= 0 ? vs.center : -1, vs.left >= 0 ? vs.left : -1, vs.vertical || -1, Yp, $p, Am, g0, y0, _0, v0, x0, b0, w0, S0, li, wm, Sm, xm, bm, Tm, 0, Fi, Mn, k0, T0);
11534
+ ht.symbolInstances.emplaceBack(Ut.x, Ut.y, vs.right >= 0 ? vs.right : -1, vs.center >= 0 ? vs.center : -1, vs.left >= 0 ? vs.left : -1, vs.vertical || -1, Yp, $p, Am, g0, y0, _0, v0, x0, b0, w0, S0, li, wm, Sm, xm, bm, Tm, 0, Fi, Mn, k0, T0);
11535
11535
  }(n, mt, vt, i, o, c, Xe, n.layers[0], n.collisionBoxArray, t.index, t.sourceLayerIndex, n.index, le, [Q, Q, Q, Q], He, w, ue, de, Re, W, t, f, P, R, m);
11536
11536
  };
11537
11537
  if (Fe === "line") for (const vt of sm(t.geometry, 0, 0, ir, ir)) {
11538
11538
  const mt = Vo(vt, Ue), ht = l0(mt, j, Ie, i.vertical || J, o, 24, _e, n.overscaling, ir);
11539
- for (const jt of ht) J && d0(n, J.text, Je, jt) || lt(mt, jt);
11539
+ for (const Ut of ht) J && d0(n, J.text, Je, Ut) || lt(mt, Ut);
11540
11540
  }
11541
11541
  else if (Fe === "line-center") {
11542
11542
  for (const vt of t.geometry) if (vt.length > 1) {
@@ -11560,16 +11560,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11560
11560
  if (!Xe.rect) continue;
11561
11561
  const Ue = Xe.rect || {};
11562
11562
  let lt = q_ + 1, vt = !0, mt = 1, ht = 0;
11563
- const jt = (de || Re) && Xe.vertical, Br = Xe.metrics.advance * Xe.scale / 2;
11563
+ const Ut = (de || Re) && Xe.vertical, Br = Xe.metrics.advance * Xe.scale / 2;
11564
11564
  if (Re && ue.verticalizable && (ht = Ze.lineOffset / 2 - (Xe.imageName ? -(ti - Xe.metrics.width * Xe.scale) / 2 : (Xe.scale - 1) * ti)), Xe.imageName) {
11565
11565
  const ui = He[Xe.imageName];
11566
11566
  vt = ui.sdf, mt = ui.pixelRatio, lt = Ki / mt;
11567
11567
  }
11568
11568
  const ri = de ? [Xe.x + Br, Xe.y] : [0, 0];
11569
11569
  let Ci = de ? [0, 0] : [Xe.x + Br + j[0], Xe.y + j[1] - ht], hn = [0, 0];
11570
- jt && (hn = Ci, Ci = [0, 0]);
11570
+ Ut && (hn = Ci, Ci = [0, 0]);
11571
11571
  const Gi = Xe.metrics.isDoubleResolution ? 2 : 1, _i = (Xe.metrics.left - lt) * Xe.scale - Br + Ci[0], Pr = (-Xe.metrics.top - lt) * Xe.scale + Ci[1], li = _i + Ue.w / Gi * Xe.scale / mt, vi = Pr + Ue.h / Gi * Xe.scale / mt, xi = new k(_i, Pr), Fi = new k(li, Pr), pn = new k(_i, vi), ci = new k(li, vi);
11572
- if (jt) {
11572
+ if (Ut) {
11573
11573
  const ui = new k(-Br, Br - Cu), hi = -Math.PI / 2, Qr = ti / 2 - Br, vr = new k(5 - Cu - Qr, -(Xe.imageName ? Qr : 0)), In = new k(...hn);
11574
11574
  xi._rotateAround(hi, ui)._add(vr)._add(In), Fi._rotateAround(hi, ui)._add(vr)._add(In), pn._rotateAround(hi, ui)._add(vr)._add(In), ci._rotateAround(hi, ui)._add(vr)._add(In);
11575
11575
  }
@@ -11583,7 +11583,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11583
11583
  return Je;
11584
11584
  }(0, i, _, c, f, m, o, n.allowVerticalPlacement), $ = n.textSizeData;
11585
11585
  let le = null;
11586
- $.kind === "source" ? (le = [Gn * c.layout.get("text-size").evaluate(m, {})], le[0] > Js && ar(`${n.layerIds[0]}: Value for "text-size" is >= ${lc}. Reduce your "text-size".`)) : $.kind === "composite" && (le = [Gn * N.compositeTextSizes[0].evaluate(m, {}, W), Gn * N.compositeTextSizes[1].evaluate(m, {}, W)], (le[0] > Js || le[1] > Js) && ar(`${n.layerIds[0]}: Value for "text-size" is >= ${lc}. Reduce your "text-size".`)), n.addSymbols(n.text, J, le, _, f, m, P, t, w.lineStartIndex, w.lineLength, q, W);
11586
+ $.kind === "source" ? (le = [Gn * c.layout.get("text-size").evaluate(m, {})], le[0] > Js && or(`${n.layerIds[0]}: Value for "text-size" is >= ${lc}. Reduce your "text-size".`)) : $.kind === "composite" && (le = [Gn * N.compositeTextSizes[0].evaluate(m, {}, W), Gn * N.compositeTextSizes[1].evaluate(m, {}, W)], (le[0] > Js || le[1] > Js) && or(`${n.layerIds[0]}: Value for "text-size" is >= ${lc}. Reduce your "text-size".`)), n.addSymbols(n.text, J, le, _, f, m, P, t, w.lineStartIndex, w.lineLength, q, W);
11587
11587
  for (const _e of R) B[_e] = n.text.placedSymbolArray.length - 1;
11588
11588
  return 4 * J.length;
11589
11589
  }
@@ -11950,7 +11950,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11950
11950
  case "symbol":
11951
11951
  return new Mu(n);
11952
11952
  }
11953
- }, v.bB = Lt, v.bC = function(n, t) {
11953
+ }, v.bB = It, v.bC = function(n, t) {
11954
11954
  if (!n) return [{ command: "setStyle", args: [t] }];
11955
11955
  let i = [];
11956
11956
  try {
@@ -11967,7 +11967,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11967
11967
  "source" in m && o[m.source] ? i.push({ command: "removeLayer", args: [m.id] }) : f.push(m);
11968
11968
  }), i = i.concat(c), function(m, _, w) {
11969
11969
  _ = _ || [];
11970
- const P = (m = m || []).map(Et), R = _.map(Et), B = m.reduce(St, {}), q = _.reduce(St, {}), N = P.slice(), W = /* @__PURE__ */ Object.create(null);
11970
+ const P = (m = m || []).map(Mt), R = _.map(Mt), B = m.reduce(St, {}), q = _.reduce(St, {}), N = P.slice(), W = /* @__PURE__ */ Object.create(null);
11971
11971
  let J, $, le, _e, ue;
11972
11972
  for (let j = 0, Q = 0; j < P.length; j++) J = P[j], Object.prototype.hasOwnProperty.call(q, J) ? Q++ : (Le(w, { command: "removeLayer", args: [J] }), N.splice(N.indexOf(J, Q), 1));
11973
11973
  for (let j = 0, Q = 0; j < R.length; j++) J = R[R.length - 1 - j], N[N.length - 1 - j] !== J && (Object.prototype.hasOwnProperty.call(B, J) ? (Le(w, { command: "removeLayer", args: [J] }), N.splice(N.lastIndexOf(J, N.length - Q), 1)) : Q++, _e = N[N.length - j], Le(w, { command: "addLayer", args: [q[J], _e] }), N.splice(N.length - j, 0, J), W[J] = !0);
@@ -11995,7 +11995,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11995
11995
  return !0;
11996
11996
  }
11997
11997
  return t === i;
11998
- }, v.bF = kt, v.bG = Ut, v.bH = class extends _r {
11998
+ }, v.bF = kt, v.bG = jt, v.bH = class extends _r {
11999
11999
  constructor(n, t) {
12000
12000
  super(n, t), this.current = 0;
12001
12001
  }
@@ -12142,9 +12142,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12142
12142
  }
12143
12143
  return function(f, m, _, w, P) {
12144
12144
  const R = f.width, B = f.height;
12145
- Xt && Qt || (Xt = new OffscreenCanvas(R, B), Qt = Xt.getContext("2d", { willReadFrequently: !0 })), Xt.width = R, Xt.height = B, Qt.drawImage(f, 0, 0, R, B);
12146
- const q = Qt.getImageData(m, _, w, P);
12147
- return Qt.clearRect(0, 0, R, B), q.data;
12145
+ Yt && Xt || (Yt = new OffscreenCanvas(R, B), Xt = Yt.getContext("2d", { willReadFrequently: !0 })), Yt.width = R, Yt.height = B, Xt.drawImage(f, 0, 0, R, B);
12146
+ const q = Xt.getImageData(m, _, w, P);
12147
+ return Xt.clearRect(0, 0, R, B), q.data;
12148
12148
  }(n, t, i, o, c);
12149
12149
  });
12150
12150
  }, v.cG = $f, v.cH = D, v.cI = O, v.cJ = yf, v.cK = If, v.cL = va, v.cM = Tn, v.ca = (n) => n.type === "raster", v.cb = (n) => n.type === "background", v.cc = (n) => n.type === "custom", v.cd = es, v.ce = function(n, t, i) {
@@ -12228,7 +12228,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12228
12228
  let _e = !1;
12229
12229
  if (P.icon && P.icon.name) {
12230
12230
  const j = n.imageMap[P.icon.name];
12231
- j && ($ = J_(n.imagePositions[P.icon.name], i.get("icon-offset").evaluate(P, {}, n.canonical), i.get("icon-anchor").evaluate(P, {}, n.canonical)), _e = !!j.sdf, n.bucket.sdfIcons === void 0 ? n.bucket.sdfIcons = _e : n.bucket.sdfIcons !== _e && ar("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (j.pixelRatio !== n.bucket.pixelRatio || i.get("icon-rotate").constantOr(1) !== 0) && (n.bucket.iconsNeedLinear = !0));
12231
+ j && ($ = J_(n.imagePositions[P.icon.name], i.get("icon-offset").evaluate(P, {}, n.canonical), i.get("icon-anchor").evaluate(P, {}, n.canonical)), _e = !!j.sdf, n.bucket.sdfIcons === void 0 ? n.bucket.sdfIcons = _e : n.bucket.sdfIcons !== _e && or("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (j.pixelRatio !== n.bucket.pixelRatio || i.get("icon-rotate").constantOr(1) !== 0) && (n.bucket.iconsNeedLinear = !0));
12232
12232
  }
12233
12233
  const ue = gm(W.horizontal) || W.vertical;
12234
12234
  n.bucket.iconsInText = !!ue && ue.iconsInText, (ue || $) && p0(n.bucket, P, W, $, n.imageMap, c, q, N, le, _e, n.canonical, n.subdivisionGranularity);
@@ -12253,7 +12253,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12253
12253
  o.src = n.byteLength ? URL.createObjectURL(c) : On;
12254
12254
  }), v.i = wr, v.j = (n, t) => wi(At(n, { type: "json" }), t), v.k = he, v.l = te, v.m = wi, v.n = (n, t) => wi(At(n, { type: "arrayBuffer" }), t), v.o = function(n) {
12255
12255
  return new Ep(n).readFields(O_, []);
12256
- }, v.p = Ef, v.q = Xl, v.r = Gr, v.s = Ct, v.t = Ta, v.u = Vt, v.v = ee, v.w = ar, v.x = Bl, v.y = Ns, v.z = function([n, t, i]) {
12256
+ }, v.p = Ef, v.q = Xl, v.r = Gr, v.s = Ct, v.t = Ta, v.u = Vt, v.v = ee, v.w = or, v.x = Bl, v.y = Ns, v.z = function([n, t, i]) {
12257
12257
  return t += 90, t *= Math.PI / 180, i *= Math.PI / 180, { x: n * Math.cos(t) * Math.sin(i), y: n * Math.sin(t) * Math.sin(i), z: n * Math.cos(i) };
12258
12258
  };
12259
12259
  }), S("worker", ["./shared"], function(v) {
@@ -12325,14 +12325,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12325
12325
  const Ne = X.layers[wt];
12326
12326
  if (!Ne) continue;
12327
12327
  Ne.version === 1 && v.w(`Vector tile source "${this.source}" layer "${wt}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
12328
- const xt = ee.encode(wt), Mt = [];
12328
+ const xt = ee.encode(wt), Lt = [];
12329
12329
  for (let Lr = 0; Lr < Ne.length; Lr++) {
12330
12330
  const Rr = Ne.feature(Lr), Di = Ee.getId(Rr, wt);
12331
- Mt.push({ feature: Rr, id: Di, index: Lr, sourceLayerIndex: xt });
12331
+ Lt.push({ feature: Rr, id: Di, index: Lr, sourceLayerIndex: xt });
12332
12332
  }
12333
12333
  for (const Lr of Le[wt]) {
12334
12334
  const Rr = Lr[0];
12335
- Rr.source !== this.source && v.w(`layer.source = ${Rr.source} does not equal this.source = ${this.source}`), Rr.minzoom && this.zoom < Math.floor(Rr.minzoom) || Rr.maxzoom && this.zoom >= Rr.maxzoom || Rr.visibility !== "none" && (I(Lr, this.zoom, te), (we[Rr.id] = Rr.createBucket({ index: Ee.bucketLayerIDs.length, layers: Lr, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: xt, sourceID: this.source })).populate(Mt, Ce, this.tileID.canonical), Ee.bucketLayerIDs.push(Lr.map((Di) => Di.id)));
12335
+ Rr.source !== this.source && v.w(`layer.source = ${Rr.source} does not equal this.source = ${this.source}`), Rr.minzoom && this.zoom < Math.floor(Rr.minzoom) || Rr.maxzoom && this.zoom >= Rr.maxzoom || Rr.visibility !== "none" && (I(Lr, this.zoom, te), (we[Rr.id] = Rr.createBucket({ index: Ee.bucketLayerIDs.length, layers: Lr, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: xt, sourceID: this.source })).populate(Lt, Ce, this.tileID.canonical), Ee.bucketLayerIDs.push(Lr.map((Di) => Di.id)));
12336
12336
  }
12337
12337
  }
12338
12338
  const ke = v.bF(Ce.glyphDependencies, (wt) => Object.keys(wt).map(Number));
@@ -12349,17 +12349,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12349
12349
  this.inFlightDependencies.push(wt), it = he.sendAsync({ type: "GI", data: { icons: tt, source: this.source, tileID: this.tileID, type: "icons" } }, wt);
12350
12350
  }
12351
12351
  const gt = Object.keys(Ce.patternDependencies);
12352
- let Et = Promise.resolve({});
12352
+ let Mt = Promise.resolve({});
12353
12353
  if (gt.length) {
12354
12354
  const wt = new AbortController();
12355
- this.inFlightDependencies.push(wt), Et = he.sendAsync({ type: "GI", data: { icons: gt, source: this.source, tileID: this.tileID, type: "patterns" } }, wt);
12355
+ this.inFlightDependencies.push(wt), Mt = he.sendAsync({ type: "GI", data: { icons: gt, source: this.source, tileID: this.tileID, type: "patterns" } }, wt);
12356
12356
  }
12357
- const [St, Oe, sr] = yield Promise.all([We, it, Et]), Nt = new D(St), Yt = new v.cx(Oe, sr);
12357
+ const [St, Oe, nr] = yield Promise.all([We, it, Mt]), Nt = new D(St), Qt = new v.cx(Oe, nr);
12358
12358
  for (const wt in we) {
12359
12359
  const Ne = we[wt];
12360
- Ne instanceof v.a6 ? (I(Ne.layers, this.zoom, te), v.cy({ bucket: Ne, glyphMap: St, glyphPositions: Nt.positions, imageMap: Oe, imagePositions: Yt.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical, subdivisionGranularity: Ce.subdivisionGranularity })) : Ne.hasPattern && (Ne instanceof v.cz || Ne instanceof v.cA || Ne instanceof v.cB) && (I(Ne.layers, this.zoom, te), Ne.addFeatures(Ce, this.tileID.canonical, Yt.patternPositions));
12360
+ Ne instanceof v.a6 ? (I(Ne.layers, this.zoom, te), v.cy({ bucket: Ne, glyphMap: St, glyphPositions: Nt.positions, imageMap: Oe, imagePositions: Qt.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical, subdivisionGranularity: Ce.subdivisionGranularity })) : Ne.hasPattern && (Ne instanceof v.cz || Ne instanceof v.cA || Ne instanceof v.cB) && (I(Ne.layers, this.zoom, te), Ne.addFeatures(Ce, this.tileID.canonical, Qt.patternPositions));
12361
12361
  }
12362
- return this.status = "done", { buckets: Object.values(we).filter((wt) => !wt.isEmpty()), featureIndex: Ee, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Nt.image, imageAtlas: Yt, glyphMap: this.returnDependencies ? St : null, iconMap: this.returnDependencies ? Oe : null, glyphPositions: this.returnDependencies ? Nt.positions : null };
12362
+ return this.status = "done", { buckets: Object.values(we).filter((wt) => !wt.isEmpty()), featureIndex: Ee, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: Nt.image, imageAtlas: Qt, glyphMap: this.returnDependencies ? St : null, iconMap: this.returnDependencies ? Oe : null, glyphPositions: this.returnDependencies ? Nt.positions : null };
12363
12363
  });
12364
12364
  }
12365
12365
  }
@@ -12534,17 +12534,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12534
12534
  var it = this.rawGeometry;
12535
12535
  this.geometry = [];
12536
12536
  for (var gt = 0; gt < it.length; gt++) {
12537
- for (var Et = it[gt], St = [], Oe = 0; Oe < Et.length; Oe++) St.push(new Le(Et[Oe][0], Et[Oe][1]));
12537
+ for (var Mt = it[gt], St = [], Oe = 0; Oe < Mt.length; Oe++) St.push(new Le(Mt[Oe][0], Mt[Oe][1]));
12538
12538
  this.geometry.push(St);
12539
12539
  }
12540
12540
  return this.geometry;
12541
12541
  }, tt.prototype.bbox = function() {
12542
12542
  this.geometry || this.loadGeometry();
12543
- for (var it = this.geometry, gt = 1 / 0, Et = -1 / 0, St = 1 / 0, Oe = -1 / 0, sr = 0; sr < it.length; sr++) for (var Nt = it[sr], Yt = 0; Yt < Nt.length; Yt++) {
12544
- var wt = Nt[Yt];
12545
- gt = Math.min(gt, wt.x), Et = Math.max(Et, wt.x), St = Math.min(St, wt.y), Oe = Math.max(Oe, wt.y);
12543
+ for (var it = this.geometry, gt = 1 / 0, Mt = -1 / 0, St = 1 / 0, Oe = -1 / 0, nr = 0; nr < it.length; nr++) for (var Nt = it[nr], Qt = 0; Qt < Nt.length; Qt++) {
12544
+ var wt = Nt[Qt];
12545
+ gt = Math.min(gt, wt.x), Mt = Math.max(Mt, wt.x), St = Math.min(St, wt.y), Oe = Math.max(Oe, wt.y);
12546
12546
  }
12547
- return [gt, St, Et, Oe];
12547
+ return [gt, St, Mt, Oe];
12548
12548
  }, tt.prototype.toGeoJSON = ke.prototype.toGeoJSON, Y;
12549
12549
  }();
12550
12550
  function K(Le) {
@@ -12568,15 +12568,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12568
12568
  We.id !== void 0 && ke.writeVarintField(1, We.id), ke.writeMessage(2, xe, Le), ke.writeVarintField(3, We.type), ke.writeMessage(4, we, We);
12569
12569
  }
12570
12570
  function xe(Le, ke) {
12571
- var We = Le.feature, tt = Le.keys, it = Le.values, gt = Le.keycache, Et = Le.valuecache;
12571
+ var We = Le.feature, tt = Le.keys, it = Le.values, gt = Le.keycache, Mt = Le.valuecache;
12572
12572
  for (var St in We.properties) {
12573
- var Oe = We.properties[St], sr = gt[St];
12573
+ var Oe = We.properties[St], nr = gt[St];
12574
12574
  if (Oe !== null) {
12575
- sr === void 0 && (tt.push(St), gt[St] = sr = tt.length - 1), ke.writeVarint(sr);
12575
+ nr === void 0 && (tt.push(St), gt[St] = nr = tt.length - 1), ke.writeVarint(nr);
12576
12576
  var Nt = typeof Oe;
12577
12577
  Nt !== "string" && Nt !== "boolean" && Nt !== "number" && (Oe = JSON.stringify(Oe));
12578
- var Yt = Nt + ":" + Oe, wt = Et[Yt];
12579
- wt === void 0 && (it.push(Oe), Et[Yt] = wt = it.length - 1), ke.writeVarint(wt);
12578
+ var Qt = Nt + ":" + Oe, wt = Mt[Qt];
12579
+ wt === void 0 && (it.push(Oe), Mt[Qt] = wt = it.length - 1), ke.writeVarint(wt);
12580
12580
  }
12581
12581
  }
12582
12582
  }
@@ -12587,12 +12587,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12587
12587
  return Le << 1 ^ Le >> 31;
12588
12588
  }
12589
12589
  function we(Le, ke) {
12590
- for (var We = Le.loadGeometry(), tt = Le.type, it = 0, gt = 0, Et = We.length, St = 0; St < Et; St++) {
12591
- var Oe = We[St], sr = 1;
12592
- tt === 1 && (sr = Oe.length), ke.writeVarint(ee(1, sr));
12593
- for (var Nt = tt === 3 ? Oe.length - 1 : Oe.length, Yt = 0; Yt < Nt; Yt++) {
12594
- Yt === 1 && tt !== 1 && ke.writeVarint(ee(2, Nt - 1));
12595
- var wt = Oe[Yt].x - it, Ne = Oe[Yt].y - gt;
12590
+ for (var We = Le.loadGeometry(), tt = Le.type, it = 0, gt = 0, Mt = We.length, St = 0; St < Mt; St++) {
12591
+ var Oe = We[St], nr = 1;
12592
+ tt === 1 && (nr = Oe.length), ke.writeVarint(ee(1, nr));
12593
+ for (var Nt = tt === 3 ? Oe.length - 1 : Oe.length, Qt = 0; Qt < Nt; Qt++) {
12594
+ Qt === 1 && tt !== 1 && ke.writeVarint(ee(2, Nt - 1));
12595
+ var wt = Oe[Qt].x - it, Ne = Oe[Qt].y - gt;
12596
12596
  ke.writeVarint(Ee(wt)), ke.writeVarint(Ee(Ne)), it += wt, gt += Ne;
12597
12597
  }
12598
12598
  tt === 3 && ke.writeVarint(ee(7, 1));
@@ -12704,8 +12704,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12704
12704
  else {
12705
12705
  const gt = this.points[K[we + Tt]];
12706
12706
  Le = gt.properties;
12707
- const [Et, St] = gt.geometry.coordinates;
12708
- ke = gn(Et), We = pi(St);
12707
+ const [Mt, St] = gt.geometry.coordinates;
12708
+ ke = gn(Mt), We = pi(St);
12709
12709
  }
12710
12710
  const tt = { type: 1, geometry: [[Math.round(this.options.extent * (ke * xe - te)), Math.round(this.options.extent * (We * xe - he))]], tags: Le };
12711
12711
  let it;
@@ -12721,29 +12721,29 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12721
12721
  if (we[ke + 2] <= K) continue;
12722
12722
  we[ke + 2] = K;
12723
12723
  const We = we[ke], tt = we[ke + 1], it = X.within(we[ke], we[ke + 1], Ee), gt = we[ke + Bt];
12724
- let Et = gt;
12724
+ let Mt = gt;
12725
12725
  for (const St of it) {
12726
12726
  const Oe = St * Le;
12727
- we[Oe + 2] > K && (Et += we[Oe + Bt]);
12727
+ we[Oe + 2] > K && (Mt += we[Oe + Bt]);
12728
12728
  }
12729
- if (Et > gt && Et >= ee) {
12730
- let St, Oe = We * gt, sr = tt * gt, Nt = -1;
12731
- const Yt = ((ke / Le | 0) << 5) + (K + 1) + this.points.length;
12729
+ if (Mt > gt && Mt >= ee) {
12730
+ let St, Oe = We * gt, nr = tt * gt, Nt = -1;
12731
+ const Qt = ((ke / Le | 0) << 5) + (K + 1) + this.points.length;
12732
12732
  for (const wt of it) {
12733
12733
  const Ne = wt * Le;
12734
12734
  if (we[Ne + 2] <= K) continue;
12735
12735
  we[Ne + 2] = K;
12736
12736
  const xt = we[Ne + Bt];
12737
- Oe += we[Ne] * xt, sr += we[Ne + 1] * xt, we[Ne + 4] = Yt, xe && (St || (St = this._map(we, ke, !0), Nt = this.clusterProps.length, this.clusterProps.push(St)), xe(St, this._map(we, Ne)));
12737
+ Oe += we[Ne] * xt, nr += we[Ne + 1] * xt, we[Ne + 4] = Qt, xe && (St || (St = this._map(we, ke, !0), Nt = this.clusterProps.length, this.clusterProps.push(St)), xe(St, this._map(we, Ne)));
12738
12738
  }
12739
- we[ke + 4] = Yt, Ce.push(Oe / Et, sr / Et, 1 / 0, Yt, -1, Et), xe && Ce.push(Nt);
12739
+ we[ke + 4] = Qt, Ce.push(Oe / Mt, nr / Mt, 1 / 0, Qt, -1, Mt), xe && Ce.push(Nt);
12740
12740
  } else {
12741
12741
  for (let St = 0; St < Le; St++) Ce.push(we[ke + St]);
12742
- if (Et > 1) for (const St of it) {
12742
+ if (Mt > 1) for (const St of it) {
12743
12743
  const Oe = St * Le;
12744
12744
  if (!(we[Oe + 2] <= K)) {
12745
12745
  we[Oe + 2] = K;
12746
- for (let sr = 0; sr < Le; sr++) Ce.push(we[Oe + sr]);
12746
+ for (let nr = 0; nr < Le; nr++) Ce.push(we[Oe + nr]);
12747
12747
  }
12748
12748
  }
12749
12749
  }
@@ -12850,12 +12850,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12850
12850
  Se.push($e(we, xe, Ee, X.properties));
12851
12851
  }
12852
12852
  function At(Se, X) {
12853
- X.push(Ut(Se[0]), Lt(Se[1]), 0);
12853
+ X.push(jt(Se[0]), It(Se[1]), 0);
12854
12854
  }
12855
12855
  function ct(Se, X, K, te) {
12856
12856
  let he, xe, ee = 0;
12857
12857
  for (let we = 0; we < Se.length; we++) {
12858
- const Ce = Ut(Se[we][0]), Le = Lt(Se[we][1]);
12858
+ const Ce = jt(Se[we][0]), Le = It(Se[we][1]);
12859
12859
  X.push(Ce, Le, 0), we > 0 && (ee += te ? (he * Le - Ce * xe) / 2 : Math.sqrt(Math.pow(Ce - he, 2) + Math.pow(Le - xe, 2))), he = Ce, xe = Le;
12860
12860
  }
12861
12861
  const Ee = X.length - 3;
@@ -12867,14 +12867,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12867
12867
  ct(Se[he], xe, K, te), X.push(xe);
12868
12868
  }
12869
12869
  }
12870
- function Ut(Se) {
12870
+ function jt(Se) {
12871
12871
  return Se / 360 + 0.5;
12872
12872
  }
12873
- function Lt(Se) {
12873
+ function It(Se) {
12874
12874
  const X = Math.sin(Se * Math.PI / 180), K = 0.5 - 0.25 * Math.log((1 + X) / (1 - X)) / Math.PI;
12875
12875
  return K < 0 ? 0 : K > 1 ? 1 : K;
12876
12876
  }
12877
- function It(Se, X, K, te, he, xe, ee, Ee) {
12877
+ function Et(Se, X, K, te, he, xe, ee, Ee) {
12878
12878
  if (te /= X, xe >= (K /= X) && ee < te) return Se;
12879
12879
  if (ee < K || xe >= te) return null;
12880
12880
  const we = [];
@@ -12888,13 +12888,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12888
12888
  }
12889
12889
  if (tt < K || We >= te) continue;
12890
12890
  let it = [];
12891
- if (ke === "Point" || ke === "MultiPoint") ar(Le, it, K, te, he);
12892
- else if (ke === "LineString") nr(Le, it, K, te, he, !1, Ee.lineMetrics);
12891
+ if (ke === "Point" || ke === "MultiPoint") or(Le, it, K, te, he);
12892
+ else if (ke === "LineString") ar(Le, it, K, te, he, !1, Ee.lineMetrics);
12893
12893
  else if (ke === "MultiLineString") ji(Le, it, K, te, he, !1);
12894
12894
  else if (ke === "Polygon") ji(Le, it, K, te, he, !0);
12895
12895
  else if (ke === "MultiPolygon") for (const gt of Le) {
12896
- const Et = [];
12897
- ji(gt, Et, K, te, he, !0), Et.length && it.push(Et);
12896
+ const Mt = [];
12897
+ ji(gt, Mt, K, te, he, !0), Mt.length && it.push(Mt);
12898
12898
  }
12899
12899
  if (it.length) {
12900
12900
  if (Ee.lineMetrics && ke === "LineString") {
@@ -12906,20 +12906,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12906
12906
  }
12907
12907
  return we.length ? we : null;
12908
12908
  }
12909
- function ar(Se, X, K, te, he) {
12909
+ function or(Se, X, K, te, he) {
12910
12910
  for (let xe = 0; xe < Se.length; xe += 3) {
12911
12911
  const ee = Se[xe + he];
12912
12912
  ee >= K && ee <= te && ni(X, Se[xe], Se[xe + 1], Se[xe + 2]);
12913
12913
  }
12914
12914
  }
12915
- function nr(Se, X, K, te, he, xe, ee) {
12915
+ function ar(Se, X, K, te, he, xe, ee) {
12916
12916
  let Ee = wr(Se);
12917
12917
  const we = he === 0 ? On : Fn;
12918
12918
  let Ce, Le, ke = Se.start;
12919
- for (let Et = 0; Et < Se.length - 3; Et += 3) {
12920
- const St = Se[Et], Oe = Se[Et + 1], sr = Se[Et + 2], Nt = Se[Et + 3], Yt = Se[Et + 4], wt = he === 0 ? St : Oe, Ne = he === 0 ? Nt : Yt;
12919
+ for (let Mt = 0; Mt < Se.length - 3; Mt += 3) {
12920
+ const St = Se[Mt], Oe = Se[Mt + 1], nr = Se[Mt + 2], Nt = Se[Mt + 3], Qt = Se[Mt + 4], wt = he === 0 ? St : Oe, Ne = he === 0 ? Nt : Qt;
12921
12921
  let xt = !1;
12922
- ee && (Ce = Math.sqrt(Math.pow(St - Nt, 2) + Math.pow(Oe - Yt, 2))), wt < K ? Ne > K && (Le = we(Ee, St, Oe, Nt, Yt, K), ee && (Ee.start = ke + Ce * Le)) : wt > te ? Ne < te && (Le = we(Ee, St, Oe, Nt, Yt, te), ee && (Ee.start = ke + Ce * Le)) : ni(Ee, St, Oe, sr), Ne < K && wt >= K && (Le = we(Ee, St, Oe, Nt, Yt, K), xt = !0), Ne > te && wt <= te && (Le = we(Ee, St, Oe, Nt, Yt, te), xt = !0), !xe && xt && (ee && (Ee.end = ke + Ce * Le), X.push(Ee), Ee = wr(Se)), ee && (ke += Ce);
12922
+ ee && (Ce = Math.sqrt(Math.pow(St - Nt, 2) + Math.pow(Oe - Qt, 2))), wt < K ? Ne > K && (Le = we(Ee, St, Oe, Nt, Qt, K), ee && (Ee.start = ke + Ce * Le)) : wt > te ? Ne < te && (Le = we(Ee, St, Oe, Nt, Qt, te), ee && (Ee.start = ke + Ce * Le)) : ni(Ee, St, Oe, nr), Ne < K && wt >= K && (Le = we(Ee, St, Oe, Nt, Qt, K), xt = !0), Ne > te && wt <= te && (Le = we(Ee, St, Oe, Nt, Qt, te), xt = !0), !xe && xt && (ee && (Ee.end = ke + Ce * Le), X.push(Ee), Ee = wr(Se)), ee && (ke += Ce);
12923
12923
  }
12924
12924
  let We = Se.length - 3;
12925
12925
  const tt = Se[We], it = Se[We + 1], gt = he === 0 ? tt : it;
@@ -12930,7 +12930,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12930
12930
  return X.size = Se.size, X.start = Se.start, X.end = Se.end, X;
12931
12931
  }
12932
12932
  function ji(Se, X, K, te, he, xe) {
12933
- for (const ee of Se) nr(ee, X, K, te, he, xe, !1);
12933
+ for (const ee of Se) ar(ee, X, K, te, he, xe, !1);
12934
12934
  }
12935
12935
  function ni(Se, X, K, te) {
12936
12936
  Se.push(X, K, te);
@@ -12943,20 +12943,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12943
12943
  const ee = (xe - K) / (he - K);
12944
12944
  return ni(Se, X + (te - X) * ee, xe, 1), ee;
12945
12945
  }
12946
- function Xt(Se, X) {
12946
+ function Yt(Se, X) {
12947
12947
  const K = [];
12948
12948
  for (let te = 0; te < Se.length; te++) {
12949
12949
  const he = Se[te], xe = he.type;
12950
12950
  let ee;
12951
- if (xe === "Point" || xe === "MultiPoint" || xe === "LineString") ee = Qt(he.geometry, X);
12951
+ if (xe === "Point" || xe === "MultiPoint" || xe === "LineString") ee = Xt(he.geometry, X);
12952
12952
  else if (xe === "MultiLineString" || xe === "Polygon") {
12953
12953
  ee = [];
12954
- for (const Ee of he.geometry) ee.push(Qt(Ee, X));
12954
+ for (const Ee of he.geometry) ee.push(Xt(Ee, X));
12955
12955
  } else if (xe === "MultiPolygon") {
12956
12956
  ee = [];
12957
12957
  for (const Ee of he.geometry) {
12958
12958
  const we = [];
12959
- for (const Ce of Ee) we.push(Qt(Ce, X));
12959
+ for (const Ce of Ee) we.push(Xt(Ce, X));
12960
12960
  ee.push(we);
12961
12961
  }
12962
12962
  }
@@ -12964,7 +12964,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12964
12964
  }
12965
12965
  return K;
12966
12966
  }
12967
- function Qt(Se, X) {
12967
+ function Xt(Se, X) {
12968
12968
  const K = [];
12969
12969
  K.size = Se.size, Se.start !== void 0 && (K.start = Se.start, K.end = Se.end);
12970
12970
  for (let te = 0; te < Se.length; te += 3) K.push(Se[te] + X, Se[te + 1], Se[te + 2]);
@@ -13044,8 +13044,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13044
13044
  this.tiles = {}, this.tileCoords = [], te && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", K.indexMaxZoom, K.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), he = function(xe, ee) {
13045
13045
  const Ee = ee.buffer / ee.extent;
13046
13046
  let we = xe;
13047
- const Ce = It(xe, 1, -1 - Ee, Ee, 0, -1, 2, ee), Le = It(xe, 1, 1 - Ee, 2 + Ee, 0, -1, 2, ee);
13048
- return (Ce || Le) && (we = It(xe, 1, -Ee, 1 + Ee, 0, -1, 2, ee) || [], Ce && (we = Xt(Ce, 1).concat(we)), Le && (we = we.concat(Xt(Le, -1)))), we;
13047
+ const Ce = Et(xe, 1, -1 - Ee, Ee, 0, -1, 2, ee), Le = Et(xe, 1, 1 - Ee, 2 + Ee, 0, -1, 2, ee);
13048
+ return (Ce || Le) && (we = Et(xe, 1, -Ee, 1 + Ee, 0, -1, 2, ee) || [], Ce && (we = Yt(Ce, 1).concat(we)), Le && (we = we.concat(Yt(Le, -1)))), we;
13049
13049
  }(he, K), he.length && this.splitTile(he, 0, 0, 0), te && (he.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats)));
13050
13050
  }
13051
13051
  splitTile(X, K, te, he, xe, ee, Ee) {
@@ -13070,9 +13070,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13070
13070
  }
13071
13071
  if (tt.source = null, X.length === 0) continue;
13072
13072
  Le > 1 && console.time("clipping");
13073
- const it = 0.5 * Ce.buffer / Ce.extent, gt = 0.5 - it, Et = 0.5 + it, St = 1 + it;
13074
- let Oe = null, sr = null, Nt = null, Yt = null, wt = It(X, ke, te - it, te + Et, 0, tt.minX, tt.maxX, Ce), Ne = It(X, ke, te + gt, te + St, 0, tt.minX, tt.maxX, Ce);
13075
- X = null, wt && (Oe = It(wt, ke, he - it, he + Et, 1, tt.minY, tt.maxY, Ce), sr = It(wt, ke, he + gt, he + St, 1, tt.minY, tt.maxY, Ce), wt = null), Ne && (Nt = It(Ne, ke, he - it, he + Et, 1, tt.minY, tt.maxY, Ce), Yt = It(Ne, ke, he + gt, he + St, 1, tt.minY, tt.maxY, Ce), Ne = null), Le > 1 && console.timeEnd("clipping"), we.push(Oe || [], K + 1, 2 * te, 2 * he), we.push(sr || [], K + 1, 2 * te, 2 * he + 1), we.push(Nt || [], K + 1, 2 * te + 1, 2 * he), we.push(Yt || [], K + 1, 2 * te + 1, 2 * he + 1);
13073
+ const it = 0.5 * Ce.buffer / Ce.extent, gt = 0.5 - it, Mt = 0.5 + it, St = 1 + it;
13074
+ let Oe = null, nr = null, Nt = null, Qt = null, wt = Et(X, ke, te - it, te + Mt, 0, tt.minX, tt.maxX, Ce), Ne = Et(X, ke, te + gt, te + St, 0, tt.minX, tt.maxX, Ce);
13075
+ X = null, wt && (Oe = Et(wt, ke, he - it, he + Mt, 1, tt.minY, tt.maxY, Ce), nr = Et(wt, ke, he + gt, he + St, 1, tt.minY, tt.maxY, Ce), wt = null), Ne && (Nt = Et(Ne, ke, he - it, he + Mt, 1, tt.minY, tt.maxY, Ce), Qt = Et(Ne, ke, he + gt, he + St, 1, tt.minY, tt.maxY, Ce), Ne = null), Le > 1 && console.timeEnd("clipping"), we.push(Oe || [], K + 1, 2 * te, 2 * he), we.push(nr || [], K + 1, 2 * te, 2 * he + 1), we.push(Nt || [], K + 1, 2 * te + 1, 2 * he), we.push(Qt || [], K + 1, 2 * te + 1, 2 * he + 1);
13076
13076
  }
13077
13077
  }
13078
13078
  getTile(X, K, te) {
@@ -13139,8 +13139,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13139
13139
  if (!Ee || !ee) return ee;
13140
13140
  const we = {}, Ce = {}, Le = { accumulated: null, zoom: 0 }, ke = { properties: null }, We = Object.keys(Ee);
13141
13141
  for (const tt of We) {
13142
- const [it, gt] = Ee[tt], Et = v.cL(gt), St = v.cL(typeof it == "string" ? [it, ["accumulated"], ["get", tt]] : it);
13143
- we[tt] = Et.value, Ce[tt] = St.value;
13142
+ const [it, gt] = Ee[tt], Mt = v.cL(gt), St = v.cL(typeof it == "string" ? [it, ["accumulated"], ["get", tt]] : it);
13143
+ we[tt] = Mt.value, Ce[tt] = St.value;
13144
13144
  }
13145
13145
  return ee.map = (tt) => {
13146
13146
  ke.properties = tt;
@@ -13972,7 +13972,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13972
13972
  const r = s.K();
13973
13973
  return s.L(r, r, [1, 1, 0]), s.M(r, r, [0.5 * h.width, 0.5 * h.height, 1]), h.calculatePosMatrix ? s.N(r, r, h.calculatePosMatrix(e.toUnwrapped())) : r;
13974
13974
  }
13975
- function Ut(h, e, r, a, l, p, g) {
13975
+ function jt(h, e, r, a, l, p, g) {
13976
13976
  var b;
13977
13977
  const A = function(F, H, G) {
13978
13978
  if (F) for (const ne of F) {
@@ -13985,11 +13985,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13985
13985
  }
13986
13986
  return !1;
13987
13987
  }((b = l == null ? void 0 : l.layers) !== null && b !== void 0 ? b : null, e, h.id), M = p.maxPitchScaleFactor(), z = h.tilesIn(a, M, A);
13988
- z.sort(Lt);
13988
+ z.sort(It);
13989
13989
  const V = [];
13990
13990
  for (const F of z) V.push({ wrappedTileID: F.tileID.wrapped().key, queryResults: F.tile.queryRenderedFeatures(e, r, h._state, F.queryGeometry, F.cameraQueryGeometry, F.scale, l, p, M, kt(h.transform, F.tileID), g ? (H, G) => g(F.tileID, H, G) : void 0) });
13991
13991
  return function(F, H) {
13992
- for (const G in F) for (const ne of F[G]) It(ne, H);
13992
+ for (const G in F) for (const ne of F[G]) Et(ne, H);
13993
13993
  return F;
13994
13994
  }(function(F) {
13995
13995
  const H = {}, G = {};
@@ -14003,15 +14003,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14003
14003
  return H;
14004
14004
  }(V), h);
14005
14005
  }
14006
- function Lt(h, e) {
14006
+ function It(h, e) {
14007
14007
  const r = h.tileID, a = e.tileID;
14008
14008
  return r.overscaledZ - a.overscaledZ || r.canonical.y - a.canonical.y || r.wrap - a.wrap || r.canonical.x - a.canonical.x;
14009
14009
  }
14010
- function It(h, e) {
14010
+ function Et(h, e) {
14011
14011
  const r = h.feature, a = e.getFeatureState(r.layer["source-layer"], r.id);
14012
14012
  r.source = r.layer.source, r.layer["source-layer"] && (r.sourceLayer = r.layer["source-layer"]), r.state = a;
14013
14013
  }
14014
- function ar(h, e, r) {
14014
+ function or(h, e, r) {
14015
14015
  return s._(this, void 0, void 0, function* () {
14016
14016
  let a = h;
14017
14017
  if (h.url ? a = (yield s.j(e.transformRequest(h.url, "Source"), r)).data : yield E.frameAsync(r), !a) return null;
@@ -14019,7 +14019,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14019
14019
  return "vector_layers" in a && a.vector_layers && (l.vectorLayerIds = a.vector_layers.map((p) => p.id)), l;
14020
14020
  });
14021
14021
  }
14022
- class nr {
14022
+ class ar {
14023
14023
  constructor(e, r) {
14024
14024
  e && (r ? this.setSouthWest(e).setNorthEast(r) : Array.isArray(e) && (e.length === 4 ? this.setSouthWest([e[0], e[1]]).setNorthEast([e[2], e[3]]) : this.setSouthWest(e[0]).setNorthEast(e[1])));
14025
14025
  }
@@ -14034,7 +14034,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14034
14034
  let l, p;
14035
14035
  if (e instanceof s.Q) l = e, p = e;
14036
14036
  else {
14037
- if (!(e instanceof nr)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(nr.convert(e)) : this.extend(s.Q.convert(e)) : e && ("lng" in e || "lon" in e) && "lat" in e ? this.extend(s.Q.convert(e)) : this;
14037
+ if (!(e instanceof ar)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(ar.convert(e)) : this.extend(s.Q.convert(e)) : e && ("lng" in e || "lon" in e) && "lat" in e ? this.extend(s.Q.convert(e)) : this;
14038
14038
  if (l = e._sw, p = e._ne, !l || !p) return this;
14039
14039
  }
14040
14040
  return r || a ? (r.lng = Math.min(l.lng, r.lng), r.lat = Math.min(l.lat, r.lat), a.lng = Math.max(p.lng, a.lng), a.lat = Math.max(p.lat, a.lat)) : (this._sw = new s.Q(l.lng, l.lat), this._ne = new s.Q(p.lng, p.lat)), this;
@@ -14081,20 +14081,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14081
14081
  return this._sw.lng > this._ne.lng && (l = this._sw.lng >= r && r >= this._ne.lng), this._sw.lat <= a && a <= this._ne.lat && l;
14082
14082
  }
14083
14083
  static convert(e) {
14084
- return e instanceof nr ? e : e && new nr(e);
14084
+ return e instanceof ar ? e : e && new ar(e);
14085
14085
  }
14086
14086
  static fromLngLat(e, r = 0) {
14087
14087
  const a = 360 * r / 40075017, l = a / Math.cos(Math.PI / 180 * e.lat);
14088
- return new nr(new s.Q(e.lng - l, e.lat - a), new s.Q(e.lng + l, e.lat + a));
14088
+ return new ar(new s.Q(e.lng - l, e.lat - a), new s.Q(e.lng + l, e.lat + a));
14089
14089
  }
14090
14090
  adjustAntiMeridian() {
14091
14091
  const e = new s.Q(this._sw.lng, this._sw.lat), r = new s.Q(this._ne.lng, this._ne.lat);
14092
- return new nr(e, e.lng > r.lng ? new s.Q(r.lng + 360, r.lat) : r);
14092
+ return new ar(e, e.lng > r.lng ? new s.Q(r.lng + 360, r.lat) : r);
14093
14093
  }
14094
14094
  }
14095
14095
  class wr {
14096
14096
  constructor(e, r, a) {
14097
- this.bounds = nr.convert(this.validateBounds(e)), this.minzoom = r || 0, this.maxzoom = a || 24;
14097
+ this.bounds = ar.convert(this.validateBounds(e)), this.minzoom = r || 0, this.maxzoom = a || 24;
14098
14098
  }
14099
14099
  validateBounds(e) {
14100
14100
  return Array.isArray(e) && e.length === 4 ? [Math.max(-180, e[0]), Math.max(-90, e[1]), Math.min(180, e[2]), Math.min(90, e[3])] : [-180, -90, 180, 90];
@@ -14113,7 +14113,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14113
14113
  return s._(this, void 0, void 0, function* () {
14114
14114
  this._loaded = !1, this.fire(new s.l("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
14115
14115
  try {
14116
- const e = yield ar(this._options, this.map._requestManager, this._tileJSONRequest);
14116
+ const e = yield or(this._options, this.map._requestManager, this._tileJSONRequest);
14117
14117
  this._tileJSONRequest = null, this._loaded = !0, this.map.style.sourceCaches[this.id].clearTiles(), e && (s.e(this, e), e.bounds && (this.tileBounds = new wr(e.bounds, this.minzoom, this.maxzoom)), this.fire(new s.l("data", { dataType: "source", sourceDataType: "metadata" })), this.fire(new s.l("data", { dataType: "source", sourceDataType: "content" })));
14118
14118
  } catch (e) {
14119
14119
  this._tileJSONRequest = null, this.fire(new s.k(e));
@@ -14198,7 +14198,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14198
14198
  return s._(this, arguments, void 0, function* (e = !1) {
14199
14199
  this._loaded = !1, this.fire(new s.l("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
14200
14200
  try {
14201
- const r = yield ar(this._options, this.map._requestManager, this._tileJSONRequest);
14201
+ const r = yield or(this._options, this.map._requestManager, this._tileJSONRequest);
14202
14202
  this._tileJSONRequest = null, this._loaded = !0, r && (s.e(this, r), r.bounds && (this.tileBounds = new wr(r.bounds, this.minzoom, this.maxzoom)), this.fire(new s.l("data", { dataType: "source", sourceDataType: "metadata" })), this.fire(new s.l("data", { dataType: "source", sourceDataType: "content", sourceDataChanged: e })));
14203
14203
  } catch (r) {
14204
14204
  this._tileJSONRequest = null, this.fire(new s.k(r));
@@ -14346,7 +14346,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14346
14346
  }
14347
14347
  getBounds() {
14348
14348
  return s._(this, void 0, void 0, function* () {
14349
- const e = new nr(), r = yield this.getData();
14349
+ const e = new ar(), r = yield this.getData();
14350
14350
  let a;
14351
14351
  switch (r.type) {
14352
14352
  case "FeatureCollection":
@@ -14425,7 +14425,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14425
14425
  return !1;
14426
14426
  }
14427
14427
  }
14428
- class Xt extends s.E {
14428
+ class Yt extends s.E {
14429
14429
  constructor(e, r, a, l) {
14430
14430
  super(), this.flippedWindingOrder = !1, this.id = e, this.dispatcher = a, this.coordinates = r.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.setEventedParent(l), this.options = r;
14431
14431
  }
@@ -14501,7 +14501,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14501
14501
  return g;
14502
14502
  }
14503
14503
  }
14504
- class Qt extends Xt {
14504
+ class Xt extends Yt {
14505
14505
  constructor(e, r, a, l) {
14506
14506
  super(e, r, a, l), this.roundZoom = !0, this.type = "video", this.options = r;
14507
14507
  }
@@ -14558,7 +14558,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14558
14558
  return this.video && !this.video.paused;
14559
14559
  }
14560
14560
  }
14561
- class Ct extends Xt {
14561
+ class Ct extends Yt {
14562
14562
  constructor(e, r, a, l) {
14563
14563
  super(e, r, a, l), r.coordinates ? Array.isArray(r.coordinates) && r.coordinates.length === 4 && !r.coordinates.some((p) => !Array.isArray(p) || p.length !== 2 || p.some((g) => typeof g != "number")) || this.fire(new s.k(new s.a3(`sources.${e}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new s.k(new s.a3(`sources.${e}`, null, 'missing required property "coordinates"'))), r.animate && typeof r.animate != "boolean" && this.fire(new s.k(new s.a3(`sources.${e}`, null, 'optional "animate" property must be a boolean value'))), r.canvas ? typeof r.canvas == "string" || r.canvas instanceof HTMLCanvasElement || this.fire(new s.k(new s.a3(`sources.${e}`, 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 s.k(new s.a3(`sources.${e}`, null, 'missing required property "canvas"'))), this.options = r, this.animate = r.animate === void 0 || r.animate;
14564
14564
  }
@@ -14608,7 +14608,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14608
14608
  case "geojson":
14609
14609
  return Fn;
14610
14610
  case "image":
14611
- return Xt;
14611
+ return Yt;
14612
14612
  case "raster":
14613
14613
  return ni;
14614
14614
  case "raster-dem":
@@ -14616,7 +14616,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14616
14616
  case "vector":
14617
14617
  return ji;
14618
14618
  case "video":
14619
- return Qt;
14619
+ return Xt;
14620
14620
  case "canvas":
14621
14621
  return Ct;
14622
14622
  }
@@ -15513,7 +15513,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15513
15513
  var l, p, g, b, A, M, z;
15514
15514
  return s.M(a, a, [1 / r, 1 / r, 1]), a;
15515
15515
  }
15516
- function Et(h, e, r, a) {
15516
+ function Mt(h, e, r, a) {
15517
15517
  if (h) {
15518
15518
  const l = s.K();
15519
15519
  if (!e) {
@@ -15540,13 +15540,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15540
15540
  const p = l[3];
15541
15541
  return { point: new s.P(l[0] / p, l[1] / p), signedDistanceFromCamera: p, isOccluded: !1 };
15542
15542
  }
15543
- function sr(h, e) {
15543
+ function nr(h, e) {
15544
15544
  return 0.5 + h / e * 0.5;
15545
15545
  }
15546
15546
  function Nt(h, e) {
15547
15547
  return h.x >= -e[0] && h.x <= e[0] && h.y >= -e[1] && h.y <= e[1];
15548
15548
  }
15549
- function Yt(h, e, r, a, l, p, g, b, A, M, z, V, F) {
15549
+ function Qt(h, e, r, a, l, p, g, b, A, M, z, V, F) {
15550
15550
  const H = r ? h.textSizeData : h.iconSizeData, G = s.ak(H, e.transform.zoom), ne = [256 / e.width * 2 + 1, 256 / e.height * 2 + 1], ie = r ? h.text.dynamicLayoutVertexArray : h.icon.dynamicLayoutVertexArray;
15551
15551
  ie.clear();
15552
15552
  const ae = h.lineVertexArray, ce = r ? h.text.placedSymbolArray : h.icon.placedSymbolArray, me = e.transform.width / e.transform.height;
@@ -15563,7 +15563,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15563
15563
  Sn(be.numGlyphs, ie);
15564
15564
  continue;
15565
15565
  }
15566
- const ze = sr(e.transform.cameraToCenterDistance, qe.signedDistanceFromCamera), De = s.am(H, G, be), Be = p ? De * e.transform.getPitchedTextCorrection(be.anchorX, be.anchorY, A) / ze : De * ze, et = xt({ projectionContext: Pe, pitchedLabelPlaneMatrixInverse: l, symbol: be, fontSize: Be, flip: !1, keepUpright: g, glyphOffsetArray: h.glyphOffsetArray, dynamicLayoutVertexArray: ie, aspectRatio: me, rotateToLine: b });
15566
+ const ze = nr(e.transform.cameraToCenterDistance, qe.signedDistanceFromCamera), De = s.am(H, G, be), Be = p ? De * e.transform.getPitchedTextCorrection(be.anchorX, be.anchorY, A) / ze : De * ze, et = xt({ projectionContext: Pe, pitchedLabelPlaneMatrixInverse: l, symbol: be, fontSize: Be, flip: !1, keepUpright: g, glyphOffsetArray: h.glyphOffsetArray, dynamicLayoutVertexArray: ie, aspectRatio: me, rotateToLine: b });
15567
15567
  fe = et.useVertical, (et.notEnoughRoom || fe || et.needsFlipping && xt({ projectionContext: Pe, pitchedLabelPlaneMatrixInverse: l, symbol: be, fontSize: Be, flip: !0, keepUpright: g, glyphOffsetArray: h.glyphOffsetArray, dynamicLayoutVertexArray: ie, aspectRatio: me, rotateToLine: b }).notEnoughRoom) && Sn(be.numGlyphs, ie);
15568
15568
  }
15569
15569
  r ? h.text.dynamicLayoutVertexBuffer.updateData(ie) : h.icon.dynamicLayoutVertexBuffer.updateData(ie);
@@ -15593,7 +15593,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15593
15593
  G.push(ce.last);
15594
15594
  } else {
15595
15595
  if (g && !p) {
15596
- const ie = Rr(e.tileAnchorPoint.x, e.tileAnchorPoint.y, e).point, ae = a.lineStartIndex + a.segment + 1, ce = new s.P(e.lineVertexArray.getx(ae), e.lineVertexArray.gety(ae)), me = Rr(ce.x, ce.y, e), fe = me.signedDistanceFromCamera > 0 ? me.point : Mt(e.tileAnchorPoint, ce, ie, 1, e), ge = Di(ie.x, ie.y, e, r), be = Di(fe.x, fe.y, e, r), ye = Ne(a.writingMode, ge, be, M);
15596
+ const ie = Rr(e.tileAnchorPoint.x, e.tileAnchorPoint.y, e).point, ae = a.lineStartIndex + a.segment + 1, ce = new s.P(e.lineVertexArray.getx(ae), e.lineVertexArray.gety(ae)), me = Rr(ce.x, ce.y, e), fe = me.signedDistanceFromCamera > 0 ? me.point : Lt(e.tileAnchorPoint, ce, ie, 1, e), ge = Di(ie.x, ie.y, e, r), be = Di(fe.x, fe.y, e, r), ye = Ne(a.writingMode, ge, be, M);
15597
15597
  if (ye) return ye;
15598
15598
  }
15599
15599
  const ne = ts(V * b.getoffsetX(a.glyphStartIndex), F, H, p, a.segment, a.lineStartIndex, a.lineStartIndex + a.lineLength, e, z);
@@ -15603,7 +15603,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15603
15603
  for (const ne of G) s.as(A, ne.point, ne.angle);
15604
15604
  return {};
15605
15605
  }
15606
- function Mt(h, e, r, a, l) {
15606
+ function Lt(h, e, r, a, l) {
15607
15607
  const p = h.add(h.sub(e)._unit()), g = Rr(p.x, p.y, l).point, b = r.sub(g);
15608
15608
  return r.add(b._mult(a / b.mag()));
15609
15609
  }
@@ -15613,7 +15613,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15613
15613
  const l = new s.P(e.lineVertexArray.getx(h), e.lineVertexArray.gety(h)), p = Rr(l.x, l.y, e);
15614
15614
  if (p.signedDistanceFromCamera > 0) return a.projections[h] = p.point, a.anyProjectionOccluded = a.anyProjectionOccluded || p.isOccluded, p.point;
15615
15615
  const g = h - r.direction;
15616
- return Mt(r.distanceFromAnchor === 0 ? e.tileAnchorPoint : new s.P(e.lineVertexArray.getx(g), e.lineVertexArray.gety(g)), l, r.previousVertex, r.absOffsetX - r.distanceFromAnchor + 1, e);
15616
+ return Lt(r.distanceFromAnchor === 0 ? e.tileAnchorPoint : new s.P(e.lineVertexArray.getx(g), e.lineVertexArray.gety(g)), l, r.previousVertex, r.absOffsetX - r.distanceFromAnchor + 1, e);
15617
15617
  }
15618
15618
  function Rr(h, e, r) {
15619
15619
  const a = h + r.translation[0], l = e + r.translation[1];
@@ -17301,7 +17301,7 @@ uniform ${z} ${V} u_${F};
17301
17301
  this._width = e, this._height = r, a && this._constrain(), this._calcMatrices();
17302
17302
  }
17303
17303
  getMaxBounds() {
17304
- return this._latRange && this._latRange.length === 2 && this._lngRange && this._lngRange.length === 2 ? new nr([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]) : null;
17304
+ return this._latRange && this._latRange.length === 2 && this._lngRange && this._lngRange.length === 2 ? new ar([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]) : null;
17305
17305
  }
17306
17306
  setMaxBounds(e) {
17307
17307
  e ? (this._lngRange = [e.getWest(), e.getEast()], this._latRange = [e.getSouth(), e.getNorth()], this._constrain()) : (this._lngRange = null, this._latRange = [-85.051129, s.af]);
@@ -17706,7 +17706,7 @@ uniform ${z} ${V} u_${F};
17706
17706
  }
17707
17707
  getBounds() {
17708
17708
  const e = Math.max(0, this._helper._height / 2 - Se(this));
17709
- return new nr().extend(this.screenPointToLocation(new s.P(0, e))).extend(this.screenPointToLocation(new s.P(this._helper._width, e))).extend(this.screenPointToLocation(new s.P(this._helper._width, this._helper._height))).extend(this.screenPointToLocation(new s.P(0, this._helper._height)));
17709
+ return new ar().extend(this.screenPointToLocation(new s.P(0, e))).extend(this.screenPointToLocation(new s.P(this._helper._width, e))).extend(this.screenPointToLocation(new s.P(this._helper._width, this._helper._height))).extend(this.screenPointToLocation(new s.P(0, this._helper._height)));
17710
17710
  }
17711
17711
  isPointOnMapSurface(e, r) {
17712
17712
  return r ? r.pointCoordinate(e) != null : e.y > this.height / 2 - Se(this);
@@ -18607,7 +18607,7 @@ uniform ${z} ${V} u_${F};
18607
18607
  F < g && (g = F), F > p && (p = F), H < A && (A = H), H > b && (b = H);
18608
18608
  }
18609
18609
  const z = [M.lng + g, M.lat + A, M.lng + p, M.lat + b];
18610
- return this.isSurfacePointOnScreen([0, 1, 0]) && (z[3] = 90, z[0] = -180, z[2] = 180), this.isSurfacePointOnScreen([0, -1, 0]) && (z[1] = -90, z[0] = -180, z[2] = 180), new nr(z);
18610
+ return this.isSurfacePointOnScreen([0, 1, 0]) && (z[3] = 90, z[0] = -180, z[2] = 180), this.isSurfacePointOnScreen([0, -1, 0]) && (z[1] = -90, z[0] = -180, z[2] = 180), new ar(z);
18611
18611
  }
18612
18612
  getConstrained(e, r) {
18613
18613
  const a = s.ae(e.lat, -85.051129, s.af), l = s.ae(+r, this.minZoom + oi(0, a), this.maxZoom);
@@ -19649,11 +19649,11 @@ uniform ${z} ${V} u_${F};
19649
19649
  const p = [];
19650
19650
  r.availableImages = this._availableImages;
19651
19651
  const g = this._serializedAllLayers(), b = r.layers instanceof Set ? r.layers : Array.isArray(r.layers) ? new Set(r.layers) : null, A = Object.assign(Object.assign({}, r), { layers: b });
19652
- for (const M in this.sourceCaches) r.layers && !l[M] || p.push(Ut(this.sourceCaches[M], this._layers, g, e, A, a, this.map.terrain ? (z, V, F) => this.map.terrain.getElevation(z, V, F) : void 0));
19652
+ for (const M in this.sourceCaches) r.layers && !l[M] || p.push(jt(this.sourceCaches[M], this._layers, g, e, A, a, this.map.terrain ? (z, V, F) => this.map.terrain.getElevation(z, V, F) : void 0));
19653
19653
  return this.placement && p.push(function(M, z, V, F, H, G, ne) {
19654
19654
  const ie = {}, ae = G.queryRenderedSymbols(F), ce = [];
19655
19655
  for (const me of Object.keys(ae).map(Number)) ce.push(ne[me]);
19656
- ce.sort(Lt);
19656
+ ce.sort(It);
19657
19657
  for (const me of ce) {
19658
19658
  const fe = me.featureIndex.lookupSymbolFeatures(ae[me.bucketInstanceId], z, me.bucketIndex, me.sourceLayerIndex, H.filter, H.layers, H.availableImages, M);
19659
19659
  for (const ge in fe) {
@@ -19670,7 +19670,7 @@ uniform ${z} ${V} u_${F};
19670
19670
  }
19671
19671
  }
19672
19672
  return function(me, fe, ge) {
19673
- for (const be in me) for (const ye of me[be]) It(ye, ge[fe[be].source]);
19673
+ for (const be in me) for (const ye of me[be]) Et(ye, ge[fe[be].source]);
19674
19674
  return me;
19675
19675
  }(ie, M, V);
19676
19676
  }(this._layers, g, this.sourceCaches, e, A, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(p);
@@ -20552,7 +20552,7 @@ uniform ${z} ${V} u_${F};
20552
20552
  for (let ie = 0; ie < F.length; ie++) {
20553
20553
  const ae = F.get(ie), ce = ae.hidden || !ae.crossTileID || h.allowVerticalPlacement && !ae.placedOrientation ? null : a[ae.crossTileID];
20554
20554
  if (ce) {
20555
- const me = new s.P(ae.anchorX, ae.anchorY), fe = { getElevation: V, width: l.width, height: l.height, pitchedLabelPlaneMatrix: p, pitchWithMap: r, transform: l, tileAnchorPoint: me, translation: M, unwrappedTileID: z }, ge = r ? Rt(me.x, me.y, fe) : Rr(me.x, me.y, fe), be = sr(l.cameraToCenterDistance, ge.signedDistanceFromCamera);
20555
+ const me = new s.P(ae.anchorX, ae.anchorY), fe = { getElevation: V, width: l.width, height: l.height, pitchedLabelPlaneMatrix: p, pitchWithMap: r, transform: l, tileAnchorPoint: me, translation: M, unwrappedTileID: z }, ge = r ? Rt(me.x, me.y, fe) : Rr(me.x, me.y, fe), be = nr(l.cameraToCenterDistance, ge.signedDistanceFromCamera);
20556
20556
  let ye = s.am(h.textSizeData, b, ae) * be / s.ay;
20557
20557
  r && (ye *= h.tilePixelRatio / g);
20558
20558
  const { width: Pe, height: qe, anchor: ze, textOffset: De, textBoxScale: Be } = ce, et = ep(ze, Pe, qe, De, Be, ye), Ye = l.getPitchedTextCorrection(me.x + M[0], me.y + M[1], z), Ke = tp(ge.point, fe, e, et, -l.bearingInRadians, Ye), ut = h.allowVerticalPlacement && ae.placedOrientation === s.al.vertical ? Math.PI / 2 : 0;
@@ -20597,10 +20597,10 @@ uniform ${z} ${V} u_${F};
20597
20597
  }
20598
20598
  const yi = s.az(De, 1, h.transform.zoom), er = gt(ie, h.transform, yi), jn = s.K();
20599
20599
  s.an(jn, er);
20600
- const bn = Et(ae, ie, h.transform, yi), Nn = s.aA(ne, De, p, g), ys = ne.getProjectionData({ overscaledTileID: ze, applyGlobeMatrix: !F, applyTerrainMatrix: !0 }), Ro = ye && Be.hasTextData(), Wn = r.layout.get("icon-text-fit") !== "none" && Ro && Be.hasIconData();
20600
+ const bn = Mt(ae, ie, h.transform, yi), Nn = s.aA(ne, De, p, g), ys = ne.getProjectionData({ overscaledTileID: ze, applyGlobeMatrix: !F, applyTerrainMatrix: !0 }), Ro = ye && Be.hasTextData(), Wn = r.layout.get("icon-text-fit") !== "none" && Ro && Be.hasIconData();
20601
20601
  if (ce) {
20602
20602
  const Jr = h.style.map.terrain ? (Li, _r) => h.style.map.terrain.getElevation(ze, Li, _r) : null, Xr = r.layout.get("text-rotation-alignment") === "map";
20603
- Yt(Be, h, l, er, jn, ae, M, Xr, ze.toUnwrapped(), ne.width, ne.height, Nn, Jr);
20603
+ Qt(Be, h, l, er, jn, ae, M, Xr, ze.toUnwrapped(), ne.width, ne.height, Nn, Jr);
20604
20604
  }
20605
20605
  const _s = l && ye || Wn, Zi = ce || _s ? _o : ae ? er : h.transform.clipSpaceToPixelsMatrix, Hn = Ke && r.paint.get(l ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
20606
20606
  let Cn;
@@ -21130,7 +21130,7 @@ uniform ${z} ${V} u_${F};
21130
21130
  }(e, r, a, l, p) : s.ca(a) ? function(g, b, A, M, z) {
21131
21131
  if (g.renderPass !== "translucent" || A.paint.get("raster-opacity") === 0 || !M.length) return;
21132
21132
  const { isRenderingToTexture: V } = z, F = b.getSource(), H = g.style.projection.useSubdivision;
21133
- if (F instanceof Xt) ba(g, b, A, M, null, !1, !1, F.tileCoords, F.flippedWindingOrder, V);
21133
+ if (F instanceof Yt) ba(g, b, A, M, null, !1, !1, F.tileCoords, F.flippedWindingOrder, V);
21134
21134
  else if (H) {
21135
21135
  const [G, ne, ie] = g.stencilConfigForOverlapTwoPass(M);
21136
21136
  ba(g, b, A, ie, G, !1, !0, So, !1, V), ba(g, b, A, ie, ne, !0, !0, So, !1, V);
@@ -22490,7 +22490,7 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
22490
22490
  return this.jumpTo({ roll: e }, r), this;
22491
22491
  }
22492
22492
  cameraForBounds(e, r) {
22493
- e = nr.convert(e).adjustAntiMeridian();
22493
+ e = ar.convert(e).adjustAntiMeridian();
22494
22494
  const a = r && r.bearing || 0;
22495
22495
  return this._cameraForBoxAndBearing(e.getNorthWest(), e.getSouthEast(), a, r);
22496
22496
  }
@@ -22502,7 +22502,7 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
22502
22502
  }
22503
22503
  const g = s.e(p, l.padding);
22504
22504
  l.padding = g;
22505
- const b = this.transform, A = new nr(e, r);
22505
+ const b = this.transform, A = new ar(e, r);
22506
22506
  return this.cameraHelper.cameraForBoxAndBearing(l, g, A, a, b);
22507
22507
  }
22508
22508
  fitBounds(e, r, a) {
@@ -22991,7 +22991,7 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
22991
22991
  this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.sourceCache.getRenderableTiles(), this._renderableLayerIds = e._order.filter((a) => !e._layers[a].isHidden(r)), this._coordsAscending = {};
22992
22992
  for (const a in e.sourceCaches) {
22993
22993
  this._coordsAscending[a] = {};
22994
- const l = e.sourceCaches[a].getVisibleCoordinates(), p = e.sourceCaches[a].getSource(), g = p instanceof Xt ? p.terrainTileRanges : null;
22994
+ const l = e.sourceCaches[a].getVisibleCoordinates(), p = e.sourceCaches[a].getSource(), g = p instanceof Yt ? p.terrainTileRanges : null;
22995
22995
  for (const b of l) {
22996
22996
  const A = this.terrain.sourceCache.getTerrainCoords(b, g);
22997
22997
  for (const M in A) this._coordsAscending[a][M] || (this._coordsAscending[a][M] = []), this._coordsAscending[a][M].push(A[M]);
@@ -23365,7 +23365,7 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
23365
23365
  this.options.showUserLocation && this._watchState !== "OFF" && this._updateMarker(e), this.options.trackUserLocation && this._watchState !== "ACTIVE_LOCK" || this._updateCamera(e), this.options.showUserLocation && this._dotElement.classList.remove("maplibregl-user-location-dot-stale"), this.fire(new s.l("geolocate", e)), this._finish();
23366
23366
  }
23367
23367
  }, this._updateCamera = (e) => {
23368
- const r = new s.Q(e.coords.longitude, e.coords.latitude), a = e.coords.accuracy, l = this._map.getBearing(), p = s.e({ bearing: l }, this.options.fitBoundsOptions), g = nr.fromLngLat(r, a);
23368
+ const r = new s.Q(e.coords.longitude, e.coords.latitude), a = e.coords.accuracy, l = this._map.getBearing(), p = s.e({ bearing: l }, this.options.fitBoundsOptions), g = ar.fromLngLat(r, a);
23369
23369
  this._map.fitBounds(g, p, { geolocateSource: !0 });
23370
23370
  }, this._updateMarker = (e) => {
23371
23371
  if (e) {
@@ -23507,7 +23507,7 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
23507
23507
  onRemove() {
23508
23508
  T.remove(this._container), this._map.off("styledata", this._updateGlobeIcon), this._globeButton.removeEventListener("click", this._toggleProjection), this._map = void 0;
23509
23509
  }
23510
- }, v.Hash = El, v.ImageSource = Xt, v.KeyboardHandler = Hs, v.LngLatBounds = nr, v.LogoControl = Io, v.Map = class extends ap {
23510
+ }, v.Hash = El, v.ImageSource = Yt, v.KeyboardHandler = Hs, v.LngLatBounds = ar, v.LogoControl = Io, v.Map = class extends ap {
23511
23511
  constructor(h) {
23512
23512
  var e, r;
23513
23513
  s.cn.mark(s.co.create);
@@ -23616,7 +23616,7 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
23616
23616
  return this.transform.getMaxBounds();
23617
23617
  }
23618
23618
  setMaxBounds(h) {
23619
- return this.transform.setMaxBounds(nr.convert(h)), this._update();
23619
+ return this.transform.setMaxBounds(ar.convert(h)), this._update();
23620
23620
  }
23621
23621
  setMinZoom(h) {
23622
23622
  if ((h = h ?? -2) >= -2 && h <= this.transform.maxZoom) return this.transform.setMinZoom(h), this._update(), this.getZoom() < h && this.setZoom(h), this;
@@ -24264,7 +24264,7 @@ ${H.shaderPreludeCode.vertexSource}`, define: H.shaderDefine }, defaultProjectio
24264
24264
  onRemove() {
24265
24265
  T.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
24266
24266
  }
24267
- }, v.TwoFingersTouchPitchHandler = Ia, v.TwoFingersTouchRotateHandler = at, v.TwoFingersTouchZoomHandler = Ws, v.TwoFingersTouchZoomRotateHandler = Vl, v.VectorTileSource = ji, v.VideoSource = Qt, v.addSourceType = (h, e) => s._(void 0, void 0, void 0, function* () {
24267
+ }, v.TwoFingersTouchPitchHandler = Ia, v.TwoFingersTouchRotateHandler = at, v.TwoFingersTouchZoomHandler = Ws, v.TwoFingersTouchZoomRotateHandler = Vl, v.VectorTileSource = ji, v.VideoSource = Xt, v.addSourceType = (h, e) => s._(void 0, void 0, void 0, function* () {
24268
24268
  if (Mr(h)) throw new Error(`A source type called "${h}" already exists.`);
24269
24269
  ((r, a) => {
24270
24270
  Kr[r] = a;
@@ -24458,7 +24458,7 @@ const wd = /* @__PURE__ */ xy(Gx), rr = (u, d) => {
24458
24458
  placement: "top",
24459
24459
  key: I.id
24460
24460
  }, {
24461
- reference: or(() => [
24461
+ reference: sr(() => [
24462
24462
  se("div", {
24463
24463
  class: zi([
24464
24464
  "w-14 h-14 flex items-center justify-center bg-white rounded-xl shadow-2xs cursor-pointer transition-all border-4",
@@ -24473,7 +24473,7 @@ const wd = /* @__PURE__ */ xy(Gx), rr = (u, d) => {
24473
24473
  }, null, 10, sb)
24474
24474
  ], 10, nb)
24475
24475
  ]),
24476
- default: or(() => [
24476
+ default: sr(() => [
24477
24477
  hr(ot(I.title) + " ", 1)
24478
24478
  ]),
24479
24479
  _: 2
@@ -25055,12 +25055,12 @@ const xb = { class: "w-full flex flex-col bg-white border border-stone-200 shado
25055
25055
  key: 0,
25056
25056
  placement: "bottom"
25057
25057
  }, {
25058
- reference: or(() => [
25058
+ reference: sr(() => [
25059
25059
  tr(s, {
25060
25060
  trigger: "hover",
25061
25061
  placement: "right"
25062
25062
  }, {
25063
- reference: or(() => v[0] || (v[0] = [
25063
+ reference: sr(() => v[0] || (v[0] = [
25064
25064
  se("div", { class: "flex items-center justify-center h-8 w-8 transition-colors rounded-full hover:bg-gray-100 cursor-pointer" }, [
25065
25065
  se("svg", {
25066
25066
  width: "16",
@@ -25090,13 +25090,13 @@ const xb = { class: "w-full flex flex-col bg-white border border-stone-200 shado
25090
25090
  ])
25091
25091
  ], -1)
25092
25092
  ])),
25093
- default: or(() => [
25093
+ default: sr(() => [
25094
25094
  v[1] || (v[1] = hr(" Перейти на карту "))
25095
25095
  ]),
25096
25096
  _: 1
25097
25097
  })
25098
25098
  ]),
25099
- default: or(() => [
25099
+ default: sr(() => [
25100
25100
  se("div", Fb, [
25101
25101
  (ve(!0), Ae(ft, null, Ot(S.value, (O) => (ve(), Ae("div", {
25102
25102
  key: O.label
@@ -25106,7 +25106,7 @@ const xb = { class: "w-full flex flex-col bg-white border border-stone-200 shado
25106
25106
  to: O.url,
25107
25107
  class: "text-sm text-gray-800 dark:text-neutral-200 hover:bg-gray-100 hover:text-blue-600 transition-colors rounded px-2 py-1 block"
25108
25108
  }, {
25109
- default: or(() => [
25109
+ default: sr(() => [
25110
25110
  hr(ot(O.label), 1)
25111
25111
  ]),
25112
25112
  _: 2
@@ -25269,7 +25269,7 @@ const xb = { class: "w-full flex flex-col bg-white border border-stone-200 shado
25269
25269
  ])),
25270
25270
  (Y = E.value) != null && Y.cardInterface && C.value ? (ve(), Ae("div", o1, [
25271
25271
  se("a", {
25272
- href: `card/${E.value.cardInterface}/${E.value.id}`,
25272
+ href: `/card/${E.value.cardInterface}/${E.value.id}`,
25273
25273
  target: "_blank",
25274
25274
  class: "w-full !cursor-pointer text-center gap-2 px-3 py-1.5 bg-blue-600 text-white rounded hover:bg-blue-700 transition text-sm font-medium"
25275
25275
  }, " Перейти в реєстр ", 8, a1)
@@ -26024,13 +26024,13 @@ function J2(u, d, y, x, S, C) {
26024
26024
  se("div", T2, [
26025
26025
  se("div", C2, [
26026
26026
  tr(v, { placement: "bottom" }, {
26027
- reference: or(() => [
26027
+ reference: sr(() => [
26028
26028
  se("div", {
26029
26029
  class: "text-sm text-gray-600 hover:text-gray-800 transition-colors px-2 py-1 rounded hover:bg-gray-100 cursor-pointer",
26030
26030
  onClick: (oe) => C.updateLayerOpacity(k)
26031
26031
  }, ot(k.opacity || 100) + "% ", 9, M2)
26032
26032
  ]),
26033
- default: or(() => [
26033
+ default: sr(() => [
26034
26034
  se("div", P2, [
26035
26035
  d[11] || (d[11] = se("label", { class: "text-gray-600 whitespace-nowrap" }, "Прозорість:", -1)),
26036
26036
  Yn(se("input", {
@@ -26052,12 +26052,12 @@ function J2(u, d, y, x, S, C) {
26052
26052
  ]),
26053
26053
  se("div", L2, [
26054
26054
  tr(v, { placement: "bottom" }, {
26055
- reference: or(() => [
26055
+ reference: sr(() => [
26056
26056
  se("div", B2, [
26057
26057
  tr(s)
26058
26058
  ])
26059
26059
  ]),
26060
- default: or(() => [
26060
+ default: sr(() => [
26061
26061
  se("div", R2, [
26062
26062
  (ve(!0), Ae(ft, null, Ot(C.popoverActions(k), (oe, Te) => (ve(), Ae(ft, { key: Te }, [
26063
26063
  oe.divider ? (ve(), Ae("hr", z2)) : (ve(), Ae("button", {
@@ -29760,13 +29760,13 @@ const Lw = {
29760
29760
  name: "filter",
29761
29761
  onFilterChange: D
29762
29762
  }, {
29763
- button: or(({ visible: T }) => [
29763
+ button: sr(({ visible: T }) => [
29764
29764
  tr(O, {
29765
29765
  teleport: "body",
29766
29766
  trigger: "hover",
29767
29767
  placement: "bottom"
29768
29768
  }, {
29769
- reference: or(() => [
29769
+ reference: sr(() => [
29770
29770
  se("button", Ow, [
29771
29771
  se("div", Fw, [
29772
29772
  I[0] || (I[0] = se("svg", {
@@ -29800,7 +29800,7 @@ const Lw = {
29800
29800
  ])
29801
29801
  ])
29802
29802
  ]),
29803
- default: or(() => [
29803
+ default: sr(() => [
29804
29804
  I[1] || (I[1] = hr(" Відкрити бокову панель "))
29805
29805
  ]),
29806
29806
  _: 1
@@ -29986,13 +29986,13 @@ function cS(u, d, y, x, S, C) {
29986
29986
  teleport: "body",
29987
29987
  class: "flex"
29988
29988
  }, {
29989
- reference: or(() => [
29989
+ reference: sr(() => [
29990
29990
  tr(v, {
29991
29991
  onClick: C.homeZoom,
29992
29992
  class: "w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"
29993
29993
  }, null, 8, ["onClick"])
29994
29994
  ]),
29995
- default: or(() => [
29995
+ default: sr(() => [
29996
29996
  d[0] || (d[0] = se("div", null, "Повернутися до початкових налаштувань", -1))
29997
29997
  ]),
29998
29998
  _: 1
@@ -30158,13 +30158,13 @@ function gS(u, d, y, x, S, C) {
30158
30158
  placement: "left",
30159
30159
  teleport: "body"
30160
30160
  }, {
30161
- reference: or(() => [
30161
+ reference: sr(() => [
30162
30162
  tr(v, {
30163
30163
  onClick: C.togglePrint,
30164
30164
  class: zi([C.modalButtonClasses, "print-button w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"])
30165
30165
  }, null, 8, ["onClick", "class"])
30166
30166
  ]),
30167
- default: or(() => [
30167
+ default: sr(() => [
30168
30168
  d[0] || (d[0] = se("div", null, "Надрукувати", -1))
30169
30169
  ]),
30170
30170
  _: 1
@@ -30213,13 +30213,13 @@ function vS(u, d, y, x, S, C) {
30213
30213
  teleport: "body",
30214
30214
  class: "flex"
30215
30215
  }, {
30216
- reference: or(() => [
30216
+ reference: sr(() => [
30217
30217
  se("div", {
30218
30218
  class: "font-light w-full h-[44px] p-[9px] [transition:.3s] hover:[transition:.3s] text-[19px] hover:bg-[#DBEAFE] flex cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]",
30219
30219
  onClick: d[0] || (d[0] = (...s) => C.toggleView && C.toggleView(...s))
30220
30220
  }, ot(S.is3D ? "2D" : "3D"), 1)
30221
30221
  ]),
30222
- default: or(() => [
30222
+ default: sr(() => [
30223
30223
  d[1] || (d[1] = se("div", null, "Перемикач виду", -1))
30224
30224
  ]),
30225
30225
  _: 1
@@ -30433,13 +30433,13 @@ function qS(u, d, y, x, S, C) {
30433
30433
  teleport: "body",
30434
30434
  class: "flex"
30435
30435
  }, {
30436
- reference: or(() => [
30436
+ reference: sr(() => [
30437
30437
  tr(s, {
30438
30438
  onClick: C.togleGeolocation,
30439
30439
  class: zi([C.modalButtonClasses, "w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"])
30440
30440
  }, null, 8, ["onClick", "class"])
30441
30441
  ]),
30442
- default: or(() => [
30442
+ default: sr(() => [
30443
30443
  d[7] || (d[7] = se("div", null, "Дізнатися геолокацію", -1))
30444
30444
  ]),
30445
30445
  _: 1
@@ -31190,7 +31190,7 @@ function gA(u, d, y, x, S, C) {
31190
31190
  trigger: "hover",
31191
31191
  teleport: "body"
31192
31192
  }, {
31193
- reference: or(() => [
31193
+ reference: sr(() => [
31194
31194
  se("button", {
31195
31195
  type: "button",
31196
31196
  class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",
@@ -31199,7 +31199,7 @@ function gA(u, d, y, x, S, C) {
31199
31199
  tr(v, { class: "cursor-pointer" })
31200
31200
  ])
31201
31201
  ]),
31202
- default: or(() => [
31202
+ default: sr(() => [
31203
31203
  d[2] || (d[2] = hr(" Приховати панель "))
31204
31204
  ]),
31205
31205
  _: 1
@@ -31238,13 +31238,13 @@ function gA(u, d, y, x, S, C) {
31238
31238
  teleport: "body",
31239
31239
  class: "flex"
31240
31240
  }, {
31241
- reference: or(() => [
31241
+ reference: sr(() => [
31242
31242
  tr(L, {
31243
31243
  class: zi([C.buttonClasses, "w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"]),
31244
31244
  onClick: C.toggleMeasure
31245
31245
  }, null, 8, ["class", "onClick"])
31246
31246
  ]),
31247
- default: or(() => [
31247
+ default: sr(() => [
31248
31248
  d[6] || (d[6] = se("div", null, "Виміряти довжину", -1))
31249
31249
  ]),
31250
31250
  _: 1
@@ -31536,7 +31536,7 @@ function MA(u, d, y, x, S, C) {
31536
31536
  trigger: "hover",
31537
31537
  teleport: "body"
31538
31538
  }, {
31539
- reference: or(() => [
31539
+ reference: sr(() => [
31540
31540
  se("button", {
31541
31541
  type: "button",
31542
31542
  class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",
@@ -31545,7 +31545,7 @@ function MA(u, d, y, x, S, C) {
31545
31545
  tr(v, { class: "cursor-pointer" })
31546
31546
  ])
31547
31547
  ]),
31548
- default: or(() => [
31548
+ default: sr(() => [
31549
31549
  d[1] || (d[1] = hr(" Приховати панель "))
31550
31550
  ]),
31551
31551
  _: 1
@@ -31576,13 +31576,13 @@ function MA(u, d, y, x, S, C) {
31576
31576
  teleport: "body",
31577
31577
  class: "flex"
31578
31578
  }, {
31579
- reference: or(() => [
31579
+ reference: sr(() => [
31580
31580
  tr(D, {
31581
31581
  onClick: C.toggleMeasure,
31582
31582
  class: zi([C.modalButtonClasses, "w-full h-auto p-[9px] [transition:.3s] hover:[transition:.3s] text-[24px] hover:bg-[#DBEAFE] flex font-normal cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]"])
31583
31583
  }, null, 8, ["onClick", "class"])
31584
31584
  ]),
31585
- default: or(() => [
31585
+ default: sr(() => [
31586
31586
  d[4] || (d[4] = se("div", null, "Виміряти площу", -1))
31587
31587
  ]),
31588
31588
  _: 1
@@ -31746,25 +31746,25 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31746
31746
  } catch (At) {
31747
31747
  return console.error("Error processing template:", At), $e;
31748
31748
  }
31749
- }, k = ($e, rt, pt, At, ct, kt) => {
31750
- const Ut = T($e, At, ct), Lt = rt ? T(rt, At, ct) : "";
31749
+ }, k = ($e, rt, pt, At, ct) => {
31750
+ const kt = T($e, At, ct), jt = rt ? T(rt, At, ct) : "";
31751
31751
  let It = "";
31752
- return pt != null && pt.length && (It = pt.map((ar) => {
31753
- const nr = T(ar.value, At, ct);
31752
+ return pt != null && pt.length && (It = pt.map((Et) => {
31753
+ const or = T(Et.value, At, ct);
31754
31754
  return `
31755
31755
  <tr class="flex justify-between items-center">
31756
- <td class="font-medium mr-1.5 flex items-center">${ar.label}</td>
31757
- <td class="text-right">${nr}</td>
31756
+ <td class="font-medium mr-1.5 flex items-center">${Et.label}</td>
31757
+ <td class="text-right">${or}</td>
31758
31758
  </tr>
31759
31759
  `;
31760
31760
  }).join("")), `
31761
- <div class="absolute min-w-28 max-w-[300px] bg-white/90 border border-gray-200 rounded-lg shadow-md text-gray-800 pointer-events-none" style="left: ${kt.x + 10}px; top: ${kt.y}px">
31762
- ${Ut ? `
31761
+ <div class="absolute min-w-28 max-w-[300px] bg-white/90 border border-gray-200 rounded-lg shadow-md text-gray-800 pointer-events-none">
31762
+ ${kt ? `
31763
31763
  <div class="font-semibold text-sm border-b border-solid border-gray-200 text-gray-800 rounded-t-lg px-2 py-1">
31764
- <h3>${Ut}</h3>
31764
+ <h3>${kt}</h3>
31765
31765
  </div>
31766
31766
  ` : ""}
31767
- ${rt ? `<div class="text-sm px-2 py-1 break-words">${Lt}</div>` : ""}
31767
+ ${rt ? `<div class="text-sm px-2 py-1 break-words">${jt}</div>` : ""}
31768
31768
  ${pt != null && pt.length && !rt ? `
31769
31769
  <div class="text-xs px-2 py-0.5 text-gray-500">
31770
31770
  <table class="w-full">
@@ -31804,7 +31804,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31804
31804
  window.history.replaceState({}, "", kt);
31805
31805
  }
31806
31806
  const Y = () => {
31807
- var kt, Ut, Lt;
31807
+ var kt, jt, It;
31808
31808
  if (!O.value || !O.value.map) return;
31809
31809
  const $e = {
31810
31810
  version: 8,
@@ -31814,8 +31814,8 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31814
31814
  };
31815
31815
  let rt = O.value.map.center, pt = O.value.map.zoom, At = O.value.map.bearing || 0, ct = O.value.map.pitch || 0;
31816
31816
  if (O.value.history) {
31817
- const It = oe();
31818
- It.center && (rt = It.center), It.zoom !== null && (pt = It.zoom), It.bearing !== null && (At = It.bearing), It.pitch !== null && (ct = It.pitch);
31817
+ const Et = oe();
31818
+ Et.center && (rt = Et.center), Et.zoom !== null && (pt = Et.zoom), Et.bearing !== null && (At = Et.bearing), Et.pitch !== null && (ct = Et.pitch);
31819
31819
  }
31820
31820
  if (y.value = new wd.Map({
31821
31821
  container: "maplibre-demo-map",
@@ -31825,23 +31825,23 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31825
31825
  bearing: At,
31826
31826
  pitch: ct,
31827
31827
  maxBounds: [18.0856083513, 40.3614785833, 58.0807890155, 56.3350745713]
31828
- }), (Lt = (Ut = (kt = O == null ? void 0 : O.value) == null ? void 0 : kt.interactions) == null ? void 0 : Ut.navigation) != null && Lt.enabled) {
31829
- const It = new wd.NavigationControl({
31828
+ }), (It = (jt = (kt = O == null ? void 0 : O.value) == null ? void 0 : kt.interactions) == null ? void 0 : jt.navigation) != null && It.enabled) {
31829
+ const Et = new wd.NavigationControl({
31830
31830
  showCompass: !0,
31831
31831
  showZoom: !0,
31832
31832
  visualizePitch: !0
31833
31833
  });
31834
- y.value.addControl(It, "top-right");
31834
+ y.value.addControl(Et, "top-right");
31835
31835
  }
31836
31836
  y.value.on("load", async () => {
31837
31837
  var wr, ji, ni, On, Fn;
31838
31838
  x.value = !0, await Mw(y.value);
31839
- const It = oe(), ar = It.center && It.zoom !== null;
31840
- if ((wr = O.value.map) != null && wr.bbox && !ar) {
31841
- const [Xt, Qt, Ct, Kr] = O.value.map.bbox;
31839
+ const Et = oe(), or = Et.center && Et.zoom !== null;
31840
+ if ((wr = O.value.map) != null && wr.bbox && !or) {
31841
+ const [Yt, Xt, Ct, Kr] = O.value.map.bbox;
31842
31842
  y.value.fitBounds(
31843
31843
  [
31844
- [Xt, Qt],
31844
+ [Yt, Xt],
31845
31845
  [Ct, Kr]
31846
31846
  ],
31847
31847
  {
@@ -31851,14 +31851,14 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31851
31851
  );
31852
31852
  }
31853
31853
  if (await (async () => {
31854
- var Qt, Ct, Kr, Mr, Sr;
31855
- const Xt = ((Sr = (Mr = (Kr = (Ct = (Qt = O.value) == null ? void 0 : Qt.widgets) == null ? void 0 : Ct.find((Nr) => Nr.type === "layers")) == null ? void 0 : Kr.config) == null ? void 0 : Mr.layers) == null ? void 0 : Sr.filter(
31854
+ var Xt, Ct, Kr, Mr, Sr;
31855
+ const Yt = ((Sr = (Mr = (Kr = (Ct = (Xt = O.value) == null ? void 0 : Xt.widgets) == null ? void 0 : Ct.find((Nr) => Nr.type === "layers")) == null ? void 0 : Kr.config) == null ? void 0 : Mr.layers) == null ? void 0 : Sr.filter(
31856
31856
  (Nr) => {
31857
31857
  var dr;
31858
31858
  return ((dr = Nr.style) == null ? void 0 : dr.attrType) === "icon-by-attribute";
31859
31859
  }
31860
31860
  )) || [];
31861
- for (const Nr of Xt) {
31861
+ for (const Nr of Yt) {
31862
31862
  const { rules: dr, default_icon: di, icon_base_url: fi } = Nr.style, bi = [...dr.map((Yr) => Yr.icon), di].filter(
31863
31863
  Boolean
31864
31864
  );
@@ -31870,10 +31870,10 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31870
31870
  console.error(`Failed to load icon: ${Yr}`, Vr);
31871
31871
  }
31872
31872
  }
31873
- })(), (On = (ni = (ji = O.value) == null ? void 0 : ji.interactions) == null ? void 0 : ni.hover) != null && On.enabled && (y.value.on("mousemove", (Xt) => {
31873
+ })(), (On = (ni = (ji = O.value) == null ? void 0 : ji.interactions) == null ? void 0 : ni.hover) != null && On.enabled && (y.value.on("mousemove", (Yt) => {
31874
31874
  var dr, di, fi, bi, Yr, Vr, qr, wi, Se, X;
31875
- const Qt = y.value.queryRenderedFeatures(Xt.point);
31876
- if (y.value && y.value.getCanvas && (y.value.getCanvas().style.cursor = Qt.length ? "pointer" : ""), !Qt.length) {
31875
+ const Xt = y.value.queryRenderedFeatures(Yt.point);
31876
+ if (y.value && y.value.getCanvas && (y.value.getCanvas().style.cursor = Xt.length ? "pointer" : ""), !Xt.length) {
31877
31877
  if (v.value) {
31878
31878
  const K = (dr = y.value.getSource(
31879
31879
  v.value.source
@@ -31888,7 +31888,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31888
31888
  S && (S.remove(), S = null);
31889
31889
  return;
31890
31890
  }
31891
- const Ct = Qt[0];
31891
+ const Ct = Xt[0];
31892
31892
  if (!v.value || v.value.id !== Ct.id || v.value.source !== Ct.layer.source) {
31893
31893
  if (v.value) {
31894
31894
  const te = (di = y.value.getSource(
@@ -31917,12 +31917,12 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31917
31917
  )), (Se = (wi = O.value) == null ? void 0 : wi.widgets) == null ? void 0 : Se.find(
31918
31918
  (K) => K.type === "catalog"
31919
31919
  )) {
31920
- if (!Qt.length) {
31920
+ if (!Xt.length) {
31921
31921
  S && (S.style.display = "none");
31922
31922
  return;
31923
31923
  }
31924
- const K = Qt[0];
31925
- S = Ui(K, Xt, S);
31924
+ const K = Xt[0];
31925
+ S = Ui(K, Yt, S);
31926
31926
  return;
31927
31927
  }
31928
31928
  if (!Sr && Mr && Mr.config.layer.id === Ct.layer.source && (Sr = Mr.config.layer), (X = Sr == null ? void 0 : Sr.style) != null && X.popup) {
@@ -31930,24 +31930,21 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31930
31930
  let te = K.title, he = "";
31931
31931
  K.mode === "markdown" ? he = Array.isArray(K.content) ? K.content.join(`
31932
31932
 
31933
- `) : "" : he = Array.isArray(K.content) ? K.content.join("") : "", S || (S = document.createElement("div"), y.value.getContainer().appendChild(S));
31934
- const xe = y.value.project(Xt.lngLat);
31935
- S.innerHTML = k(
31933
+ `) : "" : he = Array.isArray(K.content) ? K.content.join("") : "", S || (S = document.createElement("div"), y.value.getContainer().appendChild(S)), S.innerHTML = k(
31936
31934
  te,
31937
31935
  he,
31938
31936
  K.fields,
31939
31937
  Ct.properties,
31940
- K.mode,
31941
- xe
31942
- ), es(S, Xt);
31938
+ K.mode
31939
+ ), es(S, Yt);
31943
31940
  }
31944
31941
  }), y.value.on("mouseleave", () => {
31945
- var Xt;
31942
+ var Yt;
31946
31943
  if (S && (S.remove(), S = null), v.value) {
31947
- const Qt = (Xt = y.value.getSource(
31944
+ const Xt = (Yt = y.value.getSource(
31948
31945
  v.value.source
31949
- )) == null ? void 0 : Xt.type;
31950
- v.value.source, v.value.id, Qt === "vector" && v.value.source, Qe(
31946
+ )) == null ? void 0 : Yt.type;
31947
+ v.value.source, v.value.id, Xt === "vector" && v.value.source, Qe(
31951
31948
  y.value,
31952
31949
  v.value.source,
31953
31950
  v.value.id,
@@ -31955,11 +31952,11 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31955
31952
  ), v.value = null;
31956
31953
  }
31957
31954
  y.value && y.value.getCanvas && (y.value.getCanvas().style.cursor = "");
31958
- })), y.value.on("click", async (Xt) => {
31955
+ })), y.value.on("click", async (Yt) => {
31959
31956
  var di, fi, bi, Yr, Vr, qr, wi;
31960
31957
  if (["length", "area", "print"].includes(I.value)) return;
31961
- const Qt = y.value.queryRenderedFeatures(Xt.point);
31962
- if (!Qt.length) return;
31958
+ const Xt = y.value.queryRenderedFeatures(Yt.point);
31959
+ if (!Xt.length) return;
31963
31960
  s.value.forEach((Se) => {
31964
31961
  var K;
31965
31962
  const X = (K = y.value.getSource(Se.source)) == null ? void 0 : K.type;
@@ -31967,7 +31964,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31967
31964
  selected: !1
31968
31965
  });
31969
31966
  }), s.value = [];
31970
- const Ct = Qt[0], Kr = (di = y.value.getSource(Ct.layer.source)) == null ? void 0 : di.type;
31967
+ const Ct = Xt[0], Kr = (di = y.value.getSource(Ct.layer.source)) == null ? void 0 : di.type;
31971
31968
  Ct.layer.source, Ct.id, Kr === "vector" && Ct.layer.source, Qe(y.value, Ct.layer.source, Ct.id, {
31972
31969
  selected: !0
31973
31970
  }), s.value.push({ source: Ct.layer.source, id: Ct.id });
@@ -31985,15 +31982,15 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
31985
31982
  id: Ct.properties.id,
31986
31983
  title: (dr == null ? void 0 : dr.title) || ""
31987
31984
  };
31988
- }), y.value.on("dblclick", (Xt) => {
31985
+ }), y.value.on("dblclick", (Yt) => {
31989
31986
  var Kr, Mr, Sr;
31990
31987
  if (["length", "area", "print"].includes(I.value)) return;
31991
- Fr([Xt.lngLat.lng, Xt.lngLat.lat]);
31992
- const Qt = (Mr = (Kr = O.value) == null ? void 0 : Kr.widgets) == null ? void 0 : Mr.find(
31988
+ Fr([Yt.lngLat.lng, Yt.lngLat.lat]);
31989
+ const Xt = (Mr = (Kr = O.value) == null ? void 0 : Kr.widgets) == null ? void 0 : Mr.find(
31993
31990
  (Nr) => Nr.type === "layers"
31994
31991
  );
31995
31992
  let Ct = null;
31996
- (Sr = Qt == null ? void 0 : Qt.config) != null && Sr.layers && (Ct = Qt.config.layers.find(
31993
+ (Sr = Xt == null ? void 0 : Xt.config) != null && Sr.layers && (Ct = Xt.config.layers.find(
31997
31994
  (Nr) => Nr.visible !== !1 && ["tms", "wms", "raster"].includes(
31998
31995
  (Nr.service_type || Nr.service || "").toLowerCase()
31999
31996
  )
@@ -32004,16 +32001,16 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32004
32001
  title: (Ct == null ? void 0 : Ct.title) || ""
32005
32002
  };
32006
32003
  }), y.value.resize(), (Fn = O == null ? void 0 : O.value) != null && Fn.history) {
32007
- const Xt = () => {
32008
- const Qt = y.value.getCenter();
32004
+ const Yt = () => {
32005
+ const Xt = y.value.getCenter();
32009
32006
  Te({
32010
- center: [Qt.lng, Qt.lat],
32007
+ center: [Xt.lng, Xt.lat],
32011
32008
  zoom: y.value.getZoom(),
32012
32009
  bearing: y.value.getBearing(),
32013
32010
  pitch: y.value.getPitch()
32014
32011
  });
32015
32012
  };
32016
- y.value.on("moveend", Xt), y.value.on("rotate", Xt), y.value.on("pitch", Xt);
32013
+ y.value.on("moveend", Yt), y.value.on("rotate", Yt), y.value.on("pitch", Yt);
32017
32014
  }
32018
32015
  });
32019
32016
  }, pe = () => {
@@ -32069,9 +32066,9 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32069
32066
  };
32070
32067
  function Qe($e, rt, pt, At) {
32071
32068
  $e.getStyle().layers.filter((kt) => kt.source === rt).forEach((kt) => {
32072
- var Lt;
32073
- const Ut = { source: rt, id: pt };
32074
- ((Lt = $e.getSource(rt)) == null ? void 0 : Lt.type) === "vector" && kt["source-layer"] && (Ut.sourceLayer = kt["source-layer"]), $e.setFeatureState(Ut, At);
32069
+ var It;
32070
+ const jt = { source: rt, id: pt };
32071
+ ((It = $e.getSource(rt)) == null ? void 0 : It.type) === "vector" && kt["source-layer"] && (jt.sourceLayer = kt["source-layer"]), $e.setFeatureState(jt, At);
32075
32072
  });
32076
32073
  }
32077
32074
  const st = lr(() => !!O.value && !!O.value.interactions && !!O.value.interactions.navigation && O.value.interactions.navigation.enabled), Tt = lr(() => !!O.value && Array.isArray(O.value.tools) && O.value.tools.length > 0), Bt = lr(() => st.value || Tt.value ? "40px" : "20px");
@@ -32079,28 +32076,28 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32079
32076
  y.value && (y.value.getLayer("layer-with-pulsing-dot") && y.value.removeLayer("layer-with-pulsing-dot"), y.value.getSource("dot-point") && y.value.removeSource("dot-point"), y.value.hasImage && y.value.hasImage("pulsing-dot") && y.value.removeImage("pulsing-dot"));
32080
32077
  }
32081
32078
  function Fr($e) {
32082
- var At, ct, kt, Ut;
32079
+ var At, ct, kt, jt;
32083
32080
  Er();
32084
32081
  const rt = 80, pt = {
32085
32082
  width: rt,
32086
32083
  height: rt,
32087
32084
  data: new Uint8Array(rt * rt * 4),
32088
32085
  onAdd() {
32089
- const Lt = document.createElement("canvas");
32090
- Lt.width = this.width, Lt.height = this.height, this.context = Lt.getContext("2d", { willReadFrequently: !0 });
32086
+ const It = document.createElement("canvas");
32087
+ It.width = this.width, It.height = this.height, this.context = It.getContext("2d", { willReadFrequently: !0 });
32091
32088
  },
32092
32089
  render() {
32093
32090
  var ni;
32094
- const It = performance.now() % 2e3 / 2e3, ar = rt / 2 * 0.3, nr = rt / 2 * 0.7 * It + ar, { context: wr } = this;
32095
- wr.clearRect(0, 0, this.width, this.height), wr.beginPath(), wr.arc(this.width / 2, this.height / 2, nr, 0, Math.PI * 2), wr.fillStyle = `rgba(255, 100, 100, ${1 - It})`, wr.fill();
32096
- const ji = rt / 2 * 0.7 * (It - 0.5 < 0 ? It - 0.5 + 1 : It - 0.5) + ar;
32091
+ const Et = performance.now() % 2e3 / 2e3, or = rt / 2 * 0.3, ar = rt / 2 * 0.7 * Et + or, { context: wr } = this;
32092
+ wr.clearRect(0, 0, this.width, this.height), wr.beginPath(), wr.arc(this.width / 2, this.height / 2, ar, 0, Math.PI * 2), wr.fillStyle = `rgba(255, 100, 100, ${1 - Et})`, wr.fill();
32093
+ const ji = rt / 2 * 0.7 * (Et - 0.5 < 0 ? Et - 0.5 + 1 : Et - 0.5) + or;
32097
32094
  return wr.beginPath(), wr.arc(
32098
32095
  this.width / 2,
32099
32096
  this.height / 2,
32100
32097
  ji,
32101
32098
  0,
32102
32099
  Math.PI * 2
32103
- ), wr.fillStyle = `rgba(255, 100, 100, ${1 - (It - 0.5 < 0 ? It - 0.5 + 1 : It - 0.5)})`, wr.fill(), this.data = wr.getImageData(0, 0, this.width, this.height).data, (ni = y.value) == null || ni.triggerRepaint(), !0;
32100
+ ), wr.fillStyle = `rgba(255, 100, 100, ${1 - (Et - 0.5 < 0 ? Et - 0.5 + 1 : Et - 0.5)})`, wr.fill(), this.data = wr.getImageData(0, 0, this.width, this.height).data, (ni = y.value) == null || ni.triggerRepaint(), !0;
32104
32101
  }
32105
32102
  };
32106
32103
  (At = y.value) != null && At.hasImage("pulsing-dot") || (ct = y.value) == null || ct.addImage("pulsing-dot", pt, { pixelRatio: 2 }), (kt = y.value) == null || kt.addSource("dot-point", {
@@ -32109,7 +32106,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32109
32106
  type: "Feature",
32110
32107
  geometry: { type: "Point", coordinates: $e }
32111
32108
  }
32112
- }), (Ut = y.value) == null || Ut.addLayer({
32109
+ }), (jt = y.value) == null || jt.addLayer({
32113
32110
  id: "layer-with-pulsing-dot",
32114
32111
  type: "symbol",
32115
32112
  source: "dot-point",
@@ -32118,13 +32115,13 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32118
32115
  });
32119
32116
  }
32120
32117
  const qi = lr(() => {
32121
- var $e, rt, pt, At, ct, kt, Ut, Lt, It, ar;
32118
+ var $e, rt, pt, At, ct, kt, jt, It, Et, or;
32122
32119
  return {
32123
32120
  center: (rt = ($e = O == null ? void 0 : O.value) == null ? void 0 : $e.map) == null ? void 0 : rt.center,
32124
32121
  zoom: (At = (pt = O == null ? void 0 : O.value) == null ? void 0 : pt.map) == null ? void 0 : At.zoom,
32125
32122
  pitch: ((kt = (ct = O == null ? void 0 : O.value) == null ? void 0 : ct.map) == null ? void 0 : kt.pitch) || 0,
32126
- bearing: ((Lt = (Ut = O == null ? void 0 : O.value) == null ? void 0 : Ut.map) == null ? void 0 : Lt.bearing) || 0,
32127
- bbox: ((ar = (It = O == null ? void 0 : O.value) == null ? void 0 : It.map) == null ? void 0 : ar.bbox) || null
32123
+ bearing: ((It = (jt = O == null ? void 0 : O.value) == null ? void 0 : jt.map) == null ? void 0 : It.bearing) || 0,
32124
+ bbox: ((or = (Et = O == null ? void 0 : O.value) == null ? void 0 : Et.map) == null ? void 0 : or.bbox) || null
32128
32125
  };
32129
32126
  }), ir = {
32130
32127
  home: uS,
@@ -32156,15 +32153,15 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32156
32153
  pt && (pt.style.display = "none");
32157
32154
  return;
32158
32155
  }
32159
- const Ut = `
32156
+ const jt = `
32160
32157
  <div class="absolute min-w-28 max-w-[300px] bg-white/90 border border-gray-200 rounded-lg shadow-md text-gray-800 pointer-events-none" style="left: 0; top: 0;">
32161
32158
  <div class="text-xs px-2 py-0.5 text-gray-500">
32162
32159
  <table class="w-full">
32163
32160
  <tbody>${ct.map(
32164
- (Lt) => `
32161
+ (It) => `
32165
32162
  <tr class="flex justify-between items-center">
32166
- <td class="font-medium mr-1.5 flex items-center">${Lt}</td>
32167
- <td class="text-right">${At[Lt] || "-"}</td>
32163
+ <td class="font-medium mr-1.5 flex items-center">${It}</td>
32164
+ <td class="text-right">${At[It] || "-"}</td>
32168
32165
  </tr>
32169
32166
  `
32170
32167
  ).join("")}</tbody>
@@ -32172,14 +32169,14 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32172
32169
  </div>
32173
32170
  </div>
32174
32171
  `;
32175
- return pt || (pt = document.createElement("div"), pt.className = "custom-popup absolute z-50", document.body.appendChild(pt)), pt.innerHTML = Ut, es(pt, rt), pt;
32172
+ return pt || (pt = document.createElement("div"), pt.className = "custom-popup absolute z-50", document.body.appendChild(pt)), pt.innerHTML = jt, es(pt, rt), pt;
32176
32173
  }
32177
32174
  function es($e, rt) {
32178
- const pt = $e.offsetWidth, At = $e.offsetHeight, ct = document.getElementById("maplibre-demo-map"), kt = ct.getBoundingClientRect(), Ut = rt.originalEvent.clientX - kt.left, Lt = rt.originalEvent.clientY - kt.top;
32179
- let It = Ut - pt / 2;
32180
- It = Math.max(10, Math.min(It, kt.width - pt - 10));
32181
- let ar;
32182
- Lt - At - 10 > 0 ? ar = Lt - At - 5 : Lt + At + 10 < kt.height ? ar = Lt + 10 : ar = Math.max(10, kt.height - At - 10), $e.style.position = "absolute", $e.style.left = `${It + 20}px`, $e.style.top = `${ar + 10}px`, $e.parentNode !== ct && ct.appendChild($e);
32175
+ const pt = $e.offsetWidth, At = $e.offsetHeight, ct = document.getElementById("maplibre-demo-map"), kt = ct.getBoundingClientRect(), jt = rt.originalEvent.clientX - kt.left, It = rt.originalEvent.clientY - kt.top;
32176
+ let Et = jt - pt / 2;
32177
+ Et = Math.max(10, Math.min(Et, kt.width - pt - 10));
32178
+ let or;
32179
+ It - At - 10 > 0 ? or = It - At - 5 : It + At + 10 < kt.height ? or = It + 10 : or = Math.max(10, kt.height - At - 10), $e.style.position = "absolute", $e.style.left = `${Et + 20}px`, $e.style.top = `${or + 10}px`, $e.parentNode !== ct && ct.appendChild($e);
32183
32180
  }
32184
32181
  return ($e, rt) => {
32185
32182
  var pt, At;
@@ -32193,7 +32190,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32193
32190
  se("div", zA, [
32194
32191
  se("div", DA, [
32195
32192
  (ve(), Ae(ft, null, Ot(["top-left"], (ct) => {
32196
- var kt, Ut;
32193
+ var kt, jt;
32197
32194
  return tr(ph, {
32198
32195
  key: ct,
32199
32196
  position: ct,
@@ -32202,14 +32199,14 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32202
32199
  mapLoaded: x.value,
32203
32200
  cardValues: L.value,
32204
32201
  hasFilters: Z.value,
32205
- history: (Ut = (kt = O.value) == null ? void 0 : kt.value) == null ? void 0 : Ut.history,
32202
+ history: (jt = (kt = O.value) == null ? void 0 : kt.value) == null ? void 0 : jt.history,
32206
32203
  currentFilterLayer: C.value,
32207
32204
  enabledLayerIds: _t.value,
32208
32205
  getWidgetComponent: U,
32209
32206
  getColumnWidth: Ge,
32210
32207
  rightColumnOffset: ct === "top-right" ? Bt.value : void 0,
32211
32208
  onSetFilterLayer: re,
32212
- "onUpdate:enabledLayerIds": rt[0] || (rt[0] = (Lt) => _t.value = Lt),
32209
+ "onUpdate:enabledLayerIds": rt[0] || (rt[0] = (It) => _t.value = It),
32213
32210
  onCardValuesId: pi,
32214
32211
  onCloseCard: pe
32215
32212
  }, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
@@ -32217,7 +32214,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32217
32214
  ]),
32218
32215
  se("div", BA, [
32219
32216
  (ve(), Ae(ft, null, Ot(["bottom-left"], (ct) => {
32220
- var kt, Ut;
32217
+ var kt, jt;
32221
32218
  return tr(ph, {
32222
32219
  key: ct,
32223
32220
  position: ct,
@@ -32226,14 +32223,14 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32226
32223
  mapLoaded: x.value,
32227
32224
  cardValues: L.value,
32228
32225
  hasFilters: Z.value,
32229
- history: (Ut = (kt = O.value) == null ? void 0 : kt.value) == null ? void 0 : Ut.history,
32226
+ history: (jt = (kt = O.value) == null ? void 0 : kt.value) == null ? void 0 : jt.history,
32230
32227
  currentFilterLayer: C.value,
32231
32228
  enabledLayerIds: _t.value,
32232
32229
  getWidgetComponent: U,
32233
32230
  getColumnWidth: Ge,
32234
32231
  rightColumnOffset: ct === "top-right" ? Bt.value : void 0,
32235
32232
  onSetFilterLayer: re,
32236
- "onUpdate:enabledLayerIds": rt[1] || (rt[1] = (Lt) => _t.value = Lt),
32233
+ "onUpdate:enabledLayerIds": rt[1] || (rt[1] = (It) => _t.value = It),
32237
32234
  onCardValuesId: pi,
32238
32235
  onCloseCard: pe
32239
32236
  }, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
@@ -32243,7 +32240,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32243
32240
  se("div", OA, [
32244
32241
  se("div", FA, [
32245
32242
  (ve(), Ae(ft, null, Ot(["top-right"], (ct) => {
32246
- var kt, Ut;
32243
+ var kt, jt;
32247
32244
  return tr(ph, {
32248
32245
  key: ct,
32249
32246
  position: ct,
@@ -32252,14 +32249,14 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32252
32249
  mapLoaded: x.value,
32253
32250
  cardValues: L.value,
32254
32251
  hasFilters: Z.value,
32255
- history: (Ut = (kt = O.value) == null ? void 0 : kt.value) == null ? void 0 : Ut.history,
32252
+ history: (jt = (kt = O.value) == null ? void 0 : kt.value) == null ? void 0 : jt.history,
32256
32253
  currentFilterLayer: C.value,
32257
32254
  enabledLayerIds: _t.value,
32258
32255
  getWidgetComponent: U,
32259
32256
  getColumnWidth: Ge,
32260
32257
  rightColumnOffset: ct === "top-right" ? Bt.value : void 0,
32261
32258
  onSetFilterLayer: re,
32262
- "onUpdate:enabledLayerIds": rt[2] || (rt[2] = (Lt) => _t.value = Lt),
32259
+ "onUpdate:enabledLayerIds": rt[2] || (rt[2] = (It) => _t.value = It),
32263
32260
  onCardValuesId: pi,
32264
32261
  onCloseCard: pe
32265
32262
  }, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
@@ -32267,7 +32264,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32267
32264
  ]),
32268
32265
  se("div", VA, [
32269
32266
  (ve(), Ae(ft, null, Ot(["bottom-right"], (ct) => {
32270
- var kt, Ut;
32267
+ var kt, jt;
32271
32268
  return tr(ph, {
32272
32269
  key: ct,
32273
32270
  position: ct,
@@ -32276,14 +32273,14 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32276
32273
  mapLoaded: x.value,
32277
32274
  cardValues: L.value,
32278
32275
  hasFilters: Z.value,
32279
- history: (Ut = (kt = O.value) == null ? void 0 : kt.value) == null ? void 0 : Ut.history,
32276
+ history: (jt = (kt = O.value) == null ? void 0 : kt.value) == null ? void 0 : jt.history,
32280
32277
  currentFilterLayer: C.value,
32281
32278
  enabledLayerIds: _t.value,
32282
32279
  getWidgetComponent: U,
32283
32280
  getColumnWidth: Ge,
32284
32281
  rightColumnOffset: ct === "top-right" ? Bt.value : void 0,
32285
32282
  onSetFilterLayer: re,
32286
- "onUpdate:enabledLayerIds": rt[3] || (rt[3] = (Lt) => _t.value = Lt),
32283
+ "onUpdate:enabledLayerIds": rt[3] || (rt[3] = (It) => _t.value = It),
32287
32284
  onCardValuesId: pi,
32288
32285
  onCloseCard: pe
32289
32286
  }, null, 8, ["position", "widgets", "map", "mapLoaded", "cardValues", "hasFilters", "history", "currentFilterLayer", "enabledLayerIds", "rightColumnOffset"]);
@@ -32304,7 +32301,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32304
32301
  enabledLayerIds: _t.value,
32305
32302
  cardValues: L.value,
32306
32303
  onSetFilterLayer: re,
32307
- "onUpdate:enabledLayerIds": rt[4] || (rt[4] = (Ut) => _t.value = Ut),
32304
+ "onUpdate:enabledLayerIds": rt[4] || (rt[4] = (jt) => _t.value = jt),
32308
32305
  onCardValuesId: pi,
32309
32306
  onCloseCard: pe
32310
32307
  }, null, 40, ["map", "config", "hasFilters", "currentFilterLayer", "enabledLayerIds", "cardValues"]))
@@ -32324,7 +32321,7 @@ const LA = /* @__PURE__ */ rr(kA, [["render", MA], ["__scopeId", "data-v-024154e
32324
32321
  ], 4);
32325
32322
  };
32326
32323
  }
32327
- }, Fy = /* @__PURE__ */ rr(UA, [["__scopeId", "data-v-f75f0984"]]), jA = {
32324
+ }, Fy = /* @__PURE__ */ rr(UA, [["__scopeId", "data-v-e4a04ef8"]]), jA = {
32328
32325
  props: {
32329
32326
  title: {
32330
32327
  type: String,
@@ -33135,7 +33132,7 @@ function IT(u, d, y, x, S, C) {
33135
33132
  name: "filter",
33136
33133
  onFilterChange: C.handleFilterChange
33137
33134
  }, {
33138
- button: or(() => d[1] || (d[1] = [
33135
+ button: sr(() => d[1] || (d[1] = [
33139
33136
  se("button", {
33140
33137
  class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border border-input bg-background hover:bg-accent hover:text-accent-foreground px-3 py-2",
33141
33138
  type: "button"
@@ -33362,7 +33359,7 @@ function NT(u, d, y, x, S, C) {
33362
33359
  name: "filter",
33363
33360
  onFilterChange: C.handleFilterChange
33364
33361
  }, {
33365
- button: or(() => d[2] || (d[2] = [
33362
+ button: sr(() => d[2] || (d[2] = [
33366
33363
  se("button", {
33367
33364
  class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border border-input bg-background hover:bg-accent hover:text-accent-foreground px-3 py-2",
33368
33365
  type: "button"
@@ -33375,12 +33372,12 @@ function NT(u, d, y, x, S, C) {
33375
33372
  "onUpdate:modelValue": d[0] || (d[0] = (T) => S.templateView = T),
33376
33373
  class: "w-[150px]"
33377
33374
  }, {
33378
- default: or(() => [
33375
+ default: sr(() => [
33379
33376
  (ve(!0), Ae(ft, null, Ot(S.templateViews, (T) => (ve(), jr(D, {
33380
33377
  label: T.label,
33381
33378
  value: T.value
33382
33379
  }, {
33383
- default: or(() => [
33380
+ default: sr(() => [
33384
33381
  hr(ot(T.label), 1)
33385
33382
  ]),
33386
33383
  _: 2