@ifc-lite/viewer 1.22.1 → 1.23.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.
- package/.turbo/turbo-build.log +30 -30
- package/CHANGELOG.md +50 -0
- package/dist/assets/{basketViewActivator--cFpU2Q9.js → basketViewActivator-Dn_bHUl2.js} +6 -6
- package/dist/assets/{bcf-Ba2CjHib.js → bcf-B9SFl84i.js} +1 -1
- package/dist/assets/{deflate-DCLbV4UE.js → deflate-yMpdCIqk.js} +1 -1
- package/dist/assets/{exporters-Bf6PTtdW.js → exporters-D-BvrNIg.js} +1178 -1147
- package/dist/assets/{geometry-controller.worker-CEr00X3X.js → geometry-controller.worker-Cm5pvyR6.js} +2 -2
- package/dist/assets/geometry.worker-ClNvXIrj.js +1 -0
- package/dist/assets/{geotiff-BN4J8Vt9.js → geotiff-D1tvcDCb.js} +10 -10
- package/dist/assets/{ids-XwxE1tK3.js → ids-DZLs0snJ.js} +3 -3
- package/dist/assets/{ifc-lite-DNzkEkIb.js → ifc-lite-BDg0iIbj.js} +2 -2
- package/dist/assets/{ifc-lite_bg-1IiJN0Zg.wasm → ifc-lite_bg-BIryVCXQ.wasm} +0 -0
- package/dist/assets/{ifc-lite_bg-B_eUD1Wy.wasm → ifc-lite_bg-DyHX37GQ.wasm} +0 -0
- package/dist/assets/{index-j2x5R7fb.js → index-CXSBhkcJ.js} +20564 -20159
- package/dist/assets/{jpeg-BUTmr0Bp.js → jpeg-DUMcZp24.js} +1 -1
- package/dist/assets/{lerc-DmzRHXn3.js → lerc-IN4uWojP.js} +1 -1
- package/dist/assets/{lzw-CgyIIzii.js → lzw-Cnw0hH-m.js} +1 -1
- package/dist/assets/{native-bridge-Q5ACp4QY.js → native-bridge-BVf2uzoH.js} +1 -1
- package/dist/assets/{packbits-C1r4AzHj.js → packbits-BskJCwk0.js} +1 -1
- package/dist/assets/{parser.worker-Cl6XQcXA.js → parser.worker-BdtkkaGf.js} +3 -3
- package/dist/assets/raw-DzTtEZIY.js +1 -0
- package/dist/assets/{sandbox-Bju6ZKJK.js → sandbox-VLI_y7cl.js} +2 -2
- package/dist/assets/{server-client-B8wi3CGx.js → server-client-BLcKaWQB.js} +1 -1
- package/dist/assets/{wasm-bridge-X-mWRA9Z.js → wasm-bridge-BAfZh7YT.js} +1 -1
- package/dist/assets/{webimage-D0MbRMkU.js → webimage-Db2xzze3.js} +1 -1
- package/dist/assets/{workerHelpers-DnNedVRr.js → workerHelpers--sAYm9yN.js} +1 -1
- package/dist/assets/{zstd-DA4VQ-ji.js → zstd-BDToOQyD.js} +1 -1
- package/dist/index.html +6 -6
- package/package.json +7 -7
- package/src/components/viewer/GLBExportDialog.tsx +389 -0
- package/src/components/viewer/MainToolbar.tsx +17 -25
- package/dist/assets/geometry.worker-B4VPDkmL.js +0 -1
- package/dist/assets/raw-ZqLh7kVQ.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
function re(s,t){return new Promise(e=>{s.addEventListener("message",function n({data:_}){_?.type===t&&(s.removeEventListener("message",n),e(_))})})}re(self,"wasm_bindgen_worker_init").then(async({init:s,receiver:t})=>{const e=await Promise.resolve().then(function(){return je});await e.default(s),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(t)});async function pe(s,t,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");const n={type:"wasm_bindgen_worker_init",init:{module_or_path:s,memory:t},receiver:e.receiver()};await Promise.all(Array.from({length:e.numThreads()},async()=>{const _=new Worker(new URL("/assets/workerHelpers-DnNedVRr.js",import.meta.url),{type:"module"});return _.postMessage(n),await re(_,"wasm_bindgen_worker_ready"),_})),e.build()}let r;function b(s){at===x.length&&x.push(x.length+1);const t=at;return at=x[t],x[t]=s,t}function Ct(s){if(ct==1)throw new Error("out of js stack");return x[--ct]=s,ct}const At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>s.dtor(s.a,s.b));function be(s){s<132||(x[s]=at,at=s)}function S(s,t){return s=s>>>0,de().subarray(s/4,s/4+t)}function A(s,t){return s=s>>>0,le().subarray(s/8,s/8+t)}function ne(s,t){return s=s>>>0,_e().subarray(s/4,s/4+t)}let rt=null;function i(){return(rt===null||rt.buffer!==r.memory.buffer)&&(rt=new DataView(r.memory.buffer)),rt}let nt=null;function de(){return(nt===null||nt.buffer!==r.memory.buffer)&&(nt=new Float32Array(r.memory.buffer)),nt}let _t=null;function le(){return(_t===null||_t.buffer!==r.memory.buffer)&&(_t=new Float64Array(r.memory.buffer)),_t}function w(s,t){return s=s>>>0,we(s,t)}let st=null;function _e(){return(st===null||st.buffer!==r.memory.buffer)&&(st=new Uint32Array(r.memory.buffer)),st}let ot=null;function it(){return(ot===null||ot.buffer!==r.memory.buffer)&&(ot=new Uint8Array(r.memory.buffer)),ot}function c(s){return x[s]}function M(s,t){try{return s.apply(this,t)}catch(e){r.__wbindgen_export(b(e))}}let x=new Array(128).fill(void 0);x.push(void 0,null,!0,!1);let at=x.length;function C(s){return s==null}function zt(s,t,e,n){const _={a:s,b:t,cnt:1,dtor:e},o=(...a)=>{_.cnt++;const g=_.a;_.a=0;try{return n(g,_.b,...a)}finally{_.a=g,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,At.unregister(_))},At.register(o,_,_),o}function f(s,t){const e=t(s.length*4,4)>>>0;return _e().set(s,e/4),p=s.length,e}function h(s,t){const e=t(s.length*1,1)>>>0;return it().set(s,e/1),p=s.length,e}function u(s,t,e){if(e===void 0){const g=pt.encode(s),l=t(g.length,1)>>>0;return it().subarray(l,l+g.length).set(g),p=g.length,l}let n=s.length,_=t(n,1)>>>0;const o=it();let a=0;for(;a<n;a++){const g=s.charCodeAt(a);if(g>127)break;o[_+a]=g}if(a!==n){a!==0&&(s=s.slice(a)),_=e(_,n,n=a+s.length*3,1)>>>0;const g=it().subarray(_+a,_+n),l=pt.encodeInto(s,g);a+=l.written,_=e(_,n,a,1)>>>0}return p=a,_}let ct=128;function d(s){const t=c(s);return be(s),t}let gt=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;gt&>.decode();const ue=2146435072;let Mt=0;function we(s,t){return Mt+=t,Mt>=ue&&(gt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),gt.decode(),Mt=t),gt.decode(it().slice(s,s+t))}const pt=typeof TextEncoder<"u"?new TextEncoder:void 0;pt&&(pt.encodeInto=function(s,t){const e=pt.encode(s);return t.set(e),{read:s.length,written:e.length}});let p=0;function Tt(s,t,e){r.__wasm_bindgen_func_elem_1390(s,t,b(e))}function fe(s,t,e,n){r.__wasm_bindgen_func_elem_1663(s,t,b(e),b(n))}const Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_georeferencejs_free(s>>>0,1)),St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpugeometry_free(s>>>0,1)),kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometry_free(s>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometrycollection_free(s>>>0,1)),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometryref_free(s>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpumeshmetadata_free(s>>>0,1)),Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_ifcapi_free(s>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedata_free(s>>>0,1)),Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedgeometry_free(s>>>0,1)),Wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedmeshcollection_free(s>>>0,1)),Ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollection_free(s>>>0,1)),Vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollectionwithrtc_free(s>>>0,1)),Zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshdatajs_free(s>>>0,1)),Nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profilecollection_free(s>>>0,1)),Jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profileentryjs_free(s>>>0,1)),Yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_rtcoffsetjs_free(s>>>0,1)),Xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symboliccircle_free(s>>>0,1)),$t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicpolyline_free(s>>>0,1)),Kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicrepresentationcollection_free(s>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_zerocopymesh_free(s>>>0,1)),qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_wbg_rayon_poolbuilder_free(s>>>0,1));class z{static __wrap(t){t=t>>>0;const e=Object.create(z.prototype);return e.__wbg_ptr=t,Ot.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_georeferencejs_free(t,0)}localToMap(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_localToMap(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_mapToLocal(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_crsName(n,this.__wbg_ptr);var t=i().getInt32(n+0,!0),e=i().getInt32(n+4,!0);let _;return t!==0&&(_=w(t,e).slice(),r.__wbindgen_export2(t,e*1,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return r.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_toMatrix(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=A(t,e).slice();return r.__wbindgen_export2(t,e*8,8),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return r.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){r.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return r.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){r.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return r.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){r.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class k{static __wrap(t){t=t>>>0;const e=Object.create(k.prototype);return e.__wbg_ptr=t,St.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpugeometry_free(t,0)}get meshCount(){return r.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return r.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return r.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return r.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return r.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,e,n){r.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,e,n)}get vertexDataLen(){return r.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpugeometry_getIfcTypeName(_,this.__wbg_ptr,t);var e=i().getInt32(_+0,!0),n=i().getInt32(_+4,!0);let o;return e!==0&&(o=w(e,n).slice(),r.__wbindgen_export2(e,n*1,1)),o}finally{r.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const e=r.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return e===0?void 0:L.__wrap(e)}get totalVertexCount(){return r.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return r.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=r.gpugeometry_new();return this.__wbg_ptr=t>>>0,St.register(this,this.__wbg_ptr,this),this}get isEmpty(){return r.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(k.prototype[Symbol.dispose]=k.prototype.free);class T{static __wrap(t){t=t>>>0;const e=Object.create(T.prototype);return e.__wbg_ptr=t,kt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const e=r.gpuinstancedgeometry_new(t);return this.__wbg_ptr=e>>>0,kt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);class O{static __wrap(t){t=t>>>0;const e=Object.create(O.prototype);return e.__wbg_ptr=t,Pt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:T.__wrap(e)}constructor(){const t=r.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,Pt.register(this,this.__wbg_ptr,this),this}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:E.__wrap(e)}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class E{static __wrap(t){t=t>>>0;const e=Object.create(E.prototype);return e.__wbg_ptr=t,Et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);class L{static __wrap(t){t=t>>>0;const e=Object.create(L.prototype);return e.__wbg_ptr=t,Lt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return r.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return r.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return r.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return r.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return r.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpumeshmetadata_color(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=S(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class lt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ifcapi_free(t,0)}parseMeshes(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshes(this.__wbg_ptr,e,n);return I.__wrap(_)}parseMeshesAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseMeshesAsync(this.__wbg_ptr,n,_,b(e));return d(o)}buildPrePassFast(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_buildPrePassFast(this.__wbg_ptr,e,n);return d(_)}buildPrePassOnce(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_buildPrePassOnce(this.__wbg_ptr,e,n);return d(_)}parseMeshesSubset(t,e,n,_){const o=u(t,r.__wbindgen_export3,r.__wbindgen_export4),a=p,g=r.ifcapi_parseMeshesSubset(this.__wbg_ptr,o,a,e,n,_);return I.__wrap(g)}parseToGpuGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseToGpuGeometry(this.__wbg_ptr,e,n);return k.__wrap(_)}parseMeshesInstanced(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshesInstanced(this.__wbg_ptr,e,n);return R.__wrap(_)}processGeometryBatch(t,e,n,_,o,a,g,l,y,F,X,$){const K=h(t,r.__wbindgen_export3),q=p,H=f(e,r.__wbindgen_export3),Q=p,tt=f(l,r.__wbindgen_export3),et=p,ft=f(y,r.__wbindgen_export3),yt=p,ht=f(F,r.__wbindgen_export3),mt=p,xt=f(X,r.__wbindgen_export3),vt=p,It=h($,r.__wbindgen_export3),jt=p,Ft=r.ifcapi_processGeometryBatch(this.__wbg_ptr,K,q,H,Q,n,_,o,a,g,tt,et,ft,yt,ht,mt,xt,vt,It,jt);return I.__wrap(Ft)}scanEntityIndexShard(t,e,n,_){try{const l=r.__wbindgen_add_to_stack_pointer(-16),y=h(t,r.__wbindgen_export3),F=p;r.ifcapi_scanEntityIndexShard(l,this.__wbg_ptr,y,F,Ct(e),n,_);var o=i().getInt32(l+0,!0),a=i().getInt32(l+4,!0),g=i().getInt32(l+8,!0);if(g)throw d(a);return d(o)}finally{r.__wbindgen_add_to_stack_pointer(16),x[ct++]=void 0}}buildPrePassStreaming(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16),l=h(t,r.__wbindgen_export3),y=p;r.ifcapi_buildPrePassStreaming(g,this.__wbg_ptr,l,y,Ct(e),n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0);if(a)throw d(o);return d(_)}finally{r.__wbindgen_add_to_stack_pointer(16),x[ct++]=void 0}}parseToGpuGeometryAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,n,_,b(e));return d(o)}parseMeshesInstancedAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,n,_,b(e));return d(o)}benchmarkPureCpuParallelism(t){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_benchmarkPureCpuParallelism(o,this.__wbg_ptr,t);var e=i().getInt32(o+0,!0),n=i().getInt32(o+4,!0),_=A(e,n).slice();return r.__wbindgen_export2(e,n*8,8),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}parseToGpuInstancedGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,e,n);return O.__wrap(_)}processGeometryBatchParallel(t,e,n,_,o,a,g,l,y,F,X,$){const K=h(t,r.__wbindgen_export3),q=p,H=f(e,r.__wbindgen_export3),Q=p,tt=f(l,r.__wbindgen_export3),et=p,ft=f(y,r.__wbindgen_export3),yt=p,ht=f(F,r.__wbindgen_export3),mt=p,xt=f(X,r.__wbindgen_export3),vt=p,It=h($,r.__wbindgen_export3),jt=p,Ft=r.ifcapi_processGeometryBatchParallel(this.__wbg_ptr,K,q,H,Q,n,_,o,a,g,tt,et,ft,yt,ht,mt,xt,vt,It,jt);return I.__wrap(Ft)}processInstancedGeometryBatch(t,e,n,_,o,a,g,l,y){const F=h(t,r.__wbindgen_export3),X=p,$=f(e,r.__wbindgen_export3),K=p,q=f(l,r.__wbindgen_export3),H=p,Q=h(y,r.__wbindgen_export3),tt=p,et=r.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,F,X,$,K,n,_,o,a,g,q,H,Q,tt);return R.__wrap(et)}parseZeroCopy(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseZeroCopy(this.__wbg_ptr,e,n);return J.__wrap(_)}extractProfiles(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_extractProfiles(this.__wbg_ptr,n,_,e);return G.__wrap(o)}debugProcessEntity953(t){let e,n;try{const a=r.__wbindgen_add_to_stack_pointer(-16),g=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=p;r.ifcapi_debugProcessEntity953(a,this.__wbg_ptr,g,l);var _=i().getInt32(a+0,!0),o=i().getInt32(a+4,!0);return e=_,n=o,w(_,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}debugProcessFirstWall(t){let e,n;try{const a=r.__wbindgen_add_to_stack_pointer(-16),g=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=p;r.ifcapi_debugProcessFirstWall(a,this.__wbg_ptr,g,l);var _=i().getInt32(a+0,!0),o=i().getInt32(a+4,!0);return e=_,n=o,w(_,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}getMemory(){const t=r.ifcapi_getMemory(this.__wbg_ptr);return d(t)}setEntityIndex(t,e,n){const _=f(t,r.__wbindgen_export3),o=p,a=f(e,r.__wbindgen_export3),g=p,l=f(n,r.__wbindgen_export3),y=p;r.ifcapi_setEntityIndex(this.__wbg_ptr,_,o,a,g,l,y)}setMergeLayers(t){r.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){r.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=r.ifcapi_new();return this.__wbg_ptr=t>>>0,Bt.register(this,this.__wbg_ptr,this),this}get version(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_version(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get is_ready(){return r.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_getGeoReference(this.__wbg_ptr,e,n);return _===0?void 0:z.__wrap(_)}parseMeshesWithRtc(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,e,n);return D.__wrap(_)}parseStreaming(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseStreaming(this.__wbg_ptr,n,_,b(e));return d(o)}scanEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_scanEntitiesFast(this.__wbg_ptr,e,n);return d(_)}scanEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,e,n);return d(_)}scanGeometryEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,e,n);return d(_)}scanRelevantEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,e,n);return d(_)}parse(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parse(this.__wbg_ptr,e,n);return d(_)}parseSymbolicRepresentations(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,e,n);return N.__wrap(_)}}Symbol.dispose&&(lt.prototype[Symbol.dispose]=lt.prototype.free);class B{static __wrap(t){t=t>>>0;const e=Object.create(B.prototype);return e.__wbg_ptr=t,Dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedata_free(t,0)}get expressId(){return r.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.instancedata_color(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=S(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=r.instancedata_transform(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);class P{static __wrap(t){t=t>>>0;const e=Object.create(P.prototype);return e.__wbg_ptr=t,Gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const e=r.instancedgeometry_get_instance(this.__wbg_ptr,t);return e===0?void 0:B.__wrap(e)}get instance_count(){return r.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=r.instancedgeometry_indices(this.__wbg_ptr);return d(t)}get normals(){const t=r.instancedgeometry_normals(this.__wbg_ptr);return d(t)}get positions(){const t=r.instancedgeometry_positions(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class R{static __wrap(t){t=t>>>0;const e=Object.create(R.prototype);return e.__wbg_ptr=t,Wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Wt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return r.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const e=r.instancedmeshcollection_get(this.__wbg_ptr,t);return e===0?void 0:P.__wrap(e)}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);class I{static __wrap(t){t=t>>>0;const e=Object.create(I.prototype);return e.__wbg_ptr=t,Ut.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ut.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return r.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return r.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_localToWorld(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return r.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return r.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_buildingRotation(n,this.__wbg_ptr);var t=i().getInt32(n+0,!0),e=i().getFloat64(n+8,!0);return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){const e=r.meshcollection_get(this.__wbg_ptr,t);return e===0?void 0:j.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);class D{static __wrap(t){t=t>>>0;const e=Object.create(D.prototype);return e.__wbg_ptr=t,Vt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Vt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=r.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return U.__wrap(t)}get(t){const e=r.meshcollectionwithrtc_get(this.__wbg_ptr,t);return e===0?void 0:j.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=r.meshcollectionwithrtc_meshes(this.__wbg_ptr);return I.__wrap(t)}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class j{static __wrap(t){t=t>>>0;const e=Object.create(j.prototype);return e.__wbg_ptr=t,Zt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Zt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshdatajs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return r.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_color(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=S(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=r.meshdatajs_indices(this.__wbg_ptr);return d(t)}get normals(){const t=r.meshdatajs_normals(this.__wbg_ptr);return d(t)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get positions(){const t=r.meshdatajs_positions(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);class G{static __wrap(t){t=t>>>0;const e=Object.create(G.prototype);return e.__wbg_ptr=t,Nt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Nt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profilecollection_free(t,0)}get(t){const e=r.profilecollection_get(this.__wbg_ptr,t);return e===0?void 0:W.__wrap(e)}get length(){return r.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class W{static __wrap(t){t=t>>>0;const e=Object.create(W.prototype);return e.__wbg_ptr=t,Jt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Jt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profileentryjs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=r.profileentryjs_holeCounts(this.__wbg_ptr);return d(t)}get holePoints(){const t=r.profileentryjs_holePoints(this.__wbg_ptr);return d(t)}get modelIndex(){return r.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=r.profileentryjs_outerPoints(this.__wbg_ptr);return d(t)}get extrusionDir(){const t=r.profileentryjs_extrusionDir(this.__wbg_ptr);return d(t)}get extrusionDepth(){return r.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.profileentryjs_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get transform(){const t=r.profileentryjs_transform(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);class U{static __wrap(t){t=t>>>0;const e=Object.create(U.prototype);return e.__wbg_ptr=t,Yt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Yt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return r.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.rtcoffsetjs_toWorld(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}get x(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);class V{static __wrap(t){t=t>>>0;const e=Object.create(V.prototype);return e.__wbg_ptr=t,Xt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symboliccircle_free(t,0)}get expressId(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return r.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return r.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_repIdentifier(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get radius(){return r.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return r.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return r.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get endAngle(){return r.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);class Z{static __wrap(t){t=t>>>0;const e=Object.create(Z.prototype);return e.__wbg_ptr=t,$t.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$t.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicpolyline_free(t,0)}get expressId(){return r.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return r.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_repIdentifier(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get points(){const t=r.symbolicpolyline_points(this.__wbg_ptr);return d(t)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get isClosed(){return r.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);class N{static __wrap(t){t=t>>>0;const e=Object.create(N.prototype);return e.__wbg_ptr=t,Kt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const e=r.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return e===0?void 0:V.__wrap(e)}get totalCount(){return r.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return r.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const e=r.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return e===0?void 0:Z.__wrap(e)}get polylineCount(){return r.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicrepresentationcollection_getExpressIds(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=ne(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return r.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);class J{static __wrap(t){t=t>>>0;const e=Object.create(J.prototype);return e.__wbg_ptr=t,Rt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_max(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=S(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_min(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=S(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return r.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return r.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return r.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return r.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=r.zerocopymesh_new();return this.__wbg_ptr=t>>>0,Rt.register(this,this.__wbg_ptr,this),this}get is_empty(){return r.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);function ye(){const s=r.get_memory();return d(s)}function he(){r.init()}function se(s){const t=r.initThreadPool(s);return d(t)}function me(){let s,t;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.version(_);var e=i().getInt32(_+0,!0),n=i().getInt32(_+4,!0);return s=e,t=n,w(e,n)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(s,t,1)}}class Y{static __wrap(t){t=t>>>0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,qt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_wbg_rayon_poolbuilder_free(t,0)}numThreads(){return r.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}build(){r.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}receiver(){return r.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);function xe(s){r.wbg_rayon_start_worker(s)}const ve=new Set(["basic","cors","default"]);async function Ie(s,t){if(typeof Response=="function"&&s instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(s,t)}catch(n){if(s.ok&&ve.has(s.type)&&s.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",n);else throw n}const e=await s.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(s,t);return e instanceof WebAssembly.Instance?{instance:e,module:s}:e}}function oe(s){const t={};return t.wbg={},t.wbg.__wbg_Error_52673b7de5a0ca89=function(e,n){const _=Error(w(e,n));return b(_)},t.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(e){return typeof c(e)=="function"},t.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(e){return c(e)===void 0},t.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const e=r.memory;return b(e)},t.wbg.__wbg___wbindgen_module_967adef62ea6cbf8=function(){const e=wt.__wbindgen_wasm_module;return b(e)},t.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(e,n){const _=c(n),o=typeof _=="number"?_:void 0;i().setFloat64(e+8,C(o)?0:o,!0),i().setInt32(e+0,!C(o),!0)},t.wbg.__wbg___wbindgen_rethrow_78714972834ecdf1=function(e){throw d(e)},t.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(e,n){throw new Error(w(e,n))},t.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(e){c(e)._wbg_cb_unref()},t.wbg.__wbg_async_bba5a2ac54b734df=function(e){return c(e).async},t.wbg.__wbg_buffer_063cd102cc769a1c=function(e){const n=c(e).buffer;return b(n)},t.wbg.__wbg_call_3020136f7a2d6e44=function(){return M(function(e,n,_){const o=c(e).call(c(n),c(_));return b(o)},arguments)},t.wbg.__wbg_call_abb4ff46ce38be40=function(){return M(function(e,n){const _=c(e).call(c(n));return b(_)},arguments)},t.wbg.__wbg_call_c8baa5c5e72d274e=function(){return M(function(e,n,_,o){const a=c(e).call(c(n),c(_),c(o));return b(a)},arguments)},t.wbg.__wbg_data_8bf4ae669a78a688=function(e){const n=c(e).data;return b(n)},t.wbg.__wbg_debug_9d0c87ddda3dc485=function(e){console.debug(c(e))},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let _,o;try{_=e,o=n,console.error(w(e,n))}finally{r.__wbindgen_export2(_,o,1)}},t.wbg.__wbg_get_af9dab7e9603ea93=function(){return M(function(e,n){const _=Reflect.get(c(e),c(n));return b(_)},arguments)},t.wbg.__wbg_gpugeometry_new=function(e){const n=k.__wrap(e);return b(n)},t.wbg.__wbg_info_ce6bcc489c22f6f0=function(e){console.info(c(e))},t.wbg.__wbg_instancedgeometry_new=function(e){const n=P.__wrap(e);return b(n)},t.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(e){let n;try{n=c(e)instanceof Window}catch{n=!1}return n},t.wbg.__wbg_length_86ce4877baf913bb=function(e){return c(e).length},t.wbg.__wbg_length_d45040a40c570362=function(e){return c(e).length},t.wbg.__wbg_log_1d990106d99dacb7=function(e){console.log(c(e))},t.wbg.__wbg_meshdatajs_new=function(e){const n=j.__wrap(e);return b(n)},t.wbg.__wbg_new_1ba21ce319a06297=function(){const e=new Object;return b(e)},t.wbg.__wbg_new_25f239778d6112b9=function(){const e=new Array;return b(e)},t.wbg.__wbg_new_53cb1e86c1ef5d2a=function(){return M(function(e,n){const _=new Worker(w(e,n));return b(_)},arguments)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){const e=new Error;return b(e)},t.wbg.__wbg_new_de1e660b88fc921f=function(e){const n=new Int32Array(c(e));return b(n)},t.wbg.__wbg_new_ff12d2b041fb48f1=function(e,n){try{var _={a:e,b:n},o=(g,l)=>{const y=_.a;_.a=0;try{return fe(y,_.b,g,l)}finally{_.a=y}};const a=new Promise(o);return b(a)}finally{_.a=_.b=0}},t.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(e,n){const _=new Float32Array(S(e,n));return b(_)},t.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(e,n){const _=new Uint32Array(ne(e,n));return b(_)},t.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(e,n){const _=new Function(w(e,n));return b(_)},t.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(e){const n=new Uint32Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(e){const n=new Float64Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(e){const n=new Uint8Array(e>>>0);return b(n)},t.wbg.__wbg_now_69d776cd24f5215b=function(){return Date.now()},t.wbg.__wbg_of_7779827fa663eec8=function(e,n,_){const o=Array.of(c(e),c(n),c(_));return b(o)},t.wbg.__wbg_postMessage_07504dbe15265d5c=function(){return M(function(e,n){c(e).postMessage(c(n))},arguments)},t.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(e,n,_){Float32Array.prototype.set.call(S(e,n),c(_))},t.wbg.__wbg_push_7d9be8f38fc13975=function(e,n){return c(e).push(c(n))},t.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(e){const n=c(e).queueMicrotask;return b(n)},t.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(e){queueMicrotask(c(e))},t.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(e){const n=Promise.resolve(c(e));return b(n)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,n,_){c(e)[d(n)]=d(_)},t.wbg.__wbg_set_781438a03c0c3c81=function(){return M(function(e,n,_){return Reflect.set(c(e),c(n),c(_))},arguments)},t.wbg.__wbg_set_7df433eea03a5c14=function(e,n,_){c(e)[n>>>0]=d(_)},t.wbg.__wbg_set_index_021489b2916af13e=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_04c4b93e64d08a52=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_42abe35f117e614e=function(e,n,_){c(e)[n>>>0]=_>>>0},t.wbg.__wbg_set_onmessage_deb94985de696ac7=function(e,n){c(e).onmessage=c(n)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const _=c(n).stack,o=u(_,r.__wbindgen_export3,r.__wbindgen_export4),a=p;i().setInt32(e+4,a,!0),i().setInt32(e+0,o,!0)},t.wbg.__wbg_startWorkers_2ca11761e08ff5d5=function(e,n,_){const o=pe(d(e),d(n),Y.__wrap(_));return b(o)},t.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const e=typeof global>"u"?null:global;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const e=typeof globalThis>"u"?null:globalThis;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const e=typeof self>"u"?null:self;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const e=typeof window>"u"?null:window;return C(e)?0:b(e)},t.wbg.__wbg_then_4f95312d68691235=function(e,n){const _=c(e).then(c(n));return b(_)},t.wbg.__wbg_value_4cd497eeadba94bd=function(e){const n=c(e).value;return b(n)},t.wbg.__wbg_waitAsync_8afec80ffd213eca=function(e,n,_){const o=Atomics.waitAsync(c(e),n>>>0,_);return b(o)},t.wbg.__wbg_waitAsync_c186cb97ffacd552=function(){const e=Atomics.waitAsync;return b(e)},t.wbg.__wbg_warn_6e567d0d926ff881=function(e){console.warn(c(e))},t.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,n){const _=w(e,n);return b(_)},t.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(e){const n=BigInt.asUintN(64,e);return b(n)},t.wbg.__wbindgen_cast_4dd9d91cc07f498f=function(e,n){const _=zt(e,n,r.__wasm_bindgen_func_elem_1389,Tt);return b(_)},t.wbg.__wbindgen_cast_d4e72ce7b74d162f=function(e,n){const _=zt(e,n,r.__wasm_bindgen_func_elem_1389,Tt);return b(_)},t.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return b(e)},t.wbg.__wbindgen_link_203404ece0e9bab9=function(e){const n=`onmessage = function (ev) {
|
|
1
|
+
function re(s,t){return new Promise(e=>{s.addEventListener("message",function n({data:_}){_?.type===t&&(s.removeEventListener("message",n),e(_))})})}re(self,"wasm_bindgen_worker_init").then(async({init:s,receiver:t})=>{const e=await Promise.resolve().then(function(){return je});await e.default(s),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(t)});async function pe(s,t,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");const n={type:"wasm_bindgen_worker_init",init:{module_or_path:s,memory:t},receiver:e.receiver()};await Promise.all(Array.from({length:e.numThreads()},async()=>{const _=new Worker(new URL("/assets/workerHelpers--sAYm9yN.js",import.meta.url),{type:"module"});return _.postMessage(n),await re(_,"wasm_bindgen_worker_ready"),_})),e.build()}let r;function b(s){at===x.length&&x.push(x.length+1);const t=at;return at=x[t],x[t]=s,t}function Ct(s){if(ct==1)throw new Error("out of js stack");return x[--ct]=s,ct}const At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>s.dtor(s.a,s.b));function be(s){s<132||(x[s]=at,at=s)}function j(s,t){return s=s>>>0,de().subarray(s/4,s/4+t)}function A(s,t){return s=s>>>0,le().subarray(s/8,s/8+t)}function ne(s,t){return s=s>>>0,_e().subarray(s/4,s/4+t)}let rt=null;function i(){return(rt===null||rt.buffer!==r.memory.buffer)&&(rt=new DataView(r.memory.buffer)),rt}let nt=null;function de(){return(nt===null||nt.buffer!==r.memory.buffer)&&(nt=new Float32Array(r.memory.buffer)),nt}let _t=null;function le(){return(_t===null||_t.buffer!==r.memory.buffer)&&(_t=new Float64Array(r.memory.buffer)),_t}function w(s,t){return s=s>>>0,we(s,t)}let st=null;function _e(){return(st===null||st.buffer!==r.memory.buffer)&&(st=new Uint32Array(r.memory.buffer)),st}let ot=null;function it(){return(ot===null||ot.buffer!==r.memory.buffer)&&(ot=new Uint8Array(r.memory.buffer)),ot}function c(s){return x[s]}function M(s,t){try{return s.apply(this,t)}catch(e){r.__wbindgen_export(b(e))}}let x=new Array(128).fill(void 0);x.push(void 0,null,!0,!1);let at=x.length;function C(s){return s==null}function zt(s,t,e,n){const _={a:s,b:t,cnt:1,dtor:e},o=(...a)=>{_.cnt++;const g=_.a;_.a=0;try{return n(g,_.b,...a)}finally{_.a=g,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,At.unregister(_))},At.register(o,_,_),o}function f(s,t){const e=t(s.length*4,4)>>>0;return _e().set(s,e/4),p=s.length,e}function h(s,t){const e=t(s.length*1,1)>>>0;return it().set(s,e/1),p=s.length,e}function u(s,t,e){if(e===void 0){const g=pt.encode(s),l=t(g.length,1)>>>0;return it().subarray(l,l+g.length).set(g),p=g.length,l}let n=s.length,_=t(n,1)>>>0;const o=it();let a=0;for(;a<n;a++){const g=s.charCodeAt(a);if(g>127)break;o[_+a]=g}if(a!==n){a!==0&&(s=s.slice(a)),_=e(_,n,n=a+s.length*3,1)>>>0;const g=it().subarray(_+a,_+n),l=pt.encodeInto(s,g);a+=l.written,_=e(_,n,a,1)>>>0}return p=a,_}let ct=128;function d(s){const t=c(s);return be(s),t}let gt=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;gt&>.decode();const ue=2146435072;let kt=0;function we(s,t){return kt+=t,kt>=ue&&(gt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),gt.decode(),kt=t),gt.decode(it().slice(s,s+t))}const pt=typeof TextEncoder<"u"?new TextEncoder:void 0;pt&&(pt.encodeInto=function(s,t){const e=pt.encode(s);return t.set(e),{read:s.length,written:e.length}});let p=0;function Tt(s,t,e){r.__wasm_bindgen_func_elem_1394(s,t,b(e))}function fe(s,t,e,n){r.__wasm_bindgen_func_elem_1667(s,t,b(e),b(n))}const Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_georeferencejs_free(s>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpugeometry_free(s>>>0,1)),St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometry_free(s>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometrycollection_free(s>>>0,1)),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpuinstancedgeometryref_free(s>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_gpumeshmetadata_free(s>>>0,1)),Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_ifcapi_free(s>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedata_free(s>>>0,1)),Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedgeometry_free(s>>>0,1)),Wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_instancedmeshcollection_free(s>>>0,1)),Ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollection_free(s>>>0,1)),Vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshcollectionwithrtc_free(s>>>0,1)),Zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_meshdatajs_free(s>>>0,1)),Yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profilecollection_free(s>>>0,1)),Nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_profileentryjs_free(s>>>0,1)),Xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_rtcoffsetjs_free(s>>>0,1)),Jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symboliccircle_free(s>>>0,1)),$t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicpolyline_free(s>>>0,1)),Kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_symbolicrepresentationcollection_free(s>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_zerocopymesh_free(s>>>0,1)),qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>r.__wbg_wbg_rayon_poolbuilder_free(s>>>0,1));class z{static __wrap(t){t=t>>>0;const e=Object.create(z.prototype);return e.__wbg_ptr=t,Ot.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_georeferencejs_free(t,0)}localToMap(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_localToMap(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_mapToLocal(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_crsName(n,this.__wbg_ptr);var t=i().getInt32(n+0,!0),e=i().getInt32(n+4,!0);let _;return t!==0&&(_=w(t,e).slice(),r.__wbindgen_export2(t,e*1,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return r.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_toMatrix(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=A(t,e).slice();return r.__wbindgen_export2(t,e*8,8),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return r.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){r.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return r.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){r.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return r.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){r.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class S{static __wrap(t){t=t>>>0;const e=Object.create(S.prototype);return e.__wbg_ptr=t,Mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpugeometry_free(t,0)}get meshCount(){return r.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return r.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return r.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return r.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return r.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,e,n){r.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,e,n)}get vertexDataLen(){return r.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpugeometry_getIfcTypeName(_,this.__wbg_ptr,t);var e=i().getInt32(_+0,!0),n=i().getInt32(_+4,!0);let o;return e!==0&&(o=w(e,n).slice(),r.__wbindgen_export2(e,n*1,1)),o}finally{r.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const e=r.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return e===0?void 0:L.__wrap(e)}get totalVertexCount(){return r.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return r.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=r.gpugeometry_new();return this.__wbg_ptr=t>>>0,Mt.register(this,this.__wbg_ptr,this),this}get isEmpty(){return r.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);class T{static __wrap(t){t=t>>>0;const e=Object.create(T.prototype);return e.__wbg_ptr=t,St.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const e=r.gpuinstancedgeometry_new(t);return this.__wbg_ptr=e>>>0,St.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);class O{static __wrap(t){t=t>>>0;const e=Object.create(O.prototype);return e.__wbg_ptr=t,Pt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:T.__wrap(e)}constructor(){const t=r.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,Pt.register(this,this.__wbg_ptr,this),this}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:E.__wrap(e)}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class E{static __wrap(t){t=t>>>0;const e=Object.create(E.prototype);return e.__wbg_ptr=t,Et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);class L{static __wrap(t){t=t>>>0;const e=Object.create(L.prototype);return e.__wbg_ptr=t,Lt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return r.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return r.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return r.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return r.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return r.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.gpumeshmetadata_color(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class lt{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ifcapi_free(t,0)}parseMeshes(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshes(this.__wbg_ptr,e,n);return I.__wrap(_)}parseMeshesAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseMeshesAsync(this.__wbg_ptr,n,_,b(e));return d(o)}buildPrePassFast(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_buildPrePassFast(this.__wbg_ptr,e,n);return d(_)}buildPrePassOnce(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_buildPrePassOnce(this.__wbg_ptr,e,n);return d(_)}parseMeshesSubset(t,e,n,_){const o=u(t,r.__wbindgen_export3,r.__wbindgen_export4),a=p,g=r.ifcapi_parseMeshesSubset(this.__wbg_ptr,o,a,e,n,_);return I.__wrap(g)}parseToGpuGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseToGpuGeometry(this.__wbg_ptr,e,n);return S.__wrap(_)}parseMeshesInstanced(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshesInstanced(this.__wbg_ptr,e,n);return R.__wrap(_)}processGeometryBatch(t,e,n,_,o,a,g,l,y,k,J,$){const K=h(t,r.__wbindgen_export3),q=p,H=f(e,r.__wbindgen_export3),Q=p,tt=f(l,r.__wbindgen_export3),et=p,ft=f(y,r.__wbindgen_export3),yt=p,ht=f(k,r.__wbindgen_export3),mt=p,xt=f(J,r.__wbindgen_export3),vt=p,It=h($,r.__wbindgen_export3),jt=p,Ft=r.ifcapi_processGeometryBatch(this.__wbg_ptr,K,q,H,Q,n,_,o,a,g,tt,et,ft,yt,ht,mt,xt,vt,It,jt);return I.__wrap(Ft)}scanEntityIndexShard(t,e,n,_){try{const l=r.__wbindgen_add_to_stack_pointer(-16),y=h(t,r.__wbindgen_export3),k=p;r.ifcapi_scanEntityIndexShard(l,this.__wbg_ptr,y,k,Ct(e),n,_);var o=i().getInt32(l+0,!0),a=i().getInt32(l+4,!0),g=i().getInt32(l+8,!0);if(g)throw d(a);return d(o)}finally{r.__wbindgen_add_to_stack_pointer(16),x[ct++]=void 0}}buildPrePassStreaming(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16),l=h(t,r.__wbindgen_export3),y=p;r.ifcapi_buildPrePassStreaming(g,this.__wbg_ptr,l,y,Ct(e),n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0);if(a)throw d(o);return d(_)}finally{r.__wbindgen_add_to_stack_pointer(16),x[ct++]=void 0}}parseToGpuGeometryAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,n,_,b(e));return d(o)}parseMeshesInstancedAsync(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,n,_,b(e));return d(o)}benchmarkPureCpuParallelism(t){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_benchmarkPureCpuParallelism(o,this.__wbg_ptr,t);var e=i().getInt32(o+0,!0),n=i().getInt32(o+4,!0),_=A(e,n).slice();return r.__wbindgen_export2(e,n*8,8),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}parseToGpuInstancedGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,e,n);return O.__wrap(_)}processGeometryBatchParallel(t,e,n,_,o,a,g,l,y,k,J,$){const K=h(t,r.__wbindgen_export3),q=p,H=f(e,r.__wbindgen_export3),Q=p,tt=f(l,r.__wbindgen_export3),et=p,ft=f(y,r.__wbindgen_export3),yt=p,ht=f(k,r.__wbindgen_export3),mt=p,xt=f(J,r.__wbindgen_export3),vt=p,It=h($,r.__wbindgen_export3),jt=p,Ft=r.ifcapi_processGeometryBatchParallel(this.__wbg_ptr,K,q,H,Q,n,_,o,a,g,tt,et,ft,yt,ht,mt,xt,vt,It,jt);return I.__wrap(Ft)}processInstancedGeometryBatch(t,e,n,_,o,a,g,l,y){const k=h(t,r.__wbindgen_export3),J=p,$=f(e,r.__wbindgen_export3),K=p,q=f(l,r.__wbindgen_export3),H=p,Q=h(y,r.__wbindgen_export3),tt=p,et=r.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,k,J,$,K,n,_,o,a,g,q,H,Q,tt);return R.__wrap(et)}parseZeroCopy(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseZeroCopy(this.__wbg_ptr,e,n);return N.__wrap(_)}extractProfiles(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_extractProfiles(this.__wbg_ptr,n,_,e);return G.__wrap(o)}debugProcessEntity953(t){let e,n;try{const a=r.__wbindgen_add_to_stack_pointer(-16),g=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=p;r.ifcapi_debugProcessEntity953(a,this.__wbg_ptr,g,l);var _=i().getInt32(a+0,!0),o=i().getInt32(a+4,!0);return e=_,n=o,w(_,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}debugProcessFirstWall(t){let e,n;try{const a=r.__wbindgen_add_to_stack_pointer(-16),g=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=p;r.ifcapi_debugProcessFirstWall(a,this.__wbg_ptr,g,l);var _=i().getInt32(a+0,!0),o=i().getInt32(a+4,!0);return e=_,n=o,w(_,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,n,1)}}getMemory(){const t=r.ifcapi_getMemory(this.__wbg_ptr);return d(t)}setEntityIndex(t,e,n){const _=f(t,r.__wbindgen_export3),o=p,a=f(e,r.__wbindgen_export3),g=p,l=f(n,r.__wbindgen_export3),y=p;r.ifcapi_setEntityIndex(this.__wbg_ptr,_,o,a,g,l,y)}setMergeLayers(t){r.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){r.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=r.ifcapi_new();return this.__wbg_ptr=t>>>0,Bt.register(this,this.__wbg_ptr,this),this}get version(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_version(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get is_ready(){return r.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_getGeoReference(this.__wbg_ptr,e,n);return _===0?void 0:z.__wrap(_)}parseMeshesWithRtc(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,e,n);return D.__wrap(_)}parseStreaming(t,e){const n=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=p,o=r.ifcapi_parseStreaming(this.__wbg_ptr,n,_,b(e));return d(o)}scanEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_scanEntitiesFast(this.__wbg_ptr,e,n);return d(_)}scanEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,e,n);return d(_)}scanGeometryEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,e,n);return d(_)}scanRelevantEntitiesFastBytes(t){const e=h(t,r.__wbindgen_export3),n=p,_=r.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,e,n);return d(_)}parse(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parse(this.__wbg_ptr,e,n);return d(_)}parseSymbolicRepresentations(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),n=p,_=r.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,e,n);return Y.__wrap(_)}}Symbol.dispose&&(lt.prototype[Symbol.dispose]=lt.prototype.free);class B{static __wrap(t){t=t>>>0;const e=Object.create(B.prototype);return e.__wbg_ptr=t,Dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedata_free(t,0)}get expressId(){return r.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.instancedata_color(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=r.instancedata_transform(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);class P{static __wrap(t){t=t>>>0;const e=Object.create(P.prototype);return e.__wbg_ptr=t,Gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const e=r.instancedgeometry_get_instance(this.__wbg_ptr,t);return e===0?void 0:B.__wrap(e)}get instance_count(){return r.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=r.instancedgeometry_indices(this.__wbg_ptr);return d(t)}get normals(){const t=r.instancedgeometry_normals(this.__wbg_ptr);return d(t)}get positions(){const t=r.instancedgeometry_positions(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class R{static __wrap(t){t=t>>>0;const e=Object.create(R.prototype);return e.__wbg_ptr=t,Wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Wt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return r.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const e=r.instancedmeshcollection_get(this.__wbg_ptr,t);return e===0?void 0:P.__wrap(e)}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);class I{static __wrap(t){t=t>>>0;const e=Object.create(I.prototype);return e.__wbg_ptr=t,Ut.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ut.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return r.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return r.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_localToWorld(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return r.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return r.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_buildingRotation(n,this.__wbg_ptr);var t=i().getInt32(n+0,!0),e=i().getFloat64(n+8,!0);return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){const e=r.meshcollection_get(this.__wbg_ptr,t);return e===0?void 0:F.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);class D{static __wrap(t){t=t>>>0;const e=Object.create(D.prototype);return e.__wbg_ptr=t,Vt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Vt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=r.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return U.__wrap(t)}get(t){const e=r.meshcollectionwithrtc_get(this.__wbg_ptr,t);return e===0?void 0:F.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=r.meshcollectionwithrtc_meshes(this.__wbg_ptr);return I.__wrap(t)}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class F{static __wrap(t){t=t>>>0;const e=Object.create(F.prototype);return e.__wbg_ptr=t,Zt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Zt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshdatajs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return r.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get shadingColor(){try{const n=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_shadingColor(n,this.__wbg_ptr);var t=i().getInt32(n+0,!0),e=i().getInt32(n+4,!0);let _;return t!==0&&(_=j(t,e).slice(),r.__wbindgen_export2(t,e*4,4)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get triangleCount(){return r.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_color(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=r.meshdatajs_indices(this.__wbg_ptr);return d(t)}get normals(){const t=r.meshdatajs_normals(this.__wbg_ptr);return d(t)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get positions(){const t=r.meshdatajs_positions(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);class G{static __wrap(t){t=t>>>0;const e=Object.create(G.prototype);return e.__wbg_ptr=t,Yt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Yt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profilecollection_free(t,0)}get(t){const e=r.profilecollection_get(this.__wbg_ptr,t);return e===0?void 0:W.__wrap(e)}get length(){return r.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class W{static __wrap(t){t=t>>>0;const e=Object.create(W.prototype);return e.__wbg_ptr=t,Nt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Nt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profileentryjs_free(t,0)}get expressId(){return r.profileentryjs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=r.profileentryjs_holeCounts(this.__wbg_ptr);return d(t)}get holePoints(){const t=r.profileentryjs_holePoints(this.__wbg_ptr);return d(t)}get modelIndex(){return r.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=r.profileentryjs_outerPoints(this.__wbg_ptr);return d(t)}get extrusionDir(){const t=r.profileentryjs_extrusionDir(this.__wbg_ptr);return d(t)}get extrusionDepth(){return r.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.profileentryjs_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get transform(){const t=r.profileentryjs_transform(this.__wbg_ptr);return d(t)}}Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);class U{static __wrap(t){t=t>>>0;const e=Object.create(U.prototype);return e.__wbg_ptr=t,Xt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return r.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,e,n){try{const g=r.__wbindgen_add_to_stack_pointer(-16);r.rtcoffsetjs_toWorld(g,this.__wbg_ptr,t,e,n);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),a=A(_,o).slice();return r.__wbindgen_export2(_,o*8,8),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}get x(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);class V{static __wrap(t){t=t>>>0;const e=Object.create(V.prototype);return e.__wbg_ptr=t,Jt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Jt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symboliccircle_free(t,0)}get expressId(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return r.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return r.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_repIdentifier(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get radius(){return r.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return r.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return r.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get endAngle(){return r.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);class Z{static __wrap(t){t=t>>>0;const e=Object.create(Z.prototype);return e.__wbg_ptr=t,$t.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$t.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicpolyline_free(t,0)}get expressId(){return r.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return r.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_repIdentifier(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get points(){const t=r.symbolicpolyline_points(this.__wbg_ptr);return d(t)}get ifcType(){let t,e;try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_ifcType(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);return t=n,e=_,w(n,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get isClosed(){return r.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);class Y{static __wrap(t){t=t>>>0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,Kt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const e=r.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return e===0?void 0:V.__wrap(e)}get totalCount(){return r.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return r.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const e=r.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return e===0?void 0:Z.__wrap(e)}get polylineCount(){return r.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicrepresentationcollection_getExpressIds(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=ne(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return r.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);class N{static __wrap(t){t=t>>>0;const e=Object.create(N.prototype);return e.__wbg_ptr=t,Rt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_max(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_min(_,this.__wbg_ptr);var t=i().getInt32(_+0,!0),e=i().getInt32(_+4,!0),n=j(t,e).slice();return r.__wbindgen_export2(t,e*4,4),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return r.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return r.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return r.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return r.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=r.zerocopymesh_new();return this.__wbg_ptr=t>>>0,Rt.register(this,this.__wbg_ptr,this),this}get is_empty(){return r.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);function ye(){const s=r.get_memory();return d(s)}function he(){r.init()}function se(s){const t=r.initThreadPool(s);return d(t)}function me(){let s,t;try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.version(_);var e=i().getInt32(_+0,!0),n=i().getInt32(_+4,!0);return s=e,t=n,w(e,n)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(s,t,1)}}class X{static __wrap(t){t=t>>>0;const e=Object.create(X.prototype);return e.__wbg_ptr=t,qt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_wbg_rayon_poolbuilder_free(t,0)}numThreads(){return r.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}build(){r.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}receiver(){return r.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}}Symbol.dispose&&(X.prototype[Symbol.dispose]=X.prototype.free);function xe(s){r.wbg_rayon_start_worker(s)}const ve=new Set(["basic","cors","default"]);async function Ie(s,t){if(typeof Response=="function"&&s instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(s,t)}catch(n){if(s.ok&&ve.has(s.type)&&s.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",n);else throw n}const e=await s.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(s,t);return e instanceof WebAssembly.Instance?{instance:e,module:s}:e}}function oe(s){const t={};return t.wbg={},t.wbg.__wbg_Error_52673b7de5a0ca89=function(e,n){const _=Error(w(e,n));return b(_)},t.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(e){return typeof c(e)=="function"},t.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(e){return c(e)===void 0},t.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const e=r.memory;return b(e)},t.wbg.__wbg___wbindgen_module_967adef62ea6cbf8=function(){const e=wt.__wbindgen_wasm_module;return b(e)},t.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(e,n){const _=c(n),o=typeof _=="number"?_:void 0;i().setFloat64(e+8,C(o)?0:o,!0),i().setInt32(e+0,!C(o),!0)},t.wbg.__wbg___wbindgen_rethrow_78714972834ecdf1=function(e){throw d(e)},t.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(e,n){throw new Error(w(e,n))},t.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(e){c(e)._wbg_cb_unref()},t.wbg.__wbg_async_bba5a2ac54b734df=function(e){return c(e).async},t.wbg.__wbg_buffer_063cd102cc769a1c=function(e){const n=c(e).buffer;return b(n)},t.wbg.__wbg_call_3020136f7a2d6e44=function(){return M(function(e,n,_){const o=c(e).call(c(n),c(_));return b(o)},arguments)},t.wbg.__wbg_call_abb4ff46ce38be40=function(){return M(function(e,n){const _=c(e).call(c(n));return b(_)},arguments)},t.wbg.__wbg_call_c8baa5c5e72d274e=function(){return M(function(e,n,_,o){const a=c(e).call(c(n),c(_),c(o));return b(a)},arguments)},t.wbg.__wbg_data_8bf4ae669a78a688=function(e){const n=c(e).data;return b(n)},t.wbg.__wbg_debug_9d0c87ddda3dc485=function(e){console.debug(c(e))},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let _,o;try{_=e,o=n,console.error(w(e,n))}finally{r.__wbindgen_export2(_,o,1)}},t.wbg.__wbg_get_af9dab7e9603ea93=function(){return M(function(e,n){const _=Reflect.get(c(e),c(n));return b(_)},arguments)},t.wbg.__wbg_gpugeometry_new=function(e){const n=S.__wrap(e);return b(n)},t.wbg.__wbg_info_ce6bcc489c22f6f0=function(e){console.info(c(e))},t.wbg.__wbg_instancedgeometry_new=function(e){const n=P.__wrap(e);return b(n)},t.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(e){let n;try{n=c(e)instanceof Window}catch{n=!1}return n},t.wbg.__wbg_length_86ce4877baf913bb=function(e){return c(e).length},t.wbg.__wbg_length_d45040a40c570362=function(e){return c(e).length},t.wbg.__wbg_log_1d990106d99dacb7=function(e){console.log(c(e))},t.wbg.__wbg_meshdatajs_new=function(e){const n=F.__wrap(e);return b(n)},t.wbg.__wbg_new_1ba21ce319a06297=function(){const e=new Object;return b(e)},t.wbg.__wbg_new_25f239778d6112b9=function(){const e=new Array;return b(e)},t.wbg.__wbg_new_53cb1e86c1ef5d2a=function(){return M(function(e,n){const _=new Worker(w(e,n));return b(_)},arguments)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){const e=new Error;return b(e)},t.wbg.__wbg_new_de1e660b88fc921f=function(e){const n=new Int32Array(c(e));return b(n)},t.wbg.__wbg_new_ff12d2b041fb48f1=function(e,n){try{var _={a:e,b:n},o=(g,l)=>{const y=_.a;_.a=0;try{return fe(y,_.b,g,l)}finally{_.a=y}};const a=new Promise(o);return b(a)}finally{_.a=_.b=0}},t.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(e,n){const _=new Float32Array(j(e,n));return b(_)},t.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(e,n){const _=new Uint32Array(ne(e,n));return b(_)},t.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(e,n){const _=new Function(w(e,n));return b(_)},t.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(e){const n=new Uint32Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(e){const n=new Float64Array(e>>>0);return b(n)},t.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(e){const n=new Uint8Array(e>>>0);return b(n)},t.wbg.__wbg_now_69d776cd24f5215b=function(){return Date.now()},t.wbg.__wbg_of_7779827fa663eec8=function(e,n,_){const o=Array.of(c(e),c(n),c(_));return b(o)},t.wbg.__wbg_postMessage_07504dbe15265d5c=function(){return M(function(e,n){c(e).postMessage(c(n))},arguments)},t.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(e,n,_){Float32Array.prototype.set.call(j(e,n),c(_))},t.wbg.__wbg_push_7d9be8f38fc13975=function(e,n){return c(e).push(c(n))},t.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(e){const n=c(e).queueMicrotask;return b(n)},t.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(e){queueMicrotask(c(e))},t.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(e){const n=Promise.resolve(c(e));return b(n)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,n,_){c(e)[d(n)]=d(_)},t.wbg.__wbg_set_781438a03c0c3c81=function(){return M(function(e,n,_){return Reflect.set(c(e),c(n),c(_))},arguments)},t.wbg.__wbg_set_7df433eea03a5c14=function(e,n,_){c(e)[n>>>0]=d(_)},t.wbg.__wbg_set_index_021489b2916af13e=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_04c4b93e64d08a52=function(e,n,_){c(e)[n>>>0]=_},t.wbg.__wbg_set_index_42abe35f117e614e=function(e,n,_){c(e)[n>>>0]=_>>>0},t.wbg.__wbg_set_onmessage_deb94985de696ac7=function(e,n){c(e).onmessage=c(n)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const _=c(n).stack,o=u(_,r.__wbindgen_export3,r.__wbindgen_export4),a=p;i().setInt32(e+4,a,!0),i().setInt32(e+0,o,!0)},t.wbg.__wbg_startWorkers_2ca11761e08ff5d5=function(e,n,_){const o=pe(d(e),d(n),X.__wrap(_));return b(o)},t.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const e=typeof global>"u"?null:global;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const e=typeof globalThis>"u"?null:globalThis;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const e=typeof self>"u"?null:self;return C(e)?0:b(e)},t.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const e=typeof window>"u"?null:window;return C(e)?0:b(e)},t.wbg.__wbg_then_4f95312d68691235=function(e,n){const _=c(e).then(c(n));return b(_)},t.wbg.__wbg_value_4cd497eeadba94bd=function(e){const n=c(e).value;return b(n)},t.wbg.__wbg_waitAsync_8afec80ffd213eca=function(e,n,_){const o=Atomics.waitAsync(c(e),n>>>0,_);return b(o)},t.wbg.__wbg_waitAsync_c186cb97ffacd552=function(){const e=Atomics.waitAsync;return b(e)},t.wbg.__wbg_warn_6e567d0d926ff881=function(e){console.warn(c(e))},t.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,n){const _=w(e,n);return b(_)},t.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(e){const n=BigInt.asUintN(64,e);return b(n)},t.wbg.__wbindgen_cast_4dd9d91cc07f498f=function(e,n){const _=zt(e,n,r.__wasm_bindgen_func_elem_1393,Tt);return b(_)},t.wbg.__wbindgen_cast_d4e72ce7b74d162f=function(e,n){const _=zt(e,n,r.__wasm_bindgen_func_elem_1393,Tt);return b(_)},t.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return b(e)},t.wbg.__wbindgen_link_203404ece0e9bab9=function(e){const n=`onmessage = function (ev) {
|
|
2
2
|
let [ia, index, value] = ev.data;
|
|
3
3
|
ia = new Int32Array(ia.buffer);
|
|
4
4
|
let result = Atomics.wait(ia, index, value);
|
|
5
5
|
postMessage(result);
|
|
6
6
|
};
|
|
7
|
-
`,_=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"})),o=u(_,r.__wbindgen_export3,r.__wbindgen_export4),a=p;i().setInt32(e+4,a,!0),i().setInt32(e+0,o,!0)},t.wbg.__wbindgen_object_clone_ref=function(e){const n=c(e);return b(n)},t.wbg.__wbindgen_object_drop_ref=function(e){d(e)},t.wbg.memory=s||new WebAssembly.Memory({initial:132,maximum:65536,shared:!0}),t}function ie(s,t,e){if(r=s.exports,wt.__wbindgen_wasm_module=t,rt=null,nt=null,_t=null,st=null,ot=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw"invalid stack size";return r.__wbindgen_start(e),r}function ae(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=oe(t);s instanceof WebAssembly.Module||(s=new WebAssembly.Module(s));const _=new WebAssembly.Instance(s,n);return ie(_,s,e)}async function wt(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module_or_path:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof s>"u"&&(s=new URL("/assets/ifc-lite_bg-
|
|
7
|
+
`,_=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"})),o=u(_,r.__wbindgen_export3,r.__wbindgen_export4),a=p;i().setInt32(e+4,a,!0),i().setInt32(e+0,o,!0)},t.wbg.__wbindgen_object_clone_ref=function(e){const n=c(e);return b(n)},t.wbg.__wbindgen_object_drop_ref=function(e){d(e)},t.wbg.memory=s||new WebAssembly.Memory({initial:132,maximum:65536,shared:!0}),t}function ie(s,t,e){if(r=s.exports,wt.__wbindgen_wasm_module=t,rt=null,nt=null,_t=null,st=null,ot=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw"invalid stack size";return r.__wbindgen_start(e),r}function ae(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=oe(t);s instanceof WebAssembly.Module||(s=new WebAssembly.Module(s));const _=new WebAssembly.Instance(s,n);return ie(_,s,e)}async function wt(s,t){if(r!==void 0)return r;let e;typeof s<"u"&&(Object.getPrototypeOf(s)===Object.prototype?{module_or_path:s,memory:t,thread_stack_size:e}=s:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof s>"u"&&(s=new URL("/assets/ifc-lite_bg-BIryVCXQ.wasm",import.meta.url));const n=oe(t);(typeof s=="string"||typeof Request=="function"&&s instanceof Request||typeof URL=="function"&&s instanceof URL)&&(s=fetch(s));const{instance:_,module:o}=await Ie(await s,n);return ie(_,o,e)}var je=Object.freeze({__proto__:null,GeoReferenceJs:z,GpuGeometry:S,GpuInstancedGeometry:T,GpuInstancedGeometryCollection:O,GpuInstancedGeometryRef:E,GpuMeshMetadata:L,IfcAPI:lt,InstanceData:B,InstancedGeometry:P,InstancedMeshCollection:R,MeshCollection:I,MeshCollectionWithRtc:D,MeshDataJs:F,ProfileCollection:G,ProfileEntryJs:W,RtcOffsetJs:U,SymbolicCircle:V,SymbolicPolyline:Z,SymbolicRepresentationCollection:Y,ZeroCopyMesh:N,default:wt,get_memory:ye,init:he,initSync:ae,initThreadPool:se,version:me,wbg_rayon_PoolBuilder:X,wbg_rayon_start_worker:xe});let v=null,bt=!1,Ht,ce=!1,ut=!1;function Qt(){if(!v||ut)return;const s=v;typeof s.setMergeLayers=="function"&&s.setMergeLayers(ce),ut=!0}let m=null;function Fe(s){return new Uint8Array(s)}function ke(s){const t=new Uint8Array(s.byteLength);return t.set(new Uint8Array(s)),t}function Me(s){return{sharedBuffer:s.sharedBuffer,localBytes:Fe(s.sharedBuffer),sabFallbackTaken:!1,unitScale:s.unitScale,rtcX:s.rtcX,rtcY:s.rtcY,rtcZ:s.rtcZ,needsShift:s.needsShift,voidKeys:s.voidKeys,voidCounts:s.voidCounts,voidValues:s.voidValues,styleIds:s.styleIds,styleColors:s.styleColors,pendingMeshes:[],pendingTransfers:[],totalMeshesEmitted:0,cumulativeMeshBytes:0}}function ge(s){if(s.pendingMeshes.length===0)return;const t=s.pendingMeshes,e=s.pendingTransfers;s.pendingMeshes=[],s.pendingTransfers=[],s.totalMeshesEmitted+=t.length,self.postMessage({type:"batch",meshes:t},e)}function Se(s,t){for(let e=0;e<t.length;e++){const n=t.get(e);if(!n)continue;const _=new Float32Array(n.positions),o=new Float32Array(n.normals),a=new Uint32Array(n.indices);s.pendingMeshes.push({expressId:n.expressId,ifcType:n.ifcType,positions:_,normals:o,indices:a,color:[n.color[0],n.color[1],n.color[2],n.color[3]]}),s.pendingTransfers.push(_.buffer,o.buffer,a.buffer),s.cumulativeMeshBytes+=_.byteLength+o.byteLength+a.byteLength,n.free()}t.free()}async function dt(s,t){const e=Math.floor(t.length/3);if(e!==0)try{if(!v)throw new Error("controller API not initialised before stream-chunk");const n=v.processGeometryBatchParallel(s.localBytes,t,s.unitScale,s.rtcX,s.rtcY,s.rtcZ,s.needsShift,s.voidKeys,s.voidCounts,s.voidValues,s.styleIds,s.styleColors);Se(s,n)}catch(n){const _=n.message;if(!s.sabFallbackTaken&&s.localBytes.buffer instanceof SharedArrayBuffer){s.sabFallbackTaken=!0,console.warn(`[controller] processGeometryBatchParallel rejected SAB view (${_}), copying`),s.localBytes=ke(s.sharedBuffer),await dt(s,t);return}if(e===1){console.warn(`[controller] skipping entity #${t[0]}: ${_}`);return}console.warn(`[controller] batch of ${e} entities failed (${_}), splitting…`);const o=Math.floor(e/2)*3;await dt(s,t.slice(0,o)),await dt(s,t.slice(o))}}const te=1e6;async function Pe(s,t){const e=Math.floor(t.length/3);for(let n=0;n<e;n+=te){const _=n*3,o=Math.min(_+te*3,t.length);await dt(s,t.slice(_,o)),ge(s)}}function Re(s){ge(s);let t=0;try{t=v?.getMemory()?.buffer?.byteLength??0}catch{}self.postMessage({type:"memory",wasmHeapBytes:t,meshBytes:s.cumulativeMeshBytes}),self.postMessage({type:"complete",totalMeshes:s.totalMeshesEmitted})}let ee=Promise.resolve();self.onmessage=s=>{const t=s;ee=ee.then(async()=>{try{if(t.data.type==="init"){t.data.wasmUrl&&(Ht=t.data.wasmUrl),t.data.wasmModule?ae({module_or_path:t.data.wasmModule}):await wt(Ht),v=new lt,ut=!1,Qt();const e=typeof navigator<"u"?navigator.hardwareConcurrency??4:4,n=Math.max(1,e-1);let _=null;for(let o=1;o<=5;o++)try{const a=performance.now();await se(n),console.log(`[controller] rayon pool ready (${n} threads, attempt ${o}) @ ${Math.round(performance.now()-a)}ms`),bt=!0,_=null;break}catch(a){_=a,console.warn(`[controller] initThreadPool attempt ${o} failed:`,a),o<5&&await new Promise(g=>setTimeout(g,25))}if(!bt){const o=_ instanceof Error?_.message:String(_??"unknown initThreadPool failure");self.postMessage({type:"error",message:`controller: initThreadPool failed after 5 attempts: ${o}`});return}try{const o=v;typeof o.benchmarkPureCpuParallelism=="function"&&o.benchmarkPureCpuParallelism(9)}catch(o){console.warn("[controller] microbench failed:",o)}self.postMessage({type:"ready"});return}if(t.data.type==="stream-start"){if(!v||!bt)throw new Error('controller: stream-start before init/threadPool ready — host must wait for {type:"ready"} before dispatching');m=Me({sharedBuffer:t.data.sharedBuffer,unitScale:t.data.unitScale,rtcX:t.data.rtcX,rtcY:t.data.rtcY,rtcZ:t.data.rtcZ,needsShift:t.data.needsShift,voidKeys:t.data.voidKeys,voidCounts:t.data.voidCounts,voidValues:t.data.voidValues,styleIds:t.data.styleIds,styleColors:t.data.styleColors});return}if(t.data.type==="stream-chunk"){if(!m||!v||!bt)throw new Error("controller: stream-chunk before init/stream-start");await Pe(m,t.data.jobsFlat);return}if(t.data.type==="stream-end"){if(!m)return;Re(m),m=null;return}if(t.data.type==="set-styles"){if(!m)return;m.styleIds=t.data.styleIds,m.styleColors=t.data.styleColors,m.voidKeys=t.data.voidKeys,m.voidCounts=t.data.voidCounts,m.voidValues=t.data.voidValues;return}if(t.data.type==="set-merge-layers"){ce=t.data.enabled===!0,ut=!1,Qt();return}if(t.data.type==="set-entity-index"){if(!v)throw new Error('controller: set-entity-index before init — host must wait for {type:"ready"} before dispatching');v.setEntityIndex(t.data.ids,t.data.starts,t.data.lengths);return}console.warn(`[controller] ignoring unhandled message type: ${t.data.type}`)}catch(e){const n=e instanceof Error?e.message:String(e);console.error("[controller] handler error:",e),self.postMessage({type:"error",message:n})}})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let r;function d(n){V===y.length&&y.push(y.length+1);const t=V;return V=y[t],y[t]=n,t}function It(n){if(Z==1)throw new Error("out of js stack");return y[--Z]=n,Z}const Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>n.dtor(n.a,n.b));function ce(n){n<132||(y[n]=V,V=n)}function F(n,t){return n=n>>>0,ge().subarray(n/4,n/4+t)}function W(n,t){return n=n>>>0,pe().subarray(n/8,n/8+t)}function Yt(n,t){return n=n>>>0,Nt().subarray(n/4,n/4+t)}let M=null;function a(){return(M===null||M.buffer.detached===!0||M.buffer.detached===void 0&&M.buffer!==r.memory.buffer)&&(M=new DataView(r.memory.buffer)),M}let E=null;function ge(){return(E===null||E.byteLength===0)&&(E=new Float32Array(r.memory.buffer)),E}let T=null;function pe(){return(T===null||T.byteLength===0)&&(T=new Float64Array(r.memory.buffer)),T}function w(n,t){return n=n>>>0,le(n,t)}let D=null;function Nt(){return(D===null||D.byteLength===0)&&(D=new Uint32Array(r.memory.buffer)),D}let G=null;function U(){return(G===null||G.byteLength===0)&&(G=new Uint8Array(r.memory.buffer)),G}function p(n){return y[n]}function L(n,t){try{return n.apply(this,t)}catch(e){r.__wbindgen_export(d(e))}}let y=new Array(128).fill(void 0);y.push(void 0,null,!0,!1);let V=y.length;function z(n){return n==null}function de(n,t,e,_){const s={a:n,b:t,cnt:1,dtor:e},i=(...c)=>{s.cnt++;const o=s.a;s.a=0;try{return _(o,s.b,...c)}finally{s.a=o,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--s.cnt===0&&(s.dtor(s.a,s.b),s.a=0,Ft.unregister(s))},Ft.register(i,s,s),i}function m(n,t){const e=t(n.length*4,4)>>>0;return Nt().set(n,e/4),g=n.length,e}function x(n,t){const e=t(n.length*1,1)>>>0;return U().set(n,e/1),g=n.length,e}function u(n,t,e){if(e===void 0){const o=X.encode(n),l=t(o.length,1)>>>0;return U().subarray(l,l+o.length).set(o),g=o.length,l}let _=n.length,s=t(_,1)>>>0;const i=U();let c=0;for(;c<_;c++){const o=n.charCodeAt(c);if(o>127)break;i[s+c]=o}if(c!==_){c!==0&&(n=n.slice(c)),s=e(s,_,_=c+n.length*3,1)>>>0;const o=U().subarray(s+c,s+_),l=X.encodeInto(n,o);c+=l.written,s=e(s,_,c,1)>>>0}return g=c,s}let Z=128;function b(n){const t=p(n);return ce(n),t}let ot=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ot.decode();const be=2146435072;let ut=0;function le(n,t){return ut+=t,ut>=be&&(ot=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ot.decode(),ut=t),ot.decode(U().subarray(n,n+t))}const X=new TextEncoder;"encodeInto"in X||(X.encodeInto=function(n,t){const e=X.encode(n);return t.set(e),{read:n.length,written:e.length}});let g=0;function ue(n,t,e){r.__wasm_bindgen_func_elem_1484(n,t,d(e))}function we(n,t,e,_){r.__wasm_bindgen_func_elem_1524(n,t,d(e),d(_))}const St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_georeferencejs_free(n>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpugeometry_free(n>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpuinstancedgeometry_free(n>>>0,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpuinstancedgeometrycollection_free(n>>>0,1)),jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpuinstancedgeometryref_free(n>>>0,1)),Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_gpumeshmetadata_free(n>>>0,1)),kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_ifcapi_free(n>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_instancedata_free(n>>>0,1)),zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_instancedgeometry_free(n>>>0,1)),Ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_instancedmeshcollection_free(n>>>0,1)),Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_meshcollection_free(n>>>0,1)),At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_meshcollectionwithrtc_free(n>>>0,1)),Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_meshdatajs_free(n>>>0,1)),Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_profilecollection_free(n>>>0,1)),Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_profileentryjs_free(n>>>0,1)),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_rtcoffsetjs_free(n>>>0,1)),Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_symboliccircle_free(n>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_symbolicpolyline_free(n>>>0,1)),Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_symbolicrepresentationcollection_free(n>>>0,1)),ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>r.__wbg_zerocopymesh_free(n>>>0,1));class Y{static __wrap(t){t=t>>>0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,St.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_georeferencejs_free(t,0)}localToMap(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_localToMap(o,this.__wbg_ptr,t,e,_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=W(s,i).slice();return r.__wbindgen_export2(s,i*8,8),c}finally{r.__wbindgen_add_to_stack_pointer(16)}}mapToLocal(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_mapToLocal(o,this.__wbg_ptr,t,e,_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=W(s,i).slice();return r.__wbindgen_export2(s,i*8,8),c}finally{r.__wbindgen_add_to_stack_pointer(16)}}get crsName(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_crsName(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0);let s;return t!==0&&(s=w(t,e).slice(),r.__wbindgen_export2(t,e*1,1)),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}get rotation(){return r.georeferencejs_rotation(this.__wbg_ptr)}toMatrix(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.georeferencejs_toMatrix(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=W(t,e).slice();return r.__wbindgen_export2(t,e*8,8),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get eastings(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set eastings(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get northings(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set northings(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get orthogonal_height(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set orthogonal_height(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}get x_axis_abscissa(){return r.__wbg_get_georeferencejs_x_axis_abscissa(this.__wbg_ptr)}set x_axis_abscissa(t){r.__wbg_set_georeferencejs_x_axis_abscissa(this.__wbg_ptr,t)}get x_axis_ordinate(){return r.__wbg_get_georeferencejs_x_axis_ordinate(this.__wbg_ptr)}set x_axis_ordinate(t){r.__wbg_set_georeferencejs_x_axis_ordinate(this.__wbg_ptr,t)}get scale(){return r.__wbg_get_georeferencejs_scale(this.__wbg_ptr)}set scale(t){r.__wbg_set_georeferencejs_scale(this.__wbg_ptr,t)}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);class C{static __wrap(t){t=t>>>0;const e=Object.create(C.prototype);return e.__wbg_ptr=t,wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpugeometry_free(t,0)}get meshCount(){return r.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return r.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return r.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return r.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return r.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,e,_){r.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,e,_)}get vertexDataLen(){return r.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.gpugeometry_getIfcTypeName(s,this.__wbg_ptr,t);var e=a().getInt32(s+0,!0),_=a().getInt32(s+4,!0);let i;return e!==0&&(i=w(e,_).slice(),r.__wbindgen_export2(e,_*1,1)),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const e=r.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return e===0?void 0:q.__wrap(e)}get totalVertexCount(){return r.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return r.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=r.gpugeometry_new();return this.__wbg_ptr=t>>>0,wt.register(this,this.__wbg_ptr,this),this}get isEmpty(){return r.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(C.prototype[Symbol.dispose]=C.prototype.free);class N{static __wrap(t){t=t>>>0;const e=Object.create(N.prototype);return e.__wbg_ptr=t,ft.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpuinstancedgeometry_vertexCount(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get triangleCount(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}constructor(t){const e=r.gpuinstancedgeometry_new(t);return this.__wbg_ptr=e>>>0,ft.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);class K{static __wrap(t){t=t>>>0;const e=Object.create(K.prototype);return e.__wbg_ptr=t,yt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometrycollection_free(t,0)}get(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:N.__wrap(e)}constructor(){const t=r.gpuinstancedgeometrycollection_new();return this.__wbg_ptr=t>>>0,yt.register(this,this.__wbg_ptr,this),this}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}getRef(t){const e=r.gpuinstancedgeometrycollection_get(this.__wbg_ptr,t);return e===0?void 0:$.__wrap(e)}}Symbol.dispose&&(K.prototype[Symbol.dispose]=K.prototype.free);class ${static __wrap(t){t=t>>>0;const e=Object.create($.prototype);return e.__wbg_ptr=t,jt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpuinstancedgeometryref_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get indicesLen(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get instanceCount(){return r.gpuinstancedgeometry_instanceCount(this.__wbg_ptr)>>>0}get vertexDataLen(){return r.gpuinstancedgeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get instanceDataLen(){return r.gpuinstancedgeometry_instanceDataLen(this.__wbg_ptr)>>>0}get instanceDataPtr(){return r.gpuinstancedgeometry_instanceDataPtr(this.__wbg_ptr)>>>0}get indicesByteLength(){return r.gpuinstancedgeometry_indicesByteLength(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return r.gpuinstancedgeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}get instanceExpressIdsPtr(){return r.gpuinstancedgeometry_instanceExpressIdsPtr(this.__wbg_ptr)>>>0}get instanceDataByteLength(){return r.gpuinstancedgeometry_instanceDataByteLength(this.__wbg_ptr)>>>0}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);class q{static __wrap(t){t=t>>>0;const e=Object.create(q.prototype);return e.__wbg_ptr=t,Mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return r.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return r.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return r.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return r.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return r.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.gpumeshmetadata_color(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);class ct{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ifcapi_free(t,0)}parseMeshes(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseMeshes(this.__wbg_ptr,e,_);return I.__wrap(s)}parseMeshesAsync(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseMeshesAsync(this.__wbg_ptr,_,s,d(e));return b(i)}buildPrePassFast(t){const e=x(t,r.__wbindgen_export3),_=g,s=r.ifcapi_buildPrePassFast(this.__wbg_ptr,e,_);return b(s)}buildPrePassOnce(t){const e=x(t,r.__wbindgen_export3),_=g,s=r.ifcapi_buildPrePassOnce(this.__wbg_ptr,e,_);return b(s)}parseMeshesSubset(t,e,_,s){const i=u(t,r.__wbindgen_export3,r.__wbindgen_export4),c=g,o=r.ifcapi_parseMeshesSubset(this.__wbg_ptr,i,c,e,_,s);return I.__wrap(o)}parseToGpuGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseToGpuGeometry(this.__wbg_ptr,e,_);return C.__wrap(s)}parseMeshesInstanced(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseMeshesInstanced(this.__wbg_ptr,e,_);return A.__wrap(s)}processGeometryBatch(t,e,_,s,i,c,o,l,h,S,O,B){const j=x(t,r.__wbindgen_export3),gt=g,pt=m(e,r.__wbindgen_export3),dt=g,bt=m(l,r.__wbindgen_export3),lt=g,te=m(h,r.__wbindgen_export3),ee=g,re=m(S,r.__wbindgen_export3),ne=g,_e=m(O,r.__wbindgen_export3),se=g,ie=x(B,r.__wbindgen_export3),oe=g,ae=r.ifcapi_processGeometryBatch(this.__wbg_ptr,j,gt,pt,dt,_,s,i,c,o,bt,lt,te,ee,re,ne,_e,se,ie,oe);return I.__wrap(ae)}scanEntityIndexShard(t,e,_,s){try{const l=r.__wbindgen_add_to_stack_pointer(-16),h=x(t,r.__wbindgen_export3),S=g;r.ifcapi_scanEntityIndexShard(l,this.__wbg_ptr,h,S,It(e),_,s);var i=a().getInt32(l+0,!0),c=a().getInt32(l+4,!0),o=a().getInt32(l+8,!0);if(o)throw b(c);return b(i)}finally{r.__wbindgen_add_to_stack_pointer(16),y[Z++]=void 0}}buildPrePassStreaming(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16),l=x(t,r.__wbindgen_export3),h=g;r.ifcapi_buildPrePassStreaming(o,this.__wbg_ptr,l,h,It(e),_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=a().getInt32(o+8,!0);if(c)throw b(i);return b(s)}finally{r.__wbindgen_add_to_stack_pointer(16),y[Z++]=void 0}}parseToGpuGeometryAsync(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr,_,s,d(e));return b(i)}parseMeshesInstancedAsync(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr,_,s,d(e));return b(i)}parseToGpuInstancedGeometry(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr,e,_);return K.__wrap(s)}processInstancedGeometryBatch(t,e,_,s,i,c,o,l,h){const S=x(t,r.__wbindgen_export3),O=g,B=m(e,r.__wbindgen_export3),j=g,gt=m(l,r.__wbindgen_export3),pt=g,dt=x(h,r.__wbindgen_export3),bt=g,lt=r.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr,S,O,B,j,_,s,i,c,o,gt,pt,dt,bt);return A.__wrap(lt)}parseZeroCopy(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseZeroCopy(this.__wbg_ptr,e,_);return st.__wrap(s)}extractProfiles(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_extractProfiles(this.__wbg_ptr,_,s,e);return Q.__wrap(i)}debugProcessEntity953(t){let e,_;try{const c=r.__wbindgen_add_to_stack_pointer(-16),o=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=g;r.ifcapi_debugProcessEntity953(c,this.__wbg_ptr,o,l);var s=a().getInt32(c+0,!0),i=a().getInt32(c+4,!0);return e=s,_=i,w(s,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,_,1)}}debugProcessFirstWall(t){let e,_;try{const c=r.__wbindgen_add_to_stack_pointer(-16),o=u(t,r.__wbindgen_export3,r.__wbindgen_export4),l=g;r.ifcapi_debugProcessFirstWall(c,this.__wbg_ptr,o,l);var s=a().getInt32(c+0,!0),i=a().getInt32(c+4,!0);return e=s,_=i,w(s,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(e,_,1)}}getMemory(){const t=r.ifcapi_getMemory(this.__wbg_ptr);return b(t)}setEntityIndex(t,e,_){const s=m(t,r.__wbindgen_export3),i=g,c=m(e,r.__wbindgen_export3),o=g,l=m(_,r.__wbindgen_export3),h=g;r.ifcapi_setEntityIndex(this.__wbg_ptr,s,i,c,o,l,h)}setMergeLayers(t){r.ifcapi_setMergeLayers(this.__wbg_ptr,t)}clearPrePassCache(){r.ifcapi_clearPrePassCache(this.__wbg_ptr)}constructor(){const t=r.ifcapi_new();return this.__wbg_ptr=t>>>0,kt.register(this,this.__wbg_ptr,this),this}get version(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.ifcapi_version(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get is_ready(){return r.ifcapi_is_ready(this.__wbg_ptr)!==0}getGeoReference(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_getGeoReference(this.__wbg_ptr,e,_);return s===0?void 0:Y.__wrap(s)}parseMeshesWithRtc(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseMeshesWithRtc(this.__wbg_ptr,e,_);return H.__wrap(s)}parseStreaming(t,e){const _=u(t,r.__wbindgen_export3,r.__wbindgen_export4),s=g,i=r.ifcapi_parseStreaming(this.__wbg_ptr,_,s,d(e));return b(i)}scanEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_scanEntitiesFast(this.__wbg_ptr,e,_);return b(s)}scanEntitiesFastBytes(t){const e=x(t,r.__wbindgen_export3),_=g,s=r.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr,e,_);return b(s)}scanGeometryEntitiesFast(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr,e,_);return b(s)}scanRelevantEntitiesFastBytes(t){const e=x(t,r.__wbindgen_export3),_=g,s=r.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr,e,_);return b(s)}parse(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parse(this.__wbg_ptr,e,_);return b(s)}parseSymbolicRepresentations(t){const e=u(t,r.__wbindgen_export3,r.__wbindgen_export4),_=g,s=r.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr,e,_);return _t.__wrap(s)}}Symbol.dispose&&(ct.prototype[Symbol.dispose]=ct.prototype.free);class J{static __wrap(t){t=t>>>0;const e=Object.create(J.prototype);return e.__wbg_ptr=t,Rt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedata_free(t,0)}get expressId(){return r.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.instancedata_color(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=r.instancedata_transform(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);class P{static __wrap(t){t=t>>>0;const e=Object.create(P.prototype);return e.__wbg_ptr=t,zt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=r.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const e=r.instancedgeometry_get_instance(this.__wbg_ptr,t);return e===0?void 0:J.__wrap(e)}get instance_count(){return r.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=r.instancedgeometry_indices(this.__wbg_ptr);return b(t)}get normals(){const t=r.instancedgeometry_normals(this.__wbg_ptr);return b(t)}get positions(){const t=r.instancedgeometry_positions(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class A{static __wrap(t){t=t>>>0;const e=Object.create(A.prototype);return e.__wbg_ptr=t,Ct.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ct.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_instancedmeshcollection_free(t,0)}get totalInstances(){return r.instancedmeshcollection_totalInstances(this.__wbg_ptr)>>>0}get totalGeometries(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}get(t){const e=r.instancedmeshcollection_get(this.__wbg_ptr,t);return e===0?void 0:P.__wrap(e)}get length(){return r.gpuinstancedgeometrycollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);class I{static __wrap(t){t=t>>>0;const e=Object.create(I.prototype);return e.__wbg_ptr=t,Pt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollection_free(t,0)}get rtcOffsetX(){return r.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get rtcOffsetY(){return r.meshcollection_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return r.meshcollection_rtcOffsetZ(this.__wbg_ptr)}hasRtcOffset(){return r.meshcollection_hasRtcOffset(this.__wbg_ptr)!==0}localToWorld(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_localToWorld(o,this.__wbg_ptr,t,e,_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=W(s,i).slice();return r.__wbindgen_export2(s,i*8,8),c}finally{r.__wbindgen_add_to_stack_pointer(16)}}get totalVertices(){return r.meshcollection_totalVertices(this.__wbg_ptr)>>>0}get totalTriangles(){return r.meshcollection_totalTriangles(this.__wbg_ptr)>>>0}get buildingRotation(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshcollection_buildingRotation(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getFloat64(_+8,!0);return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){const e=r.meshcollection_get(this.__wbg_ptr,t);return e===0?void 0:R.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);class H{static __wrap(t){t=t>>>0;const e=Object.create(H.prototype);return e.__wbg_ptr=t,At.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshcollectionwithrtc_free(t,0)}get rtcOffset(){const t=r.meshcollectionwithrtc_rtcOffset(this.__wbg_ptr);return et.__wrap(t)}get(t){const e=r.meshcollectionwithrtc_get(this.__wbg_ptr,t);return e===0?void 0:R.__wrap(e)}get length(){return r.meshcollection_length(this.__wbg_ptr)>>>0}get meshes(){const t=r.meshcollectionwithrtc_meshes(this.__wbg_ptr);return I.__wrap(t)}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);class R{static __wrap(t){t=t>>>0;const e=Object.create(R.prototype);return e.__wbg_ptr=t,Ot.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_meshdatajs_free(t,0)}get expressId(){return r.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return r.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get shadingColor(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_shadingColor(_,this.__wbg_ptr);var t=a().getInt32(_+0,!0),e=a().getInt32(_+4,!0);let s;return t!==0&&(s=F(t,e).slice(),r.__wbindgen_export2(t,e*4,4)),s}finally{r.__wbindgen_add_to_stack_pointer(16)}}get triangleCount(){return r.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_color(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=r.meshdatajs_indices(this.__wbg_ptr);return b(t)}get normals(){const t=r.meshdatajs_normals(this.__wbg_ptr);return b(t)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.meshdatajs_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get positions(){const t=r.meshdatajs_positions(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);class Q{static __wrap(t){t=t>>>0;const e=Object.create(Q.prototype);return e.__wbg_ptr=t,Bt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profilecollection_free(t,0)}get(t){const e=r.profilecollection_get(this.__wbg_ptr,t);return e===0?void 0:tt.__wrap(e)}get length(){return r.profilecollection_length(this.__wbg_ptr)>>>0}}Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);class tt{static __wrap(t){t=t>>>0;const e=Object.create(tt.prototype);return e.__wbg_ptr=t,Lt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_profileentryjs_free(t,0)}get expressId(){return r.profileentryjs_expressId(this.__wbg_ptr)>>>0}get holeCounts(){const t=r.profileentryjs_holeCounts(this.__wbg_ptr);return b(t)}get holePoints(){const t=r.profileentryjs_holePoints(this.__wbg_ptr);return b(t)}get modelIndex(){return r.profileentryjs_modelIndex(this.__wbg_ptr)>>>0}get outerPoints(){const t=r.profileentryjs_outerPoints(this.__wbg_ptr);return b(t)}get extrusionDir(){const t=r.profileentryjs_extrusionDir(this.__wbg_ptr);return b(t)}get extrusionDepth(){return r.profileentryjs_extrusionDepth(this.__wbg_ptr)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.profileentryjs_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get transform(){const t=r.profileentryjs_transform(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);class et{static __wrap(t){t=t>>>0;const e=Object.create(et.prototype);return e.__wbg_ptr=t,Et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rtcoffsetjs_free(t,0)}isSignificant(){return r.rtcoffsetjs_isSignificant(this.__wbg_ptr)!==0}toWorld(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.rtcoffsetjs_toWorld(o,this.__wbg_ptr,t,e,_);var s=a().getInt32(o+0,!0),i=a().getInt32(o+4,!0),c=W(s,i).slice();return r.__wbindgen_export2(s,i*8,8),c}finally{r.__wbindgen_add_to_stack_pointer(16)}}get x(){return r.__wbg_get_georeferencejs_eastings(this.__wbg_ptr)}set x(t){r.__wbg_set_georeferencejs_eastings(this.__wbg_ptr,t)}get y(){return r.__wbg_get_georeferencejs_northings(this.__wbg_ptr)}set y(t){r.__wbg_set_georeferencejs_northings(this.__wbg_ptr,t)}get z(){return r.__wbg_get_georeferencejs_orthogonal_height(this.__wbg_ptr)}set z(t){r.__wbg_set_georeferencejs_orthogonal_height(this.__wbg_ptr,t)}}Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);class rt{static __wrap(t){t=t>>>0;const e=Object.create(rt.prototype);return e.__wbg_ptr=t,Tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Tt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symboliccircle_free(t,0)}get expressId(){return r.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get startAngle(){return r.symboliccircle_startAngle(this.__wbg_ptr)}get isFullCircle(){return r.symboliccircle_isFullCircle(this.__wbg_ptr)!==0}get repIdentifier(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get radius(){return r.symboliccircle_radius(this.__wbg_ptr)}get centerX(){return r.symboliccircle_centerX(this.__wbg_ptr)}get centerY(){return r.symboliccircle_centerY(this.__wbg_ptr)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symboliccircle_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get endAngle(){return r.symboliccircle_endAngle(this.__wbg_ptr)}}Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);class nt{static __wrap(t){t=t>>>0;const e=Object.create(nt.prototype);return e.__wbg_ptr=t,Dt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicpolyline_free(t,0)}get expressId(){return r.symbolicpolyline_expressId(this.__wbg_ptr)>>>0}get pointCount(){return r.symbolicpolyline_pointCount(this.__wbg_ptr)>>>0}get repIdentifier(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_repIdentifier(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get points(){const t=r.symbolicpolyline_points(this.__wbg_ptr);return b(t)}get ifcType(){let t,e;try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicpolyline_ifcType(i,this.__wbg_ptr);var _=a().getInt32(i+0,!0),s=a().getInt32(i+4,!0);return t=_,e=s,w(_,s)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export2(t,e,1)}}get isClosed(){return r.symbolicpolyline_isClosed(this.__wbg_ptr)!==0}}Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);class _t{static __wrap(t){t=t>>>0;const e=Object.create(_t.prototype);return e.__wbg_ptr=t,Gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_symbolicrepresentationcollection_free(t,0)}getCircle(t){const e=r.symbolicrepresentationcollection_getCircle(this.__wbg_ptr,t);return e===0?void 0:rt.__wrap(e)}get totalCount(){return r.symbolicrepresentationcollection_totalCount(this.__wbg_ptr)>>>0}get circleCount(){return r.symbolicrepresentationcollection_circleCount(this.__wbg_ptr)>>>0}getPolyline(t){const e=r.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr,t);return e===0?void 0:nt.__wrap(e)}get polylineCount(){return r.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr)>>>0}getExpressIds(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.symbolicrepresentationcollection_getExpressIds(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=Yt(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get isEmpty(){return r.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);class st{static __wrap(t){t=t>>>0;const e=Object.create(st.prototype);return e.__wbg_ptr=t,ht.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_zerocopymesh_free(t,0)}bounds_max(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_max(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}bounds_min(){try{const s=r.__wbindgen_add_to_stack_pointer(-16);r.zerocopymesh_bounds_min(s,this.__wbg_ptr);var t=a().getInt32(s+0,!0),e=a().getInt32(s+4,!0),_=F(t,e).slice();return r.__wbindgen_export2(t,e*4,4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get indices_len(){return r.gpuinstancedgeometry_indicesLen(this.__wbg_ptr)>>>0}get indices_ptr(){return r.gpuinstancedgeometry_indicesPtr(this.__wbg_ptr)>>>0}get normals_len(){return r.zerocopymesh_normals_len(this.__wbg_ptr)>>>0}get normals_ptr(){return r.gpuinstancedgeometry_vertexDataPtr(this.__wbg_ptr)>>>0}get vertex_count(){return r.zerocopymesh_vertex_count(this.__wbg_ptr)>>>0}get positions_len(){return r.zerocopymesh_positions_len(this.__wbg_ptr)>>>0}get positions_ptr(){return r.zerocopymesh_positions_ptr(this.__wbg_ptr)>>>0}get triangle_count(){return r.gpuinstancedgeometry_triangleCount(this.__wbg_ptr)>>>0}constructor(){const t=r.zerocopymesh_new();return this.__wbg_ptr=t>>>0,ht.register(this,this.__wbg_ptr,this),this}get is_empty(){return r.zerocopymesh_is_empty(this.__wbg_ptr)!==0}}Symbol.dispose&&(st.prototype[Symbol.dispose]=st.prototype.free);const fe=new Set(["basic","cors","default"]);async function ye(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&&fe.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 e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function Kt(){const n={};return n.wbg={},n.wbg.__wbg_Error_52673b7de5a0ca89=function(t,e){const _=Error(w(t,e));return d(_)},n.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(t){return typeof p(t)=="function"},n.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(t){return p(t)===void 0},n.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const t=r.memory;return d(t)},n.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(t,e){const _=p(e),s=typeof _=="number"?_:void 0;a().setFloat64(t+8,z(s)?0:s,!0),a().setInt32(t+0,!z(s),!0)},n.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(t,e){throw new Error(w(t,e))},n.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(t){p(t)._wbg_cb_unref()},n.wbg.__wbg_call_3020136f7a2d6e44=function(){return L(function(t,e,_){const s=p(t).call(p(e),p(_));return d(s)},arguments)},n.wbg.__wbg_call_abb4ff46ce38be40=function(){return L(function(t,e){const _=p(t).call(p(e));return d(_)},arguments)},n.wbg.__wbg_call_c8baa5c5e72d274e=function(){return L(function(t,e,_,s){const i=p(t).call(p(e),p(_),p(s));return d(i)},arguments)},n.wbg.__wbg_debug_9d0c87ddda3dc485=function(t){console.debug(p(t))},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let _,s;try{_=t,s=e,console.error(w(t,e))}finally{r.__wbindgen_export2(_,s,1)}},n.wbg.__wbg_get_af9dab7e9603ea93=function(){return L(function(t,e){const _=Reflect.get(p(t),p(e));return d(_)},arguments)},n.wbg.__wbg_gpugeometry_new=function(t){const e=C.__wrap(t);return d(e)},n.wbg.__wbg_info_ce6bcc489c22f6f0=function(t){console.info(p(t))},n.wbg.__wbg_instancedgeometry_new=function(t){const e=P.__wrap(t);return d(e)},n.wbg.__wbg_length_86ce4877baf913bb=function(t){return p(t).length},n.wbg.__wbg_length_d45040a40c570362=function(t){return p(t).length},n.wbg.__wbg_meshdatajs_new=function(t){const e=R.__wrap(t);return d(e)},n.wbg.__wbg_new_1ba21ce319a06297=function(){const t=new Object;return d(t)},n.wbg.__wbg_new_25f239778d6112b9=function(){const t=new Array;return d(t)},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){const t=new Error;return d(t)},n.wbg.__wbg_new_ff12d2b041fb48f1=function(t,e){try{var _={a:t,b:e},s=(c,o)=>{const l=_.a;_.a=0;try{return we(l,_.b,c,o)}finally{_.a=l}};const i=new Promise(s);return d(i)}finally{_.a=_.b=0}},n.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(t,e){const _=new Float32Array(F(t,e));return d(_)},n.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(t,e){const _=new Uint32Array(Yt(t,e));return d(_)},n.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(t,e){const _=new Function(w(t,e));return d(_)},n.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(t){const e=new Uint32Array(t>>>0);return d(e)},n.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(t){const e=new Float64Array(t>>>0);return d(e)},n.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(t){const e=new Uint8Array(t>>>0);return d(e)},n.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(t,e,_){Float32Array.prototype.set.call(F(t,e),p(_))},n.wbg.__wbg_push_7d9be8f38fc13975=function(t,e){return p(t).push(p(e))},n.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(t){const e=p(t).queueMicrotask;return d(e)},n.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(t){queueMicrotask(p(t))},n.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(t){const e=Promise.resolve(p(t));return d(e)},n.wbg.__wbg_set_3f1d0b984ed272ed=function(t,e,_){p(t)[b(e)]=b(_)},n.wbg.__wbg_set_781438a03c0c3c81=function(){return L(function(t,e,_){return Reflect.set(p(t),p(e),p(_))},arguments)},n.wbg.__wbg_set_7df433eea03a5c14=function(t,e,_){p(t)[e>>>0]=b(_)},n.wbg.__wbg_set_index_021489b2916af13e=function(t,e,_){p(t)[e>>>0]=_},n.wbg.__wbg_set_index_04c4b93e64d08a52=function(t,e,_){p(t)[e>>>0]=_},n.wbg.__wbg_set_index_42abe35f117e614e=function(t,e,_){p(t)[e>>>0]=_>>>0},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){const _=p(e).stack,s=u(_,r.__wbindgen_export3,r.__wbindgen_export4),i=g;a().setInt32(t+4,i,!0),a().setInt32(t+0,s,!0)},n.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const t=typeof global>"u"?null:global;return z(t)?0:d(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const t=typeof globalThis>"u"?null:globalThis;return z(t)?0:d(t)},n.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const t=typeof self>"u"?null:self;return z(t)?0:d(t)},n.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const t=typeof window>"u"?null:window;return z(t)?0:d(t)},n.wbg.__wbg_then_4f95312d68691235=function(t,e){const _=p(t).then(p(e));return d(_)},n.wbg.__wbg_warn_6e567d0d926ff881=function(t){console.warn(p(t))},n.wbg.__wbindgen_cast_2241b6af4c4b2941=function(t,e){const _=w(t,e);return d(_)},n.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(t){const e=BigInt.asUintN(64,t);return d(e)},n.wbg.__wbindgen_cast_73cbb7b49382c492=function(t,e){const _=de(t,e,r.__wasm_bindgen_func_elem_1483,ue);return d(_)},n.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(t){return d(t)},n.wbg.__wbindgen_object_clone_ref=function(t){const e=p(t);return d(e)},n.wbg.__wbindgen_object_drop_ref=function(t){b(t)},n}function $t(n,t){return r=n.exports,qt.__wbindgen_wasm_module=t,M=null,E=null,T=null,D=null,G=null,r.__wbindgen_start(),r}function he(n){if(r!==void 0)return r;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=Kt();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));const e=new WebAssembly.Instance(n,t);return $t(e,n)}async function qt(n){if(r!==void 0)return r;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-DyHX37GQ.wasm",import.meta.url));const t=Kt();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:_}=await ye(await n,t);return $t(e,_)}let v=null,Jt;async function k(){return v||(await qt(Jt),v=new ct,it=!1,mt(),v)}let Ht=!1,it=!1;function mt(){if(!v||it)return;const n=v;typeof n.setMergeLayers=="function"&&n.setMergeLayers(Ht),it=!0}function xt(n){return new Uint8Array(n)}function vt(n){const t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t}let f=null;const Wt=1e6;function Ut(n){return{sharedBuffer:n.sharedBuffer,localBytes:xt(n.sharedBuffer),sabFallbackTaken:!1,unitScale:n.unitScale,rtcX:n.rtcX,rtcY:n.rtcY,rtcZ:n.rtcZ,needsShift:n.needsShift,voidKeys:n.voidKeys,voidCounts:n.voidCounts,voidValues:n.voidValues,styleIds:n.styleIds,styleColors:n.styleColors,pendingMeshes:[],pendingTransfers:[],totalMeshesEmitted:0,cumulativeMeshBytes:0}}function Qt(n){if(n.pendingMeshes.length===0)return;const t=n.pendingMeshes,e=n.pendingTransfers;n.pendingMeshes=[],n.pendingTransfers=[],n.totalMeshesEmitted+=t.length,self.postMessage({type:"batch",meshes:t},e)}function me(n,t){for(let e=0;e<t.length;e++){const _=t.get(e);if(!_)continue;const s=new Float32Array(_.positions),i=new Float32Array(_.normals),c=new Uint32Array(_.indices);n.pendingMeshes.push({expressId:_.expressId,ifcType:_.ifcType,positions:s,normals:i,indices:c,color:[_.color[0],_.color[1],_.color[2],_.color[3]]}),n.pendingTransfers.push(s.buffer,i.buffer,c.buffer),n.cumulativeMeshBytes+=s.byteLength+i.byteLength+c.byteLength,_.free()}t.free()}async function at(n,t){const e=Math.floor(t.length/3);if(e!==0)try{const s=(await k()).processGeometryBatch(n.localBytes,t,n.unitScale,n.rtcX,n.rtcY,n.rtcZ,n.needsShift,n.voidKeys,n.voidCounts,n.voidValues,n.styleIds,n.styleColors);me(n,s)}catch(_){const s=_.message;if(!n.sabFallbackTaken&&n.localBytes.buffer instanceof SharedArrayBuffer){n.sabFallbackTaken=!0,console.warn(`[Worker] processGeometryBatch rejected SAB view (${s}), falling back to copy`),n.localBytes=vt(n.sharedBuffer),await at(n,t);return}if(e===1){console.warn(`[Worker] Skipping entity #${t[0]}: ${s}`),v=null;return}console.warn(`[Worker] Batch of ${e} entities failed (${s}), splitting…`),v=null;const i=Math.floor(e/2)*3;await at(n,t.slice(0,i)),await at(n,t.slice(i))}}async function Vt(n,t){const e=Math.floor(t.length/3);for(let _=0;_<e;_+=Wt){const s=_*3,i=Math.min(s+Wt*3,t.length);await at(n,t.subarray(s,i)),Qt(n)}}function Zt(n){Qt(n);let t=0;try{t=v?.getMemory()?.buffer?.byteLength??0}catch{}self.postMessage({type:"memory",meshBytes:n.cumulativeMeshBytes,wasmHeapBytes:t}),self.postMessage({type:"complete",totalMeshes:n.totalMeshesEmitted})}let Xt=Promise.resolve();self.onmessage=n=>{Xt=Xt.then(()=>xe(n)).catch(t=>{self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})})};async function xe(n){try{if(n.data.type==="prepass-streaming"){const t=await k();self.postMessage({type:"prepass-progress",phase:"parsing"});const e=n.data.sharedBuffer,_=n.data.chunkSize??5e4;let s=xt(e),i=!1;const c=o=>{self.postMessage({type:"prepass-stream",event:o})};try{t.buildPrePassStreaming(s,c,_)}catch(o){const l=o instanceof Error?o.message:String(o);if(!i)i=!0,console.warn(`[Worker] Streaming prepass with SAB view failed (${l}), retrying with copy`),s=vt(e),t.buildPrePassStreaming(s,c,_);else throw o}return}if(n.data.type==="prepass"||n.data.type==="prepass-fast"){const t=await k();self.postMessage({type:"prepass-progress",phase:"parsing"});const e=n.data.sharedBuffer,_=n.data.type==="prepass-fast";let s;try{const i=xt(e);s=_?t.buildPrePassFast(i):t.buildPrePassOnce(i)}catch(i){const c=i instanceof Error?i.message:String(i);console.warn(`[Worker] Prepass with SAB view failed (${c}), retrying with copy`);const o=vt(e);s=_?t.buildPrePassFast(o):t.buildPrePassOnce(o)}self.postMessage({type:"prepass-result",result:s});return}if(n.data.type==="init"){n.data.wasmUrl&&(Jt=n.data.wasmUrl),n.data.wasmModule?(he({module_or_path:n.data.wasmModule}),v=new ct,it=!1,mt()):await k(),self.postMessage({type:"ready"});return}if(n.data.type==="process"){await k();const{sharedBuffer:t,jobsFlat:e,unitScale:_,rtcX:s,rtcY:i,rtcZ:c,needsShift:o,voidKeys:l,voidCounts:h,voidValues:S,styleIds:O,styleColors:B}=n.data,j=Ut({sharedBuffer:t,unitScale:_,rtcX:s,rtcY:i,rtcZ:c,needsShift:o,voidKeys:l,voidCounts:h,voidValues:S,styleIds:O,styleColors:B});f=j,await Vt(j,e),Zt(j),f=null;return}if(n.data.type==="stream-start"){await k(),f=Ut({sharedBuffer:n.data.sharedBuffer,unitScale:n.data.unitScale,rtcX:n.data.rtcX,rtcY:n.data.rtcY,rtcZ:n.data.rtcZ,needsShift:n.data.needsShift,voidKeys:n.data.voidKeys,voidCounts:n.data.voidCounts,voidValues:n.data.voidValues,styleIds:n.data.styleIds,styleColors:n.data.styleColors});return}if(n.data.type==="stream-chunk"){if(!f)throw new Error("stream-chunk received before stream-start");await Vt(f,n.data.jobsFlat);return}if(n.data.type==="set-styles"){if(!f)return;f.styleIds=n.data.styleIds,f.styleColors=n.data.styleColors,f.voidKeys=n.data.voidKeys,f.voidCounts=n.data.voidCounts,f.voidValues=n.data.voidValues;return}if(n.data.type==="set-entity-index"){(await k()).setEntityIndex(n.data.ids,n.data.starts,n.data.lengths);return}if(n.data.type==="set-merge-layers"){Ht=n.data.enabled===!0,it=!1,mt();return}if(n.data.type==="stream-end"){if(!f)throw new Error("stream-end received before stream-start");Zt(f),f=null;return}}catch(t){self.postMessage({type:"error",message:t instanceof Error?t.message:String(t)})}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/raw-
|
|
2
|
-
import { _ as H, __tla as __tla_0 } from "./sandbox-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/raw-DzTtEZIY.js","assets/sandbox-VLI_y7cl.js","assets/lens-CpjUdqpw.js","assets/__vite-browser-external-B1O5LaIO.js","assets/lzw-Cnw0hH-m.js","assets/jpeg-DUMcZp24.js","assets/deflate-yMpdCIqk.js","assets/pako.esm-Cram60i4.js","assets/packbits-BskJCwk0.js","assets/lerc-IN4uWojP.js","assets/zip-BJqVbRkU.js","assets/zstd-BDToOQyD.js","assets/webimage-Db2xzze3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as H, __tla as __tla_0 } from "./sandbox-VLI_y7cl.js";
|
|
3
3
|
import P from "./__vite-browser-external-B1O5LaIO.js";
|
|
4
4
|
let Se, II, gI, Ye;
|
|
5
5
|
let __tla = Promise.all([
|
|
@@ -953,12 +953,12 @@ let __tla = Promise.all([
|
|
|
953
953
|
void 0,
|
|
954
954
|
1
|
|
955
955
|
],
|
|
956
|
-
importFn: ()=>H(()=>import("./raw-
|
|
956
|
+
importFn: ()=>H(()=>import("./raw-DzTtEZIY.js"), __vite__mapDeps([0,1,2,3])).then((I)=>I.default),
|
|
957
957
|
preferWorker: !1
|
|
958
958
|
},
|
|
959
959
|
{
|
|
960
960
|
cases: 5,
|
|
961
|
-
importFn: ()=>H(()=>import("./lzw-
|
|
961
|
+
importFn: ()=>H(()=>import("./lzw-Cnw0hH-m.js"), __vite__mapDeps([4,1,2,3])).then((I)=>I.default)
|
|
962
962
|
},
|
|
963
963
|
{
|
|
964
964
|
cases: 6,
|
|
@@ -968,7 +968,7 @@ let __tla = Promise.all([
|
|
|
968
968
|
},
|
|
969
969
|
{
|
|
970
970
|
cases: 7,
|
|
971
|
-
importFn: ()=>H(()=>import("./jpeg-
|
|
971
|
+
importFn: ()=>H(()=>import("./jpeg-DUMcZp24.js"), __vite__mapDeps([5,1,2,3])).then((I)=>I.default),
|
|
972
972
|
decoderParameterFn: async (I)=>({
|
|
973
973
|
...await rA(I),
|
|
974
974
|
JPEGTables: await I.loadValue("JPEGTables")
|
|
@@ -979,15 +979,15 @@ let __tla = Promise.all([
|
|
|
979
979
|
8,
|
|
980
980
|
32946
|
|
981
981
|
],
|
|
982
|
-
importFn: ()=>H(()=>import("./deflate-
|
|
982
|
+
importFn: ()=>H(()=>import("./deflate-yMpdCIqk.js"), __vite__mapDeps([6,7,1,2,3])).then((I)=>I.default)
|
|
983
983
|
},
|
|
984
984
|
{
|
|
985
985
|
cases: 32773,
|
|
986
|
-
importFn: ()=>H(()=>import("./packbits-
|
|
986
|
+
importFn: ()=>H(()=>import("./packbits-BskJCwk0.js"), __vite__mapDeps([8,1,2,3])).then((I)=>I.default)
|
|
987
987
|
},
|
|
988
988
|
{
|
|
989
989
|
cases: 34887,
|
|
990
|
-
importFn: ()=>H(()=>import("./lerc-
|
|
990
|
+
importFn: ()=>H(()=>import("./lerc-IN4uWojP.js"), __vite__mapDeps([9,7,10,1,2,3])).then(async (I)=>(await I.zstd.init(), I)).then((I)=>I.default),
|
|
991
991
|
decoderParameterFn: async (I)=>({
|
|
992
992
|
...await rA(I),
|
|
993
993
|
LercParameters: await I.loadValue("LercParameters")
|
|
@@ -995,11 +995,11 @@ let __tla = Promise.all([
|
|
|
995
995
|
},
|
|
996
996
|
{
|
|
997
997
|
cases: 5e4,
|
|
998
|
-
importFn: ()=>H(()=>import("./zstd-
|
|
998
|
+
importFn: ()=>H(()=>import("./zstd-BDToOQyD.js"), __vite__mapDeps([11,1,2,3])).then(async (I)=>(await I.zstd.init(), I)).then((I)=>I.default)
|
|
999
999
|
},
|
|
1000
1000
|
{
|
|
1001
1001
|
cases: 50001,
|
|
1002
|
-
importFn: ()=>H(()=>import("./webimage-
|
|
1002
|
+
importFn: ()=>H(()=>import("./webimage-Db2xzze3.js"), __vite__mapDeps([12,1,2,3])).then((I)=>I.default),
|
|
1003
1003
|
decoderParameterFn: async (I)=>({
|
|
1004
1004
|
...await rA(I),
|
|
1005
1005
|
samplesPerPixel: Number(await I.loadValue("SamplesPerPixel")) || 4
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/sandbox-
|
|
2
|
-
import { am as $, ai as fe, a9 as J, ah as ye, a7 as he, a8 as ve, aa as Ee, R as Te, _ as Ie, W as be, E as ge, a1 as Se, a2 as Ae, n as A, V as N, a6 as xe, a5 as Ce, a0 as Re, ag as Me, __tla as __tla_0 } from "./sandbox-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/sandbox-VLI_y7cl.js","assets/lens-CpjUdqpw.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { am as $, ai as fe, a9 as J, ah as ye, a7 as he, a8 as ve, aa as Ee, R as Te, _ as Ie, W as be, E as ge, a1 as Se, a2 as Ae, n as A, V as N, a6 as xe, a5 as Ce, a0 as Re, ag as Me, __tla as __tla_0 } from "./sandbox-VLI_y7cl.js";
|
|
3
3
|
let g, oa, ua, ca, Ne, la;
|
|
4
4
|
let __tla = Promise.all([
|
|
5
5
|
(()=>{
|
|
@@ -2023,7 +2023,7 @@ let __tla = Promise.all([
|
|
|
2023
2023
|
case "pattern":
|
|
2024
2024
|
try {
|
|
2025
2025
|
const a = new RegExp(`^${e.name.pattern}$`), { getEntities: i } = await Ie(async ()=>{
|
|
2026
|
-
const { getEntities: r } = await import("./sandbox-
|
|
2026
|
+
const { getEntities: r } = await import("./sandbox-VLI_y7cl.js").then(async (m)=>{
|
|
2027
2027
|
await m.__tla;
|
|
2028
2028
|
return m;
|
|
2029
2029
|
}).then((s)=>s.aj);
|