{"version":3,"sources":["node_modules/@arcgis/core/views/2d/tiling/TileQueue.js","node_modules/@arcgis/core/views/2d/tiling/TileCache.js","node_modules/@arcgis/core/views/2d/tiling/TileStrategy.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*/\nimport { _ as e } from \"../../../chunks/tslib.es6.js\";\nimport t from \"../../../core/Accessor.js\";\nimport { getOrCreateMapValue as s } from \"../../../core/MapUtils.js\";\nimport { destroyMaybe as o } from \"../../../core/maybe.js\";\nimport { someSet as r } from \"../../../core/SetUtils.js\";\nimport { property as i } from \"../../../core/accessorSupport/decorators/property.js\";\nimport \"../../../core/has.js\";\nimport \"../../../core/Logger.js\";\nimport \"../../../core/RandomLCG.js\";\nimport { subclass as c } from \"../../../core/accessorSupport/decorators/subclass.js\";\nimport { distance as u } from \"../../../core/libs/gl-matrix-2/math/vec2.js\";\nimport { QueueProcessor as n } from \"../../support/QueueProcessor.js\";\nconst l = [0, 0];\nlet h = class extends t {\n constructor(e) {\n super(e), this._keyToItem = new Map(), this._tilesByScale = new Map(), this.concurrency = 6;\n }\n initialize() {\n const {\n concurrency: e,\n process: t,\n scheduler: s,\n priority: o\n } = this;\n this._queue = new n({\n concurrency: e,\n scheduler: s,\n priority: o,\n process: (e, s) => {\n const o = this._keyToItem.get(e);\n return t(o, {\n signal: s\n });\n },\n peeker: e => this._peek(e)\n });\n }\n destroy() {\n this.clear(), this._queue = o(this._queue);\n }\n get length() {\n return this._queue ? this._queue.length : 0;\n }\n abort(e) {\n const t = \"string\" == typeof e ? e : e.id;\n this._queue.abort(t);\n }\n clear() {\n this._queue.clear(), this._keyToItem.clear(), this._tilesByScale.clear();\n }\n has(e) {\n return \"string\" == typeof e ? this._keyToItem.has(e) : this._keyToItem.has(e.id);\n }\n pause() {\n this._queue.pause();\n }\n push(e) {\n const t = e.key.id;\n if (this._queue.has(t)) return this._queue.get(t);\n const o = this._queue.push(t),\n r = this.tileInfoView.getTileScale(e.key),\n i = s(this._tilesByScale, r, () => new Set()),\n c = () => {\n i.delete(e.key), 0 === i.size && this._tilesByScale.delete(r), this._keyToItem.delete(t);\n };\n return i.add(e.key), this._keyToItem.set(t, e), o.then(c, c), o;\n }\n reset() {\n this._queue.reset();\n }\n resume() {\n this._queue.resume();\n }\n _peek(e) {\n if (!this.state) return e.values().next().value;\n const t = new Set();\n for (const r of e) t.add(this._keyToItem.get(r).key);\n const s = this.state.scale;\n let o,\n i = Number.POSITIVE_INFINITY;\n for (const [c, u] of this._tilesByScale) {\n if (r(u, e => t.has(e))) {\n const e = Math.abs(c - s);\n e < i && (o = u, i = e);\n }\n }\n return this._getClosestTileKey(o, e).id;\n }\n _getClosestTileKey(e, t) {\n const s = this.tileInfoView,\n o = this.state.center;\n let r,\n i = Number.POSITIVE_INFINITY;\n for (const c of e) if (t.has(c.id)) {\n s.getTileCoords(l, c);\n const e = u(l, o);\n e < i && (i = e, r = c);\n }\n return r;\n }\n};\ne([i({\n constructOnly: !0\n})], h.prototype, \"concurrency\", void 0), e([i({\n constructOnly: !0\n})], h.prototype, \"priority\", void 0), e([i({\n constructOnly: !0\n})], h.prototype, \"process\", void 0), e([i({\n constructOnly: !0\n})], h.prototype, \"scheduler\", void 0), e([i()], h.prototype, \"state\", void 0), e([i({\n constructOnly: !0\n})], h.prototype, \"tileInfoView\", void 0), h = e([c(\"esri.views.2d.tiling.TileQueue\")], h);\nconst p = h;\nexport { p 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 { squaredDistance as e } from \"../../../core/libs/gl-matrix-2/math/vec2.js\";\nclass t {\n constructor(e, t, i) {\n this.maxSize = e, this._tileInfoView = t, this._removedFunc = i, this._tilePerId = new Map(), this._tileKeysPerLevel = [];\n }\n clear() {\n this._tilePerId.clear(), this._tileKeysPerLevel = [];\n }\n has(e) {\n return this._tilePerId.has(e);\n }\n get(e) {\n return this._tilePerId.get(e);\n }\n pop(e) {\n const t = this._tilePerId.get(e);\n if (!t) return;\n const r = t.key.level,\n s = this._tileKeysPerLevel[r];\n i(this._tilePerId, e);\n for (let i = 0; i < s.length; i++) if (s[i].id === e) {\n s.splice(i, 1);\n break;\n }\n return t.visible = !0, t;\n }\n add(e) {\n e.visible = !1;\n const t = e.key,\n i = t.id;\n if (this._tilePerId.has(i)) return;\n this._tilePerId.set(i, e);\n const r = t.level;\n this._tileKeysPerLevel[r] || (this._tileKeysPerLevel[r] = []), this._tileKeysPerLevel[r].push(t);\n }\n prune(e, t, i) {\n let r = this._tilePerId.size;\n if (r <= this.maxSize) return;\n let s = this._tileKeysPerLevel.length - 1;\n for (; r > this.maxSize && s >= 0;) s !== e && (r = this._pruneAroundCenterTile(r, t, i, s)), s--;\n r > this.maxSize && (r = this._pruneAroundCenterTile(r, t, i, e));\n }\n _pruneAroundCenterTile(t, i, r, s) {\n const l = this._tileKeysPerLevel[s];\n if (!l || 0 === l.length) return t;\n const {\n size: h,\n origin: n\n } = this._tileInfoView.tileInfo,\n o = r * h[0],\n _ = r * h[1],\n d = [0, 0],\n c = [0, 0];\n for (l.sort((t, r) => (d[0] = n.x + o * (t.col + .5), d[1] = n.y - _ * (t.row + .5), c[0] = n.x + o * (r.col + .5), c[1] = n.y - _ * (r.row + .5), e(d, i) - e(c, i))); l.length > 0;) {\n const e = l.pop();\n if (this._removeTile(e.id), --t === this.maxSize) break;\n }\n return t;\n }\n _removeTile(e) {\n const t = this._tilePerId.get(e);\n this._removedFunc && t && this._removedFunc(t), i(this._tilePerId, e);\n }\n}\nfunction i(e, t) {\n e.delete(t);\n}\nexport { t 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 { create as e, contains as i } from \"../../../geometry/support/aaBoundingRect.js\";\nimport t from \"./TileCache.js\";\nimport s from \"./TileCoverage.js\";\nimport l from \"./TileKey.js\";\nconst o = new l(0, 0, 0, 0),\n a = new Map(),\n h = [],\n c = [];\nclass r {\n constructor(e) {\n this._previousScale = Number.POSITIVE_INFINITY, this.cachePolicy = \"keep\", this.coveragePolicy = \"closest\", this.resampling = !0, this.tileIndex = new Map(), this.tiles = [], this.buffer = 192, this.acquireTile = e.acquireTile, this.releaseTile = e.releaseTile, this.tileInfoView = e.tileInfoView, null != e.resampling && (this.resampling = e.resampling), e.cachePolicy && (this.cachePolicy = e.cachePolicy), e.coveragePolicy && (this.coveragePolicy = e.coveragePolicy), null != e.buffer && (this.buffer = e.buffer), e.cacheSize && (this._tileCache = new t(e.cacheSize, this.tileInfoView, e => {\n this.releaseTile(e);\n }));\n }\n destroy() {\n this.tileIndex.clear();\n }\n update(e) {\n const {\n resampling: i,\n tileIndex: t\n } = this,\n {\n scale: l,\n center: r,\n resolution: n\n } = e.state,\n {\n minScale: f,\n maxScale: d\n } = this.tileInfoView,\n u = !e.stationary && l > this._previousScale;\n if (this._previousScale = l, !i && (l > f || l < d)) return this.tiles.length = 0, void this.clear();\n const p = this.tileInfoView.getTileCoverage(e.state, this.buffer, this.resampling, this.coveragePolicy);\n if (!p) return this.tiles.length = 0, void this.clear();\n const {\n spans: y,\n lodInfo: g\n } = p,\n {\n level: I\n } = g;\n this.tiles.length = 0, t.forEach(e => e.visible = !0);\n let v = 0,\n m = 0;\n if (y.length > 0) for (const {\n row: s,\n colFrom: h,\n colTo: c\n } of y) for (let e = h; e <= c; e++) {\n v++;\n const i = o.set(I, s, g.normalizeCol(e), g.getWorldForColumn(e)).id;\n let l = t.get(i);\n if (l) l.isReady ? (a.set(i, l), m++) : u || this._addParentTile(i, a);else {\n if (this._tileCache?.has(i)) {\n if (l = this._tileCache.pop(i), this.tileIndex.set(i, l), l.isReady) {\n a.set(i, l), m++;\n continue;\n }\n } else l = this.acquireTile(o), this.tileIndex.set(i, l);\n u || this._addParentTile(i, a);\n }\n }\n const T = m === v;\n for (const [s, _] of t) {\n if (a.has(s)) continue;\n o.set(s);\n const e = this.tileInfoView.intersects(p, o),\n i = \"purge\" === this.cachePolicy ? o.level !== I : o.level > I;\n !e || !u && T ? !i && e || h.push(_) : _.isReady ? i && \"purge\" === this.cachePolicy && this._hasReadyAncestor(o, I) ? h.push(_) : c.push(_) : i && h.push(_);\n }\n for (const s of c) s.isReady && a.set(s.key.id, s);\n for (const s of h) this._tileCache ? this._tileCache.add(s) : this.releaseTile(s), t.delete(s.key.id);\n for (const s of a.values()) this.tiles.push(s);\n for (const s of t.values()) a.has(s.key.id) || (s.visible = !1);\n this._tileCache?.prune(I, r, n), s.pool.release(p), c.length = 0, h.length = 0, a.clear();\n }\n clear() {\n const {\n tileIndex: e\n } = this;\n for (const i of e.values()) this.releaseTile(i);\n e.clear();\n }\n refresh(e) {\n for (const i of this.tileIndex.values()) e(i);\n this._tileCache?.clear();\n }\n updateCacheSize(e) {\n this._tileCache && (this._tileCache.maxSize = e);\n }\n _addParentTile(e, i) {\n let t = e,\n s = null;\n for (; t = this.tileInfoView.getTileParentId(t), t;) if (this.tileIndex.has(t)) {\n if (s = this.tileIndex.get(t), s?.isReady) {\n i.has(s.key.id) || i.set(s.key.id, s);\n break;\n }\n } else if (this._tileCache?.has(t) && (s = this._tileCache.pop(t), this.tileIndex.set(t, s), s?.isReady)) {\n i.has(s.key.id) || i.set(s.key.id, s);\n break;\n }\n }\n _hasReadyAncestor(t, s) {\n const l = e();\n this.tileInfoView.getTileBounds(l, t, !0);\n for (const o of this.tileIndex.values()) if (o.isReady && o.key.level >= s && o.key.level < t.level) {\n const t = e();\n if (this.tileInfoView.getTileBounds(t, o.key, !0), i(t, l)) return !0;\n }\n return !1;\n }\n}\nexport { r as default };"],"mappings":"2YAgBA,IAAMA,EAAI,CAAC,EAAG,CAAC,EACXC,EAAI,cAAcC,CAAE,CACtB,YAAYC,EAAG,CACb,MAAMA,CAAC,EAAG,KAAK,WAAa,IAAI,IAAO,KAAK,cAAgB,IAAI,IAAO,KAAK,YAAc,CAC5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,EAAG,CACnB,IAAII,EAAI,EACNW,EAAI,KACN,KAAOX,EAAI,KAAK,aAAa,gBAAgBA,CAAC,EAAGA,GAAI,GAAI,KAAK,UAAU,IAAIA,CAAC,GAC3E,GAAIW,EAAI,KAAK,UAAU,IAAIX,CAAC,EAAGW,GAAG,QAAS,CACzC,EAAE,IAAIA,EAAE,IAAI,EAAE,GAAK,EAAE,IAAIA,EAAE,IAAI,GAAIA,CAAC,EACpC,KACF,UACS,KAAK,YAAY,IAAIX,CAAC,IAAMW,EAAI,KAAK,WAAW,IAAIX,CAAC,EAAG,KAAK,UAAU,IAAIA,EAAGW,CAAC,EAAGA,GAAG,SAAU,CACxG,EAAE,IAAIA,EAAE,IAAI,EAAE,GAAK,EAAE,IAAIA,EAAE,IAAI,GAAIA,CAAC,EACpC,KACF,CACF,CACA,kBAAkBX,EAAGW,EAAG,CACtB,IAAMV,EAAIG,EAAE,EACZ,KAAK,aAAa,cAAcH,EAAGD,EAAG,EAAE,EACxC,QAAWN,KAAK,KAAK,UAAU,OAAO,EAAG,GAAIA,EAAE,SAAWA,EAAE,IAAI,OAASiB,GAAKjB,EAAE,IAAI,MAAQM,EAAE,MAAO,CACnG,IAAMA,EAAII,EAAE,EACZ,GAAI,KAAK,aAAa,cAAcJ,EAAGN,EAAE,IAAK,EAAE,EAAGqB,EAAEf,EAAGC,CAAC,EAAG,MAAO,EACrE,CACA,MAAO,EACT,CACF","names":["l","h","b","e","t","s","o","_","u","r","i","c","n","m","a","p","t","i","r","s","l","h","n","o","_","d","c","b","e","o","e","a","h","c","r","t","l","f","d","u","p","y","g","I","v","m","s","i","T","_","R"],"x_google_ignoreList":[0,1,2]}