{"version":3,"sources":["node_modules/@arcgis/core/layers/support/LOD.js","node_modules/@arcgis/core/layers/support/TileInfo.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 { JSONSupport as o } from \"../../core/JSONSupport.js\";\nimport { property as r } from \"../../core/accessorSupport/decorators/property.js\";\nimport { Integer as t } from \"../../core/accessorSupport/ensureType.js\";\nimport \"../../core/RandomLCG.js\";\nimport \"../../core/has.js\";\nimport { subclass as s } from \"../../core/accessorSupport/decorators/subclass.js\";\nvar i;\nlet l = i = class extends o {\n constructor(e) {\n super(e), this.cols = null, this.level = 0, this.levelValue = null, this.origin = null, this.resolution = 0, this.rows = null, this.scale = 0;\n }\n clone() {\n return new i({\n cols: this.cols,\n level: this.level,\n levelValue: this.levelValue,\n resolution: this.resolution,\n rows: this.rows,\n scale: this.scale\n });\n }\n};\ne([r({\n json: {\n write: !0,\n origins: {\n \"web-document\": {\n read: !1,\n write: !1\n },\n \"portal-item\": {\n read: !1,\n write: !1\n }\n }\n }\n})], l.prototype, \"cols\", void 0), e([r({\n type: t,\n json: {\n write: !0\n }\n})], l.prototype, \"level\", void 0), e([r({\n type: String,\n json: {\n write: !0\n }\n})], l.prototype, \"levelValue\", void 0), e([r({\n json: {\n write: !0,\n origins: {\n \"web-document\": {\n read: !1,\n write: !1\n },\n \"portal-item\": {\n read: !1,\n write: !1\n }\n }\n }\n})], l.prototype, \"origin\", void 0), e([r({\n type: Number,\n json: {\n write: !0\n }\n})], l.prototype, \"resolution\", void 0), e([r({\n json: {\n write: !0,\n origins: {\n \"web-document\": {\n read: !1,\n write: !1\n },\n \"portal-item\": {\n read: !1,\n write: !1\n }\n }\n }\n})], l.prototype, \"rows\", void 0), e([r({\n type: Number,\n json: {\n write: !0\n }\n})], l.prototype, \"scale\", void 0), l = i = e([s(\"esri.layers.support.LOD\")], l);\nconst p = l;\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 { _ as e } from \"../../chunks/tslib.es6.js\";\nimport { JSONMap as t } from \"../../core/jsonMap.js\";\nimport { JSONSupport as o } from \"../../core/JSONSupport.js\";\nimport { getMetersPerUnitForSR as s } from \"../../core/unitUtils.js\";\nimport { property as r } from \"../../core/accessorSupport/decorators/property.js\";\nimport { Integer as i } from \"../../core/accessorSupport/ensureType.js\";\nimport \"../../core/RandomLCG.js\";\nimport \"../../core/has.js\";\nimport { reader as l } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as n } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { writer as p } from \"../../core/accessorSupport/decorators/writer.js\";\nimport a from \"../../geometry/Point.js\";\nimport c from \"../../geometry/SpatialReference.js\";\nimport { create as u } from \"../../geometry/support/aaBoundingRect.js\";\nimport { isValid as f, getInfo as h, isGeographic as m, equals as d } from \"../../geometry/support/spatialReferenceUtils.js\";\nimport { project as g } from \"../../geometry/support/webMercatorUtils.js\";\nimport y from \"./LOD.js\";\nimport { TileKey as v } from \"./TileKey.js\";\nvar w;\nconst x = new t({\n PNG: \"png\",\n PNG8: \"png8\",\n PNG24: \"png24\",\n PNG32: \"png32\",\n JPEG: \"jpg\",\n JPG: \"jpg\",\n DIB: \"dib\",\n TIFF: \"tiff\",\n EMF: \"emf\",\n PS: \"ps\",\n PDF: \"pdf\",\n GIF: \"gif\",\n SVG: \"svg\",\n SVGZ: \"svgz\",\n Mixed: \"mixed\",\n MIXED: \"mixed\",\n LERC: \"lerc\",\n LERC2D: \"lerc2d\",\n RAW: \"raw\",\n pbf: \"pbf\"\n});\nlet j = w = class extends o {\n static create(e = {}) {\n const {\n resolutionFactor: t = 1,\n scales: o,\n size: r = 256,\n spatialReference: i = c.WebMercator,\n numLODs: l = 24\n } = e;\n if (!f(i)) {\n const e = [];\n if (o) for (let t = 0; t < o.length; t++) {\n const s = o[t];\n e.push(new y({\n level: t,\n scale: s,\n resolution: s\n }));\n } else {\n let t = 5e-4;\n for (let o = l - 1; o >= 0; o--) e.unshift(new y({\n level: o,\n scale: t,\n resolution: t\n })), t *= 2;\n }\n return new w({\n dpi: 96,\n lods: e,\n origin: new a(0, 0, i),\n size: [r, r],\n spatialReference: i\n });\n }\n const n = h(i),\n p = e.origin ? new a({\n x: e.origin.x,\n y: e.origin.y,\n spatialReference: i\n }) : new a(n ? {\n x: n.origin[0],\n y: n.origin[1],\n spatialReference: i\n } : {\n x: 0,\n y: 0,\n spatialReference: i\n }),\n u = 96,\n d = 1 / (s(i) * 39.37 * u),\n g = [];\n if (o) for (let s = 0; s < o.length; s++) {\n const e = o[s],\n t = e * d;\n g.push(new y({\n level: s,\n scale: e,\n resolution: t\n }));\n } else {\n let e = m(i) ? 512 / r * 591657527.5917094 : 256 / r * 591657527.591555;\n const o = Math.ceil(l / t);\n g.push(new y({\n level: 0,\n scale: e,\n resolution: e * d\n }));\n for (let s = 1; s < o; s++) {\n const o = e / 2 ** t,\n r = o * d;\n g.push(new y({\n level: s,\n scale: o,\n resolution: r\n })), e = o;\n }\n }\n return new w({\n dpi: u,\n lods: g,\n origin: p,\n size: [r, r],\n spatialReference: i\n });\n }\n constructor(e) {\n super(e), this.dpi = 96, this.format = null, this.origin = null, this.size = null, this.spatialReference = null;\n }\n get isWrappable() {\n const {\n spatialReference: e,\n origin: t\n } = this;\n if (e && t) {\n const o = h(e);\n return e.isWrappable && !!o && Math.abs(o.origin[0] - t.x) <= o.dx;\n }\n return !1;\n }\n readOrigin(e, t) {\n return a.fromJSON({\n spatialReference: t.spatialReference,\n ...e\n });\n }\n set lods(e) {\n let t = 0,\n o = 0;\n const s = [],\n r = this._levelToLOD = {};\n e && (t = -1 / 0, o = 1 / 0, e.forEach(e => {\n s.push(e.scale), t = e.scale > t ? e.scale : t, o = e.scale < o ? e.scale : o, r[e.level] = e;\n })), this._set(\"scales\", s), this._set(\"lods\", e), this._initializeUpsampleLevels();\n }\n readSize(e, t) {\n return [t.cols, t.rows];\n }\n writeSize(e, t) {\n t.cols = e[0], t.rows = e[1];\n }\n zoomToScale(e) {\n const t = this.scales;\n if (e <= 0) return t[0];\n if (e >= t.length - 1) return t[t.length - 1];\n const o = Math.floor(e),\n s = o + 1;\n return t[o] / (t[o] / t[s]) ** (e - o);\n }\n scaleToZoom(e) {\n const t = this.scales,\n o = t.length - 1;\n let s = 0;\n for (; s < o; s++) {\n const o = t[s],\n r = t[s + 1];\n if (o <= e) return s;\n if (r === e) return s + 1;\n if (o > e && r < e) return s + Math.log(o / e) / Math.log(o / r);\n }\n return s;\n }\n tileAt(e, t, o, s) {\n const r = this.lodAt(e);\n if (!r) return null;\n let i, l;\n if (\"number\" == typeof t) i = t, l = o;else if (d(t.spatialReference, this.spatialReference)) i = t.x, l = t.y, s = o;else {\n const e = g(t, this.spatialReference);\n if (null == e) return null;\n i = e.x, l = e.y, s = o;\n }\n const n = r.resolution * this.size[0],\n p = r.resolution * this.size[1];\n return s || (s = new v(null, 0, 0, 0, u())), s.level = e, s.row = Math.floor((this.origin.y - l) / p + .001), s.col = Math.floor((i - this.origin.x) / n + .001), this.updateTileInfo(s), s;\n }\n updateTileInfo(e, t = w.ExtrapolateOptions.NONE) {\n let o = this.lodAt(e.level);\n if (!o && t === w.ExtrapolateOptions.POWER_OF_TWO) {\n const t = this.lods[this.lods.length - 1];\n t.level < e.level && (o = t);\n }\n if (!o) return;\n const s = e.level - o.level,\n r = o.resolution * this.size[0] / 2 ** s,\n i = o.resolution * this.size[1] / 2 ** s;\n e.id = `${e.level}/${e.row}/${e.col}`, e.extent || (e.extent = u()), e.extent[0] = this.origin.x + e.col * r, e.extent[1] = this.origin.y - (e.row + 1) * i, e.extent[2] = e.extent[0] + r, e.extent[3] = e.extent[1] + i;\n }\n upsampleTile(e) {\n const t = this._upsampleLevels[e.level];\n return !(!t || -1 === t.parentLevel) && (e.level = t.parentLevel, e.row = Math.floor(e.row / t.factor + .001), e.col = Math.floor(e.col / t.factor + .001), this.updateTileInfo(e), !0);\n }\n getTileBounds(e, t) {\n const o = this.lodAt(t.level);\n if (null == o) return null;\n const {\n resolution: s\n } = o,\n r = s * this.size[0],\n i = s * this.size[1];\n return e[0] = this.origin.x + t.col * r, e[1] = this.origin.y - (t.row + 1) * i, e[2] = e[0] + r, e[3] = e[1] + i, e;\n }\n lodAt(e) {\n return this._levelToLOD?.[e] ?? null;\n }\n clone() {\n return w.fromJSON(this.write({}));\n }\n getCompatibleForVTL(e) {\n if (this.size[0] !== this.size[1] || 256 === this.size[0] && 512 === e) return null;\n const t = (512 === this.size[0] && 256 === e ? -1 : 0) + (this.spatialReference.isGeographic ? 1 : 0);\n if (this.size[0] === e && 0 === t) return this;\n const o = [],\n s = this.lods.length - t;\n for (let r = 0; r < s; r++) {\n const e = r + t,\n {\n scale: s,\n resolution: i\n } = e >= 0 ? this.lods[e] : {\n scale: 2 * this.lods[0].scale,\n resolution: 2 * this.lods[0].resolution\n };\n o.push(new y({\n level: r,\n scale: s,\n resolution: i\n }));\n }\n return new w({\n size: [e, e],\n dpi: this.dpi,\n format: this.format,\n compressionQuality: this.compressionQuality,\n origin: this.origin,\n spatialReference: this.spatialReference,\n lods: o\n });\n }\n _initializeUpsampleLevels() {\n const e = this.lods;\n this._upsampleLevels = [];\n let t = null;\n for (let o = 0; o < e.length; o++) {\n const s = e[o];\n this._upsampleLevels[s.level] = {\n parentLevel: t ? t.level : -1,\n factor: t ? t.resolution / s.resolution : 0\n }, t = s;\n }\n }\n};\ne([r({\n type: Number,\n json: {\n write: !0\n }\n})], j.prototype, \"compressionQuality\", void 0), e([r({\n type: Number,\n json: {\n write: !0\n }\n})], j.prototype, \"dpi\", void 0), e([r({\n type: String,\n json: {\n read: x.read,\n write: x.write,\n origins: {\n \"web-scene\": {\n read: !1,\n write: !1\n }\n }\n }\n})], j.prototype, \"format\", void 0), e([r({\n readOnly: !0\n})], j.prototype, \"isWrappable\", null), e([r({\n type: a,\n json: {\n write: !0\n }\n})], j.prototype, \"origin\", void 0), e([l(\"origin\")], j.prototype, \"readOrigin\", null), e([r({\n type: [y],\n value: null,\n json: {\n write: !0\n }\n})], j.prototype, \"lods\", null), e([r({\n readOnly: !0\n})], j.prototype, \"scales\", void 0), e([r({\n cast: e => Array.isArray(e) ? e : \"number\" == typeof e ? [e, e] : [256, 256]\n})], j.prototype, \"size\", void 0), e([l(\"size\", [\"rows\", \"cols\"])], j.prototype, \"readSize\", null), e([p(\"size\", {\n cols: {\n type: i\n },\n rows: {\n type: i\n }\n})], j.prototype, \"writeSize\", null), e([r({\n type: c,\n json: {\n write: !0\n }\n})], j.prototype, \"spatialReference\", void 0), j = w = e([n(\"esri.layers.support.TileInfo\")], j), function (e) {\n var t;\n (t = e.ExtrapolateOptions || (e.ExtrapolateOptions = {}))[t.NONE = 0] = \"NONE\", t[t.POWER_OF_TWO = 1] = \"POWER_OF_TWO\";\n}(j || (j = {}));\nconst z = j;\nexport { z as default };"],"mappings":"ifAWA,IAAIA,EACAC,EAAID,EAAI,cAAcE,CAAE,CAC1B,YAAY,EAAG,CACb,MAAM,CAAC,EAAG,KAAK,KAAO,KAAM,KAAK,MAAQ,EAAG,KAAK,WAAa,KAAM,KAAK,OAAS,KAAM,KAAK,WAAa,EAAG,KAAK,KAAO,KAAM,KAAK,MAAQ,CAC9I,CACA,OAAQ,CACN,OAAO,IAAIF,EAAE,CACX,KAAM,KAAK,KACX,MAAO,KAAK,MACZ,WAAY,KAAK,WACjB,WAAY,KAAK,WACjB,KAAM,KAAK,KACX,MAAO,KAAK,KACd,CAAC,CACH,CACF,EACAG,EAAE,CAACC,EAAE,CACH,KAAM,CACJ,MAAO,GACP,QAAS,CACP,eAAgB,CACd,KAAM,GACN,MAAO,EACT,EACA,cAAe,CACb,KAAM,GACN,MAAO,EACT,CACF,CACF,CACF,CAAC,CAAC,EAAGH,EAAE,UAAW,OAAQ,MAAM,EAAGE,EAAE,CAACC,EAAE,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B,CAAC,EAAG,SAAU,EAAG,CAC7G,IAAI,GACH,EAAI,EAAE,qBAAuB,EAAE,mBAAqB,CAAC,IAAI,EAAE,KAAO,CAAC,EAAI,OAAQ,EAAE,EAAE,aAAe,CAAC,EAAI,cAC1G,EAAEA,IAAMA,EAAI,CAAC,EAAE,EACf,IAAMW,GAAIX","names":["i","l","f","r","m","x","a","p","w","x","n","j","f","g","l","e","t","s","p","o","d","u","z","P","r","__spreadValues","i","M","m","a"],"x_google_ignoreList":[0,1]}