@opengis/partsmap 0.0.46 → 0.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/PartsMap.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as dt, createElementBlock as Ut, createStaticVNode as op, Fragment as ol, renderList as al, normalizeClass as Uo, createElementVNode as et, toDisplayString as Mn, createCommentVNode as Pr, normalizeStyle as ap, resolveComponent as Yi, withDirectives as Jh, createVNode as cn, vShow as Kh, createBlock as ln, Teleport as Bm, Transition as jd, withCtx as ll, renderSlot as cl, pushScopeId as Fm, popScopeId as Om, defineComponent as Vm, createTextVNode as Nm } from "vue";
1
+ import { openBlock as dt, createElementBlock as Ut, createStaticVNode as op, Fragment as ol, renderList as al, normalizeClass as Uo, createElementVNode as et, toDisplayString as Mn, createCommentVNode as pr, normalizeStyle as ap, resolveComponent as Yi, withDirectives as Jh, createVNode as cn, vShow as Kh, createBlock as ln, Teleport as Bm, Transition as jd, withCtx as ll, renderSlot as cl, pushScopeId as Fm, popScopeId as Om, defineComponent as Vm, createTextVNode as Nm } from "vue";
2
2
  var $s = {};
3
3
  function $d(g) {
4
4
  return Math.floor(Math.abs(g) + 0.5) * (g >= 0 ? 1 : -1);
@@ -270,7 +270,7 @@ var cp = { exports: {} };
270
270
  return typeof WorkerGlobalScope < "u" && i !== void 0 && i instanceof WorkerGlobalScope;
271
271
  }
272
272
  let zn = null;
273
- function fr(i) {
273
+ function mr(i) {
274
274
  return typeof ImageBitmap < "u" && i instanceof ImageBitmap;
275
275
  }
276
276
  const Gs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
@@ -301,7 +301,7 @@ var cp = { exports: {} };
301
301
  return new Error(er);
302
302
  }
303
303
  const $r = { MAX_PARALLEL_IMAGE_REQUESTS: 16, MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8, MAX_TILE_CACHE_ZOOM_LEVELS: 5, REGISTERED_PROTOCOLS: {}, WORKER_URL: "" };
304
- function mr(i) {
304
+ function gr(i) {
305
305
  return $r.REGISTERED_PROTOCOLS[i.substring(0, i.indexOf("://"))];
306
306
  }
307
307
  const Ln = "global-dispatcher";
@@ -312,7 +312,7 @@ var cp = { exports: {} };
312
312
  }
313
313
  const tr = () => Ar(self) ? self.worker && self.worker.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href, dn = function(i, e) {
314
314
  if (/:\/\//.test(i.url) && !/^https?:|^file:/.test(i.url)) {
315
- const s = mr(i.url);
315
+ const s = gr(i.url);
316
316
  if (s) return s(i, e);
317
317
  if (Ar(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: i, targetMapId: Ln }, e);
318
318
  }
@@ -474,7 +474,7 @@ var cp = { exports: {} };
474
474
  this.message = (e ? `${e}: ` : "") + s, l && (this.identifier = l), r != null && r.__line__ && (this.line = r.__line__);
475
475
  }
476
476
  }
477
- function gr(i, ...e) {
477
+ function _r(i, ...e) {
478
478
  for (const r of e) for (const s in r) i[s] = r[s];
479
479
  return i;
480
480
  }
@@ -483,13 +483,13 @@ var cp = { exports: {} };
483
483
  super(r), this.message = r, this.key = e;
484
484
  }
485
485
  }
486
- class _r {
486
+ class yr {
487
487
  constructor(e, r = []) {
488
488
  this.parent = e, this.bindings = {};
489
489
  for (const [s, l] of r) this.bindings[s] = l;
490
490
  }
491
491
  concat(e) {
492
- return new _r(this, e);
492
+ return new yr(this, e);
493
493
  }
494
494
  get(e) {
495
495
  if (this.bindings[e]) return this.bindings[e];
@@ -500,7 +500,7 @@ var cp = { exports: {} };
500
500
  return !!this.bindings[e] || !!this.parent && this.parent.has(e);
501
501
  }
502
502
  }
503
- const Hr = { kind: "null" }, Ae = { kind: "number" }, ot = { kind: "string" }, Je = { kind: "boolean" }, Mi = { kind: "color" }, ir = { kind: "object" }, it = { kind: "value" }, yr = { kind: "collator" }, Mr = { kind: "formatted" }, Wr = { kind: "padding" }, xr = { kind: "resolvedImage" }, G = { kind: "variableAnchorOffsetCollection" };
503
+ const Hr = { kind: "null" }, Ae = { kind: "number" }, ot = { kind: "string" }, Je = { kind: "boolean" }, Mi = { kind: "color" }, ir = { kind: "object" }, it = { kind: "value" }, xr = { kind: "collator" }, Mr = { kind: "formatted" }, Wr = { kind: "padding" }, vr = { kind: "resolvedImage" }, G = { kind: "variableAnchorOffsetCollection" };
504
504
  function z(i, e) {
505
505
  return { kind: "array", itemType: i, N: e };
506
506
  }
@@ -511,7 +511,7 @@ var cp = { exports: {} };
511
511
  }
512
512
  return i.kind;
513
513
  }
514
- const O = [Hr, Ae, ot, Je, Mi, Mr, ir, z(it), Wr, xr, G];
514
+ const O = [Hr, Ae, ot, Je, Mi, Mr, ir, z(it), Wr, vr, G];
515
515
  function q(i, e) {
516
516
  if (e.kind === "error") return null;
517
517
  if (i.kind === "array") {
@@ -755,11 +755,11 @@ var cp = { exports: {} };
755
755
  if (typeof i == "boolean") return Je;
756
756
  if (typeof i == "number") return Ae;
757
757
  if (i instanceof bt) return Mi;
758
- if (i instanceof qo) return yr;
758
+ if (i instanceof qo) return xr;
759
759
  if (i instanceof Ni) return Mr;
760
760
  if (i instanceof Ui) return Wr;
761
761
  if (i instanceof ji) return G;
762
- if (i instanceof pi) return xr;
762
+ if (i instanceof pi) return vr;
763
763
  if (Array.isArray(i)) {
764
764
  const e = i.length;
765
765
  let r;
@@ -958,7 +958,7 @@ var cp = { exports: {} };
958
958
  }
959
959
  }
960
960
  class Jr {
961
- constructor(e, r, s = [], l, d = new _r(), p = []) {
961
+ constructor(e, r, s = [], l, d = new yr(), p = []) {
962
962
  this.registry = e, this.path = s, this.key = s.map((f) => `[${f}]`).join(""), this.scope = d, this.errors = p, this.expectedType = l, this._isConstant = r;
963
963
  }
964
964
  parse(e, r, s, l, d = {}) {
@@ -1506,7 +1506,7 @@ var cp = { exports: {} };
1506
1506
  let w = null;
1507
1507
  if (d.length === 4) {
1508
1508
  if (_.type.kind !== "string" && x.type.kind !== "string" && _.type.kind !== "value" && x.type.kind !== "value") return p.error("Cannot use collator to compare non-string types.");
1509
- if (w = p.parse(d[3], 3, yr), !w) return null;
1509
+ if (w = p.parse(d[3], 3, xr), !w) return null;
1510
1510
  }
1511
1511
  return new hp(_, x, w);
1512
1512
  }
@@ -1555,7 +1555,7 @@ var cp = { exports: {} };
1555
1555
  });
1556
1556
  class to {
1557
1557
  constructor(e, r, s) {
1558
- this.type = yr, this.locale = s, this.caseSensitive = e, this.diacriticSensitive = r;
1558
+ this.type = xr, this.locale = s, this.caseSensitive = e, this.diacriticSensitive = r;
1559
1559
  }
1560
1560
  static parse(e, r) {
1561
1561
  if (e.length !== 2) return r.error("Expected one argument.");
@@ -1642,7 +1642,7 @@ var cp = { exports: {} };
1642
1642
  evaluate(e) {
1643
1643
  return new Ni(this.sections.map((r) => {
1644
1644
  const s = r.content.evaluate(e);
1645
- return ei(s) === xr ? new Zo("", s, null, null, null) : new Zo(zr(s), null, r.scale ? r.scale.evaluate(e) : null, r.font ? r.font.evaluate(e).join(",") : null, r.textColor ? r.textColor.evaluate(e) : null);
1645
+ return ei(s) === vr ? new Zo("", s, null, null, null) : new Zo(zr(s), null, r.scale ? r.scale.evaluate(e) : null, r.font ? r.font.evaluate(e).join(",") : null, r.textColor ? r.textColor.evaluate(e) : null);
1646
1646
  }));
1647
1647
  }
1648
1648
  eachChild(e) {
@@ -1654,7 +1654,7 @@ var cp = { exports: {} };
1654
1654
  }
1655
1655
  class Xo {
1656
1656
  constructor(e) {
1657
- this.type = xr, this.input = e;
1657
+ this.type = vr, this.input = e;
1658
1658
  }
1659
1659
  static parse(e, r) {
1660
1660
  if (e.length !== 2) return r.error("Expected two arguments.");
@@ -1693,14 +1693,14 @@ var cp = { exports: {} };
1693
1693
  return !1;
1694
1694
  }
1695
1695
  }
1696
- const vr = 8192;
1696
+ const br = 8192;
1697
1697
  function Ko(i, e) {
1698
1698
  const r = (180 + i[0]) / 360, s = (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + i[1] * Math.PI / 360))) / 360, l = Math.pow(2, e.z);
1699
- return [Math.round(r * l * vr), Math.round(s * l * vr)];
1699
+ return [Math.round(r * l * br), Math.round(s * l * br)];
1700
1700
  }
1701
1701
  function On(i, e) {
1702
1702
  const r = Math.pow(2, e.z);
1703
- return [(l = (i[0] / vr + e.x) / r, 360 * l - 180), (s = (i[1] / vr + e.y) / r, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * s) * Math.PI / 180)) - 90)];
1703
+ return [(l = (i[0] / br + e.x) / r, 360 * l - 180), (s = (i[1] / br + e.y) / r, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * s) * Math.PI / 180)) - 90)];
1704
1704
  var s, l;
1705
1705
  }
1706
1706
  function ut(i, e) {
@@ -1776,7 +1776,7 @@ var cp = { exports: {} };
1776
1776
  ut(e, i);
1777
1777
  }
1778
1778
  function Sl(i, e, r, s) {
1779
- const l = Math.pow(2, s.z) * vr, d = [s.x * vr, s.y * vr], p = [];
1779
+ const l = Math.pow(2, s.z) * br, d = [s.x * br, s.y * br], p = [];
1780
1780
  for (const f of i) for (const _ of f) {
1781
1781
  const x = [_.x + d[0], _.y + d[1]];
1782
1782
  wl(x, e, r, l), p.push(x);
@@ -1784,7 +1784,7 @@ var cp = { exports: {} };
1784
1784
  return p;
1785
1785
  }
1786
1786
  function Tl(i, e, r, s) {
1787
- const l = Math.pow(2, s.z) * vr, d = [s.x * vr, s.y * vr], p = [];
1787
+ const l = Math.pow(2, s.z) * br, d = [s.x * br, s.y * br], p = [];
1788
1788
  for (const _ of i) {
1789
1789
  const x = [];
1790
1790
  for (const w of _) {
@@ -2364,7 +2364,7 @@ var cp = { exports: {} };
2364
2364
  const r = e.type === "color", s = i.stops && typeof i.stops[0][0] == "object", l = s || !(s || i.property !== void 0), d = i.type || (Un(e) ? "exponential" : "interval");
2365
2365
  if (r || e.type === "padding") {
2366
2366
  const w = r ? bt.parse : Ui.parse;
2367
- (i = gr({}, i)).stops && (i.stops = i.stops.map((I) => [I[0], w(I[1])])), i.default = w(i.default ? i.default : e.default);
2367
+ (i = _r({}, i)).stops && (i.stops = i.stops.map((I) => [I[0], w(I[1])])), i.default = w(i.default ? i.default : e.default);
2368
2368
  }
2369
2369
  if (i.colorSpace && (p = i.colorSpace) !== "rgb" && p !== "hcl" && p !== "lab") throw new Error(`Unknown color space: "${i.colorSpace}"`);
2370
2370
  var p;
@@ -2503,7 +2503,7 @@ var cp = { exports: {} };
2503
2503
  }]] }, "!": [Je, [Je], (i, [e]) => !e.evaluate(i)], "is-supported-script": [Je, [ot], (i, [e]) => {
2504
2504
  const r = i.globals && i.globals.isSupportedScript;
2505
2505
  return !r || r(e.evaluate(i));
2506
- }], upcase: [ot, [ot], (i, [e]) => e.evaluate(i).toUpperCase()], downcase: [ot, [ot], (i, [e]) => e.evaluate(i).toLowerCase()], concat: [ot, xn(it), (i, e) => e.map((r) => zr(r.evaluate(i))).join("")], "resolved-locale": [ot, [yr], (i, [e]) => e.evaluate(i).resolvedLocale()] });
2506
+ }], upcase: [ot, [ot], (i, [e]) => e.evaluate(i).toUpperCase()], downcase: [ot, [ot], (i, [e]) => e.evaluate(i).toLowerCase()], concat: [ot, xn(it), (i, e) => e.map((r) => zr(r.evaluate(i))).join("")], "resolved-locale": [ot, [xr], (i, [e]) => e.evaluate(i).resolvedLocale()] });
2507
2507
  class go {
2508
2508
  constructor(e, r) {
2509
2509
  var s;
@@ -2529,7 +2529,7 @@ var cp = { exports: {} };
2529
2529
  }
2530
2530
  function wn(i, e) {
2531
2531
  const r = new Jr(yn, ho, [], e ? function(l) {
2532
- const d = { color: Mi, string: ot, number: Ae, enum: ot, boolean: Je, formatted: Mr, padding: Wr, resolvedImage: xr, variableAnchorOffsetCollection: G };
2532
+ const d = { color: Mi, string: ot, number: Ae, enum: ot, boolean: Je, formatted: Mr, padding: Wr, resolvedImage: vr, variableAnchorOffsetCollection: G };
2533
2533
  return l.type === "array" ? z(d[l.value] || it, l.length) : d[l.type];
2534
2534
  }(e) : void 0), s = r.parse(i, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
2535
2535
  return s ? Dl(new go(s, e)) : Nn(r.errors);
@@ -2571,7 +2571,7 @@ var cp = { exports: {} };
2571
2571
  }
2572
2572
  class _o {
2573
2573
  constructor(e, r) {
2574
- this._parameters = e, this._specification = r, gr(this, Rl(this._parameters, this._specification));
2574
+ this._parameters = e, this._specification = r, _r(this, Rl(this._parameters, this._specification));
2575
2575
  }
2576
2576
  static deserialize(e) {
2577
2577
  return new _o(e._parameters, e._specification);
@@ -2805,7 +2805,7 @@ var cp = { exports: {} };
2805
2805
  return Array.isArray(s.values) ? s.values.indexOf(Lt(r)) === -1 && l.push(new Te(e, r, `expected one of [${s.values.join(", ")}], ${JSON.stringify(r)} found`)) : Object.keys(s.values).indexOf(Lt(r)) === -1 && l.push(new Te(e, r, `expected one of [${Object.keys(s.values).join(", ")}], ${JSON.stringify(r)} found`)), l;
2806
2806
  }
2807
2807
  function ks(i) {
2808
- return jn(Sn(i.value)) ? Tn(gr({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Es(i);
2808
+ return jn(Sn(i.value)) ? Tn(_r({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Es(i);
2809
2809
  }
2810
2810
  function Es(i) {
2811
2811
  const e = i.value, r = i.key;
@@ -2881,7 +2881,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
2881
2881
  const _ = l.sources && l.sources[r.source], x = _ && Lt(_.type);
2882
2882
  _ ? x === "vector" && p === "raster" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a raster source`)) : x !== "raster-dem" && p === "hillshade" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a raster-dem source`)) : x === "raster" && p !== "raster" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a vector source`)) : x !== "vector" || r["source-layer"] ? x === "raster-dem" && p !== "hillshade" ? e.push(new Te(s, r.source, "raster-dem source can only be used with layer type 'hillshade'.")) : p !== "line" || !r.paint || !r.paint["line-gradient"] || x === "geojson" && _.lineMetrics || e.push(new Te(s, r, `layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new Te(s, r, `layer "${r.id}" must specify a "source-layer"`)) : e.push(new Te(s, r.source, `source "${r.source}" not found`));
2883
2883
  } else e.push(new Te(s, r, 'missing required property "source"'));
2884
- return e = e.concat(zi({ key: s, value: r, valueSpec: d.layer, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, objectElementValidators: { "*": () => [], type: () => i.validateSpec({ key: `${s}.type`, value: r.type, valueSpec: d.layer.type, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, object: r, objectKey: "type" }), filter: ks, layout: (_) => zi({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (x) => wa(gr({ layerType: p }, x)) } }), paint: (_) => zi({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (x) => ba(gr({ layerType: p }, x)) } }) } })), e;
2884
+ return e = e.concat(zi({ key: s, value: r, valueSpec: d.layer, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, objectElementValidators: { "*": () => [], type: () => i.validateSpec({ key: `${s}.type`, value: r.type, valueSpec: d.layer.type, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, object: r, objectKey: "type" }), filter: ks, layout: (_) => zi({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (x) => wa(_r({ layerType: p }, x)) } }), paint: (_) => zi({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (x) => ba(_r({ layerType: p }, x)) } }) } })), e;
2885
2885
  }
2886
2886
  function Lr(i) {
2887
2887
  const e = i.value, r = i.key, s = mt(e);
@@ -3007,7 +3007,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3007
3007
  }, sprite: Aa };
3008
3008
  function Ms(i) {
3009
3009
  const e = i.value, r = i.valueSpec, s = i.styleSpec;
3010
- return i.validateSpec = Ms, r.expression && Ts(Lt(e)) ? xa(i) : r.expression && Is(Sn(e)) ? Tn(i) : r.type && Ca[r.type] ? Ca[r.type](i) : zi(gr({}, i, { valueSpec: r.type ? s[r.type] : r }));
3010
+ return i.validateSpec = Ms, r.expression && Ts(Lt(e)) ? xa(i) : r.expression && Is(Sn(e)) ? Tn(i) : r.type && Ca[r.type] ? Ca[r.type](i) : zi(_r({}, i, { valueSpec: r.type ? s[r.type] : r }));
3011
3011
  }
3012
3012
  function Nl(i) {
3013
3013
  const e = i.value, r = i.key, s = Lr(i);
@@ -3124,10 +3124,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3124
3124
  return new Zn(e.buffer);
3125
3125
  }
3126
3126
  }
3127
- const br = {};
3127
+ const wr = {};
3128
3128
  function Fe(i, e, r = {}) {
3129
- if (br[i]) throw new Error(`${i} is already registered.`);
3130
- Object.defineProperty(e, "_classRegistryKey", { value: i, writeable: !1 }), br[i] = { klass: e, omit: r.omit || [], shallow: r.shallow || [] };
3129
+ if (wr[i]) throw new Error(`${i} is already registered.`);
3130
+ Object.defineProperty(e, "_classRegistryKey", { value: i, writeable: !1 }), wr[i] = { klass: e, omit: r.omit || [], shallow: r.shallow || [] };
3131
3131
  }
3132
3132
  Fe("Object", Object), Fe("TransferableGridIndex", Zn), Fe("Color", bt), Fe("Error", Error), Fe("AJAXError", Vi), Fe("ResolvedImage", pi), Fe("StylePropertyFunction", _o), Fe("StyleExpression", go, { omit: ["_evaluator"] }), Fe("ZoomDependentExpression", pa), Fe("ZoomConstantExpression", da), Fe("CompoundExpression", Zi, { omit: ["_evaluate"] });
3133
3133
  for (const i in yn) yn[i]._classRegistryKey || Fe(`Expression_${i}`, yn[i]);
@@ -3142,10 +3142,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3142
3142
  if (e === null || typeof e != "object") return !1;
3143
3143
  const r = za(e);
3144
3144
  return !(!r || r === "Object");
3145
- }(i) && (i == null || typeof i == "boolean" || typeof i == "number" || typeof i == "string" || i instanceof Boolean || i instanceof Number || i instanceof String || i instanceof Date || i instanceof RegExp || i instanceof Blob || i instanceof Error || Ul(i) || fr(i) || ArrayBuffer.isView(i) || i instanceof ImageData);
3145
+ }(i) && (i == null || typeof i == "boolean" || typeof i == "number" || typeof i == "string" || i instanceof Boolean || i instanceof Number || i instanceof String || i instanceof Date || i instanceof RegExp || i instanceof Blob || i instanceof Error || Ul(i) || mr(i) || ArrayBuffer.isView(i) || i instanceof ImageData);
3146
3146
  }
3147
3147
  function zs(i, e) {
3148
- if (jl(i)) return (Ul(i) || fr(i)) && e && e.push(i), ArrayBuffer.isView(i) && e && e.push(i.buffer), i instanceof ImageData && e && e.push(i.data.buffer), i;
3148
+ if (jl(i)) return (Ul(i) || mr(i)) && e && e.push(i), ArrayBuffer.isView(i) && e && e.push(i.buffer), i instanceof ImageData && e && e.push(i.data.buffer), i;
3149
3149
  if (Array.isArray(i)) {
3150
3150
  const d = [];
3151
3151
  for (const p of i) d.push(zs(p, e));
@@ -3154,35 +3154,35 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3154
3154
  if (typeof i != "object") throw new Error("can't serialize object of type " + typeof i);
3155
3155
  const r = za(i);
3156
3156
  if (!r) throw new Error(`can't serialize object of unregistered class ${i.constructor.name}`);
3157
- if (!br[r]) throw new Error(`${r} is not registered.`);
3158
- const { klass: s } = br[r], l = s.serialize ? s.serialize(i, e) : {};
3157
+ if (!wr[r]) throw new Error(`${r} is not registered.`);
3158
+ const { klass: s } = wr[r], l = s.serialize ? s.serialize(i, e) : {};
3159
3159
  if (s.serialize) {
3160
3160
  if (e && l === e[e.length - 1]) throw new Error("statically serialized object won't survive transfer of $name property");
3161
3161
  } else {
3162
3162
  for (const d in i) {
3163
- if (!i.hasOwnProperty(d) || br[r].omit.indexOf(d) >= 0) continue;
3163
+ if (!i.hasOwnProperty(d) || wr[r].omit.indexOf(d) >= 0) continue;
3164
3164
  const p = i[d];
3165
- l[d] = br[r].shallow.indexOf(d) >= 0 ? p : zs(p, e);
3165
+ l[d] = wr[r].shallow.indexOf(d) >= 0 ? p : zs(p, e);
3166
3166
  }
3167
3167
  i instanceof Error && (l.message = i.message);
3168
3168
  }
3169
3169
  if (l.$name) throw new Error("$name property is reserved for worker serialization logic.");
3170
3170
  return r !== "Object" && (l.$name = r), l;
3171
3171
  }
3172
- function wr(i) {
3172
+ function Sr(i) {
3173
3173
  if (jl(i)) return i;
3174
- if (Array.isArray(i)) return i.map(wr);
3174
+ if (Array.isArray(i)) return i.map(Sr);
3175
3175
  if (typeof i != "object") throw new Error("can't deserialize object of type " + typeof i);
3176
3176
  const e = za(i) || "Object";
3177
- if (!br[e]) throw new Error(`can't deserialize unregistered class ${e}`);
3178
- const { klass: r } = br[e];
3177
+ if (!wr[e]) throw new Error(`can't deserialize unregistered class ${e}`);
3178
+ const { klass: r } = wr[e];
3179
3179
  if (!r) throw new Error(`can't deserialize unregistered class ${e}`);
3180
3180
  if (r.deserialize) return r.deserialize(i);
3181
3181
  const s = Object.create(r.prototype);
3182
3182
  for (const l of Object.keys(i)) {
3183
3183
  if (l === "$name") continue;
3184
3184
  const d = i[l];
3185
- s[l] = br[e].shallow.indexOf(l) >= 0 ? d : wr(d);
3185
+ s[l] = wr[e].shallow.indexOf(l) >= 0 ? d : Sr(d);
3186
3186
  }
3187
3187
  return s;
3188
3188
  }
@@ -3400,7 +3400,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3400
3400
  return l;
3401
3401
  }
3402
3402
  }
3403
- class Sr {
3403
+ class Tr {
3404
3404
  constructor(e, r, s) {
3405
3405
  this.property = e, this.value = r, this.parameters = s;
3406
3406
  }
@@ -3440,15 +3440,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3440
3440
  this.specification = e, this.overrides = r;
3441
3441
  }
3442
3442
  possiblyEvaluate(e, r, s, l) {
3443
- return new Sr(this, e.expression.kind === "constant" || e.expression.kind === "camera" ? { kind: "constant", value: e.expression.evaluate(r, null, {}, s, l) } : e.expression, r);
3443
+ return new Tr(this, e.expression.kind === "constant" || e.expression.kind === "camera" ? { kind: "constant", value: e.expression.evaluate(r, null, {}, s, l) } : e.expression, r);
3444
3444
  }
3445
3445
  interpolate(e, r, s) {
3446
3446
  if (e.value.kind !== "constant" || r.value.kind !== "constant") return e;
3447
- if (e.value.value === void 0 || r.value.value === void 0) return new Sr(this, { kind: "constant", value: void 0 }, e.parameters);
3447
+ if (e.value.value === void 0 || r.value.value === void 0) return new Tr(this, { kind: "constant", value: void 0 }, e.parameters);
3448
3448
  const l = $i[this.specification.type];
3449
3449
  if (l) {
3450
3450
  const d = l(e.value.value, r.value.value, s);
3451
- return new Sr(this, { kind: "constant", value: d }, e.parameters);
3451
+ return new Tr(this, { kind: "constant", value: d }, e.parameters);
3452
3452
  }
3453
3453
  return e;
3454
3454
  }
@@ -3458,16 +3458,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3458
3458
  }
3459
3459
  class u extends Xe {
3460
3460
  possiblyEvaluate(e, r, s, l) {
3461
- if (e.value === void 0) return new Sr(this, { kind: "constant", value: void 0 }, r);
3461
+ if (e.value === void 0) return new Tr(this, { kind: "constant", value: void 0 }, r);
3462
3462
  if (e.expression.kind === "constant") {
3463
3463
  const d = e.expression.evaluate(r, null, {}, s, l), p = e.property.specification.type === "resolvedImage" && typeof d != "string" ? d.name : d, f = this._calculate(p, p, p, r);
3464
- return new Sr(this, { kind: "constant", value: f }, r);
3464
+ return new Tr(this, { kind: "constant", value: f }, r);
3465
3465
  }
3466
3466
  if (e.expression.kind === "camera") {
3467
3467
  const d = this._calculate(e.expression.evaluate({ zoom: r.zoom - 1 }), e.expression.evaluate({ zoom: r.zoom }), e.expression.evaluate({ zoom: r.zoom + 1 }), r);
3468
- return new Sr(this, { kind: "constant", value: d }, r);
3468
+ return new Tr(this, { kind: "constant", value: d }, r);
3469
3469
  }
3470
- return new Sr(this, e.expression, r);
3470
+ return new Tr(this, e.expression, r);
3471
3471
  }
3472
3472
  evaluate(e, r, s, l, d, p) {
3473
3473
  if (e.kind === "source") {
@@ -3596,7 +3596,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3596
3596
  isStateDependent() {
3597
3597
  for (const e in this.paint._values) {
3598
3598
  const r = this.paint.get(e);
3599
- if (r instanceof Sr && vn(r.property.specification) && (r.value.kind === "source" || r.value.kind === "composite") && r.value.isStateDependent) return !0;
3599
+ if (r instanceof Tr && vn(r.property.specification) && (r.value.kind === "source" || r.value.kind === "composite") && r.value.isStateDependent) return !0;
3600
3600
  }
3601
3601
  return !1;
3602
3602
  }
@@ -4513,7 +4513,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4513
4513
  for (const d in e.paint._values) {
4514
4514
  if (!s(d)) continue;
4515
4515
  const p = e.paint.get(d);
4516
- if (!(p instanceof Sr && vn(p.property.specification))) continue;
4516
+ if (!(p instanceof Tr && vn(p.property.specification))) continue;
4517
4517
  const f = qp(d, e.type), _ = p.value, x = p.property.specification.type, w = p.property.useIntegerZoom, I = p.property.specification["property-type"], k = I === "cross-faded" || I === "cross-faded-data-driven";
4518
4518
  if (_.kind === "constant") this.binders[d] = k ? new ko(_.value, f) : new ja(_.value, f, x), l.push(`/u_${d}`);
4519
4519
  else if (_.kind === "source" || k) {
@@ -5550,7 +5550,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5550
5550
  for (const Oe of R) {
5551
5551
  const Be = [], fe = [];
5552
5552
  for (const Ze of Oe) {
5553
- const Ue = Ze.x, Ye = Ze.y, Pt = W[0] * Ue + W[4] * Ye + W[12], Tt = W[1] * Ue + W[5] * Ye + W[13], oi = W[2] * Ue + W[6] * Ye + W[14], Tr = W[3] * Ue + W[7] * Ye + W[15], vi = oi + ye, Xt = Tr + Le, Ri = Pt + We, Bi = Tt + Me, Fi = oi + Ce, Jt = Tr + je, ai = new ae((Pt + ie) / Xt, (Tt + ue) / Xt);
5553
+ const Ue = Ze.x, Ye = Ze.y, Pt = W[0] * Ue + W[4] * Ye + W[12], Tt = W[1] * Ue + W[5] * Ye + W[13], oi = W[2] * Ue + W[6] * Ye + W[14], Ir = W[3] * Ue + W[7] * Ye + W[15], vi = oi + ye, Xt = Ir + Le, Ri = Pt + We, Bi = Tt + Me, Fi = oi + Ce, Jt = Ir + je, ai = new ae((Pt + ie) / Xt, (Tt + ue) / Xt);
5554
5554
  ai.z = vi / Xt, Be.push(ai);
5555
5555
  const Ci = new ae(Ri / Jt, Bi / Jt);
5556
5556
  Ci.z = Fi / Jt, fe.push(Ci);
@@ -6307,7 +6307,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6307
6307
  const Y = [], ie = { positionedLines: Y, text: F.toString(), top: w[1], bottom: w[1], left: w[0], right: w[0], writingMode: I, iconsInText: !1, verticalizable: !1 };
6308
6308
  return function(ue, ye, Le, We, Me, Ce, je, Oe, Be, fe, Ze, Ue) {
6309
6309
  let Ye = 0, Pt = Ya, Tt = 0, oi = 0;
6310
- const Tr = Oe === "right" ? 1 : Oe === "left" ? 0 : 0.5;
6310
+ const Ir = Oe === "right" ? 1 : Oe === "left" ? 0 : 0.5;
6311
6311
  let vi = 0;
6312
6312
  for (const Jt of Me) {
6313
6313
  Jt.trim();
@@ -6322,14 +6322,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6322
6322
  for (let Hi = 0; Hi < Jt.length(); Hi++) {
6323
6323
  const gt = Jt.getSection(Hi), Mt = Jt.getSectionIndex(Hi), Ot = Jt.getCharCode(Hi);
6324
6324
  let Ki = 0, Gt = null, No = null, sn = null, on = ni;
6325
- const Ir = !(Be === T.ai.horizontal || !Ze && !La(Ot) || Ze && (lc[Ot] || (Xt = Ot, ze.Arabic(Xt) || ze["Arabic Supplement"](Xt) || ze["Arabic Extended-A"](Xt) || ze["Arabic Presentation Forms-A"](Xt) || ze["Arabic Presentation Forms-B"](Xt))));
6325
+ const Pr = !(Be === T.ai.horizontal || !Ze && !La(Ot) || Ze && (lc[Ot] || (Xt = Ot, ze.Arabic(Xt) || ze["Arabic Supplement"](Xt) || ze["Arabic Extended-A"](Xt) || ze["Arabic Presentation Forms-A"](Xt) || ze["Arabic Presentation Forms-B"](Xt))));
6326
6326
  if (gt.imageName) {
6327
6327
  const ur = We[gt.imageName];
6328
6328
  if (!ur) continue;
6329
6329
  sn = gt.imageName, ue.iconsInText = ue.iconsInText || !0, No = ur.paddedRect;
6330
6330
  const ci = ur.displaySize;
6331
- gt.scale = gt.scale * ni / Ue, Gt = { width: ci[0], height: ci[1], left: Gi, top: -Wu, advance: Ir ? ci[1] : ci[0] }, Ki = Ci + (ni - ci[1] * gt.scale), on = Gt.advance;
6332
- const kn = Ir ? ci[0] * gt.scale - ni * ai : ci[1] * gt.scale - ni * ai;
6331
+ gt.scale = gt.scale * ni / Ue, Gt = { width: ci[0], height: ci[1], left: Gi, top: -Wu, advance: Pr ? ci[1] : ci[0] }, Ki = Ci + (ni - ci[1] * gt.scale), on = Gt.advance;
6332
+ const kn = Pr ? ci[0] * gt.scale - ni * ai : ci[1] * gt.scale - ni * ai;
6333
6333
  kn > 0 && kn > wi && (wi = kn);
6334
6334
  } else {
6335
6335
  const ur = Le[gt.fontStack], ci = ur && ur[Ot];
@@ -6341,9 +6341,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6341
6341
  }
6342
6342
  Ki = (ai - gt.scale) * ni;
6343
6343
  }
6344
- Ir ? (ue.verticalizable = !0, Oi.push({ glyph: Ot, imageName: sn, x: Ye, y: Pt + Ki, vertical: Ir, scale: gt.scale, fontStack: gt.fontStack, sectionIndex: Mt, metrics: Gt, rect: No }), Ye += on * gt.scale + fe) : (Oi.push({ glyph: Ot, imageName: sn, x: Ye, y: Pt + Ki, vertical: Ir, scale: gt.scale, fontStack: gt.fontStack, sectionIndex: Mt, metrics: Gt, rect: No }), Ye += Gt.advance * gt.scale + fe);
6344
+ Pr ? (ue.verticalizable = !0, Oi.push({ glyph: Ot, imageName: sn, x: Ye, y: Pt + Ki, vertical: Pr, scale: gt.scale, fontStack: gt.fontStack, sectionIndex: Mt, metrics: Gt, rect: No }), Ye += on * gt.scale + fe) : (Oi.push({ glyph: Ot, imageName: sn, x: Ye, y: Pt + Ki, vertical: Pr, scale: gt.scale, fontStack: gt.fontStack, sectionIndex: Mt, metrics: Gt, rect: No }), Ye += Gt.advance * gt.scale + fe);
6345
6345
  }
6346
- Oi.length !== 0 && (Tt = Math.max(Ye - fe, Tt), sm(Oi, 0, Oi.length - 1, Tr, wi)), Ye = 0;
6346
+ Oi.length !== 0 && (Tt = Math.max(Ye - fe, Tt), sm(Oi, 0, Oi.length - 1, Ir, wi)), Ye = 0;
6347
6347
  const hr = Ce * ai + wi;
6348
6348
  bi.lineOffset = Math.max(wi, Ci), Pt += hr, oi = Math.max(hr, oi), ++vi;
6349
6349
  }
@@ -6354,7 +6354,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6354
6354
  let Ot = 0;
6355
6355
  Ot = wi !== hr ? -Hi * bi - Ya : (-bi * gt + 0.5) * hr;
6356
6356
  for (const Ki of Jt) for (const Gt of Ki.positionedGlyphs) Gt.x += Mt, Gt.y += Ot;
6357
- })(ue.positionedLines, Tr, Bi, Fi, Tt, oi, Ce, Ri, Me.length), ue.top += -Fi * Ri, ue.bottom = ue.top + Ri, ue.left += -Bi * Tt, ue.right = ue.left + Tt;
6357
+ })(ue.positionedLines, Ir, Bi, Fi, Tt, oi, Ce, Ri, Me.length), ue.top += -Fi * Ri, ue.bottom = ue.top + Ri, ue.left += -Bi * Tt, ue.right = ue.left + Tt;
6358
6358
  }(ie, e, r, s, $, p, f, _, I, x, k, R), !function(ue) {
6359
6359
  for (const ye of ue) if (ye.positionedGlyphs.length !== 0) return !1;
6360
6360
  return !0;
@@ -6817,7 +6817,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6817
6817
  if (!hc.hasPaintOverride(this.layout, e)) continue;
6818
6818
  const r = this.paint.get(e), s = new od(r), l = new go(s, r.property.specification);
6819
6819
  let d = null;
6820
- d = r.value.kind === "constant" || r.value.kind === "source" ? new da("source", l) : new pa("composite", l, r.value.zoomStops), this.paint._values[e] = new Sr(r.property, d, r.parameters);
6820
+ d = r.value.kind === "constant" || r.value.kind === "source" ? new da("source", l) : new pa("composite", l, r.value.zoomStops), this.paint._values[e] = new Tr(r.property, d, r.parameters);
6821
6821
  }
6822
6822
  }
6823
6823
  _handleOverridablePaintPropertyUpdate(e, r, s) {
@@ -7353,7 +7353,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7353
7353
  (d.textFitWidth || d.textFitHeight) && (x = td(i)), W = dc(w, 0, fe[0]), Y = dc(I, 0, fe[1]), se = dc(w, fe[0], fe[2]), ie = dc(I, fe[1], fe[3]), ue = fe[0] - W, Le = fe[1] - Y, ye = Ze - se, We = Ue - ie;
7354
7354
  }
7355
7355
  const Me = x.x1, Ce = x.y1, je = x.x2 - Me, Oe = x.y2 - Ce, Be = (fe, Ze, Ue, Ye) => {
7356
- const Pt = pc(fe.stretch - W, se, je, Me), Tt = fc(fe.fixed - ue, ye, fe.stretch, D), oi = pc(Ze.stretch - Y, ie, Oe, Ce), Tr = fc(Ze.fixed - Le, We, Ze.stretch, R), vi = pc(Ue.stretch - W, se, je, Me), Xt = fc(Ue.fixed - ue, ye, Ue.stretch, D), Ri = pc(Ye.stretch - Y, ie, Oe, Ce), Bi = fc(Ye.fixed - Le, We, Ye.stretch, R), Fi = new ae(Pt, oi), Jt = new ae(vi, oi), ai = new ae(vi, Ri), Ci = new ae(Pt, Ri), bi = new ae(Tt / p, Tr / p), Oi = new ae(Xt / p, Bi / p), wi = e * Math.PI / 180;
7356
+ const Pt = pc(fe.stretch - W, se, je, Me), Tt = fc(fe.fixed - ue, ye, fe.stretch, D), oi = pc(Ze.stretch - Y, ie, Oe, Ce), Ir = fc(Ze.fixed - Le, We, Ze.stretch, R), vi = pc(Ue.stretch - W, se, je, Me), Xt = fc(Ue.fixed - ue, ye, Ue.stretch, D), Ri = pc(Ye.stretch - Y, ie, Oe, Ce), Bi = fc(Ye.fixed - Le, We, Ye.stretch, R), Fi = new ae(Pt, oi), Jt = new ae(vi, oi), ai = new ae(vi, Ri), Ci = new ae(Pt, Ri), bi = new ae(Tt / p, Ir / p), Oi = new ae(Xt / p, Bi / p), wi = e * Math.PI / 180;
7357
7357
  if (wi) {
7358
7358
  const gt = Math.sin(wi), Mt = Math.cos(wi), Ot = [Mt, -gt, gt, Mt];
7359
7359
  Fi._matMult(Ot), Jt._matMult(Ot), Ci._matMult(Ot), ai._matMult(Ot);
@@ -7599,9 +7599,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7599
7599
  let Oe;
7600
7600
  s && je !== "none" && (i.allowVerticalPlacement && r.vertical && (Oe = id(s, r.vertical, je, k.get("icon-text-fit-padding"), D, F)), R && (s = id(s, R, je, k.get("icon-text-fit-padding"), D, F)));
7601
7601
  const Be = (fe, Ze) => {
7602
- Ze.x < 0 || Ze.x >= ti || Ze.y < 0 || Ze.y >= ti || function(Ue, Ye, Pt, Tt, oi, Tr, vi, Xt, Ri, Bi, Fi, Jt, ai, Ci, bi, Oi, wi, hr, Hi, gt, Mt, Ot, Ki, Gt, No) {
7602
+ Ze.x < 0 || Ze.x >= ti || Ze.y < 0 || Ze.y >= ti || function(Ue, Ye, Pt, Tt, oi, Ir, vi, Xt, Ri, Bi, Fi, Jt, ai, Ci, bi, Oi, wi, hr, Hi, gt, Mt, Ot, Ki, Gt, No) {
7603
7603
  const sn = Ue.addToLineVertexArray(Ye, Pt);
7604
- let on, Ir, ur, ci, kn = 0, nl = 0, Fd = 0, Od = 0, Bh = -1, Fh = -1;
7604
+ let on, Pr, ur, ci, kn = 0, nl = 0, Fd = 0, Od = 0, Bh = -1, Fh = -1;
7605
7605
  const En = {};
7606
7606
  let Vd = Co("");
7607
7607
  if (Ue.allowVerticalPlacement && Tt.vertical) {
@@ -7610,7 +7610,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7610
7610
  }
7611
7611
  if (oi) {
7612
7612
  const ki = Xt.layout.get("icon-rotate").evaluate(Mt, {}), dr = Xt.layout.get("icon-text-fit") !== "none", Vs = Cd(oi, ki, Ki, dr), Or = vi ? Cd(vi, ki, Ki, dr) : void 0;
7613
- Ir = new mc(Ri, Ye, Bi, Fi, Jt, oi, wi, hr, !1, ki), kn = 4 * Vs.length;
7613
+ Pr = new mc(Ri, Ye, Bi, Fi, Jt, oi, wi, hr, !1, ki), kn = 4 * Vs.length;
7614
7614
  const Ns = Ue.iconSizeData;
7615
7615
  let an = null;
7616
7616
  Ns.kind === "source" ? (an = [nn * Xt.layout.get("icon-size").evaluate(Mt, {})], an[0] > ts && hi(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)) : Ns.kind === "composite" && (an = [nn * Ot.compositeIconSizes[0].evaluate(Mt, {}, Gt), nn * Ot.compositeIconSizes[1].evaluate(Mt, {}, Gt)], (an[0] > ts || an[1] > ts) && hi(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)), Ue.addSymbols(Ue.icon, Vs, an, gt, Hi, Mt, T.ai.none, Ye, sn.lineStartIndex, sn.lineLength, -1, Gt), Bh = Ue.icon.placedSymbolArray.length - 1, Or && (nl = 4 * Or.length, Ue.addSymbols(Ue.icon, Or, an, gt, Hi, Mt, T.ai.vertical, Ye, sn.lineStartIndex, sn.lineLength, -1, Gt), Fh = Ue.icon.placedSymbolArray.length - 1);
@@ -7624,13 +7624,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7624
7624
  on = new mc(Ri, Ye, Bi, Fi, Jt, dr, ai, Ci, bi, Or);
7625
7625
  }
7626
7626
  const Vs = dr.positionedLines.length === 1;
7627
- if (Fd += zd(Ue, Ye, dr, Tr, Xt, bi, Mt, Oi, sn, Tt.vertical ? T.ai.horizontal : T.ai.horizontalOnly, Vs ? Nd : [ki], En, Bh, Ot, Gt), Vs) break;
7627
+ if (Fd += zd(Ue, Ye, dr, Ir, Xt, bi, Mt, Oi, sn, Tt.vertical ? T.ai.horizontal : T.ai.horizontalOnly, Vs ? Nd : [ki], En, Bh, Ot, Gt), Vs) break;
7628
7628
  }
7629
- Tt.vertical && (Od += zd(Ue, Ye, Tt.vertical, Tr, Xt, bi, Mt, Oi, sn, T.ai.vertical, ["vertical"], En, Fh, Ot, Gt));
7630
- const Im = on ? on.boxStartIndex : Ue.collisionBoxArray.length, Pm = on ? on.boxEndIndex : Ue.collisionBoxArray.length, Am = ur ? ur.boxStartIndex : Ue.collisionBoxArray.length, Cm = ur ? ur.boxEndIndex : Ue.collisionBoxArray.length, km = Ir ? Ir.boxStartIndex : Ue.collisionBoxArray.length, Em = Ir ? Ir.boxEndIndex : Ue.collisionBoxArray.length, Mm = ci ? ci.boxStartIndex : Ue.collisionBoxArray.length, zm = ci ? ci.boxEndIndex : Ue.collisionBoxArray.length;
7629
+ Tt.vertical && (Od += zd(Ue, Ye, Tt.vertical, Ir, Xt, bi, Mt, Oi, sn, T.ai.vertical, ["vertical"], En, Fh, Ot, Gt));
7630
+ const Im = on ? on.boxStartIndex : Ue.collisionBoxArray.length, Pm = on ? on.boxEndIndex : Ue.collisionBoxArray.length, Am = ur ? ur.boxStartIndex : Ue.collisionBoxArray.length, Cm = ur ? ur.boxEndIndex : Ue.collisionBoxArray.length, km = Pr ? Pr.boxStartIndex : Ue.collisionBoxArray.length, Em = Pr ? Pr.boxEndIndex : Ue.collisionBoxArray.length, Mm = ci ? ci.boxStartIndex : Ue.collisionBoxArray.length, zm = ci ? ci.boxEndIndex : Ue.collisionBoxArray.length;
7631
7631
  let Fr = -1;
7632
7632
  const _c = (ki, dr) => ki && ki.circleDiameter ? Math.max(ki.circleDiameter, dr) : dr;
7633
- Fr = _c(on, Fr), Fr = _c(ur, Fr), Fr = _c(Ir, Fr), Fr = _c(ci, Fr);
7633
+ Fr = _c(on, Fr), Fr = _c(ur, Fr), Fr = _c(Pr, Fr), Fr = _c(ci, Fr);
7634
7634
  const Ud = Fr > -1 ? 1 : 0;
7635
7635
  Ud && (Fr *= No / ni), Ue.glyphOffsetArray.length >= Fo.MAX_GLYPHS && hi("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Mt.sortKey !== void 0 && Ue.addToSortKeyRanges(Ue.symbolInstances.length, Mt.sortKey);
7636
7636
  const Dm = Md(Xt, Mt, Gt), [Lm, Rm] = function(ki, dr) {
@@ -7672,7 +7672,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7672
7672
  const gt = We[Be.imageName];
7673
7673
  Ue = gt.sdf, Ye = gt.pixelRatio, Ze = Gi / Ye;
7674
7674
  }
7675
- const Tr = ye ? [Be.x + oi, Be.y] : [0, 0];
7675
+ const Ir = ye ? [Be.x + oi, Be.y] : [0, 0];
7676
7676
  let vi = ye ? [0, 0] : [Be.x + oi + ie[0], Be.y + ie[1] - Pt], Xt = [0, 0];
7677
7677
  Tt && (Xt = vi, vi = [0, 0]);
7678
7678
  const Ri = Be.metrics.isDoubleResolution ? 2 : 1, Bi = (Be.metrics.left - Ze) * Be.scale - oi + vi[0], Fi = (-Be.metrics.top - Ze) * Be.scale + vi[1], Jt = Bi + fe.w / Ri * Be.scale / Ye, ai = Fi + fe.h / Ri * Be.scale / Ye, Ci = new ae(Bi, Fi), bi = new ae(Jt, Fi), Oi = new ae(Bi, ai), wi = new ae(Jt, ai);
@@ -7685,7 +7685,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7685
7685
  Ci._matMult(Ot), bi._matMult(Ot), Oi._matMult(Ot), wi._matMult(Ot);
7686
7686
  }
7687
7687
  const hr = new ae(0, 0), Hi = new ae(0, 0);
7688
- je.push({ tl: Ci, tr: bi, bl: Oi, br: wi, tex: fe, writingMode: Y.writingMode, glyphOffset: Tr, sectionIndex: Be.sectionIndex, isSDF: Ue, pixelOffsetTL: hr, pixelOffsetBR: Hi, minFontScaleX: 0, minFontScaleY: 0 });
7688
+ je.push({ tl: Ci, tr: bi, bl: Oi, br: wi, tex: fe, writingMode: Y.writingMode, glyphOffset: Ir, sectionIndex: Be.sectionIndex, isSDF: Ue, pixelOffsetTL: hr, pixelOffsetBR: Hi, minFontScaleX: 0, minFontScaleY: 0 });
7689
7689
  }
7690
7690
  return je;
7691
7691
  }(0, r, f, l, d, p, s, i.allowVerticalPlacement), $ = i.textSizeData;
@@ -7865,10 +7865,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7865
7865
  return c(this, void 0, void 0, function* () {
7866
7866
  if (e.type === "<response>") {
7867
7867
  const l = this.resolveRejects[i];
7868
- return delete this.resolveRejects[i], l ? void (e.error ? l.reject(wr(e.error)) : l.resolve(wr(e.data))) : void 0;
7868
+ return delete this.resolveRejects[i], l ? void (e.error ? l.reject(Sr(e.error)) : l.resolve(Sr(e.data))) : void 0;
7869
7869
  }
7870
7870
  if (!this.messageHandlers[e.type]) return void this.completeTask(i, new Error(`Could not find a registered handler for ${e.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));
7871
- const r = wr(e.data), s = new AbortController();
7871
+ const r = Sr(e.data), s = new AbortController();
7872
7872
  this.abortControllers[i] = s;
7873
7873
  try {
7874
7874
  const l = yield this.messageHandlers[e.type](e.sourceMapId, r, s);
@@ -8086,7 +8086,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8086
8086
  }
8087
8087
  }
8088
8088
  return i;
8089
- }, T.ay = $l, T.az = tr, T.b = fr, T.b0 = function(i, e) {
8089
+ }, T.ay = $l, T.az = tr, T.b = mr, T.b0 = function(i, e) {
8090
8090
  return i[0] = e[0], i[1] = e[1], i[2] = e[2], i[3] = e[3], i[4] = e[4], i[5] = e[5], i[6] = e[6], i[7] = e[7], i[8] = e[8], i[9] = e[9], i[10] = e[10], i[11] = e[11], i[12] = e[12], i[13] = e[13], i[14] = e[14], i[15] = e[15], i;
8091
8091
  }, T.b1 = function(i, e, r) {
8092
8092
  return i[0] = e[0] * r[0], i[1] = e[1] * r[1], i[2] = e[2] * r[2], i[3] = e[3] * r[3], i;
@@ -8210,7 +8210,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8210
8210
  }, s.onerror = () => r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
8211
8211
  const l = new Blob([new Uint8Array(i)], { type: "image/png" });
8212
8212
  s.src = i.byteLength ? URL.createObjectURL(l) : Gs;
8213
- }), T.g = mr, T.h = (i, e) => dn($t(i, { type: "json" }), e), T.i = Ar, T.j = Zr, T.k = qr, T.l = (i, e) => dn($t(i, { type: "arrayBuffer" }), e), T.m = dn, T.n = function(i) {
8213
+ }), T.g = gr, T.h = (i, e) => dn($t(i, { type: "json" }), e), T.i = Ar, T.j = Zr, T.k = qr, T.l = (i, e) => dn($t(i, { type: "arrayBuffer" }), e), T.m = dn, T.n = function(i) {
8214
8214
  return new fh(i).readFields(Qf, []);
8215
8215
  }, T.o = Za, T.p = Xu, T.q = o, T.r = Gc, T.s = pn, T.t = Ma, T.u = ze, T.v = he, T.w = hi, T.x = Rr, T.y = function([i, e, r]) {
8216
8216
  return e += 90, e *= Math.PI / 180, r *= Math.PI / 180, { x: i * Math.cos(e) * Math.sin(r), y: i * Math.sin(e) * Math.sin(r), z: i * Math.cos(r) };
@@ -8526,7 +8526,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8526
8526
  for (var O in G) M[O] = new Ur(G[O].features, z), M[O].name = O, M[O].version = z.version, M[O].extent = z.extent;
8527
8527
  return Si({ layers: M });
8528
8528
  }, pt.exports.GeoJSONWrapper = Ur;
8529
- var fr = T.bx(pt.exports);
8529
+ var mr = T.bx(pt.exports);
8530
8530
  const Gs = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (G) => G }, un = Math.fround || (Cr = new Float32Array(1), (G) => (Cr[0] = +G, Cr[0]));
8531
8531
  var Cr;
8532
8532
  const Ei = 3, er = 5, Dn = 6;
@@ -8567,7 +8567,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8567
8567
  const re = this.trees[this._limitZoom(M)], J = re.range(Vi(O), tr(te), Vi(Q), tr(q)), de = re.data, ge = [];
8568
8568
  for (const ce of J) {
8569
8569
  const Ie = this.stride * ce;
8570
- ge.push(de[Ie + er] > 1 ? mr(de, Ie, this.clusterProps) : this.points[de[Ie + Ei]]);
8570
+ ge.push(de[Ie + er] > 1 ? gr(de, Ie, this.clusterProps) : this.points[de[Ie + Ei]]);
8571
8571
  }
8572
8572
  return ge;
8573
8573
  }
@@ -8579,7 +8579,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8579
8579
  const re = this.options.radius / (this.options.extent * Math.pow(2, O - 1)), J = Q.within(te[M * this.stride], te[M * this.stride + 1], re), de = [];
8580
8580
  for (const ge of J) {
8581
8581
  const ce = ge * this.stride;
8582
- te[ce + 4] === z && de.push(te[ce + er] > 1 ? mr(te, ce, this.clusterProps) : this.points[te[ce + Ei]]);
8582
+ te[ce + 4] === z && de.push(te[ce + er] > 1 ? gr(te, ce, this.clusterProps) : this.points[te[ce + Ei]]);
8583
8583
  }
8584
8584
  if (de.length === 0) throw new Error(q);
8585
8585
  return de;
@@ -8683,7 +8683,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8683
8683
  return O && Q === q ? Object.assign({}, Q) : Q;
8684
8684
  }
8685
8685
  }
8686
- function mr(G, z, M) {
8686
+ function gr(G, z, M) {
8687
8687
  return { type: "Feature", id: G[z + Ei], properties: Ln(G, z, M), geometry: { type: "Point", coordinates: [(O = G[z], 360 * (O - 0.5)), dn(G[z + 1])] } };
8688
8688
  var O;
8689
8689
  }
@@ -8866,15 +8866,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8866
8866
  for (let O = 0; O < G.length; O++) {
8867
8867
  const q = G[O], Q = q.type;
8868
8868
  let te;
8869
- if (Q === "Point" || Q === "MultiPoint" || Q === "LineString") te = gr(q.geometry, z);
8869
+ if (Q === "Point" || Q === "MultiPoint" || Q === "LineString") te = _r(q.geometry, z);
8870
8870
  else if (Q === "MultiLineString" || Q === "Polygon") {
8871
8871
  te = [];
8872
- for (const re of q.geometry) te.push(gr(re, z));
8872
+ for (const re of q.geometry) te.push(_r(re, z));
8873
8873
  } else if (Q === "MultiPolygon") {
8874
8874
  te = [];
8875
8875
  for (const re of q.geometry) {
8876
8876
  const J = [];
8877
- for (const de of re) J.push(gr(de, z));
8877
+ for (const de of re) J.push(_r(de, z));
8878
8878
  te.push(J);
8879
8879
  }
8880
8880
  }
@@ -8882,7 +8882,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8882
8882
  }
8883
8883
  return M;
8884
8884
  }
8885
- function gr(G, z) {
8885
+ function _r(G, z) {
8886
8886
  const M = [];
8887
8887
  M.size = G.size, G.start !== void 0 && (M.start = G.start, M.end = G.end);
8888
8888
  for (let O = 0; O < G.length; O += 3) M.push(G[O] + z, G[O + 1], G[O + 2]);
@@ -8893,16 +8893,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8893
8893
  const M = 1 << G.z, O = G.x, q = G.y;
8894
8894
  for (const Q of G.features) {
8895
8895
  const te = Q.geometry, re = Q.type;
8896
- if (Q.geometry = [], re === 1) for (let J = 0; J < te.length; J += 2) Q.geometry.push(_r(te[J], te[J + 1], z, M, O, q));
8896
+ if (Q.geometry = [], re === 1) for (let J = 0; J < te.length; J += 2) Q.geometry.push(yr(te[J], te[J + 1], z, M, O, q));
8897
8897
  else for (let J = 0; J < te.length; J++) {
8898
8898
  const de = [];
8899
- for (let ge = 0; ge < te[J].length; ge += 2) de.push(_r(te[J][ge], te[J][ge + 1], z, M, O, q));
8899
+ for (let ge = 0; ge < te[J].length; ge += 2) de.push(yr(te[J][ge], te[J][ge + 1], z, M, O, q));
8900
8900
  Q.geometry.push(de);
8901
8901
  }
8902
8902
  }
8903
8903
  return G.transformed = !0, G;
8904
8904
  }
8905
- function _r(G, z, M, O, q, Q) {
8905
+ function yr(G, z, M, O, q, Q) {
8906
8906
  return [Math.round(M * (G * O - q)), Math.round(M * (z * O - Q))];
8907
8907
  }
8908
8908
  function Hr(G, z, M, O, q) {
@@ -9011,7 +9011,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9011
9011
  function it(G, z) {
9012
9012
  return z ? G.properties[z] : G.id;
9013
9013
  }
9014
- function yr(G, z) {
9014
+ function xr(G, z) {
9015
9015
  if (G == null) return !0;
9016
9016
  if (G.type === "Feature") return it(G, z) != null;
9017
9017
  if (G.type === "FeatureCollection") {
@@ -9072,7 +9072,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9072
9072
  }(this._features[re]);
9073
9073
  }
9074
9074
  }(q.features);
9075
- let te = fr(Q);
9075
+ let te = mr(Q);
9076
9076
  return te.byteOffset === 0 && te.byteLength === te.buffer.byteLength || (te = new Uint8Array(te)), { vectorTile: Q, rawData: te.buffer };
9077
9077
  });
9078
9078
  }
@@ -9139,11 +9139,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9139
9139
  const { promoteId: O } = z;
9140
9140
  if (z.request) {
9141
9141
  const q = yield T.h(z.request, M);
9142
- return this._dataUpdateable = yr(q.data, O) ? Mr(q.data, O) : void 0, q.data;
9142
+ return this._dataUpdateable = xr(q.data, O) ? Mr(q.data, O) : void 0, q.data;
9143
9143
  }
9144
9144
  if (typeof z.data == "string") try {
9145
9145
  const q = JSON.parse(z.data);
9146
- return this._dataUpdateable = yr(q, O) ? Mr(q, O) : void 0, q;
9146
+ return this._dataUpdateable = xr(q, O) ? Mr(q, O) : void 0, q;
9147
9147
  } catch {
9148
9148
  throw new Error(`Input data given to '${z.source}' is not a valid GeoJSON object.`);
9149
9149
  }
@@ -9182,7 +9182,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9182
9182
  return this._geoJSONIndex.getLeaves(z.clusterId, z.limit, z.offset);
9183
9183
  }
9184
9184
  }
9185
- class xr {
9185
+ class vr {
9186
9186
  constructor(z) {
9187
9187
  this.self = z, this.actor = new T.F(z), this.layerIndexes = {}, this.availableImages = {}, this.workerSources = {}, this.demWorkerSources = {}, this.externalWorkerSourceTypes = {}, this.self.registerWorkerSource = (M, O) => {
9188
9188
  if (this.externalWorkerSourceTypes[M]) throw new Error(`Worker source with name "${M}" already registered.`);
@@ -9263,7 +9263,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9263
9263
  return this.demWorkerSources[z] || (this.demWorkerSources[z] = {}), this.demWorkerSources[z][M] || (this.demWorkerSources[z][M] = new oe()), this.demWorkerSources[z][M];
9264
9264
  }
9265
9265
  }
9266
- return T.i(self) && (self.worker = new xr(self)), xr;
9266
+ return T.i(self) && (self.worker = new vr(self)), vr;
9267
9267
  }), V("index", ["exports", "./shared"], function(T, c) {
9268
9268
  var _e = "4.5.2";
9269
9269
  let xe, ve;
@@ -9619,7 +9619,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9619
9619
  u[t + y * n] = a[b] + P * P;
9620
9620
  }
9621
9621
  }
9622
- class fr {
9622
+ class mr {
9623
9623
  constructor(t, n) {
9624
9624
  this.requestManager = t, this.localIdeographFontFamily = n, this.entries = {};
9625
9625
  }
@@ -9647,7 +9647,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9647
9647
  if (o.ranges[h]) return { stack: t, id: n, glyph: a };
9648
9648
  if (!this.url) throw new Error("glyphsUrl is not set");
9649
9649
  if (!o.requests[h]) {
9650
- const y = fr.loadGlyphRange(t, h, this.url, this.requestManager);
9650
+ const y = mr.loadGlyphRange(t, h, this.url, this.requestManager);
9651
9651
  o.requests[h] = y;
9652
9652
  }
9653
9653
  const m = yield o.requests[h];
@@ -9664,13 +9664,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9664
9664
  let h = t.tinySDF;
9665
9665
  if (!h) {
9666
9666
  let y = "400";
9667
- /bold/i.test(n) ? y = "900" : /medium/i.test(n) ? y = "500" : /light/i.test(n) && (y = "200"), h = t.tinySDF = new fr.TinySDF({ fontSize: 48, buffer: 6, radius: 16, cutoff: 0.25, fontFamily: a, fontWeight: y });
9667
+ /bold/i.test(n) ? y = "900" : /medium/i.test(n) ? y = "500" : /light/i.test(n) && (y = "200"), h = t.tinySDF = new mr.TinySDF({ fontSize: 48, buffer: 6, radius: 16, cutoff: 0.25, fontFamily: a, fontWeight: y });
9668
9668
  }
9669
9669
  const m = h.draw(String.fromCharCode(o));
9670
9670
  return { id: o, bitmap: new c.o({ width: m.width || 60, height: m.height || 60 }, m.data), metrics: { width: m.glyphWidth / 2 || 24, height: m.glyphHeight / 2 || 24, left: m.glyphLeft / 2 + 0.5 || 0, top: m.glyphTop / 2 - 27.5 || -8, advance: m.glyphAdvance / 2 || 24, isDoubleResolution: !0 } };
9671
9671
  }
9672
9672
  }
9673
- fr.loadGlyphRange = function(u, t, n, o) {
9673
+ mr.loadGlyphRange = function(u, t, n, o) {
9674
9674
  return c._(this, void 0, void 0, function* () {
9675
9675
  const a = 256 * t, h = a + 255, m = o.transformRequest(n.replace("{fontstack}", u).replace("{range}", `${a}-${h}`), "Glyphs"), y = yield c.l(m, new AbortController());
9676
9676
  if (!y || !y.data) throw new Error(`Could not load glyph range. range: ${t}, ${a}-${h}`);
@@ -9678,7 +9678,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9678
9678
  for (const b of c.n(y.data)) v[b.id] = b;
9679
9679
  return v;
9680
9680
  });
9681
- }, fr.TinySDF = class {
9681
+ }, mr.TinySDF = class {
9682
9682
  constructor({ fontSize: u = 24, buffer: t = 3, radius: n = 8, cutoff: o = 0.25, fontFamily: a = "sans-serif", fontWeight: h = "normal", fontStyle: m = "normal" } = {}) {
9683
9683
  this.buffer = t, this.cutoff = o, this.radius = n;
9684
9684
  const y = this.size = u + 4 * t, v = this._createCanvas(y), b = this.ctx = v.getContext("2d", { willReadFrequently: !0 });
@@ -9852,12 +9852,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9852
9852
  }
9853
9853
  }
9854
9854
  const $r = "maplibre_preloaded_worker_pool";
9855
- class mr {
9855
+ class gr {
9856
9856
  constructor() {
9857
9857
  this.active = {};
9858
9858
  }
9859
9859
  acquire(t) {
9860
- if (!this.workers) for (this.workers = []; this.workers.length < mr.workerCount; ) this.workers.push(new Worker(c.a.WORKER_URL));
9860
+ if (!this.workers) for (this.workers = []; this.workers.length < gr.workerCount; ) this.workers.push(new Worker(c.a.WORKER_URL));
9861
9861
  return this.active[t] = !0, this.workers.slice();
9862
9862
  }
9863
9863
  release(t) {
@@ -9875,9 +9875,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9875
9875
  const Ln = Math.floor(ae.hardwareConcurrency / 2);
9876
9876
  let Vi, tr;
9877
9877
  function dn() {
9878
- return Vi || (Vi = new mr()), Vi;
9878
+ return Vi || (Vi = new gr()), Vi;
9879
9879
  }
9880
- mr.workerCount = c.C(globalThis) ? Math.max(Math.min(Ln, 3), 1) : 1;
9880
+ gr.workerCount = c.C(globalThis) ? Math.max(Math.min(Ln, 3), 1) : 1;
9881
9881
  class pn {
9882
9882
  constructor(t, n) {
9883
9883
  this.workerPool = t, this.actors = [], this.currentActor = 0, this.id = n;
@@ -10524,7 +10524,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10524
10524
  }
10525
10525
  return cs[u];
10526
10526
  }, Te = "RTLPluginLoaded";
10527
- class gr extends c.E {
10527
+ class _r extends c.E {
10528
10528
  constructor() {
10529
10529
  super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = os();
10530
10530
  }
@@ -10559,8 +10559,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10559
10559
  }
10560
10560
  }
10561
10561
  let Ii = null;
10562
- function _r() {
10563
- return Ii || (Ii = new gr()), Ii;
10562
+ function yr() {
10563
+ return Ii || (Ii = new _r()), Ii;
10564
10564
  }
10565
10565
  class Hr {
10566
10566
  constructor(t, n) {
@@ -10600,7 +10600,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10600
10600
  if (this.hasRTLText = !1, this.hasSymbolBuckets) for (const a in this.buckets) {
10601
10601
  const h = this.buckets[a];
10602
10602
  if (h instanceof c.a6 && h.hasRTLText) {
10603
- this.hasRTLText = !0, _r().lazyLoad();
10603
+ this.hasRTLText = !0, yr().lazyLoad();
10604
10604
  break;
10605
10605
  }
10606
10606
  }
@@ -11216,7 +11216,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11216
11216
  return this.points[h].mult(1 - v).add(this.points[n].mult(v));
11217
11217
  }
11218
11218
  }
11219
- function yr(u, t) {
11219
+ function xr(u, t) {
11220
11220
  let n = !0;
11221
11221
  return u === "always" || u !== "never" && t !== "never" || (n = !1), n;
11222
11222
  }
@@ -11274,7 +11274,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11274
11274
  for (const Z of L) if (!b.box[Z]) {
11275
11275
  b.box[Z] = !0;
11276
11276
  const j = 4 * Z, H = this.boxKeys[Z];
11277
- if (t <= N[j + 2] && n <= N[j + 3] && o >= N[j + 0] && a >= N[j + 1] && (!v || v(H)) && (!P || !yr(A, H.overlapMode)) && (m.push({ key: H, x1: N[j], y1: N[j + 1], x2: N[j + 2], y2: N[j + 3] }), P)) return !0;
11277
+ if (t <= N[j + 2] && n <= N[j + 3] && o >= N[j + 0] && a >= N[j + 1] && (!v || v(H)) && (!P || !xr(A, H.overlapMode)) && (m.push({ key: H, x1: N[j], y1: N[j + 1], x2: N[j + 2], y2: N[j + 3] }), P)) return !0;
11278
11278
  }
11279
11279
  }
11280
11280
  const B = this.circleCells[h];
@@ -11283,7 +11283,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11283
11283
  for (const Z of B) if (!b.circle[Z]) {
11284
11284
  b.circle[Z] = !0;
11285
11285
  const j = 3 * Z, H = this.circleKeys[Z];
11286
- if (this._circleAndRectCollide(N[j], N[j + 1], N[j + 2], t, n, o, a) && (!v || v(H)) && (!P || !yr(A, H.overlapMode))) {
11286
+ if (this._circleAndRectCollide(N[j], N[j + 1], N[j + 2], t, n, o, a) && (!v || v(H)) && (!P || !xr(A, H.overlapMode))) {
11287
11287
  const K = N[j], U = N[j + 1], ee = N[j + 2];
11288
11288
  if (m.push({ key: H, x1: K - ee, y1: U - ee, x2: K + ee, y2: U + ee }), P) return !0;
11289
11289
  }
@@ -11298,7 +11298,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11298
11298
  for (const Z of L) if (!P.box[Z]) {
11299
11299
  P.box[Z] = !0;
11300
11300
  const j = 4 * Z, H = this.boxKeys[Z];
11301
- if (this._circleAndRectCollide(b.x, b.y, b.radius, N[j + 0], N[j + 1], N[j + 2], N[j + 3]) && (!v || v(H)) && !yr(A, H.overlapMode)) return m.push(!0), !0;
11301
+ if (this._circleAndRectCollide(b.x, b.y, b.radius, N[j + 0], N[j + 1], N[j + 2], N[j + 3]) && (!v || v(H)) && !xr(A, H.overlapMode)) return m.push(!0), !0;
11302
11302
  }
11303
11303
  }
11304
11304
  const B = this.circleCells[h];
@@ -11307,7 +11307,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11307
11307
  for (const Z of B) if (!P.circle[Z]) {
11308
11308
  P.circle[Z] = !0;
11309
11309
  const j = 3 * Z, H = this.circleKeys[Z];
11310
- if (this._circlesCollide(N[j], N[j + 1], N[j + 2], b.x, b.y, b.radius) && (!v || v(H)) && !yr(A, H.overlapMode)) return m.push(!0), !0;
11310
+ if (this._circlesCollide(N[j], N[j + 1], N[j + 2], b.x, b.y, b.radius) && (!v || v(H)) && !xr(A, H.overlapMode)) return m.push(!0), !0;
11311
11311
  }
11312
11312
  }
11313
11313
  }
@@ -11339,7 +11339,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11339
11339
  const h = c.H();
11340
11340
  return t ? (c.K(h, h, [1 / a, 1 / a, 1]), n || c.ae(h, h, o.angle)) : c.L(h, o.labelPlaneMatrix, u), h;
11341
11341
  }
11342
- function xr(u, t, n, o, a) {
11342
+ function vr(u, t, n, o, a) {
11343
11343
  if (t) {
11344
11344
  const h = c.af(u);
11345
11345
  return c.K(h, h, [a, a, 1]), n || c.ae(h, h, -o.angle), h;
@@ -11661,7 +11661,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11661
11661
  const y = o.collisionBoxArray, v = h.layers[0].layout, b = h.layers[0].paint, P = Math.pow(2, this.transform.zoom - o.tileID.overscaledZ), A = o.tileSize / c.X, L = o.tileID.toUnwrapped(), B = this.transform.calculatePosMatrix(L), N = v.get("text-pitch-alignment") === "map", Z = v.get("text-rotation-alignment") === "map", j = rt(o, 1, this.transform.zoom), H = this.collisionIndex.mapProjection.translatePosition(this.transform, o, b.get("text-translate"), b.get("text-translate-anchor")), K = this.collisionIndex.mapProjection.translatePosition(this.transform, o, b.get("icon-translate"), b.get("icon-translate-anchor")), U = Wr(B, N, Z, this.transform, j);
11662
11662
  let ee = null;
11663
11663
  if (N) {
11664
- const le = xr(B, N, Z, this.transform, j);
11664
+ const le = vr(B, N, Z, this.transform, j);
11665
11665
  ee = c.L([], this.transform.labelPlaneMatrix, le);
11666
11666
  }
11667
11667
  this.retainedQueryData[h.bucketInstanceId] = new vt(h.bucketInstanceId, m, h.sourceLayerIndex, h.index, o.tileID);
@@ -12105,7 +12105,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12105
12105
  const a = this.sourceCaches[o].getSource().type;
12106
12106
  a !== "vector" && a !== "geojson" || this.sourceCaches[o].reload();
12107
12107
  }
12108
- }, this.map = t, this.dispatcher = new pn(dn(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", (o, a) => this.getGlyphs(o, a)), this.dispatcher.registerMessageHandler("GI", (o, a) => this.getImages(o, a)), this.imageManager = new hi(), this.imageManager.setEventedParent(this), this.glyphManager = new fr(t._requestManager, n.localIdeographFontFamily), this.lineAtlas = new Dn(256, 512), this.crossTileSymbolIndex = new Xi(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new c.ay(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", c.az()), _r().on(Te, this._rtlPluginLoaded), this.on("data", (o) => {
12108
+ }, this.map = t, this.dispatcher = new pn(dn(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", (o, a) => this.getGlyphs(o, a)), this.dispatcher.registerMessageHandler("GI", (o, a) => this.getImages(o, a)), this.imageManager = new hi(), this.imageManager.setEventedParent(this), this.glyphManager = new mr(t._requestManager, n.localIdeographFontFamily), this.lineAtlas = new Dn(256, 512), this.crossTileSymbolIndex = new Xi(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new c.ay(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", c.az()), yr().on(Te, this._rtlPluginLoaded), this.on("data", (o) => {
12109
12109
  if (o.dataType !== "source" || o.sourceDataType !== "metadata") return;
12110
12110
  const a = this.sourceCaches[o.sourceId];
12111
12111
  if (!a) return;
@@ -12632,7 +12632,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12632
12632
  return (!h || h.validate !== !1) && ps(this, t.call(c.x, c.e({ key: n, style: this.serialize(), value: o, styleSpec: c.v }, a)));
12633
12633
  }
12634
12634
  _remove(t = !0) {
12635
- this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), _r().off(Te, this._rtlPluginLoaded);
12635
+ this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), yr().off(Te, this._rtlPluginLoaded);
12636
12636
  for (const n in this._layers) this._layers[n].setEventedParent(null);
12637
12637
  for (const n in this.sourceCaches) {
12638
12638
  const o = this.sourceCaches[n];
@@ -13471,7 +13471,7 @@ uniform ${P} ${A} u_${L};
13471
13471
  }
13472
13472
  }
13473
13473
  const Jo = { Int8: "BYTE", Uint8: "UNSIGNED_BYTE", Int16: "SHORT", Uint16: "UNSIGNED_SHORT", Int32: "INT", Uint32: "UNSIGNED_INT", Float32: "FLOAT" };
13474
- class vr {
13474
+ class br {
13475
13475
  constructor(t, n, o, a) {
13476
13476
  this.length = n.length, this.attributes = o, this.itemSize = n.bytesPerElement, this.dynamicDraw = a, this.context = t;
13477
13477
  const h = t.gl;
@@ -13892,7 +13892,7 @@ uniform ${P} ${A} u_${L};
13892
13892
  return new Xo(this, t, n);
13893
13893
  }
13894
13894
  createVertexBuffer(t, n, o) {
13895
- return new vr(this, t, n, o);
13895
+ return new br(this, t, n, o);
13896
13896
  }
13897
13897
  createRenderbuffer(t, n, o) {
13898
13898
  const a = this.gl, h = a.createRenderbuffer();
@@ -14054,7 +14054,7 @@ uniform ${P} ${A} u_${L};
14054
14054
  const jt = n.layout.get("icon-size").constantOr(0) !== 1 || Ve.iconsNeedLinear;
14055
14055
  sr = Se.imageAtlasTexture, Ft = Ee || u.options.rotating || u.options.zooming || jt || Rt ? B.LINEAR : B.NEAREST, fi = Se.imageAtlasTexture.size;
14056
14056
  }
14057
- const gi = rt(Se, 1, u.transform.zoom), or = ee ? we.posMatrix : sa, In = Wr(or, H, j, u.transform, gi), To = xr(or, H, j, u.transform, gi), Wn = xr(we.posMatrix, H, j, u.transform, gi), Pn = Z.translatePosition(u.transform, Se, h, m), Io = be && Ve.hasTextData(), Fa = n.layout.get("icon-text-fit") !== "none" && Io && Ve.hasIconData();
14057
+ const gi = rt(Se, 1, u.transform.zoom), or = ee ? we.posMatrix : sa, In = Wr(or, H, j, u.transform, gi), To = vr(or, H, j, u.transform, gi), Wn = vr(we.posMatrix, H, j, u.transform, gi), Pn = Z.translatePosition(u.transform, Se, h, m), Io = be && Ve.hasTextData(), Fa = n.layout.get("icon-text-fit") !== "none" && Io && Ve.hasIconData();
14058
14058
  if (K) {
14059
14059
  const jt = u.style.map.terrain ? (Oa, ri) => u.style.map.terrain.getElevation(we, Oa, ri) : null, Jn = n.layout.get("text-rotation-alignment") === "map";
14060
14060
  O(Ve, we.posMatrix, u, a, In, Wn, H, b, Jn, Z, we.toUnwrapped(), N.width, N.height, Pn, jt);
@@ -16464,7 +16464,7 @@ uniform ${P} ${A} u_${L};
16464
16464
  o !== this._attribHTML && (this._attribHTML = o, t.length ? (this._innerContainer.innerHTML = o, this._container.classList.remove("maplibregl-attrib-empty")) : this._container.classList.add("maplibregl-attrib-empty"), this._updateCompact(), this._editLink = null);
16465
16465
  }
16466
16466
  }
16467
- class br {
16467
+ class wr {
16468
16468
  constructor(t = {}) {
16469
16469
  this._updateCompact = () => {
16470
16470
  const n = this._container.children;
@@ -16702,7 +16702,7 @@ uniform ${P} ${A} u_${L};
16702
16702
  return !(this._objects.length < this._size) && this._objects.some((t) => !t.inUse) === !1;
16703
16703
  }
16704
16704
  }
16705
- const wr = { background: !0, fill: !0, line: !0, raster: !0, hillshade: !0 };
16705
+ const Sr = { background: !0, fill: !0, line: !0, raster: !0, hillshade: !0 };
16706
16706
  class $l {
16707
16707
  constructor(t, n) {
16708
16708
  this.painter = t, this.terrain = n, this.pool = new zs(t.context, 30, n.sourceCache.tileSize * n.qualityFactor);
@@ -16726,7 +16726,7 @@ uniform ${P} ${A} u_${L};
16726
16726
  this._coordsDescendingInvStr = {};
16727
16727
  for (const o of t._order) {
16728
16728
  const a = t._layers[o], h = a.source;
16729
- if (wr[a.type] && !this._coordsDescendingInvStr[h]) {
16729
+ if (Sr[a.type] && !this._coordsDescendingInvStr[h]) {
16730
16730
  this._coordsDescendingInvStr[h] = {};
16731
16731
  for (const m in this._coordsDescendingInv[h]) this._coordsDescendingInvStr[h][m] = this._coordsDescendingInv[h][m].map((y) => y.key).sort().join();
16732
16732
  }
@@ -16739,8 +16739,8 @@ uniform ${P} ${A} u_${L};
16739
16739
  renderLayer(t) {
16740
16740
  if (t.isHidden(this.painter.transform.zoom)) return !1;
16741
16741
  const n = t.type, o = this.painter, a = this._renderableLayerIds[this._renderableLayerIds.length - 1] === t.id;
16742
- if (wr[n] && (this._prevType && wr[this._prevType] || this._stacks.push([]), this._prevType = n, this._stacks[this._stacks.length - 1].push(t.id), !a)) return !0;
16743
- if (wr[this._prevType] || wr[n] && a) {
16742
+ if (Sr[n] && (this._prevType && Sr[this._prevType] || this._stacks.push([]), this._prevType = n, this._stacks[this._stacks.length - 1].push(t.id), !a)) return !0;
16743
+ if (Sr[this._prevType] || Sr[n] && a) {
16744
16744
  this._prevType = n;
16745
16745
  const h = this._stacks.length - 1, m = this._stacks[h] || [];
16746
16746
  for (const y of this._renderableTiles) {
@@ -16758,7 +16758,7 @@ uniform ${P} ${A} u_${L};
16758
16758
  o.context.viewport.set([0, 0, v.fbo.width, v.fbo.height]), o._renderTileClippingMasks(P, A), o.renderLayer(o, o.style.sourceCaches[P.source], P, A), P.source && (y.rttCoords[P.source] = this._coordsDescendingInvStr[P.source][y.tileID.key]);
16759
16759
  }
16760
16760
  }
16761
- return Ts(this.painter, this.terrain, this._rttTiles), this._rttTiles = [], this.pool.freeAllObjects(), wr[n];
16761
+ return Ts(this.painter, this.terrain, this._rttTiles), this._rttTiles = [], this.pool.freeAllObjects(), Sr[n];
16762
16762
  }
16763
16763
  return !1;
16764
16764
  }
@@ -17024,7 +17024,7 @@ uniform ${P} ${A} u_${L};
17024
17024
  }(n);
17025
17025
  u.style.width = t * (a / n) + "px", u.innerHTML = `${a}&nbsp;${o}`;
17026
17026
  }
17027
- const Sr = { closeButton: !0, closeOnClick: !0, focusAfterOpen: !0, className: "", maxWidth: "240px", subpixelPositioning: !1 }, So = ["a[href]", "[tabindex]:not([tabindex='-1'])", "[contenteditable]:not([contenteditable='false'])", "button:not([disabled])", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].join(", ");
17027
+ const Tr = { closeButton: !0, closeOnClick: !0, focusAfterOpen: !0, className: "", maxWidth: "240px", subpixelPositioning: !1 }, So = ["a[href]", "[tabindex]:not([tabindex='-1'])", "[contenteditable]:not([contenteditable='false'])", "button:not([disabled])", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].join(", ");
17028
17028
  function $e(u) {
17029
17029
  if (u) {
17030
17030
  if (typeof u == "number") {
@@ -17229,7 +17229,7 @@ uniform ${P} ${A} u_${L};
17229
17229
  _clearWatch() {
17230
17230
  window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0, this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "false"), this.options.showUserLocation && this._updateMarker(null);
17231
17231
  }
17232
- }, T.Hash = Is, T.ImageSource = Er, T.KeyboardHandler = Ia, T.LngLatBounds = he, T.LogoControl = br, T.Map = class extends Wc {
17232
+ }, T.Hash = Is, T.ImageSource = Er, T.KeyboardHandler = Ia, T.LngLatBounds = he, T.LogoControl = wr, T.Map = class extends Wc {
17233
17233
  constructor(u) {
17234
17234
  c.be.mark(c.bf.create);
17235
17235
  const t = Object.assign(Object.assign({}, Xc), u);
@@ -17265,7 +17265,7 @@ uniform ${P} ${A} u_${L};
17265
17265
  n ? o(a) : n = !0;
17266
17266
  }), this._resizeObserver.observe(this._container);
17267
17267
  }
17268
- this.handlers = new Hc(this, t), this._hash = t.hash && new Is(typeof t.hash == "string" && t.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: t.center, zoom: t.zoom, bearing: t.bearing, pitch: t.pitch }), t.bounds && (this.resize(), this.fitBounds(t.bounds, c.e({}, t.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = t.localIdeographFontFamily, this._validateStyle = t.validateStyle, t.style && this.setStyle(t.style, { localIdeographFontFamily: t.localIdeographFontFamily }), t.attributionControl && this.addControl(new Zn(typeof t.attributionControl == "boolean" ? void 0 : t.attributionControl)), t.maplibreLogo && this.addControl(new br(), t.logoPosition), this.on("style.load", () => {
17268
+ this.handlers = new Hc(this, t), this._hash = t.hash && new Is(typeof t.hash == "string" && t.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: t.center, zoom: t.zoom, bearing: t.bearing, pitch: t.pitch }), t.bounds && (this.resize(), this.fitBounds(t.bounds, c.e({}, t.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = t.localIdeographFontFamily, this._validateStyle = t.validateStyle, t.style && this.setStyle(t.style, { localIdeographFontFamily: t.localIdeographFontFamily }), t.attributionControl && this.addControl(new Zn(typeof t.attributionControl == "boolean" ? void 0 : t.attributionControl)), t.maplibreLogo && this.addControl(new wr(), t.logoPosition), this.on("style.load", () => {
17269
17269
  this.transform.unmodified && this.jumpTo(this.style.stylesheet);
17270
17270
  }), this.on("data", (n) => {
17271
17271
  this._update(n.dataType === "style"), this.fire(new c.k(`${n.dataType}data`, n));
@@ -17832,7 +17832,7 @@ uniform ${P} ${A} u_${L};
17832
17832
  this.options.subpixelPositioning || (m = m.round()), oe.setTransform(this._container, `${Ra[a]} translate(${m.x}px,${m.y}px)`), en(this._container, a, "popup");
17833
17833
  }, this._onClose = () => {
17834
17834
  this.remove();
17835
- }, this.options = c.e(Object.create(Sr), u);
17835
+ }, this.options = c.e(Object.create(Tr), u);
17836
17836
  }
17837
17837
  addTo(u) {
17838
17838
  return this._map && this.remove(), this._map = u, this.options.closeOnClick && this._map.on("click", this._onClose), this.options.closeOnMove && this._map.on("move", this._onClose), this._map.on("remove", this.remove), this._update(), this._focusFirstElement(), this._trackPointer ? (this._map.on("mousemove", this._onMouseMove), this._map.on("mouseup", this._onMouseUp), this._container && this._container.classList.add("maplibregl-popup-track-pointer"), this._map._canvasContainer.classList.add("maplibregl-track-pointer")) : this._map.on("move", this._update), this.fire(new c.k("open")), this;
@@ -17938,11 +17938,11 @@ uniform ${P} ${A} u_${L};
17938
17938
  }, T.getMaxParallelImageRequests = function() {
17939
17939
  return c.a.MAX_PARALLEL_IMAGE_REQUESTS;
17940
17940
  }, T.getRTLTextPluginStatus = function() {
17941
- return _r().getRTLTextPluginStatus();
17941
+ return yr().getRTLTextPluginStatus();
17942
17942
  }, T.getVersion = function() {
17943
17943
  return Xe;
17944
17944
  }, T.getWorkerCount = function() {
17945
- return mr.workerCount;
17945
+ return gr.workerCount;
17946
17946
  }, T.getWorkerUrl = function() {
17947
17947
  return c.a.WORKER_URL;
17948
17948
  }, T.importScriptInWorkers = function(u) {
@@ -17952,9 +17952,9 @@ uniform ${P} ${A} u_${L};
17952
17952
  }, T.setMaxParallelImageRequests = function(u) {
17953
17953
  c.a.MAX_PARALLEL_IMAGE_REQUESTS = u;
17954
17954
  }, T.setRTLTextPlugin = function(u, t) {
17955
- return _r().setRTLTextPlugin(u, t);
17955
+ return yr().setRTLTextPlugin(u, t);
17956
17956
  }, T.setWorkerCount = function(u) {
17957
- mr.workerCount = u;
17957
+ gr.workerCount = u;
17958
17958
  }, T.setWorkerUrl = function(u) {
17959
17959
  c.a.WORKER_URL = u;
17960
17960
  };
@@ -18149,22 +18149,22 @@ const { toString: Qm } = Object.prototype, { getPrototypeOf: Qh } = Object, Tc =
18149
18149
  return g[C] || (g[C] = C.slice(8, -1).toLowerCase());
18150
18150
  })(/* @__PURE__ */ Object.create(null)), Nr = (g) => (g = g.toLowerCase(), (S) => Tc(S) === g), Ic = (g) => (S) => typeof S === g, { isArray: jo } = Array, hl = Ic("undefined");
18151
18151
  function eg(g) {
18152
- return g !== null && !hl(g) && g.constructor !== null && !hl(g.constructor) && pr(g.constructor.isBuffer) && g.constructor.isBuffer(g);
18152
+ return g !== null && !hl(g) && g.constructor !== null && !hl(g.constructor) && fr(g.constructor.isBuffer) && g.constructor.isBuffer(g);
18153
18153
  }
18154
18154
  const dp = Nr("ArrayBuffer");
18155
18155
  function tg(g) {
18156
18156
  let S;
18157
18157
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? S = ArrayBuffer.isView(g) : S = g && g.buffer && dp(g.buffer), S;
18158
18158
  }
18159
- const ig = Ic("string"), pr = Ic("function"), pp = Ic("number"), Pc = (g) => g !== null && typeof g == "object", rg = (g) => g === !0 || g === !1, xc = (g) => {
18159
+ const ig = Ic("string"), fr = Ic("function"), pp = Ic("number"), Pc = (g) => g !== null && typeof g == "object", rg = (g) => g === !0 || g === !1, xc = (g) => {
18160
18160
  if (Tc(g) !== "object")
18161
18161
  return !1;
18162
18162
  const S = Qh(g);
18163
18163
  return (S === null || S === Object.prototype || Object.getPrototypeOf(S) === null) && !(Symbol.toStringTag in g) && !(Symbol.iterator in g);
18164
- }, ng = Nr("Date"), sg = Nr("File"), og = Nr("Blob"), ag = Nr("FileList"), lg = (g) => Pc(g) && pr(g.pipe), cg = (g) => {
18164
+ }, ng = Nr("Date"), sg = Nr("File"), og = Nr("Blob"), ag = Nr("FileList"), lg = (g) => Pc(g) && fr(g.pipe), cg = (g) => {
18165
18165
  let S;
18166
- return g && (typeof FormData == "function" && g instanceof FormData || pr(g.append) && ((S = Tc(g)) === "formdata" || // detect form-data instance
18167
- S === "object" && pr(g.toString) && g.toString() === "[object FormData]"));
18166
+ return g && (typeof FormData == "function" && g instanceof FormData || fr(g.append) && ((S = Tc(g)) === "formdata" || // detect form-data instance
18167
+ S === "object" && fr(g.toString) && g.toString() === "[object FormData]"));
18168
18168
  }, hg = Nr("URLSearchParams"), [ug, dg, pg, fg] = ["ReadableStream", "Request", "Response", "Headers"].map(Nr), mg = (g) => g.trim ? g.trim() : g.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
18169
18169
  function ul(g, S, { allOwnKeys: C = !1 } = {}) {
18170
18170
  if (g === null || typeof g > "u")
@@ -18200,7 +18200,7 @@ function $h() {
18200
18200
  return S;
18201
18201
  }
18202
18202
  const gg = (g, S, C, { allOwnKeys: E } = {}) => (ul(S, (V, X) => {
18203
- C && pr(V) ? g[X] = up(V, C) : g[X] = V;
18203
+ C && fr(V) ? g[X] = up(V, C) : g[X] = V;
18204
18204
  }, { allOwnKeys: E }), g), _g = (g) => (g.charCodeAt(0) === 65279 && (g = g.slice(1)), g), yg = (g, S, C, E) => {
18205
18205
  g.prototype = Object.create(S.prototype, E), g.prototype.constructor = g, Object.defineProperty(g, "super", {
18206
18206
  value: S.prototype
@@ -18254,10 +18254,10 @@ const gg = (g, S, C, { allOwnKeys: E } = {}) => (ul(S, (V, X) => {
18254
18254
  }), Object.defineProperties(g, E);
18255
18255
  }, Cg = (g) => {
18256
18256
  gp(g, (S, C) => {
18257
- if (pr(g) && ["arguments", "caller", "callee"].indexOf(C) !== -1)
18257
+ if (fr(g) && ["arguments", "caller", "callee"].indexOf(C) !== -1)
18258
18258
  return !1;
18259
18259
  const E = g[C];
18260
- if (pr(E)) {
18260
+ if (fr(E)) {
18261
18261
  if (S.enumerable = !1, "writable" in S) {
18262
18262
  S.writable = !1;
18263
18263
  return;
@@ -18287,7 +18287,7 @@ const gg = (g, S, C, { allOwnKeys: E } = {}) => (ul(S, (V, X) => {
18287
18287
  return C;
18288
18288
  };
18289
18289
  function Dg(g) {
18290
- return !!(g && pr(g.append) && g[Symbol.toStringTag] === "FormData" && g[Symbol.iterator]);
18290
+ return !!(g && fr(g.append) && g[Symbol.toStringTag] === "FormData" && g[Symbol.iterator]);
18291
18291
  }
18292
18292
  const Lg = (g) => {
18293
18293
  const S = new Array(10), C = (E, V) => {
@@ -18306,13 +18306,13 @@ const Lg = (g) => {
18306
18306
  return E;
18307
18307
  };
18308
18308
  return C(g, 0);
18309
- }, Rg = Nr("AsyncFunction"), Bg = (g) => g && (Pc(g) || pr(g)) && pr(g.then) && pr(g.catch), yp = ((g, S) => g ? setImmediate : S ? ((C, E) => (Us.addEventListener("message", ({ source: V, data: X }) => {
18309
+ }, Rg = Nr("AsyncFunction"), Bg = (g) => g && (Pc(g) || fr(g)) && fr(g.then) && fr(g.catch), yp = ((g, S) => g ? setImmediate : S ? ((C, E) => (Us.addEventListener("message", ({ source: V, data: X }) => {
18310
18310
  V === Us && X === C && E.length && E.shift()();
18311
18311
  }, !1), (V) => {
18312
18312
  E.push(V), Us.postMessage(C, "*");
18313
18313
  }))(`axios@${Math.random()}`, []) : (C) => setTimeout(C))(
18314
18314
  typeof setImmediate == "function",
18315
- pr(Us.postMessage)
18315
+ fr(Us.postMessage)
18316
18316
  ), Fg = typeof queueMicrotask < "u" ? queueMicrotask.bind(Us) : typeof process < "u" && process.nextTick || yp, pe = {
18317
18317
  isArray: jo,
18318
18318
  isArrayBuffer: dp,
@@ -18333,7 +18333,7 @@ const Lg = (g) => {
18333
18333
  isFile: sg,
18334
18334
  isBlob: og,
18335
18335
  isRegExp: Ag,
18336
- isFunction: pr,
18336
+ isFunction: fr,
18337
18337
  isStream: lg,
18338
18338
  isURLSearchParams: hg,
18339
18339
  isTypedArray: wg,
@@ -20073,7 +20073,7 @@ const z_ = /* @__PURE__ */ hn(A_, [["render", M_], ["__scopeId", "data-v-d4fbd7d
20073
20073
  }, O_ = { class: "ml-1 text-[0.875rem]" };
20074
20074
  function V_(g, S, C, E, V, X) {
20075
20075
  return dt(), Ut("div", L_, [
20076
- C.title ? (dt(), Ut("div", R_, Mn(C.title), 1)) : Pr("", !0),
20076
+ C.title ? (dt(), Ut("div", R_, Mn(C.title), 1)) : pr("", !0),
20077
20077
  (dt(!0), Ut(ol, null, al(C.colors, (T) => (dt(), Ut("div", B_, [
20078
20078
  T.id > 0 ? (dt(), Ut("div", F_, [
20079
20079
  et("div", {
@@ -20081,7 +20081,7 @@ function V_(g, S, C, E, V, X) {
20081
20081
  style: ap({ backgroundColor: T.color })
20082
20082
  }, null, 4),
20083
20083
  et("div", O_, Mn(X.capitalizeFirstLetter(T.text)), 1)
20084
- ])) : Pr("", !0)
20084
+ ])) : pr("", !0)
20085
20085
  ]))), 256))
20086
20086
  ]);
20087
20087
  }
@@ -20125,34 +20125,37 @@ const N_ = /* @__PURE__ */ hn(D_, [["render", V_]]), U_ = {
20125
20125
  };
20126
20126
  },
20127
20127
  async mounted() {
20128
- var g, S, C, E;
20128
+ var g, S, C, E, V;
20129
20129
  if (await this.createMap(), (g = this.row) != null && g.geom) {
20130
- const { type: V, coordinates: X } = this.row.geom;
20131
- let T;
20132
- switch (V) {
20130
+ const { type: X, coordinates: T } = this.row.geom;
20131
+ let c;
20132
+ switch (X) {
20133
20133
  case "Polygon":
20134
- T = Rp(X);
20134
+ c = Rp(T);
20135
20135
  break;
20136
20136
  case "MultiPolygon":
20137
- T = Fp(X);
20137
+ c = Fp(T);
20138
20138
  break;
20139
20139
  case "MultiPoint":
20140
- T = Bp(X);
20140
+ c = Bp(T);
20141
20141
  break;
20142
20142
  default:
20143
- (S = this.map) == null || S.fitBounds([X, X], {
20143
+ (S = this.map) == null || S.fitBounds([T, T], {
20144
20144
  maxZoom: 15,
20145
20145
  padding: 30
20146
20146
  }), this.isSelectObj = !0;
20147
20147
  return;
20148
20148
  }
20149
- const c = Np(T).geometry.coordinates;
20150
- (C = this.map) == null || C.fitBounds([c, c], {
20149
+ const _e = Np(c).geometry.coordinates;
20150
+ (C = this.map) == null || C.fitBounds([_e, _e], {
20151
20151
  maxZoom: this.zoom,
20152
20152
  padding: 30
20153
20153
  });
20154
- } else
20155
- (E = this.map) == null || E.fitBounds(this.maxBounds);
20154
+ }
20155
+ this.center ? (E = this.map) == null || E.fitBounds(this.center, {
20156
+ maxZoom: this.zoom,
20157
+ padding: 30
20158
+ }) : (V = this.map) == null || V.fitBounds(this.maxBounds);
20156
20159
  },
20157
20160
  watch: {
20158
20161
  filtersParam(g) {
@@ -20445,7 +20448,7 @@ function zy(g, S, C, E, V, X) {
20445
20448
  ]),
20446
20449
  X.hasSlot ? (dt(), Ut("div", My, [
20447
20450
  cl(g.$slots, "footer", {}, void 0, !0)
20448
- ])) : Pr("", !0)
20451
+ ])) : pr("", !0)
20449
20452
  ], 2)
20450
20453
  ]),
20451
20454
  _: 3
@@ -20467,6 +20470,10 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
20467
20470
  initTotal: { type: [Number, String], default: () => "" },
20468
20471
  colorAttr: { type: String, default: () => "" },
20469
20472
  legendname: { type: String, default: () => "" },
20473
+ center: {
20474
+ type: Array,
20475
+ default: () => []
20476
+ },
20470
20477
  maxBounds: {
20471
20478
  type: Array,
20472
20479
  default: () => [
@@ -20479,6 +20486,7 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
20479
20486
  isAddressAutocomplete: { type: Boolean, default: () => !1 },
20480
20487
  zoom: { type: [Number, String], default: () => "13" },
20481
20488
  maskForSearch: { type: String, default: () => null },
20489
+ searchShow: { type: Boolean, default: () => !0 },
20482
20490
  basemap: { type: Array },
20483
20491
  pointZoom: { type: String, default: () => "12" },
20484
20492
  legend: { type: Boolean, default: () => !0 },
@@ -20664,6 +20672,7 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
20664
20672
  const g = new URLSearchParams(window.location.search);
20665
20673
  g.delete("id");
20666
20674
  const C = `${window.location.pathname}?${g.toString()}`;
20675
+ debugger;
20667
20676
  (E = this.map) == null || E.fitBounds(this.maxBounds, {}), window.history.pushState({}, "", C), this.isSelectObj = !1;
20668
20677
  },
20669
20678
  regionFullName(g) {
@@ -20746,7 +20755,7 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
20746
20755
  },
20747
20756
  async updateTableAndMap() {
20748
20757
  var g, S;
20749
- this.filtersParam = this.filterUrl, this.activeFilters = (S = (g = this.$refs) == null ? void 0 : g.filter) == null ? void 0 : S.activeFilters, this.isFilterVisible = !1, this.getData();
20758
+ this.selectedRow || (this.filtersParam = this.filterUrl, this.activeFilters = (S = (g = this.$refs) == null ? void 0 : g.filter) == null ? void 0 : S.activeFilters, this.isFilterVisible = !1, this.getData());
20750
20759
  },
20751
20760
  handleFilterSubmit() {
20752
20761
  var g;
@@ -20978,7 +20987,7 @@ function h0(g, S, C, E, V, X) {
20978
20987
  }, null, 8, ["value", "label"]))), 128))
20979
20988
  ]),
20980
20989
  _: 1
20981
- }, 8, ["modelValue", "onOnSearch", "onUpdate:modelValue", "onClick"])) : Pr("", !0),
20990
+ }, 8, ["modelValue", "onOnSearch", "onUpdate:modelValue", "onClick"])) : pr("", !0),
20982
20991
  g.isAddressAutocomplete ? (dt(), ln(c, {
20983
20992
  key: 1,
20984
20993
  modelValue: g.addressSelectValue,
@@ -21003,7 +21012,7 @@ function h0(g, S, C, E, V, X) {
21003
21012
  }, null, 8, ["value", "label"]))), 128))
21004
21013
  ]),
21005
21014
  _: 1
21006
- }, 8, ["modelValue", "onOnSearch", "onUpdate:modelValue", "onClick"])) : Pr("", !0),
21015
+ }, 8, ["modelValue", "onOnSearch", "onUpdate:modelValue", "onClick"])) : pr("", !0),
21007
21016
  g.maskForSearch ? (dt(), ln(_e, {
21008
21017
  key: 2,
21009
21018
  "model-value": g.search,
@@ -21016,7 +21025,7 @@ function h0(g, S, C, E, V, X) {
21016
21025
  clearable: "",
21017
21026
  style: { height: "38px", "min-width": "300px", "max-width": "300px" },
21018
21027
  ref: "searchInput"
21019
- }, null, 8, ["model-value", "onUpdate:modelValue", "mask"])) : (dt(), ln(xe, {
21028
+ }, null, 8, ["model-value", "onUpdate:modelValue", "mask"])) : g.searchShow ? (dt(), ln(xe, {
21020
21029
  key: 3,
21021
21030
  "model-value": g.search,
21022
21031
  "onUpdate:modelValue": g.handleDebouncedUpdateValue,
@@ -21027,7 +21036,7 @@ function h0(g, S, C, E, V, X) {
21027
21036
  clearable: "",
21028
21037
  style: { height: "38px" },
21029
21038
  ref: "searchInput"
21030
- }, null, 8, ["model-value", "onUpdate:modelValue"])),
21039
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : pr("", !0),
21031
21040
  et("div", Oy, [
21032
21041
  g.filters ? (dt(), ln(ae, {
21033
21042
  key: 0,
@@ -21053,11 +21062,11 @@ function h0(g, S, C, E, V, X) {
21053
21062
  }, [
21054
21063
  cn(ve),
21055
21064
  Nm(" Фільтри "),
21056
- g.activeFiltersCount >= 1 ? (dt(), Ut("span", Vy, Mn(g.activeFiltersCount), 1)) : Pr("", !0)
21065
+ g.activeFiltersCount >= 1 ? (dt(), Ut("span", Vy, Mn(g.activeFiltersCount), 1)) : pr("", !0)
21057
21066
  ], 2)
21058
21067
  ]),
21059
21068
  _: 1
21060
- }, 8, ["modelValue", "scheme"])) : Pr("", !0)
21069
+ }, 8, ["modelValue", "scheme"])) : pr("", !0)
21061
21070
  ])
21062
21071
  ]),
21063
21072
  et("button", {
@@ -21109,8 +21118,8 @@ function h0(g, S, C, E, V, X) {
21109
21118
  }, [
21110
21119
  cn(qe)
21111
21120
  ])
21112
- ])) : Pr("", !0)
21113
- ])) : Pr("", !0),
21121
+ ])) : pr("", !0)
21122
+ ])) : pr("", !0),
21114
21123
  g.total >= 1 ? cl(g.$slots, "table", {
21115
21124
  key: 1,
21116
21125
  rows: g.tableData,
@@ -21129,7 +21138,7 @@ function h0(g, S, C, E, V, X) {
21129
21138
  }, " Очистити дані пошуку ")
21130
21139
  ]))
21131
21140
  ]),
21132
- g.total >= 1 ? (dt(), Ut("hr", n0)) : Pr("", !0),
21141
+ g.total >= 1 ? (dt(), Ut("hr", n0)) : pr("", !0),
21133
21142
  g.total >= 1 ? (dt(), Ut("div", s0, [
21134
21143
  et("div", o0, [
21135
21144
  cn(Ne, {
@@ -21146,7 +21155,7 @@ function h0(g, S, C, E, V, X) {
21146
21155
  onPageSizeChange: g.changeLimit
21147
21156
  }, null, 8, ["total", "defaultPage", "pageSize", "onPageChange", "onPageSizeChange"])
21148
21157
  ])
21149
- ])) : Pr("", !0)
21158
+ ])) : pr("", !0)
21150
21159
  ], 2),
21151
21160
  g.isSelectObj ? (dt(), Ut("div", {
21152
21161
  key: 0,
@@ -21161,7 +21170,7 @@ function h0(g, S, C, E, V, X) {
21161
21170
  closeObjCard: g.closeObjCard,
21162
21171
  isMapVisible: g.isMapVisible
21163
21172
  })
21164
- ], 2)) : Pr("", !0),
21173
+ ], 2)) : pr("", !0),
21165
21174
  Jh(et("div", a0, [
21166
21175
  et("section", l0, [
21167
21176
  cn(pt, {
@@ -21174,11 +21183,12 @@ function h0(g, S, C, E, V, X) {
21174
21183
  legend: g.legend,
21175
21184
  colorAttr: g.colorAttr,
21176
21185
  maxBounds: g.maxBounds,
21186
+ center: g.center,
21177
21187
  zoom: g.zoom,
21178
21188
  basemap: g.basemap,
21179
21189
  pointZoom: g.pointZoom,
21180
21190
  defaultColor: g.defaultColor
21181
- }, null, 8, ["table", "filtersParam", "row", "legendname", "legend", "colorAttr", "maxBounds", "zoom", "basemap", "pointZoom", "defaultColor"])
21191
+ }, null, 8, ["table", "filtersParam", "row", "legendname", "legend", "colorAttr", "maxBounds", "center", "zoom", "basemap", "pointZoom", "defaultColor"])
21182
21192
  ])
21183
21193
  ], 512), [
21184
21194
  [Kh, g.isMapVisible]