import { A as A2, a as a2, f, h as h2, m as m2, u as u2 } from "./chunk-4GSC3BUA.js"; import "./chunk-AGGGC2FA.js"; import "./chunk-RUM3DXFX.js"; import "./chunk-X6GHUY4U.js"; import "./chunk-7LRVL5YB.js"; import "./chunk-4OM3EX6P.js"; import "./chunk-3OFVLRSL.js"; import { A, B, C, D, E, F, G, H, I, L, M, O, S, T, U, V, a, b, c, d, g, h, i, j, k, l, m, o, p, q, u, v, w, x, y, z } from "./chunk-HIELTLML.js"; import "./chunk-E3G7BRZB.js"; import "./chunk-RYY6632W.js"; import "./chunk-DW42UVIT.js"; import "./chunk-TJNOJH33.js"; import "./chunk-YAEIHDJH.js"; import "./chunk-OSHI574D.js"; import "./chunk-2TIUKVZN.js"; import "./chunk-YXWMMD76.js"; import "./chunk-S5KM4IGW.js"; // node_modules/@arcgis/core/views/3d/support/buffer/workerHelper.js function z2(e, t) { return t.push(e.buffer), { buffer: e.buffer, layout: F2(e.layout) }; } function F2(e) { const t = new Array(); return e.fields.forEach((e2, r) => { const o3 = { ...e2, constructor: J(e2.constructor) }; t.push([r, o3]); }), { stride: e.stride, fields: t, fieldNames: e.fieldNames }; } var H2 = [y, u, i, c, l, p, o, m, T, h, a, b, d, A, O, x, g, w, E, L, B, F, I, U, j, V, M, S, k, q, v, z, C, D, G, H]; function J(e) { return `${e.ElementType}_${e.ElementCount}`; } var O2 = /* @__PURE__ */ new Map(); H2.forEach((e) => O2.set(J(e), e)); // node_modules/@arcgis/core/views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker.js var o2 = class { async extract(e) { const t = c2(e), n = f(t), r = [t.data.buffer]; return { result: l2(n, r), transferList: r }; } async extractComponentsEdgeLocations(t) { const s = c2(t), i2 = u2(s.data, s.skipDeduplicate, s.indices, s.indicesLength), a3 = h2(i2, p2, g2), o3 = []; return { result: z2(a3.regular.instancesData, o3), transferList: o3 }; } async extractEdgeLocations(t) { const s = c2(t), i2 = u2(s.data, s.skipDeduplicate, s.indices, s.indicesLength), a3 = h2(i2, f2, g2), o3 = []; return { result: z2(a3.regular.instancesData, o3), transferList: o3 }; } }; function c2(e) { return { data: A2.createView(e.dataBuffer), indices: "Uint32Array" === e.indicesType ? new Uint32Array(e.indices) : "Uint16Array" === e.indicesType ? new Uint16Array(e.indices) : e.indices, indicesLength: e.indicesLength, writerSettings: e.writerSettings, skipDeduplicate: e.skipDeduplicate }; } function l2(t, n) { n.push(t.regular.lodInfo.lengths.buffer), n.push(t.silhouette.lodInfo.lengths.buffer); return { regular: { instancesData: z2(t.regular.instancesData, n), lodInfo: { lengths: t.regular.lodInfo.lengths.buffer } }, silhouette: { instancesData: z2(t.silhouette.instancesData, n), lodInfo: { lengths: t.silhouette.lodInfo.lengths.buffer } }, averageEdgeLength: t.averageEdgeLength }; } var u3 = class { allocate(e) { return a2.createBuffer(e); } trim(e, t) { return e.slice(0, t); } write(e, t, n) { e.position0.setVec(t, n.position0), e.position1.setVec(t, n.position1); } }; var d2 = class { allocate(e) { return m2.createBuffer(e); } trim(e, t) { return e.slice(0, t); } write(e, t, n) { e.position0.setVec(t, n.position0), e.position1.setVec(t, n.position1), e.componentIndex.set(t, n.componentIndex); } }; var f2 = new u3(); var p2 = new d2(); var g2 = { allocate: () => null, write: () => { }, trim: () => null }; export { o2 as default }; //# sourceMappingURL=EdgeProcessingWorker-ABXSFLHS.js.map