@opengis/partsmap 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PartsMap.js +394 -393
- package/dist/PartsMap.umd.cjs +8 -8
- package/package.json +1 -1
package/dist/PartsMap.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { openBlock as dt, createElementBlock as Ut, createStaticVNode as op, Fragment as
|
1
|
+
import { openBlock as dt, createElementBlock as Ut, createStaticVNode as op, Fragment as ol, renderList as al, normalizeClass as Uo, createElementVNode as et, toDisplayString as Mn, createCommentVNode as Pr, normalizeStyle as ap, resolveComponent as Yi, withDirectives as Jh, createVNode as cn, vShow as Kh, createBlock as ln, Teleport as Bm, Transition as jd, withCtx as ll, renderSlot as cl, pushScopeId as Fm, popScopeId as Om, defineComponent as Vm, createTextVNode as Nm } from "vue";
|
2
2
|
var $s = {};
|
3
3
|
function $d(g) {
|
4
4
|
return Math.floor(Math.abs(g) + 0.5) * (g >= 0 ? 1 : -1);
|
@@ -645,7 +645,7 @@ var cp = { exports: {} };
|
|
645
645
|
}
|
646
646
|
}
|
647
647
|
bt.black = new bt(0, 0, 0, 1), bt.white = new bt(1, 1, 1, 1), bt.transparent = new bt(0, 0, 0, 0), bt.red = new bt(1, 0, 0, 1);
|
648
|
-
class
|
648
|
+
class qo {
|
649
649
|
constructor(e, r, s) {
|
650
650
|
this.sensitivity = e ? r ? "variant" : "case" : r ? "accent" : "base", this.locale = s, this.collator = new Intl.Collator(this.locale ? this.locale : [], { sensitivity: this.sensitivity, usage: "search" });
|
651
651
|
}
|
@@ -656,7 +656,7 @@ var cp = { exports: {} };
|
|
656
656
|
return new Intl.Collator(this.locale ? this.locale : []).resolvedOptions().locale;
|
657
657
|
}
|
658
658
|
}
|
659
|
-
class
|
659
|
+
class Zo {
|
660
660
|
constructor(e, r, s, l, d) {
|
661
661
|
this.text = e, this.image = r, this.scale = s, this.fontStack = l, this.textColor = d;
|
662
662
|
}
|
@@ -666,7 +666,7 @@ var cp = { exports: {} };
|
|
666
666
|
this.sections = e;
|
667
667
|
}
|
668
668
|
static fromString(e) {
|
669
|
-
return new Ni([new
|
669
|
+
return new Ni([new Zo(e, null, null, null, null)]);
|
670
670
|
}
|
671
671
|
isEmpty() {
|
672
672
|
return this.sections.length === 0 || !this.sections.some((e) => e.text.length !== 0 || e.image && e.image.name.length !== 0);
|
@@ -738,7 +738,7 @@ var cp = { exports: {} };
|
|
738
738
|
return typeof i == "number" && i >= 0 && i <= 255 && typeof e == "number" && e >= 0 && e <= 255 && typeof r == "number" && r >= 0 && r <= 255 ? s === void 0 || typeof s == "number" && s >= 0 && s <= 1 ? null : `Invalid rgba value [${[i, e, r, s].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof s == "number" ? [i, e, r, s] : [i, e, r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
|
739
739
|
}
|
740
740
|
function ds(i) {
|
741
|
-
if (i === null || typeof i == "string" || typeof i == "boolean" || typeof i == "number" || i instanceof bt || i instanceof
|
741
|
+
if (i === null || typeof i == "string" || typeof i == "boolean" || typeof i == "number" || i instanceof bt || i instanceof qo || i instanceof Ni || i instanceof Ui || i instanceof ji || i instanceof pi) return !0;
|
742
742
|
if (Array.isArray(i)) {
|
743
743
|
for (const e of i) if (!ds(e)) return !1;
|
744
744
|
return !0;
|
@@ -755,7 +755,7 @@ var cp = { exports: {} };
|
|
755
755
|
if (typeof i == "boolean") return Je;
|
756
756
|
if (typeof i == "number") return Ae;
|
757
757
|
if (i instanceof bt) return Mi;
|
758
|
-
if (i instanceof
|
758
|
+
if (i instanceof qo) return yr;
|
759
759
|
if (i instanceof Ni) return Mr;
|
760
760
|
if (i instanceof Ui) return Wr;
|
761
761
|
if (i instanceof ji) return G;
|
@@ -932,7 +932,7 @@ var cp = { exports: {} };
|
|
932
932
|
return this.args.every((e) => e.outputDefined());
|
933
933
|
}
|
934
934
|
}
|
935
|
-
const
|
935
|
+
const Go = ["Unknown", "Point", "LineString", "Polygon"];
|
936
936
|
class fs {
|
937
937
|
constructor() {
|
938
938
|
this.globals = null, this.feature = null, this.featureState = null, this.formattedSection = null, this._parseColorCache = {}, this.availableImages = null, this.canonical = null;
|
@@ -941,7 +941,7 @@ var cp = { exports: {} };
|
|
941
941
|
return this.feature && "id" in this.feature ? this.feature.id : null;
|
942
942
|
}
|
943
943
|
geometryType() {
|
944
|
-
return this.feature ? typeof this.feature.type == "number" ?
|
944
|
+
return this.feature ? typeof this.feature.type == "number" ? Go[this.feature.type] : this.feature.type : null;
|
945
945
|
}
|
946
946
|
geometry() {
|
947
947
|
return this.feature && "geometry" in this.feature ? this.feature.geometry : null;
|
@@ -1059,14 +1059,14 @@ var cp = { exports: {} };
|
|
1059
1059
|
return !1;
|
1060
1060
|
}
|
1061
1061
|
}
|
1062
|
-
class
|
1062
|
+
class Ho {
|
1063
1063
|
constructor(e, r, s) {
|
1064
1064
|
this.type = e, this.index = r, this.input = s;
|
1065
1065
|
}
|
1066
1066
|
static parse(e, r) {
|
1067
1067
|
if (e.length !== 3) return r.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
|
1068
1068
|
const s = r.parse(e[1], 1, Ae), l = r.parse(e[2], 2, z(r.expectedType || it));
|
1069
|
-
return s && l ? new
|
1069
|
+
return s && l ? new Ho(l.type.itemType, s, l) : null;
|
1070
1070
|
}
|
1071
1071
|
evaluate(e) {
|
1072
1072
|
const r = this.index.evaluate(e), s = this.input.evaluate(e);
|
@@ -1569,7 +1569,7 @@ var cp = { exports: {} };
|
|
1569
1569
|
return s.locale && (p = r.parse(s.locale, 1, ot), !p) ? null : new to(l, d, p);
|
1570
1570
|
}
|
1571
1571
|
evaluate(e) {
|
1572
|
-
return new
|
1572
|
+
return new qo(this.caseSensitive.evaluate(e), this.diacriticSensitive.evaluate(e), this.locale ? this.locale.evaluate(e) : null);
|
1573
1573
|
}
|
1574
1574
|
eachChild(e) {
|
1575
1575
|
e(this.caseSensitive), e(this.diacriticSensitive), this.locale && e(this.locale);
|
@@ -1578,7 +1578,7 @@ var cp = { exports: {} };
|
|
1578
1578
|
return !1;
|
1579
1579
|
}
|
1580
1580
|
}
|
1581
|
-
class
|
1581
|
+
class Wo {
|
1582
1582
|
constructor(e, r, s, l, d) {
|
1583
1583
|
this.type = ot, this.number = e, this.locale = r, this.currency = s, this.minFractionDigits = l, this.maxFractionDigits = d;
|
1584
1584
|
}
|
@@ -1595,7 +1595,7 @@ var cp = { exports: {} };
|
|
1595
1595
|
let f = null;
|
1596
1596
|
if (l["min-fraction-digits"] && (f = r.parse(l["min-fraction-digits"], 1, Ae), !f)) return null;
|
1597
1597
|
let _ = null;
|
1598
|
-
return l["max-fraction-digits"] && (_ = r.parse(l["max-fraction-digits"], 1, Ae), !_) ? null : new
|
1598
|
+
return l["max-fraction-digits"] && (_ = r.parse(l["max-fraction-digits"], 1, Ae), !_) ? null : new Wo(s, d, p, f, _);
|
1599
1599
|
}
|
1600
1600
|
evaluate(e) {
|
1601
1601
|
return new Intl.NumberFormat(this.locale ? this.locale.evaluate(e) : [], { style: this.currency ? "currency" : "decimal", currency: this.currency ? this.currency.evaluate(e) : void 0, minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits.evaluate(e) : void 0, maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits.evaluate(e) : void 0 }).format(this.number.evaluate(e));
|
@@ -1642,7 +1642,7 @@ var cp = { exports: {} };
|
|
1642
1642
|
evaluate(e) {
|
1643
1643
|
return new Ni(this.sections.map((r) => {
|
1644
1644
|
const s = r.content.evaluate(e);
|
1645
|
-
return ei(s) === xr ? new
|
1645
|
+
return ei(s) === xr ? new Zo("", s, null, null, null) : new Zo(zr(s), null, r.scale ? r.scale.evaluate(e) : null, r.font ? r.font.evaluate(e).join(",") : null, r.textColor ? r.textColor.evaluate(e) : null);
|
1646
1646
|
}));
|
1647
1647
|
}
|
1648
1648
|
eachChild(e) {
|
@@ -1652,14 +1652,14 @@ var cp = { exports: {} };
|
|
1652
1652
|
return !1;
|
1653
1653
|
}
|
1654
1654
|
}
|
1655
|
-
class
|
1655
|
+
class Xo {
|
1656
1656
|
constructor(e) {
|
1657
1657
|
this.type = xr, this.input = e;
|
1658
1658
|
}
|
1659
1659
|
static parse(e, r) {
|
1660
1660
|
if (e.length !== 2) return r.error("Expected two arguments.");
|
1661
1661
|
const s = r.parse(e[1], 1, ot);
|
1662
|
-
return s ? new
|
1662
|
+
return s ? new Xo(s) : r.error("No image name provided.");
|
1663
1663
|
}
|
1664
1664
|
evaluate(e) {
|
1665
1665
|
const r = this.input.evaluate(e), s = pi.fromString(r);
|
@@ -1672,14 +1672,14 @@ var cp = { exports: {} };
|
|
1672
1672
|
return !1;
|
1673
1673
|
}
|
1674
1674
|
}
|
1675
|
-
class
|
1675
|
+
class Jo {
|
1676
1676
|
constructor(e) {
|
1677
1677
|
this.type = Ae, this.input = e;
|
1678
1678
|
}
|
1679
1679
|
static parse(e, r) {
|
1680
1680
|
if (e.length !== 2) return r.error(`Expected 1 argument, but found ${e.length - 1} instead.`);
|
1681
1681
|
const s = r.parse(e[1], 1);
|
1682
|
-
return s ? s.type.kind !== "array" && s.type.kind !== "string" && s.type.kind !== "value" ? r.error(`Expected argument of type string or array, but found ${M(s.type)} instead.`) : new
|
1682
|
+
return s ? s.type.kind !== "array" && s.type.kind !== "string" && s.type.kind !== "value" ? r.error(`Expected argument of type string or array, but found ${M(s.type)} instead.`) : new Jo(s) : null;
|
1683
1683
|
}
|
1684
1684
|
evaluate(e) {
|
1685
1685
|
const r = this.input.evaluate(e);
|
@@ -1694,7 +1694,7 @@ var cp = { exports: {} };
|
|
1694
1694
|
}
|
1695
1695
|
}
|
1696
1696
|
const vr = 8192;
|
1697
|
-
function
|
1697
|
+
function Ko(i, e) {
|
1698
1698
|
const r = (180 + i[0]) / 360, s = (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + i[1] * Math.PI / 360))) / 360, l = Math.pow(2, e.z);
|
1699
1699
|
return [Math.round(r * l * vr), Math.round(s * l * vr)];
|
1700
1700
|
}
|
@@ -1747,12 +1747,12 @@ var cp = { exports: {} };
|
|
1747
1747
|
const l = s[0] - r[0], d = s[1] - r[1], p = (i[0] - r[0]) * d - l * (i[1] - r[1]), f = (e[0] - r[0]) * d - l * (e[1] - r[1]);
|
1748
1748
|
return p > 0 && f < 0 || p < 0 && f > 0;
|
1749
1749
|
}
|
1750
|
-
function
|
1750
|
+
function Yo(i, e, r) {
|
1751
1751
|
const s = [];
|
1752
1752
|
for (let l = 0; l < i.length; l++) {
|
1753
1753
|
const d = [];
|
1754
1754
|
for (let p = 0; p < i[l].length; p++) {
|
1755
|
-
const f =
|
1755
|
+
const f = Ko(i[l][p], r);
|
1756
1756
|
ut(e, f), d.push(f);
|
1757
1757
|
}
|
1758
1758
|
s.push(d);
|
@@ -1762,7 +1762,7 @@ var cp = { exports: {} };
|
|
1762
1762
|
function bl(i, e, r) {
|
1763
1763
|
const s = [];
|
1764
1764
|
for (let l = 0; l < i.length; l++) {
|
1765
|
-
const d =
|
1765
|
+
const d = Yo(i[l], e, r);
|
1766
1766
|
s.push(d);
|
1767
1767
|
}
|
1768
1768
|
return s;
|
@@ -1827,7 +1827,7 @@ var cp = { exports: {} };
|
|
1827
1827
|
if (e.geometryType() === "Point") return function(r, s) {
|
1828
1828
|
const l = [1 / 0, 1 / 0, -1 / 0, -1 / 0], d = [1 / 0, 1 / 0, -1 / 0, -1 / 0], p = r.canonicalID();
|
1829
1829
|
if (s.type === "Polygon") {
|
1830
|
-
const f =
|
1830
|
+
const f = Yo(s.coordinates, d, p), _ = Sl(r.geometry(), l, d, p);
|
1831
1831
|
if (!xs(l, d)) return !1;
|
1832
1832
|
for (const x of _) if (!Vn(x, f)) return !1;
|
1833
1833
|
}
|
@@ -1841,7 +1841,7 @@ var cp = { exports: {} };
|
|
1841
1841
|
if (e.geometryType() === "LineString") return function(r, s) {
|
1842
1842
|
const l = [1 / 0, 1 / 0, -1 / 0, -1 / 0], d = [1 / 0, 1 / 0, -1 / 0, -1 / 0], p = r.canonicalID();
|
1843
1843
|
if (s.type === "Polygon") {
|
1844
|
-
const f =
|
1844
|
+
const f = Yo(s.coordinates, d, p), _ = Tl(r.geometry(), l, d, p);
|
1845
1845
|
if (!xs(l, d)) return !1;
|
1846
1846
|
for (const x of _) if (!xl(x, f)) return !1;
|
1847
1847
|
}
|
@@ -1943,7 +1943,7 @@ var cp = { exports: {} };
|
|
1943
1943
|
return e;
|
1944
1944
|
}
|
1945
1945
|
const Al = 1 / 298.257223563, Cl = Al * (2 - Al), kl = Math.PI / 180;
|
1946
|
-
class
|
1946
|
+
class Qo {
|
1947
1947
|
constructor(e) {
|
1948
1948
|
const r = 6378.137 * kl * 1e3, s = Math.cos(e * kl), l = 1 / (1 - Cl * (1 - s * s)), d = Math.sqrt(l);
|
1949
1949
|
this.kx = r * d * s, this.ky = r * d * l * (1 - Cl);
|
@@ -1989,13 +1989,13 @@ var cp = { exports: {} };
|
|
1989
1989
|
const s = Math.floor(r / 2) - 1;
|
1990
1990
|
return [[i[0], i[0] + s], [i[0] + s + 1, i[1]]];
|
1991
1991
|
}
|
1992
|
-
function
|
1992
|
+
function ea(i, e) {
|
1993
1993
|
if (!Dr(e, i.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
1994
1994
|
const r = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
1995
1995
|
for (let s = e[0]; s <= e[1]; ++s) ut(r, i[s]);
|
1996
1996
|
return r;
|
1997
1997
|
}
|
1998
|
-
function
|
1998
|
+
function ta(i) {
|
1999
1999
|
const e = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
2000
2000
|
for (const r of i) for (const s of r) ut(e, s);
|
2001
2001
|
return e;
|
@@ -2003,7 +2003,7 @@ var cp = { exports: {} };
|
|
2003
2003
|
function Ml(i) {
|
2004
2004
|
return i[0] !== -1 / 0 && i[1] !== -1 / 0 && i[2] !== 1 / 0 && i[3] !== 1 / 0;
|
2005
2005
|
}
|
2006
|
-
function
|
2006
|
+
function ia(i, e, r) {
|
2007
2007
|
if (!Ml(i) || !Ml(e)) return NaN;
|
2008
2008
|
let s = 0, l = 0;
|
2009
2009
|
return i[2] < e[0] && (s = e[0] - i[2]), i[0] > e[2] && (s = i[0] - e[2]), i[1] > e[3] && (l = i[1] - e[3]), i[3] < e[1] && (l = e[1] - i[3]), r.distance([0, 0], [s, l]);
|
@@ -2012,7 +2012,7 @@ var cp = { exports: {} };
|
|
2012
2012
|
const s = r.pointOnLine(e, i);
|
2013
2013
|
return r.distance(i, s.point);
|
2014
2014
|
}
|
2015
|
-
function
|
2015
|
+
function ra(i, e, r, s, l) {
|
2016
2016
|
const d = Math.min(kt(i, [r, s], l), kt(e, [r, s], l)), p = Math.min(kt(r, [i, e], l), kt(s, [i, e], l));
|
2017
2017
|
return Math.min(d, p);
|
2018
2018
|
}
|
@@ -2024,12 +2024,12 @@ var cp = { exports: {} };
|
|
2024
2024
|
for (let x = s[0]; x < s[1]; ++x) {
|
2025
2025
|
const w = r[x], I = r[x + 1];
|
2026
2026
|
if (ro(f, _, w, I)) return 0;
|
2027
|
-
d = Math.min(d,
|
2027
|
+
d = Math.min(d, ra(f, _, w, I, l));
|
2028
2028
|
}
|
2029
2029
|
}
|
2030
2030
|
return d;
|
2031
2031
|
}
|
2032
|
-
function
|
2032
|
+
function na(i, e, r, s, l) {
|
2033
2033
|
if (!Dr(e, i.length) || !Dr(s, r.length)) return NaN;
|
2034
2034
|
let d = 1 / 0;
|
2035
2035
|
for (let p = e[0]; p <= e[1]; ++p) for (let f = s[0]; f <= s[1]; ++f) if (d = Math.min(d, l.distance(i[p], r[f])), d === 0) return d;
|
@@ -2055,7 +2055,7 @@ var cp = { exports: {} };
|
|
2055
2055
|
for (const _ of r) for (let x = 0, w = _.length, I = w - 1; x < w; I = x++) {
|
2056
2056
|
const k = _[I], D = _[x];
|
2057
2057
|
if (ro(p, f, k, D)) return 0;
|
2058
|
-
l = Math.min(l,
|
2058
|
+
l = Math.min(l, ra(p, f, k, D, s));
|
2059
2059
|
}
|
2060
2060
|
}
|
2061
2061
|
return l;
|
@@ -2065,8 +2065,8 @@ var cp = { exports: {} };
|
|
2065
2065
|
return !1;
|
2066
2066
|
}
|
2067
2067
|
function zl(i, e, r, s = 1 / 0) {
|
2068
|
-
const l =
|
2069
|
-
if (s !== 1 / 0 &&
|
2068
|
+
const l = ta(i), d = ta(e);
|
2069
|
+
if (s !== 1 / 0 && ia(l, d, r) >= s) return s;
|
2070
2070
|
if (xs(l, d)) {
|
2071
2071
|
if (ws(i, e)) return 0;
|
2072
2072
|
} else if (ws(e, i)) return 0;
|
@@ -2076,25 +2076,25 @@ var cp = { exports: {} };
|
|
2076
2076
|
for (const D of e) for (let R = 0, F = D.length, $ = F - 1; R < F; $ = R++) {
|
2077
2077
|
const W = D[$], se = D[R];
|
2078
2078
|
if (ro(I, k, W, se)) return 0;
|
2079
|
-
p = Math.min(p,
|
2079
|
+
p = Math.min(p, ra(I, k, W, se, r));
|
2080
2080
|
}
|
2081
2081
|
}
|
2082
2082
|
return p;
|
2083
2083
|
}
|
2084
|
-
function
|
2084
|
+
function sa(i, e, r, s, l, d) {
|
2085
2085
|
if (!d) return;
|
2086
|
-
const p =
|
2086
|
+
const p = ia(ea(s, d), l, r);
|
2087
2087
|
p < e && i.push([p, d, [0, 0]]);
|
2088
2088
|
}
|
2089
2089
|
function oo(i, e, r, s, l, d, p) {
|
2090
2090
|
if (!d || !p) return;
|
2091
|
-
const f =
|
2091
|
+
const f = ia(ea(s, d), ea(l, p), r);
|
2092
2092
|
f < e && i.push([f, d, p]);
|
2093
2093
|
}
|
2094
2094
|
function ao(i, e, r, s, l = 1 / 0) {
|
2095
2095
|
let d = Math.min(s.distance(i[0], r[0][0]), l);
|
2096
2096
|
if (d === 0) return d;
|
2097
|
-
const p = new Il([[0, [0, i.length - 1], [0, 0]]], El), f =
|
2097
|
+
const p = new Il([[0, [0, i.length - 1], [0, 0]]], El), f = ta(r);
|
2098
2098
|
for (; p.length > 0; ) {
|
2099
2099
|
const _ = p.pop();
|
2100
2100
|
if (_[0] >= d) continue;
|
@@ -2111,7 +2111,7 @@ var cp = { exports: {} };
|
|
2111
2111
|
}
|
2112
2112
|
} else {
|
2113
2113
|
const I = bs(x, e);
|
2114
|
-
|
2114
|
+
sa(p, d, s, i, f, I[0]), sa(p, d, s, i, f, I[1]);
|
2115
2115
|
}
|
2116
2116
|
}
|
2117
2117
|
return d;
|
@@ -2134,7 +2134,7 @@ var cp = { exports: {} };
|
|
2134
2134
|
} else if (!e && s) {
|
2135
2135
|
const R = r.slice(w[0], w[1] + 1);
|
2136
2136
|
for (let F = x[0]; F <= x[1]; ++F) if (D = kt(i[F], R, l), p = Math.min(p, D), p === 0) return p;
|
2137
|
-
} else D =
|
2137
|
+
} else D = na(i, x, r, w, l), p = Math.min(p, D);
|
2138
2138
|
} else {
|
2139
2139
|
const D = bs(x, e), R = bs(w, s);
|
2140
2140
|
oo(f, p, l, i, r, D[0], R[0]), oo(f, p, l, i, r, D[0], R[1]), oo(f, p, l, i, r, D[1], R[0]), oo(f, p, l, i, r, D[1], R[1]);
|
@@ -2142,7 +2142,7 @@ var cp = { exports: {} };
|
|
2142
2142
|
}
|
2143
2143
|
return p;
|
2144
2144
|
}
|
2145
|
-
function
|
2145
|
+
function oa(i) {
|
2146
2146
|
return i.type === "MultiPolygon" ? i.coordinates.map((e) => ({ type: "Polygon", coordinates: e })) : i.type === "MultiLineString" ? i.coordinates.map((e) => ({ type: "LineString", coordinates: e })) : i.type === "MultiPoint" ? i.coordinates.map((e) => ({ type: "Point", coordinates: e })) : [i];
|
2147
2147
|
}
|
2148
2148
|
class Yr {
|
@@ -2153,9 +2153,9 @@ var cp = { exports: {} };
|
|
2153
2153
|
if (e.length !== 2) return r.error(`'distance' expression requires exactly one argument, but found ${e.length - 1} instead.`);
|
2154
2154
|
if (ds(e[1])) {
|
2155
2155
|
const s = e[1];
|
2156
|
-
if (s.type === "FeatureCollection") return new Yr(s, s.features.map((l) =>
|
2157
|
-
if (s.type === "Feature") return new Yr(s,
|
2158
|
-
if ("type" in s && "coordinates" in s) return new Yr(s,
|
2156
|
+
if (s.type === "FeatureCollection") return new Yr(s, s.features.map((l) => oa(l.geometry)).flat());
|
2157
|
+
if (s.type === "Feature") return new Yr(s, oa(s.geometry));
|
2158
|
+
if ("type" in s && "coordinates" in s) return new Yr(s, oa(s));
|
2159
2159
|
}
|
2160
2160
|
return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.");
|
2161
2161
|
}
|
@@ -2164,7 +2164,7 @@ var cp = { exports: {} };
|
|
2164
2164
|
if (e.geometryType() === "Point") return function(r, s) {
|
2165
2165
|
const l = r.geometry(), d = l.flat().map((_) => On([_.x, _.y], r.canonical));
|
2166
2166
|
if (l.length === 0) return NaN;
|
2167
|
-
const p = new
|
2167
|
+
const p = new Qo(d[0][1]);
|
2168
2168
|
let f = 1 / 0;
|
2169
2169
|
for (const _ of s) {
|
2170
2170
|
switch (_.type) {
|
@@ -2184,7 +2184,7 @@ var cp = { exports: {} };
|
|
2184
2184
|
if (e.geometryType() === "LineString") return function(r, s) {
|
2185
2185
|
const l = r.geometry(), d = l.flat().map((_) => On([_.x, _.y], r.canonical));
|
2186
2186
|
if (l.length === 0) return NaN;
|
2187
|
-
const p = new
|
2187
|
+
const p = new Qo(d[0][1]);
|
2188
2188
|
let f = 1 / 0;
|
2189
2189
|
for (const _ of s) {
|
2190
2190
|
switch (_.type) {
|
@@ -2204,7 +2204,7 @@ var cp = { exports: {} };
|
|
2204
2204
|
if (e.geometryType() === "Polygon") return function(r, s) {
|
2205
2205
|
const l = r.geometry();
|
2206
2206
|
if (l.length === 0 || l[0].length === 0) return NaN;
|
2207
|
-
const d = no(l, 0).map((_) => _.map((x) => x.map((w) => On([w.x, w.y], r.canonical)))), p = new
|
2207
|
+
const d = no(l, 0).map((_) => _.map((x) => x.map((w) => On([w.x, w.y], r.canonical)))), p = new Qo(d[0][0][0][1]);
|
2208
2208
|
let f = 1 / 0;
|
2209
2209
|
for (const _ of s) for (const x of d) {
|
2210
2210
|
switch (_.type) {
|
@@ -2230,7 +2230,7 @@ var cp = { exports: {} };
|
|
2230
2230
|
return !0;
|
2231
2231
|
}
|
2232
2232
|
}
|
2233
|
-
const yn = { "==": gl, "!=": Lc, ">": _l, "<": Rc, ">=": Bc, "<=": yl, array: Xi, at:
|
2233
|
+
const yn = { "==": gl, "!=": Lc, ">": _l, "<": Rc, ">=": Bc, "<=": yl, array: Xi, at: Ho, boolean: Xi, case: Ys, coalesce: eo, collator: to, format: io, image: Xo, in: ms, "index-of": Js, interpolate: qi, "interpolate-hcl": qi, "interpolate-lab": qi, length: Jo, let: xt, literal: mn, match: Ks, number: Xi, "number-format": Wo, object: Xi, slice: Qs, step: Fn, string: Xi, "to-boolean": Xr, "to-color": Xr, "to-number": Xr, "to-string": Xr, var: Xs, within: _n, distance: Yr };
|
2234
2234
|
class Zi {
|
2235
2235
|
constructor(e, r, s, l) {
|
2236
2236
|
this.name = e, this.type = r, this._evaluate = s, this.args = l;
|
@@ -2290,7 +2290,7 @@ var cp = { exports: {} };
|
|
2290
2290
|
for (const s in r) e[s] = Zi;
|
2291
2291
|
}
|
2292
2292
|
}
|
2293
|
-
function
|
2293
|
+
function aa(i, [e, r, s, l]) {
|
2294
2294
|
e = e.evaluate(i), r = r.evaluate(i), s = s.evaluate(i);
|
2295
2295
|
const d = l ? l.evaluate(i) : 1, p = Hs(e, r, s, d);
|
2296
2296
|
if (p) throw new Kt(p);
|
@@ -2299,7 +2299,7 @@ var cp = { exports: {} };
|
|
2299
2299
|
function co(i, e) {
|
2300
2300
|
return i in e;
|
2301
2301
|
}
|
2302
|
-
function
|
2302
|
+
function la(i, e) {
|
2303
2303
|
const r = e[i];
|
2304
2304
|
return r === void 0 ? null : r;
|
2305
2305
|
}
|
@@ -2345,7 +2345,7 @@ var cp = { exports: {} };
|
|
2345
2345
|
function vn(i) {
|
2346
2346
|
return i["property-type"] === "data-driven" || i["property-type"] === "cross-faded-data-driven";
|
2347
2347
|
}
|
2348
|
-
function
|
2348
|
+
function ca(i) {
|
2349
2349
|
return !!i.expression && i.expression.parameters.indexOf("zoom") > -1;
|
2350
2350
|
}
|
2351
2351
|
function Un(i) {
|
@@ -2369,7 +2369,7 @@ var cp = { exports: {} };
|
|
2369
2369
|
if (i.colorSpace && (p = i.colorSpace) !== "rgb" && p !== "hcl" && p !== "lab") throw new Error(`Unknown color space: "${i.colorSpace}"`);
|
2370
2370
|
var p;
|
2371
2371
|
let f, _, x;
|
2372
|
-
if (d === "exponential") f =
|
2372
|
+
if (d === "exponential") f = ha;
|
2373
2373
|
else if (d === "interval") f = mo;
|
2374
2374
|
else if (d === "categorical") {
|
2375
2375
|
f = fo, _ = /* @__PURE__ */ Object.create(null);
|
@@ -2377,7 +2377,7 @@ var cp = { exports: {} };
|
|
2377
2377
|
x = typeof i.stops[0][0];
|
2378
2378
|
} else {
|
2379
2379
|
if (d !== "identity") throw new Error(`Unknown function type "${d}"`);
|
2380
|
-
f =
|
2380
|
+
f = ua;
|
2381
2381
|
}
|
2382
2382
|
if (s) {
|
2383
2383
|
const w = {}, I = [];
|
@@ -2388,7 +2388,7 @@ var cp = { exports: {} };
|
|
2388
2388
|
const k = [];
|
2389
2389
|
for (const R of I) k.push([w[R].zoom, Rl(w[R], e)]);
|
2390
2390
|
const D = { name: "linear" };
|
2391
|
-
return { kind: "composite", interpolationType: D, interpolationFactor: qi.interpolationFactor.bind(void 0, D), zoomStops: k.map((R) => R[0]), evaluate: ({ zoom: R }, F) =>
|
2391
|
+
return { kind: "composite", interpolationType: D, interpolationFactor: qi.interpolationFactor.bind(void 0, D), zoomStops: k.map((R) => R[0]), evaluate: ({ zoom: R }, F) => ha({ stops: k, base: i.base }, e, R).evaluate(R, F) };
|
2392
2392
|
}
|
2393
2393
|
if (l) {
|
2394
2394
|
const w = d === "exponential" ? { name: "exponential", base: i.base !== void 0 ? i.base : 1 } : null;
|
@@ -2413,7 +2413,7 @@ var cp = { exports: {} };
|
|
2413
2413
|
const l = gs(i.stops.map((d) => d[0]), r);
|
2414
2414
|
return i.stops[l][1];
|
2415
2415
|
}
|
2416
|
-
function
|
2416
|
+
function ha(i, e, r) {
|
2417
2417
|
const s = i.base !== void 0 ? i.base : 1;
|
2418
2418
|
if (mt(r) !== "number") return bn(i.default, e.default);
|
2419
2419
|
const l = i.stops.length;
|
@@ -2428,7 +2428,7 @@ var cp = { exports: {} };
|
|
2428
2428
|
if (I !== void 0 && k !== void 0) return x(I, k, p, i.colorSpace);
|
2429
2429
|
} } : x(f, _, p, i.colorSpace);
|
2430
2430
|
}
|
2431
|
-
function
|
2431
|
+
function ua(i, e, r) {
|
2432
2432
|
switch (e.type) {
|
2433
2433
|
case "color":
|
2434
2434
|
r = bt.parse(r);
|
@@ -2452,7 +2452,7 @@ var cp = { exports: {} };
|
|
2452
2452
|
}], typeof: [ot, [it], (i, [e]) => M(ei(e.evaluate(i)))], "to-rgba": [z(Ae, 4), [Mi], (i, [e]) => {
|
2453
2453
|
const [r, s, l, d] = e.evaluate(i).rgb;
|
2454
2454
|
return [255 * r, 255 * s, 255 * l, d];
|
2455
|
-
}], rgb: [Mi, [Ae, Ae, Ae],
|
2455
|
+
}], rgb: [Mi, [Ae, Ae, Ae], aa], rgba: [Mi, [Ae, Ae, Ae, Ae], aa], has: { type: Je, overloads: [[[ot], (i, [e]) => co(e.evaluate(i), i.properties())], [[ot, ir], (i, [e, r]) => co(e.evaluate(i), r.evaluate(i))]] }, get: { type: it, overloads: [[[ot], (i, [e]) => la(e.evaluate(i), i.properties())], [[ot, ir], (i, [e, r]) => la(e.evaluate(i), r.evaluate(i))]] }, "feature-state": [it, [ot], (i, [e]) => la(e.evaluate(i), i.featureState || {})], properties: [ir, [], (i) => i.properties()], "geometry-type": [ot, [], (i) => i.geometryType()], id: [it, [], (i) => i.id()], zoom: [Ae, [], (i) => i.globals.zoom], "heatmap-density": [Ae, [], (i) => i.globals.heatmapDensity || 0], "line-progress": [Ae, [], (i) => i.globals.lineProgress || 0], accumulated: [it, [], (i) => i.globals.accumulated === void 0 ? null : i.globals.accumulated], "+": [Ae, xn(Ae), (i, e) => {
|
2456
2456
|
let r = 0;
|
2457
2457
|
for (const s of e) r += s.evaluate(i);
|
2458
2458
|
return r;
|
@@ -2534,7 +2534,7 @@ var cp = { exports: {} };
|
|
2534
2534
|
}(e) : void 0), s = r.parse(i, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
2535
2535
|
return s ? Dl(new go(s, e)) : Nn(r.errors);
|
2536
2536
|
}
|
2537
|
-
class
|
2537
|
+
class da {
|
2538
2538
|
constructor(e, r) {
|
2539
2539
|
this.kind = e, this._styleExpression = r, this.isStateDependent = e !== "constant" && !Ss(r.expression);
|
2540
2540
|
}
|
@@ -2545,7 +2545,7 @@ var cp = { exports: {} };
|
|
2545
2545
|
return this._styleExpression.evaluate(e, r, s, l, d, p);
|
2546
2546
|
}
|
2547
2547
|
}
|
2548
|
-
class
|
2548
|
+
class pa {
|
2549
2549
|
constructor(e, r, s, l) {
|
2550
2550
|
this.kind = e, this.zoomStops = s, this._styleExpression = r, this.isStateDependent = e !== "camera" && !Ss(r.expression), this.interpolationType = l;
|
2551
2551
|
}
|
@@ -2565,9 +2565,9 @@ var cp = { exports: {} };
|
|
2565
2565
|
const s = r.value.expression, l = uo(s);
|
2566
2566
|
if (!l && !vn(e)) return Nn([new Ii("", "data expressions not supported")]);
|
2567
2567
|
const d = po(s, ["zoom"]);
|
2568
|
-
if (!d && !
|
2568
|
+
if (!d && !ca(e)) return Nn([new Ii("", "zoom expressions not supported")]);
|
2569
2569
|
const p = yo(s);
|
2570
|
-
return p || d ? p instanceof Ii ? Nn([p]) : p instanceof qi && !Un(e) ? Nn([new Ii("", '"interpolate" expressions cannot be used with this property')]) : Dl(p ? new
|
2570
|
+
return p || d ? p instanceof Ii ? Nn([p]) : p instanceof qi && !Un(e) ? Nn([new Ii("", '"interpolate" expressions cannot be used with this property')]) : Dl(p ? new pa(l ? "camera" : "composite", r.value, p.labels, p instanceof qi ? p.interpolation : void 0) : new da(l ? "constant" : "source", r.value)) : Nn([new Ii("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
|
2571
2571
|
}
|
2572
2572
|
class _o {
|
2573
2573
|
constructor(e, r) {
|
@@ -2624,24 +2624,24 @@ var cp = { exports: {} };
|
|
2624
2624
|
jn(i) || (i = vo(i));
|
2625
2625
|
const e = wn(i, xo);
|
2626
2626
|
if (e.result === "error") throw new Error(e.value.map((r) => `${r.key}: ${r.message}`).join(", "));
|
2627
|
-
return { filter: (r, s, l) => e.value.evaluate(r, s, {}, l), needGeometry:
|
2627
|
+
return { filter: (r, s, l) => e.value.evaluate(r, s, {}, l), needGeometry: fa(i) };
|
2628
2628
|
}
|
2629
2629
|
function Ps(i, e) {
|
2630
2630
|
return i < e ? -1 : i > e ? 1 : 0;
|
2631
2631
|
}
|
2632
|
-
function
|
2632
|
+
function fa(i) {
|
2633
2633
|
if (!Array.isArray(i)) return !1;
|
2634
2634
|
if (i[0] === "within" || i[0] === "distance") return !0;
|
2635
|
-
for (let e = 1; e < i.length; e++) if (
|
2635
|
+
for (let e = 1; e < i.length; e++) if (fa(i[e])) return !0;
|
2636
2636
|
return !1;
|
2637
2637
|
}
|
2638
2638
|
function vo(i) {
|
2639
2639
|
if (!i) return !0;
|
2640
2640
|
const e = i[0];
|
2641
|
-
return i.length <= 1 ? e !== "any" : e === "==" ?
|
2641
|
+
return i.length <= 1 ? e !== "any" : e === "==" ? ma(i[1], i[2], "==") : e === "!=" ? qn(ma(i[1], i[2], "==")) : e === "<" || e === ">" || e === "<=" || e === ">=" ? ma(i[1], i[2], e) : e === "any" ? (r = i.slice(1), ["any"].concat(r.map(vo))) : e === "all" ? ["all"].concat(i.slice(1).map(vo)) : e === "none" ? ["all"].concat(i.slice(1).map(vo).map(qn)) : e === "in" ? $n(i[1], i.slice(2)) : e === "!in" ? qn($n(i[1], i.slice(2))) : e === "has" ? ga(i[1]) : e !== "!has" || qn(ga(i[1]));
|
2642
2642
|
var r;
|
2643
2643
|
}
|
2644
|
-
function
|
2644
|
+
function ma(i, e, r) {
|
2645
2645
|
switch (i) {
|
2646
2646
|
case "$type":
|
2647
2647
|
return [`filter-type-${r}`, e];
|
@@ -2662,7 +2662,7 @@ var cp = { exports: {} };
|
|
2662
2662
|
return e.length > 200 && !e.some((r) => typeof r != typeof e[0]) ? ["filter-in-large", i, ["literal", e.sort(Ps)]] : ["filter-in-small", i, ["literal", e]];
|
2663
2663
|
}
|
2664
2664
|
}
|
2665
|
-
function
|
2665
|
+
function ga(i) {
|
2666
2666
|
switch (i) {
|
2667
2667
|
case "$type":
|
2668
2668
|
return !0;
|
@@ -2675,22 +2675,22 @@ var cp = { exports: {} };
|
|
2675
2675
|
function qn(i) {
|
2676
2676
|
return ["!", i];
|
2677
2677
|
}
|
2678
|
-
function
|
2678
|
+
function _a(i) {
|
2679
2679
|
const e = typeof i;
|
2680
2680
|
if (e === "number" || e === "boolean" || e === "string" || i == null) return JSON.stringify(i);
|
2681
2681
|
if (Array.isArray(i)) {
|
2682
2682
|
let l = "[";
|
2683
|
-
for (const d of i) l += `${
|
2683
|
+
for (const d of i) l += `${_a(d)},`;
|
2684
2684
|
return `${l}]`;
|
2685
2685
|
}
|
2686
2686
|
const r = Object.keys(i).sort();
|
2687
2687
|
let s = "{";
|
2688
|
-
for (let l = 0; l < r.length; l++) s += `${JSON.stringify(r[l])}:${
|
2688
|
+
for (let l = 0; l < r.length; l++) s += `${JSON.stringify(r[l])}:${_a(i[r[l]])},`;
|
2689
2689
|
return `${s}}`;
|
2690
2690
|
}
|
2691
|
-
function
|
2691
|
+
function ya(i) {
|
2692
2692
|
let e = "";
|
2693
|
-
for (const r of fn) e += `/${
|
2693
|
+
for (const r of fn) e += `/${_a(i[r])}`;
|
2694
2694
|
return e;
|
2695
2695
|
}
|
2696
2696
|
function Fl(i) {
|
@@ -2748,7 +2748,7 @@ var cp = { exports: {} };
|
|
2748
2748
|
let l = mt(r);
|
2749
2749
|
return l === "number" && r != r && (l = "NaN"), l !== "number" ? [new Te(e, r, `number expected, ${l} found`)] : "minimum" in s && r < s.minimum ? [new Te(e, r, `${r} is less than the minimum value ${s.minimum}`)] : "maximum" in s && r > s.maximum ? [new Te(e, r, `${r} is greater than the maximum value ${s.maximum}`)] : [];
|
2750
2750
|
}
|
2751
|
-
function
|
2751
|
+
function xa(i) {
|
2752
2752
|
const e = i.valueSpec, r = Lt(i.value.type);
|
2753
2753
|
let s, l, d, p = {};
|
2754
2754
|
const f = r !== "categorical" && i.value.property === void 0, _ = !f, x = mt(i.value.stops) === "array" && mt(i.value.stops[0]) === "array" && mt(i.value.stops[0][0]) === "object", w = zi({ key: i.key, value: i.value, valueSpec: i.styleSpec.function, validateSpec: i.validateSpec, style: i.style, styleSpec: i.styleSpec, objectElementValidators: { stops: function(D) {
|
@@ -2759,7 +2759,7 @@ var cp = { exports: {} };
|
|
2759
2759
|
}, default: function(D) {
|
2760
2760
|
return D.validateSpec({ key: D.key, value: D.value, valueSpec: e, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec });
|
2761
2761
|
} } });
|
2762
|
-
return r === "identity" && f && w.push(new Te(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || w.push(new Te(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !Un(i.valueSpec) && w.push(new Te(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (_ && !vn(i.valueSpec) ? w.push(new Te(i.key, i.value, "property functions not supported")) : f && !
|
2762
|
+
return r === "identity" && f && w.push(new Te(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || w.push(new Te(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !Un(i.valueSpec) && w.push(new Te(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (_ && !vn(i.valueSpec) ? w.push(new Te(i.key, i.value, "property functions not supported")) : f && !ca(i.valueSpec) && w.push(new Te(i.key, i.value, "zoom functions not supported"))), r !== "categorical" && !x || i.value.property !== void 0 || w.push(new Te(i.key, i.value, '"property" property is required')), w;
|
2763
2763
|
function I(D) {
|
2764
2764
|
let R = [];
|
2765
2765
|
const F = D.value, $ = D.key;
|
@@ -2838,7 +2838,7 @@ var cp = { exports: {} };
|
|
2838
2838
|
}
|
2839
2839
|
return d;
|
2840
2840
|
}
|
2841
|
-
function
|
2841
|
+
function va(i, e) {
|
2842
2842
|
const r = i.key, s = i.validateSpec, l = i.style, d = i.styleSpec, p = i.value, f = i.objectKey, _ = d[`${e}_${i.layerType}`];
|
2843
2843
|
if (!_) return [];
|
2844
2844
|
const x = f.match(/^(.*)-transition$/);
|
@@ -2851,13 +2851,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2851
2851
|
const k = [];
|
2852
2852
|
return i.layerType === "symbol" && (f === "text-field" && l && !l.glyphs && k.push(new Te(r, p, 'use of "text-field" requires a style "glyphs" property')), f === "text-font" && Ts(Sn(p)) && Lt(p.type) === "identity" && k.push(new Te(r, p, '"text-font" does not support identity functions'))), k.concat(s({ key: i.key, value: p, valueSpec: w, style: l, styleSpec: d, expressionContext: "property", propertyType: e, propertyKey: f }));
|
2853
2853
|
}
|
2854
|
-
function va(i) {
|
2855
|
-
return xa(i, "paint");
|
2856
|
-
}
|
2857
2854
|
function ba(i) {
|
2858
|
-
return
|
2855
|
+
return va(i, "paint");
|
2859
2856
|
}
|
2860
2857
|
function wa(i) {
|
2858
|
+
return va(i, "layout");
|
2859
|
+
}
|
2860
|
+
function Sa(i) {
|
2861
2861
|
let e = [];
|
2862
2862
|
const r = i.value, s = i.key, l = i.style, d = i.styleSpec;
|
2863
2863
|
r.type || r.ref || e.push(new Te(s, r, 'either "type" or "ref" is required'));
|
@@ -2881,13 +2881,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2881
2881
|
const _ = l.sources && l.sources[r.source], x = _ && Lt(_.type);
|
2882
2882
|
_ ? x === "vector" && p === "raster" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a raster source`)) : x !== "raster-dem" && p === "hillshade" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a raster-dem source`)) : x === "raster" && p !== "raster" ? e.push(new Te(s, r.source, `layer "${r.id}" requires a vector source`)) : x !== "vector" || r["source-layer"] ? x === "raster-dem" && p !== "hillshade" ? e.push(new Te(s, r.source, "raster-dem source can only be used with layer type 'hillshade'.")) : p !== "line" || !r.paint || !r.paint["line-gradient"] || x === "geojson" && _.lineMetrics || e.push(new Te(s, r, `layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new Te(s, r, `layer "${r.id}" must specify a "source-layer"`)) : e.push(new Te(s, r.source, `source "${r.source}" not found`));
|
2883
2883
|
} else e.push(new Te(s, r, 'missing required property "source"'));
|
2884
|
-
return e = e.concat(zi({ key: s, value: r, valueSpec: d.layer, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, objectElementValidators: { "*": () => [], type: () => i.validateSpec({ key: `${s}.type`, value: r.type, valueSpec: d.layer.type, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, object: r, objectKey: "type" }), filter: ks, layout: (_) => zi({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (x) =>
|
2884
|
+
return e = e.concat(zi({ key: s, value: r, valueSpec: d.layer, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, objectElementValidators: { "*": () => [], type: () => i.validateSpec({ key: `${s}.type`, value: r.type, valueSpec: d.layer.type, style: i.style, styleSpec: i.styleSpec, validateSpec: i.validateSpec, object: r, objectKey: "type" }), filter: ks, layout: (_) => zi({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (x) => wa(gr({ layerType: p }, x)) } }), paint: (_) => zi({ layer: r, key: _.key, value: _.value, style: _.style, styleSpec: _.styleSpec, validateSpec: _.validateSpec, objectElementValidators: { "*": (x) => ba(gr({ layerType: p }, x)) } }) } })), e;
|
2885
2885
|
}
|
2886
2886
|
function Lr(i) {
|
2887
2887
|
const e = i.value, r = i.key, s = mt(e);
|
2888
2888
|
return s !== "string" ? [new Te(r, e, `string expected, ${s} found`)] : [];
|
2889
2889
|
}
|
2890
|
-
const
|
2890
|
+
const Ta = { promoteId: function({ key: i, value: e }) {
|
2891
2891
|
if (mt(e) === "string") return Lr({ key: i, value: e });
|
2892
2892
|
{
|
2893
2893
|
const r = [];
|
@@ -2903,7 +2903,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2903
2903
|
switch (p) {
|
2904
2904
|
case "vector":
|
2905
2905
|
case "raster":
|
2906
|
-
return f = zi({ key: r, value: e, valueSpec: s[`source_${p.replace("-", "_")}`], style: i.style, styleSpec: s, objectElementValidators:
|
2906
|
+
return f = zi({ key: r, value: e, valueSpec: s[`source_${p.replace("-", "_")}`], style: i.style, styleSpec: s, objectElementValidators: Ta, validateSpec: d }), f;
|
2907
2907
|
case "raster-dem":
|
2908
2908
|
return f = function(_) {
|
2909
2909
|
var x;
|
@@ -2917,7 +2917,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2917
2917
|
return F;
|
2918
2918
|
}({ sourceName: r, value: e, style: i.style, styleSpec: s, validateSpec: d }), f;
|
2919
2919
|
case "geojson":
|
2920
|
-
if (f = zi({ key: r, value: e, valueSpec: s.source_geojson, style: l, styleSpec: s, validateSpec: d, objectElementValidators:
|
2920
|
+
if (f = zi({ key: r, value: e, valueSpec: s.source_geojson, style: l, styleSpec: s, validateSpec: d, objectElementValidators: Ta }), e.cluster) for (const _ in e.clusterProperties) {
|
2921
2921
|
const [x, w] = e.clusterProperties[_], I = typeof x == "string" ? [x, ["accumulated"], ["get", _]] : x;
|
2922
2922
|
f.push(...Tn({ key: `${r}.${_}.map`, value: w, validateSpec: d, expressionContext: "cluster-map" })), f.push(...Tn({ key: `${r}.${_}.reduce`, value: I, validateSpec: d, expressionContext: "cluster-reduce" }));
|
2923
2923
|
}
|
@@ -2932,7 +2932,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2932
2932
|
return Cs({ key: `${r}.type`, value: e.type, valueSpec: { values: ["vector", "raster", "raster-dem", "geojson", "video", "image"] }, style: l, validateSpec: d, styleSpec: s });
|
2933
2933
|
}
|
2934
2934
|
}
|
2935
|
-
function
|
2935
|
+
function Ia(i) {
|
2936
2936
|
const e = i.value, r = i.styleSpec, s = r.light, l = i.style;
|
2937
2937
|
let d = [];
|
2938
2938
|
const p = mt(e);
|
@@ -2952,7 +2952,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2952
2952
|
for (const f in e) p = p.concat(s[f] ? i.validateSpec({ key: f, value: e[f], valueSpec: s[f], style: l, styleSpec: r }) : [new Te(f, e[f], `unknown property "${f}"`)]);
|
2953
2953
|
return p;
|
2954
2954
|
}
|
2955
|
-
function
|
2955
|
+
function Pa(i) {
|
2956
2956
|
const e = i.value, r = i.styleSpec, s = r.terrain, l = i.style;
|
2957
2957
|
let d = [];
|
2958
2958
|
const p = mt(e);
|
@@ -2961,7 +2961,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2961
2961
|
for (const f in e) d = d.concat(s[f] ? i.validateSpec({ key: f, value: e[f], valueSpec: s[f], validateSpec: i.validateSpec, style: l, styleSpec: r }) : [new Te(f, e[f], `unknown property "${f}"`)]);
|
2962
2962
|
return d;
|
2963
2963
|
}
|
2964
|
-
function
|
2964
|
+
function Aa(i) {
|
2965
2965
|
let e = [];
|
2966
2966
|
const r = i.value, s = i.key;
|
2967
2967
|
if (Array.isArray(r)) {
|
@@ -2971,13 +2971,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2971
2971
|
}
|
2972
2972
|
return Lr({ key: s, value: r });
|
2973
2973
|
}
|
2974
|
-
const
|
2974
|
+
const Ca = { "*": () => [], array: bo, boolean: function(i) {
|
2975
2975
|
const e = i.value, r = i.key, s = mt(e);
|
2976
2976
|
return s !== "boolean" ? [new Te(r, e, `boolean expected, ${s} found`)] : [];
|
2977
2977
|
}, number: As, color: function(i) {
|
2978
2978
|
const e = i.key, r = i.value, s = mt(r);
|
2979
2979
|
return s !== "string" ? [new Te(e, r, `color expected, ${s} found`)] : bt.parse(String(r)) ? [] : [new Te(e, r, `color expected, "${r}" found`)];
|
2980
|
-
}, constants: Fl, enum: Cs, filter: ks, function:
|
2980
|
+
}, constants: Fl, enum: Cs, filter: ks, function: xa, layer: Sa, object: zi, source: Ol, light: Ia, sky: Vl, terrain: Pa, projection: function(i) {
|
2981
2981
|
const e = i.value, r = i.styleSpec, s = r.projection, l = i.style, d = mt(e);
|
2982
2982
|
if (e === void 0) return [];
|
2983
2983
|
if (d !== "object") return [new Te("projection", e, `object expected, ${d} found`)];
|
@@ -3004,10 +3004,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3004
3004
|
let d = [];
|
3005
3005
|
for (let p = 0; p < r.length; p += 2) d = d.concat(Cs({ key: `${e}[${p}]`, value: r[p], valueSpec: l.layout_symbol["text-anchor"] })), d = d.concat(bo({ key: `${e}[${p + 1}]`, value: r[p + 1], valueSpec: { length: 2, value: "number" }, validateSpec: i.validateSpec, style: i.style, styleSpec: l }));
|
3006
3006
|
return d;
|
3007
|
-
}, sprite:
|
3007
|
+
}, sprite: Aa };
|
3008
3008
|
function Ms(i) {
|
3009
3009
|
const e = i.value, r = i.valueSpec, s = i.styleSpec;
|
3010
|
-
return i.validateSpec = Ms, r.expression && Ts(Lt(e)) ?
|
3010
|
+
return i.validateSpec = Ms, r.expression && Ts(Lt(e)) ? xa(i) : r.expression && Is(Sn(e)) ? Tn(i) : r.type && Ca[r.type] ? Ca[r.type](i) : zi(gr({}, i, { valueSpec: r.type ? s[r.type] : r }));
|
3011
3011
|
}
|
3012
3012
|
function Nl(i) {
|
3013
3013
|
const e = i.value, r = i.key, s = Lr(i);
|
@@ -3015,24 +3015,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3015
3015
|
}
|
3016
3016
|
function Ji(i, e = he) {
|
3017
3017
|
let r = [];
|
3018
|
-
return r = r.concat(Ms({ key: "", value: i, valueSpec: e.$root, styleSpec: e, style: i, validateSpec: Ms, objectElementValidators: { glyphs: Nl, "*": () => [] } })), i.constants && (r = r.concat(Fl({ key: "constants", value: i.constants, style: i, styleSpec: e, validateSpec: Ms }))),
|
3018
|
+
return r = r.concat(Ms({ key: "", value: i, valueSpec: e.$root, styleSpec: e, style: i, validateSpec: Ms, objectElementValidators: { glyphs: Nl, "*": () => [] } })), i.constants && (r = r.concat(Fl({ key: "constants", value: i.constants, style: i, styleSpec: e, validateSpec: Ms }))), ka(r);
|
3019
3019
|
}
|
3020
3020
|
function rr(i) {
|
3021
3021
|
return function(e) {
|
3022
3022
|
return i({ ...e, validateSpec: Ms });
|
3023
3023
|
};
|
3024
3024
|
}
|
3025
|
-
function
|
3025
|
+
function ka(i) {
|
3026
3026
|
return [].concat(i).sort((e, r) => e.line - r.line);
|
3027
3027
|
}
|
3028
3028
|
function nr(i) {
|
3029
3029
|
return function(...e) {
|
3030
|
-
return
|
3030
|
+
return ka(i.apply(this, e));
|
3031
3031
|
};
|
3032
3032
|
}
|
3033
|
-
Ji.source = nr(rr(Ol)), Ji.sprite = nr(rr(
|
3034
|
-
const Rr = Ji, Gc = Rr.light,
|
3035
|
-
function
|
3033
|
+
Ji.source = nr(rr(Ol)), Ji.sprite = nr(rr(Aa)), Ji.glyphs = nr(rr(Nl)), Ji.light = nr(rr(Ia)), Ji.sky = nr(rr(Vl)), Ji.terrain = nr(rr(Pa)), Ji.layer = nr(rr(Sa)), Ji.filter = nr(rr(ks)), Ji.paintProperty = nr(rr(ba)), Ji.layoutProperty = nr(rr(wa));
|
3034
|
+
const Rr = Ji, Gc = Rr.light, Ea = Rr.sky, Hc = Rr.paintProperty, Wc = Rr.layoutProperty;
|
3035
|
+
function Ma(i, e) {
|
3036
3036
|
let r = !1;
|
3037
3037
|
if (e && e.length) for (const s of e) i.fire(new Zr(new Error(s.message))), r = !0;
|
3038
3038
|
return r;
|
@@ -3129,18 +3129,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3129
3129
|
if (br[i]) throw new Error(`${i} is already registered.`);
|
3130
3130
|
Object.defineProperty(e, "_classRegistryKey", { value: i, writeable: !1 }), br[i] = { klass: e, omit: r.omit || [], shallow: r.shallow || [] };
|
3131
3131
|
}
|
3132
|
-
Fe("Object", Object), Fe("TransferableGridIndex", Zn), Fe("Color", bt), Fe("Error", Error), Fe("AJAXError", Vi), Fe("ResolvedImage", pi), Fe("StylePropertyFunction", _o), Fe("StyleExpression", go, { omit: ["_evaluator"] }), Fe("ZoomDependentExpression",
|
3132
|
+
Fe("Object", Object), Fe("TransferableGridIndex", Zn), Fe("Color", bt), Fe("Error", Error), Fe("AJAXError", Vi), Fe("ResolvedImage", pi), Fe("StylePropertyFunction", _o), Fe("StyleExpression", go, { omit: ["_evaluator"] }), Fe("ZoomDependentExpression", pa), Fe("ZoomConstantExpression", da), Fe("CompoundExpression", Zi, { omit: ["_evaluate"] });
|
3133
3133
|
for (const i in yn) yn[i]._classRegistryKey || Fe(`Expression_${i}`, yn[i]);
|
3134
3134
|
function Ul(i) {
|
3135
3135
|
return i && typeof ArrayBuffer < "u" && (i instanceof ArrayBuffer || i.constructor && i.constructor.name === "ArrayBuffer");
|
3136
3136
|
}
|
3137
|
-
function
|
3137
|
+
function za(i) {
|
3138
3138
|
return i.$name || i.constructor._classRegistryKey;
|
3139
3139
|
}
|
3140
3140
|
function jl(i) {
|
3141
3141
|
return !function(e) {
|
3142
3142
|
if (e === null || typeof e != "object") return !1;
|
3143
|
-
const r =
|
3143
|
+
const r = za(e);
|
3144
3144
|
return !(!r || r === "Object");
|
3145
3145
|
}(i) && (i == null || typeof i == "boolean" || typeof i == "number" || typeof i == "string" || i instanceof Boolean || i instanceof Number || i instanceof String || i instanceof Date || i instanceof RegExp || i instanceof Blob || i instanceof Error || Ul(i) || fr(i) || ArrayBuffer.isView(i) || i instanceof ImageData);
|
3146
3146
|
}
|
@@ -3152,7 +3152,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3152
3152
|
return d;
|
3153
3153
|
}
|
3154
3154
|
if (typeof i != "object") throw new Error("can't serialize object of type " + typeof i);
|
3155
|
-
const r =
|
3155
|
+
const r = za(i);
|
3156
3156
|
if (!r) throw new Error(`can't serialize object of unregistered class ${i.constructor.name}`);
|
3157
3157
|
if (!br[r]) throw new Error(`${r} is not registered.`);
|
3158
3158
|
const { klass: s } = br[r], l = s.serialize ? s.serialize(i, e) : {};
|
@@ -3173,7 +3173,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3173
3173
|
if (jl(i)) return i;
|
3174
3174
|
if (Array.isArray(i)) return i.map(wr);
|
3175
3175
|
if (typeof i != "object") throw new Error("can't deserialize object of type " + typeof i);
|
3176
|
-
const e =
|
3176
|
+
const e = za(i) || "Object";
|
3177
3177
|
if (!br[e]) throw new Error(`can't deserialize unregistered class ${e}`);
|
3178
3178
|
const { klass: r } = br[e];
|
3179
3179
|
if (!r) throw new Error(`can't deserialize unregistered class ${e}`);
|
@@ -3196,8 +3196,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3196
3196
|
}
|
3197
3197
|
}
|
3198
3198
|
const ze = { "Latin-1 Supplement": (i) => i >= 128 && i <= 255, Arabic: (i) => i >= 1536 && i <= 1791, "Arabic Supplement": (i) => i >= 1872 && i <= 1919, "Arabic Extended-A": (i) => i >= 2208 && i <= 2303, "Hangul Jamo": (i) => i >= 4352 && i <= 4607, "Unified Canadian Aboriginal Syllabics": (i) => i >= 5120 && i <= 5759, Khmer: (i) => i >= 6016 && i <= 6143, "Unified Canadian Aboriginal Syllabics Extended": (i) => i >= 6320 && i <= 6399, "General Punctuation": (i) => i >= 8192 && i <= 8303, "Letterlike Symbols": (i) => i >= 8448 && i <= 8527, "Number Forms": (i) => i >= 8528 && i <= 8591, "Miscellaneous Technical": (i) => i >= 8960 && i <= 9215, "Control Pictures": (i) => i >= 9216 && i <= 9279, "Optical Character Recognition": (i) => i >= 9280 && i <= 9311, "Enclosed Alphanumerics": (i) => i >= 9312 && i <= 9471, "Geometric Shapes": (i) => i >= 9632 && i <= 9727, "Miscellaneous Symbols": (i) => i >= 9728 && i <= 9983, "Miscellaneous Symbols and Arrows": (i) => i >= 11008 && i <= 11263, "CJK Radicals Supplement": (i) => i >= 11904 && i <= 12031, "Kangxi Radicals": (i) => i >= 12032 && i <= 12255, "Ideographic Description Characters": (i) => i >= 12272 && i <= 12287, "CJK Symbols and Punctuation": (i) => i >= 12288 && i <= 12351, Hiragana: (i) => i >= 12352 && i <= 12447, Katakana: (i) => i >= 12448 && i <= 12543, Bopomofo: (i) => i >= 12544 && i <= 12591, "Hangul Compatibility Jamo": (i) => i >= 12592 && i <= 12687, Kanbun: (i) => i >= 12688 && i <= 12703, "Bopomofo Extended": (i) => i >= 12704 && i <= 12735, "CJK Strokes": (i) => i >= 12736 && i <= 12783, "Katakana Phonetic Extensions": (i) => i >= 12784 && i <= 12799, "Enclosed CJK Letters and Months": (i) => i >= 12800 && i <= 13055, "CJK Compatibility": (i) => i >= 13056 && i <= 13311, "CJK Unified Ideographs Extension A": (i) => i >= 13312 && i <= 19903, "Yijing Hexagram Symbols": (i) => i >= 19904 && i <= 19967, "CJK Unified Ideographs": (i) => i >= 19968 && i <= 40959, "Yi Syllables": (i) => i >= 40960 && i <= 42127, "Yi Radicals": (i) => i >= 42128 && i <= 42191, "Hangul Jamo Extended-A": (i) => i >= 43360 && i <= 43391, "Hangul Syllables": (i) => i >= 44032 && i <= 55215, "Hangul Jamo Extended-B": (i) => i >= 55216 && i <= 55295, "Private Use Area": (i) => i >= 57344 && i <= 63743, "CJK Compatibility Ideographs": (i) => i >= 63744 && i <= 64255, "Arabic Presentation Forms-A": (i) => i >= 64336 && i <= 65023, "Vertical Forms": (i) => i >= 65040 && i <= 65055, "CJK Compatibility Forms": (i) => i >= 65072 && i <= 65103, "Small Form Variants": (i) => i >= 65104 && i <= 65135, "Arabic Presentation Forms-B": (i) => i >= 65136 && i <= 65279, "Halfwidth and Fullwidth Forms": (i) => i >= 65280 && i <= 65519 };
|
3199
|
-
function
|
3200
|
-
for (const e of i) if (
|
3199
|
+
function Da(i) {
|
3200
|
+
for (const e of i) if (La(e.charCodeAt(0))) return !0;
|
3201
3201
|
return !1;
|
3202
3202
|
}
|
3203
3203
|
function Xc(i) {
|
@@ -3207,11 +3207,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3207
3207
|
function ql(i) {
|
3208
3208
|
return !(ze.Arabic(i) || ze["Arabic Supplement"](i) || ze["Arabic Extended-A"](i) || ze["Arabic Presentation Forms-A"](i) || ze["Arabic Presentation Forms-B"](i));
|
3209
3209
|
}
|
3210
|
-
function
|
3210
|
+
function La(i) {
|
3211
3211
|
return !(i !== 746 && i !== 747 && (i < 4352 || !(ze["Bopomofo Extended"](i) || ze.Bopomofo(i) || ze["CJK Compatibility Forms"](i) && !(i >= 65097 && i <= 65103) || ze["CJK Compatibility Ideographs"](i) || ze["CJK Compatibility"](i) || ze["CJK Radicals Supplement"](i) || ze["CJK Strokes"](i) || !(!ze["CJK Symbols and Punctuation"](i) || i >= 12296 && i <= 12305 || i >= 12308 && i <= 12319 || i === 12336) || ze["CJK Unified Ideographs Extension A"](i) || ze["CJK Unified Ideographs"](i) || ze["Enclosed CJK Letters and Months"](i) || ze["Hangul Compatibility Jamo"](i) || ze["Hangul Jamo Extended-A"](i) || ze["Hangul Jamo Extended-B"](i) || ze["Hangul Jamo"](i) || ze["Hangul Syllables"](i) || ze.Hiragana(i) || ze["Ideographic Description Characters"](i) || ze.Kanbun(i) || ze["Kangxi Radicals"](i) || ze["Katakana Phonetic Extensions"](i) || ze.Katakana(i) && i !== 12540 || !(!ze["Halfwidth and Fullwidth Forms"](i) || i === 65288 || i === 65289 || i === 65293 || i >= 65306 && i <= 65310 || i === 65339 || i === 65341 || i === 65343 || i >= 65371 && i <= 65503 || i === 65507 || i >= 65512 && i <= 65519) || !(!ze["Small Form Variants"](i) || i >= 65112 && i <= 65118 || i >= 65123 && i <= 65126) || ze["Unified Canadian Aboriginal Syllabics"](i) || ze["Unified Canadian Aboriginal Syllabics Extended"](i) || ze["Vertical Forms"](i) || ze["Yijing Hexagram Symbols"](i) || ze["Yi Syllables"](i) || ze["Yi Radicals"](i))));
|
3212
3212
|
}
|
3213
3213
|
function Zl(i) {
|
3214
|
-
return !(
|
3214
|
+
return !(La(i) || function(e) {
|
3215
3215
|
return !!(ze["Latin-1 Supplement"](e) && (e === 167 || e === 169 || e === 174 || e === 177 || e === 188 || e === 189 || e === 190 || e === 215 || e === 247) || ze["General Punctuation"](e) && (e === 8214 || e === 8224 || e === 8225 || e === 8240 || e === 8241 || e === 8251 || e === 8252 || e === 8258 || e === 8263 || e === 8264 || e === 8265 || e === 8273) || ze["Letterlike Symbols"](e) || ze["Number Forms"](e) || ze["Miscellaneous Technical"](e) && (e >= 8960 && e <= 8967 || e >= 8972 && e <= 8991 || e >= 8996 && e <= 9e3 || e === 9003 || e >= 9085 && e <= 9114 || e >= 9150 && e <= 9165 || e === 9167 || e >= 9169 && e <= 9179 || e >= 9186 && e <= 9215) || ze["Control Pictures"](e) && e !== 9251 || ze["Optical Character Recognition"](e) || ze["Enclosed Alphanumerics"](e) || ze["Geometric Shapes"](e) || ze["Miscellaneous Symbols"](e) && !(e >= 9754 && e <= 9759) || ze["Miscellaneous Symbols and Arrows"](e) && (e >= 11026 && e <= 11055 || e >= 11088 && e <= 11097 || e >= 11192 && e <= 11243) || ze["CJK Symbols and Punctuation"](e) || ze.Katakana(e) || ze["Private Use Area"](e) || ze["CJK Compatibility Forms"](e) || ze["Small Form Variants"](e) || ze["Halfwidth and Fullwidth Forms"](e) || e === 8734 || e === 8756 || e === 8757 || e >= 9984 && e <= 10087 || e >= 10102 && e <= 10131 || e === 65532 || e === 65533);
|
3216
3216
|
}(i));
|
3217
3217
|
}
|
@@ -3221,7 +3221,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3221
3221
|
function Gl(i, e) {
|
3222
3222
|
return !(!e && Qr(i) || i >= 2304 && i <= 3583 || i >= 3840 && i <= 4255 || ze.Khmer(i));
|
3223
3223
|
}
|
3224
|
-
function
|
3224
|
+
function Ra(i) {
|
3225
3225
|
for (const e of i) if (Qr(e.charCodeAt(0))) return !0;
|
3226
3226
|
return !1;
|
3227
3227
|
}
|
@@ -3326,12 +3326,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3326
3326
|
return e;
|
3327
3327
|
}
|
3328
3328
|
transitioned(e, r) {
|
3329
|
-
const s = new
|
3329
|
+
const s = new Ba(this._properties);
|
3330
3330
|
for (const l of Object.keys(this._values)) s._values[l] = this._values[l].transitioned(e, r._values[l]);
|
3331
3331
|
return s;
|
3332
3332
|
}
|
3333
3333
|
untransitioned() {
|
3334
|
-
const e = new
|
3334
|
+
const e = new Ba(this._properties);
|
3335
3335
|
for (const r of Object.keys(this._values)) e._values[r] = this._values[r].untransitioned();
|
3336
3336
|
return e;
|
3337
3337
|
}
|
@@ -3359,7 +3359,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3359
3359
|
return d;
|
3360
3360
|
}
|
3361
3361
|
}
|
3362
|
-
class
|
3362
|
+
class Ba {
|
3363
3363
|
constructor(e) {
|
3364
3364
|
this._properties = e, this._values = Object.create(e.defaultTransitioningPropertyValues);
|
3365
3365
|
}
|
@@ -3580,7 +3580,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3580
3580
|
return this.visibility && (e.layout = e.layout || {}, e.layout.visibility = this.visibility), jr(e, (r, s) => !(r === void 0 || s === "layout" && !Object.keys(r).length || s === "paint" && !Object.keys(r).length));
|
3581
3581
|
}
|
3582
3582
|
_validate(e, r, s, l, d = {}) {
|
3583
|
-
return (!d || d.validate !== !1) &&
|
3583
|
+
return (!d || d.validate !== !1) && Ma(this, e.call(Rr, { key: r, layerType: this.type, objectKey: s, value: l, styleSpec: he, style: { glyphs: !0, sprite: !0 } }));
|
3584
3584
|
}
|
3585
3585
|
is3D() {
|
3586
3586
|
return !1;
|
@@ -4235,7 +4235,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4235
4235
|
}
|
4236
4236
|
class Io extends Z {
|
4237
4237
|
}
|
4238
|
-
class
|
4238
|
+
class Fa extends j {
|
4239
4239
|
}
|
4240
4240
|
class li extends H {
|
4241
4241
|
}
|
@@ -4253,7 +4253,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4253
4253
|
}
|
4254
4254
|
class jt extends Pe {
|
4255
4255
|
}
|
4256
|
-
const Jn = b([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members:
|
4256
|
+
const Jn = b([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Oa } = Jn;
|
4257
4257
|
class ri {
|
4258
4258
|
constructor(e = []) {
|
4259
4259
|
this.segments = e;
|
@@ -4291,8 +4291,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4291
4291
|
}
|
4292
4292
|
return l ^= i.length, l = 2246822507 * (65535 & (l ^= l >>> 16)) + ((2246822507 * (l >>> 16) & 65535) << 16) & 4294967295, l = 3266489909 * (65535 & (l ^= l >>> 13)) + ((3266489909 * (l >>> 16) & 65535) << 16) & 4294967295, (l ^= l >>> 16) >>> 0;
|
4293
4293
|
};
|
4294
|
-
var Xl = rn.exports,
|
4295
|
-
|
4294
|
+
var Xl = rn.exports, Va = { exports: {} };
|
4295
|
+
Va.exports = function(i, e) {
|
4296
4296
|
for (var r, s = i.length, l = e ^ s, d = 0; s >= 4; ) r = 1540483477 * (65535 & (r = 255 & i.charCodeAt(d) | (255 & i.charCodeAt(++d)) << 8 | (255 & i.charCodeAt(++d)) << 16 | (255 & i.charCodeAt(++d)) << 24)) + ((1540483477 * (r >>> 16) & 65535) << 16), l = 1540483477 * (65535 & l) + ((1540483477 * (l >>> 16) & 65535) << 16) ^ (r = 1540483477 * (65535 & (r ^= r >>> 24)) + ((1540483477 * (r >>> 16) & 65535) << 16)), s -= 4, ++d;
|
4297
4297
|
switch (s) {
|
4298
4298
|
case 3:
|
@@ -4304,8 +4304,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4304
4304
|
}
|
4305
4305
|
return l = 1540483477 * (65535 & (l ^= l >>> 13)) + ((1540483477 * (l >>> 16) & 65535) << 16), (l ^= l >>> 15) >>> 0;
|
4306
4306
|
};
|
4307
|
-
var
|
4308
|
-
Ao.exports =
|
4307
|
+
var Na = Xl, Ua = Va.exports;
|
4308
|
+
Ao.exports = Na, Ao.exports.murmur3 = Na, Ao.exports.murmur2 = Ua;
|
4309
4309
|
var Co = _e(Ao.exports);
|
4310
4310
|
class Kn {
|
4311
4311
|
constructor() {
|
@@ -4394,7 +4394,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4394
4394
|
function Kc(i) {
|
4395
4395
|
return [Wl(255 * i.r, 255 * i.g), Wl(255 * i.b, 255 * i.a)];
|
4396
4396
|
}
|
4397
|
-
class
|
4397
|
+
class ja {
|
4398
4398
|
constructor(e, r, s) {
|
4399
4399
|
this.value = e, this.uniformNames = r.map((l) => `u_${l}`), this.type = s;
|
4400
4400
|
}
|
@@ -4515,7 +4515,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4515
4515
|
const p = e.paint.get(d);
|
4516
4516
|
if (!(p instanceof Sr && vn(p.property.specification))) continue;
|
4517
4517
|
const f = qp(d, e.type), _ = p.value, x = p.property.specification.type, w = p.property.useIntegerZoom, I = p.property.specification["property-type"], k = I === "cross-faded" || I === "cross-faded-data-driven";
|
4518
|
-
if (_.kind === "constant") this.binders[d] = k ? new ko(_.value, f) : new
|
4518
|
+
if (_.kind === "constant") this.binders[d] = k ? new ko(_.value, f) : new ja(_.value, f, x), l.push(`/u_${d}`);
|
4519
4519
|
else if (_.kind === "source" || k) {
|
4520
4520
|
const D = lu(d, x, "source");
|
4521
4521
|
this.binders[d] = k ? new Yn(_, x, w, r, D, e.id) : new An(_, f, x, D), l.push(`/a_${d}`);
|
@@ -4563,7 +4563,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4563
4563
|
const e = [];
|
4564
4564
|
for (const r in this.binders) {
|
4565
4565
|
const s = this.binders[r];
|
4566
|
-
(s instanceof
|
4566
|
+
(s instanceof ja || s instanceof ko) && e.push(...s.uniformNames.map((l) => `#define HAS_UNIFORM_${l}`));
|
4567
4567
|
}
|
4568
4568
|
return e;
|
4569
4569
|
}
|
@@ -4580,7 +4580,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4580
4580
|
const e = [];
|
4581
4581
|
for (const r in this.binders) {
|
4582
4582
|
const s = this.binders[r];
|
4583
|
-
if (s instanceof
|
4583
|
+
if (s instanceof ja || s instanceof ko || s instanceof Br) for (const l of s.uniformNames) e.push(l);
|
4584
4584
|
}
|
4585
4585
|
return e;
|
4586
4586
|
}
|
@@ -4591,7 +4591,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4591
4591
|
const s = [];
|
4592
4592
|
for (const l in this.binders) {
|
4593
4593
|
const d = this.binders[l];
|
4594
|
-
if (d instanceof
|
4594
|
+
if (d instanceof ja || d instanceof ko || d instanceof Br) {
|
4595
4595
|
for (const p of d.uniformNames) if (r[p]) {
|
4596
4596
|
const f = d.getBinding(e, r[p], p);
|
4597
4597
|
s.push({ name: p, property: l, binding: f });
|
@@ -4662,7 +4662,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4662
4662
|
}(i);
|
4663
4663
|
return l && l[r] || s[e][r];
|
4664
4664
|
}
|
4665
|
-
Fe("ConstantBinder",
|
4665
|
+
Fe("ConstantBinder", ja), Fe("CrossFadedConstantBinder", ko), Fe("SourceExpressionBinder", An), Fe("CrossFadedCompositeBinder", Yn), Fe("CompositeExpressionBinder", Br), Fe("ProgramConfiguration", au, { omit: ["_buffers"] }), Fe("ProgramConfigurationSet", Rs);
|
4666
4666
|
const ti = 8192, Yc = Math.pow(2, 14) - 1, cu = -Yc - 1;
|
4667
4667
|
function Bs(i) {
|
4668
4668
|
const e = ti / i.extent, r = i.loadGeometry();
|
@@ -4711,7 +4711,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4711
4711
|
return !this.uploaded || this.programConfigurations.needsUpload;
|
4712
4712
|
}
|
4713
4713
|
upload(e) {
|
4714
|
-
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray,
|
4714
|
+
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Oa), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
|
4715
4715
|
}
|
4716
4716
|
destroy() {
|
4717
4717
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());
|
@@ -4797,7 +4797,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4797
4797
|
const d = Ti(i, e, r[0]);
|
4798
4798
|
return d !== Ti(i, e, r[1]) || d !== Ti(i, e, r[2]) || d !== Ti(i, e, r[3]);
|
4799
4799
|
}
|
4800
|
-
function
|
4800
|
+
function $a(i, e, r) {
|
4801
4801
|
const s = e.paint.get(i).value;
|
4802
4802
|
return s.kind === "constant" ? s.value : r.programConfigurations.get(e.id).getMaxValue(i);
|
4803
4803
|
}
|
@@ -4830,12 +4830,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4830
4830
|
for (var i = 0, e = arguments.length; e--; ) i += arguments[e] * arguments[e];
|
4831
4831
|
return Math.sqrt(i);
|
4832
4832
|
});
|
4833
|
-
var
|
4833
|
+
var qa, Jp = gu;
|
4834
4834
|
function tc(i, e, r) {
|
4835
4835
|
var s = e[0], l = e[1], d = e[2], p = e[3];
|
4836
4836
|
return i[0] = r[0] * s + r[4] * l + r[8] * d + r[12] * p, i[1] = r[1] * s + r[5] * l + r[9] * d + r[13] * p, i[2] = r[2] * s + r[6] * l + r[10] * d + r[14] * p, i[3] = r[3] * s + r[7] * l + r[11] * d + r[15] * p, i;
|
4837
4837
|
}
|
4838
|
-
|
4838
|
+
qa = new Mo(4), Mo != Float32Array && (qa[0] = 0, qa[1] = 0, qa[2] = 0, qa[3] = 0);
|
4839
4839
|
class Kp extends h {
|
4840
4840
|
constructor(e) {
|
4841
4841
|
super(e, Xp);
|
@@ -4845,7 +4845,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4845
4845
|
}
|
4846
4846
|
queryRadius(e) {
|
4847
4847
|
const r = e;
|
4848
|
-
return
|
4848
|
+
return $a("circle-radius", this, r) + $a("circle-stroke-width", this, r) + Ql(this.paint.get("circle-translate"));
|
4849
4849
|
}
|
4850
4850
|
queryIntersectsFeature(e, r, s, l, d, p, f, _) {
|
4851
4851
|
const x = ec(e, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), p.angle, f), w = this.paint.get("circle-radius").evaluate(r, s) + this.paint.get("circle-stroke-width").evaluate(r, s), I = this.paint.get("circle-pitch-alignment") === "map", k = I ? x : function(R, F) {
|
@@ -4895,7 +4895,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4895
4895
|
}
|
4896
4896
|
return e;
|
4897
4897
|
}
|
4898
|
-
class
|
4898
|
+
class Za {
|
4899
4899
|
constructor(e, r) {
|
4900
4900
|
rh(this, e, 1, r);
|
4901
4901
|
}
|
@@ -4903,7 +4903,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4903
4903
|
vu(this, e, 1);
|
4904
4904
|
}
|
4905
4905
|
clone() {
|
4906
|
-
return new
|
4906
|
+
return new Za({ width: this.width, height: this.height }, new Uint8Array(this.data));
|
4907
4907
|
}
|
4908
4908
|
static copy(e, r, s, l, d) {
|
4909
4909
|
nh(e, r, s, l, d, 1);
|
@@ -4941,7 +4941,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4941
4941
|
else for (let p = 0, f = 0; p < r; p++, f += 4) d(0, f, p / (r - 1));
|
4942
4942
|
return l;
|
4943
4943
|
}
|
4944
|
-
Fe("AlphaImage",
|
4944
|
+
Fe("AlphaImage", Za), Fe("RGBAImage", lr);
|
4945
4945
|
class Qp extends h {
|
4946
4946
|
createBucket(e) {
|
4947
4947
|
return new yu(e);
|
@@ -5005,7 +5005,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5005
5005
|
}
|
5006
5006
|
x = Math.max(w - f, I - _), x = x !== 0 ? 32767 / x : 0;
|
5007
5007
|
}
|
5008
|
-
return
|
5008
|
+
return Ga(d, p, r, f, _, x, 0), p;
|
5009
5009
|
}
|
5010
5010
|
function Tu(i, e, r, s, l) {
|
5011
5011
|
let d;
|
@@ -5015,7 +5015,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5015
5015
|
return w;
|
5016
5016
|
}(i, e, r, s) > 0) for (let p = e; p < r; p += s) d = Au(p / s | 0, i[p], i[p + 1], d);
|
5017
5017
|
else for (let p = r - s; p >= e; p -= s) d = Au(p / s | 0, i[p], i[p + 1], d);
|
5018
|
-
return d && ic(d, d.next) && (
|
5018
|
+
return d && ic(d, d.next) && (Wa(d), d = d.next), d;
|
5019
5019
|
}
|
5020
5020
|
function Os(i, e) {
|
5021
5021
|
if (!i) return i;
|
@@ -5024,13 +5024,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5024
5024
|
do
|
5025
5025
|
if (r = !1, s.steiner || !ic(s, s.next) && Yt(s.prev, s, s.next) !== 0) s = s.next;
|
5026
5026
|
else {
|
5027
|
-
if (
|
5027
|
+
if (Wa(s), s = e = s.prev, s === s.next) break;
|
5028
5028
|
r = !0;
|
5029
5029
|
}
|
5030
5030
|
while (r || s !== e);
|
5031
5031
|
return e;
|
5032
5032
|
}
|
5033
|
-
function
|
5033
|
+
function Ga(i, e, r, s, l, d, p) {
|
5034
5034
|
if (!i) return;
|
5035
5035
|
!p && d && function(_, x, w, I) {
|
5036
5036
|
let k = _;
|
@@ -5058,9 +5058,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5058
5058
|
let f = i;
|
5059
5059
|
for (; i.prev !== i.next; ) {
|
5060
5060
|
const _ = i.prev, x = i.next;
|
5061
|
-
if (d ? of(i, s, l, d) : sf(i)) e.push(_.i, i.i, x.i),
|
5061
|
+
if (d ? of(i, s, l, d) : sf(i)) e.push(_.i, i.i, x.i), Wa(i), i = x.next, f = x.next;
|
5062
5062
|
else if ((i = x) === f) {
|
5063
|
-
p ? p === 1 ?
|
5063
|
+
p ? p === 1 ? Ga(i = af(Os(i), e), e, r, s, l, d, 2) : p === 2 && lf(i, e, r, s, l, d) : Ga(Os(i), e, r, s, l, d, 1);
|
5064
5064
|
break;
|
5065
5065
|
}
|
5066
5066
|
}
|
@@ -5099,7 +5099,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5099
5099
|
let r = i;
|
5100
5100
|
do {
|
5101
5101
|
const s = r.prev, l = r.next.next;
|
5102
|
-
!ic(s, l) && Iu(s, r, r.next, l) &&
|
5102
|
+
!ic(s, l) && Iu(s, r, r.next, l) && Ha(s, l) && Ha(l, s) && (e.push(s.i, r.i, l.i), Wa(r), Wa(r.next), r = i = l), r = r.next;
|
5103
5103
|
} while (r !== i);
|
5104
5104
|
return Os(r);
|
5105
5105
|
}
|
@@ -5110,7 +5110,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5110
5110
|
for (; f !== p.prev; ) {
|
5111
5111
|
if (p.i !== f.i && pf(p, f)) {
|
5112
5112
|
let _ = Pu(p, f);
|
5113
|
-
return p = Os(p, p.next), _ = Os(_, _.next),
|
5113
|
+
return p = Os(p, p.next), _ = Os(_, _.next), Ga(p, e, r, s, l, d, 0), void Ga(_, e, r, s, l, d, 0);
|
5114
5114
|
}
|
5115
5115
|
f = f.next;
|
5116
5116
|
}
|
@@ -5139,7 +5139,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5139
5139
|
do {
|
5140
5140
|
if (f >= p.x && p.x >= k && f !== p.x && zo(_ < D ? f : w, _, k, D, _ < D ? w : f, _, p.x, p.y)) {
|
5141
5141
|
const F = Math.abs(_ - p.y) / (f - p.x);
|
5142
|
-
|
5142
|
+
Ha(p, l) && (F < R || F === R && (p.x > x.x || p.x === x.x && uf(x, p))) && (x = p, R = F);
|
5143
5143
|
}
|
5144
5144
|
p = p.next;
|
5145
5145
|
} while (p !== I);
|
@@ -5173,7 +5173,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5173
5173
|
l = l.next;
|
5174
5174
|
} while (l !== r);
|
5175
5175
|
return !1;
|
5176
|
-
}(i, e) && (
|
5176
|
+
}(i, e) && (Ha(i, e) && Ha(e, i) && function(r, s) {
|
5177
5177
|
let l = r, d = !1;
|
5178
5178
|
const p = (r.x + s.x) / 2, f = (r.y + s.y) / 2;
|
5179
5179
|
do
|
@@ -5198,7 +5198,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5198
5198
|
function nc(i) {
|
5199
5199
|
return i > 0 ? 1 : i < 0 ? -1 : 0;
|
5200
5200
|
}
|
5201
|
-
function
|
5201
|
+
function Ha(i, e) {
|
5202
5202
|
return Yt(i.prev, i, i.next) < 0 ? Yt(i, e, i.next) >= 0 && Yt(i, i.prev, e) >= 0 : Yt(i, e, i.prev) < 0 || Yt(i, i.next, e) < 0;
|
5203
5203
|
}
|
5204
5204
|
function Pu(i, e) {
|
@@ -5209,7 +5209,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5209
5209
|
const l = oh(i, e, r);
|
5210
5210
|
return s ? (l.next = s.next, l.prev = s, s.next.prev = l, s.next = l) : (l.prev = l, l.next = l), l;
|
5211
5211
|
}
|
5212
|
-
function
|
5212
|
+
function Wa(i) {
|
5213
5213
|
i.next.prev = i.prev, i.prev.next = i.next, i.prevZ && (i.prevZ.nextZ = i.nextZ), i.nextZ && (i.nextZ.prevZ = i.prevZ);
|
5214
5214
|
}
|
5215
5215
|
function oh(i, e, r) {
|
@@ -5433,7 +5433,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5433
5433
|
this.layers = i.readFields(If, {}, e);
|
5434
5434
|
}, Qn.VectorTileFeature = Eu, Qn.VectorTileLayer = Mu;
|
5435
5435
|
const Pf = Qn.VectorTileFeature.types, hh = Math.pow(2, 13);
|
5436
|
-
function
|
5436
|
+
function Xa(i, e, r, s, l, d, p, f) {
|
5437
5437
|
i.emplaceBack(e, r, 2 * Math.floor(s * hh) + p, l * hh * 2, d * hh * 2, Math.round(f));
|
5438
5438
|
}
|
5439
5439
|
class uh {
|
@@ -5486,7 +5486,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5486
5486
|
if (!Af(W, se)) {
|
5487
5487
|
x.vertexLength + 4 > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray));
|
5488
5488
|
const Y = W.sub(se)._perp()._unit(), ie = se.dist(W);
|
5489
|
-
F + ie > 32768 && (F = 0),
|
5489
|
+
F + ie > 32768 && (F = 0), Xa(this.layoutVertexArray, W.x, W.y, Y.x, Y.y, 0, 0, F), Xa(this.layoutVertexArray, W.x, W.y, Y.x, Y.y, 0, 1, F), f.x += 2 * W.x, f.y += 2 * W.y, f.vertexCount += 2, F += ie, Xa(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 0, F), Xa(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 1, F), f.x += 2 * se.x, f.y += 2 * se.y, f.vertexCount += 2;
|
5490
5490
|
const ue = x.vertexLength;
|
5491
5491
|
this.indexArray.emplaceBack(ue, ue + 2, ue + 1), this.indexArray.emplaceBack(ue + 1, ue + 2, ue + 3), x.vertexLength += 4, x.primitiveLength += 2;
|
5492
5492
|
}
|
@@ -5499,7 +5499,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5499
5499
|
R !== p[0] && I.push(w.length / 2);
|
5500
5500
|
for (let F = 0; F < R.length; F++) {
|
5501
5501
|
const $ = R[F];
|
5502
|
-
|
5502
|
+
Xa(this.layoutVertexArray, $.x, $.y, 0, 0, 1, 1, 0), f.x += $.x, f.y += $.y, f.vertexCount += 1, w.push($.x), w.push($.y);
|
5503
5503
|
}
|
5504
5504
|
}
|
5505
5505
|
const D = Su(w, I);
|
@@ -5573,7 +5573,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5573
5573
|
}(D[0], D[1], k);
|
5574
5574
|
}
|
5575
5575
|
}
|
5576
|
-
function
|
5576
|
+
function Ja(i, e) {
|
5577
5577
|
return i.x * e.x + i.y * e.y;
|
5578
5578
|
}
|
5579
5579
|
function Lu(i, e) {
|
@@ -5583,7 +5583,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5583
5583
|
let l;
|
5584
5584
|
for (; !l || s.equals(l); ) if (l = e[r++], !l) return 1 / 0;
|
5585
5585
|
for (; r < e.length; r++) {
|
5586
|
-
const d = e[r], p = i[0], f = l.sub(s), _ = d.sub(s), x = p.sub(s), w =
|
5586
|
+
const d = e[r], p = i[0], f = l.sub(s), _ = d.sub(s), x = p.sub(s), w = Ja(f, f), I = Ja(f, _), k = Ja(_, _), D = Ja(x, f), R = Ja(x, _), F = w * k - I * I, $ = (k * D - I * R) / F, W = (w * R - I * D) / F, se = s.z * (1 - $ - W) + l.z * $ + d.z * W;
|
5587
5587
|
if (isFinite(se)) return se;
|
5588
5588
|
}
|
5589
5589
|
return 1 / 0;
|
@@ -5599,7 +5599,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5599
5599
|
constructor(e) {
|
5600
5600
|
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((r) => {
|
5601
5601
|
this.gradients[r.id] = {};
|
5602
|
-
}), this.layoutVertexArray = new Io(), this.layoutVertexArray2 = new
|
5602
|
+
}), this.layoutVertexArray = new Io(), this.layoutVertexArray2 = new Fa(), this.indexArray = new si(), this.programConfigurations = new Rs(e.layers, e.zoom), this.segments = new ri(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
|
5603
5603
|
}
|
5604
5604
|
populate(e, r, s) {
|
5605
5605
|
this.hasPattern = ah("line", this.layers, r);
|
@@ -5770,7 +5770,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5770
5770
|
return new dh(e);
|
5771
5771
|
}
|
5772
5772
|
queryRadius(e) {
|
5773
|
-
const r = e, s = Vu(
|
5773
|
+
const r = e, s = Vu($a("line-width", this, r), $a("line-gap-width", this, r)), l = $a("line-offset", this, r);
|
5774
5774
|
return s / 2 + Math.abs(l) + Ql(this.paint.get("line-translate"));
|
5775
5775
|
}
|
5776
5776
|
queryIntersectsFeature(e, r, s, l, d, p, f) {
|
@@ -5818,7 +5818,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5818
5818
|
}), i;
|
5819
5819
|
}
|
5820
5820
|
b([{ name: "triangle", components: 3, type: "Uint16" }]), b([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }]), b([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", name: "textBoxScale" }, { type: "Float32", name: "collisionCircleDiameter" }, { type: "Uint16", name: "textAnchorOffsetStartIndex" }, { type: "Uint16", name: "textAnchorOffsetEndIndex" }]), b([{ type: "Float32", name: "offsetX" }]), b([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]), b([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]);
|
5821
|
-
const
|
5821
|
+
const Ka = { "!": "︕", "#": "#", $: "$", "%": "%", "&": "&", "(": "︵", ")": "︶", "*": "*", "+": "+", ",": "︐", "-": "︲", ".": "・", "/": "/", ":": "︓", ";": "︔", "<": "︿", "=": "=", ">": "﹀", "?": "︖", "@": "@", "[": "﹇", "\\": "\", "]": "﹈", "^": "^", _: "︳", "`": "`", "{": "︷", "|": "―", "}": "︸", "~": "~", "¢": "¢", "£": "£", "¥": "¥", "¦": "¦", "¬": "¬", "¯": " ̄", "–": "︲", "—": "︱", "‘": "﹃", "’": "﹄", "“": "﹁", "”": "﹂", "…": "︙", "‧": "・", "₩": "₩", "、": "︑", "。": "︒", "〈": "︿", "〉": "﹀", "《": "︽", "》": "︾", "「": "﹁", "」": "﹂", "『": "﹃", "』": "﹄", "【": "︻", "】": "︼", "〔": "︹", "〕": "︺", "〖": "︗", "〗": "︘", "!": "︕", "(": "︵", ")": "︶", ",": "︐", "-": "︲", ".": "・", ":": "︓", ";": "︔", "<": "︿", ">": "﹀", "?": "︖", "[": "﹇", "]": "﹈", "_": "︳", "{": "︷", "|": "―", "}": "︸", "⦅": "︵", "⦆": "︶", "。": "︒", "「": "﹁", "」": "﹂" };
|
5822
5822
|
var ni = 24, Uu = St, ju = function(i, e, r, s, l) {
|
5823
5823
|
var d, p, f = 8 * l - s - 1, _ = (1 << f) - 1, x = _ >> 1, w = -7, I = l - 1, k = -1, D = i[e + I];
|
5824
5824
|
for (I += k, d = D & (1 << -w) - 1, D >>= -w, w += f; w > 0; d = 256 * d + i[e + I], I += k, w -= 8) ;
|
@@ -6118,7 +6118,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6118
6118
|
function em(i, e, r) {
|
6119
6119
|
if (i === 3) {
|
6120
6120
|
const { id: s, bitmap: l, width: d, height: p, left: f, top: _, advance: x } = r.readMessage(tm, {});
|
6121
|
-
e.push({ id: s, bitmap: new
|
6121
|
+
e.push({ id: s, bitmap: new Za({ width: d + 2 * mh, height: p + 2 * mh }, l), metrics: { width: d, height: p, left: f, top: _, advance: x } });
|
6122
6122
|
}
|
6123
6123
|
}
|
6124
6124
|
function tm(i, e, r) {
|
@@ -6197,17 +6197,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6197
6197
|
}
|
6198
6198
|
var es;
|
6199
6199
|
Fe("ImagePosition", gh), Fe("ImageAtlas", Ju), T.ai = void 0, (es = T.ai || (T.ai = {}))[es.none = 0] = "none", es[es.horizontal = 1] = "horizontal", es[es.vertical = 2] = "vertical", es[es.horizontalOnly = 3] = "horizontalOnly";
|
6200
|
-
const
|
6201
|
-
class
|
6200
|
+
const Ya = -17;
|
6201
|
+
class Qa {
|
6202
6202
|
constructor() {
|
6203
6203
|
this.scale = 1, this.fontStack = "", this.imageName = null;
|
6204
6204
|
}
|
6205
6205
|
static forText(e, r) {
|
6206
|
-
const s = new
|
6206
|
+
const s = new Qa();
|
6207
6207
|
return s.scale = e || 1, s.fontStack = r, s;
|
6208
6208
|
}
|
6209
6209
|
static forImage(e) {
|
6210
|
-
const r = new
|
6210
|
+
const r = new Qa();
|
6211
6211
|
return r.imageName = e, r;
|
6212
6212
|
}
|
6213
6213
|
}
|
@@ -6240,7 +6240,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6240
6240
|
let r = "";
|
6241
6241
|
for (let s = 0; s < e.length; s++) {
|
6242
6242
|
const l = e.charCodeAt(s + 1) || null, d = e.charCodeAt(s - 1) || null;
|
6243
|
-
r += l && Zl(l) && !
|
6243
|
+
r += l && Zl(l) && !Ka[e[s + 1]] || d && Zl(d) && !Ka[e[s - 1]] || !Ka[e[s]] ? e[s] : Ka[e[s]];
|
6244
6244
|
}
|
6245
6245
|
return r;
|
6246
6246
|
}(this.text);
|
@@ -6263,7 +6263,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6263
6263
|
return this.sectionIndex.reduce((e, r) => Math.max(e, this.sections[r].scale), 0);
|
6264
6264
|
}
|
6265
6265
|
addTextSection(e, r) {
|
6266
|
-
this.text += e.text, this.sections.push(
|
6266
|
+
this.text += e.text, this.sections.push(Qa.forText(e.scale, e.fontStack || r));
|
6267
6267
|
const s = this.sections.length - 1;
|
6268
6268
|
for (let l = 0; l < e.text.length; ++l) this.sectionIndex.push(s);
|
6269
6269
|
}
|
@@ -6271,7 +6271,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6271
6271
|
const r = e.image ? e.image.name : "";
|
6272
6272
|
if (r.length === 0) return void hi("Can't add FormattedSection with an empty image.");
|
6273
6273
|
const s = this.getNextImageSectionCharCode();
|
6274
|
-
s ? (this.text += String.fromCharCode(s), this.sections.push(
|
6274
|
+
s ? (this.text += String.fromCharCode(s), this.sections.push(Qa.forImage(r)), this.sectionIndex.push(this.sections.length - 1)) : hi("Reached maximum number of images 6401");
|
6275
6275
|
}
|
6276
6276
|
getNextImageSectionCharCode() {
|
6277
6277
|
return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);
|
@@ -6306,7 +6306,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6306
6306
|
}(F, _h(F, x, d, e, s, D));
|
6307
6307
|
const Y = [], ie = { positionedLines: Y, text: F.toString(), top: w[1], bottom: w[1], left: w[0], right: w[0], writingMode: I, iconsInText: !1, verticalizable: !1 };
|
6308
6308
|
return function(ue, ye, Le, We, Me, Ce, je, Oe, Be, fe, Ze, Ue) {
|
6309
|
-
let Ye = 0, Pt =
|
6309
|
+
let Ye = 0, Pt = Ya, Tt = 0, oi = 0;
|
6310
6310
|
const Tr = Oe === "right" ? 1 : Oe === "left" ? 0 : 0.5;
|
6311
6311
|
let vi = 0;
|
6312
6312
|
for (const Jt of Me) {
|
@@ -6322,7 +6322,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6322
6322
|
for (let Hi = 0; Hi < Jt.length(); Hi++) {
|
6323
6323
|
const gt = Jt.getSection(Hi), Mt = Jt.getSectionIndex(Hi), Ot = Jt.getCharCode(Hi);
|
6324
6324
|
let Ki = 0, Gt = null, No = null, sn = null, on = ni;
|
6325
|
-
const Ir = !(Be === T.ai.horizontal || !Ze && !
|
6325
|
+
const Ir = !(Be === T.ai.horizontal || !Ze && !La(Ot) || Ze && (lc[Ot] || (Xt = Ot, ze.Arabic(Xt) || ze["Arabic Supplement"](Xt) || ze["Arabic Extended-A"](Xt) || ze["Arabic Presentation Forms-A"](Xt) || ze["Arabic Presentation Forms-B"](Xt))));
|
6326
6326
|
if (gt.imageName) {
|
6327
6327
|
const ur = We[gt.imageName];
|
6328
6328
|
if (!ur) continue;
|
@@ -6335,9 +6335,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6335
6335
|
const ur = Le[gt.fontStack], ci = ur && ur[Ot];
|
6336
6336
|
if (ci && ci.rect) No = ci.rect, Gt = ci.metrics;
|
6337
6337
|
else {
|
6338
|
-
const kn = ye[gt.fontStack],
|
6339
|
-
if (!
|
6340
|
-
Gt =
|
6338
|
+
const kn = ye[gt.fontStack], nl = kn && kn[Ot];
|
6339
|
+
if (!nl) continue;
|
6340
|
+
Gt = nl.metrics;
|
6341
6341
|
}
|
6342
6342
|
Ki = (ai - gt.scale) * ni;
|
6343
6343
|
}
|
@@ -6348,11 +6348,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6348
6348
|
bi.lineOffset = Math.max(wi, Ci), Pt += hr, oi = Math.max(hr, oi), ++vi;
|
6349
6349
|
}
|
6350
6350
|
var Xt;
|
6351
|
-
const Ri = Pt -
|
6351
|
+
const Ri = Pt - Ya, { horizontalAlign: Bi, verticalAlign: Fi } = yh(je);
|
6352
6352
|
(function(Jt, ai, Ci, bi, Oi, wi, hr, Hi, gt) {
|
6353
6353
|
const Mt = (ai - Ci) * Oi;
|
6354
6354
|
let Ot = 0;
|
6355
|
-
Ot = wi !== hr ? -Hi * bi -
|
6355
|
+
Ot = wi !== hr ? -Hi * bi - Ya : (-bi * gt + 0.5) * hr;
|
6356
6356
|
for (const Ki of Jt) for (const Gt of Ki.positionedGlyphs) Gt.x += Mt, Gt.y += Ot;
|
6357
6357
|
})(ue.positionedLines, Tr, Bi, Fi, Tt, oi, Ce, Ri, Me.length), ue.top += -Fi * Ri, ue.bottom = ue.top + Ri, ue.left += -Bi * Tt, ue.right = ue.left + Tt;
|
6358
6358
|
}(ie, e, r, s, $, p, f, _, I, x, k, R), !function(ue) {
|
@@ -6474,7 +6474,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6474
6474
|
const R = e.top * d, F = e.bottom * d;
|
6475
6475
|
return r === "height" || r === "both" ? (w = l[1] + R - s[0], k = l[1] + F + s[2]) : (w = l[1] + (R + F - p.displaySize[1]) / 2, k = w + p.displaySize[1]), { image: p, top: w, right: I, bottom: k, left: D, collisionPadding: f };
|
6476
6476
|
}
|
6477
|
-
const
|
6477
|
+
const el = 255, nn = 128, ts = el * nn;
|
6478
6478
|
function rd(i, e) {
|
6479
6479
|
const { expression: r } = e;
|
6480
6480
|
if (r.kind === "constant") return { kind: "constant", layoutSize: r.evaluate(new Et(i + 1)) };
|
@@ -6505,7 +6505,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6505
6505
|
i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r);
|
6506
6506
|
}
|
6507
6507
|
function cm(i) {
|
6508
|
-
for (const e of i.sections) if (
|
6508
|
+
for (const e of i.sections) if (Ra(e.text)) return !0;
|
6509
6509
|
return !1;
|
6510
6510
|
}
|
6511
6511
|
class bh {
|
@@ -6548,7 +6548,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6548
6548
|
}
|
6549
6549
|
calculateGlyphDependencies(e, r, s, l, d) {
|
6550
6550
|
for (let p = 0; p < e.length; p++) if (r[e.charCodeAt(p)] = !0, (s || l) && d) {
|
6551
|
-
const f =
|
6551
|
+
const f = Ka[e.charAt(p)];
|
6552
6552
|
f && (r[f.charCodeAt(0)] = !0);
|
6553
6553
|
}
|
6554
6554
|
}
|
@@ -6575,7 +6575,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6575
6575
|
this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(T.ai.vertical) >= 0;
|
6576
6576
|
for (const je of ye.sections) if (je.image) k[je.image.name] = !0;
|
6577
6577
|
else {
|
6578
|
-
const Oe =
|
6578
|
+
const Oe = Da(ye.toString()), Be = je.fontStack || Me, fe = D[Be] = D[Be] || {};
|
6579
6579
|
this.calculateGlyphDependencies(je.text, fe, Ce, this.allowVerticalPlacement, Oe);
|
6580
6580
|
}
|
6581
6581
|
}
|
@@ -6817,7 +6817,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6817
6817
|
if (!hc.hasPaintOverride(this.layout, e)) continue;
|
6818
6818
|
const r = this.paint.get(e), s = new od(r), l = new go(s, r.property.specification);
|
6819
6819
|
let d = null;
|
6820
|
-
d = r.value.kind === "constant" || r.value.kind === "source" ? new
|
6820
|
+
d = r.value.kind === "constant" || r.value.kind === "source" ? new da("source", l) : new pa("composite", l, r.value.zoomStops), this.paint._values[e] = new Sr(r.property, d, r.parameters);
|
6821
6821
|
}
|
6822
6822
|
}
|
6823
6823
|
_handleOverridablePaintPropertyUpdate(e, r, s) {
|
@@ -6966,7 +6966,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6966
6966
|
class Ph {
|
6967
6967
|
constructor(e, r, s) {
|
6968
6968
|
if (e < 0 || e > 25 || s < 0 || s >= Math.pow(2, e) || r < 0 || r >= Math.pow(2, e)) throw new Error(`x=${r}, y=${s}, z=${e} outside of bounds. 0<=x<${Math.pow(2, e)}, 0<=y<${Math.pow(2, e)} 0<=z<=25 `);
|
6969
|
-
this.z = e, this.x = r, this.y = s, this.key =
|
6969
|
+
this.z = e, this.x = r, this.y = s, this.key = tl(0, e, e, r, s);
|
6970
6970
|
}
|
6971
6971
|
equals(e) {
|
6972
6972
|
return this.z === e.z && this.x === e.x && this.y === e.y;
|
@@ -6995,13 +6995,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6995
6995
|
}
|
6996
6996
|
class md {
|
6997
6997
|
constructor(e, r) {
|
6998
|
-
this.wrap = e, this.canonical = r, this.key =
|
6998
|
+
this.wrap = e, this.canonical = r, this.key = tl(e, r.z, r.z, r.x, r.y);
|
6999
6999
|
}
|
7000
7000
|
}
|
7001
7001
|
class cr {
|
7002
7002
|
constructor(e, r, s, l, d) {
|
7003
7003
|
if (e < s) throw new Error(`overscaledZ should be >= z; overscaledZ = ${e}; z = ${s}`);
|
7004
|
-
this.overscaledZ = e, this.wrap = r, this.canonical = new Ph(s, +l, +d), this.key =
|
7004
|
+
this.overscaledZ = e, this.wrap = r, this.canonical = new Ph(s, +l, +d), this.key = tl(r, e, s, l, d);
|
7005
7005
|
}
|
7006
7006
|
clone() {
|
7007
7007
|
return new cr(this.overscaledZ, this.wrap, this.canonical.z, this.canonical.x, this.canonical.y);
|
@@ -7017,7 +7017,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7017
7017
|
calculateScaledKey(e, r) {
|
7018
7018
|
if (e > this.overscaledZ) throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);
|
7019
7019
|
const s = this.canonical.z - e;
|
7020
|
-
return e > this.canonical.z ?
|
7020
|
+
return e > this.canonical.z ? tl(this.wrap * +r, e, this.canonical.z, this.canonical.x, this.canonical.y) : tl(this.wrap * +r, e, e, this.canonical.x >> s, this.canonical.y >> s);
|
7021
7021
|
}
|
7022
7022
|
isChildOf(e) {
|
7023
7023
|
if (e.wrap !== this.wrap) return !1;
|
@@ -7051,7 +7051,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7051
7051
|
return this.canonical.getTilePoint(new uc(e.x - this.wrap, e.y));
|
7052
7052
|
}
|
7053
7053
|
}
|
7054
|
-
function
|
7054
|
+
function tl(i, e, r, s, l) {
|
7055
7055
|
(i *= 2) < 0 && (i = -1 * i - 1);
|
7056
7056
|
const d = 1 << r;
|
7057
7057
|
return (d * d * i + d * l + s).toString(36) + r.toString(36) + e.toString(36);
|
@@ -7601,7 +7601,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7601
7601
|
const Be = (fe, Ze) => {
|
7602
7602
|
Ze.x < 0 || Ze.x >= ti || Ze.y < 0 || Ze.y >= ti || function(Ue, Ye, Pt, Tt, oi, Tr, vi, Xt, Ri, Bi, Fi, Jt, ai, Ci, bi, Oi, wi, hr, Hi, gt, Mt, Ot, Ki, Gt, No) {
|
7603
7603
|
const sn = Ue.addToLineVertexArray(Ye, Pt);
|
7604
|
-
let on, Ir, ur, ci, kn = 0,
|
7604
|
+
let on, Ir, ur, ci, kn = 0, nl = 0, Fd = 0, Od = 0, Bh = -1, Fh = -1;
|
7605
7605
|
const En = {};
|
7606
7606
|
let Vd = Co("");
|
7607
7607
|
if (Ue.allowVerticalPlacement && Tt.vertical) {
|
@@ -7613,7 +7613,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7613
7613
|
Ir = new mc(Ri, Ye, Bi, Fi, Jt, oi, wi, hr, !1, ki), kn = 4 * Vs.length;
|
7614
7614
|
const Ns = Ue.iconSizeData;
|
7615
7615
|
let an = null;
|
7616
|
-
Ns.kind === "source" ? (an = [nn * Xt.layout.get("icon-size").evaluate(Mt, {})], an[0] > ts && hi(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${
|
7616
|
+
Ns.kind === "source" ? (an = [nn * Xt.layout.get("icon-size").evaluate(Mt, {})], an[0] > ts && hi(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)) : Ns.kind === "composite" && (an = [nn * Ot.compositeIconSizes[0].evaluate(Mt, {}, Gt), nn * Ot.compositeIconSizes[1].evaluate(Mt, {}, Gt)], (an[0] > ts || an[1] > ts) && hi(`${Ue.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)), Ue.addSymbols(Ue.icon, Vs, an, gt, Hi, Mt, T.ai.none, Ye, sn.lineStartIndex, sn.lineLength, -1, Gt), Bh = Ue.icon.placedSymbolArray.length - 1, Or && (nl = 4 * Or.length, Ue.addSymbols(Ue.icon, Or, an, gt, Hi, Mt, T.ai.vertical, Ye, sn.lineStartIndex, sn.lineLength, -1, Gt), Fh = Ue.icon.placedSymbolArray.length - 1);
|
7617
7617
|
}
|
7618
7618
|
const Nd = Object.keys(Tt.horizontal);
|
7619
7619
|
for (const ki of Nd) {
|
@@ -7641,7 +7641,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7641
7641
|
}
|
7642
7642
|
return [Vs, ki.length];
|
7643
7643
|
}(Ue.textAnchorOffsets, Dm);
|
7644
|
-
Ue.symbolInstances.emplaceBack(Ye.x, Ye.y, En.right >= 0 ? En.right : -1, En.center >= 0 ? En.center : -1, En.left >= 0 ? En.left : -1, En.vertical || -1, Bh, Fh, Vd, Im, Pm, Am, Cm, km, Em, Mm, zm, Bi, Fd, Od, kn,
|
7644
|
+
Ue.symbolInstances.emplaceBack(Ye.x, Ye.y, En.right >= 0 ? En.right : -1, En.center >= 0 ? En.center : -1, En.left >= 0 ? En.left : -1, En.vertical || -1, Bh, Fh, Vd, Im, Pm, Am, Cm, km, Em, Mm, zm, Bi, Fd, Od, kn, nl, Ud, 0, ai, Fr, Lm, Rm);
|
7645
7645
|
}(i, Ze, fe, r, s, l, Oe, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, $, [ie, ie, ie, ie], Le, _, se, ue, We, D, e, d, x, w, p);
|
7646
7646
|
};
|
7647
7647
|
if (Me === "line") for (const fe of wd(e.geometry, 0, 0, ti, ti)) {
|
@@ -7677,7 +7677,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7677
7677
|
Tt && (Xt = vi, vi = [0, 0]);
|
7678
7678
|
const Ri = Be.metrics.isDoubleResolution ? 2 : 1, Bi = (Be.metrics.left - Ze) * Be.scale - oi + vi[0], Fi = (-Be.metrics.top - Ze) * Be.scale + vi[1], Jt = Bi + fe.w / Ri * Be.scale / Ye, ai = Fi + fe.h / Ri * Be.scale / Ye, Ci = new ae(Bi, Fi), bi = new ae(Jt, Fi), Oi = new ae(Bi, ai), wi = new ae(Jt, ai);
|
7679
7679
|
if (Tt) {
|
7680
|
-
const gt = new ae(-oi, oi -
|
7680
|
+
const gt = new ae(-oi, oi - Ya), Mt = -Math.PI / 2, Ot = ni / 2 - oi, Ki = new ae(5 - Ya - Ot, -(Be.imageName ? Ot : 0)), Gt = new ae(...Xt);
|
7681
7681
|
Ci._rotateAround(Mt, gt)._add(Ki)._add(Gt), bi._rotateAround(Mt, gt)._add(Ki)._add(Gt), Oi._rotateAround(Mt, gt)._add(Ki)._add(Gt), wi._rotateAround(Mt, gt)._add(Ki)._add(Gt);
|
7682
7682
|
}
|
7683
7683
|
if (Ce) {
|
@@ -7690,7 +7690,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7690
7690
|
return je;
|
7691
7691
|
}(0, r, f, l, d, p, s, i.allowVerticalPlacement), $ = i.textSizeData;
|
7692
7692
|
let W = null;
|
7693
|
-
$.kind === "source" ? (W = [nn * l.layout.get("text-size").evaluate(p, {})], W[0] > ts && hi(`${i.layerIds[0]}: Value for "text-size" is >= ${
|
7693
|
+
$.kind === "source" ? (W = [nn * l.layout.get("text-size").evaluate(p, {})], W[0] > ts && hi(`${i.layerIds[0]}: Value for "text-size" is >= ${el}. Reduce your "text-size".`)) : $.kind === "composite" && (W = [nn * D.compositeTextSizes[0].evaluate(p, {}, R), nn * D.compositeTextSizes[1].evaluate(p, {}, R)], (W[0] > ts || W[1] > ts) && hi(`${i.layerIds[0]}: Value for "text-size" is >= ${el}. Reduce your "text-size".`)), i.addSymbols(i.text, F, W, f, d, p, x, e, _.lineStartIndex, _.lineLength, k, R);
|
7694
7694
|
for (const se of w) I[se] = i.text.placedSymbolArray.length - 1;
|
7695
7695
|
return 4 * F.length;
|
7696
7696
|
}
|
@@ -7780,14 +7780,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7780
7780
|
}
|
7781
7781
|
const p = e[2 * r + d];
|
7782
7782
|
let f = s, _ = l;
|
7783
|
-
for (
|
7784
|
-
for (
|
7783
|
+
for (il(i, e, s, r), e[2 * l + d] > p && il(i, e, s, l); f < _; ) {
|
7784
|
+
for (il(i, e, f, _), f++, _--; e[2 * f + d] < p; ) f++;
|
7785
7785
|
for (; e[2 * _ + d] > p; ) _--;
|
7786
7786
|
}
|
7787
|
-
e[2 * s + d] === p ?
|
7787
|
+
e[2 * s + d] === p ? il(i, e, s, _) : (_++, il(i, e, _, l)), _ <= r && (s = _ + 1), r <= _ && (l = _ - 1);
|
7788
7788
|
}
|
7789
7789
|
}
|
7790
|
-
function
|
7790
|
+
function il(i, e, r, s) {
|
7791
7791
|
Mh(i, r, s), Mh(e, 2 * r, 2 * s), Mh(e, 2 * r + 1, 2 * s + 1);
|
7792
7792
|
}
|
7793
7793
|
function Mh(i, e, r) {
|
@@ -7800,22 +7800,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7800
7800
|
}
|
7801
7801
|
var zh;
|
7802
7802
|
T.bf = void 0, (zh = T.bf || (T.bf = {})).create = "create", zh.load = "load", zh.fullLoad = "fullLoad";
|
7803
|
-
let gc = null,
|
7803
|
+
let gc = null, rl = [];
|
7804
7804
|
const Dh = 1e3 / 60, Lh = "loadTime", Rh = "fullLoadTime", Tm = { mark(i) {
|
7805
7805
|
performance.mark(i);
|
7806
7806
|
}, frame(i) {
|
7807
7807
|
const e = i;
|
7808
|
-
gc != null &&
|
7808
|
+
gc != null && rl.push(e - gc), gc = e;
|
7809
7809
|
}, clearMetrics() {
|
7810
|
-
gc = null,
|
7810
|
+
gc = null, rl = [], performance.clearMeasures(Lh), performance.clearMeasures(Rh);
|
7811
7811
|
for (const i in T.bf) performance.clearMarks(T.bf[i]);
|
7812
7812
|
}, getPerformanceMetrics() {
|
7813
7813
|
performance.measure(Lh, T.bf.create, T.bf.load), performance.measure(Rh, T.bf.create, T.bf.fullLoad);
|
7814
|
-
const i = performance.getEntriesByName(Lh)[0].duration, e = performance.getEntriesByName(Rh)[0].duration, r =
|
7814
|
+
const i = performance.getEntriesByName(Lh)[0].duration, e = performance.getEntriesByName(Rh)[0].duration, r = rl.length, s = 1 / (rl.reduce((d, p) => d + p, 0) / r / 1e3), l = rl.filter((d) => d > Dh).reduce((d, p) => d + (p - Dh) / Dh, 0);
|
7815
7815
|
return { loadTime: i, fullLoadTime: e, fps: s, percentDroppedFrames: l / (r + l) * 100, totalFrames: r };
|
7816
7816
|
} };
|
7817
7817
|
T.$ = class extends B {
|
7818
|
-
}, T.A = Mo, T.B =
|
7818
|
+
}, T.A = Mo, T.B = Ea, T.C = function(i) {
|
7819
7819
|
if (zn == null) {
|
7820
7820
|
const e = i.navigator ? i.navigator.userAgent : null;
|
7821
7821
|
zn = !!i.safari || !(!e || !(/\b(iPad|iPhone|iPod)\b/.test(e) || e.match("Safari") && !e.match("Chrome")));
|
@@ -8112,7 +8112,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8112
8112
|
}, T.bj = function(i, e) {
|
8113
8113
|
const r = {};
|
8114
8114
|
for (let l = 0; l < i.length; l++) {
|
8115
|
-
const d = e && e[i[l].id] ||
|
8115
|
+
const d = e && e[i[l].id] || ya(i[l]);
|
8116
8116
|
e && (e[i[l].id] = d);
|
8117
8117
|
let p = r[d];
|
8118
8118
|
p || (p = r[d] = []), p.push(i[l]);
|
@@ -8143,7 +8143,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8143
8143
|
}
|
8144
8144
|
let Me = p ? "center" : r.get("text-justify").evaluate(x, {}, i.canonical);
|
8145
8145
|
const Ce = r.get("symbol-placement") === "point" ? r.get("text-max-width").evaluate(x, {}, i.canonical) * ni : 1 / 0, je = () => {
|
8146
|
-
i.bucket.allowVerticalPlacement &&
|
8146
|
+
i.bucket.allowVerticalPlacement && Da(ie) && (R.vertical = ac(F, i.glyphMap, i.glyphPositions, i.imagePositions, w, Ce, d, Le, "left", ye, W, T.ai.vertical, !0, k, I));
|
8147
8147
|
};
|
8148
8148
|
if (!p && We) {
|
8149
8149
|
const Oe = /* @__PURE__ */ new Set();
|
@@ -8159,7 +8159,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8159
8159
|
} else {
|
8160
8160
|
Me === "auto" && (Me = Ch(Le));
|
8161
8161
|
const Oe = ac(F, i.glyphMap, i.glyphPositions, i.imagePositions, w, Ce, d, Le, Me, ye, W, T.ai.horizontal, !1, k, I);
|
8162
|
-
Oe && (R.horizontal[Me] = Oe), je(),
|
8162
|
+
Oe && (R.horizontal[Me] = Oe), je(), Da(ie) && p && f && (R.vertical = ac(F, i.glyphMap, i.glyphPositions, i.imagePositions, w, Ce, d, Le, Me, ye, W, T.ai.vertical, !1, k, I));
|
8163
8163
|
}
|
8164
8164
|
}
|
8165
8165
|
let se = !1;
|
@@ -8212,7 +8212,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8212
8212
|
s.src = i.byteLength ? URL.createObjectURL(l) : Gs;
|
8213
8213
|
}), T.g = mr, T.h = (i, e) => dn($t(i, { type: "json" }), e), T.i = Ar, T.j = Zr, T.k = qr, T.l = (i, e) => dn($t(i, { type: "arrayBuffer" }), e), T.m = dn, T.n = function(i) {
|
8214
8214
|
return new fh(i).readFields(Qf, []);
|
8215
|
-
}, T.o =
|
8215
|
+
}, T.o = Za, T.p = Xu, T.q = o, T.r = Gc, T.s = pn, T.t = Ma, T.u = ze, T.v = he, T.w = hi, T.x = Rr, T.y = function([i, e, r]) {
|
8216
8216
|
return e += 90, e *= Math.PI / 180, r *= Math.PI / 180, { x: i * Math.cos(e) * Math.sin(r), y: i * Math.sin(e) * Math.sin(r), z: i * Math.cos(r) };
|
8217
8217
|
}, T.z = $i;
|
8218
8218
|
}), V("worker", ["./shared"], function(T) {
|
@@ -11714,18 +11714,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11714
11714
|
}), li(Ft && Ft.placeable);
|
11715
11715
|
} else {
|
11716
11716
|
let _i = c.ar[(st = (Rt = this.prevPlacement) === null || Rt === void 0 ? void 0 : Rt.variableOffsets[Pe.crossTileID]) === null || st === void 0 ? void 0 : st.anchor];
|
11717
|
-
const yi = (jt, Jn,
|
11717
|
+
const yi = (jt, Jn, Oa) => {
|
11718
11718
|
const ri = jt.x2 - jt.x1, Wl = jt.y2 - jt.y1, Po = Pe.textBoxScale, Ao = De && ne === "never" ? Jn : null;
|
11719
|
-
let rn = null, Xl = U === "never" ? 1 : 2,
|
11719
|
+
let rn = null, Xl = U === "never" ? 1 : 2, Va = "never";
|
11720
11720
|
_i && Xl++;
|
11721
|
-
for (let
|
11722
|
-
for (let
|
11723
|
-
const Co = a.textAnchorOffsets.get(
|
11721
|
+
for (let Na = 0; Na < Xl; Na++) {
|
11722
|
+
for (let Ua = tn; Ua < Xn; Ua++) {
|
11723
|
+
const Co = a.textAnchorOffsets.get(Ua);
|
11724
11724
|
if (_i && Co.textAnchor !== _i) continue;
|
11725
|
-
const Kn = this.attemptAnchorPlacement(Co, jt, ri, Wl, Po, me, be, L, v, b, j,
|
11725
|
+
const Kn = this.attemptAnchorPlacement(Co, jt, ri, Wl, Po, me, be, L, v, b, j, Va, Pe, a, Oa, m, y, Ao, Ve);
|
11726
11726
|
if (Kn && (rn = Kn.placedGlyphBoxes, rn && rn.placeable)) return ht = !0, sr = Kn.shift, rn;
|
11727
11727
|
}
|
11728
|
-
_i ? _i = null :
|
11728
|
+
_i ? _i = null : Va = U;
|
11729
11729
|
}
|
11730
11730
|
return o && !rn && (rn = { box: this.collisionIndex.placeCollisionBox(Wn, "always", L, v, b, be, me, m, j.predicate, Ve, new c.P(0, 0)).box, offscreen: !1, placeable: !1 }), rn;
|
11731
11731
|
};
|
@@ -11750,8 +11750,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11750
11750
|
}
|
11751
11751
|
const Pn = H || Pe.numHorizontalGlyphVertices === 0 && Pe.numVerticalGlyphVertices === 0, Io = K || Pe.numIconVertices === 0;
|
11752
11752
|
Pn || Io ? Io ? Pn || (Bt = Bt && ht) : ht = Bt && ht : Bt = ht = Bt && ht;
|
11753
|
-
const
|
11754
|
-
if (ht && Ai.placeable && this.collisionIndex.insertCollisionBox(Ai.box, U, h.get("text-ignore-placement"), a.bucketInstanceId, Di && Di.placeable && In ? In : or, j.ID),
|
11753
|
+
const Fa = Bt && gi.placeable;
|
11754
|
+
if (ht && Ai.placeable && this.collisionIndex.insertCollisionBox(Ai.box, U, h.get("text-ignore-placement"), a.bucketInstanceId, Di && Di.placeable && In ? In : or, j.ID), Fa && this.collisionIndex.insertCollisionBox(gi.box, ne, h.get("icon-ignore-placement"), a.bucketInstanceId, To, j.ID), mi && ht && this.collisionIndex.insertCollisionCircles(mi.circles, U, h.get("text-ignore-placement"), a.bucketInstanceId, or, j.ID), o && this.storeCollisionData(a.bucketInstanceId, Ke, Ee, Ai, gi, mi), Pe.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
|
11755
11755
|
if (a.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
|
11756
11756
|
this.placements[Pe.crossTileID] = new Qt(ht || we, Bt || Se, fi || a.justReloaded), n[Pe.crossTileID] = !0;
|
11757
11757
|
};
|
@@ -11902,12 +11902,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11902
11902
|
const m = o[0] - nt, y = o[1] - nt, v = o[2] - nt, b = o[3] - nt;
|
11903
11903
|
u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, m, y), u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, v, y), u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, v, b), u.emplaceBack(t ? 1 : 0, n ? 1 : 0, a || 0, h || 0, m, b);
|
11904
11904
|
}
|
11905
|
-
const us = Math.pow(2, 25), bt = Math.pow(2, 24),
|
11905
|
+
const us = Math.pow(2, 25), bt = Math.pow(2, 24), qo = Math.pow(2, 17), Zo = Math.pow(2, 16), Ni = Math.pow(2, 9), Ui = Math.pow(2, 8), Ec = Math.pow(2, 1);
|
11906
11906
|
function ji(u) {
|
11907
11907
|
if (u.opacity === 0 && !u.placed) return 0;
|
11908
11908
|
if (u.opacity === 1 && u.placed) return 4294967295;
|
11909
11909
|
const t = u.placed ? 1 : 0, n = Math.floor(127 * u.opacity);
|
11910
|
-
return n * us + t * bt + n *
|
11910
|
+
return n * us + t * bt + n * qo + t * Zo + n * Ni + t * Ui + n * Ec + t;
|
11911
11911
|
}
|
11912
11912
|
const pi = 0;
|
11913
11913
|
function Hs() {
|
@@ -12098,7 +12098,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12098
12098
|
}
|
12099
12099
|
}
|
12100
12100
|
const ps = (u, t) => c.t(u, t && t.filter((n) => n.identifier !== "source.canvas")), Xr = c.ax();
|
12101
|
-
class
|
12101
|
+
class Go extends c.E {
|
12102
12102
|
constructor(t, n = {}) {
|
12103
12103
|
super(), this._rtlPluginLoaded = () => {
|
12104
12104
|
for (const o in this.sourceCaches) {
|
@@ -13318,7 +13318,7 @@ uniform ${P} ${A} u_${L};
|
|
13318
13318
|
this.vao && (this.context.deleteVertexArray(this.vao), this.vao = null);
|
13319
13319
|
}
|
13320
13320
|
}
|
13321
|
-
const
|
13321
|
+
const Ho = (u, t, n, o, a) => ({ u_matrix: u, u_texture: 0, u_ele_delta: t, u_fog_matrix: n, u_fog_color: o ? o.properties.get("fog-color") : c.aN.white, u_fog_ground_blend: o ? o.properties.get("fog-ground-blend") : 1, u_fog_ground_blend_opacity: o ? o.calculateFogBlendOpacity(a) : 0, u_horizon_color: o ? o.properties.get("horizon-color") : c.aN.white, u_horizon_fog_blend: o ? o.properties.get("horizon-fog-blend") : 1 });
|
13322
13322
|
function ms(u) {
|
13323
13323
|
const t = [];
|
13324
13324
|
for (let n = 0; n < u.length; n++) {
|
@@ -13448,11 +13448,11 @@ uniform ${P} ${A} u_${L};
|
|
13448
13448
|
}, yl = (u, t, n, o, a, h, m, y, v, b, P, A, L, B, N) => {
|
13449
13449
|
const Z = m.transform;
|
13450
13450
|
return c.e(_l(u, t, n, o, a, h, m, y, v, b, P, A, L, N), { u_gamma_scale: o ? Math.cos(Z._pitch) * Z.cameraToCenterDistance : 1, u_device_pixel_ratio: m.pixelRatio, u_is_halo: +B });
|
13451
|
-
}, Bc = (u, t, n, o, a, h, m, y, v, b, P, A, L, B) => c.e(yl(u, t, n, o, a, h, m, y, v, b, P, !0, A, !0, B), { u_texsize_icon: L, u_texture_icon: 1 }), to = (u, t, n) => ({ u_matrix: u, u_opacity: t, u_color: n }),
|
13451
|
+
}, Bc = (u, t, n, o, a, h, m, y, v, b, P, A, L, B) => c.e(yl(u, t, n, o, a, h, m, y, v, b, P, !0, A, !0, B), { u_texsize_icon: L, u_texture_icon: 1 }), to = (u, t, n) => ({ u_matrix: u, u_opacity: t, u_color: n }), Wo = (u, t, n, o, a, h) => c.e(function(m, y, v, b) {
|
13452
13452
|
const P = v.imageManager.getPattern(m.from.toString()), A = v.imageManager.getPattern(m.to.toString()), { width: L, height: B } = v.imageManager.getPixelSize(), N = Math.pow(2, b.tileID.overscaledZ), Z = b.tileSize * Math.pow(2, v.transform.tileZoom) / N, j = Z * (b.tileID.canonical.x + b.tileID.wrap * N), H = Z * b.tileID.canonical.y;
|
13453
13453
|
return { u_image: 0, u_pattern_tl_a: P.tl, u_pattern_br_a: P.br, u_pattern_tl_b: A.tl, u_pattern_br_b: A.br, u_texsize: [L, B], u_mix: y.t, u_pattern_size_a: P.displaySize, u_pattern_size_b: A.displaySize, u_scale_a: y.fromScale, u_scale_b: y.toScale, u_tile_units_to_pixels: 1 / rt(b, 1, v.transform.tileZoom), u_pixel_coord_upper: [j >> 16, H >> 16], u_pixel_coord_lower: [65535 & j, 65535 & H] };
|
13454
13454
|
}(o, h, n, a), { u_matrix: u, u_opacity: t }), io = { fillExtrusion: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_lightpos: new c.aO(u, t.u_lightpos), u_lightintensity: new c.aJ(u, t.u_lightintensity), u_lightcolor: new c.aO(u, t.u_lightcolor), u_vertical_gradient: new c.aJ(u, t.u_vertical_gradient), u_opacity: new c.aJ(u, t.u_opacity) }), fillExtrusionPattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_lightpos: new c.aO(u, t.u_lightpos), u_lightintensity: new c.aJ(u, t.u_lightintensity), u_lightcolor: new c.aO(u, t.u_lightcolor), u_vertical_gradient: new c.aJ(u, t.u_vertical_gradient), u_height_factor: new c.aJ(u, t.u_height_factor), u_image: new c.aI(u, t.u_image), u_texsize: new c.aP(u, t.u_texsize), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade), u_opacity: new c.aJ(u, t.u_opacity) }), fill: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix) }), fillPattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_image: new c.aI(u, t.u_image), u_texsize: new c.aP(u, t.u_texsize), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade) }), fillOutline: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_world: new c.aP(u, t.u_world) }), fillOutlinePattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_world: new c.aP(u, t.u_world), u_image: new c.aI(u, t.u_image), u_texsize: new c.aP(u, t.u_texsize), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade) }), circle: (u, t) => ({ u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_scale_with_map: new c.aI(u, t.u_scale_with_map), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_extrude_scale: new c.aP(u, t.u_extrude_scale), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_matrix: new c.aK(u, t.u_matrix) }), collisionBox: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_pixel_extrude_scale: new c.aP(u, t.u_pixel_extrude_scale) }), collisionCircle: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_inv_matrix: new c.aK(u, t.u_inv_matrix), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_viewport_size: new c.aP(u, t.u_viewport_size) }), debug: (u, t) => ({ u_color: new c.aM(u, t.u_color), u_matrix: new c.aK(u, t.u_matrix), u_overlay: new c.aI(u, t.u_overlay), u_overlay_scale: new c.aJ(u, t.u_overlay_scale) }), clippingMask: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix) }), heatmap: (u, t) => ({ u_extrude_scale: new c.aJ(u, t.u_extrude_scale), u_intensity: new c.aJ(u, t.u_intensity), u_matrix: new c.aK(u, t.u_matrix) }), heatmapTexture: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_world: new c.aP(u, t.u_world), u_image: new c.aI(u, t.u_image), u_color_ramp: new c.aI(u, t.u_color_ramp), u_opacity: new c.aJ(u, t.u_opacity) }), hillshade: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_image: new c.aI(u, t.u_image), u_latrange: new c.aP(u, t.u_latrange), u_light: new c.aP(u, t.u_light), u_shadow: new c.aM(u, t.u_shadow), u_highlight: new c.aM(u, t.u_highlight), u_accent: new c.aM(u, t.u_accent) }), hillshadePrepare: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_image: new c.aI(u, t.u_image), u_dimension: new c.aP(u, t.u_dimension), u_zoom: new c.aJ(u, t.u_zoom), u_unpack: new c.aL(u, t.u_unpack) }), line: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels) }), lineGradient: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels), u_image: new c.aI(u, t.u_image), u_image_height: new c.aJ(u, t.u_image_height) }), linePattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_texsize: new c.aP(u, t.u_texsize), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_image: new c.aI(u, t.u_image), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels), u_scale: new c.aO(u, t.u_scale), u_fade: new c.aJ(u, t.u_fade) }), lineSDF: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ratio: new c.aJ(u, t.u_ratio), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_units_to_pixels: new c.aP(u, t.u_units_to_pixels), u_patternscale_a: new c.aP(u, t.u_patternscale_a), u_patternscale_b: new c.aP(u, t.u_patternscale_b), u_sdfgamma: new c.aJ(u, t.u_sdfgamma), u_image: new c.aI(u, t.u_image), u_tex_y_a: new c.aJ(u, t.u_tex_y_a), u_tex_y_b: new c.aJ(u, t.u_tex_y_b), u_mix: new c.aJ(u, t.u_mix) }), raster: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_tl_parent: new c.aP(u, t.u_tl_parent), u_scale_parent: new c.aJ(u, t.u_scale_parent), u_buffer_scale: new c.aJ(u, t.u_buffer_scale), u_fade_t: new c.aJ(u, t.u_fade_t), u_opacity: new c.aJ(u, t.u_opacity), u_image0: new c.aI(u, t.u_image0), u_image1: new c.aI(u, t.u_image1), u_brightness_low: new c.aJ(u, t.u_brightness_low), u_brightness_high: new c.aJ(u, t.u_brightness_high), u_saturation_factor: new c.aJ(u, t.u_saturation_factor), u_contrast_factor: new c.aJ(u, t.u_contrast_factor), u_spin_weights: new c.aO(u, t.u_spin_weights) }), symbolIcon: (u, t) => ({ u_is_size_zoom_constant: new c.aI(u, t.u_is_size_zoom_constant), u_is_size_feature_constant: new c.aI(u, t.u_is_size_feature_constant), u_size_t: new c.aJ(u, t.u_size_t), u_size: new c.aJ(u, t.u_size), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_pitch: new c.aJ(u, t.u_pitch), u_rotate_symbol: new c.aI(u, t.u_rotate_symbol), u_aspect_ratio: new c.aJ(u, t.u_aspect_ratio), u_fade_change: new c.aJ(u, t.u_fade_change), u_matrix: new c.aK(u, t.u_matrix), u_label_plane_matrix: new c.aK(u, t.u_label_plane_matrix), u_coord_matrix: new c.aK(u, t.u_coord_matrix), u_is_text: new c.aI(u, t.u_is_text), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_is_along_line: new c.aI(u, t.u_is_along_line), u_is_variable_anchor: new c.aI(u, t.u_is_variable_anchor), u_texsize: new c.aP(u, t.u_texsize), u_texture: new c.aI(u, t.u_texture), u_translation: new c.aP(u, t.u_translation), u_pitched_scale: new c.aJ(u, t.u_pitched_scale) }), symbolSDF: (u, t) => ({ u_is_size_zoom_constant: new c.aI(u, t.u_is_size_zoom_constant), u_is_size_feature_constant: new c.aI(u, t.u_is_size_feature_constant), u_size_t: new c.aJ(u, t.u_size_t), u_size: new c.aJ(u, t.u_size), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_pitch: new c.aJ(u, t.u_pitch), u_rotate_symbol: new c.aI(u, t.u_rotate_symbol), u_aspect_ratio: new c.aJ(u, t.u_aspect_ratio), u_fade_change: new c.aJ(u, t.u_fade_change), u_matrix: new c.aK(u, t.u_matrix), u_label_plane_matrix: new c.aK(u, t.u_label_plane_matrix), u_coord_matrix: new c.aK(u, t.u_coord_matrix), u_is_text: new c.aI(u, t.u_is_text), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_is_along_line: new c.aI(u, t.u_is_along_line), u_is_variable_anchor: new c.aI(u, t.u_is_variable_anchor), u_texsize: new c.aP(u, t.u_texsize), u_texture: new c.aI(u, t.u_texture), u_gamma_scale: new c.aJ(u, t.u_gamma_scale), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_is_halo: new c.aI(u, t.u_is_halo), u_translation: new c.aP(u, t.u_translation), u_pitched_scale: new c.aJ(u, t.u_pitched_scale) }), symbolTextAndIcon: (u, t) => ({ u_is_size_zoom_constant: new c.aI(u, t.u_is_size_zoom_constant), u_is_size_feature_constant: new c.aI(u, t.u_is_size_feature_constant), u_size_t: new c.aJ(u, t.u_size_t), u_size: new c.aJ(u, t.u_size), u_camera_to_center_distance: new c.aJ(u, t.u_camera_to_center_distance), u_pitch: new c.aJ(u, t.u_pitch), u_rotate_symbol: new c.aI(u, t.u_rotate_symbol), u_aspect_ratio: new c.aJ(u, t.u_aspect_ratio), u_fade_change: new c.aJ(u, t.u_fade_change), u_matrix: new c.aK(u, t.u_matrix), u_label_plane_matrix: new c.aK(u, t.u_label_plane_matrix), u_coord_matrix: new c.aK(u, t.u_coord_matrix), u_is_text: new c.aI(u, t.u_is_text), u_pitch_with_map: new c.aI(u, t.u_pitch_with_map), u_is_along_line: new c.aI(u, t.u_is_along_line), u_is_variable_anchor: new c.aI(u, t.u_is_variable_anchor), u_texsize: new c.aP(u, t.u_texsize), u_texsize_icon: new c.aP(u, t.u_texsize_icon), u_texture: new c.aI(u, t.u_texture), u_texture_icon: new c.aI(u, t.u_texture_icon), u_gamma_scale: new c.aJ(u, t.u_gamma_scale), u_device_pixel_ratio: new c.aJ(u, t.u_device_pixel_ratio), u_is_halo: new c.aI(u, t.u_is_halo), u_translation: new c.aP(u, t.u_translation), u_pitched_scale: new c.aJ(u, t.u_pitched_scale) }), background: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_opacity: new c.aJ(u, t.u_opacity), u_color: new c.aM(u, t.u_color) }), backgroundPattern: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_opacity: new c.aJ(u, t.u_opacity), u_image: new c.aI(u, t.u_image), u_pattern_tl_a: new c.aP(u, t.u_pattern_tl_a), u_pattern_br_a: new c.aP(u, t.u_pattern_br_a), u_pattern_tl_b: new c.aP(u, t.u_pattern_tl_b), u_pattern_br_b: new c.aP(u, t.u_pattern_br_b), u_texsize: new c.aP(u, t.u_texsize), u_mix: new c.aJ(u, t.u_mix), u_pattern_size_a: new c.aP(u, t.u_pattern_size_a), u_pattern_size_b: new c.aP(u, t.u_pattern_size_b), u_scale_a: new c.aJ(u, t.u_scale_a), u_scale_b: new c.aJ(u, t.u_scale_b), u_pixel_coord_upper: new c.aP(u, t.u_pixel_coord_upper), u_pixel_coord_lower: new c.aP(u, t.u_pixel_coord_lower), u_tile_units_to_pixels: new c.aJ(u, t.u_tile_units_to_pixels) }), terrain: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_texture: new c.aI(u, t.u_texture), u_ele_delta: new c.aJ(u, t.u_ele_delta), u_fog_matrix: new c.aK(u, t.u_fog_matrix), u_fog_color: new c.aM(u, t.u_fog_color), u_fog_ground_blend: new c.aJ(u, t.u_fog_ground_blend), u_fog_ground_blend_opacity: new c.aJ(u, t.u_fog_ground_blend_opacity), u_horizon_color: new c.aM(u, t.u_horizon_color), u_horizon_fog_blend: new c.aJ(u, t.u_horizon_fog_blend) }), terrainDepth: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_ele_delta: new c.aJ(u, t.u_ele_delta) }), terrainCoords: (u, t) => ({ u_matrix: new c.aK(u, t.u_matrix), u_texture: new c.aI(u, t.u_texture), u_terrain_coords_id: new c.aJ(u, t.u_terrain_coords_id), u_ele_delta: new c.aJ(u, t.u_ele_delta) }), sky: (u, t) => ({ u_sky_color: new c.aM(u, t.u_sky_color), u_horizon_color: new c.aM(u, t.u_horizon_color), u_horizon: new c.aJ(u, t.u_horizon), u_sky_horizon_blend: new c.aJ(u, t.u_sky_horizon_blend) }) };
|
13455
|
-
class
|
13455
|
+
class Xo {
|
13456
13456
|
constructor(t, n, o) {
|
13457
13457
|
this.context = t;
|
13458
13458
|
const a = t.gl;
|
@@ -13470,7 +13470,7 @@ uniform ${P} ${A} u_${L};
|
|
13470
13470
|
this.buffer && (this.context.gl.deleteBuffer(this.buffer), delete this.buffer);
|
13471
13471
|
}
|
13472
13472
|
}
|
13473
|
-
const
|
13473
|
+
const Jo = { Int8: "BYTE", Uint8: "UNSIGNED_BYTE", Int16: "SHORT", Uint16: "UNSIGNED_SHORT", Int32: "INT", Uint32: "UNSIGNED_INT", Float32: "FLOAT" };
|
13474
13474
|
class vr {
|
13475
13475
|
constructor(t, n, o, a) {
|
13476
13476
|
this.length = n.length, this.attributes = o, this.itemSize = n.bytesPerElement, this.dynamicDraw = a, this.context = t;
|
@@ -13494,20 +13494,20 @@ uniform ${P} ${A} u_${L};
|
|
13494
13494
|
setVertexAttribPointers(t, n, o) {
|
13495
13495
|
for (let a = 0; a < this.attributes.length; a++) {
|
13496
13496
|
const h = this.attributes[a], m = n.attributes[h.name];
|
13497
|
-
m !== void 0 && t.vertexAttribPointer(m, h.components, t[
|
13497
|
+
m !== void 0 && t.vertexAttribPointer(m, h.components, t[Jo[h.type]], !1, this.itemSize, h.offset + this.itemSize * (o || 0));
|
13498
13498
|
}
|
13499
13499
|
}
|
13500
13500
|
destroy() {
|
13501
13501
|
this.buffer && (this.context.gl.deleteBuffer(this.buffer), delete this.buffer);
|
13502
13502
|
}
|
13503
13503
|
}
|
13504
|
-
const
|
13504
|
+
const Ko = /* @__PURE__ */ new WeakMap();
|
13505
13505
|
function On(u) {
|
13506
13506
|
var t;
|
13507
|
-
if (
|
13507
|
+
if (Ko.has(u)) return Ko.get(u);
|
13508
13508
|
{
|
13509
13509
|
const n = (t = u.getParameter(u.VERSION)) === null || t === void 0 ? void 0 : t.startsWith("WebGL 2.0");
|
13510
|
-
return
|
13510
|
+
return Ko.set(u, n), n;
|
13511
13511
|
}
|
13512
13512
|
}
|
13513
13513
|
class ut {
|
@@ -13605,7 +13605,7 @@ uniform ${P} ${A} u_${L};
|
|
13605
13605
|
t ? n.enable(n.STENCIL_TEST) : n.disable(n.STENCIL_TEST), this.current = t, this.dirty = !1;
|
13606
13606
|
}
|
13607
13607
|
}
|
13608
|
-
class
|
13608
|
+
class Yo extends ut {
|
13609
13609
|
getDefault() {
|
13610
13610
|
return [0, 1];
|
13611
13611
|
}
|
@@ -13770,7 +13770,7 @@ uniform ${P} ${A} u_${L};
|
|
13770
13770
|
n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, t), this.current = t, this.dirty = !1;
|
13771
13771
|
}
|
13772
13772
|
}
|
13773
|
-
class
|
13773
|
+
class Qo extends ut {
|
13774
13774
|
getDefault() {
|
13775
13775
|
return null;
|
13776
13776
|
}
|
@@ -13819,7 +13819,7 @@ uniform ${P} ${A} u_${L};
|
|
13819
13819
|
return null;
|
13820
13820
|
}
|
13821
13821
|
}
|
13822
|
-
class
|
13822
|
+
class ea extends bs {
|
13823
13823
|
setDirty() {
|
13824
13824
|
this.dirty = !0;
|
13825
13825
|
}
|
@@ -13830,7 +13830,7 @@ uniform ${P} ${A} u_${L};
|
|
13830
13830
|
n.framebufferTexture2D(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0, n.TEXTURE_2D, t, 0), this.current = t, this.dirty = !1;
|
13831
13831
|
}
|
13832
13832
|
}
|
13833
|
-
class
|
13833
|
+
class ta extends bs {
|
13834
13834
|
set(t) {
|
13835
13835
|
if (t === this.current && !this.dirty) return;
|
13836
13836
|
this.context.bindFramebuffer.set(this.parent);
|
@@ -13846,11 +13846,11 @@ uniform ${P} ${A} u_${L};
|
|
13846
13846
|
n.framebufferRenderbuffer(n.FRAMEBUFFER, n.DEPTH_STENCIL_ATTACHMENT, n.RENDERBUFFER, t), this.current = t, this.dirty = !1;
|
13847
13847
|
}
|
13848
13848
|
}
|
13849
|
-
class
|
13849
|
+
class ia {
|
13850
13850
|
constructor(t, n, o, a, h) {
|
13851
13851
|
this.context = t, this.width = n, this.height = o;
|
13852
13852
|
const m = t.gl, y = this.framebuffer = m.createFramebuffer();
|
13853
|
-
if (this.colorAttachment = new
|
13853
|
+
if (this.colorAttachment = new ea(t, y), a) this.depthAttachment = h ? new Ml(t, y) : new ta(t, y);
|
13854
13854
|
else if (h) throw new Error("Stencil cannot be set without depth");
|
13855
13855
|
if (m.checkFramebufferStatus(m.FRAMEBUFFER) !== m.FRAMEBUFFER_COMPLETE) throw new Error("Framebuffer is not complete");
|
13856
13856
|
}
|
@@ -13869,10 +13869,10 @@ uniform ${P} ${A} u_${L};
|
|
13869
13869
|
}
|
13870
13870
|
}
|
13871
13871
|
kt.Replace = [1, 0], kt.disabled = new kt(kt.Replace, c.aN.transparent, [!1, !1, !1, !1]), kt.unblended = new kt(kt.Replace, c.aN.transparent, [!0, !0, !0, !0]), kt.alphaBlended = new kt([1, 771], c.aN.transparent, [!0, !0, !0, !0]);
|
13872
|
-
class
|
13872
|
+
class ra {
|
13873
13873
|
constructor(t) {
|
13874
13874
|
var n, o;
|
13875
|
-
if (this.gl = t, this.clearColor = new xs(this), this.clearDepth = new Fc(this), this.clearStencil = new ro(this), this.colorMask = new Oc(this), this.depthMask = new Vn(this), this.stencilMask = new Vc(this), this.stencilFunc = new xl(this), this.stencilOp = new Nc(this), this.stencilTest = new vl(this), this.depthRange = new
|
13875
|
+
if (this.gl = t, this.clearColor = new xs(this), this.clearDepth = new Fc(this), this.clearStencil = new ro(this), this.colorMask = new Oc(this), this.depthMask = new Vn(this), this.stencilMask = new Vc(this), this.stencilFunc = new xl(this), this.stencilOp = new Nc(this), this.stencilTest = new vl(this), this.depthRange = new Yo(this), this.depthTest = new bl(this), this.depthFunc = new wl(this), this.blend = new Sl(this), this.blendFunc = new Tl(this), this.blendColor = new _n(this), this.blendEquation = new Il(this), this.cullFace = new Uc(this), this.cullFaceSide = new jc(this), this.frontFace = new Pl(this), this.program = new vs(this), this.activeTexture = new $c(this), this.viewport = new no(this), this.bindFramebuffer = new qc(this), this.bindRenderbuffer = new Zc(this), this.bindTexture = new Al(this), this.bindVertexBuffer = new Cl(this), this.bindElementBuffer = new kl(this), this.bindVertexArray = new Qo(this), this.pixelStoreUnpack = new El(this), this.pixelStoreUnpackPremultiplyAlpha = new so(this), this.pixelStoreUnpackFlipY = new Dr(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic") || t.getExtension("MOZ_EXT_texture_filter_anisotropic") || t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), On(t)) {
|
13876
13876
|
this.HALF_FLOAT = t.HALF_FLOAT;
|
13877
13877
|
const a = t.getExtension("EXT_color_buffer_half_float");
|
13878
13878
|
this.RGBA16F = (n = t.RGBA16F) !== null && n !== void 0 ? n : a == null ? void 0 : a.RGBA16F_EXT, this.RGB16F = (o = t.RGB16F) !== null && o !== void 0 ? o : a == null ? void 0 : a.RGB16F_EXT, t.getExtension("EXT_color_buffer_float");
|
@@ -13889,7 +13889,7 @@ uniform ${P} ${A} u_${L};
|
|
13889
13889
|
this.clearColor.dirty = !0, this.clearDepth.dirty = !0, this.clearStencil.dirty = !0, this.colorMask.dirty = !0, this.depthMask.dirty = !0, this.stencilMask.dirty = !0, this.stencilFunc.dirty = !0, this.stencilOp.dirty = !0, this.stencilTest.dirty = !0, this.depthRange.dirty = !0, this.depthTest.dirty = !0, this.depthFunc.dirty = !0, this.blend.dirty = !0, this.blendFunc.dirty = !0, this.blendColor.dirty = !0, this.blendEquation.dirty = !0, this.cullFace.dirty = !0, this.cullFaceSide.dirty = !0, this.frontFace.dirty = !0, this.program.dirty = !0, this.activeTexture.dirty = !0, this.viewport.dirty = !0, this.bindFramebuffer.dirty = !0, this.bindRenderbuffer.dirty = !0, this.bindTexture.dirty = !0, this.bindVertexBuffer.dirty = !0, this.bindElementBuffer.dirty = !0, this.bindVertexArray.dirty = !0, this.pixelStoreUnpack.dirty = !0, this.pixelStoreUnpackPremultiplyAlpha.dirty = !0, this.pixelStoreUnpackFlipY.dirty = !0;
|
13890
13890
|
}
|
13891
13891
|
createIndexBuffer(t, n) {
|
13892
|
-
return new
|
13892
|
+
return new Xo(this, t, n);
|
13893
13893
|
}
|
13894
13894
|
createVertexBuffer(t, n, o) {
|
13895
13895
|
return new vr(this, t, n, o);
|
@@ -13899,7 +13899,7 @@ uniform ${P} ${A} u_${L};
|
|
13899
13899
|
return this.bindRenderbuffer.set(h), a.renderbufferStorage(a.RENDERBUFFER, t, n, o), this.bindRenderbuffer.set(null), h;
|
13900
13900
|
}
|
13901
13901
|
createFramebuffer(t, n, o, a) {
|
13902
|
-
return new
|
13902
|
+
return new ia(this, t, n, o, a);
|
13903
13903
|
}
|
13904
13904
|
clear({ color: t, depth: n, stencil: o }) {
|
13905
13905
|
const a = this.gl;
|
@@ -13936,13 +13936,13 @@ uniform ${P} ${A} u_${L};
|
|
13936
13936
|
}
|
13937
13937
|
}
|
13938
13938
|
ct.ReadOnly = !1, ct.ReadWrite = !0, ct.disabled = new ct(519, ct.ReadOnly, [0, 1]);
|
13939
|
-
const
|
13939
|
+
const na = 7680;
|
13940
13940
|
class Nt {
|
13941
13941
|
constructor(t, n, o, a, h, m) {
|
13942
13942
|
this.test = t, this.ref = n, this.mask = o, this.fail = a, this.depthFail = h, this.pass = m;
|
13943
13943
|
}
|
13944
13944
|
}
|
13945
|
-
Nt.disabled = new Nt({ func: 519, mask: 0 }, 0, 0,
|
13945
|
+
Nt.disabled = new Nt({ func: 519, mask: 0 }, 0, 0, na, na, na);
|
13946
13946
|
class Dt {
|
13947
13947
|
constructor(t, n, o) {
|
13948
13948
|
this.enable = t, this.mode = n, this.frontFace = o;
|
@@ -13988,7 +13988,7 @@ uniform ${P} ${A} u_${L};
|
|
13988
13988
|
j.destroy(), Z.destroy();
|
13989
13989
|
}
|
13990
13990
|
Dt.disabled = new Dt(!1, 1029, 2305), Dt.backCCW = new Dt(!0, 1029, 2305);
|
13991
|
-
const
|
13991
|
+
const sa = c.ao(new Float32Array(16));
|
13992
13992
|
function oo(u, t, n, o, a, h) {
|
13993
13993
|
const { horizontalAlign: m, verticalAlign: y } = c.av(u);
|
13994
13994
|
return new c.P((-(m - 0.5) * t / a + o[0]) * h, (-(y - 0.5) * n / a + o[1]) * h);
|
@@ -14035,7 +14035,7 @@ uniform ${P} ${A} u_${L};
|
|
14035
14035
|
}
|
14036
14036
|
u.text.dynamicLayoutVertexBuffer.updateData(Z);
|
14037
14037
|
}
|
14038
|
-
function
|
14038
|
+
function oa(u, t, n) {
|
14039
14039
|
return n.iconsInText && t ? "symbolTextAndIcon" : u ? "symbolSDF" : "symbolIcon";
|
14040
14040
|
}
|
14041
14041
|
function Yr(u, t, n, o, a, h, m, y, v, b, P, A) {
|
@@ -14047,19 +14047,19 @@ uniform ${P} ${A} u_${L};
|
|
14047
14047
|
if (!Ve) continue;
|
14048
14048
|
const Qe = a ? Ve.text : Ve.icon;
|
14049
14049
|
if (!Qe || !Qe.segments.get().length || !Qe.hasVisibleVertices) continue;
|
14050
|
-
const Pe = Qe.programConfigurations.get(n.id), Ee = a || Ve.sdfIcons, Ke = a ? Ve.textSizeData : Ve.iconSizeData, Rt = H || N.pitch !== 0, st = u.useProgram(
|
14050
|
+
const Pe = Qe.programConfigurations.get(n.id), Ee = a || Ve.sdfIcons, Ke = a ? Ve.textSizeData : Ve.iconSizeData, Rt = H || N.pitch !== 0, st = u.useProgram(oa(Ee, a, Ve), Pe), ht = c.ah(Ke, N.zoom), Bt = u.style.map.terrain && u.style.map.terrain.getTerrainData(we);
|
14051
14051
|
let fi, sr, Ft, Di, Ai = [0, 0], mi = null;
|
14052
14052
|
if (a) sr = Se.glyphAtlasTexture, Ft = B.LINEAR, fi = Se.glyphAtlasTexture.size, Ve.iconsInText && (Ai = Se.imageAtlasTexture.size, mi = Se.imageAtlasTexture, Di = Rt || u.options.rotating || u.options.zooming || Ke.kind === "composite" || Ke.kind === "camera" ? B.LINEAR : B.NEAREST);
|
14053
14053
|
else {
|
14054
14054
|
const jt = n.layout.get("icon-size").constantOr(0) !== 1 || Ve.iconsNeedLinear;
|
14055
14055
|
sr = Se.imageAtlasTexture, Ft = Ee || u.options.rotating || u.options.zooming || jt || Rt ? B.LINEAR : B.NEAREST, fi = Se.imageAtlasTexture.size;
|
14056
14056
|
}
|
14057
|
-
const gi = rt(Se, 1, u.transform.zoom), or = ee ? we.posMatrix :
|
14057
|
+
const gi = rt(Se, 1, u.transform.zoom), or = ee ? we.posMatrix : sa, In = Wr(or, H, j, u.transform, gi), To = xr(or, H, j, u.transform, gi), Wn = xr(we.posMatrix, H, j, u.transform, gi), Pn = Z.translatePosition(u.transform, Se, h, m), Io = be && Ve.hasTextData(), Fa = n.layout.get("icon-text-fit") !== "none" && Io && Ve.hasIconData();
|
14058
14058
|
if (K) {
|
14059
|
-
const jt = u.style.map.terrain ? (
|
14059
|
+
const jt = u.style.map.terrain ? (Oa, ri) => u.style.map.terrain.getElevation(we, Oa, ri) : null, Jn = n.layout.get("text-rotation-alignment") === "map";
|
14060
14060
|
O(Ve, we.posMatrix, u, a, In, Wn, H, b, Jn, Z, we.toUnwrapped(), N.width, N.height, Pn, jt);
|
14061
14061
|
}
|
14062
|
-
const li = we.posMatrix, ar = a && be ||
|
14062
|
+
const li = we.posMatrix, ar = a && be || Fa, tn = K || ar ? sa : In, Xn = To, _i = Ee && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
14063
14063
|
let yi;
|
14064
14064
|
yi = Ee ? Ve.iconsInText ? Bc(Ke.kind, ht, U, H, K, ar, u, li, tn, Xn, Pn, fi, Ai, Re) : yl(Ke.kind, ht, U, H, K, ar, u, li, tn, Xn, Pn, a, fi, !0, Re) : _l(Ke.kind, ht, U, H, K, ar, u, li, tn, Xn, Pn, a, fi, Re);
|
14065
14065
|
const si = { program: st, buffers: Qe, uniformValues: yi, atlasTexture: sr, atlasTextureIcon: mi, atlasInterpolation: Ft, atlasInterpolationIcon: Di, isSDF: Ee, hasHalo: _i };
|
@@ -14093,7 +14093,7 @@ uniform ${P} ${A} u_${L};
|
|
14093
14093
|
}
|
14094
14094
|
m && y && u.setConstantPatternPositions(m, y);
|
14095
14095
|
}
|
14096
|
-
function
|
14096
|
+
function aa(u, t, n, o, a, h, m) {
|
14097
14097
|
const y = u.context.gl, v = "fill-pattern", b = n.paint.get(v), P = b && b.constantOr(1), A = n.getCrossfadeParameters();
|
14098
14098
|
let L, B, N, Z, j;
|
14099
14099
|
m ? (B = P && !n.getPaintProperty("fill-outline-color") ? "fillOutlinePattern" : "fillOutline", L = y.LINES) : (B = P ? "fillPattern" : "fill", L = y.TRIANGLES);
|
@@ -14125,7 +14125,7 @@ uniform ${P} ${A} u_${L};
|
|
14125
14125
|
ee.draw(y, y.gl.TRIANGLES, a, h, m, Dt.backCCW, me, K, n.id, H.layoutVertexBuffer, H.indexBuffer, H.segments, n.paint, u.transform.zoom, U, u.style.map.terrain && H.centroidVertexBuffer);
|
14126
14126
|
}
|
14127
14127
|
}
|
14128
|
-
function
|
14128
|
+
function la(u, t, n, o, a, h, m) {
|
14129
14129
|
const y = u.context, v = y.gl, b = n.fbo;
|
14130
14130
|
if (!b) return;
|
14131
14131
|
const P = u.useProgram("hillshade"), A = u.style.map.terrain && u.style.map.terrain.getTerrainData(t);
|
@@ -14169,7 +14169,7 @@ uniform ${P} ${A} u_${L};
|
|
14169
14169
|
function vn(u, t, n, o) {
|
14170
14170
|
Un(u, 0, t + n / 2, u.transform.width, n, o);
|
14171
14171
|
}
|
14172
|
-
function
|
14172
|
+
function ca(u, t, n, o) {
|
14173
14173
|
Un(u, t - n / 2, 0, n, u.transform.height, o);
|
14174
14174
|
}
|
14175
14175
|
function Un(u, t, n, o, a, h) {
|
@@ -14193,7 +14193,7 @@ uniform ${P} ${A} u_${L};
|
|
14193
14193
|
for (const b of n) {
|
14194
14194
|
const P = u.renderToTexture.getTexture(b), A = t.getTerrainData(b.tileID);
|
14195
14195
|
o.activeTexture.set(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, P.texture);
|
14196
|
-
const L = u.transform.calculatePosMatrix(b.tileID.toUnwrapped()), B = t.getMeshFrameDelta(u.transform.zoom), N = u.transform.calculateFogMatrix(b.tileID.toUnwrapped()), Z =
|
14196
|
+
const L = u.transform.calculatePosMatrix(b.tileID.toUnwrapped()), B = t.getMeshFrameDelta(u.transform.zoom), N = u.transform.calculateFogMatrix(b.tileID.toUnwrapped()), Z = Ho(L, B, N, u.style.sky, u.transform.pitch);
|
14197
14197
|
y.draw(o, a.TRIANGLES, m, Nt.disabled, h, Dt.backCCW, Z, A, "terrain", v.vertexBuffer, v.indexBuffer, v.segments);
|
14198
14198
|
}
|
14199
14199
|
}
|
@@ -14207,7 +14207,7 @@ uniform ${P} ${A} u_${L};
|
|
14207
14207
|
}
|
14208
14208
|
class Rl {
|
14209
14209
|
constructor(t, n) {
|
14210
|
-
this.context = new
|
14210
|
+
this.context = new ra(t), this.transform = n, this._tileTextures = {}, this.terrainFacilitator = { dirty: !0, matrix: c.ao(new Float64Array(16)), renderTime: 0 }, this.setup(), this.numSublayers = Je.maxUnderzooming + Je.maxOverzooming + 1, this.depthEpsilon = 1 / Math.pow(2, 16), this.crossTileSymbolIndex = new Xi();
|
14211
14211
|
}
|
14212
14212
|
resize(t, n, o) {
|
14213
14213
|
if (this.width = Math.floor(t * o), this.height = Math.floor(n * o), this.pixelRatio = o, this.context.viewport.set([0, 0, this.width, this.height]), this.style) for (const a of this.style._order) this.style._layers[a].resize();
|
@@ -14330,7 +14330,7 @@ uniform ${P} ${A} u_${L};
|
|
14330
14330
|
}
|
14331
14331
|
this.options.showPadding && function(b) {
|
14332
14332
|
const P = b.transform.padding;
|
14333
|
-
vn(b, b.transform.height - (P.top || 0), 3, uo), vn(b, P.bottom || 0, 3, Ss),
|
14333
|
+
vn(b, b.transform.height - (P.top || 0), 3, uo), vn(b, P.bottom || 0, 3, Ss), ca(b, P.left || 0, 3, po), ca(b, b.transform.width - (P.right || 0), 3, Dl);
|
14334
14334
|
const A = b.transform.centerPoint;
|
14335
14335
|
(function(L, B, N, Z) {
|
14336
14336
|
Un(L, B - 1, N - 10, 2, 20, Z), Un(L, B - 10, N - 1, 20, 2, Z);
|
@@ -14488,11 +14488,11 @@ uniform ${P} ${A} u_${L};
|
|
14488
14488
|
const A = h.colorModeForRenderPass(), L = y.paint.get("fill-pattern"), B = h.opaquePassEnabledForLayer() && !L.constantOr(1) && b.constantOr(c.aN.transparent).a === 1 && P.constantOr(0) === 1 ? "opaque" : "translucent";
|
14489
14489
|
if (h.renderPass === B) {
|
14490
14490
|
const N = h.depthModeForSublayer(1, h.renderPass === "opaque" ? ct.ReadWrite : ct.ReadOnly);
|
14491
|
-
|
14491
|
+
aa(h, m, y, v, N, A, !1);
|
14492
14492
|
}
|
14493
14493
|
if (h.renderPass === "translucent" && y.paint.get("fill-antialias")) {
|
14494
14494
|
const N = h.depthModeForSublayer(y.getPaintProperty("fill-outline-color") ? 2 : 0, ct.ReadOnly);
|
14495
|
-
|
14495
|
+
aa(h, m, y, v, N, A, !0);
|
14496
14496
|
}
|
14497
14497
|
})(t, n, o, a);
|
14498
14498
|
break;
|
@@ -14515,7 +14515,7 @@ uniform ${P} ${A} u_${L};
|
|
14515
14515
|
const b = h.context, P = h.depthModeForSublayer(0, ct.ReadOnly), A = h.colorModeForRenderPass(), [L, B] = h.renderPass === "translucent" ? h.stencilConfigForOverlap(v) : [{}, v];
|
14516
14516
|
for (const N of B) {
|
14517
14517
|
const Z = m.getTile(N);
|
14518
|
-
Z.needsHillshadePrepare !== void 0 && Z.needsHillshadePrepare && h.renderPass === "offscreen" ? xn(h, Z, y, P, Nt.disabled, A) : h.renderPass === "translucent" &&
|
14518
|
+
Z.needsHillshadePrepare !== void 0 && Z.needsHillshadePrepare && h.renderPass === "offscreen" ? xn(h, Z, y, P, Nt.disabled, A) : h.renderPass === "translucent" && la(h, N, Z, y, P, L[N.overscaledZ], A);
|
14519
14519
|
}
|
14520
14520
|
b.viewport.set([0, 0, h.width, h.height]);
|
14521
14521
|
})(t, n, o, a);
|
@@ -14548,7 +14548,7 @@ uniform ${P} ${A} u_${L};
|
|
14548
14548
|
Z && (A.activeTexture.set(L.TEXTURE0), h.imageManager.bind(h.context));
|
14549
14549
|
const le = y.getCrossfadeParameters();
|
14550
14550
|
for (const me of ne) {
|
14551
|
-
const be = v ? me.posMatrix : h.transform.calculatePosMatrix(me.toUnwrapped()), De = Z ?
|
14551
|
+
const be = v ? me.posMatrix : h.transform.calculatePosMatrix(me.toUnwrapped()), De = Z ? Wo(be, P, h, Z, { tileID: me, tileSize: N }, le) : to(be, P, b), Re = h.style.map.terrain && h.style.map.terrain.getTerrainData(me);
|
14552
14552
|
ee.draw(A, L.TRIANGLES, K, H, U, Dt.disabled, De, Re, y.id, h.tileExtentBuffer, h.quadTriangleIndexBuffer, h.tileExtentSegments);
|
14553
14553
|
}
|
14554
14554
|
})(t, 0, o, a);
|
@@ -14699,13 +14699,13 @@ uniform ${P} ${A} u_${L};
|
|
14699
14699
|
return { top: this.top, bottom: this.bottom, left: this.left, right: this.right };
|
14700
14700
|
}
|
14701
14701
|
}
|
14702
|
-
const
|
14703
|
-
class
|
14702
|
+
const ha = 85.051129;
|
14703
|
+
class ua {
|
14704
14704
|
constructor(t, n, o, a, h) {
|
14705
14705
|
this.tileSize = 512, this._renderWorldCopies = h === void 0 || !!h, this._minZoom = t || 0, this._maxZoom = n || 22, this._minPitch = o ?? 0, this._maxPitch = a ?? 60, this.setMaxBounds(), this.width = 0, this.height = 0, this._center = new c.N(0, 0), this._elevation = 0, this.zoom = 0, this.angle = 0, this._fov = 0.6435011087932844, this._pitch = 0, this._unmodified = !0, this._edgeInsets = new mo(), this._posMatrixCache = {}, this._alignedPosMatrixCache = {}, this._fogMatrixCache = {}, this.minElevationForCurrentTile = 0;
|
14706
14706
|
}
|
14707
14707
|
clone() {
|
14708
|
-
const t = new
|
14708
|
+
const t = new ua(this._minZoom, this._maxZoom, this._minPitch, this.maxPitch, this._renderWorldCopies);
|
14709
14709
|
return t.apply(this), t;
|
14710
14710
|
}
|
14711
14711
|
apply(t) {
|
@@ -14870,7 +14870,7 @@ uniform ${P} ${A} u_${L};
|
|
14870
14870
|
return Math.log(t) / Math.LN2;
|
14871
14871
|
}
|
14872
14872
|
project(t) {
|
14873
|
-
const n = c.ad(t.lat, -85.051129,
|
14873
|
+
const n = c.ad(t.lat, -85.051129, ha);
|
14874
14874
|
return new c.P(c.O(t.lng) * this.worldSize, c.Q(n) * this.worldSize);
|
14875
14875
|
}
|
14876
14876
|
unproject(t) {
|
@@ -14929,7 +14929,7 @@ uniform ${P} ${A} u_${L};
|
|
14929
14929
|
return Math.tan(Math.PI / 2 - this._pitch) * this.cameraToCenterDistance * 0.85;
|
14930
14930
|
}
|
14931
14931
|
setMaxBounds(t) {
|
14932
|
-
t ? (this.lngRange = [t.getWest(), t.getEast()], this.latRange = [t.getSouth(), t.getNorth()], this._constrain()) : (this.lngRange = null, this.latRange = [-85.051129,
|
14932
|
+
t ? (this.lngRange = [t.getWest(), t.getEast()], this.latRange = [t.getSouth(), t.getNorth()], this._constrain()) : (this.lngRange = null, this.latRange = [-85.051129, ha]);
|
14933
14933
|
}
|
14934
14934
|
calculateTileMatrix(t) {
|
14935
14935
|
const n = t.canonical, o = this.worldSize / this.zoomScale(n.z), a = n.x + Math.pow(2, n.z) * t.wrap, h = c.ao(new Float64Array(16));
|
@@ -15092,7 +15092,7 @@ uniform ${P} ${A} u_${L};
|
|
15092
15092
|
return `#${P}`;
|
15093
15093
|
}
|
15094
15094
|
}
|
15095
|
-
const wn = { linearity: 0.3, easing: c.b8(0, 0, 0.3, 1) },
|
15095
|
+
const wn = { linearity: 0.3, easing: c.b8(0, 0, 0.3, 1) }, da = c.e({ deceleration: 2500, maxSpeed: 1400 }, wn), pa = c.e({ deceleration: 20, maxSpeed: 1400 }, wn), Bl = c.e({ deceleration: 1e3, maxSpeed: 360 }, wn), _o = c.e({ deceleration: 1e3, maxSpeed: 90 }, wn);
|
15096
15096
|
class yo {
|
15097
15097
|
constructor(t) {
|
15098
15098
|
this._map = t, this.clear();
|
@@ -15113,11 +15113,11 @@ uniform ${P} ${A} u_${L};
|
|
15113
15113
|
for (const { settings: h } of this._inertiaBuffer) n.zoom += h.zoomDelta || 0, n.bearing += h.bearingDelta || 0, n.pitch += h.pitchDelta || 0, h.panDelta && n.pan._add(h.panDelta), h.around && (n.around = h.around), h.pinchAround && (n.pinchAround = h.pinchAround);
|
15114
15114
|
const o = this._inertiaBuffer[this._inertiaBuffer.length - 1].time - this._inertiaBuffer[0].time, a = {};
|
15115
15115
|
if (n.pan.mag()) {
|
15116
|
-
const h = xo(n.pan.mag(), o, c.e({},
|
15116
|
+
const h = xo(n.pan.mag(), o, c.e({}, da, t || {}));
|
15117
15117
|
a.offset = n.pan.mult(h.amount / n.pan.mag()), a.center = this._map.transform.center, jn(a, h);
|
15118
15118
|
}
|
15119
15119
|
if (n.zoom) {
|
15120
|
-
const h = xo(n.zoom, o,
|
15120
|
+
const h = xo(n.zoom, o, pa);
|
15121
15121
|
a.zoom = this._map.transform.zoom + h.amount, jn(a, h);
|
15122
15122
|
}
|
15123
15123
|
if (n.bearing) {
|
@@ -15166,7 +15166,7 @@ uniform ${P} ${A} u_${L};
|
|
15166
15166
|
super(t, { points: h, point: y, lngLats: m, lngLat: n.unproject(y), originalEvent: o }), this._defaultPrevented = !1;
|
15167
15167
|
}
|
15168
15168
|
}
|
15169
|
-
class
|
15169
|
+
class fa extends c.k {
|
15170
15170
|
preventDefault() {
|
15171
15171
|
this._defaultPrevented = !0;
|
15172
15172
|
}
|
@@ -15185,7 +15185,7 @@ uniform ${P} ${A} u_${L};
|
|
15185
15185
|
delete this._mousedownPos;
|
15186
15186
|
}
|
15187
15187
|
wheel(t) {
|
15188
|
-
return this._firePreventable(new
|
15188
|
+
return this._firePreventable(new fa(t.type, this._map, t));
|
15189
15189
|
}
|
15190
15190
|
mousedown(t, n) {
|
15191
15191
|
return this._mousedownPos = n, this._firePreventable(new Pi(t.type, this._map, t));
|
@@ -15231,7 +15231,7 @@ uniform ${P} ${A} u_${L};
|
|
15231
15231
|
disable() {
|
15232
15232
|
}
|
15233
15233
|
}
|
15234
|
-
class
|
15234
|
+
class ma {
|
15235
15235
|
constructor(t) {
|
15236
15236
|
this._map = t;
|
15237
15237
|
}
|
@@ -15284,7 +15284,7 @@ uniform ${P} ${A} u_${L};
|
|
15284
15284
|
return this.transform.pointLocation(c.P.convert(t), this._map.terrain);
|
15285
15285
|
}
|
15286
15286
|
}
|
15287
|
-
class
|
15287
|
+
class ga {
|
15288
15288
|
constructor(t, n) {
|
15289
15289
|
this._map = t, this._tr = new $n(t), this._el = t.getCanvasContainer(), this._container = t.getContainer(), this._clickTolerance = n.clickTolerance || 1;
|
15290
15290
|
}
|
@@ -15334,7 +15334,7 @@ uniform ${P} ${A} u_${L};
|
|
15334
15334
|
for (let o = 0; o < u.length; o++) n[u[o].identifier] = t[o];
|
15335
15335
|
return n;
|
15336
15336
|
}
|
15337
|
-
class
|
15337
|
+
class _a {
|
15338
15338
|
constructor(t) {
|
15339
15339
|
this.reset(), this.numTouches = t.numTouches;
|
15340
15340
|
}
|
@@ -15363,9 +15363,9 @@ uniform ${P} ${A} u_${L};
|
|
15363
15363
|
}
|
15364
15364
|
}
|
15365
15365
|
}
|
15366
|
-
class
|
15366
|
+
class ya {
|
15367
15367
|
constructor(t) {
|
15368
|
-
this.singleTap = new
|
15368
|
+
this.singleTap = new _a(t), this.numTaps = t.numTaps, this.reset();
|
15369
15369
|
}
|
15370
15370
|
reset() {
|
15371
15371
|
this.lastTime = 1 / 0, delete this.lastTap, this.count = 0, this.singleTap.reset();
|
@@ -15386,7 +15386,7 @@ uniform ${P} ${A} u_${L};
|
|
15386
15386
|
}
|
15387
15387
|
class Fl {
|
15388
15388
|
constructor(t) {
|
15389
|
-
this._tr = new $n(t), this._zoomIn = new
|
15389
|
+
this._tr = new $n(t), this._zoomIn = new ya({ numTouches: 1, numTaps: 2 }), this._zoomOut = new ya({ numTouches: 2, numTaps: 1 }), this.reset();
|
15390
15390
|
}
|
15391
15391
|
reset() {
|
15392
15392
|
this._active = !1, this._zoomIn.reset(), this._zoomOut.reset();
|
@@ -15513,7 +15513,7 @@ uniform ${P} ${A} u_${L};
|
|
15513
15513
|
u.mousedown = u.dragStart, u.mousemoveWindow = u.dragMove, u.mouseup = u.dragEnd, u.contextmenu = (t) => {
|
15514
15514
|
t.preventDefault();
|
15515
15515
|
};
|
15516
|
-
},
|
15516
|
+
}, xa = ({ enable: u, clickTolerance: t, bearingDegreesPerPixelMoved: n = 0.8 }) => {
|
15517
15517
|
const o = new zi({ checkCorrectEvent: (a) => oe.mouseButton(a) === 0 && a.ctrlKey || oe.mouseButton(a) === 2 });
|
15518
15518
|
return new Lt({ clickTolerance: t, move: (a, h) => ({ bearingDelta: (h.x - a.x) * n }), moveStateManager: o, enable: u, assignEvents: As });
|
15519
15519
|
}, Tn = ({ enable: u, clickTolerance: t, pitchDegreesPerPixelMoved: n = -0.5 }) => {
|
@@ -15612,10 +15612,10 @@ uniform ${P} ${A} u_${L};
|
|
15612
15612
|
function Es(u, t, n) {
|
15613
15613
|
for (let o = 0; o < u.length; o++) if (u[o].identifier === n) return t[o];
|
15614
15614
|
}
|
15615
|
-
function
|
15615
|
+
function va(u, t) {
|
15616
15616
|
return Math.log(u / t) / Math.LN2;
|
15617
15617
|
}
|
15618
|
-
class
|
15618
|
+
class ba extends ks {
|
15619
15619
|
reset() {
|
15620
15620
|
super.reset(), delete this._distance, delete this._startDistance;
|
15621
15621
|
}
|
@@ -15624,13 +15624,13 @@ uniform ${P} ${A} u_${L};
|
|
15624
15624
|
}
|
15625
15625
|
_move(t, n) {
|
15626
15626
|
const o = this._distance;
|
15627
|
-
if (this._distance = t[0].dist(t[1]), this._active || !(Math.abs(
|
15627
|
+
if (this._distance = t[0].dist(t[1]), this._active || !(Math.abs(va(this._distance, this._startDistance)) < 0.1)) return this._active = !0, { zoomDelta: va(this._distance, o), pinchAround: n };
|
15628
15628
|
}
|
15629
15629
|
}
|
15630
|
-
function
|
15630
|
+
function wa(u, t) {
|
15631
15631
|
return 180 * u.angleWith(t) / Math.PI;
|
15632
15632
|
}
|
15633
|
-
class
|
15633
|
+
class Sa extends ks {
|
15634
15634
|
reset() {
|
15635
15635
|
super.reset(), delete this._minDiameter, delete this._startVector, delete this._vector;
|
15636
15636
|
}
|
@@ -15639,18 +15639,18 @@ uniform ${P} ${A} u_${L};
|
|
15639
15639
|
}
|
15640
15640
|
_move(t, n, o) {
|
15641
15641
|
const a = this._vector;
|
15642
|
-
if (this._vector = t[0].sub(t[1]), this._active || !this._isBelowThreshold(this._vector)) return this._active = !0, { bearingDelta:
|
15642
|
+
if (this._vector = t[0].sub(t[1]), this._active || !this._isBelowThreshold(this._vector)) return this._active = !0, { bearingDelta: wa(this._vector, a), pinchAround: n };
|
15643
15643
|
}
|
15644
15644
|
_isBelowThreshold(t) {
|
15645
15645
|
this._minDiameter = Math.min(this._minDiameter, t.mag());
|
15646
|
-
const n = 25 / (Math.PI * this._minDiameter) * 360, o =
|
15646
|
+
const n = 25 / (Math.PI * this._minDiameter) * 360, o = wa(t, this._startVector);
|
15647
15647
|
return Math.abs(o) < n;
|
15648
15648
|
}
|
15649
15649
|
}
|
15650
15650
|
function Lr(u) {
|
15651
15651
|
return Math.abs(u.y) > Math.abs(u.x);
|
15652
15652
|
}
|
15653
|
-
class
|
15653
|
+
class Ta extends ks {
|
15654
15654
|
constructor(t) {
|
15655
15655
|
super(), this._currentTouchCount = 0, this._map = t;
|
15656
15656
|
}
|
@@ -15678,7 +15678,7 @@ uniform ${P} ${A} u_${L};
|
|
15678
15678
|
}
|
15679
15679
|
}
|
15680
15680
|
const Ol = { panStep: 100, bearingStep: 15, pitchStep: 10 };
|
15681
|
-
class
|
15681
|
+
class Ia {
|
15682
15682
|
constructor(t) {
|
15683
15683
|
this._tr = new $n(t);
|
15684
15684
|
const n = Ol;
|
@@ -15744,8 +15744,8 @@ uniform ${P} ${A} u_${L};
|
|
15744
15744
|
function Vl(u) {
|
15745
15745
|
return u * (2 - u);
|
15746
15746
|
}
|
15747
|
-
const
|
15748
|
-
class
|
15747
|
+
const Pa = 4.000244140625;
|
15748
|
+
class Aa {
|
15749
15749
|
constructor(t, n) {
|
15750
15750
|
this._onTimeout = (o) => {
|
15751
15751
|
this._type = "wheel", this._delta -= this._lastValue, this._active || this._start(o);
|
@@ -15780,7 +15780,7 @@ uniform ${P} ${A} u_${L};
|
|
15780
15780
|
if (this._shouldBePrevented(t)) return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom", t);
|
15781
15781
|
let n = t.deltaMode === WheelEvent.DOM_DELTA_LINE ? 40 * t.deltaY : t.deltaY;
|
15782
15782
|
const o = ae.now(), a = o - (this._lastWheelEventTime || 0);
|
15783
|
-
this._lastWheelEventTime = o, n !== 0 && n %
|
15783
|
+
this._lastWheelEventTime = o, n !== 0 && n % Pa == 0 ? this._type = "wheel" : n !== 0 && Math.abs(n) < 4 ? this._type = "trackpad" : a > 400 ? (this._type = null, this._lastValue = n, this._timeout = setTimeout(this._onTimeout, 40, t)) : this._type || (this._type = Math.abs(a * n) < 200 ? "trackpad" : "wheel", this._timeout && (clearTimeout(this._timeout), this._timeout = null, n += this._lastValue)), t.shiftKey && n && (n /= 4), this._type && (this._lastWheelEvent = t, this._delta -= n, this._active || this._start(t)), t.preventDefault();
|
15784
15784
|
}
|
15785
15785
|
_start(t) {
|
15786
15786
|
if (!this._delta) return;
|
@@ -15792,7 +15792,7 @@ uniform ${P} ${A} u_${L};
|
|
15792
15792
|
if (!this._frameId || (this._frameId = null, !this.isActive())) return;
|
15793
15793
|
const t = this._tr.transform;
|
15794
15794
|
if (this._delta !== 0) {
|
15795
|
-
const v = this._type === "wheel" && Math.abs(this._delta) >
|
15795
|
+
const v = this._type === "wheel" && Math.abs(this._delta) > Pa ? this._wheelZoomRate : this._defaultZoomRate;
|
15796
15796
|
let b = 2 / (1 + Math.exp(-Math.abs(this._delta * v)));
|
15797
15797
|
this._delta < 0 && b !== 0 && (b = 1 / b);
|
15798
15798
|
const P = typeof this._targetZoom == "number" ? t.zoomScale(this._targetZoom) : t.scale;
|
@@ -15821,7 +15821,7 @@ uniform ${P} ${A} u_${L};
|
|
15821
15821
|
this._active = !1, this._zooming = !1, delete this._targetZoom, this._finishTimeout && (clearTimeout(this._finishTimeout), delete this._finishTimeout);
|
15822
15822
|
}
|
15823
15823
|
}
|
15824
|
-
class
|
15824
|
+
class Ca {
|
15825
15825
|
constructor(t, n) {
|
15826
15826
|
this._clickZoom = t, this._tapZoom = n;
|
15827
15827
|
}
|
@@ -15865,7 +15865,7 @@ uniform ${P} ${A} u_${L};
|
|
15865
15865
|
}
|
15866
15866
|
class Nl {
|
15867
15867
|
constructor() {
|
15868
|
-
this._tap = new
|
15868
|
+
this._tap = new ya({ numTouches: 1, numTaps: 1 }), this.reset();
|
15869
15869
|
}
|
15870
15870
|
reset() {
|
15871
15871
|
this._active = !1, delete this._swipePoint, delete this._swipeTouch, delete this._tapTime, delete this._tapPoint, this._tap.reset();
|
@@ -15942,7 +15942,7 @@ uniform ${P} ${A} u_${L};
|
|
15942
15942
|
return this._mouseRotate.isActive() || this._mousePitch.isActive();
|
15943
15943
|
}
|
15944
15944
|
}
|
15945
|
-
class
|
15945
|
+
class ka {
|
15946
15946
|
constructor(t, n, o, a) {
|
15947
15947
|
this._el = t, this._touchZoom = n, this._touchRotate = o, this._tapDragZoom = a, this._rotationDisabled = !1, this._enabled = !0;
|
15948
15948
|
}
|
@@ -16009,7 +16009,7 @@ uniform ${P} ${A} u_${L};
|
|
16009
16009
|
const Rr = (u) => u.zoom || u.drag || u.pitch || u.rotate;
|
16010
16010
|
class Gc extends c.k {
|
16011
16011
|
}
|
16012
|
-
function
|
16012
|
+
function Ea(u) {
|
16013
16013
|
return u.panDelta && u.panDelta.mag() || u.zoomDelta || u.bearingDelta || u.pitchDelta;
|
16014
16014
|
}
|
16015
16015
|
class Hc {
|
@@ -16027,7 +16027,7 @@ uniform ${P} ${A} u_${L};
|
|
16027
16027
|
}
|
16028
16028
|
const B = {};
|
16029
16029
|
for (const Z in this._previousActiveHandlers) b[Z] || (B[Z] = m);
|
16030
|
-
this._previousActiveHandlers = b, (Object.keys(B).length ||
|
16030
|
+
this._previousActiveHandlers = b, (Object.keys(B).length || Ea(y)) && (this._changes.push([y, v, B]), this._triggerRenderFrame()), (Object.keys(b).length || Ea(y)) && this._map._stop(!0), this._updatingCamera = !1;
|
16031
16031
|
const { cameraAnimation: N } = y;
|
16032
16032
|
N && (this._inertia.clear(), this._fireEvents({}, {}, !0), this._changes = [], N(this._map));
|
16033
16033
|
}, this._map = t, this._el = this._map.getCanvasContainer(), this._handlers = [], this._handlersById = {}, this._changes = [], this._inertia = new yo(t), this._bearingSnap = n.bearingSnap, this._previousActiveHandlers = {}, this._eventsInProgress = {}, this._addDefaultHandlers(n);
|
@@ -16041,29 +16041,29 @@ uniform ${P} ${A} u_${L};
|
|
16041
16041
|
_addDefaultHandlers(t) {
|
16042
16042
|
const n = this._map, o = n.getCanvasContainer();
|
16043
16043
|
this._add("mapEvent", new vo(n, t));
|
16044
|
-
const a = n.boxZoom = new
|
16044
|
+
const a = n.boxZoom = new ga(n, t);
|
16045
16045
|
this._add("boxZoom", a), t.interactive && t.boxZoom && a.enable();
|
16046
16046
|
const h = n.cooperativeGestures = new nr(n, t.cooperativeGestures);
|
16047
16047
|
this._add("cooperativeGestures", h), t.cooperativeGestures && h.enable();
|
16048
16048
|
const m = new Fl(n), y = new Ms(n);
|
16049
|
-
n.doubleClickZoom = new
|
16049
|
+
n.doubleClickZoom = new Ca(y, m), this._add("tapZoom", m), this._add("clickZoom", y), t.interactive && t.doubleClickZoom && n.doubleClickZoom.enable();
|
16050
16050
|
const v = new Nl();
|
16051
16051
|
this._add("tapDragZoom", v);
|
16052
|
-
const b = n.touchPitch = new
|
16052
|
+
const b = n.touchPitch = new Ta(n);
|
16053
16053
|
this._add("touchPitch", b), t.interactive && t.touchPitch && n.touchPitch.enable(t.touchPitch);
|
16054
|
-
const P =
|
16054
|
+
const P = xa(t), A = Tn(t);
|
16055
16055
|
n.dragRotate = new rr(t, P, A), this._add("mouseRotate", P, ["mousePitch"]), this._add("mousePitch", A, ["mouseRotate"]), t.interactive && t.dragRotate && n.dragRotate.enable();
|
16056
16056
|
const L = (({ enable: K, clickTolerance: U }) => {
|
16057
16057
|
const ee = new zi({ checkCorrectEvent: (ne) => oe.mouseButton(ne) === 0 && !ne.ctrlKey });
|
16058
16058
|
return new Lt({ clickTolerance: U, move: (ne, le) => ({ around: le, panDelta: le.sub(ne) }), activateOnStart: !0, moveStateManager: ee, enable: K, assignEvents: As });
|
16059
16059
|
})(t), B = new Cs(t, n);
|
16060
16060
|
n.dragPan = new Ji(o, L, B), this._add("mousePan", L), this._add("touchPan", B, ["touchZoom", "touchRotate"]), t.interactive && t.dragPan && n.dragPan.enable(t.dragPan);
|
16061
|
-
const N = new
|
16062
|
-
n.touchZoomRotate = new
|
16063
|
-
const j = n.scrollZoom = new
|
16061
|
+
const N = new Sa(), Z = new ba();
|
16062
|
+
n.touchZoomRotate = new ka(o, Z, N, v), this._add("touchRotate", N, ["touchPan", "touchZoom"]), this._add("touchZoom", Z, ["touchPan", "touchRotate"]), t.interactive && t.touchZoomRotate && n.touchZoomRotate.enable(t.touchZoomRotate);
|
16063
|
+
const j = n.scrollZoom = new Aa(n, () => this._triggerRenderFrame());
|
16064
16064
|
this._add("scrollZoom", j, ["mousePan"]), t.interactive && t.scrollZoom && n.scrollZoom.enable(t.scrollZoom);
|
16065
|
-
const H = n.keyboard = new
|
16066
|
-
this._add("keyboard", H), t.interactive && t.keyboard && n.keyboard.enable(), this._add("blockableMapEvent", new
|
16065
|
+
const H = n.keyboard = new Ia(n);
|
16066
|
+
this._add("keyboard", H), t.interactive && t.keyboard && n.keyboard.enable(), this._add("blockableMapEvent", new ma(n));
|
16067
16067
|
}
|
16068
16068
|
_add(t, n, o) {
|
16069
16069
|
this._handlers.push({ handlerName: t, handler: n, allowed: o }), this._handlersById[t] = n;
|
@@ -16109,7 +16109,7 @@ uniform ${P} ${A} u_${L};
|
|
16109
16109
|
}
|
16110
16110
|
_updateMapTransform(t, n, o) {
|
16111
16111
|
const a = this._map, h = a._getTransformForUpdate(), m = a.terrain;
|
16112
|
-
if (!(
|
16112
|
+
if (!(Ea(t) || m && this._terrainMovement)) return this._fireEvents(n, o, !0);
|
16113
16113
|
let { panDelta: y, zoomDelta: v, bearingDelta: b, pitchDelta: P, around: A, pinchAround: L } = t;
|
16114
16114
|
L !== void 0 && (A = L), a._stop(!0), A = A || a.transform.centerPoint;
|
16115
16115
|
const B = h.pointLocation(y ? A.sub(y) : A);
|
@@ -16415,9 +16415,9 @@ uniform ${P} ${A} u_${L};
|
|
16415
16415
|
return this.terrain ? this.terrain.getElevationForLngLatZoom(c.N.convert(t), this.transform.tileZoom) - this.transform.elevation : null;
|
16416
16416
|
}
|
16417
16417
|
}
|
16418
|
-
const
|
16418
|
+
const Ma = { compact: !0, customAttribution: '<a href="https://maplibre.org/" target="_blank">MapLibre</a>' };
|
16419
16419
|
class Zn {
|
16420
|
-
constructor(t =
|
16420
|
+
constructor(t = Ma) {
|
16421
16421
|
this._toggleAttribution = () => {
|
16422
16422
|
this._container.classList.contains("maplibregl-compact") && (this._container.classList.contains("maplibregl-compact-show") ? (this._container.setAttribute("open", ""), this._container.classList.remove("maplibregl-compact-show")) : (this._container.classList.add("maplibregl-compact-show"), this._container.removeAttribute("open")));
|
16423
16423
|
}, this._updateData = (n) => {
|
@@ -16510,7 +16510,7 @@ uniform ${P} ${A} u_${L};
|
|
16510
16510
|
}
|
16511
16511
|
}
|
16512
16512
|
var Ul = c.Y([{ name: "a_pos3d", type: "Int16", components: 3 }]);
|
16513
|
-
class
|
16513
|
+
class za extends c.E {
|
16514
16514
|
constructor(t) {
|
16515
16515
|
super(), this.sourceCache = t, this._tiles = {}, this._renderableTilesKeys = [], this._sourceTileCache = {}, this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.deltaZoom = 1, t.usedForTerrain = !0, t.tileSize = this.tileSize * 2 ** this.deltaZoom;
|
16516
16516
|
}
|
@@ -16571,7 +16571,7 @@ uniform ${P} ${A} u_${L};
|
|
16571
16571
|
}
|
16572
16572
|
class jl {
|
16573
16573
|
constructor(t, n, o) {
|
16574
|
-
this.painter = t, this.sourceCache = new
|
16574
|
+
this.painter = t, this.sourceCache = new za(n), this.options = o, this.exaggeration = typeof o.exaggeration == "number" ? o.exaggeration : 1, this.qualityFactor = 2, this.meshSize = 128, this._demMatrixCache = {}, this.coordsIndex = [], this._coordsTextureSize = 1024;
|
16575
16575
|
}
|
16576
16576
|
getDEMElevation(t, n, o, a = c.X) {
|
16577
16577
|
var h;
|
@@ -16763,9 +16763,9 @@ uniform ${P} ${A} u_${L};
|
|
16763
16763
|
return !1;
|
16764
16764
|
}
|
16765
16765
|
}
|
16766
|
-
const ze = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Reset bearing to north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" },
|
16766
|
+
const ze = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Reset bearing to north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" }, Da = _e, Xc = { hash: !1, interactive: !0, bearingSnap: 7, attributionControl: Ma, maplibreLogo: !1, failIfMajorPerformanceCaveat: !1, preserveDrawingBuffer: !1, refreshExpiredTiles: !0, scrollZoom: !0, minZoom: -2, maxZoom: 22, minPitch: 0, maxPitch: 60, boxZoom: !0, dragRotate: !0, dragPan: !0, keyboard: !0, doubleClickZoom: !0, touchZoomRotate: !0, touchPitch: !0, cooperativeGestures: !1, trackResize: !0, center: [0, 0], zoom: 0, bearing: 0, pitch: 0, renderWorldCopies: !0, maxTileCacheSize: null, maxTileCacheZoomLevels: c.a.MAX_TILE_CACHE_ZOOM_LEVELS, transformRequest: null, transformCameraUpdate: null, fadeDuration: 300, crossSourceCollisions: !0, clickTolerance: 3, localIdeographFontFamily: "sans-serif", pitchWithRotate: !0, validateStyle: !0, maxCanvasSize: [4096, 4096], cancelPendingTileRequestsWhileZooming: !0 }, ql = (u) => {
|
16767
16767
|
u.touchstart = u.dragStart, u.touchmoveWindow = u.dragMove, u.touchend = u.dragEnd;
|
16768
|
-
},
|
16768
|
+
}, La = { showCompass: !0, showZoom: !0, visualizePitch: !1 };
|
16769
16769
|
class Zl {
|
16770
16770
|
constructor(t, n, o = !1) {
|
16771
16771
|
this.mousedown = (m) => {
|
@@ -16784,7 +16784,7 @@ uniform ${P} ${A} u_${L};
|
|
16784
16784
|
this.mouseRotate.reset(), this.mousePitch && this.mousePitch.reset(), this.touchRotate.reset(), this.touchPitch && this.touchPitch.reset(), delete this._startPos, delete this._lastPos, this.offTemp();
|
16785
16785
|
}, this._clickTolerance = 10;
|
16786
16786
|
const a = t.dragRotate._mouseRotate.getClickTolerance(), h = t.dragRotate._mousePitch.getClickTolerance();
|
16787
|
-
this.element = n, this.mouseRotate =
|
16787
|
+
this.element = n, this.mouseRotate = xa({ clickTolerance: a, enable: !0 }), this.touchRotate = (({ enable: m, clickTolerance: y, bearingDegreesPerPixelMoved: v = 0.8 }) => {
|
16788
16788
|
const b = new bo();
|
16789
16789
|
return new Lt({ clickTolerance: y, move: (P, A) => ({ bearingDelta: (A.x - P.x) * v }), moveStateManager: b, enable: m, assignEvents: ql });
|
16790
16790
|
})({ clickTolerance: a, enable: !0 }), this.map = t, o && (this.mousePitch = Tn({ clickTolerance: h, enable: !0 }), this.touchPitch = (({ enable: m, clickTolerance: y, pitchDegreesPerPixelMoved: v = -0.5 }) => {
|
@@ -16834,10 +16834,10 @@ uniform ${P} ${A} u_${L};
|
|
16834
16834
|
}
|
16835
16835
|
return u.lng !== o.lng && n.locationPoint(u).y > n.height / 2 - n.getHorizon() ? u : o;
|
16836
16836
|
}
|
16837
|
-
const
|
16837
|
+
const Ra = { center: "translate(-50%,-50%)", top: "translate(-50%,0)", "top-left": "translate(0,0)", "top-right": "translate(-100%,0)", bottom: "translate(-50%,-100%)", "bottom-left": "translate(0,-100%)", "bottom-right": "translate(-100%,-100%)", left: "translate(0,-50%)", right: "translate(-100%,-50%)" };
|
16838
16838
|
function en(u, t, n) {
|
16839
16839
|
const o = u.classList;
|
16840
|
-
for (const a in
|
16840
|
+
for (const a in Ra) o.remove(`maplibregl-${n}-anchor-${a}`);
|
16841
16841
|
o.add(`maplibregl-${n}-anchor-${t}`);
|
16842
16842
|
}
|
16843
16843
|
class Et extends c.E {
|
@@ -16856,7 +16856,7 @@ uniform ${P} ${A} u_${L};
|
|
16856
16856
|
let h = "";
|
16857
16857
|
this._rotationAlignment === "viewport" || this._rotationAlignment === "auto" ? h = `rotateZ(${this._rotation}deg)` : this._rotationAlignment === "map" && (h = `rotateZ(${this._rotation - this._map.getBearing()}deg)`);
|
16858
16858
|
let m = "";
|
16859
|
-
this._pitchAlignment === "viewport" || this._pitchAlignment === "auto" ? m = "rotateX(0deg)" : this._pitchAlignment === "map" && (m = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || n && n.type !== "moveend" || (this._pos = this._pos.round()), oe.setTransform(this._element, `${
|
16859
|
+
this._pitchAlignment === "viewport" || this._pitchAlignment === "auto" ? m = "rotateX(0deg)" : this._pitchAlignment === "map" && (m = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || n && n.type !== "moveend" || (this._pos = this._pos.round()), oe.setTransform(this._element, `${Ra[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${m} ${h}`), ae.frameAsync(new AbortController()).then(() => {
|
16860
16860
|
this._updateOpacity(n && n.type === "moveend");
|
16861
16861
|
}).catch(() => {
|
16862
16862
|
});
|
@@ -17006,7 +17006,7 @@ uniform ${P} ${A} u_${L};
|
|
17006
17006
|
const wo = { positionOptions: { enableHighAccuracy: !1, maximumAge: 0, timeout: 6e3 }, fitBoundsOptions: { maxZoom: 15 }, trackUserLocation: !1, showAccuracyCircle: !0, showUserLocation: !0 };
|
17007
17007
|
let Gn = 0, Hn = !1;
|
17008
17008
|
const Hl = { maxWidth: 100, unit: "metric" };
|
17009
|
-
function
|
17009
|
+
function Ba(u, t, n) {
|
17010
17010
|
const o = n && n.maxWidth || 100, a = u._container.clientHeight / 2, h = u.unproject([0, a]), m = u.unproject([o, a]), y = h.distanceTo(m);
|
17011
17011
|
if (n && n.unit === "imperial") {
|
17012
17012
|
const v = 3.2808 * y;
|
@@ -17040,7 +17040,7 @@ uniform ${P} ${A} u_${L};
|
|
17040
17040
|
return $e(new c.P(0, 0));
|
17041
17041
|
}
|
17042
17042
|
const Xe = _e;
|
17043
|
-
T.AJAXError = c.bg, T.Evented = c.E, T.LngLat = c.N, T.MercatorCoordinate = c.Z, T.Point = c.P, T.addProtocol = c.bh, T.config = c.a, T.removeProtocol = c.bi, T.AttributionControl = Zn, T.BoxZoomHandler =
|
17043
|
+
T.AJAXError = c.bg, T.Evented = c.E, T.LngLat = c.N, T.MercatorCoordinate = c.Z, T.Point = c.P, T.addProtocol = c.bh, T.config = c.a, T.removeProtocol = c.bi, T.AttributionControl = Zn, T.BoxZoomHandler = ga, T.CanvasSource = Wi, T.CooperativeGesturesHandler = nr, T.DoubleClickZoomHandler = Ca, T.DragPanHandler = Ji, T.DragRotateHandler = rr, T.EdgeInsets = mo, T.FullscreenControl = class extends c.E {
|
17044
17044
|
constructor(u = {}) {
|
17045
17045
|
super(), this._onFullscreenChange = () => {
|
17046
17046
|
var t;
|
@@ -17229,7 +17229,7 @@ uniform ${P} ${A} u_${L};
|
|
17229
17229
|
_clearWatch() {
|
17230
17230
|
window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0, this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "false"), this.options.showUserLocation && this._updateMarker(null);
|
17231
17231
|
}
|
17232
|
-
}, T.Hash = Is, T.ImageSource = Er, T.KeyboardHandler =
|
17232
|
+
}, T.Hash = Is, T.ImageSource = Er, T.KeyboardHandler = Ia, T.LngLatBounds = he, T.LogoControl = br, T.Map = class extends Wc {
|
17233
17233
|
constructor(u) {
|
17234
17234
|
c.be.mark(c.bf.create);
|
17235
17235
|
const t = Object.assign(Object.assign({}, Xc), u);
|
@@ -17237,7 +17237,7 @@ uniform ${P} ${A} u_${L};
|
|
17237
17237
|
if (t.minPitch != null && t.maxPitch != null && t.minPitch > t.maxPitch) throw new Error("maxPitch must be greater than or equal to minPitch");
|
17238
17238
|
if (t.minPitch != null && t.minPitch < 0) throw new Error("minPitch must be greater than or equal to 0");
|
17239
17239
|
if (t.maxPitch != null && t.maxPitch > 85) throw new Error("maxPitch must be less than or equal to 85");
|
17240
|
-
if (super(new
|
17240
|
+
if (super(new ua(t.minZoom, t.maxZoom, t.minPitch, t.maxPitch, t.renderWorldCopies), { bearingSnap: t.bearingSnap }), this._idleTriggered = !1, this._crossFadingFactor = 1, this._renderTaskQueue = new Fe(), this._controls = [], this._mapId = c.a4(), this._contextLost = (n) => {
|
17241
17241
|
n.preventDefault(), this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this.fire(new c.k("webglcontextlost", { originalEvent: n }));
|
17242
17242
|
}, this._contextRestored = (n) => {
|
17243
17243
|
this._setupPainter(), this.resize(), this._update(), this.fire(new c.k("webglcontextrestored", { originalEvent: n }));
|
@@ -17462,10 +17462,10 @@ uniform ${P} ${A} u_${L};
|
|
17462
17462
|
_updateStyle(u, t) {
|
17463
17463
|
if (t.transformStyle && this.style && !this.style._loaded) return void this.style.once("style.load", () => this._updateStyle(u, t));
|
17464
17464
|
const n = this.style && t.transformStyle ? this.style.serialize() : void 0;
|
17465
|
-
return this.style && (this.style.setEventedParent(null), this.style._remove(!u)), u ? (this.style = new
|
17465
|
+
return this.style && (this.style.setEventedParent(null), this.style._remove(!u)), u ? (this.style = new Go(this, t || {}), this.style.setEventedParent(this, { style: this.style }), typeof u == "string" ? this.style.loadURL(u, t, n) : this.style.loadJSON(u, t, n), this) : (delete this.style, this);
|
17466
17466
|
}
|
17467
17467
|
_lazyInitEmptyStyle() {
|
17468
|
-
this.style || (this.style = new
|
17468
|
+
this.style || (this.style = new Go(this, {}), this.style.setEventedParent(this, { style: this.style }), this.style.loadEmpty());
|
17469
17469
|
}
|
17470
17470
|
_diffStyle(u, t) {
|
17471
17471
|
if (typeof u == "string") {
|
@@ -17773,12 +17773,12 @@ uniform ${P} ${A} u_${L};
|
|
17773
17773
|
this._vertices = u, this._update();
|
17774
17774
|
}
|
17775
17775
|
get version() {
|
17776
|
-
return
|
17776
|
+
return Da;
|
17777
17777
|
}
|
17778
17778
|
getCameraTargetElevation() {
|
17779
17779
|
return this.transform.elevation;
|
17780
17780
|
}
|
17781
|
-
}, T.MapMouseEvent = Pi, T.MapTouchEvent = Ps, T.MapWheelEvent =
|
17781
|
+
}, T.MapMouseEvent = Pi, T.MapTouchEvent = Ps, T.MapWheelEvent = fa, T.Marker = Et, T.NavigationControl = class {
|
17782
17782
|
constructor(u) {
|
17783
17783
|
this._updateZoomButtons = () => {
|
17784
17784
|
const t = this._map.getZoom(), n = t === this._map.getMaxZoom(), o = t === this._map.getMinZoom();
|
@@ -17789,7 +17789,7 @@ uniform ${P} ${A} u_${L};
|
|
17789
17789
|
}, this._setButtonTitle = (t, n) => {
|
17790
17790
|
const o = this._map._getUIString(`NavigationControl.${n}`);
|
17791
17791
|
t.title = o, t.setAttribute("aria-label", o);
|
17792
|
-
}, this.options = c.e({},
|
17792
|
+
}, this.options = c.e({}, La, u), this._container = oe.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._container.addEventListener("contextmenu", (t) => t.preventDefault()), this.options.showZoom && (this._zoomInButton = this._createButton("maplibregl-ctrl-zoom-in", (t) => this._map.zoomIn({}, { originalEvent: t })), oe.create("span", "maplibregl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("maplibregl-ctrl-zoom-out", (t) => this._map.zoomOut({}, { originalEvent: t })), oe.create("span", "maplibregl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (this._compass = this._createButton("maplibregl-ctrl-compass", (t) => {
|
17793
17793
|
this.options.visualizePitch ? this._map.resetNorthPitch({}, { originalEvent: t }) : this._map.resetNorth({}, { originalEvent: t });
|
17794
17794
|
}), this._compassIcon = oe.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true"));
|
17795
17795
|
}
|
@@ -17829,7 +17829,7 @@ uniform ${P} ${A} u_${L};
|
|
17829
17829
|
b = o.y + h.bottom.y < v ? ["top"] : o.y > this._map.transform.height - v ? ["bottom"] : [], o.x < y / 2 ? b.push("left") : o.x > this._map.transform.width - y / 2 && b.push("right"), a = b.length === 0 ? "bottom" : b.join("-");
|
17830
17830
|
}
|
17831
17831
|
let m = o.add(h[a]);
|
17832
|
-
this.options.subpixelPositioning || (m = m.round()), oe.setTransform(this._container, `${
|
17832
|
+
this.options.subpixelPositioning || (m = m.round()), oe.setTransform(this._container, `${Ra[a]} translate(${m.x}px,${m.y}px)`), en(this._container, a, "popup");
|
17833
17833
|
}, this._onClose = () => {
|
17834
17834
|
this.remove();
|
17835
17835
|
}, this.options = c.e(Object.create(Sr), u);
|
@@ -17899,9 +17899,9 @@ uniform ${P} ${A} u_${L};
|
|
17899
17899
|
}, T.RasterDEMTileSource = qt, T.RasterTileSource = yt, T.ScaleControl = class {
|
17900
17900
|
constructor(u) {
|
17901
17901
|
this._onMove = () => {
|
17902
|
-
|
17902
|
+
Ba(this._map, this._container, this.options);
|
17903
17903
|
}, this.setUnit = (t) => {
|
17904
|
-
this.options.unit = t,
|
17904
|
+
this.options.unit = t, Ba(this._map, this._container, this.options);
|
17905
17905
|
}, this.options = Object.assign(Object.assign({}, Hl), u);
|
17906
17906
|
}
|
17907
17907
|
getDefaultPosition() {
|
@@ -17913,7 +17913,7 @@ uniform ${P} ${A} u_${L};
|
|
17913
17913
|
onRemove() {
|
17914
17914
|
oe.remove(this._container), this._map.off("move", this._onMove), this._map = void 0;
|
17915
17915
|
}
|
17916
|
-
}, T.ScrollZoomHandler =
|
17916
|
+
}, T.ScrollZoomHandler = Aa, T.Style = Go, T.TerrainControl = class {
|
17917
17917
|
constructor(u) {
|
17918
17918
|
this._toggleTerrain = () => {
|
17919
17919
|
this._map.getTerrain() ? this._map.setTerrain(null) : this._map.setTerrain(this.options), this._updateTerrainIcon();
|
@@ -17927,7 +17927,7 @@ uniform ${P} ${A} u_${L};
|
|
17927
17927
|
onRemove() {
|
17928
17928
|
oe.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
|
17929
17929
|
}
|
17930
|
-
}, T.TwoFingersTouchPitchHandler =
|
17930
|
+
}, T.TwoFingersTouchPitchHandler = Ta, T.TwoFingersTouchRotateHandler = Sa, T.TwoFingersTouchZoomHandler = ba, T.TwoFingersTouchZoomRotateHandler = ka, T.VectorTileSource = as, T.VideoSource = Bn, T.addSourceType = (u, t) => c._(void 0, void 0, void 0, function* () {
|
17931
17931
|
if (hs(u)) throw new Error(`A source type called "${u}" already exists.`);
|
17932
17932
|
((n, o) => {
|
17933
17933
|
cs[n] = o;
|
@@ -18147,7 +18147,7 @@ function up(g, S) {
|
|
18147
18147
|
const { toString: Qm } = Object.prototype, { getPrototypeOf: Qh } = Object, Tc = /* @__PURE__ */ ((g) => (S) => {
|
18148
18148
|
const C = Qm.call(S);
|
18149
18149
|
return g[C] || (g[C] = C.slice(8, -1).toLowerCase());
|
18150
|
-
})(/* @__PURE__ */ Object.create(null)), Nr = (g) => (g = g.toLowerCase(), (S) => Tc(S) === g), Ic = (g) => (S) => typeof S === g, { isArray:
|
18150
|
+
})(/* @__PURE__ */ Object.create(null)), Nr = (g) => (g = g.toLowerCase(), (S) => Tc(S) === g), Ic = (g) => (S) => typeof S === g, { isArray: jo } = Array, hl = Ic("undefined");
|
18151
18151
|
function eg(g) {
|
18152
18152
|
return g !== null && !hl(g) && g.constructor !== null && !hl(g.constructor) && pr(g.constructor.isBuffer) && g.constructor.isBuffer(g);
|
18153
18153
|
}
|
@@ -18170,7 +18170,7 @@ function ul(g, S, { allOwnKeys: C = !1 } = {}) {
|
|
18170
18170
|
if (g === null || typeof g > "u")
|
18171
18171
|
return;
|
18172
18172
|
let E, V;
|
18173
|
-
if (typeof g != "object" && (g = [g]),
|
18173
|
+
if (typeof g != "object" && (g = [g]), jo(g))
|
18174
18174
|
for (E = 0, V = g.length; E < V; E++)
|
18175
18175
|
S.call(null, g[E], E, g);
|
18176
18176
|
else {
|
@@ -18193,7 +18193,7 @@ const Us = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
18193
18193
|
function $h() {
|
18194
18194
|
const { caseless: g } = mp(this) && this || {}, S = {}, C = (E, V) => {
|
18195
18195
|
const X = g && fp(S, V) || V;
|
18196
|
-
xc(S[X]) && xc(E) ? S[X] = $h(S[X], E) : xc(E) ? S[X] = $h({}, E) :
|
18196
|
+
xc(S[X]) && xc(E) ? S[X] = $h(S[X], E) : xc(E) ? S[X] = $h({}, E) : jo(E) ? S[X] = E.slice() : S[X] = E;
|
18197
18197
|
};
|
18198
18198
|
for (let E = 0, V = arguments.length; E < V; E++)
|
18199
18199
|
arguments[E] && ul(arguments[E], C);
|
@@ -18221,7 +18221,7 @@ const gg = (g, S, C, { allOwnKeys: E } = {}) => (ul(S, (V, X) => {
|
|
18221
18221
|
return E !== -1 && E === C;
|
18222
18222
|
}, bg = (g) => {
|
18223
18223
|
if (!g) return null;
|
18224
|
-
if (
|
18224
|
+
if (jo(g)) return g;
|
18225
18225
|
let S = g.length;
|
18226
18226
|
if (!pp(S)) return null;
|
18227
18227
|
const C = new Array(S);
|
@@ -18273,7 +18273,7 @@ const gg = (g, S, C, { allOwnKeys: E } = {}) => (ul(S, (V, X) => {
|
|
18273
18273
|
C[X] = !0;
|
18274
18274
|
});
|
18275
18275
|
};
|
18276
|
-
return
|
18276
|
+
return jo(g) ? E(g) : E(String(g).split(S)), C;
|
18277
18277
|
}, Eg = () => {
|
18278
18278
|
}, Mg = (g, S) => g != null && Number.isFinite(g = +g) ? g : S, Oh = "abcdefghijklmnopqrstuvwxyz", Gd = "0123456789", _p = {
|
18279
18279
|
DIGIT: Gd,
|
@@ -18296,7 +18296,7 @@ const Lg = (g) => {
|
|
18296
18296
|
return;
|
18297
18297
|
if (!("toJSON" in E)) {
|
18298
18298
|
S[V] = E;
|
18299
|
-
const X =
|
18299
|
+
const X = jo(E) ? [] : {};
|
18300
18300
|
return ul(E, (T, c) => {
|
18301
18301
|
const _e = C(T, V + 1);
|
18302
18302
|
!hl(_e) && (X[c] = _e);
|
@@ -18314,7 +18314,7 @@ const Lg = (g) => {
|
|
18314
18314
|
typeof setImmediate == "function",
|
18315
18315
|
pr(Us.postMessage)
|
18316
18316
|
), Fg = typeof queueMicrotask < "u" ? queueMicrotask.bind(Us) : typeof process < "u" && process.nextTick || yp, pe = {
|
18317
|
-
isArray:
|
18317
|
+
isArray: jo,
|
18318
18318
|
isArrayBuffer: dp,
|
18319
18319
|
isBuffer: eg,
|
18320
18320
|
isFormData: cg,
|
@@ -18761,7 +18761,7 @@ const e_ = pe.toObjectSet([
|
|
18761
18761
|
V = T.indexOf(":"), C = T.substring(0, V).trim().toLowerCase(), E = T.substring(V + 1).trim(), !(!C || S[C] && e_[C]) && (C === "set-cookie" ? S[C] ? S[C].push(E) : S[C] = [E] : S[C] = S[C] ? S[C] + ", " + E : E);
|
18762
18762
|
}), S;
|
18763
18763
|
}, Jd = Symbol("internals");
|
18764
|
-
function
|
18764
|
+
function sl(g) {
|
18765
18765
|
return g && String(g).trim().toLowerCase();
|
18766
18766
|
}
|
18767
18767
|
function vc(g) {
|
@@ -18806,7 +18806,7 @@ class Qi {
|
|
18806
18806
|
set(S, C, E) {
|
18807
18807
|
const V = this;
|
18808
18808
|
function X(c, _e, xe) {
|
18809
|
-
const ve =
|
18809
|
+
const ve = sl(_e);
|
18810
18810
|
if (!ve)
|
18811
18811
|
throw new Error("header name must be a non-empty string");
|
18812
18812
|
const ae = pe.findKey(V, ve);
|
@@ -18825,7 +18825,7 @@ class Qi {
|
|
18825
18825
|
return this;
|
18826
18826
|
}
|
18827
18827
|
get(S, C) {
|
18828
|
-
if (S =
|
18828
|
+
if (S = sl(S), S) {
|
18829
18829
|
const E = pe.findKey(this, S);
|
18830
18830
|
if (E) {
|
18831
18831
|
const V = this[E];
|
@@ -18842,7 +18842,7 @@ class Qi {
|
|
18842
18842
|
}
|
18843
18843
|
}
|
18844
18844
|
has(S, C) {
|
18845
|
-
if (S =
|
18845
|
+
if (S = sl(S), S) {
|
18846
18846
|
const E = pe.findKey(this, S);
|
18847
18847
|
return !!(E && this[E] !== void 0 && (!C || Vh(this, this[E], E, C)));
|
18848
18848
|
}
|
@@ -18852,7 +18852,7 @@ class Qi {
|
|
18852
18852
|
const E = this;
|
18853
18853
|
let V = !1;
|
18854
18854
|
function X(T) {
|
18855
|
-
if (T =
|
18855
|
+
if (T = sl(T), T) {
|
18856
18856
|
const c = pe.findKey(E, T);
|
18857
18857
|
c && (!C || Vh(E, E[c], c, C)) && (delete E[c], V = !0);
|
18858
18858
|
}
|
@@ -18911,7 +18911,7 @@ class Qi {
|
|
18911
18911
|
accessors: {}
|
18912
18912
|
}).accessors, V = this.prototype;
|
18913
18913
|
function X(T) {
|
18914
|
-
const c =
|
18914
|
+
const c = sl(T);
|
18915
18915
|
E[c] || (s_(V, T), E[c] = !0);
|
18916
18916
|
}
|
18917
18917
|
return pe.isArray(S) ? S.forEach(X) : X(S), this;
|
@@ -18938,10 +18938,10 @@ function Nh(g, S) {
|
|
18938
18938
|
function Pp(g) {
|
18939
18939
|
return !!(g && g.__CANCEL__);
|
18940
18940
|
}
|
18941
|
-
function
|
18941
|
+
function $o(g, S, C) {
|
18942
18942
|
lt.call(this, g ?? "canceled", lt.ERR_CANCELED, S, C), this.name = "CanceledError";
|
18943
18943
|
}
|
18944
|
-
pe.inherits(
|
18944
|
+
pe.inherits($o, lt, {
|
18945
18945
|
__CANCEL__: !0
|
18946
18946
|
});
|
18947
18947
|
function Ap(g, S, C) {
|
@@ -19213,7 +19213,7 @@ const kp = (g) => {
|
|
19213
19213
|
}, X === void 0 && T.setContentType(null), "setRequestHeader" in Ne && pe.forEach(T.toJSON(), function(At, It) {
|
19214
19214
|
Ne.setRequestHeader(It, At);
|
19215
19215
|
}), pe.isUndefined(V.withCredentials) || (Ne.withCredentials = !!V.withCredentials), c && c !== "json" && (Ne.responseType = V.responseType), xe && ([oe, qe] = wc(xe, !0), Ne.addEventListener("progress", oe)), _e && Ne.upload && ([ae, _t] = wc(_e), Ne.upload.addEventListener("progress", ae), Ne.upload.addEventListener("loadend", _t)), (V.cancelToken || V.signal) && (ve = (ke) => {
|
19216
|
-
Ne && (E(!ke || ke.type ? new
|
19216
|
+
Ne && (E(!ke || ke.type ? new $o(null, g, Ne) : ke), Ne.abort(), Ne = null);
|
19217
19217
|
}, V.cancelToken && V.cancelToken.subscribe(ve), V.signal && (V.signal.aborted ? ve() : V.signal.addEventListener("abort", ve)));
|
19218
19218
|
const zt = o_(V.url);
|
19219
19219
|
if (zt && Vr.protocols.indexOf(zt) === -1) {
|
@@ -19228,7 +19228,7 @@ const kp = (g) => {
|
|
19228
19228
|
if (!E) {
|
19229
19229
|
E = !0, T();
|
19230
19230
|
const xe = _e instanceof Error ? _e : this.reason;
|
19231
|
-
C.abort(xe instanceof lt ? xe : new
|
19231
|
+
C.abort(xe instanceof lt ? xe : new $o(xe instanceof Error ? xe.message : xe));
|
19232
19232
|
}
|
19233
19233
|
};
|
19234
19234
|
let X = S && setTimeout(() => {
|
@@ -19457,7 +19457,7 @@ const ip = (g) => `- ${g}`, w_ = (g) => pe.isFunction(g) || g === null || g ===
|
|
19457
19457
|
};
|
19458
19458
|
function Uh(g) {
|
19459
19459
|
if (g.cancelToken && g.cancelToken.throwIfRequested(), g.signal && g.signal.aborted)
|
19460
|
-
throw new
|
19460
|
+
throw new $o(null, g);
|
19461
19461
|
}
|
19462
19462
|
function rp(g) {
|
19463
19463
|
return Uh(g), g.headers = Qi.from(g.headers), g.data = Nh.call(
|
@@ -19668,7 +19668,7 @@ class ru {
|
|
19668
19668
|
E.unsubscribe(X);
|
19669
19669
|
}, T;
|
19670
19670
|
}, S(function(X, T, c) {
|
19671
|
-
E.reason || (E.reason = new
|
19671
|
+
E.reason || (E.reason = new $o(X, T, c), C(E.reason));
|
19672
19672
|
});
|
19673
19673
|
}
|
19674
19674
|
/**
|
@@ -19795,7 +19795,7 @@ function Lp(g) {
|
|
19795
19795
|
}
|
19796
19796
|
const Ht = Lp(dl);
|
19797
19797
|
Ht.Axios = js;
|
19798
|
-
Ht.CanceledError =
|
19798
|
+
Ht.CanceledError = $o;
|
19799
19799
|
Ht.CancelToken = ru;
|
19800
19800
|
Ht.isCancel = Pp;
|
19801
19801
|
Ht.VERSION = Dp;
|
@@ -20040,9 +20040,9 @@ const A_ = {
|
|
20040
20040
|
}, C_ = { class: "vs-map-slot-layers" }, k_ = ["onClick"], E_ = ["src"];
|
20041
20041
|
function M_(g, S, C, E, V, X) {
|
20042
20042
|
return dt(), Ut("div", C_, [
|
20043
|
-
(dt(!0), Ut(
|
20043
|
+
(dt(!0), Ut(ol, null, al(C.baseLayers, (T, c) => (dt(), Ut("div", {
|
20044
20044
|
key: T.id,
|
20045
|
-
class:
|
20045
|
+
class: Uo(["vs-map-slot-layers__layer relative", { focused: T.id == V.selectedLayer }]),
|
20046
20046
|
onClick: (_e) => X.toggleLayerVisibility(T.id)
|
20047
20047
|
}, [
|
20048
20048
|
et("img", {
|
@@ -20050,7 +20050,7 @@ function M_(g, S, C, E, V, X) {
|
|
20050
20050
|
class: "vs-map-slot-layers__image"
|
20051
20051
|
}, null, 8, E_),
|
20052
20052
|
et("div", {
|
20053
|
-
class:
|
20053
|
+
class: Uo(["absolute py-2 px-4 text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg top-[-46px] text-nowrap p-2 hidden whitespace-nowrap", [
|
20054
20054
|
c === 0 ? "left-[-10px]" : "left-[50%] translate-x-[-50%] "
|
20055
20055
|
]])
|
20056
20056
|
}, Mn(T == null ? void 0 : T.name), 3)
|
@@ -20074,7 +20074,7 @@ const z_ = /* @__PURE__ */ hn(A_, [["render", M_], ["__scopeId", "data-v-d4fbd7d
|
|
20074
20074
|
function V_(g, S, C, E, V, X) {
|
20075
20075
|
return dt(), Ut("div", L_, [
|
20076
20076
|
C.title ? (dt(), Ut("div", R_, Mn(C.title), 1)) : Pr("", !0),
|
20077
|
-
(dt(!0), Ut(
|
20077
|
+
(dt(!0), Ut(ol, null, al(C.colors, (T) => (dt(), Ut("div", B_, [
|
20078
20078
|
T.id > 0 ? (dt(), Ut("div", F_, [
|
20079
20079
|
et("div", {
|
20080
20080
|
class: "w-[15px] h-[15px] rounded-[50%] min-w-[15px]",
|
@@ -20421,16 +20421,16 @@ const by = /* @__PURE__ */ hn(my, [["render", vy]]), wy = {
|
|
20421
20421
|
function zy(g, S, C, E, V, X) {
|
20422
20422
|
return dt(), ln(Bm, { to: "#modal" }, [
|
20423
20423
|
cn(jd, { name: "fade" }, {
|
20424
|
-
default:
|
20424
|
+
default: ll(() => [
|
20425
20425
|
Jh(et("div", Sy, [
|
20426
20426
|
et("div", Ty, [
|
20427
20427
|
cn(jd, {
|
20428
20428
|
name: "content",
|
20429
20429
|
appear: ""
|
20430
20430
|
}, {
|
20431
|
-
default:
|
20431
|
+
default: ll(() => [
|
20432
20432
|
et("div", {
|
20433
|
-
class:
|
20433
|
+
class: Uo(["ui-dialog__modal opacity-1 transition-all flex flex-col bg-white border pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl", [X.checkSize]])
|
20434
20434
|
}, [
|
20435
20435
|
et("div", Iy, [
|
20436
20436
|
et("h3", Py, Mn(C.title), 1),
|
@@ -20441,10 +20441,10 @@ function zy(g, S, C, E, V, X) {
|
|
20441
20441
|
}, ky)
|
20442
20442
|
]),
|
20443
20443
|
et("div", Ey, [
|
20444
|
-
|
20444
|
+
cl(g.$slots, "default", {}, void 0, !0)
|
20445
20445
|
]),
|
20446
20446
|
X.hasSlot ? (dt(), Ut("div", My, [
|
20447
|
-
|
20447
|
+
cl(g.$slots, "footer", {}, void 0, !0)
|
20448
20448
|
])) : Pr("", !0)
|
20449
20449
|
], 2)
|
20450
20450
|
]),
|
@@ -20926,31 +20926,28 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20926
20926
|
}
|
20927
20927
|
}
|
20928
20928
|
}), Ry = { class: "ml-3 pt-[20px]" }, By = { class: "w-full gap-5 flex justify-between mb-[6px] pr-3" }, Fy = { class: "flex gap-2 pt-[4px]" }, Oy = { class: "inline max-h-[38px] w-[1100px]" }, Vy = {
|
20929
|
-
type: "button",
|
20930
|
-
class: "py-2 px-2.5 h-[40px] inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 focus:outline-none focus:bg-gray-50"
|
20931
|
-
}, Ny = {
|
20932
20929
|
key: 0,
|
20933
20930
|
class: "font-medium text-[10px] min-w-[16px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full"
|
20934
|
-
},
|
20931
|
+
}, Ny = ["title"], Uy = /* @__PURE__ */ et("span", { class: "sr-only" }, "Відкрити мапу", -1), jy = { class: "flex" }, $y = { class: "py-[15px] pb-[24px] pl-2" }, qy = { class: "font-bold text-2xl mr-[10px]" }, Zy = { class: "text-sm text-stone-500 font-medium" }, Gy = /* @__PURE__ */ et("span", { class: "text-sm text-stone-500 font-medium" }, " об'єктів", -1), Hy = {
|
20935
20932
|
class: "wrapperTable flex flex-col",
|
20936
20933
|
style: { height: "calc(100vh - 302px)" }
|
20937
|
-
},
|
20934
|
+
}, Wy = {
|
20938
20935
|
key: 0,
|
20939
20936
|
class: "flex gap-x-2 flex-wrap"
|
20940
|
-
},
|
20937
|
+
}, Xy = { class: "font-medium" }, Jy = /* @__PURE__ */ et("span", { class: "h-3 mx-2 border-s border-gray-200" }, null, -1), Ky = { class: "text-gray-500" }, Yy = ["onClick"], Qy = {
|
20941
20938
|
key: 0,
|
20942
20939
|
class: "mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full"
|
20943
|
-
},
|
20940
|
+
}, e0 = /* @__PURE__ */ et("span", { class: "font-medium" }, " Очистити ", -1), t0 = {
|
20944
20941
|
key: 2,
|
20945
20942
|
class: "text-center py-28"
|
20946
|
-
},
|
20943
|
+
}, i0 = /* @__PURE__ */ et("h2", { class: "font-medium text-base text-gray-500 rounded-xl" }, " За вашим запитом даних не знайдено! ", -1), r0 = /* @__PURE__ */ et("p", { class: "font-normal text-sm text-gray-500 rounded-xl" }, " Введіть, будь ласка, інші значення для пошуку. ", -1), n0 = { key: 0 }, s0 = {
|
20947
20944
|
key: 1,
|
20948
20945
|
class: "my-5 pr-2"
|
20949
|
-
},
|
20946
|
+
}, o0 = { class: "flex justify-between" }, a0 = { class: "w-2/4" }, l0 = { class: "map-section" }, c0 = {
|
20950
20947
|
ref: "popup",
|
20951
20948
|
style: { display: "none" }
|
20952
20949
|
};
|
20953
|
-
function
|
20950
|
+
function h0(g, S, C, E, V, X) {
|
20954
20951
|
var zt;
|
20955
20952
|
const T = Yi("VsAutocompleteOption"), c = Yi("vs-autocomplete"), _e = Yi("VsTextMask"), xe = Yi("vs-text"), ve = Yi("FilterIcon"), ae = Yi("VsFilterList"), oe = Yi("VisibleMapIcon"), _t = Yi("HiddenMapIcon"), qe = Yi("CloseIcon"), tt = Yi("NoData"), Ne = Yi("VsPagination"), pt = Yi("MapPortal");
|
20956
20953
|
return dt(), Ut("section", Ry, [
|
@@ -20972,8 +20969,8 @@ function u0(g, S, C, E, V, X) {
|
|
20972
20969
|
onClick: g.getReginOptions,
|
20973
20970
|
class: "w-[500px]"
|
20974
20971
|
}, {
|
20975
|
-
default:
|
20976
|
-
(dt(!0), Ut(
|
20972
|
+
default: ll(() => [
|
20973
|
+
(dt(!0), Ut(ol, null, al(g.searchRegionResult, (ke) => (dt(), ln(T, {
|
20977
20974
|
class: "cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
|
20978
20975
|
key: ke == null ? void 0 : ke.id,
|
20979
20976
|
value: ke,
|
@@ -20997,8 +20994,8 @@ function u0(g, S, C, E, V, X) {
|
|
20997
20994
|
onClick: g.getAddressOptions,
|
20998
20995
|
class: "w-[350px]"
|
20999
20996
|
}, {
|
21000
|
-
default:
|
21001
|
-
(dt(!0), Ut(
|
20997
|
+
default: ll(() => [
|
20998
|
+
(dt(!0), Ut(ol, null, al(g.searchAddressResult, (ke) => (dt(), ln(T, {
|
21002
20999
|
class: "cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
|
21003
21000
|
key: ke == null ? void 0 : ke.id,
|
21004
21001
|
value: ke,
|
@@ -21038,7 +21035,6 @@ function u0(g, S, C, E, V, X) {
|
|
21038
21035
|
ref: "filter",
|
21039
21036
|
scheme: g.filters,
|
21040
21037
|
urlSeparator: "true",
|
21041
|
-
class: "![&>div]:flex-nowrap",
|
21042
21038
|
history: !0,
|
21043
21039
|
closeFilterBtn: !0,
|
21044
21040
|
view: "plain",
|
@@ -21048,12 +21044,17 @@ function u0(g, S, C, E, V, X) {
|
|
21048
21044
|
g.handleFilterChange(ke), g.updateTableAndMap();
|
21049
21045
|
})
|
21050
21046
|
}, {
|
21051
|
-
button:
|
21052
|
-
et("button",
|
21047
|
+
button: ll(({ visible: ke }) => [
|
21048
|
+
et("button", {
|
21049
|
+
type: "button",
|
21050
|
+
class: Uo(["py-2 px-2.5 h-[40px] inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg bg-white text-gray-800 hover:bg-gray-50 focus:outline-none focus:bg-gray-50", [
|
21051
|
+
ke ? "border border-blue-600 border-2" : "border border-gray-200"
|
21052
|
+
]])
|
21053
|
+
}, [
|
21053
21054
|
cn(ve),
|
21054
21055
|
Nm(" Фільтри "),
|
21055
|
-
g.activeFiltersCount >= 1 ? (dt(), Ut("span",
|
21056
|
-
])
|
21056
|
+
g.activeFiltersCount >= 1 ? (dt(), Ut("span", Vy, Mn(g.activeFiltersCount), 1)) : Pr("", !0)
|
21057
|
+
], 2)
|
21057
21058
|
]),
|
21058
21059
|
_: 1
|
21059
21060
|
}, 8, ["modelValue", "scheme"])) : Pr("", !0)
|
@@ -21066,41 +21067,41 @@ function u0(g, S, C, E, V, X) {
|
|
21066
21067
|
onClick: S[3] || (S[3] = (...ke) => g.toggleMapVisible && g.toggleMapVisible(...ke))
|
21067
21068
|
}, [
|
21068
21069
|
g.isMapVisible ? (dt(), ln(oe, { key: 0 })) : (dt(), ln(_t, { key: 1 })),
|
21069
|
-
|
21070
|
-
], 8,
|
21070
|
+
Uy
|
21071
|
+
], 8, Ny)
|
21071
21072
|
]),
|
21072
|
-
et("div",
|
21073
|
+
et("div", jy, [
|
21073
21074
|
et("div", {
|
21074
|
-
class:
|
21075
|
+
class: Uo([
|
21075
21076
|
"relative overflow-hidden",
|
21076
21077
|
g.isMapVisible ? "w-2/4 mr-0" : "w-full mr-3",
|
21077
21078
|
g.isSelectObj ? "hidden" : ""
|
21078
21079
|
])
|
21079
21080
|
}, [
|
21080
|
-
et("h1",
|
21081
|
-
et("span",
|
21082
|
-
et("span",
|
21083
|
-
|
21081
|
+
et("h1", $y, [
|
21082
|
+
et("span", qy, Mn(g.title), 1),
|
21083
|
+
et("span", Zy, Mn(g.filtered), 1),
|
21084
|
+
Gy
|
21084
21085
|
]),
|
21085
|
-
et("div",
|
21086
|
-
g.activeFilters ? (dt(), Ut("div",
|
21087
|
-
(dt(!0), Ut(
|
21086
|
+
et("div", Hy, [
|
21087
|
+
g.activeFilters ? (dt(), Ut("div", Wy, [
|
21088
|
+
(dt(!0), Ut(ol, null, al(g.activeFilters, (ke, At, It) => (dt(), Ut("span", {
|
21088
21089
|
class: "mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full",
|
21089
21090
|
key: It
|
21090
21091
|
}, [
|
21091
|
-
et("span",
|
21092
|
-
|
21093
|
-
et("span",
|
21092
|
+
et("span", Xy, Mn(g.getLabelById(At)), 1),
|
21093
|
+
Jy,
|
21094
|
+
et("span", Ky, Mn(g.getOptionsLabelById(At, ke)), 1),
|
21094
21095
|
et("button", {
|
21095
21096
|
type: "button",
|
21096
21097
|
class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
|
21097
21098
|
onClick: (Wt) => g.clearFilter(At)
|
21098
21099
|
}, [
|
21099
21100
|
cn(qe)
|
21100
|
-
], 8,
|
21101
|
+
], 8, Yy)
|
21101
21102
|
]))), 128)),
|
21102
|
-
((zt = Object.keys(g.activeFilters)) == null ? void 0 : zt.length) >= 2 ? (dt(), Ut("span",
|
21103
|
-
|
21103
|
+
((zt = Object.keys(g.activeFilters)) == null ? void 0 : zt.length) >= 2 ? (dt(), Ut("span", Qy, [
|
21104
|
+
e0,
|
21104
21105
|
et("button", {
|
21105
21106
|
type: "button",
|
21106
21107
|
class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
|
@@ -21110,17 +21111,17 @@ function u0(g, S, C, E, V, X) {
|
|
21110
21111
|
])
|
21111
21112
|
])) : Pr("", !0)
|
21112
21113
|
])) : Pr("", !0),
|
21113
|
-
g.total >= 1 ?
|
21114
|
+
g.total >= 1 ? cl(g.$slots, "table", {
|
21114
21115
|
key: 1,
|
21115
21116
|
rows: g.tableData,
|
21116
21117
|
map: g.map,
|
21117
21118
|
selectRow: g.selectRow,
|
21118
21119
|
getData: g.getData,
|
21119
21120
|
isMapVisible: g.isMapVisible
|
21120
|
-
}) : (dt(), Ut("div",
|
21121
|
+
}) : (dt(), Ut("div", t0, [
|
21121
21122
|
cn(tt),
|
21123
|
+
i0,
|
21122
21124
|
r0,
|
21123
|
-
n0,
|
21124
21125
|
et("button", {
|
21125
21126
|
type: "button",
|
21126
21127
|
class: "mt-[10px] py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs rounded-lg border border-stone-200 bg-white text-stone-800 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100",
|
@@ -21128,9 +21129,9 @@ function u0(g, S, C, E, V, X) {
|
|
21128
21129
|
}, " Очистити дані пошуку ")
|
21129
21130
|
]))
|
21130
21131
|
]),
|
21131
|
-
g.total >= 1 ? (dt(), Ut("hr",
|
21132
|
-
g.total >= 1 ? (dt(), Ut("div",
|
21133
|
-
et("div",
|
21132
|
+
g.total >= 1 ? (dt(), Ut("hr", n0)) : Pr("", !0),
|
21133
|
+
g.total >= 1 ? (dt(), Ut("div", s0, [
|
21134
|
+
et("div", o0, [
|
21134
21135
|
cn(Ne, {
|
21135
21136
|
total: g.total,
|
21136
21137
|
maxPages: 7,
|
@@ -21149,10 +21150,10 @@ function u0(g, S, C, E, V, X) {
|
|
21149
21150
|
], 2),
|
21150
21151
|
g.isSelectObj ? (dt(), Ut("div", {
|
21151
21152
|
key: 0,
|
21152
|
-
class:
|
21153
|
+
class: Uo(g.isMapVisible ? "w-2/4 mr-0 pb-5" : "w-full pb-5 mr-3"),
|
21153
21154
|
style: { height: "calc(100vh - 152px)" }
|
21154
21155
|
}, [
|
21155
|
-
|
21156
|
+
cl(g.$slots, "details", {
|
21156
21157
|
table: g.table,
|
21157
21158
|
selectedId: g.selectedId,
|
21158
21159
|
selectedRow: g.selectedRow,
|
@@ -21161,8 +21162,8 @@ function u0(g, S, C, E, V, X) {
|
|
21161
21162
|
isMapVisible: g.isMapVisible
|
21162
21163
|
})
|
21163
21164
|
], 2)) : Pr("", !0),
|
21164
|
-
Jh(et("div",
|
21165
|
-
et("section",
|
21165
|
+
Jh(et("div", a0, [
|
21166
|
+
et("section", l0, [
|
21166
21167
|
cn(pt, {
|
21167
21168
|
height: "calc(100vh - 152px)",
|
21168
21169
|
width: "w-2/4",
|
@@ -21183,21 +21184,21 @@ function u0(g, S, C, E, V, X) {
|
|
21183
21184
|
[Kh, g.isMapVisible]
|
21184
21185
|
])
|
21185
21186
|
]),
|
21186
|
-
et("div",
|
21187
|
-
|
21187
|
+
et("div", c0, [
|
21188
|
+
cl(g.$slots, "popup", { data: g.hoverData })
|
21188
21189
|
], 512)
|
21189
21190
|
])
|
21190
21191
|
]);
|
21191
21192
|
}
|
21192
|
-
const jp = /* @__PURE__ */ hn(Ly, [["render",
|
21193
|
+
const jp = /* @__PURE__ */ hn(Ly, [["render", h0]]), u0 = (g) => {
|
21193
21194
|
g.component("VsPartsMap", jp);
|
21194
|
-
},
|
21195
|
-
install:
|
21195
|
+
}, d0 = {
|
21196
|
+
install: u0,
|
21196
21197
|
components: {
|
21197
21198
|
VsPartsMap: jp
|
21198
21199
|
}
|
21199
21200
|
};
|
21200
|
-
typeof window < "u" && (window.PartsMap =
|
21201
|
+
typeof window < "u" && (window.PartsMap = d0);
|
21201
21202
|
export {
|
21202
|
-
|
21203
|
+
d0 as default
|
21203
21204
|
};
|