@ifc-lite/viewer 1.24.0 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/.turbo/turbo-build.log +28 -28
  2. package/CHANGELOG.md +49 -0
  3. package/dist/assets/{basketViewActivator-BxyL3ITR.js → basketViewActivator-CU8_toGq.js} +7 -7
  4. package/dist/assets/{bcf-OInQ7hh6.js → bcf-DXGDhw56.js} +23 -23
  5. package/dist/assets/{deflate-D0Sm0vyt.js → deflate-Bb1_H2Yf.js} +1 -1
  6. package/dist/assets/{exporters-CsSbJLHQ.js → exporters-DZhLN0ux.js} +58 -58
  7. package/dist/assets/{geometry-controller.worker-DuPxLFYp.js → geometry-controller.worker-DQOSYqtw.js} +2 -2
  8. package/dist/assets/{geometry.worker-DvOb53b0.js → geometry.worker-B62e03Ao.js} +1 -1
  9. package/dist/assets/{geotiff-DBMPIaHW.js → geotiff-y0ZxbRJd.js} +10 -10
  10. package/dist/assets/{ids-DCWn6VHu.js → ids-DruUNtfD.js} +3 -3
  11. package/dist/assets/{ifc-lite-BUH-uP-q.js → ifc-lite-Ch2T9pP9.js} +2 -2
  12. package/dist/assets/{ifc-lite_bg-DHXAIZHs.wasm → ifc-lite_bg-D7O1WHgP.wasm} +0 -0
  13. package/dist/assets/{ifc-lite_bg-CeGXwVPt.wasm → ifc-lite_bg-iH_07wf8.wasm} +0 -0
  14. package/dist/assets/{index-DAbQbcNs.js → index-Dr88ZlSY.js} +31236 -30870
  15. package/dist/assets/{jpeg-Btyb9xCl.js → jpeg-B3_loqFe.js} +1 -1
  16. package/dist/assets/lens-PYsLu_MA.js +1 -0
  17. package/dist/assets/{lerc-4m4sf12j.js → lerc-nkwS8ZUe.js} +1 -1
  18. package/dist/assets/{lzw-12qxv42v.js → lzw-D3cW5Wpg.js} +1 -1
  19. package/dist/assets/{native-bridge-vefdDEJb.js → native-bridge-BcYJooq8.js} +2 -2
  20. package/dist/assets/{packbits-Sk1wXwnQ.js → packbits-DDN4xzB5.js} +1 -1
  21. package/dist/assets/{parser.worker-CIEsmhWI.js → parser.worker-BW1IMUed.js} +1 -1
  22. package/dist/assets/raw-CoIXstQ-.js +1 -0
  23. package/dist/assets/{sandbox-B_rh0uLM.js → sandbox-DETNEyQb.js} +9 -8
  24. package/dist/assets/{server-client-B-rg3bm8.js → server-client-CmzJOeS7.js} +1 -1
  25. package/dist/assets/{wasm-bridge-BMLcD_0Y.js → wasm-bridge-CT7mK9W0.js} +1 -1
  26. package/dist/assets/{webimage-BzKBQcAG.js → webimage-CBjgg4up.js} +1 -1
  27. package/dist/assets/{workerHelpers-Bo7aHk9e.js → workerHelpers-IEQDo8r3.js} +1 -1
  28. package/dist/assets/{zstd-CfDyQt3x.js → zstd-C8oQ6qdS.js} +1 -1
  29. package/dist/index.html +7 -7
  30. package/package.json +9 -9
  31. package/src/components/viewer/Drawing2DCanvas.tsx +178 -1
  32. package/src/components/viewer/LensPanel.tsx +50 -0
  33. package/src/components/viewer/Section2DPanel.tsx +58 -2
  34. package/src/hooks/useSymbolicAnnotations.ts +101 -0
  35. package/src/lib/lens/adapter.ts +14 -0
  36. package/src/store/index.ts +1 -0
  37. package/src/store/slices/drawing2DSlice.ts +8 -0
  38. package/dist/assets/lens-CpjUdqpw.js +0 -1
  39. package/dist/assets/raw-BCj_dK21.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-bridge-vefdDEJb.js","assets/sandbox-B_rh0uLM.js","assets/lens-CpjUdqpw.js","assets/wasm-bridge-BMLcD_0Y.js"])))=>i.map(i=>d[i]);
2
- import { J as _n, _ as Oe, aE as et, a2 as mn, a3 as bn, j as nt, k as Ft, aH as dn, E as wn, ac as Ee, ag as En, ad as Cn, aA as Tn, L as Fn, i as Ce, h as Rn, __tla as __tla_0 } from "./sandbox-B_rh0uLM.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-bridge-BcYJooq8.js","assets/sandbox-DETNEyQb.js","assets/lens-PYsLu_MA.js","assets/wasm-bridge-CT7mK9W0.js"])))=>i.map(i=>d[i]);
2
+ import { J as _n, _ as Oe, aE as et, a2 as mn, a3 as bn, j as nt, k as Ft, aH as dn, E as wn, ac as Ee, ag as En, ad as Cn, aA as Tn, L as Fn, i as Ce, h as Rn, __tla as __tla_0 } from "./sandbox-DETNEyQb.js";
3
3
  let Ps, Bs, ln, vs, Fs, gn, Fe, kn, Ds, Te, $n, ie, Ls, Us, Ms;
4
4
  let __tla = Promise.all([
5
5
  (()=>{
@@ -149,10 +149,10 @@ let __tla = Promise.all([
149
149
  });
150
150
  let x = 0;
151
151
  function Ln(o, t, e) {
152
- i.__wasm_bindgen_func_elem_1529(o, t, L(e));
152
+ i.__wasm_bindgen_func_elem_1533(o, t, L(e));
153
153
  }
154
154
  function Bn(o, t, e, n) {
155
- i.__wasm_bindgen_func_elem_1569(o, t, L(e), L(n));
155
+ i.__wasm_bindgen_func_elem_1573(o, t, L(e), L(n));
156
156
  }
157
157
  const Be = typeof FinalizationRegistry > "u" ? {
158
158
  register: ()=>{},
@@ -1155,10 +1155,10 @@ let __tla = Promise.all([
1155
1155
  }
1156
1156
  }
1157
1157
  Symbol.dispose && (qt.prototype[Symbol.dispose] = qt.prototype.free);
1158
- class Zt {
1158
+ class Kt {
1159
1159
  static __wrap(t) {
1160
1160
  t = t >>> 0;
1161
- const e = Object.create(Zt.prototype);
1161
+ const e = Object.create(Kt.prototype);
1162
1162
  return e.__wbg_ptr = t, He.register(e, e.__wbg_ptr, e), e;
1163
1163
  }
1164
1164
  __destroy_into_raw() {
@@ -1216,11 +1216,11 @@ let __tla = Promise.all([
1216
1216
  return i.symboliccircle_endAngle(this.__wbg_ptr);
1217
1217
  }
1218
1218
  }
1219
- Symbol.dispose && (Zt.prototype[Symbol.dispose] = Zt.prototype.free);
1220
- class Kt {
1219
+ Symbol.dispose && (Kt.prototype[Symbol.dispose] = Kt.prototype.free);
1220
+ class Zt {
1221
1221
  static __wrap(t) {
1222
1222
  t = t >>> 0;
1223
- const e = Object.create(Kt.prototype);
1223
+ const e = Object.create(Zt.prototype);
1224
1224
  return e.__wbg_ptr = t, Xe.register(e, e.__wbg_ptr, e), e;
1225
1225
  }
1226
1226
  __destroy_into_raw() {
@@ -1301,7 +1301,7 @@ let __tla = Promise.all([
1301
1301
  }
1302
1302
  }
1303
1303
  }
1304
- Symbol.dispose && (Kt.prototype[Symbol.dispose] = Kt.prototype.free);
1304
+ Symbol.dispose && (Zt.prototype[Symbol.dispose] = Zt.prototype.free);
1305
1305
  class te {
1306
1306
  static __wrap(t) {
1307
1307
  t = t >>> 0;
@@ -1375,7 +1375,7 @@ let __tla = Promise.all([
1375
1375
  }
1376
1376
  getCircle(t) {
1377
1377
  const e = i.symbolicrepresentationcollection_getCircle(this.__wbg_ptr, t);
1378
- return e === 0 ? void 0 : Zt.__wrap(e);
1378
+ return e === 0 ? void 0 : Kt.__wrap(e);
1379
1379
  }
1380
1380
  get textCount() {
1381
1381
  return i.symbolicrepresentationcollection_textCount(this.__wbg_ptr) >>> 0;
@@ -1405,7 +1405,7 @@ let __tla = Promise.all([
1405
1405
  }
1406
1406
  getFill(t) {
1407
1407
  const e = i.symbolicrepresentationcollection_getFill(this.__wbg_ptr, t);
1408
- return e === 0 ? void 0 : Kt.__wrap(e);
1408
+ return e === 0 ? void 0 : Zt.__wrap(e);
1409
1409
  }
1410
1410
  getText(t) {
1411
1411
  const e = i.symbolicrepresentationcollection_getText(this.__wbg_ptr, t);
@@ -1760,7 +1760,7 @@ let __tla = Promise.all([
1760
1760
  const e = BigInt.asUintN(64, t);
1761
1761
  return L(e);
1762
1762
  }, o.wbg.__wbindgen_cast_56b148ee1abaedad = function(t, e) {
1763
- const n = xn(t, e, i.__wasm_bindgen_func_elem_1528, Ln);
1763
+ const n = xn(t, e, i.__wasm_bindgen_func_elem_1532, Ln);
1764
1764
  return L(n);
1765
1765
  }, o.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(t) {
1766
1766
  return L(t);
@@ -1776,13 +1776,13 @@ let __tla = Promise.all([
1776
1776
  }
1777
1777
  gn = async function(o) {
1778
1778
  if (i !== void 0) return i;
1779
- typeof o < "u" && (Object.getPrototypeOf(o) === Object.prototype ? { module_or_path: o } = o : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), typeof o > "u" && (o = new URL("/assets/ifc-lite_bg-DHXAIZHs.wasm", import.meta.url));
1779
+ typeof o < "u" && (Object.getPrototypeOf(o) === Object.prototype ? { module_or_path: o } = o : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), typeof o > "u" && (o = new URL("/assets/ifc-lite_bg-D7O1WHgP.wasm", import.meta.url));
1780
1780
  const t = vn();
1781
1781
  (typeof o == "string" || typeof Request == "function" && o instanceof Request || typeof URL == "function" && o instanceof URL) && (o = fetch(o));
1782
1782
  const { instance: e, module: n } = await Un(await o, t);
1783
1783
  return Dn(e, n);
1784
1784
  };
1785
- const K = _n("Geometry"), Gn = "IFC-Lite WASM cannot recover from a fatal runtime error within the same document lifetime. Reload the page or recreate the worker process before calling init() again.";
1785
+ const Z = _n("Geometry"), Gn = "IFC-Lite WASM cannot recover from a fatal runtime error within the same document lifetime. Reload the page or recreate the worker process before calling init() again.";
1786
1786
  let he = null;
1787
1787
  $n = class {
1788
1788
  ifcApi = null;
@@ -1798,9 +1798,9 @@ let __tla = Promise.all([
1798
1798
  if (!this.initialized) {
1799
1799
  if (he) throw he;
1800
1800
  try {
1801
- await gn(), K.warn("Geometry processing: single-threaded mode (thread pool disabled for Vite compatibility)"), this.ifcApi = new Te, this.applyMergeLayers(), this.initialized = !0, K.info("WASM geometry engine initialized");
1801
+ await gn(), Z.warn("Geometry processing: single-threaded mode (thread pool disabled for Vite compatibility)"), this.ifcApi = new Te, this.applyMergeLayers(), this.initialized = !0, Z.info("WASM geometry engine initialized");
1802
1802
  } catch (t) {
1803
- throw K.error("Failed to initialize WASM geometry engine", t, {
1803
+ throw Z.error("Failed to initialize WASM geometry engine", t, {
1804
1804
  operation: "init"
1805
1805
  }), this.isWasmRuntimeError(t) ? this.markFatalWasmRuntimeError() : this.reset(), t;
1806
1806
  }
@@ -1813,11 +1813,11 @@ let __tla = Promise.all([
1813
1813
  if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
1814
1814
  try {
1815
1815
  const e = this.ifcApi.parseMeshes(t);
1816
- return K.debug(`Parsed ${e.length} meshes`, {
1816
+ return Z.debug(`Parsed ${e.length} meshes`, {
1817
1817
  operation: "parseMeshes"
1818
1818
  }), e;
1819
1819
  } catch (e) {
1820
- throw K.error("Failed to parse IFC geometry", e, {
1820
+ throw Z.error("Failed to parse IFC geometry", e, {
1821
1821
  operation: "parseMeshes",
1822
1822
  data: {
1823
1823
  contentLength: t.length
@@ -1829,11 +1829,11 @@ let __tla = Promise.all([
1829
1829
  if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
1830
1830
  try {
1831
1831
  const e = this.ifcApi.parseMeshesInstanced(t);
1832
- return K.debug(`Parsed ${e.length} instanced geometries`, {
1832
+ return Z.debug(`Parsed ${e.length} instanced geometries`, {
1833
1833
  operation: "parseMeshesInstanced"
1834
1834
  }), e;
1835
1835
  } catch (e) {
1836
- throw K.error("Failed to parse instanced IFC geometry", e, {
1836
+ throw Z.error("Failed to parse instanced IFC geometry", e, {
1837
1837
  operation: "parseMeshesInstanced",
1838
1838
  data: {
1839
1839
  contentLength: t.length
@@ -1846,7 +1846,7 @@ let __tla = Promise.all([
1846
1846
  try {
1847
1847
  return await this.ifcApi.parseMeshesAsync(t, e);
1848
1848
  } catch (n) {
1849
- throw K.error("Failed to parse IFC geometry (streaming)", n, {
1849
+ throw Z.error("Failed to parse IFC geometry (streaming)", n, {
1850
1850
  operation: "parseMeshesAsync",
1851
1851
  data: {
1852
1852
  contentLength: t.length
@@ -1859,7 +1859,7 @@ let __tla = Promise.all([
1859
1859
  try {
1860
1860
  return await this.ifcApi.parseMeshesInstancedAsync(t, e);
1861
1861
  } catch (n) {
1862
- throw K.error("Failed to parse instanced IFC geometry (streaming)", n, {
1862
+ throw Z.error("Failed to parse instanced IFC geometry (streaming)", n, {
1863
1863
  operation: "parseMeshesInstancedAsync",
1864
1864
  data: {
1865
1865
  contentLength: t.length
@@ -1871,11 +1871,11 @@ let __tla = Promise.all([
1871
1871
  if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
1872
1872
  try {
1873
1873
  const e = this.ifcApi.parseSymbolicRepresentations(t);
1874
- return K.debug(`Parsed ${e.totalCount} symbolic items (${e.polylineCount} polylines, ${e.circleCount} circles)`, {
1874
+ return Z.debug(`Parsed ${e.totalCount} symbolic items (${e.polylineCount} polylines, ${e.circleCount} circles)`, {
1875
1875
  operation: "parseSymbolicRepresentations"
1876
1876
  }), e;
1877
1877
  } catch (e) {
1878
- throw K.error("Failed to parse symbolic representations", e, {
1878
+ throw Z.error("Failed to parse symbolic representations", e, {
1879
1879
  operation: "parseSymbolicRepresentations",
1880
1880
  data: {
1881
1881
  contentLength: t.length
@@ -1887,11 +1887,11 @@ let __tla = Promise.all([
1887
1887
  if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
1888
1888
  try {
1889
1889
  const n = this.ifcApi.extractProfiles(t, e);
1890
- return K.debug(`Extracted ${n.length} profiles`, {
1890
+ return Z.debug(`Extracted ${n.length} profiles`, {
1891
1891
  operation: "extractProfiles"
1892
1892
  }), n;
1893
1893
  } catch (n) {
1894
- throw K.error("Failed to extract profiles", n, {
1894
+ throw Z.error("Failed to extract profiles", n, {
1895
1895
  operation: "extractProfiles",
1896
1896
  data: {
1897
1897
  contentLength: t.length
@@ -1903,11 +1903,11 @@ let __tla = Promise.all([
1903
1903
  if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
1904
1904
  try {
1905
1905
  const r = this.ifcApi.parseMeshesSubset(t, e, n, s);
1906
- return K.debug(`Parsed subset [${e}, ${n}) → ${r.length} meshes`, {
1906
+ return Z.debug(`Parsed subset [${e}, ${n}) → ${r.length} meshes`, {
1907
1907
  operation: "parseMeshesSubset"
1908
1908
  }), r;
1909
1909
  } catch (r) {
1910
- throw K.error("Failed to parse IFC geometry subset", r, {
1910
+ throw Z.error("Failed to parse IFC geometry subset", r, {
1911
1911
  operation: "parseMeshesSubset",
1912
1912
  data: {
1913
1913
  contentLength: t.length,
@@ -1937,7 +1937,7 @@ let __tla = Promise.all([
1937
1937
  if (!this.ifcApi) return;
1938
1938
  const t = this.ifcApi;
1939
1939
  if (typeof t.setMergeLayers != "function") {
1940
- K.warn("setMergeLayers not present on WASM API — flag tracked but suppression is a no-op until WASM is rebuilt", {
1940
+ Z.warn("setMergeLayers not present on WASM API — flag tracked but suppression is a no-op until WASM is rebuilt", {
1941
1941
  operation: "setMergeLayers",
1942
1942
  data: {
1943
1943
  requested: this.mergeLayers
@@ -1945,7 +1945,7 @@ let __tla = Promise.all([
1945
1945
  });
1946
1946
  return;
1947
1947
  }
1948
- t.setMergeLayers(this.mergeLayers), K.debug(`mergeLayers=${this.mergeLayers}`, {
1948
+ t.setMergeLayers(this.mergeLayers), Z.debug(`mergeLayers=${this.mergeLayers}`, {
1949
1949
  operation: "setMergeLayers"
1950
1950
  });
1951
1951
  }
@@ -2189,7 +2189,7 @@ let __tla = Promise.all([
2189
2189
  async function zn() {
2190
2190
  if (un()) {
2191
2191
  const { NativeBridge: o } = await Oe(async ()=>{
2192
- const { NativeBridge: t } = await import("./native-bridge-vefdDEJb.js").then(async (m)=>{
2192
+ const { NativeBridge: t } = await import("./native-bridge-BcYJooq8.js").then(async (m)=>{
2193
2193
  await m.__tla;
2194
2194
  return m;
2195
2195
  });
@@ -2200,7 +2200,7 @@ let __tla = Promise.all([
2200
2200
  return new o;
2201
2201
  } else {
2202
2202
  const { WasmBridge: o } = await Oe(async ()=>{
2203
- const { WasmBridge: t } = await import("./wasm-bridge-BMLcD_0Y.js");
2203
+ const { WasmBridge: t } = await import("./wasm-bridge-CT7mK9W0.js");
2204
2204
  return {
2205
2205
  WasmBridge: t
2206
2206
  };
@@ -2532,9 +2532,9 @@ let __tla = Promise.all([
2532
2532
  function Yn(o) {
2533
2533
  return Wn(o).count;
2534
2534
  }
2535
- const Hn = 3e4, Xn = 15e3, Jn = 15e3, Qn = 5e3, qn = 60, Zn = 30, Kn = 30, ts = 15;
2535
+ const Hn = 3e4, Xn = 15e3, Jn = 15e3, Qn = 5e3, qn = 60, Kn = 30, Zn = 30, ts = 15;
2536
2536
  Ms = function(o) {
2537
- const t = o.desktopStableWasm === !0, e = Math.max(0, Math.floor(o.batchCount)), n = Math.max(0, o.fileSizeMB), s = e > 0 ? t ? Qn : Jn : t ? Xn : Hn, r = e > 0 ? t ? ts : Kn : t ? Zn : qn;
2537
+ const t = o.desktopStableWasm === !0, e = Math.max(0, Math.floor(o.batchCount)), n = Math.max(0, o.fileSizeMB), s = e > 0 ? t ? Qn : Jn : t ? Xn : Hn, r = e > 0 ? t ? ts : Zn : t ? Kn : qn;
2538
2538
  return Math.max(s, Math.round(s + n * r));
2539
2539
  };
2540
2540
  function es(o, t) {
@@ -2634,13 +2634,13 @@ let __tla = Promise.all([
2634
2634
  } : o;
2635
2635
  }
2636
2636
  const rs = 8, is = 32768, os = 4, as = 8192, cs = 10;
2637
- function Ze() {
2637
+ function Ke() {
2638
2638
  const o = globalThis.scheduler;
2639
2639
  return typeof o?.yield == "function" ? o.yield() : new Promise((t)=>{
2640
2640
  globalThis.setTimeout(t, 0);
2641
2641
  });
2642
2642
  }
2643
- function Ke(o, t, e) {
2643
+ function Ze(o, t, e) {
2644
2644
  if (t.type === "colorUpdate") {
2645
2645
  const r = o[o.length - 1];
2646
2646
  if (r?.type === "colorUpdate") {
@@ -2661,7 +2661,7 @@ let __tla = Promise.all([
2661
2661
  e.reset(), yield {
2662
2662
  type: "start",
2663
2663
  totalEstimate: t
2664
- }, await Ze(), yield {
2664
+ }, await Ke(), yield {
2665
2665
  type: "model-open",
2666
2666
  modelID: 0
2667
2667
  };
@@ -2674,14 +2674,14 @@ let __tla = Promise.all([
2674
2674
  a && (a(), a = null);
2675
2675
  }, g = o({
2676
2676
  onBatch: (p)=>{
2677
- Ke(s, {
2677
+ Ze(s, {
2678
2678
  type: "batch",
2679
2679
  meshes: p.meshes,
2680
2680
  nativeTelemetry: p.nativeTelemetry
2681
2681
  }, r), d();
2682
2682
  },
2683
2683
  onColorUpdate: (p)=>{
2684
- Ke(s, {
2684
+ Ze(s, {
2685
2685
  type: "colorUpdate",
2686
2686
  updates: new Map(p)
2687
2687
  }, r), d();
@@ -2712,7 +2712,7 @@ let __tla = Promise.all([
2712
2712
  totalSoFar: f,
2713
2713
  coordinateInfo: T || void 0,
2714
2714
  nativeTelemetry: E.nativeTelemetry
2715
- }, p += 1, h += E.meshes.length, s.length > 0 && (p >= os || h >= as || performance.now() - m >= cs) && (await Ze(), p = 0, h = 0, m = performance.now());
2715
+ }, p += 1, h += E.meshes.length, s.length > 0 && (p >= os || h >= as || performance.now() - m >= cs) && (await Ke(), p = 0, h = 0, m = performance.now());
2716
2716
  }
2717
2717
  if (l) throw l;
2718
2718
  c || await new Promise((E)=>{
@@ -2738,11 +2738,11 @@ let __tla = Promise.all([
2738
2738
  let r;
2739
2739
  const a = o.buffer;
2740
2740
  n && n.byteLength === o.byteLength ? r = n : typeof SharedArrayBuffer < "u" && a instanceof SharedArrayBuffer && o.byteOffset === 0 && o.byteLength === a.byteLength ? r = a : (r = new SharedArrayBuffer(o.byteLength), new Uint8Array(r).set(o));
2741
- const c = s?.useSingleController === !0, l = ()=>c ? new Worker(new URL("/assets/geometry-controller.worker-DuPxLFYp.js", import.meta.url), {
2741
+ const c = s?.useSingleController === !0, l = ()=>c ? new Worker(new URL("/assets/geometry-controller.worker-DQOSYqtw.js", import.meta.url), {
2742
2742
  type: "module"
2743
- }) : new Worker(new URL("/assets/geometry.worker-DvOb53b0.js", import.meta.url), {
2743
+ }) : new Worker(new URL("/assets/geometry.worker-B62e03Ao.js", import.meta.url), {
2744
2744
  type: "module"
2745
- }), _ = ()=>new Worker(new URL("/assets/geometry.worker-DvOb53b0.js", import.meta.url), {
2745
+ }), _ = ()=>new Worker(new URL("/assets/geometry.worker-B62e03Ao.js", import.meta.url), {
2746
2746
  type: "module"
2747
2747
  }), f = [];
2748
2748
  let d = null;
@@ -2756,7 +2756,7 @@ let __tla = Promise.all([
2756
2756
  U.onmessage = ($)=>{
2757
2757
  const G = $.data;
2758
2758
  if (G.type === "ready") {
2759
- console.log(`[stream] worker[${X}] WASM ready @ ${Z()}ms`);
2759
+ console.log(`[stream] worker[${X}] WASM ready @ ${K()}ms`);
2760
2760
  return;
2761
2761
  }
2762
2762
  if (G.type === "memory") {
@@ -2769,7 +2769,7 @@ let __tla = Promise.all([
2769
2769
  return;
2770
2770
  }
2771
2771
  if (G.type === "batch") {
2772
- N[X] === void 0 && (N[X] = Z(), console.log(`[stream] worker[${X}] first batch @ ${Z()}ms (${G.meshes?.length ?? 0} meshes)`));
2772
+ N[X] === void 0 && (N[X] = K(), console.log(`[stream] worker[${X}] first batch @ ${K()}ms (${G.meshes?.length ?? 0} meshes)`));
2773
2773
  const J = G.meshes.map((V)=>({
2774
2774
  expressId: V.expressId,
2775
2775
  ifcType: V.ifcType,
@@ -2888,7 +2888,7 @@ let __tla = Promise.all([
2888
2888
  k(U);
2889
2889
  }, W = ()=>{
2890
2890
  if (!(!z || !D || !w)) for(; O.length > 0;)k(O.shift());
2891
- }, at = performance.now(), Z = ()=>Math.round(performance.now() - at);
2891
+ }, at = performance.now(), K = ()=>Math.round(performance.now() - at);
2892
2892
  console.log(`[stream] processParallel start, fileSizeMB=${F.toFixed(1)} workerCount=${M}`);
2893
2893
  const st = _();
2894
2894
  s?.wasmUrls?.wasm && st.postMessage({
@@ -2912,13 +2912,13 @@ let __tla = Promise.all([
2912
2912
  rtcOffset: $.rtcOffset,
2913
2913
  needsShift: $.needsShift,
2914
2914
  buildingRotation: $.buildingRotation ?? null
2915
- }, console.log(`[stream] meta @ ${Z()}ms unitScale=${u.unitScale} rtc=[${u.rtcOffset[0].toFixed(0)},${u.rtcOffset[1].toFixed(0)},${u.rtcOffset[2].toFixed(0)}]`), Y(), g();
2915
+ }, console.log(`[stream] meta @ ${K()}ms unitScale=${u.unitScale} rtc=[${u.rtcOffset[0].toFixed(0)},${u.rtcOffset[1].toFixed(0)},${u.rtcOffset[2].toFixed(0)}]`), Y(), g();
2916
2916
  else if ($.type === "jobs") {
2917
2917
  const G = $.jobs, J = Math.floor(G.length / 3);
2918
- pt++, lt += J, _t < 0 && (_t = Z(), console.log(`[stream] first jobs chunk @ ${_t}ms (${J} jobs)`)), (pt % 10 === 1 || J < 1e3) && console.log(`[stream] chunk #${pt} @ ${Z()}ms (+${J} jobs, total ${lt})`), H(G);
2918
+ pt++, lt += J, _t < 0 && (_t = K(), console.log(`[stream] first jobs chunk @ ${_t}ms (${J} jobs)`)), (pt % 10 === 1 || J < 1e3) && console.log(`[stream] chunk #${pt} @ ${K()}ms (+${J} jobs, total ${lt})`), H(G);
2919
2919
  } else if ($.type === "styles") {
2920
2920
  const G = $.styleIds, J = $.styleColors, V = $.voidKeys, it = $.voidCounts, It = $.voidValues;
2921
- console.log(`[stream] styles @ ${Z()}ms (${G.length} styled, ${V.length} void hosts), draining ${O.length} queued chunks`);
2921
+ console.log(`[stream] styles @ ${K()}ms (${G.length} styled, ${V.length} void hosts), draining ${O.length} queued chunks`);
2922
2922
  for (const _e of R)try {
2923
2923
  const ut = G.slice(), Et = J.slice(), Ct = V.slice(), Tt = it.slice(), re = It.slice();
2924
2924
  _e.postMessage({
@@ -2941,7 +2941,7 @@ let __tla = Promise.all([
2941
2941
  D = !0, W();
2942
2942
  } else if ($.type === "entity-index") {
2943
2943
  const G = $.ids, J = $.starts, V = $.lengths;
2944
- if (console.log(`[stream] entity-index @ ${Z()}ms (${G.length} entries)`), typeof SharedArrayBuffer < "u") {
2944
+ if (console.log(`[stream] entity-index @ ${K()}ms (${G.length} entries)`), typeof SharedArrayBuffer < "u") {
2945
2945
  const it = G.byteLength, It = J.byteLength, _e = V.byteLength, ut = new SharedArrayBuffer(it), Et = new SharedArrayBuffer(It), Ct = new SharedArrayBuffer(_e);
2946
2946
  new Uint32Array(ut).set(G), new Uint32Array(Et).set(J), new Uint32Array(Ct).set(V);
2947
2947
  for (const Tt of R)try {
@@ -2977,7 +2977,7 @@ let __tla = Promise.all([
2977
2977
  }
2978
2978
  }
2979
2979
  w = !0, W();
2980
- } else $.type === "complete" && (p = $.totalJobs, console.log(`[stream] prepass complete @ ${Z()}ms totalJobs=${p} chunks=${pt}`), yt || (yt = !0, gt()));
2980
+ } else $.type === "complete" && (p = $.totalJobs, console.log(`[stream] prepass complete @ ${K()}ms totalJobs=${p} chunks=${pt}`), yt || (yt = !0, gt()));
2981
2981
  return;
2982
2982
  }
2983
2983
  if (X.type === "error") {
@@ -3562,10 +3562,10 @@ let __tla = Promise.all([
3562
3562
  if (!_(M)) continue;
3563
3563
  const R = M.positions, j = M.normals, Y = M.indices;
3564
3564
  if (!R.length || !j.length || !Y.length || R.length % 3 !== 0 || j.length % 3 !== 0 || R.length !== j.length) continue;
3565
- let k = R[0], H = R[1], W = R[2], at = R[0], Z = R[1], st = R[2];
3565
+ let k = R[0], H = R[1], W = R[2], at = R[0], K = R[1], st = R[2];
3566
3566
  for(let lt = 3; lt < R.length; lt += 3){
3567
3567
  const _t = R[lt], gt = R[lt + 1], yt = R[lt + 2];
3568
- _t < k && (k = _t), _t > at && (at = _t), gt < H && (H = gt), gt > Z && (Z = gt), yt < W && (W = yt), yt > st && (st = yt);
3568
+ _t < k && (k = _t), _t > at && (at = _t), gt < H && (H = gt), gt > K && (K = gt), yt < W && (W = yt), yt > st && (st = yt);
3569
3569
  }
3570
3570
  const pt = f(M);
3571
3571
  h.push({
@@ -3584,7 +3584,7 @@ let __tla = Promise.all([
3584
3584
  ],
3585
3585
  max: [
3586
3586
  at,
3587
- Z,
3587
+ K,
3588
3588
  st
3589
3589
  ]
3590
3590
  },
@@ -4864,7 +4864,7 @@ let __tla = Promise.all([
4864
4864
  if (!W || !F.has(W)) continue;
4865
4865
  k.add(W), T.add(H);
4866
4866
  const at = this.getPropertyIdsInSet(H);
4867
- for (const Z of at)T.add(Z);
4867
+ for (const K of at)T.add(K);
4868
4868
  }
4869
4869
  for (const H of F)R.has(H) || k.add(H);
4870
4870
  k.size > 0 && (p.set(I, k), h.set(I, Y), m.add(I));
@@ -4916,8 +4916,8 @@ let __tla = Promise.all([
4916
4916
  B.push(`#${I}=IFCPROJECTEDCRS(${F},${y},${M},${R},${j},${Y},${k});`), n++;
4917
4917
  const H = this.findPreferredGeometricRepresentationContextId();
4918
4918
  if (H) {
4919
- const W = w.mapConversion || {}, at = this.nextExpressId++, Z = tt(Number(W.eastings) || 0), st = tt(Number(W.northings) || 0), pt = tt(Number(W.orthogonalHeight) || 0), lt = W.xAxisAbscissa !== void 0 ? tt(Number(W.xAxisAbscissa)) : "$", _t = W.xAxisOrdinate !== void 0 ? tt(Number(W.xAxisOrdinate)) : "$", gt = W.scale !== void 0 ? tt(Number(W.scale)) : "$";
4920
- B.push(`#${at}=IFCMAPCONVERSION(#${H},#${I},${Z},${st},${pt},${lt},${_t},${gt});`), n++;
4919
+ const W = w.mapConversion || {}, at = this.nextExpressId++, K = tt(Number(W.eastings) || 0), st = tt(Number(W.northings) || 0), pt = tt(Number(W.orthogonalHeight) || 0), lt = W.xAxisAbscissa !== void 0 ? tt(Number(W.xAxisAbscissa)) : "$", _t = W.xAxisOrdinate !== void 0 ? tt(Number(W.xAxisOrdinate)) : "$", gt = W.scale !== void 0 ? tt(Number(W.scale)) : "$";
4920
+ B.push(`#${at}=IFCMAPCONVERSION(#${H},#${I},${K},${st},${pt},${lt},${_t},${gt});`), n++;
4921
4921
  } else console.warn("[StepExporter] Cannot create IfcMapConversion: no IfcGeometricRepresentationContext found in source file");
4922
4922
  } else if (w.mapConversion && !S?.length && N?.length) {
4923
4923
  const b = this.findPreferredGeometricRepresentationContextId();