{"version":3,"sources":["node_modules/@arcgis/core/layers/support/imageUtils.js","node_modules/@arcgis/core/layers/support/SpriteSource.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/TilemapIndex.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/TilemapRequest.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/style/VectorTilesRequestManager.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/style/VectorTileSource.js","node_modules/@arcgis/core/layers/support/vectorTileLayerLoader.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/tileInfoUtils.js","node_modules/@arcgis/core/layers/VectorTileLayer.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nlet A = null;\nfunction o(o) {\n if (A) return A;\n const l = {\n lossy: \"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA\",\n lossless: \"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==\",\n alpha: \"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==\",\n animation: \"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA\"\n };\n return A = new Promise(A => {\n const n = new Image();\n n.onload = () => {\n n.onload = n.onerror = null, A(n.width > 0 && n.height > 0);\n }, n.onerror = () => {\n n.onload = n.onerror = null, A(!1);\n }, n.src = \"data:image/webp;base64,\" + l[o];\n }), A;\n}\nexport { o as checkWebPSupport };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport t from \"../../request.js\";\nimport e from \"../../core/Error.js\";\nimport i from \"../../core/Logger.js\";\nimport { isArrayBuffer as s, isUint8ClampedArray as r } from \"../../core/typedArrayUtil.js\";\nimport { urlToObject as a, objectToQuery as o } from \"../../core/urlUtils.js\";\nconst h = 1.15;\nclass n {\n constructor(t, e) {\n this._spriteSource = t, this._maxTextureSize = e, this.devicePixelRatio = 1, this._spriteImageFormat = \"png\", this._isRetina = !1, this._spritesData = {}, this.image = null, this.width = null, this.height = null, this.loadStatus = \"not-loaded\", \"url\" === t.type && t.spriteFormat && (this._spriteImageFormat = t.spriteFormat), t.pixelRatio && (this.devicePixelRatio = t.pixelRatio), this.baseURL = t.spriteUrl;\n }\n get spriteNames() {\n const t = [];\n for (const e in this._spritesData) t.push(e);\n return t.sort(), t;\n }\n getSpriteInfo(t) {\n return this._spritesData ? this._spritesData[t] : null;\n }\n async load(t) {\n if (this.baseURL) {\n this.loadStatus = \"loading\";\n try {\n await this._loadSprites(t), this.loadStatus = \"loaded\";\n } catch {\n this.loadStatus = \"failed\";\n }\n } else this.loadStatus = \"failed\";\n }\n async _loadSprites(t) {\n this._isRetina = this.devicePixelRatio > h;\n const {\n width: s,\n height: r,\n data: a,\n json: o\n } = await this._getSpriteData(this._spriteSource, t),\n n = Object.keys(o);\n if (!n || 0 === n.length || !a) return this._spritesData = this.image = null, void (this.width = this.height = 0);\n this._spritesData = o, this.width = s, this.height = r;\n const d = Math.max(this._maxTextureSize, 4096);\n if (s > d || r > d) {\n const t = `Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${d} pixels}`;\n throw i.getLogger(\"esri.layers.support.SpriteSource\").error(t), new e(\"SpriteSource\", t);\n }\n let p;\n for (let e = 0; e < a.length; e += 4) p = a[e + 3] / 255, a[e] = a[e] * p, a[e + 1] = a[e + 1] * p, a[e + 2] = a[e + 2] * p;\n this.image = a;\n }\n async _getSpriteData(i, n) {\n if (\"image\" === i.type) {\n let t, a;\n if (this.devicePixelRatio < h) {\n if (!i.spriteSource1x) throw new e(\"SpriteSource\", \"no image data provided for low resolution sprites!\");\n t = i.spriteSource1x.image, a = i.spriteSource1x.json;\n } else {\n if (!i.spriteSource2x) throw new e(\"SpriteSource\", \"no image data provided for high resolution sprites!\");\n t = i.spriteSource2x.image, a = i.spriteSource2x.json;\n }\n return \"width\" in t && \"height\" in t && \"data\" in t && (s(t.data) || r(t.data)) ? {\n width: t.width,\n height: t.height,\n data: new Uint8Array(t.data),\n json: a\n } : {\n ...d(t),\n json: a\n };\n }\n const p = a(this.baseURL),\n l = p.query ? \"?\" + o(p.query) : \"\",\n g = this._isRetina ? \"@2x\" : \"\",\n u = `${p.path}${g}.${this._spriteImageFormat}${l}`,\n c = `${p.path}${g}.json${l}`,\n [m, S] = await Promise.all([t(c, n), t(u, {\n responseType: \"image\",\n ...n\n })]);\n return {\n ...d(S.data),\n json: m.data\n };\n }\n}\nfunction d(t) {\n const e = document.createElement(\"canvas\"),\n i = e.getContext(\"2d\");\n e.width = t.width, e.height = t.height, i.drawImage(t, 0, 0, t.width, t.height);\n const s = i.getImageData(0, 0, t.width, t.height);\n return {\n width: t.width,\n height: t.height,\n data: new Uint8Array(s.data)\n };\n}\nexport { n as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport e from \"../../../../request.js\";\nimport { throwIfAborted as t } from \"../../../../core/promiseUtils.js\";\nimport r from \"../../tiling/TileKey.js\";\nclass l {\n constructor(e) {\n this.url = e;\n }\n destroy() {\n this._tileIndexPromise = null;\n }\n async fetchTileIndex() {\n return this._tileIndexPromise || (this._tileIndexPromise = e(this.url).then(e => e.data.index)), this._tileIndexPromise;\n }\n async dataKey(e, r) {\n const l = await this.fetchTileIndex();\n return t(r), this._getIndexedDataKey(l, e);\n }\n _getIndexedDataKey(e, t) {\n const l = [t];\n if (t.level < 0 || t.row < 0 || t.col < 0 || t.row >> t.level > 0 || t.col >> t.level > 0) return null;\n let i = t;\n for (; 0 !== i.level;) i = new r(i.level - 1, i.row >> 1, i.col >> 1, i.world), l.push(i);\n let o,\n s,\n n = e,\n a = l.pop();\n if (1 === n) return a;\n for (; l.length;) if (o = l.pop(), s = (1 & o.col) + ((1 & o.row) << 1), n) {\n if (0 === n[s]) {\n a = null;\n break;\n }\n if (1 === n[s]) {\n a = o;\n break;\n }\n a = o, n = n[s];\n }\n return a;\n }\n}\nexport { l as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport e from \"../../../../request.js\";\nimport { destroyMaybe as t } from \"../../../../core/maybe.js\";\nimport { isAbortError as i } from \"../../../../core/promiseUtils.js\";\nimport r from \"../../tiling/TileKey.js\";\nclass l {\n constructor(e, t) {\n this._tilemap = e, this._tileIndexUrl = t;\n }\n destroy() {\n this._tilemap = t(this._tilemap), this._tileIndexPromise = null;\n }\n async fetchTileIndex(t) {\n return this._tileIndexPromise || (this._tileIndexPromise = e(this._tileIndexUrl, {\n query: {\n ...t?.query\n }\n }).then(e => e.data.index)), this._tileIndexPromise;\n }\n dataKey(e, t) {\n const {\n level: l,\n row: s,\n col: o\n } = e,\n n = new r(e);\n return this._tilemap.fetchAvailabilityUpsample(l, s, o, n, t).then(() => (n.world = e.world, n)).catch(e => {\n if (i(e)) throw e;\n return null;\n });\n }\n}\nexport { l as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport t from \"../../../../../request.js\";\nimport { clone as r } from \"../../../../../core/lang.js\";\nimport { getOrCreateMapValue as o } from \"../../../../../core/MapUtils.js\";\nimport { isAborted as e, onAbort as s } from \"../../../../../core/promiseUtils.js\";\nimport { urlToObject as i, addQueryParameters as n } from \"../../../../../core/urlUtils.js\";\nclass l {\n constructor(t) {\n this._tileUrl = t, this._promise = null, this._abortController = null, this._abortOptions = [];\n }\n getData(t) {\n (null == this._promise || e(this._abortController?.signal)) && (this._promise = this._makeRequest(this._tileUrl));\n const o = this._abortOptions;\n return o.push(t), s(t, () => {\n o.every(t => e(t)) && this._abortController.abort();\n }), this._promise.then(t => r(t));\n }\n async _makeRequest(r) {\n this._abortController = new AbortController();\n const {\n data: o\n } = await t(r, {\n responseType: \"array-buffer\",\n signal: this._abortController.signal\n });\n return o;\n }\n}\nconst a = new Map();\nfunction c(t, r, o, e, s) {\n const l = i(t),\n a = l.query;\n if (a) for (const [i, n] of Object.entries(a)) switch (n) {\n case \"{x}\":\n a[i] = e.toString();\n break;\n case \"{y}\":\n a[i] = o.toString();\n break;\n case \"{z}\":\n a[i] = r.toString();\n }\n const c = l.path;\n return p(n(c.replaceAll(/\\{z\\}/gi, r.toString()).replaceAll(/\\{y\\}/gi, o.toString()).replaceAll(/\\{x\\}/gi, e.toString()), {\n ...l.query\n }), s);\n}\nfunction p(t, r) {\n return o(a, t, () => new l(t)).getData(r).finally(() => a.delete(t));\n}\nexport { c as request };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { clone as t } from \"../../../../../core/lang.js\";\nimport { urlToObject as e, isAbsolute as i, join as l, addQueryParameters as s } from \"../../../../../core/urlUtils.js\";\nimport r from \"../../../../../geometry/Extent.js\";\nimport o from \"../../../../../layers/support/TileInfo.js\";\nimport { TilemapCache as n } from \"../../../../../layers/support/TilemapCache.js\";\nimport a from \"../TilemapIndex.js\";\nimport p from \"../TilemapRequest.js\";\nimport { request as h } from \"./VectorTilesRequestManager.js\";\nclass m {\n constructor(h, m, u) {\n this.tilemap = null, this.tileInfo = null, this.capabilities = null, this.fullExtent = null, this.initialExtent = null, this.name = h, this.sourceUrl = m;\n const f = e(this.sourceUrl),\n c = t(u),\n x = c.tiles;\n if (f) for (let t = 0; t < x.length; t++) {\n const r = e(x[t]);\n r && (i(r.path) || (r.path = l(f.path, r.path)), x[t] = s(r.path, {\n ...f.query,\n ...r.query\n }));\n }\n this.tileServers = x;\n const d = u.capabilities && u.capabilities.split(\",\").map(t => t.toLowerCase().trim()),\n y = !0 === u?.exportTilesAllowed,\n T = !0 === d?.includes(\"tilemap\"),\n I = y && u.hasOwnProperty(\"maxExportTilesCount\") ? u.maxExportTilesCount : 0;\n this.capabilities = {\n operations: {\n supportsExportTiles: y,\n supportsTileMap: T\n },\n exportTiles: y ? {\n maxExportTilesCount: +I\n } : null\n }, this.tileInfo = o.fromJSON(c.tileInfo);\n const g = u.tileMap ? s(l(f.path, u.tileMap), f.query ?? {}) : null;\n T ? (this.type = \"vector-tile\", this.tilemap = new p(new n({\n layer: {\n parsedUrl: f,\n tileInfo: this.tileInfo\n },\n minLOD: c.minLOD ?? this.tileInfo.lods[0].level,\n maxLOD: c.maxLOD ?? this.tileInfo.lods[this.tileInfo.lods.length - 1].level\n }), g)) : g && (this.tilemap = new a(g)), this.fullExtent = r.fromJSON(u.fullExtent), this.initialExtent = r.fromJSON(u.initialExtent);\n }\n destroy() {\n this.tilemap?.destroy();\n }\n async getRefKey(t, e) {\n return this.tilemap ? this.tilemap.dataKey(t, e) : t;\n }\n requestTile(t, e, i, l) {\n const s = this.tileServers[e % this.tileServers.length];\n return h(s, t, e, i, l);\n }\n isCompatibleWith(t) {\n const e = this.tileInfo,\n i = t.tileInfo;\n if (!e.spatialReference.equals(i.spatialReference)) return !1;\n if (!e.origin.equals(i.origin)) return !1;\n if (Math.round(e.dpi) !== Math.round(i.dpi)) return !1;\n const l = e.lods,\n s = i.lods,\n r = Math.min(l.length, s.length);\n for (let o = 0; o < r; o++) {\n const t = l[o],\n e = s[o];\n if (t.level !== e.level || Math.round(t.scale) !== Math.round(e.scale)) return !1;\n }\n return !0;\n }\n}\nexport { m as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport e from \"../../request.js\";\nimport { clone as t } from \"../../core/lang.js\";\nimport { throwIfAborted as r } from \"../../core/promiseUtils.js\";\nimport { isProtocolRelative as o, isAbsolute as s, join as l, removeTrailingSlash as n, normalize as i, removeFile as u, getAppBaseUrl as c, addQueryParameters as a } from \"../../core/urlUtils.js\";\nimport { wgs84 as f, webMercator as p } from \"../../geometry/support/spatialReferenceUtils.js\";\nimport { geographicToWebMercator as y } from \"../../geometry/support/webMercatorUtils.js\";\nimport m from \"../../views/2d/engine/vectorTiles/style/VectorTileSource.js\";\nasync function x(e, t) {\n const r = {\n source: null,\n sourceBase: null,\n sourceUrl: null,\n validatedSource: null,\n style: null,\n styleBase: null,\n styleUrl: null,\n sourceNameToSource: {},\n primarySourceName: \"\",\n spriteFormat: \"png\"\n },\n [o, s] = \"string\" == typeof e ? [e, null] : [null, e.jsonUrl];\n await S(r, \"esri\", e, s, t);\n return {\n layerDefinition: r.validatedSource,\n url: o,\n serviceUrl: r.sourceUrl,\n style: r.style,\n styleUrl: r.styleUrl,\n spriteUrl: r.style.sprite && d(r.styleBase, r.style.sprite),\n spriteFormat: r.spriteFormat,\n glyphsUrl: r.style.glyphs && d(r.styleBase, r.style.glyphs),\n sourceNameToSource: r.sourceNameToSource,\n primarySourceName: r.primarySourceName\n };\n}\nfunction d(...e) {\n let t;\n for (const r of e) if (null != r) if (o(r)) {\n if (t) {\n const e = t.split(\"://\")[0];\n t = e + \":\" + r.trim();\n }\n } else t = s(r) ? r : l(t, r);\n return t ? n(t) : void 0;\n}\nasync function S(t, o, s, l, n) {\n let u, c, a;\n if (r(n), \"string\" == typeof s) {\n const t = i(s);\n a = await e(t, {\n ...n,\n responseType: \"json\",\n query: {\n f: \"json\",\n ...n?.query\n }\n }), a.ssl && (u && (u = u.replace(/^http:/i, \"https:\")), c && (c = c.replace(/^http:/i, \"https:\"))), u = t, c = t;\n } else null != s && (a = {\n data: s\n }, u = s.jsonUrl || null, c = l);\n const f = a?.data;\n if (w(f)) return t.styleUrl = u || null, j(t, f, c, n);\n if (U(f)) return t.sourceUrl ? g(t, f, c, !1, o, n) : (t.sourceUrl = u || null, g(t, f, c, !0, o, n));\n throw new Error(\"You must specify the URL or the JSON for a service or for a style.\");\n}\nfunction h(e) {\n return \"object\" == typeof e && !!e && \"tilejson\" in e && null != e.tilejson;\n}\nfunction w(e) {\n return !!e && \"sources\" in e && !!e.sources;\n}\nfunction U(e) {\n return !w(e);\n}\nasync function j(e, t, r, o) {\n const s = r ? u(r) : c();\n e.styleBase = s, e.style = t, t[\"sprite-format\"] && \"webp\" === t[\"sprite-format\"].toLowerCase() && (e.spriteFormat = \"webp\");\n const l = [];\n if (t.sources && t.sources.esri) {\n const r = t.sources.esri;\n r.url ? await S(e, \"esri\", d(s, r.url), void 0, o) : l.push(S(e, \"esri\", r, s, o));\n }\n for (const n of Object.keys(t.sources)) \"esri\" !== n && \"vector\" === t.sources[n].type && (t.sources[n].url ? l.push(S(e, n, d(s, t.sources[n].url), void 0, o)) : t.sources[n].tiles && l.push(S(e, n, t.sources[n], s, o)));\n await Promise.all(l);\n}\nasync function g(e, t, r, o, s, l) {\n const i = r ? n(r) + \"/\" : c(),\n u = v(t),\n f = new m(s, a(i, l?.query ?? {}), u);\n if (!o && e.primarySourceName in e.sourceNameToSource) {\n const t = e.sourceNameToSource[e.primarySourceName];\n if (!t.isCompatibleWith(f)) return;\n null != f.fullExtent && (null != t.fullExtent ? t.fullExtent.union(f.fullExtent) : t.fullExtent = f.fullExtent.clone()), t.tileInfo && f.tileInfo && t.tileInfo.lods.length < f.tileInfo.lods.length && (t.tileInfo = f.tileInfo);\n }\n if (o && (e.sourceBase = i, e.source = t, e.validatedSource = u, e.primarySourceName = s), e.sourceNameToSource[s] = f, !h(e) && \"defaultStyles\" in t && !e.style) {\n if (null == t.defaultStyles) throw new Error();\n return \"string\" == typeof t.defaultStyles ? S(e, \"\", d(i, t.defaultStyles, \"root.json\"), void 0, l) : S(e, \"\", t.defaultStyles, d(i, \"root.json\"), l);\n }\n}\nfunction v(e) {\n const r = 512;\n if (N(e)) {\n const t = e?.tileInfo;\n return null != t && (null == t.rows && (t.rows = r), null == t.cols && (t.cols = r)), e;\n }\n const o = {\n xmin: -20037507.067161843,\n ymin: -20037507.067161843,\n xmax: 20037507.067161843,\n ymax: 20037507.067161843,\n spatialReference: {\n wkid: 102100,\n latestWkid: 3857\n }\n };\n let s = null;\n if (h(e)) {\n const {\n bounds: r\n } = e;\n if (r) {\n const e = y({\n x: r[0],\n y: r[1],\n spatialReference: t(f)\n }),\n o = y({\n x: r[2],\n y: r[3],\n spatialReference: t(f)\n });\n s = {\n xmin: e.x,\n ymin: e.y,\n xmax: o.x,\n ymax: o.y,\n spatialReference: t(p)\n };\n }\n }\n null === s && (s = o);\n let l = 78271.51696400007,\n n = 295828763.7957775;\n const i = [],\n u = e.hasOwnProperty(\"maxzoom\") && null != e.maxzoom ? +e.maxzoom : 22,\n c = 0,\n a = 0;\n for (let t = 0; t <= u; t++) i.push({\n level: t,\n scale: n,\n resolution: l\n }), l /= 2, n /= 2;\n return {\n capabilities: \"TilesOnly\",\n initialExtent: s,\n fullExtent: o,\n minScale: c,\n maxScale: a,\n tiles: e.tiles,\n tileInfo: {\n rows: r,\n cols: r,\n dpi: 96,\n format: \"pbf\",\n origin: {\n x: -20037508.342787,\n y: 20037508.342787\n },\n lods: i,\n spatialReference: t(p)\n }\n };\n}\nfunction N(e) {\n return e.hasOwnProperty(\"tileInfo\");\n}\nexport { x as loadMetadata };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport l from \"../../../../geometry/Point.js\";\nimport e from \"../../../../layers/support/LOD.js\";\nimport n from \"../../../../layers/support/TileInfo.js\";\nconst s = 1e-6;\nfunction r(l, e) {\n if (l === e) return !0;\n if (null == l && null != e) return !1;\n if (null != l && null == e) return !1;\n if (null == l || null == e) return !1;\n if (!l.spatialReference.equals(e.spatialReference) || l.dpi !== e.dpi) return !1;\n const n = l.origin,\n r = e.origin;\n if (Math.abs(n.x - r.x) >= s || Math.abs(n.y - r.y) >= s) return !1;\n let o, t;\n l.lods[0].scale > e.lods[0].scale ? (o = l, t = e) : (t = l, o = e);\n for (let i = o.lods[0].scale; i >= t.lods[t.lods.length - 1].scale - s; i /= 2) if (Math.abs(i - t.lods[0].scale) < s) return !0;\n return !1;\n}\nfunction o(s, r) {\n if (s === r) return s;\n if (null == s && null != r) return r;\n if (null != s && null == r) return s;\n if (null == s || null == r) return null;\n const o = s.size[0],\n t = s.format,\n i = s.dpi,\n u = new l({\n x: s.origin.x,\n y: s.origin.y\n }),\n a = s.spatialReference,\n f = s.lods[0].scale > r.lods[0].scale ? s.lods[0] : r.lods[0],\n d = s.lods[s.lods.length - 1].scale <= r.lods[r.lods.length - 1].scale ? s.lods[s.lods.length - 1] : r.lods[r.lods.length - 1],\n c = f.scale,\n p = f.resolution,\n g = d.scale,\n h = [];\n let m = c,\n y = p,\n x = 0;\n for (; m > g;) h.push(new e({\n level: x,\n resolution: y,\n scale: m\n })), x++, m /= 2, y /= 2;\n return new n({\n size: [o, o],\n dpi: i,\n format: t || \"pbf\",\n origin: u,\n lods: h,\n spatialReference: a\n });\n}\nexport { r as areSchemasOverlapping, o as unionTileInfos };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../chunks/tslib.es6.js\";\nimport t from \"../request.js\";\nimport { createTask as r } from \"../core/asyncUtils.js\";\nimport i from \"../core/Error.js\";\nimport { clone as o } from \"../core/lang.js\";\nimport { MultiOriginJSONMixin as s } from \"../core/MultiOriginJSONSupport.js\";\nimport { throwIfAbortError as l } from \"../core/promiseUtils.js\";\nimport { urlToObject as a, addQueryParameters as n, isProtocolRelative as p, normalize as y } from \"../core/urlUtils.js\";\nimport { property as u } from \"../core/accessorSupport/decorators/property.js\";\nimport \"../core/has.js\";\nimport \"../core/Logger.js\";\nimport { reader as c } from \"../core/accessorSupport/decorators/reader.js\";\nimport { subclass as m } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { writer as h } from \"../core/accessorSupport/decorators/writer.js\";\nimport d from \"../geometry/Extent.js\";\nimport S from \"../geometry/SpatialReference.js\";\nimport f from \"./Layer.js\";\nimport { APIKeyMixin as g } from \"./mixins/APIKeyMixin.js\";\nimport { ArcGISCachedService as v } from \"./mixins/ArcGISCachedService.js\";\nimport { ArcGISService as j } from \"./mixins/ArcGISService.js\";\nimport { BlendLayer as _ } from \"./mixins/BlendLayer.js\";\nimport { CustomParametersMixin as w } from \"./mixins/CustomParametersMixin.js\";\nimport { OperationalLayer as b } from \"./mixins/OperationalLayer.js\";\nimport { PortalLayer as T } from \"./mixins/PortalLayer.js\";\nimport { RefreshableLayer as x } from \"./mixins/RefreshableLayer.js\";\nimport { ScaleRangeLayer as L } from \"./mixins/ScaleRangeLayer.js\";\nimport { checkWebPSupport as U } from \"./support/imageUtils.js\";\nimport I from \"./support/SpriteSource.js\";\nimport R from \"./support/TileInfo.js\";\nimport { TilemapCache as O } from \"./support/TilemapCache.js\";\nimport { loadMetadata as P } from \"./support/vectorTileLayerLoader.js\";\nimport { createForItemRead as M } from \"../portal/support/jsonContext.js\";\nimport { parseKnownArcGISOnlineDomain as C } from \"../portal/support/urlUtils.js\";\nimport { e as V } from \"../chunks/persistableUrlUtils.js\";\nimport { areSchemasOverlapping as D, unionTileInfos as k } from \"../views/2d/engine/vectorTiles/tileInfoUtils.js\";\nimport E from \"../views/2d/engine/vectorTiles/style/StyleRepository.js\";\nimport { getWebGLCapabilities as N } from \"../views/webgl/capabilities.js\";\nlet B = class extends _(L(x(v(j(b(T(w(g(s(f)))))))))) {\n constructor(...e) {\n super(...e), this._spriteSourceMap = new Map(), this.currentStyleInfo = null, this.isReference = null, this.operationalLayerType = \"VectorTileLayer\", this.path = null, this.refreshInterval = 0, this.style = null, this.tilemapCache = null, this.type = \"vector-tile\", this.url = null;\n }\n normalizeCtorArgs(e, t) {\n return \"string\" == typeof e ? {\n url: e,\n ...t\n } : e;\n }\n destroy() {\n if (this.sourceNameToSource) for (const e of Object.values(this.sourceNameToSource)) e?.destroy();\n this.primarySource?.destroy(), this._spriteSourceMap.clear();\n }\n async prefetchResources(e) {\n await this.loadSpriteSource(globalThis.devicePixelRatio || 1, e);\n }\n load(e) {\n const r = this.loadFromPortal({\n supportedTypes: [\"Vector Tile Service\"],\n supportsData: !1\n }, e).catch(l).then(async () => {\n if (!this.portalItem?.id) return;\n const r = `${this.portalItem.itemCdnUrl}/resources/styles/root.json`;\n (await t(r, {\n ...e,\n query: {\n f: \"json\",\n ...this.customParameters,\n token: this.apiKey\n }\n })).data && this.read({\n url: r\n }, M(this.portalItem, \"portal-item\"));\n }).catch(l).then(() => this._loadStyle(e));\n return this.addResolvingPromise(r), Promise.resolve(this);\n }\n get attributionDataUrl() {\n const e = this.currentStyleInfo,\n t = e?.serviceUrl && a(e.serviceUrl);\n if (!t) return null;\n const r = this._getDefaultAttribution(t.path);\n return r ? n(r, {\n ...this.customParameters,\n token: this.apiKey\n }) : null;\n }\n get capabilities() {\n const e = this.primarySource;\n return e ? e.capabilities : {\n operations: {\n supportsExportTiles: !1,\n supportsTileMap: !1\n },\n exportTiles: null\n };\n }\n get fullExtent() {\n return this.primarySource?.fullExtent || null;\n }\n get initialExtent() {\n return this.primarySource?.initialExtent || null;\n }\n get parsedUrl() {\n return this.serviceUrl ? a(this.serviceUrl) : null;\n }\n get serviceUrl() {\n return this.currentStyleInfo?.serviceUrl || null;\n }\n get spatialReference() {\n return this.tileInfo?.spatialReference ?? null;\n }\n get styleUrl() {\n return this.currentStyleInfo?.styleUrl || null;\n }\n writeStyleUrl(e, t) {\n e && p(e) && (e = `https:${e}`);\n const r = C(e);\n t.styleUrl = V(e, r);\n }\n get tileInfo() {\n const e = [];\n for (const r in this.sourceNameToSource) e.push(this.sourceNameToSource[r]);\n let t = this.primarySource?.tileInfo || new R();\n if (e.length > 1) for (let r = 0; r < e.length; r++) D(t, e[r].tileInfo) && (t = k(t, e[r].tileInfo));\n return t;\n }\n readTilemapCache(e, t) {\n const r = t.capabilities?.includes(\"Tilemap\");\n return r ? new O({\n layer: this\n }) : null;\n }\n readVersion(e, t) {\n return t.version ? parseFloat(t.version) : parseFloat(t.currentVersion);\n }\n async loadSpriteSource(e = 1, t) {\n if (!this._spriteSourceMap.has(e)) {\n const r = N().maxTextureSize,\n i = this.currentStyleInfo?.spriteUrl ? n(this.currentStyleInfo.spriteUrl, {\n ...this.customParameters,\n token: this.apiKey\n }) : null,\n o = new I({\n type: \"url\",\n spriteUrl: i,\n pixelRatio: e,\n spriteFormat: this.currentStyleInfo?.spriteFormat\n }, r);\n await o.load(t), this._spriteSourceMap.set(e, o);\n }\n return this._spriteSourceMap.get(e);\n }\n async setSpriteSource(e, t) {\n if (!e) return null;\n const r = N().maxTextureSize,\n i = e.spriteUrl,\n o = i ? n(i, {\n ...this.customParameters,\n token: this.apiKey\n }) : null;\n if (!o && \"url\" === e.type) return null;\n const s = new I(e, r);\n try {\n await s.load(t);\n const r = e.pixelRatio || 1;\n return this._spriteSourceMap.clear(), this._spriteSourceMap.set(r, s), o && this.currentStyleInfo && (this.currentStyleInfo.spriteUrl = o), this.emit(\"spriteSource-change\", {\n spriteSource: s\n }), s;\n } catch (a) {\n l(a);\n }\n return null;\n }\n async loadStyle(e, t) {\n const i = e || this.style || this.url;\n return this._loadingTask && \"string\" == typeof i && this.url === i || (this._loadingTask?.abort(), this._loadingTask = r(e => (this._spriteSourceMap.clear(), this._getSourceAndStyle(i, {\n signal: e\n })), t)), this._loadingTask.promise;\n }\n getStyleLayerId(e) {\n return this.styleRepository.getStyleLayerId(e);\n }\n getStyleLayerIndex(e) {\n return this.styleRepository.getStyleLayerIndex(e);\n }\n getPaintProperties(e) {\n return o(this.styleRepository?.getPaintProperties(e));\n }\n setPaintProperties(e, t) {\n const r = this.styleRepository.isPainterDataDriven(e);\n this.styleRepository.setPaintProperties(e, t);\n const i = this.styleRepository.isPainterDataDriven(e);\n this.emit(\"paint-change\", {\n layer: e,\n paint: t,\n isDataDriven: r || i\n });\n }\n getStyleLayer(e) {\n return o(this.styleRepository.getStyleLayer(e));\n }\n setStyleLayer(e, t) {\n this.styleRepository.setStyleLayer(e, t), this.emit(\"style-layer-change\", {\n layer: e,\n index: t\n });\n }\n deleteStyleLayer(e) {\n this.styleRepository.deleteStyleLayer(e), this.emit(\"delete-style-layer\", {\n layer: e\n });\n }\n getLayoutProperties(e) {\n return o(this.styleRepository.getLayoutProperties(e));\n }\n setLayoutProperties(e, t) {\n this.styleRepository.setLayoutProperties(e, t), this.emit(\"layout-change\", {\n layer: e,\n layout: t\n });\n }\n setStyleLayerVisibility(e, t) {\n this.styleRepository.setStyleLayerVisibility(e, t), this.emit(\"style-layer-visibility-change\", {\n layer: e,\n visibility: t\n });\n }\n getStyleLayerVisibility(e) {\n return this.styleRepository.getStyleLayerVisibility(e);\n }\n write(e, t) {\n return t?.origin && !this.styleUrl ? (t.messages && t.messages.push(new i(\"vectortilelayer:unsupported\", `VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`, {\n layer: this\n })), null) : super.write(e, t);\n }\n getTileUrl(e, t, r) {\n return null;\n }\n async _getSourceAndStyle(e, t) {\n if (!e) throw new Error(\"invalid style!\");\n const r = await P(e, {\n ...t,\n query: {\n ...this.customParameters,\n token: this.apiKey\n }\n });\n if (\"webp\" === r.spriteFormat) {\n (await U(\"lossy\")) || (r.spriteFormat = \"png\");\n }\n this._set(\"currentStyleInfo\", {\n ...r\n }), \"string\" == typeof e ? (this.url = e, this.style = null) : (this.url = null, this.style = e), this._set(\"sourceNameToSource\", r.sourceNameToSource), this._set(\"primarySource\", r.sourceNameToSource[r.primarySourceName]), this._set(\"styleRepository\", new E(r.style)), this.read(r.layerDefinition, {\n origin: \"service\"\n }), this.emit(\"load-style\");\n }\n _getDefaultAttribution(e) {\n const t = e.match(/^https?:\\/\\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\\.arcgis\\.com(\\/[^/]+)?\\/arcgis\\/rest\\/services\\/([^/]+(\\/[^/]+)*)\\/vectortileserver/i),\n r = [\"OpenBasemap_v2\", \"OpenBasemap_GCS_v2\", \"OpenStreetMap_v2\", \"OpenStreetMap_Daylight_v2\", \"OpenStreetMap_Export_v2\", \"OpenStreetMap_FTS_v2\", \"OpenStreetMap_GCS_v2\", \"World_Basemap\", \"World_Basemap_v2\", \"World_Basemap_Export_v2\", \"World_Basemap_GCS_v2\", \"World_Basemap_WGS84\", \"World_Contours_v2\", \"World_Hillshade_v2\"];\n if (!t) return;\n const i = t[2] && t[2].toLowerCase();\n if (!i) return;\n const o = t[1] || \"\";\n for (const s of r) if (s.toLowerCase().includes(i)) return y(`//static.arcgis.com/attribution/Vector${o}/${s}`);\n }\n async _loadStyle(e) {\n return this._loadingTask?.promise ?? this.loadStyle(null, e);\n }\n};\ne([u({\n readOnly: !0\n})], B.prototype, \"attributionDataUrl\", null), e([u({\n type: [\"show\", \"hide\"]\n})], B.prototype, \"listMode\", void 0), e([u({\n json: {\n read: !0,\n write: !0\n }\n})], B.prototype, \"blendMode\", void 0), e([u({\n readOnly: !0,\n json: {\n read: !1\n }\n})], B.prototype, \"capabilities\", null), e([u({\n readOnly: !0\n})], B.prototype, \"currentStyleInfo\", void 0), e([u({\n json: {\n read: !1\n },\n readOnly: !0,\n type: d\n})], B.prototype, \"fullExtent\", null), e([u({\n json: {\n read: !1\n },\n readOnly: !0,\n type: d\n})], B.prototype, \"initialExtent\", null), e([u({\n type: Boolean,\n json: {\n read: !1,\n write: {\n enabled: !0,\n overridePolicy: () => ({\n enabled: !1\n })\n }\n }\n})], B.prototype, \"isReference\", void 0), e([u({\n type: [\"VectorTileLayer\"]\n})], B.prototype, \"operationalLayerType\", void 0), e([u({\n readOnly: !0\n})], B.prototype, \"parsedUrl\", null), e([u({\n type: String,\n json: {\n origins: {\n \"web-scene\": {\n read: !0,\n write: !0\n }\n },\n read: !1\n }\n})], B.prototype, \"path\", void 0), e([u({\n type: Number,\n json: {\n write: !1,\n origins: {\n \"web-map\": {\n write: !1\n },\n \"web-scene\": {\n write: !1\n },\n \"portal-item\": {\n write: !1\n }\n }\n }\n})], B.prototype, \"refreshInterval\", void 0), e([u()], B.prototype, \"style\", void 0), e([u({\n readOnly: !0\n})], B.prototype, \"serviceUrl\", null), e([u({\n type: S,\n readOnly: !0\n})], B.prototype, \"spatialReference\", null), e([u({\n readOnly: !0\n})], B.prototype, \"styleRepository\", void 0), e([u({\n readOnly: !0\n})], B.prototype, \"sourceNameToSource\", void 0), e([u({\n readOnly: !0\n})], B.prototype, \"primarySource\", void 0), e([u({\n type: String,\n readOnly: !0,\n json: {\n write: {\n ignoreOrigin: !0\n },\n origins: {\n \"web-document\": {\n write: {\n ignoreOrigin: !0,\n isRequired: !0\n }\n }\n }\n }\n})], B.prototype, \"styleUrl\", null), e([h([\"portal-item\", \"web-document\"], \"styleUrl\")], B.prototype, \"writeStyleUrl\", null), e([u({\n json: {\n read: !1,\n origins: {\n service: {\n read: !1\n }\n }\n },\n readOnly: !0,\n type: R\n})], B.prototype, \"tileInfo\", null), e([u()], B.prototype, \"tilemapCache\", void 0), e([c(\"service\", \"tilemapCache\", [\"capabilities\", \"tileInfo\"])], B.prototype, \"readTilemapCache\", null), e([u({\n json: {\n read: !1\n },\n readOnly: !0,\n value: \"vector-tile\"\n})], B.prototype, \"type\", void 0), e([u({\n json: {\n origins: {\n \"web-document\": {\n read: {\n source: \"styleUrl\"\n }\n },\n \"portal-item\": {\n read: {\n source: \"url\"\n }\n }\n },\n write: !1,\n read: !1\n }\n})], B.prototype, \"url\", void 0), e([u({\n readOnly: !0\n})], B.prototype, \"version\", void 0), e([c(\"version\", [\"version\", \"currentVersion\"])], B.prototype, \"readVersion\", null), B = e([m(\"esri.layers.VectorTileLayer\")], B);\nconst A = B;\nexport { A as default };"],"mappings":"+8CAIA,IAAIA,EAAI,KACR,SAASC,GAAEA,EAAG,CACZ,GAAID,EAAG,OAAOA,EACd,IAAME,EAAI,CACR,MAAO,2DACP,SAA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GACV,KAAMN,CACR,CAAC,CAAC,EAAGrB,EAAE,UAAW,WAAY,IAAI,EAAGY,EAAE,CAACe,EAAE,CAAC,EAAG3B,EAAE,UAAW,eAAgB,MAAM,EAAGY,EAAE,CAACU,EAAE,UAAW,eAAgB,CAAC,eAAgB,UAAU,CAAC,CAAC,EAAGtB,EAAE,UAAW,mBAAoB,IAAI,EAAGY,EAAE,CAACe,EAAE,CAC/L,KAAM,CACJ,KAAM,EACR,EACA,SAAU,GACV,MAAO,aACT,CAAC,CAAC,EAAG3B,EAAE,UAAW,OAAQ,MAAM,EAAGY,EAAE,CAACe,EAAE,CACtC,KAAM,CACJ,QAAS,CACP,eAAgB,CACd,KAAM,CACJ,OAAQ,UACV,CACF,EACA,cAAe,CACb,KAAM,CACJ,OAAQ,KACV,CACF,CACF,EACA,MAAO,GACP,KAAM,EACR,CACF,CAAC,CAAC,EAAG3B,EAAE,UAAW,MAAO,MAAM,EAAGY,EAAE,CAACe,EAAE,CACrC,SAAU,EACZ,CAAC,CAAC,EAAG3B,EAAE,UAAW,UAAW,MAAM,EAAGY,EAAE,CAACU,EAAE,UAAW,CAAC,UAAW,gBAAgB,CAAC,CAAC,EAAGtB,EAAE,UAAW,cAAe,IAAI,EAAGA,EAAIY,EAAE,CAACC,GAAE,6BAA6B,CAAC,EAAGb,CAAC,EACrK,IAAM8B,GAAI9B","names":["A","o","l","n","h","n","e","__async","s","r","a","o","d","t","p","i","__spreadProps","__spreadValues","I","l","v","g","u","c","m","S","U","l","e","__async","U","s","t","i","o","n","l","e","t","u","__async","U","__spreadValues","s","o","n","b","l","c","o","m","t","a","r","__async","U","e","s","I","i","p","Et","__spreadValues","m","h","u","f","I","c","a","x","t","r","Y","V","Et","__spreadValues","d","y","T","z","g","l","w","e","__async","s","o","x","__async","o","s","S","d","pt","Y","V","jt","t","l","n","u","c","a","K","U","__spreadProps","__spreadValues","f","w","j","g","h","Rt","r","i","v","m","Et","N","e","R","s","r","l","e","n","t","i","o","u","j","a","f","d","c","p","g","h","m","y","x","z","B","l","t","f","p","b","j","e","i","S","__spreadValues","__async","r","a","U","__spreadProps","I","Et","pt","s","x","z","o","T","n","d","K","m","w","g","A"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}