@mapsindoors/map-template 1.80.1 → 1.80.2
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/{_commonjsHelpers-ba3f0406-11e95ced.mjs → _commonjsHelpers-ba3f0406-288ec3d5.mjs} +2 -2
- package/dist/{combo-box-item.entry-04dae5f6.mjs → combo-box-item.entry-6a44f30e.mjs} +2 -2
- package/dist/{icon-b8d01d6f-56e584ec.mjs → icon-b8d01d6f-6f565e61.mjs} +2 -2
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +2 -2
- package/dist/mapsindoors-webcomponent.es.js +3 -3
- package/dist/mapsindoors-webcomponent.umd.js +2 -2
- package/dist/{mi-card_2.entry-9ff1140c.mjs → mi-card_2.entry-c2dde725.mjs} +2 -2
- package/dist/{mi-chip.entry-1d0936c5.mjs → mi-chip.entry-a1de9c16.mjs} +2 -2
- package/dist/{mi-column.entry-a156f0e4.mjs → mi-column.entry-bf220aae.mjs} +2 -2
- package/dist/{mi-combo-box.entry-c4f794ea.mjs → mi-combo-box.entry-85ae3257.mjs} +4 -4
- package/dist/{mi-data-table.entry-b723bdaa.mjs → mi-data-table.entry-d35b595a.mjs} +3 -3
- package/dist/{mi-distance_2.entry-001cad04.mjs → mi-distance_2.entry-714904d6.mjs} +3 -3
- package/dist/{mi-dropdown-item.entry-f55344ee.mjs → mi-dropdown-item.entry-3477220e.mjs} +2 -2
- package/dist/{mi-dropdown.entry-3bb9bfdf.mjs → mi-dropdown.entry-d4303bd6.mjs} +4 -4
- package/dist/{mi-floor-selector.entry-8deddaa7.mjs → mi-floor-selector.entry-7c31d38e.mjs} +2 -2
- package/dist/{mi-keyboard.entry-9a10949f.mjs → mi-keyboard.entry-8ae0c906.mjs} +3 -3
- package/dist/{mi-list-item-category.entry-b1fbef18.mjs → mi-list-item-category.entry-af9afd99.mjs} +4 -4
- package/dist/{mi-list-item-location.entry-76222eb7.mjs → mi-list-item-location.entry-f49950f2.mjs} +4 -4
- package/dist/{mi-list.entry-f7a20d28.mjs → mi-list.entry-dc876988.mjs} +2 -2
- package/dist/{mi-location-booking.entry-3e1de725.mjs → mi-location-booking.entry-d91def6f.mjs} +3 -3
- package/dist/{mi-location-info.entry-22ab5f1d.mjs → mi-location-info.entry-9f31805b.mjs} +2 -2
- package/dist/{mi-map-googlemaps.entry-eae51c2f.mjs → mi-map-googlemaps.entry-07a0ebf9.mjs} +3 -3
- package/dist/{mi-map-mapbox.entry-fa20f848.mjs → mi-map-mapbox.entry-60ba31df.mjs} +3 -3
- package/dist/{mi-metric-card.entry-3aed4324.mjs → mi-metric-card.entry-153e2b04.mjs} +3 -3
- package/dist/{mi-my-position.entry-abc431dd.mjs → mi-my-position.entry-473baf28.mjs} +3 -3
- package/dist/{mi-notification.entry-789053c9.mjs → mi-notification.entry-8d0881ba.mjs} +2 -2
- package/dist/{mi-route-instructions-heading.entry-6361a559.mjs → mi-route-instructions-heading.entry-956dcf61.mjs} +4 -4
- package/dist/{mi-route-instructions-maneuver-legacy.entry-0c4fac33.mjs → mi-route-instructions-maneuver-legacy.entry-a40bcba7.mjs} +3 -3
- package/dist/{mi-route-instructions-maneuver.entry-a814b486.mjs → mi-route-instructions-maneuver.entry-e0edfcbf.mjs} +3 -3
- package/dist/{mi-route-instructions-step-legacy.entry-bf7f5711.mjs → mi-route-instructions-step-legacy.entry-26eb5416.mjs} +4 -4
- package/dist/{mi-route-instructions-step.entry-6ae0d0d6.mjs → mi-route-instructions-step.entry-93c8a178.mjs} +4 -4
- package/dist/{mi-route-instructions.entry-1c34938a.mjs → mi-route-instructions.entry-7d190553.mjs} +5 -5
- package/dist/{mi-scroll-buttons.entry-6c209193.mjs → mi-scroll-buttons.entry-422fc6b6.mjs} +2 -2
- package/dist/{mi-search.entry-a192cbf2.mjs → mi-search.entry-29e876bf.mjs} +3 -3
- package/dist/{mi-share-sms.entry-67926a91.mjs → mi-share-sms.entry-1b361a62.mjs} +2 -2
- package/dist/{mi-step-switcher.entry-5103e626.mjs → mi-step-switcher.entry-438779bc.mjs} +2 -2
- package/dist/{mi-tab-panel.entry-60119f55.mjs → mi-tab-panel.entry-ce9e3113.mjs} +2 -2
- package/dist/{mi-tab.entry-0e0481e8.mjs → mi-tab.entry-f78b900c.mjs} +2 -2
- package/dist/{mi-tabs.entry-4a3cf0d9.mjs → mi-tabs.entry-c188b518.mjs} +2 -2
- package/dist/{mi-time.entry-f943b644.mjs → mi-time.entry-5a3e490e.mjs} +2 -2
- package/dist/{mi-variables-9a6c8d4d-5aa73d36.mjs → mi-variables-9a6c8d4d-afb07213.mjs} +2 -2
- package/dist/{reactcomponent-2555925c.mjs → reactcomponent-6bcb739c.mjs} +163 -163
- package/dist/{route-travel-mode.enum-7f4ce9c7-4f0dee3b.mjs → route-travel-mode.enum-7f4ce9c7-c1141028.mjs} +2 -2
- package/dist/{sort-order.enum-64ce8998-160dcb22.mjs → sort-order.enum-64ce8998-8c25977d.mjs} +3 -3
- package/dist/{unit-system.enum-eaefb53e-d15730c7.mjs → unit-system.enum-eaefb53e-710a1167.mjs} +2 -2
- package/dist/{utils-ae714467-a6a4c7cb.mjs → utils-ae714467-06d9119c.mjs} +2 -2
- package/package.json +1 -1
|
@@ -4,12 +4,12 @@ import fd, { createPortal as Mm } from "react-dom";
|
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, r = new n.Error().stack;
|
|
7
|
-
r && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[r] = "
|
|
7
|
+
r && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[r] = "419d4587-7aa7-4bc5-9c6a-35b24267c133", n._sentryDebugIdIdentifier = "sentry-dbid-419d4587-7aa7-4bc5-9c6a-35b24267c133");
|
|
8
8
|
} catch {
|
|
9
9
|
}
|
|
10
10
|
})();
|
|
11
11
|
var f5 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
12
|
-
f5.SENTRY_RELEASE = { id: "map-template@1.80.
|
|
12
|
+
f5.SENTRY_RELEASE = { id: "map-template@1.80.1" };
|
|
13
13
|
var nA = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
14
14
|
function h0(n) {
|
|
15
15
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
@@ -17277,7 +17277,7 @@ const iW = (n, r, ...s) => {
|
|
|
17277
17277
|
if (y)
|
|
17278
17278
|
return y[u];
|
|
17279
17279
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
17280
|
-
return Kq(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-
|
|
17280
|
+
return Kq(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-6a44f30e.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-c2dde725.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-a1de9c16.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-bf220aae.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-85ae3257.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-d35b595a.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-714904d6.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-3477220e.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-d4303bd6.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-7c31d38e.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-8ae0c906.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-af9afd99.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-f49950f2.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-dc876988.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-d91def6f.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-9f31805b.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-07a0ebf9.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-60ba31df.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-153e2b04.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-473baf28.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-8d0881ba.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-956dcf61.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-a40bcba7.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-e0edfcbf.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-26eb5416.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-93c8a178.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-7d190553.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-422fc6b6.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-29e876bf.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-1b361a62.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-438779bc.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-ce9e3113.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-f78b900c.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-c188b518.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-5a3e490e.mjs") }), `./${g}.entry.js`).then((E) => (r3.set(g, E), E[u]), ju);
|
|
17281
17281
|
}, Yy = /* @__PURE__ */ new Map(), Wm = typeof window < "u" ? window : {}, Ma = Wm.document || { head: {} }, ao = {
|
|
17282
17282
|
$flags$: 0,
|
|
17283
17283
|
$resourcesUrl$: "",
|
|
@@ -28816,7 +28816,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
28816
28816
|
}
|
|
28817
28817
|
}
|
|
28818
28818
|
Qt(s2, "ClipBucket", { omit: ["layers"] });
|
|
28819
|
-
const Kk = _r([{ name: "a_pos_normal_ed", components: 4, type: "Int16" }]), Jk = _r([{ name: "a_pos_end", components: 4, type: "Int16" }, { name: "a_angular_offset_factor", components: 1, type: "Int16" }]), Qk = _r([{ name: "a_centroid_pos", components: 2, type: "Uint16" }]),
|
|
28819
|
+
const Kk = _r([{ name: "a_pos_normal_ed", components: 4, type: "Int16" }]), Jk = _r([{ name: "a_pos_end", components: 4, type: "Int16" }, { name: "a_angular_offset_factor", components: 1, type: "Int16" }]), Qk = _r([{ name: "a_centroid_pos", components: 2, type: "Uint16" }]), e4 = _r([{ name: "a_join_normal_inside", components: 3, type: "Int16" }]), t4 = _r([{ name: "a_hidden_by_landmark", components: 1, type: "Uint8" }]), n4 = _r([{ name: "a_pos_3", components: 3, type: "Int16" }, { name: "a_pos_normal_3", components: 3, type: "Int16" }]), { members: r4 } = Kk;
|
|
28820
28820
|
var sv, a2, av, l2, lv, c2, u2, m_ = {};
|
|
28821
28821
|
function h2() {
|
|
28822
28822
|
if (a2)
|
|
@@ -29023,7 +29023,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29023
29023
|
const c = 1 / Vt, p = 1 / (1 << o.canonical.z), h = (e.x * c + o.canonical.x) * p + o.wrap, m = (e.y * c + o.canonical.y) * p;
|
|
29024
29024
|
return { min: new ut((l.x * c + o.canonical.x) * p + o.wrap, (l.y * c + o.canonical.y) * p), max: new ut(h, m) };
|
|
29025
29025
|
}
|
|
29026
|
-
function
|
|
29026
|
+
function i4(l, e, o) {
|
|
29027
29027
|
const c = 1 << o.canonical.z, p = ((e.x - o.wrap) * c - o.canonical.x) * Vt, h = (e.y * c - o.canonical.y) * Vt;
|
|
29028
29028
|
return { min: new ut(((l.x - o.wrap) * c - o.canonical.x) * Vt, (l.y * c - o.canonical.y) * Vt), max: new ut(p, h) };
|
|
29029
29029
|
}
|
|
@@ -29081,9 +29081,9 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29081
29081
|
}
|
|
29082
29082
|
return c.length > 1 && o.push(c), o;
|
|
29083
29083
|
}
|
|
29084
|
-
const dv = Uh.VectorTileFeature.types,
|
|
29084
|
+
const dv = Uh.VectorTileFeature.types, o4 = ["fill-extrusion-base", "fill-extrusion-height", "fill-extrusion-color", "fill-extrusion-pattern", "fill-extrusion-flood-light-wall-radius", "fill-extrusion-line-width", "fill-extrusion-emissive-strength"], s4 = ["fill-extrusion-flood-light-ground-radius"], a4 = Math.pow(2, 13), l4 = Math.pow(2, 15) - 1, T2 = new ut(0, 1), nc = 2147483648;
|
|
29085
29085
|
function bp(l, e, o, c, p, h, m, b) {
|
|
29086
|
-
l.emplaceBack((e << 1) + m, (o << 1) + h, (Math.floor(c *
|
|
29086
|
+
l.emplaceBack((e << 1) + m, (o << 1) + h, (Math.floor(c * a4) << 1) + p, Math.round(b));
|
|
29087
29087
|
}
|
|
29088
29088
|
function wp(l, e, o) {
|
|
29089
29089
|
l.emplaceBack(e.x * Vt, e.y * Vt, o ? 1 : 0);
|
|
@@ -29148,10 +29148,10 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29148
29148
|
function M2(l, e) {
|
|
29149
29149
|
const o = l.add(e)._unit(), c = ht(l.x * o.x + l.y * o.y, -1, 1);
|
|
29150
29150
|
var p, h, m;
|
|
29151
|
-
return m = Math.acos(c), Math.min(4, Math.max(-4, Math.tan(m))) / 4 *
|
|
29151
|
+
return m = Math.acos(c), Math.min(4, Math.max(-4, Math.tan(m))) / 4 * l4 * ((p = l).x * (h = e).y - p.y * h.x < 0 ? -1 : 1);
|
|
29152
29152
|
}
|
|
29153
|
-
const
|
|
29154
|
-
function
|
|
29153
|
+
const c4 = [(l) => l.x < 0, (l) => l.x > Vt, (l) => l.y < 0, (l) => l.y > Vt];
|
|
29154
|
+
function u4(l, e, o, c) {
|
|
29155
29155
|
const p = [4];
|
|
29156
29156
|
if (c === 0)
|
|
29157
29157
|
return p;
|
|
@@ -29159,7 +29159,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29159
29159
|
const h = l.sub(o), m = e.sub(o), b = [l, e, h, m];
|
|
29160
29160
|
for (let C = 0; C < 4; C++)
|
|
29161
29161
|
for (const M of b)
|
|
29162
|
-
if (
|
|
29162
|
+
if (c4[C](M)) {
|
|
29163
29163
|
p.push(C);
|
|
29164
29164
|
break;
|
|
29165
29165
|
}
|
|
@@ -29167,7 +29167,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29167
29167
|
}
|
|
29168
29168
|
class R2 {
|
|
29169
29169
|
constructor(e) {
|
|
29170
|
-
this.vertexArray = new ep(), this.indexArray = new ri(), this.programConfigurations = new Rs(e.layers, { zoom: e.zoom, lut: e.lut }, (o) =>
|
|
29170
|
+
this.vertexArray = new ep(), this.indexArray = new ri(), this.programConfigurations = new Rs(e.layers, { zoom: e.zoom, lut: e.lut }, (o) => s4.includes(o)), this._segments = new fi(), this.hiddenByLandmarkVertexArray = new kh(), this._segmentToGroundQuads = {}, this._segmentToGroundQuads[0] = [], this._segmentToRegionTriCounts = {}, this._segmentToRegionTriCounts[0] = [0, 0, 0, 0, 0], this.regionSegments = {}, this.regionSegments[4] = new fi();
|
|
29171
29171
|
}
|
|
29172
29172
|
getDefaultSegment() {
|
|
29173
29173
|
return this.regionSegments[4];
|
|
@@ -29194,7 +29194,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29194
29194
|
}
|
|
29195
29195
|
const $ = b.vertexLength;
|
|
29196
29196
|
v_(this.vertexArray, T, A, 1, 1, z), v_(this.vertexArray, T, A, 1, 0, z), v_(this.vertexArray, T, A, 0, 1, F), v_(this.vertexArray, T, A, 0, 0, F), b.vertexLength += 4;
|
|
29197
|
-
const G =
|
|
29197
|
+
const G = u4(T, A, I, c);
|
|
29198
29198
|
for (const V of G)
|
|
29199
29199
|
this._segmentToGroundQuads[m].push({ id: $, region: V }), this._segmentToRegionTriCounts[m][V] += 2, b.primitiveLength += 2;
|
|
29200
29200
|
C = P;
|
|
@@ -29252,7 +29252,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29252
29252
|
this._needsHiddenByLandmarkUpdate = !0;
|
|
29253
29253
|
}
|
|
29254
29254
|
uploadHiddenByLandmark(e) {
|
|
29255
|
-
this.hasData() && this._needsHiddenByLandmarkUpdate && (!this.hiddenByLandmarkVertexBuffer && this.hiddenByLandmarkVertexArray.length > 0 ? this.hiddenByLandmarkVertexBuffer = e.createVertexBuffer(this.hiddenByLandmarkVertexArray,
|
|
29255
|
+
this.hasData() && this._needsHiddenByLandmarkUpdate && (!this.hiddenByLandmarkVertexBuffer && this.hiddenByLandmarkVertexArray.length > 0 ? this.hiddenByLandmarkVertexBuffer = e.createVertexBuffer(this.hiddenByLandmarkVertexArray, t4.members, !0) : this.hiddenByLandmarkVertexBuffer && this.hiddenByLandmarkVertexBuffer.updateData(this.hiddenByLandmarkVertexArray), this._needsHiddenByLandmarkUpdate = !1);
|
|
29256
29256
|
}
|
|
29257
29257
|
destroy() {
|
|
29258
29258
|
if (this.vertexBuffer) {
|
|
@@ -29266,7 +29266,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29266
29266
|
}
|
|
29267
29267
|
class x_ {
|
|
29268
29268
|
constructor(e) {
|
|
29269
|
-
this.zoom = e.zoom, this.canonical = e.canonical, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((o) => o.fqid), this.index = e.index, this.hasPattern = !1, this.edgeRadius = 0, this.projection = e.projection, this.activeReplacements = [], this.replacementUpdateTime = 0, this.centroidData = [], this.footprintIndices = new ri(), this.footprintVertices = new ma(), this.footprintSegments = [], this.layoutVertexArray = new Gl(), this.centroidVertexArray = new e_(), this.wallVertexArray = new cp(), this.indexArray = new ri(), this.programConfigurations = new Rs(e.layers, { zoom: e.zoom, lut: e.lut }, (o) =>
|
|
29269
|
+
this.zoom = e.zoom, this.canonical = e.canonical, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((o) => o.fqid), this.index = e.index, this.hasPattern = !1, this.edgeRadius = 0, this.projection = e.projection, this.activeReplacements = [], this.replacementUpdateTime = 0, this.centroidData = [], this.footprintIndices = new ri(), this.footprintVertices = new ma(), this.footprintSegments = [], this.layoutVertexArray = new Gl(), this.centroidVertexArray = new e_(), this.wallVertexArray = new cp(), this.indexArray = new ri(), this.programConfigurations = new Rs(e.layers, { zoom: e.zoom, lut: e.lut }, (o) => o4.includes(o)), this.segments = new fi(), this.stateDependentLayerIds = this.layers.filter((o) => o.isStateDependent()).map((o) => o.id), this.groundEffect = new R2(e), this.maxHeight = 0, this.partLookup = {}, this.triangleSubSegments = [], this.polygonSegments = [];
|
|
29270
29270
|
}
|
|
29271
29271
|
updateFootprints(e, o) {
|
|
29272
29272
|
}
|
|
@@ -29315,7 +29315,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29315
29315
|
return !this.uploaded || this.programConfigurations.needsUpload || this.groundEffect.programConfigurations.needsUpload;
|
|
29316
29316
|
}
|
|
29317
29317
|
upload(e) {
|
|
29318
|
-
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray,
|
|
29318
|
+
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, r4), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.wallVertexBuffer = e.createVertexBuffer(this.wallVertexArray, e4.members), this.layoutVertexExtArray && (this.layoutVertexExtBuffer = e.createVertexBuffer(this.layoutVertexExtArray, n4.members, !0)), this.groundEffect.upload(e)), this.groundEffect.uploadPaintProperties(e), this.programConfigurations.upload(e), this.uploaded = !0;
|
|
29319
29319
|
}
|
|
29320
29320
|
uploadCentroid(e) {
|
|
29321
29321
|
this.groundEffect.uploadHiddenByLandmark(e), this.needsCentroidUpdate && (!this.centroidVertexBuffer && this.centroidVertexArray.length > 0 ? this.centroidVertexBuffer = e.createVertexBuffer(this.centroidVertexArray, Qk.members, !0) : this.centroidVertexBuffer && this.centroidVertexBuffer.updateData(this.centroidVertexArray), this.needsCentroidUpdate = !1);
|
|
@@ -29444,7 +29444,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29444
29444
|
for (let Xe = 0; Xe < fe.length; Xe++) {
|
|
29445
29445
|
const et = fe[Xe];
|
|
29446
29446
|
I.startRing(P, et[0]);
|
|
29447
|
-
let We = et.length > 4 && D2(et[et.length - 2], et[0], et[1]), dt = re ?
|
|
29447
|
+
let We = et.length > 4 && D2(et[et.length - 2], et[0], et[1]), dt = re ? h4(et[et.length - 2], et[0], et[1], re) : 0;
|
|
29448
29448
|
const Ct = [];
|
|
29449
29449
|
let at, Xt, Bt;
|
|
29450
29450
|
Xt = et[1].sub(et[0])._perp()._unit();
|
|
@@ -29633,7 +29633,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29633
29633
|
if (!(C.flags & nc || m.min.x > C.max.x || C.min.x > m.max.x || m.min.y > C.max.y || C.min.y > m.max.y))
|
|
29634
29634
|
for (let M = 0; M < C.footprintSegLen; M++) {
|
|
29635
29635
|
const v = this.footprintSegments[C.footprintSegIdx + M];
|
|
29636
|
-
if (h.length = 0,
|
|
29636
|
+
if (h.length = 0, d4(this.footprintVertices, v.vertexOffset, v.vertexCount, m.footprintTileId.canonical, e.canonical, h), x2(m.footprint, h, this.footprintIndices.uint16, v.indexOffset, v.indexCount, -v.vertexOffset, -b)) {
|
|
29637
29637
|
C.flags |= nc;
|
|
29638
29638
|
break;
|
|
29639
29639
|
}
|
|
@@ -29676,7 +29676,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29676
29676
|
const o = l.add(e)._unit();
|
|
29677
29677
|
return l.x * o.x + l.y * o.y;
|
|
29678
29678
|
}
|
|
29679
|
-
function
|
|
29679
|
+
function h4(l, e, o, c) {
|
|
29680
29680
|
const p = e.sub(l)._perp()._unit(), h = o.sub(e)._perp()._unit();
|
|
29681
29681
|
return P2(l, e, o, L2(p, h), c);
|
|
29682
29682
|
}
|
|
@@ -29743,7 +29743,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29743
29743
|
}
|
|
29744
29744
|
});
|
|
29745
29745
|
}
|
|
29746
|
-
function
|
|
29746
|
+
function d4(l, e, o, c, p, h) {
|
|
29747
29747
|
const m = Math.pow(2, c.z - p.z);
|
|
29748
29748
|
for (let b = 0; b < o; b++) {
|
|
29749
29749
|
let C = l.int16[2 * (b + e) + 0], M = l.int16[2 * (b + e) + 1];
|
|
@@ -29786,7 +29786,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29786
29786
|
return { base: C + (o === 0 ? -1 : o), top: M ? Math.max(v + c, C + o + 2) : C + c };
|
|
29787
29787
|
}
|
|
29788
29788
|
Qt(x_, "FillExtrusionBucket", { omit: ["layers", "features"] }), Qt(I2, "PartData"), Qt(C2, "FootprintSegment"), Qt(A2, "BorderCentroidData"), Qt(R2, "GroundEffect");
|
|
29789
|
-
const
|
|
29789
|
+
const f4 = _r([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }, { name: "a_linesofar", components: 1, type: "Float32" }], 4), p4 = _r([{ name: "a_z_offset", components: 1, type: "Float32" }], 4), { members: m4 } = f4, g4 = _r([{ name: "a_packed", components: 4, type: "Float32" }]), { members: _4 } = g4, y4 = _r([{ name: "a_pattern_data", components: 3, type: "Float32" }]), { members: v4 } = y4;
|
|
29790
29790
|
class j2 {
|
|
29791
29791
|
constructor(e, o) {
|
|
29792
29792
|
this.width = e, this.height = o, this.nextRow = 0, this.image = new tc({ width: e, height: o }), this.positions = {}, this.uploaded = !1;
|
|
@@ -29870,7 +29870,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29870
29870
|
}
|
|
29871
29871
|
}
|
|
29872
29872
|
Qt(j2, "LineAtlas");
|
|
29873
|
-
const
|
|
29873
|
+
const x4 = Uh.VectorTileFeature.types, b4 = Math.cos(Math.PI / 180 * 37.5), w4 = Math.cos(Math.PI / 180 * 5);
|
|
29874
29874
|
class pv {
|
|
29875
29875
|
constructor(e) {
|
|
29876
29876
|
this.evaluationGlobals = { zoom: 0, lineProgress: void 0 }, this.zoom = e.zoom, this.evaluationGlobals.zoom = this.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((o) => o.fqid), this.index = e.index, this.projection = e.projection, this.hasPattern = !1, this.hasZOffset = !1, this.hasCrossSlope = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((o) => {
|
|
@@ -29952,7 +29952,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29952
29952
|
return !this.uploaded || this.programConfigurations.needsUpload;
|
|
29953
29953
|
}
|
|
29954
29954
|
upload(e) {
|
|
29955
|
-
this.uploaded || (this.layoutVertexArray2.length !== 0 && (this.layoutVertexBuffer2 = e.createVertexBuffer(this.layoutVertexArray2,
|
|
29955
|
+
this.uploaded || (this.layoutVertexArray2.length !== 0 && (this.layoutVertexBuffer2 = e.createVertexBuffer(this.layoutVertexArray2, _4)), this.patternVertexArray.length !== 0 && (this.patternVertexBuffer = e.createVertexBuffer(this.patternVertexArray, v4)), !this.zOffsetVertexBuffer && this.zOffsetVertexArray.length > 0 && (this.zOffsetVertexBuffer = e.createVertexBuffer(this.zOffsetVertexArray, p4.members, !0)), this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, m4), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
|
|
29956
29956
|
}
|
|
29957
29957
|
destroy() {
|
|
29958
29958
|
this.layoutVertexBuffer && (this.zOffsetVertexBuffer && this.zOffsetVertexBuffer.destroy(), this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());
|
|
@@ -29977,7 +29977,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
29977
29977
|
this.totalDistance += e[G].dist(e[G + 1]);
|
|
29978
29978
|
this.totalFeatureLength = this.totalDistance / (this.lineClips.end - this.lineClips.start), this.updateScaledDistance(), this.maxLineLength = Math.max(this.maxLineLength, this.totalDistance);
|
|
29979
29979
|
}
|
|
29980
|
-
const M =
|
|
29980
|
+
const M = x4[o.type] === "Polygon";
|
|
29981
29981
|
let v = e.length;
|
|
29982
29982
|
for (; v >= 2 && e[v - 1].equals(e[v - 2]); )
|
|
29983
29983
|
v--;
|
|
@@ -30009,7 +30009,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30009
30009
|
}
|
|
30010
30010
|
Ne.e1 = Ne.e2 = -1;
|
|
30011
30011
|
};
|
|
30012
|
-
if (V && Y <
|
|
30012
|
+
if (V && Y < w4) {
|
|
30013
30013
|
this.updateDistance(I, S), this.addCurrentVertex(S, z, 1, 1, A, $), ze(this), this.addCurrentVertex(S, F, -1, -1, A, $);
|
|
30014
30014
|
continue;
|
|
30015
30015
|
}
|
|
@@ -30023,7 +30023,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30023
30023
|
}
|
|
30024
30024
|
let re = z.add(F);
|
|
30025
30025
|
re.x === 0 && re.y === 0 || re._unit();
|
|
30026
|
-
const ye = re.x * F.x + re.y * F.y, ue = ye !== 0 ? 1 / ye : 1 / 0, fe = 2 * Math.sqrt(2 - 2 * ye), Pe = ye <
|
|
30026
|
+
const ye = re.x * F.x + re.y * F.y, ue = ye !== 0 ? 1 / ye : 1 / 0, fe = 2 * Math.sqrt(2 - 2 * ye), Pe = ye < b4 && I && P, he = z.x * F.y - z.y * F.x > 0, Ie = this.overscaling <= 16 ? 15 * Vt / (512 * this.overscaling) : 0;
|
|
30027
30027
|
if (V && Z === "round") {
|
|
30028
30028
|
if (ue < b)
|
|
30029
30029
|
Z = "miter";
|
|
@@ -30170,7 +30170,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30170
30170
|
}
|
|
30171
30171
|
let gv;
|
|
30172
30172
|
const K2 = () => gv || (gv = { layout: $2 || ($2 = new qr({ "line-cap": new mn(Ke.layout_line["line-cap"]), "line-join": new mn(Ke.layout_line["line-join"]), "line-miter-limit": new Rt(Ke.layout_line["line-miter-limit"]), "line-round-limit": new Rt(Ke.layout_line["line-round-limit"]), "line-sort-key": new mn(Ke.layout_line["line-sort-key"]), "line-z-offset": new mn(Ke.layout_line["line-z-offset"]), "line-elevation-reference": new Rt(Ke.layout_line["line-elevation-reference"]), "line-cross-slope": new Rt(Ke.layout_line["line-cross-slope"]), visibility: new Rt(Ke.layout_line.visibility) })), paint: G2 || (G2 = new qr({ "line-opacity": new mn(Ke.paint_line["line-opacity"]), "line-color": new mn(Ke.paint_line["line-color"]), "line-translate": new Rt(Ke.paint_line["line-translate"]), "line-translate-anchor": new Rt(Ke.paint_line["line-translate-anchor"]), "line-width": new mn(Ke.paint_line["line-width"]), "line-gap-width": new mn(Ke.paint_line["line-gap-width"]), "line-offset": new mn(Ke.paint_line["line-offset"]), "line-blur": new mn(Ke.paint_line["line-blur"]), "line-dasharray": new mn(Ke.paint_line["line-dasharray"]), "line-pattern": new mn(Ke.paint_line["line-pattern"]), "line-gradient": new $l(Ke.paint_line["line-gradient"]), "line-trim-offset": new Rt(Ke.paint_line["line-trim-offset"]), "line-trim-fade-range": new Rt(Ke.paint_line["line-trim-fade-range"]), "line-trim-color": new Rt(Ke.paint_line["line-trim-color"]), "line-emissive-strength": new Rt(Ke.paint_line["line-emissive-strength"]), "line-border-width": new mn(Ke.paint_line["line-border-width"]), "line-border-color": new mn(Ke.paint_line["line-border-color"]), "line-occlusion-opacity": new Rt(Ke.paint_line["line-occlusion-opacity"]) })) }, gv);
|
|
30173
|
-
class
|
|
30173
|
+
class S4 extends mn {
|
|
30174
30174
|
possiblyEvaluate(e, o) {
|
|
30175
30175
|
return o = new si(Math.floor(o.zoom), { now: o.now, fadeDuration: o.fadeDuration, transition: o.transition }), super.possiblyEvaluate(e, o);
|
|
30176
30176
|
}
|
|
@@ -30182,11 +30182,11 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30182
30182
|
function J2(l, e) {
|
|
30183
30183
|
return e > 0 ? e + 2 * l : l;
|
|
30184
30184
|
}
|
|
30185
|
-
const
|
|
30185
|
+
const E4 = _r([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_tex_size", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), T4 = _r([{ name: "a_globe_anchor", components: 3, type: "Int16" }, { name: "a_globe_normal", components: 3, type: "Float32" }], 4), C4 = _r([{ name: "a_projected_pos", components: 4, type: "Float32" }], 4);
|
|
30186
30186
|
_r([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
|
|
30187
|
-
const
|
|
30187
|
+
const I4 = _r([{ name: "a_auto_z_offset", components: 1, type: "Float32" }], 4), A4 = _r([{ name: "a_texb", components: 2, type: "Uint16" }]), M4 = _r([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }, { name: "a_elevation_from_sea", components: 2, type: "Float32" }]), R4 = _r([{ name: "a_size_scale", components: 1, type: "Float32" }, { name: "a_padding", components: 2, type: "Float32" }, { name: "a_auto_z_offset", components: 1, type: "Float32" }]);
|
|
30188
30188
|
_r([{ type: "Int16", name: "projectedAnchorX" }, { type: "Int16", name: "projectedAnchorY" }, { type: "Int16", name: "projectedAnchorZ" }, { type: "Int16", name: "tileAnchorX" }, { type: "Int16", name: "tileAnchorY" }, { type: "Float32", name: "x1" }, { type: "Float32", name: "y1" }, { type: "Float32", name: "x2" }, { type: "Float32", name: "y2" }, { type: "Int16", name: "padding" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
|
|
30189
|
-
const Q2 = _r([{ name: "a_pos", components: 3, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4),
|
|
30189
|
+
const Q2 = _r([{ name: "a_pos", components: 3, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), L4 = _r([{ name: "a_pos_2f", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
|
|
30190
30190
|
_r([{ name: "triangle", components: 3, type: "Uint16" }]), _r([{ type: "Int16", name: "projectedAnchorX" }, { type: "Int16", name: "projectedAnchorY" }, { type: "Int16", name: "projectedAnchorZ" }, { type: "Float32", name: "tileAnchorX" }, { type: "Float32", name: "tileAnchorY" }, { 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" }, { type: "Uint8", name: "flipState" }]), _r([{ type: "Float32", name: "tileAnchorX" }, { type: "Float32", name: "tileAnchorY" }, { type: "Int16", name: "projectedAnchorX" }, { type: "Int16", name: "projectedAnchorY" }, { type: "Int16", name: "projectedAnchorZ" }, { 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", components: 2, name: "textOffset" }, { type: "Float32", name: "collisionCircleDiameter" }, { type: "Float32", name: "zOffset" }, { type: "Uint8", name: "hasIconTextFit" }]), _r([{ type: "Float32", name: "offsetX" }]), _r([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }]);
|
|
30191
30191
|
var Qi = 24;
|
|
30192
30192
|
const Qs = 128;
|
|
@@ -30223,8 +30223,8 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30223
30223
|
}
|
|
30224
30224
|
return { uSizeT: c, uSize: p };
|
|
30225
30225
|
}
|
|
30226
|
-
var
|
|
30227
|
-
function
|
|
30226
|
+
var P4 = Object.freeze({ __proto__: null, SIZE_PACK_FACTOR: Qs, evaluateSizeForFeature: b_, evaluateSizeForZoom: Vh, getSizeData: _v });
|
|
30227
|
+
function k4(l, e, o) {
|
|
30228
30228
|
return l.sections.forEach((c) => {
|
|
30229
30229
|
c.text = function(p, h, m) {
|
|
30230
30230
|
const b = h.layout.get("text-transform").evaluate(m, {});
|
|
@@ -30233,15 +30233,15 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30233
30233
|
}), l;
|
|
30234
30234
|
}
|
|
30235
30235
|
const Cp = { "!": "︕", "#": "#", $: "$", "%": "%", "&": "&", "(": "︵", ")": "︶", "*": "*", "+": "+", ",": "︐", "-": "︲", ".": "・", "/": "/", ":": "︓", ";": "︔", "<": "︿", "=": "=", ">": "﹀", "?": "︖", "@": "@", "[": "﹇", "\\": "\", "]": "﹈", "^": "^", _: "︳", "`": "`", "{": "︷", "|": "―", "}": "︸", "~": "~", "¢": "¢", "£": "£", "¥": "¥", "¦": "¦", "¬": "¬", "¯": " ̄", "–": "︲", "—": "︱", "‘": "﹃", "’": "﹄", "“": "﹁", "”": "﹂", "…": "︙", "‧": "・", "₩": "₩", "、": "︑", "。": "︒", "〈": "︿", "〉": "﹀", "《": "︽", "》": "︾", "「": "﹁", "」": "﹂", "『": "﹃", "』": "﹄", "【": "︻", "】": "︼", "〔": "︹", "〕": "︺", "〖": "︗", "〗": "︘", "!": "︕", "(": "︵", ")": "︶", ",": "︐", "-": "︲", ".": "・", ":": "︓", ";": "︔", "<": "︿", ">": "﹀", "?": "︖", "[": "﹇", "]": "﹈", "_": "︳", "{": "︷", "|": "―", "}": "︸", "⦅": "︵", "⦆": "︶", "。": "︒", "「": "﹁", "」": "﹂", "←": "↑", "→": "↓" };
|
|
30236
|
-
function
|
|
30236
|
+
function D4(l) {
|
|
30237
30237
|
return l === "︶" || l === "﹈" || l === "︸" || l === "﹄" || l === "﹂" || l === "︾" || l === "︼" || l === "︺" || l === "︘" || l === "﹀" || l === "︐" || l === "︓" || l === "︔" || l === "`" || l === " ̄" || l === "︑" || l === "︒";
|
|
30238
30238
|
}
|
|
30239
|
-
function
|
|
30239
|
+
function O4(l) {
|
|
30240
30240
|
return l === "︵" || l === "﹇" || l === "︷" || l === "﹃" || l === "﹁" || l === "︽" || l === "︻" || l === "︹" || l === "︗" || l === "︿";
|
|
30241
30241
|
}
|
|
30242
30242
|
var eE, yv, tE, vv = {};
|
|
30243
30243
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
30244
|
-
function
|
|
30244
|
+
function z4() {
|
|
30245
30245
|
return eE || (eE = 1, vv.read = function(l, e, o, c, p) {
|
|
30246
30246
|
var h, m, b = 8 * p - c - 1, C = (1 << b) - 1, M = C >> 1, v = -7, T = o ? p - 1 : 0, A = o ? -1 : 1, S = l[e + T];
|
|
30247
30247
|
for (T += A, h = S & (1 << -v) - 1, S >>= -v, v += b; v > 0; h = 256 * h + l[e + T], T += A, v -= 8)
|
|
@@ -30269,7 +30269,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30269
30269
|
if (tE)
|
|
30270
30270
|
return yv;
|
|
30271
30271
|
tE = 1, yv = e;
|
|
30272
|
-
var l =
|
|
30272
|
+
var l = z4();
|
|
30273
30273
|
function e(V) {
|
|
30274
30274
|
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(V) ? V : new Uint8Array(V || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
|
|
30275
30275
|
}
|
|
@@ -30587,17 +30587,17 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30587
30587
|
}
|
|
30588
30588
|
var w_ = L(nE());
|
|
30589
30589
|
const xv = 3;
|
|
30590
|
-
function
|
|
30591
|
-
e.glyphs = [], l === 1 && o.readMessage(
|
|
30590
|
+
function N4(l, e, o) {
|
|
30591
|
+
e.glyphs = [], l === 1 && o.readMessage(F4, e);
|
|
30592
30592
|
}
|
|
30593
|
-
function
|
|
30593
|
+
function F4(l, e, o) {
|
|
30594
30594
|
if (l === 3) {
|
|
30595
|
-
const { id: c, bitmap: p, width: h, height: m, left: b, top: C, advance: M } = o.readMessage(
|
|
30595
|
+
const { id: c, bitmap: p, width: h, height: m, left: b, top: C, advance: M } = o.readMessage(B4, {});
|
|
30596
30596
|
e.glyphs.push({ id: c, bitmap: new tc({ width: h + 2 * xv, height: m + 2 * xv }, p), metrics: { width: h, height: m, left: b, top: C, advance: M } });
|
|
30597
30597
|
} else
|
|
30598
30598
|
l === 4 ? e.ascender = o.readSVarint() : l === 5 && (e.descender = o.readSVarint());
|
|
30599
30599
|
}
|
|
30600
|
-
function
|
|
30600
|
+
function B4(l, e, o) {
|
|
30601
30601
|
l === 1 ? e.id = o.readVarint() : l === 2 ? e.bitmap = o.readBytes() : l === 3 ? e.width = o.readVarint() : l === 4 ? e.height = o.readVarint() : l === 5 ? e.left = o.readSVarint() : l === 6 ? e.top = o.readSVarint() : l === 7 && (e.advance = o.readVarint());
|
|
30602
30602
|
}
|
|
30603
30603
|
const rE = xv, ps = { horizontal: 1, vertical: 2, horizontalOnly: 3 };
|
|
@@ -30707,7 +30707,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30707
30707
|
const et = Y.getSection(Xe), We = Y.getCodePoint(Xe);
|
|
30708
30708
|
if (S_[We] || (Ne += iE(We, et, ue, fe, re, Pe)), Xe < Y.length() - 1) {
|
|
30709
30709
|
const dt = !((je = We) < 11904 || !(hn["Bopomofo Extended"](je) || hn.Bopomofo(je) || hn["CJK Compatibility Forms"](je) || hn["CJK Compatibility Ideographs"](je) || hn["CJK Compatibility"](je) || hn["CJK Radicals Supplement"](je) || hn["CJK Strokes"](je) || hn["CJK Symbols and Punctuation"](je) || hn["CJK Unified Ideographs Extension A"](je) || hn["CJK Unified Ideographs"](je) || hn["Enclosed CJK Letters and Months"](je) || hn["Halfwidth and Fullwidth Forms"](je) || hn.Hiragana(je) || hn["Ideographic Description Characters"](je) || hn["Kangxi Radicals"](je) || hn["Katakana Phonetic Extensions"](je) || hn.Katakana(je) || hn["Vertical Forms"](je) || hn["Yi Radicals"](je) || hn["Yi Syllables"](je)));
|
|
30710
|
-
(
|
|
30710
|
+
(U4[We] || dt || et.imageName) && he.push(sE(Xe + 1, Ne, Ie, he, V4(We, Y.getCodePoint(Xe + 1), dt && ze), !1));
|
|
30711
30711
|
}
|
|
30712
30712
|
}
|
|
30713
30713
|
var je;
|
|
@@ -30816,7 +30816,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30816
30816
|
return !0;
|
|
30817
30817
|
}(V) && Z;
|
|
30818
30818
|
}
|
|
30819
|
-
const S_ = { 9: !0, 10: !0, 11: !0, 12: !0, 13: !0, 32: !0 },
|
|
30819
|
+
const S_ = { 9: !0, 10: !0, 11: !0, 12: !0, 13: !0, 32: !0 }, U4 = { 10: !0, 32: !0, 38: !0, 40: !0, 41: !0, 43: !0, 45: !0, 47: !0, 173: !0, 183: !0, 8203: !0, 8208: !0, 8211: !0, 8231: !0 };
|
|
30820
30820
|
function iE(l, e, o, c, p, h) {
|
|
30821
30821
|
if (e.imageName) {
|
|
30822
30822
|
const m = c[e.imageName];
|
|
@@ -30831,7 +30831,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30831
30831
|
const p = Math.pow(l - e, 2);
|
|
30832
30832
|
return c ? l < e ? p / 2 : 2 * p : p + Math.abs(o) * o;
|
|
30833
30833
|
}
|
|
30834
|
-
function
|
|
30834
|
+
function V4(l, e, o) {
|
|
30835
30835
|
let c = 0;
|
|
30836
30836
|
return l === 10 && (c -= 1e4), o && (c += 150), l !== 40 && l !== 65288 || (c += 50), e !== 41 && e !== 65289 || (c += 50), c;
|
|
30837
30837
|
}
|
|
@@ -30879,7 +30879,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30879
30879
|
for (let C = 0; C <= h; C++)
|
|
30880
30880
|
l[C].x -= b, l[C].y += o + c + p;
|
|
30881
30881
|
}
|
|
30882
|
-
function
|
|
30882
|
+
function j4(l, e, o, c) {
|
|
30883
30883
|
const { horizontalAlign: p, verticalAlign: h } = wv(c), m = o[0] - l.displaySize[0] * p, b = o[1] - l.displaySize[1] * h;
|
|
30884
30884
|
return { imagePrimary: l, imageSecondary: e, top: b, bottom: b + l.displaySize[1], left: m, right: m + l.displaySize[0] };
|
|
30885
30885
|
}
|
|
@@ -30941,7 +30941,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30941
30941
|
function fE(l, e) {
|
|
30942
30942
|
return Math.max(l ? l.right - l.left : 0, e ? e.right - e.left : 0);
|
|
30943
30943
|
}
|
|
30944
|
-
function $
|
|
30944
|
+
function $4(l, e, o, c, p, h) {
|
|
30945
30945
|
const m = dE(o, p, h), b = fE(o, c) * h;
|
|
30946
30946
|
let C = 0;
|
|
30947
30947
|
const M = hE(l) / 2;
|
|
@@ -30954,7 +30954,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
30954
30954
|
C += S;
|
|
30955
30955
|
}
|
|
30956
30956
|
}
|
|
30957
|
-
function
|
|
30957
|
+
function G4(l, e, o, c, p, h, m, b, C) {
|
|
30958
30958
|
const M = dE(c, h, m), v = fE(c, p), T = v * m, A = l[0].x === 0 || l[0].x === C || l[0].y === 0 || l[0].y === C;
|
|
30959
30959
|
return e - T < e / 4 && (e = T + e / 4), pE(l, A ? e / 2 * b % e : (v / 2 + 2 * h) * m * b % e, e, M, o, T, A, !1, C);
|
|
30960
30960
|
}
|
|
@@ -31164,7 +31164,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31164
31164
|
p(C);
|
|
31165
31165
|
else if (M) {
|
|
31166
31166
|
const v = {}, T = function(A) {
|
|
31167
|
-
return new w_(A).readFields(
|
|
31167
|
+
return new w_(A).readFields(N4, {});
|
|
31168
31168
|
}(M);
|
|
31169
31169
|
for (const A of T.glyphs)
|
|
31170
31170
|
v[A.id] = A;
|
|
@@ -31258,11 +31258,11 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31258
31258
|
function C_(l, e, o, c) {
|
|
31259
31259
|
return l - e * o / c;
|
|
31260
31260
|
}
|
|
31261
|
-
function
|
|
31261
|
+
function H4(l, e, o, c) {
|
|
31262
31262
|
const p = e + l.positionedLines[c].lineOffset;
|
|
31263
31263
|
return c === 0 ? o + p / 2 : o + (p + (e + l.positionedLines[c - 1].lineOffset)) / 2;
|
|
31264
31264
|
}
|
|
31265
|
-
function
|
|
31265
|
+
function q4(l, e = 1, o = !1) {
|
|
31266
31266
|
let c = 1 / 0, p = 1 / 0, h = -1 / 0, m = -1 / 0;
|
|
31267
31267
|
const b = l[0];
|
|
31268
31268
|
for (let S = 0; S < b.length; S++) {
|
|
@@ -31271,7 +31271,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31271
31271
|
}
|
|
31272
31272
|
const C = Math.min(h - c, m - p);
|
|
31273
31273
|
let M = C / 2;
|
|
31274
|
-
const v = new ff([],
|
|
31274
|
+
const v = new ff([], W4);
|
|
31275
31275
|
if (C === 0)
|
|
31276
31276
|
return new ut(c, p);
|
|
31277
31277
|
for (let S = c; S < h; S += C)
|
|
@@ -31292,7 +31292,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31292
31292
|
}
|
|
31293
31293
|
return o && (console.log(`num probes: ${A}`), console.log(`best distance: ${T.d}`)), T.p;
|
|
31294
31294
|
}
|
|
31295
|
-
function
|
|
31295
|
+
function W4(l, e) {
|
|
31296
31296
|
return e.max - l.max;
|
|
31297
31297
|
}
|
|
31298
31298
|
class Gh {
|
|
@@ -31310,12 +31310,12 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31310
31310
|
}(this.p, p), this.max = this.d + this.h * Math.SQRT2;
|
|
31311
31311
|
}
|
|
31312
31312
|
}
|
|
31313
|
-
const Tv = Number.POSITIVE_INFINITY,
|
|
31313
|
+
const Tv = Number.POSITIVE_INFINITY, Z4 = Math.sqrt(2);
|
|
31314
31314
|
function wE(l, [e, o]) {
|
|
31315
31315
|
let c = 0, p = 0;
|
|
31316
31316
|
if (o === Tv) {
|
|
31317
31317
|
e < 0 && (e = 0);
|
|
31318
|
-
const h = e /
|
|
31318
|
+
const h = e / Z4;
|
|
31319
31319
|
switch (l) {
|
|
31320
31320
|
case "top-right":
|
|
31321
31321
|
case "top-left":
|
|
@@ -31385,7 +31385,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31385
31385
|
}
|
|
31386
31386
|
return "center";
|
|
31387
31387
|
}
|
|
31388
|
-
function
|
|
31388
|
+
function Y4(l, e, o, c, p, h, m, b, C, M, v, T, A, S, I) {
|
|
31389
31389
|
let P = h.textMaxSize.evaluate(e, {}, T);
|
|
31390
31390
|
P === void 0 ? P = m * h.textScaleFactor : P *= h.textScaleFactor;
|
|
31391
31391
|
const z = l.layers[0].layout, F = z.get("icon-offset").evaluate(e, {}, T), $ = EE(o.horizontal) || o.vertical, G = A.name === "globe", V = Qi, Z = m * h.textScaleFactor / V, Y = l.tilePixelRatio * P / V, re = (Ne = l.overscaling, l.zoom > 18 && Ne > 2 && (Ne >>= 1), Math.max(Vt / (512 * Ne), 1) * z.get("symbol-spacing")), ye = z.get("text-padding") * l.tilePixelRatio, ue = z.get("icon-padding") * l.tilePixelRatio, fe = Mn(z.get("text-max-angle")), Pe = z.get("text-rotation-alignment") === "map" && z.get("symbol-placement") !== "point", he = z.get("icon-rotation-alignment") === "map" && z.get("symbol-placement") !== "point", Ie = z.get("symbol-placement"), ze = re / 2;
|
|
@@ -31441,19 +31441,19 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31441
31441
|
};
|
|
31442
31442
|
if (Ie === "line")
|
|
31443
31443
|
for (const Ct of mE(e.geometry, 0, 0, Vt, Vt)) {
|
|
31444
|
-
const at =
|
|
31444
|
+
const at = G4(Ct, re, fe, o.vertical || $, c, V, Y, l.overscaling, Vt);
|
|
31445
31445
|
for (const Xt of at)
|
|
31446
|
-
$ &&
|
|
31446
|
+
$ && X4(l, $.text, ze, Xt) || dt(Ct, Xt, T);
|
|
31447
31447
|
}
|
|
31448
31448
|
else if (Ie === "line-center") {
|
|
31449
31449
|
for (const Ct of e.geometry)
|
|
31450
31450
|
if (Ct.length > 1) {
|
|
31451
|
-
const at = $
|
|
31451
|
+
const at = $4(Ct, fe, o.vertical || $, c, V, Y);
|
|
31452
31452
|
at && dt(Ct, at, T);
|
|
31453
31453
|
}
|
|
31454
31454
|
} else if (e.type === "Polygon")
|
|
31455
31455
|
for (const Ct of p_(e.geometry, 0)) {
|
|
31456
|
-
const at =
|
|
31456
|
+
const at = q4(Ct, 16);
|
|
31457
31457
|
dt(Ct[0], new Ka(at.x, at.y, 0, 0, void 0), T);
|
|
31458
31458
|
}
|
|
31459
31459
|
else if (e.type === "LineString")
|
|
@@ -31481,7 +31481,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31481
31481
|
let We = Y.top - re[1];
|
|
31482
31482
|
for (let dt = 0; dt < Xe; ++dt) {
|
|
31483
31483
|
const Ct = Y.positionedLines[dt];
|
|
31484
|
-
We =
|
|
31484
|
+
We = H4(Y, et, We, dt);
|
|
31485
31485
|
for (const at of Ct.positionedGlyphs) {
|
|
31486
31486
|
if (!at.rect)
|
|
31487
31487
|
continue;
|
|
@@ -31510,7 +31510,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31510
31510
|
const yi = at.y - We, di = new ut(-on, on - yi), Ei = -Math.PI / 2, Pi = new ut(...Kn);
|
|
31511
31511
|
An = new ut(-on + Nn[0], Nn[1]), An._rotateAround(Ei, di)._add(Pi), An.x += -yi + on, An.y -= (kn.left - Bt) * at.scale;
|
|
31512
31512
|
const eo = at.imageName ? kn.advance * at.scale : Qi * at.scale, Zr = String.fromCodePoint(at.glyph);
|
|
31513
|
-
|
|
31513
|
+
D4(Zr) ? An.x += (1 - Bt) * at.scale : O4(Zr) ? An.x += eo - kn.height * at.scale + (-Bt - 1) * at.scale : An.x += at.imageName || kn.width + 2 * Bt === jn.w && kn.height + 2 * Bt === jn.h ? (eo - Dr) / 2 : (eo - (kn.height + 2 * Bt) * at.scale) / 2, Sr = new ut(An.x, An.y - Vr), Tr = new ut(An.x + Dr, An.y), Jr = new ut(An.x + Dr, An.y - Vr);
|
|
31514
31514
|
} else {
|
|
31515
31515
|
const yi = (kn.left - Bt) * at.scale - on + Nn[0], di = (-kn.top - Bt) * at.scale + Nn[1], Ei = yi + Vr, Pi = di + Dr;
|
|
31516
31516
|
An = new ut(yi, di), Sr = new ut(Ei, di), Tr = new ut(yi, Pi), Jr = new ut(Ei, Pi);
|
|
@@ -31551,7 +31551,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31551
31551
|
const e = l.bottom - l.top;
|
|
31552
31552
|
return e > 0 ? Math.max(10, e) : null;
|
|
31553
31553
|
}
|
|
31554
|
-
function
|
|
31554
|
+
function X4(l, e, o, c) {
|
|
31555
31555
|
const p = l.compareText;
|
|
31556
31556
|
if (e in p) {
|
|
31557
31557
|
const h = p[e];
|
|
@@ -31585,7 +31585,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31585
31585
|
function CE(l, { x: e, y: o }, c = 0) {
|
|
31586
31586
|
return new ut(((e - c) * l.scale - l.x) * Vt, (o * l.scale - l.y) * Vt);
|
|
31587
31587
|
}
|
|
31588
|
-
const
|
|
31588
|
+
const K4 = ve.mat4.identity(new Float32Array(16));
|
|
31589
31589
|
class oc {
|
|
31590
31590
|
constructor(e) {
|
|
31591
31591
|
this.spec = e, this.name = e.name, this.wrap = !1, this.requiresDraping = !1, this.supportsWorldCopies = !1, this.supportsTerrain = !1, this.supportsFog = !1, this.supportsFreeCamera = !1, this.zAxisUnit = "meters", this.isReprojectedInTileSpace = !0, this.unsupportedLayers = ["custom"], this.center = [0, 0], this.range = [3.5, 7];
|
|
@@ -31631,7 +31631,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31631
31631
|
return o.y < c;
|
|
31632
31632
|
}
|
|
31633
31633
|
createInversionMatrix(e, o) {
|
|
31634
|
-
return
|
|
31634
|
+
return K4;
|
|
31635
31635
|
}
|
|
31636
31636
|
createTileMatrix(e, o, c) {
|
|
31637
31637
|
let p, h, m;
|
|
@@ -31650,7 +31650,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31650
31650
|
return { metersToTile: 1 };
|
|
31651
31651
|
}
|
|
31652
31652
|
}
|
|
31653
|
-
class
|
|
31653
|
+
class J4 extends oc {
|
|
31654
31654
|
constructor(e) {
|
|
31655
31655
|
super(e), this.range = [4, 7], this.center = e.center || [-96, 37.5];
|
|
31656
31656
|
const [o, c] = this.parallels = e.parallels || [29.5, 45.5], p = Math.sin(Mn(o));
|
|
@@ -31671,7 +31671,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31671
31671
|
}
|
|
31672
31672
|
}
|
|
31673
31673
|
const Pp = 1.340264, kp = -0.081106, Dp = 893e-6, Op = 3796e-6, A_ = Math.sqrt(3) / 2;
|
|
31674
|
-
class
|
|
31674
|
+
class Q4 extends oc {
|
|
31675
31675
|
project(e, o) {
|
|
31676
31676
|
o = o / 180 * Math.PI, e = e / 180 * Math.PI;
|
|
31677
31677
|
const c = Math.asin(A_ * Math.sin(o)), p = c * c, h = p * p * p;
|
|
@@ -31686,7 +31686,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31686
31686
|
return new D(C, M);
|
|
31687
31687
|
}
|
|
31688
31688
|
}
|
|
31689
|
-
class
|
|
31689
|
+
class eD extends oc {
|
|
31690
31690
|
constructor(e) {
|
|
31691
31691
|
super(e), this.wrap = !0, this.supportsWorldCopies = !0;
|
|
31692
31692
|
}
|
|
@@ -31702,7 +31702,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31702
31702
|
function M_(l) {
|
|
31703
31703
|
return Math.tan((Hh + l) / 2);
|
|
31704
31704
|
}
|
|
31705
|
-
class
|
|
31705
|
+
class tD extends oc {
|
|
31706
31706
|
constructor(e) {
|
|
31707
31707
|
super(e), this.center = e.center || [0, 30];
|
|
31708
31708
|
const [o, c] = this.parallels = e.parallels || [30, 30];
|
|
@@ -31741,7 +31741,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31741
31741
|
}
|
|
31742
31742
|
}
|
|
31743
31743
|
const AE = Mn(xe);
|
|
31744
|
-
class
|
|
31744
|
+
class nD extends oc {
|
|
31745
31745
|
project(e, o) {
|
|
31746
31746
|
const c = (o = Mn(o)) * o, p = c * c;
|
|
31747
31747
|
return { x: 0.5 * ((e = Mn(e)) * (0.8707 - 0.131979 * c + p * (p * (3971e-6 * c - 1529e-6 * p) - 0.013791)) / Math.PI + 0.5), y: 1 - 0.5 * (o * (1.007226 + c * (0.015085 + p * (0.028874 * c - 0.044475 - 5916e-6 * p))) / Math.PI + 1), z: 0 };
|
|
@@ -31760,7 +31760,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31760
31760
|
}
|
|
31761
31761
|
}
|
|
31762
31762
|
const ME = Mn(xe);
|
|
31763
|
-
class
|
|
31763
|
+
class rD extends oc {
|
|
31764
31764
|
project(e, o) {
|
|
31765
31765
|
o = Mn(o), e = Mn(e);
|
|
31766
31766
|
const c = Math.cos(o), p = 2 / Math.PI, h = Math.acos(c * Math.cos(e / 2)), m = Math.sin(h) / h, b = 0.5 * (e * p + 2 * c * Math.sin(e / 2) / m) || 0, C = 0.5 * (o + Math.sin(o) / m) || 0;
|
|
@@ -31790,7 +31790,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31790
31790
|
return new D(m, C);
|
|
31791
31791
|
}
|
|
31792
31792
|
}
|
|
31793
|
-
class
|
|
31793
|
+
class iD extends IE {
|
|
31794
31794
|
constructor(e) {
|
|
31795
31795
|
super(e), this.requiresDraping = !0, this.supportsWorldCopies = !1, this.supportsFog = !0, this.zAxisUnit = "pixels", this.unsupportedLayers = ["debug"], this.range = [3, 5];
|
|
31796
31796
|
}
|
|
@@ -31865,23 +31865,23 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31865
31865
|
case "mercator":
|
|
31866
31866
|
return new IE(l);
|
|
31867
31867
|
case "equirectangular":
|
|
31868
|
-
return new
|
|
31868
|
+
return new eD(l);
|
|
31869
31869
|
case "naturalEarth":
|
|
31870
|
-
return new
|
|
31870
|
+
return new nD(l);
|
|
31871
31871
|
case "equalEarth":
|
|
31872
|
-
return new
|
|
31872
|
+
return new Q4(l);
|
|
31873
31873
|
case "winkelTripel":
|
|
31874
|
-
return new
|
|
31874
|
+
return new rD(l);
|
|
31875
31875
|
case "albers":
|
|
31876
|
-
return o ? new RE(l) : new
|
|
31876
|
+
return o ? new RE(l) : new J4(l);
|
|
31877
31877
|
case "lambertConformalConic":
|
|
31878
|
-
return o ? new RE(l) : new
|
|
31878
|
+
return o ? new RE(l) : new tD(l);
|
|
31879
31879
|
case "globe":
|
|
31880
|
-
return new
|
|
31880
|
+
return new iD(l);
|
|
31881
31881
|
}
|
|
31882
31882
|
throw new Error(`Invalid projection name: ${l.name}`);
|
|
31883
31883
|
}
|
|
31884
|
-
const
|
|
31884
|
+
const oD = Uh.VectorTileFeature.types, sD = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
|
|
31885
31885
|
function R_(l, e, o, c, p, h, m, b, C, M, v, T, A) {
|
|
31886
31886
|
const S = b ? Math.min(ic, Math.round(b[0])) : 0, I = b ? Math.min(ic, Math.round(b[1])) : 0;
|
|
31887
31887
|
l.emplaceBack(e, o, Math.round(32 * c), Math.round(32 * p), h, m, (S << 1) + (C ? 1 : 0), I, 16 * M, 16 * v, 256 * T, 256 * A);
|
|
@@ -31895,7 +31895,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31895
31895
|
function k_(l, e, o, c, p) {
|
|
31896
31896
|
l.emplaceBack(e, o, c, p), l.emplaceBack(e, o, c, p), l.emplaceBack(e, o, c, p), l.emplaceBack(e, o, c, p);
|
|
31897
31897
|
}
|
|
31898
|
-
function
|
|
31898
|
+
function aD(l) {
|
|
31899
31899
|
for (const e of l.sections)
|
|
31900
31900
|
if (z1(e.text))
|
|
31901
31901
|
return !0;
|
|
@@ -31909,7 +31909,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31909
31909
|
return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0 && this.iconTransitioningVertexArray.length === 0;
|
|
31910
31910
|
}
|
|
31911
31911
|
upload(e, o, c, p, h) {
|
|
31912
|
-
this.isEmpty() || (c && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray,
|
|
31912
|
+
this.isEmpty() || (c && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, E4.members), this.indexBuffer = e.createIndexBuffer(this.indexArray, o), this.dynamicLayoutVertexBuffer = e.createVertexBuffer(this.dynamicLayoutVertexArray, C4.members, !0), this.opacityVertexBuffer = e.createVertexBuffer(this.opacityVertexArray, sD, !0), this.iconTransitioningVertexArray.length > 0 && (this.iconTransitioningVertexBuffer = e.createVertexBuffer(this.iconTransitioningVertexArray, A4.members, !0)), this.globeExtVertexArray.length > 0 && (this.globeExtVertexBuffer = e.createVertexBuffer(this.globeExtVertexArray, T4.members, !0)), !this.zOffsetVertexBuffer && (this.zOffsetVertexArray.length > 0 || h) && (this.zOffsetVertexBuffer = e.createVertexBuffer(this.zOffsetVertexArray, I4.members, !0)), this.opacityVertexBuffer.itemSize = 1), (c || p) && this.programConfigurations.upload(e));
|
|
31913
31913
|
}
|
|
31914
31914
|
destroy() {
|
|
31915
31915
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.dynamicLayoutVertexBuffer.destroy(), this.opacityVertexBuffer.destroy(), this.iconTransitioningVertexBuffer && this.iconTransitioningVertexBuffer.destroy(), this.globeExtVertexBuffer && this.globeExtVertexBuffer.destroy(), this.zOffsetVertexBuffer && this.zOffsetVertexBuffer.destroy());
|
|
@@ -31921,7 +31921,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31921
31921
|
this.layoutVertexArray = new e(), this.layoutAttributes = o, this.indexArray = new c(), this.segments = new fi(), this.collisionVertexArray = new Wl(), this.collisionVertexArrayExt = new qs();
|
|
31922
31922
|
}
|
|
31923
31923
|
upload(e) {
|
|
31924
|
-
this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray,
|
|
31924
|
+
this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, M4.members, !0), this.collisionVertexBufferExt = e.createVertexBuffer(this.collisionVertexArrayExt, R4.members, !0);
|
|
31925
31925
|
}
|
|
31926
31926
|
destroy() {
|
|
31927
31927
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.segments.destroy(), this.collisionVertexBuffer.destroy(), this.collisionVertexBufferExt.destroy());
|
|
@@ -31979,7 +31979,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31979
31979
|
let ye, ue;
|
|
31980
31980
|
if (T) {
|
|
31981
31981
|
const Pe = h.getValueAndResolveTokens("text-field", re, c, z), he = oo.factory(Pe);
|
|
31982
|
-
|
|
31982
|
+
aD(he) && (this.hasRTLText = !0), (!this.hasRTLText || Wf() === "unavailable" || this.hasRTLText && Vo.isParsed()) && (ye = k4(he, h, re));
|
|
31983
31983
|
}
|
|
31984
31984
|
if (A) {
|
|
31985
31985
|
const Pe = h.getValueAndResolveTokens("icon-image", re, c, z);
|
|
@@ -31988,7 +31988,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
31988
31988
|
if (!ye && !ue)
|
|
31989
31989
|
continue;
|
|
31990
31990
|
const fe = this.sortFeaturesByKey ? S.evaluate(re, {}, c) : void 0;
|
|
31991
|
-
if (this.features.push({ id: G, text: ye, icon: ue, index: V, sourceLayerIndex: Z, geometry: re.geometry, properties: $.properties, type:
|
|
31991
|
+
if (this.features.push({ id: G, text: ye, icon: ue, index: V, sourceLayerIndex: Z, geometry: re.geometry, properties: $.properties, type: oD[$.type], sortKey: fe }), ue && (I[ue.namePrimary] = !0, ue.nameSecondary && (I[ue.nameSecondary] = !0)), ye) {
|
|
31992
31992
|
const Pe = C.evaluate(re, {}, c).join(","), he = m.get("text-rotation-alignment") === "map" && m.get("symbol-placement") !== "point";
|
|
31993
31993
|
this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(ps.vertical) >= 0;
|
|
31994
31994
|
for (const Ie of ye.sections)
|
|
@@ -32622,7 +32622,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
32622
32622
|
return v !== c.length && b(v, c.length - v), m;
|
|
32623
32623
|
}
|
|
32624
32624
|
}
|
|
32625
|
-
const
|
|
32625
|
+
const lD = (Math.pow(256, 2) - 1) / 16907520;
|
|
32626
32626
|
class VE extends po {
|
|
32627
32627
|
constructor(e, o, c, p) {
|
|
32628
32628
|
super(e, { layout: NE || (NE = new qr({ visibility: new Rt(Ke.layout_raster.visibility) })), paint: FE || (FE = new qr({ "raster-opacity": new Rt(Ke.paint_raster["raster-opacity"]), "raster-color": new $l(Ke.paint_raster["raster-color"]), "raster-color-mix": new Rt(Ke.paint_raster["raster-color-mix"]), "raster-color-range": new Rt(Ke.paint_raster["raster-color-range"]), "raster-hue-rotate": new Rt(Ke.paint_raster["raster-hue-rotate"]), "raster-brightness-min": new Rt(Ke.paint_raster["raster-brightness-min"]), "raster-brightness-max": new Rt(Ke.paint_raster["raster-brightness-max"]), "raster-saturation": new Rt(Ke.paint_raster["raster-saturation"]), "raster-contrast": new Rt(Ke.paint_raster["raster-contrast"]), "raster-resampling": new Rt(Ke.paint_raster["raster-resampling"]), "raster-fade-duration": new Rt(Ke.paint_raster["raster-fade-duration"]), "raster-emissive-strength": new Rt(Ke.paint_raster["raster-emissive-strength"]), "raster-array-band": new Rt(Ke.paint_raster["raster-array-band"]), "raster-elevation": new Rt(Ke.paint_raster["raster-elevation"]) })) }, o, c, p), this.updateColorRamp(), this._curRampRange = [NaN, NaN];
|
|
@@ -32685,7 +32685,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
32685
32685
|
return this.paint.get("raster-particle-elevation");
|
|
32686
32686
|
}
|
|
32687
32687
|
}
|
|
32688
|
-
class
|
|
32688
|
+
class cD extends po {
|
|
32689
32689
|
constructor(e, o) {
|
|
32690
32690
|
super(e, {}, o, null), this.implementation = e, e.slot && (this.slot = e.slot);
|
|
32691
32691
|
}
|
|
@@ -32831,7 +32831,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
32831
32831
|
if (gt(l, C))
|
|
32832
32832
|
return h;
|
|
32833
32833
|
}
|
|
32834
|
-
const
|
|
32834
|
+
const uD = _r([{ name: "a_pos_3f", components: 3, type: "Float32" }]), hD = _r([{ name: "a_color_3f", components: 3, type: "Float32" }]), dD = _r([{ name: "a_color_4f", components: 4, type: "Float32" }]), fD = _r([{ name: "a_uv_2f", components: 2, type: "Float32" }]), pD = _r([{ name: "a_normal_3f", components: 3, type: "Float32" }]), mD = _r([{ name: "a_normal_matrix0", components: 4, type: "Float32" }, { name: "a_normal_matrix1", components: 4, type: "Float32" }, { name: "a_normal_matrix2", components: 4, type: "Float32" }, { name: "a_normal_matrix3", components: 4, type: "Float32" }]), gD = _r([{ name: "a_pbr", components: 4, type: "Uint16" }, { name: "a_heightBasedEmissiveStrength", components: 3, type: "Float32" }]), QE = { None: 0, Model: 1, Symbol: 2, FillExtrusion: 4, All: 7 };
|
|
32835
32835
|
class V_ {
|
|
32836
32836
|
constructor(e, o, c, p) {
|
|
32837
32837
|
this.message = (e ? `${e}: ` : "") + c, p && (this.identifier = p), o != null && o.__line__ && (this.line = o.__line__);
|
|
@@ -32937,7 +32937,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
32937
32937
|
if (!this.uploaded)
|
|
32938
32938
|
for (const o in this.instancesPerModel) {
|
|
32939
32939
|
const c = this.instancesPerModel[o];
|
|
32940
|
-
c.instancedDataArray.length < 0 || c.instancedDataArray.length === 0 || (c.instancedDataBuffer ? c.instancedDataBuffer.updateData(c.instancedDataArray) : c.instancedDataBuffer = e.createVertexBuffer(c.instancedDataArray,
|
|
32940
|
+
c.instancedDataArray.length < 0 || c.instancedDataArray.length === 0 || (c.instancedDataBuffer ? c.instancedDataBuffer.updateData(c.instancedDataArray) : c.instancedDataBuffer = e.createVertexBuffer(c.instancedDataArray, mD.members, !0, void 0, this.instanceCount));
|
|
32941
32941
|
}
|
|
32942
32942
|
this.uploaded = !0;
|
|
32943
32943
|
}
|
|
@@ -33043,15 +33043,15 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33043
33043
|
function zp(l, e, o = !1) {
|
|
33044
33044
|
l.uploaded || (l.gfxTexture = new Ov(e, l.image, o ? e.gl.R8 : e.gl.RGBA8, { useMipmap: l.sampler.minFilter >= e.gl.NEAREST_MIPMAP_NEAREST }), l.uploaded = !0, l.image = null);
|
|
33045
33045
|
}
|
|
33046
|
-
function
|
|
33047
|
-
l.indexBuffer = e.createIndexBuffer(l.indexArray, !1, !0), l.vertexBuffer = e.createVertexBuffer(l.vertexArray,
|
|
33046
|
+
function _D(l, e, o) {
|
|
33047
|
+
l.indexBuffer = e.createIndexBuffer(l.indexArray, !1, !0), l.vertexBuffer = e.createVertexBuffer(l.vertexArray, uD.members, !1, !0), l.normalArray && (l.normalBuffer = e.createVertexBuffer(l.normalArray, pD.members, !1, !0)), l.texcoordArray && (l.texcoordBuffer = e.createVertexBuffer(l.texcoordArray, fD.members, !1, !0)), l.colorArray && (l.colorBuffer = e.createVertexBuffer(l.colorArray, (l.colorArray.bytesPerElement === 12 ? hD : dD).members, !1, !0)), l.featureArray && (l.pbrBuffer = e.createVertexBuffer(l.featureArray, gD.members, !0)), l.segments = fi.simpleSegment(0, 0, l.vertexArray.length, l.indexArray.length);
|
|
33048
33048
|
const c = l.material;
|
|
33049
33049
|
c.pbrMetallicRoughness.baseColorTexture && zp(c.pbrMetallicRoughness.baseColorTexture, e), c.pbrMetallicRoughness.metallicRoughnessTexture && zp(c.pbrMetallicRoughness.metallicRoughnessTexture, e), c.normalTexture && zp(c.normalTexture, e), c.occlusionTexture && zp(c.occlusionTexture, e, o), c.emissionTexture && zp(c.emissionTexture, e);
|
|
33050
33050
|
}
|
|
33051
33051
|
function Uv(l, e, o) {
|
|
33052
33052
|
if (l.meshes)
|
|
33053
33053
|
for (const c of l.meshes)
|
|
33054
|
-
|
|
33054
|
+
_D(c, e, o);
|
|
33055
33055
|
if (l.children)
|
|
33056
33056
|
for (const c of l.children)
|
|
33057
33057
|
Uv(c, e, o);
|
|
@@ -33213,7 +33213,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33213
33213
|
const S = e.paint.get("model-color").evaluate(h, m, v).toRenderColor(null), I = e.paint.get("model-color-mix-intensity").evaluate(h, m, v);
|
|
33214
33214
|
p.evaluatedColor[T] = [S.r, S.g, S.b, I], p.evaluatedRMEA[T][0] = e.paint.get("model-roughness").evaluate(h, m, v), p.evaluatedRMEA[T][2] = e.paint.get("model-emissive-strength").evaluate(h, m, v), p.evaluatedRMEA[T][3] = S.a, p.emissionHeightBasedParams[T] = e.paint.get("model-height-based-emissive-strength-multiplier").evaluate(h, m, v), !p.hasTranslucentParts && S.a < 1 && (p.hasTranslucentParts = !0);
|
|
33215
33215
|
}
|
|
33216
|
-
delete h.properties.part,
|
|
33216
|
+
delete h.properties.part, vD(p, C !== p.evaluatedColor[2] || M !== p.evaluatedRMEA[2], this.modelTraits);
|
|
33217
33217
|
} else
|
|
33218
33218
|
p.evaluatedRMEA[0][2] = e.paint.get("model-emissive-strength").evaluate(h, m, v);
|
|
33219
33219
|
p.evaluatedScale = e.paint.get("model-scale").evaluate(h, m, v), this.updatePbrBuffer(p.node) || (this.needsUpload = !0);
|
|
@@ -33345,7 +33345,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33345
33345
|
function Np(l, e) {
|
|
33346
33346
|
return !l.isLightConstant && e;
|
|
33347
33347
|
}
|
|
33348
|
-
function
|
|
33348
|
+
function yD(l, e, o, c, p, h, m, b) {
|
|
33349
33349
|
let C = (61440 & e | (61440 & e) >> 4) >> 8, M = (3840 & e | (3840 & e) >> 4) >> 4, v = 240 & e | (240 & e) >> 4;
|
|
33350
33350
|
o[3] > 0 && (C = Cn(C, 255 * o[0], o[3]), M = Cn(M, 255 * o[1], o[3]), v = Cn(v, 255 * o[2], o[3]));
|
|
33351
33351
|
const T = C << 8 | M, A = v << 8 | Math.floor(255 * c[3]), S = function(Y) {
|
|
@@ -33367,7 +33367,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33367
33367
|
b.emplaceBack(T, A, S, $, G, V, Z);
|
|
33368
33368
|
}
|
|
33369
33369
|
}
|
|
33370
|
-
function
|
|
33370
|
+
function vD(l, e, o) {
|
|
33371
33371
|
const c = l.node;
|
|
33372
33372
|
let p = 0;
|
|
33373
33373
|
const h = o & qh.HasMeshoptCompression;
|
|
@@ -33379,7 +33379,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33379
33379
|
for (const C of m.featureData) {
|
|
33380
33380
|
const M = h ? 65535 & C : C >> 16 & 65535, v = h ? C >> 16 & 65535 : 65535 & C, T = (15 & v) < 8 ? 15 & v : 0, A = l.evaluatedRMEA[T], S = l.evaluatedColor[T], I = l.emissionHeightBasedParams[T];
|
|
33381
33381
|
let P;
|
|
33382
|
-
if (b && T === 2 && c.lights && (P = new Lh(), P.resize(10 * c.lights.length)),
|
|
33382
|
+
if (b && T === 2 && c.lights && (P = new Lh(), P.resize(10 * c.lights.length)), yD(m.featureArray, M, S, A, I, m.aabb.min[2], m.aabb.max[2], P), P && b) {
|
|
33383
33383
|
b = !1;
|
|
33384
33384
|
const z = c.meshes[c.lightMeshIndex];
|
|
33385
33385
|
z.featureArray = P, z.featureArray._trim();
|
|
@@ -33389,7 +33389,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33389
33389
|
}
|
|
33390
33390
|
}
|
|
33391
33391
|
Qt($_, "Tiled3dModelBucket", { omit: ["layers"] }), Qt(cT, "Tiled3dModelFeature");
|
|
33392
|
-
const
|
|
33392
|
+
const xD = ["id", "tile", "layer", "source", "sourceLayer", "state"];
|
|
33393
33393
|
class Fp {
|
|
33394
33394
|
constructor(e, o, c, p, h) {
|
|
33395
33395
|
this.type = "Feature", this._vectorTileFeature = e, this._z = o, this._x = c, this._y = p, this.properties = e.properties, this.id = h;
|
|
@@ -33406,7 +33406,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33406
33406
|
}
|
|
33407
33407
|
toJSON() {
|
|
33408
33408
|
const e = { type: "Feature", state: void 0, geometry: this.geometry, properties: this.properties };
|
|
33409
|
-
for (const o of
|
|
33409
|
+
for (const o of xD)
|
|
33410
33410
|
this[o] !== void 0 && (e[o] = this[o]);
|
|
33411
33411
|
return e;
|
|
33412
33412
|
}
|
|
@@ -33415,7 +33415,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33415
33415
|
const p = 1 << l.z;
|
|
33416
33416
|
e.lat = me((c / Vt + l.y) / p), e.lng = se((o / Vt + l.x) / p);
|
|
33417
33417
|
}
|
|
33418
|
-
const
|
|
33418
|
+
const bD = { circle: class extends po {
|
|
33419
33419
|
constructor(l, e, o, c) {
|
|
33420
33420
|
super(l, { layout: wr || (wr = new qr({ "circle-sort-key": new mn(Ke.layout_circle["circle-sort-key"]), visibility: new Rt(Ke.layout_circle.visibility) })), paint: Xr || (Xr = new qr({ "circle-radius": new mn(Ke.paint_circle["circle-radius"]), "circle-color": new mn(Ke.paint_circle["circle-color"]), "circle-blur": new mn(Ke.paint_circle["circle-blur"]), "circle-opacity": new mn(Ke.paint_circle["circle-opacity"]), "circle-translate": new Rt(Ke.paint_circle["circle-translate"]), "circle-translate-anchor": new Rt(Ke.paint_circle["circle-translate-anchor"]), "circle-pitch-scale": new Rt(Ke.paint_circle["circle-pitch-scale"]), "circle-pitch-alignment": new Rt(Ke.paint_circle["circle-pitch-alignment"]), "circle-stroke-width": new mn(Ke.paint_circle["circle-stroke-width"]), "circle-stroke-color": new mn(Ke.paint_circle["circle-stroke-color"]), "circle-stroke-opacity": new mn(Ke.paint_circle["circle-stroke-opacity"]), "circle-emissive-strength": new Rt(Ke.paint_circle["circle-emissive-strength"]) })) }, e, o, c);
|
|
33421
33421
|
}
|
|
@@ -33633,7 +33633,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33633
33633
|
if (Tp)
|
|
33634
33634
|
return Tp;
|
|
33635
33635
|
const o = K2();
|
|
33636
|
-
return Tp = new
|
|
33636
|
+
return Tp = new S4(o.paint.properties["line-width"].specification), Tp.useIntegerZoom = !0, Tp;
|
|
33637
33637
|
})().possiblyEvaluate(this._transitioningPaint._values["line-width"].value, l);
|
|
33638
33638
|
}
|
|
33639
33639
|
createBucket(l) {
|
|
@@ -33857,7 +33857,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33857
33857
|
return !0;
|
|
33858
33858
|
}
|
|
33859
33859
|
} };
|
|
33860
|
-
class
|
|
33860
|
+
class wD {
|
|
33861
33861
|
constructor(e) {
|
|
33862
33862
|
this._callback = e, this._triggered = !1, typeof MessageChannel < "u" && (this._channel = new MessageChannel(), this._channel.port2.onmessage = () => {
|
|
33863
33863
|
this._triggered = !1, this._callback();
|
|
@@ -33873,9 +33873,9 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33873
33873
|
};
|
|
33874
33874
|
}
|
|
33875
33875
|
}
|
|
33876
|
-
class
|
|
33876
|
+
class SD {
|
|
33877
33877
|
constructor() {
|
|
33878
|
-
this.tasks = {}, this.taskQueue = [], wo(["process"], this), this.invoker = new
|
|
33878
|
+
this.tasks = {}, this.taskQueue = [], wo(["process"], this), this.invoker = new wD(this.process), this.nextId = 0;
|
|
33879
33879
|
}
|
|
33880
33880
|
add(e, o) {
|
|
33881
33881
|
const c = this.nextId++, p = function({ type: h, isSymbolTile: m, zoom: b }) {
|
|
@@ -33923,7 +33923,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
33923
33923
|
}
|
|
33924
33924
|
class hT {
|
|
33925
33925
|
constructor(e, o, c) {
|
|
33926
|
-
this.target = e, this.parent = o, this.mapId = c, this.callbacks = {}, this.cancelCallbacks = {}, wo(["receive"], this), this.target.addEventListener("message", this.receive, !1), this.scheduler = new
|
|
33926
|
+
this.target = e, this.parent = o, this.mapId = c, this.callbacks = {}, this.cancelCallbacks = {}, wo(["receive"], this), this.target.addEventListener("message", this.receive, !1), this.scheduler = new SD();
|
|
33927
33927
|
}
|
|
33928
33928
|
send(e, o, c, p, h = !1, m) {
|
|
33929
33929
|
const b = Math.round(1e18 * Math.random()).toString(36).substring(0, 10);
|
|
@@ -34145,11 +34145,11 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34145
34145
|
const c = o.dim, p = ht(l * c - 0.5, 0, c - 1), h = ht(e * c - 0.5, 0, c - 1), m = Math.floor(p), b = Math.floor(h), C = Math.min(m + 1, c - 1), M = Math.min(b + 1, c - 1);
|
|
34146
34146
|
return yT(o.get(m, b), o.get(C, b), o.get(m, M), o.get(C, M), p - m, h - b);
|
|
34147
34147
|
}
|
|
34148
|
-
const
|
|
34149
|
-
function
|
|
34148
|
+
const ED = { mapbox: [6553.6, 25.6, 0.1, 1e4], terrarium: [256, 1, 1 / 256, 32768] };
|
|
34149
|
+
function TD(l, e, o) {
|
|
34150
34150
|
return (256 * l * 256 + 256 * e + o) / 10 - 1e4;
|
|
34151
34151
|
}
|
|
34152
|
-
function
|
|
34152
|
+
function CD(l, e, o) {
|
|
34153
34153
|
return 256 * l + e + o / 256 - 32768;
|
|
34154
34154
|
}
|
|
34155
34155
|
class G_ {
|
|
@@ -34168,7 +34168,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34168
34168
|
m[this._idx(-1, C)] = m[this._idx(0, C)], m[this._idx(h, C)] = m[this._idx(h - 1, C)], m[this._idx(C, -1)] = m[this._idx(C, 0)], m[this._idx(C, h)] = m[this._idx(C, h - 1)];
|
|
34169
34169
|
m[this._idx(-1, -1)] = m[this._idx(0, 0)], m[this._idx(h, -1)] = m[this._idx(h - 1, 0)], m[this._idx(-1, h)] = m[this._idx(0, h - 1)], m[this._idx(h, h)] = m[this._idx(h - 1, h - 1)];
|
|
34170
34170
|
}
|
|
34171
|
-
const b = c === "terrarium" ?
|
|
34171
|
+
const b = c === "terrarium" ? CD : TD;
|
|
34172
34172
|
for (let C = 0; C < m.length; ++C) {
|
|
34173
34173
|
const M = 4 * C;
|
|
34174
34174
|
this.floatView[C] = b(this.pixels[M], this.pixels[M + 1], this.pixels[M + 2]);
|
|
@@ -34188,7 +34188,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34188
34188
|
return this.floatView[p] = c, c - h;
|
|
34189
34189
|
}
|
|
34190
34190
|
static getUnpackVector(e) {
|
|
34191
|
-
return
|
|
34191
|
+
return ED[e];
|
|
34192
34192
|
}
|
|
34193
34193
|
_idx(e, o) {
|
|
34194
34194
|
if (e < -1 || e >= this.dim + 1 || o < -1 || o >= this.dim + 1)
|
|
@@ -34232,44 +34232,44 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34232
34232
|
this._tree && (this._tree.dem = this);
|
|
34233
34233
|
}
|
|
34234
34234
|
}
|
|
34235
|
-
function
|
|
34235
|
+
function ID(l, e, o) {
|
|
34236
34236
|
l === 1 ? e.headerLength = o.readFixed32() : l === 2 ? e.x = o.readVarint() : l === 3 ? e.y = o.readVarint() : l === 4 ? e.z = o.readVarint() : l === 5 && e.layers.push(function(c, p) {
|
|
34237
|
-
return c.readFields(
|
|
34237
|
+
return c.readFields(PD, { version: 0, name: "", units: "", tileSize: 0, buffer: 0, pixelFormat: 0, dataIndex: [] }, p);
|
|
34238
34238
|
}(o, o.readVarint() + o.pos));
|
|
34239
34239
|
}
|
|
34240
|
-
function
|
|
34240
|
+
function AD(l, e, o) {
|
|
34241
34241
|
l === 1 ? (e.delta_filter = function(c, p) {
|
|
34242
|
-
return c.readFields(
|
|
34242
|
+
return c.readFields(MD, { blockSize: 0 }, p);
|
|
34243
34243
|
}(o, o.readVarint() + o.pos), e.filter = "delta_filter") : l === 2 ? (o.readVarint(), e.filter = "zigzag_filter") : l === 3 ? (o.readVarint(), e.filter = "bitshuffle_filter") : l === 4 && (o.readVarint(), e.filter = "byteshuffle_filter");
|
|
34244
34244
|
}
|
|
34245
|
-
function
|
|
34245
|
+
function MD(l, e, o) {
|
|
34246
34246
|
l === 1 && (e.blockSize = o.readVarint());
|
|
34247
34247
|
}
|
|
34248
|
-
function
|
|
34248
|
+
function RD(l, e, o) {
|
|
34249
34249
|
l === 1 ? (o.readVarint(), e.codec = "gzip_data") : l === 2 ? (o.readVarint(), e.codec = "jpeg_image") : l === 3 ? (o.readVarint(), e.codec = "webp_image") : l === 4 && (o.readVarint(), e.codec = "png_image");
|
|
34250
34250
|
}
|
|
34251
|
-
function
|
|
34251
|
+
function LD(l, e, o) {
|
|
34252
34252
|
let c = 0, p = 0;
|
|
34253
34253
|
l === 1 ? e.firstByte = o.readFixed64() : l === 2 ? e.lastByte = o.readFixed64() : l === 3 ? e.filters.push(function(h, m) {
|
|
34254
|
-
return h.readFields(
|
|
34254
|
+
return h.readFields(AD, {}, m);
|
|
34255
34255
|
}(o, o.readVarint() + o.pos)) : l === 4 ? e.codec = function(h, m) {
|
|
34256
|
-
return h.readFields(
|
|
34256
|
+
return h.readFields(RD, {}, m);
|
|
34257
34257
|
}(o, o.readVarint() + o.pos) : l === 5 ? p = o.readFloat() : l === 6 ? c = o.readFloat() : l === 7 ? e.bands.push(o.readString()) : l === 8 ? e.offset = o.readDouble() : l === 9 && (e.scale = o.readDouble()), e.offset === 0 && (e.offset = p), e.scale === 0 && (e.scale = c);
|
|
34258
34258
|
}
|
|
34259
|
-
function
|
|
34259
|
+
function PD(l, e, o) {
|
|
34260
34260
|
l === 1 ? e.version = o.readVarint() : l === 2 ? e.name = o.readString() : l === 3 ? e.units = o.readString() : l === 4 ? e.tileSize = o.readVarint() : l === 5 ? e.buffer = o.readVarint() : l === 6 ? e.pixelFormat = o.readVarint() : l === 7 && e.dataIndex.push(function(c, p) {
|
|
34261
|
-
return c.readFields(
|
|
34261
|
+
return c.readFields(LD, { firstByte: 0, lastByte: 0, filters: [], codec: null, offset: 0, scale: 0, bands: [] }, p);
|
|
34262
34262
|
}(o, o.readVarint() + o.pos));
|
|
34263
34263
|
}
|
|
34264
|
-
function
|
|
34264
|
+
function kD(l, e, o) {
|
|
34265
34265
|
if (l === 2)
|
|
34266
34266
|
(function(c, p, h) {
|
|
34267
|
-
c.readFields(
|
|
34267
|
+
c.readFields(DD, h, p);
|
|
34268
34268
|
})(o, o.readVarint() + o.pos, e);
|
|
34269
34269
|
else if (l === 3)
|
|
34270
34270
|
throw new Error("Not implemented");
|
|
34271
34271
|
}
|
|
34272
|
-
function
|
|
34272
|
+
function DD(l, e, o) {
|
|
34273
34273
|
if (l === 1) {
|
|
34274
34274
|
let c = 0;
|
|
34275
34275
|
const p = o.readVarint() + o.pos;
|
|
@@ -34278,7 +34278,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34278
34278
|
}
|
|
34279
34279
|
}
|
|
34280
34280
|
Qt(G_, "DEMData"), Qt(_T, "DemMinMaxQuadTree", { omit: ["dem"] });
|
|
34281
|
-
class
|
|
34281
|
+
class OD {
|
|
34282
34282
|
constructor(e) {
|
|
34283
34283
|
this.capacity = e, this.cache = /* @__PURE__ */ new Map();
|
|
34284
34284
|
}
|
|
@@ -34292,7 +34292,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34292
34292
|
this.cache.has(e) ? this.cache.delete(e) : this.cache.size === this.capacity && this.cache.delete(this.cache.keys().next().value), this.cache.set(e, o);
|
|
34293
34293
|
}
|
|
34294
34294
|
}
|
|
34295
|
-
function
|
|
34295
|
+
function zD(l, e) {
|
|
34296
34296
|
if (e.length !== 4)
|
|
34297
34297
|
throw new Error(`Expected data of dimension 4 but got ${e.length}.`);
|
|
34298
34298
|
let o = e[3];
|
|
@@ -34315,12 +34315,12 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34315
34315
|
}
|
|
34316
34316
|
return l;
|
|
34317
34317
|
}
|
|
34318
|
-
function
|
|
34318
|
+
function ND(l) {
|
|
34319
34319
|
for (let e = 0, o = l.length; e < o; e++)
|
|
34320
34320
|
l[e] = l[e] >>> 1 ^ -(1 & l[e]);
|
|
34321
34321
|
return l;
|
|
34322
34322
|
}
|
|
34323
|
-
function
|
|
34323
|
+
function FD(l, e) {
|
|
34324
34324
|
switch (e) {
|
|
34325
34325
|
case "uint32":
|
|
34326
34326
|
return l;
|
|
@@ -34340,17 +34340,17 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34340
34340
|
throw new Error(`Invalid pixel format, "${e}"`);
|
|
34341
34341
|
}
|
|
34342
34342
|
}
|
|
34343
|
-
var ms = Uint8Array, Bp = Uint16Array,
|
|
34343
|
+
var ms = Uint8Array, Bp = Uint16Array, BD = Int32Array, vT = new ms([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), xT = new ms([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), UD = new ms([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), bT = function(l, e) {
|
|
34344
34344
|
for (var o = new Bp(31), c = 0; c < 31; ++c)
|
|
34345
34345
|
o[c] = e += 1 << l[c - 1];
|
|
34346
|
-
var p = new
|
|
34346
|
+
var p = new BD(o[30]);
|
|
34347
34347
|
for (c = 1; c < 30; ++c)
|
|
34348
34348
|
for (var h = o[c]; h < o[c + 1]; ++h)
|
|
34349
34349
|
p[h] = h - o[c] << 5 | c;
|
|
34350
34350
|
return { b: o, r: p };
|
|
34351
|
-
}, wT = bT(vT, 2), ST = wT.b,
|
|
34352
|
-
ST[28] = 258,
|
|
34353
|
-
for (var
|
|
34351
|
+
}, wT = bT(vT, 2), ST = wT.b, VD = wT.r;
|
|
34352
|
+
ST[28] = 258, VD[258] = 28;
|
|
34353
|
+
for (var jD = bT(xT, 0).b, ET = new Bp(32768), Ai = 0; Ai < 32768; ++Ai) {
|
|
34354
34354
|
var Yh = (43690 & Ai) >> 1 | (21845 & Ai) << 1;
|
|
34355
34355
|
ET[Ai] = ((65280 & (Yh = (61680 & (Yh = (52428 & Yh) >> 2 | (13107 & Yh) << 2)) >> 4 | (3855 & Yh) << 4)) >> 8 | (255 & Yh) << 8) >> 1;
|
|
34356
34356
|
}
|
|
@@ -34379,7 +34379,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34379
34379
|
var TT = new ms(32);
|
|
34380
34380
|
for (Ai = 0; Ai < 32; ++Ai)
|
|
34381
34381
|
TT[Ai] = 5;
|
|
34382
|
-
var $
|
|
34382
|
+
var $D = Up(Vp, 9), GD = Up(TT, 5), $v = function(l) {
|
|
34383
34383
|
for (var e = l[0], o = 1; o < l.length; ++o)
|
|
34384
34384
|
l[o] > e && (e = l[o]);
|
|
34385
34385
|
return e;
|
|
@@ -34389,23 +34389,23 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34389
34389
|
}, Gv = function(l, e) {
|
|
34390
34390
|
var o = e / 8 | 0;
|
|
34391
34391
|
return (l[o] | l[o + 1] << 8 | l[o + 2] << 16) >> (7 & e);
|
|
34392
|
-
},
|
|
34393
|
-
var c = new Error(e ||
|
|
34392
|
+
}, HD = ["unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data"], na = function(l, e, o) {
|
|
34393
|
+
var c = new Error(e || HD[l]);
|
|
34394
34394
|
if (c.code = l, Error.captureStackTrace && Error.captureStackTrace(c, na), !o)
|
|
34395
34395
|
throw c;
|
|
34396
34396
|
return c;
|
|
34397
|
-
},
|
|
34397
|
+
}, qD = new ms(0), WD = typeof TextDecoder < "u" && new TextDecoder();
|
|
34398
34398
|
try {
|
|
34399
|
-
|
|
34399
|
+
WD.decode(qD, { stream: !0 });
|
|
34400
34400
|
} catch {
|
|
34401
34401
|
}
|
|
34402
|
-
const
|
|
34402
|
+
const ZD = { gzip_data: "gzip" };
|
|
34403
34403
|
class Ps extends Error {
|
|
34404
34404
|
constructor(e) {
|
|
34405
34405
|
super(e), this.name = "MRTError";
|
|
34406
34406
|
}
|
|
34407
34407
|
}
|
|
34408
|
-
const
|
|
34408
|
+
const YD = { 0: "uint32", 1: "uint32", 2: "uint16", 3: "uint8" }, CT = { uint32: 1, uint16: 2, uint8: 4 }, XD = { uint32: Uint32Array, uint16: Uint16Array, uint8: Uint8Array };
|
|
34409
34409
|
let Hv;
|
|
34410
34410
|
class qv {
|
|
34411
34411
|
constructor(e = 5) {
|
|
@@ -34428,13 +34428,13 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34428
34428
|
if (o.length < c)
|
|
34429
34429
|
throw new Ps(`Expected header with length >= ${c} but got buffer of length ${o.length}`);
|
|
34430
34430
|
const p = function(h, m) {
|
|
34431
|
-
return h.readFields(
|
|
34431
|
+
return h.readFields(ID, { headerLength: 0, x: 0, y: 0, z: 0, layers: [] }, void 0);
|
|
34432
34432
|
}(new Hv(o.subarray(0, c)));
|
|
34433
34433
|
if (!isNaN(this.x) && (this.x !== p.x || this.y !== p.y || this.z !== p.z))
|
|
34434
34434
|
throw new Ps(`Invalid attempt to parse header ${p.z}/${p.x}/${p.y} for tile ${this.z}/${this.x}/${this.y}`);
|
|
34435
34435
|
this.x = p.x, this.y = p.y, this.z = p.z;
|
|
34436
34436
|
for (const h of p.layers)
|
|
34437
|
-
this.layers[h.name] = new
|
|
34437
|
+
this.layers[h.name] = new KD(h, { cacheSize: this._cacheSize });
|
|
34438
34438
|
return this;
|
|
34439
34439
|
}
|
|
34440
34440
|
createDecodingTask(e) {
|
|
@@ -34457,11 +34457,11 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34457
34457
|
});
|
|
34458
34458
|
}
|
|
34459
34459
|
}
|
|
34460
|
-
class
|
|
34460
|
+
class KD {
|
|
34461
34461
|
constructor({ version: e, name: o, units: c, tileSize: p, pixelFormat: h, buffer: m, dataIndex: b }, C) {
|
|
34462
34462
|
if (this.version = e, this.version !== 1)
|
|
34463
34463
|
throw new Ps(`Cannot parse raster layer encoded with MRT version ${e}`);
|
|
34464
|
-
this.name = o, this.units = c, this.tileSize = p, this.buffer = m, this.pixelFormat =
|
|
34464
|
+
this.name = o, this.units = c, this.tileSize = p, this.buffer = m, this.pixelFormat = YD[h], this.dataIndex = b, this.bandShape = [p + 2 * m, p + 2 * m, CT[this.pixelFormat]], this._decodedBlocks = new OD(C ? C.cacheSize : 5), this._blocksInProgress = /* @__PURE__ */ new Set();
|
|
34465
34465
|
}
|
|
34466
34466
|
get dimension() {
|
|
34467
34467
|
return CT[this.pixelFormat];
|
|
@@ -34586,12 +34586,12 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34586
34586
|
continue;
|
|
34587
34587
|
}
|
|
34588
34588
|
if (Tt == 1)
|
|
34589
|
-
Ct = $
|
|
34589
|
+
Ct = $D, at = GD, Xt = 9, Bt = 5;
|
|
34590
34590
|
else if (Tt == 2) {
|
|
34591
34591
|
var on = ta(re, We, 31) + 257, kn = ta(re, We + 10, 15) + 4, jn = on + ta(re, We + 5, 31) + 1;
|
|
34592
34592
|
We += 14;
|
|
34593
34593
|
for (var $n = new ms(jn), Nn = new ms(19), Kn = 0; Kn < kn; ++Kn)
|
|
34594
|
-
Nn[
|
|
34594
|
+
Nn[UD[Kn]] = ta(re, We + 3 * Kn, 7);
|
|
34595
34595
|
We += 3 * kn;
|
|
34596
34596
|
var Yn = $v(Nn), Vr = (1 << Yn) - 1, Dr = Up(Nn, Yn);
|
|
34597
34597
|
for (Kn = 0; Kn < jn; ) {
|
|
@@ -34630,7 +34630,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34630
34630
|
var eo = Pi - 254;
|
|
34631
34631
|
Pi > 264 && (eo = ta(re, We, (1 << (ia = vT[Kn = Pi - 257])) - 1) + ST[Kn], We += ia);
|
|
34632
34632
|
var Zr = at[Gv(re, We) & di], $o = Zr >> 4;
|
|
34633
|
-
if (Zr || na(3), We += 15 & Zr, Mi =
|
|
34633
|
+
if (Zr || na(3), We += 15 & Zr, Mi = jD[$o], $o > 3) {
|
|
34634
34634
|
var ia = xT[$o];
|
|
34635
34635
|
Mi += Gv(re, We) & (1 << ia) - 1, We += ia;
|
|
34636
34636
|
}
|
|
@@ -34654,24 +34654,24 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34654
34654
|
return dt != ue.length && he ? (Ne = ue, ((je = dt) == null || je > Ne.length) && (je = Ne.length), new ms(Ne.subarray(0, je))) : ue.subarray(0, dt);
|
|
34655
34655
|
}(G.subarray(V, -8), { i: 2 }, new ms(((F = G)[($ = F.length) - 4] | F[$ - 3] << 8 | F[$ - 2] << 16 | F[$ - 1] << 24) >>> 0))));
|
|
34656
34656
|
var F, $, G, V;
|
|
34657
|
-
const Z =
|
|
34657
|
+
const Z = ZD[z];
|
|
34658
34658
|
if (!Z)
|
|
34659
34659
|
throw new Error(`Unhandled codec: ${z}`);
|
|
34660
34660
|
const Y = new globalThis.DecompressionStream(Z);
|
|
34661
34661
|
return new Response(new Blob([P]).stream().pipeThrough(Y)).arrayBuffer().then((re) => new Uint8Array(re));
|
|
34662
34662
|
}(A, T).then((P) => (function(z, F) {
|
|
34663
|
-
z.readFields(
|
|
34664
|
-
}(new Hv(P), S), new
|
|
34663
|
+
z.readFields(kD, F);
|
|
34664
|
+
}(new Hv(P), S), new XD[b](S.buffer))), I.then((P) => {
|
|
34665
34665
|
for (let z = v.length - 1; z >= 0; z--)
|
|
34666
34666
|
switch (v[z]) {
|
|
34667
34667
|
case "delta_filter":
|
|
34668
|
-
|
|
34668
|
+
zD(P, C);
|
|
34669
34669
|
break;
|
|
34670
34670
|
case "zigzag_filter":
|
|
34671
|
-
|
|
34671
|
+
ND(P);
|
|
34672
34672
|
break;
|
|
34673
34673
|
case "bitshuffle_filter":
|
|
34674
|
-
|
|
34674
|
+
FD(P, b);
|
|
34675
34675
|
break;
|
|
34676
34676
|
default:
|
|
34677
34677
|
throw new Ps(`Unhandled filter "${v[z]}"`);
|
|
@@ -34725,13 +34725,13 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34725
34725
|
throw new Error("WebAssembly not supported, cannot instantiate meshoptimizer");
|
|
34726
34726
|
return Xh = WebAssembly.validate(l) ? ae.MESHOPT_SIMD_URL : ae.MESHOPT_URL, Xh;
|
|
34727
34727
|
}
|
|
34728
|
-
const q_ = { 5120: Int8Array, 5121: Uint8Array, 5122: Int16Array, 5123: Uint16Array, 5125: Uint32Array, 5126: Float32Array },
|
|
34728
|
+
const q_ = { 5120: Int8Array, 5121: Uint8Array, 5122: Int16Array, 5123: Uint16Array, 5125: Uint32Array, 5126: Float32Array }, JD = { 5120: "DT_INT8", 5121: "DT_UINT8", 5122: "DT_INT16", 5123: "DT_UINT16", 5125: "DT_UINT32", 5126: "DT_FLOAT32" }, qp = { SCALAR: 1, VEC2: 2, VEC3: 3, VEC4: 4, MAT2: 4, MAT3: 9, MAT4: 16 };
|
|
34729
34729
|
function RT(l, e, o) {
|
|
34730
34730
|
const c = o.json.bufferViews.length, p = o.buffers.length;
|
|
34731
34731
|
e.bufferView = c, o.json.bufferViews[c] = { buffer: p, byteLength: l.byteLength }, o.buffers[p] = l;
|
|
34732
34732
|
}
|
|
34733
34733
|
const Xv = "KHR_draco_mesh_compression";
|
|
34734
|
-
function
|
|
34734
|
+
function QD(l, e) {
|
|
34735
34735
|
const o = l.extensions && l.extensions[Xv];
|
|
34736
34736
|
if (!o)
|
|
34737
34737
|
return;
|
|
@@ -34741,7 +34741,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34741
34741
|
const m = e.json.accessors[l.indices], b = q_[m.componentType], C = m.count * b.BYTES_PER_ELEMENT, M = ra._malloc(C);
|
|
34742
34742
|
b === Uint16Array ? c.GetTrianglesUInt16Array(h, C, M) : c.GetTrianglesUInt32Array(h, C, M), RT(ra.memory.buffer.slice(M, M + C), m, e), ra._free(M);
|
|
34743
34743
|
for (const v of Object.keys(o.attributes)) {
|
|
34744
|
-
const T = c.GetAttributeByUniqueId(h, o.attributes[v]), A = e.json.accessors[l.attributes[v]], S =
|
|
34744
|
+
const T = c.GetAttributeByUniqueId(h, o.attributes[v]), A = e.json.accessors[l.attributes[v]], S = JD[A.componentType], I = A.count * qp[A.type] * q_[A.componentType].BYTES_PER_ELEMENT, P = ra._malloc(I);
|
|
34745
34745
|
c.GetAttributeDataArrayForAllPoints(h, T, ra[S], I, P), RT(ra.memory.buffer.slice(P, P + I), A, e), ra._free(P);
|
|
34746
34746
|
}
|
|
34747
34747
|
c.destroy(), h.destroy(), delete l.extensions[Xv];
|
|
@@ -34904,7 +34904,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
34904
34904
|
if (T && m)
|
|
34905
34905
|
for (const { primitives: S } of m)
|
|
34906
34906
|
for (const I of S)
|
|
34907
|
-
|
|
34907
|
+
QD(I, c);
|
|
34908
34908
|
if (A && m && C)
|
|
34909
34909
|
for (const S of C)
|
|
34910
34910
|
e5(S, c);
|
|
@@ -35717,7 +35717,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
35717
35717
|
}, i.cI = NS, i.cJ = oe, i.cK = te, i.cL = 256, i.cM = function(l, e) {
|
|
35718
35718
|
const o = [0, 0, 0], c = u_(ya(e.canonical));
|
|
35719
35719
|
return ve.vec3.transformMat4(o, o, c), ve.vec3.transformMat4(o, o, l), o;
|
|
35720
|
-
}, i.cN = (l) => ({ u_camera_to_center_distance: new zi(l), u_extrude_scale: new Fh(l), u_device_pixel_ratio: new zi(l), u_matrix: new lu(l), u_inv_rot_matrix: new lu(l), u_merc_center: new Ms(l), u_tile_id: new up(l), u_zoom_transition: new zi(l), u_up_dir: new up(l), u_emissive_strength: new zi(l) }), i.cO = (l) => ({ u_matrix: new lu(l), u_pixels_to_tile_units: new Fh(l), u_device_pixel_ratio: new zi(l), u_units_to_pixels: new Ms(l), u_dash_image: new Ya(l), u_gradient_image: new Ya(l), u_image_height: new zi(l), u_texsize: new Ms(l), u_tile_units_to_pixels: new zi(l), u_alpha_discard_threshold: new zi(l), u_trim_offset: new Ms(l), u_trim_fade_range: new Ms(l), u_trim_color: new Nh(l), u_emissive_strength: new zi(l), u_zbias_factor: new zi(l), u_tile_to_meter: new zi(l) }), i.cP = (l) => ({ u_matrix: new lu(l), u_texsize: new Ms(l), u_pixels_to_tile_units: new Fh(l), u_device_pixel_ratio: new zi(l), u_image: new Ya(l), u_units_to_pixels: new Ms(l), u_tile_units_to_pixels: new zi(l), u_alpha_discard_threshold: new zi(l), u_trim_offset: new Ms(l), u_emissive_strength: new zi(l), u_zbias_factor: new zi(l), u_tile_to_meter: new zi(l) }), i.cQ = ql, i.cR =
|
|
35720
|
+
}, i.cN = (l) => ({ u_camera_to_center_distance: new zi(l), u_extrude_scale: new Fh(l), u_device_pixel_ratio: new zi(l), u_matrix: new lu(l), u_inv_rot_matrix: new lu(l), u_merc_center: new Ms(l), u_tile_id: new up(l), u_zoom_transition: new zi(l), u_up_dir: new up(l), u_emissive_strength: new zi(l) }), i.cO = (l) => ({ u_matrix: new lu(l), u_pixels_to_tile_units: new Fh(l), u_device_pixel_ratio: new zi(l), u_units_to_pixels: new Ms(l), u_dash_image: new Ya(l), u_gradient_image: new Ya(l), u_image_height: new zi(l), u_texsize: new Ms(l), u_tile_units_to_pixels: new zi(l), u_alpha_discard_threshold: new zi(l), u_trim_offset: new Ms(l), u_trim_fade_range: new Ms(l), u_trim_color: new Nh(l), u_emissive_strength: new zi(l), u_zbias_factor: new zi(l), u_tile_to_meter: new zi(l) }), i.cP = (l) => ({ u_matrix: new lu(l), u_texsize: new Ms(l), u_pixels_to_tile_units: new Fh(l), u_device_pixel_ratio: new zi(l), u_image: new Ya(l), u_units_to_pixels: new Ms(l), u_tile_units_to_pixels: new zi(l), u_alpha_discard_threshold: new zi(l), u_trim_offset: new Ms(l), u_emissive_strength: new zi(l), u_zbias_factor: new zi(l), u_tile_to_meter: new zi(l) }), i.cQ = ql, i.cR = L4, i.cS = P4, i.cT = VS, i.cU = (l, e, o, c, p, h) => {
|
|
35721
35721
|
const m = l.transform, b = m.projection.name === "globe";
|
|
35722
35722
|
let C;
|
|
35723
35723
|
if (h.paint.get("circle-pitch-alignment") === "map")
|
|
@@ -35755,7 +35755,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
35755
35755
|
const e = [], o = l.id;
|
|
35756
35756
|
return o === void 0 && e.push({ message: `layers.${o}: missing required property "id"` }), l.render === void 0 && e.push({ message: `layers.${o}: missing required method "render"` }), l.renderingMode && l.renderingMode !== "2d" && l.renderingMode !== "3d" && e.push({ message: `layers.${o}: property "renderingMode" must be either "2d" or "3d"` }), e;
|
|
35757
35757
|
}, i.cq = function(l, e, o, c) {
|
|
35758
|
-
return l.type === "custom" ? new
|
|
35758
|
+
return l.type === "custom" ? new cD(l, e) : new bD[l.type](l, e, o, c);
|
|
35759
35759
|
}, i.cr = xt, i.cs = qf, i.ct = Oi, i.cu = hp, i.cv = class extends Zs {
|
|
35760
35760
|
constructor(l) {
|
|
35761
35761
|
super(l), this.current = G1;
|
|
@@ -35777,7 +35777,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
35777
35777
|
return ve.mat4.translate(c, c, [l.point.x, l.point.y, 0]), ve.mat4.scale(c, c, [o, o, e]), Float32Array.from(c);
|
|
35778
35778
|
}, i.cz = l_, i.d = function(l) {
|
|
35779
35779
|
return ae.API_TILEJSON_REGEX.test(l);
|
|
35780
|
-
}, i.d$ = L, i.d0 = x_, i.d1 = nc, i.d2 = 450, i.d3 = 7, i.d4 =
|
|
35780
|
+
}, i.d$ = L, i.d0 = x_, i.d1 = nc, i.d2 = 450, i.d3 = 7, i.d4 = lD, i.d5 = _r, i.d6 = Ph, i.d7 = 256, i.d8 = X1, i.d9 = ga, i.dA = BS, i.dB = function(l) {
|
|
35781
35781
|
const e = [0, 0, 0], o = ve.mat4.identity(new Float64Array(16));
|
|
35782
35782
|
return ve.mat4.multiply(o, l.pixelMatrix, l.globeMatrix), ve.vec3.transformMat4(e, e, o), new ut(e[0], e[1]);
|
|
35783
35783
|
}, i.dC = function(l, e, o = !1) {
|
|
@@ -35856,10 +35856,10 @@ ${JSON.stringify(p, null, 2)}
|
|
|
35856
35856
|
let fe = !1;
|
|
35857
35857
|
if ($.icon && $.icon.namePrimary) {
|
|
35858
35858
|
const he = c[$.icon.namePrimary];
|
|
35859
|
-
he && (ye =
|
|
35859
|
+
he && (ye = j4(p[$.icon.namePrimary], $.icon.nameSecondary ? p[$.icon.nameSecondary] : void 0, A.get("icon-offset").evaluate($, {}, b), A.get("icon-anchor").evaluate($, {}, b)), fe = he.sdf, l.sdfIcons === void 0 ? l.sdfIcons = he.sdf : l.sdfIcons !== he.sdf && Ft("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (he.pixelRatio !== l.pixelRatio || A.get("icon-rotate").constantOr(1) !== 0) && (l.iconsNeedLinear = !0));
|
|
35860
35860
|
}
|
|
35861
35861
|
const Pe = EE(Y.horizontal) || Y.vertical;
|
|
35862
|
-
l.iconsInText || (l.iconsInText = !!Pe && Pe.iconsInText), (Pe || ye) &&
|
|
35862
|
+
l.iconsInText || (l.iconsInText = !!Pe && Pe.iconsInText), (Pe || ye) && Y4(l, $, Y, ye, c, I, Z, 0, ue, fe, m, b, M, T, F);
|
|
35863
35863
|
}
|
|
35864
35864
|
h && l.generateCollisionDebugBuffers(C, l.collisionBoxArray, I.textScaleFactor);
|
|
35865
35865
|
}, i.dW = Uh, i.dX = G_, i.dY = Fn, i.dZ = f2, i.d_ = nE, i.da = Za, i.db = op, i.dc = function(l, e, o, c, p) {
|
|
@@ -35895,7 +35895,7 @@ ${JSON.stringify(p, null, 2)}
|
|
|
35895
35895
|
for (const p of this._activeRegions) {
|
|
35896
35896
|
if (p.hiddenByOverlap || !cv(o, p))
|
|
35897
35897
|
continue;
|
|
35898
|
-
const h =
|
|
35898
|
+
const h = i4(p.min, p.max, l);
|
|
35899
35899
|
c.push({ min: h.min, max: h.max, sourceId: this._sourceIds[p.priority], footprint: p.footprint, footprintTileId: p.tileId, order: p.order, clipMask: p.clipMask, clipScope: p.clipScope });
|
|
35900
35900
|
}
|
|
35901
35901
|
return c;
|
|
@@ -60523,7 +60523,7 @@ function Lk({
|
|
|
60523
60523
|
if (window.mapsindoors !== void 0)
|
|
60524
60524
|
return wn();
|
|
60525
60525
|
const ni = document.createElement("script");
|
|
60526
|
-
ni.setAttribute("type", "text/javascript"), ni.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.41.
|
|
60526
|
+
ni.setAttribute("type", "text/javascript"), ni.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.41.2/mapsindoors-4.41.2.js.gz"), ni.setAttribute("integrity", "sha384-glYwQ/XqeUiszPIc+4jYefSr6CaWnzhvsahILo2GvmumEuqAJm/aUtGn3ekm3GOX"), ni.setAttribute("crossorigin", "anonymous"), document.body.appendChild(ni), ni.onload = () => {
|
|
60527
60527
|
wn();
|
|
60528
60528
|
};
|
|
60529
60529
|
});
|
|
@@ -60832,4 +60832,4 @@ export {
|
|
|
60832
60832
|
iW as h,
|
|
60833
60833
|
zK as r
|
|
60834
60834
|
};
|
|
60835
|
-
//# sourceMappingURL=reactcomponent-
|
|
60835
|
+
//# sourceMappingURL=reactcomponent-6bcb739c.mjs.map
|