@abi-software/flatmap-viewer 4.2.11 → 4.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +315 -313
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1390,15 +1390,15 @@ var LR = { exports: {} };
1390
1390
  d.removeEventListener(c, f, m);
1391
1391
  } };
1392
1392
  }
1393
- function Mo(d) {
1393
+ function Eo(d) {
1394
1394
  return d * Math.PI / 180;
1395
1395
  }
1396
1396
  function N1(d) {
1397
1397
  return d / Math.PI * 180;
1398
1398
  }
1399
- const da = { touchstart: !0, touchmove: !0, touchmoveWindow: !0, touchend: !0, touchcancel: !0 }, j1 = { dblclick: !0, click: !0, mouseover: !0, mouseout: !0, mousedown: !0, mousemove: !0, mousemoveWindow: !0, mouseup: !0, mouseupWindow: !0, contextmenu: !0, wheel: !0 }, Eo = "AbortError";
1399
+ const da = { touchstart: !0, touchmove: !0, touchmoveWindow: !0, touchend: !0, touchcancel: !0 }, j1 = { dblclick: !0, click: !0, mouseover: !0, mouseout: !0, mousedown: !0, mousemove: !0, mousemoveWindow: !0, mouseup: !0, mouseupWindow: !0, contextmenu: !0, wheel: !0 }, So = "AbortError";
1400
1400
  function z1() {
1401
- return new Error(Eo);
1401
+ return new Error(So);
1402
1402
  }
1403
1403
  const o2 = { MAX_PARALLEL_IMAGE_REQUESTS: 16, MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8, MAX_TILE_CACHE_ZOOM_LEVELS: 5, REGISTERED_PROTOCOLS: {}, WORKER_URL: "" };
1404
1404
  function $1(d) {
@@ -1606,7 +1606,7 @@ var LR = { exports: {} };
1606
1606
  return !!this.bindings[c] || !!this.parent && this.parent.has(c);
1607
1607
  }
1608
1608
  }
1609
- const mr = { kind: "null" }, me = { kind: "number" }, dr = { kind: "string" }, Hr = { kind: "boolean" }, Un = { kind: "color" }, Zn = { kind: "projectionDefinition" }, Qn = { kind: "object" }, Vr = { kind: "value" }, gs = { kind: "collator" }, j3 = { kind: "formatted" }, So = { kind: "padding" }, z3 = { kind: "colorArray" }, a2 = { kind: "numberArray" }, Ta = { kind: "resolvedImage" }, Pn = { kind: "variableAnchorOffsetCollection" };
1609
+ const mr = { kind: "null" }, me = { kind: "number" }, dr = { kind: "string" }, Hr = { kind: "boolean" }, Un = { kind: "color" }, Zn = { kind: "projectionDefinition" }, Qn = { kind: "object" }, Vr = { kind: "value" }, gs = { kind: "collator" }, j3 = { kind: "formatted" }, Co = { kind: "padding" }, z3 = { kind: "colorArray" }, a2 = { kind: "numberArray" }, Ta = { kind: "resolvedImage" }, Pn = { kind: "variableAnchorOffsetCollection" };
1610
1610
  function r1(d, c) {
1611
1611
  return { kind: "array", itemType: d, N: c };
1612
1612
  }
@@ -1617,7 +1617,7 @@ var LR = { exports: {} };
1617
1617
  }
1618
1618
  return d.kind;
1619
1619
  }
1620
- const Wn = [mr, me, dr, Hr, Un, Zn, j3, Qn, r1(Vr), So, a2, z3, Ta, Pn];
1620
+ const Wn = [mr, me, dr, Hr, Un, Zn, j3, Qn, r1(Vr), Co, a2, z3, Ta, Pn];
1621
1621
  function Qa(d, c) {
1622
1622
  if (c.kind === "error") return null;
1623
1623
  if (d.kind === "array") {
@@ -1639,22 +1639,22 @@ var LR = { exports: {} };
1639
1639
  function xi(d, c) {
1640
1640
  return d.kind === "array" && c.kind === "array" ? d.itemType.kind === c.itemType.kind && typeof d.N == "number" : d.kind === c.kind;
1641
1641
  }
1642
- const $3 = 0.96422, q2 = 0.82521, Co = 4 / 29, pa = 6 / 29, ac = 3 * pa * pa, _8 = pa * pa * pa, v8 = Math.PI / 180, sc = 180 / Math.PI;
1642
+ const $3 = 0.96422, q2 = 0.82521, Ho = 4 / 29, pa = 6 / 29, ac = 3 * pa * pa, _8 = pa * pa * pa, v8 = Math.PI / 180, sc = 180 / Math.PI;
1643
1643
  function r6(d) {
1644
1644
  return (d %= 360) < 0 && (d += 360), d;
1645
1645
  }
1646
1646
  function n6([d, c, f, m]) {
1647
1647
  let x, A;
1648
- const S = D5((0.2225045 * (d = Ho(d)) + 0.7168786 * (c = Ho(c)) + 0.0606169 * (f = Ho(f))) / 1);
1648
+ const S = D5((0.2225045 * (d = Po(d)) + 0.7168786 * (c = Po(c)) + 0.0606169 * (f = Po(f))) / 1);
1649
1649
  d === c && c === f ? x = A = S : (x = D5((0.4360747 * d + 0.3850649 * c + 0.1430804 * f) / $3), A = D5((0.0139322 * d + 0.0971045 * c + 0.7141733 * f) / q2));
1650
1650
  const O = 116 * S - 16;
1651
1651
  return [O < 0 ? 0 : O, 500 * (x - S), 200 * (S - A), m];
1652
1652
  }
1653
- function Ho(d) {
1653
+ function Po(d) {
1654
1654
  return d <= 0.04045 ? d / 12.92 : Math.pow((d + 0.055) / 1.055, 2.4);
1655
1655
  }
1656
1656
  function D5(d) {
1657
- return d > _8 ? Math.pow(d, 1 / 3) : d / ac + Co;
1657
+ return d > _8 ? Math.pow(d, 1 / 3) : d / ac + Ho;
1658
1658
  }
1659
1659
  function lc([d, c, f, m]) {
1660
1660
  let x = (d + 16) / 116, A = isNaN(c) ? x : x + c / 500, S = isNaN(f) ? x : x - f / 200;
@@ -1664,7 +1664,7 @@ var LR = { exports: {} };
1664
1664
  return (d = d <= 304e-5 ? 12.92 * d : 1.055 * Math.pow(d, 1 / 2.4) - 0.055) < 0 ? 0 : d > 1 ? 1 : d;
1665
1665
  }
1666
1666
  function ys(d) {
1667
- return d > pa ? d * d * d : ac * (d - Co);
1667
+ return d > pa ? d * d * d : ac * (d - Ho);
1668
1668
  }
1669
1669
  const V = Object.hasOwn || function(d, c) {
1670
1670
  return Object.prototype.hasOwnProperty.call(d, c);
@@ -1985,7 +1985,7 @@ var LR = { exports: {} };
1985
1985
  if (d instanceof ji) return Zn;
1986
1986
  if (d instanceof ze) return gs;
1987
1987
  if (d instanceof Jr) return j3;
1988
- if (d instanceof Tr) return So;
1988
+ if (d instanceof Tr) return Co;
1989
1989
  if (d instanceof $r) return a2;
1990
1990
  if (d instanceof Qe) return z3;
1991
1991
  if (d instanceof an) return Pn;
@@ -2614,7 +2614,7 @@ var LR = { exports: {} };
2614
2614
  if (!rt) return null;
2615
2615
  B = B || rt.type, O.push([$, rt]);
2616
2616
  }
2617
- return xi(B, me) || xi(B, Zn) || xi(B, Un) || xi(B, So) || xi(B, a2) || xi(B, z3) || xi(B, Pn) || xi(B, r1(me)) ? new Qi(B, m, x, A, O) : f.error(`Type ${_n(B)} is not interpolatable.`);
2617
+ return xi(B, me) || xi(B, Zn) || xi(B, Un) || xi(B, Co) || xi(B, a2) || xi(B, z3) || xi(B, Pn) || xi(B, r1(me)) ? new Qi(B, m, x, A, O) : f.error(`Type ${_n(B)} is not interpolatable.`);
2618
2618
  }
2619
2619
  evaluate(c) {
2620
2620
  const f = this.labels, m = this.outputs;
@@ -2777,7 +2777,7 @@ var LR = { exports: {} };
2777
2777
  }, function(d, c, f, m) {
2778
2778
  return m.compare(c, f) >= 0;
2779
2779
  });
2780
- class Po {
2780
+ class Oo {
2781
2781
  constructor(c, f, m) {
2782
2782
  this.type = gs, this.locale = m, this.caseSensitive = c, this.diacriticSensitive = f;
2783
2783
  }
@@ -2790,7 +2790,7 @@ var LR = { exports: {} };
2790
2790
  const A = f.parse(m["diacritic-sensitive"] !== void 0 && m["diacritic-sensitive"], 1, Hr);
2791
2791
  if (!A) return null;
2792
2792
  let S = null;
2793
- return m.locale && (S = f.parse(m.locale, 1, dr), !S) ? null : new Po(x, A, S);
2793
+ return m.locale && (S = f.parse(m.locale, 1, dr), !S) ? null : new Oo(x, A, S);
2794
2794
  }
2795
2795
  evaluate(c) {
2796
2796
  return new ze(this.caseSensitive.evaluate(c), this.diacriticSensitive.evaluate(c), this.locale ? this.locale.evaluate(c) : null);
@@ -3126,7 +3126,7 @@ var LR = { exports: {} };
3126
3126
  c[d] = x;
3127
3127
  }
3128
3128
  };
3129
- function Y2(d, c, f = 0, m = d.length - 1, x = Oo) {
3129
+ function Y2(d, c, f = 0, m = d.length - 1, x = Io) {
3130
3130
  for (; m > f; ) {
3131
3131
  if (m - f > 600) {
3132
3132
  const B = m - f + 1, j = c - f + 1, $ = Math.log(B), q = 0.5 * Math.exp(2 * $ / 3), J = 0.5 * Math.sqrt($ * q * (B - q) / B) * (j - B / 2 < 0 ? -1 : 1);
@@ -3145,7 +3145,7 @@ var LR = { exports: {} };
3145
3145
  const m = d[c];
3146
3146
  d[c] = d[f], d[f] = m;
3147
3147
  }
3148
- function Oo(d, c) {
3148
+ function Io(d, c) {
3149
3149
  return d < c ? -1 : d > c ? 1 : 0;
3150
3150
  }
3151
3151
  function e4(d, c) {
@@ -3367,7 +3367,7 @@ var LR = { exports: {} };
3367
3367
  }
3368
3368
  return S;
3369
3369
  }
3370
- function Io(d) {
3370
+ function Do(d) {
3371
3371
  return d.type === "MultiPolygon" ? d.coordinates.map((c) => ({ type: "Polygon", coordinates: c })) : d.type === "MultiLineString" ? d.coordinates.map((c) => ({ type: "LineString", coordinates: c })) : d.type === "MultiPoint" ? d.coordinates.map((c) => ({ type: "Point", coordinates: c })) : [d];
3372
3372
  }
3373
3373
  class f2 {
@@ -3378,9 +3378,9 @@ var LR = { exports: {} };
3378
3378
  if (c.length !== 2) return f.error(`'distance' expression requires exactly one argument, but found ${c.length - 1} instead.`);
3379
3379
  if (Mr(c[1])) {
3380
3380
  const m = c[1];
3381
- if (m.type === "FeatureCollection") return new f2(m, m.features.map((x) => Io(x.geometry)).flat());
3382
- if (m.type === "Feature") return new f2(m, Io(m.geometry));
3383
- if ("type" in m && "coordinates" in m) return new f2(m, Io(m));
3381
+ if (m.type === "FeatureCollection") return new f2(m, m.features.map((x) => Do(x.geometry)).flat());
3382
+ if (m.type === "Feature") return new f2(m, Do(m.geometry));
3383
+ if ("type" in m && "coordinates" in m) return new f2(m, Do(m));
3384
3384
  }
3385
3385
  return f.error("'distance' expression requires valid geojson object that contains polygon geometry type.");
3386
3386
  }
@@ -3475,7 +3475,7 @@ var LR = { exports: {} };
3475
3475
  return !1;
3476
3476
  }
3477
3477
  }
3478
- const Es = { "==": s6, "!=": k5, ">": V5, "<": ba, ">=": B5, "<=": R5, array: Dr, at: a6, boolean: Dr, case: Li, coalesce: va, collator: Po, format: l6, image: c6, in: q3, "index-of": vs, interpolate: Qi, "interpolate-hcl": Qi, "interpolate-lab": Qi, length: u6, let: _s, literal: br, match: ya, number: Dr, "number-format": bs, object: Dr, slice: I2, step: X2, string: Dr, "to-boolean": bi, "to-color": bi, "to-number": bi, "to-string": bi, var: G3, within: E1, distance: f2, "global-state": n4 };
3478
+ const Es = { "==": s6, "!=": k5, ">": V5, "<": ba, ">=": B5, "<=": R5, array: Dr, at: a6, boolean: Dr, case: Li, coalesce: va, collator: Oo, format: l6, image: c6, in: q3, "index-of": vs, interpolate: Qi, "interpolate-hcl": Qi, "interpolate-lab": Qi, length: u6, let: _s, literal: br, match: ya, number: Dr, "number-format": bs, object: Dr, slice: I2, step: X2, string: Dr, "to-boolean": bi, "to-color": bi, "to-number": bi, "to-string": bi, var: G3, within: E1, distance: f2, "global-state": n4 };
3479
3479
  class Z1 {
3480
3480
  constructor(c, f, m, x) {
3481
3481
  this.name = c, this.type = f, this._evaluate = m, this.args = x;
@@ -3553,7 +3553,7 @@ var LR = { exports: {} };
3553
3553
  }
3554
3554
  function Cs(d) {
3555
3555
  if (d instanceof G3) return Cs(d.boundExpression);
3556
- if (d instanceof Z1 && d.name === "error" || d instanceof Po || d instanceof E1 || d instanceof f2 || d instanceof n4) return !1;
3556
+ if (d instanceof Z1 && d.name === "error" || d instanceof Oo || d instanceof E1 || d instanceof f2 || d instanceof n4) return !1;
3557
3557
  const c = d instanceof bi || d instanceof Dr;
3558
3558
  let f = !0;
3559
3559
  return d.eachChild((m) => {
@@ -3581,7 +3581,7 @@ var LR = { exports: {} };
3581
3581
  f && !d2(m, c) && (f = !1);
3582
3582
  }), f;
3583
3583
  }
3584
- function Do(d) {
3584
+ function ko(d) {
3585
3585
  return { result: "success", value: d };
3586
3586
  }
3587
3587
  function ro(d) {
@@ -3590,7 +3590,7 @@ var LR = { exports: {} };
3590
3590
  function T2(d) {
3591
3591
  return d["property-type"] === "data-driven" || d["property-type"] === "cross-faded-data-driven";
3592
3592
  }
3593
- function ko(d) {
3593
+ function Vo(d) {
3594
3594
  return !!d.expression && d.expression.parameters.indexOf("zoom") > -1;
3595
3595
  }
3596
3596
  function i4(d) {
@@ -3815,10 +3815,10 @@ var LR = { exports: {} };
3815
3815
  }
3816
3816
  function Qc(d, c) {
3817
3817
  const f = new W3(Es, Cs, [], c ? function(x) {
3818
- const A = { color: Un, string: dr, number: me, enum: dr, boolean: Hr, formatted: j3, padding: So, numberArray: a2, colorArray: z3, projectionDefinition: Zn, resolvedImage: Ta, variableAnchorOffsetCollection: Pn };
3818
+ const A = { color: Un, string: dr, number: me, enum: dr, boolean: Hr, formatted: j3, padding: Co, numberArray: a2, colorArray: z3, projectionDefinition: Zn, resolvedImage: Ta, variableAnchorOffsetCollection: Pn };
3819
3819
  return x.type === "array" ? r1(A[x.value] || Vr, x.length) : A[x.type];
3820
3820
  }(c) : void 0), m = f.parse(d, void 0, void 0, void 0, c && c.type === "string" ? { typeAnnotation: "coerce" } : void 0);
3821
- return m ? Do(new Tc(m, c)) : ro(f.errors);
3821
+ return m ? ko(new Tc(m, c)) : ro(f.errors);
3822
3822
  }
3823
3823
  class b8 {
3824
3824
  constructor(c, f) {
@@ -3851,9 +3851,9 @@ var LR = { exports: {} };
3851
3851
  const m = f.value.expression, x = n1(m);
3852
3852
  if (!x && !T2(c)) return ro([new Zr("", "data expressions not supported")]);
3853
3853
  const A = d2(m, ["zoom"]);
3854
- if (!A && !ko(c)) return ro([new Zr("", "zoom expressions not supported")]);
3854
+ if (!A && !Vo(c)) return ro([new Zr("", "zoom expressions not supported")]);
3855
3855
  const S = G5(m);
3856
- return S || A ? S instanceof Zr ? ro([S]) : S instanceof Qi && !i4(c) ? ro([new Zr("", '"interpolate" expressions cannot be used with this property')]) : Do(S ? new pc(x ? "camera" : "composite", f.value, S.labels, S instanceof Qi ? S.interpolation : void 0) : new b8(x ? "constant" : "source", f.value)) : ro([new Zr("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
3856
+ return S || A ? S instanceof Zr ? ro([S]) : S instanceof Qi && !i4(c) ? ro([new Zr("", '"interpolate" expressions cannot be used with this property')]) : ko(S ? new pc(x ? "camera" : "composite", f.value, S.labels, S instanceof Qi ? S.interpolation : void 0) : new b8(x ? "constant" : "source", f.value)) : ro([new Zr("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
3857
3857
  }
3858
3858
  class W5 {
3859
3859
  constructor(c, f) {
@@ -4045,7 +4045,7 @@ var LR = { exports: {} };
4045
4045
  }, default: function(et) {
4046
4046
  return et.validateSpec({ key: et.key, value: et.value, valueSpec: c, validateSpec: et.validateSpec, style: et.style, styleSpec: et.styleSpec });
4047
4047
  } } });
4048
- return f === "identity" && O && $.push(new ie(d.key, d.value, 'missing required property "property"')), f === "identity" || d.value.stops || $.push(new ie(d.key, d.value, 'missing required property "stops"')), f === "exponential" && d.valueSpec.expression && !i4(d.valueSpec) && $.push(new ie(d.key, d.value, "exponential functions not supported")), d.styleSpec.$version >= 8 && (B && !T2(d.valueSpec) ? $.push(new ie(d.key, d.value, "property functions not supported")) : O && !ko(d.valueSpec) && $.push(new ie(d.key, d.value, "zoom functions not supported"))), f !== "categorical" && !j || d.value.property !== void 0 || $.push(new ie(d.key, d.value, '"property" property is required')), $;
4048
+ return f === "identity" && O && $.push(new ie(d.key, d.value, 'missing required property "property"')), f === "identity" || d.value.stops || $.push(new ie(d.key, d.value, 'missing required property "stops"')), f === "exponential" && d.valueSpec.expression && !i4(d.valueSpec) && $.push(new ie(d.key, d.value, "exponential functions not supported")), d.styleSpec.$version >= 8 && (B && !T2(d.valueSpec) ? $.push(new ie(d.key, d.value, "property functions not supported")) : O && !Vo(d.valueSpec) && $.push(new ie(d.key, d.value, "zoom functions not supported"))), f !== "categorical" && !j || d.value.property !== void 0 || $.push(new ie(d.key, d.value, '"property" property is required')), $;
4049
4049
  function q(et) {
4050
4050
  let rt = [];
4051
4051
  const at = et.value, Tt = et.key;
@@ -4073,7 +4073,7 @@ var LR = { exports: {} };
4073
4073
  return f !== "categorical" || at !== "number" || isFinite(Tt) && Math.floor(Tt) === Tt ? f !== "categorical" && at === "number" && x !== void 0 && Tt < x ? [new ie(et.key, xt, "stop domain values must appear in ascending order")] : (x = Tt, f === "categorical" && Tt in S ? [new ie(et.key, xt, "stop domain values must be unique")] : (S[Tt] = !0, [])) : [new ie(et.key, xt, `integer expected, found ${Tt}`)];
4074
4074
  }
4075
4075
  }
4076
- function Vo(d) {
4076
+ function Ro(d) {
4077
4077
  const c = (d.expressionContext === "property" ? L8 : Qc)(Is(d.value), d.valueSpec);
4078
4078
  if (c.result === "error") return c.value.map((m) => new ie(`${d.key}${m.key}`, d.value, m.message));
4079
4079
  const f = c.value.expression || c.value._styleExpression.expression;
@@ -4095,7 +4095,7 @@ var LR = { exports: {} };
4095
4095
  return Array.isArray(m.values) ? m.values.indexOf(ci(f)) === -1 && x.push(new ie(c, f, `expected one of [${m.values.join(", ")}], ${JSON.stringify(f)} found`)) : Object.keys(m.values).indexOf(ci(f)) === -1 && x.push(new ie(c, f, `expected one of [${Object.keys(m.values).join(", ")}], ${JSON.stringify(f)} found`)), x;
4096
4096
  }
4097
4097
  function C8(d) {
4098
- return q5(Is(d.value)) ? Vo(nn({}, d, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : iT(d);
4098
+ return q5(Is(d.value)) ? Ro(nn({}, d, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : iT(d);
4099
4099
  }
4100
4100
  function iT(d) {
4101
4101
  const c = d.value, f = d.key;
@@ -4210,7 +4210,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4210
4210
  case "geojson":
4211
4211
  if (O = Q2({ key: f, value: c, valueSpec: m.source_geojson, style: x, styleSpec: m, validateSpec: A, objectElementValidators: m6 }), c.cluster) for (const B in c.clusterProperties) {
4212
4212
  const [j, $] = c.clusterProperties[B], q = typeof j == "string" ? [j, ["accumulated"], ["get", B]] : j;
4213
- O.push(...Vo({ key: `${f}.${B}.map`, value: $, expressionContext: "cluster-map" })), O.push(...Vo({ key: `${f}.${B}.reduce`, value: q, expressionContext: "cluster-reduce" }));
4213
+ O.push(...Ro({ key: `${f}.${B}.map`, value: $, expressionContext: "cluster-map" })), O.push(...Ro({ key: `${f}.${B}.reduce`, value: q, expressionContext: "cluster-reduce" }));
4214
4214
  }
4215
4215
  return O;
4216
4216
  case "video":
@@ -4287,9 +4287,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4287
4287
  return !!["interpolate", "step", "literal"].includes(x[0]);
4288
4288
  }(f) ? ["array", "string"].includes(m) ? [] : [new ie(c, f, `projection expected, invalid type "${m}" found`)] : [new ie(c, f, `projection expected, invalid array ${JSON.stringify(f)} found`)];
4289
4289
  }, string: Di, formatted: function(d) {
4290
- return Di(d).length === 0 ? [] : Vo(d);
4290
+ return Di(d).length === 0 ? [] : Ro(d);
4291
4291
  }, resolvedImage: function(d) {
4292
- return Di(d).length === 0 ? [] : Vo(d);
4292
+ return Di(d).length === 0 ? [] : Ro(d);
4293
4293
  }, padding: function(d) {
4294
4294
  const c = d.key, f = d.value;
4295
4295
  if (Rr(f) === "array") {
@@ -4328,7 +4328,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4328
4328
  }, sprite: P8, state: vc };
4329
4329
  function y6(d) {
4330
4330
  const c = d.value, f = d.valueSpec, m = d.styleSpec;
4331
- return d.validateSpec = y6, f.expression && Hs(ci(c)) ? E8(d) : f.expression && Z5(Is(c)) ? Vo(d) : f.type && cT[f.type] ? cT[f.type](d) : Q2(nn({}, d, { valueSpec: f.type ? m[f.type] : f }));
4331
+ return d.validateSpec = y6, f.expression && Hs(ci(c)) ? E8(d) : f.expression && Z5(Is(c)) ? Ro(d) : f.type && cT[f.type] ? cT[f.type](d) : Q2(nn({}, d, { valueSpec: f.type ? m[f.type] : f }));
4332
4332
  }
4333
4333
  function uT(d) {
4334
4334
  const c = d.value, f = d.key, m = Di(d);
@@ -4445,10 +4445,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4445
4445
  return new x6(c.buffer);
4446
4446
  }
4447
4447
  }
4448
- const Ro = {};
4448
+ const Bo = {};
4449
4449
  function Xe(d, c, f = {}) {
4450
- if (Ro[d]) throw new Error(`${d} is already registered.`);
4451
- Object.defineProperty(c, "_classRegistryKey", { value: d, writeable: !1 }), Ro[d] = { klass: c, omit: f.omit || [], shallow: f.shallow || [] };
4450
+ if (Bo[d]) throw new Error(`${d} is already registered.`);
4451
+ Object.defineProperty(c, "_classRegistryKey", { value: d, writeable: !1 }), Bo[d] = { klass: c, omit: f.omit || [], shallow: f.shallow || [] };
4452
4452
  }
4453
4453
  Xe("Object", Object), Xe("TransferableGridIndex", x6), Xe("Color", ve), Xe("Error", Error), Xe("AJAXError", e1), Xe("ResolvedImage", sn), Xe("StylePropertyFunction", W5), Xe("StyleExpression", Tc, { omit: ["_evaluator"] }), Xe("ZoomDependentExpression", pc), Xe("ZoomConstantExpression", b8), Xe("CompoundExpression", Z1, { omit: ["_evaluate"] });
4454
4454
  for (const d in Es) Es[d]._classRegistryKey || Xe(`Expression_${d}`, Es[d]);
@@ -4475,15 +4475,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4475
4475
  if (typeof d != "object") throw new Error("can't serialize object of type " + typeof d);
4476
4476
  const f = wc(d);
4477
4477
  if (!f) throw new Error(`can't serialize object of unregistered class ${d.constructor.name}`);
4478
- if (!Ro[f]) throw new Error(`${f} is not registered.`);
4479
- const { klass: m } = Ro[f], x = m.serialize ? m.serialize(d, c) : {};
4478
+ if (!Bo[f]) throw new Error(`${f} is not registered.`);
4479
+ const { klass: m } = Bo[f], x = m.serialize ? m.serialize(d, c) : {};
4480
4480
  if (m.serialize) {
4481
4481
  if (c && x === c[c.length - 1]) throw new Error("statically serialized object won't survive transfer of $name property");
4482
4482
  } else {
4483
4483
  for (const A in d) {
4484
- if (!d.hasOwnProperty(A) || Ro[f].omit.indexOf(A) >= 0) continue;
4484
+ if (!d.hasOwnProperty(A) || Bo[f].omit.indexOf(A) >= 0) continue;
4485
4485
  const S = d[A];
4486
- x[A] = Ro[f].shallow.indexOf(A) >= 0 ? S : b6(S, c);
4486
+ x[A] = Bo[f].shallow.indexOf(A) >= 0 ? S : b6(S, c);
4487
4487
  }
4488
4488
  d instanceof Error && (x.message = d.message);
4489
4489
  }
@@ -4495,15 +4495,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4495
4495
  if (Array.isArray(d)) return d.map(t0);
4496
4496
  if (typeof d != "object") throw new Error("can't deserialize object of type " + typeof d);
4497
4497
  const c = wc(d) || "Object";
4498
- if (!Ro[c]) throw new Error(`can't deserialize unregistered class ${c}`);
4499
- const { klass: f } = Ro[c];
4498
+ if (!Bo[c]) throw new Error(`can't deserialize unregistered class ${c}`);
4499
+ const { klass: f } = Bo[c];
4500
4500
  if (!f) throw new Error(`can't deserialize unregistered class ${c}`);
4501
4501
  if (f.deserialize) return f.deserialize(d);
4502
4502
  const m = Object.create(f.prototype);
4503
4503
  for (const x of Object.keys(d)) {
4504
4504
  if (x === "$name") continue;
4505
4505
  const A = d[x];
4506
- m[x] = Ro[c].shallow.indexOf(x) >= 0 ? A : t0(A);
4506
+ m[x] = Bo[c].shallow.indexOf(x) >= 0 ? A : t0(A);
4507
4507
  }
4508
4508
  return m;
4509
4509
  }
@@ -5630,7 +5630,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5630
5630
  return 256 * (d = ir(Math.floor(d), 0, 255)) + ir(Math.floor(c), 0, 255);
5631
5631
  }
5632
5632
  cn.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, Xe("SegmentVector", cn);
5633
- const Bo = Jn([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]);
5633
+ const Fo = Jn([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]);
5634
5634
  var ks, s4, a0, Vs = { exports: {} }, l4 = { exports: {} }, p2 = { exports: {} }, Rs = function() {
5635
5635
  if (a0) return Vs.exports;
5636
5636
  a0 = 1;
@@ -5773,7 +5773,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5773
5773
  return m.substr(0, 9) === "u_pattern" ? new gT(c, f) : new Cc(c, f);
5774
5774
  }
5775
5775
  }
5776
- class Fo {
5776
+ class No {
5777
5777
  constructor(c, f, m, x) {
5778
5778
  this.expression = c, this.type = m, this.maxValue = 0, this.paintVertexAttributes = f.map((A) => ({ name: `a_${A}`, type: "Float32", components: m === "color" ? 2 : 1, offset: 0 })), this.paintVertexArray = new x();
5779
5779
  }
@@ -5853,7 +5853,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5853
5853
  if (B && j && $) for (let q = c; q < f; q++) this.zoomInPaintVertexArray.emplace(q, j.tl[0], j.tl[1], j.br[0], j.br[1], B.tl[0], B.tl[1], B.br[0], B.br[1], j.pixelRatio, B.pixelRatio), this.zoomOutPaintVertexArray.emplace(q, j.tl[0], j.tl[1], j.br[0], j.br[1], $.tl[0], $.tl[1], $.br[0], $.br[1], j.pixelRatio, $.pixelRatio);
5854
5854
  }
5855
5855
  upload(c) {
5856
- this.zoomInPaintVertexArray && this.zoomInPaintVertexArray.arrayBuffer && this.zoomOutPaintVertexArray && this.zoomOutPaintVertexArray.arrayBuffer && (this.zoomInPaintVertexBuffer = c.createVertexBuffer(this.zoomInPaintVertexArray, Bo.members, this.expression.isStateDependent), this.zoomOutPaintVertexBuffer = c.createVertexBuffer(this.zoomOutPaintVertexArray, Bo.members, this.expression.isStateDependent));
5856
+ this.zoomInPaintVertexArray && this.zoomInPaintVertexArray.arrayBuffer && this.zoomOutPaintVertexArray && this.zoomOutPaintVertexArray.arrayBuffer && (this.zoomInPaintVertexBuffer = c.createVertexBuffer(this.zoomInPaintVertexArray, Fo.members, this.expression.isStateDependent), this.zoomOutPaintVertexBuffer = c.createVertexBuffer(this.zoomOutPaintVertexArray, Fo.members, this.expression.isStateDependent));
5857
5857
  }
5858
5858
  destroy() {
5859
5859
  this.zoomOutPaintVertexBuffer && this.zoomOutPaintVertexBuffer.destroy(), this.zoomInPaintVertexBuffer && this.zoomInPaintVertexBuffer.destroy();
@@ -5871,7 +5871,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5871
5871
  if (B.kind === "constant") this.binders[A] = J ? new V2(B.value, O) : new s0(B.value, O, j), x.push(`/u_${A}`);
5872
5872
  else if (B.kind === "source" || J) {
5873
5873
  const et = FE(A, j, "source");
5874
- this.binders[A] = J ? new Ha(B, j, $, f, et, c.id) : new Fo(B, O, j, et), x.push(`/a_${A}`);
5874
+ this.binders[A] = J ? new Ha(B, j, $, f, et, c.id) : new No(B, O, j, et), x.push(`/a_${A}`);
5875
5875
  } else {
5876
5876
  const et = FE(A, j, "composite");
5877
5877
  this.binders[A] = new R2(B, O, j, $, f, et), x.push(`/z_${A}`);
@@ -5881,12 +5881,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5881
5881
  }
5882
5882
  getMaxValue(c) {
5883
5883
  const f = this.binders[c];
5884
- return f instanceof Fo || f instanceof R2 ? f.maxValue : 0;
5884
+ return f instanceof No || f instanceof R2 ? f.maxValue : 0;
5885
5885
  }
5886
5886
  populatePaintArrays(c, f, m, x, A) {
5887
5887
  for (const S in this.binders) {
5888
5888
  const O = this.binders[S];
5889
- (O instanceof Fo || O instanceof R2 || O instanceof Ha) && O.populatePaintArray(c, f, m, x, A);
5889
+ (O instanceof No || O instanceof R2 || O instanceof Ha) && O.populatePaintArray(c, f, m, x, A);
5890
5890
  }
5891
5891
  }
5892
5892
  setConstantPatternPositions(c, f) {
@@ -5903,7 +5903,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5903
5903
  const $ = m.feature(j.index);
5904
5904
  for (const q in this.binders) {
5905
5905
  const J = this.binders[q];
5906
- if ((J instanceof Fo || J instanceof R2 || J instanceof Ha) && J.expression.isStateDependent === !0) {
5906
+ if ((J instanceof No || J instanceof R2 || J instanceof Ha) && J.expression.isStateDependent === !0) {
5907
5907
  const et = x.paint.get(q);
5908
5908
  J.expression = et.value, J.updatePaintArray(j.start, j.end, $, c[O], A), S = !0;
5909
5909
  }
@@ -5924,8 +5924,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5924
5924
  const c = [];
5925
5925
  for (const f in this.binders) {
5926
5926
  const m = this.binders[f];
5927
- if (m instanceof Fo || m instanceof R2) for (let x = 0; x < m.paintVertexAttributes.length; x++) c.push(m.paintVertexAttributes[x].name);
5928
- else if (m instanceof Ha) for (let x = 0; x < Bo.members.length; x++) c.push(Bo.members[x].name);
5927
+ if (m instanceof No || m instanceof R2) for (let x = 0; x < m.paintVertexAttributes.length; x++) c.push(m.paintVertexAttributes[x].name);
5928
+ else if (m instanceof Ha) for (let x = 0; x < Fo.members.length; x++) c.push(Fo.members[x].name);
5929
5929
  }
5930
5930
  return c;
5931
5931
  }
@@ -5963,20 +5963,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5963
5963
  if (c && m instanceof Ha) {
5964
5964
  const x = c.fromScale === 2 ? m.zoomInPaintVertexBuffer : m.zoomOutPaintVertexBuffer;
5965
5965
  x && this._buffers.push(x);
5966
- } else (m instanceof Fo || m instanceof R2) && m.paintVertexBuffer && this._buffers.push(m.paintVertexBuffer);
5966
+ } else (m instanceof No || m instanceof R2) && m.paintVertexBuffer && this._buffers.push(m.paintVertexBuffer);
5967
5967
  }
5968
5968
  }
5969
5969
  upload(c) {
5970
5970
  for (const f in this.binders) {
5971
5971
  const m = this.binders[f];
5972
- (m instanceof Fo || m instanceof R2 || m instanceof Ha) && m.upload(c);
5972
+ (m instanceof No || m instanceof R2 || m instanceof Ha) && m.upload(c);
5973
5973
  }
5974
5974
  this.updatePaintBuffers();
5975
5975
  }
5976
5976
  destroy() {
5977
5977
  for (const c in this.binders) {
5978
5978
  const f = this.binders[c];
5979
- (f instanceof Fo || f instanceof R2 || f instanceof Ha) && f.destroy();
5979
+ (f instanceof No || f instanceof R2 || f instanceof Ha) && f.destroy();
5980
5980
  }
5981
5981
  }
5982
5982
  }
@@ -6015,7 +6015,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6015
6015
  }(d);
6016
6016
  return x && x[f] || m[c][f];
6017
6017
  }
6018
- Xe("ConstantBinder", s0), Xe("CrossFadedConstantBinder", V2), Xe("SourceExpressionBinder", Fo), Xe("CrossFadedCompositeBinder", Ha), Xe("CompositeExpressionBinder", R2), Xe("ProgramConfiguration", Hc, { omit: ["_buffers"] }), Xe("ProgramConfigurationSet", Fs);
6018
+ Xe("ConstantBinder", s0), Xe("CrossFadedConstantBinder", V2), Xe("SourceExpressionBinder", No), Xe("CrossFadedCompositeBinder", Ha), Xe("CompositeExpressionBinder", R2), Xe("ProgramConfiguration", Hc, { omit: ["_buffers"] }), Xe("ProgramConfigurationSet", Fs);
6019
6019
  const B_ = Math.pow(2, 14) - 1, NE = -B_ - 1;
6020
6020
  function l0(d) {
6021
6021
  const c = Qr / d.extent, f = d.loadGeometry();
@@ -6341,8 +6341,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6341
6341
  let c = this.paint.get("hillshade-illumination-direction").values, f = this.paint.get("hillshade-illumination-altitude").values, m = this.paint.get("hillshade-highlight-color").values, x = this.paint.get("hillshade-shadow-color").values;
6342
6342
  const A = Math.max(c.length, f.length, m.length, x.length);
6343
6343
  c = c.concat(Array(A - c.length).fill(c.at(-1))), f = f.concat(Array(A - f.length).fill(f.at(-1))), m = m.concat(Array(A - m.length).fill(m.at(-1))), x = x.concat(Array(A - x.length).fill(x.at(-1)));
6344
- const S = f.map(Mo);
6345
- return { directionRadians: c.map(Mo), altitudeRadians: S, shadowColor: x, highlightColor: m };
6344
+ const S = f.map(Eo);
6345
+ return { directionRadians: c.map(Eo), altitudeRadians: S, shadowColor: x, highlightColor: m };
6346
6346
  }
6347
6347
  hasOffscreenPass() {
6348
6348
  return this.paint.get("hillshade-exaggeration") !== 0 && this.visibility !== "none";
@@ -9679,7 +9679,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9679
9679
  isNaN(f) ? delete c["max-age"] : c["max-age"] = f;
9680
9680
  }
9681
9681
  return c;
9682
- }, s.ab = Mo, s.ac = function(d) {
9682
+ }, s.ab = Eo, s.ac = function(d) {
9683
9683
  return Math.pow(2, d);
9684
9684
  }, s.ad = it, s.ae = ir, s.af = 85.051129, s.ag = GS, s.ah = function(d) {
9685
9685
  return Math.log(d) / Math.LN2;
@@ -9986,7 +9986,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9986
9986
  return d[0] = c[0], d[1] = 0, d[2] = 0, d[3] = 0, d[4] = 0, d[5] = c[1], d[6] = 0, d[7] = 0, d[8] = 0, d[9] = 0, d[10] = c[2], d[11] = 0, d[12] = 0, d[13] = 0, d[14] = 0, d[15] = 1, d;
9987
9987
  }, s.cm = class extends o0 {
9988
9988
  }, s.cn = FU, s.cp = function(d) {
9989
- return d.message === Eo;
9989
+ return d.message === So;
9990
9990
  }, s.cq = e1, s.cr = function(d, c) {
9991
9991
  o2.REGISTERED_PROTOCOLS[d] = c;
9992
9992
  }, s.cs = function(d) {
@@ -10794,16 +10794,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10794
10794
  const ct = 1 << Gt.z, Qt = Gt.x, At = Gt.y;
10795
10795
  for (const Bt of Gt.features) {
10796
10796
  const dt = Bt.geometry, Kt = Bt.type;
10797
- if (Bt.geometry = [], Kt === 1) for (let jt = 0; jt < dt.length; jt += 2) Bt.geometry.push(Mo(dt[jt], dt[jt + 1], lt, ct, Qt, At));
10797
+ if (Bt.geometry = [], Kt === 1) for (let jt = 0; jt < dt.length; jt += 2) Bt.geometry.push(Eo(dt[jt], dt[jt + 1], lt, ct, Qt, At));
10798
10798
  else for (let jt = 0; jt < dt.length; jt++) {
10799
10799
  const Xt = [];
10800
- for (let re = 0; re < dt[jt].length; re += 2) Xt.push(Mo(dt[jt][re], dt[jt][re + 1], lt, ct, Qt, At));
10800
+ for (let re = 0; re < dt[jt].length; re += 2) Xt.push(Eo(dt[jt][re], dt[jt][re + 1], lt, ct, Qt, At));
10801
10801
  Bt.geometry.push(Xt);
10802
10802
  }
10803
10803
  }
10804
10804
  return Gt.transformed = !0, Gt;
10805
10805
  }
10806
- function Mo(Gt, lt, ct, Qt, At, Bt) {
10806
+ function Eo(Gt, lt, ct, Qt, At, Bt) {
10807
10807
  return [Math.round(ct * (Gt * Qt - At)), Math.round(ct * (lt * Qt - Bt))];
10808
10808
  }
10809
10809
  function N1(Gt, lt, ct, Qt, At) {
@@ -10845,13 +10845,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10845
10845
  }
10846
10846
  }(Kt, Bt), Gt.push(Kt);
10847
10847
  }
10848
- const Eo = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 };
10848
+ const So = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 };
10849
10849
  class z1 {
10850
10850
  constructor(lt, ct) {
10851
10851
  const Qt = (ct = this.options = function(Bt, dt) {
10852
10852
  for (const Kt in dt) Bt[Kt] = dt[Kt];
10853
10853
  return Bt;
10854
- }(Object.create(Eo), ct)).debug;
10854
+ }(Object.create(So), ct)).debug;
10855
10855
  if (Qt && console.time("preprocess data"), ct.maxZoom < 0 || ct.maxZoom > 24) throw new Error("maxZoom should be in the 0-24 range");
10856
10856
  if (ct.promoteId && ct.generateId) throw new Error("promoteId and generateId cannot be used together.");
10857
10857
  let At = function(Bt, dt) {
@@ -12422,7 +12422,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12422
12422
  return !1;
12423
12423
  }
12424
12424
  }
12425
- const Mo = {}, N1 = (b) => {
12425
+ const Eo = {}, N1 = (b) => {
12426
12426
  switch (b) {
12427
12427
  case "geojson":
12428
12428
  return t1;
@@ -12439,7 +12439,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12439
12439
  case "canvas":
12440
12440
  return W2;
12441
12441
  }
12442
- return Mo[b];
12442
+ return Eo[b];
12443
12443
  }, da = "RTLPluginLoaded";
12444
12444
  class j1 extends a.E {
12445
12445
  constructor() {
@@ -12475,9 +12475,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12475
12475
  this.status === "unavailable" ? this.status = "requested" : this.status === "deferred" && this._requestImport();
12476
12476
  }
12477
12477
  }
12478
- let Eo = null;
12478
+ let So = null;
12479
12479
  function z1() {
12480
- return Eo || (Eo = new j1()), Eo;
12480
+ return So || (So = new j1()), So;
12481
12481
  }
12482
12482
  class o2 {
12483
12483
  constructor(l, h) {
@@ -13388,9 +13388,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13388
13388
  h ? b.text.dynamicLayoutVertexBuffer.updateData(yt) : b.icon.dynamicLayoutVertexBuffer.updateData(yt);
13389
13389
  }
13390
13390
  function mr(b, l, h, g, v, L, P, D) {
13391
- const F = L.glyphStartIndex + L.numGlyphs, z = L.lineStartIndex, W = L.lineStartIndex + L.lineLength, K = l.getoffsetX(L.glyphStartIndex), X = l.getoffsetX(F - 1), nt = So(b * K, h, g, v, L.segment, z, W, D, P);
13391
+ const F = L.glyphStartIndex + L.numGlyphs, z = L.lineStartIndex, W = L.lineStartIndex + L.lineLength, K = l.getoffsetX(L.glyphStartIndex), X = l.getoffsetX(F - 1), nt = Co(b * K, h, g, v, L.segment, z, W, D, P);
13392
13392
  if (!nt) return null;
13393
- const ot = So(b * X, h, g, v, L.segment, z, W, D, P);
13393
+ const ot = Co(b * X, h, g, v, L.segment, z, W, D, P);
13394
13394
  return ot ? D.projectionCache.anyProjectionOccluded ? null : { first: nt, last: ot } : null;
13395
13395
  }
13396
13396
  function me(b, l, h, g) {
@@ -13408,14 +13408,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13408
13408
  if (kt) return kt;
13409
13409
  }
13410
13410
  ot = [Mt.first];
13411
- for (let kt = g.glyphStartIndex + 1; kt < _t - 1; kt++) ot.push(So(K * D.getoffsetX(kt), X, nt, L, g.segment, yt, vt, l, W));
13411
+ for (let kt = g.glyphStartIndex + 1; kt < _t - 1; kt++) ot.push(Co(K * D.getoffsetX(kt), X, nt, L, g.segment, yt, vt, l, W));
13412
13412
  ot.push(Mt.last);
13413
13413
  } else {
13414
13414
  if (P && !L) {
13415
13415
  const yt = Zn(l.tileAnchorPoint.x, l.tileAnchorPoint.y, l).point, vt = g.lineStartIndex + g.segment + 1, Mt = new a.P(l.lineVertexArray.getx(vt), l.lineVertexArray.gety(vt)), Ot = Zn(Mt.x, Mt.y, l), Pt = Ot.signedDistanceFromCamera > 0 ? Ot.point : Hr(l.tileAnchorPoint, Mt, yt, 1, l), kt = Qn(yt.x, yt.y, l, h), Nt = Qn(Pt.x, Pt.y, l, h), Vt = me(g.writingMode, kt, Nt, z);
13416
13416
  if (Vt) return Vt;
13417
13417
  }
13418
- const _t = So(K * D.getoffsetX(g.glyphStartIndex), X, nt, L, g.segment, g.lineStartIndex, g.lineStartIndex + g.lineLength, l, W);
13418
+ const _t = Co(K * D.getoffsetX(g.glyphStartIndex), X, nt, L, g.segment, g.lineStartIndex, g.lineStartIndex + g.lineLength, l, W);
13419
13419
  if (!_t || l.projectionCache.anyProjectionOccluded) return { notEnoughRoom: !0 };
13420
13420
  ot = [_t];
13421
13421
  }
@@ -13459,7 +13459,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13459
13459
  const W = Un(b + F.direction, D, F), K = gs(W.sub(h), P, F.direction), X = h.add(K), nt = W.add(K);
13460
13460
  return D.projectionCache.offsets[b] = a.au(L, z, X, nt) || z, D.projectionCache.offsets[b];
13461
13461
  }
13462
- function So(b, l, h, g, v, L, P, D, F) {
13462
+ function Co(b, l, h, g, v, L, P, D, F) {
13463
13463
  const z = g ? b - l : b + l;
13464
13464
  let W = z > 0 ? 1 : -1, K = 0;
13465
13465
  g && (W *= -1, K = Math.PI), W < 0 && (K += Math.PI);
@@ -13709,8 +13709,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13709
13709
  var en, ti;
13710
13710
  if (h[we.crossTileID]) return;
13711
13711
  if (K) return void (this.placements[we.crossTileID] = new Qa(!1, !1, !1));
13712
- let wn = !1, ei = !1, ri = !0, Mn = null, ln = { box: null, placeable: !1, offscreen: null, occluded: !1 }, ki = { placeable: !1 }, $i = null, i1 = null, cn = null, Ds = 0, Bo = 0, ks = 0;
13713
- er.textFeatureIndex ? Ds = er.textFeatureIndex : we.useRuntimeCollisionCircles && (Ds = we.featureIndex), er.verticalTextFeatureIndex && (Bo = er.verticalTextFeatureIndex);
13712
+ let wn = !1, ei = !1, ri = !0, Mn = null, ln = { box: null, placeable: !1, offscreen: null, occluded: !1 }, ki = { placeable: !1 }, $i = null, i1 = null, cn = null, Ds = 0, Fo = 0, ks = 0;
13713
+ er.textFeatureIndex ? Ds = er.textFeatureIndex : we.useRuntimeCollisionCircles && (Ds = we.featureIndex), er.verticalTextFeatureIndex && (Fo = er.verticalTextFeatureIndex);
13714
13714
  const s4 = er.textBox;
13715
13715
  if (s4) {
13716
13716
  const p2 = (Ai) => {
@@ -13738,9 +13738,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13738
13738
  let Ai = a.aB[(ti = (en = this.prevPlacement) === null || en === void 0 ? void 0 : en.variableOffsets[we.crossTileID]) === null || ti === void 0 ? void 0 : ti.anchor];
13739
13739
  const Mi = (kn, Cc, gT) => {
13740
13740
  const yT = kn.x2 - kn.x1, R_ = kn.y2 - kn.y1, U8 = we.textBoxScale, s0 = Vt && Ot === "never" ? Cc : null;
13741
- let V2 = null, Fo = vt === "never" ? 1 : 2, R2 = "never";
13742
- Ai && Fo++;
13743
- for (let Ha = 0; Ha < Fo; Ha++) {
13741
+ let V2 = null, No = vt === "never" ? 1 : 2, R2 = "never";
13742
+ Ai && No++;
13743
+ for (let Ha = 0; Ha < No; Ha++) {
13744
13744
  for (let Hc = Ca; Hc < Bs; Hc++) {
13745
13745
  const Fs = v.textAnchorOffsets.get(Hc);
13746
13746
  if (Ai && Fs.textAnchor !== Ai) continue;
@@ -13773,7 +13773,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13773
13773
  const a0 = _t || we.numHorizontalGlyphVertices === 0 && we.numVerticalGlyphVertices === 0, Vs = yt || we.numIconVertices === 0;
13774
13774
  a0 || Vs ? Vs ? a0 || (ei = ei && wn) : wn = ei && wn : ei = wn = ei && wn;
13775
13775
  const l4 = ei && cn.placeable;
13776
- if (wn && $i.placeable && this.collisionIndex.insertCollisionBox($i.box, vt, L.get("text-ignore-placement"), v.bucketInstanceId, ki && ki.placeable && Bo ? Bo : Ds, ot.ID), l4 && this.collisionIndex.insertCollisionBox(cn.box, Ot, L.get("icon-ignore-placement"), v.bucketInstanceId, ks, ot.ID), i1 && wn && this.collisionIndex.insertCollisionCircles(i1.circles, vt, L.get("text-ignore-placement"), v.bucketInstanceId, Ds, ot.ID), g && this.storeCollisionData(v.bucketInstanceId, Fr, er, $i, cn, i1), we.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
13776
+ if (wn && $i.placeable && this.collisionIndex.insertCollisionBox($i.box, vt, L.get("text-ignore-placement"), v.bucketInstanceId, ki && ki.placeable && Fo ? Fo : Ds, ot.ID), l4 && this.collisionIndex.insertCollisionBox(cn.box, Ot, L.get("icon-ignore-placement"), v.bucketInstanceId, ks, ot.ID), i1 && wn && this.collisionIndex.insertCollisionCircles(i1.circles, vt, L.get("text-ignore-placement"), v.bucketInstanceId, Ds, ot.ID), g && this.storeCollisionData(v.bucketInstanceId, Fr, er, $i, cn, i1), we.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
13777
13777
  if (v.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
13778
13778
  this.placements[we.crossTileID] = new Qa((wn || fe) && !($i != null && $i.occluded), (ei || ae) && !(cn != null && cn.occluded), ri || v.justReloaded), h[we.crossTileID] = !0;
13779
13779
  };
@@ -13844,7 +13844,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13844
13844
  !l.collisionArrays && v && (l.hasIconCollisionBoxData() || l.hasTextCollisionBoxData()) && l.deserializeCollisionBoxes(v);
13845
13845
  const _t = (vt, Mt, Ot) => {
13846
13846
  for (let Pt = 0; Pt < Mt / 4; Pt++) vt.opacityVertexArray.emplaceBack(Ot);
13847
- vt.hasVisibleVertices = vt.hasVisibleVertices || Ot !== Ho;
13847
+ vt.hasVisibleVertices = vt.hasVisibleVertices || Ot !== Po;
13848
13848
  }, yt = this.collisionBoxArrays.get(l.bucketInstanceId);
13849
13849
  for (let vt = 0; vt < l.symbolInstances.length; vt++) {
13850
13850
  const Mt = l.symbolInstances.get(vt), { numHorizontalGlyphVertices: Ot, numVerticalGlyphVertices: Pt, crossTileID: kt } = Mt;
@@ -13853,7 +13853,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13853
13853
  const Vt = Mt.numIconVertices > 0, Jt = this.placedOrientations[Mt.crossTileID], fe = Jt === a.al.vertical, ae = Jt === a.al.horizontal || Jt === a.al.horizontalOnly;
13854
13854
  if (Ot > 0 || Pt > 0) {
13855
13855
  const ce = n6(Nt.text);
13856
- _t(l.text, Ot, fe ? Ho : ce), _t(l.text, Pt, ae ? Ho : ce);
13856
+ _t(l.text, Ot, fe ? Po : ce), _t(l.text, Pt, ae ? Po : ce);
13857
13857
  const Ve = Nt.text.isHidden();
13858
13858
  [Mt.rightJustifiedTextSymbolIndex, Mt.centerJustifiedTextSymbolIndex, Mt.leftJustifiedTextSymbolIndex].forEach((er) => {
13859
13859
  er >= 0 && (l.text.placedSymbolArray.get(er).hidden = Ve || fe ? 1 : 0);
@@ -13865,7 +13865,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13865
13865
  }
13866
13866
  if (Vt) {
13867
13867
  const ce = n6(Nt.icon), Ve = !(nt && Mt.verticalPlacedIconSymbolIndex && fe);
13868
- Mt.placedIconSymbolIndex >= 0 && (_t(l.icon, Mt.numIconVertices, Ve ? ce : Ho), l.icon.placedSymbolArray.get(Mt.placedIconSymbolIndex).hidden = Nt.icon.isHidden()), Mt.verticalPlacedIconSymbolIndex >= 0 && (_t(l.icon, Mt.numVerticalIconVertices, Ve ? Ho : ce), l.icon.placedSymbolArray.get(Mt.verticalPlacedIconSymbolIndex).hidden = Nt.icon.isHidden());
13868
+ Mt.placedIconSymbolIndex >= 0 && (_t(l.icon, Mt.numIconVertices, Ve ? ce : Po), l.icon.placedSymbolArray.get(Mt.placedIconSymbolIndex).hidden = Nt.icon.isHidden()), Mt.verticalPlacedIconSymbolIndex >= 0 && (_t(l.icon, Mt.numVerticalIconVertices, Ve ? Po : ce), l.icon.placedSymbolArray.get(Mt.verticalPlacedIconSymbolIndex).hidden = Nt.icon.isHidden());
13869
13869
  }
13870
13870
  const le = yt && yt.has(vt) ? yt.get(vt) : { text: null, icon: null };
13871
13871
  if (l.hasIconCollisionBoxData() || l.hasTextCollisionBoxData()) {
@@ -13917,14 +13917,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13917
13917
  const P = g[0] - Pn, D = g[1] - Pn, F = g[2] - Pn, z = g[3] - Pn;
13918
13918
  b.emplaceBack(l ? 1 : 0, h ? 1 : 0, v || 0, L || 0, P, D), b.emplaceBack(l ? 1 : 0, h ? 1 : 0, v || 0, L || 0, F, D), b.emplaceBack(l ? 1 : 0, h ? 1 : 0, v || 0, L || 0, F, z), b.emplaceBack(l ? 1 : 0, h ? 1 : 0, v || 0, L || 0, P, z);
13919
13919
  }
13920
- const Co = Math.pow(2, 25), pa = Math.pow(2, 24), ac = Math.pow(2, 17), _8 = Math.pow(2, 16), v8 = Math.pow(2, 9), sc = Math.pow(2, 8), r6 = Math.pow(2, 1);
13920
+ const Ho = Math.pow(2, 25), pa = Math.pow(2, 24), ac = Math.pow(2, 17), _8 = Math.pow(2, 16), v8 = Math.pow(2, 9), sc = Math.pow(2, 8), r6 = Math.pow(2, 1);
13921
13921
  function n6(b) {
13922
13922
  if (b.opacity === 0 && !b.placed) return 0;
13923
13923
  if (b.opacity === 1 && b.placed) return 4294967295;
13924
13924
  const l = b.placed ? 1 : 0, h = Math.floor(127 * b.opacity);
13925
- return h * Co + l * pa + h * ac + l * _8 + h * v8 + l * sc + h * r6 + l;
13925
+ return h * Ho + l * pa + h * ac + l * _8 + h * v8 + l * sc + h * r6 + l;
13926
13926
  }
13927
- const Ho = 0;
13927
+ const Po = 0;
13928
13928
  class D5 {
13929
13929
  constructor(l) {
13930
13930
  this._sortAcrossTiles = l.layout.get("symbol-z-order") !== "viewport-y" && !l.layout.get("symbol-sort-key").isConstant(), this._currentTileIndex = 0, this._currentPartIndex = 0, this._seenCrossTileIDs = {}, this._bucketParts = [];
@@ -17682,7 +17682,7 @@ uniform ${W} ${K} u_${X};
17682
17682
  this.vao && (this.context.deleteVertexArray(this.vao), this.vao = null);
17683
17683
  }
17684
17684
  }
17685
- const B5 = (b, l, h, g, v) => ({ u_texture: 0, u_ele_delta: b, u_fog_matrix: l, u_fog_color: h ? h.properties.get("fog-color") : a.b7.white, u_fog_ground_blend: h ? h.properties.get("fog-ground-blend") : 1, u_fog_ground_blend_opacity: v ? 0 : h ? h.calculateFogBlendOpacity(g) : 0, u_horizon_color: h ? h.properties.get("horizon-color") : a.b7.white, u_horizon_fog_blend: h ? h.properties.get("horizon-fog-blend") : 1, u_is_globe_mode: v ? 1 : 0 }), Po = { mainMatrix: "u_projection_matrix", tileMercatorCoords: "u_projection_tile_mercator_coords", clippingPlane: "u_projection_clipping_plane", projectionTransition: "u_projection_transition", fallbackMatrix: "u_projection_fallback_matrix" };
17685
+ const B5 = (b, l, h, g, v) => ({ u_texture: 0, u_ele_delta: b, u_fog_matrix: l, u_fog_color: h ? h.properties.get("fog-color") : a.b7.white, u_fog_ground_blend: h ? h.properties.get("fog-ground-blend") : 1, u_fog_ground_blend_opacity: v ? 0 : h ? h.calculateFogBlendOpacity(g) : 0, u_horizon_color: h ? h.properties.get("horizon-color") : a.b7.white, u_horizon_fog_blend: h ? h.properties.get("horizon-fog-blend") : 1, u_is_globe_mode: v ? 1 : 0 }), Oo = { mainMatrix: "u_projection_matrix", tileMercatorCoords: "u_projection_tile_mercator_coords", clippingPlane: "u_projection_clipping_plane", projectionTransition: "u_projection_transition", fallbackMatrix: "u_projection_fallback_matrix" };
17686
17686
  function bs(b) {
17687
17687
  const l = [];
17688
17688
  for (let h = 0; h < b.length; h++) {
@@ -17737,7 +17737,7 @@ uniform ${W} ${K} u_${X};
17737
17737
  l.activeTexture.set(Pt.TEXTURE2), Pt.bindTexture(Pt.TEXTURE_2D, F.depthTexture), l.activeTexture.set(Pt.TEXTURE3), Pt.bindTexture(Pt.TEXTURE_2D, F.texture);
17738
17738
  for (const Nt in this.terrainUniforms) this.terrainUniforms[Nt].set(F[Nt]);
17739
17739
  }
17740
- if (z) for (const Nt in z) this.projectionUniforms[Po[Nt]].set(z[Nt]);
17740
+ if (z) for (const Nt in z) this.projectionUniforms[Oo[Nt]].set(z[Nt]);
17741
17741
  if (D) for (const Nt in this.fixedUniforms) this.fixedUniforms[Nt].set(D[Nt]);
17742
17742
  yt && yt.setUniforms(l, this.binderUniforms, ot, { zoom: _t });
17743
17743
  let kt = 0;
@@ -17840,10 +17840,10 @@ uniform ${W} ${K} u_${X};
17840
17840
  const As = (b, l, h, g, v, L, P, D, F, z, W, K, X) => {
17841
17841
  const nt = P.transform;
17842
17842
  return { u_is_size_zoom_constant: +(b === "constant" || b === "source"), u_is_size_feature_constant: +(b === "constant" || b === "camera"), u_size_t: l ? l.uSizeT : 0, u_size: l ? l.uSize : 0, u_camera_to_center_distance: nt.cameraToCenterDistance, u_pitch: nt.pitch / 360 * 2 * Math.PI, u_rotate_symbol: +h, u_aspect_ratio: nt.width / nt.height, u_fade_change: P.options.fadeDuration ? P.symbolFadeChange : 1, u_label_plane_matrix: D, u_coord_matrix: F, u_is_text: +W, u_pitch_with_map: +g, u_is_along_line: v, u_is_variable_anchor: L, u_texsize: K, u_texture: 0, u_translation: z, u_pitched_scale: X };
17843
- }, Oo = (b, l, h, g, v, L, P, D, F, z, W, K, X, nt) => {
17843
+ }, Io = (b, l, h, g, v, L, P, D, F, z, W, K, X, nt) => {
17844
17844
  const ot = P.transform;
17845
17845
  return a.e(As(b, l, h, g, v, L, P, D, F, z, W, K, nt), { u_gamma_scale: g ? Math.cos(ot.pitch * Math.PI / 180) * ot.cameraToCenterDistance : 1, u_device_pixel_ratio: P.pixelRatio, u_is_halo: 1 });
17846
- }, e4 = (b, l, h, g, v, L, P, D, F, z, W, K, X) => a.e(Oo(b, l, h, g, v, L, P, D, F, z, !0, W, 0, X), { u_texsize_icon: K, u_texture_icon: 1 }), x8 = (b, l) => ({ u_opacity: b, u_color: l }), h6 = (b, l, h, g, v) => a.e(function(L, P, D, F) {
17846
+ }, e4 = (b, l, h, g, v, L, P, D, F, z, W, K, X) => a.e(Io(b, l, h, g, v, L, P, D, F, z, !0, W, 0, X), { u_texsize_icon: K, u_texture_icon: 1 }), x8 = (b, l) => ({ u_opacity: b, u_color: l }), h6 = (b, l, h, g, v) => a.e(function(L, P, D, F) {
17847
17847
  const z = D.imageManager.getPattern(L.from.toString()), W = D.imageManager.getPattern(L.to.toString()), { width: K, height: X } = D.imageManager.getPixelSize(), nt = Math.pow(2, F.tileID.overscaledZ), ot = F.tileSize * Math.pow(2, D.transform.tileZoom) / nt, _t = ot * (F.tileID.canonical.x + F.tileID.wrap * nt), yt = ot * F.tileID.canonical.y;
17848
17848
  return { u_image: 0, u_pattern_tl_a: z.tl, u_pattern_br_a: z.br, u_pattern_tl_b: W.tl, u_pattern_br_b: W.br, u_texsize: [K, X], u_mix: P.t, u_pattern_size_a: z.displaySize, u_pattern_size_b: W.displaySize, u_scale_a: P.fromScale, u_scale_b: P.toScale, u_tile_units_to_pixels: 1 / a.az(F, 1, D.transform.tileZoom), u_pixel_coord_upper: [_t >> 16, yt >> 16], u_pixel_coord_lower: [65535 & _t, 65535 & yt] };
17849
17849
  }(h, v, l, g), { u_opacity: b }), r4 = (b, l) => {
@@ -18074,7 +18074,7 @@ uniform ${W} ${K} u_${X};
18074
18074
  (l !== this.current || this.dirty) && (this.gl.cullFace(l), this.current = l, this.dirty = !1);
18075
18075
  }
18076
18076
  }
18077
- class Io extends tn {
18077
+ class Do extends tn {
18078
18078
  getDefault() {
18079
18079
  return this.gl.CCW;
18080
18080
  }
@@ -18198,7 +18198,7 @@ uniform ${W} ${K} u_${X};
18198
18198
  h.pixelStorei(h.UNPACK_FLIP_Y_WEBGL, l), this.current = l, this.dirty = !1;
18199
18199
  }
18200
18200
  }
18201
- class Do extends tn {
18201
+ class ko extends tn {
18202
18202
  constructor(l, h) {
18203
18203
  super(l), this.context = l, this.parent = h;
18204
18204
  }
@@ -18206,7 +18206,7 @@ uniform ${W} ${K} u_${X};
18206
18206
  return null;
18207
18207
  }
18208
18208
  }
18209
- class ro extends Do {
18209
+ class ro extends ko {
18210
18210
  setDirty() {
18211
18211
  this.dirty = !0;
18212
18212
  }
@@ -18217,7 +18217,7 @@ uniform ${W} ${K} u_${X};
18217
18217
  h.framebufferTexture2D(h.FRAMEBUFFER, h.COLOR_ATTACHMENT0, h.TEXTURE_2D, l, 0), this.current = l, this.dirty = !1;
18218
18218
  }
18219
18219
  }
18220
- class T2 extends Do {
18220
+ class T2 extends ko {
18221
18221
  set(l) {
18222
18222
  if (l === this.current && !this.dirty) return;
18223
18223
  this.context.bindFramebuffer.set(this.parent);
@@ -18225,7 +18225,7 @@ uniform ${W} ${K} u_${X};
18225
18225
  h.framebufferRenderbuffer(h.FRAMEBUFFER, h.DEPTH_ATTACHMENT, h.RENDERBUFFER, l), this.current = l, this.dirty = !1;
18226
18226
  }
18227
18227
  }
18228
- class ko extends Do {
18228
+ class Vo extends ko {
18229
18229
  set(l) {
18230
18230
  if (l === this.current && !this.dirty) return;
18231
18231
  this.context.bindFramebuffer.set(this.parent);
@@ -18238,7 +18238,7 @@ uniform ${W} ${K} u_${X};
18238
18238
  constructor(l, h, g, v, L) {
18239
18239
  this.context = l, this.width = h, this.height = g;
18240
18240
  const P = l.gl, D = this.framebuffer = P.createFramebuffer();
18241
- if (this.colorAttachment = new ro(l, D), v) this.depthAttachment = L ? new ko(l, D) : new T2(l, D);
18241
+ if (this.colorAttachment = new ro(l, D), v) this.depthAttachment = L ? new Vo(l, D) : new T2(l, D);
18242
18242
  else if (L) throw new Error("Stencil cannot be set without depth");
18243
18243
  if (P.checkFramebufferStatus(P.FRAMEBUFFER) !== P.FRAMEBUFFER_COMPLETE) throw new Error(i4);
18244
18244
  }
@@ -18254,7 +18254,7 @@ uniform ${W} ${K} u_${X};
18254
18254
  class Hs {
18255
18255
  constructor(l) {
18256
18256
  var h, g;
18257
- if (this.gl = l, this.clearColor = new J2(this), this.clearDepth = new Ut(this), this.clearStencil = new he(this), this.colorMask = new $e(this), this.depthMask = new yr(this), this.stencilMask = new xn(this), this.stencilFunc = new Br(this), this.stencilOp = new In(this), this.stencilTest = new li(this), this.depthRange = new u2(this), this.depthTest = new pi(this), this.depthFunc = new mi(this), this.blend = new h2(this), this.blendFunc = new to(this), this.blendColor = new zi(this), this.blendEquation = new U1(this), this.cullFace = new eo(this), this.cullFaceSide = new Ma(this), this.frontFace = new Io(this), this.program = new f2(this), this.activeTexture = new n4(this), this.viewport = new Es(this), this.bindFramebuffer = new Z1(this), this.bindRenderbuffer = new pn(this), this.bindTexture = new hn(this), this.bindVertexBuffer = new Ss(this), this.bindElementBuffer = new p1(this), this.bindVertexArray = new Cs(this), this.pixelStoreUnpack = new n1(this), this.pixelStoreUnpackPremultiplyAlpha = new S1(this), this.pixelStoreUnpackFlipY = new d2(this), this.extTextureFilterAnisotropic = l.getExtension("EXT_texture_filter_anisotropic") || l.getExtension("MOZ_EXT_texture_filter_anisotropic") || l.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = l.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = l.getParameter(l.MAX_TEXTURE_SIZE), bi(l)) {
18257
+ if (this.gl = l, this.clearColor = new J2(this), this.clearDepth = new Ut(this), this.clearStencil = new he(this), this.colorMask = new $e(this), this.depthMask = new yr(this), this.stencilMask = new xn(this), this.stencilFunc = new Br(this), this.stencilOp = new In(this), this.stencilTest = new li(this), this.depthRange = new u2(this), this.depthTest = new pi(this), this.depthFunc = new mi(this), this.blend = new h2(this), this.blendFunc = new to(this), this.blendColor = new zi(this), this.blendEquation = new U1(this), this.cullFace = new eo(this), this.cullFaceSide = new Ma(this), this.frontFace = new Do(this), this.program = new f2(this), this.activeTexture = new n4(this), this.viewport = new Es(this), this.bindFramebuffer = new Z1(this), this.bindRenderbuffer = new pn(this), this.bindTexture = new hn(this), this.bindVertexBuffer = new Ss(this), this.bindElementBuffer = new p1(this), this.bindVertexArray = new Cs(this), this.pixelStoreUnpack = new n1(this), this.pixelStoreUnpackPremultiplyAlpha = new S1(this), this.pixelStoreUnpackFlipY = new d2(this), this.extTextureFilterAnisotropic = l.getExtension("EXT_texture_filter_anisotropic") || l.getExtension("MOZ_EXT_texture_filter_anisotropic") || l.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = l.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = l.getParameter(l.MAX_TEXTURE_SIZE), bi(l)) {
18258
18258
  this.HALF_FLOAT = l.HALF_FLOAT;
18259
18259
  const v = l.getExtension("EXT_color_buffer_half_float");
18260
18260
  this.RGBA16F = (h = l.RGBA16F) !== null && h !== void 0 ? h : v == null ? void 0 : v.RGBA16F_EXT, this.RGB16F = (g = l.RGB16F) !== null && g !== void 0 ? g : v == null ? void 0 : v.RGB16F_EXT, l.getExtension("EXT_color_buffer_float");
@@ -18416,14 +18416,14 @@ uniform ${W} ${K} u_${X};
18416
18416
  }
18417
18417
  const i1 = a.az(le, 1, b.transform.zoom), cn = fr(yt, b.transform, i1), Ds = a.K();
18418
18418
  a.an(Ds, cn);
18419
- const Bo = Pr(vt, yt, b.transform, i1), ks = a.aA(_t, le, L, P), s4 = _t.getProjectionData({ overscaledTileID: ae, applyGlobeMatrix: !X, applyTerrainMatrix: !0 }), a0 = Vt && ce.hasTextData(), Vs = h.layout.get("icon-text-fit") !== "none" && a0 && ce.hasIconData();
18419
+ const Fo = Pr(vt, yt, b.transform, i1), ks = a.aA(_t, le, L, P), s4 = _t.getProjectionData({ overscaledTileID: ae, applyGlobeMatrix: !X, applyTerrainMatrix: !0 }), a0 = Vt && ce.hasTextData(), Vs = h.layout.get("icon-text-fit") !== "none" && a0 && ce.hasIconData();
18420
18420
  if (Mt) {
18421
18421
  const Ai = b.style.map.terrain ? (H1, kn) => b.style.map.terrain.getElevation(ae, H1, kn) : null, Mi = h.layout.get("text-rotation-alignment") === "map";
18422
18422
  Kr(ce, b, v, cn, Ds, vt, z, Mi, ae.toUnwrapped(), _t.width, _t.height, ks, Ai);
18423
18423
  }
18424
18424
  const l4 = v && Vt || Vs, p2 = Mt || l4 ? Os : vt ? cn : b.transform.clipSpaceToPixelsMatrix, Rs = we && h.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
18425
18425
  let Ca;
18426
- Ca = we ? ce.iconsInText ? e4(er.kind, ti, Ot, vt, Mt, l4, b, p2, Bo, ks, ei, ki, fe) : Oo(er.kind, ti, Ot, vt, Mt, l4, b, p2, Bo, ks, v, ei, 0, fe) : As(er.kind, ti, Ot, vt, Mt, l4, b, p2, Bo, ks, v, ei, fe);
18426
+ Ca = we ? ce.iconsInText ? e4(er.kind, ti, Ot, vt, Mt, l4, b, p2, Fo, ks, ei, ki, fe) : Io(er.kind, ti, Ot, vt, Mt, l4, b, p2, Fo, ks, v, ei, 0, fe) : As(er.kind, ti, Ot, vt, Mt, l4, b, p2, Fo, ks, v, ei, fe);
18427
18427
  const Bs = { program: en, buffers: Ve, uniformValues: Ca, projectionData: s4, atlasTexture: ri, atlasTextureIcon: $i, atlasInterpolation: Mn, atlasInterpolationIcon: ln, isSDF: we, hasHalo: Rs };
18428
18428
  if (Pt && ce.canOverlap) {
18429
18429
  kt = !0;
@@ -19091,7 +19091,7 @@ ${nt.shaderPreludeCode.vertexSource}`, define: nt.shaderDefine }, defaultProject
19091
19091
  return h >= this._map.getMinZoom() && h <= this._map.getMaxZoom() && g >= -180 && g <= 180 && v >= this._map.getMinPitch() && v <= this._map.getMaxPitch();
19092
19092
  }
19093
19093
  }
19094
- const Vo = { linearity: 0.3, easing: a.cd(0, 0, 0.3, 1) }, S8 = a.e({ deceleration: 2500, maxSpeed: 1400 }, Vo), J5 = a.e({ deceleration: 20, maxSpeed: 1400 }, Vo), C8 = a.e({ deceleration: 1e3, maxSpeed: 360 }, Vo), iT = a.e({ deceleration: 1e3, maxSpeed: 90 }, Vo), oT = a.e({ deceleration: 1e3, maxSpeed: 360 }, Vo);
19094
+ const Ro = { linearity: 0.3, easing: a.cd(0, 0, 0.3, 1) }, S8 = a.e({ deceleration: 2500, maxSpeed: 1400 }, Ro), J5 = a.e({ deceleration: 20, maxSpeed: 1400 }, Ro), C8 = a.e({ deceleration: 1e3, maxSpeed: 360 }, Ro), iT = a.e({ deceleration: 1e3, maxSpeed: 90 }, Ro), oT = a.e({ deceleration: 1e3, maxSpeed: 360 }, Ro);
19095
19095
  class aT {
19096
19096
  constructor(l) {
19097
19097
  this._map = l, this.clear();
@@ -19648,7 +19648,7 @@ ${nt.shaderPreludeCode.vertexSource}`, define: nt.shaderDefine }, defaultProject
19648
19648
  if (this._distance = l[0].dist(l[1]), this._active || !(Math.abs(I8(this._distance, this._startDistance)) < 0.1)) return this._active = !0, { zoomDelta: I8(this._distance, g), pinchAround: h };
19649
19649
  }
19650
19650
  }
19651
- function Ro(b, l) {
19651
+ function Bo(b, l) {
19652
19652
  return 180 * b.angleWith(l) / Math.PI;
19653
19653
  }
19654
19654
  class Xe extends O8 {
@@ -19660,11 +19660,11 @@ ${nt.shaderPreludeCode.vertexSource}`, define: nt.shaderDefine }, defaultProject
19660
19660
  }
19661
19661
  _move(l, h, g) {
19662
19662
  const v = this._vector;
19663
- if (this._vector = l[0].sub(l[1]), this._active || !this._isBelowThreshold(this._vector)) return this._active = !0, { bearingDelta: Ro(this._vector, v), pinchAround: h };
19663
+ if (this._vector = l[0].sub(l[1]), this._active || !this._isBelowThreshold(this._vector)) return this._active = !0, { bearingDelta: Bo(this._vector, v), pinchAround: h };
19664
19664
  }
19665
19665
  _isBelowThreshold(l) {
19666
19666
  this._minDiameter = Math.min(this._minDiameter, l.mag());
19667
- const h = 25 / (Math.PI * this._minDiameter) * 360, g = Ro(l, this._startVector);
19667
+ const h = 25 / (Math.PI * this._minDiameter) * 360, g = Bo(l, this._startVector);
19668
19668
  return Math.abs(g) < h;
19669
19669
  }
19670
19670
  }
@@ -22086,7 +22086,7 @@ ${nt.shaderPreludeCode.vertexSource}`, define: nt.shaderDefine }, defaultProject
22086
22086
  }, s.TwoFingersTouchPitchHandler = wc, s.TwoFingersTouchRotateHandler = Xe, s.TwoFingersTouchZoomHandler = x6, s.TwoFingersTouchZoomRotateHandler = V8, s.VectorTileSource = hr, s.VideoSource = Oi, s.addSourceType = (b, l) => a._(void 0, void 0, void 0, function* () {
22087
22087
  if (N1(b)) throw new Error(`A source type called "${b}" already exists.`);
22088
22088
  ((h, g) => {
22089
- Mo[h] = g;
22089
+ Eo[h] = g;
22090
22090
  })(b, l);
22091
22091
  }), s.clearPrewarmedResources = function() {
22092
22092
  const b = sr;
@@ -22269,7 +22269,7 @@ function get(r, t = "kilometers") {
22269
22269
  function Hh(r) {
22270
22270
  return r % (2 * Math.PI) * 180 / Math.PI;
22271
22271
  }
22272
- function Lo(r) {
22272
+ function wo(r) {
22273
22273
  return r % 360 * Math.PI / 180;
22274
22274
  }
22275
22275
  function BH(r) {
@@ -22307,7 +22307,7 @@ function _et(r, t) {
22307
22307
  return r.type === "FeatureCollection" ? "FeatureCollection" : r.type === "GeometryCollection" ? "GeometryCollection" : r.type === "Feature" && r.geometry !== null ? r.geometry.type : r.type;
22308
22308
  }
22309
22309
  function V4(r, t, e = {}) {
22310
- var n = B4(r), i = B4(t), o = Lo(i[1] - n[1]), s = Lo(i[0] - n[0]), a = Lo(n[1]), u = Lo(i[1]), T = Math.pow(Math.sin(o / 2), 2) + Math.pow(Math.sin(s / 2), 2) * Math.cos(a) * Math.cos(u);
22310
+ var n = B4(r), i = B4(t), o = wo(i[1] - n[1]), s = wo(i[0] - n[0]), a = wo(n[1]), u = wo(i[1]), T = Math.pow(Math.sin(o / 2), 2) + Math.pow(Math.sin(s / 2), 2) * Math.cos(a) * Math.cos(u);
22311
22311
  return met(
22312
22312
  2 * Math.atan2(Math.sqrt(T), Math.sqrt(1 - T)),
22313
22313
  e.units
@@ -22578,7 +22578,7 @@ const wet = [
22578
22578
  function CR(r, t, e = {}) {
22579
22579
  if (e.final === !0)
22580
22580
  return Aet(r, t);
22581
- const n = B4(r), i = B4(t), o = Lo(n[0]), s = Lo(i[0]), a = Lo(n[1]), u = Lo(i[1]), T = Math.sin(s - o) * Math.cos(u), Q = Math.cos(a) * Math.sin(u) - Math.sin(a) * Math.cos(u) * Math.cos(s - o);
22581
+ const n = B4(r), i = B4(t), o = wo(n[0]), s = wo(i[0]), a = wo(n[1]), u = wo(i[1]), T = Math.sin(s - o) * Math.cos(u), Q = Math.cos(a) * Math.sin(u) - Math.sin(a) * Math.cos(u) * Math.cos(s - o);
22582
22582
  return Hh(Math.atan2(T, Q));
22583
22583
  }
22584
22584
  function Aet(r, t) {
@@ -22586,7 +22586,7 @@ function Aet(r, t) {
22586
22586
  return e = (e + 180) % 360, e;
22587
22587
  }
22588
22588
  function Met(r, t, e, n = {}) {
22589
- const i = B4(r), o = Lo(i[0]), s = Lo(i[1]), a = Lo(e), u = get(t, n.units), T = Math.asin(
22589
+ const i = B4(r), o = wo(i[0]), s = wo(i[1]), a = wo(e), u = get(t, n.units), T = Math.asin(
22590
22590
  Math.sin(s) * Math.cos(u) + Math.cos(s) * Math.sin(u) * Math.cos(a)
22591
22591
  ), Q = o + Math.atan2(
22592
22592
  Math.sin(a) * Math.sin(u) * Math.cos(s),
@@ -22842,7 +22842,7 @@ function p0(r, t) {
22842
22842
  return Math.acos(Math.min(Math.max(e, -1), 1));
22843
22843
  }
22844
22844
  function ix(r) {
22845
- const t = Lo(r[1]), e = Lo(r[0]);
22845
+ const t = wo(r[1]), e = wo(r[0]);
22846
22846
  return [
22847
22847
  Math.cos(t) * Math.cos(e),
22848
22848
  Math.cos(t) * Math.sin(e),
@@ -24386,7 +24386,7 @@ function YR(r) {
24386
24386
  for (t in r) return !1;
24387
24387
  return !0;
24388
24388
  }
24389
- function No(r, t, e) {
24389
+ function jo(r, t, e) {
24390
24390
  Object.defineProperty(r, t, {
24391
24391
  enumerable: !1,
24392
24392
  configurable: !1,
@@ -26141,7 +26141,7 @@ class zn extends Srt.EventEmitter {
26141
26141
  `Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${t.allowSelfLoops}".`
26142
26142
  );
26143
26143
  const e = t.type === "mixed" ? JR : t.type === "directed" ? tB : eB;
26144
- No(this, "NodeDataClass", e);
26144
+ jo(this, "NodeDataClass", e);
26145
26145
  const n = "geid_" + Rnt() + "_";
26146
26146
  let i = 0;
26147
26147
  const o = () => {
@@ -26151,7 +26151,7 @@ class zn extends Srt.EventEmitter {
26151
26151
  while (this._edges.has(s));
26152
26152
  return s;
26153
26153
  };
26154
- No(this, "_attributes", {}), No(this, "_nodes", /* @__PURE__ */ new Map()), No(this, "_edges", /* @__PURE__ */ new Map()), No(this, "_directedSize", 0), No(this, "_undirectedSize", 0), No(this, "_directedSelfLoopCount", 0), No(this, "_undirectedSelfLoopCount", 0), No(this, "_edgeKeyGenerator", o), No(this, "_options", t), uP.forEach((s) => No(this, s, this[s])), ka(this, "order", () => this._nodes.size), ka(this, "size", () => this._edges.size), ka(this, "directedSize", () => this._directedSize), ka(this, "undirectedSize", () => this._undirectedSize), ka(
26154
+ jo(this, "_attributes", {}), jo(this, "_nodes", /* @__PURE__ */ new Map()), jo(this, "_edges", /* @__PURE__ */ new Map()), jo(this, "_directedSize", 0), jo(this, "_undirectedSize", 0), jo(this, "_directedSelfLoopCount", 0), jo(this, "_undirectedSelfLoopCount", 0), jo(this, "_edgeKeyGenerator", o), jo(this, "_options", t), uP.forEach((s) => jo(this, s, this[s])), ka(this, "order", () => this._nodes.size), ka(this, "size", () => this._edges.size), ka(this, "directedSize", () => this._directedSize), ka(this, "undirectedSize", () => this._undirectedSize), ka(
26155
26155
  this,
26156
26156
  "selfLoopCount",
26157
26157
  () => this._directedSelfLoopCount + this._undirectedSelfLoopCount
@@ -27640,7 +27640,7 @@ class zn extends Srt.EventEmitter {
27640
27640
  const i = {};
27641
27641
  for (const o in this)
27642
27642
  this.hasOwnProperty(o) && !uP.has(o) && typeof this[o] != "function" && typeof o != "symbol" && (i[o] = this[o]);
27643
- return i.attributes = this._attributes, i.nodes = t, i.edges = e, No(i, "constructor", this.constructor), i;
27643
+ return i.attributes = this._attributes, i.nodes = t, i.edges = e, jo(i, "constructor", this.constructor), i;
27644
27644
  }
27645
27645
  }
27646
27646
  typeof Symbol < "u" && (zn.prototype[Symbol.for("nodejs.util.inspect.custom")] = zn.prototype.inspect);
@@ -28601,7 +28601,7 @@ class Pit {
28601
28601
  }
28602
28602
  }
28603
28603
  cf = new WeakMap();
28604
- const TP = 2, _o = 12;
28604
+ const TP = 2, vo = 12;
28605
28605
  var G6, R7, z0, $0, U0, uf, ca, wB, QL, pL, AB;
28606
28606
  class Oit {
28607
28607
  constructor(t, e) {
@@ -28625,7 +28625,7 @@ class Oit {
28625
28625
  })));
28626
28626
  for (const o of M(this, G6).nodes().filter((s) => s !== KQ && M(this, G6).degree(s) == 1)) {
28627
28627
  const s = M(this, U0).get(o);
28628
- s.maxZoom = _o, It(this, ca, QL).call(this, s, o);
28628
+ s.maxZoom = vo, It(this, ca, QL).call(this, s, o);
28629
28629
  }
28630
28630
  }
28631
28631
  get id() {
@@ -28639,8 +28639,8 @@ class Oit {
28639
28639
  }
28640
28640
  }
28641
28641
  G6 = new WeakMap(), R7 = new WeakMap(), z0 = new WeakMap(), $0 = new WeakMap(), U0 = new WeakMap(), uf = new WeakMap(), ca = new WeakSet(), wB = function(t) {
28642
- const e = TP + Math.floor((_o - TP) * t / M(this, uf));
28643
- return e < 0 ? [0, 1] : e >= _o ? [_o, _o] : [e, e + 1];
28642
+ const e = TP + Math.floor((vo - TP) * t / M(this, uf));
28643
+ return e < 0 ? [0, 1] : e >= vo ? [vo, vo] : [e, e + 1];
28644
28644
  }, QL = function(t, e) {
28645
28645
  if (M(this, $0).has(t.term) || M(this, $0).set(t.term, /* @__PURE__ */ new Set()), M(this, $0).get(t.term).add(e), t.term === KQ) {
28646
28646
  t.minZoom = 0;
@@ -28762,7 +28762,7 @@ class kit {
28762
28762
  let o = M(this, X6).get(i.term), s = M(this, K6).get(i.term), a = M(this, N7).get(i.term);
28763
28763
  if (!o) {
28764
28764
  o = [], s = [], a = [];
28765
- for (let u = 0; u <= _o; u += 1)
28765
+ for (let u = 0; u <= vo; u += 1)
28766
28766
  o.push(/* @__PURE__ */ new Set()), s.push(!1), a.push(/* @__PURE__ */ new Set());
28767
28767
  M(this, X6).set(i.term, o), M(this, K6).set(i.term, s), M(this, N7).set(i.term, a);
28768
28768
  }
@@ -28773,12 +28773,12 @@ class kit {
28773
28773
  for (const Q of T.values())
28774
28774
  a[u].add(Q);
28775
28775
  }
28776
- if (i.maxZoom === _o) {
28777
- o[_o].add(i.datasetId), s[_o] || (s[_o] = M(this, e3).get(i.datasetId) === "multiscale");
28776
+ if (i.maxZoom === vo) {
28777
+ o[vo].add(i.datasetId), s[vo] || (s[vo] = M(this, e3).get(i.datasetId) === "multiscale");
28778
28778
  const u = n.descendents.get(i.term);
28779
28779
  if (u)
28780
28780
  for (const Q of u.values())
28781
- a[_o].add(Q);
28781
+ a[vo].add(Q);
28782
28782
  let T = M(this, q6).get(i.datasetId);
28783
28783
  T || (T = /* @__PURE__ */ new Set(), M(this, q6).set(i.datasetId, T));
28784
28784
  for (const Q of M(this, y4).modelFeatureIds(i.term))
@@ -28798,7 +28798,7 @@ class kit {
28798
28798
  }
28799
28799
  removeDatasetMarker(t) {
28800
28800
  M(this, q6).has(t) && M(this, q6).delete(t), M(this, X6).forEach((e, n) => {
28801
- const i = Array(_o).fill(!1);
28801
+ const i = Array(vo).fill(!1);
28802
28802
  e.forEach((o, s) => {
28803
28803
  o.forEach((a) => {
28804
28804
  a !== t && (i[s] || (i[s] = M(this, e3).get(a) === "multiscale"));
@@ -29053,7 +29053,7 @@ class $it extends P2 {
29053
29053
  const n = !("outlined" in t) || t.outlined, i = t.dimmed || !1, o = t.activeRasterLayer || !1, s = t.flatmapStyle === ui.FUNCTIONAL, a = ["case"];
29054
29054
  a.push(["boolean", ["feature-state", "hidden"], !1], Qg), a.push(["boolean", ["feature-state", "active"], !1], MB), a.push(["boolean", ["feature-state", "selected"], !1], s ? "#F80" : Vit), a.push(["boolean", ["feature-state", "annotated"], !1], EB), a.push(["has", "stroke"], ["get", "stroke"]), a.push(["has", "colour"], ["get", "colour"]), a.push("#444");
29055
29055
  const u = ["case"];
29056
- u.push(["boolean", ["feature-state", "hidden"], !1], 0.05), n && u.push(["boolean", ["feature-state", "active"], !1], 0.9), u.push(["boolean", ["feature-state", "selected"], !1], 0.9), u.push(["boolean", ["feature-state", "annotated"], !1], 0.9), o ? u.push(n && !i ? 0.3 : 0.1) : u.push(0.5);
29056
+ u.push(["boolean", ["feature-state", "hidden"], !1], 0.05), n && u.push(["boolean", ["feature-state", "active"], !1], 0.9), u.push(["boolean", ["feature-state", "selected"], !1], 0.9), u.push(["boolean", ["feature-state", "annotated"], !1], 0.9), t.hasImageLayers && u.push(["has", "shape-type"], 0), o ? u.push(n && !i ? 0.3 : 0.1) : u.push(0.5);
29057
29057
  const T = ["case"];
29058
29058
  T.push(["boolean", ["get", "invisible"], !1], 0.2), T.push(["boolean", ["feature-state", "selected"], !1], s ? 3 : 1.5), n && T.push(["boolean", ["feature-state", "active"], !1], s ? 2.5 : 1.5), T.push(["boolean", ["feature-state", "annotated"], !1], 3.5), T.push(["has", "colour"], 0.7), T.push(s ? 1 : n ? 0.5 : 0.1);
29059
29059
  const Q = [
@@ -35253,7 +35253,7 @@ class QM extends B3 {
35253
35253
  t(this);
35254
35254
  }
35255
35255
  }
35256
- class xo extends B3 {
35256
+ class bo extends B3 {
35257
35257
  constructor(t) {
35258
35258
  super(), this.name = t;
35259
35259
  }
@@ -36269,7 +36269,7 @@ class b3 {
36269
36269
  if (n instanceof zF) {
36270
36270
  if (n.value) if (Ye(n.value)) for (const a of n.value) for (const u of this.overrides) a === u.name && ((i = e.info) === null || i === void 0 || i.overrides.push(u));
36271
36271
  else for (const a of this.overrides) n.value === a.name && ((o = e.info) === null || o === void 0 || o.overrides.push(a));
36272
- } else if (n instanceof xo) for (const a of this.overrides) n.name === a.name && ((s = e.info) === null || s === void 0 || s.overrides.push(a));
36272
+ } else if (n instanceof bo) for (const a of this.overrides) n.name === a.name && ((s = e.info) === null || s === void 0 || s.overrides.push(a));
36273
36273
  });
36274
36274
  for (const e of this.uniforms) this._markStructsInUse(e.type);
36275
36275
  for (const e of this.storage) this._markStructsInUse(e.type);
@@ -36342,7 +36342,7 @@ class b3 {
36342
36342
  } else if (s instanceof vh) {
36343
36343
  const a = s;
36344
36344
  e && a.type !== null && this._markStructsFromAST(a.type), o.length > 0 && (o[o.length - 1][a.name] = a);
36345
- } else if (s instanceof xo) {
36345
+ } else if (s instanceof bo) {
36346
36346
  const a = s;
36347
36347
  if (o.length > 0 && o[o.length - 1][a.name])
36348
36348
  return;
@@ -37132,7 +37132,7 @@ class Est {
37132
37132
  }
37133
37133
  TextureDimensions(t, e) {
37134
37134
  const n = t.args[0], i = t.args.length > 1 ? this.exec.evalExpression(t.args[1], e).value : 0;
37135
- if (n instanceof xo) {
37135
+ if (n instanceof bo) {
37136
37136
  const o = n.name, s = e.getVariableValue(o);
37137
37137
  if (s instanceof m4) {
37138
37138
  if (i < 0 || i >= s.mipLevelCount) return console.error(`Invalid mip level for textureDimensions. Line ${t.line}`), null;
@@ -37152,7 +37152,7 @@ class Est {
37152
37152
  TextureLoad(t, e) {
37153
37153
  const n = t.args[0], i = this.exec.evalExpression(t.args[1], e), o = t.args.length > 2 ? this.exec.evalExpression(t.args[2], e).value : 0;
37154
37154
  if (!(i instanceof Lt) || i.data.length !== 2) return console.error(`Invalid UV argument for textureLoad. Line ${t.line}`), null;
37155
- if (n instanceof xo) {
37155
+ if (n instanceof bo) {
37156
37156
  const s = n.name, a = e.getVariableValue(s);
37157
37157
  if (a instanceof m4) {
37158
37158
  const u = Math.floor(i.data[0]), T = Math.floor(i.data[1]);
@@ -37166,7 +37166,7 @@ class Est {
37166
37166
  }
37167
37167
  TextureNumLayers(t, e) {
37168
37168
  const n = t.args[0];
37169
- if (n instanceof xo) {
37169
+ if (n instanceof bo) {
37170
37170
  const i = n.name, o = e.getVariableValue(i);
37171
37171
  return o instanceof m4 ? new $t(o.depthOrArrayLayers, this.getTypeInfo("u32")) : (console.error(`Texture ${i} not found. Line ${t.line}`), null);
37172
37172
  }
@@ -37174,7 +37174,7 @@ class Est {
37174
37174
  }
37175
37175
  TextureNumLevels(t, e) {
37176
37176
  const n = t.args[0];
37177
- if (n instanceof xo) {
37177
+ if (n instanceof bo) {
37178
37178
  const i = n.name, o = e.getVariableValue(i);
37179
37179
  return o instanceof m4 ? new $t(o.mipLevelCount, this.getTypeInfo("u32")) : (console.error(`Texture ${i} not found. Line ${t.line}`), null);
37180
37180
  }
@@ -37182,7 +37182,7 @@ class Est {
37182
37182
  }
37183
37183
  TextureNumSamples(t, e) {
37184
37184
  const n = t.args[0];
37185
- if (n instanceof xo) {
37185
+ if (n instanceof bo) {
37186
37186
  const i = n.name, o = e.getVariableValue(i);
37187
37187
  return o instanceof m4 ? new $t(o.sampleCount, this.getTypeInfo("u32")) : (console.error(`Texture ${i} not found. Line ${t.line}`), null);
37188
37188
  }
@@ -37213,7 +37213,7 @@ class Est {
37213
37213
  const n = t.args[0], i = this.exec.evalExpression(t.args[1], e), o = t.args.length === 4 ? this.exec.evalExpression(t.args[2], e).value : 0, s = t.args.length === 4 ? this.exec.evalExpression(t.args[3], e).data : this.exec.evalExpression(t.args[2], e).data;
37214
37214
  if (s.length !== 4) return console.error(`Invalid value argument for textureStore. Line ${t.line}`), null;
37215
37215
  if (!(i instanceof Lt) || i.data.length !== 2) return console.error(`Invalid UV argument for textureStore. Line ${t.line}`), null;
37216
- if (n instanceof xo) {
37216
+ if (n instanceof bo) {
37217
37217
  const a = n.name, u = e.getVariableValue(a);
37218
37218
  if (u instanceof m4) {
37219
37219
  const T = u.getMipLevelSize(0), Q = Math.floor(i.data[0]), p = Math.floor(i.data[1]);
@@ -37533,7 +37533,7 @@ class t2 extends Mst {
37533
37533
  return null;
37534
37534
  }
37535
37535
  evalExpression(t, e) {
37536
- return t instanceof Fa ? this._evalBinaryOp(t, e) : t instanceof u1 ? this._evalLiteral(t, e) : t instanceof xo ? this._evalVariable(t, e) : t instanceof QM ? this._evalCall(t, e) : t instanceof Xs ? this._evalCreate(t, e) : t instanceof VF ? this._evalConst(t, e) : t instanceof RF ? this._evalBitcast(t, e) : t instanceof Ki ? this._evalUnaryOp(t, e) : (console.error("Invalid expression type", t, `Line ${t.line}`), null);
37536
+ return t instanceof Fa ? this._evalBinaryOp(t, e) : t instanceof u1 ? this._evalLiteral(t, e) : t instanceof bo ? this._evalVariable(t, e) : t instanceof QM ? this._evalCall(t, e) : t instanceof Xs ? this._evalCreate(t, e) : t instanceof VF ? this._evalConst(t, e) : t instanceof RF ? this._evalBitcast(t, e) : t instanceof Ki ? this._evalUnaryOp(t, e) : (console.error("Invalid expression type", t, `Line ${t.line}`), null);
37537
37537
  }
37538
37538
  getTypeInfo(t) {
37539
37539
  var e;
@@ -37583,7 +37583,7 @@ class t2 extends Mst {
37583
37583
  }
37584
37584
  getVariableName(t, e) {
37585
37585
  for (; t instanceof Ki; ) t = t.right;
37586
- return t instanceof xo ? t.name : (console.error("Unknown variable type", t, "Line", t.line), null);
37586
+ return t instanceof bo ? t.name : (console.error("Unknown variable type", t, "Line", t.line), null);
37587
37587
  }
37588
37588
  _execStatements(t, e) {
37589
37589
  for (const n of t) {
@@ -37614,7 +37614,7 @@ class t2 extends Mst {
37614
37614
  i ? t.operator === "++" ? i.value instanceof $t ? i.value.value++ : console.error(`Variable ${n} is not a scalar. Line ${t.line}`) : t.operator === "--" ? i.value instanceof $t ? i.value.value-- : console.error(`Variable ${n} is not a scalar. Line ${t.line}`) : console.error(`Unknown increment operator ${t.operator}. Line ${t.line}`) : console.error(`Variable ${n} not found. Line ${t.line}`);
37615
37615
  }
37616
37616
  _getVariableData(t, e) {
37617
- if (t instanceof xo) {
37617
+ if (t instanceof bo) {
37618
37618
  const n = this.getVariableName(t, e), i = e.getVariable(n);
37619
37619
  return i === null ? (console.error(`Variable ${n} not found. Line ${t.line}`), null) : i.value.getSubData(this, t.postfix, e);
37620
37620
  }
@@ -38818,7 +38818,7 @@ class Cst {
38818
38818
  if (this._deferArrayCountEval.length > 0) {
38819
38819
  for (const n of this._deferArrayCountEval) {
38820
38820
  const i = n.arrayType, o = n.countNode;
38821
- if (o instanceof xo) {
38821
+ if (o instanceof bo) {
38822
38822
  const s = o.name, a = this._context.constants.get(s);
38823
38823
  if (a) try {
38824
38824
  const u = a.constEvaluate(this._exec);
@@ -39374,7 +39374,7 @@ class Cst {
39374
39374
  const i = this._context.constants.get(n);
39375
39375
  return this._updateNode(new VF(n, i.value));
39376
39376
  }
39377
- return this._updateNode(new xo(n));
39377
+ return this._updateNode(new bo(n));
39378
39378
  }
39379
39379
  if (this._match(gt.tokens.int_literal)) {
39380
39380
  const n = this._previous().toString();
@@ -39970,7 +39970,7 @@ function Bst(r, t) {
39970
39970
  return !1;
39971
39971
  return !0;
39972
39972
  }
39973
- function vo(r) {
39973
+ function xo(r) {
39974
39974
  if (!Number.isFinite(r))
39975
39975
  throw new Error(`Invalid number ${JSON.stringify(r)}`);
39976
39976
  return r;
@@ -39990,13 +39990,13 @@ class Fst extends $F {
39990
39990
  return this[0];
39991
39991
  }
39992
39992
  set x(t) {
39993
- this[0] = vo(t);
39993
+ this[0] = xo(t);
39994
39994
  }
39995
39995
  get y() {
39996
39996
  return this[1];
39997
39997
  }
39998
39998
  set y(t) {
39999
- this[1] = vo(t);
39999
+ this[1] = xo(t);
40000
40000
  }
40001
40001
  /**
40002
40002
  * Returns the length of the vector from the origin to the point described by this vector
@@ -40037,13 +40037,13 @@ class Fst extends $F {
40037
40037
  const i = this[n] - t[n];
40038
40038
  e += i * i;
40039
40039
  }
40040
- return vo(e);
40040
+ return xo(e);
40041
40041
  }
40042
40042
  dot(t) {
40043
40043
  let e = 0;
40044
40044
  for (let n = 0; n < this.ELEMENTS; ++n)
40045
40045
  e += this[n] * t[n];
40046
- return vo(e);
40046
+ return xo(e);
40047
40047
  }
40048
40048
  // MODIFIERS
40049
40049
  normalize() {
@@ -40076,7 +40076,7 @@ class Fst extends $F {
40076
40076
  return this.distanceSquared(t);
40077
40077
  }
40078
40078
  getComponent(t) {
40079
- return nO(t >= 0 && t < this.ELEMENTS, "index is out of range"), vo(this[t]);
40079
+ return nO(t >= 0 && t < this.ELEMENTS, "index is out of range"), xo(this[t]);
40080
40080
  }
40081
40081
  setComponent(t, e) {
40082
40082
  return nO(t >= 0 && t < this.ELEMENTS, "index is out of range"), this[t] = e, this.check();
@@ -40218,7 +40218,7 @@ class O3 extends Fst {
40218
40218
  * @param z
40219
40219
  */
40220
40220
  constructor(t = 0, e = 0, n = 0) {
40221
- super(-0, -0, -0), arguments.length === 1 && Ru(t) ? this.copy(t) : (ia.debug && (vo(t), vo(e), vo(n)), this[0] = t, this[1] = e, this[2] = n);
40221
+ super(-0, -0, -0), arguments.length === 1 && Ru(t) ? this.copy(t) : (ia.debug && (xo(t), xo(e), xo(n)), this[0] = t, this[1] = e, this[2] = n);
40222
40222
  }
40223
40223
  set(t, e, n) {
40224
40224
  return this[0] = t, this[1] = e, this[2] = n, this.check();
@@ -40227,7 +40227,7 @@ class O3 extends Fst {
40227
40227
  return this[0] = t[0], this[1] = t[1], this[2] = t[2], this.check();
40228
40228
  }
40229
40229
  fromObject(t) {
40230
- return ia.debug && (vo(t.x), vo(t.y), vo(t.z)), this[0] = t.x, this[1] = t.y, this[2] = t.z, this.check();
40230
+ return ia.debug && (xo(t.x), xo(t.y), xo(t.z)), this[0] = t.x, this[1] = t.y, this[2] = t.z, this.check();
40231
40231
  }
40232
40232
  toObject(t) {
40233
40233
  return t.x = this[0], t.y = this[1], t.z = this[2], t;
@@ -40240,7 +40240,7 @@ class O3 extends Fst {
40240
40240
  return this[2];
40241
40241
  }
40242
40242
  set z(t) {
40243
- this[2] = vo(t);
40243
+ this[2] = xo(t);
40244
40244
  }
40245
40245
  // ACCESSORS
40246
40246
  angle(t) {
@@ -40316,7 +40316,7 @@ class s3t extends $F {
40316
40316
  }
40317
40317
  // By default assumes row major indices
40318
40318
  setElement(t, e, n) {
40319
- return this[e * this.RANK + t] = vo(n), this;
40319
+ return this[e * this.RANK + t] = xo(n), this;
40320
40320
  }
40321
40321
  getColumn(t, e = new Array(this.RANK).fill(-0)) {
40322
40322
  const n = t * this.RANK;
@@ -42490,7 +42490,7 @@ const Ln = {
42490
42490
  Object.defineProperty(Ln, "IDENTITY", {
42491
42491
  get: () => (Nn.deprecated("COORDINATE_SYSTEM.IDENTITY", "COORDINATE_SYSTEM.CARTESIAN")(), 0)
42492
42492
  });
42493
- const wo = {
42493
+ const Ao = {
42494
42494
  /**
42495
42495
  * Render geospatial data in Web Mercator projection
42496
42496
  */
@@ -42556,20 +42556,20 @@ function cN(r, t, e = lN) {
42556
42556
  // @ts-expect-error longitude and latitude are not defined on the base Viewport, but is expected on geospatial viewports
42557
42557
  [Math.fround(r.longitude), Math.fround(r.latitude), 0]
42558
42558
  ) : null, r.projectionMode) {
42559
- case wo.WEB_MERCATOR:
42559
+ case Ao.WEB_MERCATOR:
42560
42560
  (t === Ln.LNGLAT || t === Ln.CARTESIAN) && (i = [0, 0, 0], o = !1);
42561
42561
  break;
42562
- case wo.WEB_MERCATOR_AUTO_OFFSET:
42562
+ case Ao.WEB_MERCATOR_AUTO_OFFSET:
42563
42563
  t === Ln.LNGLAT ? n = i : t === Ln.CARTESIAN && (n = [
42564
42564
  Math.fround(r.center[0]),
42565
42565
  Math.fround(r.center[1]),
42566
42566
  0
42567
42567
  ], i = r.unprojectPosition(n), n[0] -= e[0], n[1] -= e[1], n[2] -= e[2]);
42568
42568
  break;
42569
- case wo.IDENTITY:
42569
+ case Ao.IDENTITY:
42570
42570
  n = r.position.map(Math.fround), n[2] = n[2] || 0;
42571
42571
  break;
42572
- case wo.GLOBE:
42572
+ case Ao.GLOBE:
42573
42573
  o = !1, i = null;
42574
42574
  break;
42575
42575
  default:
@@ -42660,7 +42660,7 @@ function j4t({ viewport: r, devicePixelRatio: t, coordinateSystem: e, coordinate
42660
42660
  }
42661
42661
  return _;
42662
42662
  }
42663
- const z4t = Object.keys(Ln).map((r) => `const COORDINATE_SYSTEM_${r}: i32 = ${Ln[r]};`).join(""), $4t = Object.keys(wo).map((r) => `const PROJECTION_MODE_${r}: i32 = ${wo[r]};`).join(""), U4t = Object.keys(kh).map((r) => `const UNIT_${r.toUpperCase()}: i32 = ${kh[r]};`).join(""), Z4t = (
42663
+ const z4t = Object.keys(Ln).map((r) => `const COORDINATE_SYSTEM_${r}: i32 = ${Ln[r]};`).join(""), $4t = Object.keys(Ao).map((r) => `const PROJECTION_MODE_${r}: i32 = ${Ao[r]};`).join(""), U4t = Object.keys(kh).map((r) => `const UNIT_${r.toUpperCase()}: i32 = ${kh[r]};`).join(""), Z4t = (
42664
42664
  /* wgsl */
42665
42665
  `${z4t}
42666
42666
  ${$4t}
@@ -42948,7 +42948,7 @@ fn project_pixel_size_vec2(pixels: vec2<f32>) -> vec2<f32> {
42948
42948
  return pixels / project.scale;
42949
42949
  }
42950
42950
  `
42951
- ), G4t = Object.keys(Ln).map((r) => `const int COORDINATE_SYSTEM_${r} = ${Ln[r]};`).join(""), q4t = Object.keys(wo).map((r) => `const int PROJECTION_MODE_${r} = ${wo[r]};`).join(""), X4t = Object.keys(kh).map((r) => `const int UNIT_${r.toUpperCase()} = ${kh[r]};`).join(""), K4t = (
42951
+ ), G4t = Object.keys(Ln).map((r) => `const int COORDINATE_SYSTEM_${r} = ${Ln[r]};`).join(""), q4t = Object.keys(Ao).map((r) => `const int PROJECTION_MODE_${r} = ${Ao[r]};`).join(""), X4t = Object.keys(kh).map((r) => `const int UNIT_${r.toUpperCase()} = ${kh[r]};`).join(""), K4t = (
42952
42952
  /* glsl */
42953
42953
  `${G4t}
42954
42954
  ${q4t}
@@ -43583,7 +43583,7 @@ function w6t(r) {
43583
43583
  }).slice();
43584
43584
  for (let u = 0; u < r.shadowMatrices.length; u++) {
43585
43585
  const T = s[u], Q = T.clone().translate(new O3(e.viewport.center).negate());
43586
- n.coordinateSystem === Ln.LNGLAT && n.projectionMode === wo.WEB_MERCATOR ? (s[u] = Q, o[u] = i) : (s[u] = T.clone().multiplyRight(v6t), o[u] = Q.transform(i));
43586
+ n.coordinateSystem === Ln.LNGLAT && n.projectionMode === Ao.WEB_MERCATOR ? (s[u] = Q, o[u] = i) : (s[u] = T.clone().multiplyRight(v6t), o[u] = Q.transform(i));
43587
43587
  }
43588
43588
  const a = {
43589
43589
  drawShadowMap: !!r.drawToShadowMap,
@@ -44186,7 +44186,7 @@ class c8 {
44186
44186
  return this.distanceScales.metersPerUnit[2] / this.scale;
44187
44187
  }
44188
44188
  get projectionMode() {
44189
- return this.isGeospatial ? this.zoom < 12 ? wo.WEB_MERCATOR : wo.WEB_MERCATOR_AUTO_OFFSET : wo.IDENTITY;
44189
+ return this.isGeospatial ? this.zoom < 12 ? Ao.WEB_MERCATOR : Ao.WEB_MERCATOR_AUTO_OFFSET : Ao.IDENTITY;
44190
44190
  }
44191
44191
  // Two viewports are equal if width and height are identical, and if
44192
44192
  // their view and projection matrices are (approximately) equal.
@@ -55013,7 +55013,7 @@ class E7t extends c8 {
55013
55013
  }), this.scale = y, this.latitude = a, this.longitude = e, this.resolution = s;
55014
55014
  }
55015
55015
  get projectionMode() {
55016
- return wo.GLOBE;
55016
+ return Ao.GLOBE;
55017
55017
  }
55018
55018
  getDistanceScales() {
55019
55019
  return this.distanceScales;
@@ -56089,7 +56089,7 @@ const Ra = "features", X7t = 0.5;
56089
56089
  function Xx(r) {
56090
56090
  return r.properties.marker || "layer" in r && r.layer.id === JA;
56091
56091
  }
56092
- var eu, mf, tl, x4, Uo, v2, r5, gf, yf, _f, vf, xf, el, bf, o3, jr, up, aw, lh, l1, sw, ch, hp;
56092
+ var eu, mf, tl, x4, To, v2, r5, gf, yf, _f, vf, xf, el, bf, o3, jr, up, aw, lh, l1, sw, ch, hp;
56093
56093
  class K7t {
56094
56094
  constructor(t, e, n, i) {
56095
56095
  pt(this, jr);
@@ -56097,7 +56097,7 @@ class K7t {
56097
56097
  pt(this, mf);
56098
56098
  pt(this, tl);
56099
56099
  pt(this, x4);
56100
- pt(this, Uo);
56100
+ pt(this, To);
56101
56101
  pt(this, v2);
56102
56102
  pt(this, r5);
56103
56103
  pt(this, gf, /* @__PURE__ */ new Map());
@@ -56108,19 +56108,21 @@ class K7t {
56108
56108
  pt(this, el, []);
56109
56109
  pt(this, bf);
56110
56110
  pt(this, o3, []);
56111
- mt(this, tl, n.id), mt(this, x4, n), mt(this, v2, t.map), mt(this, mf, n.description || ""), mt(this, Uo, i), mt(this, bf, t.options.separateLayers), mt(this, _f, !t.options.pathsDisabled);
56111
+ mt(this, tl, n.id), mt(this, x4, n), mt(this, v2, t.map), mt(this, mf, n.description || ""), mt(this, To, i), mt(this, bf, t.options.separateLayers), mt(this, _f, !t.options.pathsDisabled);
56112
56112
  const o = t.details["image-layers"] && n["image-layers"] ? n["image-layers"].map((Q) => Q instanceof Object ? Q : {
56113
56113
  id: Q,
56114
56114
  options: {}
56115
- }) : [], s = `${n.id}_${Ra}`, a = t.options.separateLayers ? s : Ra;
56115
+ }) : [];
56116
+ M(this, To).hasImageLayers = o.length > 0;
56117
+ const s = `${n.id}_${Ra}`, a = t.options.separateLayers ? s : Ra;
56116
56118
  if (M(this, v2).getSource(Oh).vectorLayerIds.indexOf(a) >= 0) {
56117
56119
  const Q = new Nit(s, a);
56118
- It(this, jr, lh).call(this, Q.style(n, M(this, Uo)), !0), M(this, o3).push(Q);
56120
+ It(this, jr, lh).call(this, Q.style(n, M(this, To)), !0), M(this, o3).push(Q);
56119
56121
  const p = new jit(s, a);
56120
- It(this, jr, lh).call(this, p.style(n, M(this, Uo)), !0), M(this, o3).push(p);
56122
+ It(this, jr, lh).call(this, p.style(n, M(this, To)), !0), M(this, o3).push(p);
56121
56123
  }
56122
56124
  if (t.details["image-layers"]) {
56123
- M(this, Uo).activeRasterLayer = !0;
56125
+ M(this, To).activeRasterLayer = !0;
56124
56126
  for (const Q of o)
56125
56127
  if (Q.options.background) {
56126
56128
  It(this, jr, aw).call(this, Q);
@@ -56130,13 +56132,13 @@ class K7t {
56130
56132
  for (const Q of o)
56131
56133
  Q.options.background || It(this, jr, aw).call(this, Q);
56132
56134
  } else
56133
- M(this, Uo).activeRasterLayer = !1, i.flatmapStyle === ui.FUNCTIONAL && It(this, jr, up).call(this);
56135
+ M(this, To).activeRasterLayer = !1, i.flatmapStyle === ui.FUNCTIONAL && It(this, jr, up).call(this);
56134
56136
  const u = M(this, v2).getSource(Oh);
56135
56137
  if (!!u) {
56136
56138
  const Q = It(this, jr, hp).call(this, Ra), p = u.vectorLayerIds.includes(Q);
56137
56139
  p && (It(this, jr, l1).call(this, zit, Ra, !1, !0), It(this, jr, l1).call(this, Uit, Ra, !1, !0), It(this, jr, l1).call(this, PB, Ra, !1, !0), It(this, jr, l1).call(this, $it, Ra, !1, !0), It(this, jr, l1).call(this, Yit, Ra)), i.flatmapStyle !== ui.FUNCTIONAL && It(this, jr, up).call(this), p && (It(this, jr, l1).call(this, n1t, Ra), t.options.hideTooltips && It(this, jr, l1).call(this, i1t, Ra), i.flatmapStyle === ui.FUNCTIONAL && It(this, jr, l1).call(this, r1t, Ra));
56138
56140
  }
56139
- mt(this, r5, new q7t(t, e, n.id)), this.setPaint(M(this, Uo)), n["detail-layer"] && this.activate(!1);
56141
+ mt(this, r5, new q7t(t, e, n.id)), this.setPaint(M(this, To)), n["detail-layer"] && this.activate(!1);
56140
56142
  }
56141
56143
  get active() {
56142
56144
  return M(this, eu);
@@ -56174,7 +56176,7 @@ class K7t {
56174
56176
  It(this, jr, ch).call(this, e.id, t);
56175
56177
  for (const e of M(this, el))
56176
56178
  It(this, jr, ch).call(this, e.id, t);
56177
- It(this, jr, ch).call(this, M(this, r5).id, t), this.parentLayer && It(this, jr, ch).call(this, M(this.parentLayer, r5).id, !t), mt(this, eu, t), It(this, jr, sw).call(this, M(this, Uo));
56179
+ It(this, jr, ch).call(this, M(this, r5).id, t), this.parentLayer && It(this, jr, ch).call(this, M(this.parentLayer, r5).id, !t), mt(this, eu, t), It(this, jr, sw).call(this, M(this, To));
56178
56180
  }
56179
56181
  addLayeredMarker(t, e, n = !1) {
56180
56182
  const i = M(this, r5).addMarker(t, e, n);
@@ -56212,12 +56214,12 @@ class K7t {
56212
56214
  M(this, v2).setPaintProperty(e.id, "raster-opacity", t ? 0.2 : 1);
56213
56215
  }
56214
56216
  }
56215
- eu = new WeakMap(), mf = new WeakMap(), tl = new WeakMap(), x4 = new WeakMap(), Uo = new WeakMap(), v2 = new WeakMap(), r5 = new WeakMap(), gf = new WeakMap(), yf = new WeakMap(), _f = new WeakMap(), vf = new WeakMap(), xf = new WeakMap(), el = new WeakMap(), bf = new WeakMap(), o3 = new WeakMap(), jr = new WeakSet(), up = function() {
56217
+ eu = new WeakMap(), mf = new WeakMap(), tl = new WeakMap(), x4 = new WeakMap(), To = new WeakMap(), v2 = new WeakMap(), r5 = new WeakMap(), gf = new WeakMap(), yf = new WeakMap(), _f = new WeakMap(), vf = new WeakMap(), xf = new WeakMap(), el = new WeakMap(), bf = new WeakMap(), o3 = new WeakMap(), jr = new WeakSet(), up = function() {
56216
56218
  const t = It(this, jr, hp).call(this, fo);
56217
56219
  M(this, _f) && M(this, v2).getSource("vector-tiles").vectorLayerIds.includes(t) && (It(this, jr, l1).call(this, Zit, fo, !0, !0), It(this, jr, l1).call(this, Xit, fo), It(this, jr, l1).call(this, Kit, fo), It(this, jr, l1).call(this, mg, fo, !0, !0), It(this, jr, l1).call(this, Wit, fo, !0, !0), It(this, jr, l1).call(this, t1t, fo, !0), It(this, jr, l1).call(this, e1t, fo, !0), It(this, jr, l1).call(this, Jit, fo, !0), It(this, jr, l1).call(this, Git, fo, !0), It(this, jr, l1).call(this, qit, fo, !0));
56218
56220
  }, aw = function(t) {
56219
56221
  const e = new a1t(t.id, t.options);
56220
- It(this, jr, lh).call(this, e.style(t, M(this, Uo)), !0), M(this, el).push(e);
56222
+ It(this, jr, lh).call(this, e.style(t, M(this, To)), !0), M(this, el).push(e);
56221
56223
  }, lh = function(t, e = !1) {
56222
56224
  M(this, v2).addLayer(t), e && M(this, yf).push(t);
56223
56225
  }, l1 = function(t, e, n = !1, i = !1) {
@@ -56225,7 +56227,7 @@ eu = new WeakMap(), mf = new WeakMap(), tl = new WeakMap(), x4 = new WeakMap(),
56225
56227
  `${M(this, tl)}_${e}`,
56226
56228
  It(this, jr, hp).call(this, e)
56227
56229
  );
56228
- return It(this, jr, lh).call(this, o.style(M(this, x4), M(this, Uo)), i), M(this, o3).push(o), n && M(this, vf).push(o), o;
56230
+ return It(this, jr, lh).call(this, o.style(M(this, x4), M(this, To)), i), M(this, o3).push(o), n && M(this, vf).push(o), o;
56229
56231
  }, sw = function(t) {
56230
56232
  const e = !("coloured" in t) || t.coloured;
56231
56233
  for (const n of M(this, el))
@@ -81458,7 +81460,7 @@ var Ju = {}, Wl = {}, Uj = k && k.__extends || /* @__PURE__ */ function() {
81458
81460
  };
81459
81461
  Object.defineProperty(Wl, "__esModule", { value: !0 });
81460
81462
  Wl.FlalignItem = Wl.MultlineItem = void 0;
81461
- var Zj = Er, Qpt = uE(Kn()), $o = uE(Xn), Wj = uE(yn), Ab = F1, ppt = function(r) {
81463
+ var Zj = Er, Qpt = uE(Kn()), Uo = uE(Xn), Wj = uE(yn), Ab = F1, ppt = function(r) {
81462
81464
  Uj(t, r);
81463
81465
  function t(e) {
81464
81466
  for (var n = [], i = 1; i < arguments.length; i++)
@@ -81484,12 +81486,12 @@ var Zj = Er, Qpt = uE(Kn()), $o = uE(Xn), Wj = uE(yn), Ab = F1, ppt = function(r
81484
81486
  }, t.prototype.EndTable = function() {
81485
81487
  if (r.prototype.EndTable.call(this), this.table.length) {
81486
81488
  var e = this.table.length - 1, n = -1;
81487
- $o.default.getAttribute($o.default.getChildren(this.table[0])[0], "columnalign") || $o.default.setAttribute($o.default.getChildren(this.table[0])[0], "columnalign", Ab.TexConstant.Align.LEFT), $o.default.getAttribute($o.default.getChildren(this.table[e])[0], "columnalign") || $o.default.setAttribute($o.default.getChildren(this.table[e])[0], "columnalign", Ab.TexConstant.Align.RIGHT);
81489
+ Uo.default.getAttribute(Uo.default.getChildren(this.table[0])[0], "columnalign") || Uo.default.setAttribute(Uo.default.getChildren(this.table[0])[0], "columnalign", Ab.TexConstant.Align.LEFT), Uo.default.getAttribute(Uo.default.getChildren(this.table[e])[0], "columnalign") || Uo.default.setAttribute(Uo.default.getChildren(this.table[e])[0], "columnalign", Ab.TexConstant.Align.RIGHT);
81488
81490
  var i = this.factory.configuration.tags.getTag();
81489
81491
  if (i) {
81490
81492
  n = this.arraydef.side === Ab.TexConstant.Align.LEFT ? 0 : this.table.length - 1;
81491
- var o = this.table[n], s = this.create("node", "mlabeledtr", [i].concat($o.default.getChildren(o)));
81492
- $o.default.copyAttributes(o, s), this.table[n] = s;
81493
+ var o = this.table[n], s = this.create("node", "mlabeledtr", [i].concat(Uo.default.getChildren(o)));
81494
+ Uo.default.copyAttributes(o, s), this.table[n] = s;
81493
81495
  }
81494
81496
  }
81495
81497
  this.factory.configuration.tags.end();
@@ -81521,7 +81523,7 @@ var mpt = function(r) {
81521
81523
  this.row.length > this.maxrow && (this.maxrow = this.row.length), r.prototype.EndRow.call(this);
81522
81524
  var o = this.table[this.table.length - 1];
81523
81525
  if (this.getProperty("zeroWidthLabel") && o.isKind("mlabeledtr")) {
81524
- var s = $o.default.getChildren(o)[0], a = this.factory.configuration.options.tagSide, u = Ew({ width: 0 }, a === "right" ? { lspace: "-1width" } : {}), T = this.create("node", "mpadded", $o.default.getChildren(s), u);
81526
+ var s = Uo.default.getChildren(o)[0], a = this.factory.configuration.options.tagSide, u = Ew({ width: 0 }, a === "right" ? { lspace: "-1width" } : {}), T = this.create("node", "mpadded", Uo.default.getChildren(s), u);
81525
81527
  s.setChildren([T]);
81526
81528
  }
81527
81529
  }, t.prototype.EndTable = function() {
@@ -83757,20 +83759,20 @@ var _mt = k && k.__createBinding || (Object.create ? function(r, t, e, n) {
83757
83759
  return r && r.__esModule ? r : { default: r };
83758
83760
  };
83759
83761
  Object.defineProperty(Gd, "__esModule", { value: !0 });
83760
- var bmt = x_(yn), Lmt = xmt(Cr), wmt = x_(Z2), Dl = x_(Kn()), Yi = x_(g8), Ao = {};
83761
- Ao.NewCommand = function(r, t) {
83762
+ var bmt = x_(yn), Lmt = xmt(Cr), wmt = x_(Z2), Dl = x_(Kn()), Yi = x_(g8), Mo = {};
83763
+ Mo.NewCommand = function(r, t) {
83762
83764
  var e = Yi.default.GetCsNameArgument(r, t), n = Yi.default.GetArgCount(r, t), i = r.GetBrackets(t), o = r.GetArgument(t);
83763
- Yi.default.addMacro(r, e, Ao.Macro, [o, n, i]);
83765
+ Yi.default.addMacro(r, e, Mo.Macro, [o, n, i]);
83764
83766
  };
83765
- Ao.NewEnvironment = function(r, t) {
83767
+ Mo.NewEnvironment = function(r, t) {
83766
83768
  var e = Dl.default.trimSpaces(r.GetArgument(t)), n = Yi.default.GetArgCount(r, t), i = r.GetBrackets(t), o = r.GetArgument(t), s = r.GetArgument(t);
83767
- Yi.default.addEnvironment(r, e, Ao.BeginEnv, [!0, o, s, n, i]);
83769
+ Yi.default.addEnvironment(r, e, Mo.BeginEnv, [!0, o, s, n, i]);
83768
83770
  };
83769
- Ao.MacroDef = function(r, t) {
83771
+ Mo.MacroDef = function(r, t) {
83770
83772
  var e = Yi.default.GetCSname(r, t), n = Yi.default.GetTemplate(r, t, "\\" + e), i = r.GetArgument(t);
83771
- n instanceof Array ? Yi.default.addMacro(r, e, Ao.MacroWithTemplate, [i].concat(n)) : Yi.default.addMacro(r, e, Ao.Macro, [i, n]);
83773
+ n instanceof Array ? Yi.default.addMacro(r, e, Mo.MacroWithTemplate, [i].concat(n)) : Yi.default.addMacro(r, e, Mo.Macro, [i, n]);
83772
83774
  };
83773
- Ao.Let = function(r, t) {
83775
+ Mo.Let = function(r, t) {
83774
83776
  var e = Yi.default.GetCSname(r, t), n = r.GetNext();
83775
83777
  n === "=" && (r.i++, n = r.GetNext());
83776
83778
  var i = r.configuration.handlers;
@@ -83805,9 +83807,9 @@ Ao.Let = function(r, t) {
83805
83807
  Yi.default.addDelimiter(r, "\\" + e, Q.char, Q.attributes);
83806
83808
  return;
83807
83809
  }
83808
- Yi.default.addMacro(r, e, Ao.Macro, [n]);
83810
+ Yi.default.addMacro(r, e, Mo.Macro, [n]);
83809
83811
  };
83810
- Ao.MacroWithTemplate = function(r, t, e, n) {
83812
+ Mo.MacroWithTemplate = function(r, t, e, n) {
83811
83813
  for (var i = [], o = 4; o < arguments.length; o++)
83812
83814
  i[o - 4] = arguments[o];
83813
83815
  var s = parseInt(n, 10);
@@ -83821,7 +83823,7 @@ Ao.MacroWithTemplate = function(r, t, e, n) {
83821
83823
  }
83822
83824
  r.string = Dl.default.addArgs(r, e, r.string.slice(r.i)), r.i = 0, Dl.default.checkMaxMacros(r);
83823
83825
  };
83824
- Ao.BeginEnv = function(r, t, e, n, i, o) {
83826
+ Mo.BeginEnv = function(r, t, e, n, i, o) {
83825
83827
  if (t.getProperty("end") && r.stack.env.closing === t.getName()) {
83826
83828
  delete r.stack.env.closing;
83827
83829
  var s = r.string.slice(r.i);
@@ -83839,8 +83841,8 @@ Ao.BeginEnv = function(r, t, e, n, i, o) {
83839
83841
  }
83840
83842
  return r.string = Dl.default.addArgs(r, e, r.string.slice(r.i)), r.i = 0, r.itemFactory.create("beginEnv").setProperty("name", t.getName());
83841
83843
  };
83842
- Ao.Macro = wmt.default.Macro;
83843
- Gd.default = Ao;
83844
+ Mo.Macro = wmt.default.Macro;
83845
+ Gd.default = Mo;
83844
83846
  var qd = {}, Amt = k && k.__extends || /* @__PURE__ */ function() {
83845
83847
  var r = function(t, e) {
83846
83848
  return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
@@ -87714,7 +87716,7 @@ var Zgt = C_(i2()), Kk = C_(yn), Wgt = C_(Kn()), Ggt = Sr, Yk = C_(Xn), Jk = Er,
87714
87716
  Yd.TextParser = qgt;
87715
87717
  var Xgt = k && k.__importDefault || function(r) {
87716
87718
  return r && r.__esModule ? r : { default: r };
87717
- }, Kgt = Cr, jo = F1, Ygt = y8, Jgt = Xgt(Kn()), tyt = Yd;
87719
+ }, Kgt = Cr, zo = F1, Ygt = y8, Jgt = Xgt(Kn()), tyt = Yd;
87718
87720
  new Kgt.CommandMap("textcomp-macros", {
87719
87721
  textasciicircum: ["Insert", "^"],
87720
87722
  textasciitilde: ["Insert", "~"],
@@ -87821,18 +87823,18 @@ new Kgt.CommandMap("textcomp-macros", {
87821
87823
  textdied: ["Insert", "†"],
87822
87824
  textdivorced: ["Insert", "⚮"],
87823
87825
  textmarried: ["Insert", "⚭"],
87824
- textcentoldstyle: ["Insert", "¢", jo.TexConstant.Variant.OLDSTYLE],
87825
- textdollaroldstyle: ["Insert", "$", jo.TexConstant.Variant.OLDSTYLE],
87826
- textzerooldstyle: ["Insert", "0", jo.TexConstant.Variant.OLDSTYLE],
87827
- textoneoldstyle: ["Insert", "1", jo.TexConstant.Variant.OLDSTYLE],
87828
- texttwooldstyle: ["Insert", "2", jo.TexConstant.Variant.OLDSTYLE],
87829
- textthreeoldstyle: ["Insert", "3", jo.TexConstant.Variant.OLDSTYLE],
87830
- textfouroldstyle: ["Insert", "4", jo.TexConstant.Variant.OLDSTYLE],
87831
- textfiveoldstyle: ["Insert", "5", jo.TexConstant.Variant.OLDSTYLE],
87832
- textsixoldstyle: ["Insert", "6", jo.TexConstant.Variant.OLDSTYLE],
87833
- textsevenoldstyle: ["Insert", "7", jo.TexConstant.Variant.OLDSTYLE],
87834
- texteightoldstyle: ["Insert", "8", jo.TexConstant.Variant.OLDSTYLE],
87835
- textnineoldstyle: ["Insert", "9", jo.TexConstant.Variant.OLDSTYLE]
87826
+ textcentoldstyle: ["Insert", "¢", zo.TexConstant.Variant.OLDSTYLE],
87827
+ textdollaroldstyle: ["Insert", "$", zo.TexConstant.Variant.OLDSTYLE],
87828
+ textzerooldstyle: ["Insert", "0", zo.TexConstant.Variant.OLDSTYLE],
87829
+ textoneoldstyle: ["Insert", "1", zo.TexConstant.Variant.OLDSTYLE],
87830
+ texttwooldstyle: ["Insert", "2", zo.TexConstant.Variant.OLDSTYLE],
87831
+ textthreeoldstyle: ["Insert", "3", zo.TexConstant.Variant.OLDSTYLE],
87832
+ textfouroldstyle: ["Insert", "4", zo.TexConstant.Variant.OLDSTYLE],
87833
+ textfiveoldstyle: ["Insert", "5", zo.TexConstant.Variant.OLDSTYLE],
87834
+ textsixoldstyle: ["Insert", "6", zo.TexConstant.Variant.OLDSTYLE],
87835
+ textsevenoldstyle: ["Insert", "7", zo.TexConstant.Variant.OLDSTYLE],
87836
+ texteightoldstyle: ["Insert", "8", zo.TexConstant.Variant.OLDSTYLE],
87837
+ textnineoldstyle: ["Insert", "9", zo.TexConstant.Variant.OLDSTYLE]
87836
87838
  }, {
87837
87839
  Insert: function(r, t, e, n) {
87838
87840
  if (r instanceof tyt.TextParser) {
@@ -89231,11 +89233,11 @@ const qb = [
89231
89233
  description: "Path inconsistent with SCKAN"
89232
89234
  }
89233
89235
  ];
89234
- var w2, To, Xo, cu, Hf, l5, T3, M4;
89236
+ var w2, Qo, Xo, cu, Hf, l5, T3, M4;
89235
89237
  class Jyt {
89236
89238
  constructor(t, e = { sckan: "valid" }) {
89237
89239
  pt(this, w2);
89238
- pt(this, To);
89240
+ pt(this, Qo);
89239
89241
  pt(this, Xo, null);
89240
89242
  pt(this, cu);
89241
89243
  pt(this, Hf);
@@ -89255,7 +89257,7 @@ class Jyt {
89255
89257
  for (const i of qb)
89256
89258
  n = M(this, l5).toUpperCase() === i.id ? "checked" : "", e.push(`<label for="sckan-${i.id}">${i.description}</label><input id="sckan-${i.id}" type="checkbox" ${n}/>`);
89257
89259
  return M(this, T3).innerHTML = e.join(`
89258
- `), mt(this, M4, qb.length), mt(this, To, M(this, l5) === "all" ? M(this, M4) : M(this, l5) === "none" ? 0 : 1), mt(this, Hf, Math.trunc(M(this, M4) / 2)), mt(this, w2, document.createElement("button")), M(this, w2).id = "map-sckan-button", M(this, w2).className = "control-button text-button", M(this, w2).setAttribute("type", "button"), M(this, w2).setAttribute("aria-label", "Show/hide valid SCKAN paths"), M(this, w2).setAttribute("control-visible", "false"), M(this, w2).textContent = "SCKAN", M(this, w2).title = "Show/hide valid SCKAN paths", M(this, Xo).appendChild(M(this, w2)), M(this, Xo).addEventListener("click", this.onClick_.bind(this)), M(this, Xo);
89260
+ `), mt(this, M4, qb.length), mt(this, Qo, M(this, l5) === "all" ? M(this, M4) : M(this, l5) === "none" ? 0 : 1), mt(this, Hf, Math.trunc(M(this, M4) / 2)), mt(this, w2, document.createElement("button")), M(this, w2).id = "map-sckan-button", M(this, w2).className = "control-button text-button", M(this, w2).setAttribute("type", "button"), M(this, w2).setAttribute("aria-label", "Show/hide valid SCKAN paths"), M(this, w2).setAttribute("control-visible", "false"), M(this, w2).textContent = "SCKAN", M(this, w2).title = "Show/hide valid SCKAN paths", M(this, Xo).appendChild(M(this, w2)), M(this, Xo).addEventListener("click", this.onClick_.bind(this)), M(this, Xo);
89259
89261
  }
89260
89262
  onRemove() {
89261
89263
  M(this, Xo).parentNode.removeChild(M(this, Xo));
@@ -89265,32 +89267,32 @@ class Jyt {
89265
89267
  if (M(this, w2).getAttribute("control-visible") === "false") {
89266
89268
  M(this, Xo).appendChild(M(this, T3)), M(this, w2).setAttribute("control-visible", "true");
89267
89269
  const e = document.getElementById("sckan-all-paths");
89268
- e.indeterminate = M(this, To) > 0 && M(this, To) < M(this, M4), M(this, T3).focus();
89270
+ e.indeterminate = M(this, Qo) > 0 && M(this, Qo) < M(this, M4), M(this, T3).focus();
89269
89271
  } else
89270
89272
  mt(this, T3, M(this, Xo).removeChild(M(this, T3))), M(this, w2).setAttribute("control-visible", "false");
89271
89273
  else if (t.target.tagName === "INPUT") {
89272
89274
  if (t.target.id === "sckan-all-paths") {
89273
- t.target.indeterminate && (t.target.checked = M(this, To) >= M(this, Hf), t.target.indeterminate = !1), t.target.checked ? mt(this, To, M(this, M4)) : mt(this, To, 0);
89275
+ t.target.indeterminate && (t.target.checked = M(this, Qo) >= M(this, Hf), t.target.indeterminate = !1), t.target.checked ? mt(this, Qo, M(this, M4)) : mt(this, Qo, 0);
89274
89276
  for (const e of qb) {
89275
89277
  const n = document.getElementById(`sckan-${e.id}`);
89276
89278
  n && (n.checked = t.target.checked, M(this, cu).enableSckanPath(e.id, t.target.checked));
89277
89279
  }
89278
89280
  } else if (t.target.id.startsWith("sckan-")) {
89279
89281
  const e = t.target.id.substring(6);
89280
- M(this, cu).enableSckanPath(e, t.target.checked), t.target.checked ? mt(this, To, M(this, To) + 1) : mt(this, To, M(this, To) - 1);
89282
+ M(this, cu).enableSckanPath(e, t.target.checked), t.target.checked ? mt(this, Qo, M(this, Qo) + 1) : mt(this, Qo, M(this, Qo) - 1);
89281
89283
  const n = document.getElementById("sckan-all-paths");
89282
- M(this, To) === 0 ? (n.checked = !1, n.indeterminate = !1) : M(this, To) === M(this, M4) ? (n.checked = !0, n.indeterminate = !1) : n.indeterminate = !0;
89284
+ M(this, Qo) === 0 ? (n.checked = !1, n.indeterminate = !1) : M(this, Qo) === M(this, M4) ? (n.checked = !0, n.indeterminate = !1) : n.indeterminate = !0;
89283
89285
  }
89284
89286
  }
89285
89287
  t.stopPropagation();
89286
89288
  }
89287
89289
  }
89288
- w2 = new WeakMap(), To = new WeakMap(), Xo = new WeakMap(), cu = new WeakMap(), Hf = new WeakMap(), l5 = new WeakMap(), T3 = new WeakMap(), M4 = new WeakMap();
89289
- var Qo, Q3, ul, Pf, Of, jw;
89290
+ w2 = new WeakMap(), Qo = new WeakMap(), Xo = new WeakMap(), cu = new WeakMap(), Hf = new WeakMap(), l5 = new WeakMap(), T3 = new WeakMap(), M4 = new WeakMap();
89291
+ var po, Q3, ul, Pf, Of, jw;
89290
89292
  class t_t {
89291
89293
  constructor(t) {
89292
89294
  pt(this, Of);
89293
- pt(this, Qo);
89295
+ pt(this, po);
89294
89296
  pt(this, Q3, null);
89295
89297
  pt(this, ul, !1);
89296
89298
  pt(this, Pf);
@@ -89300,7 +89302,7 @@ class t_t {
89300
89302
  return "top-right";
89301
89303
  }
89302
89304
  onAdd(t) {
89303
- return mt(this, Q3, document.createElement("div")), M(this, Q3).className = "maplibregl-ctrl", mt(this, Qo, document.createElement("button")), M(this, Qo).id = "map-annotated-button", M(this, Qo).className = "control-button text-button", M(this, Qo).setAttribute("type", "button"), M(this, Qo).setAttribute("aria-label", "Draw on map for annotation"), M(this, Qo).textContent = "DRAW", M(this, Qo).title = "Draw on map for annotation", M(this, Q3).appendChild(M(this, Qo)), M(this, Q3).addEventListener("click", this.onClick_.bind(this)), It(this, Of, jw).call(this), M(this, Q3);
89305
+ return mt(this, Q3, document.createElement("div")), M(this, Q3).className = "maplibregl-ctrl", mt(this, po, document.createElement("button")), M(this, po).id = "map-annotated-button", M(this, po).className = "control-button text-button", M(this, po).setAttribute("type", "button"), M(this, po).setAttribute("aria-label", "Draw on map for annotation"), M(this, po).textContent = "DRAW", M(this, po).title = "Draw on map for annotation", M(this, Q3).appendChild(M(this, po)), M(this, Q3).addEventListener("click", this.onClick_.bind(this)), It(this, Of, jw).call(this), M(this, Q3);
89304
89306
  }
89305
89307
  onRemove() {
89306
89308
  M(this, Q3).parentNode.removeChild(M(this, Q3));
@@ -89309,8 +89311,8 @@ class t_t {
89309
89311
  t.target.id === "map-annotated-button" && (mt(this, ul, !M(this, ul)), It(this, Of, jw).call(this), M(this, Pf).showAnnotator(M(this, ul))), t.stopPropagation();
89310
89312
  }
89311
89313
  }
89312
- Qo = new WeakMap(), Q3 = new WeakMap(), ul = new WeakMap(), Pf = new WeakMap(), Of = new WeakSet(), jw = function() {
89313
- M(this, ul) ? M(this, Qo).setAttribute("style", "background: red") : M(this, Qo).removeAttribute("style");
89314
+ po = new WeakMap(), Q3 = new WeakMap(), ul = new WeakMap(), Pf = new WeakMap(), Of = new WeakSet(), jw = function() {
89315
+ M(this, ul) ? M(this, po).setAttribute("style", "background: red") : M(this, po).removeAttribute("style");
89314
89316
  };
89315
89317
  var p3, E4, hl, If, zw;
89316
89318
  class e_t {
@@ -90150,7 +90152,7 @@ var Gz = { exports: {} };
90150
90152
  } };
90151
90153
  return V.setup = wt, wt;
90152
90154
  }
90153
- var Mo = [{ id: "gl-draw-polygon-fill-inactive", type: "fill", filter: ["all", ["==", "active", "false"], ["==", "$type", "Polygon"], ["!=", "mode", "static"]], paint: { "fill-color": "#3bb2d0", "fill-outline-color": "#3bb2d0", "fill-opacity": 0.1 } }, { id: "gl-draw-polygon-fill-active", type: "fill", filter: ["all", ["==", "active", "true"], ["==", "$type", "Polygon"]], paint: { "fill-color": "#fbb03b", "fill-outline-color": "#fbb03b", "fill-opacity": 0.1 } }, { id: "gl-draw-polygon-midpoint", type: "circle", filter: ["all", ["==", "$type", "Point"], ["==", "meta", "midpoint"]], paint: { "circle-radius": 3, "circle-color": "#fbb03b" } }, { id: "gl-draw-polygon-stroke-inactive", type: "line", filter: ["all", ["==", "active", "false"], ["==", "$type", "Polygon"], ["!=", "mode", "static"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#3bb2d0", "line-width": 2 } }, { id: "gl-draw-polygon-stroke-active", type: "line", filter: ["all", ["==", "active", "true"], ["==", "$type", "Polygon"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#fbb03b", "line-dasharray": [0.2, 2], "line-width": 2 } }, { id: "gl-draw-line-inactive", type: "line", filter: ["all", ["==", "active", "false"], ["==", "$type", "LineString"], ["!=", "mode", "static"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#3bb2d0", "line-width": 2 } }, { id: "gl-draw-line-active", type: "line", filter: ["all", ["==", "$type", "LineString"], ["==", "active", "true"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#fbb03b", "line-dasharray": [0.2, 2], "line-width": 2 } }, { id: "gl-draw-polygon-and-line-vertex-stroke-inactive", type: "circle", filter: ["all", ["==", "meta", "vertex"], ["==", "$type", "Point"], ["!=", "mode", "static"]], paint: { "circle-radius": 5, "circle-color": "#fff" } }, { id: "gl-draw-polygon-and-line-vertex-inactive", type: "circle", filter: ["all", ["==", "meta", "vertex"], ["==", "$type", "Point"], ["!=", "mode", "static"]], paint: { "circle-radius": 3, "circle-color": "#fbb03b" } }, { id: "gl-draw-point-point-stroke-inactive", type: "circle", filter: ["all", ["==", "active", "false"], ["==", "$type", "Point"], ["==", "meta", "feature"], ["!=", "mode", "static"]], paint: { "circle-radius": 5, "circle-opacity": 1, "circle-color": "#fff" } }, { id: "gl-draw-point-inactive", type: "circle", filter: ["all", ["==", "active", "false"], ["==", "$type", "Point"], ["==", "meta", "feature"], ["!=", "mode", "static"]], paint: { "circle-radius": 3, "circle-color": "#3bb2d0" } }, { id: "gl-draw-point-stroke-active", type: "circle", filter: ["all", ["==", "$type", "Point"], ["==", "active", "true"], ["!=", "meta", "midpoint"]], paint: { "circle-radius": 7, "circle-color": "#fff" } }, { id: "gl-draw-point-active", type: "circle", filter: ["all", ["==", "$type", "Point"], ["!=", "meta", "midpoint"], ["==", "active", "true"]], paint: { "circle-radius": 5, "circle-color": "#fbb03b" } }, { id: "gl-draw-polygon-fill-static", type: "fill", filter: ["all", ["==", "mode", "static"], ["==", "$type", "Polygon"]], paint: { "fill-color": "#404040", "fill-outline-color": "#404040", "fill-opacity": 0.1 } }, { id: "gl-draw-polygon-stroke-static", type: "line", filter: ["all", ["==", "mode", "static"], ["==", "$type", "Polygon"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#404040", "line-width": 2 } }, { id: "gl-draw-line-static", type: "line", filter: ["all", ["==", "mode", "static"], ["==", "$type", "LineString"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#404040", "line-width": 2 } }, { id: "gl-draw-point-static", type: "circle", filter: ["all", ["==", "mode", "static"], ["==", "$type", "Point"]], paint: { "circle-radius": 5, "circle-color": "#404040" } }];
90155
+ var Eo = [{ id: "gl-draw-polygon-fill-inactive", type: "fill", filter: ["all", ["==", "active", "false"], ["==", "$type", "Polygon"], ["!=", "mode", "static"]], paint: { "fill-color": "#3bb2d0", "fill-outline-color": "#3bb2d0", "fill-opacity": 0.1 } }, { id: "gl-draw-polygon-fill-active", type: "fill", filter: ["all", ["==", "active", "true"], ["==", "$type", "Polygon"]], paint: { "fill-color": "#fbb03b", "fill-outline-color": "#fbb03b", "fill-opacity": 0.1 } }, { id: "gl-draw-polygon-midpoint", type: "circle", filter: ["all", ["==", "$type", "Point"], ["==", "meta", "midpoint"]], paint: { "circle-radius": 3, "circle-color": "#fbb03b" } }, { id: "gl-draw-polygon-stroke-inactive", type: "line", filter: ["all", ["==", "active", "false"], ["==", "$type", "Polygon"], ["!=", "mode", "static"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#3bb2d0", "line-width": 2 } }, { id: "gl-draw-polygon-stroke-active", type: "line", filter: ["all", ["==", "active", "true"], ["==", "$type", "Polygon"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#fbb03b", "line-dasharray": [0.2, 2], "line-width": 2 } }, { id: "gl-draw-line-inactive", type: "line", filter: ["all", ["==", "active", "false"], ["==", "$type", "LineString"], ["!=", "mode", "static"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#3bb2d0", "line-width": 2 } }, { id: "gl-draw-line-active", type: "line", filter: ["all", ["==", "$type", "LineString"], ["==", "active", "true"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#fbb03b", "line-dasharray": [0.2, 2], "line-width": 2 } }, { id: "gl-draw-polygon-and-line-vertex-stroke-inactive", type: "circle", filter: ["all", ["==", "meta", "vertex"], ["==", "$type", "Point"], ["!=", "mode", "static"]], paint: { "circle-radius": 5, "circle-color": "#fff" } }, { id: "gl-draw-polygon-and-line-vertex-inactive", type: "circle", filter: ["all", ["==", "meta", "vertex"], ["==", "$type", "Point"], ["!=", "mode", "static"]], paint: { "circle-radius": 3, "circle-color": "#fbb03b" } }, { id: "gl-draw-point-point-stroke-inactive", type: "circle", filter: ["all", ["==", "active", "false"], ["==", "$type", "Point"], ["==", "meta", "feature"], ["!=", "mode", "static"]], paint: { "circle-radius": 5, "circle-opacity": 1, "circle-color": "#fff" } }, { id: "gl-draw-point-inactive", type: "circle", filter: ["all", ["==", "active", "false"], ["==", "$type", "Point"], ["==", "meta", "feature"], ["!=", "mode", "static"]], paint: { "circle-radius": 3, "circle-color": "#3bb2d0" } }, { id: "gl-draw-point-stroke-active", type: "circle", filter: ["all", ["==", "$type", "Point"], ["==", "active", "true"], ["!=", "meta", "midpoint"]], paint: { "circle-radius": 7, "circle-color": "#fff" } }, { id: "gl-draw-point-active", type: "circle", filter: ["all", ["==", "$type", "Point"], ["!=", "meta", "midpoint"], ["==", "active", "true"]], paint: { "circle-radius": 5, "circle-color": "#fbb03b" } }, { id: "gl-draw-polygon-fill-static", type: "fill", filter: ["all", ["==", "mode", "static"], ["==", "$type", "Polygon"]], paint: { "fill-color": "#404040", "fill-outline-color": "#404040", "fill-opacity": 0.1 } }, { id: "gl-draw-polygon-stroke-static", type: "line", filter: ["all", ["==", "mode", "static"], ["==", "$type", "Polygon"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#404040", "line-width": 2 } }, { id: "gl-draw-line-static", type: "line", filter: ["all", ["==", "mode", "static"], ["==", "$type", "LineString"]], layout: { "line-cap": "round", "line-join": "round" }, paint: { "line-color": "#404040", "line-width": 2 } }, { id: "gl-draw-point-static", type: "circle", filter: ["all", ["==", "mode", "static"], ["==", "$type", "Point"]], paint: { "circle-radius": 5, "circle-color": "#404040" } }];
90154
90156
  function N1(V) {
90155
90157
  return function(Z) {
90156
90158
  var st = Z.featureTarget;
@@ -90163,7 +90165,7 @@ var Gz = { exports: {} };
90163
90165
  function j1(V) {
90164
90166
  return !!V.featureTarget && !!V.featureTarget.properties && V.featureTarget.properties.active === N.ACTIVE && V.featureTarget.properties.meta === R.FEATURE;
90165
90167
  }
90166
- function Eo(V) {
90168
+ function So(V) {
90167
90169
  return !!V.featureTarget && !!V.featureTarget.properties && V.featureTarget.properties.active === N.INACTIVE && V.featureTarget.properties.meta === R.FEATURE;
90168
90170
  }
90169
90171
  function z1(V) {
@@ -90185,7 +90187,7 @@ var Gz = { exports: {} };
90185
90187
  function Ii(V) {
90186
90188
  return V.keyCode === 13;
90187
90189
  }
90188
- var O2 = Object.freeze({ __proto__: null, isOfMetaType: N1, isShiftMousedown: da, isActiveFeature: j1, isInactiveFeature: Eo, noTarget: z1, isFeature: o2, isVertex: $1, isShiftDown: G2, isEscapeKey: e1, isEnterKey: Ii, isTrue: function() {
90190
+ var O2 = Object.freeze({ __proto__: null, isOfMetaType: N1, isShiftMousedown: da, isActiveFeature: j1, isInactiveFeature: So, noTarget: z1, isFeature: o2, isVertex: $1, isShiftDown: G2, isEscapeKey: e1, isEnterKey: Ii, isTrue: function() {
90189
90191
  return !0;
90190
90192
  } }), Gt = lt;
90191
90193
  function lt(V, Z) {
@@ -90556,7 +90558,7 @@ var Gz = { exports: {} };
90556
90558
  return Z.features.forEach(function(wt) {
90557
90559
  wt.geometry && (st = st.concat(fr(wt.geometry.coordinates)));
90558
90560
  }), st;
90559
- }, gs = Un, j3 = Zn, So = { features: ["FeatureCollection"], coordinates: ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], geometry: ["Feature"], geometries: ["GeometryCollection"] }, z3 = Object.keys(So);
90561
+ }, gs = Un, j3 = Zn, Co = { features: ["FeatureCollection"], coordinates: ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], geometry: ["Feature"], geometries: ["GeometryCollection"] }, z3 = Object.keys(Co);
90560
90562
  function a2(V) {
90561
90563
  for (var Z = j3(), st = Vr(V), wt = 0; wt < st.length; wt++) Z.include(st[wt]);
90562
90564
  return Z;
@@ -90568,7 +90570,7 @@ var Gz = { exports: {} };
90568
90570
  }, jt.exports.bboxify = function(V) {
90569
90571
  return gs(V).map(function(Z) {
90570
90572
  Z && z3.some(function(st) {
90571
- return !!Z[st] && So[st].indexOf(Z.type) !== -1;
90573
+ return !!Z[st] && Co[st].indexOf(Z.type) !== -1;
90572
90574
  }) && (Z.bbox = a2(Z).bbox(), this.update(Z));
90573
90575
  });
90574
90576
  };
@@ -90794,9 +90796,9 @@ var Gz = { exports: {} };
90794
90796
  V.selectedCoordPaths.length > 0 ? this.dragVertex(V, Z, st) : this.dragFeature(V, Z, st), V.dragMoveLocation = Z.lngLat;
90795
90797
  }
90796
90798
  }, Q1.onClick = function(V, Z) {
90797
- return z1(Z) ? this.clickNoTarget(V, Z) : j1(Z) ? this.clickActiveFeature(V, Z) : Eo(Z) ? this.clickInactive(V, Z) : void this.stopDragging(V);
90799
+ return z1(Z) ? this.clickNoTarget(V, Z) : j1(Z) ? this.clickActiveFeature(V, Z) : So(Z) ? this.clickInactive(V, Z) : void this.stopDragging(V);
90798
90800
  }, Q1.onTap = function(V, Z) {
90799
- return z1(Z) ? this.clickNoTarget(V, Z) : j1(Z) ? this.clickActiveFeature(V, Z) : Eo(Z) ? this.clickInactive(V, Z) : void 0;
90801
+ return z1(Z) ? this.clickNoTarget(V, Z) : j1(Z) ? this.clickActiveFeature(V, Z) : So(Z) ? this.clickInactive(V, Z) : void 0;
90800
90802
  }, Q1.onTouchEnd = Q1.onMouseUp = function(V) {
90801
90803
  V.dragMoving && this.fireUpdate(), this.stopDragging(V);
90802
90804
  };
@@ -90856,7 +90858,7 @@ var Gz = { exports: {} };
90856
90858
  }, q2.onTrash = function(V) {
90857
90859
  this.deleteFeature([V.polygon.id], { silent: !0 }), this.changeMode(H.SIMPLE_SELECT);
90858
90860
  };
90859
- var Co = { onSetup: function(V) {
90861
+ var Ho = { onSetup: function(V) {
90860
90862
  var Z, st, wt = (V = V || {}).featureId, Dt = "forward";
90861
90863
  if (wt) {
90862
90864
  if (!(Z = this.getFeature(wt))) throw new Error("Could not find a feature with the provided featureId");
@@ -90878,21 +90880,21 @@ var Gz = { exports: {} };
90878
90880
  }, onMouseMove: function(V, Z) {
90879
90881
  V.line.updateCoordinate(V.currentVertexPosition, Z.lngLat.lng, Z.lngLat.lat), $1(Z) && this.updateUIClasses({ mouse: _.POINTER });
90880
90882
  } };
90881
- Co.onTap = Co.onClick = function(V, Z) {
90883
+ Ho.onTap = Ho.onClick = function(V, Z) {
90882
90884
  if ($1(Z)) return this.clickOnVertex(V, Z);
90883
90885
  this.clickAnywhere(V, Z);
90884
- }, Co.onKeyUp = function(V, Z) {
90886
+ }, Ho.onKeyUp = function(V, Z) {
90885
90887
  Ii(Z) ? this.changeMode(H.SIMPLE_SELECT, { featureIds: [V.line.id] }) : e1(Z) && (this.deleteFeature([V.line.id], { silent: !0 }), this.changeMode(H.SIMPLE_SELECT));
90886
- }, Co.onStop = function(V) {
90888
+ }, Ho.onStop = function(V) {
90887
90889
  Kt.enable(this), this.activateUIButton(), this.getFeature(V.line.id) !== void 0 && (V.line.removeCoordinate("" + V.currentVertexPosition), V.line.isValid() ? this.map.fire(C.CREATE, { features: [V.line.toGeoJSON()] }) : (this.deleteFeature([V.line.id], { silent: !0 }), this.changeMode(H.SIMPLE_SELECT, {}, { silent: !0 })));
90888
- }, Co.onTrash = function(V) {
90890
+ }, Ho.onTrash = function(V) {
90889
90891
  this.deleteFeature([V.line.id], { silent: !0 }), this.changeMode(H.SIMPLE_SELECT);
90890
- }, Co.toDisplayFeatures = function(V, Z, st) {
90892
+ }, Ho.toDisplayFeatures = function(V, Z, st) {
90891
90893
  var wt = Z.properties.id === V.line.id;
90892
90894
  if (Z.properties.active = wt ? N.ACTIVE : N.INACTIVE, !wt) return st(Z);
90893
90895
  Z.geometry.coordinates.length < 2 || (Z.properties.meta = R.FEATURE, st(At(V.line.id, Z.geometry.coordinates[V.direction === "forward" ? Z.geometry.coordinates.length - 2 : 1], "" + (V.direction === "forward" ? Z.geometry.coordinates.length - 2 : 1), !1)), st(Z));
90894
90896
  };
90895
- var pa = { simple_select: Wn, direct_select: Q1, draw_point: xi, draw_polygon: q2, draw_line_string: Co }, ac = { defaultMode: H.SIMPLE_SELECT, keybindings: !0, touchEnabled: !0, clickBuffer: 2, touchBuffer: 25, boxSelect: !0, displayControlsDefault: !0, styles: Mo, modes: pa, controls: {}, userProperties: !1 }, _8 = { point: !0, line_string: !0, polygon: !0, trash: !0, combine_features: !0, uncombine_features: !0 }, v8 = { point: !1, line_string: !1, polygon: !1, trash: !1, combine_features: !1, uncombine_features: !1 };
90897
+ var pa = { simple_select: Wn, direct_select: Q1, draw_point: xi, draw_polygon: q2, draw_line_string: Ho }, ac = { defaultMode: H.SIMPLE_SELECT, keybindings: !0, touchEnabled: !0, clickBuffer: 2, touchBuffer: 25, boxSelect: !0, displayControlsDefault: !0, styles: Eo, modes: pa, controls: {}, userProperties: !1 }, _8 = { point: !0, line_string: !0, polygon: !0, trash: !0, combine_features: !0, uncombine_features: !0 }, v8 = { point: !1, line_string: !1, polygon: !1, trash: !1, combine_features: !1, uncombine_features: !1 };
90896
90898
  function sc(V, Z) {
90897
90899
  return V.map(function(st) {
90898
90900
  return st.source ? st : Hn(st, { id: st.id + "." + Z, source: Z === "hot" ? y.HOT : y.COLD });
@@ -90926,7 +90928,7 @@ var Gz = { exports: {} };
90926
90928
  }
90927
90929
  var a6, q3, vs, ya = Array.prototype, Li = Function.prototype, I2 = Object.prototype, _a = br["__core-js_shared__"], X2 = Li.toString, vn = I2.hasOwnProperty, X3 = (a6 = /[^.]+$/.exec(_a && _a.keys && _a.keys.IE_PROTO || "")) ? "Symbol(src)_1." + a6 : "", K3 = I2.toString, cc = RegExp("^" + X2.call(vn).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), uc = Z3 ? br.Buffer : void 0, Qi = br.Symbol, xs = br.Uint8Array, s2 = I2.propertyIsEnumerable, va = ya.splice, l2 = Qi ? Qi.toStringTag : void 0, A1 = Object.getOwnPropertySymbols, xa = uc ? uc.isBuffer : void 0, s6 = (q3 = Object.keys, vs = Object, function(Ut) {
90928
90930
  return q3(vs(Ut));
90929
- }), k5 = E1(br, "DataView"), ba = E1(br, "Map"), V5 = E1(br, "Promise"), R5 = E1(br, "Set"), B5 = E1(br, "WeakMap"), Po = E1(Object, "create"), bs = Oo(k5), l6 = Oo(ba), c6 = Oo(V5), u6 = Oo(R5), D2 = Oo(B5), F5 = Qi ? Qi.prototype : void 0, Y3 = F5 ? F5.valueOf : void 0;
90931
+ }), k5 = E1(br, "DataView"), ba = E1(br, "Map"), V5 = E1(br, "Promise"), R5 = E1(br, "Set"), B5 = E1(br, "WeakMap"), Oo = E1(Object, "create"), bs = Io(k5), l6 = Io(ba), c6 = Io(V5), u6 = Io(R5), D2 = Io(B5), F5 = Qi ? Qi.prototype : void 0, Y3 = F5 ? F5.valueOf : void 0;
90930
90932
  function c2(Ut) {
90931
90933
  var he = -1, $e = Ut == null ? 0 : Ut.length;
90932
90934
  for (this.clear(); ++he < $e; ) {
@@ -90987,12 +90989,12 @@ var Gz = { exports: {} };
90987
90989
  }
90988
90990
  function N5(Ut, he, $e, yr, xn) {
90989
90991
  return Ut === he || (Ut == null || he == null || !Ms(Ut) && !Ms(he) ? Ut != Ut && he != he : function(Br, In, li, u2, pi, mi) {
90990
- var h2 = h6(Br), to = h6(In), zi = h2 ? Ht : Y2(Br), U1 = to ? Ht : Y2(In), eo = (zi = zi == Dt ? Ar : zi) == Ar, Ma = (U1 = U1 == Dt ? Ar : U1) == Ar, Io = zi == U1;
90991
- if (Io && r4(Br)) {
90992
+ var h2 = h6(Br), to = h6(In), zi = h2 ? Ht : Y2(Br), U1 = to ? Ht : Y2(In), eo = (zi = zi == Dt ? Ar : zi) == Ar, Ma = (U1 = U1 == Dt ? Ar : U1) == Ar, Do = zi == U1;
90993
+ if (Do && r4(Br)) {
90992
90994
  if (!r4(In)) return !1;
90993
90995
  h2 = !0, eo = !1;
90994
90996
  }
90995
- if (Io && !eo) return mi || (mi = new K2()), h2 || tn(Br) ? j5(Br, In, li, u2, pi, mi) : function(pn, hn, Ss, p1, Cs, n1, S1) {
90997
+ if (Do && !eo) return mi || (mi = new K2()), h2 || tn(Br) ? j5(Br, In, li, u2, pi, mi) : function(pn, hn, Ss, p1, Cs, n1, S1) {
90996
90998
  switch (Ss) {
90997
90999
  case sn:
90998
91000
  if (pn.byteLength != hn.byteLength || pn.byteOffset != hn.byteOffset) return !1;
@@ -91011,8 +91013,8 @@ var Gz = { exports: {} };
91011
91013
  case ze:
91012
91014
  var d2 = _s;
91013
91015
  case $r:
91014
- var Do = 1 & p1;
91015
- if (d2 || (d2 = G3), pn.size != hn.size && !Do) return !1;
91016
+ var ko = 1 & p1;
91017
+ if (d2 || (d2 = G3), pn.size != hn.size && !ko) return !1;
91016
91018
  var ro = S1.get(pn);
91017
91019
  if (ro) return ro == hn;
91018
91020
  p1 |= 2, S1.set(pn, hn);
@@ -91030,25 +91032,25 @@ var Gz = { exports: {} };
91030
91032
  return mi || (mi = new K2()), pi(Es, Z1, li, u2, mi);
91031
91033
  }
91032
91034
  }
91033
- return Io ? (mi || (mi = new K2()), function(pn, hn, Ss, p1, Cs, n1) {
91034
- var S1 = 1 & Ss, d2 = z5(pn), Do = d2.length, ro = z5(hn).length;
91035
- if (Do != ro && !S1) return !1;
91036
- for (var T2 = Do; T2--; ) {
91037
- var ko = d2[T2];
91038
- if (!(S1 ? ko in hn : vn.call(hn, ko))) return !1;
91035
+ return Do ? (mi || (mi = new K2()), function(pn, hn, Ss, p1, Cs, n1) {
91036
+ var S1 = 1 & Ss, d2 = z5(pn), ko = d2.length, ro = z5(hn).length;
91037
+ if (ko != ro && !S1) return !1;
91038
+ for (var T2 = ko; T2--; ) {
91039
+ var Vo = d2[T2];
91040
+ if (!(S1 ? Vo in hn : vn.call(hn, Vo))) return !1;
91039
91041
  }
91040
91042
  var i4 = n1.get(pn);
91041
91043
  if (i4 && n1.get(hn)) return i4 == hn;
91042
91044
  var Rr = !0;
91043
91045
  n1.set(pn, hn), n1.set(hn, pn);
91044
- for (var Hs = S1; ++T2 < Do; ) {
91045
- var Ea = pn[ko = d2[T2]], Ps = hn[ko];
91046
- if (p1) var Os = S1 ? p1(Ps, Ea, ko, hn, pn, n1) : p1(Ea, Ps, ko, pn, hn, n1);
91046
+ for (var Hs = S1; ++T2 < ko; ) {
91047
+ var Ea = pn[Vo = d2[T2]], Ps = hn[Vo];
91048
+ if (p1) var Os = S1 ? p1(Ps, Ea, Vo, hn, pn, n1) : p1(Ea, Ps, Vo, pn, hn, n1);
91047
91049
  if (!(Os === void 0 ? Ea === Ps || Cs(Ea, Ps, Ss, p1, n1) : Os)) {
91048
91050
  Rr = !1;
91049
91051
  break;
91050
91052
  }
91051
- Hs || (Hs = ko == "constructor");
91053
+ Hs || (Hs = Vo == "constructor");
91052
91054
  }
91053
91055
  if (Rr && !Hs) {
91054
91056
  var d6 = pn.constructor, T6 = hn.constructor;
@@ -91061,7 +91063,7 @@ var Gz = { exports: {} };
91061
91063
  function t4(Ut) {
91062
91064
  return !(!f6(Ut) || function(he) {
91063
91065
  return !!X3 && X3 in he;
91064
- }(Ut)) && ($5(Ut) ? cc : ji).test(Oo(Ut));
91066
+ }(Ut)) && ($5(Ut) ? cc : ji).test(Io(Ut));
91065
91067
  }
91066
91068
  function fc(Ut) {
91067
91069
  if ($e = (he = Ut) && he.constructor, yr = typeof $e == "function" && $e.prototype || I2, he !== yr) return s6(Ut);
@@ -91084,8 +91086,8 @@ var Gz = { exports: {} };
91084
91086
  break;
91085
91087
  }
91086
91088
  if (to) {
91087
- if (!W3(he, function(Ma, Io) {
91088
- if (f2 = Io, !to.has(f2) && (zi === Ma || xn(zi, Ma, $e, yr, Br))) return to.push(Io);
91089
+ if (!W3(he, function(Ma, Do) {
91090
+ if (f2 = Do, !to.has(f2) && (zi === Ma || xn(zi, Ma, $e, yr, Br))) return to.push(Do);
91089
91091
  var f2;
91090
91092
  })) {
91091
91093
  h2 = !1;
@@ -91118,23 +91120,23 @@ var Gz = { exports: {} };
91118
91120
  return t4($e) ? $e : void 0;
91119
91121
  }
91120
91122
  c2.prototype.clear = function() {
91121
- this.__data__ = Po ? Po(null) : {}, this.size = 0;
91123
+ this.__data__ = Oo ? Oo(null) : {}, this.size = 0;
91122
91124
  }, c2.prototype.delete = function(Ut) {
91123
91125
  var he = this.has(Ut) && delete this.__data__[Ut];
91124
91126
  return this.size -= he ? 1 : 0, he;
91125
91127
  }, c2.prototype.get = function(Ut) {
91126
91128
  var he = this.__data__;
91127
- if (Po) {
91129
+ if (Oo) {
91128
91130
  var $e = he[Ut];
91129
91131
  return $e === st ? void 0 : $e;
91130
91132
  }
91131
91133
  return vn.call(he, Ut) ? he[Ut] : void 0;
91132
91134
  }, c2.prototype.has = function(Ut) {
91133
91135
  var he = this.__data__;
91134
- return Po ? he[Ut] !== void 0 : vn.call(he, Ut);
91136
+ return Oo ? he[Ut] !== void 0 : vn.call(he, Ut);
91135
91137
  }, c2.prototype.set = function(Ut, he) {
91136
91138
  var $e = this.__data__;
91137
- return this.size += this.has(Ut) ? 0 : 1, $e[Ut] = Po && he === void 0 ? st : he, this;
91139
+ return this.size += this.has(Ut) ? 0 : 1, $e[Ut] = Oo && he === void 0 ? st : he, this;
91138
91140
  }, M1.prototype.clear = function() {
91139
91141
  this.__data__ = [], this.size = 0;
91140
91142
  }, M1.prototype.delete = function(Ut) {
@@ -91198,7 +91200,7 @@ var Gz = { exports: {} };
91198
91200
  function As(Ut, he) {
91199
91201
  return !!(he = he ?? wt) && (typeof Ut == "number" || U3.test(Ut)) && Ut > -1 && Ut % 1 == 0 && Ut < he;
91200
91202
  }
91201
- function Oo(Ut) {
91203
+ function Io(Ut) {
91202
91204
  if (Ut != null) {
91203
91205
  try {
91204
91206
  return X2.call(Ut);
@@ -91215,7 +91217,7 @@ var Gz = { exports: {} };
91215
91217
  return Ut === he || Ut != Ut && he != he;
91216
91218
  }
91217
91219
  (k5 && Y2(new k5(new ArrayBuffer(1))) != sn || ba && Y2(new ba()) != ze || V5 && Y2(V5.resolve()) != Jr || R5 && Y2(new R5()) != $r || B5 && Y2(new B5()) != rn) && (Y2 = function(Ut) {
91218
- var he = Ls(Ut), $e = he == Ar ? Ut.constructor : void 0, yr = $e ? Oo($e) : "";
91220
+ var he = Ls(Ut), $e = he == Ar ? Ut.constructor : void 0, yr = $e ? Io($e) : "";
91219
91221
  if (yr) switch (yr) {
91220
91222
  case bs:
91221
91223
  return sn;
@@ -91268,14 +91270,14 @@ var Gz = { exports: {} };
91268
91270
  };
91269
91271
  })(r6, r6.exports);
91270
91272
  var n6 = n(r6.exports);
91271
- function Ho(V, Z) {
91273
+ function Po(V, Z) {
91272
91274
  return V.length === Z.length && JSON.stringify(V.map(function(st) {
91273
91275
  return st;
91274
91276
  }).sort()) === JSON.stringify(Z.map(function(st) {
91275
91277
  return st;
91276
91278
  }).sort());
91277
91279
  }
91278
- var D5 = { Polygon: ar, LineString: ir, Point: sr, MultiPolygon: Ue, MultiLineString: Ue, MultiPoint: Ue }, lc = Object.freeze({ __proto__: null, CommonSelectors: O2, constrainFeatureMovement: r1, createMidPoint: Bt, createSupplementaryPoints: dt, createVertex: At, doubleClickZoom: Kt, euclideanDistance: zr, featuresAt: de, getFeatureAtAndSetCursors: _r, isClick: Qr, isEventAtCoordinates: $3, isTap: Yn, mapEventToBoundingBox: Ct, ModeHandler: e, moveFeatures: _n, sortFeatures: bt, stringSetsAreEqual: Ho, StringSet: Ft, theme: Mo, toDenseArray: Be }), ma = function(V, Z) {
91280
+ var D5 = { Polygon: ar, LineString: ir, Point: sr, MultiPolygon: Ue, MultiLineString: Ue, MultiPoint: Ue }, lc = Object.freeze({ __proto__: null, CommonSelectors: O2, constrainFeatureMovement: r1, createMidPoint: Bt, createSupplementaryPoints: dt, createVertex: At, doubleClickZoom: Kt, euclideanDistance: zr, featuresAt: de, getFeatureAtAndSetCursors: _r, isClick: Qr, isEventAtCoordinates: $3, isTap: Yn, mapEventToBoundingBox: Ct, ModeHandler: e, moveFeatures: _n, sortFeatures: bt, stringSetsAreEqual: Po, StringSet: Ft, theme: Eo, toDenseArray: Be }), ma = function(V, Z) {
91279
91281
  var st = { options: V = function(Dt) {
91280
91282
  Dt === void 0 && (Dt = {});
91281
91283
  var Ht = Hn(Dt);
@@ -91331,7 +91333,7 @@ var Gz = { exports: {} };
91331
91333
  }, Ht.deleteAll = function() {
91332
91334
  return Dt.store.delete(Dt.store.getAllIds(), { silent: !0 }), Ht.getMode() === H.DIRECT_SELECT ? Dt.events.changeMode(H.SIMPLE_SELECT, void 0, { silent: !0 }) : Dt.store.render(), Ht;
91333
91335
  }, Ht.changeMode = function(zt, ye) {
91334
- return ye === void 0 && (ye = {}), zt === H.SIMPLE_SELECT && Ht.getMode() === H.SIMPLE_SELECT ? (Ho(ye.featureIds || [], Dt.store.getSelectedIds()) || (Dt.store.setSelected(ye.featureIds, { silent: !0 }), Dt.store.render()), Ht) : (zt === H.DIRECT_SELECT && Ht.getMode() === H.DIRECT_SELECT && ye.featureId === Dt.store.getSelectedIds()[0] || Dt.events.changeMode(zt, ye, { silent: !0 }), Ht);
91336
+ return ye === void 0 && (ye = {}), zt === H.SIMPLE_SELECT && Ht.getMode() === H.SIMPLE_SELECT ? (Po(ye.featureIds || [], Dt.store.getSelectedIds()) || (Dt.store.setSelected(ye.featureIds, { silent: !0 }), Dt.store.render()), Ht) : (zt === H.DIRECT_SELECT && Ht.getMode() === H.DIRECT_SELECT && ye.featureId === Dt.store.getSelectedIds()[0] || Dt.events.changeMode(zt, ye, { silent: !0 }), Ht);
91335
91337
  }, Ht.getMode = function() {
91336
91338
  return Dt.events.getMode();
91337
91339
  }, Ht.trash = function() {
@@ -91358,10 +91360,10 @@ const hh = /* @__PURE__ */ e8(n_t), lV = hh.lib.theme.map((r) => r.id), $w = [
91358
91360
  ...lV.map((r) => `${r}.cold`),
91359
91361
  ...lV.map((r) => `${r}.hot`)
91360
91362
  ];
91361
- var C4, Ko, k1, kf, c5, qa, u5, bo, fp, O0;
91363
+ var C4, Ko, k1, kf, c5, qa, u5, Lo, fp, O0;
91362
91364
  class i_t {
91363
91365
  constructor(t, e = !1) {
91364
- pt(this, bo);
91366
+ pt(this, Lo);
91365
91367
  pt(this, C4, /* @__PURE__ */ new Map());
91366
91368
  pt(this, Ko, null);
91367
91369
  pt(this, k1);
@@ -91401,32 +91403,32 @@ class i_t {
91401
91403
  mt(this, u5, t);
91402
91404
  }
91403
91405
  createdFeature(t) {
91404
- const e = It(this, bo, fp).call(this, t);
91406
+ const e = It(this, Lo, fp).call(this, t);
91405
91407
  e && (M(this, k1).setFeatureProperty(e.id, "drawn", !0), M(this, k1).setFeatureProperty(e.id, "label", "Drawn annotation"), e.properties = {
91406
91408
  user_drawn: !0,
91407
91409
  user_label: "Drawn annotation"
91408
- }, It(this, bo, O0).call(this, "created", e));
91410
+ }, It(this, Lo, O0).call(this, "created", e));
91409
91411
  }
91410
91412
  deletedFeature(t) {
91411
- const e = It(this, bo, fp).call(this, t);
91412
- e && (M(this, qa).has(e.id) || It(this, bo, O0).call(this, "deleted", e));
91413
+ const e = It(this, Lo, fp).call(this, t);
91414
+ e && (M(this, qa).has(e.id) || It(this, Lo, O0).call(this, "deleted", e));
91413
91415
  }
91414
91416
  updatedFeature(t) {
91415
- const e = It(this, bo, fp).call(this, t);
91416
- e && (e.action = t.action, M(this, qa).has(e.id) || It(this, bo, O0).call(this, "updated", e));
91417
+ const e = It(this, Lo, fp).call(this, t);
91418
+ e && (e.action = t.action, M(this, qa).has(e.id) || It(this, Lo, O0).call(this, "updated", e));
91417
91419
  }
91418
91420
  modeChangedEvent(t) {
91419
- It(this, bo, O0).call(this, "modeChanged", t);
91421
+ It(this, Lo, O0).call(this, "modeChanged", t);
91420
91422
  }
91421
91423
  selectionChangedEvent(t) {
91422
- It(this, bo, O0).call(this, "selectionChanged", t);
91424
+ It(this, Lo, O0).call(this, "selectionChanged", t);
91423
91425
  }
91424
91426
  commitEvent(t) {
91425
91427
  const e = t.feature;
91426
91428
  t.type === "deleted" ? M(this, C4).delete(e.id) : M(this, C4).set(e.id, e), M(this, qa).delete(e.id);
91427
91429
  }
91428
91430
  abortEvent(t) {
91429
- It(this, bo, O0).call(this, "aborted", t.feature);
91431
+ It(this, Lo, O0).call(this, "aborted", t.feature);
91430
91432
  }
91431
91433
  rollbackEvent(t) {
91432
91434
  const e = t.feature;
@@ -91457,7 +91459,7 @@ class i_t {
91457
91459
  M(this, k1).changeMode(t.mode, t.options);
91458
91460
  }
91459
91461
  }
91460
- C4 = new WeakMap(), Ko = new WeakMap(), k1 = new WeakMap(), kf = new WeakMap(), c5 = new WeakMap(), qa = new WeakMap(), u5 = new WeakMap(), bo = new WeakSet(), fp = function(t) {
91462
+ C4 = new WeakMap(), Ko = new WeakMap(), k1 = new WeakMap(), kf = new WeakMap(), c5 = new WeakMap(), qa = new WeakMap(), u5 = new WeakMap(), Lo = new WeakSet(), fp = function(t) {
91461
91463
  const e = t.features.filter((n) => n.type === "Feature").map((n) => ({
91462
91464
  id: n.id,
91463
91465
  type: "Feature",
@@ -91467,12 +91469,12 @@ C4 = new WeakMap(), Ko = new WeakMap(), k1 = new WeakMap(), kf = new WeakMap(),
91467
91469
  }, O0 = function(t, e) {
91468
91470
  e.id && M(this, qa).add(+e.id), M(this, kf).annotationEvent(t, e);
91469
91471
  };
91470
- var A2, po, mo, Vf, Xa, N2, fl, dl, h5;
91472
+ var A2, mo, go, Vf, Xa, N2, fl, dl, h5;
91471
91473
  class o_t {
91472
91474
  constructor(t, e) {
91473
91475
  pt(this, A2, null);
91474
- pt(this, po, 0);
91475
- pt(this, mo, null);
91476
+ pt(this, mo, 0);
91477
+ pt(this, go, null);
91476
91478
  pt(this, Vf, 0);
91477
91479
  pt(this, Xa, null);
91478
91480
  pt(this, N2, []);
@@ -91485,28 +91487,28 @@ class o_t {
91485
91487
  return "top-right";
91486
91488
  }
91487
91489
  onAdd(t) {
91488
- mt(this, mo, document.createElement("div")), M(this, mo).id = "centreline-nerve-ctrl", M(this, mo).className = "maplibregl-ctrl", mt(this, Xa, document.createElement("div")), M(this, Xa).id = "centreline-key-text", M(this, Xa).className = "flatmap-nerve-grid centreline-nerve-grid", mt(this, N2, M(this, h5).getNerveDetails().sort((n, i) => n.label.localeCompare(i.label)));
91490
+ mt(this, go, document.createElement("div")), M(this, go).id = "centreline-nerve-ctrl", M(this, go).className = "maplibregl-ctrl", mt(this, Xa, document.createElement("div")), M(this, Xa).id = "centreline-key-text", M(this, Xa).className = "flatmap-nerve-grid centreline-nerve-grid", mt(this, N2, M(this, h5).getNerveDetails().sort((n, i) => n.label.localeCompare(i.label)));
91489
91491
  const e = [];
91490
91492
  e.push('<label class="heading" for="nerve-all-nerves">PATH NERVES:</label></div><input id="nerve-all-nerves" type="checkbox" checked/>'), e.push('<label for="show-centrelines">Show centrelines?</label></div><input id="show-centrelines" type="checkbox"/>'), e.push('<label for="nerve-NO-NERVES">No associated nerves</label></div><input id="nerve-NO-NERVES" type="checkbox" checked/>');
91491
91493
  for (const n of M(this, N2))
91492
91494
  n.models !== "NO-NERVES" && e.push(`<label for="nerve-${n.models}">${n.label}</label></div><input id="nerve-${n.models}" type="checkbox" checked/>`);
91493
91495
  return mt(this, dl, new Map(M(this, N2).map((n) => [n.models, !0]))), M(this, Xa).innerHTML = e.join(`
91494
- `), mt(this, po, M(this, N2).length), mt(this, Vf, Math.trunc(M(this, N2).length / 2)), mt(this, A2, document.createElement("button")), M(this, A2).id = "centreline-key-button", M(this, A2).className = "control-button text-button", M(this, A2).setAttribute("type", "button"), M(this, A2).setAttribute("aria-label", "Neuron paths associated with nerves"), M(this, A2).setAttribute("control-visible", "false"), M(this, A2).textContent = "NERVES", M(this, A2).title = "Show/hide neuron paths associated with nerves", M(this, mo).appendChild(M(this, A2)), M(this, mo).addEventListener("click", this.onClick_.bind(this)), M(this, mo);
91496
+ `), mt(this, mo, M(this, N2).length), mt(this, Vf, Math.trunc(M(this, N2).length / 2)), mt(this, A2, document.createElement("button")), M(this, A2).id = "centreline-key-button", M(this, A2).className = "control-button text-button", M(this, A2).setAttribute("type", "button"), M(this, A2).setAttribute("aria-label", "Neuron paths associated with nerves"), M(this, A2).setAttribute("control-visible", "false"), M(this, A2).textContent = "NERVES", M(this, A2).title = "Show/hide neuron paths associated with nerves", M(this, go).appendChild(M(this, A2)), M(this, go).addEventListener("click", this.onClick_.bind(this)), M(this, go);
91495
91497
  }
91496
91498
  onRemove() {
91497
- M(this, mo).parentNode.removeChild(M(this, mo));
91499
+ M(this, go).parentNode.removeChild(M(this, go));
91498
91500
  }
91499
91501
  onClick_(t) {
91500
91502
  if (t.target.id === "centreline-key-button")
91501
91503
  if (M(this, A2).getAttribute("control-visible") === "false") {
91502
- M(this, mo).appendChild(M(this, Xa)), M(this, A2).setAttribute("control-visible", "true");
91504
+ M(this, go).appendChild(M(this, Xa)), M(this, A2).setAttribute("control-visible", "true");
91503
91505
  const e = document.getElementById("nerve-all-nerves");
91504
- e.indeterminate = M(this, po) < M(this, N2).length && M(this, po) > 0, M(this, Xa).focus();
91506
+ e.indeterminate = M(this, mo) < M(this, N2).length && M(this, mo) > 0, M(this, Xa).focus();
91505
91507
  } else
91506
- mt(this, Xa, M(this, mo).removeChild(M(this, Xa))), M(this, A2).setAttribute("control-visible", "false");
91508
+ mt(this, Xa, M(this, go).removeChild(M(this, Xa))), M(this, A2).setAttribute("control-visible", "false");
91507
91509
  else if (t.target.tagName === "INPUT") {
91508
91510
  if (t.target.id === "nerve-all-nerves") {
91509
- t.target.indeterminate && (t.target.checked = M(this, po) >= M(this, Vf), t.target.indeterminate = !1), t.target.checked ? mt(this, po, M(this, N2).length) : mt(this, po, 0);
91511
+ t.target.indeterminate && (t.target.checked = M(this, mo) >= M(this, Vf), t.target.indeterminate = !1), t.target.checked ? mt(this, mo, M(this, N2).length) : mt(this, mo, 0);
91510
91512
  for (const e of M(this, N2)) {
91511
91513
  const n = document.getElementById(`nerve-${e.models}`);
91512
91514
  n && (n.checked = t.target.checked);
@@ -91514,9 +91516,9 @@ class o_t {
91514
91516
  M(this, h5).enableNeuronPathsByNerve(M(this, N2).map((e) => e.models), t.target.checked, M(this, fl)), mt(this, dl, new Map(M(this, N2).map((e) => [e.models, t.target.checked])));
91515
91517
  } else if (t.target.id.startsWith("nerve-")) {
91516
91518
  const e = t.target.id.substring(6);
91517
- M(this, h5).enableNeuronPathsByNerve(e, t.target.checked, M(this, fl)), M(this, dl).set(e, t.target.checked), t.target.checked ? mt(this, po, M(this, po) + 1) : mt(this, po, M(this, po) - 1);
91519
+ M(this, h5).enableNeuronPathsByNerve(e, t.target.checked, M(this, fl)), M(this, dl).set(e, t.target.checked), t.target.checked ? mt(this, mo, M(this, mo) + 1) : mt(this, mo, M(this, mo) - 1);
91518
91520
  const n = document.getElementById("nerve-all-nerves");
91519
- M(this, po) === 0 ? (n.checked = !1, n.indeterminate = !1) : M(this, po) === M(this, N2).length ? (n.checked = !0, n.indeterminate = !1) : n.indeterminate = !0;
91521
+ M(this, mo) === 0 ? (n.checked = !1, n.indeterminate = !1) : M(this, mo) === M(this, N2).length ? (n.checked = !0, n.indeterminate = !1) : n.indeterminate = !0;
91520
91522
  } else if (t.target.id === "show-centrelines") {
91521
91523
  mt(this, fl, t.target.checked);
91522
91524
  const e = [...M(this, dl).entries()].filter((n) => n[1]).map((n) => n[0]);
@@ -91526,13 +91528,13 @@ class o_t {
91526
91528
  t.stopPropagation();
91527
91529
  }
91528
91530
  }
91529
- A2 = new WeakMap(), po = new WeakMap(), mo = new WeakMap(), Vf = new WeakMap(), Xa = new WeakMap(), N2 = new WeakMap(), fl = new WeakMap(), dl = new WeakMap(), h5 = new WeakMap();
91530
- var M2, j2, go, uu, Rf, Ka, Ya;
91531
+ A2 = new WeakMap(), mo = new WeakMap(), go = new WeakMap(), Vf = new WeakMap(), Xa = new WeakMap(), N2 = new WeakMap(), fl = new WeakMap(), dl = new WeakMap(), h5 = new WeakMap();
91532
+ var M2, j2, yo, uu, Rf, Ka, Ya;
91531
91533
  class a_t {
91532
91534
  constructor(t, e) {
91533
91535
  pt(this, M2, null);
91534
91536
  pt(this, j2, 0);
91535
- pt(this, go, null);
91537
+ pt(this, yo, null);
91536
91538
  pt(this, uu);
91537
91539
  pt(this, Rf, 0);
91538
91540
  pt(this, Ka, null);
@@ -91543,7 +91545,7 @@ class a_t {
91543
91545
  return "top-right";
91544
91546
  }
91545
91547
  onAdd(t) {
91546
- mt(this, go, document.createElement("div")), M(this, go).className = "maplibregl-ctrl", M(this, go).id = "flatmap-nerve-key", mt(this, Ka, document.createElement("div")), M(this, Ka).id = "nerve-key-text", M(this, Ka).className = "flatmap-nerve-grid";
91548
+ mt(this, yo, document.createElement("div")), M(this, yo).className = "maplibregl-ctrl", M(this, yo).id = "flatmap-nerve-key", mt(this, Ka, document.createElement("div")), M(this, Ka).id = "nerve-key-text", M(this, Ka).className = "flatmap-nerve-grid";
91547
91549
  const e = [];
91548
91550
  e.push('<label class="heading" for="path-all-paths">PATH TYPES:</label><div class="nerve-line"></div><input id="path-all-paths" type="checkbox" checked/>'), mt(this, j2, 0);
91549
91551
  for (const n of M(this, Ya)) {
@@ -91553,19 +91555,19 @@ class a_t {
91553
91555
  e.push(`<label for="path-${n.type}">${n.label}</label><div class="nerve-line" style="${s}"></div><input id="path-${n.type}" type="checkbox" ${i}/>`);
91554
91556
  }
91555
91557
  return M(this, Ka).innerHTML = e.join(`
91556
- `), mt(this, Rf, Math.trunc(M(this, Ya).length / 2)), mt(this, M2, document.createElement("button")), M(this, M2).id = "nerve-key-button", M(this, M2).className = "control-button text-button", M(this, M2).setAttribute("type", "button"), M(this, M2).setAttribute("aria-label", "Neuron path type's legend"), M(this, M2).setAttribute("control-visible", "false"), M(this, M2).textContent = "PATHS", M(this, M2).title = "Show/hide neuron paths by type", M(this, go).appendChild(M(this, M2)), M(this, go).addEventListener("click", this.onClick_.bind(this)), M(this, go);
91558
+ `), mt(this, Rf, Math.trunc(M(this, Ya).length / 2)), mt(this, M2, document.createElement("button")), M(this, M2).id = "nerve-key-button", M(this, M2).className = "control-button text-button", M(this, M2).setAttribute("type", "button"), M(this, M2).setAttribute("aria-label", "Neuron path type's legend"), M(this, M2).setAttribute("control-visible", "false"), M(this, M2).textContent = "PATHS", M(this, M2).title = "Show/hide neuron paths by type", M(this, yo).appendChild(M(this, M2)), M(this, yo).addEventListener("click", this.onClick_.bind(this)), M(this, yo);
91557
91559
  }
91558
91560
  onRemove() {
91559
- M(this, go).parentNode.removeChild(M(this, go));
91561
+ M(this, yo).parentNode.removeChild(M(this, yo));
91560
91562
  }
91561
91563
  onClick_(t) {
91562
91564
  if (t.target.id === "nerve-key-button")
91563
91565
  if (M(this, M2).getAttribute("control-visible") === "false") {
91564
- M(this, go).appendChild(M(this, Ka)), M(this, M2).setAttribute("control-visible", "true");
91566
+ M(this, yo).appendChild(M(this, Ka)), M(this, M2).setAttribute("control-visible", "true");
91565
91567
  const e = document.getElementById("path-all-paths");
91566
91568
  e.indeterminate = M(this, j2) < M(this, Ya).length && M(this, j2) > 0, M(this, Ka).focus();
91567
91569
  } else
91568
- mt(this, Ka, M(this, go).removeChild(M(this, Ka))), M(this, M2).setAttribute("control-visible", "false");
91570
+ mt(this, Ka, M(this, yo).removeChild(M(this, Ka))), M(this, M2).setAttribute("control-visible", "false");
91569
91571
  else if (t.target.tagName === "INPUT") {
91570
91572
  if (t.target.id === "path-all-paths") {
91571
91573
  t.target.indeterminate && (t.target.checked = M(this, j2) >= M(this, Rf), t.target.indeterminate = !1), t.target.checked ? mt(this, j2, M(this, Ya).length) : mt(this, j2, 0);
@@ -91584,7 +91586,7 @@ class a_t {
91584
91586
  t.stopPropagation();
91585
91587
  }
91586
91588
  }
91587
- M2 = new WeakMap(), j2 = new WeakMap(), go = new WeakMap(), uu = new WeakMap(), Rf = new WeakMap(), Ka = new WeakMap(), Ya = new WeakMap();
91589
+ M2 = new WeakMap(), j2 = new WeakMap(), yo = new WeakMap(), uu = new WeakMap(), Rf = new WeakMap(), Ka = new WeakMap(), Ya = new WeakMap();
91588
91590
  var K1, m3, f5, hu, ql, Uw, qz;
91589
91591
  class s_t {
91590
91592
  constructor(t, e) {
@@ -91610,28 +91612,28 @@ K1 = new WeakMap(), m3 = new WeakMap(), f5 = new WeakMap(), hu = new WeakMap(),
91610
91612
  }, qz = function(t) {
91611
91613
  M(this, K1).classList.contains("control-active") ? (M(this, hu).enableFlightPaths(!1), M(this, K1).classList.remove("control-active"), mt(this, f5, !1)) : (M(this, hu).enableFlightPaths(!0), M(this, K1).classList.add("control-active"), mt(this, f5, !0)), It(this, ql, Uw).call(this);
91612
91614
  };
91613
- var Yo, yo, Tl, v1;
91615
+ var Yo, _o, Tl, v1;
91614
91616
  class l_t {
91615
91617
  constructor(t) {
91616
91618
  pt(this, Yo, null);
91617
- pt(this, yo, null);
91619
+ pt(this, _o, null);
91618
91620
  pt(this, Tl);
91619
91621
  pt(this, v1, null);
91620
91622
  mt(this, Tl, t);
91621
91623
  }
91622
91624
  onAdd(t) {
91623
- return mt(this, yo, document.createElement("div")), M(this, yo).className = "maplibregl-ctrl search-control", mt(this, v1, document.createElement("input")), M(this, v1).id = "search-control-input", M(this, v1).setAttribute("type", "search"), M(this, v1).setAttribute("visible", "false"), M(this, v1).setAttribute("placeholder", "Search..."), mt(this, Yo, document.createElement("button")), M(this, Yo).id = "search-control-button", M(this, Yo).className = "control-button", M(this, Yo).title = "Search flatmap", M(this, Yo).setAttribute("type", "button"), M(this, Yo).setAttribute("aria-label", "Search flatmap"), M(this, Yo).innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" id="search-control-icon" viewBox="0 0 24 24">
91625
+ return mt(this, _o, document.createElement("div")), M(this, _o).className = "maplibregl-ctrl search-control", mt(this, v1, document.createElement("input")), M(this, v1).id = "search-control-input", M(this, v1).setAttribute("type", "search"), M(this, v1).setAttribute("visible", "false"), M(this, v1).setAttribute("placeholder", "Search..."), mt(this, Yo, document.createElement("button")), M(this, Yo).id = "search-control-button", M(this, Yo).className = "control-button", M(this, Yo).title = "Search flatmap", M(this, Yo).setAttribute("type", "button"), M(this, Yo).setAttribute("aria-label", "Search flatmap"), M(this, Yo).innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" id="search-control-icon" viewBox="0 0 24 24">
91624
91626
  <path d="M21.172 24l-7.387-7.387c-1.388.874-3.024 1.387-4.785 1.387-4.971 0-9-4.029-9-9s4.029-9 9-9 9 4.029 9 9c0 1.761-.514 3.398-1.387 4.785l7.387 7.387-2.828 2.828zm-12.172-8c3.859 0 7-3.14 7-7s-3.141-7-7-7-7 3.14-7 7 3.141 7 7 7z"/>
91625
- </svg>`, M(this, yo).appendChild(M(this, Yo)), M(this, yo).onclick = this.onClick_.bind(this), M(this, yo);
91627
+ </svg>`, M(this, _o).appendChild(M(this, Yo)), M(this, _o).onclick = this.onClick_.bind(this), M(this, _o);
91626
91628
  }
91627
91629
  getDefaultPosition() {
91628
91630
  return "top-right";
91629
91631
  }
91630
91632
  onRemove() {
91631
- M(this, yo).parentNode.removeChild(M(this, yo));
91633
+ M(this, _o).parentNode.removeChild(M(this, _o));
91632
91634
  }
91633
91635
  searchMap_(t = !0) {
91634
- mt(this, v1, M(this, yo).removeChild(M(this, v1))), M(this, v1).setAttribute("visible", "false");
91636
+ mt(this, v1, M(this, _o).removeChild(M(this, v1))), M(this, v1).setAttribute("visible", "false");
91635
91637
  const e = M(this, v1).value;
91636
91638
  if (t && e !== "") {
91637
91639
  const n = M(this, Tl).search(e);
@@ -91643,10 +91645,10 @@ class l_t {
91643
91645
  }
91644
91646
  onClick_(t) {
91645
91647
  const e = "rangeTarget" in t ? t.rangeTarget.id : t.target.id;
91646
- ["search-control-button", "search-control-icon"].includes(e) && (M(this, v1).getAttribute("visible") === "false" ? (M(this, yo).appendChild(M(this, v1)), M(this, yo).appendChild(M(this, Yo)), M(this, v1).setAttribute("visible", "true"), M(this, v1).onkeydown = this.onKeyDown_.bind(this), M(this, v1).value = "", M(this, Tl).clearSearchResults(), M(this, v1).focus()) : this.searchMap_());
91648
+ ["search-control-button", "search-control-icon"].includes(e) && (M(this, v1).getAttribute("visible") === "false" ? (M(this, _o).appendChild(M(this, v1)), M(this, _o).appendChild(M(this, Yo)), M(this, v1).setAttribute("visible", "true"), M(this, v1).onkeydown = this.onKeyDown_.bind(this), M(this, v1).value = "", M(this, Tl).clearSearchResults(), M(this, v1).focus()) : this.searchMap_());
91647
91649
  }
91648
91650
  }
91649
- Yo = new WeakMap(), yo = new WeakMap(), Tl = new WeakMap(), v1 = new WeakMap();
91651
+ Yo = new WeakMap(), _o = new WeakMap(), Tl = new WeakMap(), v1 = new WeakMap();
91650
91652
  const c_t = {
91651
91653
  fillColor: "#DDD",
91652
91654
  fillOpacity: 0.3,
@@ -92674,7 +92676,7 @@ r$ = function() {
92674
92676
  ]), M(this, on).zoomEvent());
92675
92677
  };
92676
92678
  const Xb = 1.3;
92677
- var Zf, Wf, Gf, xu, e2, s$, zo;
92679
+ var Zf, Wf, Gf, xu, e2, s$, $o;
92678
92680
  class g_t {
92679
92681
  constructor(t) {
92680
92682
  pt(this, e2);
@@ -92692,42 +92694,42 @@ class g_t {
92692
92694
  }
92693
92695
  async initialise() {
92694
92696
  try {
92695
- const t = await It(this, e2, zo).call(this, "knowledge/schema-version");
92697
+ const t = await It(this, e2, $o).call(this, "knowledge/schema-version");
92696
92698
  if (!t)
92697
92699
  return;
92698
92700
  "version" in t && mt(this, Gf, +t.version);
92699
- const e = await It(this, e2, zo).call(this, "knowledge/sources");
92701
+ const e = await It(this, e2, $o).call(this, "knowledge/sources");
92700
92702
  e && "sources" in e && (mt(this, xu, e.sources), M(this, xu).length && mt(this, Wf, M(this, xu)[0]));
92701
92703
  } catch {
92702
92704
  return;
92703
92705
  }
92704
92706
  }
92705
92707
  async flatMaps() {
92706
- return It(this, e2, zo).call(this, "");
92708
+ return It(this, e2, $o).call(this, "");
92707
92709
  }
92708
92710
  async mapImage(t, e) {
92709
92711
  return It(this, e2, s$).call(this, `flatmap/${t}/images/${e}`);
92710
92712
  }
92711
92713
  async mapIndex(t) {
92712
- return It(this, e2, zo).call(this, `flatmap/${t}/`);
92714
+ return It(this, e2, $o).call(this, `flatmap/${t}/`);
92713
92715
  }
92714
92716
  async mapLayers(t) {
92715
- return It(this, e2, zo).call(this, `flatmap/${t}/layers`);
92717
+ return It(this, e2, $o).call(this, `flatmap/${t}/layers`);
92716
92718
  }
92717
92719
  async mapStyle(t) {
92718
- return It(this, e2, zo).call(this, `flatmap/${t}/style`);
92720
+ return It(this, e2, $o).call(this, `flatmap/${t}/style`);
92719
92721
  }
92720
92722
  async mapPathways(t) {
92721
- return It(this, e2, zo).call(this, `flatmap/${t}/pathways`);
92723
+ return It(this, e2, $o).call(this, `flatmap/${t}/pathways`);
92722
92724
  }
92723
92725
  async mapAnnotations(t) {
92724
- return It(this, e2, zo).call(this, `flatmap/${t}/annotations`);
92726
+ return It(this, e2, $o).call(this, `flatmap/${t}/annotations`);
92725
92727
  }
92726
92728
  async mapMetadata(t) {
92727
- return It(this, e2, zo).call(this, `flatmap/${t}/metadata`);
92729
+ return It(this, e2, $o).call(this, `flatmap/${t}/metadata`);
92728
92730
  }
92729
92731
  async mapTermGraph(t) {
92730
- return It(this, e2, zo).call(this, `flatmap/${t}/termgraph`);
92732
+ return It(this, e2, $o).call(this, `flatmap/${t}/termgraph`);
92731
92733
  }
92732
92734
  async queryKnowledge(t, e = []) {
92733
92735
  const n = this.url("knowledge/query/"), o = await fetch(n, {
@@ -92745,7 +92747,7 @@ class g_t {
92745
92747
  return s.values;
92746
92748
  }
92747
92749
  async sparcTermGraph() {
92748
- return It(this, e2, zo).call(this, "knowledge/sparcterms");
92750
+ return It(this, e2, $o).call(this, "knowledge/sparcterms");
92749
92751
  }
92750
92752
  url(t = "") {
92751
92753
  return new URL(t, M(this, Zf)).href;
@@ -92762,7 +92764,7 @@ Zf = new WeakMap(), Wf = new WeakMap(), Gf = new WeakMap(), xu = new WeakMap(),
92762
92764
  if (!n.ok)
92763
92765
  throw new Error(`Cannot access ${e}`);
92764
92766
  return await n.bytes();
92765
- }, zo = async function(t, e = !1) {
92767
+ }, $o = async function(t, e = !1) {
92766
92768
  const n = this.url(t), i = await fetch(n, {
92767
92769
  method: "GET",
92768
92770
  headers: {
@@ -94069,7 +94071,7 @@ bu = new WeakMap(), Lu = new WeakMap(), wu = new WeakMap(), z2 = new WeakMap(),
94069
94071
  return M(this, El).set(t, e[0].label);
94070
94072
  }
94071
94073
  };
94072
- const w_t = "4.2.11", A_t = 1.4;
94074
+ const w_t = "4.2.12", A_t = 1.4;
94073
94075
  var Jm, td, Sl, J1, ed, rd, I3, iA, oA, T$;
94074
94076
  class M_t {
94075
94077
  // also have a callback for viewer events...