{"version":3,"sources":["node_modules/@arcgis/core/core/HeapSort.js","node_modules/@arcgis/core/core/PooledArray.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*/\nvar o;\n!function (o) {\n const t = (o, t, n, e) => {\n let i = t,\n c = t;\n const l = n >>> 1,\n r = o[i - 1];\n for (; c <= l;) {\n c = i << 1, c < n && e(o[c - 1], o[c]) < 0 && ++c;\n const t = o[c - 1];\n if (e(t, r) <= 0) break;\n o[i - 1] = t, i = c;\n }\n o[i - 1] = r;\n },\n n = (o, t) => o < t ? -1 : o > t ? 1 : 0;\n function e(o, e, i, c) {\n void 0 === e && (e = 0), void 0 === i && (i = o.length), void 0 === c && (c = n);\n for (let n = i >>> 1; n > e; n--) t(o, n, i, c);\n const l = e + 1;\n for (let n = i - 1; n > e; n--) {\n const i = o[e];\n o[e] = o[n], o[n] = i, t(o, l, n, c);\n }\n }\n function* i(o, e, i, c) {\n void 0 === e && (e = 0), void 0 === i && (i = o.length), void 0 === c && (c = n);\n for (let n = i >>> 1; n > e; n--) t(o, n, i, c), yield;\n const l = e + 1;\n for (let n = i - 1; n > e; n--) {\n const i = o[e];\n o[e] = o[n], o[n] = i, t(o, l, n, c), yield;\n }\n }\n o.sort = e, o.iterableSort = i;\n}(o || (o = {}));\nconst t = o;\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 { PositionHint as t, indexOf as h, removeUnorderedMany as i } from \"./arrayUtils.js\";\nimport s from \"./HeapSort.js\";\nconst a = 1.5,\n e = 1.1;\nclass l {\n constructor(h) {\n this.data = [], this._length = 0, this._allocator = void 0, this._deallocator = () => null, this._shrink = () => {}, this._hint = new t(), h && (h.initialSize && (this.data = new Array(h.initialSize)), h.allocator && (this._allocator = h.allocator), void 0 !== h.deallocator && (this._deallocator = h.deallocator), h.shrink && (this._shrink = () => n(this)));\n }\n toArray() {\n return this.data.slice(0, this.length);\n }\n filter(t) {\n const h = new Array();\n for (let i = 0; i < this._length; i++) {\n const s = this.data[i];\n t(s) && h.push(s);\n }\n return h;\n }\n at(t) {\n if ((t = Math.trunc(t) || 0) < 0 && (t += this._length), !(t < 0 || t >= this._length)) return this.data[t];\n }\n includes(t, h) {\n const i = this.data.indexOf(t, h);\n return -1 !== i && i < this.length;\n }\n get length() {\n return this._length;\n }\n set length(t) {\n if (t > this._length) {\n if (this._allocator) {\n for (; this._length < t;) this.data[this._length++] = this._allocator(this.data[this._length]);\n return;\n }\n this._length = t;\n } else {\n if (this._deallocator) for (let h = t; h < this._length; ++h) this.data[h] = this._deallocator(this.data[h]);\n this._length = t, this._shrink();\n }\n }\n clear() {\n this.length = 0;\n }\n prune() {\n this.clear(), this.data = [];\n }\n push(t) {\n this.data[this._length++] = t;\n }\n pushArray(t, h = t.length) {\n for (let i = 0; i < h; i++) this.data[this._length++] = t[i];\n }\n fill(t, h) {\n for (let i = 0; i < h; i++) this.data[this._length++] = t;\n }\n pushNew() {\n this._allocator && (this.data[this.length] = this._allocator(this.data[this.length]));\n const t = this.data[this._length];\n return ++this._length, t;\n }\n unshift(t) {\n this.data.unshift(t), this._length++, n(this);\n }\n pop() {\n if (0 === this.length) return;\n const t = this.data[this.length - 1];\n return this.length = this.length - 1, this._shrink(), t;\n }\n remove(t) {\n const i = h(this.data, t, this.length, this._hint);\n if (-1 !== i) return this.data.splice(i, 1), this.length = this.length - 1, t;\n }\n removeUnordered(t) {\n return this.removeUnorderedIndex(h(this.data, t, this.length, this._hint));\n }\n removeUnorderedIndex(t) {\n if (!(t >= this.length || t < 0)) return this.swapElements(t, this.length - 1), this.pop();\n }\n removeUnorderedMany(t, h = t.length, s) {\n this.length = i(this.data, t, this.length, h, this._hint, s), this._shrink();\n }\n front() {\n if (0 !== this.length) return this.data[0];\n }\n back() {\n if (0 !== this.length) return this.data[this.length - 1];\n }\n swapElements(t, h) {\n if (t >= this.length || h >= this.length || t === h) return;\n const i = this.data[t];\n this.data[t] = this.data[h], this.data[h] = i;\n }\n sort(t) {\n s.sort(this.data, 0, this.length, t);\n }\n iterableSort(t) {\n return s.iterableSort(this.data, 0, this.length, t);\n }\n some(t, h) {\n for (let i = 0; i < this.length; ++i) if (t.call(h, this.data[i], i, this.data)) return !0;\n return !1;\n }\n find(t, h) {\n const {\n data: i,\n length: s\n } = this;\n for (let a = 0; a < s; ++a) if (t.call(h, i[a])) return i[a];\n }\n filterInPlace(t, h) {\n let i = 0;\n for (let s = 0; s < this._length; ++s) {\n const a = this.data[s];\n t.call(h, a, s, this.data) && (this.data[s] = this.data[i], this.data[i] = a, i++);\n }\n if (this._deallocator) for (let s = i; s < this._length; s++) this.data[s] = this._deallocator(this.data[s]);\n return this._length = i, this._shrink(), this;\n }\n forAll(t, h) {\n const {\n data: i,\n length: s\n } = this;\n for (let a = 0; a < s; ++a) t.call(h, i[a], a, i);\n }\n forEach(t, h) {\n this.data.slice(0, this.length).forEach(t, h);\n }\n map(t, h) {\n const i = new Array(this.length);\n for (let s = 0; s < this.length; ++s) i[s] = t.call(h, this.data[s], s, this.data);\n return i;\n }\n reduce(t, h) {\n let i = h;\n for (let s = 0; s < this.length; ++s) i = t(i, this.data[s], s, this.data);\n return i;\n }\n has(t) {\n const h = this.length,\n i = this.data;\n for (let s = 0; s < h; ++s) if (i[s] === t) return !0;\n return !1;\n }\n *[Symbol.iterator]() {\n for (let t = 0; t < this.length; t++) yield this.data[t];\n }\n}\nfunction n(t) {\n t.data.length > a * t.length && (t.data.length = Math.floor(t.length * e));\n}\nexport { l as default };"],"mappings":"sDAIA,IAAIA,GACH,SAAUA,EAAG,CACZ,IAAM,EAAI,CAACA,EAAGC,EAAGC,EAAGC,IAAM,CACtB,IAAIC,EAAIH,EACNI,EAAIJ,EACAK,EAAIJ,IAAM,EACdK,EAAIP,EAAEI,EAAI,CAAC,EACb,KAAOC,GAAKC,GAAI,CACdD,EAAID,GAAK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