import { w as w2 } from "./chunk-BVMSF6QA.js"; import { l as l2, m as m3, s as s2, u as u3 } from "./chunk-M7HZTZK5.js"; import { A, K } from "./chunk-C62PEMUB.js"; import "./chunk-5ZZSM3DU.js"; import "./chunk-BQ7UE3XL.js"; import "./chunk-UILPRJKY.js"; import "./chunk-524XACB7.js"; import { An, Wn } from "./chunk-DH2OBAUC.js"; import "./chunk-TNLRDNTC.js"; import "./chunk-QY775BFA.js"; import { i as i2 } from "./chunk-FMKGHOGD.js"; import { p } from "./chunk-6URTNEGN.js"; import "./chunk-X7DBH4KK.js"; import { u as u2 } from "./chunk-NE3ESGA6.js"; import { U, a } from "./chunk-YIS6BAC3.js"; import "./chunk-7ZIDBK7B.js"; import { v as v2 } from "./chunk-KHA63LLS.js"; import { c } from "./chunk-FGKNEJKJ.js"; import { d as d2 } from "./chunk-PSV473TI.js"; import { O } from "./chunk-I3OBGWNS.js"; import "./chunk-FONIFA5N.js"; import "./chunk-EG5OI4V4.js"; import { i } from "./chunk-65BYCSII.js"; import "./chunk-WZQZRKNH.js"; import "./chunk-LRDX4TO7.js"; import "./chunk-6A4U74YA.js"; import { t as t3 } from "./chunk-W72F6AS3.js"; import "./chunk-TERAW6FT.js"; import "./chunk-N2663GRX.js"; import "./chunk-O4FY3ITT.js"; import { b } from "./chunk-4DDBH2K5.js"; import "./chunk-7N4X6GF3.js"; import "./chunk-UXF37FQ4.js"; import "./chunk-ZOEK6QHJ.js"; import "./chunk-XNLG7T2T.js"; import "./chunk-IR4PV7VK.js"; import "./chunk-2Z6LERTI.js"; import { v2 as v } from "./chunk-OWVBLVP3.js"; import "./chunk-EGZW6HC3.js"; import "./chunk-4NKD334K.js"; import "./chunk-65K7LC56.js"; import "./chunk-ATPLLI5W.js"; import "./chunk-WJ3OEUD3.js"; import "./chunk-MXB2XLKV.js"; import "./chunk-XH7RUGVZ.js"; import "./chunk-TBBTRX4O.js"; import "./chunk-YBSUITLL.js"; import { j } from "./chunk-ALDCDSPV.js"; import "./chunk-DT6EAZQ5.js"; import "./chunk-HNOZUNJ4.js"; import { U as U2 } from "./chunk-VNFRAYHO.js"; import "./chunk-R5IG2D6H.js"; import { j as j2 } from "./chunk-VBRY5KJM.js"; import "./chunk-PDKDCAAD.js"; import { o } from "./chunk-ECW2QABR.js"; import "./chunk-GCDJLKH4.js"; import { r as r2 } from "./chunk-MRJEICT6.js"; import { d, e, l3 as l, n2 as n, t as t2, u2 as u } from "./chunk-Y3WMVFTW.js"; import "./chunk-SAS7RONY.js"; import "./chunk-WSRBH7BF.js"; import "./chunk-IHXECKQQ.js"; import { w } from "./chunk-ULGDPLM2.js"; import { s3 as s } from "./chunk-EMJ4ZSM2.js"; import { m as m2 } from "./chunk-IKP3YN53.js"; import { m, r, t } from "./chunk-GZT4BVFP.js"; import "./chunk-A5ICIBVI.js"; // node_modules/@arcgis/core/layers/support/SceneModification.js var m4; var y = m4 = class extends l { constructor(e2) { super(e2), this.geometry = null, this.type = "clip"; } writeGeometry(e2, r3, o2, s3) { if (s3.layer && s3.layer.spatialReference && !s3.layer.spatialReference.equals(this.geometry.spatialReference)) { if (!An(e2.spatialReference, s3.layer.spatialReference)) return void (s3 && s3.messages && s3.messages.push(new t2("scenemodification:unsupported", "Scene modifications with incompatible spatial references are not supported", { modification: this, spatialReference: s3.layer.spatialReference, context: s3 }))); const p2 = new v(); Wn(e2, p2, s3.layer.spatialReference), r3[o2] = p2.toJSON(s3); } else r3[o2] = e2.toJSON(s3); delete r3[o2].spatialReference; } clone() { return new m4({ geometry: m2(this.geometry), type: this.type }); } }; e([d({ type: v }), w2()], y.prototype, "geometry", void 0), e([r2(["web-scene", "portal-item"], "geometry")], y.prototype, "writeGeometry", null), e([d({ type: ["clip", "mask", "replace"], nonNullable: true }), w2()], y.prototype, "type", void 0), y = m4 = e([n("esri.layers.support.SceneModification")], y); var f = y; // node_modules/@arcgis/core/layers/support/SceneModifications.js var a2; var n2 = a2 = class extends u(j.ofType(f)) { constructor(r3) { super(r3), this.url = null; } clone() { return new a2({ url: this.url, items: this.items.map((r3) => r3.clone()) }); } toJSON(r3) { return this.toArray().map((o2) => o2.toJSON(r3)).filter((r4) => !!r4.geometry); } static fromJSON(r3, o2) { const t4 = new a2(); for (const e2 of r3) t4.add(f.fromJSON(e2, o2)); return t4; } static async fromUrl(r3, t4, e2) { const c2 = { url: j2(r3), origin: "service" }, p2 = await U2(r3, { responseType: "json", signal: m(e2, "signal") }), n3 = t4.toJSON(), l4 = []; for (const o2 of p2.data) l4.push(f.fromJSON({ ...o2, geometry: { ...o2.geometry, spatialReference: n3 } }, c2)); return new a2({ url: r3, items: l4 }); } }; e([d({ type: String })], n2.prototype, "url", void 0), n2 = a2 = e([n("esri.layers.support.SceneModifications")], n2); var l3 = n2; // node_modules/@arcgis/core/layers/IntegratedMeshLayer.js var b2 = class extends A(p(c(v2(t3(O(i2(b))))))) { constructor(...e2) { super(...e2), this._handles = new u2(), this.geometryType = "mesh", this.operationalLayerType = "IntegratedMeshLayer", this.type = "integrated-mesh", this.nodePages = null, this.materialDefinitions = null, this.textureSetDefinitions = null, this.geometryDefinitions = null, this.serviceUpdateTimeStamp = null, this.profile = "mesh-pyramids", this.modifications = null, this._modificationsSource = null, this.elevationInfo = null, this.path = null; } destroy() { this._handles.destroy(); } initialize() { this._handles.add(a(() => this.modifications, "after-changes", () => this.modifications = this.modifications, U)); } normalizeCtorArgs(e2, t4) { return typeof e2 == "string" ? { url: e2, ...t4 } : e2; } readModifications(e2, t4, r3) { this._modificationsSource = { url: i(e2, r3), context: r3 }; } async load(e2) { return this.addResolvingPromise(this._doLoad(e2)), this; } async _doLoad(e2) { const t4 = m(e2, "signal"); try { await this.loadFromPortal({ supportedTypes: ["Scene Service"] }, e2); } catch (r3) { w(r3); } if (await this._fetchService(t4), r(this._modificationsSource)) { const t5 = await l3.fromUrl(this._modificationsSource.url, this.spatialReference, e2); this.setAtOrigin("modifications", t5, this._modificationsSource.context.origin), this._modificationsSource = null; } await this._fetchIndexAndUpdateExtent(this.nodePages, t4); } beforeSave() { if (!t(this._modificationsSource)) return this.load().then(() => { }, () => { }); } async saveAs(e2, t4) { return this._debouncedSaveOperations(K.SAVE_AS, { ...t4, getTypeKeywords: () => this._getTypeKeywords(), portalItemLayerType: "integrated-mesh" }, e2); } async save() { const e2 = { getTypeKeywords: () => this._getTypeKeywords(), portalItemLayerType: "integrated-mesh" }; return this._debouncedSaveOperations(K.SAVE, e2); } validateLayer(e2) { if (e2.layerType && e2.layerType !== "IntegratedMesh") throw new s("integrated-mesh-layer:layer-type-not-supported", "IntegratedMeshLayer does not support this layer type", { layerType: e2.layerType }); if (isNaN(this.version.major) || isNaN(this.version.minor)) throw new s("layer:service-version-not-supported", "Service version is not supported.", { serviceVersion: this.version.versionString, supportedVersions: "1.x" }); if (this.version.major > 1) throw new s("layer:service-version-too-new", "Service version is too new.", { serviceVersion: this.version.versionString, supportedVersions: "1.x" }); } _getTypeKeywords() { return ["IntegratedMeshLayer"]; } }; e([d({ type: String, readOnly: true })], b2.prototype, "geometryType", void 0), e([d({ type: ["show", "hide"] })], b2.prototype, "listMode", void 0), e([d({ type: ["IntegratedMeshLayer"] })], b2.prototype, "operationalLayerType", void 0), e([d({ json: { read: false }, readOnly: true })], b2.prototype, "type", void 0), e([d({ type: s2, readOnly: true })], b2.prototype, "nodePages", void 0), e([d({ type: [l2], readOnly: true })], b2.prototype, "materialDefinitions", void 0), e([d({ type: [u3], readOnly: true })], b2.prototype, "textureSetDefinitions", void 0), e([d({ type: [m3], readOnly: true })], b2.prototype, "geometryDefinitions", void 0), e([d({ readOnly: true })], b2.prototype, "serviceUpdateTimeStamp", void 0), e([d({ type: l3 }), w2({ origins: ["web-scene", "portal-item"], type: "resource", prefix: "modifications" })], b2.prototype, "modifications", void 0), e([o(["web-scene", "portal-item"], "modifications")], b2.prototype, "readModifications", null), e([d(d2)], b2.prototype, "elevationInfo", void 0), e([d({ type: String, json: { origins: { "web-scene": { read: true, write: true }, "portal-item": { read: true, write: true } }, read: false } })], b2.prototype, "path", void 0), b2 = e([n("esri.layers.IntegratedMeshLayer")], b2); var A2 = b2; export { A2 as default }; //# sourceMappingURL=IntegratedMeshLayer-5SIEHZOP.js.map