@opengis/partsmap 0.0.39 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PartsMap.js +490 -487
- package/dist/PartsMap.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/PartsMap.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { openBlock as pt, createElementBlock as Ut, createStaticVNode as
|
1
|
+
import { openBlock as pt, createElementBlock as Ut, createStaticVNode as sp, Fragment as ol, renderList as al, normalizeClass as cl, createElementVNode as Qe, toDisplayString as hn, createCommentVNode as Pr, normalizeStyle as op, resolveComponent as Wi, createVNode as Vr, createBlock as cn, Teleport as Bm, Transition as Nd, withCtx as Uo, withDirectives as ap, renderSlot as ll, vShow as lp, pushScopeId as Om, popScopeId as Vm, defineComponent as Nm, createTextVNode as Ud } from "vue";
|
2
2
|
var $s = {};
|
3
|
-
function
|
3
|
+
function jd(g) {
|
4
4
|
return Math.floor(Math.abs(g) + 0.5) * (g >= 0 ? 1 : -1);
|
5
5
|
}
|
6
6
|
function yc(g, S, k) {
|
7
|
-
g =
|
7
|
+
g = jd(g * k), S = jd(S * k);
|
8
8
|
var E = (g - S) * 2;
|
9
9
|
E < 0 && (E = -E - 1);
|
10
10
|
for (var N = ""; E >= 32; )
|
@@ -34,7 +34,7 @@ $s.encode = function(g, S) {
|
|
34
34
|
}
|
35
35
|
return E;
|
36
36
|
};
|
37
|
-
function
|
37
|
+
function cp(g) {
|
38
38
|
for (var S = [], k = 0; k < g.length; k++) {
|
39
39
|
var E = g[k].slice();
|
40
40
|
S.push([E[1], E[0]]);
|
@@ -44,20 +44,20 @@ function lp(g) {
|
|
44
44
|
$s.fromGeoJSON = function(g, S) {
|
45
45
|
if (g && g.type === "Feature" && (g = g.geometry), !g || g.type !== "LineString")
|
46
46
|
throw new Error("Input must be a GeoJSON LineString");
|
47
|
-
return $s.encode(
|
47
|
+
return $s.encode(cp(g.coordinates), S);
|
48
48
|
};
|
49
49
|
$s.toGeoJSON = function(g, S) {
|
50
50
|
var k = $s.decode(g, S);
|
51
51
|
return {
|
52
52
|
type: "LineString",
|
53
|
-
coordinates:
|
53
|
+
coordinates: cp(k)
|
54
54
|
};
|
55
55
|
};
|
56
56
|
var Um = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
57
57
|
function jm(g) {
|
58
58
|
return g && g.__esModule && Object.prototype.hasOwnProperty.call(g, "default") ? g.default : g;
|
59
59
|
}
|
60
|
-
var
|
60
|
+
var hp = { exports: {} };
|
61
61
|
/**
|
62
62
|
* MapLibre GL JS
|
63
63
|
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.5.2/LICENSE.txt
|
@@ -274,7 +274,7 @@ var cp = { exports: {} };
|
|
274
274
|
return typeof ImageBitmap < "u" && i instanceof ImageBitmap;
|
275
275
|
}
|
276
276
|
const Gs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
|
277
|
-
function
|
277
|
+
function dn(i, e, r, s, l) {
|
278
278
|
return c(this, void 0, void 0, function* () {
|
279
279
|
if (typeof VideoFrame > "u") throw new Error("VideoFrame not supported");
|
280
280
|
const d = new VideoFrame(i, { timestamp: 0 });
|
@@ -310,7 +310,7 @@ var cp = { exports: {} };
|
|
310
310
|
super(`AJAXError: ${r} (${e}): ${s}`), this.status = e, this.statusText = r, this.url = s, this.body = l;
|
311
311
|
}
|
312
312
|
}
|
313
|
-
const tr = () => Ar(self) ? self.worker && self.worker.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href,
|
313
|
+
const tr = () => Ar(self) ? self.worker && self.worker.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href, pn = function(i, e) {
|
314
314
|
if (/:\/\//.test(i.url) && !/^https?:|^file:/.test(i.url)) {
|
315
315
|
const s = mr(i.url);
|
316
316
|
if (s) return s(i, e);
|
@@ -363,7 +363,7 @@ var cp = { exports: {} };
|
|
363
363
|
});
|
364
364
|
}(i, e);
|
365
365
|
};
|
366
|
-
function
|
366
|
+
function fn(i) {
|
367
367
|
if (!i || i.indexOf("://") <= 0 || i.indexOf("data:image/") === 0 || i.indexOf("blob:") === 0) return !0;
|
368
368
|
const e = new URL(i), r = window.location;
|
369
369
|
return e.protocol === r.protocol && e.host === r.host;
|
@@ -419,11 +419,11 @@ var cp = { exports: {} };
|
|
419
419
|
}
|
420
420
|
}
|
421
421
|
var he = { $version: 8, $root: { version: { required: !0, type: "enum", values: [8] }, name: { type: "string" }, metadata: { type: "*" }, center: { type: "array", value: "number" }, zoom: { type: "number" }, bearing: { type: "number", default: 0, period: 360, units: "degrees" }, pitch: { type: "number", default: 0, units: "degrees" }, light: { type: "light" }, sky: { type: "sky" }, projection: { type: "projection" }, terrain: { type: "terrain" }, sources: { required: !0, type: "sources" }, sprite: { type: "sprite" }, glyphs: { type: "string" }, transition: { type: "transition" }, layers: { required: !0, type: "array", value: "layer" } }, sources: { "*": { type: "source" } }, source: ["source_vector", "source_raster", "source_raster_dem", "source_geojson", "source_video", "source_image"], source_vector: { type: { required: !0, type: "enum", values: { vector: {} } }, url: { type: "string" }, tiles: { type: "array", value: "string" }, bounds: { type: "array", value: "number", length: 4, default: [-180, -85.051129, 180, 85.051129] }, scheme: { type: "enum", values: { xyz: {}, tms: {} }, default: "xyz" }, minzoom: { type: "number", default: 0 }, maxzoom: { type: "number", default: 22 }, attribution: { type: "string" }, promoteId: { type: "promoteId" }, volatile: { type: "boolean", default: !1 }, "*": { type: "*" } }, source_raster: { type: { required: !0, type: "enum", values: { raster: {} } }, url: { type: "string" }, tiles: { type: "array", value: "string" }, bounds: { type: "array", value: "number", length: 4, default: [-180, -85.051129, 180, 85.051129] }, minzoom: { type: "number", default: 0 }, maxzoom: { type: "number", default: 22 }, tileSize: { type: "number", default: 512, units: "pixels" }, scheme: { type: "enum", values: { xyz: {}, tms: {} }, default: "xyz" }, attribution: { type: "string" }, volatile: { type: "boolean", default: !1 }, "*": { type: "*" } }, source_raster_dem: { type: { required: !0, type: "enum", values: { "raster-dem": {} } }, url: { type: "string" }, tiles: { type: "array", value: "string" }, bounds: { type: "array", value: "number", length: 4, default: [-180, -85.051129, 180, 85.051129] }, minzoom: { type: "number", default: 0 }, maxzoom: { type: "number", default: 22 }, tileSize: { type: "number", default: 512, units: "pixels" }, attribution: { type: "string" }, encoding: { type: "enum", values: { terrarium: {}, mapbox: {}, custom: {} }, default: "mapbox" }, redFactor: { type: "number", default: 1 }, blueFactor: { type: "number", default: 1 }, greenFactor: { type: "number", default: 1 }, baseShift: { type: "number", default: 0 }, volatile: { type: "boolean", default: !1 }, "*": { type: "*" } }, source_geojson: { type: { required: !0, type: "enum", values: { geojson: {} } }, data: { required: !0, type: "*" }, maxzoom: { type: "number", default: 18 }, attribution: { type: "string" }, buffer: { type: "number", default: 128, maximum: 512, minimum: 0 }, filter: { type: "*" }, tolerance: { type: "number", default: 0.375 }, cluster: { type: "boolean", default: !1 }, clusterRadius: { type: "number", default: 50, minimum: 0 }, clusterMaxZoom: { type: "number" }, clusterMinPoints: { type: "number" }, clusterProperties: { type: "*" }, lineMetrics: { type: "boolean", default: !1 }, generateId: { type: "boolean", default: !1 }, promoteId: { type: "promoteId" } }, source_video: { type: { required: !0, type: "enum", values: { video: {} } }, urls: { required: !0, type: "array", value: "string" }, coordinates: { required: !0, type: "array", length: 4, value: { type: "array", length: 2, value: "number" } } }, source_image: { type: { required: !0, type: "enum", values: { image: {} } }, url: { required: !0, type: "string" }, coordinates: { required: !0, type: "array", length: 4, value: { type: "array", length: 2, value: "number" } } }, layer: { id: { type: "string", required: !0 }, type: { type: "enum", values: { fill: {}, line: {}, symbol: {}, circle: {}, heatmap: {}, "fill-extrusion": {}, raster: {}, hillshade: {}, background: {} }, required: !0 }, metadata: { type: "*" }, source: { type: "string" }, "source-layer": { type: "string" }, minzoom: { type: "number", minimum: 0, maximum: 24 }, maxzoom: { type: "number", minimum: 0, maximum: 24 }, filter: { type: "filter" }, layout: { type: "layout" }, paint: { type: "paint" } }, layout: ["layout_fill", "layout_line", "layout_circle", "layout_heatmap", "layout_fill-extrusion", "layout_symbol", "layout_raster", "layout_hillshade", "layout_background"], layout_background: { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_fill: { "fill-sort-key": { type: "number", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_circle: { "circle-sort-key": { type: "number", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_heatmap: { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, "layout_fill-extrusion": { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_line: { "line-cap": { type: "enum", values: { butt: {}, round: {}, square: {} }, default: "butt", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-join": { type: "enum", values: { bevel: {}, round: {}, miter: {} }, default: "miter", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "line-miter-limit": { type: "number", default: 2, requires: [{ "line-join": "miter" }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-round-limit": { type: "number", default: 1.05, requires: [{ "line-join": "round" }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-sort-key": { type: "number", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_symbol: { "symbol-placement": { type: "enum", values: { point: {}, line: {}, "line-center": {} }, default: "point", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "symbol-spacing": { type: "number", default: 250, minimum: 1, units: "pixels", requires: [{ "symbol-placement": "line" }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "symbol-avoid-edges": { type: "boolean", default: !1, expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "symbol-sort-key": { type: "number", expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "symbol-z-order": { type: "enum", values: { auto: {}, "viewport-y": {}, source: {} }, default: "auto", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-allow-overlap": { type: "boolean", default: !1, requires: ["icon-image", { "!": "icon-overlap" }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-overlap": { type: "enum", values: { never: {}, always: {}, cooperative: {} }, requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-ignore-placement": { type: "boolean", default: !1, requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-optional": { type: "boolean", default: !1, requires: ["icon-image", "text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-rotation-alignment": { type: "enum", values: { map: {}, viewport: {}, auto: {} }, default: "auto", requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-size": { type: "number", default: 1, minimum: 0, units: "factor of the original icon size", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-text-fit": { type: "enum", values: { none: {}, width: {}, height: {}, both: {} }, default: "none", requires: ["icon-image", "text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-text-fit-padding": { type: "array", value: "number", length: 4, default: [0, 0, 0, 0], units: "pixels", requires: ["icon-image", "text-field", { "icon-text-fit": ["both", "width", "height"] }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-image": { type: "resolvedImage", tokens: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-rotate": { type: "number", default: 0, period: 360, units: "degrees", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-padding": { type: "padding", default: [2], units: "pixels", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-keep-upright": { type: "boolean", default: !1, requires: ["icon-image", { "icon-rotation-alignment": "map" }, { "symbol-placement": ["line", "line-center"] }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-offset": { type: "array", value: "number", length: 2, default: [0, 0], requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-anchor": { type: "enum", values: { center: {}, left: {}, right: {}, top: {}, bottom: {}, "top-left": {}, "top-right": {}, "bottom-left": {}, "bottom-right": {} }, default: "center", requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "icon-pitch-alignment": { type: "enum", values: { map: {}, viewport: {}, auto: {} }, default: "auto", requires: ["icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-pitch-alignment": { type: "enum", values: { map: {}, viewport: {}, auto: {} }, default: "auto", requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-rotation-alignment": { type: "enum", values: { map: {}, viewport: {}, "viewport-glyph": {}, auto: {} }, default: "auto", requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-field": { type: "formatted", default: "", tokens: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-font": { type: "array", value: "string", default: ["Open Sans Regular", "Arial Unicode MS Regular"], requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-size": { type: "number", default: 16, minimum: 0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-max-width": { type: "number", default: 10, minimum: 0, units: "ems", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-line-height": { type: "number", default: 1.2, units: "ems", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-letter-spacing": { type: "number", default: 0, units: "ems", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-justify": { type: "enum", values: { auto: {}, left: {}, center: {}, right: {} }, default: "center", requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-radial-offset": { type: "number", units: "ems", default: 0, requires: ["text-field"], "property-type": "data-driven", expression: { interpolated: !0, parameters: ["zoom", "feature"] } }, "text-variable-anchor": { type: "array", value: "enum", values: { center: {}, left: {}, right: {}, top: {}, bottom: {}, "top-left": {}, "top-right": {}, "bottom-left": {}, "bottom-right": {} }, requires: ["text-field", { "symbol-placement": ["point"] }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-variable-anchor-offset": { type: "variableAnchorOffsetCollection", requires: ["text-field", { "symbol-placement": ["point"] }], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-anchor": { type: "enum", values: { center: {}, left: {}, right: {}, top: {}, bottom: {}, "top-left": {}, "top-right": {}, "bottom-left": {}, "bottom-right": {} }, default: "center", requires: ["text-field", { "!": "text-variable-anchor" }], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-max-angle": { type: "number", default: 45, units: "degrees", requires: ["text-field", { "symbol-placement": ["line", "line-center"] }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-writing-mode": { type: "array", value: "enum", values: { horizontal: {}, vertical: {} }, requires: ["text-field", { "symbol-placement": ["point"] }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-rotate": { type: "number", default: 0, period: 360, units: "degrees", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-padding": { type: "number", default: 2, minimum: 0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-keep-upright": { type: "boolean", default: !0, requires: ["text-field", { "text-rotation-alignment": "map" }, { "symbol-placement": ["line", "line-center"] }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-transform": { type: "enum", values: { none: {}, uppercase: {}, lowercase: {} }, default: "none", requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-offset": { type: "array", value: "number", units: "ems", length: 2, default: [0, 0], requires: ["text-field", { "!": "text-radial-offset" }], expression: { interpolated: !0, parameters: ["zoom", "feature"] }, "property-type": "data-driven" }, "text-allow-overlap": { type: "boolean", default: !1, requires: ["text-field", { "!": "text-overlap" }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-overlap": { type: "enum", values: { never: {}, always: {}, cooperative: {} }, requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-ignore-placement": { type: "boolean", default: !1, requires: ["text-field"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-optional": { type: "boolean", default: !1, requires: ["text-field", "icon-image"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_raster: { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, layout_hillshade: { visibility: { type: "enum", values: { visible: {}, none: {} }, default: "visible", "property-type": "constant" } }, filter: { type: "array", value: "*" }, filter_operator: { type: "enum", values: { "==": {}, "!=": {}, ">": {}, ">=": {}, "<": {}, "<=": {}, in: {}, "!in": {}, all: {}, any: {}, none: {}, has: {}, "!has": {} } }, geometry_type: { type: "enum", values: { Point: {}, LineString: {}, Polygon: {} } }, function: { expression: { type: "expression" }, stops: { type: "array", value: "function_stop" }, base: { type: "number", default: 1, minimum: 0 }, property: { type: "string", default: "$zoom" }, type: { type: "enum", values: { identity: {}, exponential: {}, interval: {}, categorical: {} }, default: "exponential" }, colorSpace: { type: "enum", values: { rgb: {}, lab: {}, hcl: {} }, default: "rgb" }, default: { type: "*", required: !1 } }, function_stop: { type: "array", minimum: 0, maximum: 24, value: ["number", "color"], length: 2 }, expression: { type: "array", value: "*", minimum: 1 }, light: { anchor: { type: "enum", default: "viewport", values: { map: {}, viewport: {} }, "property-type": "data-constant", transition: !1, expression: { interpolated: !1, parameters: ["zoom"] } }, position: { type: "array", default: [1.15, 210, 30], length: 3, value: "number", "property-type": "data-constant", transition: !0, expression: { interpolated: !0, parameters: ["zoom"] } }, color: { type: "color", "property-type": "data-constant", default: "#ffffff", expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, intensity: { type: "number", "property-type": "data-constant", default: 0.5, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 } }, sky: { "sky-color": { type: "color", "property-type": "data-constant", default: "#88C6FC", expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "horizon-color": { type: "color", "property-type": "data-constant", default: "#ffffff", expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "fog-color": { type: "color", "property-type": "data-constant", default: "#ffffff", expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "fog-ground-blend": { type: "number", "property-type": "data-constant", default: 0.5, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "horizon-fog-blend": { type: "number", "property-type": "data-constant", default: 0.8, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "sky-horizon-blend": { type: "number", "property-type": "data-constant", default: 0.8, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 }, "atmosphere-blend": { type: "number", "property-type": "data-constant", default: 0.8, minimum: 0, maximum: 1, expression: { interpolated: !0, parameters: ["zoom"] }, transition: !0 } }, terrain: { source: { type: "string", required: !0 }, exaggeration: { type: "number", minimum: 0, default: 1 } }, projection: { type: { type: "enum", default: "mercator", values: { mercator: {}, globe: {} } } }, paint: ["paint_fill", "paint_line", "paint_circle", "paint_heatmap", "paint_fill-extrusion", "paint_symbol", "paint_raster", "paint_hillshade", "paint_background"], paint_fill: { "fill-antialias": { type: "boolean", default: !0, expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-color": { type: "color", default: "#000000", transition: !0, requires: [{ "!": "fill-pattern" }], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-outline-color": { type: "color", transition: !0, requires: [{ "!": "fill-pattern" }, { "fill-antialias": !0 }], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["fill-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-pattern": { type: "resolvedImage", transition: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "cross-faded-data-driven" } }, "paint_fill-extrusion": { "fill-extrusion-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-extrusion-color": { type: "color", default: "#000000", transition: !0, requires: [{ "!": "fill-extrusion-pattern" }], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-extrusion-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-extrusion-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["fill-extrusion-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "fill-extrusion-pattern": { type: "resolvedImage", transition: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "cross-faded-data-driven" }, "fill-extrusion-height": { type: "number", default: 0, minimum: 0, units: "meters", transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-extrusion-base": { type: "number", default: 0, minimum: 0, units: "meters", transition: !0, requires: ["fill-extrusion-height"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "fill-extrusion-vertical-gradient": { type: "boolean", default: !0, transition: !1, expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_line: { "line-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-color": { type: "color", default: "#000000", transition: !0, requires: [{ "!": "line-pattern" }], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["line-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "line-width": { type: "number", default: 1, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-gap-width": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-offset": { type: "number", default: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-blur": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "line-dasharray": { type: "array", value: "number", minimum: 0, transition: !0, units: "line widths", requires: [{ "!": "line-pattern" }], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "cross-faded" }, "line-pattern": { type: "resolvedImage", transition: !0, expression: { interpolated: !1, parameters: ["zoom", "feature"] }, "property-type": "cross-faded-data-driven" }, "line-gradient": { type: "color", transition: !1, requires: [{ "!": "line-dasharray" }, { "!": "line-pattern" }, { source: "geojson", has: { lineMetrics: !0 } }], expression: { interpolated: !0, parameters: ["line-progress"] }, "property-type": "color-ramp" } }, paint_circle: { "circle-radius": { type: "number", default: 5, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-color": { type: "color", default: "#000000", transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-blur": { type: "number", default: 0, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "circle-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["circle-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "circle-pitch-scale": { type: "enum", values: { map: {}, viewport: {} }, default: "map", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "circle-pitch-alignment": { type: "enum", values: { map: {}, viewport: {} }, default: "viewport", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "circle-stroke-width": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-stroke-color": { type: "color", default: "#000000", transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "circle-stroke-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" } }, paint_heatmap: { "heatmap-radius": { type: "number", default: 30, minimum: 1, transition: !0, units: "pixels", expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "heatmap-weight": { type: "number", default: 1, minimum: 0, transition: !1, expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "heatmap-intensity": { type: "number", default: 1, minimum: 0, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "heatmap-color": { type: "color", default: ["interpolate", ["linear"], ["heatmap-density"], 0, "rgba(0, 0, 255, 0)", 0.1, "royalblue", 0.3, "cyan", 0.5, "lime", 0.7, "yellow", 1, "red"], transition: !1, expression: { interpolated: !0, parameters: ["heatmap-density"] }, "property-type": "color-ramp" }, "heatmap-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_symbol: { "icon-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-color": { type: "color", default: "#000000", transition: !0, requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-halo-color": { type: "color", default: "rgba(0, 0, 0, 0)", transition: !0, requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-halo-width": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-halo-blur": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "icon-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", requires: ["icon-image"], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "icon-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["icon-image", "icon-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-color": { type: "color", default: "#000000", transition: !0, overridable: !0, requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-halo-color": { type: "color", default: "rgba(0, 0, 0, 0)", transition: !0, requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-halo-width": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-halo-blur": { type: "number", default: 0, minimum: 0, transition: !0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom", "feature", "feature-state"] }, "property-type": "data-driven" }, "text-translate": { type: "array", value: "number", length: 2, default: [0, 0], transition: !0, units: "pixels", requires: ["text-field"], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "text-translate-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "map", requires: ["text-field", "text-translate"], expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_raster: { "raster-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-hue-rotate": { type: "number", default: 0, period: 360, transition: !0, units: "degrees", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-brightness-min": { type: "number", default: 0, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-brightness-max": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-saturation": { type: "number", default: 0, minimum: -1, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-contrast": { type: "number", default: 0, minimum: -1, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-resampling": { type: "enum", values: { linear: {}, nearest: {} }, default: "linear", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "raster-fade-duration": { type: "number", default: 300, minimum: 0, transition: !1, units: "milliseconds", expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_hillshade: { "hillshade-illumination-direction": { type: "number", default: 335, minimum: 0, maximum: 359, transition: !1, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-illumination-anchor": { type: "enum", values: { map: {}, viewport: {} }, default: "viewport", expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-exaggeration": { type: "number", default: 0.5, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-shadow-color": { type: "color", default: "#000000", transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-highlight-color": { type: "color", default: "#FFFFFF", transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "hillshade-accent-color": { type: "color", default: "#000000", transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" } }, paint_background: { "background-color": { type: "color", default: "#000000", transition: !0, requires: [{ "!": "background-pattern" }], expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" }, "background-pattern": { type: "resolvedImage", transition: !0, expression: { interpolated: !1, parameters: ["zoom"] }, "property-type": "cross-faded" }, "background-opacity": { type: "number", default: 1, minimum: 0, maximum: 1, transition: !0, expression: { interpolated: !0, parameters: ["zoom"] }, "property-type": "data-constant" } }, transition: { duration: { type: "number", default: 300, minimum: 0, units: "milliseconds" }, delay: { type: "number", default: 0, minimum: 0, units: "milliseconds" } }, "property-type": { "data-driven": { type: "property-type" }, "cross-faded": { type: "property-type" }, "cross-faded-data-driven": { type: "property-type" }, "color-ramp": { type: "property-type" }, "data-constant": { type: "property-type" }, constant: { type: "property-type" } }, promoteId: { "*": { type: "string" } } };
|
422
|
-
const
|
422
|
+
const mn = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
|
423
423
|
function as(i, e) {
|
424
424
|
const r = {};
|
425
425
|
for (const s in i) s !== "ref" && (r[s] = i[s]);
|
426
|
-
return
|
426
|
+
return mn.forEach((s) => {
|
427
427
|
s in e && (r[s] = e[s]);
|
428
428
|
}), r;
|
429
429
|
}
|
@@ -780,7 +780,7 @@ var cp = { exports: {} };
|
|
780
780
|
const e = typeof i;
|
781
781
|
return i === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(i) : i instanceof St || i instanceof Ni || i instanceof Ui || i instanceof ji || i instanceof pi ? i.toString() : JSON.stringify(i);
|
782
782
|
}
|
783
|
-
class
|
783
|
+
class gn {
|
784
784
|
constructor(e, r) {
|
785
785
|
this.type = e, this.value = r;
|
786
786
|
}
|
@@ -790,7 +790,7 @@ var cp = { exports: {} };
|
|
790
790
|
const s = e[1];
|
791
791
|
let l = ei(s);
|
792
792
|
const d = r.expectedType;
|
793
|
-
return l.kind !== "array" || l.N !== 0 || !d || d.kind !== "array" || typeof d.N == "number" && d.N !== 0 || (l = d), new
|
793
|
+
return l.kind !== "array" || l.N !== 0 || !d || d.kind !== "array" || typeof d.N == "number" && d.N !== 0 || (l = d), new gn(l, s);
|
794
794
|
}
|
795
795
|
evaluate() {
|
796
796
|
return this.value;
|
@@ -985,10 +985,10 @@ var cp = { exports: {} };
|
|
985
985
|
else p = s(p, f, r.typeAnnotation || "coerce");
|
986
986
|
else p = s(p, f, r.typeAnnotation || "assert");
|
987
987
|
}
|
988
|
-
if (!(p instanceof
|
988
|
+
if (!(p instanceof gn) && p.type.kind !== "resolvedImage" && this._isConstant(p)) {
|
989
989
|
const f = new fs();
|
990
990
|
try {
|
991
|
-
p = new
|
991
|
+
p = new gn(p.type, p.evaluate(f));
|
992
992
|
} catch (_) {
|
993
993
|
return this.error(_.message), null;
|
994
994
|
}
|
@@ -1486,9 +1486,9 @@ var cp = { exports: {} };
|
|
1486
1486
|
function ml(i, e, r, s) {
|
1487
1487
|
return s.compare(e, r) === 0;
|
1488
1488
|
}
|
1489
|
-
function
|
1489
|
+
function _n(i, e, r) {
|
1490
1490
|
const s = i !== "==" && i !== "!=";
|
1491
|
-
return class
|
1491
|
+
return class up {
|
1492
1492
|
constructor(d, p, f) {
|
1493
1493
|
this.type = Ke, this.lhs = d, this.rhs = p, this.collator = f, this.hasUntypedArgument = d.type.kind === "value" || p.type.kind === "value";
|
1494
1494
|
}
|
@@ -1508,7 +1508,7 @@ var cp = { exports: {} };
|
|
1508
1508
|
if (_.type.kind !== "string" && x.type.kind !== "string" && _.type.kind !== "value" && x.type.kind !== "value") return p.error("Cannot use collator to compare non-string types.");
|
1509
1509
|
if (w = p.parse(d[3], 3, yr), !w) return null;
|
1510
1510
|
}
|
1511
|
-
return new
|
1511
|
+
return new up(_, x, w);
|
1512
1512
|
}
|
1513
1513
|
evaluate(d) {
|
1514
1514
|
const p = this.lhs.evaluate(d), f = this.rhs.evaluate(d);
|
@@ -1530,25 +1530,25 @@ var cp = { exports: {} };
|
|
1530
1530
|
}
|
1531
1531
|
};
|
1532
1532
|
}
|
1533
|
-
const gl =
|
1533
|
+
const gl = _n("==", function(i, e, r) {
|
1534
1534
|
return e === r;
|
1535
|
-
}, ml), Lc =
|
1535
|
+
}, ml), Lc = _n("!=", function(i, e, r) {
|
1536
1536
|
return e !== r;
|
1537
1537
|
}, function(i, e, r, s) {
|
1538
1538
|
return !ml(0, e, r, s);
|
1539
|
-
}), Rc =
|
1539
|
+
}), Rc = _n("<", function(i, e, r) {
|
1540
1540
|
return e < r;
|
1541
1541
|
}, function(i, e, r, s) {
|
1542
1542
|
return s.compare(e, r) < 0;
|
1543
|
-
}), _l =
|
1543
|
+
}), _l = _n(">", function(i, e, r) {
|
1544
1544
|
return e > r;
|
1545
1545
|
}, function(i, e, r, s) {
|
1546
1546
|
return s.compare(e, r) > 0;
|
1547
|
-
}), yl =
|
1547
|
+
}), yl = _n("<=", function(i, e, r) {
|
1548
1548
|
return e <= r;
|
1549
1549
|
}, function(i, e, r, s) {
|
1550
1550
|
return s.compare(e, r) <= 0;
|
1551
|
-
}), Fc =
|
1551
|
+
}), Fc = _n(">=", function(i, e, r) {
|
1552
1552
|
return e >= r;
|
1553
1553
|
}, function(i, e, r, s) {
|
1554
1554
|
return s.compare(e, r) >= 0;
|
@@ -1800,7 +1800,7 @@ var cp = { exports: {} };
|
|
1800
1800
|
var f;
|
1801
1801
|
return p;
|
1802
1802
|
}
|
1803
|
-
class
|
1803
|
+
class yn {
|
1804
1804
|
constructor(e, r) {
|
1805
1805
|
this.type = Ke, this.geojson = e, this.geometries = r;
|
1806
1806
|
}
|
@@ -1814,11 +1814,11 @@ var cp = { exports: {} };
|
|
1814
1814
|
const { type: p, coordinates: f } = d.geometry;
|
1815
1815
|
p === "Polygon" && l.push(f), p === "MultiPolygon" && l.push(...f);
|
1816
1816
|
}
|
1817
|
-
if (l.length) return new
|
1817
|
+
if (l.length) return new yn(s, { type: "MultiPolygon", coordinates: l });
|
1818
1818
|
} else if (s.type === "Feature") {
|
1819
1819
|
const l = s.geometry.type;
|
1820
|
-
if (l === "Polygon" || l === "MultiPolygon") return new
|
1821
|
-
} else if (s.type === "Polygon" || s.type === "MultiPolygon") return new
|
1820
|
+
if (l === "Polygon" || l === "MultiPolygon") return new yn(s, s.geometry);
|
1821
|
+
} else if (s.type === "Polygon" || s.type === "MultiPolygon") return new yn(s, s);
|
1822
1822
|
}
|
1823
1823
|
return r.error("'within' expression requires valid geojson object that contains polygon geometry type.");
|
1824
1824
|
}
|
@@ -2230,7 +2230,7 @@ var cp = { exports: {} };
|
|
2230
2230
|
return !0;
|
2231
2231
|
}
|
2232
2232
|
}
|
2233
|
-
const
|
2233
|
+
const xn = { "==": gl, "!=": Lc, ">": _l, "<": Rc, ">=": Fc, "<=": yl, array: Ji, at: Ho, boolean: Ji, case: Ys, coalesce: eo, collator: to, format: io, image: Xo, in: ms, "index-of": Js, interpolate: qi, "interpolate-hcl": qi, "interpolate-lab": qi, length: Jo, let: vt, literal: gn, match: Ks, number: Ji, "number-format": Wo, object: Ji, slice: Qs, step: Bn, string: Ji, "to-boolean": Jr, "to-color": Jr, "to-number": Jr, "to-string": Jr, var: Xs, within: yn, distance: Qr };
|
2234
2234
|
class Zi {
|
2235
2235
|
constructor(e, r, s, l) {
|
2236
2236
|
this.name = e, this.type = r, this._evaluate = s, this.args = l;
|
@@ -2303,20 +2303,20 @@ var cp = { exports: {} };
|
|
2303
2303
|
const r = e[i];
|
2304
2304
|
return r === void 0 ? null : r;
|
2305
2305
|
}
|
2306
|
-
function
|
2306
|
+
function vn(i) {
|
2307
2307
|
return { type: i };
|
2308
2308
|
}
|
2309
2309
|
function ho(i) {
|
2310
2310
|
if (i instanceof Xs) return ho(i.boundExpression);
|
2311
|
-
if (i instanceof Zi && i.name === "error" || i instanceof to || i instanceof
|
2311
|
+
if (i instanceof Zi && i.name === "error" || i instanceof to || i instanceof yn || i instanceof Qr) return !1;
|
2312
2312
|
const e = i instanceof Jr || i instanceof Ji;
|
2313
2313
|
let r = !0;
|
2314
2314
|
return i.eachChild((s) => {
|
2315
|
-
r = e ? r && ho(s) : r && s instanceof
|
2315
|
+
r = e ? r && ho(s) : r && s instanceof gn;
|
2316
2316
|
}), !!r && uo(i) && po(i, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]);
|
2317
2317
|
}
|
2318
2318
|
function uo(i) {
|
2319
|
-
if (i instanceof Zi && (i.name === "get" && i.args.length === 1 || i.name === "feature-state" || i.name === "has" && i.args.length === 1 || i.name === "properties" || i.name === "geometry-type" || i.name === "id" || /^filter-/.test(i.name)) || i instanceof
|
2319
|
+
if (i instanceof Zi && (i.name === "get" && i.args.length === 1 || i.name === "feature-state" || i.name === "has" && i.args.length === 1 || i.name === "properties" || i.name === "geometry-type" || i.name === "id" || /^filter-/.test(i.name)) || i instanceof yn || i instanceof Qr) return !1;
|
2320
2320
|
let e = !0;
|
2321
2321
|
return i.eachChild((r) => {
|
2322
2322
|
e && !uo(r) && (e = !1);
|
@@ -2342,7 +2342,7 @@ var cp = { exports: {} };
|
|
2342
2342
|
function Nn(i) {
|
2343
2343
|
return { result: "error", value: i };
|
2344
2344
|
}
|
2345
|
-
function
|
2345
|
+
function bn(i) {
|
2346
2346
|
return i["property-type"] === "data-driven" || i["property-type"] === "cross-faded-data-driven";
|
2347
2347
|
}
|
2348
2348
|
function ca(i) {
|
@@ -2396,17 +2396,17 @@ var cp = { exports: {} };
|
|
2396
2396
|
}
|
2397
2397
|
return { kind: "source", evaluate(w, I) {
|
2398
2398
|
const C = I && I.properties ? I.properties[i.property] : void 0;
|
2399
|
-
return C === void 0 ?
|
2399
|
+
return C === void 0 ? wn(i.default, e.default) : f(i, e, C, _, x);
|
2400
2400
|
} };
|
2401
2401
|
}
|
2402
|
-
function
|
2402
|
+
function wn(i, e, r) {
|
2403
2403
|
return i !== void 0 ? i : e !== void 0 ? e : r !== void 0 ? r : void 0;
|
2404
2404
|
}
|
2405
2405
|
function fo(i, e, r, s, l) {
|
2406
|
-
return
|
2406
|
+
return wn(typeof r === l ? s[r] : void 0, i.default, e.default);
|
2407
2407
|
}
|
2408
2408
|
function mo(i, e, r) {
|
2409
|
-
if (gt(r) !== "number") return
|
2409
|
+
if (gt(r) !== "number") return wn(i.default, e.default);
|
2410
2410
|
const s = i.stops.length;
|
2411
2411
|
if (s === 1 || r <= i.stops[0][0]) return i.stops[0][1];
|
2412
2412
|
if (r >= i.stops[s - 1][0]) return i.stops[s - 1][1];
|
@@ -2415,7 +2415,7 @@ var cp = { exports: {} };
|
|
2415
2415
|
}
|
2416
2416
|
function ha(i, e, r) {
|
2417
2417
|
const s = i.base !== void 0 ? i.base : 1;
|
2418
|
-
if (gt(r) !== "number") return
|
2418
|
+
if (gt(r) !== "number") return wn(i.default, e.default);
|
2419
2419
|
const l = i.stops.length;
|
2420
2420
|
if (l === 1 || r <= i.stops[0][0]) return i.stops[0][1];
|
2421
2421
|
if (r >= i.stops[l - 1][0]) return i.stops[l - 1][1];
|
@@ -2445,22 +2445,22 @@ var cp = { exports: {} };
|
|
2445
2445
|
default:
|
2446
2446
|
gt(r) === e.type || e.type === "enum" && e.values[r] || (r = void 0);
|
2447
2447
|
}
|
2448
|
-
return
|
2448
|
+
return wn(r, i.default, e.default);
|
2449
2449
|
}
|
2450
|
-
Zi.register(
|
2450
|
+
Zi.register(xn, { error: [{ kind: "error" }, [at], (i, [e]) => {
|
2451
2451
|
throw new Kt(e.evaluate(i));
|
2452
2452
|
}], typeof: [at, [rt], (i, [e]) => M(ei(e.evaluate(i)))], "to-rgba": [z(Ae, 4), [Mi], (i, [e]) => {
|
2453
2453
|
const [r, s, l, d] = e.evaluate(i).rgb;
|
2454
2454
|
return [255 * r, 255 * s, 255 * l, d];
|
2455
|
-
}], rgb: [Mi, [Ae, Ae, Ae], aa], rgba: [Mi, [Ae, Ae, Ae, Ae], aa], has: { type: Ke, overloads: [[[at], (i, [e]) => co(e.evaluate(i), i.properties())], [[at, ir], (i, [e, r]) => co(e.evaluate(i), r.evaluate(i))]] }, get: { type: rt, overloads: [[[at], (i, [e]) => la(e.evaluate(i), i.properties())], [[at, ir], (i, [e, r]) => la(e.evaluate(i), r.evaluate(i))]] }, "feature-state": [rt, [at], (i, [e]) => la(e.evaluate(i), i.featureState || {})], properties: [ir, [], (i) => i.properties()], "geometry-type": [at, [], (i) => i.geometryType()], id: [rt, [], (i) => i.id()], zoom: [Ae, [], (i) => i.globals.zoom], "heatmap-density": [Ae, [], (i) => i.globals.heatmapDensity || 0], "line-progress": [Ae, [], (i) => i.globals.lineProgress || 0], accumulated: [rt, [], (i) => i.globals.accumulated === void 0 ? null : i.globals.accumulated], "+": [Ae,
|
2455
|
+
}], rgb: [Mi, [Ae, Ae, Ae], aa], rgba: [Mi, [Ae, Ae, Ae, Ae], aa], has: { type: Ke, overloads: [[[at], (i, [e]) => co(e.evaluate(i), i.properties())], [[at, ir], (i, [e, r]) => co(e.evaluate(i), r.evaluate(i))]] }, get: { type: rt, overloads: [[[at], (i, [e]) => la(e.evaluate(i), i.properties())], [[at, ir], (i, [e, r]) => la(e.evaluate(i), r.evaluate(i))]] }, "feature-state": [rt, [at], (i, [e]) => la(e.evaluate(i), i.featureState || {})], properties: [ir, [], (i) => i.properties()], "geometry-type": [at, [], (i) => i.geometryType()], id: [rt, [], (i) => i.id()], zoom: [Ae, [], (i) => i.globals.zoom], "heatmap-density": [Ae, [], (i) => i.globals.heatmapDensity || 0], "line-progress": [Ae, [], (i) => i.globals.lineProgress || 0], accumulated: [rt, [], (i) => i.globals.accumulated === void 0 ? null : i.globals.accumulated], "+": [Ae, vn(Ae), (i, e) => {
|
2456
2456
|
let r = 0;
|
2457
2457
|
for (const s of e) r += s.evaluate(i);
|
2458
2458
|
return r;
|
2459
|
-
}], "*": [Ae,
|
2459
|
+
}], "*": [Ae, vn(Ae), (i, e) => {
|
2460
2460
|
let r = 1;
|
2461
2461
|
for (const s of e) r *= s.evaluate(i);
|
2462
2462
|
return r;
|
2463
|
-
}], "-": { type: Ae, overloads: [[[Ae, Ae], (i, [e, r]) => e.evaluate(i) - r.evaluate(i)], [[Ae], (i, [e]) => -e.evaluate(i)]] }, "/": [Ae, [Ae, Ae], (i, [e, r]) => e.evaluate(i) / r.evaluate(i)], "%": [Ae, [Ae, Ae], (i, [e, r]) => e.evaluate(i) % r.evaluate(i)], ln2: [Ae, [], () => Math.LN2], pi: [Ae, [], () => Math.PI], e: [Ae, [], () => Math.E], "^": [Ae, [Ae, Ae], (i, [e, r]) => Math.pow(e.evaluate(i), r.evaluate(i))], sqrt: [Ae, [Ae], (i, [e]) => Math.sqrt(e.evaluate(i))], log10: [Ae, [Ae], (i, [e]) => Math.log(e.evaluate(i)) / Math.LN10], ln: [Ae, [Ae], (i, [e]) => Math.log(e.evaluate(i))], log2: [Ae, [Ae], (i, [e]) => Math.log(e.evaluate(i)) / Math.LN2], sin: [Ae, [Ae], (i, [e]) => Math.sin(e.evaluate(i))], cos: [Ae, [Ae], (i, [e]) => Math.cos(e.evaluate(i))], tan: [Ae, [Ae], (i, [e]) => Math.tan(e.evaluate(i))], asin: [Ae, [Ae], (i, [e]) => Math.asin(e.evaluate(i))], acos: [Ae, [Ae], (i, [e]) => Math.acos(e.evaluate(i))], atan: [Ae, [Ae], (i, [e]) => Math.atan(e.evaluate(i))], min: [Ae,
|
2463
|
+
}], "-": { type: Ae, overloads: [[[Ae, Ae], (i, [e, r]) => e.evaluate(i) - r.evaluate(i)], [[Ae], (i, [e]) => -e.evaluate(i)]] }, "/": [Ae, [Ae, Ae], (i, [e, r]) => e.evaluate(i) / r.evaluate(i)], "%": [Ae, [Ae, Ae], (i, [e, r]) => e.evaluate(i) % r.evaluate(i)], ln2: [Ae, [], () => Math.LN2], pi: [Ae, [], () => Math.PI], e: [Ae, [], () => Math.E], "^": [Ae, [Ae, Ae], (i, [e, r]) => Math.pow(e.evaluate(i), r.evaluate(i))], sqrt: [Ae, [Ae], (i, [e]) => Math.sqrt(e.evaluate(i))], log10: [Ae, [Ae], (i, [e]) => Math.log(e.evaluate(i)) / Math.LN10], ln: [Ae, [Ae], (i, [e]) => Math.log(e.evaluate(i))], log2: [Ae, [Ae], (i, [e]) => Math.log(e.evaluate(i)) / Math.LN2], sin: [Ae, [Ae], (i, [e]) => Math.sin(e.evaluate(i))], cos: [Ae, [Ae], (i, [e]) => Math.cos(e.evaluate(i))], tan: [Ae, [Ae], (i, [e]) => Math.tan(e.evaluate(i))], asin: [Ae, [Ae], (i, [e]) => Math.asin(e.evaluate(i))], acos: [Ae, [Ae], (i, [e]) => Math.acos(e.evaluate(i))], atan: [Ae, [Ae], (i, [e]) => Math.atan(e.evaluate(i))], min: [Ae, vn(Ae), (i, e) => Math.min(...e.map((r) => r.evaluate(i)))], max: [Ae, vn(Ae), (i, e) => Math.max(...e.map((r) => r.evaluate(i)))], abs: [Ae, [Ae], (i, [e]) => Math.abs(e.evaluate(i))], round: [Ae, [Ae], (i, [e]) => {
|
2464
2464
|
const r = e.evaluate(i);
|
2465
2465
|
return r < 0 ? -Math.round(-r) : Math.round(r);
|
2466
2466
|
}], floor: [Ae, [Ae], (i, [e]) => Math.floor(e.evaluate(i))], ceil: [Ae, [Ae], (i, [e]) => Math.ceil(e.evaluate(i))], "filter-==": [Ke, [at, rt], (i, [e, r]) => i.properties()[e.value] === r.value], "filter-id-==": [Ke, [rt], (i, [e]) => i.id() === e.value], "filter-type-==": [Ke, [at], (i, [e]) => i.geometryType() === e.value], "filter-<": [Ke, [at, rt], (i, [e, r]) => {
|
@@ -2494,16 +2494,16 @@ var cp = { exports: {} };
|
|
2494
2494
|
l[f] > s ? p = f - 1 : d = f + 1;
|
2495
2495
|
}
|
2496
2496
|
return !1;
|
2497
|
-
}(i.properties()[e.value], r.value, 0, r.value.length - 1)], all: { type: Ke, overloads: [[[Ke, Ke], (i, [e, r]) => e.evaluate(i) && r.evaluate(i)], [
|
2497
|
+
}(i.properties()[e.value], r.value, 0, r.value.length - 1)], all: { type: Ke, overloads: [[[Ke, Ke], (i, [e, r]) => e.evaluate(i) && r.evaluate(i)], [vn(Ke), (i, e) => {
|
2498
2498
|
for (const r of e) if (!r.evaluate(i)) return !1;
|
2499
2499
|
return !0;
|
2500
|
-
}]] }, any: { type: Ke, overloads: [[[Ke, Ke], (i, [e, r]) => e.evaluate(i) || r.evaluate(i)], [
|
2500
|
+
}]] }, any: { type: Ke, overloads: [[[Ke, Ke], (i, [e, r]) => e.evaluate(i) || r.evaluate(i)], [vn(Ke), (i, e) => {
|
2501
2501
|
for (const r of e) if (r.evaluate(i)) return !0;
|
2502
2502
|
return !1;
|
2503
2503
|
}]] }, "!": [Ke, [Ke], (i, [e]) => !e.evaluate(i)], "is-supported-script": [Ke, [at], (i, [e]) => {
|
2504
2504
|
const r = i.globals && i.globals.isSupportedScript;
|
2505
2505
|
return !r || r(e.evaluate(i));
|
2506
|
-
}], upcase: [at, [at], (i, [e]) => e.evaluate(i).toUpperCase()], downcase: [at, [at], (i, [e]) => e.evaluate(i).toLowerCase()], concat: [at,
|
2506
|
+
}], upcase: [at, [at], (i, [e]) => e.evaluate(i).toUpperCase()], downcase: [at, [at], (i, [e]) => e.evaluate(i).toLowerCase()], concat: [at, vn(rt), (i, e) => e.map((r) => zr(r.evaluate(i))).join("")], "resolved-locale": [at, [yr], (i, [e]) => e.evaluate(i).resolvedLocale()] });
|
2507
2507
|
class go {
|
2508
2508
|
constructor(e, r) {
|
2509
2509
|
var s;
|
@@ -2525,10 +2525,10 @@ var cp = { exports: {} };
|
|
2525
2525
|
}
|
2526
2526
|
}
|
2527
2527
|
function Is(i) {
|
2528
|
-
return Array.isArray(i) && i.length > 0 && typeof i[0] == "string" && i[0] in
|
2528
|
+
return Array.isArray(i) && i.length > 0 && typeof i[0] == "string" && i[0] in xn;
|
2529
2529
|
}
|
2530
|
-
function
|
2531
|
-
const r = new Kr(
|
2530
|
+
function Sn(i, e) {
|
2531
|
+
const r = new Kr(xn, ho, [], e ? function(l) {
|
2532
2532
|
const d = { color: Mi, string: at, number: Ae, enum: at, boolean: Ke, formatted: Mr, padding: Xr, resolvedImage: xr, variableAnchorOffsetCollection: G };
|
2533
2533
|
return l.type === "array" ? z(d[l.value] || rt, l.length) : d[l.type];
|
2534
2534
|
}(e) : void 0), s = r.parse(i, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
@@ -2560,10 +2560,10 @@ var cp = { exports: {} };
|
|
2560
2560
|
}
|
2561
2561
|
}
|
2562
2562
|
function Fl(i, e) {
|
2563
|
-
const r =
|
2563
|
+
const r = Sn(i, e);
|
2564
2564
|
if (r.result === "error") return r;
|
2565
2565
|
const s = r.value.expression, l = uo(s);
|
2566
|
-
if (!l && !
|
2566
|
+
if (!l && !bn(e)) return Nn([new Ii("", "data expressions not supported")]);
|
2567
2567
|
const d = po(s, ["zoom"]);
|
2568
2568
|
if (!d && !ca(e)) return Nn([new Ii("", "zoom expressions not supported")]);
|
2569
2569
|
const p = yo(s);
|
@@ -2622,7 +2622,7 @@ var cp = { exports: {} };
|
|
2622
2622
|
function Pi(i) {
|
2623
2623
|
if (i == null) return { filter: () => !0, needGeometry: !1 };
|
2624
2624
|
jn(i) || (i = vo(i));
|
2625
|
-
const e =
|
2625
|
+
const e = Sn(i, xo);
|
2626
2626
|
if (e.result === "error") throw new Error(e.value.map((r) => `${r.key}: ${r.message}`).join(", "));
|
2627
2627
|
return { filter: (r, s, l) => e.value.evaluate(r, s, {}, l), needGeometry: fa(i) };
|
2628
2628
|
}
|
@@ -2690,7 +2690,7 @@ var cp = { exports: {} };
|
|
2690
2690
|
}
|
2691
2691
|
function ya(i) {
|
2692
2692
|
let e = "";
|
2693
|
-
for (const r of
|
2693
|
+
for (const r of mn) e += `/${_a(i[r])}`;
|
2694
2694
|
return e;
|
2695
2695
|
}
|
2696
2696
|
function Bl(i) {
|
@@ -2700,11 +2700,11 @@ var cp = { exports: {} };
|
|
2700
2700
|
function Dt(i) {
|
2701
2701
|
return i instanceof Number || i instanceof String || i instanceof Boolean ? i.valueOf() : i;
|
2702
2702
|
}
|
2703
|
-
function
|
2704
|
-
if (Array.isArray(i)) return i.map(
|
2703
|
+
function Tn(i) {
|
2704
|
+
if (Array.isArray(i)) return i.map(Tn);
|
2705
2705
|
if (i instanceof Object && !(i instanceof Number || i instanceof String || i instanceof Boolean)) {
|
2706
2706
|
const e = {};
|
2707
|
-
for (const r in i) e[r] =
|
2707
|
+
for (const r in i) e[r] = Tn(i[r]);
|
2708
2708
|
return e;
|
2709
2709
|
}
|
2710
2710
|
return Dt(i);
|
@@ -2759,7 +2759,7 @@ var cp = { exports: {} };
|
|
2759
2759
|
}, default: function(D) {
|
2760
2760
|
return D.validateSpec({ key: D.key, value: D.value, valueSpec: e, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec });
|
2761
2761
|
} } });
|
2762
|
-
return r === "identity" && f && w.push(new Te(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || w.push(new Te(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !Un(i.valueSpec) && w.push(new Te(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (_ && !
|
2762
|
+
return r === "identity" && f && w.push(new Te(i.key, i.value, 'missing required property "property"')), r === "identity" || i.value.stops || w.push(new Te(i.key, i.value, 'missing required property "stops"')), r === "exponential" && i.valueSpec.expression && !Un(i.valueSpec) && w.push(new Te(i.key, i.value, "exponential functions not supported")), i.styleSpec.$version >= 8 && (_ && !bn(i.valueSpec) ? w.push(new Te(i.key, i.value, "property functions not supported")) : f && !ca(i.valueSpec) && w.push(new Te(i.key, i.value, "zoom functions not supported"))), r !== "categorical" && !x || i.value.property !== void 0 || w.push(new Te(i.key, i.value, '"property" property is required')), w;
|
2763
2763
|
function I(D) {
|
2764
2764
|
let R = [];
|
2765
2765
|
const B = D.value, $ = D.key;
|
@@ -2772,7 +2772,7 @@ var cp = { exports: {} };
|
|
2772
2772
|
if (d && d > Dt(B[0].zoom)) return [new Te($, B[0].zoom, "stop zoom values must appear in ascending order")];
|
2773
2773
|
Dt(B[0].zoom) !== d && (d = Dt(B[0].zoom), l = void 0, p = {}), R = R.concat(zi({ key: `${$}[0]`, value: B[0], valueSpec: { zoom: {} }, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec, objectElementValidators: { zoom: As, value: C } }));
|
2774
2774
|
} else R = R.concat(C({ key: `${$}[0]`, value: B[0], valueSpec: {}, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec }, B));
|
2775
|
-
return Is(
|
2775
|
+
return Is(Tn(B[1])) ? R.concat([new Te(`${$}[1]`, B[1], "expressions are not allowed in function stops.")]) : R.concat(D.validateSpec({ key: `${$}[1]`, value: B[1], valueSpec: e, validateSpec: D.validateSpec, style: D.style, styleSpec: D.styleSpec }));
|
2776
2776
|
}
|
2777
2777
|
function C(D, R) {
|
2778
2778
|
const B = gt(D.value), $ = Dt(D.value), W = D.value !== null ? D.value : R;
|
@@ -2782,13 +2782,13 @@ var cp = { exports: {} };
|
|
2782
2782
|
if (B !== "number" && B !== "string" && B !== "boolean") return [new Te(D.key, W, "stop domain value must be a number, string, or boolean")];
|
2783
2783
|
if (B !== "number" && r !== "categorical") {
|
2784
2784
|
let se = `number expected, ${B} found`;
|
2785
|
-
return
|
2785
|
+
return bn(e) && r === void 0 && (se += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new Te(D.key, W, se)];
|
2786
2786
|
}
|
2787
2787
|
return r !== "categorical" || B !== "number" || isFinite($) && Math.floor($) === $ ? r !== "categorical" && B === "number" && l !== void 0 && $ < l ? [new Te(D.key, W, "stop domain values must appear in ascending order")] : (l = $, r === "categorical" && $ in p ? [new Te(D.key, W, "stop domain values must be unique")] : (p[$] = !0, [])) : [new Te(D.key, W, `integer expected, found ${$}`)];
|
2788
2788
|
}
|
2789
2789
|
}
|
2790
|
-
function
|
2791
|
-
const e = (i.expressionContext === "property" ? Fl :
|
2790
|
+
function In(i) {
|
2791
|
+
const e = (i.expressionContext === "property" ? Fl : Sn)(Tn(i.value), i.valueSpec);
|
2792
2792
|
if (e.result === "error") return e.value.map((s) => new Te(`${i.key}${s.key}`, i.value, s.message));
|
2793
2793
|
const r = e.value.expression || e.value._styleExpression.expression;
|
2794
2794
|
if (i.expressionContext === "property" && i.propertyKey === "text-font" && !r.outputDefined()) return [new Te(i.key, i.value, `Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];
|
@@ -2805,7 +2805,7 @@ var cp = { exports: {} };
|
|
2805
2805
|
return Array.isArray(s.values) ? s.values.indexOf(Dt(r)) === -1 && l.push(new Te(e, r, `expected one of [${s.values.join(", ")}], ${JSON.stringify(r)} found`)) : Object.keys(s.values).indexOf(Dt(r)) === -1 && l.push(new Te(e, r, `expected one of [${Object.keys(s.values).join(", ")}], ${JSON.stringify(r)} found`)), l;
|
2806
2806
|
}
|
2807
2807
|
function ks(i) {
|
2808
|
-
return jn(
|
2808
|
+
return jn(Tn(i.value)) ? In(gr({}, i, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Es(i);
|
2809
2809
|
}
|
2810
2810
|
function Es(i) {
|
2811
2811
|
const e = i.value, r = i.key;
|
@@ -2846,10 +2846,10 @@ var cp = { exports: {} };
|
|
2846
2846
|
const w = i.valueSpec || _[f];
|
2847
2847
|
if (!w) return [new Te(r, p, `unknown property "${f}"`)];
|
2848
2848
|
let I;
|
2849
|
-
if (gt(p) === "string" &&
|
2849
|
+
if (gt(p) === "string" && bn(w) && !w.tokens && (I = /^{([^}]+)}$/.exec(p))) return [new Te(r, p, `"${f}" does not support interpolation syntax
|
2850
2850
|
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(I[1])} }\`.`)];
|
2851
2851
|
const C = [];
|
2852
|
-
return i.layerType === "symbol" && (f === "text-field" && l && !l.glyphs && C.push(new Te(r, p, 'use of "text-field" requires a style "glyphs" property')), f === "text-font" && Ts(
|
2852
|
+
return i.layerType === "symbol" && (f === "text-field" && l && !l.glyphs && C.push(new Te(r, p, 'use of "text-field" requires a style "glyphs" property')), f === "text-font" && Ts(Tn(p)) && Dt(p.type) === "identity" && C.push(new Te(r, p, '"text-font" does not support identity functions'))), C.concat(s({ key: i.key, value: p, valueSpec: w, style: l, styleSpec: d, expressionContext: "property", propertyType: e, propertyKey: f }));
|
2853
2853
|
}
|
2854
2854
|
function ba(i) {
|
2855
2855
|
return va(i, "paint");
|
@@ -2919,7 +2919,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2919
2919
|
case "geojson":
|
2920
2920
|
if (f = zi({ key: r, value: e, valueSpec: s.source_geojson, style: l, styleSpec: s, validateSpec: d, objectElementValidators: Ta }), e.cluster) for (const _ in e.clusterProperties) {
|
2921
2921
|
const [x, w] = e.clusterProperties[_], I = typeof x == "string" ? [x, ["accumulated"], ["get", _]] : x;
|
2922
|
-
f.push(...
|
2922
|
+
f.push(...In({ key: `${r}.${_}.map`, value: w, validateSpec: d, expressionContext: "cluster-map" })), f.push(...In({ key: `${r}.${_}.reduce`, value: I, validateSpec: d, expressionContext: "cluster-reduce" }));
|
2923
2923
|
}
|
2924
2924
|
return f;
|
2925
2925
|
case "video":
|
@@ -2985,9 +2985,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
2985
2985
|
for (const f in e) p = p.concat(s[f] ? i.validateSpec({ key: f, value: e[f], valueSpec: s[f], style: l, styleSpec: r }) : [new Te(f, e[f], `unknown property "${f}"`)]);
|
2986
2986
|
return p;
|
2987
2987
|
}, string: Lr, formatted: function(i) {
|
2988
|
-
return Lr(i).length === 0 ? [] :
|
2988
|
+
return Lr(i).length === 0 ? [] : In(i);
|
2989
2989
|
}, resolvedImage: function(i) {
|
2990
|
-
return Lr(i).length === 0 ? [] :
|
2990
|
+
return Lr(i).length === 0 ? [] : In(i);
|
2991
2991
|
}, padding: function(i) {
|
2992
2992
|
const e = i.key, r = i.value;
|
2993
2993
|
if (gt(r) === "array") {
|
@@ -3007,7 +3007,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3007
3007
|
}, sprite: Aa };
|
3008
3008
|
function Ms(i) {
|
3009
3009
|
const e = i.value, r = i.valueSpec, s = i.styleSpec;
|
3010
|
-
return i.validateSpec = Ms, r.expression && Ts(Dt(e)) ? xa(i) : r.expression && Is(
|
3010
|
+
return i.validateSpec = Ms, r.expression && Ts(Dt(e)) ? xa(i) : r.expression && Is(Tn(e)) ? In(i) : r.type && Ca[r.type] ? Ca[r.type](i) : zi(gr({}, i, { valueSpec: r.type ? s[r.type] : r }));
|
3011
3011
|
}
|
3012
3012
|
function Nl(i) {
|
3013
3013
|
const e = i.value, r = i.key, s = Lr(i);
|
@@ -3130,7 +3130,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3130
3130
|
Object.defineProperty(e, "_classRegistryKey", { value: i, writeable: !1 }), br[i] = { klass: e, omit: r.omit || [], shallow: r.shallow || [] };
|
3131
3131
|
}
|
3132
3132
|
Fe("Object", Object), Fe("TransferableGridIndex", Zn), Fe("Color", St), Fe("Error", Error), Fe("AJAXError", Vi), Fe("ResolvedImage", pi), Fe("StylePropertyFunction", _o), Fe("StyleExpression", go, { omit: ["_evaluator"] }), Fe("ZoomDependentExpression", pa), Fe("ZoomConstantExpression", da), Fe("CompoundExpression", Zi, { omit: ["_evaluate"] });
|
3133
|
-
for (const i in
|
3133
|
+
for (const i in xn) xn[i]._classRegistryKey || Fe(`Expression_${i}`, xn[i]);
|
3134
3134
|
function Ul(i) {
|
3135
3135
|
return i && typeof ArrayBuffer < "u" && (i instanceof ArrayBuffer || i.constructor && i.constructor.name === "ArrayBuffer");
|
3136
3136
|
}
|
@@ -3596,7 +3596,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
3596
3596
|
isStateDependent() {
|
3597
3597
|
for (const e in this.paint._values) {
|
3598
3598
|
const r = this.paint.get(e);
|
3599
|
-
if (r instanceof Sr &&
|
3599
|
+
if (r instanceof Sr && bn(r.property.specification) && (r.value.kind === "source" || r.value.kind === "composite") && r.value.isStateDependent) return !0;
|
3600
3600
|
}
|
3601
3601
|
return !1;
|
3602
3602
|
}
|
@@ -4225,13 +4225,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4225
4225
|
}
|
4226
4226
|
}
|
4227
4227
|
Fe("FeatureIndexArray", or);
|
4228
|
-
class
|
4228
|
+
class Pn extends A {
|
4229
4229
|
}
|
4230
4230
|
class To extends A {
|
4231
4231
|
}
|
4232
4232
|
class Wn extends A {
|
4233
4233
|
}
|
4234
|
-
class
|
4234
|
+
class An extends V {
|
4235
4235
|
}
|
4236
4236
|
class Io extends Z {
|
4237
4237
|
}
|
@@ -4390,7 +4390,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4390
4390
|
e.r === this.current.r && e.g === this.current.g && e.b === this.current.b && e.a === this.current.a || (this.current = e, this.gl.uniform4f(this.location, e.r, e.g, e.b, e.a));
|
4391
4391
|
}
|
4392
4392
|
}
|
4393
|
-
const
|
4393
|
+
const qp = new Float32Array(16);
|
4394
4394
|
function Kc(i) {
|
4395
4395
|
return [Wl(255 * i.r, 255 * i.g), Wl(255 * i.b, 255 * i.a)];
|
4396
4396
|
}
|
@@ -4420,7 +4420,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4420
4420
|
return s.substr(0, 9) === "u_pattern" ? new ru(e, r) : new Kl(e, r);
|
4421
4421
|
}
|
4422
4422
|
}
|
4423
|
-
class
|
4423
|
+
class Cn {
|
4424
4424
|
constructor(e, r, s, l) {
|
4425
4425
|
this.expression = e, this.type = s, this.maxValue = 0, this.paintVertexAttributes = r.map((d) => ({ name: `a_${d}`, type: "Float32", components: s === "color" ? 2 : 1, offset: 0 })), this.paintVertexArray = new l();
|
4426
4426
|
}
|
@@ -4513,12 +4513,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4513
4513
|
for (const d in e.paint._values) {
|
4514
4514
|
if (!s(d)) continue;
|
4515
4515
|
const p = e.paint.get(d);
|
4516
|
-
if (!(p instanceof Sr &&
|
4517
|
-
const f =
|
4516
|
+
if (!(p instanceof Sr && bn(p.property.specification))) continue;
|
4517
|
+
const f = Zp(d, e.type), _ = p.value, x = p.property.specification.type, w = p.property.useIntegerZoom, I = p.property.specification["property-type"], C = I === "cross-faded" || I === "cross-faded-data-driven";
|
4518
4518
|
if (_.kind === "constant") this.binders[d] = C ? new ko(_.value, f) : new ja(_.value, f, x), l.push(`/u_${d}`);
|
4519
4519
|
else if (_.kind === "source" || C) {
|
4520
4520
|
const D = ou(d, x, "source");
|
4521
|
-
this.binders[d] = C ? new Yn(_, x, w, r, D, e.id) : new
|
4521
|
+
this.binders[d] = C ? new Yn(_, x, w, r, D, e.id) : new Cn(_, f, x, D), l.push(`/a_${d}`);
|
4522
4522
|
} else {
|
4523
4523
|
const D = ou(d, x, "composite");
|
4524
4524
|
this.binders[d] = new Fr(_, f, x, w, r, D), l.push(`/z_${d}`);
|
@@ -4528,12 +4528,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4528
4528
|
}
|
4529
4529
|
getMaxValue(e) {
|
4530
4530
|
const r = this.binders[e];
|
4531
|
-
return r instanceof
|
4531
|
+
return r instanceof Cn || r instanceof Fr ? r.maxValue : 0;
|
4532
4532
|
}
|
4533
4533
|
populatePaintArrays(e, r, s, l, d) {
|
4534
4534
|
for (const p in this.binders) {
|
4535
4535
|
const f = this.binders[p];
|
4536
|
-
(f instanceof
|
4536
|
+
(f instanceof Cn || f instanceof Fr || f instanceof Yn) && f.populatePaintArray(e, r, s, l, d);
|
4537
4537
|
}
|
4538
4538
|
}
|
4539
4539
|
setConstantPatternPositions(e, r) {
|
@@ -4550,7 +4550,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4550
4550
|
const w = s.feature(x.index);
|
4551
4551
|
for (const I in this.binders) {
|
4552
4552
|
const C = this.binders[I];
|
4553
|
-
if ((C instanceof
|
4553
|
+
if ((C instanceof Cn || C instanceof Fr || C instanceof Yn) && C.expression.isStateDependent === !0) {
|
4554
4554
|
const D = l.paint.get(I);
|
4555
4555
|
C.expression = D.value, C.updatePaintArray(x.start, x.end, w, e[f], d), p = !0;
|
4556
4556
|
}
|
@@ -4571,7 +4571,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4571
4571
|
const e = [];
|
4572
4572
|
for (const r in this.binders) {
|
4573
4573
|
const s = this.binders[r];
|
4574
|
-
if (s instanceof
|
4574
|
+
if (s instanceof Cn || s instanceof Fr) for (let l = 0; l < s.paintVertexAttributes.length; l++) e.push(s.paintVertexAttributes[l].name);
|
4575
4575
|
else if (s instanceof Yn) for (let l = 0; l < Po.members.length; l++) e.push(Po.members[l].name);
|
4576
4576
|
}
|
4577
4577
|
return e;
|
@@ -4610,20 +4610,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4610
4610
|
if (e && s instanceof Yn) {
|
4611
4611
|
const l = e.fromScale === 2 ? s.zoomInPaintVertexBuffer : s.zoomOutPaintVertexBuffer;
|
4612
4612
|
l && this._buffers.push(l);
|
4613
|
-
} else (s instanceof
|
4613
|
+
} else (s instanceof Cn || s instanceof Fr) && s.paintVertexBuffer && this._buffers.push(s.paintVertexBuffer);
|
4614
4614
|
}
|
4615
4615
|
}
|
4616
4616
|
upload(e) {
|
4617
4617
|
for (const r in this.binders) {
|
4618
4618
|
const s = this.binders[r];
|
4619
|
-
(s instanceof
|
4619
|
+
(s instanceof Cn || s instanceof Fr || s instanceof Yn) && s.upload(e);
|
4620
4620
|
}
|
4621
4621
|
this.updatePaintBuffers();
|
4622
4622
|
}
|
4623
4623
|
destroy() {
|
4624
4624
|
for (const e in this.binders) {
|
4625
4625
|
const r = this.binders[e];
|
4626
|
-
(r instanceof
|
4626
|
+
(r instanceof Cn || r instanceof Fr || r instanceof Yn) && r.destroy();
|
4627
4627
|
}
|
4628
4628
|
}
|
4629
4629
|
}
|
@@ -4653,7 +4653,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4653
4653
|
for (const e in this.programConfigurations) this.programConfigurations[e].destroy();
|
4654
4654
|
}
|
4655
4655
|
}
|
4656
|
-
function
|
4656
|
+
function Zp(i, e) {
|
4657
4657
|
return { "text-opacity": ["opacity"], "icon-opacity": ["opacity"], "text-color": ["fill_color"], "icon-color": ["fill_color"], "text-halo-color": ["halo_color"], "icon-halo-color": ["halo_color"], "text-halo-blur": ["halo_blur"], "icon-halo-blur": ["halo_blur"], "text-halo-width": ["halo_width"], "icon-halo-width": ["halo_width"], "line-gap-width": ["gapwidth"], "line-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-extrusion-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"] }[i] || [i.replace(`${e}-`, "").replace(/-/g, "_")];
|
4658
4658
|
}
|
4659
4659
|
function ou(i, e, r) {
|
@@ -4662,7 +4662,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4662
4662
|
}(i);
|
4663
4663
|
return l && l[r] || s[e][r];
|
4664
4664
|
}
|
4665
|
-
Fe("ConstantBinder", ja), Fe("CrossFadedConstantBinder", ko), Fe("SourceExpressionBinder",
|
4665
|
+
Fe("ConstantBinder", ja), Fe("CrossFadedConstantBinder", ko), Fe("SourceExpressionBinder", Cn), Fe("CrossFadedCompositeBinder", Yn), Fe("CompositeExpressionBinder", Fr), Fe("ProgramConfiguration", su, { omit: ["_buffers"] }), Fe("ProgramConfigurationSet", Rs);
|
4666
4666
|
const ti = 8192, Yc = Math.pow(2, 14) - 1, au = -Yc - 1;
|
4667
4667
|
function Fs(i) {
|
4668
4668
|
const e = ti / i.extent, r = i.loadGeometry();
|
@@ -4731,7 +4731,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4731
4731
|
for (let r = 0; r < e.length; r++) if (Eo(i, e[r])) return !0;
|
4732
4732
|
return !!eh(i, e);
|
4733
4733
|
}
|
4734
|
-
function
|
4734
|
+
function Gp(i, e, r) {
|
4735
4735
|
return !!Eo(i, e) || !!th(e, i, r);
|
4736
4736
|
}
|
4737
4737
|
function cu(i, e) {
|
@@ -4744,7 +4744,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4744
4744
|
for (let r = 0; r < e.length; r++) if (eh(i, e[r])) return !0;
|
4745
4745
|
return !1;
|
4746
4746
|
}
|
4747
|
-
function
|
4747
|
+
function Hp(i, e, r) {
|
4748
4748
|
if (i.length > 1) {
|
4749
4749
|
if (eh(i, e)) return !0;
|
4750
4750
|
for (let s = 0; s < e.length; s++) if (th(e[s], i, r)) return !0;
|
@@ -4756,11 +4756,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4756
4756
|
if (i.length === 0 || e.length === 0) return !1;
|
4757
4757
|
for (let r = 0; r < i.length - 1; r++) {
|
4758
4758
|
const s = i[r], l = i[r + 1];
|
4759
|
-
for (let d = 0; d < e.length - 1; d++) if (
|
4759
|
+
for (let d = 0; d < e.length - 1; d++) if (Wp(s, l, e[d], e[d + 1])) return !0;
|
4760
4760
|
}
|
4761
4761
|
return !1;
|
4762
4762
|
}
|
4763
|
-
function
|
4763
|
+
function Wp(i, e, r, s) {
|
4764
4764
|
return Ti(i, r, s) !== Ti(e, r, s) && Ti(i, e, r) !== Ti(i, e, s);
|
4765
4765
|
}
|
4766
4766
|
function th(i, e, r) {
|
@@ -4791,7 +4791,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4791
4791
|
}
|
4792
4792
|
return r;
|
4793
4793
|
}
|
4794
|
-
function
|
4794
|
+
function Xp(i, e, r) {
|
4795
4795
|
const s = r[0], l = r[2];
|
4796
4796
|
if (i.x < s.x && e.x < s.x || i.x > l.x && e.x > l.x || i.y < s.y && e.y < s.y || i.y > l.y && e.y > l.y) return !1;
|
4797
4797
|
const d = Ti(i, e, r[0]);
|
@@ -4814,7 +4814,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4814
4814
|
}
|
4815
4815
|
let du, pu;
|
4816
4816
|
Fe("CircleBucket", Qc, { omit: ["layers"] });
|
4817
|
-
var
|
4817
|
+
var Jp = { get paint() {
|
4818
4818
|
return pu = pu || new o({ "circle-radius": new Xe(he.paint_circle["circle-radius"]), "circle-color": new Xe(he.paint_circle["circle-color"]), "circle-blur": new Xe(he.paint_circle["circle-blur"]), "circle-opacity": new Xe(he.paint_circle["circle-opacity"]), "circle-translate": new je(he.paint_circle["circle-translate"]), "circle-translate-anchor": new je(he.paint_circle["circle-translate-anchor"]), "circle-pitch-scale": new je(he.paint_circle["circle-pitch-scale"]), "circle-pitch-alignment": new je(he.paint_circle["circle-pitch-alignment"]), "circle-stroke-width": new Xe(he.paint_circle["circle-stroke-width"]), "circle-stroke-color": new Xe(he.paint_circle["circle-stroke-color"]), "circle-stroke-opacity": new Xe(he.paint_circle["circle-stroke-opacity"]) });
|
4819
4819
|
}, get layout() {
|
4820
4820
|
return du = du || new o({ "circle-sort-key": new Xe(he.layout_circle["circle-sort-key"]) });
|
@@ -4830,15 +4830,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4830
4830
|
for (var i = 0, e = arguments.length; e--; ) i += arguments[e] * arguments[e];
|
4831
4831
|
return Math.sqrt(i);
|
4832
4832
|
});
|
4833
|
-
var qa,
|
4833
|
+
var qa, Kp = fu;
|
4834
4834
|
function tc(i, e, r) {
|
4835
4835
|
var s = e[0], l = e[1], d = e[2], p = e[3];
|
4836
4836
|
return i[0] = r[0] * s + r[4] * l + r[8] * d + r[12] * p, i[1] = r[1] * s + r[5] * l + r[9] * d + r[13] * p, i[2] = r[2] * s + r[6] * l + r[10] * d + r[14] * p, i[3] = r[3] * s + r[7] * l + r[11] * d + r[15] * p, i;
|
4837
4837
|
}
|
4838
4838
|
qa = new Mo(4), Mo != Float32Array && (qa[0] = 0, qa[1] = 0, qa[2] = 0, qa[3] = 0);
|
4839
|
-
class
|
4839
|
+
class Yp extends h {
|
4840
4840
|
constructor(e) {
|
4841
|
-
super(e,
|
4841
|
+
super(e, Jp);
|
4842
4842
|
}
|
4843
4843
|
createBucket(e) {
|
4844
4844
|
return new Qc(e);
|
@@ -4855,7 +4855,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4855
4855
|
const $ = I ? B : mu(B, _);
|
4856
4856
|
let W = D;
|
4857
4857
|
const se = tc([], [B.x, B.y, 0, 1], _);
|
4858
|
-
if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? W *= se[3] / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (W *= p.cameraToCenterDistance / se[3]),
|
4858
|
+
if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? W *= se[3] / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (W *= p.cameraToCenterDistance / se[3]), Gp(C, $, W)) return !0;
|
4859
4859
|
}
|
4860
4860
|
return !1;
|
4861
4861
|
}
|
@@ -4868,7 +4868,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4868
4868
|
}
|
4869
4869
|
let _u;
|
4870
4870
|
Fe("HeatmapBucket", gu, { omit: ["layers"] });
|
4871
|
-
var
|
4871
|
+
var Qp = { get paint() {
|
4872
4872
|
return _u = _u || new o({ "heatmap-radius": new Xe(he.paint_heatmap["heatmap-radius"]), "heatmap-weight": new Xe(he.paint_heatmap["heatmap-weight"]), "heatmap-intensity": new je(he.paint_heatmap["heatmap-intensity"]), "heatmap-color": new n(he.paint_heatmap["heatmap-color"]), "heatmap-opacity": new je(he.paint_heatmap["heatmap-opacity"]) });
|
4873
4873
|
} };
|
4874
4874
|
function rh(i, { width: e, height: r }, s, l) {
|
@@ -4942,12 +4942,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4942
4942
|
return l;
|
4943
4943
|
}
|
4944
4944
|
Fe("AlphaImage", Za), Fe("RGBAImage", lr);
|
4945
|
-
class
|
4945
|
+
class ef extends h {
|
4946
4946
|
createBucket(e) {
|
4947
4947
|
return new gu(e);
|
4948
4948
|
}
|
4949
4949
|
constructor(e) {
|
4950
|
-
super(e,
|
4950
|
+
super(e, Qp), this._updateColorRamp();
|
4951
4951
|
}
|
4952
4952
|
_handleSpecialPaintPropertyUpdate(e) {
|
4953
4953
|
e === "heatmap-color" && this._updateColorRamp();
|
@@ -4969,18 +4969,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4969
4969
|
}
|
4970
4970
|
}
|
4971
4971
|
let vu;
|
4972
|
-
var
|
4972
|
+
var tf = { get paint() {
|
4973
4973
|
return vu = vu || new o({ "hillshade-illumination-direction": new je(he.paint_hillshade["hillshade-illumination-direction"]), "hillshade-illumination-anchor": new je(he.paint_hillshade["hillshade-illumination-anchor"]), "hillshade-exaggeration": new je(he.paint_hillshade["hillshade-exaggeration"]), "hillshade-shadow-color": new je(he.paint_hillshade["hillshade-shadow-color"]), "hillshade-highlight-color": new je(he.paint_hillshade["hillshade-highlight-color"]), "hillshade-accent-color": new je(he.paint_hillshade["hillshade-accent-color"]) });
|
4974
4974
|
} };
|
4975
|
-
class
|
4975
|
+
class rf extends h {
|
4976
4976
|
constructor(e) {
|
4977
|
-
super(e,
|
4977
|
+
super(e, tf);
|
4978
4978
|
}
|
4979
4979
|
hasOffscreenPass() {
|
4980
4980
|
return this.paint.get("hillshade-exaggeration") !== 0 && this.visibility !== "none";
|
4981
4981
|
}
|
4982
4982
|
}
|
4983
|
-
const
|
4983
|
+
const nf = b([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: sf } = nf;
|
4984
4984
|
function bu(i, e, r = 2) {
|
4985
4985
|
const s = e && e.length, l = s ? e[0] * r : i.length;
|
4986
4986
|
let d = wu(i, 0, l, r, !0);
|
@@ -4991,10 +4991,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4991
4991
|
const R = [];
|
4992
4992
|
for (let B = 0, $ = I.length; B < $; B++) {
|
4993
4993
|
const W = wu(w, I[B] * D, B < $ - 1 ? I[B + 1] * D : w.length, D, !1);
|
4994
|
-
W === W.next && (W.steiner = !0), R.push(
|
4994
|
+
W === W.next && (W.steiner = !0), R.push(pf(W));
|
4995
4995
|
}
|
4996
|
-
R.sort(
|
4997
|
-
for (let B = 0; B < R.length; B++) C =
|
4996
|
+
R.sort(hf);
|
4997
|
+
for (let B = 0; B < R.length; B++) C = uf(R[B], C);
|
4998
4998
|
return C;
|
4999
4999
|
}(i, e, d, r)), i.length > 80 * r) {
|
5000
5000
|
f = 1 / 0, _ = 1 / 0;
|
@@ -5058,14 +5058,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5058
5058
|
let f = i;
|
5059
5059
|
for (; i.prev !== i.next; ) {
|
5060
5060
|
const _ = i.prev, x = i.next;
|
5061
|
-
if (d ?
|
5061
|
+
if (d ? af(i, s, l, d) : of(i)) e.push(_.i, i.i, x.i), Wa(i), i = x.next, f = x.next;
|
5062
5062
|
else if ((i = x) === f) {
|
5063
|
-
p ? p === 1 ? Ga(i =
|
5063
|
+
p ? p === 1 ? Ga(i = lf(Os(i), e), e, r, s, l, d, 2) : p === 2 && cf(i, e, r, s, l, d) : Ga(Os(i), e, r, s, l, d, 1);
|
5064
5064
|
break;
|
5065
5065
|
}
|
5066
5066
|
}
|
5067
5067
|
}
|
5068
|
-
function
|
5068
|
+
function of(i) {
|
5069
5069
|
const e = i.prev, r = i, s = i.next;
|
5070
5070
|
if (Yt(e, r, s) >= 0) return !1;
|
5071
5071
|
const l = e.x, d = r.x, p = s.x, f = e.y, _ = r.y, x = s.y, w = l < d ? l < p ? l : p : d < p ? d : p, I = f < _ ? f < x ? f : x : _ < x ? _ : x, C = l > d ? l > p ? l : p : d > p ? d : p, D = f > _ ? f > x ? f : x : _ > x ? _ : x;
|
@@ -5076,7 +5076,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5076
5076
|
}
|
5077
5077
|
return !0;
|
5078
5078
|
}
|
5079
|
-
function
|
5079
|
+
function af(i, e, r, s) {
|
5080
5080
|
const l = i.prev, d = i, p = i.next;
|
5081
5081
|
if (Yt(l, d, p) >= 0) return !1;
|
5082
5082
|
const f = l.x, _ = d.x, x = p.x, w = l.y, I = d.y, C = p.y, D = f < _ ? f < x ? f : x : _ < x ? _ : x, R = w < I ? w < C ? w : C : I < C ? I : C, B = f > _ ? f > x ? f : x : _ > x ? _ : x, $ = w > I ? w > C ? w : C : I > C ? I : C, W = sh(D, R, e, r, s), se = sh(B, $, e, r, s);
|
@@ -5095,7 +5095,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5095
5095
|
}
|
5096
5096
|
return !0;
|
5097
5097
|
}
|
5098
|
-
function
|
5098
|
+
function lf(i, e) {
|
5099
5099
|
let r = i;
|
5100
5100
|
do {
|
5101
5101
|
const s = r.prev, l = r.next.next;
|
@@ -5103,12 +5103,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5103
5103
|
} while (r !== i);
|
5104
5104
|
return Os(r);
|
5105
5105
|
}
|
5106
|
-
function
|
5106
|
+
function cf(i, e, r, s, l, d) {
|
5107
5107
|
let p = i;
|
5108
5108
|
do {
|
5109
5109
|
let f = p.next.next;
|
5110
5110
|
for (; f !== p.prev; ) {
|
5111
|
-
if (p.i !== f.i &&
|
5111
|
+
if (p.i !== f.i && ff(p, f)) {
|
5112
5112
|
let _ = Tu(p, f);
|
5113
5113
|
return p = Os(p, p.next), _ = Os(_, _.next), Ga(p, e, r, s, l, d, 0), void Ga(_, e, r, s, l, d, 0);
|
5114
5114
|
}
|
@@ -5117,10 +5117,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5117
5117
|
p = p.next;
|
5118
5118
|
} while (p !== i);
|
5119
5119
|
}
|
5120
|
-
function
|
5120
|
+
function hf(i, e) {
|
5121
5121
|
return i.x - e.x;
|
5122
5122
|
}
|
5123
|
-
function
|
5123
|
+
function uf(i, e) {
|
5124
5124
|
const r = function(l, d) {
|
5125
5125
|
let p = d;
|
5126
5126
|
const f = l.x, _ = l.y;
|
@@ -5139,7 +5139,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5139
5139
|
do {
|
5140
5140
|
if (f >= p.x && p.x >= C && f !== p.x && zo(_ < D ? f : w, _, C, D, _ < D ? w : f, _, p.x, p.y)) {
|
5141
5141
|
const B = Math.abs(_ - p.y) / (f - p.x);
|
5142
|
-
Ha(p, l) && (B < R || B === R && (p.x > x.x || p.x === x.x &&
|
5142
|
+
Ha(p, l) && (B < R || B === R && (p.x > x.x || p.x === x.x && df(x, p))) && (x = p, R = B);
|
5143
5143
|
}
|
5144
5144
|
p = p.next;
|
5145
5145
|
} while (p !== I);
|
@@ -5149,13 +5149,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5149
5149
|
const s = Tu(r, i);
|
5150
5150
|
return Os(s, s.next), Os(r, r.next);
|
5151
5151
|
}
|
5152
|
-
function
|
5152
|
+
function df(i, e) {
|
5153
5153
|
return Yt(i.prev, i, e.prev) < 0 && Yt(e.next, i, i.next) < 0;
|
5154
5154
|
}
|
5155
5155
|
function sh(i, e, r, s, l) {
|
5156
5156
|
return (i = 1431655765 & ((i = 858993459 & ((i = 252645135 & ((i = 16711935 & ((i = (i - r) * l | 0) | i << 8)) | i << 4)) | i << 2)) | i << 1)) | (e = 1431655765 & ((e = 858993459 & ((e = 252645135 & ((e = 16711935 & ((e = (e - s) * l | 0) | e << 8)) | e << 4)) | e << 2)) | e << 1)) << 1;
|
5157
5157
|
}
|
5158
|
-
function
|
5158
|
+
function pf(i) {
|
5159
5159
|
let e = i, r = i;
|
5160
5160
|
do
|
5161
5161
|
(e.x < r.x || e.x === r.x && e.y < r.y) && (r = e), e = e.next;
|
@@ -5165,7 +5165,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5165
5165
|
function zo(i, e, r, s, l, d, p, f) {
|
5166
5166
|
return (l - p) * (e - f) >= (i - p) * (d - f) && (i - p) * (s - f) >= (r - p) * (e - f) && (r - p) * (d - f) >= (l - p) * (s - f);
|
5167
5167
|
}
|
5168
|
-
function
|
5168
|
+
function ff(i, e) {
|
5169
5169
|
return i.next.i !== e.i && i.prev.i !== e.i && !function(r, s) {
|
5170
5170
|
let l = r;
|
5171
5171
|
do {
|
@@ -5273,7 +5273,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5273
5273
|
return !this.uploaded || this.programConfigurations.needsUpload;
|
5274
5274
|
}
|
5275
5275
|
upload(e) {
|
5276
|
-
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray,
|
5276
|
+
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, sf), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.indexBuffer2 = e.createIndexBuffer(this.indexArray2)), this.programConfigurations.upload(e), this.uploaded = !0;
|
5277
5277
|
}
|
5278
5278
|
destroy() {
|
5279
5279
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.indexBuffer2.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.segments2.destroy());
|
@@ -5300,14 +5300,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5300
5300
|
}
|
5301
5301
|
let Pu, Au;
|
5302
5302
|
Fe("FillBucket", ch, { omit: ["layers", "patternFeatures"] });
|
5303
|
-
var
|
5303
|
+
var mf = { get paint() {
|
5304
5304
|
return Au = Au || new o({ "fill-antialias": new je(he.paint_fill["fill-antialias"]), "fill-opacity": new Xe(he.paint_fill["fill-opacity"]), "fill-color": new Xe(he.paint_fill["fill-color"]), "fill-outline-color": new Xe(he.paint_fill["fill-outline-color"]), "fill-translate": new je(he.paint_fill["fill-translate"]), "fill-translate-anchor": new je(he.paint_fill["fill-translate-anchor"]), "fill-pattern": new u(he.paint_fill["fill-pattern"]) });
|
5305
5305
|
}, get layout() {
|
5306
5306
|
return Pu = Pu || new o({ "fill-sort-key": new Xe(he.layout_fill["fill-sort-key"]) });
|
5307
5307
|
} };
|
5308
|
-
class
|
5308
|
+
class gf extends h {
|
5309
5309
|
constructor(e) {
|
5310
|
-
super(e,
|
5310
|
+
super(e, mf);
|
5311
5311
|
}
|
5312
5312
|
recalculate(e, r) {
|
5313
5313
|
super.recalculate(e, r);
|
@@ -5327,12 +5327,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5327
5327
|
return !0;
|
5328
5328
|
}
|
5329
5329
|
}
|
5330
|
-
const
|
5331
|
-
var Qn = {},
|
5330
|
+
const _f = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), yf = b([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: xf } = _f;
|
5331
|
+
var Qn = {}, vf = ye, Cu = Do;
|
5332
5332
|
function Do(i, e, r, s, l) {
|
5333
|
-
this.properties = {}, this.extent = r, this.type = 0, this._pbf = i, this._geometry = -1, this._keys = s, this._values = l, i.readFields(
|
5333
|
+
this.properties = {}, this.extent = r, this.type = 0, this._pbf = i, this._geometry = -1, this._keys = s, this._values = l, i.readFields(bf, this, e);
|
5334
5334
|
}
|
5335
|
-
function
|
5335
|
+
function bf(i, e, r) {
|
5336
5336
|
i == 1 ? e.id = r.readVarint() : i == 2 ? function(s, l) {
|
5337
5337
|
for (var d = s.readVarint() + s.pos; s.pos < d; ) {
|
5338
5338
|
var p = l._keys[s.readVarint()], f = l._values[s.readVarint()];
|
@@ -5340,7 +5340,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5340
5340
|
}
|
5341
5341
|
}(r, e) : i == 3 ? e.type = r.readVarint() : i == 4 && (e._geometry = r.pos);
|
5342
5342
|
}
|
5343
|
-
function
|
5343
|
+
function wf(i) {
|
5344
5344
|
for (var e, r, s = 0, l = 0, d = i.length, p = d - 1; l < d; p = l++) s += ((r = i[p]).x - (e = i[l]).x) * (e.y + r.y);
|
5345
5345
|
return s;
|
5346
5346
|
}
|
@@ -5352,7 +5352,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5352
5352
|
var _ = i.readVarint();
|
5353
5353
|
s = 7 & _, l = _ >> 3;
|
5354
5354
|
}
|
5355
|
-
if (l--, s === 1 || s === 2) d += i.readSVarint(), p += i.readSVarint(), s === 1 && (e && f.push(e), e = []), e.push(new
|
5355
|
+
if (l--, s === 1 || s === 2) d += i.readSVarint(), p += i.readSVarint(), s === 1 && (e && f.push(e), e = []), e.push(new vf(d, p));
|
5356
5356
|
else {
|
5357
5357
|
if (s !== 7) throw new Error("unknown command " + s);
|
5358
5358
|
e && e.push(e[0].clone());
|
@@ -5393,7 +5393,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5393
5393
|
var R = D.length;
|
5394
5394
|
if (R <= 1) return [D];
|
5395
5395
|
for (var B, $, W = [], se = 0; se < R; se++) {
|
5396
|
-
var Y =
|
5396
|
+
var Y = wf(D[se]);
|
5397
5397
|
Y !== 0 && ($ === void 0 && ($ = Y < 0), $ === Y < 0 ? (B && W.push(B), B = [D[se]]) : B.push(D[se]));
|
5398
5398
|
}
|
5399
5399
|
return B && W.push(B), W;
|
@@ -5403,11 +5403,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5403
5403
|
var C = { type: "Feature", geometry: { type: x, coordinates: _ }, properties: this.properties };
|
5404
5404
|
return "id" in this && (C.id = this.id), C;
|
5405
5405
|
};
|
5406
|
-
var
|
5406
|
+
var Sf = Cu, ku = Eu;
|
5407
5407
|
function Eu(i, e) {
|
5408
|
-
this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = i, this._keys = [], this._values = [], this._features = [], i.readFields(
|
5408
|
+
this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = i, this._keys = [], this._values = [], this._features = [], i.readFields(Tf, this, e), this.length = this._features.length;
|
5409
5409
|
}
|
5410
|
-
function
|
5410
|
+
function Tf(i, e, r) {
|
5411
5411
|
i === 15 ? e.version = r.readVarint() : i === 1 ? e.name = r.readString() : i === 5 ? e.extent = r.readVarint() : i === 2 ? e._features.push(r.pos) : i === 3 ? e._keys.push(r.readString()) : i === 4 && e._values.push(function(s) {
|
5412
5412
|
for (var l = null, d = s.readVarint() + s.pos; s.pos < d; ) {
|
5413
5413
|
var p = s.readVarint() >> 3;
|
@@ -5420,25 +5420,25 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5420
5420
|
if (i < 0 || i >= this._features.length) throw new Error("feature index out of bounds");
|
5421
5421
|
this._pbf.pos = this._features[i];
|
5422
5422
|
var e = this._pbf.readVarint() + this._pbf.pos;
|
5423
|
-
return new
|
5423
|
+
return new Sf(this._pbf, e, this.extent, this._keys, this._values);
|
5424
5424
|
};
|
5425
|
-
var
|
5426
|
-
function
|
5425
|
+
var If = ku;
|
5426
|
+
function Pf(i, e, r) {
|
5427
5427
|
if (i === 3) {
|
5428
|
-
var s = new
|
5428
|
+
var s = new If(r, r.readVarint() + r.pos);
|
5429
5429
|
s.length && (e[s.name] = s);
|
5430
5430
|
}
|
5431
5431
|
}
|
5432
5432
|
Qn.VectorTile = function(i, e) {
|
5433
|
-
this.layers = i.readFields(
|
5433
|
+
this.layers = i.readFields(Pf, {}, e);
|
5434
5434
|
}, Qn.VectorTileFeature = Cu, Qn.VectorTileLayer = ku;
|
5435
|
-
const
|
5435
|
+
const Af = Qn.VectorTileFeature.types, hh = Math.pow(2, 13);
|
5436
5436
|
function Xa(i, e, r, s, l, d, p, f) {
|
5437
5437
|
i.emplaceBack(e, r, 2 * Math.floor(s * hh) + p, l * hh * 2, d * hh * 2, Math.round(f));
|
5438
5438
|
}
|
5439
5439
|
class uh {
|
5440
5440
|
constructor(e) {
|
5441
|
-
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new
|
5441
|
+
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.layoutVertexArray = new An(), this.centroidVertexArray = new Pn(), this.indexArray = new si(), this.programConfigurations = new Rs(e.layers, e.zoom), this.segments = new ri(), this.stateDependentLayerIds = this.layers.filter((r) => r.isStateDependent()).map((r) => r.id);
|
5442
5442
|
}
|
5443
5443
|
populate(e, r, s) {
|
5444
5444
|
this.features = [], this.hasPattern = ah("fill-extrusion", this.layers, r);
|
@@ -5465,7 +5465,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5465
5465
|
return !this.uploaded || this.programConfigurations.needsUpload;
|
5466
5466
|
}
|
5467
5467
|
upload(e) {
|
5468
|
-
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray,
|
5468
|
+
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, xf), this.centroidVertexBuffer = e.createVertexBuffer(this.centroidVertexArray, yf.members, !0), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
|
5469
5469
|
}
|
5470
5470
|
destroy() {
|
5471
5471
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.centroidVertexBuffer.destroy());
|
@@ -5477,13 +5477,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5477
5477
|
for (const R of p) _ += R.length;
|
5478
5478
|
let x = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray);
|
5479
5479
|
for (const R of p) {
|
5480
|
-
if (R.length === 0 ||
|
5480
|
+
if (R.length === 0 || kf(R)) continue;
|
5481
5481
|
let B = 0;
|
5482
5482
|
for (let $ = 0; $ < R.length; $++) {
|
5483
5483
|
const W = R[$];
|
5484
5484
|
if ($ >= 1) {
|
5485
5485
|
const se = R[$ - 1];
|
5486
|
-
if (!
|
5486
|
+
if (!Cf(W, se)) {
|
5487
5487
|
x.vertexLength + 4 > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray));
|
5488
5488
|
const Y = W.sub(se)._perp()._unit(), ie = se.dist(W);
|
5489
5489
|
B + ie > 32768 && (B = 0), Xa(this.layoutVertexArray, W.x, W.y, Y.x, Y.y, 0, 0, B), Xa(this.layoutVertexArray, W.x, W.y, Y.x, Y.y, 0, 1, B), f.x += 2 * W.x, f.y += 2 * W.y, f.vertexCount += 2, B += ie, Xa(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 0, B), Xa(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 1, B), f.x += 2 * se.x, f.y += 2 * se.y, f.vertexCount += 2;
|
@@ -5493,7 +5493,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5493
5493
|
}
|
5494
5494
|
}
|
5495
5495
|
}
|
5496
|
-
if (x.vertexLength + _ > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(_, this.layoutVertexArray, this.indexArray)),
|
5496
|
+
if (x.vertexLength + _ > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(_, this.layoutVertexArray, this.indexArray)), Af[e.type] !== "Polygon") continue;
|
5497
5497
|
const w = [], I = [], C = x.vertexLength;
|
5498
5498
|
for (const R of p) if (R.length !== 0) {
|
5499
5499
|
R !== p[0] && I.push(w.length / 2);
|
@@ -5513,20 +5513,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5513
5513
|
this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, s, d, l);
|
5514
5514
|
}
|
5515
5515
|
}
|
5516
|
-
function
|
5516
|
+
function Cf(i, e) {
|
5517
5517
|
return i.x === e.x && (i.x < 0 || i.x > ti) || i.y === e.y && (i.y < 0 || i.y > ti);
|
5518
5518
|
}
|
5519
|
-
function
|
5519
|
+
function kf(i) {
|
5520
5520
|
return i.every((e) => e.x < 0) || i.every((e) => e.x > ti) || i.every((e) => e.y < 0) || i.every((e) => e.y > ti);
|
5521
5521
|
}
|
5522
5522
|
let Mu;
|
5523
5523
|
Fe("FillExtrusionBucket", uh, { omit: ["layers", "features"] });
|
5524
|
-
var
|
5524
|
+
var Ef = { get paint() {
|
5525
5525
|
return Mu = Mu || new o({ "fill-extrusion-opacity": new je(he["paint_fill-extrusion"]["fill-extrusion-opacity"]), "fill-extrusion-color": new Xe(he["paint_fill-extrusion"]["fill-extrusion-color"]), "fill-extrusion-translate": new je(he["paint_fill-extrusion"]["fill-extrusion-translate"]), "fill-extrusion-translate-anchor": new je(he["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]), "fill-extrusion-pattern": new u(he["paint_fill-extrusion"]["fill-extrusion-pattern"]), "fill-extrusion-height": new Xe(he["paint_fill-extrusion"]["fill-extrusion-height"]), "fill-extrusion-base": new Xe(he["paint_fill-extrusion"]["fill-extrusion-base"]), "fill-extrusion-vertical-gradient": new je(he["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) });
|
5526
5526
|
} };
|
5527
|
-
class
|
5527
|
+
class Mf extends h {
|
5528
5528
|
constructor(e) {
|
5529
|
-
super(e,
|
5529
|
+
super(e, Ef);
|
5530
5530
|
}
|
5531
5531
|
createBucket(e) {
|
5532
5532
|
return new uh(e);
|
@@ -5594,7 +5594,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5594
5594
|
return r;
|
5595
5595
|
}
|
5596
5596
|
}
|
5597
|
-
const
|
5597
|
+
const zf = b([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: Df } = zf, Lf = b([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: Rf } = Lf, Ff = Qn.VectorTileFeature.types, Bf = Math.cos(Math.PI / 180 * 37.5), Du = Math.pow(2, 14) / 0.5;
|
5598
5598
|
class dh {
|
5599
5599
|
constructor(e) {
|
5600
5600
|
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((r) => {
|
@@ -5633,7 +5633,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5633
5633
|
return !this.uploaded || this.programConfigurations.needsUpload;
|
5634
5634
|
}
|
5635
5635
|
upload(e) {
|
5636
|
-
this.uploaded || (this.layoutVertexArray2.length !== 0 && (this.layoutVertexBuffer2 = e.createVertexBuffer(this.layoutVertexArray2,
|
5636
|
+
this.uploaded || (this.layoutVertexArray2.length !== 0 && (this.layoutVertexBuffer2 = e.createVertexBuffer(this.layoutVertexArray2, Rf)), this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Df), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
|
5637
5637
|
}
|
5638
5638
|
destroy() {
|
5639
5639
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());
|
@@ -5653,7 +5653,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5653
5653
|
for (let W = 0; W < e.length - 1; W++) this.totalDistance += e[W].dist(e[W + 1]);
|
5654
5654
|
this.updateScaledDistance(), this.maxLineLength = Math.max(this.maxLineLength, this.totalDistance);
|
5655
5655
|
}
|
5656
|
-
const f =
|
5656
|
+
const f = Ff[r.type] === "Polygon";
|
5657
5657
|
let _ = e.length;
|
5658
5658
|
for (; _ >= 2 && e[_ - 1].equals(e[_ - 2]); ) _--;
|
5659
5659
|
let x = 0;
|
@@ -5668,7 +5668,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5668
5668
|
$ && (B = $), C && (D = C), C = e[W], $ = R ? R.sub(C)._unit()._perp() : B, B = B || $;
|
5669
5669
|
let se = B.add($);
|
5670
5670
|
se.x === 0 && se.y === 0 || se._unit();
|
5671
|
-
const Y = B.x * $.x + B.y * $.y, ie = se.x * $.x + se.y * $.y, ue = ie !== 0 ? 1 / ie : 1 / 0, xe = 2 * Math.sqrt(2 - 2 * ie), De = ie <
|
5671
|
+
const Y = B.x * $.x + B.y * $.y, ie = se.x * $.x + se.y * $.y, ue = ie !== 0 ? 1 / ie : 1 / 0, xe = 2 * Math.sqrt(2 - 2 * ie), De = ie < Bf && D && R, We = B.x * $.y - B.y * $.x > 0;
|
5672
5672
|
if (De && W > x) {
|
5673
5673
|
const Ue = C.dist(D);
|
5674
5674
|
if (Ue > 2 * w) {
|
@@ -5739,7 +5739,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5739
5739
|
}, get layout() {
|
5740
5740
|
return Lu = Lu || new o({ "line-cap": new je(he.layout_line["line-cap"]), "line-join": new Xe(he.layout_line["line-join"]), "line-miter-limit": new je(he.layout_line["line-miter-limit"]), "line-round-limit": new je(he.layout_line["line-round-limit"]), "line-sort-key": new Xe(he.layout_line["line-sort-key"]) });
|
5741
5741
|
} };
|
5742
|
-
class
|
5742
|
+
class Of extends Xe {
|
5743
5743
|
possiblyEvaluate(e, r) {
|
5744
5744
|
return r = new Et(Math.floor(r.zoom), { now: r.now, fadeDuration: r.fadeDuration, zoomHistory: r.zoomHistory, transition: r.transition }), super.possiblyEvaluate(e, r);
|
5745
5745
|
}
|
@@ -5748,9 +5748,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5748
5748
|
}
|
5749
5749
|
}
|
5750
5750
|
let sc;
|
5751
|
-
class
|
5751
|
+
class Vf extends h {
|
5752
5752
|
constructor(e) {
|
5753
|
-
super(e, Fu), this.gradientVersion = 0, sc || (sc = new
|
5753
|
+
super(e, Fu), this.gradientVersion = 0, sc || (sc = new Of(Fu.paint.properties["line-width"].specification), sc.useIntegerZoom = !0);
|
5754
5754
|
}
|
5755
5755
|
_handleSpecialPaintPropertyUpdate(e) {
|
5756
5756
|
if (e === "line-gradient") {
|
@@ -5792,7 +5792,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5792
5792
|
if (I.length >= 3) {
|
5793
5793
|
for (let $ = 0; $ < B.length; $++) if (Eo(I, B[$])) return !0;
|
5794
5794
|
}
|
5795
|
-
if (
|
5795
|
+
if (Hp(I, B, D)) return !0;
|
5796
5796
|
}
|
5797
5797
|
return !1;
|
5798
5798
|
}(_, l, x);
|
@@ -5804,12 +5804,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5804
5804
|
function Bu(i, e) {
|
5805
5805
|
return e > 0 ? e + 2 * i : i;
|
5806
5806
|
}
|
5807
|
-
const
|
5807
|
+
const Nf = b([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), Uf = b([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
|
5808
5808
|
b([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
|
5809
|
-
const
|
5809
|
+
const jf = b([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }, { name: "a_box_real", components: 2, type: "Int16" }]);
|
5810
5810
|
b([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
|
5811
|
-
const Ou = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4),
|
5812
|
-
function
|
5811
|
+
const Ou = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), $f = b([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
|
5812
|
+
function qf(i, e, r) {
|
5813
5813
|
return i.sections.forEach((s) => {
|
5814
5814
|
s.text = function(l, d, p) {
|
5815
5815
|
const f = d.layout.get("text-transform").evaluate(p, {});
|
@@ -5840,7 +5840,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5840
5840
|
}
|
5841
5841
|
It.Varint = 0, It.Fixed64 = 1, It.Bytes = 2, It.Fixed32 = 5;
|
5842
5842
|
var ph = 4294967296, ju = 1 / ph, $u = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
|
5843
|
-
function
|
5843
|
+
function kn(i) {
|
5844
5844
|
return i.type === It.Bytes ? i.readVarint() + i.pos : i.pos + 1;
|
5845
5845
|
}
|
5846
5846
|
function Lo(i, e, r) {
|
@@ -5851,31 +5851,31 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5851
5851
|
r.realloc(s);
|
5852
5852
|
for (var l = r.pos - 1; l >= i; l--) r.buf[l + s] = r.buf[l];
|
5853
5853
|
}
|
5854
|
-
function
|
5854
|
+
function Zf(i, e) {
|
5855
5855
|
for (var r = 0; r < i.length; r++) e.writeVarint(i[r]);
|
5856
5856
|
}
|
5857
|
-
function
|
5857
|
+
function Gf(i, e) {
|
5858
5858
|
for (var r = 0; r < i.length; r++) e.writeSVarint(i[r]);
|
5859
5859
|
}
|
5860
|
-
function
|
5860
|
+
function Hf(i, e) {
|
5861
5861
|
for (var r = 0; r < i.length; r++) e.writeFloat(i[r]);
|
5862
5862
|
}
|
5863
|
-
function
|
5863
|
+
function Wf(i, e) {
|
5864
5864
|
for (var r = 0; r < i.length; r++) e.writeDouble(i[r]);
|
5865
5865
|
}
|
5866
|
-
function
|
5866
|
+
function Xf(i, e) {
|
5867
5867
|
for (var r = 0; r < i.length; r++) e.writeBoolean(i[r]);
|
5868
5868
|
}
|
5869
|
-
function
|
5869
|
+
function Jf(i, e) {
|
5870
5870
|
for (var r = 0; r < i.length; r++) e.writeFixed32(i[r]);
|
5871
5871
|
}
|
5872
|
-
function
|
5872
|
+
function Kf(i, e) {
|
5873
5873
|
for (var r = 0; r < i.length; r++) e.writeSFixed32(i[r]);
|
5874
5874
|
}
|
5875
|
-
function
|
5875
|
+
function Yf(i, e) {
|
5876
5876
|
for (var r = 0; r < i.length; r++) e.writeFixed64(i[r]);
|
5877
5877
|
}
|
5878
|
-
function
|
5878
|
+
function Qf(i, e) {
|
5879
5879
|
for (var r = 0; r < i.length; r++) e.writeSFixed64(i[r]);
|
5880
5880
|
}
|
5881
5881
|
function oc(i, e) {
|
@@ -5946,47 +5946,47 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5946
5946
|
return this.pos = i, e;
|
5947
5947
|
}, readPackedVarint: function(i, e) {
|
5948
5948
|
if (this.type !== It.Bytes) return i.push(this.readVarint(e));
|
5949
|
-
var r =
|
5949
|
+
var r = kn(this);
|
5950
5950
|
for (i = i || []; this.pos < r; ) i.push(this.readVarint(e));
|
5951
5951
|
return i;
|
5952
5952
|
}, readPackedSVarint: function(i) {
|
5953
5953
|
if (this.type !== It.Bytes) return i.push(this.readSVarint());
|
5954
|
-
var e =
|
5954
|
+
var e = kn(this);
|
5955
5955
|
for (i = i || []; this.pos < e; ) i.push(this.readSVarint());
|
5956
5956
|
return i;
|
5957
5957
|
}, readPackedBoolean: function(i) {
|
5958
5958
|
if (this.type !== It.Bytes) return i.push(this.readBoolean());
|
5959
|
-
var e =
|
5959
|
+
var e = kn(this);
|
5960
5960
|
for (i = i || []; this.pos < e; ) i.push(this.readBoolean());
|
5961
5961
|
return i;
|
5962
5962
|
}, readPackedFloat: function(i) {
|
5963
5963
|
if (this.type !== It.Bytes) return i.push(this.readFloat());
|
5964
|
-
var e =
|
5964
|
+
var e = kn(this);
|
5965
5965
|
for (i = i || []; this.pos < e; ) i.push(this.readFloat());
|
5966
5966
|
return i;
|
5967
5967
|
}, readPackedDouble: function(i) {
|
5968
5968
|
if (this.type !== It.Bytes) return i.push(this.readDouble());
|
5969
|
-
var e =
|
5969
|
+
var e = kn(this);
|
5970
5970
|
for (i = i || []; this.pos < e; ) i.push(this.readDouble());
|
5971
5971
|
return i;
|
5972
5972
|
}, readPackedFixed32: function(i) {
|
5973
5973
|
if (this.type !== It.Bytes) return i.push(this.readFixed32());
|
5974
|
-
var e =
|
5974
|
+
var e = kn(this);
|
5975
5975
|
for (i = i || []; this.pos < e; ) i.push(this.readFixed32());
|
5976
5976
|
return i;
|
5977
5977
|
}, readPackedSFixed32: function(i) {
|
5978
5978
|
if (this.type !== It.Bytes) return i.push(this.readSFixed32());
|
5979
|
-
var e =
|
5979
|
+
var e = kn(this);
|
5980
5980
|
for (i = i || []; this.pos < e; ) i.push(this.readSFixed32());
|
5981
5981
|
return i;
|
5982
5982
|
}, readPackedFixed64: function(i) {
|
5983
5983
|
if (this.type !== It.Bytes) return i.push(this.readFixed64());
|
5984
|
-
var e =
|
5984
|
+
var e = kn(this);
|
5985
5985
|
for (i = i || []; this.pos < e; ) i.push(this.readFixed64());
|
5986
5986
|
return i;
|
5987
5987
|
}, readPackedSFixed64: function(i) {
|
5988
5988
|
if (this.type !== It.Bytes) return i.push(this.readSFixed64());
|
5989
|
-
var e =
|
5989
|
+
var e = kn(this);
|
5990
5990
|
for (i = i || []; this.pos < e; ) i.push(this.readSFixed64());
|
5991
5991
|
return i;
|
5992
5992
|
}, skip: function(i) {
|
@@ -6070,23 +6070,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6070
6070
|
}, writeMessage: function(i, e, r) {
|
6071
6071
|
this.writeTag(i, It.Bytes), this.writeRawMessage(e, r);
|
6072
6072
|
}, writePackedVarint: function(i, e) {
|
6073
|
-
e.length && this.writeMessage(i, qf, e);
|
6074
|
-
}, writePackedSVarint: function(i, e) {
|
6075
6073
|
e.length && this.writeMessage(i, Zf, e);
|
6074
|
+
}, writePackedSVarint: function(i, e) {
|
6075
|
+
e.length && this.writeMessage(i, Gf, e);
|
6076
6076
|
}, writePackedBoolean: function(i, e) {
|
6077
|
-
e.length && this.writeMessage(i,
|
6077
|
+
e.length && this.writeMessage(i, Xf, e);
|
6078
6078
|
}, writePackedFloat: function(i, e) {
|
6079
|
-
e.length && this.writeMessage(i, Gf, e);
|
6080
|
-
}, writePackedDouble: function(i, e) {
|
6081
6079
|
e.length && this.writeMessage(i, Hf, e);
|
6080
|
+
}, writePackedDouble: function(i, e) {
|
6081
|
+
e.length && this.writeMessage(i, Wf, e);
|
6082
6082
|
}, writePackedFixed32: function(i, e) {
|
6083
|
-
e.length && this.writeMessage(i, Xf, e);
|
6084
|
-
}, writePackedSFixed32: function(i, e) {
|
6085
6083
|
e.length && this.writeMessage(i, Jf, e);
|
6086
|
-
},
|
6084
|
+
}, writePackedSFixed32: function(i, e) {
|
6087
6085
|
e.length && this.writeMessage(i, Kf, e);
|
6088
|
-
},
|
6086
|
+
}, writePackedFixed64: function(i, e) {
|
6089
6087
|
e.length && this.writeMessage(i, Yf, e);
|
6088
|
+
}, writePackedSFixed64: function(i, e) {
|
6089
|
+
e.length && this.writeMessage(i, Qf, e);
|
6090
6090
|
}, writeBytesField: function(i, e) {
|
6091
6091
|
this.writeTag(i, It.Bytes), this.writeBytes(e);
|
6092
6092
|
}, writeFixed32Field: function(i, e) {
|
@@ -6112,16 +6112,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6112
6112
|
} };
|
6113
6113
|
var fh = _e(Vu);
|
6114
6114
|
const mh = 3;
|
6115
|
-
function Qf(i, e, r) {
|
6116
|
-
i === 1 && r.readMessage(em, e);
|
6117
|
-
}
|
6118
6115
|
function em(i, e, r) {
|
6116
|
+
i === 1 && r.readMessage(tm, e);
|
6117
|
+
}
|
6118
|
+
function tm(i, e, r) {
|
6119
6119
|
if (i === 3) {
|
6120
|
-
const { id: s, bitmap: l, width: d, height: p, left: f, top: _, advance: x } = r.readMessage(
|
6120
|
+
const { id: s, bitmap: l, width: d, height: p, left: f, top: _, advance: x } = r.readMessage(im, {});
|
6121
6121
|
e.push({ id: s, bitmap: new Za({ width: d + 2 * mh, height: p + 2 * mh }, l), metrics: { width: d, height: p, left: f, top: _, advance: x } });
|
6122
6122
|
}
|
6123
6123
|
}
|
6124
|
-
function
|
6124
|
+
function im(i, e, r) {
|
6125
6125
|
i === 1 ? e.id = r.readVarint() : i === 2 ? e.bitmap = r.readBytes() : i === 3 ? e.width = r.readVarint() : i === 4 ? e.height = r.readVarint() : i === 5 ? e.left = r.readSVarint() : i === 6 ? e.top = r.readSVarint() : i === 7 && (e.advance = r.readVarint());
|
6126
6126
|
}
|
6127
6127
|
const Gu = mh;
|
@@ -6329,13 +6329,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6329
6329
|
on = _t.imageName, ue.iconsInText = ue.iconsInText || !0, No = ur.paddedRect;
|
6330
6330
|
const ci = ur.displaySize;
|
6331
6331
|
_t.scale = _t.scale * ni / Ne, Ht = { width: ci[0], height: ci[1], left: Gi, top: -Gu, advance: Ir ? ci[1] : ci[0] }, Yi = Ci + (ni - ci[1] * _t.scale), an = Ht.advance;
|
6332
|
-
const
|
6333
|
-
|
6332
|
+
const En = Ir ? ci[0] * _t.scale - ni * ai : ci[1] * _t.scale - ni * ai;
|
6333
|
+
En > 0 && En > wi && (wi = En);
|
6334
6334
|
} else {
|
6335
6335
|
const ur = De[_t.fontStack], ci = ur && ur[Bt];
|
6336
6336
|
if (ci && ci.rect) No = ci.rect, Ht = ci.metrics;
|
6337
6337
|
else {
|
6338
|
-
const
|
6338
|
+
const En = xe[_t.fontStack], nl = En && En[Bt];
|
6339
6339
|
if (!nl) continue;
|
6340
6340
|
Ht = nl.metrics;
|
6341
6341
|
}
|
@@ -6343,7 +6343,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6343
6343
|
}
|
6344
6344
|
Ir ? (ue.verticalizable = !0, Oi.push({ glyph: Bt, imageName: on, x: et, y: At + Yi, vertical: Ir, scale: _t.scale, fontStack: _t.fontStack, sectionIndex: Mt, metrics: Ht, rect: No }), et += an * _t.scale + fe) : (Oi.push({ glyph: Bt, imageName: on, x: et, y: At + Yi, vertical: Ir, scale: _t.scale, fontStack: _t.fontStack, sectionIndex: Mt, metrics: Ht, rect: No }), et += Ht.advance * _t.scale + fe);
|
6345
6345
|
}
|
6346
|
-
Oi.length !== 0 && (Pt = Math.max(et - fe, Pt),
|
6346
|
+
Oi.length !== 0 && (Pt = Math.max(et - fe, Pt), om(Oi, 0, Oi.length - 1, Tr, wi)), et = 0;
|
6347
6347
|
const hr = Ce * ai + wi;
|
6348
6348
|
bi.lineOffset = Math.max(wi, Ci), At += hr, oi = Math.max(hr, oi), ++vi;
|
6349
6349
|
}
|
@@ -6360,7 +6360,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6360
6360
|
return !0;
|
6361
6361
|
}(Y) && ie;
|
6362
6362
|
}
|
6363
|
-
const lc = { 9: !0, 10: !0, 11: !0, 12: !0, 13: !0, 32: !0 },
|
6363
|
+
const lc = { 9: !0, 10: !0, 11: !0, 12: !0, 13: !0, 32: !0 }, rm = { 10: !0, 32: !0, 38: !0, 41: !0, 43: !0, 45: !0, 47: !0, 173: !0, 183: !0, 8203: !0, 8208: !0, 8211: !0, 8231: !0 }, nm = { 40: !0 };
|
6364
6364
|
function Xu(i, e, r, s, l, d) {
|
6365
6365
|
if (e.imageName) {
|
6366
6366
|
const p = s[e.imageName];
|
@@ -6375,7 +6375,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6375
6375
|
const l = Math.pow(i - e, 2);
|
6376
6376
|
return s ? i < e ? l / 2 : 2 * l : l + Math.abs(r) * r;
|
6377
6377
|
}
|
6378
|
-
function
|
6378
|
+
function sm(i, e, r) {
|
6379
6379
|
let s = 0;
|
6380
6380
|
return i === 10 && (s -= 1e4), r && (s += 150), i !== 40 && i !== 65288 || (s += 50), e !== 41 && e !== 65289 || (s += 50), s;
|
6381
6381
|
}
|
@@ -6405,7 +6405,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6405
6405
|
const C = i.getSection(I), D = i.getCharCode(I);
|
6406
6406
|
if (lc[D] || (x += Xu(D, C, s, l, e, d)), I < i.length() - 1) {
|
6407
6407
|
const R = !((w = D) < 11904 || !(Me["Bopomofo Extended"](w) || Me.Bopomofo(w) || Me["CJK Compatibility Forms"](w) || Me["CJK Compatibility Ideographs"](w) || Me["CJK Compatibility"](w) || Me["CJK Radicals Supplement"](w) || Me["CJK Strokes"](w) || Me["CJK Symbols and Punctuation"](w) || Me["CJK Unified Ideographs Extension A"](w) || Me["CJK Unified Ideographs"](w) || Me["Enclosed CJK Letters and Months"](w) || Me["Halfwidth and Fullwidth Forms"](w) || Me.Hiragana(w) || Me["Ideographic Description Characters"](w) || Me["Kangxi Radicals"](w) || Me["Katakana Phonetic Extensions"](w) || Me.Katakana(w) || Me["Vertical Forms"](w) || Me["Yi Radicals"](w) || Me["Yi Syllables"](w)));
|
6408
|
-
(
|
6408
|
+
(rm[D] || R || C.imageName || I !== i.length() - 2 && nm[i.getCharCode(I + 1)]) && p.push(Ku(I + 1, x, f, p, sm(D, i.getCharCode(I + 1), R && _), !1));
|
6409
6409
|
}
|
6410
6410
|
}
|
6411
6411
|
var w;
|
@@ -6437,12 +6437,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6437
6437
|
}
|
6438
6438
|
return { horizontalAlign: e, verticalAlign: r };
|
6439
6439
|
}
|
6440
|
-
function
|
6440
|
+
function om(i, e, r, s, l) {
|
6441
6441
|
if (!s && !l) return;
|
6442
6442
|
const d = i[r], p = (i[r].x + d.metrics.advance * d.scale) * s;
|
6443
6443
|
for (let f = e; f <= r; f++) i[f].x -= p, i[f].y += l;
|
6444
6444
|
}
|
6445
|
-
function
|
6445
|
+
function am(i, e, r) {
|
6446
6446
|
const { horizontalAlign: s, verticalAlign: l } = yh(r), d = e[0] - i.displaySize[0] * s, p = e[1] - i.displaySize[1] * l;
|
6447
6447
|
return { image: i, top: p, bottom: p + i.displaySize[1], left: d, right: d + i.displaySize[0] };
|
6448
6448
|
}
|
@@ -6496,7 +6496,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6496
6496
|
const l = i.get(e);
|
6497
6497
|
return l ? s = l : i.get(r) && (s = "always"), s;
|
6498
6498
|
}
|
6499
|
-
const
|
6499
|
+
const lm = Qn.VectorTileFeature.types, cm = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
|
6500
6500
|
function cc(i, e, r, s, l, d, p, f, _, x, w, I, C) {
|
6501
6501
|
const D = f ? Math.min(ts, Math.round(f[0])) : 0, R = f ? Math.min(ts, Math.round(f[1])) : 0;
|
6502
6502
|
i.emplaceBack(e, r, Math.round(32 * s), Math.round(32 * l), d, p, (D << 1) + (_ ? 1 : 0), R, 16 * x, 16 * w, 256 * I, 256 * C);
|
@@ -6504,7 +6504,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6504
6504
|
function vh(i, e, r) {
|
6505
6505
|
i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r);
|
6506
6506
|
}
|
6507
|
-
function
|
6507
|
+
function hm(i) {
|
6508
6508
|
for (const e of i.sections) if (Ra(e.text)) return !0;
|
6509
6509
|
return !1;
|
6510
6510
|
}
|
@@ -6516,7 +6516,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6516
6516
|
return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
|
6517
6517
|
}
|
6518
6518
|
upload(e, r, s, l) {
|
6519
|
-
this.isEmpty() || (s && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray,
|
6519
|
+
this.isEmpty() || (s && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Nf.members), this.indexBuffer = e.createIndexBuffer(this.indexArray, r), this.dynamicLayoutVertexBuffer = e.createVertexBuffer(this.dynamicLayoutVertexArray, Uf.members, !0), this.opacityVertexBuffer = e.createVertexBuffer(this.opacityVertexArray, cm, !0), this.opacityVertexBuffer.itemSize = 1), (s || l) && this.programConfigurations.upload(e));
|
6520
6520
|
}
|
6521
6521
|
destroy() {
|
6522
6522
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.dynamicLayoutVertexBuffer.destroy(), this.opacityVertexBuffer.destroy());
|
@@ -6528,7 +6528,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6528
6528
|
this.layoutVertexArray = new e(), this.layoutAttributes = r, this.indexArray = new s(), this.segments = new ri(), this.collisionVertexArray = new yi();
|
6529
6529
|
}
|
6530
6530
|
upload(e) {
|
6531
|
-
this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray,
|
6531
|
+
this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, jf.members, !0);
|
6532
6532
|
}
|
6533
6533
|
destroy() {
|
6534
6534
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.segments.destroy(), this.collisionVertexBuffer.destroy());
|
@@ -6561,8 +6561,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6561
6561
|
if (!l._featureFilter.filter(B, ue, s)) continue;
|
6562
6562
|
let xe, De;
|
6563
6563
|
if (ie || (ue.geometry = Fs($)), x) {
|
6564
|
-
const Ee = l.getValueAndResolveTokens("text-field", ue, s, R), Ce = Ni.factory(Ee), Ue = this.hasRTLText = this.hasRTLText ||
|
6565
|
-
(!Ue || tn.getRTLTextPluginStatus() === "unavailable" || Ue && tn.isParsed()) && (xe =
|
6564
|
+
const Ee = l.getValueAndResolveTokens("text-field", ue, s, R), Ce = Ni.factory(Ee), Ue = this.hasRTLText = this.hasRTLText || hm(Ce);
|
6565
|
+
(!Ue || tn.getRTLTextPluginStatus() === "unavailable" || Ue && tn.isParsed()) && (xe = qf(Ce, l, ue));
|
6566
6566
|
}
|
6567
6567
|
if (w) {
|
6568
6568
|
const Ee = l.getValueAndResolveTokens("icon-image", ue, s, R);
|
@@ -6570,7 +6570,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6570
6570
|
}
|
6571
6571
|
if (!xe && !De) continue;
|
6572
6572
|
const We = this.sortFeaturesByKey ? I.evaluate(ue, {}, s) : void 0;
|
6573
|
-
if (this.features.push({ id: W, text: xe, icon: De, index: se, sourceLayerIndex: Y, geometry: ue.geometry, properties: $.properties, type:
|
6573
|
+
if (this.features.push({ id: W, text: xe, icon: De, index: se, sourceLayerIndex: Y, geometry: ue.geometry, properties: $.properties, type: lm[$.type], sortKey: We }), De && (C[De.name] = !0), xe) {
|
6574
6574
|
const Ee = p.evaluate(ue, {}, s).join(","), Ce = d.get("text-rotation-alignment") !== "viewport" && d.get("symbol-placement") !== "point";
|
6575
6575
|
this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(T.ai.vertical) >= 0;
|
6576
6576
|
for (const Ue of xe.sections) if (Ue.image) C[Ue.image.name] = !0;
|
@@ -6832,7 +6832,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6832
6832
|
if (s.value.kind === "constant" && s.value.value instanceof Ni) p(s.value.value.sections);
|
6833
6833
|
else if (s.value.kind === "source") {
|
6834
6834
|
const f = (x) => {
|
6835
|
-
d || (x instanceof
|
6835
|
+
d || (x instanceof gn && ei(x.value) === Mr ? p(x.value.sections) : x instanceof io ? p(x.sections) : x.eachChild(f));
|
6836
6836
|
}, _ = s.value;
|
6837
6837
|
_._styleExpression && f(_._styleExpression.expression);
|
6838
6838
|
}
|
@@ -6840,24 +6840,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6840
6840
|
}
|
6841
6841
|
}
|
6842
6842
|
let sd;
|
6843
|
-
var
|
6843
|
+
var um = { get paint() {
|
6844
6844
|
return sd = sd || new o({ "background-color": new je(he.paint_background["background-color"]), "background-pattern": new t(he.paint_background["background-pattern"]), "background-opacity": new je(he.paint_background["background-opacity"]) });
|
6845
6845
|
} };
|
6846
|
-
class
|
6846
|
+
class dm extends h {
|
6847
6847
|
constructor(e) {
|
6848
|
-
super(e,
|
6848
|
+
super(e, um);
|
6849
6849
|
}
|
6850
6850
|
}
|
6851
6851
|
let od;
|
6852
|
-
var
|
6852
|
+
var pm = { get paint() {
|
6853
6853
|
return od = od || new o({ "raster-opacity": new je(he.paint_raster["raster-opacity"]), "raster-hue-rotate": new je(he.paint_raster["raster-hue-rotate"]), "raster-brightness-min": new je(he.paint_raster["raster-brightness-min"]), "raster-brightness-max": new je(he.paint_raster["raster-brightness-max"]), "raster-saturation": new je(he.paint_raster["raster-saturation"]), "raster-contrast": new je(he.paint_raster["raster-contrast"]), "raster-resampling": new je(he.paint_raster["raster-resampling"]), "raster-fade-duration": new je(he.paint_raster["raster-fade-duration"]) });
|
6854
6854
|
} };
|
6855
|
-
class
|
6855
|
+
class fm extends h {
|
6856
6856
|
constructor(e) {
|
6857
|
-
super(e,
|
6857
|
+
super(e, pm);
|
6858
6858
|
}
|
6859
6859
|
}
|
6860
|
-
class
|
6860
|
+
class mm extends h {
|
6861
6861
|
constructor(e) {
|
6862
6862
|
super(e, {}), this.onAdd = (r) => {
|
6863
6863
|
this.implementation.onAdd && this.implementation.onAdd(r, r.painter.context.gl);
|
@@ -6882,7 +6882,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6882
6882
|
throw new Error("Custom layers cannot be serialized");
|
6883
6883
|
}
|
6884
6884
|
}
|
6885
|
-
class
|
6885
|
+
class gm {
|
6886
6886
|
constructor(e) {
|
6887
6887
|
this._methodToThrottle = e, this._triggered = !1, typeof MessageChannel < "u" && (this._channel = new MessageChannel(), this._channel.port2.onmessage = () => {
|
6888
6888
|
this._triggered = !1, this._methodToThrottle();
|
@@ -7179,11 +7179,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7179
7179
|
if (ie.length > 2) {
|
7180
7180
|
for (const Ce of Ee) if (Eo(ie, Ce)) return !0;
|
7181
7181
|
}
|
7182
|
-
for (let Ce = 0; Ce < ie.length - 1; Ce++) if (
|
7182
|
+
for (let Ce = 0; Ce < ie.length - 1; Ce++) if (Xp(ie[Ce], ie[Ce + 1], Ee)) return !0;
|
7183
7183
|
return !1;
|
7184
7184
|
}(e.cameraQueryGeometry, $ - x, W - x, se + x, Y + x));
|
7185
7185
|
for (const $ of D) I.push($);
|
7186
|
-
I.sort(
|
7186
|
+
I.sort(_m);
|
7187
7187
|
const R = {};
|
7188
7188
|
let B;
|
7189
7189
|
for (let $ = 0; $ < I.length; $++) {
|
@@ -7252,7 +7252,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7252
7252
|
for (const d of i) e = Math.min(e, d.x), r = Math.min(r, d.y), s = Math.max(s, d.x), l = Math.max(l, d.y);
|
7253
7253
|
return { minX: e, minY: r, maxX: s, maxY: l };
|
7254
7254
|
}
|
7255
|
-
function
|
7255
|
+
function _m(i, e) {
|
7256
7256
|
return e - i;
|
7257
7257
|
}
|
7258
7258
|
function vd(i, e, r, s, l) {
|
@@ -7307,7 +7307,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7307
7307
|
function Td(i, e) {
|
7308
7308
|
return Math.max(i ? i.right - i.left : 0, e ? e.right - e.left : 0);
|
7309
7309
|
}
|
7310
|
-
function
|
7310
|
+
function ym(i, e, r, s, l, d) {
|
7311
7311
|
const p = Sd(r, l, d), f = Td(r, s) * d;
|
7312
7312
|
let _ = 0;
|
7313
7313
|
const x = wd(i) / 2;
|
@@ -7320,7 +7320,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7320
7320
|
_ += D;
|
7321
7321
|
}
|
7322
7322
|
}
|
7323
|
-
function
|
7323
|
+
function xm(i, e, r, s, l, d, p, f, _) {
|
7324
7324
|
const x = Sd(s, d, p), w = Td(s, l), I = w * p, C = i[0].x === 0 || i[0].x === _ || i[0].y === 0 || i[0].y === _;
|
7325
7325
|
return e - I < e / 4 && (e = I + e / 4), Id(i, C ? e / 2 * f % e : (w / 2 + 2 * d) * p * f % e, e, x, r, I, C, !1, _);
|
7326
7326
|
}
|
@@ -7411,7 +7411,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7411
7411
|
this.boxEndIndex = e.length;
|
7412
7412
|
}
|
7413
7413
|
}
|
7414
|
-
class
|
7414
|
+
class vm {
|
7415
7415
|
constructor(e = [], r = (s, l) => s < l ? -1 : s > l ? 1 : 0) {
|
7416
7416
|
if (this.data = e, this.length = this.data.length, this.compare = r, this.length > 0) for (let s = (this.length >> 1) - 1; s >= 0; s--) this._down(s);
|
7417
7417
|
}
|
@@ -7446,7 +7446,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7446
7446
|
r[e] = d;
|
7447
7447
|
}
|
7448
7448
|
}
|
7449
|
-
function
|
7449
|
+
function bm(i, e = 1, r = !1) {
|
7450
7450
|
let s = 1 / 0, l = 1 / 0, d = -1 / 0, p = -1 / 0;
|
7451
7451
|
const f = i[0];
|
7452
7452
|
for (let D = 0; D < f.length; D++) {
|
@@ -7455,7 +7455,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7455
7455
|
}
|
7456
7456
|
const _ = Math.min(d - s, p - l);
|
7457
7457
|
let x = _ / 2;
|
7458
|
-
const w = new
|
7458
|
+
const w = new vm([], wm);
|
7459
7459
|
if (_ === 0) return new ae(s, l);
|
7460
7460
|
for (let D = s; D < d; D += _) for (let R = l; R < p; R += _) w.push(new Vo(D + x, R + x, x, i));
|
7461
7461
|
let I = function(D) {
|
@@ -7473,7 +7473,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7473
7473
|
}
|
7474
7474
|
return r && (console.log(`num probes: ${C}`), console.log(`best distance: ${I.d}`)), I.p;
|
7475
7475
|
}
|
7476
|
-
function
|
7476
|
+
function wm(i, e) {
|
7477
7477
|
return e.max - i.max;
|
7478
7478
|
}
|
7479
7479
|
function Vo(i, e, r, s) {
|
@@ -7589,7 +7589,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7589
7589
|
}
|
7590
7590
|
return "center";
|
7591
7591
|
}
|
7592
|
-
function
|
7592
|
+
function Sm(i, e, r, s, l, d, p, f, _, x, w) {
|
7593
7593
|
let I = d.textMaxSize.evaluate(e, {});
|
7594
7594
|
I === void 0 && (I = p);
|
7595
7595
|
const C = i.layers[0].layout, D = C.get("icon-offset").evaluate(e, {}, w), R = Md(r.horizontal), B = p / 24, $ = i.tilePixelRatio * B, W = i.tilePixelRatio * I / 24, se = i.tilePixelRatio * f, Y = i.tilePixelRatio * C.get("symbol-spacing"), ie = C.get("text-padding") * i.tilePixelRatio, ue = function(fe, $e, Ne, et = 1) {
|
@@ -7601,8 +7601,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7601
7601
|
const Re = (fe, $e) => {
|
7602
7602
|
$e.x < 0 || $e.x >= ti || $e.y < 0 || $e.y >= ti || function(Ne, et, At, Pt, oi, Tr, vi, Xt, Ri, Fi, Bi, Jt, ai, Ci, bi, Oi, wi, hr, Hi, _t, Mt, Bt, Yi, Ht, No) {
|
7603
7603
|
const on = Ne.addToLineVertexArray(et, At);
|
7604
|
-
let an, Ir, ur, ci,
|
7605
|
-
const
|
7604
|
+
let an, Ir, ur, ci, En = 0, nl = 0, Rd = 0, Fd = 0, Fh = -1, Bh = -1;
|
7605
|
+
const Mn = {};
|
7606
7606
|
let Bd = Co("");
|
7607
7607
|
if (Ne.allowVerticalPlacement && Pt.vertical) {
|
7608
7608
|
const ki = Xt.layout.get("text-rotate").evaluate(Mt, {}, Ht) + 90;
|
@@ -7610,7 +7610,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7610
7610
|
}
|
7611
7611
|
if (oi) {
|
7612
7612
|
const ki = Xt.layout.get("icon-rotate").evaluate(Mt, {}), dr = Xt.layout.get("icon-text-fit") !== "none", Vs = Pd(oi, ki, Yi, dr), Or = vi ? Pd(vi, ki, Yi, dr) : void 0;
|
7613
|
-
Ir = new mc(Ri, et, Fi, Bi, Jt, oi, wi, hr, !1, ki),
|
7613
|
+
Ir = new mc(Ri, et, Fi, Bi, Jt, oi, wi, hr, !1, ki), En = 4 * Vs.length;
|
7614
7614
|
const Ns = Ne.iconSizeData;
|
7615
7615
|
let ln = null;
|
7616
7616
|
Ns.kind === "source" ? (ln = [sn * Xt.layout.get("icon-size").evaluate(Mt, {})], ln[0] > ts && hi(`${Ne.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)) : Ns.kind === "composite" && (ln = [sn * Bt.compositeIconSizes[0].evaluate(Mt, {}, Ht), sn * Bt.compositeIconSizes[1].evaluate(Mt, {}, Ht)], (ln[0] > ts || ln[1] > ts) && hi(`${Ne.layerIds[0]}: Value for "icon-size" is >= ${el}. Reduce your "icon-size".`)), Ne.addSymbols(Ne.icon, Vs, ln, _t, Hi, Mt, T.ai.none, et, on.lineStartIndex, on.lineLength, -1, Ht), Fh = Ne.icon.placedSymbolArray.length - 1, Or && (nl = 4 * Or.length, Ne.addSymbols(Ne.icon, Or, ln, _t, Hi, Mt, T.ai.vertical, et, on.lineStartIndex, on.lineLength, -1, Ht), Bh = Ne.icon.placedSymbolArray.length - 1);
|
@@ -7624,37 +7624,37 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7624
7624
|
an = new mc(Ri, et, Fi, Bi, Jt, dr, ai, Ci, bi, Or);
|
7625
7625
|
}
|
7626
7626
|
const Vs = dr.positionedLines.length === 1;
|
7627
|
-
if (Rd += Ed(Ne, et, dr, Tr, Xt, bi, Mt, Oi, on, Pt.vertical ? T.ai.horizontal : T.ai.horizontalOnly, Vs ? Od : [ki],
|
7627
|
+
if (Rd += Ed(Ne, et, dr, Tr, Xt, bi, Mt, Oi, on, Pt.vertical ? T.ai.horizontal : T.ai.horizontalOnly, Vs ? Od : [ki], Mn, Fh, Bt, Ht), Vs) break;
|
7628
7628
|
}
|
7629
|
-
Pt.vertical && (Fd += Ed(Ne, et, Pt.vertical, Tr, Xt, bi, Mt, Oi, on, T.ai.vertical, ["vertical"],
|
7630
|
-
const
|
7629
|
+
Pt.vertical && (Fd += Ed(Ne, et, Pt.vertical, Tr, Xt, bi, Mt, Oi, on, T.ai.vertical, ["vertical"], Mn, Bh, Bt, Ht));
|
7630
|
+
const Pm = an ? an.boxStartIndex : Ne.collisionBoxArray.length, Am = an ? an.boxEndIndex : Ne.collisionBoxArray.length, Cm = ur ? ur.boxStartIndex : Ne.collisionBoxArray.length, km = ur ? ur.boxEndIndex : Ne.collisionBoxArray.length, Em = Ir ? Ir.boxStartIndex : Ne.collisionBoxArray.length, Mm = Ir ? Ir.boxEndIndex : Ne.collisionBoxArray.length, zm = ci ? ci.boxStartIndex : Ne.collisionBoxArray.length, Dm = ci ? ci.boxEndIndex : Ne.collisionBoxArray.length;
|
7631
7631
|
let Br = -1;
|
7632
7632
|
const _c = (ki, dr) => ki && ki.circleDiameter ? Math.max(ki.circleDiameter, dr) : dr;
|
7633
7633
|
Br = _c(an, Br), Br = _c(ur, Br), Br = _c(Ir, Br), Br = _c(ci, Br);
|
7634
7634
|
const Vd = Br > -1 ? 1 : 0;
|
7635
7635
|
Vd && (Br *= No / ni), Ne.glyphOffsetArray.length >= Bo.MAX_GLYPHS && hi("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Mt.sortKey !== void 0 && Ne.addToSortKeyRanges(Ne.symbolInstances.length, Mt.sortKey);
|
7636
|
-
const
|
7636
|
+
const Lm = kd(Xt, Mt, Ht), [Rm, Fm] = function(ki, dr) {
|
7637
7637
|
const Vs = ki.length, Or = dr == null ? void 0 : dr.values;
|
7638
7638
|
if ((Or == null ? void 0 : Or.length) > 0) for (let Ns = 0; Ns < Or.length; Ns += 2) {
|
7639
7639
|
const ln = Or[Ns + 1];
|
7640
7640
|
ki.emplaceBack(T.ar[Or[Ns]], ln[0], ln[1]);
|
7641
7641
|
}
|
7642
7642
|
return [Vs, ki.length];
|
7643
|
-
}(Ne.textAnchorOffsets,
|
7644
|
-
Ne.symbolInstances.emplaceBack(et.x, et.y,
|
7643
|
+
}(Ne.textAnchorOffsets, Lm);
|
7644
|
+
Ne.symbolInstances.emplaceBack(et.x, et.y, Mn.right >= 0 ? Mn.right : -1, Mn.center >= 0 ? Mn.center : -1, Mn.left >= 0 ? Mn.left : -1, Mn.vertical || -1, Fh, Bh, Bd, Pm, Am, Cm, km, Em, Mm, zm, Dm, Fi, Rd, Fd, En, nl, Vd, 0, ai, Br, Rm, Fm);
|
7645
7645
|
}(i, $e, fe, r, s, l, Be, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, $, [ie, ie, ie, ie], De, _, se, ue, We, D, e, d, x, w, p);
|
7646
7646
|
};
|
7647
7647
|
if (Ee === "line") for (const fe of vd(e.geometry, 0, 0, ti, ti)) {
|
7648
|
-
const $e =
|
7649
|
-
for (const Ne of $e) R &&
|
7648
|
+
const $e = xm(fe, Y, xe, r.vertical || R, s, 24, W, i.overscaling, ti);
|
7649
|
+
for (const Ne of $e) R && Tm(i, R.text, Ce, Ne) || Re(fe, Ne);
|
7650
7650
|
}
|
7651
7651
|
else if (Ee === "line-center") {
|
7652
7652
|
for (const fe of e.geometry) if (fe.length > 1) {
|
7653
|
-
const $e =
|
7653
|
+
const $e = ym(fe, xe, r.vertical || R, s, 24, W);
|
7654
7654
|
$e && Re(fe, $e);
|
7655
7655
|
}
|
7656
7656
|
} else if (e.type === "Polygon") for (const fe of no(e.geometry, 0)) {
|
7657
|
-
const $e =
|
7657
|
+
const $e = bm(fe, 16);
|
7658
7658
|
Re(fe[0], new rs($e.x, $e.y, 0));
|
7659
7659
|
}
|
7660
7660
|
else if (e.type === "LineString") for (const fe of e.geometry) Re(fe, new rs(fe[0].x, fe[0].y, 0));
|
@@ -7698,7 +7698,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7698
7698
|
for (const e in i) return i[e];
|
7699
7699
|
return null;
|
7700
7700
|
}
|
7701
|
-
function
|
7701
|
+
function Tm(i, e, r, s) {
|
7702
7702
|
const l = i.compareText;
|
7703
7703
|
if (e in l) {
|
7704
7704
|
const d = l[e];
|
@@ -7801,7 +7801,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7801
7801
|
var zh;
|
7802
7802
|
T.bf = void 0, (zh = T.bf || (T.bf = {})).create = "create", zh.load = "load", zh.fullLoad = "fullLoad";
|
7803
7803
|
let gc = null, rl = [];
|
7804
|
-
const Dh = 1e3 / 60, Lh = "loadTime", Rh = "fullLoadTime",
|
7804
|
+
const Dh = 1e3 / 60, Lh = "loadTime", Rh = "fullLoadTime", Im = { mark(i) {
|
7805
7805
|
performance.mark(i);
|
7806
7806
|
}, frame(i) {
|
7807
7807
|
const e = i;
|
@@ -7823,7 +7823,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7823
7823
|
return zn;
|
7824
7824
|
}, T.D = je, T.E = Rn, T.F = class {
|
7825
7825
|
constructor(i, e) {
|
7826
|
-
this.target = i, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new
|
7826
|
+
this.target = i, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new gm(() => this.process()), this.subscription = function(r, s, l, d) {
|
7827
7827
|
return r.addEventListener(s, l, !1), { unsubscribe: () => {
|
7828
7828
|
r.removeEventListener(s, l, !1);
|
7829
7829
|
} };
|
@@ -7903,7 +7903,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7903
7903
|
l in i && (r[l] = i[l]);
|
7904
7904
|
}
|
7905
7905
|
return r;
|
7906
|
-
}, T.N = is, T.O = cd, T.P = ae, T.Q = hd, T.R = lr, T.S = cr, T.T = Hn, T.U = ft, T.V = Ot, T.W =
|
7906
|
+
}, T.N = is, T.O = cd, T.P = ae, T.Q = hd, T.R = lr, T.S = cr, T.T = Hn, T.U = ft, T.V = Ot, T.W = dn, T.X = ti, T.Y = b, T.Z = uc, T._ = c, T.a = qr, T.a$ = function(i, e) {
|
7907
7907
|
var r = i[0], s = i[1], l = i[2], d = i[3], p = i[4], f = i[5], _ = i[6], x = i[7], w = i[8], I = i[9], C = i[10], D = i[11], R = i[12], B = i[13], $ = i[14], W = i[15], se = e[0], Y = e[1], ie = e[2], ue = e[3], xe = e[4], De = e[5], We = e[6], Ee = e[7], Ce = e[8], Ue = e[9], Be = e[10], Re = e[11], fe = e[12], $e = e[13], Ne = e[14], et = e[15];
|
7908
7908
|
return Math.abs(r - se) <= Li * Math.max(1, Math.abs(r), Math.abs(se)) && Math.abs(s - Y) <= Li * Math.max(1, Math.abs(s), Math.abs(Y)) && Math.abs(l - ie) <= Li * Math.max(1, Math.abs(l), Math.abs(ie)) && Math.abs(d - ue) <= Li * Math.max(1, Math.abs(d), Math.abs(ue)) && Math.abs(p - xe) <= Li * Math.max(1, Math.abs(p), Math.abs(xe)) && Math.abs(f - De) <= Li * Math.max(1, Math.abs(f), Math.abs(De)) && Math.abs(_ - We) <= Li * Math.max(1, Math.abs(_), Math.abs(We)) && Math.abs(x - Ee) <= Li * Math.max(1, Math.abs(x), Math.abs(Ee)) && Math.abs(w - Ce) <= Li * Math.max(1, Math.abs(w), Math.abs(Ce)) && Math.abs(I - Ue) <= Li * Math.max(1, Math.abs(I), Math.abs(Ue)) && Math.abs(C - Be) <= Li * Math.max(1, Math.abs(C), Math.abs(Be)) && Math.abs(D - Re) <= Li * Math.max(1, Math.abs(D), Math.abs(Re)) && Math.abs(R - fe) <= Li * Math.max(1, Math.abs(R), Math.abs(fe)) && Math.abs(B - $e) <= Li * Math.max(1, Math.abs(B), Math.abs($e)) && Math.abs($ - Ne) <= Li * Math.max(1, Math.abs($), Math.abs(Ne)) && Math.abs(W - et) <= Li * Math.max(1, Math.abs(W), Math.abs(et));
|
7909
7909
|
}, T.a0 = ri, T.a1 = Ph, T.a2 = Te, T.a3 = (i) => {
|
@@ -7914,7 +7914,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7914
7914
|
};
|
7915
7915
|
for (const s of i) {
|
7916
7916
|
const l = window.document.createElement("source");
|
7917
|
-
|
7917
|
+
fn(s) || (e.crossOrigin = "Anonymous"), l.src = s, e.appendChild(l);
|
7918
7918
|
}
|
7919
7919
|
});
|
7920
7920
|
}, T.a4 = function() {
|
@@ -7926,24 +7926,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7926
7926
|
for (let r = 0; r < i.length; r++) "ref" in i[r] && (i[r] = as(i[r], e[i[r].ref]));
|
7927
7927
|
return i;
|
7928
7928
|
}, T.aB = function(i) {
|
7929
|
-
if (i.type === "custom") return new
|
7929
|
+
if (i.type === "custom") return new mm(i);
|
7930
7930
|
switch (i.type) {
|
7931
7931
|
case "background":
|
7932
|
-
return new
|
7932
|
+
return new dm(i);
|
7933
7933
|
case "circle":
|
7934
|
-
return new
|
7934
|
+
return new Yp(i);
|
7935
7935
|
case "fill":
|
7936
|
-
return new
|
7936
|
+
return new gf(i);
|
7937
7937
|
case "fill-extrusion":
|
7938
|
-
return new
|
7938
|
+
return new Mf(i);
|
7939
7939
|
case "heatmap":
|
7940
|
-
return new
|
7940
|
+
return new ef(i);
|
7941
7941
|
case "hillshade":
|
7942
|
-
return new
|
7942
|
+
return new rf(i);
|
7943
7943
|
case "line":
|
7944
|
-
return new
|
7944
|
+
return new Vf(i);
|
7945
7945
|
case "raster":
|
7946
|
-
return new
|
7946
|
+
return new fm(i);
|
7947
7947
|
case "symbol":
|
7948
7948
|
return new hc(i);
|
7949
7949
|
}
|
@@ -8001,7 +8001,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8001
8001
|
}
|
8002
8002
|
}, T.aJ = Kl, T.aK = class extends Ls {
|
8003
8003
|
constructor(i, e) {
|
8004
|
-
super(i, e), this.current =
|
8004
|
+
super(i, e), this.current = qp;
|
8005
8005
|
}
|
8006
8006
|
set(i) {
|
8007
8007
|
if (i[12] !== this.current[12] || i[0] !== this.current[0]) return this.current = i, void this.gl.uniformMatrix4fv(this.location, !1, i);
|
@@ -8027,11 +8027,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8027
8027
|
}, T.aQ = function(i, e, r, s, l, d, p) {
|
8028
8028
|
var f = 1 / (e - r), _ = 1 / (s - l), x = 1 / (d - p);
|
8029
8029
|
return i[0] = -2 * f, i[1] = 0, i[2] = 0, i[3] = 0, i[4] = 0, i[5] = -2 * _, i[6] = 0, i[7] = 0, i[8] = 0, i[9] = 0, i[10] = 2 * x, i[11] = 0, i[12] = (e + r) * f, i[13] = (l + s) * _, i[14] = (p + d) * x, i[15] = 1, i;
|
8030
|
-
}, T.aR =
|
8031
|
-
}, T.aT =
|
8030
|
+
}, T.aR = Kp, T.aS = class extends me {
|
8031
|
+
}, T.aT = $f, T.aU = class extends ze {
|
8032
8032
|
}, T.aV = function(i) {
|
8033
8033
|
return i <= 1 ? 1 : Math.pow(2, Math.ceil(Math.log(i) / Math.LN2));
|
8034
|
-
}, T.aW = xu, T.aX =
|
8034
|
+
}, T.aW = xu, T.aX = Pn, T.aY = si, T.aZ = class extends ke {
|
8035
8035
|
}, T.a_ = function(i, e) {
|
8036
8036
|
return i[0] === e[0] && i[1] === e[1] && i[2] === e[2] && i[3] === e[3] && i[4] === e[4] && i[5] === e[5] && i[6] === e[6] && i[7] === e[7] && i[8] === e[8] && i[9] === e[9] && i[10] === e[10] && i[11] === e[11] && i[12] === e[12] && i[13] === e[13] && i[14] === e[14] && i[15] === e[15];
|
8037
8037
|
}, T.aa = gd, T.ab = function(i) {
|
@@ -8100,12 +8100,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8100
8100
|
return e !== i && (i[0] = e[0], i[1] = e[1], i[2] = e[2], i[3] = e[3], i[12] = e[12], i[13] = e[13], i[14] = e[14], i[15] = e[15]), i[4] = d * l + x * s, i[5] = p * l + w * s, i[6] = f * l + I * s, i[7] = _ * l + C * s, i[8] = x * l - d * s, i[9] = w * l - p * s, i[10] = I * l - f * s, i[11] = C * l - _ * s, i;
|
8101
8101
|
}, T.b8 = Ge, T.b9 = Je, T.bA = function(i) {
|
8102
8102
|
return i.message === er;
|
8103
|
-
}, T.bB =
|
8103
|
+
}, T.bB = Sn, T.bC = tn, T.ba = function(i) {
|
8104
8104
|
return i * Math.PI / 180;
|
8105
8105
|
}, T.bb = function(i, e) {
|
8106
8106
|
return i[0] = e[0], i[1] = 0, i[2] = 0, i[3] = 0, i[4] = 0, i[5] = e[1], i[6] = 0, i[7] = 0, i[8] = 0, i[9] = 0, i[10] = e[2], i[11] = 0, i[12] = 0, i[13] = 0, i[14] = 0, i[15] = 1, i;
|
8107
8107
|
}, T.bc = class extends L {
|
8108
|
-
}, T.bd = Th, T.be =
|
8108
|
+
}, T.bd = Th, T.be = Im, T.bg = Vi, T.bh = function(i, e) {
|
8109
8109
|
qr.REGISTERED_PROTOCOLS[i] = e;
|
8110
8110
|
}, T.bi = function(i) {
|
8111
8111
|
delete qr.REGISTERED_PROTOCOLS[i];
|
@@ -8165,10 +8165,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8165
8165
|
let se = !1;
|
8166
8166
|
if (x.icon && x.icon.name) {
|
8167
8167
|
const ie = i.imageMap[x.icon.name];
|
8168
|
-
ie && ($ =
|
8168
|
+
ie && ($ = am(i.imagePositions[x.icon.name], r.get("icon-offset").evaluate(x, {}, i.canonical), r.get("icon-anchor").evaluate(x, {}, i.canonical)), se = !!ie.sdf, i.bucket.sdfIcons === void 0 ? i.bucket.sdfIcons = se : i.bucket.sdfIcons !== se && hi("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (ie.pixelRatio !== i.bucket.pixelRatio || r.get("icon-rotate").constantOr(1) !== 0) && (i.bucket.iconsNeedLinear = !0));
|
8169
8169
|
}
|
8170
8170
|
const Y = Md(R.horizontal) || R.vertical;
|
8171
|
-
i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || $) &&
|
8171
|
+
i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || $) && Sm(i.bucket, x, R, $, i.imageMap, l, C, D, W, se, i.canonical);
|
8172
8172
|
}
|
8173
8173
|
i.showCollisionBoxes && i.bucket.generateCollisionDebugBuffers();
|
8174
8174
|
}, T.bp = dh, T.bq = ch, T.br = uh, T.bs = Qn, T.bt = fh, T.bu = class {
|
@@ -8183,7 +8183,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8183
8183
|
}, T.bv = function(i, e, r, s, l) {
|
8184
8184
|
return c(this, void 0, void 0, function* () {
|
8185
8185
|
if (Ot()) try {
|
8186
|
-
return yield
|
8186
|
+
return yield dn(i, e, r, s, l);
|
8187
8187
|
} catch {
|
8188
8188
|
}
|
8189
8189
|
return function(d, p, f, _, x) {
|
@@ -8210,9 +8210,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8210
8210
|
}, s.onerror = () => r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
|
8211
8211
|
const l = new Blob([new Uint8Array(i)], { type: "image/png" });
|
8212
8212
|
s.src = i.byteLength ? URL.createObjectURL(l) : Gs;
|
8213
|
-
}), T.g = mr, T.h = (i, e) =>
|
8214
|
-
return new fh(i).readFields(
|
8215
|
-
}, T.o = Za, T.p = Hu, T.q = o, T.r = Gc, T.s =
|
8213
|
+
}), T.g = mr, T.h = (i, e) => pn(jt(i, { type: "json" }), e), T.i = Ar, T.j = Gr, T.k = Zr, T.l = (i, e) => pn(jt(i, { type: "arrayBuffer" }), e), T.m = pn, T.n = function(i) {
|
8214
|
+
return new fh(i).readFields(em, []);
|
8215
|
+
}, T.o = Za, T.p = Hu, T.q = o, T.r = Gc, T.s = fn, T.t = Ma, T.u = Me, T.v = he, T.w = hi, T.x = Rr, T.y = function([i, e, r]) {
|
8216
8216
|
return e += 90, e *= Math.PI / 180, r *= Math.PI / 180, { x: i * Math.cos(e) * Math.sin(r), y: i * Math.sin(e) * Math.sin(r), z: i * Math.cos(r) };
|
8217
8217
|
}, T.z = $i;
|
8218
8218
|
}), N("worker", ["./shared"], function(T) {
|
@@ -8527,7 +8527,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8527
8527
|
return Si({ layers: M });
|
8528
8528
|
}, ft.exports.GeoJSONWrapper = jr;
|
8529
8529
|
var fr = T.bx(ft.exports);
|
8530
|
-
const Gs = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (G) => G },
|
8530
|
+
const Gs = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: (G) => G }, dn = Math.fround || (Cr = new Float32Array(1), (G) => (Cr[0] = +G, Cr[0]));
|
8531
8531
|
var Cr;
|
8532
8532
|
const Ei = 3, er = 5, Dn = 6;
|
8533
8533
|
class qr {
|
@@ -8543,7 +8543,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8543
8543
|
for (let J = 0; J < z.length; J++) {
|
8544
8544
|
const de = z[J];
|
8545
8545
|
if (!de.geometry) continue;
|
8546
|
-
const [ge, ce] = de.geometry.coordinates, Ie =
|
8546
|
+
const [ge, ce] = de.geometry.coordinates, Ie = dn(Vi(ge)), Ze = dn(tr(ce));
|
8547
8547
|
te.push(Ie, Ze, 1 / 0, J, -1, 1), this.options.reduce && te.push(0);
|
8548
8548
|
}
|
8549
8549
|
let re = this.trees[q + 1] = this._createTree(te);
|
@@ -8684,7 +8684,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8684
8684
|
}
|
8685
8685
|
}
|
8686
8686
|
function mr(G, z, M) {
|
8687
|
-
return { type: "Feature", id: G[z + Ei], properties: Ln(G, z, M), geometry: { type: "Point", coordinates: [(O = G[z], 360 * (O - 0.5)),
|
8687
|
+
return { type: "Feature", id: G[z + Ei], properties: Ln(G, z, M), geometry: { type: "Point", coordinates: [(O = G[z], 360 * (O - 0.5)), pn(G[z + 1])] } };
|
8688
8688
|
var O;
|
8689
8689
|
}
|
8690
8690
|
function Ln(G, z, M) {
|
@@ -8698,11 +8698,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8698
8698
|
const z = Math.sin(G * Math.PI / 180), M = 0.5 - 0.25 * Math.log((1 + z) / (1 - z)) / Math.PI;
|
8699
8699
|
return M < 0 ? 0 : M > 1 ? 1 : M;
|
8700
8700
|
}
|
8701
|
-
function
|
8701
|
+
function pn(G) {
|
8702
8702
|
const z = (180 - 360 * G) * Math.PI / 180;
|
8703
8703
|
return 360 * Math.atan(Math.exp(z)) / Math.PI - 90;
|
8704
8704
|
}
|
8705
|
-
function
|
8705
|
+
function fn(G, z, M, O) {
|
8706
8706
|
let q = O;
|
8707
8707
|
const Q = z + (M - z >> 1);
|
8708
8708
|
let te, re = M - z;
|
@@ -8715,7 +8715,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8715
8715
|
He < re && (te = Ie, re = He);
|
8716
8716
|
}
|
8717
8717
|
}
|
8718
|
-
q > O && (te - z > 3 &&
|
8718
|
+
q > O && (te - z > 3 && fn(G, z, te, O), G[te + 2] = q, M - te > 3 && fn(G, te, M, O));
|
8719
8719
|
}
|
8720
8720
|
function os(G, z, M, O, q, Q) {
|
8721
8721
|
let te = q - M, re = Q - O;
|
@@ -8750,8 +8750,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8750
8750
|
for (const de of q) re = [], he(de, re, te, !1), G.push(kr(J, "LineString", re, z.properties));
|
8751
8751
|
return;
|
8752
8752
|
}
|
8753
|
-
|
8754
|
-
} else if (Q === "Polygon")
|
8753
|
+
mn(q, re, te, !1);
|
8754
|
+
} else if (Q === "Polygon") mn(q, re, te, !0);
|
8755
8755
|
else {
|
8756
8756
|
if (Q !== "MultiPolygon") {
|
8757
8757
|
if (Q === "GeometryCollection") {
|
@@ -8762,7 +8762,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8762
8762
|
}
|
8763
8763
|
for (const de of q) {
|
8764
8764
|
const ge = [];
|
8765
|
-
|
8765
|
+
mn(de, ge, te, !0), re.push(ge);
|
8766
8766
|
}
|
8767
8767
|
}
|
8768
8768
|
G.push(kr(J, Q, re, z.properties));
|
@@ -8777,9 +8777,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8777
8777
|
z.push(de, ge, 0), J > 0 && (te += O ? (q * ge - de * Q) / 2 : Math.sqrt(Math.pow(de - q, 2) + Math.pow(ge - Q, 2))), q = de, Q = ge;
|
8778
8778
|
}
|
8779
8779
|
const re = z.length - 3;
|
8780
|
-
z[2] = 1,
|
8780
|
+
z[2] = 1, fn(z, 0, re, M), z[re + 2] = 1, z.size = Math.abs(te), z.start = 0, z.end = z.size;
|
8781
8781
|
}
|
8782
|
-
function
|
8782
|
+
function mn(G, z, M, O) {
|
8783
8783
|
for (let q = 0; q < G.length; q++) {
|
8784
8784
|
const Q = [];
|
8785
8785
|
he(G[q], Q, M, O), z.push(Q);
|
@@ -9724,10 +9724,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9724
9724
|
return { x: c.z.number(t.x, n.x, o), y: c.z.number(t.y, n.y, o), z: c.z.number(t.z, n.z, o) };
|
9725
9725
|
}
|
9726
9726
|
}
|
9727
|
-
let
|
9727
|
+
let dn;
|
9728
9728
|
class Cr extends c.E {
|
9729
9729
|
constructor(t) {
|
9730
|
-
super(),
|
9730
|
+
super(), dn = dn || new c.q({ anchor: new c.D(c.v.light.anchor), position: new Gs(), color: new c.D(c.v.light.color), intensity: new c.D(c.v.light.intensity) }), this._transitionable = new c.T(dn), this.setLight(t), this._transitioning = this._transitionable.untransitioned();
|
9731
9731
|
}
|
9732
9732
|
getLight() {
|
9733
9733
|
return this._transitionable.serialize();
|
@@ -9874,11 +9874,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9874
9874
|
}
|
9875
9875
|
const Ln = Math.floor(ae.hardwareConcurrency / 2);
|
9876
9876
|
let Vi, tr;
|
9877
|
-
function
|
9877
|
+
function pn() {
|
9878
9878
|
return Vi || (Vi = new mr()), Vi;
|
9879
9879
|
}
|
9880
9880
|
mr.workerCount = c.C(globalThis) ? Math.max(Math.min(Ln, 3), 1) : 1;
|
9881
|
-
class
|
9881
|
+
class fn {
|
9882
9882
|
constructor(t, n) {
|
9883
9883
|
this.workerPool = t, this.actors = [], this.currentActor = 0, this.id = n;
|
9884
9884
|
const o = this.workerPool.acquire(n);
|
@@ -9906,7 +9906,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9906
9906
|
}
|
9907
9907
|
}
|
9908
9908
|
function os() {
|
9909
|
-
return tr || (tr = new pn(
|
9909
|
+
return tr || (tr = new fn(pn(), c.G), tr.registerMessageHandler("GR", (u, t, n) => c.m(t, n))), tr;
|
9910
9910
|
}
|
9911
9911
|
function kr(u, t) {
|
9912
9912
|
const n = c.H();
|
@@ -10025,7 +10025,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10025
10025
|
return new he(new c.N(t.lng - a, t.lat - o), new c.N(t.lng + a, t.lat + o));
|
10026
10026
|
}
|
10027
10027
|
}
|
10028
|
-
class
|
10028
|
+
class mn {
|
10029
10029
|
constructor(t, n, o) {
|
10030
10030
|
this.bounds = he.convert(this.validateBounds(t)), this.minzoom = n || 0, this.maxzoom = o || 24;
|
10031
10031
|
}
|
@@ -10047,7 +10047,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10047
10047
|
this._loaded = !1, this.fire(new c.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
10048
10048
|
try {
|
10049
10049
|
const t = yield Rn(this._options, this.map._requestManager, this._tileJSONRequest);
|
10050
|
-
this._tileJSONRequest = null, this._loaded = !0, this.map.style.sourceCaches[this.id].clearTiles(), t && (c.e(this, t), t.bounds && (this.tileBounds = new
|
10050
|
+
this._tileJSONRequest = null, this._loaded = !0, this.map.style.sourceCaches[this.id].clearTiles(), t && (c.e(this, t), t.bounds && (this.tileBounds = new mn(t.bounds, this.minzoom, this.maxzoom)), this.fire(new c.k("data", { dataType: "source", sourceDataType: "metadata" })), this.fire(new c.k("data", { dataType: "source", sourceDataType: "content" })));
|
10051
10051
|
} catch (t) {
|
10052
10052
|
this._tileJSONRequest = null, this.fire(new c.j(t));
|
10053
10053
|
}
|
@@ -10132,7 +10132,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10132
10132
|
this._loaded = !1, this.fire(new c.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
10133
10133
|
try {
|
10134
10134
|
const t = yield Rn(this._options, this.map._requestManager, this._tileJSONRequest);
|
10135
|
-
this._tileJSONRequest = null, this._loaded = !0, t && (c.e(this, t), t.bounds && (this.tileBounds = new
|
10135
|
+
this._tileJSONRequest = null, this._loaded = !0, t && (c.e(this, t), t.bounds && (this.tileBounds = new mn(t.bounds, this.minzoom, this.maxzoom)), this.fire(new c.k("data", { dataType: "source", sourceDataType: "metadata" })), this.fire(new c.k("data", { dataType: "source", sourceDataType: "content" })));
|
10136
10136
|
} catch (t) {
|
10137
10137
|
this._tileJSONRequest = null, this.fire(new c.j(t));
|
10138
10138
|
}
|
@@ -11687,8 +11687,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11687
11687
|
var Lt, ot;
|
11688
11688
|
if (n[Pe.crossTileID]) return;
|
11689
11689
|
if (F) return void (this.placements[Pe.crossTileID] = new Qt(!1, !1, !1));
|
11690
|
-
let ut = !1, Rt = !1, fi = !0, sr = null, Ft = { box: null, placeable: !1, offscreen: null }, Di = { box: null, placeable: !1, offscreen: null }, Ai = null, mi = null, gi = null, or = 0,
|
11691
|
-
ke.textFeatureIndex ? or = ke.textFeatureIndex : Pe.useRuntimeCollisionCircles && (or = Pe.featureIndex), ke.verticalTextFeatureIndex && (
|
11690
|
+
let ut = !1, Rt = !1, fi = !0, sr = null, Ft = { box: null, placeable: !1, offscreen: null }, Di = { box: null, placeable: !1, offscreen: null }, Ai = null, mi = null, gi = null, or = 0, Pn = 0, To = 0;
|
11691
|
+
ke.textFeatureIndex ? or = ke.textFeatureIndex : Pe.useRuntimeCollisionCircles && (or = Pe.featureIndex), ke.verticalTextFeatureIndex && (Pn = ke.verticalTextFeatureIndex);
|
11692
11692
|
const Wn = ke.textBox;
|
11693
11693
|
if (Wn) {
|
11694
11694
|
const li = (_i) => {
|
@@ -11748,10 +11748,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11748
11748
|
const li = (ar) => this.collisionIndex.placeCollisionBox(ar, ne, L, v, b, ve, me, y, j.predicate, Oe, ze && sr ? sr : void 0);
|
11749
11749
|
Di && Di.placeable && ke.verticalIconBox ? (gi = li(ke.verticalIconBox), Rt = gi.placeable) : (gi = li(ke.iconBox), Rt = gi.placeable), fi = fi && gi.offscreen;
|
11750
11750
|
}
|
11751
|
-
const
|
11752
|
-
|
11751
|
+
const An = H || Pe.numHorizontalGlyphVertices === 0 && Pe.numVerticalGlyphVertices === 0, Io = K || Pe.numIconVertices === 0;
|
11752
|
+
An || Io ? Io ? An || (Rt = Rt && ut) : ut = Rt && ut : Rt = ut = Rt && ut;
|
11753
11753
|
const Ba = Rt && gi.placeable;
|
11754
|
-
if (ut && Ai.placeable && this.collisionIndex.insertCollisionBox(Ai.box, U, h.get("text-ignore-placement"), a.bucketInstanceId, Di && Di.placeable &&
|
11754
|
+
if (ut && Ai.placeable && this.collisionIndex.insertCollisionBox(Ai.box, U, h.get("text-ignore-placement"), a.bucketInstanceId, Di && Di.placeable && Pn ? Pn : or, j.ID), Ba && this.collisionIndex.insertCollisionBox(gi.box, ne, h.get("icon-ignore-placement"), a.bucketInstanceId, To, j.ID), mi && ut && this.collisionIndex.insertCollisionCircles(mi.circles, U, h.get("text-ignore-placement"), a.bucketInstanceId, or, j.ID), o && this.storeCollisionData(a.bucketInstanceId, Ye, ke, Ai, gi, mi), Pe.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
|
11755
11755
|
if (a.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
|
11756
11756
|
this.placements[Pe.crossTileID] = new Qt(ut || be, Rt || Se, fi || a.justReloaded), n[Pe.crossTileID] = !0;
|
11757
11757
|
};
|
@@ -11960,7 +11960,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11960
11960
|
}
|
11961
11961
|
}
|
11962
11962
|
const zr = 512 / c.X / 2;
|
11963
|
-
class
|
11963
|
+
class gn {
|
11964
11964
|
constructor(t, n, o) {
|
11965
11965
|
this.tileID = t, this.bucketInstanceId = o, this._symbolsByKey = {};
|
11966
11966
|
const a = /* @__PURE__ */ new Map();
|
@@ -12059,7 +12059,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12059
12059
|
const m = n.symbolInstances.get(h);
|
12060
12060
|
m.crossTileID || (m.crossTileID = o.generate(), a[m.crossTileID] = !0);
|
12061
12061
|
}
|
12062
|
-
return this.indexes[t.overscaledZ] === void 0 && (this.indexes[t.overscaledZ] = {}), this.indexes[t.overscaledZ][t.key] = new
|
12062
|
+
return this.indexes[t.overscaledZ] === void 0 && (this.indexes[t.overscaledZ] = {}), this.indexes[t.overscaledZ][t.key] = new gn(t, n.symbolInstances, n.bucketInstanceId), !0;
|
12063
12063
|
}
|
12064
12064
|
removeBucketCrossTileIDs(t, n) {
|
12065
12065
|
for (const o of n.getCrossTileIDsLists()) for (const a of o) delete this.usedCrossTileIDs[t][a];
|
@@ -12105,7 +12105,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12105
12105
|
const a = this.sourceCaches[o].getSource().type;
|
12106
12106
|
a !== "vector" && a !== "geojson" || this.sourceCaches[o].reload();
|
12107
12107
|
}
|
12108
|
-
}, this.map = t, this.dispatcher = new pn(
|
12108
|
+
}, this.map = t, this.dispatcher = new fn(pn(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", (o, a) => this.getGlyphs(o, a)), this.dispatcher.registerMessageHandler("GI", (o, a) => this.getImages(o, a)), this.imageManager = new hi(), this.imageManager.setEventedParent(this), this.glyphManager = new fr(t._requestManager, n.localIdeographFontFamily), this.lineAtlas = new Dn(256, 512), this.crossTileSymbolIndex = new Ji(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new c.ay(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", c.az()), _r().on(Te, this._rtlPluginLoaded), this.on("data", (o) => {
|
12109
12109
|
if (o.dataType !== "source" || o.sourceDataType !== "metadata") return;
|
12110
12110
|
const a = this.sourceCaches[o.sourceId];
|
12111
12111
|
if (!a) return;
|
@@ -13421,13 +13421,13 @@ uniform ${P} ${A} u_${L};
|
|
13421
13421
|
const a = u.transform;
|
13422
13422
|
return { u_matrix: gl(u, t, n, o), u_ratio: 1 / nt(t, 1, a.zoom), u_device_pixel_ratio: u.pixelRatio, u_units_to_pixels: [1 / a.pixelsToGLUnits[0], 1 / a.pixelsToGLUnits[1]] };
|
13423
13423
|
}, eo = (u, t, n, o, a) => c.e(ys(u, t, n, a), { u_image: 0, u_image_height: o }), fl = (u, t, n, o, a) => {
|
13424
|
-
const h = u.transform, m =
|
13424
|
+
const h = u.transform, m = _n(t, h);
|
13425
13425
|
return { u_matrix: gl(u, t, n, a), u_texsize: t.imageAtlasTexture.size, u_ratio: 1 / nt(t, 1, h.zoom), u_device_pixel_ratio: u.pixelRatio, u_image: 0, u_scale: [m, o.fromScale, o.toScale], u_fade: o.t, u_units_to_pixels: [1 / h.pixelsToGLUnits[0], 1 / h.pixelsToGLUnits[1]] };
|
13426
13426
|
}, ml = (u, t, n, o, a, h) => {
|
13427
|
-
const m = u.lineAtlas, y =
|
13427
|
+
const m = u.lineAtlas, y = _n(t, u.transform), v = n.layout.get("line-cap") === "round", b = m.getDash(o.from, v), P = m.getDash(o.to, v), A = b.width * a.fromScale, L = P.width * a.toScale;
|
13428
13428
|
return c.e(ys(u, t, n, h), { u_patternscale_a: [y / A, -b.height / 2], u_patternscale_b: [y / L, -P.height / 2], u_sdfgamma: m.width / (256 * Math.min(A, L) * u.pixelRatio) / 2, u_image: 0, u_tex_y_a: b.y, u_tex_y_b: P.y, u_mix: a.t });
|
13429
13429
|
};
|
13430
|
-
function
|
13430
|
+
function _n(u, t) {
|
13431
13431
|
return 1 / nt(u, 1, t.tileZoom);
|
13432
13432
|
}
|
13433
13433
|
function gl(u, t, n, o) {
|
@@ -13652,7 +13652,7 @@ uniform ${P} ${A} u_${L};
|
|
13652
13652
|
(t[0] !== n[0] || t[1] !== n[1] || this.dirty) && (this.gl.blendFunc(t[0], t[1]), this.current = t, this.dirty = !1);
|
13653
13653
|
}
|
13654
13654
|
}
|
13655
|
-
class
|
13655
|
+
class yn extends dt {
|
13656
13656
|
getDefault() {
|
13657
13657
|
return c.aN.transparent;
|
13658
13658
|
}
|
@@ -13872,7 +13872,7 @@ uniform ${P} ${A} u_${L};
|
|
13872
13872
|
class ra {
|
13873
13873
|
constructor(t) {
|
13874
13874
|
var n, o;
|
13875
|
-
if (this.gl = t, this.clearColor = new xs(this), this.clearDepth = new Bc(this), this.clearStencil = new ro(this), this.colorMask = new Oc(this), this.depthMask = new Vn(this), this.stencilMask = new Vc(this), this.stencilFunc = new xl(this), this.stencilOp = new Nc(this), this.stencilTest = new vl(this), this.depthRange = new Yo(this), this.depthTest = new bl(this), this.depthFunc = new wl(this), this.blend = new Sl(this), this.blendFunc = new Tl(this), this.blendColor = new
|
13875
|
+
if (this.gl = t, this.clearColor = new xs(this), this.clearDepth = new Bc(this), this.clearStencil = new ro(this), this.colorMask = new Oc(this), this.depthMask = new Vn(this), this.stencilMask = new Vc(this), this.stencilFunc = new xl(this), this.stencilOp = new Nc(this), this.stencilTest = new vl(this), this.depthRange = new Yo(this), this.depthTest = new bl(this), this.depthFunc = new wl(this), this.blend = new Sl(this), this.blendFunc = new Tl(this), this.blendColor = new yn(this), this.blendEquation = new Il(this), this.cullFace = new Uc(this), this.cullFaceSide = new jc(this), this.frontFace = new Pl(this), this.program = new vs(this), this.activeTexture = new $c(this), this.viewport = new no(this), this.bindFramebuffer = new qc(this), this.bindRenderbuffer = new Zc(this), this.bindTexture = new Al(this), this.bindVertexBuffer = new Cl(this), this.bindElementBuffer = new kl(this), this.bindVertexArray = new Qo(this), this.pixelStoreUnpack = new El(this), this.pixelStoreUnpackPremultiplyAlpha = new so(this), this.pixelStoreUnpackFlipY = new Dr(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic") || t.getExtension("MOZ_EXT_texture_filter_anisotropic") || t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), On(t)) {
|
13876
13876
|
this.HALF_FLOAT = t.HALF_FLOAT;
|
13877
13877
|
const a = t.getExtension("EXT_color_buffer_half_float");
|
13878
13878
|
this.RGBA16F = (n = t.RGBA16F) !== null && n !== void 0 ? n : a == null ? void 0 : a.RGBA16F_EXT, this.RGB16F = (o = t.RGB16F) !== null && o !== void 0 ? o : a == null ? void 0 : a.RGB16F_EXT, t.getExtension("EXT_color_buffer_float");
|
@@ -14054,14 +14054,14 @@ uniform ${P} ${A} u_${L};
|
|
14054
14054
|
const $t = n.layout.get("icon-size").constantOr(0) !== 1 || Oe.iconsNeedLinear;
|
14055
14055
|
sr = Se.imageAtlasTexture, Ft = ke || u.options.rotating || u.options.zooming || $t || Lt ? F.LINEAR : F.NEAREST, fi = Se.imageAtlasTexture.size;
|
14056
14056
|
}
|
14057
|
-
const gi = nt(Se, 1, u.transform.zoom), or = ee ? be.posMatrix : sa,
|
14057
|
+
const gi = nt(Se, 1, u.transform.zoom), or = ee ? be.posMatrix : sa, Pn = Xr(or, H, j, u.transform, gi), To = xr(or, H, j, u.transform, gi), Wn = xr(be.posMatrix, H, j, u.transform, gi), An = Z.translatePosition(u.transform, Se, h, m), Io = ve && Oe.hasTextData(), Ba = n.layout.get("icon-text-fit") !== "none" && Io && Oe.hasIconData();
|
14058
14058
|
if (K) {
|
14059
14059
|
const $t = u.style.map.terrain ? (Oa, ri) => u.style.map.terrain.getElevation(be, Oa, ri) : null, Jn = n.layout.get("text-rotation-alignment") === "map";
|
14060
|
-
O(Oe, be.posMatrix, u, a,
|
14060
|
+
O(Oe, be.posMatrix, u, a, Pn, Wn, H, b, Jn, Z, be.toUnwrapped(), V.width, V.height, An, $t);
|
14061
14061
|
}
|
14062
|
-
const li = be.posMatrix, ar = a && ve || Ba, rn = K || ar ? sa :
|
14062
|
+
const li = be.posMatrix, ar = a && ve || Ba, rn = K || ar ? sa : Pn, Xn = To, _i = ke && n.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
14063
14063
|
let yi;
|
14064
|
-
yi = ke ? Oe.iconsInText ? Fc(Ye.kind, ut, U, H, K, ar, u, li, rn, Xn,
|
14064
|
+
yi = ke ? Oe.iconsInText ? Fc(Ye.kind, ut, U, H, K, ar, u, li, rn, Xn, An, fi, Ai, Le) : yl(Ye.kind, ut, U, H, K, ar, u, li, rn, Xn, An, a, fi, !0, Le) : _l(Ye.kind, ut, U, H, K, ar, u, li, rn, Xn, An, a, fi, Le);
|
14065
14065
|
const si = { program: ot, buffers: it, uniformValues: yi, atlasTexture: sr, atlasTextureIcon: mi, atlasInterpolation: Ft, atlasInterpolationIcon: Di, isSDF: ke, hasHalo: _i };
|
14066
14066
|
if (ne && Oe.canOverlap) {
|
14067
14067
|
le = !0;
|
@@ -14074,12 +14074,12 @@ uniform ${P} ${A} u_${L};
|
|
14074
14074
|
const Se = be.state;
|
14075
14075
|
if (L.activeTexture.set(F.TEXTURE0), Se.atlasTexture.bind(Se.atlasInterpolation, F.CLAMP_TO_EDGE), Se.atlasTextureIcon && (L.activeTexture.set(F.TEXTURE1), Se.atlasTextureIcon && Se.atlasTextureIcon.bind(Se.atlasInterpolationIcon, F.CLAMP_TO_EDGE)), Se.isSDF) {
|
14076
14076
|
const Oe = Se.uniformValues;
|
14077
|
-
Se.hasHalo && (Oe.u_is_halo = 1,
|
14077
|
+
Se.hasHalo && (Oe.u_is_halo = 1, xn(Se.buffers, be.segments, n, u, Se.program, me, P, A, Oe, be.terrainData)), Oe.u_is_halo = 0;
|
14078
14078
|
}
|
14079
|
-
|
14079
|
+
xn(Se.buffers, be.segments, n, u, Se.program, me, P, A, Se.uniformValues, be.terrainData);
|
14080
14080
|
}
|
14081
14081
|
}
|
14082
|
-
function
|
14082
|
+
function xn(u, t, n, o, a, h, m, y, v, b) {
|
14083
14083
|
const P = o.context;
|
14084
14084
|
a.draw(P, P.gl.TRIANGLES, h, m, y, zt.disabled, v, b, n.id, u.layoutVertexBuffer, u.indexBuffer, t, n.paint, o.transform.zoom, u.programConfigurations.get(n.id), u.dynamicLayoutVertexBuffer, u.opacityVertexBuffer);
|
14085
14085
|
}
|
@@ -14137,7 +14137,7 @@ uniform ${P} ${A} u_${L};
|
|
14137
14137
|
return { u_matrix: Z ? Z.posMatrix : L.transform.calculatePosMatrix(F.tileID.toUnwrapped(), ee), u_image: 0, u_latrange: qi(0, F.tileID), u_light: [V.paint.get("hillshade-exaggeration"), U], u_shadow: j, u_highlight: H, u_accent: K };
|
14138
14138
|
})(u, n, o, A ? t : null), A, o.id, u.rasterBoundsBuffer, u.quadTriangleIndexBuffer, u.rasterBoundsSegments);
|
14139
14139
|
}
|
14140
|
-
function
|
14140
|
+
function vn(u, t, n, o, a, h) {
|
14141
14141
|
const m = u.context, y = m.gl, v = t.dem;
|
14142
14142
|
if (v && v.data) {
|
14143
14143
|
const b = v.dim, P = v.stride, A = v.getPixels();
|
@@ -14166,7 +14166,7 @@ uniform ${P} ${A} u_${L};
|
|
14166
14166
|
return { opacity: 1, mix: 0 };
|
14167
14167
|
}
|
14168
14168
|
const uo = new c.aN(1, 0, 0, 1), Ss = new c.aN(0, 1, 0, 1), po = new c.aN(0, 0, 1, 1), Dl = new c.aN(1, 0, 1, 1), Nn = new c.aN(0, 1, 1, 1);
|
14169
|
-
function
|
14169
|
+
function bn(u, t, n, o) {
|
14170
14170
|
Un(u, 0, t + n / 2, u.transform.width, n, o);
|
14171
14171
|
}
|
14172
14172
|
function ca(u, t, n, o) {
|
@@ -14330,7 +14330,7 @@ uniform ${P} ${A} u_${L};
|
|
14330
14330
|
}
|
14331
14331
|
this.options.showPadding && function(b) {
|
14332
14332
|
const P = b.transform.padding;
|
14333
|
-
|
14333
|
+
bn(b, b.transform.height - (P.top || 0), 3, uo), bn(b, P.bottom || 0, 3, Ss), ca(b, P.left || 0, 3, po), ca(b, b.transform.width - (P.right || 0), 3, Dl);
|
14334
14334
|
const A = b.transform.centerPoint;
|
14335
14335
|
(function(L, F, V, Z) {
|
14336
14336
|
Un(L, F - 1, V - 10, 2, 20, Z), Un(L, F - 10, V - 1, 20, 2, Z);
|
@@ -14515,7 +14515,7 @@ uniform ${P} ${A} u_${L};
|
|
14515
14515
|
const b = h.context, P = h.depthModeForSublayer(0, ht.ReadOnly), A = h.colorModeForRenderPass(), [L, F] = h.renderPass === "translucent" ? h.stencilConfigForOverlap(v) : [{}, v];
|
14516
14516
|
for (const V of F) {
|
14517
14517
|
const Z = m.getTile(V);
|
14518
|
-
Z.needsHillshadePrepare !== void 0 && Z.needsHillshadePrepare && h.renderPass === "offscreen" ?
|
14518
|
+
Z.needsHillshadePrepare !== void 0 && Z.needsHillshadePrepare && h.renderPass === "offscreen" ? vn(h, Z, y, P, Nt.disabled, A) : h.renderPass === "translucent" && la(h, V, Z, y, P, L[V.overscaledZ], A);
|
14519
14519
|
}
|
14520
14520
|
b.viewport.set([0, 0, h.width, h.height]);
|
14521
14521
|
})(t, n, o, a);
|
@@ -14614,7 +14614,7 @@ uniform ${P} ${A} u_${L};
|
|
14614
14614
|
return this.width !== t || this.height !== n;
|
14615
14615
|
}
|
14616
14616
|
}
|
14617
|
-
class
|
14617
|
+
class wn {
|
14618
14618
|
constructor(t, n) {
|
14619
14619
|
this.points = t, this.planes = n;
|
14620
14620
|
}
|
@@ -14633,7 +14633,7 @@ uniform ${P} ${A} u_${L};
|
|
14633
14633
|
var P, A;
|
14634
14634
|
return v.concat(b);
|
14635
14635
|
});
|
14636
|
-
return new
|
14636
|
+
return new wn(h, m);
|
14637
14637
|
}
|
14638
14638
|
}
|
14639
14639
|
class fo {
|
@@ -14828,7 +14828,7 @@ uniform ${P} ${A} u_${L};
|
|
14828
14828
|
const h = a;
|
14829
14829
|
if (t.minzoom !== void 0 && a < t.minzoom) return [];
|
14830
14830
|
t.maxzoom !== void 0 && a > t.maxzoom && (a = t.maxzoom);
|
14831
|
-
const m = this.pointCoordinate(this.getCameraPoint()), y = c.Z.fromLngLat(this.center), v = Math.pow(2, a), b = [v * m.x, v * m.y, 0], P = [v * y.x, v * y.y, 0], A =
|
14831
|
+
const m = this.pointCoordinate(this.getCameraPoint()), y = c.Z.fromLngLat(this.center), v = Math.pow(2, a), b = [v * m.x, v * m.y, 0], P = [v * y.x, v * y.y, 0], A = wn.fromInvProjectionMatrix(this.invModelViewProjectionMatrix, this.worldSize, a);
|
14832
14832
|
let L = t.minzoom || 0;
|
14833
14833
|
!t.terrain && this.pitch <= 60 && this._edgeInsets.top < 0.1 && (L = a);
|
14834
14834
|
const F = t.terrain ? 2 / Math.min(this.tileSize, t.tileSize) * this.tileSize : 3, V = (U) => ({ aabb: new fo([U * v, 0, 0], [(U + 1) * v, v, 0]), zoom: 0, x: 0, y: 0, wrap: U, fullyVisible: !1 }), Z = [], j = [], H = a, K = t.reparseOverscaled ? h : a;
|
@@ -15092,7 +15092,7 @@ uniform ${P} ${A} u_${L};
|
|
15092
15092
|
return `#${P}`;
|
15093
15093
|
}
|
15094
15094
|
}
|
15095
|
-
const
|
15095
|
+
const Sn = { linearity: 0.3, easing: c.b8(0, 0, 0.3, 1) }, da = c.e({ deceleration: 2500, maxSpeed: 1400 }, Sn), pa = c.e({ deceleration: 20, maxSpeed: 1400 }, Sn), Fl = c.e({ deceleration: 1e3, maxSpeed: 360 }, Sn), _o = c.e({ deceleration: 1e3, maxSpeed: 90 }, Sn);
|
15096
15096
|
class yo {
|
15097
15097
|
constructor(t) {
|
15098
15098
|
this._map = t, this.clear();
|
@@ -15458,7 +15458,7 @@ uniform ${P} ${A} u_${L};
|
|
15458
15458
|
return this._clickTolerance;
|
15459
15459
|
}
|
15460
15460
|
}
|
15461
|
-
const
|
15461
|
+
const Tn = { 0: 1, 2: 2 };
|
15462
15462
|
class zi {
|
15463
15463
|
constructor(t) {
|
15464
15464
|
this._correctEvent = t.checkCorrectEvent;
|
@@ -15475,7 +15475,7 @@ uniform ${P} ${A} u_${L};
|
|
15475
15475
|
}
|
15476
15476
|
isValidMoveEvent(t) {
|
15477
15477
|
return !function(n, o) {
|
15478
|
-
const a =
|
15478
|
+
const a = Tn[o];
|
15479
15479
|
return n.buttons === void 0 || (n.buttons & a) !== a;
|
15480
15480
|
}(t, this._eventButton);
|
15481
15481
|
}
|
@@ -15516,7 +15516,7 @@ uniform ${P} ${A} u_${L};
|
|
15516
15516
|
}, xa = ({ enable: u, clickTolerance: t, bearingDegreesPerPixelMoved: n = 0.8 }) => {
|
15517
15517
|
const o = new zi({ checkCorrectEvent: (a) => oe.mouseButton(a) === 0 && a.ctrlKey || oe.mouseButton(a) === 2 });
|
15518
15518
|
return new Dt({ clickTolerance: t, move: (a, h) => ({ bearingDelta: (h.x - a.x) * n }), moveStateManager: o, enable: u, assignEvents: As });
|
15519
|
-
},
|
15519
|
+
}, In = ({ enable: u, clickTolerance: t, pitchDegreesPerPixelMoved: n = -0.5 }) => {
|
15520
15520
|
const o = new zi({ checkCorrectEvent: (a) => oe.mouseButton(a) === 0 && a.ctrlKey || oe.mouseButton(a) === 2 });
|
15521
15521
|
return new Dt({ clickTolerance: t, move: (a, h) => ({ pitchDelta: (h.y - a.y) * n }), moveStateManager: o, enable: u, assignEvents: As });
|
15522
15522
|
};
|
@@ -16051,7 +16051,7 @@ uniform ${P} ${A} u_${L};
|
|
16051
16051
|
this._add("tapDragZoom", v);
|
16052
16052
|
const b = n.touchPitch = new Ta(n);
|
16053
16053
|
this._add("touchPitch", b), t.interactive && t.touchPitch && n.touchPitch.enable(t.touchPitch);
|
16054
|
-
const P = xa(t), A =
|
16054
|
+
const P = xa(t), A = In(t);
|
16055
16055
|
n.dragRotate = new rr(t, P, A), this._add("mouseRotate", P, ["mousePitch"]), this._add("mousePitch", A, ["mouseRotate"]), t.interactive && t.dragRotate && n.dragRotate.enable();
|
16056
16056
|
const L = (({ enable: K, clickTolerance: U }) => {
|
16057
16057
|
const ee = new zi({ checkCorrectEvent: (ne) => oe.mouseButton(ne) === 0 && !ne.ctrlKey });
|
@@ -16787,7 +16787,7 @@ uniform ${P} ${A} u_${L};
|
|
16787
16787
|
this.element = n, this.mouseRotate = xa({ clickTolerance: a, enable: !0 }), this.touchRotate = (({ enable: m, clickTolerance: y, bearingDegreesPerPixelMoved: v = 0.8 }) => {
|
16788
16788
|
const b = new bo();
|
16789
16789
|
return new Dt({ clickTolerance: y, move: (P, A) => ({ bearingDelta: (A.x - P.x) * v }), moveStateManager: b, enable: m, assignEvents: ql });
|
16790
|
-
})({ clickTolerance: a, enable: !0 }), this.map = t, o && (this.mousePitch =
|
16790
|
+
})({ clickTolerance: a, enable: !0 }), this.map = t, o && (this.mousePitch = In({ clickTolerance: h, enable: !0 }), this.touchPitch = (({ enable: m, clickTolerance: y, pitchDegreesPerPixelMoved: v = -0.5 }) => {
|
16791
16791
|
const b = new bo();
|
16792
16792
|
return new Dt({ clickTolerance: y, move: (P, A) => ({ pitchDelta: (A.y - P.y) * v }), moveStateManager: b, enable: m, assignEvents: ql });
|
16793
16793
|
})({ clickTolerance: h, enable: !0 })), oe.addEventListener(n, "mousedown", this.mousedown), oe.addEventListener(n, "touchstart", this.touchstart, { passive: !1 }), oe.addEventListener(n, "touchcancel", this.reset);
|
@@ -17948,7 +17948,7 @@ uniform ${P} ${A} u_${L};
|
|
17948
17948
|
}, T.importScriptInWorkers = function(u) {
|
17949
17949
|
return os().broadcast("IS", u);
|
17950
17950
|
}, T.prewarm = function() {
|
17951
|
-
|
17951
|
+
pn().acquire(qr);
|
17952
17952
|
}, T.setMaxParallelImageRequests = function(u) {
|
17953
17953
|
c.a.MAX_PARALLEL_IMAGE_REQUESTS = u;
|
17954
17954
|
}, T.setRTLTextPlugin = function(u, t) {
|
@@ -17962,8 +17962,8 @@ uniform ${P} ${A} u_${L};
|
|
17962
17962
|
var X = k;
|
17963
17963
|
return X;
|
17964
17964
|
});
|
17965
|
-
})(
|
17966
|
-
var $m =
|
17965
|
+
})(hp);
|
17966
|
+
var $m = hp.exports;
|
17967
17967
|
const bc = /* @__PURE__ */ jm($m);
|
17968
17968
|
function qm(g) {
|
17969
17969
|
return [
|
@@ -18001,7 +18001,7 @@ function Gm(g) {
|
|
18001
18001
|
}
|
18002
18002
|
];
|
18003
18003
|
}
|
18004
|
-
function
|
18004
|
+
function $d(g) {
|
18005
18005
|
if (!g) return null;
|
18006
18006
|
const S = g.type || "point";
|
18007
18007
|
return S === "polygon" ? qm(g) : S === "line" ? Zm(g) : Gm(g);
|
@@ -18066,7 +18066,7 @@ const Jh = {
|
|
18066
18066
|
minzoom: g.minzoom || 5,
|
18067
18067
|
maxzoom: g.maxzoom || 24
|
18068
18068
|
};
|
18069
|
-
S.addSource(g.id, E), (
|
18069
|
+
S.addSource(g.id, E), ($d(g.style) || g.layers || []).forEach((T, c) => {
|
18070
18070
|
const _e = {
|
18071
18071
|
...T,
|
18072
18072
|
id: `${g.id}-${c}`,
|
@@ -18081,7 +18081,7 @@ const Jh = {
|
|
18081
18081
|
async addGeoJsonLayer(g, S = this.map) {
|
18082
18082
|
var N;
|
18083
18083
|
const k = g.data || ((N = g == null ? void 0 : g.url) != null && N.startsWith("http") ? "" : window.location.origin) + g.url;
|
18084
|
-
S.addSource(g.id, { type: "geojson", data: k }), (
|
18084
|
+
S.addSource(g.id, { type: "geojson", data: k }), ($d(g.style) || g.layers || []).forEach((X) => {
|
18085
18085
|
const T = {
|
18086
18086
|
...X,
|
18087
18087
|
source: g.id,
|
@@ -18120,7 +18120,7 @@ const Jh = {
|
|
18120
18120
|
}), await S.removeSource(g), this.setVisible(g);
|
18121
18121
|
}
|
18122
18122
|
}
|
18123
|
-
},
|
18123
|
+
}, un = (g, S) => {
|
18124
18124
|
const k = g.__vccOpts || g;
|
18125
18125
|
for (const [E, N] of S)
|
18126
18126
|
k[E] = N;
|
@@ -18132,14 +18132,14 @@ const Jh = {
|
|
18132
18132
|
viewBox: "0 0 178 90",
|
18133
18133
|
fill: "none",
|
18134
18134
|
xmlns: "http://www.w3.org/2000/svg"
|
18135
|
-
}, Xm = /* @__PURE__ */
|
18135
|
+
}, Xm = /* @__PURE__ */ sp('<rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter2)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter2" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs>', 12), Jm = [
|
18136
18136
|
Xm
|
18137
18137
|
];
|
18138
18138
|
function Km(g, S) {
|
18139
18139
|
return pt(), Ut("svg", Wm, Jm);
|
18140
18140
|
}
|
18141
|
-
const Ym = /* @__PURE__ */
|
18142
|
-
function
|
18141
|
+
const Ym = /* @__PURE__ */ un(Hm, [["render", Km]]);
|
18142
|
+
function dp(g, S) {
|
18143
18143
|
return function() {
|
18144
18144
|
return g.apply(S, arguments);
|
18145
18145
|
};
|
@@ -18151,12 +18151,12 @@ const { toString: Qm } = Object.prototype, { getPrototypeOf: Kh } = Object, Tc =
|
|
18151
18151
|
function eg(g) {
|
18152
18152
|
return g !== null && !hl(g) && g.constructor !== null && !hl(g.constructor) && pr(g.constructor.isBuffer) && g.constructor.isBuffer(g);
|
18153
18153
|
}
|
18154
|
-
const
|
18154
|
+
const pp = Ur("ArrayBuffer");
|
18155
18155
|
function tg(g) {
|
18156
18156
|
let S;
|
18157
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? S = ArrayBuffer.isView(g) : S = g && g.buffer &&
|
18157
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? S = ArrayBuffer.isView(g) : S = g && g.buffer && pp(g.buffer), S;
|
18158
18158
|
}
|
18159
|
-
const ig = Ic("string"), pr = Ic("function"),
|
18159
|
+
const ig = Ic("string"), pr = Ic("function"), fp = Ic("number"), Pc = (g) => g !== null && typeof g == "object", rg = (g) => g === !0 || g === !1, xc = (g) => {
|
18160
18160
|
if (Tc(g) !== "object")
|
18161
18161
|
return !1;
|
18162
18162
|
const S = Kh(g);
|
@@ -18180,7 +18180,7 @@ function ul(g, S, { allOwnKeys: k = !1 } = {}) {
|
|
18180
18180
|
c = X[E], S.call(null, g[c], c, g);
|
18181
18181
|
}
|
18182
18182
|
}
|
18183
|
-
function
|
18183
|
+
function mp(g, S) {
|
18184
18184
|
S = S.toLowerCase();
|
18185
18185
|
const k = Object.keys(g);
|
18186
18186
|
let E = k.length, N;
|
@@ -18189,10 +18189,10 @@ function fp(g, S) {
|
|
18189
18189
|
return N;
|
18190
18190
|
return null;
|
18191
18191
|
}
|
18192
|
-
const Us = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
18192
|
+
const Us = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, gp = (g) => !hl(g) && g !== Us;
|
18193
18193
|
function $h() {
|
18194
|
-
const { caseless: g } =
|
18195
|
-
const X = g &&
|
18194
|
+
const { caseless: g } = gp(this) && this || {}, S = {}, k = (E, N) => {
|
18195
|
+
const X = g && mp(S, N) || N;
|
18196
18196
|
xc(S[X]) && xc(E) ? S[X] = $h(S[X], E) : xc(E) ? S[X] = $h({}, E) : jo(E) ? S[X] = E.slice() : S[X] = E;
|
18197
18197
|
};
|
18198
18198
|
for (let E = 0, N = arguments.length; E < N; E++)
|
@@ -18200,7 +18200,7 @@ function $h() {
|
|
18200
18200
|
return S;
|
18201
18201
|
}
|
18202
18202
|
const gg = (g, S, k, { allOwnKeys: E } = {}) => (ul(S, (N, X) => {
|
18203
|
-
k && pr(N) ? g[X] =
|
18203
|
+
k && pr(N) ? g[X] = dp(N, k) : g[X] = N;
|
18204
18204
|
}, { allOwnKeys: E }), g), _g = (g) => (g.charCodeAt(0) === 65279 && (g = g.slice(1)), g), yg = (g, S, k, E) => {
|
18205
18205
|
g.prototype = Object.create(S.prototype, E), g.prototype.constructor = g, Object.defineProperty(g, "super", {
|
18206
18206
|
value: S.prototype
|
@@ -18223,7 +18223,7 @@ const gg = (g, S, k, { allOwnKeys: E } = {}) => (ul(S, (N, X) => {
|
|
18223
18223
|
if (!g) return null;
|
18224
18224
|
if (jo(g)) return g;
|
18225
18225
|
let S = g.length;
|
18226
|
-
if (!
|
18226
|
+
if (!fp(S)) return null;
|
18227
18227
|
const k = new Array(S);
|
18228
18228
|
for (; S-- > 0; )
|
18229
18229
|
k[S] = g[S];
|
@@ -18246,14 +18246,14 @@ const gg = (g, S, k, { allOwnKeys: E } = {}) => (ul(S, (N, X) => {
|
|
18246
18246
|
function(k, E, N) {
|
18247
18247
|
return E.toUpperCase() + N;
|
18248
18248
|
}
|
18249
|
-
),
|
18249
|
+
), qd = (({ hasOwnProperty: g }) => (S, k) => g.call(S, k))(Object.prototype), Ag = Ur("RegExp"), _p = (g, S) => {
|
18250
18250
|
const k = Object.getOwnPropertyDescriptors(g), E = {};
|
18251
18251
|
ul(k, (N, X) => {
|
18252
18252
|
let T;
|
18253
18253
|
(T = S(N, X, g)) !== !1 && (E[X] = T || N);
|
18254
18254
|
}), Object.defineProperties(g, E);
|
18255
18255
|
}, Cg = (g) => {
|
18256
|
-
|
18256
|
+
_p(g, (S, k) => {
|
18257
18257
|
if (pr(g) && ["arguments", "caller", "callee"].indexOf(k) !== -1)
|
18258
18258
|
return !1;
|
18259
18259
|
const E = g[k];
|
@@ -18275,11 +18275,11 @@ const gg = (g, S, k, { allOwnKeys: E } = {}) => (ul(S, (N, X) => {
|
|
18275
18275
|
};
|
18276
18276
|
return jo(g) ? E(g) : E(String(g).split(S)), k;
|
18277
18277
|
}, Eg = () => {
|
18278
|
-
}, Mg = (g, S) => g != null && Number.isFinite(g = +g) ? g : S, Oh = "abcdefghijklmnopqrstuvwxyz",
|
18279
|
-
DIGIT:
|
18278
|
+
}, Mg = (g, S) => g != null && Number.isFinite(g = +g) ? g : S, Oh = "abcdefghijklmnopqrstuvwxyz", Zd = "0123456789", yp = {
|
18279
|
+
DIGIT: Zd,
|
18280
18280
|
ALPHA: Oh,
|
18281
|
-
ALPHA_DIGIT: Oh + Oh.toUpperCase() +
|
18282
|
-
}, zg = (g = 16, S =
|
18281
|
+
ALPHA_DIGIT: Oh + Oh.toUpperCase() + Zd
|
18282
|
+
}, zg = (g = 16, S = yp.ALPHA_DIGIT) => {
|
18283
18283
|
let k = "";
|
18284
18284
|
const { length: E } = S;
|
18285
18285
|
for (; g--; )
|
@@ -18306,21 +18306,21 @@ const Lg = (g) => {
|
|
18306
18306
|
return E;
|
18307
18307
|
};
|
18308
18308
|
return k(g, 0);
|
18309
|
-
}, Rg = Ur("AsyncFunction"), Fg = (g) => g && (Pc(g) || pr(g)) && pr(g.then) && pr(g.catch),
|
18309
|
+
}, Rg = Ur("AsyncFunction"), Fg = (g) => g && (Pc(g) || pr(g)) && pr(g.then) && pr(g.catch), xp = ((g, S) => g ? setImmediate : S ? ((k, E) => (Us.addEventListener("message", ({ source: N, data: X }) => {
|
18310
18310
|
N === Us && X === k && E.length && E.shift()();
|
18311
18311
|
}, !1), (N) => {
|
18312
18312
|
E.push(N), Us.postMessage(k, "*");
|
18313
18313
|
}))(`axios@${Math.random()}`, []) : (k) => setTimeout(k))(
|
18314
18314
|
typeof setImmediate == "function",
|
18315
18315
|
pr(Us.postMessage)
|
18316
|
-
), Bg = typeof queueMicrotask < "u" ? queueMicrotask.bind(Us) : typeof process < "u" && process.nextTick ||
|
18316
|
+
), Bg = typeof queueMicrotask < "u" ? queueMicrotask.bind(Us) : typeof process < "u" && process.nextTick || xp, pe = {
|
18317
18317
|
isArray: jo,
|
18318
|
-
isArrayBuffer:
|
18318
|
+
isArrayBuffer: pp,
|
18319
18319
|
isBuffer: eg,
|
18320
18320
|
isFormData: cg,
|
18321
18321
|
isArrayBufferView: tg,
|
18322
18322
|
isString: ig,
|
18323
|
-
isNumber:
|
18323
|
+
isNumber: fp,
|
18324
18324
|
isBoolean: rg,
|
18325
18325
|
isObject: Pc,
|
18326
18326
|
isPlainObject: xc,
|
@@ -18352,25 +18352,25 @@ const Lg = (g) => {
|
|
18352
18352
|
forEachEntry: Sg,
|
18353
18353
|
matchAll: Tg,
|
18354
18354
|
isHTMLForm: Ig,
|
18355
|
-
hasOwnProperty:
|
18356
|
-
hasOwnProp:
|
18355
|
+
hasOwnProperty: qd,
|
18356
|
+
hasOwnProp: qd,
|
18357
18357
|
// an alias to avoid ESLint no-prototype-builtins detection
|
18358
|
-
reduceDescriptors:
|
18358
|
+
reduceDescriptors: _p,
|
18359
18359
|
freezeMethods: Cg,
|
18360
18360
|
toObjectSet: kg,
|
18361
18361
|
toCamelCase: Pg,
|
18362
18362
|
noop: Eg,
|
18363
18363
|
toFiniteNumber: Mg,
|
18364
|
-
findKey:
|
18364
|
+
findKey: mp,
|
18365
18365
|
global: Us,
|
18366
|
-
isContextDefined:
|
18367
|
-
ALPHABET:
|
18366
|
+
isContextDefined: gp,
|
18367
|
+
ALPHABET: yp,
|
18368
18368
|
generateString: zg,
|
18369
18369
|
isSpecCompliantForm: Dg,
|
18370
18370
|
toJSONObject: Lg,
|
18371
18371
|
isAsyncFn: Rg,
|
18372
18372
|
isThenable: Fg,
|
18373
|
-
setImmediate:
|
18373
|
+
setImmediate: xp,
|
18374
18374
|
asap: Bg
|
18375
18375
|
};
|
18376
18376
|
function ct(g, S, k, E, N) {
|
@@ -18397,7 +18397,7 @@ pe.inherits(ct, Error, {
|
|
18397
18397
|
};
|
18398
18398
|
}
|
18399
18399
|
});
|
18400
|
-
const
|
18400
|
+
const vp = ct.prototype, bp = {};
|
18401
18401
|
[
|
18402
18402
|
"ERR_BAD_OPTION_VALUE",
|
18403
18403
|
"ERR_BAD_OPTION",
|
@@ -18413,12 +18413,12 @@ const xp = ct.prototype, vp = {};
|
|
18413
18413
|
"ERR_INVALID_URL"
|
18414
18414
|
// eslint-disable-next-line func-names
|
18415
18415
|
].forEach((g) => {
|
18416
|
-
|
18416
|
+
bp[g] = { value: g };
|
18417
18417
|
});
|
18418
|
-
Object.defineProperties(ct,
|
18419
|
-
Object.defineProperty(
|
18418
|
+
Object.defineProperties(ct, bp);
|
18419
|
+
Object.defineProperty(vp, "isAxiosError", { value: !0 });
|
18420
18420
|
ct.from = (g, S, k, E, N, X) => {
|
18421
|
-
const T = Object.create(
|
18421
|
+
const T = Object.create(vp);
|
18422
18422
|
return pe.toFlatObject(g, T, function(_e) {
|
18423
18423
|
return _e !== Error.prototype;
|
18424
18424
|
}, (c) => c !== "isAxiosError"), ct.call(T, g.message, S, k, E, N), T.cause = g, T.name = g.name, X && Object.assign(T, X), T;
|
@@ -18427,12 +18427,12 @@ const Og = null;
|
|
18427
18427
|
function qh(g) {
|
18428
18428
|
return pe.isPlainObject(g) || pe.isArray(g);
|
18429
18429
|
}
|
18430
|
-
function
|
18430
|
+
function wp(g) {
|
18431
18431
|
return pe.endsWith(g, "[]") ? g.slice(0, -2) : g;
|
18432
18432
|
}
|
18433
|
-
function
|
18433
|
+
function Gd(g, S, k) {
|
18434
18434
|
return g ? g.concat(S).map(function(N, X) {
|
18435
|
-
return N =
|
18435
|
+
return N = wp(N), !k && X ? "[" + N + "]" : N;
|
18436
18436
|
}).join(k ? "." : "") : S;
|
18437
18437
|
}
|
18438
18438
|
function Vg(g) {
|
@@ -18468,15 +18468,15 @@ function Ac(g, S, k) {
|
|
18468
18468
|
if (pe.endsWith(tt, "{}"))
|
18469
18469
|
tt = E ? tt : tt.slice(0, -2), qe = JSON.stringify(qe);
|
18470
18470
|
else if (pe.isArray(qe) && Vg(qe) || (pe.isFileList(qe) || pe.endsWith(tt, "[]")) && (ft = pe.toArray(qe)))
|
18471
|
-
return tt =
|
18471
|
+
return tt = wp(tt), ft.forEach(function(Ge, Je) {
|
18472
18472
|
!(pe.isUndefined(Ge) || Ge === null) && S.append(
|
18473
18473
|
// eslint-disable-next-line no-nested-ternary
|
18474
|
-
T === !0 ?
|
18474
|
+
T === !0 ? Gd([tt], Je, X) : T === null ? tt : tt + "[]",
|
18475
18475
|
ye(Ge)
|
18476
18476
|
);
|
18477
18477
|
}), !1;
|
18478
18478
|
}
|
18479
|
-
return qh(qe) ? !0 : (S.append(
|
18479
|
+
return qh(qe) ? !0 : (S.append(Gd(Ve, tt, X), ye(qe)), !1);
|
18480
18480
|
}
|
18481
18481
|
const ae = [], oe = Object.assign(Ng, {
|
18482
18482
|
defaultVisitor: we,
|
@@ -18502,7 +18502,7 @@ function Ac(g, S, k) {
|
|
18502
18502
|
throw new TypeError("data must be an object");
|
18503
18503
|
return yt(g), S;
|
18504
18504
|
}
|
18505
|
-
function
|
18505
|
+
function Hd(g) {
|
18506
18506
|
const S = {
|
18507
18507
|
"!": "%21",
|
18508
18508
|
"'": "%27",
|
@@ -18519,14 +18519,14 @@ function Gd(g) {
|
|
18519
18519
|
function Yh(g, S) {
|
18520
18520
|
this._pairs = [], g && Ac(g, this, S);
|
18521
18521
|
}
|
18522
|
-
const
|
18523
|
-
|
18522
|
+
const Sp = Yh.prototype;
|
18523
|
+
Sp.append = function(S, k) {
|
18524
18524
|
this._pairs.push([S, k]);
|
18525
18525
|
};
|
18526
|
-
|
18526
|
+
Sp.toString = function(S) {
|
18527
18527
|
const k = S ? function(E) {
|
18528
|
-
return S.call(this, E,
|
18529
|
-
} :
|
18528
|
+
return S.call(this, E, Hd);
|
18529
|
+
} : Hd;
|
18530
18530
|
return this._pairs.map(function(N) {
|
18531
18531
|
return k(N[0]) + "=" + k(N[1]);
|
18532
18532
|
}, "").join("&");
|
@@ -18534,7 +18534,7 @@ wp.toString = function(S) {
|
|
18534
18534
|
function Ug(g) {
|
18535
18535
|
return encodeURIComponent(g).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
18536
18536
|
}
|
18537
|
-
function
|
18537
|
+
function Tp(g, S, k) {
|
18538
18538
|
if (!S)
|
18539
18539
|
return g;
|
18540
18540
|
const E = k && k.encode || Ug, N = k && k.serialize;
|
@@ -18545,7 +18545,7 @@ function Sp(g, S, k) {
|
|
18545
18545
|
}
|
18546
18546
|
return g;
|
18547
18547
|
}
|
18548
|
-
class
|
18548
|
+
class Wd {
|
18549
18549
|
constructor() {
|
18550
18550
|
this.handlers = [];
|
18551
18551
|
}
|
@@ -18599,7 +18599,7 @@ class Hd {
|
|
18599
18599
|
});
|
18600
18600
|
}
|
18601
18601
|
}
|
18602
|
-
const
|
18602
|
+
const Ip = {
|
18603
18603
|
silentJSONParsing: !0,
|
18604
18604
|
forcedJSONParsing: !0,
|
18605
18605
|
clarifyTimeoutError: !1
|
@@ -18641,7 +18641,7 @@ function Yg(g) {
|
|
18641
18641
|
X = k[E], S[X] = g[X];
|
18642
18642
|
return S;
|
18643
18643
|
}
|
18644
|
-
function
|
18644
|
+
function Pp(g) {
|
18645
18645
|
function S(k, E, N, X) {
|
18646
18646
|
let T = k[X++];
|
18647
18647
|
if (T === "__proto__") return !0;
|
@@ -18667,12 +18667,12 @@ function Qg(g, S, k) {
|
|
18667
18667
|
return (k || JSON.stringify)(g);
|
18668
18668
|
}
|
18669
18669
|
const dl = {
|
18670
|
-
transitional:
|
18670
|
+
transitional: Ip,
|
18671
18671
|
adapter: ["xhr", "http", "fetch"],
|
18672
18672
|
transformRequest: [function(S, k) {
|
18673
18673
|
const E = k.getContentType() || "", N = E.indexOf("application/json") > -1, X = pe.isObject(S);
|
18674
18674
|
if (X && pe.isHTMLForm(S) && (S = new FormData(S)), pe.isFormData(S))
|
18675
|
-
return N ? JSON.stringify(
|
18675
|
+
return N ? JSON.stringify(Pp(S)) : S;
|
18676
18676
|
if (pe.isArrayBuffer(S) || pe.isBuffer(S) || pe.isStream(S) || pe.isFile(S) || pe.isBlob(S) || pe.isReadableStream(S))
|
18677
18677
|
return S;
|
18678
18678
|
if (pe.isArrayBufferView(S))
|
@@ -18760,7 +18760,7 @@ const e_ = pe.toObjectSet([
|
|
18760
18760
|
`).forEach(function(T) {
|
18761
18761
|
N = T.indexOf(":"), k = T.substring(0, N).trim().toLowerCase(), E = T.substring(N + 1).trim(), !(!k || S[k] && e_[k]) && (k === "set-cookie" ? S[k] ? S[k].push(E) : S[k] = [E] : S[k] = S[k] ? S[k] + ", " + E : E);
|
18762
18762
|
}), S;
|
18763
|
-
},
|
18763
|
+
}, Xd = Symbol("internals");
|
18764
18764
|
function sl(g) {
|
18765
18765
|
return g && String(g).trim().toLowerCase();
|
18766
18766
|
}
|
@@ -18907,7 +18907,7 @@ class Qi {
|
|
18907
18907
|
return k.forEach((N) => E.set(N)), E;
|
18908
18908
|
}
|
18909
18909
|
static accessor(S) {
|
18910
|
-
const E = (this[
|
18910
|
+
const E = (this[Xd] = this[Xd] = {
|
18911
18911
|
accessors: {}
|
18912
18912
|
}).accessors, N = this.prototype;
|
18913
18913
|
function X(T) {
|
@@ -18935,7 +18935,7 @@ function Nh(g, S) {
|
|
18935
18935
|
X = c.call(k, X, N.normalize(), S ? S.status : void 0);
|
18936
18936
|
}), N.normalize(), X;
|
18937
18937
|
}
|
18938
|
-
function
|
18938
|
+
function Ap(g) {
|
18939
18939
|
return !!(g && g.__CANCEL__);
|
18940
18940
|
}
|
18941
18941
|
function $o(g, S, k) {
|
@@ -18944,7 +18944,7 @@ function $o(g, S, k) {
|
|
18944
18944
|
pe.inherits($o, ct, {
|
18945
18945
|
__CANCEL__: !0
|
18946
18946
|
});
|
18947
|
-
function
|
18947
|
+
function Cp(g, S, k) {
|
18948
18948
|
const E = k.config.validateStatus;
|
18949
18949
|
!k.status || !E || E(k.status) ? g(k) : S(new ct(
|
18950
18950
|
"Request failed with status code " + k.status,
|
@@ -19005,14 +19005,14 @@ const wc = (g, S, k = 3) => {
|
|
19005
19005
|
};
|
19006
19006
|
g(ae);
|
19007
19007
|
}, k);
|
19008
|
-
},
|
19008
|
+
}, Jd = (g, S) => {
|
19009
19009
|
const k = g != null;
|
19010
19010
|
return [(E) => S[0]({
|
19011
19011
|
lengthComputable: k,
|
19012
19012
|
total: g,
|
19013
19013
|
loaded: E
|
19014
19014
|
}), S[1]];
|
19015
|
-
},
|
19015
|
+
}, Kd = (g) => (...S) => pe.asap(() => g(...S)), c_ = Nr.hasStandardBrowserEnv ? (
|
19016
19016
|
// Standard browser envs have full support of the APIs needed to test
|
19017
19017
|
// whether the request URL is of the same origin as current location.
|
19018
19018
|
function() {
|
@@ -19076,10 +19076,10 @@ function u_(g) {
|
|
19076
19076
|
function d_(g, S) {
|
19077
19077
|
return S ? g.replace(/\/?\/$/, "") + "/" + S.replace(/^\/+/, "") : g;
|
19078
19078
|
}
|
19079
|
-
function
|
19079
|
+
function kp(g, S) {
|
19080
19080
|
return g && !u_(S) ? d_(g, S) : S;
|
19081
19081
|
}
|
19082
|
-
const
|
19082
|
+
const Yd = (g) => g instanceof Qi ? { ...g } : g;
|
19083
19083
|
function qs(g, S) {
|
19084
19084
|
S = S || {};
|
19085
19085
|
const k = {};
|
@@ -19137,17 +19137,17 @@ function qs(g, S) {
|
|
19137
19137
|
socketPath: T,
|
19138
19138
|
responseEncoding: T,
|
19139
19139
|
validateStatus: c,
|
19140
|
-
headers: (ye, we) => N(
|
19140
|
+
headers: (ye, we) => N(Yd(ye), Yd(we), !0)
|
19141
19141
|
};
|
19142
19142
|
return pe.forEach(Object.keys(Object.assign({}, g, S)), function(we) {
|
19143
19143
|
const ae = _e[we] || N, oe = ae(g[we], S[we], we);
|
19144
19144
|
pe.isUndefined(oe) && ae !== c || (k[we] = oe);
|
19145
19145
|
}), k;
|
19146
19146
|
}
|
19147
|
-
const
|
19147
|
+
const Ep = (g) => {
|
19148
19148
|
const S = qs({}, g);
|
19149
19149
|
let { data: k, withXSRFToken: E, xsrfHeaderName: N, xsrfCookieName: X, headers: T, auth: c } = S;
|
19150
|
-
S.headers = T = Qi.from(T), S.url =
|
19150
|
+
S.headers = T = Qi.from(T), S.url = Tp(kp(S.baseURL, S.url), g.params, g.paramsSerializer), c && T.set(
|
19151
19151
|
"Authorization",
|
19152
19152
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
19153
19153
|
);
|
@@ -19167,7 +19167,7 @@ const kp = (g) => {
|
|
19167
19167
|
return S;
|
19168
19168
|
}, p_ = typeof XMLHttpRequest < "u", f_ = p_ && function(g) {
|
19169
19169
|
return new Promise(function(k, E) {
|
19170
|
-
const N =
|
19170
|
+
const N = Ep(g);
|
19171
19171
|
let X = N.data;
|
19172
19172
|
const T = Qi.from(N.headers).normalize();
|
19173
19173
|
let { responseType: c, onUploadProgress: _e, onDownloadProgress: ye } = N, we, ae, oe, yt, qe;
|
@@ -19189,7 +19189,7 @@ const kp = (g) => {
|
|
19189
19189
|
config: g,
|
19190
19190
|
request: Ve
|
19191
19191
|
};
|
19192
|
-
|
19192
|
+
Cp(function(jt) {
|
19193
19193
|
k(jt), tt();
|
19194
19194
|
}, function(jt) {
|
19195
19195
|
E(jt), tt();
|
@@ -19203,7 +19203,7 @@ const kp = (g) => {
|
|
19203
19203
|
E(new ct("Network Error", ct.ERR_NETWORK, g, Ve)), Ve = null;
|
19204
19204
|
}, Ve.ontimeout = function() {
|
19205
19205
|
let Je = N.timeout ? "timeout of " + N.timeout + "ms exceeded" : "timeout exceeded";
|
19206
|
-
const bt = N.transitional ||
|
19206
|
+
const bt = N.transitional || Ip;
|
19207
19207
|
N.timeoutErrorMessage && (Je = N.timeoutErrorMessage), E(new ct(
|
19208
19208
|
Je,
|
19209
19209
|
bt.clarifyTimeoutError ? ct.ETIMEDOUT : ct.ECONNABORTED,
|
@@ -19256,7 +19256,7 @@ const kp = (g) => {
|
|
19256
19256
|
}, __ = async function* (g, S, k) {
|
19257
19257
|
for await (const E of g)
|
19258
19258
|
yield* g_(ArrayBuffer.isView(E) ? E : await k(String(E)), S);
|
19259
|
-
},
|
19259
|
+
}, Qd = (g, S, k, E, N) => {
|
19260
19260
|
const X = __(g, S, N);
|
19261
19261
|
let T = 0, c, _e = (ye) => {
|
19262
19262
|
c || (c = !0, E && E(ye));
|
@@ -19285,13 +19285,13 @@ const kp = (g) => {
|
|
19285
19285
|
}, {
|
19286
19286
|
highWaterMark: 2
|
19287
19287
|
});
|
19288
|
-
}, Cc = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
19288
|
+
}, Cc = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Mp = Cc && typeof ReadableStream == "function", Zh = Cc && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((g) => (S) => g.encode(S))(new TextEncoder()) : async (g) => new Uint8Array(await new Response(g).arrayBuffer())), zp = (g, ...S) => {
|
19289
19289
|
try {
|
19290
19290
|
return !!g(...S);
|
19291
19291
|
} catch {
|
19292
19292
|
return !1;
|
19293
19293
|
}
|
19294
|
-
}, y_ =
|
19294
|
+
}, y_ = Mp && zp(() => {
|
19295
19295
|
let g = !1;
|
19296
19296
|
const S = new Request(Nr.origin, {
|
19297
19297
|
body: new ReadableStream(),
|
@@ -19301,7 +19301,7 @@ const kp = (g) => {
|
|
19301
19301
|
}
|
19302
19302
|
}).headers.has("Content-Type");
|
19303
19303
|
return g && !S;
|
19304
|
-
}),
|
19304
|
+
}), ep = 64 * 1024, Gh = Mp && zp(() => pe.isReadableStream(new Response("").body)), Sc = {
|
19305
19305
|
stream: Gh && ((g) => g.body)
|
19306
19306
|
};
|
19307
19307
|
Cc && ((g) => {
|
@@ -19339,7 +19339,7 @@ const x_ = async (g) => {
|
|
19339
19339
|
headers: we,
|
19340
19340
|
withCredentials: ae = "same-origin",
|
19341
19341
|
fetchOptions: oe
|
19342
|
-
} =
|
19342
|
+
} = Ep(g);
|
19343
19343
|
ye = ye ? (ye + "").toLowerCase() : "text";
|
19344
19344
|
let [yt, qe] = N || X || T ? m_([N, X], T) : [], tt, Ve;
|
19345
19345
|
const ft = () => {
|
@@ -19356,11 +19356,11 @@ const x_ = async (g) => {
|
|
19356
19356
|
duplex: "half"
|
19357
19357
|
}), jt;
|
19358
19358
|
if (pe.isFormData(E) && (jt = qt.headers.get("content-type")) && we.setContentType(jt), qt.body) {
|
19359
|
-
const [jr, Si] =
|
19359
|
+
const [jr, Si] = Jd(
|
19360
19360
|
Ot,
|
19361
|
-
wc(
|
19361
|
+
wc(Kd(_e))
|
19362
19362
|
);
|
19363
|
-
E =
|
19363
|
+
E = Qd(qt.body, ep, jr, Si, Zh);
|
19364
19364
|
}
|
19365
19365
|
}
|
19366
19366
|
pe.isString(ae) || (ae = ae ? "include" : "omit"), Ve = new Request(S, {
|
@@ -19379,12 +19379,12 @@ const x_ = async (g) => {
|
|
19379
19379
|
["status", "statusText", "headers"].forEach(($r) => {
|
19380
19380
|
qt[$r] = Ge[$r];
|
19381
19381
|
});
|
19382
|
-
const jt = pe.toFiniteNumber(Ge.headers.get("content-length")), [jr, Si] = c &&
|
19382
|
+
const jt = pe.toFiniteNumber(Ge.headers.get("content-length")), [jr, Si] = c && Jd(
|
19383
19383
|
jt,
|
19384
|
-
wc(
|
19384
|
+
wc(Kd(c), !0)
|
19385
19385
|
) || [];
|
19386
19386
|
Ge = new Response(
|
19387
|
-
|
19387
|
+
Qd(Ge.body, ep, jr, () => {
|
19388
19388
|
Si && Si(), Je && ft();
|
19389
19389
|
}, Zh),
|
19390
19390
|
qt
|
@@ -19393,7 +19393,7 @@ const x_ = async (g) => {
|
|
19393
19393
|
ye = ye || "text";
|
19394
19394
|
let bt = await Sc[pe.findKey(Sc, ye) || "text"](Ge, g);
|
19395
19395
|
return !Je && ft(), qe && qe(), await new Promise((qt, jt) => {
|
19396
|
-
|
19396
|
+
Cp(qt, jt, {
|
19397
19397
|
data: bt,
|
19398
19398
|
headers: Qi.from(Ge.headers),
|
19399
19399
|
status: Ge.status,
|
@@ -19424,7 +19424,7 @@ pe.forEach(Hh, (g, S) => {
|
|
19424
19424
|
Object.defineProperty(g, "adapterName", { value: S });
|
19425
19425
|
}
|
19426
19426
|
});
|
19427
|
-
const
|
19427
|
+
const tp = (g) => `- ${g}`, w_ = (g) => pe.isFunction(g) || g === null || g === !1, Dp = {
|
19428
19428
|
getAdapter: (g) => {
|
19429
19429
|
g = pe.isArray(g) ? g : [g];
|
19430
19430
|
const { length: S } = g;
|
@@ -19444,8 +19444,8 @@ const ep = (g) => `- ${g}`, w_ = (g) => pe.isFunction(g) || g === null || g ===
|
|
19444
19444
|
([c, _e]) => `adapter ${c} ` + (_e === !1 ? "is not supported by the environment" : "is not available in the build")
|
19445
19445
|
);
|
19446
19446
|
let T = S ? X.length > 1 ? `since :
|
19447
|
-
` + X.map(
|
19448
|
-
`) : " " +
|
19447
|
+
` + X.map(tp).join(`
|
19448
|
+
`) : " " + tp(X[0]) : "as no adapter specified";
|
19449
19449
|
throw new ct(
|
19450
19450
|
"There is no suitable adapter to dispatch the request " + T,
|
19451
19451
|
"ERR_NOT_SUPPORT"
|
@@ -19459,34 +19459,34 @@ function Uh(g) {
|
|
19459
19459
|
if (g.cancelToken && g.cancelToken.throwIfRequested(), g.signal && g.signal.aborted)
|
19460
19460
|
throw new $o(null, g);
|
19461
19461
|
}
|
19462
|
-
function
|
19462
|
+
function ip(g) {
|
19463
19463
|
return Uh(g), g.headers = Qi.from(g.headers), g.data = Nh.call(
|
19464
19464
|
g,
|
19465
19465
|
g.transformRequest
|
19466
|
-
), ["post", "put", "patch"].indexOf(g.method) !== -1 && g.headers.setContentType("application/x-www-form-urlencoded", !1),
|
19466
|
+
), ["post", "put", "patch"].indexOf(g.method) !== -1 && g.headers.setContentType("application/x-www-form-urlencoded", !1), Dp.getAdapter(g.adapter || dl.adapter)(g).then(function(E) {
|
19467
19467
|
return Uh(g), E.data = Nh.call(
|
19468
19468
|
g,
|
19469
19469
|
g.transformResponse,
|
19470
19470
|
E
|
19471
19471
|
), E.headers = Qi.from(E.headers), E;
|
19472
19472
|
}, function(E) {
|
19473
|
-
return
|
19473
|
+
return Ap(E) || (Uh(g), E && E.response && (E.response.data = Nh.call(
|
19474
19474
|
g,
|
19475
19475
|
g.transformResponse,
|
19476
19476
|
E.response
|
19477
19477
|
), E.response.headers = Qi.from(E.response.headers))), Promise.reject(E);
|
19478
19478
|
});
|
19479
19479
|
}
|
19480
|
-
const
|
19480
|
+
const Lp = "1.7.4", eu = {};
|
19481
19481
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((g, S) => {
|
19482
19482
|
eu[g] = function(E) {
|
19483
19483
|
return typeof E === g || "a" + (S < 1 ? "n " : " ") + g;
|
19484
19484
|
};
|
19485
19485
|
});
|
19486
|
-
const
|
19486
|
+
const rp = {};
|
19487
19487
|
eu.transitional = function(S, k, E) {
|
19488
19488
|
function N(X, T) {
|
19489
|
-
return "[Axios v" +
|
19489
|
+
return "[Axios v" + Lp + "] Transitional option '" + X + "'" + T + (E ? ". " + E : "");
|
19490
19490
|
}
|
19491
19491
|
return (X, T, c) => {
|
19492
19492
|
if (S === !1)
|
@@ -19494,7 +19494,7 @@ eu.transitional = function(S, k, E) {
|
|
19494
19494
|
N(T, " has been removed" + (k ? " in " + k : "")),
|
19495
19495
|
ct.ERR_DEPRECATED
|
19496
19496
|
);
|
19497
|
-
return k && !
|
19497
|
+
return k && !rp[T] && (rp[T] = !0, console.warn(
|
19498
19498
|
N(
|
19499
19499
|
T,
|
19500
19500
|
" has been deprecated since v" + k + " and will be removed in the near future"
|
@@ -19526,8 +19526,8 @@ const Wh = {
|
|
19526
19526
|
class js {
|
19527
19527
|
constructor(S) {
|
19528
19528
|
this.defaults = S, this.interceptors = {
|
19529
|
-
request: new
|
19530
|
-
response: new
|
19529
|
+
request: new Wd(),
|
19530
|
+
response: new Wd()
|
19531
19531
|
};
|
19532
19532
|
}
|
19533
19533
|
/**
|
@@ -19589,7 +19589,7 @@ class js {
|
|
19589
19589
|
});
|
19590
19590
|
let we, ae = 0, oe;
|
19591
19591
|
if (!_e) {
|
19592
|
-
const qe = [
|
19592
|
+
const qe = [ip.bind(this), void 0];
|
19593
19593
|
for (qe.unshift.apply(qe, c), qe.push.apply(qe, ye), oe = qe.length, we = Promise.resolve(k); ae < oe; )
|
19594
19594
|
we = we.then(qe[ae++], qe[ae++]);
|
19595
19595
|
return we;
|
@@ -19606,7 +19606,7 @@ class js {
|
|
19606
19606
|
}
|
19607
19607
|
}
|
19608
19608
|
try {
|
19609
|
-
we =
|
19609
|
+
we = ip.call(this, yt);
|
19610
19610
|
} catch (qe) {
|
19611
19611
|
return Promise.reject(qe);
|
19612
19612
|
}
|
@@ -19616,8 +19616,8 @@ class js {
|
|
19616
19616
|
}
|
19617
19617
|
getUri(S) {
|
19618
19618
|
S = qs(this.defaults, S);
|
19619
|
-
const k =
|
19620
|
-
return
|
19619
|
+
const k = kp(S.baseURL, S.url);
|
19620
|
+
return Tp(k, S.params, S.paramsSerializer);
|
19621
19621
|
}
|
19622
19622
|
}
|
19623
19623
|
pe.forEach(["delete", "get", "head", "options"], function(S) {
|
@@ -19787,18 +19787,18 @@ const Xh = {
|
|
19787
19787
|
Object.entries(Xh).forEach(([g, S]) => {
|
19788
19788
|
Xh[S] = g;
|
19789
19789
|
});
|
19790
|
-
function
|
19791
|
-
const S = new js(g), k =
|
19790
|
+
function Rp(g) {
|
19791
|
+
const S = new js(g), k = dp(js.prototype.request, S);
|
19792
19792
|
return pe.extend(k, js.prototype, S, { allOwnKeys: !0 }), pe.extend(k, S, null, { allOwnKeys: !0 }), k.create = function(N) {
|
19793
|
-
return
|
19793
|
+
return Rp(qs(g, N));
|
19794
19794
|
}, k;
|
19795
19795
|
}
|
19796
|
-
const Wt =
|
19796
|
+
const Wt = Rp(dl);
|
19797
19797
|
Wt.Axios = js;
|
19798
19798
|
Wt.CanceledError = $o;
|
19799
19799
|
Wt.CancelToken = tu;
|
19800
|
-
Wt.isCancel =
|
19801
|
-
Wt.VERSION =
|
19800
|
+
Wt.isCancel = Ap;
|
19801
|
+
Wt.VERSION = Lp;
|
19802
19802
|
Wt.toFormData = Ac;
|
19803
19803
|
Wt.AxiosError = ct;
|
19804
19804
|
Wt.Cancel = Wt.CanceledError;
|
@@ -19809,8 +19809,8 @@ Wt.spread = T_;
|
|
19809
19809
|
Wt.isAxiosError = I_;
|
19810
19810
|
Wt.mergeConfig = qs;
|
19811
19811
|
Wt.AxiosHeaders = Qi;
|
19812
|
-
Wt.formToJSON = (g) =>
|
19813
|
-
Wt.getAdapter =
|
19812
|
+
Wt.formToJSON = (g) => Pp(pe.isHTMLForm(g) ? new FormData(g) : g);
|
19813
|
+
Wt.getAdapter = Dp.getAdapter;
|
19814
19814
|
Wt.HttpStatusCode = Xh;
|
19815
19815
|
Wt.default = Wt;
|
19816
19816
|
const jh = (g, S = 300) => {
|
@@ -19832,14 +19832,14 @@ function P_(g, S, k = {}) {
|
|
19832
19832
|
throw new Error("coordinates must be an Array");
|
19833
19833
|
if (g.length < 2)
|
19834
19834
|
throw new Error("coordinates must be at least 2 numbers long");
|
19835
|
-
if (!
|
19835
|
+
if (!np(g[0]) || !np(g[1]))
|
19836
19836
|
throw new Error("coordinates must contain numbers");
|
19837
19837
|
return kc({
|
19838
19838
|
type: "Point",
|
19839
19839
|
coordinates: g
|
19840
19840
|
}, S, k);
|
19841
19841
|
}
|
19842
|
-
function
|
19842
|
+
function Fp(g, S, k = {}) {
|
19843
19843
|
for (const N of g) {
|
19844
19844
|
if (N.length < 4)
|
19845
19845
|
throw new Error(
|
@@ -19856,22 +19856,22 @@ function Rp(g, S, k = {}) {
|
|
19856
19856
|
coordinates: g
|
19857
19857
|
}, S, k);
|
19858
19858
|
}
|
19859
|
-
function
|
19859
|
+
function Bp(g, S, k = {}) {
|
19860
19860
|
return kc({
|
19861
19861
|
type: "MultiPoint",
|
19862
19862
|
coordinates: g
|
19863
19863
|
}, S, k);
|
19864
19864
|
}
|
19865
|
-
function
|
19865
|
+
function Op(g, S, k = {}) {
|
19866
19866
|
return kc({
|
19867
19867
|
type: "MultiPolygon",
|
19868
19868
|
coordinates: g
|
19869
19869
|
}, S, k);
|
19870
19870
|
}
|
19871
|
-
function
|
19871
|
+
function np(g) {
|
19872
19872
|
return !isNaN(g) && g !== null && !Array.isArray(g);
|
19873
19873
|
}
|
19874
|
-
function
|
19874
|
+
function Vp(g, S, k) {
|
19875
19875
|
if (g !== null)
|
19876
19876
|
for (var E, N, X, T, c, _e, ye, we = 0, ae = 0, oe, yt = g.type, qe = yt === "FeatureCollection", tt = yt === "Feature", Ve = qe ? g.features.length : 1, ft = 0; ft < Ve; ft++) {
|
19877
19877
|
ye = qe ? g.features[ft].geometry : tt ? g.geometry : g, oe = ye ? ye.type === "GeometryCollection" : !1, c = oe ? ye.geometries.length : 1;
|
@@ -19948,7 +19948,7 @@ function Op(g, S, k) {
|
|
19948
19948
|
break;
|
19949
19949
|
case "GeometryCollection":
|
19950
19950
|
for (E = 0; E < T.geometries.length; E++)
|
19951
|
-
if (
|
19951
|
+
if (Vp(T.geometries[E], S) === !1)
|
19952
19952
|
return !1;
|
19953
19953
|
break;
|
19954
19954
|
default:
|
@@ -19958,16 +19958,16 @@ function Op(g, S, k) {
|
|
19958
19958
|
}
|
19959
19959
|
}
|
19960
19960
|
}
|
19961
|
-
function
|
19961
|
+
function Np(g, S = {}) {
|
19962
19962
|
if (g.bbox != null && S.recompute !== !0)
|
19963
19963
|
return g.bbox;
|
19964
19964
|
const k = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
19965
|
-
return
|
19965
|
+
return Vp(g, (E) => {
|
19966
19966
|
k[0] > E[0] && (k[0] = E[0]), k[1] > E[1] && (k[1] = E[1]), k[2] < E[0] && (k[2] = E[0]), k[3] < E[1] && (k[3] = E[1]);
|
19967
19967
|
}), k;
|
19968
19968
|
}
|
19969
|
-
function
|
19970
|
-
const k =
|
19969
|
+
function Up(g, S = {}) {
|
19970
|
+
const k = Np(g), E = (k[0] + k[2]) / 2, N = (k[1] + k[3]) / 2;
|
19971
19971
|
return P_([E, N], S.properties, S);
|
19972
19972
|
}
|
19973
19973
|
const A_ = {
|
@@ -20053,11 +20053,11 @@ function M_(g, S, k, E, N, X) {
|
|
20053
20053
|
class: cl(["absolute py-2 px-4 text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg top-[-46px] text-nowrap p-2 hidden whitespace-nowrap", [
|
20054
20054
|
c === 0 ? "left-[-10px]" : "left-[50%] translate-x-[-50%] "
|
20055
20055
|
]])
|
20056
|
-
},
|
20056
|
+
}, hn(T == null ? void 0 : T.name), 3)
|
20057
20057
|
], 10, k_))), 128))
|
20058
20058
|
]);
|
20059
20059
|
}
|
20060
|
-
const z_ = /* @__PURE__ */
|
20060
|
+
const z_ = /* @__PURE__ */ un(A_, [["render", M_], ["__scopeId", "data-v-d4fbd7d5"]]), D_ = {
|
20061
20061
|
props: ["colors", "title"],
|
20062
20062
|
methods: {
|
20063
20063
|
capitalizeFirstLetter(g) {
|
@@ -20073,19 +20073,19 @@ const z_ = /* @__PURE__ */ hn(A_, [["render", M_], ["__scopeId", "data-v-d4fbd7d
|
|
20073
20073
|
}, O_ = { class: "ml-1 text-[0.875rem]" };
|
20074
20074
|
function V_(g, S, k, E, N, X) {
|
20075
20075
|
return pt(), Ut("div", L_, [
|
20076
|
-
k.title ? (pt(), Ut("div", R_,
|
20076
|
+
k.title ? (pt(), Ut("div", R_, hn(k.title), 1)) : Pr("", !0),
|
20077
20077
|
(pt(!0), Ut(ol, null, al(k.colors, (T) => (pt(), Ut("div", F_, [
|
20078
20078
|
T.id > 0 ? (pt(), Ut("div", B_, [
|
20079
20079
|
Qe("div", {
|
20080
20080
|
class: "w-[15px] h-[15px] rounded-[50%] min-w-[15px]",
|
20081
|
-
style:
|
20081
|
+
style: op({ backgroundColor: T.color })
|
20082
20082
|
}, null, 4),
|
20083
|
-
Qe("div", O_,
|
20083
|
+
Qe("div", O_, hn(X.capitalizeFirstLetter(T.text)), 1)
|
20084
20084
|
])) : Pr("", !0)
|
20085
20085
|
]))), 256))
|
20086
20086
|
]);
|
20087
20087
|
}
|
20088
|
-
const N_ = /* @__PURE__ */
|
20088
|
+
const N_ = /* @__PURE__ */ un(D_, [["render", V_]]), U_ = {
|
20089
20089
|
components: {
|
20090
20090
|
MapSlotLayers: z_,
|
20091
20091
|
MapLegend: N_
|
@@ -20129,13 +20129,13 @@ const N_ = /* @__PURE__ */ hn(D_, [["render", V_]]), U_ = {
|
|
20129
20129
|
let T;
|
20130
20130
|
switch (N) {
|
20131
20131
|
case "Polygon":
|
20132
|
-
T =
|
20132
|
+
T = Fp(X);
|
20133
20133
|
break;
|
20134
20134
|
case "MultiPolygon":
|
20135
|
-
T =
|
20135
|
+
T = Op(X);
|
20136
20136
|
break;
|
20137
20137
|
case "MultiPoint":
|
20138
|
-
T =
|
20138
|
+
T = Bp(X);
|
20139
20139
|
break;
|
20140
20140
|
default:
|
20141
20141
|
(S = this.map) == null || S.fitBounds([X, X], {
|
@@ -20144,7 +20144,7 @@ const N_ = /* @__PURE__ */ hn(D_, [["render", V_]]), U_ = {
|
|
20144
20144
|
}), this.isSelectObj = !0;
|
20145
20145
|
return;
|
20146
20146
|
}
|
20147
|
-
const c =
|
20147
|
+
const c = Up(T).geometry.coordinates;
|
20148
20148
|
(k = this.map) == null || k.fitBounds([c, c], {
|
20149
20149
|
maxZoom: 15,
|
20150
20150
|
padding: 30
|
@@ -20266,7 +20266,7 @@ function $_(g, S, k, E, N, X) {
|
|
20266
20266
|
id: "maplibre-map",
|
20267
20267
|
ref: "maplibreMap",
|
20268
20268
|
class: "w-full",
|
20269
|
-
style:
|
20269
|
+
style: op({ height: k.height })
|
20270
20270
|
}, null, 4),
|
20271
20271
|
Vr(T, {
|
20272
20272
|
colors: N.colors,
|
@@ -20278,7 +20278,7 @@ function $_(g, S, k, E, N, X) {
|
|
20278
20278
|
}, null, 8, ["map", "baseLayers"])
|
20279
20279
|
]);
|
20280
20280
|
}
|
20281
|
-
const q_ = /* @__PURE__ */
|
20281
|
+
const q_ = /* @__PURE__ */ un(U_, [["render", $_]]), Z_ = {}, G_ = {
|
20282
20282
|
class: "flex-shrink-0 size-3.5",
|
20283
20283
|
xmlns: "http://www.w3.org/2000/svg",
|
20284
20284
|
width: "22",
|
@@ -20289,13 +20289,13 @@ const q_ = /* @__PURE__ */ hn(U_, [["render", $_]]), Z_ = {}, G_ = {
|
|
20289
20289
|
"stroke-width": "2",
|
20290
20290
|
"stroke-linecap": "round",
|
20291
20291
|
"stroke-linejoin": "round"
|
20292
|
-
}, H_ = /* @__PURE__ */
|
20292
|
+
}, H_ = /* @__PURE__ */ sp('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9), W_ = [
|
20293
20293
|
H_
|
20294
20294
|
];
|
20295
20295
|
function X_(g, S) {
|
20296
20296
|
return pt(), Ut("svg", G_, W_);
|
20297
20297
|
}
|
20298
|
-
const J_ = /* @__PURE__ */
|
20298
|
+
const J_ = /* @__PURE__ */ un(Z_, [["render", X_]]), K_ = {}, Y_ = {
|
20299
20299
|
xmlns: "http://www.w3.org/2000/svg",
|
20300
20300
|
width: "21",
|
20301
20301
|
height: "20",
|
@@ -20319,7 +20319,7 @@ const J_ = /* @__PURE__ */ hn(Z_, [["render", X_]]), K_ = {}, Y_ = {
|
|
20319
20319
|
function ny(g, S) {
|
20320
20320
|
return pt(), Ut("svg", Y_, ry);
|
20321
20321
|
}
|
20322
|
-
const sy = /* @__PURE__ */
|
20322
|
+
const sy = /* @__PURE__ */ un(K_, [["render", ny]]), oy = {}, ay = {
|
20323
20323
|
xmlns: "http://www.w3.org/2000/svg",
|
20324
20324
|
width: "21",
|
20325
20325
|
height: "20",
|
@@ -20343,7 +20343,7 @@ const sy = /* @__PURE__ */ hn(K_, [["render", ny]]), oy = {}, ay = {
|
|
20343
20343
|
function py(g, S) {
|
20344
20344
|
return pt(), Ut("svg", ay, dy);
|
20345
20345
|
}
|
20346
|
-
const fy = /* @__PURE__ */
|
20346
|
+
const fy = /* @__PURE__ */ un(oy, [["render", py]]), my = {}, gy = {
|
20347
20347
|
class: "shrink-0 size-3",
|
20348
20348
|
xmlns: "http://www.w3.org/2000/svg",
|
20349
20349
|
width: "24",
|
@@ -20361,7 +20361,7 @@ const fy = /* @__PURE__ */ hn(oy, [["render", py]]), my = {}, gy = {
|
|
20361
20361
|
function vy(g, S) {
|
20362
20362
|
return pt(), Ut("svg", gy, xy);
|
20363
20363
|
}
|
20364
|
-
const by = /* @__PURE__ */
|
20364
|
+
const by = /* @__PURE__ */ un(my, [["render", vy]]), wy = {
|
20365
20365
|
props: {
|
20366
20366
|
visible: { type: Boolean, default: () => !1 },
|
20367
20367
|
title: { type: String, default: () => "" },
|
@@ -20392,7 +20392,7 @@ const by = /* @__PURE__ */ hn(my, [["render", vy]]), wy = {
|
|
20392
20392
|
this.$emit("update:visible", !1), this.$emit("onClose");
|
20393
20393
|
}
|
20394
20394
|
}
|
20395
|
-
},
|
20395
|
+
}, jp = (g) => (Om("data-v-37405773"), g = g(), Vm(), g), Sy = { class: "vsTailwind ui-dialog__wrapper" }, Ty = { class: "w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50" }, Iy = { class: "py-2.5 px-4 flex justify-between items-center border-b" }, Py = { class: "font-medium text-gray-800" }, Ay = /* @__PURE__ */ jp(() => /* @__PURE__ */ Qe("span", { class: "sr-only" }, "Close", -1)), Cy = /* @__PURE__ */ jp(() => /* @__PURE__ */ Qe("svg", {
|
20396
20396
|
class: "flex-shrink-0 w-4 h-4",
|
20397
20397
|
xmlns: "http://www.w3.org/2000/svg",
|
20398
20398
|
width: "24",
|
@@ -20414,10 +20414,10 @@ const by = /* @__PURE__ */ hn(my, [["render", vy]]), wy = {
|
|
20414
20414
|
class: "flex justify-end gap-x-2"
|
20415
20415
|
};
|
20416
20416
|
function zy(g, S, k, E, N, X) {
|
20417
|
-
return pt(), cn(
|
20417
|
+
return pt(), cn(Bm, { to: "#modal" }, [
|
20418
20418
|
Vr(Nd, { name: "fade" }, {
|
20419
20419
|
default: Uo(() => [
|
20420
|
-
|
20420
|
+
ap(Qe("div", Sy, [
|
20421
20421
|
Qe("div", Ty, [
|
20422
20422
|
Vr(Nd, {
|
20423
20423
|
name: "content",
|
@@ -20428,7 +20428,7 @@ function zy(g, S, k, E, N, X) {
|
|
20428
20428
|
class: cl(["ui-dialog__modal opacity-1 transition-all flex flex-col bg-white border pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl", [X.checkSize]])
|
20429
20429
|
}, [
|
20430
20430
|
Qe("div", Iy, [
|
20431
|
-
Qe("h3", Py,
|
20431
|
+
Qe("h3", Py, hn(k.title), 1),
|
20432
20432
|
Qe("button", {
|
20433
20433
|
type: "button",
|
20434
20434
|
class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",
|
@@ -20447,23 +20447,23 @@ function zy(g, S, k, E, N, X) {
|
|
20447
20447
|
})
|
20448
20448
|
])
|
20449
20449
|
], 512), [
|
20450
|
-
[
|
20450
|
+
[lp, k.visible]
|
20451
20451
|
])
|
20452
20452
|
]),
|
20453
20453
|
_: 3
|
20454
20454
|
})
|
20455
20455
|
]);
|
20456
20456
|
}
|
20457
|
-
const Dy = /* @__PURE__ */
|
20457
|
+
const Dy = /* @__PURE__ */ un(wy, [["render", zy], ["__scopeId", "data-v-37405773"]]), Ly = Nm({
|
20458
20458
|
props: {
|
20459
20459
|
title: { type: String, default: () => "" },
|
20460
20460
|
table: { type: String, default: () => "" },
|
20461
|
-
rows: { type:
|
20462
|
-
initTotal: { type: String, default: () => "" },
|
20461
|
+
rows: { type: Object, default: () => null },
|
20462
|
+
initTotal: { type: [Number, String], default: () => "" },
|
20463
20463
|
colorAttr: { type: String, default: () => "" },
|
20464
20464
|
legendname: { type: String, default: () => "" },
|
20465
20465
|
maxBounds: {
|
20466
|
-
type:
|
20466
|
+
type: Array,
|
20467
20467
|
default: () => [
|
20468
20468
|
[22, 44.4],
|
20469
20469
|
[40, 52.5]
|
@@ -20472,7 +20472,7 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20472
20472
|
id: { type: String, default: () => "" },
|
20473
20473
|
isAutocomplete: { type: Boolean, default: () => !1 },
|
20474
20474
|
isAddressAutocomplete: { type: Boolean, default: () => !1 },
|
20475
|
-
zoom: { type: String, default: () => "13" },
|
20475
|
+
zoom: { type: [Number, String], default: () => "13" },
|
20476
20476
|
maskForSearch: { type: String, default: () => null },
|
20477
20477
|
basemap: { type: Array },
|
20478
20478
|
pointZoom: { type: String, default: () => "12" }
|
@@ -20509,7 +20509,7 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20509
20509
|
),
|
20510
20510
|
searchRegionResult: [],
|
20511
20511
|
searchAddressResult: [],
|
20512
|
-
selectedRow:
|
20512
|
+
selectedRow: null,
|
20513
20513
|
activeFilters: "",
|
20514
20514
|
isMapVisible: !0,
|
20515
20515
|
tabsIsVisible: !1,
|
@@ -20571,7 +20571,7 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20571
20571
|
}
|
20572
20572
|
g && this.selectedId && this.closeObjCard(), this.polyline = this.regionSelectValue.encoded_geom, this.getData();
|
20573
20573
|
const k = ((N = this.regionSelectValue) == null ? void 0 : N.geom) || $s.toGeoJSON(this.regionSelectValue.encoded_geom), E = this.map.getSource("region-search-id");
|
20574
|
-
if (this.currentBbox =
|
20574
|
+
if (this.currentBbox = Np(k), E)
|
20575
20575
|
E.setData({
|
20576
20576
|
type: "Feature",
|
20577
20577
|
geometry: k
|
@@ -20794,13 +20794,13 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20794
20794
|
let _e;
|
20795
20795
|
switch (T) {
|
20796
20796
|
case "Polygon":
|
20797
|
-
_e =
|
20797
|
+
_e = Fp(c);
|
20798
20798
|
break;
|
20799
20799
|
case "MultiPolygon":
|
20800
|
-
_e =
|
20800
|
+
_e = Op(c);
|
20801
20801
|
break;
|
20802
20802
|
case "MultiPoint":
|
20803
|
-
_e =
|
20803
|
+
_e = Bp(c);
|
20804
20804
|
break;
|
20805
20805
|
default:
|
20806
20806
|
(N = this.map) == null || N.fitBounds([c, c], {
|
@@ -20809,7 +20809,7 @@ const Dy = /* @__PURE__ */ hn(wy, [["render", zy], ["__scopeId", "data-v-3740577
|
|
20809
20809
|
}), this.isSelectObj = !0;
|
20810
20810
|
return;
|
20811
20811
|
}
|
20812
|
-
const ye =
|
20812
|
+
const ye = Up(_e).geometry.coordinates;
|
20813
20813
|
(X = this.map) == null || X.fitBounds([ye, ye], {
|
20814
20814
|
maxZoom: this.zoom,
|
20815
20815
|
padding: 30
|
@@ -20934,6 +20934,7 @@ function h0(g, S, k, E, N, X) {
|
|
20934
20934
|
const T = Wi("VsAutocompleteOption"), c = Wi("vs-autocomplete"), _e = Wi("VsTextMask"), ye = Wi("vs-text"), we = Wi("FilterIcon"), ae = Wi("VsFilter"), oe = Wi("VsDialog"), yt = Wi("VisibleMapIcon"), qe = Wi("HiddenMapIcon"), tt = Wi("CloseIcon"), Ve = Wi("NoData"), ft = Wi("VsPagination"), Ot = Wi("MapPortal");
|
20935
20935
|
return pt(), Ut("section", Ry, [
|
20936
20936
|
Qe("div", null, [
|
20937
|
+
Ud(hn(g.filtersParam) + " ", 1),
|
20937
20938
|
Qe("div", Fy, [
|
20938
20939
|
Qe("div", By, [
|
20939
20940
|
g.isAutocomplete ? (pt(), cn(c, {
|
@@ -21016,8 +21017,8 @@ function h0(g, S, k, E, N, X) {
|
|
21016
21017
|
onClick: S[2] || (S[2] = (...Je) => g.toggleFilterShown && g.toggleFilterShown(...Je))
|
21017
21018
|
}, [
|
21018
21019
|
Vr(we),
|
21019
|
-
|
21020
|
-
g.activeFiltersCount >= 1 ? (pt(), Ut("span", Oy,
|
21020
|
+
Ud(" Фільтри "),
|
21021
|
+
g.activeFiltersCount >= 1 ? (pt(), Ut("span", Oy, hn(g.activeFiltersCount), 1)) : Pr("", !0)
|
21021
21022
|
]),
|
21022
21023
|
Vr(oe, {
|
21023
21024
|
visible: g.isFilterVisible,
|
@@ -21045,6 +21046,8 @@ function h0(g, S, k, E, N, X) {
|
|
21045
21046
|
key: 0,
|
21046
21047
|
ref: "filter",
|
21047
21048
|
scheme: g.filters,
|
21049
|
+
urlSeparator: "true",
|
21050
|
+
history: !0,
|
21048
21051
|
closeFilterBtn: !0,
|
21049
21052
|
onFilterClose: g.closeFilterShown,
|
21050
21053
|
name: "filter",
|
@@ -21074,8 +21077,8 @@ function h0(g, S, k, E, N, X) {
|
|
21074
21077
|
])
|
21075
21078
|
}, [
|
21076
21079
|
Qe("h1", $y, [
|
21077
|
-
Qe("span", qy,
|
21078
|
-
Qe("span", Zy,
|
21080
|
+
Qe("span", qy, hn(g.title), 1),
|
21081
|
+
Qe("span", Zy, hn(g.total), 1),
|
21079
21082
|
Gy
|
21080
21083
|
]),
|
21081
21084
|
Qe("div", Hy, [
|
@@ -21084,9 +21087,9 @@ function h0(g, S, k, E, N, X) {
|
|
21084
21087
|
class: "mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full",
|
21085
21088
|
key: qt
|
21086
21089
|
}, [
|
21087
|
-
Qe("span", Xy,
|
21090
|
+
Qe("span", Xy, hn(g.getLabelById(bt)), 1),
|
21088
21091
|
Jy,
|
21089
|
-
Qe("span", Ky,
|
21092
|
+
Qe("span", Ky, hn(g.getOptionsLabelById(bt, Je)), 1),
|
21090
21093
|
Qe("button", {
|
21091
21094
|
type: "button",
|
21092
21095
|
class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
|
@@ -21136,7 +21139,7 @@ function h0(g, S, k, E, N, X) {
|
|
21136
21139
|
size: "medium",
|
21137
21140
|
onPageChange: g.handlePageChange,
|
21138
21141
|
backgroundColor: "#e5e7eb",
|
21139
|
-
borderedCellSelected:
|
21142
|
+
borderedCellSelected: !0,
|
21140
21143
|
pageSizes: [10, 20, 30],
|
21141
21144
|
onPageSizeChange: g.changeLimit
|
21142
21145
|
}, null, 8, ["total", "defaultPage", "pageSize", "onPageChange", "onPageSizeChange"])
|
@@ -21157,7 +21160,7 @@ function h0(g, S, k, E, N, X) {
|
|
21157
21160
|
isMapVisible: g.isMapVisible
|
21158
21161
|
})
|
21159
21162
|
], 2)) : Pr("", !0),
|
21160
|
-
|
21163
|
+
ap(Qe("div", a0, [
|
21161
21164
|
Qe("section", l0, [
|
21162
21165
|
Vr(Ot, {
|
21163
21166
|
height: "calc(100vh - 152px)",
|
@@ -21174,7 +21177,7 @@ function h0(g, S, k, E, N, X) {
|
|
21174
21177
|
}, null, 8, ["table", "filtersParam", "row", "legendname", "colorAttr", "maxBounds", "zoom", "basemap", "pointZoom"])
|
21175
21178
|
])
|
21176
21179
|
], 512), [
|
21177
|
-
[
|
21180
|
+
[lp, g.isMapVisible]
|
21178
21181
|
])
|
21179
21182
|
]),
|
21180
21183
|
Qe("div", c0, [
|
@@ -21183,12 +21186,12 @@ function h0(g, S, k, E, N, X) {
|
|
21183
21186
|
])
|
21184
21187
|
]);
|
21185
21188
|
}
|
21186
|
-
const
|
21187
|
-
g.component("VsPartsMap",
|
21189
|
+
const $p = /* @__PURE__ */ un(Ly, [["render", h0]]), u0 = (g) => {
|
21190
|
+
g.component("VsPartsMap", $p);
|
21188
21191
|
}, d0 = {
|
21189
21192
|
install: u0,
|
21190
21193
|
components: {
|
21191
|
-
VsPartsMap:
|
21194
|
+
VsPartsMap: $p
|
21192
21195
|
}
|
21193
21196
|
};
|
21194
21197
|
typeof window < "u" && (window.PartsMap = d0);
|