@ifc-lite/viewer 1.17.6 → 1.19.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 (156) hide show
  1. package/.turbo/turbo-build.log +20 -15
  2. package/.turbo/turbo-typecheck.log +1 -1
  3. package/CHANGELOG.md +949 -0
  4. package/dist/assets/{basketViewActivator-86rgogji.js → basketViewActivator-RZy5c3Td.js} +1 -1
  5. package/dist/assets/decode-worker-Collf_X_.js +1320 -0
  6. package/dist/assets/{exporters-CcPS9MK5.js → exporters-BraHBeoi.js} +4194 -3025
  7. package/dist/assets/{geometry.worker-BFUYA08u.js → geometry.worker-DQEZB2rB.js} +1 -1
  8. package/dist/assets/ifc-lite_bg-4yUkDRD8.wasm +0 -0
  9. package/dist/assets/index-0XpVr_S5.css +1 -0
  10. package/dist/assets/{index-Bfms9I4A.js → index-BOi3BuUI.js} +46423 -31181
  11. package/dist/assets/index-XwKzDuw6.js +22 -0
  12. package/dist/assets/{native-bridge-DUyLCMZS.js → native-bridge-CpBeOPQa.js} +1 -1
  13. package/dist/assets/sandbox-Baez7n-t.js +9682 -0
  14. package/dist/assets/{server-client-BuZK7OST.js → server-client-BB6cMAXE.js} +1 -1
  15. package/dist/assets/{wasm-bridge-JsqEGDV8.js → wasm-bridge-CAYCUHbE.js} +1 -1
  16. package/dist/index.html +6 -6
  17. package/package.json +11 -10
  18. package/src/apache-arrow.d.ts +30 -0
  19. package/src/components/viewer/AddElementPanel.tsx +758 -0
  20. package/src/components/viewer/BulkPropertyEditor.tsx +7 -0
  21. package/src/components/viewer/ChatPanel.tsx +64 -2
  22. package/src/components/viewer/CommandPalette.tsx +56 -7
  23. package/src/components/viewer/EntityContextMenu.tsx +168 -4
  24. package/src/components/viewer/ExportChangesButton.tsx +25 -5
  25. package/src/components/viewer/ExportDialog.tsx +19 -1
  26. package/src/components/viewer/MainToolbar.tsx +73 -12
  27. package/src/components/viewer/PointCloudPanel.tsx +174 -0
  28. package/src/components/viewer/PropertiesPanel.tsx +222 -22
  29. package/src/components/viewer/SearchInline.tsx +669 -0
  30. package/src/components/viewer/SearchModal.filter.builder.tsx +766 -0
  31. package/src/components/viewer/SearchModal.filter.tsx +514 -0
  32. package/src/components/viewer/SearchModal.text.tsx +388 -0
  33. package/src/components/viewer/SearchModal.tsx +235 -0
  34. package/src/components/viewer/ToolOverlays.tsx +5 -0
  35. package/src/components/viewer/ViewerLayout.tsx +24 -4
  36. package/src/components/viewer/Viewport.tsx +29 -2
  37. package/src/components/viewer/ViewportContainer.tsx +45 -5
  38. package/src/components/viewer/ViewportOverlays.tsx +13 -2
  39. package/src/components/viewer/annotations/AnnotationDropInput.tsx +203 -0
  40. package/src/components/viewer/annotations/AnnotationLayer.tsx +287 -0
  41. package/src/components/viewer/annotations/AnnotationPin.tsx +90 -0
  42. package/src/components/viewer/annotations/AnnotationPopover.tsx +296 -0
  43. package/src/components/viewer/bcf/BCFTopicDetail.tsx +1 -1
  44. package/src/components/viewer/lists/ListPanel.tsx +14 -21
  45. package/src/components/viewer/properties/RawStepCard.tsx +332 -0
  46. package/src/components/viewer/properties/RawStepRow.tsx +261 -0
  47. package/src/components/viewer/properties/ScheduleCard.tsx +224 -0
  48. package/src/components/viewer/properties/TaskEditCard.tsx +510 -0
  49. package/src/components/viewer/properties/raw-step-format.ts +193 -0
  50. package/src/components/viewer/schedule/AnimationSettingsPopover.tsx +542 -0
  51. package/src/components/viewer/schedule/GanttDependencyArrows.tsx +89 -0
  52. package/src/components/viewer/schedule/GanttDragTooltip.tsx +48 -0
  53. package/src/components/viewer/schedule/GanttEmptyState.tsx +97 -0
  54. package/src/components/viewer/schedule/GanttPanel.tsx +295 -0
  55. package/src/components/viewer/schedule/GanttTaskBar.tsx +199 -0
  56. package/src/components/viewer/schedule/GanttTaskTree.tsx +250 -0
  57. package/src/components/viewer/schedule/GanttTimeline.tsx +305 -0
  58. package/src/components/viewer/schedule/GanttToolbar.tsx +406 -0
  59. package/src/components/viewer/schedule/GenerateAdvancedPanel.tsx +147 -0
  60. package/src/components/viewer/schedule/GenerateScheduleDialog.tsx +392 -0
  61. package/src/components/viewer/schedule/HeightStrategyPanel.tsx +120 -0
  62. package/src/components/viewer/schedule/generate-schedule.test.ts +439 -0
  63. package/src/components/viewer/schedule/generate-schedule.ts +648 -0
  64. package/src/components/viewer/schedule/schedule-animator.test.ts +452 -0
  65. package/src/components/viewer/schedule/schedule-animator.ts +488 -0
  66. package/src/components/viewer/schedule/schedule-selection.test.ts +148 -0
  67. package/src/components/viewer/schedule/schedule-selection.ts +163 -0
  68. package/src/components/viewer/schedule/schedule-utils.ts +223 -0
  69. package/src/components/viewer/schedule/useConstructionSequence.ts +156 -0
  70. package/src/components/viewer/schedule/useGanttBarDrag.test.ts +90 -0
  71. package/src/components/viewer/schedule/useGanttBarDrag.ts +305 -0
  72. package/src/components/viewer/schedule/useGanttSelection3DHighlight.ts +152 -0
  73. package/src/components/viewer/schedule/useOverlayCompositor.ts +108 -0
  74. package/src/components/viewer/selectionHandlers.ts +446 -0
  75. package/src/components/viewer/tools/AddElementOverlay.tsx +581 -0
  76. package/src/components/viewer/useDuplicateShortcut.ts +77 -0
  77. package/src/components/viewer/useMouseControls.ts +9 -1
  78. package/src/components/viewer/usePointCloudLifecycle.ts +64 -0
  79. package/src/components/viewer/usePointCloudSync.ts +98 -0
  80. package/src/hooks/ingest/pointCloudIngest.ts +391 -0
  81. package/src/hooks/ingest/viewerModelIngest.ts +32 -3
  82. package/src/hooks/useIfcFederation.ts +72 -3
  83. package/src/hooks/useIfcLoader.ts +89 -13
  84. package/src/hooks/useKeyboardShortcuts.ts +25 -0
  85. package/src/hooks/useSandbox.ts +1 -1
  86. package/src/hooks/useSearchIndex.ts +125 -0
  87. package/src/index.css +66 -0
  88. package/src/lib/llm/system-prompt.test.ts +14 -0
  89. package/src/lib/llm/system-prompt.ts +102 -1
  90. package/src/lib/llm/types.ts +6 -0
  91. package/src/lib/recent-files.ts +38 -4
  92. package/src/lib/scripts/templates/bim-globals.d.ts +136 -114
  93. package/src/lib/scripts/templates/construction-schedule.ts +223 -0
  94. package/src/lib/scripts/templates.ts +7 -0
  95. package/src/lib/search/common-ifc-types.ts +36 -0
  96. package/src/lib/search/filter-evaluate.test.ts +537 -0
  97. package/src/lib/search/filter-evaluate.ts +610 -0
  98. package/src/lib/search/filter-rules.test.ts +119 -0
  99. package/src/lib/search/filter-rules.ts +198 -0
  100. package/src/lib/search/filter-schema.test.ts +233 -0
  101. package/src/lib/search/filter-schema.ts +146 -0
  102. package/src/lib/search/recent-searches.test.ts +116 -0
  103. package/src/lib/search/recent-searches.ts +93 -0
  104. package/src/lib/search/result-export.test.ts +101 -0
  105. package/src/lib/search/result-export.ts +104 -0
  106. package/src/lib/search/saved-filters.test.ts +118 -0
  107. package/src/lib/search/saved-filters.ts +154 -0
  108. package/src/lib/search/tier0-scan.test.ts +196 -0
  109. package/src/lib/search/tier0-scan.ts +237 -0
  110. package/src/lib/search/tier1-index.test.ts +242 -0
  111. package/src/lib/search/tier1-index.ts +448 -0
  112. package/src/sdk/adapters/export-adapter.test.ts +434 -1
  113. package/src/sdk/adapters/export-adapter.ts +404 -1
  114. package/src/sdk/adapters/export-schedule-splice.test.ts +127 -0
  115. package/src/sdk/adapters/export-schedule-splice.ts +87 -0
  116. package/src/sdk/adapters/model-compat.ts +8 -2
  117. package/src/sdk/adapters/schedule-adapter.ts +73 -0
  118. package/src/sdk/adapters/store-adapter.ts +201 -0
  119. package/src/sdk/adapters/visibility-adapter.ts +3 -0
  120. package/src/sdk/local-backend.ts +16 -8
  121. package/src/services/desktop-export.ts +3 -1
  122. package/src/services/desktop-native-metadata.ts +41 -18
  123. package/src/services/file-dialog.ts +8 -3
  124. package/src/services/tauri-modules.d.ts +25 -0
  125. package/src/store/basketVisibleSet.ts +3 -0
  126. package/src/store/globalId.ts +4 -1
  127. package/src/store/index.ts +79 -1
  128. package/src/store/slices/addElementMeshes.ts +365 -0
  129. package/src/store/slices/addElementSlice.ts +275 -0
  130. package/src/store/slices/annotationsSlice.test.ts +133 -0
  131. package/src/store/slices/annotationsSlice.ts +251 -0
  132. package/src/store/slices/dataSlice.test.ts +23 -4
  133. package/src/store/slices/dataSlice.ts +1 -1
  134. package/src/store/slices/modelSlice.test.ts +67 -9
  135. package/src/store/slices/modelSlice.ts +39 -7
  136. package/src/store/slices/mutationSlice.ts +964 -3
  137. package/src/store/slices/overlayCompositor.test.ts +164 -0
  138. package/src/store/slices/overlaySlice.test.ts +93 -0
  139. package/src/store/slices/overlaySlice.ts +151 -0
  140. package/src/store/slices/pinboardSlice.test.ts +6 -1
  141. package/src/store/slices/playbackSlice.ts +128 -0
  142. package/src/store/slices/pointCloudSlice.ts +102 -0
  143. package/src/store/slices/schedule-edit-helpers.test.ts +97 -0
  144. package/src/store/slices/schedule-edit-helpers.ts +179 -0
  145. package/src/store/slices/scheduleSlice.test.ts +694 -0
  146. package/src/store/slices/scheduleSlice.ts +1330 -0
  147. package/src/store/slices/searchSlice.test.ts +342 -0
  148. package/src/store/slices/searchSlice.ts +341 -0
  149. package/src/store/slices/selectionSlice.test.ts +46 -0
  150. package/src/store/slices/selectionSlice.ts +20 -0
  151. package/src/store/types.ts +7 -0
  152. package/src/store.ts +14 -0
  153. package/vite.config.ts +1 -0
  154. package/dist/assets/ifc-lite_bg-BINvzoCP.wasm +0 -0
  155. package/dist/assets/index-_bfZsDCC.css +0 -1
  156. package/dist/assets/sandbox-C8575tul.js +0 -5951
@@ -1 +1 @@
1
- let e;function p(n){K===x.length&&x.push(x.length+1);const t=K;return K=x[t],x[t]=n,t}const xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>n.dtor(n.a,n.b));function Zt(n){n<132||(x[n]=K,K=n)}function M(n,t){return n=n>>>0,Xt().subarray(n/4,n/4+t)}function $(n,t){return n=n>>>0,qt().subarray(n/8,n/8+t)}function Bt(n,t){return n=n>>>0,Et().subarray(n/4,n/4+t)}let O=null;function o(){return(O===null||O.buffer.detached===!0||O.buffer.detached===void 0&&O.buffer!==e.memory.buffer)&&(O=new DataView(e.memory.buffer)),O}let Y=null;function Xt(){return(Y===null||Y.byteLength===0)&&(Y=new Float32Array(e.memory.buffer)),Y}let Z=null;function qt(){return(Z===null||Z.byteLength===0)&&(Z=new Float64Array(e.memory.buffer)),Z}function f(n,t){return n=n>>>0,Ht(n,t)}let X=null;function Et(){return(X===null||X.byteLength===0)&&(X=new Uint32Array(e.memory.buffer)),X}let q=null;function H(){return(q===null||q.byteLength===0)&&(q=new Uint8Array(e.memory.buffer)),q}function b(n){return x[n]}function V(n,t){try{return n.apply(this,t)}catch(r){e.__wbindgen_export(p(r))}}let x=new Array(128).fill(void 0);x.push(void 0,null,!0,!1);let K=x.length;function A(n){return n==null}function Jt(n,t,r,_){const s={a:n,b:t,cnt:1,dtor:r},i=(...g)=>{s.cnt++;const c=s.a;s.a=0;try{return _(c,s.b,...g)}finally{s.a=c,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--s.cnt===0&&(s.dtor(s.a,s.b),s.a=0,xt.unregister(s))},xt.register(i,s,s),i}function S(n,t){const r=t(n.length*4,4)>>>0;return Et().set(n,r/4),a=n.length,r}function I(n,t){const r=t(n.length*1,1)>>>0;return H().set(n,r/1),a=n.length,r}function u(n,t,r){if(r===void 0){const c=Q.encode(n),d=t(c.length,1)>>>0;return H().subarray(d,d+c.length).set(c),a=c.length,d}let _=n.length,s=t(_,1)>>>0;const i=H();let g=0;for(;g<_;g++){const c=n.charCodeAt(g);if(c>127)break;i[s+g]=c}if(g!==_){g!==0&&(n=n.slice(g)),s=r(s,_,_=g+n.length*3,1)>>>0;const c=H().subarray(s+g,s+_),d=Q.encodeInto(n,c);g+=d.written,s=r(s,_,g,1)>>>0}return a=g,s}function w(n){const t=b(n);return Zt(n),t}let dt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});dt.decode();const $t=2146435072;let lt=0;function Ht(n,t){return lt+=t,lt>=$t&&(dt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),dt.decode(),lt=t),dt.decode(H().subarray(n,n+t))}const Q=new TextEncoder;"encodeInto"in Q||(Q.encodeInto=function(n,t){const r=Q.encode(n);return t.set(r),{read:n.length,written:r.length}});let a=0;function Kt(n,t,r){e.__wasm_bindgen_func_elem_1141(n,t,p(r))}function Qt(n,t,r,_){e.__wasm_bindgen_func_elem_1181(n,t,p(r),p(_))}const It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_georeferencejs_free(n>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpugeometry_free(n>>>0,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpuinstancedgeometry_free(n>>>0,1)),ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpuinstancedgeometrycollection_free(n>>>0,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpuinstancedgeometryref_free(n>>>0,1)),Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpumeshmetadata_free(n>>>0,1)),jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_ifcapi_free(n>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_instancedata_free(n>>>0,1)),zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_instancedgeometry_free(n>>>0,1)),St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_instancedmeshcollection_free(n>>>0,1)),Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshcollection_free(n>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshcollectionwithrtc_free(n>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshdatajs_free(n>>>0,1)),Ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profilecollection_free(n>>>0,1)),kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profileentryjs_free(n>>>0,1)),At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_rtcoffsetjs_free(n>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symboliccircle_free(n>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicpolyline_free(n>>>0,1)),Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicrepresentationcollection_free(n>>>0,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_zerocopymesh_free(n>>>0,1));class tt{static __wrap(t){t=t>>>0;const r=Object.create(tt.prototype);return r.__wbg_ptr=t,It.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_georeferencejs_free(t,0)}localToMap(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_localToMap(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),g=$(s,i).slice();return e.__wbindgen_export2(s,i*8,8),g}finally{e.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_mapToLocal(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),g=$(s,i).slice();return e.__wbindgen_export2(s,i*8,8),g}finally{e.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_crsName(_,this.__wbg_ptr);var t=o().getInt32(_+4*0,!0),r=o().getInt32(_+4*1,!0);let s;return t!==0&&(s=f(t,r).slice(),e.__wbindgen_export2(t,r*1,1)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return e.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_toMatrix(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=$(t,r).slice();return e.__wbindgen_export2(t,r*8,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return e.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){e.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return e.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){e.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return e.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){e.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return e.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){e.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return e.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){e.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return e.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){e.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);class D{static __wrap(t){t=t>>>0;const r=Object.create(D.prototype);return r.__wbg_ptr=t,ft.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpugeometry_free(t,0)}get meshCount(){return e.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return e.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return e.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return e.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return e.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return e.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return e.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,r,_){e.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,r,_)}get vertexDataLen(){return e.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return e.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.gpugeometry_getIfcTypeName(s,this.__wbg_ptr,t);var r=o().getInt32(s+4*0,!0),_=o().getInt32(s+4*1,!0);let i;return r!==0&&(i=f(r,_).slice(),e.__wbindgen_export2(r,_*1,1)),i}finally{e.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const r=e.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return r===0?void 0:_t.__wrap(r)}get totalVertexCount(){return e.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return e.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return e.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return e.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=e.gpugeometry_new();return this.__wbg_ptr=t>>>0,ft.register(this,this.__wbg_ptr,this),this}get isEmpty(){return e.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class et{static __wrap(t){t=t>>>0;const r=Object.create(et.prototype);return r.__wbg_ptr=t,yt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=e.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return e.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return e.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return e.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return e.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return e.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return e.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return e.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return e.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return e.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return e.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return e.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return e.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return e.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const r=e.gpuinstancedgeometry_new(t);return this.__wbg_ptr=r>>>0,yt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);class rt{static __wrap(t){t=t>>>0;const r=Object.create(rt.prototype);return r.__wbg_ptr=t,ht.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const r=e.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return r===0?void 0:et.__wrap(r)}constructor(){const t=e.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,ht.register(this,this.__wbg_ptr,this),this}get length(){return e.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const r=e.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return r===0?void 0:nt.__wrap(r)}}Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);class nt{static __wrap(t){t=t>>>0;const r=Object.create(nt.prototype);return r.__wbg_ptr=t,vt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=e.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return e.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return e.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return e.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return e.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return e.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return e.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return e.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return e.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return e.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return e.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return e.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);class _t{static __wrap(t){t=t>>>0;const r=Object.create(_t.prototype);return r.__wbg_ptr=t,Ft.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ft.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return e.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return e.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return e.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return e.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return e.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return e.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.gpumeshmetadata_color(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);class L{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_ifcapi_free(t,0)}parseMeshes(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseMeshes(this.__wbg_ptr,r,_);return v.__wrap(s)}parseMeshesAsync(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_parseMeshesAsync(this.__wbg_ptr,_,s,p(r));return w(i)}buildPrePassFast(t){const r=I(t,e.__wbindgen_export3),_=a,s=e.ifcapi_buildPrePassFast(this.__wbg_ptr,r,_);return w(s)}buildPrePassOnce(t){const r=I(t,e.__wbindgen_export3),_=a,s=e.ifcapi_buildPrePassOnce(this.__wbg_ptr,r,_);return w(s)}parseMeshesSubset(t,r,_,s){const i=u(t,e.__wbindgen_export3,e.__wbindgen_export4),g=a,c=e.ifcapi_parseMeshesSubset(this.__wbg_ptr,i,g,r,_,s);return v.__wrap(c)}parseToGpuGeometry(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseToGpuGeometry(this.__wbg_ptr,r,_);return D.__wrap(s)}parseMeshesInstanced(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseMeshesInstanced(this.__wbg_ptr,r,_);return B.__wrap(s)}processGeometryBatch(t,r,_,s,i,g,c,d,E,G,W,U){const C=I(t,e.__wbindgen_export3),F=a,k=S(r,e.__wbindgen_export3),N=a,j=S(d,e.__wbindgen_export3),y=a,m=S(E,e.__wbindgen_export3),l=a,R=S(G,e.__wbindgen_export3),z=a,ut=S(W,e.__wbindgen_export3),Ut=a,Nt=I(U,e.__wbindgen_export3),Vt=a,Yt=e.ifcapi_processGeometryBatch(this.__wbg_ptr,C,F,k,N,_,s,i,g,c,j,y,m,l,R,z,ut,Ut,Nt,Vt);return v.__wrap(Yt)}parseToGpuGeometryAsync(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,_,s,p(r));return w(i)}parseMeshesInstancedAsync(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,_,s,p(r));return w(i)}parseToGpuInstancedGeometry(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,r,_);return rt.__wrap(s)}processInstancedGeometryBatch(t,r,_,s,i,g,c,d,E){const G=I(t,e.__wbindgen_export3),W=a,U=S(r,e.__wbindgen_export3),C=a,F=S(d,e.__wbindgen_export3),k=a,N=I(E,e.__wbindgen_export3),j=a,y=e.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,G,W,U,C,_,s,i,g,c,F,k,N,j);return B.__wrap(y)}parseZeroCopy(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseZeroCopy(this.__wbg_ptr,r,_);return wt.__wrap(s)}extractProfiles(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_extractProfiles(this.__wbg_ptr,_,s,r);return ot.__wrap(i)}debugProcessEntity953(t){let r,_;try{const g=e.__wbindgen_add_to_stack_pointer(-16),c=u(t,e.__wbindgen_export3,e.__wbindgen_export4),d=a;e.ifcapi_debugProcessEntity953(g,this.__wbg_ptr,c,d);var s=o().getInt32(g+4*0,!0),i=o().getInt32(g+4*1,!0);return r=s,_=i,f(s,i)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(r,_,1)}}debugProcessFirstWall(t){let r,_;try{const g=e.__wbindgen_add_to_stack_pointer(-16),c=u(t,e.__wbindgen_export3,e.__wbindgen_export4),d=a;e.ifcapi_debugProcessFirstWall(g,this.__wbg_ptr,c,d);var s=o().getInt32(g+4*0,!0),i=o().getInt32(g+4*1,!0);return r=s,_=i,f(s,i)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(r,_,1)}}getMemory(){const t=e.ifcapi_getMemory(this.__wbg_ptr);return w(t)}clearPrePassCache(){e.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=e.ifcapi_new();return this.__wbg_ptr=t>>>0,jt.register(this,this.__wbg_ptr,this),this}get version(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.ifcapi_version(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get is_ready(){return e.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_getGeoReference(this.__wbg_ptr,r,_);return s===0?void 0:tt.__wrap(s)}parseMeshesWithRtc(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,r,_);return it.__wrap(s)}parseStreaming(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_parseStreaming(this.__wbg_ptr,_,s,p(r));return w(i)}scanEntitiesFast(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_scanEntitiesFast(this.__wbg_ptr,r,_);return w(s)}scanEntitiesFastBytes(t){const r=I(t,e.__wbindgen_export3),_=a,s=e.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,r,_);return w(s)}scanGeometryEntitiesFast(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,r,_);return w(s)}scanRelevantEntitiesFastBytes(t){const r=I(t,e.__wbindgen_export3),_=a,s=e.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,r,_);return w(s)}parse(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parse(this.__wbg_ptr,r,_);return w(s)}parseSymbolicRepresentations(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,r,_);return bt.__wrap(s)}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class st{static __wrap(t){t=t>>>0;const r=Object.create(st.prototype);return r.__wbg_ptr=t,Rt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_instancedata_free(t,0)}get expressId(){return e.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.instancedata_color(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=e.instancedata_transform(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(st.prototype[Symbol.dispose]=st.prototype.free);class T{static __wrap(t){t=t>>>0;const r=Object.create(T.prototype);return r.__wbg_ptr=t,zt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=e.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const r=e.instancedgeometry_get_instance(this.__wbg_ptr,t);return r===0?void 0:st.__wrap(r)}get instance_count(){return e.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=e.instancedgeometry_indices(this.__wbg_ptr);return w(t)}get normals(){const t=e.instancedgeometry_normals(this.__wbg_ptr);return w(t)}get positions(){const t=e.instancedgeometry_positions(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);class B{static __wrap(t){t=t>>>0;const r=Object.create(B.prototype);return r.__wbg_ptr=t,St.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return e.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return e.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const r=e.instancedmeshcollection_get(this.__wbg_ptr,t);return r===0?void 0:T.__wrap(r)}get length(){return e.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);class v{static __wrap(t){t=t>>>0;const r=Object.create(v.prototype);return r.__wbg_ptr=t,Ot.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return e.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return e.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return e.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return e.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.meshcollection_localToWorld(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),g=$(s,i).slice();return e.__wbindgen_export2(s,i*8,8),g}finally{e.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return e.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return e.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=o().getInt32(_+4*0,!0),r=o().getFloat64(_+8*1,!0);return t===0?void 0:r}finally{e.__wbindgen_add_to_stack_pointer(16)}}get(t){const r=e.meshcollection_get(this.__wbg_ptr,t);return r===0?void 0:P.__wrap(r)}get length(){return e.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(v.prototype[Symbol.dispose]=v.prototype.free);class it{static __wrap(t){t=t>>>0;const r=Object.create(it.prototype);return r.__wbg_ptr=t,Mt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=e.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return gt.__wrap(t)}get(t){const r=e.meshcollectionwithrtc_get(this.__wbg_ptr,t);return r===0?void 0:P.__wrap(r)}get length(){return e.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=e.meshcollectionwithrtc_meshes(this.__wbg_ptr);return v.__wrap(t)}}Symbol.dispose&&(it.prototype[Symbol.dispose]=it.prototype.free);class P{static __wrap(t){t=t>>>0;const r=Object.create(P.prototype);return r.__wbg_ptr=t,Pt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshdatajs_free(t,0)}get expressId(){return e.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return e.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get triangleCount(){return e.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_color(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=e.meshdatajs_indices(this.__wbg_ptr);return w(t)}get normals(){const t=e.meshdatajs_normals(this.__wbg_ptr);return w(t)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get positions(){const t=e.meshdatajs_positions(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class ot{static __wrap(t){t=t>>>0;const r=Object.create(ot.prototype);return r.__wbg_ptr=t,Ct.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ct.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profilecollection_free(t,0)}get(t){const r=e.profilecollection_get(this.__wbg_ptr,t);return r===0?void 0:ct.__wrap(r)}get length(){return e.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(ot.prototype[Symbol.dispose]=ot.prototype.free);class ct{static __wrap(t){t=t>>>0;const r=Object.create(ct.prototype);return r.__wbg_ptr=t,kt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profileentryjs_free(t,0)}get expressId(){return e.meshdatajs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=e.profileentryjs_holeCounts(this.__wbg_ptr);return w(t)}get holePoints(){const t=e.profileentryjs_holePoints(this.__wbg_ptr);return w(t)}get modelIndex(){return e.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=e.profileentryjs_outerPoints(this.__wbg_ptr);return w(t)}get extrusionDir(){const t=e.profileentryjs_extrusionDir(this.__wbg_ptr);return w(t)}get extrusionDepth(){return e.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.profileentryjs_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get transform(){const t=e.profileentryjs_transform(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(ct.prototype[Symbol.dispose]=ct.prototype.free);class gt{static __wrap(t){t=t>>>0;const r=Object.create(gt.prototype);return r.__wbg_ptr=t,At.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return e.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.rtcoffsetjs_toWorld(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),g=$(s,i).slice();return e.__wbindgen_export2(s,i*8,8),g}finally{e.__wbindgen_add_to_stack_pointer(16)}}get x(){return e.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){e.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return e.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){e.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return e.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){e.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(gt.prototype[Symbol.dispose]=gt.prototype.free);class at{static __wrap(t){t=t>>>0;const r=Object.create(at.prototype);return r.__wbg_ptr=t,Lt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symboliccircle_free(t,0)}get expressId(){return e.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return e.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return e.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_repIdentifier(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get radius(){return e.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return e.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return e.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get endAngle(){return e.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(at.prototype[Symbol.dispose]=at.prototype.free);class pt{static __wrap(t){t=t>>>0;const r=Object.create(pt.prototype);return r.__wbg_ptr=t,Dt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicpolyline_free(t,0)}get expressId(){return e.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return e.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_repIdentifier(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get points(){const t=e.symbolicpolyline_points(this.__wbg_ptr);return w(t)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get isClosed(){return e.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(pt.prototype[Symbol.dispose]=pt.prototype.free);class bt{static __wrap(t){t=t>>>0;const r=Object.create(bt.prototype);return r.__wbg_ptr=t,Tt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Tt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const r=e.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return r===0?void 0:at.__wrap(r)}get totalCount(){return e.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return e.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const r=e.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return r===0?void 0:pt.__wrap(r)}get polylineCount(){return e.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=Bt(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return e.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(bt.prototype[Symbol.dispose]=bt.prototype.free);class wt{static __wrap(t){t=t>>>0;const r=Object.create(wt.prototype);return r.__wbg_ptr=t,mt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.zerocopymesh_bounds_max(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.zerocopymesh_bounds_min(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return e.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return e.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return e.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return e.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return e.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return e.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return e.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return e.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=e.zerocopymesh_new();return this.__wbg_ptr=t>>>0,mt.register(this,this.__wbg_ptr,this),this}get is_empty(){return e.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(wt.prototype[Symbol.dispose]=wt.prototype.free);const te=new Set(["basic","cors","default"]);async function ee(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(_){if(n.ok&&te.has(n.type)&&n.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}const r=await n.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{const r=await WebAssembly.instantiate(n,t);return r instanceof WebAssembly.Instance?{instance:r,module:n}:r}}function Gt(){const n={};return n.wbg={},n.wbg.__wbg_Error_52673b7de5a0ca89=function(t,r){const _=Error(f(t,r));return p(_)},n.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(t){return typeof b(t)=="function"},n.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(t){return b(t)===void 0},n.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const t=e.memory;return p(t)},n.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(t,r){const _=b(r),s=typeof _=="number"?_:void 0;o().setFloat64(t+8*1,A(s)?0:s,!0),o().setInt32(t+4*0,!A(s),!0)},n.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(t,r){throw new Error(f(t,r))},n.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(t){b(t)._wbg_cb_unref()},n.wbg.__wbg_call_3020136f7a2d6e44=function(){return V(function(t,r,_){const s=b(t).call(b(r),b(_));return p(s)},arguments)},n.wbg.__wbg_call_abb4ff46ce38be40=function(){return V(function(t,r){const _=b(t).call(b(r));return p(_)},arguments)},n.wbg.__wbg_call_c8baa5c5e72d274e=function(){return V(function(t,r,_,s){const i=b(t).call(b(r),b(_),b(s));return p(i)},arguments)},n.wbg.__wbg_debug_9d0c87ddda3dc485=function(t){console.debug(b(t))},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,r){let _,s;try{_=t,s=r,console.error(f(t,r))}finally{e.__wbindgen_export2(_,s,1)}},n.wbg.__wbg_get_af9dab7e9603ea93=function(){return V(function(t,r){const _=Reflect.get(b(t),b(r));return p(_)},arguments)},n.wbg.__wbg_gpugeometry_new=function(t){const r=D.__wrap(t);return p(r)},n.wbg.__wbg_instancedgeometry_new=function(t){const r=T.__wrap(t);return p(r)},n.wbg.__wbg_length_86ce4877baf913bb=function(t){return b(t).length},n.wbg.__wbg_length_d45040a40c570362=function(t){return b(t).length},n.wbg.__wbg_meshdatajs_new=function(t){const r=P.__wrap(t);return p(r)},n.wbg.__wbg_new_1ba21ce319a06297=function(){const t=new Object;return p(t)},n.wbg.__wbg_new_25f239778d6112b9=function(){const t=new Array;return p(t)},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){const t=new Error;return p(t)},n.wbg.__wbg_new_ff12d2b041fb48f1=function(t,r){try{var _={a:t,b:r},s=(g,c)=>{const d=_.a;_.a=0;try{return Qt(d,_.b,g,c)}finally{_.a=d}};const i=new Promise(s);return p(i)}finally{_.a=_.b=0}},n.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(t,r){const _=new Float32Array(M(t,r));return p(_)},n.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(t,r){const _=new Uint32Array(Bt(t,r));return p(_)},n.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(t,r){const _=new Function(f(t,r));return p(_)},n.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(t){const r=new Uint32Array(t>>>0);return p(r)},n.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(t){const r=new Float64Array(t>>>0);return p(r)},n.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(t){const r=new Uint8Array(t>>>0);return p(r)},n.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(t,r,_){Float32Array.prototype.set.call(M(t,r),b(_))},n.wbg.__wbg_push_7d9be8f38fc13975=function(t,r){return b(t).push(b(r))},n.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(t){const r=b(t).queueMicrotask;return p(r)},n.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(t){queueMicrotask(b(t))},n.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(t){const r=Promise.resolve(b(t));return p(r)},n.wbg.__wbg_set_3f1d0b984ed272ed=function(t,r,_){b(t)[w(r)]=w(_)},n.wbg.__wbg_set_781438a03c0c3c81=function(){return V(function(t,r,_){return Reflect.set(b(t),b(r),b(_))},arguments)},n.wbg.__wbg_set_7df433eea03a5c14=function(t,r,_){b(t)[r>>>0]=w(_)},n.wbg.__wbg_set_index_021489b2916af13e=function(t,r,_){b(t)[r>>>0]=_},n.wbg.__wbg_set_index_04c4b93e64d08a52=function(t,r,_){b(t)[r>>>0]=_},n.wbg.__wbg_set_index_42abe35f117e614e=function(t,r,_){b(t)[r>>>0]=_>>>0},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,r){const _=b(r).stack,s=u(_,e.__wbindgen_export3,e.__wbindgen_export4),i=a;o().setInt32(t+4*1,i,!0),o().setInt32(t+4*0,s,!0)},n.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const t=typeof global>"u"?null:global;return A(t)?0:p(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const t=typeof globalThis>"u"?null:globalThis;return A(t)?0:p(t)},n.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const t=typeof self>"u"?null:self;return A(t)?0:p(t)},n.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const t=typeof window>"u"?null:window;return A(t)?0:p(t)},n.wbg.__wbg_then_4f95312d68691235=function(t,r){const _=b(t).then(b(r));return p(_)},n.wbg.__wbg_warn_6e567d0d926ff881=function(t){console.warn(b(t))},n.wbg.__wbindgen_cast_2241b6af4c4b2941=function(t,r){const _=f(t,r);return p(_)},n.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(t){const r=BigInt.asUintN(64,t);return p(r)},n.wbg.__wbindgen_cast_782a03ac5d769879=function(t,r){const _=Jt(t,r,e.__wasm_bindgen_func_elem_1140,Kt);return p(_)},n.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(t){return p(t)},n.wbg.__wbindgen_object_clone_ref=function(t){const r=b(t);return p(r)},n.wbg.__wbindgen_object_drop_ref=function(t){w(t)},n}function Wt(n,t){return e=n.exports,J.__wbindgen_wasm_module=t,O=null,Y=null,Z=null,X=null,q=null,e.__wbindgen_start(),e}function re(n){if(e!==void 0)return e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module:n}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=Gt();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));const r=new WebAssembly.Instance(n,t);return Wt(r,n)}async function J(n){if(e!==void 0)return e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("/assets/ifc-lite_bg-BINvzoCP.wasm",import.meta.url));const t=Gt();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:r,module:_}=await ee(await n,t);return Wt(r,_)}let h=null;self.onmessage=async n=>{try{if(n.data.type==="prepass"||n.data.type==="prepass-fast"){h||(await J(),h=new L);const t=new Uint8Array(n.data.sharedBuffer.byteLength);t.set(new Uint8Array(n.data.sharedBuffer));const r=n.data.type==="prepass-fast"?h.buildPrePassFast(t):h.buildPrePassOnce(t);self.postMessage({type:"prepass-result",result:r});return}if(n.data.type==="init"){n.data.wasmModule?re({module_or_path:n.data.wasmModule}):await J(),h=new L,self.postMessage({type:"ready"});return}if(n.data.type==="process"){h||(await J(),h=new L);const{sharedBuffer:t,jobsFlat:r,unitScale:_,rtcX:s,rtcY:i,rtcZ:g,needsShift:c,voidKeys:d,voidCounts:E,voidValues:G,styleIds:W,styleColors:U}=n.data,C=new Uint8Array(t.byteLength);C.set(new Uint8Array(t));const F=[],k=[],N=y=>{for(let m=0;m<y.length;m++){const l=y.get(m);if(!l)continue;const R=new Float32Array(l.positions),z=new Float32Array(l.normals),ut=new Uint32Array(l.indices);F.push({expressId:l.expressId,ifcType:l.ifcType,positions:R,normals:z,indices:ut,color:[l.color[0],l.color[1],l.color[2],l.color[3]]}),k.push(R.buffer,z.buffer,ut.buffer),l.free()}y.free()},j=async y=>{const m=Math.floor(y.length/3);if(m!==0)try{h||(await J(),h=new L);const l=h.processGeometryBatch(C,y,_,s,i,g,c,d,E,G,W,U);N(l)}catch(l){const R=l.message;if(m===1){console.warn(`[Worker] Skipping entity #${y[0]}: ${R}`),h=null;return}console.warn(`[Worker] Batch of ${m} entities failed (${R}), splitting…`),h=null;const z=Math.floor(m/2)*3;await j(y.slice(0,z)),await j(y.slice(z))}};await j(r),self.postMessage({type:"batch",meshes:F},k),self.postMessage({type:"complete",totalMeshes:F.length})}}catch(t){self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})}};
1
+ let e;function p(n){K===x.length&&x.push(x.length+1);const t=K;return K=x[t],x[t]=n,t}const xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>n.dtor(n.a,n.b));function Zt(n){n<132||(x[n]=K,K=n)}function M(n,t){return n=n>>>0,Xt().subarray(n/4,n/4+t)}function $(n,t){return n=n>>>0,qt().subarray(n/8,n/8+t)}function Bt(n,t){return n=n>>>0,Et().subarray(n/4,n/4+t)}let O=null;function o(){return(O===null||O.buffer.detached===!0||O.buffer.detached===void 0&&O.buffer!==e.memory.buffer)&&(O=new DataView(e.memory.buffer)),O}let Y=null;function Xt(){return(Y===null||Y.byteLength===0)&&(Y=new Float32Array(e.memory.buffer)),Y}let Z=null;function qt(){return(Z===null||Z.byteLength===0)&&(Z=new Float64Array(e.memory.buffer)),Z}function f(n,t){return n=n>>>0,Ht(n,t)}let X=null;function Et(){return(X===null||X.byteLength===0)&&(X=new Uint32Array(e.memory.buffer)),X}let q=null;function H(){return(q===null||q.byteLength===0)&&(q=new Uint8Array(e.memory.buffer)),q}function b(n){return x[n]}function V(n,t){try{return n.apply(this,t)}catch(r){e.__wbindgen_export(p(r))}}let x=new Array(128).fill(void 0);x.push(void 0,null,!0,!1);let K=x.length;function C(n){return n==null}function Jt(n,t,r,_){const s={a:n,b:t,cnt:1,dtor:r},i=(...g)=>{s.cnt++;const c=s.a;s.a=0;try{return _(c,s.b,...g)}finally{s.a=c,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--s.cnt===0&&(s.dtor(s.a,s.b),s.a=0,xt.unregister(s))},xt.register(i,s,s),i}function S(n,t){const r=t(n.length*4,4)>>>0;return Et().set(n,r/4),a=n.length,r}function I(n,t){const r=t(n.length*1,1)>>>0;return H().set(n,r/1),a=n.length,r}function u(n,t,r){if(r===void 0){const c=Q.encode(n),d=t(c.length,1)>>>0;return H().subarray(d,d+c.length).set(c),a=c.length,d}let _=n.length,s=t(_,1)>>>0;const i=H();let g=0;for(;g<_;g++){const c=n.charCodeAt(g);if(c>127)break;i[s+g]=c}if(g!==_){g!==0&&(n=n.slice(g)),s=r(s,_,_=g+n.length*3,1)>>>0;const c=H().subarray(s+g,s+_),d=Q.encodeInto(n,c);g+=d.written,s=r(s,_,g,1)>>>0}return a=g,s}function w(n){const t=b(n);return Zt(n),t}let dt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});dt.decode();const $t=2146435072;let lt=0;function Ht(n,t){return lt+=t,lt>=$t&&(dt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),dt.decode(),lt=t),dt.decode(H().subarray(n,n+t))}const Q=new TextEncoder;"encodeInto"in Q||(Q.encodeInto=function(n,t){const r=Q.encode(n);return t.set(r),{read:n.length,written:r.length}});let a=0;function Kt(n,t,r){e.__wasm_bindgen_func_elem_1151(n,t,p(r))}function Qt(n,t,r,_){e.__wasm_bindgen_func_elem_1190(n,t,p(r),p(_))}const It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_georeferencejs_free(n>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpugeometry_free(n>>>0,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpuinstancedgeometry_free(n>>>0,1)),ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpuinstancedgeometrycollection_free(n>>>0,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpuinstancedgeometryref_free(n>>>0,1)),Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_gpumeshmetadata_free(n>>>0,1)),jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_ifcapi_free(n>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_instancedata_free(n>>>0,1)),zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_instancedgeometry_free(n>>>0,1)),St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_instancedmeshcollection_free(n>>>0,1)),Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshcollection_free(n>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshcollectionwithrtc_free(n>>>0,1)),kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_meshdatajs_free(n>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profilecollection_free(n>>>0,1)),At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_profileentryjs_free(n>>>0,1)),Ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_rtcoffsetjs_free(n>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symboliccircle_free(n>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicpolyline_free(n>>>0,1)),Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_symbolicrepresentationcollection_free(n>>>0,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>e.__wbg_zerocopymesh_free(n>>>0,1));class tt{static __wrap(t){t=t>>>0;const r=Object.create(tt.prototype);return r.__wbg_ptr=t,It.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_georeferencejs_free(t,0)}localToMap(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_localToMap(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),g=$(s,i).slice();return e.__wbindgen_export2(s,i*8,8),g}finally{e.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_mapToLocal(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),g=$(s,i).slice();return e.__wbindgen_export2(s,i*8,8),g}finally{e.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_crsName(_,this.__wbg_ptr);var t=o().getInt32(_+4*0,!0),r=o().getInt32(_+4*1,!0);let s;return t!==0&&(s=f(t,r).slice(),e.__wbindgen_export2(t,r*1,1)),s}finally{e.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return e.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.georeferencejs_toMatrix(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=$(t,r).slice();return e.__wbindgen_export2(t,r*8,8),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return e.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){e.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return e.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){e.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return e.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){e.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return e.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){e.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return e.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){e.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return e.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){e.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);class D{static __wrap(t){t=t>>>0;const r=Object.create(D.prototype);return r.__wbg_ptr=t,ft.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpugeometry_free(t,0)}get meshCount(){return e.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return e.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return e.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return e.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return e.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return e.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return e.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,r,_){e.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,r,_)}get vertexDataLen(){return e.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return e.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.gpugeometry_getIfcTypeName(s,this.__wbg_ptr,t);var r=o().getInt32(s+4*0,!0),_=o().getInt32(s+4*1,!0);let i;return r!==0&&(i=f(r,_).slice(),e.__wbindgen_export2(r,_*1,1)),i}finally{e.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const r=e.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return r===0?void 0:_t.__wrap(r)}get totalVertexCount(){return e.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return e.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return e.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return e.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=e.gpugeometry_new();return this.__wbg_ptr=t>>>0,ft.register(this,this.__wbg_ptr,this),this}get isEmpty(){return e.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class et{static __wrap(t){t=t>>>0;const r=Object.create(et.prototype);return r.__wbg_ptr=t,yt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=e.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return e.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return e.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return e.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return e.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return e.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return e.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return e.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return e.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return e.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return e.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return e.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return e.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return e.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const r=e.gpuinstancedgeometry_new(t);return this.__wbg_ptr=r>>>0,yt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);class rt{static __wrap(t){t=t>>>0;const r=Object.create(rt.prototype);return r.__wbg_ptr=t,ht.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const r=e.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return r===0?void 0:et.__wrap(r)}constructor(){const t=e.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,ht.register(this,this.__wbg_ptr,this),this}get length(){return e.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const r=e.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return r===0?void 0:nt.__wrap(r)}}Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);class nt{static __wrap(t){t=t>>>0;const r=Object.create(nt.prototype);return r.__wbg_ptr=t,vt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=e.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return e.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return e.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return e.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return e.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return e.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return e.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return e.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return e.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return e.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return e.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return e.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);class _t{static __wrap(t){t=t>>>0;const r=Object.create(_t.prototype);return r.__wbg_ptr=t,Ft.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ft.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return e.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return e.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return e.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return e.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return e.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return e.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.gpumeshmetadata_color(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);class L{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_ifcapi_free(t,0)}parseMeshes(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseMeshes(this.__wbg_ptr,r,_);return v.__wrap(s)}parseMeshesAsync(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_parseMeshesAsync(this.__wbg_ptr,_,s,p(r));return w(i)}buildPrePassFast(t){const r=I(t,e.__wbindgen_export3),_=a,s=e.ifcapi_buildPrePassFast(this.__wbg_ptr,r,_);return w(s)}buildPrePassOnce(t){const r=I(t,e.__wbindgen_export3),_=a,s=e.ifcapi_buildPrePassOnce(this.__wbg_ptr,r,_);return w(s)}parseMeshesSubset(t,r,_,s){const i=u(t,e.__wbindgen_export3,e.__wbindgen_export4),g=a,c=e.ifcapi_parseMeshesSubset(this.__wbg_ptr,i,g,r,_,s);return v.__wrap(c)}parseToGpuGeometry(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseToGpuGeometry(this.__wbg_ptr,r,_);return D.__wrap(s)}parseMeshesInstanced(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseMeshesInstanced(this.__wbg_ptr,r,_);return B.__wrap(s)}processGeometryBatch(t,r,_,s,i,g,c,d,E,G,W,U){const P=I(t,e.__wbindgen_export3),F=a,A=S(r,e.__wbindgen_export3),N=a,j=S(d,e.__wbindgen_export3),y=a,m=S(E,e.__wbindgen_export3),l=a,R=S(G,e.__wbindgen_export3),z=a,ut=S(W,e.__wbindgen_export3),Ut=a,Nt=I(U,e.__wbindgen_export3),Vt=a,Yt=e.ifcapi_processGeometryBatch(this.__wbg_ptr,P,F,A,N,_,s,i,g,c,j,y,m,l,R,z,ut,Ut,Nt,Vt);return v.__wrap(Yt)}parseToGpuGeometryAsync(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,_,s,p(r));return w(i)}parseMeshesInstancedAsync(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,_,s,p(r));return w(i)}parseToGpuInstancedGeometry(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,r,_);return rt.__wrap(s)}processInstancedGeometryBatch(t,r,_,s,i,g,c,d,E){const G=I(t,e.__wbindgen_export3),W=a,U=S(r,e.__wbindgen_export3),P=a,F=S(d,e.__wbindgen_export3),A=a,N=I(E,e.__wbindgen_export3),j=a,y=e.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,G,W,U,P,_,s,i,g,c,F,A,N,j);return B.__wrap(y)}parseZeroCopy(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseZeroCopy(this.__wbg_ptr,r,_);return wt.__wrap(s)}extractProfiles(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_extractProfiles(this.__wbg_ptr,_,s,r);return ot.__wrap(i)}debugProcessEntity953(t){let r,_;try{const g=e.__wbindgen_add_to_stack_pointer(-16),c=u(t,e.__wbindgen_export3,e.__wbindgen_export4),d=a;e.ifcapi_debugProcessEntity953(g,this.__wbg_ptr,c,d);var s=o().getInt32(g+4*0,!0),i=o().getInt32(g+4*1,!0);return r=s,_=i,f(s,i)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(r,_,1)}}debugProcessFirstWall(t){let r,_;try{const g=e.__wbindgen_add_to_stack_pointer(-16),c=u(t,e.__wbindgen_export3,e.__wbindgen_export4),d=a;e.ifcapi_debugProcessFirstWall(g,this.__wbg_ptr,c,d);var s=o().getInt32(g+4*0,!0),i=o().getInt32(g+4*1,!0);return r=s,_=i,f(s,i)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(r,_,1)}}getMemory(){const t=e.ifcapi_getMemory(this.__wbg_ptr);return w(t)}clearPrePassCache(){e.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=e.ifcapi_new();return this.__wbg_ptr=t>>>0,jt.register(this,this.__wbg_ptr,this),this}get version(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.ifcapi_version(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get is_ready(){return e.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_getGeoReference(this.__wbg_ptr,r,_);return s===0?void 0:tt.__wrap(s)}parseMeshesWithRtc(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,r,_);return it.__wrap(s)}parseStreaming(t,r){const _=u(t,e.__wbindgen_export3,e.__wbindgen_export4),s=a,i=e.ifcapi_parseStreaming(this.__wbg_ptr,_,s,p(r));return w(i)}scanEntitiesFast(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_scanEntitiesFast(this.__wbg_ptr,r,_);return w(s)}scanEntitiesFastBytes(t){const r=I(t,e.__wbindgen_export3),_=a,s=e.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,r,_);return w(s)}scanGeometryEntitiesFast(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,r,_);return w(s)}scanRelevantEntitiesFastBytes(t){const r=I(t,e.__wbindgen_export3),_=a,s=e.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,r,_);return w(s)}parse(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parse(this.__wbg_ptr,r,_);return w(s)}parseSymbolicRepresentations(t){const r=u(t,e.__wbindgen_export3,e.__wbindgen_export4),_=a,s=e.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,r,_);return bt.__wrap(s)}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class st{static __wrap(t){t=t>>>0;const r=Object.create(st.prototype);return r.__wbg_ptr=t,Rt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_instancedata_free(t,0)}get expressId(){return e.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.instancedata_color(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=e.instancedata_transform(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(st.prototype[Symbol.dispose]=st.prototype.free);class T{static __wrap(t){t=t>>>0;const r=Object.create(T.prototype);return r.__wbg_ptr=t,zt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=e.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const r=e.instancedgeometry_get_instance(this.__wbg_ptr,t);return r===0?void 0:st.__wrap(r)}get instance_count(){return e.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=e.instancedgeometry_indices(this.__wbg_ptr);return w(t)}get normals(){const t=e.instancedgeometry_normals(this.__wbg_ptr);return w(t)}get positions(){const t=e.instancedgeometry_positions(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);class B{static __wrap(t){t=t>>>0;const r=Object.create(B.prototype);return r.__wbg_ptr=t,St.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return e.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return e.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const r=e.instancedmeshcollection_get(this.__wbg_ptr,t);return r===0?void 0:T.__wrap(r)}get length(){return e.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);class v{static __wrap(t){t=t>>>0;const r=Object.create(v.prototype);return r.__wbg_ptr=t,Ot.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return e.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return e.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return e.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return e.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.meshcollection_localToWorld(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),g=$(s,i).slice();return e.__wbindgen_export2(s,i*8,8),g}finally{e.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return e.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return e.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=o().getInt32(_+4*0,!0),r=o().getFloat64(_+8*1,!0);return t===0?void 0:r}finally{e.__wbindgen_add_to_stack_pointer(16)}}get(t){const r=e.meshcollection_get(this.__wbg_ptr,t);return r===0?void 0:k.__wrap(r)}get length(){return e.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(v.prototype[Symbol.dispose]=v.prototype.free);class it{static __wrap(t){t=t>>>0;const r=Object.create(it.prototype);return r.__wbg_ptr=t,Mt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=e.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return gt.__wrap(t)}get(t){const r=e.meshcollectionwithrtc_get(this.__wbg_ptr,t);return r===0?void 0:k.__wrap(r)}get length(){return e.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=e.meshcollectionwithrtc_meshes(this.__wbg_ptr);return v.__wrap(t)}}Symbol.dispose&&(it.prototype[Symbol.dispose]=it.prototype.free);class k{static __wrap(t){t=t>>>0;const r=Object.create(k.prototype);return r.__wbg_ptr=t,kt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_meshdatajs_free(t,0)}get expressId(){return e.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return e.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get triangleCount(){return e.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_color(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=e.meshdatajs_indices(this.__wbg_ptr);return w(t)}get normals(){const t=e.meshdatajs_normals(this.__wbg_ptr);return w(t)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.meshdatajs_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get positions(){const t=e.meshdatajs_positions(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(k.prototype[Symbol.dispose]=k.prototype.free);class ot{static __wrap(t){t=t>>>0;const r=Object.create(ot.prototype);return r.__wbg_ptr=t,Pt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profilecollection_free(t,0)}get(t){const r=e.profilecollection_get(this.__wbg_ptr,t);return r===0?void 0:ct.__wrap(r)}get length(){return e.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(ot.prototype[Symbol.dispose]=ot.prototype.free);class ct{static __wrap(t){t=t>>>0;const r=Object.create(ct.prototype);return r.__wbg_ptr=t,At.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_profileentryjs_free(t,0)}get expressId(){return e.meshdatajs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=e.profileentryjs_holeCounts(this.__wbg_ptr);return w(t)}get holePoints(){const t=e.profileentryjs_holePoints(this.__wbg_ptr);return w(t)}get modelIndex(){return e.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=e.profileentryjs_outerPoints(this.__wbg_ptr);return w(t)}get extrusionDir(){const t=e.profileentryjs_extrusionDir(this.__wbg_ptr);return w(t)}get extrusionDepth(){return e.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.profileentryjs_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get transform(){const t=e.profileentryjs_transform(this.__wbg_ptr);return w(t)}}Symbol.dispose&&(ct.prototype[Symbol.dispose]=ct.prototype.free);class gt{static __wrap(t){t=t>>>0;const r=Object.create(gt.prototype);return r.__wbg_ptr=t,Ct.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ct.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return e.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,r,_){try{const c=e.__wbindgen_add_to_stack_pointer(-16);e.rtcoffsetjs_toWorld(c,this.__wbg_ptr,t,r,_);var s=o().getInt32(c+4*0,!0),i=o().getInt32(c+4*1,!0),g=$(s,i).slice();return e.__wbindgen_export2(s,i*8,8),g}finally{e.__wbindgen_add_to_stack_pointer(16)}}get x(){return e.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){e.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return e.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){e.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return e.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){e.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(gt.prototype[Symbol.dispose]=gt.prototype.free);class at{static __wrap(t){t=t>>>0;const r=Object.create(at.prototype);return r.__wbg_ptr=t,Lt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symboliccircle_free(t,0)}get expressId(){return e.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return e.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return e.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_repIdentifier(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get radius(){return e.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return e.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return e.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symboliccircle_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get endAngle(){return e.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(at.prototype[Symbol.dispose]=at.prototype.free);class pt{static __wrap(t){t=t>>>0;const r=Object.create(pt.prototype);return r.__wbg_ptr=t,Dt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicpolyline_free(t,0)}get expressId(){return e.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return e.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_repIdentifier(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get points(){const t=e.symbolicpolyline_points(this.__wbg_ptr);return w(t)}get ifcType(){let t,r;try{const i=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicpolyline_ifcType(i,this.__wbg_ptr);var _=o().getInt32(i+4*0,!0),s=o().getInt32(i+4*1,!0);return t=_,r=s,f(_,s)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export2(t,r,1)}}get isClosed(){return e.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(pt.prototype[Symbol.dispose]=pt.prototype.free);class bt{static __wrap(t){t=t>>>0;const r=Object.create(bt.prototype);return r.__wbg_ptr=t,Tt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Tt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const r=e.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return r===0?void 0:at.__wrap(r)}get totalCount(){return e.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return e.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const r=e.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return r===0?void 0:pt.__wrap(r)}get polylineCount(){return e.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=Bt(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return e.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(bt.prototype[Symbol.dispose]=bt.prototype.free);class wt{static __wrap(t){t=t>>>0;const r=Object.create(wt.prototype);return r.__wbg_ptr=t,mt.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.zerocopymesh_bounds_max(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const s=e.__wbindgen_add_to_stack_pointer(-16);e.zerocopymesh_bounds_min(s,this.__wbg_ptr);var t=o().getInt32(s+4*0,!0),r=o().getInt32(s+4*1,!0),_=M(t,r).slice();return e.__wbindgen_export2(t,r*4,4),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return e.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return e.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return e.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return e.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return e.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return e.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return e.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return e.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=e.zerocopymesh_new();return this.__wbg_ptr=t>>>0,mt.register(this,this.__wbg_ptr,this),this}get is_empty(){return e.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(wt.prototype[Symbol.dispose]=wt.prototype.free);const te=new Set(["basic","cors","default"]);async function ee(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(_){if(n.ok&&te.has(n.type)&&n.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}const r=await n.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{const r=await WebAssembly.instantiate(n,t);return r instanceof WebAssembly.Instance?{instance:r,module:n}:r}}function Gt(){const n={};return n.wbg={},n.wbg.__wbg_Error_52673b7de5a0ca89=function(t,r){const _=Error(f(t,r));return p(_)},n.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(t){return typeof b(t)=="function"},n.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(t){return b(t)===void 0},n.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const t=e.memory;return p(t)},n.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(t,r){const _=b(r),s=typeof _=="number"?_:void 0;o().setFloat64(t+8*1,C(s)?0:s,!0),o().setInt32(t+4*0,!C(s),!0)},n.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(t,r){throw new Error(f(t,r))},n.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(t){b(t)._wbg_cb_unref()},n.wbg.__wbg_call_3020136f7a2d6e44=function(){return V(function(t,r,_){const s=b(t).call(b(r),b(_));return p(s)},arguments)},n.wbg.__wbg_call_abb4ff46ce38be40=function(){return V(function(t,r){const _=b(t).call(b(r));return p(_)},arguments)},n.wbg.__wbg_call_c8baa5c5e72d274e=function(){return V(function(t,r,_,s){const i=b(t).call(b(r),b(_),b(s));return p(i)},arguments)},n.wbg.__wbg_debug_9d0c87ddda3dc485=function(t){console.debug(b(t))},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,r){let _,s;try{_=t,s=r,console.error(f(t,r))}finally{e.__wbindgen_export2(_,s,1)}},n.wbg.__wbg_get_af9dab7e9603ea93=function(){return V(function(t,r){const _=Reflect.get(b(t),b(r));return p(_)},arguments)},n.wbg.__wbg_gpugeometry_new=function(t){const r=D.__wrap(t);return p(r)},n.wbg.__wbg_instancedgeometry_new=function(t){const r=T.__wrap(t);return p(r)},n.wbg.__wbg_length_86ce4877baf913bb=function(t){return b(t).length},n.wbg.__wbg_length_d45040a40c570362=function(t){return b(t).length},n.wbg.__wbg_meshdatajs_new=function(t){const r=k.__wrap(t);return p(r)},n.wbg.__wbg_new_1ba21ce319a06297=function(){const t=new Object;return p(t)},n.wbg.__wbg_new_25f239778d6112b9=function(){const t=new Array;return p(t)},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){const t=new Error;return p(t)},n.wbg.__wbg_new_ff12d2b041fb48f1=function(t,r){try{var _={a:t,b:r},s=(g,c)=>{const d=_.a;_.a=0;try{return Qt(d,_.b,g,c)}finally{_.a=d}};const i=new Promise(s);return p(i)}finally{_.a=_.b=0}},n.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(t,r){const _=new Float32Array(M(t,r));return p(_)},n.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(t,r){const _=new Uint32Array(Bt(t,r));return p(_)},n.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(t,r){const _=new Function(f(t,r));return p(_)},n.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(t){const r=new Uint32Array(t>>>0);return p(r)},n.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(t){const r=new Float64Array(t>>>0);return p(r)},n.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(t){const r=new Uint8Array(t>>>0);return p(r)},n.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(t,r,_){Float32Array.prototype.set.call(M(t,r),b(_))},n.wbg.__wbg_push_7d9be8f38fc13975=function(t,r){return b(t).push(b(r))},n.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(t){const r=b(t).queueMicrotask;return p(r)},n.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(t){queueMicrotask(b(t))},n.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(t){const r=Promise.resolve(b(t));return p(r)},n.wbg.__wbg_set_3f1d0b984ed272ed=function(t,r,_){b(t)[w(r)]=w(_)},n.wbg.__wbg_set_781438a03c0c3c81=function(){return V(function(t,r,_){return Reflect.set(b(t),b(r),b(_))},arguments)},n.wbg.__wbg_set_7df433eea03a5c14=function(t,r,_){b(t)[r>>>0]=w(_)},n.wbg.__wbg_set_index_021489b2916af13e=function(t,r,_){b(t)[r>>>0]=_},n.wbg.__wbg_set_index_04c4b93e64d08a52=function(t,r,_){b(t)[r>>>0]=_},n.wbg.__wbg_set_index_42abe35f117e614e=function(t,r,_){b(t)[r>>>0]=_>>>0},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,r){const _=b(r).stack,s=u(_,e.__wbindgen_export3,e.__wbindgen_export4),i=a;o().setInt32(t+4*1,i,!0),o().setInt32(t+4*0,s,!0)},n.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const t=typeof global>"u"?null:global;return C(t)?0:p(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const t=typeof globalThis>"u"?null:globalThis;return C(t)?0:p(t)},n.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const t=typeof self>"u"?null:self;return C(t)?0:p(t)},n.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const t=typeof window>"u"?null:window;return C(t)?0:p(t)},n.wbg.__wbg_then_4f95312d68691235=function(t,r){const _=b(t).then(b(r));return p(_)},n.wbg.__wbg_warn_6e567d0d926ff881=function(t){console.warn(b(t))},n.wbg.__wbindgen_cast_2241b6af4c4b2941=function(t,r){const _=f(t,r);return p(_)},n.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(t){const r=BigInt.asUintN(64,t);return p(r)},n.wbg.__wbindgen_cast_782a03ac5d769879=function(t,r){const _=Jt(t,r,e.__wasm_bindgen_func_elem_1150,Kt);return p(_)},n.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(t){return p(t)},n.wbg.__wbindgen_object_clone_ref=function(t){const r=b(t);return p(r)},n.wbg.__wbindgen_object_drop_ref=function(t){w(t)},n}function Wt(n,t){return e=n.exports,J.__wbindgen_wasm_module=t,O=null,Y=null,Z=null,X=null,q=null,e.__wbindgen_start(),e}function re(n){if(e!==void 0)return e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module:n}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=Gt();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));const r=new WebAssembly.Instance(n,t);return Wt(r,n)}async function J(n){if(e!==void 0)return e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("/assets/ifc-lite_bg-4yUkDRD8.wasm",import.meta.url));const t=Gt();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:r,module:_}=await ee(await n,t);return Wt(r,_)}let h=null;self.onmessage=async n=>{try{if(n.data.type==="prepass"||n.data.type==="prepass-fast"){h||(await J(),h=new L);const t=new Uint8Array(n.data.sharedBuffer.byteLength);t.set(new Uint8Array(n.data.sharedBuffer));const r=n.data.type==="prepass-fast"?h.buildPrePassFast(t):h.buildPrePassOnce(t);self.postMessage({type:"prepass-result",result:r});return}if(n.data.type==="init"){n.data.wasmModule?re({module_or_path:n.data.wasmModule}):await J(),h=new L,self.postMessage({type:"ready"});return}if(n.data.type==="process"){h||(await J(),h=new L);const{sharedBuffer:t,jobsFlat:r,unitScale:_,rtcX:s,rtcY:i,rtcZ:g,needsShift:c,voidKeys:d,voidCounts:E,voidValues:G,styleIds:W,styleColors:U}=n.data,P=new Uint8Array(t.byteLength);P.set(new Uint8Array(t));const F=[],A=[],N=y=>{for(let m=0;m<y.length;m++){const l=y.get(m);if(!l)continue;const R=new Float32Array(l.positions),z=new Float32Array(l.normals),ut=new Uint32Array(l.indices);F.push({expressId:l.expressId,ifcType:l.ifcType,positions:R,normals:z,indices:ut,color:[l.color[0],l.color[1],l.color[2],l.color[3]]}),A.push(R.buffer,z.buffer,ut.buffer),l.free()}y.free()},j=async y=>{const m=Math.floor(y.length/3);if(m!==0)try{h||(await J(),h=new L);const l=h.processGeometryBatch(P,y,_,s,i,g,c,d,E,G,W,U);N(l)}catch(l){const R=l.message;if(m===1){console.warn(`[Worker] Skipping entity #${y[0]}: ${R}`),h=null;return}console.warn(`[Worker] Batch of ${m} entities failed (${R}), splitting…`),h=null;const z=Math.floor(m/2)*3;await j(y.slice(0,z)),await j(y.slice(z))}};await j(r),self.postMessage({type:"batch",meshes:F},A),self.postMessage({type:"complete",totalMeshes:F.length})}}catch(t){self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})}};