framefields 2.9.3 → 2.11.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/README.md +9 -2
- package/dist/audio/index.d.mts +5 -5
- package/dist/audio/index.mjs +13 -13
- package/dist/{audio-B6RmYOPe.mjs → audio-BuCVk1IQ.mjs} +32 -6
- package/dist/audio-BuCVk1IQ.mjs.map +1 -0
- package/dist/audio-CYZkDwae.d.mts +62 -0
- package/dist/audio-CYZkDwae.d.mts.map +1 -0
- package/dist/{audio-BlDbnteH.mjs → audio-KHBadECb.mjs} +1 -1
- package/dist/{audio-BlDbnteH.mjs.map → audio-KHBadECb.mjs.map} +1 -1
- package/dist/{check-result-Bj7g62ka.mjs → check-result-Culfu7Nx.mjs} +1 -1
- package/dist/{check-result-Bj7g62ka.mjs.map → check-result-Culfu7Nx.mjs.map} +1 -1
- package/dist/cli/check-worker.mjs +50 -50
- package/dist/cli.mjs +179 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/cloud/index.d.mts +118 -0
- package/dist/cloud/index.d.mts.map +1 -0
- package/dist/cloud/index.mjs +3 -0
- package/dist/cloud-xcfV4J03.mjs +233 -0
- package/dist/cloud-xcfV4J03.mjs.map +1 -0
- package/dist/components/index.d.mts +14 -14
- package/dist/components/index.mjs +47 -47
- package/dist/{dist-Cn8bDsQF.mjs → dist-BIE8fvlv.mjs} +1 -1
- package/dist/{dist-Cn8bDsQF.mjs.map → dist-BIE8fvlv.mjs.map} +1 -1
- package/dist/{dist-ByxHoMQI.mjs → dist-Bf2_efYP.mjs} +1 -1
- package/dist/{dist-ByxHoMQI.mjs.map → dist-Bf2_efYP.mjs.map} +1 -1
- package/dist/{dist-BlulwErl.mjs → dist-CNGv-JTX.mjs} +1 -1
- package/dist/{dist-D12-a3-x.mjs → dist-CWLLnigL.mjs} +375 -15
- package/dist/dist-CWLLnigL.mjs.map +1 -0
- package/dist/{dist-DL1GwJvs.mjs → dist-CySGkG54.mjs} +2 -2
- package/dist/{dist-DL1GwJvs.mjs.map → dist-CySGkG54.mjs.map} +1 -1
- package/dist/{dist-Dq5TkNDI.mjs → dist-Dg9LMWoX.mjs} +2 -2
- package/dist/{dist-Dq5TkNDI.mjs.map → dist-Dg9LMWoX.mjs.map} +1 -1
- package/dist/{dist-DEUU6sNe.mjs → dist-EQX3TUUl.mjs} +4 -4
- package/dist/{dist-DEUU6sNe.mjs.map → dist-EQX3TUUl.mjs.map} +1 -1
- package/dist/effects/index.d.mts +6 -6
- package/dist/effects/index.mjs +36 -36
- package/dist/{effects-CViUoQSV.mjs → effects-DKLbLXF7.mjs} +3 -3
- package/dist/{effects-CViUoQSV.mjs.map → effects-DKLbLXF7.mjs.map} +1 -1
- package/dist/fonts/index.d.mts +1 -1
- package/dist/fonts/index.mjs +3 -3
- package/dist/{fonts-B0U2KO5I.mjs → fonts-gPbGbShD.mjs} +2 -2
- package/dist/{fonts-B0U2KO5I.mjs.map → fonts-gPbGbShD.mjs.map} +1 -1
- package/dist/{gpu-zFNrvhV9.mjs → gpu-CpkJJLQP.mjs} +2 -2
- package/dist/{gpu-zFNrvhV9.mjs.map → gpu-CpkJJLQP.mjs.map} +1 -1
- package/dist/{index-BuYtrhzL.d.mts → index-BW0Q1ygn.d.mts} +1 -1
- package/dist/{index-BuYtrhzL.d.mts.map → index-BW0Q1ygn.d.mts.map} +1 -1
- package/dist/{index-f4IF1vRH.d.mts → index-Bly-7YM1.d.mts} +3 -3
- package/dist/{index-f4IF1vRH.d.mts.map → index-Bly-7YM1.d.mts.map} +1 -1
- package/dist/{index-Bzo1uj8h.d.mts → index-BuiZzc6i.d.mts} +23 -3
- package/dist/index-BuiZzc6i.d.mts.map +1 -0
- package/dist/{index-DBhswLMO.d.mts → index-C8YwZ6k1.d.mts} +2 -2
- package/dist/{index-DBhswLMO.d.mts.map → index-C8YwZ6k1.d.mts.map} +1 -1
- package/dist/{index-svAgwTY_.d.mts → index-CEU_Zsb9.d.mts} +2 -2
- package/dist/{index-svAgwTY_.d.mts.map → index-CEU_Zsb9.d.mts.map} +1 -1
- package/dist/{index-9_4X2ro1.d.mts → index-COYNQ_mf.d.mts} +1 -1
- package/dist/{index-9_4X2ro1.d.mts.map → index-COYNQ_mf.d.mts.map} +1 -1
- package/dist/{index-CgGM31I9.d.mts → index-CdCrae-I.d.mts} +2 -2
- package/dist/{index-CgGM31I9.d.mts.map → index-CdCrae-I.d.mts.map} +1 -1
- package/dist/{index-B9Lm1x8i.d.mts → index-Cro-818i.d.mts} +297 -283
- package/dist/index-Cro-818i.d.mts.map +1 -0
- package/dist/{index-w28KUM9A.d.mts → index-D2i9J9Zq.d.mts} +3 -3
- package/dist/{index-w28KUM9A.d.mts.map → index-D2i9J9Zq.d.mts.map} +1 -1
- package/dist/{index-V0ZQ4JN6.d.mts → index-gOVtTm-P.d.mts} +125 -3
- package/dist/index-gOVtTm-P.d.mts.map +1 -0
- package/dist/{index-C6GcuYVA.d.mts → index-jSDEM-uE.d.mts} +5 -5
- package/dist/{index-C6GcuYVA.d.mts.map → index-jSDEM-uE.d.mts.map} +1 -1
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +59 -59
- package/dist/preview/index.d.mts +4 -4
- package/dist/preview/index.mjs +12 -12
- package/dist/{preview-ZKJ_zTmd.mjs → preview-BToKUTtZ.mjs} +3 -3
- package/dist/{preview-ZKJ_zTmd.mjs.map → preview-BToKUTtZ.mjs.map} +1 -1
- package/dist/preview-engine/audio.mjs +1 -1
- package/dist/preview-engine/{chunk-VN36PRVD.mjs → chunk-26XWIHW3.mjs} +1 -1
- package/dist/preview-engine/{chunk-BVDWS3D2.mjs → chunk-4AGQN53P.mjs} +1 -1
- package/dist/preview-engine/{chunk-IB6GZJOL.mjs → chunk-54Q5CKSV.mjs} +1 -1
- package/dist/preview-engine/{chunk-Y5K5LVOR.mjs → chunk-5KSBS3AL.mjs} +1 -1
- package/dist/preview-engine/{chunk-ZJ5SWTCW.mjs → chunk-65NANVQL.mjs} +1 -1
- package/dist/preview-engine/{chunk-34RJ7GAS.mjs → chunk-6LTINEA4.mjs} +1 -1
- package/dist/preview-engine/{chunk-SPJPM43P.mjs → chunk-7GMHSTRP.mjs} +1 -1
- package/dist/preview-engine/{chunk-BEYA25UZ.mjs → chunk-ACBBBOUM.mjs} +1 -1
- package/dist/preview-engine/{chunk-7U34VKNO.mjs → chunk-BRV7TQDV.mjs} +1 -1
- package/dist/preview-engine/{chunk-KHJZMTOS.mjs → chunk-CCORQLMR.mjs} +1 -1
- package/dist/preview-engine/{chunk-5AWAOMBR.mjs → chunk-CIVEZJYF.mjs} +1 -1
- package/dist/preview-engine/{chunk-FKG27DVO.mjs → chunk-CIVJXFWH.mjs} +1 -1
- package/dist/preview-engine/{chunk-JIPMF42Z.mjs → chunk-D6LM7DTJ.mjs} +2 -2
- package/dist/preview-engine/{chunk-GA4HNR44.mjs → chunk-DNNGWS2C.mjs} +1 -1
- package/dist/preview-engine/{chunk-ZY47XIRK.mjs → chunk-EAWJXW4J.mjs} +1 -1
- package/dist/preview-engine/{chunk-6R3UJBL5.mjs → chunk-EPRINA4V.mjs} +1 -1
- package/dist/preview-engine/{chunk-GRJJVSOV.mjs → chunk-EXEO245X.mjs} +1 -1
- package/dist/preview-engine/{chunk-DVZITDQS.mjs → chunk-FQL4IJZN.mjs} +1 -1
- package/dist/preview-engine/{chunk-QCSVT73T.mjs → chunk-GHTG5XV6.mjs} +1 -1
- package/dist/preview-engine/{chunk-VVY4PG5E.mjs → chunk-GXFYRMJZ.mjs} +25 -25
- package/dist/preview-engine/{chunk-AHQCDTD6.mjs → chunk-IBPYV6HF.mjs} +1 -1
- package/dist/preview-engine/{chunk-PM2W4VLT.mjs → chunk-IKVJ4MW5.mjs} +1 -1
- package/dist/preview-engine/{chunk-GZWA5QJS.mjs → chunk-JDB7PMRI.mjs} +1 -1
- package/dist/preview-engine/{chunk-CC4NNNIY.mjs → chunk-KVOFO273.mjs} +1 -1
- package/dist/preview-engine/{chunk-RJIAES3X.mjs → chunk-LFNCWMKS.mjs} +1 -1
- package/dist/preview-engine/{chunk-FTCEG3SF.mjs → chunk-LMXMBX4J.mjs} +1 -1
- package/dist/preview-engine/{chunk-MIEH74UH.mjs → chunk-M4QANUJI.mjs} +1 -1
- package/dist/preview-engine/{chunk-VVE2QHVG.mjs → chunk-NOKPBMIP.mjs} +1 -1
- package/dist/preview-engine/{chunk-P5FKRQFU.mjs → chunk-O63FLYWC.mjs} +1 -1
- package/dist/preview-engine/chunk-OELPPLML.mjs +107 -0
- package/dist/preview-engine/{chunk-GIICZZQI.mjs → chunk-OLB4TQLQ.mjs} +1 -1
- package/dist/preview-engine/{chunk-CN2VLYLB.mjs → chunk-PKNUTHPI.mjs} +1 -1
- package/dist/preview-engine/{chunk-2B722GXM.mjs → chunk-QF4JWVO3.mjs} +1 -1
- package/dist/preview-engine/{chunk-EJJITH6U.mjs → chunk-RDWLLITE.mjs} +1 -1
- package/dist/preview-engine/{chunk-K3C6GUQD.mjs → chunk-SE2C623Z.mjs} +1 -1
- package/dist/preview-engine/{chunk-34DL53D5.mjs → chunk-TEWRQKX3.mjs} +1 -1
- package/dist/preview-engine/{chunk-H7BSN7V7.mjs → chunk-UGB6JKVS.mjs} +1 -1
- package/dist/preview-engine/{chunk-BJV2LBII.mjs → chunk-UI3VH33L.mjs} +1 -1
- package/dist/preview-engine/{chunk-UXYM2G6J.mjs → chunk-UMJ3VGKN.mjs} +1 -1
- package/dist/preview-engine/{chunk-2DWY7UBV.mjs → chunk-VFQH5KVS.mjs} +1 -1
- package/dist/preview-engine/{chunk-73CNXGAK.mjs → chunk-VQA4DYZU.mjs} +1 -1
- package/dist/preview-engine/{chunk-LVYVXVZO.mjs → chunk-VZLIRYAL.mjs} +1 -1
- package/dist/preview-engine/{chunk-4WYM72ZN.mjs → chunk-WFMUDL55.mjs} +1 -1
- package/dist/preview-engine/{chunk-Q62GPWGD.mjs → chunk-XF6DYP6B.mjs} +11 -11
- package/dist/preview-engine/{chunk-35HMRW4I.mjs → chunk-YHMBGJP6.mjs} +1 -1
- package/dist/preview-engine/{chunk-DMSZXG56.mjs → chunk-YKM7JDQY.mjs} +1 -1
- package/dist/preview-engine/{chunk-SF37HXAH.mjs → chunk-YVZTRH4Y.mjs} +1 -1
- package/dist/preview-engine/{chunk-TNJEZKXM.mjs → chunk-Z24UEN4P.mjs} +1 -1
- package/dist/preview-engine/{chunk-2PYTDN2C.mjs → chunk-ZF2MEFKO.mjs} +1 -1
- package/dist/preview-engine/{chunk-OH5W5EL6.mjs → chunk-ZIXPWP2B.mjs} +1 -1
- package/dist/preview-engine/components.mjs +1 -1
- package/dist/preview-engine/effects.mjs +1 -1
- package/dist/preview-engine/framefields.mjs +1 -1
- package/dist/preview-engine/player.mjs +1 -1
- package/dist/preview-engine/renderers-2NGIILMI.mjs +1 -0
- package/dist/preview-engine/{renderers-5TO2SXFR.mjs → renderers-33FCFHDR.mjs} +1 -1
- package/dist/preview-engine/renderers-466Z77BH.mjs +1 -0
- package/dist/preview-engine/{renderers-PIIEUKFE.mjs → renderers-4IBFDW2S.mjs} +1 -1
- package/dist/preview-engine/renderers-4KRENGZA.mjs +1 -0
- package/dist/preview-engine/renderers-4W52BQEU.mjs +1 -0
- package/dist/preview-engine/{renderers-ZACSHGNZ.mjs → renderers-53EI26GL.mjs} +1 -1
- package/dist/preview-engine/renderers-55PRAS7G.mjs +1 -0
- package/dist/preview-engine/renderers-5LLYINHW.mjs +1 -0
- package/dist/preview-engine/{renderers-A24KZK2Q.mjs → renderers-5XLGCEOA.mjs} +1 -1
- package/dist/preview-engine/renderers-63N3Y2XO.mjs +1 -0
- package/dist/preview-engine/{renderers-V3AQO7AR.mjs → renderers-6LNDAO4B.mjs} +1 -1
- package/dist/preview-engine/renderers-6ROVFDIN.mjs +1 -0
- package/dist/preview-engine/{renderers-CUMVIVHI.mjs → renderers-6YVZUQOH.mjs} +1 -1
- package/dist/preview-engine/renderers-7CAHX35U.mjs +1 -0
- package/dist/preview-engine/renderers-A4RVLPMG.mjs +1 -0
- package/dist/preview-engine/renderers-A53P4J6O.mjs +1 -0
- package/dist/preview-engine/{renderers-WEYAHOBK.mjs → renderers-ACUJMDEK.mjs} +1 -1
- package/dist/preview-engine/renderers-AFJ3373L.mjs +1 -0
- package/dist/preview-engine/renderers-ATFWTA3U.mjs +1 -0
- package/dist/preview-engine/{renderers-TSBV4KPE.mjs → renderers-BOBVXYAA.mjs} +1 -1
- package/dist/preview-engine/renderers-BPYJXHBU.mjs +1 -0
- package/dist/preview-engine/{renderers-NCGH2WWJ.mjs → renderers-C7SI3NIE.mjs} +1 -1
- package/dist/preview-engine/{renderers-FSI5KNGZ.mjs → renderers-CCRZNGVK.mjs} +1 -1
- package/dist/preview-engine/{renderers-NUAI4TO5.mjs → renderers-CYJAVWHT.mjs} +1 -1
- package/dist/preview-engine/renderers-D3ZF7FXT.mjs +1 -0
- package/dist/preview-engine/renderers-D7YN6B4B.mjs +1 -0
- package/dist/preview-engine/renderers-DBLASKF5.mjs +1 -0
- package/dist/preview-engine/renderers-DC5ZYYHM.mjs +1 -0
- package/dist/preview-engine/{renderers-5UZ3YFBD.mjs → renderers-EN7LXJLG.mjs} +1 -1
- package/dist/preview-engine/{renderers-L6YDX6GS.mjs → renderers-FY2HOQCS.mjs} +1 -1
- package/dist/preview-engine/{renderers-6Z7DWAPH.mjs → renderers-GQM3KMV3.mjs} +1 -1
- package/dist/preview-engine/{renderers-QA2HKUJJ.mjs → renderers-H6PBHEYU.mjs} +1 -1
- package/dist/preview-engine/{renderers-MD3PRFZL.mjs → renderers-HKLCB4U6.mjs} +1 -1
- package/dist/preview-engine/{renderers-TGJSOKDY.mjs → renderers-HSFQIILN.mjs} +1 -1
- package/dist/preview-engine/{renderers-7C5RA3R5.mjs → renderers-I6QKZ7CH.mjs} +1 -1
- package/dist/preview-engine/renderers-J6ZEXW5L.mjs +1 -0
- package/dist/preview-engine/renderers-JV4MF46Q.mjs +1 -0
- package/dist/preview-engine/{renderers-SEIAUKJF.mjs → renderers-KCGK33Y2.mjs} +1 -1
- package/dist/preview-engine/renderers-KQKH4ZIX.mjs +1 -0
- package/dist/preview-engine/renderers-MEITHN4N.mjs +1 -0
- package/dist/preview-engine/renderers-MN3HSBTJ.mjs +1 -0
- package/dist/preview-engine/renderers-NTG3QGNH.mjs +1 -0
- package/dist/preview-engine/{renderers-KC6ZSKCW.mjs → renderers-OGOW3NA4.mjs} +1 -1
- package/dist/preview-engine/renderers-OU4SFMB2.mjs +1 -0
- package/dist/preview-engine/{renderers-ENMY4DKF.mjs → renderers-P2HORBZ6.mjs} +1 -1
- package/dist/preview-engine/renderers-P6TIBJIG.mjs +1 -0
- package/dist/preview-engine/renderers-POJWQ7L3.mjs +1 -0
- package/dist/preview-engine/renderers-RJ7S6VHD.mjs +1 -0
- package/dist/preview-engine/renderers-RJJAJZYN.mjs +1 -0
- package/dist/preview-engine/renderers-UEQ733VK.mjs +1 -0
- package/dist/preview-engine/{renderers-T74CQCEN.mjs → renderers-UG2C3C7T.mjs} +1 -1
- package/dist/preview-engine/renderers-ULO2AW2U.mjs +1 -0
- package/dist/preview-engine/renderers-UPVHGHCK.mjs +1 -0
- package/dist/preview-engine/renderers-UZHSNNIM.mjs +1 -0
- package/dist/preview-engine/renderers-V5KWZL2C.mjs +1 -0
- package/dist/preview-engine/{renderers-5KANN7XF.mjs → renderers-VIGZYJYX.mjs} +1 -1
- package/dist/preview-engine/{renderers-4F7WLQD5.mjs → renderers-VVP5WQOY.mjs} +1 -1
- package/dist/preview-engine/{renderers-7XHO6M3B.mjs → renderers-WL372W36.mjs} +1 -1
- package/dist/preview-engine/{renderers-U4M7ZCV4.mjs → renderers-WSABL3QO.mjs} +1 -1
- package/dist/preview-engine/{renderers-Y22VSOXF.mjs → renderers-X6CORAES.mjs} +1 -1
- package/dist/preview-engine/renderers-YMXKYOHQ.mjs +1 -0
- package/dist/preview-engine/renderers-YWDAZ2NZ.mjs +1 -0
- package/dist/preview-engine/signals.mjs +1 -1
- package/dist/{program-xjIwjKb6.mjs → program-Bc860ko5.mjs} +4 -4
- package/dist/{program-xjIwjKb6.mjs.map → program-Bc860ko5.mjs.map} +1 -1
- package/dist/registry/focus-zoom.json +9 -2
- package/dist/renderer/index.d.mts +4 -4
- package/dist/renderer/index.mjs +4 -4
- package/dist/renderer--Ymc_4XJ.mjs +5 -0
- package/dist/{renderer-Dee8ksIV.mjs → renderer-1uoKiILq.mjs} +3 -3
- package/dist/{renderer-Dee8ksIV.mjs.map → renderer-1uoKiILq.mjs.map} +1 -1
- package/dist/{renderer-CIB5L_C4.mjs → renderer-4ZUv3X1I.mjs} +5 -5
- package/dist/{renderer-CIB5L_C4.mjs.map → renderer-4ZUv3X1I.mjs.map} +1 -1
- package/dist/{renderer-BPYIqtNg.mjs → renderer-50JEMaVo.mjs} +5 -5
- package/dist/{renderer-BPYIqtNg.mjs.map → renderer-50JEMaVo.mjs.map} +1 -1
- package/dist/{renderer-BdbI_u9w.mjs → renderer-7ow5Acsg.mjs} +3 -3
- package/dist/{renderer-BdbI_u9w.mjs.map → renderer-7ow5Acsg.mjs.map} +1 -1
- package/dist/{renderer-B-inTgyb.d.mts → renderer-88C3QpKL.d.mts} +2 -2
- package/dist/{renderer-B-inTgyb.d.mts.map → renderer-88C3QpKL.d.mts.map} +1 -1
- package/dist/{renderer-DH7l5WFr.mjs → renderer-B-CMRUag.mjs} +4 -4
- package/dist/{renderer-DH7l5WFr.mjs.map → renderer-B-CMRUag.mjs.map} +1 -1
- package/dist/renderer-B-OdV-eq.mjs +5 -0
- package/dist/{renderer-NTCk1Srf.mjs → renderer-B1LD29TV.mjs} +3 -3
- package/dist/{renderer-NTCk1Srf.mjs.map → renderer-B1LD29TV.mjs.map} +1 -1
- package/dist/{renderer-ESkPj6pk.mjs → renderer-B1esRxGy.mjs} +4 -4
- package/dist/{renderer-ESkPj6pk.mjs.map → renderer-B1esRxGy.mjs.map} +1 -1
- package/dist/{renderer-g7fF2AYk.mjs → renderer-B3Dme2es.mjs} +5 -5
- package/dist/{renderer-g7fF2AYk.mjs.map → renderer-B3Dme2es.mjs.map} +1 -1
- package/dist/renderer-B65fwoA2.mjs +5 -0
- package/dist/{renderer-CDVb4OfJ.mjs → renderer-B6Oeahe_.mjs} +5 -5
- package/dist/{renderer-CDVb4OfJ.mjs.map → renderer-B6Oeahe_.mjs.map} +1 -1
- package/dist/renderer-B92Ahkcv.mjs +5 -0
- package/dist/renderer-B9z2AK31.mjs +5 -0
- package/dist/{renderer-BZmmekE8.mjs → renderer-BDZC3o3N.mjs} +4 -4
- package/dist/{renderer-BZmmekE8.mjs.map → renderer-BDZC3o3N.mjs.map} +1 -1
- package/dist/renderer-BIF3Dg3Z.mjs +5 -0
- package/dist/{renderer-C06U4c9k.mjs → renderer-BJ-7WRgO.mjs} +3 -3
- package/dist/{renderer-C06U4c9k.mjs.map → renderer-BJ-7WRgO.mjs.map} +1 -1
- package/dist/renderer-BJUVaIAT.mjs +5 -0
- package/dist/renderer-BKRDMbI-.mjs +5 -0
- package/dist/{renderer-HnSiwSW8.mjs → renderer-BNHcwxw9.mjs} +4 -4
- package/dist/{renderer-HnSiwSW8.mjs.map → renderer-BNHcwxw9.mjs.map} +1 -1
- package/dist/{renderer-B78W9uad.mjs → renderer-BNJ6Jk7-.mjs} +4 -4
- package/dist/{renderer-B78W9uad.mjs.map → renderer-BNJ6Jk7-.mjs.map} +1 -1
- package/dist/{renderer-BVql26Ay.mjs → renderer-BOrMBwQS.mjs} +2 -2
- package/dist/{renderer-BVql26Ay.mjs.map → renderer-BOrMBwQS.mjs.map} +1 -1
- package/dist/{renderer-Cl8r1LJe.mjs → renderer-BQetXCcZ.mjs} +4 -4
- package/dist/{renderer-Cl8r1LJe.mjs.map → renderer-BQetXCcZ.mjs.map} +1 -1
- package/dist/{renderer-C4yKI8MT.mjs → renderer-BSELd5vU.mjs} +3 -3
- package/dist/{renderer-C4yKI8MT.mjs.map → renderer-BSELd5vU.mjs.map} +1 -1
- package/dist/renderer-BSwhyVWa.mjs +5 -0
- package/dist/{renderer-CcJyD9Q5.mjs → renderer-BURhYcpA.mjs} +4 -4
- package/dist/{renderer-CcJyD9Q5.mjs.map → renderer-BURhYcpA.mjs.map} +1 -1
- package/dist/renderer-BUqSZn2X.mjs +5 -0
- package/dist/{renderer-DoPEPlbG.d.mts → renderer-BVKOQarx.d.mts} +3 -3
- package/dist/{renderer-DoPEPlbG.d.mts.map → renderer-BVKOQarx.d.mts.map} +1 -1
- package/dist/{renderer-CwVbHki6.mjs → renderer-BaIJIfJ6.mjs} +5 -5
- package/dist/{renderer-CwVbHki6.mjs.map → renderer-BaIJIfJ6.mjs.map} +1 -1
- package/dist/renderer-BbmvjqK9.mjs +3 -0
- package/dist/{renderer-Be5hfwSd.mjs → renderer-Bbxh4N8Y.mjs} +425 -115
- package/dist/renderer-Bbxh4N8Y.mjs.map +1 -0
- package/dist/{renderer-BG6bkKtY.mjs → renderer-Bf4-N7k7.mjs} +5 -5
- package/dist/{renderer-BG6bkKtY.mjs.map → renderer-Bf4-N7k7.mjs.map} +1 -1
- package/dist/{renderer-CpedZNEG.mjs → renderer-BhsrlGKp.mjs} +3 -3
- package/dist/{renderer-CpedZNEG.mjs.map → renderer-BhsrlGKp.mjs.map} +1 -1
- package/dist/{renderer-AUK_ZS3p.mjs → renderer-Bo7shNdU.mjs} +4 -4
- package/dist/{renderer-AUK_ZS3p.mjs.map → renderer-Bo7shNdU.mjs.map} +1 -1
- package/dist/renderer-Bpe4k_x6.mjs +5 -0
- package/dist/{renderer-BfbSvElt.mjs → renderer-BwrfKKqw.mjs} +4 -4
- package/dist/{renderer-BfbSvElt.mjs.map → renderer-BwrfKKqw.mjs.map} +1 -1
- package/dist/{renderer-CWLF6cAz.mjs → renderer-Bx14Wnxl.mjs} +3 -3
- package/dist/{renderer-CWLF6cAz.mjs.map → renderer-Bx14Wnxl.mjs.map} +1 -1
- package/dist/{renderer-CCFHnafT.mjs → renderer-Bxjb0HYU.mjs} +4 -4
- package/dist/{renderer-CCFHnafT.mjs.map → renderer-Bxjb0HYU.mjs.map} +1 -1
- package/dist/{renderer-5qJPGvVL.mjs → renderer-ByjaseAo.mjs} +5 -5
- package/dist/{renderer-5qJPGvVL.mjs.map → renderer-ByjaseAo.mjs.map} +1 -1
- package/dist/renderer-C1NjG0CJ.mjs +5 -0
- package/dist/renderer-C7Puyst9.mjs +5 -0
- package/dist/{renderer-CYX9vKZ-.mjs → renderer-C9BSXyrq.mjs} +4 -4
- package/dist/{renderer-CYX9vKZ-.mjs.map → renderer-C9BSXyrq.mjs.map} +1 -1
- package/dist/{renderer-CUBDxuxh.mjs → renderer-CAWnCsQc.mjs} +5 -5
- package/dist/{renderer-CUBDxuxh.mjs.map → renderer-CAWnCsQc.mjs.map} +1 -1
- package/dist/renderer-CGA_7320.mjs +5 -0
- package/dist/{renderer-CEfVvcw-.mjs → renderer-CLAvn9c6.mjs} +4 -4
- package/dist/{renderer-CEfVvcw-.mjs.map → renderer-CLAvn9c6.mjs.map} +1 -1
- package/dist/renderer-CLnFkXO7.mjs +5 -0
- package/dist/renderer-CMQIT1Kh.mjs +5 -0
- package/dist/{renderer-BYqrtBvd.mjs → renderer-COcKhouz.mjs} +5 -5
- package/dist/{renderer-BYqrtBvd.mjs.map → renderer-COcKhouz.mjs.map} +1 -1
- package/dist/renderer-CQ1rwjIh.mjs +5 -0
- package/dist/{renderer-US4GsamT.mjs → renderer-CR0mDPYY.mjs} +3 -3
- package/dist/renderer-CT8h0boY.mjs +5 -0
- package/dist/{renderer-VhkubIx_.mjs → renderer-CU8v-LxD.mjs} +5 -5
- package/dist/{renderer-VhkubIx_.mjs.map → renderer-CU8v-LxD.mjs.map} +1 -1
- package/dist/renderer-Cb0lszt3.mjs +5 -0
- package/dist/renderer-Ci7oLye9.mjs +5 -0
- package/dist/renderer-CjqXB3CZ.mjs +5 -0
- package/dist/{renderer-DIEmK57T.mjs → renderer-Co6UFbZB.mjs} +5 -5
- package/dist/{renderer-DIEmK57T.mjs.map → renderer-Co6UFbZB.mjs.map} +1 -1
- package/dist/renderer-CqTV04zQ.mjs +5 -0
- package/dist/{renderer-xDV2cCkX.mjs → renderer-CrR8Mpxq.mjs} +5 -5
- package/dist/{renderer-xDV2cCkX.mjs.map → renderer-CrR8Mpxq.mjs.map} +1 -1
- package/dist/renderer-CtWeRtHK.mjs +5 -0
- package/dist/{renderer-BRWjLiHX.mjs → renderer-CxGx1Lhi.mjs} +3 -3
- package/dist/{renderer-BRWjLiHX.mjs.map → renderer-CxGx1Lhi.mjs.map} +1 -1
- package/dist/{renderer-BQOeeXTr.mjs → renderer-Cz-n883J.mjs} +5 -5
- package/dist/{renderer-BQOeeXTr.mjs.map → renderer-Cz-n883J.mjs.map} +1 -1
- package/dist/renderer-CzolnwCo.mjs +5 -0
- package/dist/{renderer-sPI7aY6c.mjs → renderer-D-QVGphn.mjs} +4 -4
- package/dist/{renderer-sPI7aY6c.mjs.map → renderer-D-QVGphn.mjs.map} +1 -1
- package/dist/{renderer-C3tVrzyT.mjs → renderer-D06HxSXO.mjs} +3 -3
- package/dist/{renderer-CXLugAe8.mjs → renderer-D0aAZHC7.mjs} +4 -4
- package/dist/{renderer-CXLugAe8.mjs.map → renderer-D0aAZHC7.mjs.map} +1 -1
- package/dist/{renderer-mLlgfM7X.mjs → renderer-D4f8f66C.mjs} +4 -4
- package/dist/{renderer-mLlgfM7X.mjs.map → renderer-D4f8f66C.mjs.map} +1 -1
- package/dist/renderer-D6qhcx_C.mjs +5 -0
- package/dist/{renderer-C7MAqpIS.mjs → renderer-DAn9xiQT.mjs} +4 -4
- package/dist/{renderer-C7MAqpIS.mjs.map → renderer-DAn9xiQT.mjs.map} +1 -1
- package/dist/renderer-DDfEf0jt.mjs +5 -0
- package/dist/renderer-DDpa8ztp.mjs +5 -0
- package/dist/{renderer-DW7hbluw.mjs → renderer-DE9Jik9K.mjs} +3 -3
- package/dist/{renderer-DW7hbluw.mjs.map → renderer-DE9Jik9K.mjs.map} +1 -1
- package/dist/{renderer-C6st34I6.mjs → renderer-DFJWPqOJ.mjs} +3 -3
- package/dist/{renderer-C6st34I6.mjs.map → renderer-DFJWPqOJ.mjs.map} +1 -1
- package/dist/{renderer-D2TTDcgh.mjs → renderer-DLPhfwbR.mjs} +3 -3
- package/dist/{renderer-D2TTDcgh.mjs.map → renderer-DLPhfwbR.mjs.map} +1 -1
- package/dist/{renderer-D1VsqFf4.mjs → renderer-DOkbn1ot.mjs} +5 -5
- package/dist/{renderer-D1VsqFf4.mjs.map → renderer-DOkbn1ot.mjs.map} +1 -1
- package/dist/{renderer-BWMzjSgf.mjs → renderer-DaXQgGg3.mjs} +5 -5
- package/dist/{renderer-BWMzjSgf.mjs.map → renderer-DaXQgGg3.mjs.map} +1 -1
- package/dist/renderer-DbQBqzmx.mjs +5 -0
- package/dist/{renderer-DrWeb39d.mjs → renderer-DcvjSolU.mjs} +1 -1
- package/dist/{renderer-DrWeb39d.mjs.map → renderer-DcvjSolU.mjs.map} +1 -1
- package/dist/renderer-DfUcwMKa.mjs +5 -0
- package/dist/renderer-DgIjNANM.mjs +6 -0
- package/dist/{renderer-DOKHd37M.mjs → renderer-DgPn_SOC.mjs} +4 -4
- package/dist/{renderer-DOKHd37M.mjs.map → renderer-DgPn_SOC.mjs.map} +1 -1
- package/dist/{renderer-BgDLCCuq.mjs → renderer-DkqZmfm8.mjs} +5 -5
- package/dist/{renderer-BgDLCCuq.mjs.map → renderer-DkqZmfm8.mjs.map} +1 -1
- package/dist/{renderer-q4zMFfnY.mjs → renderer-Dpl6poqD.mjs} +2 -2
- package/dist/{renderer-q4zMFfnY.mjs.map → renderer-Dpl6poqD.mjs.map} +1 -1
- package/dist/renderer-Dsh6Tgu0.mjs +3 -0
- package/dist/renderer-DuIwR9GT.mjs +5 -0
- package/dist/renderer-Dv4u2c14.mjs +5 -0
- package/dist/{renderer-BJKzZwyn.mjs → renderer-DwK9jsER.mjs} +4 -4
- package/dist/{renderer-BJKzZwyn.mjs.map → renderer-DwK9jsER.mjs.map} +1 -1
- package/dist/{renderer-mQt-y49D.mjs → renderer-HDj9Zb-O.mjs} +5 -5
- package/dist/{renderer-mQt-y49D.mjs.map → renderer-HDj9Zb-O.mjs.map} +1 -1
- package/dist/renderer-IE1yu3lZ.mjs +5 -0
- package/dist/{renderer-B7kOF_Az.mjs → renderer-JHByuUNb.mjs} +3 -3
- package/dist/{renderer-B7kOF_Az.mjs.map → renderer-JHByuUNb.mjs.map} +1 -1
- package/dist/{renderer-B3IRvukr.mjs → renderer-KKk7myX1.mjs} +5 -5
- package/dist/{renderer-B3IRvukr.mjs.map → renderer-KKk7myX1.mjs.map} +1 -1
- package/dist/renderer-PY_wnEN0.mjs +5 -0
- package/dist/{renderer-BcO7LUla.mjs → renderer-Ros7XQg2.mjs} +3 -3
- package/dist/{renderer-BcO7LUla.mjs.map → renderer-Ros7XQg2.mjs.map} +1 -1
- package/dist/{renderer-bbaMOD4I.mjs → renderer-RvI3qRUI.mjs} +5 -5
- package/dist/{renderer-bbaMOD4I.mjs.map → renderer-RvI3qRUI.mjs.map} +1 -1
- package/dist/{renderer-CPTXJs0n.mjs → renderer-Rw87u1Cr.mjs} +6 -6
- package/dist/{renderer-CPTXJs0n.mjs.map → renderer-Rw87u1Cr.mjs.map} +1 -1
- package/dist/{renderer-Du-GnKLb.mjs → renderer-TKZCA0B9.mjs} +9 -9
- package/dist/{renderer-Du-GnKLb.mjs.map → renderer-TKZCA0B9.mjs.map} +1 -1
- package/dist/{renderer-C_2UDMEG.mjs → renderer-V4dhrf_h.mjs} +6 -6
- package/dist/{renderer-C_2UDMEG.mjs.map → renderer-V4dhrf_h.mjs.map} +1 -1
- package/dist/{renderer-eT7Gp7FS.mjs → renderer-_9gbYS-3.mjs} +5 -5
- package/dist/{renderer-eT7Gp7FS.mjs.map → renderer-_9gbYS-3.mjs.map} +1 -1
- package/dist/{renderer-IQ97z2rw.mjs → renderer-celhuAL7.mjs} +3 -3
- package/dist/{renderer-IQ97z2rw.mjs.map → renderer-celhuAL7.mjs.map} +1 -1
- package/dist/{renderer-DIqkhsLI.mjs → renderer-eMCTAa9e.mjs} +4 -4
- package/dist/{renderer-DIqkhsLI.mjs.map → renderer-eMCTAa9e.mjs.map} +1 -1
- package/dist/{renderer-B6TjJi1g.mjs → renderer-fs8f1QeE.mjs} +5 -5
- package/dist/{renderer-B6TjJi1g.mjs.map → renderer-fs8f1QeE.mjs.map} +1 -1
- package/dist/{renderer-BJQt0RiZ.mjs → renderer-fwKnV9zs.mjs} +5 -5
- package/dist/{renderer-BJQt0RiZ.mjs.map → renderer-fwKnV9zs.mjs.map} +1 -1
- package/dist/{renderer-F1D9ZJ8I.mjs → renderer-g_1t2je9.mjs} +3 -3
- package/dist/renderer-gv24VyzO.mjs +5 -0
- package/dist/{renderer-C3Iev6zu.mjs → renderer-h62QaJYz.mjs} +4 -4
- package/dist/{renderer-C3Iev6zu.mjs.map → renderer-h62QaJYz.mjs.map} +1 -1
- package/dist/{renderer-BNbMi9CI.mjs → renderer-jnAIhWn_.mjs} +5 -5
- package/dist/{renderer-BNbMi9CI.mjs.map → renderer-jnAIhWn_.mjs.map} +1 -1
- package/dist/{renderer-CyCtm0UV.mjs → renderer-lHNTgiOM.mjs} +3 -3
- package/dist/{renderer-CyCtm0UV.mjs.map → renderer-lHNTgiOM.mjs.map} +1 -1
- package/dist/renderer-nN6lPZf9.mjs +5 -0
- package/dist/{renderer-Dat8opUZ.mjs → renderer-o68mVeyk.mjs} +4 -4
- package/dist/{renderer-Dat8opUZ.mjs.map → renderer-o68mVeyk.mjs.map} +1 -1
- package/dist/{renderer-Dss7T71q.mjs → renderer-pNmI-A9o.mjs} +5 -5
- package/dist/{renderer-Dss7T71q.mjs.map → renderer-pNmI-A9o.mjs.map} +1 -1
- package/dist/{renderer-CbhnJi_8.mjs → renderer-q7q6k_cD.mjs} +4 -4
- package/dist/{renderer-CbhnJi_8.mjs.map → renderer-q7q6k_cD.mjs.map} +1 -1
- package/dist/{renderer-OsQRvOle.mjs → renderer-riIFosX6.mjs} +5 -5
- package/dist/{renderer-OsQRvOle.mjs.map → renderer-riIFosX6.mjs.map} +1 -1
- package/dist/{renderer-BMP_lYMk.mjs → renderer-sfqZK6L5.mjs} +4 -4
- package/dist/{renderer-BMP_lYMk.mjs.map → renderer-sfqZK6L5.mjs.map} +1 -1
- package/dist/{renderer-DEQeONTd.mjs → renderer-ynFRJh7G.mjs} +3 -3
- package/dist/{renderers-CP8CFWDs-BH1gUTYa.mjs → renderers-CP8CFWDs-DRoslK4F.mjs} +4 -4
- package/dist/{renderers-CP8CFWDs-BH1gUTYa.mjs.map → renderers-CP8CFWDs-DRoslK4F.mjs.map} +1 -1
- package/dist/sam/index.d.mts +3 -3
- package/dist/sam/index.mjs +1 -1
- package/dist/signals/index.d.mts +8 -8
- package/dist/signals/index.mjs +8 -8
- package/dist/{signals-gOd0Ui9B.mjs → signals-BfJ1aqpT.mjs} +4 -4
- package/dist/{signals-gOd0Ui9B.mjs.map → signals-BfJ1aqpT.mjs.map} +1 -1
- package/dist/{src-BU1VOWSk.mjs → src-BYp6r-cS.mjs} +11 -11
- package/dist/{src-BU1VOWSk.mjs.map → src-BYp6r-cS.mjs.map} +1 -1
- package/dist/{src-Bnr8DUC--DzkRGA62.mjs → src-Bnr8DUC--BRDqRF6I.mjs} +3 -3
- package/dist/{src-Bnr8DUC--DzkRGA62.mjs.map → src-Bnr8DUC--BRDqRF6I.mjs.map} +1 -1
- package/package.json +65 -59
- package/dist/audio-B6RmYOPe.mjs.map +0 -1
- package/dist/audio-D6tBMbHh.d.mts +0 -38
- package/dist/audio-D6tBMbHh.d.mts.map +0 -1
- package/dist/dist-D12-a3-x.mjs.map +0 -1
- package/dist/index-B9Lm1x8i.d.mts.map +0 -1
- package/dist/index-Bzo1uj8h.d.mts.map +0 -1
- package/dist/index-V0ZQ4JN6.d.mts.map +0 -1
- package/dist/preview-engine/chunk-S2ABWY5G.mjs +0 -1
- package/dist/preview-engine/renderers-3BOQOUEU.mjs +0 -1
- package/dist/preview-engine/renderers-3M2FESR2.mjs +0 -1
- package/dist/preview-engine/renderers-5XRKZHVT.mjs +0 -1
- package/dist/preview-engine/renderers-6LHIWKMZ.mjs +0 -1
- package/dist/preview-engine/renderers-A43VCJ7X.mjs +0 -1
- package/dist/preview-engine/renderers-AKY464RY.mjs +0 -1
- package/dist/preview-engine/renderers-C5UO6PL5.mjs +0 -1
- package/dist/preview-engine/renderers-C64QSZO4.mjs +0 -1
- package/dist/preview-engine/renderers-CIRCR6NG.mjs +0 -1
- package/dist/preview-engine/renderers-CIWOPETY.mjs +0 -1
- package/dist/preview-engine/renderers-CZEZCELP.mjs +0 -1
- package/dist/preview-engine/renderers-FSQMWHQM.mjs +0 -1
- package/dist/preview-engine/renderers-FZEW5C23.mjs +0 -1
- package/dist/preview-engine/renderers-HCET2IML.mjs +0 -1
- package/dist/preview-engine/renderers-IUOOC6K7.mjs +0 -1
- package/dist/preview-engine/renderers-KYYJLVIJ.mjs +0 -1
- package/dist/preview-engine/renderers-L4GE7WV3.mjs +0 -1
- package/dist/preview-engine/renderers-LRAFWKCO.mjs +0 -1
- package/dist/preview-engine/renderers-LU3XZWEB.mjs +0 -1
- package/dist/preview-engine/renderers-ND2WV4K3.mjs +0 -1
- package/dist/preview-engine/renderers-NJ5CWVVH.mjs +0 -1
- package/dist/preview-engine/renderers-NKXYPR3V.mjs +0 -1
- package/dist/preview-engine/renderers-NWR66CGK.mjs +0 -1
- package/dist/preview-engine/renderers-O22WTBRM.mjs +0 -1
- package/dist/preview-engine/renderers-PBBA7LQB.mjs +0 -1
- package/dist/preview-engine/renderers-Q6LJRZ7R.mjs +0 -1
- package/dist/preview-engine/renderers-RMEACSRL.mjs +0 -1
- package/dist/preview-engine/renderers-SP42LCSI.mjs +0 -1
- package/dist/preview-engine/renderers-T7SZA3BX.mjs +0 -1
- package/dist/preview-engine/renderers-VADTDAHD.mjs +0 -1
- package/dist/preview-engine/renderers-VNNWI5C3.mjs +0 -1
- package/dist/preview-engine/renderers-WZ75MLP3.mjs +0 -1
- package/dist/preview-engine/renderers-XB5R4UQA.mjs +0 -1
- package/dist/preview-engine/renderers-YBIUZDGQ.mjs +0 -1
- package/dist/preview-engine/renderers-YESJR4O7.mjs +0 -1
- package/dist/preview-engine/renderers-YKSRZRRT.mjs +0 -1
- package/dist/renderer-129U3pc9.mjs +0 -5
- package/dist/renderer-2phFTFxQ.mjs +0 -5
- package/dist/renderer-9muKpDeE.mjs +0 -5
- package/dist/renderer-B5Dhv6j9.mjs +0 -5
- package/dist/renderer-BBUgCS3C.mjs +0 -5
- package/dist/renderer-BKXM28Mx.mjs +0 -5
- package/dist/renderer-BKqm6xdf.mjs +0 -5
- package/dist/renderer-BMfMMf0R.mjs +0 -5
- package/dist/renderer-BPsjEnnl.mjs +0 -5
- package/dist/renderer-Be5hfwSd.mjs.map +0 -1
- package/dist/renderer-Bofr6f88.mjs +0 -6
- package/dist/renderer-BqoGcujR.mjs +0 -5
- package/dist/renderer-BvuBt2aH.mjs +0 -5
- package/dist/renderer-BxTgXHu1.mjs +0 -5
- package/dist/renderer-Bz2Rrz60.mjs +0 -5
- package/dist/renderer-CBjG8rjE.mjs +0 -5
- package/dist/renderer-CS2zyPyZ.mjs +0 -5
- package/dist/renderer-CXnbl_jR.mjs +0 -5
- package/dist/renderer-CaF9vod_.mjs +0 -5
- package/dist/renderer-CbSBH3lp.mjs +0 -5
- package/dist/renderer-CdjuGRbO.mjs +0 -5
- package/dist/renderer-CoLbxC13.mjs +0 -5
- package/dist/renderer-Cr9G0dXB.mjs +0 -5
- package/dist/renderer-D63l6_UC.mjs +0 -5
- package/dist/renderer-DCJqnzER.mjs +0 -5
- package/dist/renderer-DFBOR5J3.mjs +0 -5
- package/dist/renderer-DGAZSzw6.mjs +0 -5
- package/dist/renderer-DPLGk1Qk.mjs +0 -5
- package/dist/renderer-DTCUzByS.mjs +0 -5
- package/dist/renderer-DdGahYi1.mjs +0 -5
- package/dist/renderer-DhL4nNPk.mjs +0 -5
- package/dist/renderer-DkyTbiVz.mjs +0 -3
- package/dist/renderer-DnAZweRX.mjs +0 -5
- package/dist/renderer-DpisVnT2.mjs +0 -5
- package/dist/renderer-Ds7pAKnE.mjs +0 -3
- package/dist/renderer-DxZD5B54.mjs +0 -5
- package/dist/renderer-PMHOnbnA.mjs +0 -5
- package/dist/renderer-STufNpMx.mjs +0 -5
- package/dist/renderer-SdrgfCxH.mjs +0 -5
- /package/dist/{chunk-D8S17ehY.mjs → chunk-W71TSjRM.mjs} +0 -0
- /package/dist/{renderer-Cputd36d.mjs → renderer-B6rZUBwE.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as ia,u as yo,x as aa,z as iA}from"./chunk-FKG27DVO.mjs";import{c as Xi}from"./chunk-CJ4CSVU3.mjs";import{a as Ji,c as Ki,i as zi,j as Yi}from"./chunk-HOV6DDBZ.mjs";import{h as Wi,l as qi}from"./chunk-RECQ74RP.mjs";import{d as ta}from"./chunk-VVY4PG5E.mjs";import{h as Vi}from"./chunk-ULOFDFHJ.mjs";import{A as Aa,j as fr,w as ra,x as na,y as We,z as oa}from"./chunk-BJXNKMSY.mjs";import{r as Re,s as ea,t as Pt}from"./chunk-QEWDIPJ7.mjs";import{a as Wr}from"./chunk-354GX6IB.mjs";import{c as Zi,e as $i}from"./chunk-5RRKGN2U.mjs";import{o as $e}from"./chunk-BDZ3TSOT.mjs";import{b as Wn,d as AA,e as ji,f as me,g as $}from"./chunk-Y4NIR77Z.mjs";var ha=Wn((qu,da)=>{$();var xo=()=>new Proxy(function(){},{get:(e,t)=>t==="__esModule"?!0:t===Symbol.toPrimitive?()=>"":xo(),apply:()=>xo(),construct:()=>xo()});da.exports=xo()});var xa=Wn((gA,_o)=>{$();var L=L||{};L.scope={};L.ASSUME_ES2020=!1;L.ASSUME_ES6=L.ASSUME_ES2020;L.ASSUME_ES5=L.ASSUME_ES6;L.ASSUME_NO_NATIVE_MAP=!1;L.ASSUME_NO_NATIVE_SET=!1;L.ISOLATE_POLYFILLS=!1;L.FORCE_POLYFILL_PROMISE=!1;L.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;L.INSTRUMENT_ASYNC_CONTEXT=!0;L.objectCreate=L.ASSUME_ES5||typeof Object.create=="function"?Object.create:function(e){var t=function(){};return t.prototype=e,new t};L.defineProperty=L.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e};L.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof globalThis=="object"&&globalThis];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")};L.global=L.ASSUME_ES2020?globalThis:L.getGlobal(gA);L.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol";L.TRUST_ES6_POLYFILLS=!L.ISOLATE_POLYFILLS||L.IS_SYMBOL_NATIVE;L.polyfills={};L.propertyToPolyfillSymbol={};L.POLYFILL_PREFIX="$jscp$";L.TYPED_ARRAY_CLASSES=(function(){var e="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");return L.global.BigInt64Array&&(e.push("BigInt64"),e.push("BigUint64")),e})();L.polyfillTypedArrayMethod=function(e,t,r,n){if(t)for(var o=0;o<L.TYPED_ARRAY_CLASSES.length;o++){var A=L.TYPED_ARRAY_CLASSES[o]+"Array.prototype."+e;L.ISOLATE_POLYFILLS?L.polyfillIsolated(A,t,r,n):L.polyfillUnisolated(A,t,r,n)}};L.polyfill=function(e,t,r,n){t&&(L.ISOLATE_POLYFILLS?L.polyfillIsolated(e,t,r,n):L.polyfillUnisolated(e,t,r,n))};L.polyfillUnisolated=function(e,t,r,n){for(r=L.global,e=e.split("."),n=0;n<e.length-1;n++){var o=e[n];if(!(o in r))return;r=r[o]}e=e[e.length-1],n=r[e],t=t(n),t!=n&&t!=null&&L.defineProperty(r,e,{configurable:!0,writable:!0,value:t})};L.polyfillIsolated=function(e,t,r,n){var o=e.split(".");e=o.length===1,n=o[0],n=!e&&n in L.polyfills?L.polyfills:L.global;for(var A=0;A<o.length-1;A++){var i=o[A];if(!(i in n))return;n=n[i]}o=o[o.length-1],r=L.IS_SYMBOL_NATIVE&&r==="es6"?n[o]:null,t=t(r),t!=null&&(e?L.defineProperty(L.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==r&&(L.propertyToPolyfillSymbol[o]===void 0&&(r=Math.random()*1e9>>>0,L.propertyToPolyfillSymbol[o]=L.IS_SYMBOL_NATIVE?L.global.Symbol(o):L.POLYFILL_PREFIX+r+"$"+o),L.defineProperty(n,L.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))};L.getConstructImplementation=function(){function e(){function r(){}return new r,Reflect.construct(r,[],function(){}),new r instanceof r}if(L.TRUST_ES6_POLYFILLS&&typeof Reflect<"u"&&Reflect.construct){if(e())return Reflect.construct;var t=Reflect.construct;return function(r,n,o){return r=t(r,n),o&&Reflect.setPrototypeOf(r,o.prototype),r}}return function(r,n,o){return o===void 0&&(o=r),o=L.objectCreate(o.prototype||Object.prototype),Function.prototype.apply.call(r,o,n)||o}};L.construct={valueOf:L.getConstructImplementation}.valueOf();L.underscoreProtoCanBeSet=function(){var e={a:!0},t={};try{return t.__proto__=e,t.a}catch{}return!1};L.setPrototypeOf=L.ASSUME_ES6||L.TRUST_ES6_POLYFILLS&&typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf:L.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null;L.inherits=function(e,t){if(e.prototype=L.objectCreate(t.prototype),e.prototype.constructor=e,L.ASSUME_ES6||L.setPrototypeOf){var r=L.setPrototypeOf;r(e,t)}else for(r in t)if(r!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.superClass_=t.prototype};L.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}};L.arrayIterator=function(e){return{next:L.arrayIteratorImpl(e)}};L.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return L.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")};L.arrayFromIterator=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r};L.arrayFromIterable=function(e){return e instanceof Array?e:L.arrayFromIterator(L.makeIterator(e))};L.createTemplateTagFirstArg=function(e){return L.createTemplateTagFirstArgWithRaw(e,e)};L.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,Object.freeze&&(Object.freeze(e),Object.freeze(t)),e};L.generator={};L.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object")};L.generator.Context=function(){this.isRunning_=!1,this.yieldAllIterator_=null,this.yieldResult=void 0,this.nextAddress=1,this.finallyAddress_=this.catchAddress_=0,this.finallyContexts_=this.abruptCompletion_=null};L.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};L.generator.Context.prototype.stop_=function(){this.isRunning_=!1};L.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};L.generator.Context.prototype.next_=function(e){this.yieldResult=e};L.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0},this.jumpToErrorHandler_()};L.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};L.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};L.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};L.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};L.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e},this.nextAddress=this.finallyAddress_};L.generator.Context.prototype.return=L.generator.Context.prototype.return;L.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e},this.nextAddress=this.finallyAddress_};L.generator.Context.prototype.jumpThroughFinallyBlocks=L.generator.Context.prototype.jumpThroughFinallyBlocks;L.generator.Context.prototype.yield=function(e,t){return this.nextAddress=t,{value:e}};L.generator.Context.prototype.yield=L.generator.Context.prototype.yield;L.generator.Context.prototype.yieldAll=function(e,t){e=L.makeIterator(e);var r=e.next();if(L.generator.ensureIteratorResultIsObject_(r),r.done)this.yieldResult=r.value,this.nextAddress=t;else return this.yieldAllIterator_=e,this.yield(r.value,t)};L.generator.Context.prototype.yieldAll=L.generator.Context.prototype.yieldAll;L.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e};L.generator.Context.prototype.jumpTo=L.generator.Context.prototype.jumpTo;L.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};L.generator.Context.prototype.jumpToEnd=L.generator.Context.prototype.jumpToEnd;L.generator.Context.prototype.setCatchFinallyBlocks=function(e,t){this.catchAddress_=e,t!=null&&(this.finallyAddress_=t)};L.generator.Context.prototype.setCatchFinallyBlocks=L.generator.Context.prototype.setCatchFinallyBlocks;L.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0,this.finallyAddress_=e||0};L.generator.Context.prototype.setFinallyBlock=L.generator.Context.prototype.setFinallyBlock;L.generator.Context.prototype.leaveTryBlock=function(e,t){this.nextAddress=e,this.catchAddress_=t||0};L.generator.Context.prototype.leaveTryBlock=L.generator.Context.prototype.leaveTryBlock;L.generator.Context.prototype.enterCatchBlock=function(e){return this.catchAddress_=e||0,e=this.abruptCompletion_.exception,this.abruptCompletion_=null,e};L.generator.Context.prototype.enterCatchBlock=L.generator.Context.prototype.enterCatchBlock;L.generator.Context.prototype.enterFinallyBlock=function(e,t,r){r?this.finallyContexts_[r]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_],this.catchAddress_=e||0,this.finallyAddress_=t||0};L.generator.Context.prototype.enterFinallyBlock=L.generator.Context.prototype.enterFinallyBlock;L.generator.Context.prototype.leaveFinallyBlock=function(e,t){if(t=this.finallyContexts_.splice(t||0)[0],t=this.abruptCompletion_=this.abruptCompletion_||t){if(t.isException)return this.jumpToErrorHandler_();t.jumpTo!=null&&this.finallyAddress_<t.jumpTo?(this.nextAddress=t.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e};L.generator.Context.prototype.leaveFinallyBlock=L.generator.Context.prototype.leaveFinallyBlock;L.generator.Context.prototype.forIn=function(e){return new L.generator.Context.PropertyIterator(e)};L.generator.Context.prototype.forIn=L.generator.Context.prototype.forIn;L.generator.Context.PropertyIterator=function(e){this.object_=e,this.properties_=[];for(var t in e)this.properties_.push(t);this.properties_.reverse()};L.generator.Context.PropertyIterator.prototype.getNext=function(){for(;this.properties_.length>0;){var e=this.properties_.pop();if(e in this.object_)return e}return null};L.generator.Context.PropertyIterator.prototype.getNext=L.generator.Context.PropertyIterator.prototype.getNext;L.generator.Engine_=function(e){this.context_=new L.generator.Context,this.program_=e};L.generator.Engine_.prototype.next_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_):(this.context_.next_(e),this.nextStep_())};L.generator.Engine_.prototype.return_=function(e){this.context_.start_();var t=this.context_.yieldAllIterator_;return t?this.yieldAllStep_("return"in t?t.return:function(r){return{value:r,done:!0}},e,this.context_.return):(this.context_.return(e),this.nextStep_())};L.generator.Engine_.prototype.throw_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.throw,e,this.context_.next_):(this.context_.throw_(e),this.nextStep_())};L.generator.Engine_.prototype.yieldAllStep_=function(e,t,r){try{var n=e.call(this.context_.yieldAllIterator_,t);if(L.generator.ensureIteratorResultIsObject_(n),!n.done)return this.context_.stop_(),n;var o=n.value}catch(A){return this.context_.yieldAllIterator_=null,this.context_.throw_(A),this.nextStep_()}return this.context_.yieldAllIterator_=null,r.call(this.context_,o),this.nextStep_()};L.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(t){this.context_.yieldResult=void 0,this.context_.throw_(t)}if(this.context_.stop_(),this.context_.abruptCompletion_){if(e=this.context_.abruptCompletion_,this.context_.abruptCompletion_=null,e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};L.generator.Generator_=function(e){this.next=function(t){return e.next_(t)},this.throw=function(t){return e.throw_(t)},this.return=function(t){return e.return_(t)},this[Symbol.iterator]=function(){return this}};L.generator.createGenerator=function(e,t){return t=new L.generator.Generator_(new L.generator.Engine_(t)),L.setPrototypeOf&&e.prototype&&L.setPrototypeOf(t,e.prototype),t};L.asyncExecutePromiseGenerator=function(e){function t(n){return e.next(n)}function r(n){return e.throw(n)}return new Promise(function(n,o){function A(i){i.done?n(i.value):Promise.resolve(i.value).then(t,r).then(A,o)}A(e.next())})};L.asyncExecutePromiseGeneratorFunction=function(e){return L.asyncExecutePromiseGenerator(e())};L.asyncExecutePromiseGeneratorProgram=function(e){return L.asyncExecutePromiseGenerator(new L.generator.Generator_(new L.generator.Engine_(e)))};L.polyfill("globalThis",function(e){return e||L.global},"es_2020","es3");L.polyfill("Reflect",function(e){return e||{}},"es6","es3");L.polyfill("Reflect.construct",function(e){return L.construct},"es6","es3");L.polyfill("Reflect.setPrototypeOf",function(e){if(e)return e;if(L.setPrototypeOf){var t=L.setPrototypeOf;return function(r,n){try{return t(r,n),!0}catch{return!1}}}return null},"es6","es5");L.initSymbol=function(){};L.polyfill("Symbol",function(e){if(e)return e;var t=function(A,i){this.$jscomp$symbol$id_=A,L.defineProperty(this,"description",{configurable:!0,writable:!0,value:i})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(Math.random()*1e9>>>0)+"_",n=0,o=function(A){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(A||"")+"_"+n++,A)};return o},"es6","es3");L.polyfill("Symbol.iterator",function(e){return e||(e=Symbol("Symbol.iterator"),L.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return L.iteratorPrototype(L.arrayIteratorImpl(this))}}),e)},"es6","es3");L.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e};L.polyfill("Promise",function(e){function t(){this.batch_=null}function r(i){return i instanceof o?i:new o(function(a,s){a(i)})}if(e&&(!(L.FORCE_POLYFILL_PROMISE||L.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof L.global.PromiseRejectionEvent>"u")||!L.global.Promise||L.global.Promise.toString().indexOf("[native code]")===-1))return e;t.prototype.asyncExecute=function(i){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(i)};var n=L.global.setTimeout;t.prototype.asyncExecuteFunction=function(i){n(i,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var i=this.batch_;this.batch_=[];for(var a=0;a<i.length;++a){var s=i[a];i[a]=null;try{s()}catch(c){this.asyncThrow_(c)}}}this.batch_=null},t.prototype.asyncThrow_=function(i){this.asyncExecuteFunction(function(){throw i})};var o=function(i){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{i(a.resolve,a.reject)}catch(s){a.reject(s)}};o.prototype.createResolveAndReject_=function(){function i(c){return function(l){s||(s=!0,c.call(a,l))}}var a=this,s=!1;return{resolve:i(this.resolveTo_),reject:i(this.reject_)}},o.prototype.resolveTo_=function(i){if(i===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(i instanceof o)this.settleSameAsPromise_(i);else{e:switch(typeof i){case"object":var a=i!=null;break e;case"function":a=!0;break e;default:a=!1}a?this.resolveToNonPromiseObj_(i):this.fulfill_(i)}},o.prototype.resolveToNonPromiseObj_=function(i){var a=void 0;try{a=i.then}catch(s){this.reject_(s);return}typeof a=="function"?this.settleSameAsThenable_(a,i):this.fulfill_(i)},o.prototype.reject_=function(i){this.settle_(2,i)},o.prototype.fulfill_=function(i){this.settle_(1,i)},o.prototype.settle_=function(i,a){if(this.state_!=0)throw Error("Cannot settle("+i+", "+a+"): Promise already settled in state"+this.state_);this.state_=i,this.result_=a,this.state_===2&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var i=this;n(function(){if(i.notifyUnhandledRejection_()){var a=L.global.console;typeof a<"u"&&a.error(i.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var i=L.global.CustomEvent,a=L.global.Event,s=L.global.dispatchEvent;return typeof s>"u"?!0:(typeof i=="function"?i=new i("unhandledrejection",{cancelable:!0}):typeof a=="function"?i=new a("unhandledrejection",{cancelable:!0}):(i=L.global.document.createEvent("CustomEvent"),i.initCustomEvent("unhandledrejection",!1,!0,i)),i.promise=this,i.reason=this.result_,s(i))},o.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var i=0;i<this.onSettledCallbacks_.length;++i)A.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var A=new t;return o.prototype.settleSameAsPromise_=function(i){var a=this.createResolveAndReject_();i.callWhenSettled_(a.resolve,a.reject)},o.prototype.settleSameAsThenable_=function(i,a){var s=this.createResolveAndReject_();try{i.call(a,s.resolve,s.reject)}catch(c){s.reject(c)}},o.prototype.then=function(i,a){function s(g,p){return typeof g=="function"?function(f){try{c(g(f))}catch(d){l(d)}}:p}var c,l,u=new o(function(g,p){c=g,l=p});return this.callWhenSettled_(s(i,c),s(a,l)),u},o.prototype.catch=function(i){return this.then(void 0,i)},o.prototype.callWhenSettled_=function(i,a){function s(){switch(c.state_){case 1:i(c.result_);break;case 2:a(c.result_);break;default:throw Error("Unexpected state: "+c.state_)}}var c=this;this.onSettledCallbacks_==null?A.asyncExecute(s):this.onSettledCallbacks_.push(s),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(i){return new o(function(a,s){s(i)})},o.race=function(i){return new o(function(a,s){for(var c=L.makeIterator(i),l=c.next();!l.done;l=c.next())r(l.value).callWhenSettled_(a,s)})},o.all=function(i){var a=L.makeIterator(i),s=a.next();return s.done?r([]):new o(function(c,l){function u(f){return function(d){g[f]=d,p--,p==0&&c(g)}}var g=[],p=0;do g.push(void 0),p++,r(s.value).callWhenSettled_(u(g.length-1),l),s=a.next();while(!s.done)})},o},"es6","es3");L.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};L.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=L.checkStringArgs(this,t,"startsWith");t+="";var o=n.length,A=t.length;r=Math.max(0,Math.min(r|0,n.length));for(var i=0;i<A&&r<o;)if(n[r++]!=t[i++])return!1;return i>=A}},"es6","es3");L.polyfill("String.prototype.codePointAt",function(e){return e||function(t){var r=L.checkStringArgs(this,null,"codePointAt"),n=r.length;if(t=Number(t)||0,t>=0&&t<n){t|=0;var o=r.charCodeAt(t);return o<55296||o>56319||t+1===n?o:(t=r.charCodeAt(t+1),t<56320||t>57343?o:(o-55296)*1024+t+9216)}}},"es6","es3");var uA=(function(){var e,t,r=(e=globalThis.document)==null||(t=e.currentScript)==null?void 0:t.src;return function(n){function o(ee){ee&&typeof ee=="object"&&(ee=ee.ptr),this.ptr=vn(ee),j(o)[this.ptr]=this}function A(){this.ptr=hn(),j(A)[this.ptr]=this}function i(){this.ptr=Fe(),j(i)[this.ptr]=this}function a(){this.ptr=C(),j(a)[this.ptr]=this}function s(){this.ptr=Nr(),j(s)[this.ptr]=this}function c(){this.ptr=Ur(),j(c)[this.ptr]=this}function l(){this.ptr=Fr(),j(l)[this.ptr]=this}function u(){this.ptr=Sr(),j(u)[this.ptr]=this}function g(){this.ptr=vr(),j(g)[this.ptr]=this}function p(){this.ptr=ir(),j(p)[this.ptr]=this}function f(){this.ptr=ct(),j(f)[this.ptr]=this}function d(){throw"cannot construct a VoidPtr, no constructor in IDL"}function h(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Ar),D=E/4,P=0;P<ee.length;P++)Ar[D+P]=ee[P];return E}return ee}function I(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Nt),D=E/4,P=0;P<ee.length;P++)Nt[D+P]=ee[P];return E}return ee}function b(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,or),D=E/2,P=0;P<ee.length;P++)or[D+P]=ee[P];return E}return ee}function Q(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Je),D=0;D<ee.length;D++)Je[E+D]=ee[D];return E}return ee}function m(ee){if(typeof ee=="string"){ee=ht(ee);for(var E=De.alloc(ee,Je),D=0;D<ee.length;D++)Je[E+D]=ee[D];return E}return ee}function w(ee){return ee.__class__}function v(ee){return ee.ptr}function S(ee,E){return ee.ptr===E.ptr}function N(ee){if(!ee.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";ee.__destroy__(),delete j(ee.__class__)[ee.ptr]}function _(ee,E){return G(ee.ptr,E)}function G(ee,E){var D=j(E),P=D[ee];return P||(P=Object.create((E||R).prototype),P.ptr=ee,D[ee]=P)}function j(ee){return(ee||R).__cache__}function R(){}function K(){var ee,E,D;return(0,L.asyncExecutePromiseGeneratorProgram)(function(P){if(P.getNextAddressJsc()==1)return oe(),ee=F.setStatus,ee?(ee("Running..."),P.yield(new Promise(function(Y){return setTimeout(Y,1)}),3)):P.jumpTo(2);if(P.getNextAddressJsc()!=2&&setTimeout(ee,1,""),Ue)return P.return();je=!0,nt(_t),Lr.e(),(D=(E=F).onRuntimeInitialized)==null||D.call(E),re(),P.jumpToEnd()})}function z(){function ee(U){return U=Lr=U.exports,F._webidl_free=U.f,F._free=U.g,F._webidl_malloc=U.h,F._malloc=U.i,Qr=F._emscripten_bind_VoidPtr___destroy___0=U.j,ct=F._emscripten_bind_GeometryAttribute_GeometryAttribute_0=U.k,Wt=F._emscripten_bind_GeometryAttribute___destroy___0=U.l,ir=F._emscripten_bind_PointAttribute_PointAttribute_0=U.m,it=F._emscripten_bind_PointAttribute_size_0=U.n,wt=F._emscripten_bind_PointAttribute_attribute_type_0=U.o,Tt=F._emscripten_bind_PointAttribute_data_type_0=U.p,qt=F._emscripten_bind_PointAttribute_num_components_0=U.q,Xt=F._emscripten_bind_PointAttribute_normalized_0=U.r,Zt=F._emscripten_bind_PointAttribute_byte_stride_0=U.s,$t=F._emscripten_bind_PointAttribute_byte_offset_0=U.t,xr=F._emscripten_bind_PointAttribute_unique_id_0=U.u,wr=F._emscripten_bind_PointAttribute___destroy___0=U.v,vr=F._emscripten_bind_PointCloud_PointCloud_0=U.w,Dr=F._emscripten_bind_PointCloud_num_attributes_0=U.x,Mr=F._emscripten_bind_PointCloud_num_points_0=U.y,_r=F._emscripten_bind_PointCloud___destroy___0=U.z,Sr=F._emscripten_bind_Mesh_Mesh_0=U.A,Pr=F._emscripten_bind_Mesh_num_faces_0=U.B,Gr=F._emscripten_bind_Mesh_num_attributes_0=U.C,ar=F._emscripten_bind_Mesh_num_points_0=U.D,Lt=F._emscripten_bind_Mesh_set_num_points_1=U.E,Rr=F._emscripten_bind_Mesh___destroy___0=U.F,Fr=F._emscripten_bind_Metadata_Metadata_0=U.G,sr=F._emscripten_bind_Metadata___destroy___0=U.H,Ur=F._emscripten_bind_DracoInt8Array_DracoInt8Array_0=U.I,cr=F._emscripten_bind_DracoInt8Array_GetValue_1=U.J,Ot=F._emscripten_bind_DracoInt8Array_size_0=U.K,kr=F._emscripten_bind_DracoInt8Array___destroy___0=U.L,Nr=F._emscripten_bind_MetadataBuilder_MetadataBuilder_0=U.M,lr=F._emscripten_bind_MetadataBuilder_AddStringEntry_3=U.N,er=F._emscripten_bind_MetadataBuilder_AddIntEntry_3=U.O,lt=F._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=U.P,Ht=F._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=U.Q,ur=F._emscripten_bind_MetadataBuilder___destroy___0=U.R,C=F._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=U.S,x=F._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=U.T,k=F._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=U.U,V=F._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=U.V,q=F._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=U.W,te=F._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=U.X,ae=F._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=U.Y,se=F._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=U.Z,pe=F._emscripten_bind_PointCloudBuilder_AddMetadata_2=U._,ue=F._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=U.$,de=F._emscripten_bind_PointCloudBuilder_SetNormalizedFlagForAttribute_3=U.aa,ve=F._emscripten_bind_PointCloudBuilder___destroy___0=U.ba,Fe=F._emscripten_bind_MeshBuilder_MeshBuilder_0=U.ca,Ke=F._emscripten_bind_MeshBuilder_AddFacesToMesh_3=U.da,Ne=F._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=U.ea,rt=F._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=U.fa,at=F._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=U.ga,St=F._emscripten_bind_MeshBuilder_AddFloatAttribute_5=U.ha,ut=F._emscripten_bind_MeshBuilder_AddInt8Attribute_5=U.ia,gr=F._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=U.ja,pr=F._emscripten_bind_MeshBuilder_AddInt16Attribute_5=U.ka,cn=F._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=U.la,ln=F._emscripten_bind_MeshBuilder_AddInt32Attribute_5=U.ma,un=F._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=U.na,gn=F._emscripten_bind_MeshBuilder_AddMetadata_2=U.oa,pn=F._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=U.pa,fn=F._emscripten_bind_MeshBuilder_SetNormalizedFlagForAttribute_3=U.qa,dn=F._emscripten_bind_MeshBuilder___destroy___0=U.ra,hn=F._emscripten_bind_Encoder_Encoder_0=U.sa,mn=F._emscripten_bind_Encoder_SetEncodingMethod_1=U.ta,In=F._emscripten_bind_Encoder_SetAttributeQuantization_2=U.ua,Bn=F._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=U.va,bn=F._emscripten_bind_Encoder_SetSpeedOptions_2=U.wa,En=F._emscripten_bind_Encoder_SetTrackEncodedProperties_1=U.xa,yn=F._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=U.ya,Cn=F._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=U.za,Qn=F._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=U.Aa,xn=F._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=U.Ba,wn=F._emscripten_bind_Encoder___destroy___0=U.Ca,vn=F._emscripten_bind_ExpertEncoder_ExpertEncoder_1=U.Da,Dn=F._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=U.Ea,Mn=F._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=U.Fa,_n=F._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=U.Ga,Sn=F._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=U.Ha,Pn=F._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=U.Ia,Gn=F._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=U.Ja,Rn=F._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=U.Ka,Fn=F._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=U.La,Un=F._emscripten_bind_ExpertEncoder___destroy___0=U.Ma,kn=F._emscripten_enum_draco_GeometryAttribute_Type_INVALID=U.Na,Nn=F._emscripten_enum_draco_GeometryAttribute_Type_POSITION=U.Oa,Tn=F._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=U.Pa,Ln=F._emscripten_enum_draco_GeometryAttribute_Type_COLOR=U.Qa,On=F._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=U.Ra,Hn=F._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=U.Sa,jn=F._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=U.Ta,Vn=F._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=U.Ua,Jn=F._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=U.Va,Kn=F._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=U.Wa,zn=F._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=U.Xa,Tr=U.d,ne(),Lr}var E,D,P,Y;return(0,L.asyncExecutePromiseGeneratorProgram)(function(U){return U.getNextAddressJsc()==1?(E={a:Yn},(D=F.instantiateWasm)?U.return(new Promise(function(Ce){D(E,function(ot){return Ce(ee(ot))})})):(Le!=null||(Le=ie("draco_encoder.wasm")),U.yield(J(Ge,Le,E),2))):(P=U.getYieldResultJsc(),Y=ee(P.instance),U.return(Y))})}function J(ee,E,D){var P,Y,U;return(0,L.asyncExecutePromiseGeneratorProgram)(function(Ce){switch(Ce.getNextAddressJsc()){case 1:if(ee||Me(E)||ye){Ce.jumpTo(2);break}return Ce.setCatchFinallyBlocks(3),P=fetch(E,{credentials:"same-origin"}),Ce.yield(WebAssembly.instantiateStreaming(P,D),5);case 5:return Y=Ce.getYieldResultJsc(),Ce.return(Y);case 3:U=Ce.enterCatchBlock(),_e("wasm streaming compile failed: "+U),_e("falling back to ArrayBuffer instantiation");case 2:return Ce.return(W(E,D))}})}function W(ee,E){var D,P,Y;return(0,L.asyncExecutePromiseGeneratorProgram)(function(U){switch(U.getNextAddressJsc()){case 1:return U.setCatchFinallyBlocks(2),U.yield(X(ee),4);case 4:return D=U.getYieldResultJsc(),U.yield(WebAssembly.instantiate(D,E),5);case 5:return P=U.getYieldResultJsc(),U.return(P);case 2:Y=U.enterCatchBlock(),_e("failed to asynchronously prepare wasm: "+Y),Ae(Y),U.jumpToEnd()}})}function X(ee){var E;return(0,L.asyncExecutePromiseGeneratorProgram)(function(D){switch(D.getNextAddressJsc()){case 1:if(Ge){D.jumpTo(2);break}return D.setCatchFinallyBlocks(3),D.yield(ge(ee),5);case 5:return E=D.getYieldResultJsc(),D.return(new Uint8Array(E));case 3:D.enterCatchBlock();case 2:var P=D.return;if(ee==Le&&Ge)var Y=new Uint8Array(Ge);else if(be)Y=be(ee);else throw"both async and sync fetching of the wasm failed";return P.call(D,Y)}})}function Ae(ee){var E,D;throw(D=(E=F).onAbort)==null||D.call(E,ee),ee="Aborted("+ee+")",_e(ee),Ue=!0,new WebAssembly.RuntimeError(ee+". Build with -sASSERTIONS for more info.")}function re(){var ee=F.postRun;ee&&(typeof ee=="function"&&(ee=[ee]),qe.push.apply(qe,(0,L.arrayFromIterable)(ee))),nt(qe)}function oe(){var ee=F.preRun;ee&&(typeof ee=="function"&&(ee=[ee]),yt.push.apply(yt,(0,L.arrayFromIterable)(ee))),nt(yt)}function ne(){var ee,E;!((ee=Je)==null||(E=ee.buffer)==null)&&E.resizable||(ee=Tr.buffer,F.HEAP8=Je=new Int8Array(ee),F.HEAP16=or=new Int16Array(ee),F.HEAPU8=dt=new Uint8Array(ee),F.HEAPU16=new Uint16Array(ee),F.HEAP32=Nt=new Int32Array(ee),F.HEAPU32=ze=new Uint32Array(ee),F.HEAPF32=Ar=new Float32Array(ee),F.HEAPF64=new Float64Array(ee))}function ie(ee){return F.locateFile?F.locateFile(ee,le):le+ee}function he(ee){return typeof ee!="string"?!1:(ee=ee.split("."),ee.length<2||ee.length>3?!1:ee[0]==1&&ee[1]>=0&&ee[1]<=5?!0:!(ee[0]!=0||ee[1]>10))}n=n===void 0?{}:n;var F,Be,Se,Pe,Ie,y,ye,Qe,xe,le,ge,be,we,_e,Ge,Ue,Me,He,Te,je,Le,Je,nt,qe,yt,ze,Ve,Ct,pt,Qt,ft,Xe,It,Ut,dt,Yt,st,kt,ht,_t,Cr,or,Nt,Ar,xt,Qr,ct,Wt,ir,it,wt,Tt,qt,Xt,Zt,$t,xr,wr,vr,Dr,Mr,_r,Sr,Pr,Gr,ar,Lt,Rr,Fr,sr,Ur,cr,Ot,kr,Nr,lr,er,lt,Ht,ur,C,x,k,V,q,te,ae,se,pe,ue,de,ve,Fe,Ke,Ne,rt,at,St,ut,gr,pr,cn,ln,un,gn,pn,fn,dn,hn,mn,In,Bn,bn,En,yn,Cn,Qn,xn,wn,vn,Dn,Mn,_n,Sn,Pn,Gn,Rn,Fn,Un,kn,Nn,Tn,Ln,On,Hn,jn,Vn,Jn,Kn,zn,Tr,Yn,Lr,De;return(0,L.asyncExecutePromiseGeneratorProgram)(function(ee){if(ee.getNextAddressJsc()==1){if(F=n,Be=!!globalThis.window,Se=!!globalThis.WorkerGlobalScope,ye=((Pe=globalThis.process)==null||(Ie=Pe.versions)==null?void 0:Ie.node)&&((y=globalThis.process)==null?void 0:y.type)!="renderer",xe=Qe=!1,F.onRuntimeInitialized=function(){Qe=!0,xe&&typeof F.onModuleLoaded=="function"&&F.onModuleLoaded(F)},F.onModuleParsed=function(){xe=!0,Qe&&typeof F.onModuleLoaded=="function"&&F.onModuleLoaded(F)},F.isVersionSupported=he,typeof __filename<"u"?r=__filename:Se&&(r=self.location.href),le="",ye)we=(Pt(),ji(ea)),le=__dirname+"/",be=function(E){return E=Me(E)?new URL(E):E,we.readFileSync(E)},ge=function(E,D){D=D===void 0?!0:D;var P;return(0,L.asyncExecutePromiseGeneratorProgram)(function(Y){return E=Me(E)?new URL(E):E,P=we.readFileSync(E,D?void 0:"utf8"),Y.return(P)})},me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2);else if(Be||Se){try{le=new URL(".",r).href}catch{}Se&&(be=function(E){var D=new XMLHttpRequest;return D.open("GET",E,!1),D.responseType="arraybuffer",D.send(null),new Uint8Array(D.response)}),ge=function(E){var D;return(0,L.asyncExecutePromiseGeneratorProgram)(function(P){if(P.getNextAddressJsc()==1)return Me(E)?P.return(new Promise(function(Y,U){var Ce=new XMLHttpRequest;Ce.open("GET",E,!0),Ce.responseType="arraybuffer",Ce.onload=function(){Ce.status==200||Ce.status==0&&Ce.response?Y(Ce.response):U(Ce.status)},Ce.onerror=U,Ce.send(null)})):P.yield(fetch(E,{credentials:"same-origin"}),2);if(D=P.getYieldResultJsc(),D.ok)return P.return(D.arrayBuffer());throw Error(D.status+" : "+D.url)})}}if(console.log.bind(console),_e=console.error.bind(console),Ue=!1,Me=function(E){return E.startsWith("file://")},He=function(){},Te=function(){return He.apply(this,arguments)||this},L.inherits(Te,He),je=!1,nt=function(E){for(;E.length>0;)E.shift()(F)},qe=[],yt=[],Ve=function(E){this.excPtr=E,this.ptr=E-24},Ve.prototype.set_type=function(E){ze[this.ptr+4>>2]=E},Ve.prototype.get_type=function(){return ze[this.ptr+4>>2]},Ve.prototype.set_destructor=function(E){ze[this.ptr+8>>2]=E},Ve.prototype.get_destructor=function(){return ze[this.ptr+8>>2]},Ve.prototype.set_caught=function(E){Je[this.ptr+12]=E?1:0},Ve.prototype.get_caught=function(){return Je[this.ptr+12]!=0},Ve.prototype.set_rethrown=function(E){Je[this.ptr+13]=E?1:0},Ve.prototype.get_rethrown=function(){return Je[this.ptr+13]!=0},Ve.prototype.init=function(E,D){this.set_adjusted_ptr(0),this.set_type(E),this.set_destructor(D)},Ve.prototype.set_adjusted_ptr=function(E){ze[this.ptr+16>>2]=E},Ve.prototype.get_adjusted_ptr=function(){return ze[this.ptr+16>>2]},Ct=0,pt=function(E){Ae()},Qt=function(E,D,P){new Ve(E).init(D,P),Ct++,pt(E)},ft=function(){return Ae("")},Xe=function(){return 2147483648},It=function(E,D){return Math.ceil(E/D)*D},Ut=function(E){var D=Tr.buffer.byteLength;try{return Tr.grow((E-D+65535)/65536|0),ne(),1}catch{}},Yt=function(E){var D=dt.length;E>>>=0;var P=Xe();if(E>P)return!1;for(var Y=1;Y<=4;Y*=2){var U=D*(1+.2/Y);if(U=Math.min(U,E+100663296),U=Math.min(P,It(Math.max(E,U),65536)),Ut(U))return!0}return!1},st=function(E){for(var D=0,P=0;P<E.length;++P){var Y=E.charCodeAt(P);Y<=127?D++:Y<=2047?D+=2:Y>=55296&&Y<=57343?(D+=4,++P):D+=3}return D},kt=function(E,D,P,Y){if(!(Y>0))return 0;var U=P;Y=P+Y-1;for(var Ce=0;Ce<E.length;++Ce){var ot=E.codePointAt(Ce);if(ot<=127){if(P>=Y)break;D[P++]=ot}else if(ot<=2047){if(P+1>=Y)break;D[P++]=192|ot>>6,D[P++]=128|ot&63}else if(ot<=65535){if(P+2>=Y)break;D[P++]=224|ot>>12,D[P++]=128|ot>>6&63,D[P++]=128|ot&63}else{if(P+3>=Y)break;D[P++]=240|ot>>18,D[P++]=128|ot>>12&63,D[P++]=128|ot>>6&63,D[P++]=128|ot&63,Ce++}}return D[P]=0,P-U},ht=function(E,D,P){return P=P>0?P:st(E)+1,P=Array(P),E=kt(E,P,0,P.length),D&&(P.length=E),P},globalThis.TextDecoder&&new TextDecoder,_t=[],Cr=function(E){return _t.push(E)},F.printErr&&(_e=F.printErr),F.wasmBinary&&(Ge=F.wasmBinary),xt=F.preInit)for(typeof xt=="function"&&(F.preInit=xt=[xt]);xt.length>0;)xt.shift()();return Yn={a:Qt,c:ft,b:Yt},ee.yield(z(),2)}return ee.getNextAddressJsc()!=3?(Lr=ee.getYieldResultJsc(),ee.yield(K(),3)):(R.prototype=Object.create(R.prototype),R.prototype.constructor=R,R.prototype.__class__=R,R.__cache__={},F.WrapperObject=R,F.getCache=j,F.wrapPointer=G,F.castObject=_,F.NULL=G(0),F.destroy=N,F.compare=S,F.getPointer=v,F.getClass=w,De={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(De.needed){for(var E=0;E<De.temps.length;E++)F._webidl_free(De.temps[E]);De.temps.length=0,F._webidl_free(De.buffer),De.buffer=0,De.size+=De.needed,De.needed=0}De.buffer||(De.size+=128,De.buffer=F._webidl_malloc(De.size),De.buffer||Ae(void 0)),De.pos=0},alloc:function(E,D){return De.buffer||Ae(void 0),E=E.length*D.BYTES_PER_ELEMENT,E=It(E,8),De.pos+E>=De.size?(E>0||Ae(void 0),De.needed+=E,D=F._webidl_malloc(E),De.temps.push(D)):(D=De.buffer+De.pos,De.pos+=E),D}},d.prototype=Object.create(R.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},F.VoidPtr=d,d.prototype.__destroy__=d.prototype.__destroy__=function(){Qr(this.ptr)},f.prototype=Object.create(R.prototype),f.prototype.constructor=f,f.prototype.__class__=f,f.__cache__={},F.GeometryAttribute=f,f.prototype.__destroy__=f.prototype.__destroy__=function(){Wt(this.ptr)},p.prototype=Object.create(R.prototype),p.prototype.constructor=p,p.prototype.__class__=p,p.__cache__={},F.PointAttribute=p,p.prototype.size=p.prototype.size=function(){return it(this.ptr)},p.prototype.attribute_type=p.prototype.attribute_type=function(){return wt(this.ptr)},p.prototype.data_type=p.prototype.data_type=function(){return Tt(this.ptr)},p.prototype.num_components=p.prototype.num_components=function(){return qt(this.ptr)},p.prototype.normalized=p.prototype.normalized=function(){return!!Xt(this.ptr)},p.prototype.byte_stride=p.prototype.byte_stride=function(){return Zt(this.ptr)},p.prototype.byte_offset=p.prototype.byte_offset=function(){return $t(this.ptr)},p.prototype.unique_id=p.prototype.unique_id=function(){return xr(this.ptr)},p.prototype.__destroy__=p.prototype.__destroy__=function(){wr(this.ptr)},g.prototype=Object.create(R.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},F.PointCloud=g,g.prototype.num_attributes=g.prototype.num_attributes=function(){return Dr(this.ptr)},g.prototype.num_points=g.prototype.num_points=function(){return Mr(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){_r(this.ptr)},u.prototype=Object.create(R.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},F.Mesh=u,u.prototype.num_faces=u.prototype.num_faces=function(){return Pr(this.ptr)},u.prototype.num_attributes=u.prototype.num_attributes=function(){return Gr(this.ptr)},u.prototype.num_points=u.prototype.num_points=function(){return ar(this.ptr)},u.prototype.set_num_points=u.prototype.set_num_points=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Lt(D,E)},u.prototype.__destroy__=u.prototype.__destroy__=function(){Rr(this.ptr)},l.prototype=Object.create(R.prototype),l.prototype.constructor=l,l.prototype.__class__=l,l.__cache__={},F.Metadata=l,l.prototype.__destroy__=l.prototype.__destroy__=function(){sr(this.ptr)},c.prototype=Object.create(R.prototype),c.prototype.constructor=c,c.prototype.__class__=c,c.__cache__={},F.DracoInt8Array=c,c.prototype.GetValue=c.prototype.GetValue=function(E){var D=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),cr(D,E)},c.prototype.size=c.prototype.size=function(){return Ot(this.ptr)},c.prototype.__destroy__=c.prototype.__destroy__=function(){kr(this.ptr)},s.prototype=Object.create(R.prototype),s.prototype.constructor=s,s.prototype.__class__=s,s.__cache__={},F.MetadataBuilder=s,s.prototype.AddStringEntry=s.prototype.AddStringEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P=P&&typeof P=="object"?P.ptr:m(P),!!lr(Y,E,D,P)},s.prototype.AddIntEntry=s.prototype.AddIntEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P&&typeof P=="object"&&(P=P.ptr),!!er(Y,E,D,P)},s.prototype.AddIntEntryArray=s.prototype.AddIntEntryArray=function(E,D,P,Y){var U=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),typeof P=="object"&&(P=I(P)),Y&&typeof Y=="object"&&(Y=Y.ptr),!!lt(U,E,D,P,Y)},s.prototype.AddDoubleEntry=s.prototype.AddDoubleEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P&&typeof P=="object"&&(P=P.ptr),!!Ht(Y,E,D,P)},s.prototype.__destroy__=s.prototype.__destroy__=function(){ur(this.ptr)},a.prototype=Object.create(R.prototype),a.prototype.constructor=a,a.prototype.__class__=a,a.__cache__={},F.PointCloudBuilder=a,a.prototype.AddFloatAttribute=a.prototype.AddFloatAttribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),x(Ce,E,D,P,Y,U)},a.prototype.AddInt8Attribute=a.prototype.AddInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),k(Ce,E,D,P,Y,U)},a.prototype.AddUInt8Attribute=a.prototype.AddUInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),V(Ce,E,D,P,Y,U)},a.prototype.AddInt16Attribute=a.prototype.AddInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),q(Ce,E,D,P,Y,U)},a.prototype.AddUInt16Attribute=a.prototype.AddUInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),te(Ce,E,D,P,Y,U)},a.prototype.AddInt32Attribute=a.prototype.AddInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),ae(Ce,E,D,P,Y,U)},a.prototype.AddUInt32Attribute=a.prototype.AddUInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),se(Ce,E,D,P,Y,U)},a.prototype.AddMetadata=a.prototype.AddMetadata=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!pe(P,E,D)},a.prototype.SetMetadataForAttribute=a.prototype.SetMetadataForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!ue(Y,E,D,P)},a.prototype.SetNormalizedFlagForAttribute=a.prototype.SetNormalizedFlagForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!de(Y,E,D,P)},a.prototype.__destroy__=a.prototype.__destroy__=function(){ve(this.ptr)},i.prototype=Object.create(R.prototype),i.prototype.constructor=i,i.prototype.__class__=i,i.__cache__={},F.MeshBuilder=i,i.prototype.AddFacesToMesh=i.prototype.AddFacesToMesh=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),typeof P=="object"&&(P=I(P)),!!Ke(Y,E,D,P)},i.prototype.AddFloatAttributeToMesh=i.prototype.AddFloatAttributeToMesh=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),Ne(Ce,E,D,P,Y,U)},i.prototype.AddInt32AttributeToMesh=i.prototype.AddInt32AttributeToMesh=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),rt(Ce,E,D,P,Y,U)},i.prototype.AddMetadataToMesh=i.prototype.AddMetadataToMesh=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!at(P,E,D)},i.prototype.AddFloatAttribute=i.prototype.AddFloatAttribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),St(Ce,E,D,P,Y,U)},i.prototype.AddInt8Attribute=i.prototype.AddInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),ut(Ce,E,D,P,Y,U)},i.prototype.AddUInt8Attribute=i.prototype.AddUInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),gr(Ce,E,D,P,Y,U)},i.prototype.AddInt16Attribute=i.prototype.AddInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),pr(Ce,E,D,P,Y,U)},i.prototype.AddUInt16Attribute=i.prototype.AddUInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),cn(Ce,E,D,P,Y,U)},i.prototype.AddInt32Attribute=i.prototype.AddInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),ln(Ce,E,D,P,Y,U)},i.prototype.AddUInt32Attribute=i.prototype.AddUInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),un(Ce,E,D,P,Y,U)},i.prototype.AddMetadata=i.prototype.AddMetadata=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!gn(P,E,D)},i.prototype.SetMetadataForAttribute=i.prototype.SetMetadataForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!pn(Y,E,D,P)},i.prototype.SetNormalizedFlagForAttribute=i.prototype.SetNormalizedFlagForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!fn(Y,E,D,P)},i.prototype.__destroy__=i.prototype.__destroy__=function(){dn(this.ptr)},A.prototype=Object.create(R.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},F.Encoder=A,A.prototype.SetEncodingMethod=A.prototype.SetEncodingMethod=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),mn(D,E)},A.prototype.SetAttributeQuantization=A.prototype.SetAttributeQuantization=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),In(P,E,D)},A.prototype.SetAttributeExplicitQuantization=A.prototype.SetAttributeExplicitQuantization=function(E,D,P,Y,U){var Ce=this.ptr;De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),typeof Y=="object"&&(Y=h(Y)),U&&typeof U=="object"&&(U=U.ptr),Bn(Ce,E,D,P,Y,U)},A.prototype.SetSpeedOptions=A.prototype.SetSpeedOptions=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),bn(P,E,D)},A.prototype.SetTrackEncodedProperties=A.prototype.SetTrackEncodedProperties=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),En(D,E)},A.prototype.EncodeMeshToDracoBuffer=A.prototype.EncodeMeshToDracoBuffer=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),yn(P,E,D)},A.prototype.EncodePointCloudToDracoBuffer=A.prototype.EncodePointCloudToDracoBuffer=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Cn(Y,E,D,P)},A.prototype.GetNumberOfEncodedPoints=A.prototype.GetNumberOfEncodedPoints=function(){return Qn(this.ptr)},A.prototype.GetNumberOfEncodedFaces=A.prototype.GetNumberOfEncodedFaces=function(){return xn(this.ptr)},A.prototype.__destroy__=A.prototype.__destroy__=function(){wn(this.ptr)},o.prototype=Object.create(R.prototype),o.prototype.constructor=o,o.prototype.__class__=o,o.__cache__={},F.ExpertEncoder=o,o.prototype.SetEncodingMethod=o.prototype.SetEncodingMethod=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Dn(D,E)},o.prototype.SetAttributeQuantization=o.prototype.SetAttributeQuantization=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Mn(P,E,D)},o.prototype.SetAttributeExplicitQuantization=o.prototype.SetAttributeExplicitQuantization=function(E,D,P,Y,U){var Ce=this.ptr;De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),typeof Y=="object"&&(Y=h(Y)),U&&typeof U=="object"&&(U=U.ptr),_n(Ce,E,D,P,Y,U)},o.prototype.SetSpeedOptions=o.prototype.SetSpeedOptions=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Sn(P,E,D)},o.prototype.SetTrackEncodedProperties=o.prototype.SetTrackEncodedProperties=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Pn(D,E)},o.prototype.EncodeToDracoBuffer=o.prototype.EncodeToDracoBuffer=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Gn(P,E,D)},o.prototype.GetNumberOfEncodedPoints=o.prototype.GetNumberOfEncodedPoints=function(){return Rn(this.ptr)},o.prototype.GetNumberOfEncodedFaces=o.prototype.GetNumberOfEncodedFaces=function(){return Fn(this.ptr)},o.prototype.__destroy__=o.prototype.__destroy__=function(){Un(this.ptr)},(function(){function E(){F.INVALID=kn(),F.POSITION=Nn(),F.NORMAL=Tn(),F.COLOR=Ln(),F.TEX_COORD=On(),F.GENERIC=Hn(),F.INVALID_GEOMETRY_TYPE=jn(),F.POINT_CLOUD=Vn(),F.TRIANGULAR_MESH=Jn(),F.MESH_SEQUENTIAL_ENCODING=Kn(),F.MESH_EDGEBREAKER_ENCODING=zn()}je?E():Cr(E)})(),typeof F.onModuleParsed=="function"&&F.onModuleParsed(),ee.return(F))})}})();typeof gA=="object"&&typeof _o=="object"?(_o.exports=uA,_o.exports.default=uA):typeof define=="function"&&define.amd&&define([],function(){return uA})});var wa=Wn((fA,So)=>{$();var O=O||{};O.scope={};O.ASSUME_ES2020=!1;O.ASSUME_ES6=O.ASSUME_ES2020;O.ASSUME_ES5=O.ASSUME_ES6;O.ASSUME_NO_NATIVE_MAP=!1;O.ASSUME_NO_NATIVE_SET=!1;O.ISOLATE_POLYFILLS=!1;O.FORCE_POLYFILL_PROMISE=!1;O.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;O.INSTRUMENT_ASYNC_CONTEXT=!0;O.objectCreate=O.ASSUME_ES5||typeof Object.create=="function"?Object.create:function(e){var t=function(){};return t.prototype=e,new t};O.defineProperty=O.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e};O.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof globalThis=="object"&&globalThis];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")};O.global=O.ASSUME_ES2020?globalThis:O.getGlobal(fA);O.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol";O.TRUST_ES6_POLYFILLS=!O.ISOLATE_POLYFILLS||O.IS_SYMBOL_NATIVE;O.polyfills={};O.propertyToPolyfillSymbol={};O.POLYFILL_PREFIX="$jscp$";O.TYPED_ARRAY_CLASSES=(function(){var e="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");return O.global.BigInt64Array&&(e.push("BigInt64"),e.push("BigUint64")),e})();O.polyfillTypedArrayMethod=function(e,t,r,n){if(t)for(var o=0;o<O.TYPED_ARRAY_CLASSES.length;o++){var A=O.TYPED_ARRAY_CLASSES[o]+"Array.prototype."+e;O.ISOLATE_POLYFILLS?O.polyfillIsolated(A,t,r,n):O.polyfillUnisolated(A,t,r,n)}};O.polyfill=function(e,t,r,n){t&&(O.ISOLATE_POLYFILLS?O.polyfillIsolated(e,t,r,n):O.polyfillUnisolated(e,t,r,n))};O.polyfillUnisolated=function(e,t,r,n){for(r=O.global,e=e.split("."),n=0;n<e.length-1;n++){var o=e[n];if(!(o in r))return;r=r[o]}e=e[e.length-1],n=r[e],t=t(n),t!=n&&t!=null&&O.defineProperty(r,e,{configurable:!0,writable:!0,value:t})};O.polyfillIsolated=function(e,t,r,n){var o=e.split(".");e=o.length===1,n=o[0],n=!e&&n in O.polyfills?O.polyfills:O.global;for(var A=0;A<o.length-1;A++){var i=o[A];if(!(i in n))return;n=n[i]}o=o[o.length-1],r=O.IS_SYMBOL_NATIVE&&r==="es6"?n[o]:null,t=t(r),t!=null&&(e?O.defineProperty(O.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==r&&(O.propertyToPolyfillSymbol[o]===void 0&&(r=Math.random()*1e9>>>0,O.propertyToPolyfillSymbol[o]=O.IS_SYMBOL_NATIVE?O.global.Symbol(o):O.POLYFILL_PREFIX+r+"$"+o),O.defineProperty(n,O.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))};O.getConstructImplementation=function(){function e(){function r(){}return new r,Reflect.construct(r,[],function(){}),new r instanceof r}if(O.TRUST_ES6_POLYFILLS&&typeof Reflect<"u"&&Reflect.construct){if(e())return Reflect.construct;var t=Reflect.construct;return function(r,n,o){return r=t(r,n),o&&Reflect.setPrototypeOf(r,o.prototype),r}}return function(r,n,o){return o===void 0&&(o=r),o=O.objectCreate(o.prototype||Object.prototype),Function.prototype.apply.call(r,o,n)||o}};O.construct={valueOf:O.getConstructImplementation}.valueOf();O.underscoreProtoCanBeSet=function(){var e={a:!0},t={};try{return t.__proto__=e,t.a}catch{}return!1};O.setPrototypeOf=O.ASSUME_ES6||O.TRUST_ES6_POLYFILLS&&typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf:O.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null;O.inherits=function(e,t){if(e.prototype=O.objectCreate(t.prototype),e.prototype.constructor=e,O.ASSUME_ES6||O.setPrototypeOf){var r=O.setPrototypeOf;r(e,t)}else for(r in t)if(r!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.superClass_=t.prototype};O.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}};O.arrayIterator=function(e){return{next:O.arrayIteratorImpl(e)}};O.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return O.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")};O.arrayFromIterator=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r};O.arrayFromIterable=function(e){return e instanceof Array?e:O.arrayFromIterator(O.makeIterator(e))};O.createTemplateTagFirstArg=function(e){return O.createTemplateTagFirstArgWithRaw(e,e)};O.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,Object.freeze&&(Object.freeze(e),Object.freeze(t)),e};O.generator={};O.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object")};O.generator.Context=function(){this.isRunning_=!1,this.yieldAllIterator_=null,this.yieldResult=void 0,this.nextAddress=1,this.finallyAddress_=this.catchAddress_=0,this.finallyContexts_=this.abruptCompletion_=null};O.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};O.generator.Context.prototype.stop_=function(){this.isRunning_=!1};O.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};O.generator.Context.prototype.next_=function(e){this.yieldResult=e};O.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0},this.jumpToErrorHandler_()};O.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};O.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};O.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};O.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};O.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e},this.nextAddress=this.finallyAddress_};O.generator.Context.prototype.return=O.generator.Context.prototype.return;O.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e},this.nextAddress=this.finallyAddress_};O.generator.Context.prototype.jumpThroughFinallyBlocks=O.generator.Context.prototype.jumpThroughFinallyBlocks;O.generator.Context.prototype.yield=function(e,t){return this.nextAddress=t,{value:e}};O.generator.Context.prototype.yield=O.generator.Context.prototype.yield;O.generator.Context.prototype.yieldAll=function(e,t){e=O.makeIterator(e);var r=e.next();if(O.generator.ensureIteratorResultIsObject_(r),r.done)this.yieldResult=r.value,this.nextAddress=t;else return this.yieldAllIterator_=e,this.yield(r.value,t)};O.generator.Context.prototype.yieldAll=O.generator.Context.prototype.yieldAll;O.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e};O.generator.Context.prototype.jumpTo=O.generator.Context.prototype.jumpTo;O.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};O.generator.Context.prototype.jumpToEnd=O.generator.Context.prototype.jumpToEnd;O.generator.Context.prototype.setCatchFinallyBlocks=function(e,t){this.catchAddress_=e,t!=null&&(this.finallyAddress_=t)};O.generator.Context.prototype.setCatchFinallyBlocks=O.generator.Context.prototype.setCatchFinallyBlocks;O.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0,this.finallyAddress_=e||0};O.generator.Context.prototype.setFinallyBlock=O.generator.Context.prototype.setFinallyBlock;O.generator.Context.prototype.leaveTryBlock=function(e,t){this.nextAddress=e,this.catchAddress_=t||0};O.generator.Context.prototype.leaveTryBlock=O.generator.Context.prototype.leaveTryBlock;O.generator.Context.prototype.enterCatchBlock=function(e){return this.catchAddress_=e||0,e=this.abruptCompletion_.exception,this.abruptCompletion_=null,e};O.generator.Context.prototype.enterCatchBlock=O.generator.Context.prototype.enterCatchBlock;O.generator.Context.prototype.enterFinallyBlock=function(e,t,r){r?this.finallyContexts_[r]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_],this.catchAddress_=e||0,this.finallyAddress_=t||0};O.generator.Context.prototype.enterFinallyBlock=O.generator.Context.prototype.enterFinallyBlock;O.generator.Context.prototype.leaveFinallyBlock=function(e,t){if(t=this.finallyContexts_.splice(t||0)[0],t=this.abruptCompletion_=this.abruptCompletion_||t){if(t.isException)return this.jumpToErrorHandler_();t.jumpTo!=null&&this.finallyAddress_<t.jumpTo?(this.nextAddress=t.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e};O.generator.Context.prototype.leaveFinallyBlock=O.generator.Context.prototype.leaveFinallyBlock;O.generator.Context.prototype.forIn=function(e){return new O.generator.Context.PropertyIterator(e)};O.generator.Context.prototype.forIn=O.generator.Context.prototype.forIn;O.generator.Context.PropertyIterator=function(e){this.object_=e,this.properties_=[];for(var t in e)this.properties_.push(t);this.properties_.reverse()};O.generator.Context.PropertyIterator.prototype.getNext=function(){for(;this.properties_.length>0;){var e=this.properties_.pop();if(e in this.object_)return e}return null};O.generator.Context.PropertyIterator.prototype.getNext=O.generator.Context.PropertyIterator.prototype.getNext;O.generator.Engine_=function(e){this.context_=new O.generator.Context,this.program_=e};O.generator.Engine_.prototype.next_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_):(this.context_.next_(e),this.nextStep_())};O.generator.Engine_.prototype.return_=function(e){this.context_.start_();var t=this.context_.yieldAllIterator_;return t?this.yieldAllStep_("return"in t?t.return:function(r){return{value:r,done:!0}},e,this.context_.return):(this.context_.return(e),this.nextStep_())};O.generator.Engine_.prototype.throw_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.throw,e,this.context_.next_):(this.context_.throw_(e),this.nextStep_())};O.generator.Engine_.prototype.yieldAllStep_=function(e,t,r){try{var n=e.call(this.context_.yieldAllIterator_,t);if(O.generator.ensureIteratorResultIsObject_(n),!n.done)return this.context_.stop_(),n;var o=n.value}catch(A){return this.context_.yieldAllIterator_=null,this.context_.throw_(A),this.nextStep_()}return this.context_.yieldAllIterator_=null,r.call(this.context_,o),this.nextStep_()};O.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(t){this.context_.yieldResult=void 0,this.context_.throw_(t)}if(this.context_.stop_(),this.context_.abruptCompletion_){if(e=this.context_.abruptCompletion_,this.context_.abruptCompletion_=null,e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};O.generator.Generator_=function(e){this.next=function(t){return e.next_(t)},this.throw=function(t){return e.throw_(t)},this.return=function(t){return e.return_(t)},this[Symbol.iterator]=function(){return this}};O.generator.createGenerator=function(e,t){return t=new O.generator.Generator_(new O.generator.Engine_(t)),O.setPrototypeOf&&e.prototype&&O.setPrototypeOf(t,e.prototype),t};O.asyncExecutePromiseGenerator=function(e){function t(n){return e.next(n)}function r(n){return e.throw(n)}return new Promise(function(n,o){function A(i){i.done?n(i.value):Promise.resolve(i.value).then(t,r).then(A,o)}A(e.next())})};O.asyncExecutePromiseGeneratorFunction=function(e){return O.asyncExecutePromiseGenerator(e())};O.asyncExecutePromiseGeneratorProgram=function(e){return O.asyncExecutePromiseGenerator(new O.generator.Generator_(new O.generator.Engine_(e)))};O.polyfill("globalThis",function(e){return e||O.global},"es_2020","es3");O.polyfill("Reflect",function(e){return e||{}},"es6","es3");O.polyfill("Reflect.construct",function(e){return O.construct},"es6","es3");O.polyfill("Reflect.setPrototypeOf",function(e){if(e)return e;if(O.setPrototypeOf){var t=O.setPrototypeOf;return function(r,n){try{return t(r,n),!0}catch{return!1}}}return null},"es6","es5");O.initSymbol=function(){};O.polyfill("Symbol",function(e){if(e)return e;var t=function(A,i){this.$jscomp$symbol$id_=A,O.defineProperty(this,"description",{configurable:!0,writable:!0,value:i})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(Math.random()*1e9>>>0)+"_",n=0,o=function(A){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(A||"")+"_"+n++,A)};return o},"es6","es3");O.polyfill("Symbol.iterator",function(e){return e||(e=Symbol("Symbol.iterator"),O.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return O.iteratorPrototype(O.arrayIteratorImpl(this))}}),e)},"es6","es3");O.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e};O.polyfill("Promise",function(e){function t(){this.batch_=null}function r(i){return i instanceof o?i:new o(function(a,s){a(i)})}if(e&&(!(O.FORCE_POLYFILL_PROMISE||O.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof O.global.PromiseRejectionEvent>"u")||!O.global.Promise||O.global.Promise.toString().indexOf("[native code]")===-1))return e;t.prototype.asyncExecute=function(i){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(i)};var n=O.global.setTimeout;t.prototype.asyncExecuteFunction=function(i){n(i,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var i=this.batch_;this.batch_=[];for(var a=0;a<i.length;++a){var s=i[a];i[a]=null;try{s()}catch(c){this.asyncThrow_(c)}}}this.batch_=null},t.prototype.asyncThrow_=function(i){this.asyncExecuteFunction(function(){throw i})};var o=function(i){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{i(a.resolve,a.reject)}catch(s){a.reject(s)}};o.prototype.createResolveAndReject_=function(){function i(c){return function(l){s||(s=!0,c.call(a,l))}}var a=this,s=!1;return{resolve:i(this.resolveTo_),reject:i(this.reject_)}},o.prototype.resolveTo_=function(i){if(i===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(i instanceof o)this.settleSameAsPromise_(i);else{e:switch(typeof i){case"object":var a=i!=null;break e;case"function":a=!0;break e;default:a=!1}a?this.resolveToNonPromiseObj_(i):this.fulfill_(i)}},o.prototype.resolveToNonPromiseObj_=function(i){var a=void 0;try{a=i.then}catch(s){this.reject_(s);return}typeof a=="function"?this.settleSameAsThenable_(a,i):this.fulfill_(i)},o.prototype.reject_=function(i){this.settle_(2,i)},o.prototype.fulfill_=function(i){this.settle_(1,i)},o.prototype.settle_=function(i,a){if(this.state_!=0)throw Error("Cannot settle("+i+", "+a+"): Promise already settled in state"+this.state_);this.state_=i,this.result_=a,this.state_===2&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var i=this;n(function(){if(i.notifyUnhandledRejection_()){var a=O.global.console;typeof a<"u"&&a.error(i.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var i=O.global.CustomEvent,a=O.global.Event,s=O.global.dispatchEvent;return typeof s>"u"?!0:(typeof i=="function"?i=new i("unhandledrejection",{cancelable:!0}):typeof a=="function"?i=new a("unhandledrejection",{cancelable:!0}):(i=O.global.document.createEvent("CustomEvent"),i.initCustomEvent("unhandledrejection",!1,!0,i)),i.promise=this,i.reason=this.result_,s(i))},o.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var i=0;i<this.onSettledCallbacks_.length;++i)A.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var A=new t;return o.prototype.settleSameAsPromise_=function(i){var a=this.createResolveAndReject_();i.callWhenSettled_(a.resolve,a.reject)},o.prototype.settleSameAsThenable_=function(i,a){var s=this.createResolveAndReject_();try{i.call(a,s.resolve,s.reject)}catch(c){s.reject(c)}},o.prototype.then=function(i,a){function s(g,p){return typeof g=="function"?function(f){try{c(g(f))}catch(d){l(d)}}:p}var c,l,u=new o(function(g,p){c=g,l=p});return this.callWhenSettled_(s(i,c),s(a,l)),u},o.prototype.catch=function(i){return this.then(void 0,i)},o.prototype.callWhenSettled_=function(i,a){function s(){switch(c.state_){case 1:i(c.result_);break;case 2:a(c.result_);break;default:throw Error("Unexpected state: "+c.state_)}}var c=this;this.onSettledCallbacks_==null?A.asyncExecute(s):this.onSettledCallbacks_.push(s),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(i){return new o(function(a,s){s(i)})},o.race=function(i){return new o(function(a,s){for(var c=O.makeIterator(i),l=c.next();!l.done;l=c.next())r(l.value).callWhenSettled_(a,s)})},o.all=function(i){var a=O.makeIterator(i),s=a.next();return s.done?r([]):new o(function(c,l){function u(f){return function(d){g[f]=d,p--,p==0&&c(g)}}var g=[],p=0;do g.push(void 0),p++,r(s.value).callWhenSettled_(u(g.length-1),l),s=a.next();while(!s.done)})},o},"es6","es3");O.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};O.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=O.checkStringArgs(this,t,"startsWith");t+="";var o=n.length,A=t.length;r=Math.max(0,Math.min(r|0,n.length));for(var i=0;i<A&&r<o;)if(n[r++]!=t[i++])return!1;return i>=A}},"es6","es3");O.polyfill("String.prototype.codePointAt",function(e){return e||function(t){var r=O.checkStringArgs(this,null,"codePointAt"),n=r.length;if(t=Number(t)||0,t>=0&&t<n){t|=0;var o=r.charCodeAt(t);return o<55296||o>56319||t+1===n?o:(t=r.charCodeAt(t+1),t<56320||t>57343?o:(o-55296)*1024+t+9216)}}},"es6","es3");var pA=(function(){var e,t,r=(e=globalThis.document)==null||(t=e.currentScript)==null?void 0:t.src;return function(n){function o(){this.ptr=On(),W(o)[this.ptr]=this}function A(){this.ptr=Pn(),W(A)[this.ptr]=this}function i(){this.ptr=Dn(),W(i)[this.ptr]=this}function a(){this.ptr=Qn(),W(a)[this.ptr]=this}function s(){this.ptr=bn(),W(s)[this.ptr]=this}function c(){this.ptr=hn(),W(c)[this.ptr]=this}function l(){this.ptr=gn(),W(l)[this.ptr]=this}function u(){this.ptr=pr(),W(u)[this.ptr]=this}function g(){this.ptr=at(),W(g)[this.ptr]=this}function p(){throw"cannot construct a Status, no constructor in IDL"}function f(){this.ptr=de(),W(f)[this.ptr]=this}function d(){this.ptr=te(),W(d)[this.ptr]=this}function h(){this.ptr=x(),W(h)[this.ptr]=this}function I(){this.ptr=lt(),W(I)[this.ptr]=this}function b(){this.ptr=cr(),W(b)[this.ptr]=this}function Q(){this.ptr=Mr(),W(Q)[this.ptr]=this}function m(){this.ptr=vr(),W(m)[this.ptr]=this}function w(){this.ptr=$t(),W(w)[this.ptr]=this}function v(){this.ptr=qt(),W(v)[this.ptr]=this}function S(){throw"cannot construct a VoidPtr, no constructor in IDL"}function N(ce){if(typeof ce=="object"){for(var B=ke.alloc(ce,Ve),M=0;M<ce.length;M++)Ve[B+M]=ce[M];return B}return ce}function _(ce){if(typeof ce=="string"){ce=Ar(ce);for(var B=ke.alloc(ce,Ve),M=0;M<ce.length;M++)Ve[B+M]=ce[M];return B}return ce}function G(ce){return ce.__class__}function j(ce){return ce.ptr}function R(ce,B){return ce.ptr===B.ptr}function K(ce){if(!ce.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";ce.__destroy__(),delete W(ce.__class__)[ce.ptr]}function z(ce,B){return J(ce.ptr,B)}function J(ce,B){var M=W(B),T=M[ce];return T||(T=Object.create((B||X).prototype),T.ptr=ce,M[ce]=T)}function W(ce){return(ce||X).__cache__}function X(){}function Ae(){var ce,B,M;return(0,O.asyncExecutePromiseGeneratorProgram)(function(T){if(T.getNextAddressJsc()==1)return Be(),ce=y.setStatus,ce?(ce("Running..."),T.yield(new Promise(function(fe){return setTimeout(fe,1)}),3)):T.jumpTo(2);if(T.getNextAddressJsc()!=2&&setTimeout(ce,1,""),Le)return T.return();yt=!0,Ct(ir),Eo.e(),(M=(B=y).onRuntimeInitialized)==null||M.call(B),F(),T.jumpToEnd()})}function re(){function ce(H){return H=Eo=H.exports,y._webidl_free=H.f,y._free=H.g,y._webidl_malloc=H.h,y._malloc=H.i,Tt=y._emscripten_bind_VoidPtr___destroy___0=H.j,qt=y._emscripten_bind_DecoderBuffer_DecoderBuffer_0=H.k,Xt=y._emscripten_bind_DecoderBuffer_Init_2=H.l,Zt=y._emscripten_bind_DecoderBuffer___destroy___0=H.m,$t=y._emscripten_bind_AttributeTransformData_AttributeTransformData_0=H.n,xr=y._emscripten_bind_AttributeTransformData_transform_type_0=H.o,wr=y._emscripten_bind_AttributeTransformData___destroy___0=H.p,vr=y._emscripten_bind_GeometryAttribute_GeometryAttribute_0=H.q,Dr=y._emscripten_bind_GeometryAttribute___destroy___0=H.r,Mr=y._emscripten_bind_PointAttribute_PointAttribute_0=H.s,_r=y._emscripten_bind_PointAttribute_size_0=H.t,Sr=y._emscripten_bind_PointAttribute_GetAttributeTransformData_0=H.u,Pr=y._emscripten_bind_PointAttribute_attribute_type_0=H.v,Gr=y._emscripten_bind_PointAttribute_data_type_0=H.w,ar=y._emscripten_bind_PointAttribute_num_components_0=H.x,Lt=y._emscripten_bind_PointAttribute_normalized_0=H.y,Rr=y._emscripten_bind_PointAttribute_byte_stride_0=H.z,Fr=y._emscripten_bind_PointAttribute_byte_offset_0=H.A,sr=y._emscripten_bind_PointAttribute_unique_id_0=H.B,Ur=y._emscripten_bind_PointAttribute___destroy___0=H.C,cr=y._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=H.D,Ot=y._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=H.E,kr=y._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=H.F,Nr=y._emscripten_bind_AttributeQuantizationTransform_min_value_1=H.G,lr=y._emscripten_bind_AttributeQuantizationTransform_range_0=H.H,er=y._emscripten_bind_AttributeQuantizationTransform___destroy___0=H.I,lt=y._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=H.J,Ht=y._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=H.K,ur=y._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=H.L,C=y._emscripten_bind_AttributeOctahedronTransform___destroy___0=H.M,x=y._emscripten_bind_PointCloud_PointCloud_0=H.N,k=y._emscripten_bind_PointCloud_num_attributes_0=H.O,V=y._emscripten_bind_PointCloud_num_points_0=H.P,q=y._emscripten_bind_PointCloud___destroy___0=H.Q,te=y._emscripten_bind_Mesh_Mesh_0=H.R,ae=y._emscripten_bind_Mesh_num_faces_0=H.S,se=y._emscripten_bind_Mesh_num_attributes_0=H.T,pe=y._emscripten_bind_Mesh_num_points_0=H.U,ue=y._emscripten_bind_Mesh___destroy___0=H.V,de=y._emscripten_bind_Metadata_Metadata_0=H.W,ve=y._emscripten_bind_Metadata___destroy___0=H.X,Fe=y._emscripten_bind_Status_code_0=H.Y,Ke=y._emscripten_bind_Status_ok_0=H.Z,Ne=y._emscripten_bind_Status_error_msg_0=H._,rt=y._emscripten_bind_Status___destroy___0=H.$,at=y._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=H.aa,St=y._emscripten_bind_DracoFloat32Array_GetValue_1=H.ba,ut=y._emscripten_bind_DracoFloat32Array_size_0=H.ca,gr=y._emscripten_bind_DracoFloat32Array___destroy___0=H.da,pr=y._emscripten_bind_DracoInt8Array_DracoInt8Array_0=H.ea,cn=y._emscripten_bind_DracoInt8Array_GetValue_1=H.fa,ln=y._emscripten_bind_DracoInt8Array_size_0=H.ga,un=y._emscripten_bind_DracoInt8Array___destroy___0=H.ha,gn=y._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=H.ia,pn=y._emscripten_bind_DracoUInt8Array_GetValue_1=H.ja,fn=y._emscripten_bind_DracoUInt8Array_size_0=H.ka,dn=y._emscripten_bind_DracoUInt8Array___destroy___0=H.la,hn=y._emscripten_bind_DracoInt16Array_DracoInt16Array_0=H.ma,mn=y._emscripten_bind_DracoInt16Array_GetValue_1=H.na,In=y._emscripten_bind_DracoInt16Array_size_0=H.oa,Bn=y._emscripten_bind_DracoInt16Array___destroy___0=H.pa,bn=y._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=H.qa,En=y._emscripten_bind_DracoUInt16Array_GetValue_1=H.ra,yn=y._emscripten_bind_DracoUInt16Array_size_0=H.sa,Cn=y._emscripten_bind_DracoUInt16Array___destroy___0=H.ta,Qn=y._emscripten_bind_DracoInt32Array_DracoInt32Array_0=H.ua,xn=y._emscripten_bind_DracoInt32Array_GetValue_1=H.va,wn=y._emscripten_bind_DracoInt32Array_size_0=H.wa,vn=y._emscripten_bind_DracoInt32Array___destroy___0=H.xa,Dn=y._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=H.ya,Mn=y._emscripten_bind_DracoUInt32Array_GetValue_1=H.za,_n=y._emscripten_bind_DracoUInt32Array_size_0=H.Aa,Sn=y._emscripten_bind_DracoUInt32Array___destroy___0=H.Ba,Pn=y._emscripten_bind_MetadataQuerier_MetadataQuerier_0=H.Ca,Gn=y._emscripten_bind_MetadataQuerier_HasEntry_2=H.Da,Rn=y._emscripten_bind_MetadataQuerier_GetIntEntry_2=H.Ea,Fn=y._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=H.Fa,Un=y._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=H.Ga,kn=y._emscripten_bind_MetadataQuerier_GetStringEntry_2=H.Ha,Nn=y._emscripten_bind_MetadataQuerier_NumEntries_1=H.Ia,Tn=y._emscripten_bind_MetadataQuerier_GetEntryName_2=H.Ja,Ln=y._emscripten_bind_MetadataQuerier___destroy___0=H.Ka,On=y._emscripten_bind_Decoder_Decoder_0=H.La,Hn=y._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=H.Ma,jn=y._emscripten_bind_Decoder_DecodeArrayToMesh_3=H.Na,Vn=y._emscripten_bind_Decoder_GetAttributeId_2=H.Oa,Jn=y._emscripten_bind_Decoder_GetAttributeIdByName_2=H.Pa,Kn=y._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=H.Qa,zn=y._emscripten_bind_Decoder_GetAttribute_2=H.Ra,Tr=y._emscripten_bind_Decoder_GetAttributeByUniqueId_2=H.Sa,Yn=y._emscripten_bind_Decoder_GetMetadata_1=H.Ta,Lr=y._emscripten_bind_Decoder_GetAttributeMetadata_2=H.Ua,De=y._emscripten_bind_Decoder_GetFaceFromMesh_3=H.Va,ee=y._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=H.Wa,E=y._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=H.Xa,D=y._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=H.Ya,P=y._emscripten_bind_Decoder_GetAttributeFloat_3=H.Za,Y=y._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=H._a,U=y._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=H.$a,Ce=y._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=H.ab,ot=y._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=H.bb,ei=y._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=H.cb,ti=y._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=H.db,ri=y._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=H.eb,ni=y._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=H.fb,oi=y._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=H.gb,Ai=y._emscripten_bind_Decoder_SkipAttributeTransform_1=H.hb,ii=y._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=H.ib,ai=y._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=H.jb,si=y._emscripten_bind_Decoder_DecodeBufferToMesh_2=H.kb,ci=y._emscripten_bind_Decoder___destroy___0=H.lb,li=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=H.mb,ui=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=H.nb,gi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=H.ob,pi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=H.pb,fi=y._emscripten_enum_draco_GeometryAttribute_Type_INVALID=H.qb,di=y._emscripten_enum_draco_GeometryAttribute_Type_POSITION=H.rb,hi=y._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=H.sb,mi=y._emscripten_enum_draco_GeometryAttribute_Type_COLOR=H.tb,Ii=y._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=H.ub,Bi=y._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=H.vb,bi=y._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=H.wb,Ei=y._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=H.xb,yi=y._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=H.yb,Ci=y._emscripten_enum_draco_DataType_DT_INVALID=H.zb,Qi=y._emscripten_enum_draco_DataType_DT_INT8=H.Ab,xi=y._emscripten_enum_draco_DataType_DT_UINT8=H.Bb,wi=y._emscripten_enum_draco_DataType_DT_INT16=H.Cb,vi=y._emscripten_enum_draco_DataType_DT_UINT16=H.Db,Di=y._emscripten_enum_draco_DataType_DT_INT32=H.Eb,Mi=y._emscripten_enum_draco_DataType_DT_UINT32=H.Fb,_i=y._emscripten_enum_draco_DataType_DT_INT64=H.Gb,Si=y._emscripten_enum_draco_DataType_DT_UINT64=H.Hb,Pi=y._emscripten_enum_draco_DataType_DT_FLOAT32=H.Ib,Gi=y._emscripten_enum_draco_DataType_DT_FLOAT64=H.Jb,Ri=y._emscripten_enum_draco_DataType_DT_BOOL=H.Kb,Fi=y._emscripten_enum_draco_DataType_DT_TYPES_COUNT=H.Lb,Ui=y._emscripten_enum_draco_StatusCode_OK=H.Mb,ki=y._emscripten_enum_draco_StatusCode_DRACO_ERROR=H.Nb,Ni=y._emscripten_enum_draco_StatusCode_IO_ERROR=H.Ob,Ti=y._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=H.Pb,Li=y._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=H.Qb,Oi=y._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=H.Rb,bo=H.d,Se(),Eo}var B,M,T,fe;return(0,O.asyncExecutePromiseGeneratorProgram)(function(H){return H.getNextAddressJsc()==1?(B={a:Hi},(M=y.instantiateWasm)?H.return(new Promise(function(Oe){M(B,function(At){return Oe(ce(At))})})):(ze!=null||(ze=Pe("draco_decoder_gltf.wasm")),H.yield(oe(je,ze,B),2))):(T=H.getYieldResultJsc(),fe=ce(T.instance),H.return(fe))})}function oe(ce,B,M){var T,fe,H;return(0,O.asyncExecutePromiseGeneratorProgram)(function(Oe){switch(Oe.getNextAddressJsc()){case 1:if(ce||Je(B)||be){Oe.jumpTo(2);break}return Oe.setCatchFinallyBlocks(3),T=fetch(B,{credentials:"same-origin"}),Oe.yield(WebAssembly.instantiateStreaming(T,M),5);case 5:return fe=Oe.getYieldResultJsc(),Oe.return(fe);case 3:H=Oe.enterCatchBlock(),Te("wasm streaming compile failed: "+H),Te("falling back to ArrayBuffer instantiation");case 2:return Oe.return(ne(B,M))}})}function ne(ce,B){var M,T,fe;return(0,O.asyncExecutePromiseGeneratorProgram)(function(H){switch(H.getNextAddressJsc()){case 1:return H.setCatchFinallyBlocks(2),H.yield(ie(ce),4);case 4:return M=H.getYieldResultJsc(),H.yield(WebAssembly.instantiate(M,B),5);case 5:return T=H.getYieldResultJsc(),H.return(T);case 2:fe=H.enterCatchBlock(),Te("failed to asynchronously prepare wasm: "+fe),he(fe),H.jumpToEnd()}})}function ie(ce){var B;return(0,O.asyncExecutePromiseGeneratorProgram)(function(M){switch(M.getNextAddressJsc()){case 1:if(je){M.jumpTo(2);break}return M.setCatchFinallyBlocks(3),M.yield(Ue(ce),5);case 5:return B=M.getYieldResultJsc(),M.return(new Uint8Array(B));case 3:M.enterCatchBlock();case 2:var T=M.return;if(ce==ze&&je)var fe=new Uint8Array(je);else if(Me)fe=Me(ce);else throw"both async and sync fetching of the wasm failed";return T.call(M,fe)}})}function he(ce){var B,M;throw(M=(B=y).onAbort)==null||M.call(B,ce),ce="Aborted("+ce+")",Te(ce),Le=!0,new WebAssembly.RuntimeError(ce+". Build with -sASSERTIONS for more info.")}function F(){var ce=y.postRun;ce&&(typeof ce=="function"&&(ce=[ce]),pt.push.apply(pt,(0,O.arrayFromIterable)(ce))),Ct(pt)}function Be(){var ce=y.preRun;ce&&(typeof ce=="function"&&(ce=[ce]),Qt.push.apply(Qt,(0,O.arrayFromIterable)(ce))),Ct(Qt)}function Se(){var ce,B;!((ce=Ve)==null||(B=ce.buffer)==null)&&B.resizable||(ce=bo.buffer,y.HEAP8=Ve=new Int8Array(ce),y.HEAP16=new Int16Array(ce),y.HEAPU8=_t=new Uint8Array(ce),y.HEAPU16=new Uint16Array(ce),y.HEAP32=new Int32Array(ce),y.HEAPU32=ft=new Uint32Array(ce),y.HEAPF32=new Float32Array(ce),y.HEAPF64=new Float64Array(ce))}function Pe(ce){return y.locateFile?y.locateFile(ce,Ge):Ge+ce}function Ie(ce){return typeof ce!="string"?!1:(ce=ce.split("."),ce.length<2||ce.length>3?!1:ce[0]==1&&ce[1]>=0&&ce[1]<=5?!0:!(ce[0]!=0||ce[1]>10))}n=n===void 0?{}:n;var y,ye,Qe,xe,le,ge,be,we,_e,Ge,Ue,Me,He,Te,je,Le,Je,nt,qe,yt,ze,Ve,Ct,pt,Qt,ft,Xe,It,Ut,dt,Yt,st,kt,ht,_t,Cr,or,Nt,Ar,xt,Qr,ct,Wt,ir,it,wt,Tt,qt,Xt,Zt,$t,xr,wr,vr,Dr,Mr,_r,Sr,Pr,Gr,ar,Lt,Rr,Fr,sr,Ur,cr,Ot,kr,Nr,lr,er,lt,Ht,ur,C,x,k,V,q,te,ae,se,pe,ue,de,ve,Fe,Ke,Ne,rt,at,St,ut,gr,pr,cn,ln,un,gn,pn,fn,dn,hn,mn,In,Bn,bn,En,yn,Cn,Qn,xn,wn,vn,Dn,Mn,_n,Sn,Pn,Gn,Rn,Fn,Un,kn,Nn,Tn,Ln,On,Hn,jn,Vn,Jn,Kn,zn,Tr,Yn,Lr,De,ee,E,D,P,Y,U,Ce,ot,ei,ti,ri,ni,oi,Ai,ii,ai,si,ci,li,ui,gi,pi,fi,di,hi,mi,Ii,Bi,bi,Ei,yi,Ci,Qi,xi,wi,vi,Di,Mi,_i,Si,Pi,Gi,Ri,Fi,Ui,ki,Ni,Ti,Li,Oi,bo,Hi,Eo,ke;return(0,O.asyncExecutePromiseGeneratorProgram)(function(ce){if(ce.getNextAddressJsc()==1){if(y=n,ye=!!globalThis.window,Qe=!!globalThis.WorkerGlobalScope,be=((xe=globalThis.process)==null||(le=xe.versions)==null?void 0:le.node)&&((ge=globalThis.process)==null?void 0:ge.type)!="renderer",_e=we=!1,y.onRuntimeInitialized=function(){we=!0,_e&&typeof y.onModuleLoaded=="function"&&y.onModuleLoaded(y)},y.onModuleParsed=function(){_e=!0,we&&typeof y.onModuleLoaded=="function"&&y.onModuleLoaded(y)},y.isVersionSupported=Ie,typeof __filename<"u"?r=__filename:Qe&&(r=self.location.href),Ge="",be)He=(Pt(),ji(ea)),Ge=__dirname+"/",Me=function(B){return B=Je(B)?new URL(B):B,He.readFileSync(B)},Ue=function(B,M){M=M===void 0?!0:M;var T;return(0,O.asyncExecutePromiseGeneratorProgram)(function(fe){return B=Je(B)?new URL(B):B,T=He.readFileSync(B,M?void 0:"utf8"),fe.return(T)})},me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2);else if(ye||Qe){try{Ge=new URL(".",r).href}catch{}Qe&&(Me=function(B){var M=new XMLHttpRequest;return M.open("GET",B,!1),M.responseType="arraybuffer",M.send(null),new Uint8Array(M.response)}),Ue=function(B){var M;return(0,O.asyncExecutePromiseGeneratorProgram)(function(T){if(T.getNextAddressJsc()==1)return Je(B)?T.return(new Promise(function(fe,H){var Oe=new XMLHttpRequest;Oe.open("GET",B,!0),Oe.responseType="arraybuffer",Oe.onload=function(){Oe.status==200||Oe.status==0&&Oe.response?fe(Oe.response):H(Oe.status)},Oe.onerror=H,Oe.send(null)})):T.yield(fetch(B,{credentials:"same-origin"}),2);if(M=T.getYieldResultJsc(),M.ok)return T.return(M.arrayBuffer());throw Error(M.status+" : "+M.url)})}}if(console.log.bind(console),Te=console.error.bind(console),Le=!1,Je=function(B){return B.startsWith("file://")},nt=function(){},qe=function(){return nt.apply(this,arguments)||this},O.inherits(qe,nt),yt=!1,Ct=function(B){for(;B.length>0;)B.shift()(y)},pt=[],Qt=[],Xe=function(B){this.excPtr=B,this.ptr=B-24},Xe.prototype.set_type=function(B){ft[this.ptr+4>>2]=B},Xe.prototype.get_type=function(){return ft[this.ptr+4>>2]},Xe.prototype.set_destructor=function(B){ft[this.ptr+8>>2]=B},Xe.prototype.get_destructor=function(){return ft[this.ptr+8>>2]},Xe.prototype.set_caught=function(B){Ve[this.ptr+12]=B?1:0},Xe.prototype.get_caught=function(){return Ve[this.ptr+12]!=0},Xe.prototype.set_rethrown=function(B){Ve[this.ptr+13]=B?1:0},Xe.prototype.get_rethrown=function(){return Ve[this.ptr+13]!=0},Xe.prototype.init=function(B,M){this.set_adjusted_ptr(0),this.set_type(B),this.set_destructor(M)},Xe.prototype.set_adjusted_ptr=function(B){ft[this.ptr+16>>2]=B},Xe.prototype.get_adjusted_ptr=function(){return ft[this.ptr+16>>2]},It=0,Ut=function(B){he()},dt=function(B,M,T){new Xe(B).init(M,T),It++,Ut(B)},Yt=function(){return he("")},st=function(){return 2147483648},kt=function(B,M){return Math.ceil(B/M)*M},ht=function(B){var M=bo.buffer.byteLength;try{return bo.grow((B-M+65535)/65536|0),Se(),1}catch{}},Cr=function(B){var M=_t.length;B>>>=0;var T=st();if(B>T)return!1;for(var fe=1;fe<=4;fe*=2){var H=M*(1+.2/fe);if(H=Math.min(H,B+100663296),H=Math.min(T,kt(Math.max(B,H),65536)),ht(H))return!0}return!1},or=function(B){for(var M=0,T=0;T<B.length;++T){var fe=B.charCodeAt(T);fe<=127?M++:fe<=2047?M+=2:fe>=55296&&fe<=57343?(M+=4,++T):M+=3}return M},Nt=function(B,M,T,fe){if(!(fe>0))return 0;var H=T;fe=T+fe-1;for(var Oe=0;Oe<B.length;++Oe){var At=B.codePointAt(Oe);if(At<=127){if(T>=fe)break;M[T++]=At}else if(At<=2047){if(T+1>=fe)break;M[T++]=192|At>>6,M[T++]=128|At&63}else if(At<=65535){if(T+2>=fe)break;M[T++]=224|At>>12,M[T++]=128|At>>6&63,M[T++]=128|At&63}else{if(T+3>=fe)break;M[T++]=240|At>>18,M[T++]=128|At>>12&63,M[T++]=128|At>>6&63,M[T++]=128|At&63,Oe++}}return M[T]=0,T-H},Ar=function(B,M,T){return T=T>0?T:or(B)+1,T=Array(T),B=Nt(B,T,0,T.length),M&&(T.length=B),T},xt=globalThis.TextDecoder&&new TextDecoder,Qr=function(B,M,T,fe){if(T=M+T,fe)return T;for(;B[M]&&!(M>=T);)++M;return M},ct=function(B,M,T,fe){if(M=M===void 0?0:M,T=Qr(B,M,T,fe),T-M>16&&B.buffer&&xt)return xt.decode(B.subarray(M,T));for(fe="";M<T;){var H=B[M++];if(H&128){var Oe=B[M++]&63;if((H&224)==192)fe+=String.fromCharCode((H&31)<<6|Oe);else{var At=B[M++]&63;H=(H&240)==224?(H&15)<<12|Oe<<6|At:(H&7)<<18|Oe<<12|At<<6|B[M++]&63,H<65536?fe+=String.fromCharCode(H):(H-=65536,fe+=String.fromCharCode(55296|H>>10,56320|H&1023))}}else fe+=String.fromCharCode(H)}return fe},Wt=function(B,M,T){return B?ct(_t,B,M,T):""},ir=[],it=function(B){return ir.push(B)},y.printErr&&(Te=y.printErr),y.wasmBinary&&(je=y.wasmBinary),wt=y.preInit)for(typeof wt=="function"&&(y.preInit=wt=[wt]);wt.length>0;)wt.shift()();return Hi={a:dt,c:Yt,b:Cr},ce.yield(re(),2)}return ce.getNextAddressJsc()!=3?(Eo=ce.getYieldResultJsc(),ce.yield(Ae(),3)):(X.prototype=Object.create(X.prototype),X.prototype.constructor=X,X.prototype.__class__=X,X.__cache__={},y.WrapperObject=X,y.getCache=W,y.wrapPointer=J,y.castObject=z,y.NULL=J(0),y.destroy=K,y.compare=R,y.getPointer=j,y.getClass=G,ke={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ke.needed){for(var B=0;B<ke.temps.length;B++)y._webidl_free(ke.temps[B]);ke.temps.length=0,y._webidl_free(ke.buffer),ke.buffer=0,ke.size+=ke.needed,ke.needed=0}ke.buffer||(ke.size+=128,ke.buffer=y._webidl_malloc(ke.size),ke.buffer||he(void 0)),ke.pos=0},alloc:function(B,M){return ke.buffer||he(void 0),B=B.length*M.BYTES_PER_ELEMENT,B=kt(B,8),ke.pos+B>=ke.size?(B>0||he(void 0),ke.needed+=B,M=y._webidl_malloc(B),ke.temps.push(M)):(M=ke.buffer+ke.pos,ke.pos+=B),M}},S.prototype=Object.create(X.prototype),S.prototype.constructor=S,S.prototype.__class__=S,S.__cache__={},y.VoidPtr=S,S.prototype.__destroy__=S.prototype.__destroy__=function(){Tt(this.ptr)},v.prototype=Object.create(X.prototype),v.prototype.constructor=v,v.prototype.__class__=v,v.__cache__={},y.DecoderBuffer=v,v.prototype.Init=v.prototype.Init=function(B,M){var T=this.ptr;ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),Xt(T,B,M)},v.prototype.__destroy__=v.prototype.__destroy__=function(){Zt(this.ptr)},w.prototype=Object.create(X.prototype),w.prototype.constructor=w,w.prototype.__class__=w,w.__cache__={},y.AttributeTransformData=w,w.prototype.transform_type=w.prototype.transform_type=function(){return xr(this.ptr)},w.prototype.__destroy__=w.prototype.__destroy__=function(){wr(this.ptr)},m.prototype=Object.create(X.prototype),m.prototype.constructor=m,m.prototype.__class__=m,m.__cache__={},y.GeometryAttribute=m,m.prototype.__destroy__=m.prototype.__destroy__=function(){Dr(this.ptr)},Q.prototype=Object.create(X.prototype),Q.prototype.constructor=Q,Q.prototype.__class__=Q,Q.__cache__={},y.PointAttribute=Q,Q.prototype.size=Q.prototype.size=function(){return _r(this.ptr)},Q.prototype.GetAttributeTransformData=Q.prototype.GetAttributeTransformData=function(){return J(Sr(this.ptr),w)},Q.prototype.attribute_type=Q.prototype.attribute_type=function(){return Pr(this.ptr)},Q.prototype.data_type=Q.prototype.data_type=function(){return Gr(this.ptr)},Q.prototype.num_components=Q.prototype.num_components=function(){return ar(this.ptr)},Q.prototype.normalized=Q.prototype.normalized=function(){return!!Lt(this.ptr)},Q.prototype.byte_stride=Q.prototype.byte_stride=function(){return Rr(this.ptr)},Q.prototype.byte_offset=Q.prototype.byte_offset=function(){return Fr(this.ptr)},Q.prototype.unique_id=Q.prototype.unique_id=function(){return sr(this.ptr)},Q.prototype.__destroy__=Q.prototype.__destroy__=function(){Ur(this.ptr)},b.prototype=Object.create(X.prototype),b.prototype.constructor=b,b.prototype.__class__=b,b.__cache__={},y.AttributeQuantizationTransform=b,b.prototype.InitFromAttribute=b.prototype.InitFromAttribute=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),!!Ot(M,B)},b.prototype.quantization_bits=b.prototype.quantization_bits=function(){return kr(this.ptr)},b.prototype.min_value=b.prototype.min_value=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Nr(M,B)},b.prototype.range=b.prototype.range=function(){return lr(this.ptr)},b.prototype.__destroy__=b.prototype.__destroy__=function(){er(this.ptr)},I.prototype=Object.create(X.prototype),I.prototype.constructor=I,I.prototype.__class__=I,I.__cache__={},y.AttributeOctahedronTransform=I,I.prototype.InitFromAttribute=I.prototype.InitFromAttribute=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),!!Ht(M,B)},I.prototype.quantization_bits=I.prototype.quantization_bits=function(){return ur(this.ptr)},I.prototype.__destroy__=I.prototype.__destroy__=function(){C(this.ptr)},h.prototype=Object.create(X.prototype),h.prototype.constructor=h,h.prototype.__class__=h,h.__cache__={},y.PointCloud=h,h.prototype.num_attributes=h.prototype.num_attributes=function(){return k(this.ptr)},h.prototype.num_points=h.prototype.num_points=function(){return V(this.ptr)},h.prototype.__destroy__=h.prototype.__destroy__=function(){q(this.ptr)},d.prototype=Object.create(X.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},y.Mesh=d,d.prototype.num_faces=d.prototype.num_faces=function(){return ae(this.ptr)},d.prototype.num_attributes=d.prototype.num_attributes=function(){return se(this.ptr)},d.prototype.num_points=d.prototype.num_points=function(){return pe(this.ptr)},d.prototype.__destroy__=d.prototype.__destroy__=function(){ue(this.ptr)},f.prototype=Object.create(X.prototype),f.prototype.constructor=f,f.prototype.__class__=f,f.__cache__={},y.Metadata=f,f.prototype.__destroy__=f.prototype.__destroy__=function(){ve(this.ptr)},p.prototype=Object.create(X.prototype),p.prototype.constructor=p,p.prototype.__class__=p,p.__cache__={},y.Status=p,p.prototype.code=p.prototype.code=function(){return Fe(this.ptr)},p.prototype.ok=p.prototype.ok=function(){return!!Ke(this.ptr)},p.prototype.error_msg=p.prototype.error_msg=function(){return Wt(Ne(this.ptr))},p.prototype.__destroy__=p.prototype.__destroy__=function(){rt(this.ptr)},g.prototype=Object.create(X.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},y.DracoFloat32Array=g,g.prototype.GetValue=g.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),St(M,B)},g.prototype.size=g.prototype.size=function(){return ut(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){gr(this.ptr)},u.prototype=Object.create(X.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},y.DracoInt8Array=u,u.prototype.GetValue=u.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),cn(M,B)},u.prototype.size=u.prototype.size=function(){return ln(this.ptr)},u.prototype.__destroy__=u.prototype.__destroy__=function(){un(this.ptr)},l.prototype=Object.create(X.prototype),l.prototype.constructor=l,l.prototype.__class__=l,l.__cache__={},y.DracoUInt8Array=l,l.prototype.GetValue=l.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),pn(M,B)},l.prototype.size=l.prototype.size=function(){return fn(this.ptr)},l.prototype.__destroy__=l.prototype.__destroy__=function(){dn(this.ptr)},c.prototype=Object.create(X.prototype),c.prototype.constructor=c,c.prototype.__class__=c,c.__cache__={},y.DracoInt16Array=c,c.prototype.GetValue=c.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),mn(M,B)},c.prototype.size=c.prototype.size=function(){return In(this.ptr)},c.prototype.__destroy__=c.prototype.__destroy__=function(){Bn(this.ptr)},s.prototype=Object.create(X.prototype),s.prototype.constructor=s,s.prototype.__class__=s,s.__cache__={},y.DracoUInt16Array=s,s.prototype.GetValue=s.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),En(M,B)},s.prototype.size=s.prototype.size=function(){return yn(this.ptr)},s.prototype.__destroy__=s.prototype.__destroy__=function(){Cn(this.ptr)},a.prototype=Object.create(X.prototype),a.prototype.constructor=a,a.prototype.__class__=a,a.__cache__={},y.DracoInt32Array=a,a.prototype.GetValue=a.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),xn(M,B)},a.prototype.size=a.prototype.size=function(){return wn(this.ptr)},a.prototype.__destroy__=a.prototype.__destroy__=function(){vn(this.ptr)},i.prototype=Object.create(X.prototype),i.prototype.constructor=i,i.prototype.__class__=i,i.__cache__={},y.DracoUInt32Array=i,i.prototype.GetValue=i.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Mn(M,B)},i.prototype.size=i.prototype.size=function(){return _n(this.ptr)},i.prototype.__destroy__=i.prototype.__destroy__=function(){Sn(this.ptr)},A.prototype=Object.create(X.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},y.MetadataQuerier=A,A.prototype.HasEntry=A.prototype.HasEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),!!Gn(T,B,M)},A.prototype.GetIntEntry=A.prototype.GetIntEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Rn(T,B,M)},A.prototype.GetIntEntryArray=A.prototype.GetIntEntryArray=function(B,M,T){var fe=this.ptr;ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),T&&typeof T=="object"&&(T=T.ptr),Fn(fe,B,M,T)},A.prototype.GetDoubleEntry=A.prototype.GetDoubleEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Un(T,B,M)},A.prototype.GetStringEntry=A.prototype.GetStringEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Wt(kn(T,B,M))},A.prototype.NumEntries=A.prototype.NumEntries=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Nn(M,B)},A.prototype.GetEntryName=A.prototype.GetEntryName=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),Wt(Tn(T,B,M))},A.prototype.__destroy__=A.prototype.__destroy__=function(){Ln(this.ptr)},o.prototype=Object.create(X.prototype),o.prototype.constructor=o,o.prototype.__class__=o,o.__cache__={},y.Decoder=o,o.prototype.DecodeArrayToPointCloud=o.prototype.DecodeArrayToPointCloud=function(B,M,T){var fe=this.ptr;return ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),J(Hn(fe,B,M,T),p)},o.prototype.DecodeArrayToMesh=o.prototype.DecodeArrayToMesh=function(B,M,T){var fe=this.ptr;return ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),J(jn(fe,B,M,T),p)},o.prototype.GetAttributeId=o.prototype.GetAttributeId=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),Vn(T,B,M)},o.prototype.GetAttributeIdByName=o.prototype.GetAttributeIdByName=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Jn(T,B,M)},o.prototype.GetAttributeIdByMetadataEntry=o.prototype.GetAttributeIdByMetadataEntry=function(B,M,T){var fe=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),T=T&&typeof T=="object"?T.ptr:_(T),Kn(fe,B,M,T)},o.prototype.GetAttribute=o.prototype.GetAttribute=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(zn(T,B,M),Q)},o.prototype.GetAttributeByUniqueId=o.prototype.GetAttributeByUniqueId=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Tr(T,B,M),Q)},o.prototype.GetMetadata=o.prototype.GetMetadata=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),J(Yn(M,B),f)},o.prototype.GetAttributeMetadata=o.prototype.GetAttributeMetadata=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Lr(T,B,M),f)},o.prototype.GetFaceFromMesh=o.prototype.GetFaceFromMesh=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!De(fe,B,M,T)},o.prototype.GetTriangleStripsFromMesh=o.prototype.GetTriangleStripsFromMesh=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),ee(T,B,M)},o.prototype.GetTrianglesUInt16Array=o.prototype.GetTrianglesUInt16Array=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!E(fe,B,M,T)},o.prototype.GetTrianglesUInt32Array=o.prototype.GetTrianglesUInt32Array=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!D(fe,B,M,T)},o.prototype.GetAttributeFloat=o.prototype.GetAttributeFloat=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!P(fe,B,M,T)},o.prototype.GetAttributeFloatForAllPoints=o.prototype.GetAttributeFloatForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!Y(fe,B,M,T)},o.prototype.GetAttributeIntForAllPoints=o.prototype.GetAttributeIntForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!U(fe,B,M,T)},o.prototype.GetAttributeInt8ForAllPoints=o.prototype.GetAttributeInt8ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!Ce(fe,B,M,T)},o.prototype.GetAttributeUInt8ForAllPoints=o.prototype.GetAttributeUInt8ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ot(fe,B,M,T)},o.prototype.GetAttributeInt16ForAllPoints=o.prototype.GetAttributeInt16ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ei(fe,B,M,T)},o.prototype.GetAttributeUInt16ForAllPoints=o.prototype.GetAttributeUInt16ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ti(fe,B,M,T)},o.prototype.GetAttributeInt32ForAllPoints=o.prototype.GetAttributeInt32ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ri(fe,B,M,T)},o.prototype.GetAttributeUInt32ForAllPoints=o.prototype.GetAttributeUInt32ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ni(fe,B,M,T)},o.prototype.GetAttributeDataArrayForAllPoints=o.prototype.GetAttributeDataArrayForAllPoints=function(B,M,T,fe,H){var Oe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),fe&&typeof fe=="object"&&(fe=fe.ptr),H&&typeof H=="object"&&(H=H.ptr),!!oi(Oe,B,M,T,fe,H)},o.prototype.SkipAttributeTransform=o.prototype.SkipAttributeTransform=function(B){var M=this.ptr;B&&typeof B=="object"&&(B=B.ptr),Ai(M,B)},o.prototype.GetEncodedGeometryType_Deprecated=o.prototype.GetEncodedGeometryType_Deprecated=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),ii(M,B)},o.prototype.DecodeBufferToPointCloud=o.prototype.DecodeBufferToPointCloud=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(ai(T,B,M),p)},o.prototype.DecodeBufferToMesh=o.prototype.DecodeBufferToMesh=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(si(T,B,M),p)},o.prototype.__destroy__=o.prototype.__destroy__=function(){ci(this.ptr)},(function(){function B(){y.ATTRIBUTE_INVALID_TRANSFORM=li(),y.ATTRIBUTE_NO_TRANSFORM=ui(),y.ATTRIBUTE_QUANTIZATION_TRANSFORM=gi(),y.ATTRIBUTE_OCTAHEDRON_TRANSFORM=pi(),y.INVALID=fi(),y.POSITION=di(),y.NORMAL=hi(),y.COLOR=mi(),y.TEX_COORD=Ii(),y.GENERIC=Bi(),y.INVALID_GEOMETRY_TYPE=bi(),y.POINT_CLOUD=Ei(),y.TRIANGULAR_MESH=yi(),y.DT_INVALID=Ci(),y.DT_INT8=Qi(),y.DT_UINT8=xi(),y.DT_INT16=wi(),y.DT_UINT16=vi(),y.DT_INT32=Di(),y.DT_UINT32=Mi(),y.DT_INT64=_i(),y.DT_UINT64=Si(),y.DT_FLOAT32=Pi(),y.DT_FLOAT64=Gi(),y.DT_BOOL=Ri(),y.DT_TYPES_COUNT=Fi(),y.OK=Ui(),y.DRACO_ERROR=ki(),y.IO_ERROR=Ni(),y.INVALID_PARAMETER=Ti(),y.UNSUPPORTED_VERSION=Li(),y.UNKNOWN_VERSION=Oi()}yt?B():it(B)})(),y.Decoder.prototype.GetEncodedGeometryType=function(B){if(B.__class__&&B.__class__===y.DecoderBuffer)return y.Decoder.prototype.GetEncodedGeometryType_Deprecated(B);if(B.byteLength<8)return y.INVALID_GEOMETRY_TYPE;switch(B[7]){case 0:return y.POINT_CLOUD;case 1:return y.TRIANGULAR_MESH;default:return y.INVALID_GEOMETRY_TYPE}},typeof y.onModuleParsed=="function"&&y.onModuleParsed(),ce.return(y))})}})();typeof fA=="object"&&typeof So=="object"?(So.exports=pA,So.exports.default=pA):typeof define=="function"&&define.amd&&define([],function(){return pA})});var Da=Wn((Pg,va)=>{$();var Ac=xa(),ic=wa();va.exports={createEncoderModule:Ac,createDecoderModule:ic}});var cs=Wn((td,ss)=>{$();var Xo=()=>new Proxy(function(){},{get:(e,t)=>t==="__esModule"?!0:t===Symbol.toPrimitive?()=>"":Xo(),apply:()=>Xo(),construct:()=>Xo()});ss.exports=Xo()});$();var ca=new Float32Array(2048);for(let e=0;e<2048;e++)ca[e]=.5*(1-Math.cos(2*Math.PI*e/2047));var la=new Uint16Array(2048);for(let e=0;e<2048;e++){let t=0,r=e;for(let n=0;n<11;n++)t=t<<1|r&1,r>>=1;la[e]=t}var ua=new Float32Array(2048/2),ga=new Float32Array(2048/2);for(let e=0;e<2048/2;e++){let t=-2*Math.PI*e/2048;ua[e]=Math.cos(t),ga[e]=Math.sin(t)}function Vs(e,t){for(let r=0;r<2048;r++){let n=la[r]??0;if(n>r){let o=e[r]??0;e[r]=e[n]??0,e[n]=o;let A=t[r]??0;t[r]=t[n]??0,t[n]=A}}for(let r=2;r<=2048;r<<=1){let n=r>>1,o=2048/r;for(let A=0;A<2048;A+=r)for(let i=0;i<n;i++){let a=i*o,s=ua[a]??1,c=ga[a]??0,l=e[A+i]??0,u=t[A+i]??0,g=e[A+i+n]??0,p=t[A+i+n]??0,f=g*s-p*c,d=g*c+p*s;e[A+i]=l+f,t[A+i]=u+d,e[A+i+n]=l-f,t[A+i+n]=u-d}}}var Co=class e{tempReal=new Float32Array(2048);tempImag=new Float32Array(2048);previousBins=new Float32Array(1024);extractAtTime(t,r,n){let o=t.length,A=o>0?t[0]?.length??0:0,a=Math.round(n*r)-1024;for(let w=0;w<2048;w++){let v=a+w,S=0;v>=0&&v<A&&(o===1?S=t[0]?.[v]??0:o>=2&&(S=((t[0]?.[v]??0)+(t[1]?.[v]??0))*.5)),this.tempReal[w]=S*(ca[w]??1),this.tempImag[w]=0}Vs(this.tempReal,this.tempImag);let s=new Float32Array(1024),c=2/2048;for(let w=0;w<1024;w++){let v=this.tempReal[w]??0,S=this.tempImag[w]??0;s[w]=Math.sqrt(v*v+S*S)*c*2}let l=r/2048,u=Math.max(1,Math.round(20/l)),g=Math.max(u+1,Math.round(150/l)),p=0;for(let w=u;w<=g&&w<1024;w++)p+=(s[w]??0)*(s[w]??0);let f=Math.min(1,Math.sqrt(p/(g-u+1))*4),d=0;for(let w=0;w<1024;w++){let v=(s[w]??0)-(this.previousBins[w]??0);v>0&&(d+=v),this.previousBins[w]=s[w]??0}let h=Math.min(1,d*.15),I=Math.round(300/l),b=Math.min(1023,Math.round(3400/l)),Q=0;for(let w=I;w<=b;w++)Q+=(s[w]??0)*(s[w]??0);let m=Math.min(1,Math.sqrt(Q/(b-I+1))*3.5);return{fftBins:s,bassEnergy:f,drumTransient:h,vocalEnergy:m,timeMs:n*1e3}}static packBufferData(t){let r=new Float32Array(1028);return r.set(t.fftBins,0),r[1024]=t.bassEnergy,r[1025]=t.drumTransient,r[1026]=t.vocalEnergy,r[1027]=t.timeMs,r}static createGpuBuffer(t,r){let n=r?e.packBufferData(r):new Float32Array(1028),o=t.createBuffer({label:"AudioLatentBuffer",size:4112,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST,mappedAtCreation:!0});return new Float32Array(o.getMappedRange()).set(n),o.unmap(),o}static updateGpuBuffer(t,r,n){let o=e.packBufferData(n);t.queue.writeBuffer(r,0,o)}},sa=class{constructor(t,r,n,o){this.channels=t;this.sampleRate=r;this.fps=n;this.totalFrames=o;let A=new Co,i=r||48e3,a=n||30,s=t[0]?.length??0,c=Math.max(10,Math.ceil(s/i*a)+10),l=typeof o=="number"&&Number.isFinite(o)&&o>0?Math.round(o):c;this.frames=new Array(l);for(let u=0;u<l;u++){let g=u/a;this.frames[u]=A.extractAtTime(t,i,g)}}channels;sampleRate;fps;totalFrames;frames=[];gpuBuffers=new WeakMap;getFrameData(t){let r=Math.max(0,Math.min(this.totalFrames-1,Math.round(t)));return this.frames[r]??{fftBins:new Float32Array(1024),bassEnergy:0,drumTransient:0,vocalEnergy:0,timeMs:r/this.fps*1e3}}getGpuBuffer(t,r){let n=this.gpuBuffers.get(t);n||(n=new Map,this.gpuBuffers.set(t,n));let o=Math.max(0,Math.min(this.totalFrames-1,Math.round(r))),A=n.get(o);if(!A){let i=this.getFrameData(o);A=Co.createGpuBuffer(t,i),n.set(o,A)}return A}};$();var Z={create(e=0,t=0,r=0){return[e,t,r]},copy(e){return[e[0],e[1],e[2]]},set(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e},add(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]},subtract(e,t){return[e[0]-t[0],e[1]-t[1],e[2]-t[2]]},multiplyScalar(e,t){return[e[0]*t,e[1]*t,e[2]*t]},dot(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},cross(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]},lengthSq(e){return e[0]*e[0]+e[1]*e[1]+e[2]*e[2]},length(e){return Math.hypot(e[0],e[1],e[2])},distance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])},normalize(e){let t=Math.hypot(e[0],e[1],e[2]);if(t===0)return[0,0,0];let r=1/t;return[e[0]*r,e[1]*r,e[2]*r]},lerp(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},equals(e,t,r=1e-6){return Math.abs(e[0]-t[0])<=r&&Math.abs(e[1]-t[1])<=r&&Math.abs(e[2]-t[2])<=r}};$();var Ee={identity(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},copy(e){return[...e]},multiply(e,t){let r=new Array(16);for(let n=0;n<4;n++)for(let o=0;o<4;o++)r[o*4+n]=e[0+n]*t[o*4+0]+e[4+n]*t[o*4+1]+e[8+n]*t[o*4+2]+e[12+n]*t[o*4+3];return r},translate(e,t,r=0){return[1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1]},scale(e,t,r=1){return[e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1]},rotateX(e){let t=Math.cos(e),r=Math.sin(e);return[1,0,0,0,0,t,r,0,0,-r,t,0,0,0,0,1]},rotateY(e){let t=Math.cos(e),r=Math.sin(e);return[t,0,-r,0,0,1,0,0,r,0,t,0,0,0,0,1]},rotateZ(e){let t=Math.cos(e),r=Math.sin(e);return[t,r,0,0,-r,t,0,0,0,0,1,0,0,0,0,1]},rotateAxis(e,t){let r=Z.normalize(e),n=r[0],o=r[1],A=r[2],i=Math.cos(t),a=Math.sin(t),s=1-i;return[s*n*n+i,s*n*o+a*A,s*n*A-a*o,0,s*n*o-a*A,s*o*o+i,s*o*A+a*n,0,s*n*A+a*o,s*o*A-a*n,s*A*A+i,0,0,0,0,1]},lookAt(e,t,r=[0,-1,0]){let n=Z.subtract(t,e);Z.lengthSq(n)===0?n=[0,0,1]:n=Z.normalize(n);let o=Z.cross(n,r);Z.lengthSq(o)===0?o=[1,0,0]:o=Z.normalize(o);let A=Z.cross(o,n);return[o[0],A[0],n[0],0,o[1],A[1],n[1],0,o[2],A[2],n[2],0,-Z.dot(o,e),-Z.dot(A,e),-Z.dot(n,e),1]},perspective(e,t,r,n){let o=1/Math.tan(e/2),A=1/(n-r);return[o/t,0,0,0,0,o,0,0,0,0,n*A,1,0,0,-r*n*A,0]},orthographic(e,t,r,n,o,A){let i=1/(t-e),a=1/(n-r),s=1/(A-o);return[2*i,0,0,0,0,2*a,0,0,0,0,s,0,-(t+e)*i,-(n+r)*a,-o*s,1]},invert(e){let t=new Array(16);t[0]=e[5]*e[10]*e[15]-e[5]*e[11]*e[14]-e[9]*e[6]*e[15]+e[9]*e[7]*e[14]+e[13]*e[6]*e[11]-e[13]*e[7]*e[10],t[4]=-e[4]*e[10]*e[15]+e[4]*e[11]*e[14]+e[8]*e[6]*e[15]-e[8]*e[7]*e[14]-e[12]*e[6]*e[11]+e[12]*e[7]*e[10],t[8]=e[4]*e[9]*e[15]-e[4]*e[11]*e[13]-e[8]*e[5]*e[15]+e[8]*e[7]*e[13]+e[12]*e[5]*e[11]-e[12]*e[7]*e[9],t[12]=-e[4]*e[9]*e[14]+e[4]*e[10]*e[13]+e[8]*e[5]*e[14]-e[8]*e[6]*e[13]-e[12]*e[5]*e[10]+e[12]*e[6]*e[9],t[1]=-e[1]*e[10]*e[15]+e[1]*e[11]*e[14]+e[9]*e[2]*e[15]-e[9]*e[3]*e[14]-e[13]*e[2]*e[11]+e[13]*e[3]*e[10],t[5]=e[0]*e[10]*e[15]-e[0]*e[11]*e[14]-e[8]*e[2]*e[15]+e[8]*e[3]*e[14]+e[12]*e[2]*e[11]-e[12]*e[3]*e[10],t[9]=-e[0]*e[9]*e[15]+e[0]*e[11]*e[13]+e[8]*e[1]*e[15]-e[8]*e[3]*e[13]-e[12]*e[1]*e[11]+e[12]*e[3]*e[9],t[13]=e[0]*e[9]*e[14]-e[0]*e[10]*e[13]-e[8]*e[1]*e[14]+e[8]*e[2]*e[13]+e[12]*e[1]*e[10]-e[12]*e[2]*e[9],t[2]=e[1]*e[6]*e[15]-e[1]*e[7]*e[14]-e[5]*e[2]*e[15]+e[5]*e[3]*e[14]+e[13]*e[2]*e[7]-e[13]*e[3]*e[6],t[6]=-e[0]*e[6]*e[15]+e[0]*e[7]*e[14]+e[4]*e[2]*e[15]-e[4]*e[3]*e[14]-e[12]*e[2]*e[7]+e[12]*e[3]*e[6],t[10]=e[0]*e[5]*e[15]-e[0]*e[7]*e[13]-e[4]*e[1]*e[15]+e[4]*e[3]*e[13]+e[12]*e[1]*e[7]-e[12]*e[3]*e[5],t[14]=-e[0]*e[5]*e[14]+e[0]*e[6]*e[13]+e[4]*e[1]*e[14]-e[4]*e[2]*e[13]-e[12]*e[1]*e[6]+e[12]*e[2]*e[5],t[3]=-e[1]*e[6]*e[11]+e[1]*e[7]*e[10]+e[5]*e[2]*e[11]-e[5]*e[3]*e[10]-e[9]*e[2]*e[7]+e[9]*e[3]*e[6],t[7]=e[0]*e[6]*e[11]-e[0]*e[7]*e[10]-e[4]*e[2]*e[11]+e[4]*e[3]*e[10]+e[8]*e[2]*e[7]-e[8]*e[3]*e[6],t[11]=-e[0]*e[5]*e[11]+e[0]*e[7]*e[9]+e[4]*e[1]*e[11]-e[4]*e[3]*e[9]-e[8]*e[1]*e[7]+e[8]*e[3]*e[5],t[15]=e[0]*e[5]*e[10]-e[0]*e[6]*e[9]-e[4]*e[1]*e[10]+e[4]*e[2]*e[9]+e[8]*e[1]*e[6]-e[8]*e[2]*e[5];let r=e[0]*t[0]+e[1]*t[4]+e[2]*t[8]+e[3]*t[12];if(Math.abs(r)<1e-12)return null;r=1/r;for(let n=0;n<16;n++)t[n]*=r;return t},transpose(e){return[e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]]},projectPoint(e,t){let r=t[0],n=t[1],o=t[2],A=e[0]*r+e[4]*n+e[8]*o+e[12],i=e[1]*r+e[5]*n+e[9]*o+e[13],a=e[2]*r+e[6]*n+e[10]*o+e[14],s=e[3]*r+e[7]*n+e[11]*o+e[15],c=Math.abs(s)>1e-6?1/s:1;return[A*c,i*c,a*c]},projectRectangle(e,t,r){return[Ee.projectPoint(e,[0,0,0]),Ee.projectPoint(e,[t,0,0]),Ee.projectPoint(e,[t,r,0]),Ee.projectPoint(e,[0,r,0])]},toFloat32Array(e){return new Float32Array(e)}};$();function qn(e,t,r=3){let n=0,o=1,A=1,i=0;for(let a=0;a<r;a++){let s=Math.sin(e*o*2*Math.PI+t+a*1.7),c=Math.cos(e*o*1.414*Math.PI+t*2.1+a*.9);n+=(s*.6+c*.4)*A,i+=A,o*=2,A*=.5}return i>0?n/i:0}var qr={createDefaultCamera(e,t,r=50){let n=r*Math.PI/180,o=t/2/Math.tan(n/2);return{eye:[e/2,t/2,-o],target:[e/2,t/2,0],up:[0,-1,0],fov:r,aspect:Math.max(1e-4,e/t),near:1,far:5e4,zoom:1,focusDistance:o,fStop:2.8,maxBlurRadius:32}},computeViewMatrix(e){return Ee.lookAt(e.eye,e.target,e.up)},computeProjectionMatrix(e){let t=e.fov*Math.PI/180,r=Ee.perspective(t,e.aspect,e.near,e.far);return e.zoom!==1&&e.zoom>0&&(r[0]*=e.zoom,r[5]*=e.zoom),r},computeViewProjectionMatrix(e){let t=qr.computeViewMatrix(e),r=qr.computeProjectionMatrix(e);return Ee.multiply(r,t)},dolly(e,t,r){let n=Z.normalize(Z.subtract(t,e)),o=Z.multiplyScalar(n,r);return{eye:Z.add(e,o),target:t}},truckPedestal(e,t,r,n,o){let A=Z.normalize(Z.subtract(t,e)),i=Z.normalize(Z.cross(A,r)),a=Z.cross(i,A),s=Z.multiplyScalar(i,n),c=Z.multiplyScalar(a,o),l=Z.add(s,c);return{eye:Z.add(e,l),target:Z.add(t,l)}},orbit(e,t,r,n){let o=r*Math.PI/180,A=n*Math.PI/180,i=Math.cos(A),a=Math.sin(A),s=Math.cos(o),c=Math.sin(o),l=e[0]+t*i*c,u=e[1]-t*a,g=e[2]-t*i*s;return[l,u,g]},applyOrientation(e,t,r,n){if(t===0&&r===0&&n===0)return e;let o=Z.normalize(Z.subtract(e.target,e.eye)),A=Z.normalize(Z.cross(o,e.up)),i=Z.cross(A,o),a=Z.distance(e.eye,e.target),s=o,c=i;if(r!==0){let g=r*Math.PI/180,p=Math.cos(g),f=Math.sin(g);s=Z.normalize(Z.subtract(Z.multiplyScalar(s,p),Z.multiplyScalar(A,f)))}let l=Z.normalize(Z.cross(s,c));if(t!==0){let g=t*Math.PI/180,p=Math.cos(g),f=Math.sin(g);s=Z.normalize(Z.add(Z.multiplyScalar(s,p),Z.multiplyScalar(c,f))),c=Z.normalize(Z.cross(l,s))}if(n!==0){let g=n*Math.PI/180,p=Math.cos(g),f=Math.sin(g);c=Z.normalize(Z.add(Z.multiplyScalar(c,p),Z.multiplyScalar(l,f)))}let u=Z.add(e.eye,Z.multiplyScalar(s,a));return{...e,target:u,up:c}},applyCameraShake(e,t,r){let{translationAmplitude:n,rotationAmplitude:o,frequency:A=2.5,octaves:i=3,seed:a=42}=r;if(n<=0&&o<=0)return e;let s=t*A,c=qn(s,a,i)*n,l=qn(s,a+101.5,i)*n,u=qn(s,a+203.7,i)*(n*.5),g=qn(s,a+307.1,i)*o,p=qn(s,a+409.3,i)*o,f=Z.normalize(Z.subtract(e.target,e.eye)),d=Z.normalize(Z.cross(f,e.up)),h=Z.cross(d,f),I=Z.add(Z.multiplyScalar(d,c),Z.add(Z.multiplyScalar(h,l),Z.multiplyScalar(f,u))),b=Z.add(e.eye,I),Q=Z.add(e.target,Z.add(Z.multiplyScalar(d,p*10),Z.multiplyScalar(h,g*10)));return{...e,eye:b,target:Q}},computeCircleOfConfusion(e,t,r,n,o=32){if(t<=0||n<=0||e<=0)return 0;let A=Math.abs(e-t),i=r/n,a=A/e*i*.5;return Math.min(o,Math.max(0,a))},computeCameraFrustumPlanes(e){let t=r=>{let n=Math.hypot(r[0],r[1],r[2]);return n===0?r:[r[0]/n,r[1]/n,r[2]/n,r[3]/n]};return{left:t([e[3]+e[0],e[7]+e[4],e[11]+e[8],e[15]+e[12]]),right:t([e[3]-e[0],e[7]-e[4],e[11]-e[8],e[15]-e[12]]),bottom:t([e[3]+e[1],e[7]+e[5],e[11]+e[9],e[15]+e[13]]),top:t([e[3]-e[1],e[7]-e[5],e[11]-e[9],e[15]-e[13]]),near:t([e[2],e[6],e[10],e[14]]),far:t([e[3]-e[2],e[7]-e[6],e[11]-e[10],e[15]-e[14]])}},isBoxInFrustum(e,t,r){let n=[r.left,r.right,r.bottom,r.top,r.near,r.far];for(let o of n){let A=o[0]>0?t[0]:e[0],i=o[1]>0?t[1]:e[1],a=o[2]>0?t[2]:e[2];if(o[0]*A+o[1]*i+o[2]*a+o[3]<0)return!1}return!0}};$();var Js={studio:{top:"#9da3ad",horizon:"#5d626b",bottom:"#202226",softboxes:3.5},soft:{top:"#f1efea",horizon:"#cfcac1",bottom:"#77726a",softboxes:1.2},sunset:{top:"#4d63a3",horizon:"#ff9a5c",bottom:"#3b2a28",softboxes:1},night:{top:"#121a3a",horizon:"#1f2950",bottom:"#05060b",softboxes:.5},neutral:{top:"#9a9a9a",horizon:"#808080",bottom:"#5c5c5c",softboxes:0}},Ks={none:0,aces:1,agx:2,neutral:3};function Or(e){let t=Zi(e)??[0,0,0,1],r=n=>n<=.04045?n/12.92:((n+.055)/1.055)**2.4;return[r(t[0]),r(t[1]),r(t[2])]}function pa(e){let t=Js[e.preset??"studio"],r=e.intensity??1,n=o=>[o[0]*r,o[1]*r,o[2]*r];return{top:n(Or(e.top??t.top)),horizon:n(Or(e.horizon??t.horizon)),bottom:n(Or(e.bottom??t.bottom)),softboxes:(e.softboxes??t.softboxes)*r,rotationRad:(e.rotation??0)*Math.PI/180,exposureMultiplier:2**(e.exposure??0),toneMapping:Ks[e.toneMapping??"neutral"],fog:e.fog?{color:Or(e.fog.color),start:e.fog.start,end:e.fog.end,opacity:Math.max(0,Math.min(1,e.fog.opacity??1))}:void 0,floor:e.floor?{y:e.floor.y,color:Or(e.floor.color??"#08070a"),reflectivity:Math.max(0,Math.min(1,e.floor.reflectivity??.35)),roughness:Math.max(0,Math.min(1,e.floor.roughness??.35)),fadeDistance:Math.max(0,e.floor.fadeDistance??900),opacity:Math.max(0,Math.min(1,e.floor.opacity??1))}:void 0}}$();var fa=8,sA=768;function aA(e){if(!e)return[1,1,1];if(Array.isArray(e)){let o=e[0]??1,A=e[1]??1,i=e[2]??1;return[o>1?o/255:o,A>1?A/255:A,i>1?i/255:i]}if(typeof e=="object"&&e!==null){let o=e.r??1,A=e.g??1,i=e.b??1;return[o>1?o/255:o,A>1?A/255:A,i>1?i/255:i]}if(typeof e!="string")return[1,1,1];let t=e.trim().toLowerCase();if(t.startsWith("#")){let o=t.slice(1);if(o.length===3){let A=Number.parseInt(o[0]+o[0],16)/255,i=Number.parseInt(o[1]+o[1],16)/255,a=Number.parseInt(o[2]+o[2],16)/255;return[A,i,a]}if(o.length>=6){let A=Number.parseInt(o.slice(0,2),16)/255,i=Number.parseInt(o.slice(2,4),16)/255,a=Number.parseInt(o.slice(4,6),16)/255;return[A,i,a]}}let r=t.match(/rgba?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/);if(r){let o=Number.parseFloat(r[1])/255,A=Number.parseFloat(r[2])/255,i=Number.parseFloat(r[3])/255;return[Math.max(0,Math.min(1,o)),Math.max(0,Math.min(1,A)),Math.max(0,Math.min(1,i))]}let n=t.match(/hsla?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)%?\s*,\s*([\d.]+)%?/);if(n){let o=Number.parseFloat(n[1])/360,A=Number.parseFloat(n[2])/100,i=Number.parseFloat(n[3])/100;return zs(o,A,i)}return[1,1,1]}function zs(e,t,r){if(t===0)return[r,r,r];let n=(i,a,s)=>{let c=s;return c<0&&(c+=1),c>1&&(c-=1),c<1/6?i+(a-i)*6*c:c<1/2?a:c<2/3?i+(a-i)*(2/3-c)*6:i},o=r<.5?r*(1+t):r+t-r*t,A=2*r-o;return[n(A,o,e+1/3),n(A,o,e),n(A,o,e-1/3)]}var vt={computeNormalMatrix(e){let t=Ee.invert(e);return t?[t[0],t[4],t[8],0,t[1],t[5],t[9],0,t[2],t[6],t[10],0,0,0,0,1]:Ee.identity()},processLight(e){let t=aA(e.color),r=e.intensity??1,n=e.position?e.position[0]:e.x??0,o=e.position?e.position[1]:e.y??0,A=e.position?e.position[2]:e.z??0,i=e.lightType??e.type??"directional",a=1;i==="ambient"?a=0:i==="directional"?a=1:i==="point"?a=2:i==="spot"&&(a=3);let s=[0,0,-1];if(e.direction)s=Z.normalize(e.direction);else if(e.target||e.targetX!==void 0||e.targetY!==void 0||e.targetZ!==void 0){let I=e.target?e.target[0]:e.targetX??n,b=e.target?e.target[1]:e.targetY??o,Q=e.target?e.target[2]:e.targetZ??A,m=[I,b,Q],w=Z.subtract(m,[n,o,A]);Z.length(w)>1e-4&&(s=Z.normalize(w))}let c=Math.max(1,e.radius??1e3),l=e.decay??2,u=Math.max(.1,Math.min(180,e.angle??45)),g=Math.max(0,Math.min(1,e.penumbra??.2)),p=u*Math.PI/180,f=p*(1-g),d=Math.cos(p),h=Math.cos(f);return{posType:[n,o,A,a],dirRadius:[s[0],s[1],s[2],c],colorIntensity:[t[0],t[1],t[2],r],spotParams:[d,h,l,0]}},packLightsUniforms(e,t,r,n=!1){let o=new Float32Array(sA/4);if(vt.packPhysicalBlock(o,e??[],t,r,n),(!e||e.length===0)&&!t)return o[4]=0,o[5]=0,o;let A=0,i=0,a=0,s=[];for(let l of e)if((l.lightType??l.type)==="ambient"){let g=aA(l.color),p=l.intensity??1;A+=g[0]*p,i+=g[1]*p,a+=g[2]*p}else s.push(vt.processLight(l));o[0]=A,o[1]=i,o[2]=a,o[3]=1,o[4]=s.length,o[5]=1;let c=8;for(let l=0;l<fa;l++){if(l<s.length){let u=s[l];o[c+0]=u.posType[0],o[c+1]=u.posType[1],o[c+2]=u.posType[2],o[c+3]=u.posType[3],o[c+4]=u.dirRadius[0],o[c+5]=u.dirRadius[1],o[c+6]=u.dirRadius[2],o[c+7]=u.dirRadius[3],o[c+8]=u.colorIntensity[0],o[c+9]=u.colorIntensity[1],o[c+10]=u.colorIntensity[2],o[c+11]=u.colorIntensity[3],o[c+12]=u.spotParams[0],o[c+13]=u.spotParams[1],o[c+14]=u.spotParams[2],o[c+15]=u.spotParams[3]}else for(let u=0;u<16;u++)o[c+u]=0;c+=16}return o},packDirectLights(e,t=[]){let r=e.filter(A=>(A.lightType??A.type)!=="ambient"),n=new Float32Array(Math.max(1,r.length)*40),o=new Map(t.map((A,i)=>[A.lightIndex,i]));for(let[A,i]of r.entries()){let a=vt.processLight(i),s=A*40;n.set(a.posType,s),n.set(a.dirRadius,s+4),n.set(a.colorIntensity,s+8),n.set(a.spotParams,s+12);let c=o.get(A),l=c===void 0?void 0:t[c];if(l&&c!==void 0){for(let u=0;u<16;u++)n[s+16+u]=l.matrix[u]??0;n.set([l.softness,l.mapSize,c,1],s+32),n.set([l.bias,l.normalOffset,l.darkness,0],s+36)}}return n},shadowCasterIndex(e){let t=0;for(let r of e){let n=r.lightType??r.type;if(n!=="ambient"){if(r.castShadow&&(n==="directional"||n==="spot"))return t;t++}}return-1},packPhysicalBlock(e,t,r,n,o=!1){let A=8+fa*16,i=0,a=0,s=0;for(let c of t){if((c.lightType??c.type)!=="ambient")continue;let[l,u,g]=aA(c.color),p=c.intensity??1,f=d=>d<=.04045?d/12.92:((d+.055)/1.055)**2.4;i+=f(l)*p,a+=f(u)*p,s+=f(g)*p}if(e[A+0]=i,e[A+1]=a,e[A+2]=s,e[A+3]=1,r){let c=pa(r);e[6]=1,e[7]=c.toneMapping,e[A+3]=c.exposureMultiplier,e.set([...c.top,c.rotationRad],A+4),e.set([...c.horizon,c.softboxes],A+8),e.set([...c.bottom,1],A+12),c.fog&&(e.set([...c.fog.color,1],A+16),e.set([c.fog.start,c.fog.end,c.fog.opacity,0],A+20))}if(n&&n.lightIndex>=0){e.set([1,n.lightIndex,n.softness,n.mapSize],A+24),e.set([n.bias,n.normalOffset,n.darkness,0],A+28);for(let c=0;c<16;c++)e[A+32+c]=n.matrix[c]??0}r?.floor?(e[A+48]=r.floor.y,e[A+49]=r.floor.fadeDistance??900,e[A+50]=o?1:0,e[A+51]=0):(e[A+48]=0,e[A+49]=0,e[A+50]=0,e[A+51]=0)}};$();var dr=class e{samples=[];frames=[];totalLength=0;constructor(t){if(t.length<2)throw new Error("Path3D requires at least 2 coordinate samples");this.samples=t,this.totalLength=t[t.length-1].distance,this.computeRotationMinimizingFrames()}computeRotationMinimizingFrames(){let t=this.samples.length;this.frames=new Array(t);let r=this.samples[0].tangent,n=[0,-1,0];Math.abs(Z.dot(r,n))>.95&&(n=[0,0,1]);let o=Z.normalize(Z.subtract(n,Z.multiplyScalar(r,Z.dot(n,r))));Z.lengthSq(o)<1e-4&&(o=[1,0,0]);let A=Z.normalize(Z.cross(r,o));this.frames[0]={normal:o,binormal:A,rotation:this.eulerFromFrame(r,o,A)};for(let i=0;i<t-1;i++){let a=this.samples[i].position,s=this.samples[i+1].position,c=this.samples[i].tangent,l=this.samples[i+1].tangent,u=this.frames[i].normal,g=Z.subtract(s,a),p=Z.dot(g,g),f;if(p>1e-8){let h=Z.subtract(c,Z.multiplyScalar(g,2*Z.dot(g,c)/p)),I=Z.subtract(u,Z.multiplyScalar(g,2*Z.dot(g,u)/p)),b=Z.subtract(l,h),Q=Z.dot(b,b);Q>1e-8?f=Z.subtract(I,Z.multiplyScalar(b,2*Z.dot(b,I)/Q)):f=I}else f=u;f=Z.normalize(Z.subtract(f,Z.multiplyScalar(l,Z.dot(l,f))));let d=Z.normalize(Z.cross(l,f));this.frames[i+1]={normal:f,binormal:d,rotation:this.eulerFromFrame(l,f,d)}}}eulerFromFrame(t,r,n){let o=Math.asin(Math.max(-1,Math.min(1,-t[1])))*(180/Math.PI),A=Math.atan2(t[0],t[2])*(180/Math.PI),i=Math.atan2(r[0],r[1])*(180/Math.PI);return[o,A,i]}getSamples(){return this.samples}getPoints(t=64){let r=Math.max(2,Math.round(t)),n=[];for(let o=0;o<r;o++)n.push(this.getPointAt(o/(r-1)).position);return n}getPointAt(t){let n=Math.max(0,Math.min(1,t))*this.totalLength;return this.getPointAtDistance(n)}getPointAtDistance(t){let r=Math.max(0,Math.min(this.totalLength,t)),n=this.samples.length,o=0,A=n-1;for(;o<A;){let Q=o+A>>1;this.samples[Q].distance<r?o=Q+1:A=Q}let i=Math.max(1,o),a=i-1,s=this.samples[a],c=this.samples[i],l=c.distance-s.distance,u=l>1e-6?(r-s.distance)/l:0,g=Z.lerp(s.position,c.position,u),p=Z.normalize(Z.lerp(s.tangent,c.tangent,u)),f=this.frames[a],d=this.frames[i],h=Z.normalize(Z.lerp(f.normal,d.normal,u)),I=Z.normalize(Z.cross(p,h)),b=[f.rotation[0]+(d.rotation[0]-f.rotation[0])*u,f.rotation[1]+(d.rotation[1]-f.rotation[1])*u,f.rotation[2]+(d.rotation[2]-f.rotation[2])*u];return{position:g,tangent:p,normal:h,binormal:I,distance:r,t:this.totalLength>0?r/this.totalLength:0,rotation:b}}static catmullRom(t,r={}){if(t.length<2)throw new Error("Catmull-Rom spline requires at least 2 waypoints");let n=!!r.closed,o=r.samplesPerSegment??40,A=[];if(n)A.push(t[t.length-1]),A.push(...t),A.push(t[0]),A.push(t[1]);else{let s=t[0],c=t[1],l=t[t.length-1],u=t[t.length-2];A.push(Z.subtract(s,Z.subtract(c,s))),A.push(...t),A.push(Z.add(l,Z.subtract(l,u)))}let i=n?t.length:t.length-1,a=[];for(let s=0;s<i;s++){let c=A[s],l=A[s+1],u=A[s+2],g=A[s+3],p=s===i-1?o:o-1;for(let f=0;f<=p;f++){let d=f/o,h=d*d,I=h*d,b=-.5*I+h-.5*d,Q=1.5*I-2.5*h+1,m=-1.5*I+2*h+.5*d,w=.5*I-.5*h,v=[b*c[0]+Q*l[0]+m*u[0]+w*g[0],b*c[1]+Q*l[1]+m*u[1]+w*g[1],b*c[2]+Q*l[2]+m*u[2]+w*g[2]],S=-1.5*h+2*d-.5,N=4.5*h-5*d,_=-4.5*h+4*d+.5,G=1.5*h-1*d,j=[S*c[0]+N*l[0]+_*u[0]+G*g[0],S*c[1]+N*l[1]+_*u[1]+G*g[1],S*c[2]+N*l[2]+_*u[2]+G*g[2]],R=Z.normalize(j);a.push({position:v,tangent:R})}}return e.fromRawSamples(a)}static fromRawSamples(t){let r=0,n=t.map((o,A)=>(A>0&&(r+=Z.distance(o.position,t[A-1].position)),{position:o.position,tangent:o.tangent,distance:r}));if(n.length===0)throw new TypeError("Path3D needs samples");return new e(n)}static bezier(t,r=50){if(t.length===0)throw new Error("Bezier path requires at least 1 segment");let n=[];for(let o=0;o<t.length;o++){let A=t[o],i=o===t.length-1?r:r-1;for(let a=0;a<=i;a++){let s=a/r,c=1-s,l=c*c,u=l*c,g=s*s,p=g*s,f=[u*A.p0[0]+3*l*s*A.p1[0]+3*c*g*A.p2[0]+p*A.p3[0],u*A.p0[1]+3*l*s*A.p1[1]+3*c*g*A.p2[1]+p*A.p3[1],u*A.p0[2]+3*l*s*A.p1[2]+3*c*g*A.p2[2]+p*A.p3[2]],d=[3*l*(A.p1[0]-A.p0[0])+6*c*s*(A.p2[0]-A.p1[0])+3*g*(A.p3[0]-A.p2[0]),3*l*(A.p1[1]-A.p0[1])+6*c*s*(A.p2[1]-A.p1[1])+3*g*(A.p3[1]-A.p2[1]),3*l*(A.p1[2]-A.p0[2])+6*c*s*(A.p2[2]-A.p1[2])+3*g*(A.p3[2]-A.p2[2])],h=Z.normalize(d);n.push({position:f,tangent:h})}}return e.fromRawSamples(n)}static helix(t){let{center:r,radius:n,pitch:o,turns:A,axis:i="z",samplesPerTurn:a=60}=t,s=Math.max(10,Math.round(A*a)),c=[];for(let l=0;l<=s;l++){let u=l/s,g=u*A*Math.PI*2,p=(u-.5)*o*A,f=Math.cos(g),d=Math.sin(g),h,I;i==="z"?(h=[r[0]+n*f,r[1]+n*d,r[2]+p],I=[-n*d,n*f,o*A/(A*Math.PI*2)]):i==="y"?(h=[r[0]+n*f,r[1]+p,r[2]+n*d],I=[-n*d,o*A/(A*Math.PI*2),n*f]):(h=[r[0]+p,r[1]+n*f,r[2]+n*d],I=[o*A/(A*Math.PI*2),-n*d,n*f]),c.push({position:h,tangent:Z.normalize(I)})}return e.fromRawSamples(c)}static circle(t){let{center:r,radius:n,startAngleDeg:o=0,endAngleDeg:A=360,samples:i=128}=t,a=o*Math.PI/180,s=A*Math.PI/180,c=[];for(let l=0;l<=i;l++){let u=a+(s-a)*(l/i),g=Math.cos(u),p=Math.sin(u),f=[r[0]+n*g,r[1],r[2]+n*p],d=[-n*p,0,n*g];c.push({position:f,tangent:Z.normalize(d)})}return e.fromRawSamples(c)}};$();Pt();$();Pt();var cA={".ktx2":"image/ktx2",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif",".tif":"image/tiff",".tiff":"image/tiff",".avif":"image/avif"};function Xn(e){return cA[$e.extname(e).toLowerCase()]??"image/png"}function Qo(e){let t=$e.extname(e.replace(/\\/g,"/")).toLowerCase();return!t||t in cA}function Zn(e,t){if(!e||typeof Re>"u"||!Re.existsSync||!Qo(e))return;let r=e.trim().replace(/^file:\/\//,"");try{r=decodeURIComponent(r)}catch{}let n=r.replace(/\\/g,"/"),o=n.split("/").pop()??n,A=[];if($e.isAbsolute(n)&&A.push(n),t){A.push($e.resolve(t,n)),A.push($e.join(t,o)),A.push($e.join(t,"textures",o));try{for(let i of Re.readdirSync(t))i.toLowerCase().endsWith(".fbm")&&A.push($e.join(t,i,o))}catch{}}for(let i of A)try{if(Re.existsSync(i)&&Re.statSync(i).isFile())return{bytes:new Uint8Array(Re.readFileSync(i)),mime:Xn(i)}}catch{}}function Xr(e,t,r){let n=Qo(r)?"was not found":`is in an unsupported format (use ${Object.keys(cA).join(", ")})`;console.warn(`[${e}] Texture "${r}" for material "${t}" ${n}; the material renders without it.`)}var $n=class e{static parse(t,r,n){let o=typeof r=="object"&&r!==null?r:n??{},A=typeof r=="string"?r:o.mtlText,i=[],a=[],s=[],c=[],l={materialName:"default",faces:[]};c.push(l);let u={};A&&Object.assign(u,e.loadTextures(e.parseMtl(A),o.basePath));let g=t.split(/\r?\n/);for(let y=0;y<g.length;y++){let ye=g[y]?.trim();if(!ye||ye.startsWith("#"))continue;let Qe=ye.split(/\s+/),xe=Qe[0]?.toLowerCase();if(xe==="mtllib"){let le=Qe.slice(1).join(" ").trim();if(o.basePath&&typeof Re<"u"&&Re.existsSync)try{let ge=$e.resolve(o.basePath,le);if(Re.existsSync(ge)){let be=Re.readFileSync(ge,"utf-8");Object.assign(u,e.loadTextures(e.parseMtl(be),$e.dirname(ge)))}}catch{}}else if(xe==="v"){let le=Number.parseFloat(Qe[1]??"0"),ge=Number.parseFloat(Qe[2]??"0"),be=Number.parseFloat(Qe[3]??"0");i.push([le,ge,be])}else if(xe==="vn"){let le=Number.parseFloat(Qe[1]??"0"),ge=Number.parseFloat(Qe[2]??"0"),be=Number.parseFloat(Qe[3]??"0");a.push([le,ge,be])}else if(xe==="vt"){let le=Number.parseFloat(Qe[1]??"0"),ge=Qe[2]!==void 0?Number.parseFloat(Qe[2]):0;s.push([le,ge])}else if(xe==="usemtl"){let le=Qe[1]??"default";l.faces.length>0?(l={materialName:le,faces:[]},c.push(l)):l.materialName=le}else if(xe==="f"){let le=[];for(let ge=1;ge<Qe.length;ge++){let be=Qe[ge];if(!be)continue;let we=be.split("/"),_e=Number.parseInt(we[0]??"0",10),Ge=we[1]&&we[1].length>0?Number.parseInt(we[1],10):0,Ue=we[2]&&we[2].length>0?Number.parseInt(we[2],10):0;_e<0&&(_e=i.length+_e+1),Ge<0&&(Ge=s.length+Ge+1),Ue<0&&(Ue=a.length+Ue+1),le.push({v:_e-1,vt:Ge-1,vn:Ue-1})}if(le.length>=3)for(let ge=1;ge<le.length-1;ge++){let be=le[0],we=le[ge],_e=le[ge+1];be&&we&&_e&&l.faces.push([be,we,_e])}}}let p=1/0,f=1/0,d=1/0,h=-1/0,I=-1/0,b=-1/0;for(let y of i){let[ye,Qe,xe]=y;ye===void 0||Qe===void 0||xe===void 0||(ye<p&&(p=ye),Qe<f&&(f=Qe),xe<d&&(d=xe),ye>h&&(h=ye),Qe>I&&(I=Qe),xe>b&&(b=xe))}Number.isFinite(p)||(p=-1,f=-1,d=-1,h=1,I=1,b=1);let Q=(p+h)*.5,m=(f+I)*.5,w=(d+b)*.5,v=Math.max(1e-4,h-p),S=Math.max(1e-4,I-f),N=Math.max(1e-4,b-d),_=Math.max(v,S,N),G=1;o.normalizeSize&&o.normalizeSize>0&&(G=o.normalizeSize/_),typeof o.scale=="number"&&(G*=o.scale);let j=o.center??!1,R=j?Q:0,K=j?m:0,z=j?w:0,J=[];for(let y=0;y<c.length;y++){let ye=c[y];if(!ye||ye.faces.length===0)continue;let Qe=new Map,xe=[],le=[],ge=[],be=[],we=!1;for(let Ue of ye.faces)for(let Me of Ue){let He=`${Me.v}_${Me.vt}_${Me.vn}`,Te=Qe.get(He);if(Te===void 0){Te=xe.length/3,Qe.set(He,Te);let je=i[Me.v]??[0,0,0],Le=((je[0]??0)-R)*G,Je=((je[1]??0)-K)*G,nt=((je[2]??0)-z)*G;if(xe.push(Le,Je,nt),Me.vt>=0&&s[Me.vt]){let qe=s[Me.vt];ge.push(qe[0]??0,1-(qe[1]??0))}else ge.push(0,0);if(Me.vn>=0&&a[Me.vn]){we=!0;let qe=a[Me.vn];le.push(qe[0]??0,qe[1]??0,qe[2]??0)}else le.push(0,0,0)}be.push(Te)}if(!we||o.smoothNormals){let Ue=new Float32Array(xe.length);for(let Me=0;Me<be.length;Me+=3){let He=be[Me],Te=be[Me+1],je=be[Me+2],Le=[xe[He*3],xe[He*3+1],xe[He*3+2]],Je=[xe[Te*3],xe[Te*3+1],xe[Te*3+2]],nt=[xe[je*3],xe[je*3+1],xe[je*3+2]],qe=Z.subtract(Je,Le),yt=Z.subtract(nt,Le),ze=Z.cross(qe,yt);Ue[He*3]+=ze[0],Ue[He*3+1]+=ze[1],Ue[He*3+2]+=ze[2],Ue[Te*3]+=ze[0],Ue[Te*3+1]+=ze[1],Ue[Te*3+2]+=ze[2],Ue[je*3]+=ze[0],Ue[je*3+1]+=ze[1],Ue[je*3+2]+=ze[2]}for(let Me=0;Me<xe.length/3;Me++){let He=Ue[Me*3],Te=Ue[Me*3+1],je=Ue[Me*3+2],Le=Math.hypot(He,Te,je)||1;le[Me*3]=He/Le,le[Me*3+1]=Te/Le,le[Me*3+2]=je/Le}}let Ge=xe.length/3>65535?new Uint32Array(be):new Uint16Array(be);J.push({id:`mesh_${y}`,name:ye.materialName,positions:new Float32Array(xe),normals:new Float32Array(le),uvs:new Float32Array(ge),indices:Ge,materialName:ye.materialName})}let W=(p-R)*G,X=(f-K)*G,Ae=(d-z)*G,re=(h-R)*G,oe=(I-K)*G,ne=(b-z)*G,ie=re-W,he=oe-X,F=ne-Ae,Be=(W+re)*.5,Se=(X+oe)*.5,Pe=(Ae+ne)*.5,Ie=Math.hypot(ie,he,F)*.5;return{meshes:J,materials:u,animations:[],bounds:{min:[W,X,Ae],max:[re,oe,ne],center:[Be,Se,Pe],size:[ie,he,F],boundingSphereRadius:Ie}}}static parseMtl(t){let r={},n=null,o=t.split(/\r?\n/);for(let A of o){let i=A.trim();if(!i||i.startsWith("#"))continue;let a=i.split(/\s+/),s=a[0]?.toLowerCase();if(s==="newmtl"){let c=a[1]??"default";n={name:c,diffuseColor:[1,1,1,1],specularColor:[1,1,1],ambientColor:[.2,.2,.2],shininess:32,opacity:1},r[c]=n}else if(n)if(s==="kd"){let c=Number.parseFloat(a[1]??"1"),l=Number.parseFloat(a[2]??"1"),u=Number.parseFloat(a[3]??"1");n.diffuseColor=[c,l,u,n.diffuseColor?.[3]??1]}else if(s==="ks"){let c=Number.parseFloat(a[1]??"1"),l=Number.parseFloat(a[2]??"1"),u=Number.parseFloat(a[3]??"1");n.specularColor=[c,l,u],n.specularIntensity=(c+l+u)/3}else if(s==="ka"){let c=Number.parseFloat(a[1]??"0.2"),l=Number.parseFloat(a[2]??"0.2"),u=Number.parseFloat(a[3]??"0.2");n.ambientColor=[c,l,u]}else if(s==="ns")n.shininess=Number.parseFloat(a[1]??"32");else if(s==="d"||s==="tr"){let c=Number.parseFloat(a[1]??"1");n.opacity=s==="d"?c:1-c,n.diffuseColor&&(n.diffuseColor[3]=n.opacity)}else if(s==="map_kd"){n.diffuseTexture=e.mapFileName(a);let c=a.findIndex(l=>l.toLowerCase()==="-clamp");n.textureWrap=c>0&&a[c+1]?.toLowerCase()==="on"?"clamp":"repeat"}else(s==="norm"||s==="map_kn")&&(n.normalTexture=e.mapFileName(a))}return r}static MAP_OPTION_ARGS={"-blendu":1,"-blendv":1,"-cc":1,"-clamp":1,"-texres":1,"-bm":1,"-boost":1,"-imfchan":1,"-type":1,"-mm":2};static mapFileName(t){let r=1;for(;r<t.length&&t[r]?.startsWith("-");){let n=t[r].toLowerCase();if(r++,n==="-o"||n==="-s"||n==="-t")for(let o=0;o<3&&r<t.length&&!Number.isNaN(Number(t[r]));o++)r++;else r+=e.MAP_OPTION_ARGS[n]??0}return t.slice(r).join(" ")}static loadTextures(t,r){if(!r)return t;for(let n of Object.values(t)){if(n.diffuseTexture&&!n.diffuseTextureBuffer){let o=Zn(n.diffuseTexture,r);o?(n.diffuseTextureBuffer=o.bytes,n.diffuseTextureMime=o.mime):Xr("ObjLoader",n.name,n.diffuseTexture)}if(n.normalTexture&&!n.normalTextureBuffer){let o=Zn(n.normalTexture,r);o?n.normalTextureBuffer=o.bytes:Xr("ObjLoader",n.name,n.normalTexture)}}return t}};function Ku(e,t,r={}){return $n.parse(e,t,r)}function zu(e){return $n.parseMtl(e)}function eo(e,t,r={}){let n;if(typeof e!="string")n=new TextDecoder().decode(e);else{let o=e.trim();if(!(o.startsWith("v ")||o.startsWith("#")||o.includes(`
|
|
1
|
+
import{o as ia,u as yo,x as aa,z as iA}from"./chunk-CIVJXFWH.mjs";import{c as Xi}from"./chunk-CJ4CSVU3.mjs";import{a as Ji,c as Ki,i as zi,j as Yi}from"./chunk-HOV6DDBZ.mjs";import{h as Wi,l as qi}from"./chunk-RECQ74RP.mjs";import{e as ta}from"./chunk-GXFYRMJZ.mjs";import{h as Vi}from"./chunk-ULOFDFHJ.mjs";import{A as Aa,j as fr,w as ra,x as na,y as We,z as oa}from"./chunk-BJXNKMSY.mjs";import{r as Re,s as ea,t as Pt}from"./chunk-QEWDIPJ7.mjs";import{a as Wr}from"./chunk-354GX6IB.mjs";import{c as Zi,e as $i}from"./chunk-5RRKGN2U.mjs";import{o as $e}from"./chunk-BDZ3TSOT.mjs";import{b as Wn,d as AA,e as ji,f as me,g as $}from"./chunk-Y4NIR77Z.mjs";var ha=Wn((qu,da)=>{$();var xo=()=>new Proxy(function(){},{get:(e,t)=>t==="__esModule"?!0:t===Symbol.toPrimitive?()=>"":xo(),apply:()=>xo(),construct:()=>xo()});da.exports=xo()});var xa=Wn((gA,_o)=>{$();var L=L||{};L.scope={};L.ASSUME_ES2020=!1;L.ASSUME_ES6=L.ASSUME_ES2020;L.ASSUME_ES5=L.ASSUME_ES6;L.ASSUME_NO_NATIVE_MAP=!1;L.ASSUME_NO_NATIVE_SET=!1;L.ISOLATE_POLYFILLS=!1;L.FORCE_POLYFILL_PROMISE=!1;L.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;L.INSTRUMENT_ASYNC_CONTEXT=!0;L.objectCreate=L.ASSUME_ES5||typeof Object.create=="function"?Object.create:function(e){var t=function(){};return t.prototype=e,new t};L.defineProperty=L.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e};L.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof globalThis=="object"&&globalThis];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")};L.global=L.ASSUME_ES2020?globalThis:L.getGlobal(gA);L.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol";L.TRUST_ES6_POLYFILLS=!L.ISOLATE_POLYFILLS||L.IS_SYMBOL_NATIVE;L.polyfills={};L.propertyToPolyfillSymbol={};L.POLYFILL_PREFIX="$jscp$";L.TYPED_ARRAY_CLASSES=(function(){var e="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");return L.global.BigInt64Array&&(e.push("BigInt64"),e.push("BigUint64")),e})();L.polyfillTypedArrayMethod=function(e,t,r,n){if(t)for(var o=0;o<L.TYPED_ARRAY_CLASSES.length;o++){var A=L.TYPED_ARRAY_CLASSES[o]+"Array.prototype."+e;L.ISOLATE_POLYFILLS?L.polyfillIsolated(A,t,r,n):L.polyfillUnisolated(A,t,r,n)}};L.polyfill=function(e,t,r,n){t&&(L.ISOLATE_POLYFILLS?L.polyfillIsolated(e,t,r,n):L.polyfillUnisolated(e,t,r,n))};L.polyfillUnisolated=function(e,t,r,n){for(r=L.global,e=e.split("."),n=0;n<e.length-1;n++){var o=e[n];if(!(o in r))return;r=r[o]}e=e[e.length-1],n=r[e],t=t(n),t!=n&&t!=null&&L.defineProperty(r,e,{configurable:!0,writable:!0,value:t})};L.polyfillIsolated=function(e,t,r,n){var o=e.split(".");e=o.length===1,n=o[0],n=!e&&n in L.polyfills?L.polyfills:L.global;for(var A=0;A<o.length-1;A++){var i=o[A];if(!(i in n))return;n=n[i]}o=o[o.length-1],r=L.IS_SYMBOL_NATIVE&&r==="es6"?n[o]:null,t=t(r),t!=null&&(e?L.defineProperty(L.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==r&&(L.propertyToPolyfillSymbol[o]===void 0&&(r=Math.random()*1e9>>>0,L.propertyToPolyfillSymbol[o]=L.IS_SYMBOL_NATIVE?L.global.Symbol(o):L.POLYFILL_PREFIX+r+"$"+o),L.defineProperty(n,L.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))};L.getConstructImplementation=function(){function e(){function r(){}return new r,Reflect.construct(r,[],function(){}),new r instanceof r}if(L.TRUST_ES6_POLYFILLS&&typeof Reflect<"u"&&Reflect.construct){if(e())return Reflect.construct;var t=Reflect.construct;return function(r,n,o){return r=t(r,n),o&&Reflect.setPrototypeOf(r,o.prototype),r}}return function(r,n,o){return o===void 0&&(o=r),o=L.objectCreate(o.prototype||Object.prototype),Function.prototype.apply.call(r,o,n)||o}};L.construct={valueOf:L.getConstructImplementation}.valueOf();L.underscoreProtoCanBeSet=function(){var e={a:!0},t={};try{return t.__proto__=e,t.a}catch{}return!1};L.setPrototypeOf=L.ASSUME_ES6||L.TRUST_ES6_POLYFILLS&&typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf:L.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null;L.inherits=function(e,t){if(e.prototype=L.objectCreate(t.prototype),e.prototype.constructor=e,L.ASSUME_ES6||L.setPrototypeOf){var r=L.setPrototypeOf;r(e,t)}else for(r in t)if(r!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.superClass_=t.prototype};L.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}};L.arrayIterator=function(e){return{next:L.arrayIteratorImpl(e)}};L.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return L.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")};L.arrayFromIterator=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r};L.arrayFromIterable=function(e){return e instanceof Array?e:L.arrayFromIterator(L.makeIterator(e))};L.createTemplateTagFirstArg=function(e){return L.createTemplateTagFirstArgWithRaw(e,e)};L.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,Object.freeze&&(Object.freeze(e),Object.freeze(t)),e};L.generator={};L.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object")};L.generator.Context=function(){this.isRunning_=!1,this.yieldAllIterator_=null,this.yieldResult=void 0,this.nextAddress=1,this.finallyAddress_=this.catchAddress_=0,this.finallyContexts_=this.abruptCompletion_=null};L.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};L.generator.Context.prototype.stop_=function(){this.isRunning_=!1};L.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};L.generator.Context.prototype.next_=function(e){this.yieldResult=e};L.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0},this.jumpToErrorHandler_()};L.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};L.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};L.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};L.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};L.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e},this.nextAddress=this.finallyAddress_};L.generator.Context.prototype.return=L.generator.Context.prototype.return;L.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e},this.nextAddress=this.finallyAddress_};L.generator.Context.prototype.jumpThroughFinallyBlocks=L.generator.Context.prototype.jumpThroughFinallyBlocks;L.generator.Context.prototype.yield=function(e,t){return this.nextAddress=t,{value:e}};L.generator.Context.prototype.yield=L.generator.Context.prototype.yield;L.generator.Context.prototype.yieldAll=function(e,t){e=L.makeIterator(e);var r=e.next();if(L.generator.ensureIteratorResultIsObject_(r),r.done)this.yieldResult=r.value,this.nextAddress=t;else return this.yieldAllIterator_=e,this.yield(r.value,t)};L.generator.Context.prototype.yieldAll=L.generator.Context.prototype.yieldAll;L.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e};L.generator.Context.prototype.jumpTo=L.generator.Context.prototype.jumpTo;L.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};L.generator.Context.prototype.jumpToEnd=L.generator.Context.prototype.jumpToEnd;L.generator.Context.prototype.setCatchFinallyBlocks=function(e,t){this.catchAddress_=e,t!=null&&(this.finallyAddress_=t)};L.generator.Context.prototype.setCatchFinallyBlocks=L.generator.Context.prototype.setCatchFinallyBlocks;L.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0,this.finallyAddress_=e||0};L.generator.Context.prototype.setFinallyBlock=L.generator.Context.prototype.setFinallyBlock;L.generator.Context.prototype.leaveTryBlock=function(e,t){this.nextAddress=e,this.catchAddress_=t||0};L.generator.Context.prototype.leaveTryBlock=L.generator.Context.prototype.leaveTryBlock;L.generator.Context.prototype.enterCatchBlock=function(e){return this.catchAddress_=e||0,e=this.abruptCompletion_.exception,this.abruptCompletion_=null,e};L.generator.Context.prototype.enterCatchBlock=L.generator.Context.prototype.enterCatchBlock;L.generator.Context.prototype.enterFinallyBlock=function(e,t,r){r?this.finallyContexts_[r]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_],this.catchAddress_=e||0,this.finallyAddress_=t||0};L.generator.Context.prototype.enterFinallyBlock=L.generator.Context.prototype.enterFinallyBlock;L.generator.Context.prototype.leaveFinallyBlock=function(e,t){if(t=this.finallyContexts_.splice(t||0)[0],t=this.abruptCompletion_=this.abruptCompletion_||t){if(t.isException)return this.jumpToErrorHandler_();t.jumpTo!=null&&this.finallyAddress_<t.jumpTo?(this.nextAddress=t.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e};L.generator.Context.prototype.leaveFinallyBlock=L.generator.Context.prototype.leaveFinallyBlock;L.generator.Context.prototype.forIn=function(e){return new L.generator.Context.PropertyIterator(e)};L.generator.Context.prototype.forIn=L.generator.Context.prototype.forIn;L.generator.Context.PropertyIterator=function(e){this.object_=e,this.properties_=[];for(var t in e)this.properties_.push(t);this.properties_.reverse()};L.generator.Context.PropertyIterator.prototype.getNext=function(){for(;this.properties_.length>0;){var e=this.properties_.pop();if(e in this.object_)return e}return null};L.generator.Context.PropertyIterator.prototype.getNext=L.generator.Context.PropertyIterator.prototype.getNext;L.generator.Engine_=function(e){this.context_=new L.generator.Context,this.program_=e};L.generator.Engine_.prototype.next_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_):(this.context_.next_(e),this.nextStep_())};L.generator.Engine_.prototype.return_=function(e){this.context_.start_();var t=this.context_.yieldAllIterator_;return t?this.yieldAllStep_("return"in t?t.return:function(r){return{value:r,done:!0}},e,this.context_.return):(this.context_.return(e),this.nextStep_())};L.generator.Engine_.prototype.throw_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.throw,e,this.context_.next_):(this.context_.throw_(e),this.nextStep_())};L.generator.Engine_.prototype.yieldAllStep_=function(e,t,r){try{var n=e.call(this.context_.yieldAllIterator_,t);if(L.generator.ensureIteratorResultIsObject_(n),!n.done)return this.context_.stop_(),n;var o=n.value}catch(A){return this.context_.yieldAllIterator_=null,this.context_.throw_(A),this.nextStep_()}return this.context_.yieldAllIterator_=null,r.call(this.context_,o),this.nextStep_()};L.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(t){this.context_.yieldResult=void 0,this.context_.throw_(t)}if(this.context_.stop_(),this.context_.abruptCompletion_){if(e=this.context_.abruptCompletion_,this.context_.abruptCompletion_=null,e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};L.generator.Generator_=function(e){this.next=function(t){return e.next_(t)},this.throw=function(t){return e.throw_(t)},this.return=function(t){return e.return_(t)},this[Symbol.iterator]=function(){return this}};L.generator.createGenerator=function(e,t){return t=new L.generator.Generator_(new L.generator.Engine_(t)),L.setPrototypeOf&&e.prototype&&L.setPrototypeOf(t,e.prototype),t};L.asyncExecutePromiseGenerator=function(e){function t(n){return e.next(n)}function r(n){return e.throw(n)}return new Promise(function(n,o){function A(i){i.done?n(i.value):Promise.resolve(i.value).then(t,r).then(A,o)}A(e.next())})};L.asyncExecutePromiseGeneratorFunction=function(e){return L.asyncExecutePromiseGenerator(e())};L.asyncExecutePromiseGeneratorProgram=function(e){return L.asyncExecutePromiseGenerator(new L.generator.Generator_(new L.generator.Engine_(e)))};L.polyfill("globalThis",function(e){return e||L.global},"es_2020","es3");L.polyfill("Reflect",function(e){return e||{}},"es6","es3");L.polyfill("Reflect.construct",function(e){return L.construct},"es6","es3");L.polyfill("Reflect.setPrototypeOf",function(e){if(e)return e;if(L.setPrototypeOf){var t=L.setPrototypeOf;return function(r,n){try{return t(r,n),!0}catch{return!1}}}return null},"es6","es5");L.initSymbol=function(){};L.polyfill("Symbol",function(e){if(e)return e;var t=function(A,i){this.$jscomp$symbol$id_=A,L.defineProperty(this,"description",{configurable:!0,writable:!0,value:i})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(Math.random()*1e9>>>0)+"_",n=0,o=function(A){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(A||"")+"_"+n++,A)};return o},"es6","es3");L.polyfill("Symbol.iterator",function(e){return e||(e=Symbol("Symbol.iterator"),L.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return L.iteratorPrototype(L.arrayIteratorImpl(this))}}),e)},"es6","es3");L.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e};L.polyfill("Promise",function(e){function t(){this.batch_=null}function r(i){return i instanceof o?i:new o(function(a,s){a(i)})}if(e&&(!(L.FORCE_POLYFILL_PROMISE||L.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof L.global.PromiseRejectionEvent>"u")||!L.global.Promise||L.global.Promise.toString().indexOf("[native code]")===-1))return e;t.prototype.asyncExecute=function(i){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(i)};var n=L.global.setTimeout;t.prototype.asyncExecuteFunction=function(i){n(i,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var i=this.batch_;this.batch_=[];for(var a=0;a<i.length;++a){var s=i[a];i[a]=null;try{s()}catch(c){this.asyncThrow_(c)}}}this.batch_=null},t.prototype.asyncThrow_=function(i){this.asyncExecuteFunction(function(){throw i})};var o=function(i){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{i(a.resolve,a.reject)}catch(s){a.reject(s)}};o.prototype.createResolveAndReject_=function(){function i(c){return function(l){s||(s=!0,c.call(a,l))}}var a=this,s=!1;return{resolve:i(this.resolveTo_),reject:i(this.reject_)}},o.prototype.resolveTo_=function(i){if(i===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(i instanceof o)this.settleSameAsPromise_(i);else{e:switch(typeof i){case"object":var a=i!=null;break e;case"function":a=!0;break e;default:a=!1}a?this.resolveToNonPromiseObj_(i):this.fulfill_(i)}},o.prototype.resolveToNonPromiseObj_=function(i){var a=void 0;try{a=i.then}catch(s){this.reject_(s);return}typeof a=="function"?this.settleSameAsThenable_(a,i):this.fulfill_(i)},o.prototype.reject_=function(i){this.settle_(2,i)},o.prototype.fulfill_=function(i){this.settle_(1,i)},o.prototype.settle_=function(i,a){if(this.state_!=0)throw Error("Cannot settle("+i+", "+a+"): Promise already settled in state"+this.state_);this.state_=i,this.result_=a,this.state_===2&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var i=this;n(function(){if(i.notifyUnhandledRejection_()){var a=L.global.console;typeof a<"u"&&a.error(i.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var i=L.global.CustomEvent,a=L.global.Event,s=L.global.dispatchEvent;return typeof s>"u"?!0:(typeof i=="function"?i=new i("unhandledrejection",{cancelable:!0}):typeof a=="function"?i=new a("unhandledrejection",{cancelable:!0}):(i=L.global.document.createEvent("CustomEvent"),i.initCustomEvent("unhandledrejection",!1,!0,i)),i.promise=this,i.reason=this.result_,s(i))},o.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var i=0;i<this.onSettledCallbacks_.length;++i)A.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var A=new t;return o.prototype.settleSameAsPromise_=function(i){var a=this.createResolveAndReject_();i.callWhenSettled_(a.resolve,a.reject)},o.prototype.settleSameAsThenable_=function(i,a){var s=this.createResolveAndReject_();try{i.call(a,s.resolve,s.reject)}catch(c){s.reject(c)}},o.prototype.then=function(i,a){function s(g,p){return typeof g=="function"?function(f){try{c(g(f))}catch(d){l(d)}}:p}var c,l,u=new o(function(g,p){c=g,l=p});return this.callWhenSettled_(s(i,c),s(a,l)),u},o.prototype.catch=function(i){return this.then(void 0,i)},o.prototype.callWhenSettled_=function(i,a){function s(){switch(c.state_){case 1:i(c.result_);break;case 2:a(c.result_);break;default:throw Error("Unexpected state: "+c.state_)}}var c=this;this.onSettledCallbacks_==null?A.asyncExecute(s):this.onSettledCallbacks_.push(s),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(i){return new o(function(a,s){s(i)})},o.race=function(i){return new o(function(a,s){for(var c=L.makeIterator(i),l=c.next();!l.done;l=c.next())r(l.value).callWhenSettled_(a,s)})},o.all=function(i){var a=L.makeIterator(i),s=a.next();return s.done?r([]):new o(function(c,l){function u(f){return function(d){g[f]=d,p--,p==0&&c(g)}}var g=[],p=0;do g.push(void 0),p++,r(s.value).callWhenSettled_(u(g.length-1),l),s=a.next();while(!s.done)})},o},"es6","es3");L.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};L.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=L.checkStringArgs(this,t,"startsWith");t+="";var o=n.length,A=t.length;r=Math.max(0,Math.min(r|0,n.length));for(var i=0;i<A&&r<o;)if(n[r++]!=t[i++])return!1;return i>=A}},"es6","es3");L.polyfill("String.prototype.codePointAt",function(e){return e||function(t){var r=L.checkStringArgs(this,null,"codePointAt"),n=r.length;if(t=Number(t)||0,t>=0&&t<n){t|=0;var o=r.charCodeAt(t);return o<55296||o>56319||t+1===n?o:(t=r.charCodeAt(t+1),t<56320||t>57343?o:(o-55296)*1024+t+9216)}}},"es6","es3");var uA=(function(){var e,t,r=(e=globalThis.document)==null||(t=e.currentScript)==null?void 0:t.src;return function(n){function o(ee){ee&&typeof ee=="object"&&(ee=ee.ptr),this.ptr=vn(ee),j(o)[this.ptr]=this}function A(){this.ptr=hn(),j(A)[this.ptr]=this}function i(){this.ptr=Fe(),j(i)[this.ptr]=this}function a(){this.ptr=C(),j(a)[this.ptr]=this}function s(){this.ptr=Nr(),j(s)[this.ptr]=this}function c(){this.ptr=Ur(),j(c)[this.ptr]=this}function l(){this.ptr=Fr(),j(l)[this.ptr]=this}function u(){this.ptr=Sr(),j(u)[this.ptr]=this}function g(){this.ptr=vr(),j(g)[this.ptr]=this}function p(){this.ptr=ir(),j(p)[this.ptr]=this}function f(){this.ptr=ct(),j(f)[this.ptr]=this}function d(){throw"cannot construct a VoidPtr, no constructor in IDL"}function h(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Ar),D=E/4,P=0;P<ee.length;P++)Ar[D+P]=ee[P];return E}return ee}function I(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Nt),D=E/4,P=0;P<ee.length;P++)Nt[D+P]=ee[P];return E}return ee}function b(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,or),D=E/2,P=0;P<ee.length;P++)or[D+P]=ee[P];return E}return ee}function Q(ee){if(typeof ee=="object"){for(var E=De.alloc(ee,Je),D=0;D<ee.length;D++)Je[E+D]=ee[D];return E}return ee}function m(ee){if(typeof ee=="string"){ee=ht(ee);for(var E=De.alloc(ee,Je),D=0;D<ee.length;D++)Je[E+D]=ee[D];return E}return ee}function w(ee){return ee.__class__}function v(ee){return ee.ptr}function S(ee,E){return ee.ptr===E.ptr}function N(ee){if(!ee.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";ee.__destroy__(),delete j(ee.__class__)[ee.ptr]}function _(ee,E){return G(ee.ptr,E)}function G(ee,E){var D=j(E),P=D[ee];return P||(P=Object.create((E||R).prototype),P.ptr=ee,D[ee]=P)}function j(ee){return(ee||R).__cache__}function R(){}function K(){var ee,E,D;return(0,L.asyncExecutePromiseGeneratorProgram)(function(P){if(P.getNextAddressJsc()==1)return oe(),ee=F.setStatus,ee?(ee("Running..."),P.yield(new Promise(function(Y){return setTimeout(Y,1)}),3)):P.jumpTo(2);if(P.getNextAddressJsc()!=2&&setTimeout(ee,1,""),Ue)return P.return();je=!0,nt(_t),Lr.e(),(D=(E=F).onRuntimeInitialized)==null||D.call(E),re(),P.jumpToEnd()})}function z(){function ee(U){return U=Lr=U.exports,F._webidl_free=U.f,F._free=U.g,F._webidl_malloc=U.h,F._malloc=U.i,Qr=F._emscripten_bind_VoidPtr___destroy___0=U.j,ct=F._emscripten_bind_GeometryAttribute_GeometryAttribute_0=U.k,Wt=F._emscripten_bind_GeometryAttribute___destroy___0=U.l,ir=F._emscripten_bind_PointAttribute_PointAttribute_0=U.m,it=F._emscripten_bind_PointAttribute_size_0=U.n,wt=F._emscripten_bind_PointAttribute_attribute_type_0=U.o,Tt=F._emscripten_bind_PointAttribute_data_type_0=U.p,qt=F._emscripten_bind_PointAttribute_num_components_0=U.q,Xt=F._emscripten_bind_PointAttribute_normalized_0=U.r,Zt=F._emscripten_bind_PointAttribute_byte_stride_0=U.s,$t=F._emscripten_bind_PointAttribute_byte_offset_0=U.t,xr=F._emscripten_bind_PointAttribute_unique_id_0=U.u,wr=F._emscripten_bind_PointAttribute___destroy___0=U.v,vr=F._emscripten_bind_PointCloud_PointCloud_0=U.w,Dr=F._emscripten_bind_PointCloud_num_attributes_0=U.x,Mr=F._emscripten_bind_PointCloud_num_points_0=U.y,_r=F._emscripten_bind_PointCloud___destroy___0=U.z,Sr=F._emscripten_bind_Mesh_Mesh_0=U.A,Pr=F._emscripten_bind_Mesh_num_faces_0=U.B,Gr=F._emscripten_bind_Mesh_num_attributes_0=U.C,ar=F._emscripten_bind_Mesh_num_points_0=U.D,Lt=F._emscripten_bind_Mesh_set_num_points_1=U.E,Rr=F._emscripten_bind_Mesh___destroy___0=U.F,Fr=F._emscripten_bind_Metadata_Metadata_0=U.G,sr=F._emscripten_bind_Metadata___destroy___0=U.H,Ur=F._emscripten_bind_DracoInt8Array_DracoInt8Array_0=U.I,cr=F._emscripten_bind_DracoInt8Array_GetValue_1=U.J,Ot=F._emscripten_bind_DracoInt8Array_size_0=U.K,kr=F._emscripten_bind_DracoInt8Array___destroy___0=U.L,Nr=F._emscripten_bind_MetadataBuilder_MetadataBuilder_0=U.M,lr=F._emscripten_bind_MetadataBuilder_AddStringEntry_3=U.N,er=F._emscripten_bind_MetadataBuilder_AddIntEntry_3=U.O,lt=F._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=U.P,Ht=F._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=U.Q,ur=F._emscripten_bind_MetadataBuilder___destroy___0=U.R,C=F._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=U.S,x=F._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=U.T,k=F._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=U.U,V=F._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=U.V,q=F._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=U.W,te=F._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=U.X,ae=F._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=U.Y,se=F._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=U.Z,pe=F._emscripten_bind_PointCloudBuilder_AddMetadata_2=U._,ue=F._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=U.$,de=F._emscripten_bind_PointCloudBuilder_SetNormalizedFlagForAttribute_3=U.aa,ve=F._emscripten_bind_PointCloudBuilder___destroy___0=U.ba,Fe=F._emscripten_bind_MeshBuilder_MeshBuilder_0=U.ca,Ke=F._emscripten_bind_MeshBuilder_AddFacesToMesh_3=U.da,Ne=F._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=U.ea,rt=F._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=U.fa,at=F._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=U.ga,St=F._emscripten_bind_MeshBuilder_AddFloatAttribute_5=U.ha,ut=F._emscripten_bind_MeshBuilder_AddInt8Attribute_5=U.ia,gr=F._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=U.ja,pr=F._emscripten_bind_MeshBuilder_AddInt16Attribute_5=U.ka,cn=F._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=U.la,ln=F._emscripten_bind_MeshBuilder_AddInt32Attribute_5=U.ma,un=F._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=U.na,gn=F._emscripten_bind_MeshBuilder_AddMetadata_2=U.oa,pn=F._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=U.pa,fn=F._emscripten_bind_MeshBuilder_SetNormalizedFlagForAttribute_3=U.qa,dn=F._emscripten_bind_MeshBuilder___destroy___0=U.ra,hn=F._emscripten_bind_Encoder_Encoder_0=U.sa,mn=F._emscripten_bind_Encoder_SetEncodingMethod_1=U.ta,In=F._emscripten_bind_Encoder_SetAttributeQuantization_2=U.ua,Bn=F._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=U.va,bn=F._emscripten_bind_Encoder_SetSpeedOptions_2=U.wa,En=F._emscripten_bind_Encoder_SetTrackEncodedProperties_1=U.xa,yn=F._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=U.ya,Cn=F._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=U.za,Qn=F._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=U.Aa,xn=F._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=U.Ba,wn=F._emscripten_bind_Encoder___destroy___0=U.Ca,vn=F._emscripten_bind_ExpertEncoder_ExpertEncoder_1=U.Da,Dn=F._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=U.Ea,Mn=F._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=U.Fa,_n=F._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=U.Ga,Sn=F._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=U.Ha,Pn=F._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=U.Ia,Gn=F._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=U.Ja,Rn=F._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=U.Ka,Fn=F._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=U.La,Un=F._emscripten_bind_ExpertEncoder___destroy___0=U.Ma,kn=F._emscripten_enum_draco_GeometryAttribute_Type_INVALID=U.Na,Nn=F._emscripten_enum_draco_GeometryAttribute_Type_POSITION=U.Oa,Tn=F._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=U.Pa,Ln=F._emscripten_enum_draco_GeometryAttribute_Type_COLOR=U.Qa,On=F._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=U.Ra,Hn=F._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=U.Sa,jn=F._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=U.Ta,Vn=F._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=U.Ua,Jn=F._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=U.Va,Kn=F._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=U.Wa,zn=F._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=U.Xa,Tr=U.d,ne(),Lr}var E,D,P,Y;return(0,L.asyncExecutePromiseGeneratorProgram)(function(U){return U.getNextAddressJsc()==1?(E={a:Yn},(D=F.instantiateWasm)?U.return(new Promise(function(Ce){D(E,function(ot){return Ce(ee(ot))})})):(Le!=null||(Le=ie("draco_encoder.wasm")),U.yield(J(Ge,Le,E),2))):(P=U.getYieldResultJsc(),Y=ee(P.instance),U.return(Y))})}function J(ee,E,D){var P,Y,U;return(0,L.asyncExecutePromiseGeneratorProgram)(function(Ce){switch(Ce.getNextAddressJsc()){case 1:if(ee||Me(E)||ye){Ce.jumpTo(2);break}return Ce.setCatchFinallyBlocks(3),P=fetch(E,{credentials:"same-origin"}),Ce.yield(WebAssembly.instantiateStreaming(P,D),5);case 5:return Y=Ce.getYieldResultJsc(),Ce.return(Y);case 3:U=Ce.enterCatchBlock(),_e("wasm streaming compile failed: "+U),_e("falling back to ArrayBuffer instantiation");case 2:return Ce.return(W(E,D))}})}function W(ee,E){var D,P,Y;return(0,L.asyncExecutePromiseGeneratorProgram)(function(U){switch(U.getNextAddressJsc()){case 1:return U.setCatchFinallyBlocks(2),U.yield(X(ee),4);case 4:return D=U.getYieldResultJsc(),U.yield(WebAssembly.instantiate(D,E),5);case 5:return P=U.getYieldResultJsc(),U.return(P);case 2:Y=U.enterCatchBlock(),_e("failed to asynchronously prepare wasm: "+Y),Ae(Y),U.jumpToEnd()}})}function X(ee){var E;return(0,L.asyncExecutePromiseGeneratorProgram)(function(D){switch(D.getNextAddressJsc()){case 1:if(Ge){D.jumpTo(2);break}return D.setCatchFinallyBlocks(3),D.yield(ge(ee),5);case 5:return E=D.getYieldResultJsc(),D.return(new Uint8Array(E));case 3:D.enterCatchBlock();case 2:var P=D.return;if(ee==Le&&Ge)var Y=new Uint8Array(Ge);else if(be)Y=be(ee);else throw"both async and sync fetching of the wasm failed";return P.call(D,Y)}})}function Ae(ee){var E,D;throw(D=(E=F).onAbort)==null||D.call(E,ee),ee="Aborted("+ee+")",_e(ee),Ue=!0,new WebAssembly.RuntimeError(ee+". Build with -sASSERTIONS for more info.")}function re(){var ee=F.postRun;ee&&(typeof ee=="function"&&(ee=[ee]),qe.push.apply(qe,(0,L.arrayFromIterable)(ee))),nt(qe)}function oe(){var ee=F.preRun;ee&&(typeof ee=="function"&&(ee=[ee]),yt.push.apply(yt,(0,L.arrayFromIterable)(ee))),nt(yt)}function ne(){var ee,E;!((ee=Je)==null||(E=ee.buffer)==null)&&E.resizable||(ee=Tr.buffer,F.HEAP8=Je=new Int8Array(ee),F.HEAP16=or=new Int16Array(ee),F.HEAPU8=dt=new Uint8Array(ee),F.HEAPU16=new Uint16Array(ee),F.HEAP32=Nt=new Int32Array(ee),F.HEAPU32=ze=new Uint32Array(ee),F.HEAPF32=Ar=new Float32Array(ee),F.HEAPF64=new Float64Array(ee))}function ie(ee){return F.locateFile?F.locateFile(ee,le):le+ee}function he(ee){return typeof ee!="string"?!1:(ee=ee.split("."),ee.length<2||ee.length>3?!1:ee[0]==1&&ee[1]>=0&&ee[1]<=5?!0:!(ee[0]!=0||ee[1]>10))}n=n===void 0?{}:n;var F,Be,Se,Pe,Ie,y,ye,Qe,xe,le,ge,be,we,_e,Ge,Ue,Me,He,Te,je,Le,Je,nt,qe,yt,ze,Ve,Ct,pt,Qt,ft,Xe,It,Ut,dt,Yt,st,kt,ht,_t,Cr,or,Nt,Ar,xt,Qr,ct,Wt,ir,it,wt,Tt,qt,Xt,Zt,$t,xr,wr,vr,Dr,Mr,_r,Sr,Pr,Gr,ar,Lt,Rr,Fr,sr,Ur,cr,Ot,kr,Nr,lr,er,lt,Ht,ur,C,x,k,V,q,te,ae,se,pe,ue,de,ve,Fe,Ke,Ne,rt,at,St,ut,gr,pr,cn,ln,un,gn,pn,fn,dn,hn,mn,In,Bn,bn,En,yn,Cn,Qn,xn,wn,vn,Dn,Mn,_n,Sn,Pn,Gn,Rn,Fn,Un,kn,Nn,Tn,Ln,On,Hn,jn,Vn,Jn,Kn,zn,Tr,Yn,Lr,De;return(0,L.asyncExecutePromiseGeneratorProgram)(function(ee){if(ee.getNextAddressJsc()==1){if(F=n,Be=!!globalThis.window,Se=!!globalThis.WorkerGlobalScope,ye=((Pe=globalThis.process)==null||(Ie=Pe.versions)==null?void 0:Ie.node)&&((y=globalThis.process)==null?void 0:y.type)!="renderer",xe=Qe=!1,F.onRuntimeInitialized=function(){Qe=!0,xe&&typeof F.onModuleLoaded=="function"&&F.onModuleLoaded(F)},F.onModuleParsed=function(){xe=!0,Qe&&typeof F.onModuleLoaded=="function"&&F.onModuleLoaded(F)},F.isVersionSupported=he,typeof __filename<"u"?r=__filename:Se&&(r=self.location.href),le="",ye)we=(Pt(),ji(ea)),le=__dirname+"/",be=function(E){return E=Me(E)?new URL(E):E,we.readFileSync(E)},ge=function(E,D){D=D===void 0?!0:D;var P;return(0,L.asyncExecutePromiseGeneratorProgram)(function(Y){return E=Me(E)?new URL(E):E,P=we.readFileSync(E,D?void 0:"utf8"),Y.return(P)})},me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2);else if(Be||Se){try{le=new URL(".",r).href}catch{}Se&&(be=function(E){var D=new XMLHttpRequest;return D.open("GET",E,!1),D.responseType="arraybuffer",D.send(null),new Uint8Array(D.response)}),ge=function(E){var D;return(0,L.asyncExecutePromiseGeneratorProgram)(function(P){if(P.getNextAddressJsc()==1)return Me(E)?P.return(new Promise(function(Y,U){var Ce=new XMLHttpRequest;Ce.open("GET",E,!0),Ce.responseType="arraybuffer",Ce.onload=function(){Ce.status==200||Ce.status==0&&Ce.response?Y(Ce.response):U(Ce.status)},Ce.onerror=U,Ce.send(null)})):P.yield(fetch(E,{credentials:"same-origin"}),2);if(D=P.getYieldResultJsc(),D.ok)return P.return(D.arrayBuffer());throw Error(D.status+" : "+D.url)})}}if(console.log.bind(console),_e=console.error.bind(console),Ue=!1,Me=function(E){return E.startsWith("file://")},He=function(){},Te=function(){return He.apply(this,arguments)||this},L.inherits(Te,He),je=!1,nt=function(E){for(;E.length>0;)E.shift()(F)},qe=[],yt=[],Ve=function(E){this.excPtr=E,this.ptr=E-24},Ve.prototype.set_type=function(E){ze[this.ptr+4>>2]=E},Ve.prototype.get_type=function(){return ze[this.ptr+4>>2]},Ve.prototype.set_destructor=function(E){ze[this.ptr+8>>2]=E},Ve.prototype.get_destructor=function(){return ze[this.ptr+8>>2]},Ve.prototype.set_caught=function(E){Je[this.ptr+12]=E?1:0},Ve.prototype.get_caught=function(){return Je[this.ptr+12]!=0},Ve.prototype.set_rethrown=function(E){Je[this.ptr+13]=E?1:0},Ve.prototype.get_rethrown=function(){return Je[this.ptr+13]!=0},Ve.prototype.init=function(E,D){this.set_adjusted_ptr(0),this.set_type(E),this.set_destructor(D)},Ve.prototype.set_adjusted_ptr=function(E){ze[this.ptr+16>>2]=E},Ve.prototype.get_adjusted_ptr=function(){return ze[this.ptr+16>>2]},Ct=0,pt=function(E){Ae()},Qt=function(E,D,P){new Ve(E).init(D,P),Ct++,pt(E)},ft=function(){return Ae("")},Xe=function(){return 2147483648},It=function(E,D){return Math.ceil(E/D)*D},Ut=function(E){var D=Tr.buffer.byteLength;try{return Tr.grow((E-D+65535)/65536|0),ne(),1}catch{}},Yt=function(E){var D=dt.length;E>>>=0;var P=Xe();if(E>P)return!1;for(var Y=1;Y<=4;Y*=2){var U=D*(1+.2/Y);if(U=Math.min(U,E+100663296),U=Math.min(P,It(Math.max(E,U),65536)),Ut(U))return!0}return!1},st=function(E){for(var D=0,P=0;P<E.length;++P){var Y=E.charCodeAt(P);Y<=127?D++:Y<=2047?D+=2:Y>=55296&&Y<=57343?(D+=4,++P):D+=3}return D},kt=function(E,D,P,Y){if(!(Y>0))return 0;var U=P;Y=P+Y-1;for(var Ce=0;Ce<E.length;++Ce){var ot=E.codePointAt(Ce);if(ot<=127){if(P>=Y)break;D[P++]=ot}else if(ot<=2047){if(P+1>=Y)break;D[P++]=192|ot>>6,D[P++]=128|ot&63}else if(ot<=65535){if(P+2>=Y)break;D[P++]=224|ot>>12,D[P++]=128|ot>>6&63,D[P++]=128|ot&63}else{if(P+3>=Y)break;D[P++]=240|ot>>18,D[P++]=128|ot>>12&63,D[P++]=128|ot>>6&63,D[P++]=128|ot&63,Ce++}}return D[P]=0,P-U},ht=function(E,D,P){return P=P>0?P:st(E)+1,P=Array(P),E=kt(E,P,0,P.length),D&&(P.length=E),P},globalThis.TextDecoder&&new TextDecoder,_t=[],Cr=function(E){return _t.push(E)},F.printErr&&(_e=F.printErr),F.wasmBinary&&(Ge=F.wasmBinary),xt=F.preInit)for(typeof xt=="function"&&(F.preInit=xt=[xt]);xt.length>0;)xt.shift()();return Yn={a:Qt,c:ft,b:Yt},ee.yield(z(),2)}return ee.getNextAddressJsc()!=3?(Lr=ee.getYieldResultJsc(),ee.yield(K(),3)):(R.prototype=Object.create(R.prototype),R.prototype.constructor=R,R.prototype.__class__=R,R.__cache__={},F.WrapperObject=R,F.getCache=j,F.wrapPointer=G,F.castObject=_,F.NULL=G(0),F.destroy=N,F.compare=S,F.getPointer=v,F.getClass=w,De={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(De.needed){for(var E=0;E<De.temps.length;E++)F._webidl_free(De.temps[E]);De.temps.length=0,F._webidl_free(De.buffer),De.buffer=0,De.size+=De.needed,De.needed=0}De.buffer||(De.size+=128,De.buffer=F._webidl_malloc(De.size),De.buffer||Ae(void 0)),De.pos=0},alloc:function(E,D){return De.buffer||Ae(void 0),E=E.length*D.BYTES_PER_ELEMENT,E=It(E,8),De.pos+E>=De.size?(E>0||Ae(void 0),De.needed+=E,D=F._webidl_malloc(E),De.temps.push(D)):(D=De.buffer+De.pos,De.pos+=E),D}},d.prototype=Object.create(R.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},F.VoidPtr=d,d.prototype.__destroy__=d.prototype.__destroy__=function(){Qr(this.ptr)},f.prototype=Object.create(R.prototype),f.prototype.constructor=f,f.prototype.__class__=f,f.__cache__={},F.GeometryAttribute=f,f.prototype.__destroy__=f.prototype.__destroy__=function(){Wt(this.ptr)},p.prototype=Object.create(R.prototype),p.prototype.constructor=p,p.prototype.__class__=p,p.__cache__={},F.PointAttribute=p,p.prototype.size=p.prototype.size=function(){return it(this.ptr)},p.prototype.attribute_type=p.prototype.attribute_type=function(){return wt(this.ptr)},p.prototype.data_type=p.prototype.data_type=function(){return Tt(this.ptr)},p.prototype.num_components=p.prototype.num_components=function(){return qt(this.ptr)},p.prototype.normalized=p.prototype.normalized=function(){return!!Xt(this.ptr)},p.prototype.byte_stride=p.prototype.byte_stride=function(){return Zt(this.ptr)},p.prototype.byte_offset=p.prototype.byte_offset=function(){return $t(this.ptr)},p.prototype.unique_id=p.prototype.unique_id=function(){return xr(this.ptr)},p.prototype.__destroy__=p.prototype.__destroy__=function(){wr(this.ptr)},g.prototype=Object.create(R.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},F.PointCloud=g,g.prototype.num_attributes=g.prototype.num_attributes=function(){return Dr(this.ptr)},g.prototype.num_points=g.prototype.num_points=function(){return Mr(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){_r(this.ptr)},u.prototype=Object.create(R.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},F.Mesh=u,u.prototype.num_faces=u.prototype.num_faces=function(){return Pr(this.ptr)},u.prototype.num_attributes=u.prototype.num_attributes=function(){return Gr(this.ptr)},u.prototype.num_points=u.prototype.num_points=function(){return ar(this.ptr)},u.prototype.set_num_points=u.prototype.set_num_points=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Lt(D,E)},u.prototype.__destroy__=u.prototype.__destroy__=function(){Rr(this.ptr)},l.prototype=Object.create(R.prototype),l.prototype.constructor=l,l.prototype.__class__=l,l.__cache__={},F.Metadata=l,l.prototype.__destroy__=l.prototype.__destroy__=function(){sr(this.ptr)},c.prototype=Object.create(R.prototype),c.prototype.constructor=c,c.prototype.__class__=c,c.__cache__={},F.DracoInt8Array=c,c.prototype.GetValue=c.prototype.GetValue=function(E){var D=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),cr(D,E)},c.prototype.size=c.prototype.size=function(){return Ot(this.ptr)},c.prototype.__destroy__=c.prototype.__destroy__=function(){kr(this.ptr)},s.prototype=Object.create(R.prototype),s.prototype.constructor=s,s.prototype.__class__=s,s.__cache__={},F.MetadataBuilder=s,s.prototype.AddStringEntry=s.prototype.AddStringEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P=P&&typeof P=="object"?P.ptr:m(P),!!lr(Y,E,D,P)},s.prototype.AddIntEntry=s.prototype.AddIntEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P&&typeof P=="object"&&(P=P.ptr),!!er(Y,E,D,P)},s.prototype.AddIntEntryArray=s.prototype.AddIntEntryArray=function(E,D,P,Y){var U=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),typeof P=="object"&&(P=I(P)),Y&&typeof Y=="object"&&(Y=Y.ptr),!!lt(U,E,D,P,Y)},s.prototype.AddDoubleEntry=s.prototype.AddDoubleEntry=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D=D&&typeof D=="object"?D.ptr:m(D),P&&typeof P=="object"&&(P=P.ptr),!!Ht(Y,E,D,P)},s.prototype.__destroy__=s.prototype.__destroy__=function(){ur(this.ptr)},a.prototype=Object.create(R.prototype),a.prototype.constructor=a,a.prototype.__class__=a,a.__cache__={},F.PointCloudBuilder=a,a.prototype.AddFloatAttribute=a.prototype.AddFloatAttribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),x(Ce,E,D,P,Y,U)},a.prototype.AddInt8Attribute=a.prototype.AddInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),k(Ce,E,D,P,Y,U)},a.prototype.AddUInt8Attribute=a.prototype.AddUInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),V(Ce,E,D,P,Y,U)},a.prototype.AddInt16Attribute=a.prototype.AddInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),q(Ce,E,D,P,Y,U)},a.prototype.AddUInt16Attribute=a.prototype.AddUInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),te(Ce,E,D,P,Y,U)},a.prototype.AddInt32Attribute=a.prototype.AddInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),ae(Ce,E,D,P,Y,U)},a.prototype.AddUInt32Attribute=a.prototype.AddUInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),se(Ce,E,D,P,Y,U)},a.prototype.AddMetadata=a.prototype.AddMetadata=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!pe(P,E,D)},a.prototype.SetMetadataForAttribute=a.prototype.SetMetadataForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!ue(Y,E,D,P)},a.prototype.SetNormalizedFlagForAttribute=a.prototype.SetNormalizedFlagForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!de(Y,E,D,P)},a.prototype.__destroy__=a.prototype.__destroy__=function(){ve(this.ptr)},i.prototype=Object.create(R.prototype),i.prototype.constructor=i,i.prototype.__class__=i,i.__cache__={},F.MeshBuilder=i,i.prototype.AddFacesToMesh=i.prototype.AddFacesToMesh=function(E,D,P){var Y=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),typeof P=="object"&&(P=I(P)),!!Ke(Y,E,D,P)},i.prototype.AddFloatAttributeToMesh=i.prototype.AddFloatAttributeToMesh=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),Ne(Ce,E,D,P,Y,U)},i.prototype.AddInt32AttributeToMesh=i.prototype.AddInt32AttributeToMesh=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),rt(Ce,E,D,P,Y,U)},i.prototype.AddMetadataToMesh=i.prototype.AddMetadataToMesh=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!at(P,E,D)},i.prototype.AddFloatAttribute=i.prototype.AddFloatAttribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=h(U)),St(Ce,E,D,P,Y,U)},i.prototype.AddInt8Attribute=i.prototype.AddInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),ut(Ce,E,D,P,Y,U)},i.prototype.AddUInt8Attribute=i.prototype.AddUInt8Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=Q(U)),gr(Ce,E,D,P,Y,U)},i.prototype.AddInt16Attribute=i.prototype.AddInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),pr(Ce,E,D,P,Y,U)},i.prototype.AddUInt16Attribute=i.prototype.AddUInt16Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=b(U)),cn(Ce,E,D,P,Y,U)},i.prototype.AddInt32Attribute=i.prototype.AddInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),ln(Ce,E,D,P,Y,U)},i.prototype.AddUInt32Attribute=i.prototype.AddUInt32Attribute=function(E,D,P,Y,U){var Ce=this.ptr;return De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),typeof U=="object"&&(U=I(U)),un(Ce,E,D,P,Y,U)},i.prototype.AddMetadata=i.prototype.AddMetadata=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),!!gn(P,E,D)},i.prototype.SetMetadataForAttribute=i.prototype.SetMetadataForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!pn(Y,E,D,P)},i.prototype.SetNormalizedFlagForAttribute=i.prototype.SetNormalizedFlagForAttribute=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),!!fn(Y,E,D,P)},i.prototype.__destroy__=i.prototype.__destroy__=function(){dn(this.ptr)},A.prototype=Object.create(R.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},F.Encoder=A,A.prototype.SetEncodingMethod=A.prototype.SetEncodingMethod=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),mn(D,E)},A.prototype.SetAttributeQuantization=A.prototype.SetAttributeQuantization=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),In(P,E,D)},A.prototype.SetAttributeExplicitQuantization=A.prototype.SetAttributeExplicitQuantization=function(E,D,P,Y,U){var Ce=this.ptr;De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),typeof Y=="object"&&(Y=h(Y)),U&&typeof U=="object"&&(U=U.ptr),Bn(Ce,E,D,P,Y,U)},A.prototype.SetSpeedOptions=A.prototype.SetSpeedOptions=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),bn(P,E,D)},A.prototype.SetTrackEncodedProperties=A.prototype.SetTrackEncodedProperties=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),En(D,E)},A.prototype.EncodeMeshToDracoBuffer=A.prototype.EncodeMeshToDracoBuffer=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),yn(P,E,D)},A.prototype.EncodePointCloudToDracoBuffer=A.prototype.EncodePointCloudToDracoBuffer=function(E,D,P){var Y=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),Cn(Y,E,D,P)},A.prototype.GetNumberOfEncodedPoints=A.prototype.GetNumberOfEncodedPoints=function(){return Qn(this.ptr)},A.prototype.GetNumberOfEncodedFaces=A.prototype.GetNumberOfEncodedFaces=function(){return xn(this.ptr)},A.prototype.__destroy__=A.prototype.__destroy__=function(){wn(this.ptr)},o.prototype=Object.create(R.prototype),o.prototype.constructor=o,o.prototype.__class__=o,o.__cache__={},F.ExpertEncoder=o,o.prototype.SetEncodingMethod=o.prototype.SetEncodingMethod=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Dn(D,E)},o.prototype.SetAttributeQuantization=o.prototype.SetAttributeQuantization=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Mn(P,E,D)},o.prototype.SetAttributeExplicitQuantization=o.prototype.SetAttributeExplicitQuantization=function(E,D,P,Y,U){var Ce=this.ptr;De.prepare(),E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),P&&typeof P=="object"&&(P=P.ptr),typeof Y=="object"&&(Y=h(Y)),U&&typeof U=="object"&&(U=U.ptr),_n(Ce,E,D,P,Y,U)},o.prototype.SetSpeedOptions=o.prototype.SetSpeedOptions=function(E,D){var P=this.ptr;E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Sn(P,E,D)},o.prototype.SetTrackEncodedProperties=o.prototype.SetTrackEncodedProperties=function(E){var D=this.ptr;E&&typeof E=="object"&&(E=E.ptr),Pn(D,E)},o.prototype.EncodeToDracoBuffer=o.prototype.EncodeToDracoBuffer=function(E,D){var P=this.ptr;return E&&typeof E=="object"&&(E=E.ptr),D&&typeof D=="object"&&(D=D.ptr),Gn(P,E,D)},o.prototype.GetNumberOfEncodedPoints=o.prototype.GetNumberOfEncodedPoints=function(){return Rn(this.ptr)},o.prototype.GetNumberOfEncodedFaces=o.prototype.GetNumberOfEncodedFaces=function(){return Fn(this.ptr)},o.prototype.__destroy__=o.prototype.__destroy__=function(){Un(this.ptr)},(function(){function E(){F.INVALID=kn(),F.POSITION=Nn(),F.NORMAL=Tn(),F.COLOR=Ln(),F.TEX_COORD=On(),F.GENERIC=Hn(),F.INVALID_GEOMETRY_TYPE=jn(),F.POINT_CLOUD=Vn(),F.TRIANGULAR_MESH=Jn(),F.MESH_SEQUENTIAL_ENCODING=Kn(),F.MESH_EDGEBREAKER_ENCODING=zn()}je?E():Cr(E)})(),typeof F.onModuleParsed=="function"&&F.onModuleParsed(),ee.return(F))})}})();typeof gA=="object"&&typeof _o=="object"?(_o.exports=uA,_o.exports.default=uA):typeof define=="function"&&define.amd&&define([],function(){return uA})});var wa=Wn((fA,So)=>{$();var O=O||{};O.scope={};O.ASSUME_ES2020=!1;O.ASSUME_ES6=O.ASSUME_ES2020;O.ASSUME_ES5=O.ASSUME_ES6;O.ASSUME_NO_NATIVE_MAP=!1;O.ASSUME_NO_NATIVE_SET=!1;O.ISOLATE_POLYFILLS=!1;O.FORCE_POLYFILL_PROMISE=!1;O.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;O.INSTRUMENT_ASYNC_CONTEXT=!0;O.objectCreate=O.ASSUME_ES5||typeof Object.create=="function"?Object.create:function(e){var t=function(){};return t.prototype=e,new t};O.defineProperty=O.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e};O.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof globalThis=="object"&&globalThis];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")};O.global=O.ASSUME_ES2020?globalThis:O.getGlobal(fA);O.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol";O.TRUST_ES6_POLYFILLS=!O.ISOLATE_POLYFILLS||O.IS_SYMBOL_NATIVE;O.polyfills={};O.propertyToPolyfillSymbol={};O.POLYFILL_PREFIX="$jscp$";O.TYPED_ARRAY_CLASSES=(function(){var e="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");return O.global.BigInt64Array&&(e.push("BigInt64"),e.push("BigUint64")),e})();O.polyfillTypedArrayMethod=function(e,t,r,n){if(t)for(var o=0;o<O.TYPED_ARRAY_CLASSES.length;o++){var A=O.TYPED_ARRAY_CLASSES[o]+"Array.prototype."+e;O.ISOLATE_POLYFILLS?O.polyfillIsolated(A,t,r,n):O.polyfillUnisolated(A,t,r,n)}};O.polyfill=function(e,t,r,n){t&&(O.ISOLATE_POLYFILLS?O.polyfillIsolated(e,t,r,n):O.polyfillUnisolated(e,t,r,n))};O.polyfillUnisolated=function(e,t,r,n){for(r=O.global,e=e.split("."),n=0;n<e.length-1;n++){var o=e[n];if(!(o in r))return;r=r[o]}e=e[e.length-1],n=r[e],t=t(n),t!=n&&t!=null&&O.defineProperty(r,e,{configurable:!0,writable:!0,value:t})};O.polyfillIsolated=function(e,t,r,n){var o=e.split(".");e=o.length===1,n=o[0],n=!e&&n in O.polyfills?O.polyfills:O.global;for(var A=0;A<o.length-1;A++){var i=o[A];if(!(i in n))return;n=n[i]}o=o[o.length-1],r=O.IS_SYMBOL_NATIVE&&r==="es6"?n[o]:null,t=t(r),t!=null&&(e?O.defineProperty(O.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==r&&(O.propertyToPolyfillSymbol[o]===void 0&&(r=Math.random()*1e9>>>0,O.propertyToPolyfillSymbol[o]=O.IS_SYMBOL_NATIVE?O.global.Symbol(o):O.POLYFILL_PREFIX+r+"$"+o),O.defineProperty(n,O.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))};O.getConstructImplementation=function(){function e(){function r(){}return new r,Reflect.construct(r,[],function(){}),new r instanceof r}if(O.TRUST_ES6_POLYFILLS&&typeof Reflect<"u"&&Reflect.construct){if(e())return Reflect.construct;var t=Reflect.construct;return function(r,n,o){return r=t(r,n),o&&Reflect.setPrototypeOf(r,o.prototype),r}}return function(r,n,o){return o===void 0&&(o=r),o=O.objectCreate(o.prototype||Object.prototype),Function.prototype.apply.call(r,o,n)||o}};O.construct={valueOf:O.getConstructImplementation}.valueOf();O.underscoreProtoCanBeSet=function(){var e={a:!0},t={};try{return t.__proto__=e,t.a}catch{}return!1};O.setPrototypeOf=O.ASSUME_ES6||O.TRUST_ES6_POLYFILLS&&typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf:O.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null;O.inherits=function(e,t){if(e.prototype=O.objectCreate(t.prototype),e.prototype.constructor=e,O.ASSUME_ES6||O.setPrototypeOf){var r=O.setPrototypeOf;r(e,t)}else for(r in t)if(r!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.superClass_=t.prototype};O.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}};O.arrayIterator=function(e){return{next:O.arrayIteratorImpl(e)}};O.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return O.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")};O.arrayFromIterator=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r};O.arrayFromIterable=function(e){return e instanceof Array?e:O.arrayFromIterator(O.makeIterator(e))};O.createTemplateTagFirstArg=function(e){return O.createTemplateTagFirstArgWithRaw(e,e)};O.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,Object.freeze&&(Object.freeze(e),Object.freeze(t)),e};O.generator={};O.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object")};O.generator.Context=function(){this.isRunning_=!1,this.yieldAllIterator_=null,this.yieldResult=void 0,this.nextAddress=1,this.finallyAddress_=this.catchAddress_=0,this.finallyContexts_=this.abruptCompletion_=null};O.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};O.generator.Context.prototype.stop_=function(){this.isRunning_=!1};O.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};O.generator.Context.prototype.next_=function(e){this.yieldResult=e};O.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0},this.jumpToErrorHandler_()};O.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};O.generator.Context.prototype.getNextAddressJsc=function(){return this.nextAddress};O.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};O.generator.Context.prototype.getYieldResultJsc=function(){return this.yieldResult};O.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e},this.nextAddress=this.finallyAddress_};O.generator.Context.prototype.return=O.generator.Context.prototype.return;O.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e},this.nextAddress=this.finallyAddress_};O.generator.Context.prototype.jumpThroughFinallyBlocks=O.generator.Context.prototype.jumpThroughFinallyBlocks;O.generator.Context.prototype.yield=function(e,t){return this.nextAddress=t,{value:e}};O.generator.Context.prototype.yield=O.generator.Context.prototype.yield;O.generator.Context.prototype.yieldAll=function(e,t){e=O.makeIterator(e);var r=e.next();if(O.generator.ensureIteratorResultIsObject_(r),r.done)this.yieldResult=r.value,this.nextAddress=t;else return this.yieldAllIterator_=e,this.yield(r.value,t)};O.generator.Context.prototype.yieldAll=O.generator.Context.prototype.yieldAll;O.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e};O.generator.Context.prototype.jumpTo=O.generator.Context.prototype.jumpTo;O.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};O.generator.Context.prototype.jumpToEnd=O.generator.Context.prototype.jumpToEnd;O.generator.Context.prototype.setCatchFinallyBlocks=function(e,t){this.catchAddress_=e,t!=null&&(this.finallyAddress_=t)};O.generator.Context.prototype.setCatchFinallyBlocks=O.generator.Context.prototype.setCatchFinallyBlocks;O.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0,this.finallyAddress_=e||0};O.generator.Context.prototype.setFinallyBlock=O.generator.Context.prototype.setFinallyBlock;O.generator.Context.prototype.leaveTryBlock=function(e,t){this.nextAddress=e,this.catchAddress_=t||0};O.generator.Context.prototype.leaveTryBlock=O.generator.Context.prototype.leaveTryBlock;O.generator.Context.prototype.enterCatchBlock=function(e){return this.catchAddress_=e||0,e=this.abruptCompletion_.exception,this.abruptCompletion_=null,e};O.generator.Context.prototype.enterCatchBlock=O.generator.Context.prototype.enterCatchBlock;O.generator.Context.prototype.enterFinallyBlock=function(e,t,r){r?this.finallyContexts_[r]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_],this.catchAddress_=e||0,this.finallyAddress_=t||0};O.generator.Context.prototype.enterFinallyBlock=O.generator.Context.prototype.enterFinallyBlock;O.generator.Context.prototype.leaveFinallyBlock=function(e,t){if(t=this.finallyContexts_.splice(t||0)[0],t=this.abruptCompletion_=this.abruptCompletion_||t){if(t.isException)return this.jumpToErrorHandler_();t.jumpTo!=null&&this.finallyAddress_<t.jumpTo?(this.nextAddress=t.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e};O.generator.Context.prototype.leaveFinallyBlock=O.generator.Context.prototype.leaveFinallyBlock;O.generator.Context.prototype.forIn=function(e){return new O.generator.Context.PropertyIterator(e)};O.generator.Context.prototype.forIn=O.generator.Context.prototype.forIn;O.generator.Context.PropertyIterator=function(e){this.object_=e,this.properties_=[];for(var t in e)this.properties_.push(t);this.properties_.reverse()};O.generator.Context.PropertyIterator.prototype.getNext=function(){for(;this.properties_.length>0;){var e=this.properties_.pop();if(e in this.object_)return e}return null};O.generator.Context.PropertyIterator.prototype.getNext=O.generator.Context.PropertyIterator.prototype.getNext;O.generator.Engine_=function(e){this.context_=new O.generator.Context,this.program_=e};O.generator.Engine_.prototype.next_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_):(this.context_.next_(e),this.nextStep_())};O.generator.Engine_.prototype.return_=function(e){this.context_.start_();var t=this.context_.yieldAllIterator_;return t?this.yieldAllStep_("return"in t?t.return:function(r){return{value:r,done:!0}},e,this.context_.return):(this.context_.return(e),this.nextStep_())};O.generator.Engine_.prototype.throw_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.throw,e,this.context_.next_):(this.context_.throw_(e),this.nextStep_())};O.generator.Engine_.prototype.yieldAllStep_=function(e,t,r){try{var n=e.call(this.context_.yieldAllIterator_,t);if(O.generator.ensureIteratorResultIsObject_(n),!n.done)return this.context_.stop_(),n;var o=n.value}catch(A){return this.context_.yieldAllIterator_=null,this.context_.throw_(A),this.nextStep_()}return this.context_.yieldAllIterator_=null,r.call(this.context_,o),this.nextStep_()};O.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(t){this.context_.yieldResult=void 0,this.context_.throw_(t)}if(this.context_.stop_(),this.context_.abruptCompletion_){if(e=this.context_.abruptCompletion_,this.context_.abruptCompletion_=null,e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};O.generator.Generator_=function(e){this.next=function(t){return e.next_(t)},this.throw=function(t){return e.throw_(t)},this.return=function(t){return e.return_(t)},this[Symbol.iterator]=function(){return this}};O.generator.createGenerator=function(e,t){return t=new O.generator.Generator_(new O.generator.Engine_(t)),O.setPrototypeOf&&e.prototype&&O.setPrototypeOf(t,e.prototype),t};O.asyncExecutePromiseGenerator=function(e){function t(n){return e.next(n)}function r(n){return e.throw(n)}return new Promise(function(n,o){function A(i){i.done?n(i.value):Promise.resolve(i.value).then(t,r).then(A,o)}A(e.next())})};O.asyncExecutePromiseGeneratorFunction=function(e){return O.asyncExecutePromiseGenerator(e())};O.asyncExecutePromiseGeneratorProgram=function(e){return O.asyncExecutePromiseGenerator(new O.generator.Generator_(new O.generator.Engine_(e)))};O.polyfill("globalThis",function(e){return e||O.global},"es_2020","es3");O.polyfill("Reflect",function(e){return e||{}},"es6","es3");O.polyfill("Reflect.construct",function(e){return O.construct},"es6","es3");O.polyfill("Reflect.setPrototypeOf",function(e){if(e)return e;if(O.setPrototypeOf){var t=O.setPrototypeOf;return function(r,n){try{return t(r,n),!0}catch{return!1}}}return null},"es6","es5");O.initSymbol=function(){};O.polyfill("Symbol",function(e){if(e)return e;var t=function(A,i){this.$jscomp$symbol$id_=A,O.defineProperty(this,"description",{configurable:!0,writable:!0,value:i})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(Math.random()*1e9>>>0)+"_",n=0,o=function(A){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(A||"")+"_"+n++,A)};return o},"es6","es3");O.polyfill("Symbol.iterator",function(e){return e||(e=Symbol("Symbol.iterator"),O.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return O.iteratorPrototype(O.arrayIteratorImpl(this))}}),e)},"es6","es3");O.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e};O.polyfill("Promise",function(e){function t(){this.batch_=null}function r(i){return i instanceof o?i:new o(function(a,s){a(i)})}if(e&&(!(O.FORCE_POLYFILL_PROMISE||O.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof O.global.PromiseRejectionEvent>"u")||!O.global.Promise||O.global.Promise.toString().indexOf("[native code]")===-1))return e;t.prototype.asyncExecute=function(i){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(i)};var n=O.global.setTimeout;t.prototype.asyncExecuteFunction=function(i){n(i,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var i=this.batch_;this.batch_=[];for(var a=0;a<i.length;++a){var s=i[a];i[a]=null;try{s()}catch(c){this.asyncThrow_(c)}}}this.batch_=null},t.prototype.asyncThrow_=function(i){this.asyncExecuteFunction(function(){throw i})};var o=function(i){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{i(a.resolve,a.reject)}catch(s){a.reject(s)}};o.prototype.createResolveAndReject_=function(){function i(c){return function(l){s||(s=!0,c.call(a,l))}}var a=this,s=!1;return{resolve:i(this.resolveTo_),reject:i(this.reject_)}},o.prototype.resolveTo_=function(i){if(i===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(i instanceof o)this.settleSameAsPromise_(i);else{e:switch(typeof i){case"object":var a=i!=null;break e;case"function":a=!0;break e;default:a=!1}a?this.resolveToNonPromiseObj_(i):this.fulfill_(i)}},o.prototype.resolveToNonPromiseObj_=function(i){var a=void 0;try{a=i.then}catch(s){this.reject_(s);return}typeof a=="function"?this.settleSameAsThenable_(a,i):this.fulfill_(i)},o.prototype.reject_=function(i){this.settle_(2,i)},o.prototype.fulfill_=function(i){this.settle_(1,i)},o.prototype.settle_=function(i,a){if(this.state_!=0)throw Error("Cannot settle("+i+", "+a+"): Promise already settled in state"+this.state_);this.state_=i,this.result_=a,this.state_===2&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var i=this;n(function(){if(i.notifyUnhandledRejection_()){var a=O.global.console;typeof a<"u"&&a.error(i.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var i=O.global.CustomEvent,a=O.global.Event,s=O.global.dispatchEvent;return typeof s>"u"?!0:(typeof i=="function"?i=new i("unhandledrejection",{cancelable:!0}):typeof a=="function"?i=new a("unhandledrejection",{cancelable:!0}):(i=O.global.document.createEvent("CustomEvent"),i.initCustomEvent("unhandledrejection",!1,!0,i)),i.promise=this,i.reason=this.result_,s(i))},o.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var i=0;i<this.onSettledCallbacks_.length;++i)A.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var A=new t;return o.prototype.settleSameAsPromise_=function(i){var a=this.createResolveAndReject_();i.callWhenSettled_(a.resolve,a.reject)},o.prototype.settleSameAsThenable_=function(i,a){var s=this.createResolveAndReject_();try{i.call(a,s.resolve,s.reject)}catch(c){s.reject(c)}},o.prototype.then=function(i,a){function s(g,p){return typeof g=="function"?function(f){try{c(g(f))}catch(d){l(d)}}:p}var c,l,u=new o(function(g,p){c=g,l=p});return this.callWhenSettled_(s(i,c),s(a,l)),u},o.prototype.catch=function(i){return this.then(void 0,i)},o.prototype.callWhenSettled_=function(i,a){function s(){switch(c.state_){case 1:i(c.result_);break;case 2:a(c.result_);break;default:throw Error("Unexpected state: "+c.state_)}}var c=this;this.onSettledCallbacks_==null?A.asyncExecute(s):this.onSettledCallbacks_.push(s),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(i){return new o(function(a,s){s(i)})},o.race=function(i){return new o(function(a,s){for(var c=O.makeIterator(i),l=c.next();!l.done;l=c.next())r(l.value).callWhenSettled_(a,s)})},o.all=function(i){var a=O.makeIterator(i),s=a.next();return s.done?r([]):new o(function(c,l){function u(f){return function(d){g[f]=d,p--,p==0&&c(g)}}var g=[],p=0;do g.push(void 0),p++,r(s.value).callWhenSettled_(u(g.length-1),l),s=a.next();while(!s.done)})},o},"es6","es3");O.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""};O.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=O.checkStringArgs(this,t,"startsWith");t+="";var o=n.length,A=t.length;r=Math.max(0,Math.min(r|0,n.length));for(var i=0;i<A&&r<o;)if(n[r++]!=t[i++])return!1;return i>=A}},"es6","es3");O.polyfill("String.prototype.codePointAt",function(e){return e||function(t){var r=O.checkStringArgs(this,null,"codePointAt"),n=r.length;if(t=Number(t)||0,t>=0&&t<n){t|=0;var o=r.charCodeAt(t);return o<55296||o>56319||t+1===n?o:(t=r.charCodeAt(t+1),t<56320||t>57343?o:(o-55296)*1024+t+9216)}}},"es6","es3");var pA=(function(){var e,t,r=(e=globalThis.document)==null||(t=e.currentScript)==null?void 0:t.src;return function(n){function o(){this.ptr=On(),W(o)[this.ptr]=this}function A(){this.ptr=Pn(),W(A)[this.ptr]=this}function i(){this.ptr=Dn(),W(i)[this.ptr]=this}function a(){this.ptr=Qn(),W(a)[this.ptr]=this}function s(){this.ptr=bn(),W(s)[this.ptr]=this}function c(){this.ptr=hn(),W(c)[this.ptr]=this}function l(){this.ptr=gn(),W(l)[this.ptr]=this}function u(){this.ptr=pr(),W(u)[this.ptr]=this}function g(){this.ptr=at(),W(g)[this.ptr]=this}function p(){throw"cannot construct a Status, no constructor in IDL"}function f(){this.ptr=de(),W(f)[this.ptr]=this}function d(){this.ptr=te(),W(d)[this.ptr]=this}function h(){this.ptr=x(),W(h)[this.ptr]=this}function I(){this.ptr=lt(),W(I)[this.ptr]=this}function b(){this.ptr=cr(),W(b)[this.ptr]=this}function Q(){this.ptr=Mr(),W(Q)[this.ptr]=this}function m(){this.ptr=vr(),W(m)[this.ptr]=this}function w(){this.ptr=$t(),W(w)[this.ptr]=this}function v(){this.ptr=qt(),W(v)[this.ptr]=this}function S(){throw"cannot construct a VoidPtr, no constructor in IDL"}function N(ce){if(typeof ce=="object"){for(var B=ke.alloc(ce,Ve),M=0;M<ce.length;M++)Ve[B+M]=ce[M];return B}return ce}function _(ce){if(typeof ce=="string"){ce=Ar(ce);for(var B=ke.alloc(ce,Ve),M=0;M<ce.length;M++)Ve[B+M]=ce[M];return B}return ce}function G(ce){return ce.__class__}function j(ce){return ce.ptr}function R(ce,B){return ce.ptr===B.ptr}function K(ce){if(!ce.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";ce.__destroy__(),delete W(ce.__class__)[ce.ptr]}function z(ce,B){return J(ce.ptr,B)}function J(ce,B){var M=W(B),T=M[ce];return T||(T=Object.create((B||X).prototype),T.ptr=ce,M[ce]=T)}function W(ce){return(ce||X).__cache__}function X(){}function Ae(){var ce,B,M;return(0,O.asyncExecutePromiseGeneratorProgram)(function(T){if(T.getNextAddressJsc()==1)return Be(),ce=y.setStatus,ce?(ce("Running..."),T.yield(new Promise(function(fe){return setTimeout(fe,1)}),3)):T.jumpTo(2);if(T.getNextAddressJsc()!=2&&setTimeout(ce,1,""),Le)return T.return();yt=!0,Ct(ir),Eo.e(),(M=(B=y).onRuntimeInitialized)==null||M.call(B),F(),T.jumpToEnd()})}function re(){function ce(H){return H=Eo=H.exports,y._webidl_free=H.f,y._free=H.g,y._webidl_malloc=H.h,y._malloc=H.i,Tt=y._emscripten_bind_VoidPtr___destroy___0=H.j,qt=y._emscripten_bind_DecoderBuffer_DecoderBuffer_0=H.k,Xt=y._emscripten_bind_DecoderBuffer_Init_2=H.l,Zt=y._emscripten_bind_DecoderBuffer___destroy___0=H.m,$t=y._emscripten_bind_AttributeTransformData_AttributeTransformData_0=H.n,xr=y._emscripten_bind_AttributeTransformData_transform_type_0=H.o,wr=y._emscripten_bind_AttributeTransformData___destroy___0=H.p,vr=y._emscripten_bind_GeometryAttribute_GeometryAttribute_0=H.q,Dr=y._emscripten_bind_GeometryAttribute___destroy___0=H.r,Mr=y._emscripten_bind_PointAttribute_PointAttribute_0=H.s,_r=y._emscripten_bind_PointAttribute_size_0=H.t,Sr=y._emscripten_bind_PointAttribute_GetAttributeTransformData_0=H.u,Pr=y._emscripten_bind_PointAttribute_attribute_type_0=H.v,Gr=y._emscripten_bind_PointAttribute_data_type_0=H.w,ar=y._emscripten_bind_PointAttribute_num_components_0=H.x,Lt=y._emscripten_bind_PointAttribute_normalized_0=H.y,Rr=y._emscripten_bind_PointAttribute_byte_stride_0=H.z,Fr=y._emscripten_bind_PointAttribute_byte_offset_0=H.A,sr=y._emscripten_bind_PointAttribute_unique_id_0=H.B,Ur=y._emscripten_bind_PointAttribute___destroy___0=H.C,cr=y._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=H.D,Ot=y._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=H.E,kr=y._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=H.F,Nr=y._emscripten_bind_AttributeQuantizationTransform_min_value_1=H.G,lr=y._emscripten_bind_AttributeQuantizationTransform_range_0=H.H,er=y._emscripten_bind_AttributeQuantizationTransform___destroy___0=H.I,lt=y._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=H.J,Ht=y._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=H.K,ur=y._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=H.L,C=y._emscripten_bind_AttributeOctahedronTransform___destroy___0=H.M,x=y._emscripten_bind_PointCloud_PointCloud_0=H.N,k=y._emscripten_bind_PointCloud_num_attributes_0=H.O,V=y._emscripten_bind_PointCloud_num_points_0=H.P,q=y._emscripten_bind_PointCloud___destroy___0=H.Q,te=y._emscripten_bind_Mesh_Mesh_0=H.R,ae=y._emscripten_bind_Mesh_num_faces_0=H.S,se=y._emscripten_bind_Mesh_num_attributes_0=H.T,pe=y._emscripten_bind_Mesh_num_points_0=H.U,ue=y._emscripten_bind_Mesh___destroy___0=H.V,de=y._emscripten_bind_Metadata_Metadata_0=H.W,ve=y._emscripten_bind_Metadata___destroy___0=H.X,Fe=y._emscripten_bind_Status_code_0=H.Y,Ke=y._emscripten_bind_Status_ok_0=H.Z,Ne=y._emscripten_bind_Status_error_msg_0=H._,rt=y._emscripten_bind_Status___destroy___0=H.$,at=y._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=H.aa,St=y._emscripten_bind_DracoFloat32Array_GetValue_1=H.ba,ut=y._emscripten_bind_DracoFloat32Array_size_0=H.ca,gr=y._emscripten_bind_DracoFloat32Array___destroy___0=H.da,pr=y._emscripten_bind_DracoInt8Array_DracoInt8Array_0=H.ea,cn=y._emscripten_bind_DracoInt8Array_GetValue_1=H.fa,ln=y._emscripten_bind_DracoInt8Array_size_0=H.ga,un=y._emscripten_bind_DracoInt8Array___destroy___0=H.ha,gn=y._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=H.ia,pn=y._emscripten_bind_DracoUInt8Array_GetValue_1=H.ja,fn=y._emscripten_bind_DracoUInt8Array_size_0=H.ka,dn=y._emscripten_bind_DracoUInt8Array___destroy___0=H.la,hn=y._emscripten_bind_DracoInt16Array_DracoInt16Array_0=H.ma,mn=y._emscripten_bind_DracoInt16Array_GetValue_1=H.na,In=y._emscripten_bind_DracoInt16Array_size_0=H.oa,Bn=y._emscripten_bind_DracoInt16Array___destroy___0=H.pa,bn=y._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=H.qa,En=y._emscripten_bind_DracoUInt16Array_GetValue_1=H.ra,yn=y._emscripten_bind_DracoUInt16Array_size_0=H.sa,Cn=y._emscripten_bind_DracoUInt16Array___destroy___0=H.ta,Qn=y._emscripten_bind_DracoInt32Array_DracoInt32Array_0=H.ua,xn=y._emscripten_bind_DracoInt32Array_GetValue_1=H.va,wn=y._emscripten_bind_DracoInt32Array_size_0=H.wa,vn=y._emscripten_bind_DracoInt32Array___destroy___0=H.xa,Dn=y._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=H.ya,Mn=y._emscripten_bind_DracoUInt32Array_GetValue_1=H.za,_n=y._emscripten_bind_DracoUInt32Array_size_0=H.Aa,Sn=y._emscripten_bind_DracoUInt32Array___destroy___0=H.Ba,Pn=y._emscripten_bind_MetadataQuerier_MetadataQuerier_0=H.Ca,Gn=y._emscripten_bind_MetadataQuerier_HasEntry_2=H.Da,Rn=y._emscripten_bind_MetadataQuerier_GetIntEntry_2=H.Ea,Fn=y._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=H.Fa,Un=y._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=H.Ga,kn=y._emscripten_bind_MetadataQuerier_GetStringEntry_2=H.Ha,Nn=y._emscripten_bind_MetadataQuerier_NumEntries_1=H.Ia,Tn=y._emscripten_bind_MetadataQuerier_GetEntryName_2=H.Ja,Ln=y._emscripten_bind_MetadataQuerier___destroy___0=H.Ka,On=y._emscripten_bind_Decoder_Decoder_0=H.La,Hn=y._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=H.Ma,jn=y._emscripten_bind_Decoder_DecodeArrayToMesh_3=H.Na,Vn=y._emscripten_bind_Decoder_GetAttributeId_2=H.Oa,Jn=y._emscripten_bind_Decoder_GetAttributeIdByName_2=H.Pa,Kn=y._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=H.Qa,zn=y._emscripten_bind_Decoder_GetAttribute_2=H.Ra,Tr=y._emscripten_bind_Decoder_GetAttributeByUniqueId_2=H.Sa,Yn=y._emscripten_bind_Decoder_GetMetadata_1=H.Ta,Lr=y._emscripten_bind_Decoder_GetAttributeMetadata_2=H.Ua,De=y._emscripten_bind_Decoder_GetFaceFromMesh_3=H.Va,ee=y._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=H.Wa,E=y._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=H.Xa,D=y._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=H.Ya,P=y._emscripten_bind_Decoder_GetAttributeFloat_3=H.Za,Y=y._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=H._a,U=y._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=H.$a,Ce=y._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=H.ab,ot=y._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=H.bb,ei=y._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=H.cb,ti=y._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=H.db,ri=y._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=H.eb,ni=y._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=H.fb,oi=y._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=H.gb,Ai=y._emscripten_bind_Decoder_SkipAttributeTransform_1=H.hb,ii=y._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=H.ib,ai=y._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=H.jb,si=y._emscripten_bind_Decoder_DecodeBufferToMesh_2=H.kb,ci=y._emscripten_bind_Decoder___destroy___0=H.lb,li=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=H.mb,ui=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=H.nb,gi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=H.ob,pi=y._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=H.pb,fi=y._emscripten_enum_draco_GeometryAttribute_Type_INVALID=H.qb,di=y._emscripten_enum_draco_GeometryAttribute_Type_POSITION=H.rb,hi=y._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=H.sb,mi=y._emscripten_enum_draco_GeometryAttribute_Type_COLOR=H.tb,Ii=y._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=H.ub,Bi=y._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=H.vb,bi=y._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=H.wb,Ei=y._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=H.xb,yi=y._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=H.yb,Ci=y._emscripten_enum_draco_DataType_DT_INVALID=H.zb,Qi=y._emscripten_enum_draco_DataType_DT_INT8=H.Ab,xi=y._emscripten_enum_draco_DataType_DT_UINT8=H.Bb,wi=y._emscripten_enum_draco_DataType_DT_INT16=H.Cb,vi=y._emscripten_enum_draco_DataType_DT_UINT16=H.Db,Di=y._emscripten_enum_draco_DataType_DT_INT32=H.Eb,Mi=y._emscripten_enum_draco_DataType_DT_UINT32=H.Fb,_i=y._emscripten_enum_draco_DataType_DT_INT64=H.Gb,Si=y._emscripten_enum_draco_DataType_DT_UINT64=H.Hb,Pi=y._emscripten_enum_draco_DataType_DT_FLOAT32=H.Ib,Gi=y._emscripten_enum_draco_DataType_DT_FLOAT64=H.Jb,Ri=y._emscripten_enum_draco_DataType_DT_BOOL=H.Kb,Fi=y._emscripten_enum_draco_DataType_DT_TYPES_COUNT=H.Lb,Ui=y._emscripten_enum_draco_StatusCode_OK=H.Mb,ki=y._emscripten_enum_draco_StatusCode_DRACO_ERROR=H.Nb,Ni=y._emscripten_enum_draco_StatusCode_IO_ERROR=H.Ob,Ti=y._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=H.Pb,Li=y._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=H.Qb,Oi=y._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=H.Rb,bo=H.d,Se(),Eo}var B,M,T,fe;return(0,O.asyncExecutePromiseGeneratorProgram)(function(H){return H.getNextAddressJsc()==1?(B={a:Hi},(M=y.instantiateWasm)?H.return(new Promise(function(Oe){M(B,function(At){return Oe(ce(At))})})):(ze!=null||(ze=Pe("draco_decoder_gltf.wasm")),H.yield(oe(je,ze,B),2))):(T=H.getYieldResultJsc(),fe=ce(T.instance),H.return(fe))})}function oe(ce,B,M){var T,fe,H;return(0,O.asyncExecutePromiseGeneratorProgram)(function(Oe){switch(Oe.getNextAddressJsc()){case 1:if(ce||Je(B)||be){Oe.jumpTo(2);break}return Oe.setCatchFinallyBlocks(3),T=fetch(B,{credentials:"same-origin"}),Oe.yield(WebAssembly.instantiateStreaming(T,M),5);case 5:return fe=Oe.getYieldResultJsc(),Oe.return(fe);case 3:H=Oe.enterCatchBlock(),Te("wasm streaming compile failed: "+H),Te("falling back to ArrayBuffer instantiation");case 2:return Oe.return(ne(B,M))}})}function ne(ce,B){var M,T,fe;return(0,O.asyncExecutePromiseGeneratorProgram)(function(H){switch(H.getNextAddressJsc()){case 1:return H.setCatchFinallyBlocks(2),H.yield(ie(ce),4);case 4:return M=H.getYieldResultJsc(),H.yield(WebAssembly.instantiate(M,B),5);case 5:return T=H.getYieldResultJsc(),H.return(T);case 2:fe=H.enterCatchBlock(),Te("failed to asynchronously prepare wasm: "+fe),he(fe),H.jumpToEnd()}})}function ie(ce){var B;return(0,O.asyncExecutePromiseGeneratorProgram)(function(M){switch(M.getNextAddressJsc()){case 1:if(je){M.jumpTo(2);break}return M.setCatchFinallyBlocks(3),M.yield(Ue(ce),5);case 5:return B=M.getYieldResultJsc(),M.return(new Uint8Array(B));case 3:M.enterCatchBlock();case 2:var T=M.return;if(ce==ze&&je)var fe=new Uint8Array(je);else if(Me)fe=Me(ce);else throw"both async and sync fetching of the wasm failed";return T.call(M,fe)}})}function he(ce){var B,M;throw(M=(B=y).onAbort)==null||M.call(B,ce),ce="Aborted("+ce+")",Te(ce),Le=!0,new WebAssembly.RuntimeError(ce+". Build with -sASSERTIONS for more info.")}function F(){var ce=y.postRun;ce&&(typeof ce=="function"&&(ce=[ce]),pt.push.apply(pt,(0,O.arrayFromIterable)(ce))),Ct(pt)}function Be(){var ce=y.preRun;ce&&(typeof ce=="function"&&(ce=[ce]),Qt.push.apply(Qt,(0,O.arrayFromIterable)(ce))),Ct(Qt)}function Se(){var ce,B;!((ce=Ve)==null||(B=ce.buffer)==null)&&B.resizable||(ce=bo.buffer,y.HEAP8=Ve=new Int8Array(ce),y.HEAP16=new Int16Array(ce),y.HEAPU8=_t=new Uint8Array(ce),y.HEAPU16=new Uint16Array(ce),y.HEAP32=new Int32Array(ce),y.HEAPU32=ft=new Uint32Array(ce),y.HEAPF32=new Float32Array(ce),y.HEAPF64=new Float64Array(ce))}function Pe(ce){return y.locateFile?y.locateFile(ce,Ge):Ge+ce}function Ie(ce){return typeof ce!="string"?!1:(ce=ce.split("."),ce.length<2||ce.length>3?!1:ce[0]==1&&ce[1]>=0&&ce[1]<=5?!0:!(ce[0]!=0||ce[1]>10))}n=n===void 0?{}:n;var y,ye,Qe,xe,le,ge,be,we,_e,Ge,Ue,Me,He,Te,je,Le,Je,nt,qe,yt,ze,Ve,Ct,pt,Qt,ft,Xe,It,Ut,dt,Yt,st,kt,ht,_t,Cr,or,Nt,Ar,xt,Qr,ct,Wt,ir,it,wt,Tt,qt,Xt,Zt,$t,xr,wr,vr,Dr,Mr,_r,Sr,Pr,Gr,ar,Lt,Rr,Fr,sr,Ur,cr,Ot,kr,Nr,lr,er,lt,Ht,ur,C,x,k,V,q,te,ae,se,pe,ue,de,ve,Fe,Ke,Ne,rt,at,St,ut,gr,pr,cn,ln,un,gn,pn,fn,dn,hn,mn,In,Bn,bn,En,yn,Cn,Qn,xn,wn,vn,Dn,Mn,_n,Sn,Pn,Gn,Rn,Fn,Un,kn,Nn,Tn,Ln,On,Hn,jn,Vn,Jn,Kn,zn,Tr,Yn,Lr,De,ee,E,D,P,Y,U,Ce,ot,ei,ti,ri,ni,oi,Ai,ii,ai,si,ci,li,ui,gi,pi,fi,di,hi,mi,Ii,Bi,bi,Ei,yi,Ci,Qi,xi,wi,vi,Di,Mi,_i,Si,Pi,Gi,Ri,Fi,Ui,ki,Ni,Ti,Li,Oi,bo,Hi,Eo,ke;return(0,O.asyncExecutePromiseGeneratorProgram)(function(ce){if(ce.getNextAddressJsc()==1){if(y=n,ye=!!globalThis.window,Qe=!!globalThis.WorkerGlobalScope,be=((xe=globalThis.process)==null||(le=xe.versions)==null?void 0:le.node)&&((ge=globalThis.process)==null?void 0:ge.type)!="renderer",_e=we=!1,y.onRuntimeInitialized=function(){we=!0,_e&&typeof y.onModuleLoaded=="function"&&y.onModuleLoaded(y)},y.onModuleParsed=function(){_e=!0,we&&typeof y.onModuleLoaded=="function"&&y.onModuleLoaded(y)},y.isVersionSupported=Ie,typeof __filename<"u"?r=__filename:Qe&&(r=self.location.href),Ge="",be)He=(Pt(),ji(ea)),Ge=__dirname+"/",Me=function(B){return B=Je(B)?new URL(B):B,He.readFileSync(B)},Ue=function(B,M){M=M===void 0?!0:M;var T;return(0,O.asyncExecutePromiseGeneratorProgram)(function(fe){return B=Je(B)?new URL(B):B,T=He.readFileSync(B,M?void 0:"utf8"),fe.return(T)})},me.argv.length>1&&me.argv[1].replace(/\\/g,"/"),me.argv.slice(2);else if(ye||Qe){try{Ge=new URL(".",r).href}catch{}Qe&&(Me=function(B){var M=new XMLHttpRequest;return M.open("GET",B,!1),M.responseType="arraybuffer",M.send(null),new Uint8Array(M.response)}),Ue=function(B){var M;return(0,O.asyncExecutePromiseGeneratorProgram)(function(T){if(T.getNextAddressJsc()==1)return Je(B)?T.return(new Promise(function(fe,H){var Oe=new XMLHttpRequest;Oe.open("GET",B,!0),Oe.responseType="arraybuffer",Oe.onload=function(){Oe.status==200||Oe.status==0&&Oe.response?fe(Oe.response):H(Oe.status)},Oe.onerror=H,Oe.send(null)})):T.yield(fetch(B,{credentials:"same-origin"}),2);if(M=T.getYieldResultJsc(),M.ok)return T.return(M.arrayBuffer());throw Error(M.status+" : "+M.url)})}}if(console.log.bind(console),Te=console.error.bind(console),Le=!1,Je=function(B){return B.startsWith("file://")},nt=function(){},qe=function(){return nt.apply(this,arguments)||this},O.inherits(qe,nt),yt=!1,Ct=function(B){for(;B.length>0;)B.shift()(y)},pt=[],Qt=[],Xe=function(B){this.excPtr=B,this.ptr=B-24},Xe.prototype.set_type=function(B){ft[this.ptr+4>>2]=B},Xe.prototype.get_type=function(){return ft[this.ptr+4>>2]},Xe.prototype.set_destructor=function(B){ft[this.ptr+8>>2]=B},Xe.prototype.get_destructor=function(){return ft[this.ptr+8>>2]},Xe.prototype.set_caught=function(B){Ve[this.ptr+12]=B?1:0},Xe.prototype.get_caught=function(){return Ve[this.ptr+12]!=0},Xe.prototype.set_rethrown=function(B){Ve[this.ptr+13]=B?1:0},Xe.prototype.get_rethrown=function(){return Ve[this.ptr+13]!=0},Xe.prototype.init=function(B,M){this.set_adjusted_ptr(0),this.set_type(B),this.set_destructor(M)},Xe.prototype.set_adjusted_ptr=function(B){ft[this.ptr+16>>2]=B},Xe.prototype.get_adjusted_ptr=function(){return ft[this.ptr+16>>2]},It=0,Ut=function(B){he()},dt=function(B,M,T){new Xe(B).init(M,T),It++,Ut(B)},Yt=function(){return he("")},st=function(){return 2147483648},kt=function(B,M){return Math.ceil(B/M)*M},ht=function(B){var M=bo.buffer.byteLength;try{return bo.grow((B-M+65535)/65536|0),Se(),1}catch{}},Cr=function(B){var M=_t.length;B>>>=0;var T=st();if(B>T)return!1;for(var fe=1;fe<=4;fe*=2){var H=M*(1+.2/fe);if(H=Math.min(H,B+100663296),H=Math.min(T,kt(Math.max(B,H),65536)),ht(H))return!0}return!1},or=function(B){for(var M=0,T=0;T<B.length;++T){var fe=B.charCodeAt(T);fe<=127?M++:fe<=2047?M+=2:fe>=55296&&fe<=57343?(M+=4,++T):M+=3}return M},Nt=function(B,M,T,fe){if(!(fe>0))return 0;var H=T;fe=T+fe-1;for(var Oe=0;Oe<B.length;++Oe){var At=B.codePointAt(Oe);if(At<=127){if(T>=fe)break;M[T++]=At}else if(At<=2047){if(T+1>=fe)break;M[T++]=192|At>>6,M[T++]=128|At&63}else if(At<=65535){if(T+2>=fe)break;M[T++]=224|At>>12,M[T++]=128|At>>6&63,M[T++]=128|At&63}else{if(T+3>=fe)break;M[T++]=240|At>>18,M[T++]=128|At>>12&63,M[T++]=128|At>>6&63,M[T++]=128|At&63,Oe++}}return M[T]=0,T-H},Ar=function(B,M,T){return T=T>0?T:or(B)+1,T=Array(T),B=Nt(B,T,0,T.length),M&&(T.length=B),T},xt=globalThis.TextDecoder&&new TextDecoder,Qr=function(B,M,T,fe){if(T=M+T,fe)return T;for(;B[M]&&!(M>=T);)++M;return M},ct=function(B,M,T,fe){if(M=M===void 0?0:M,T=Qr(B,M,T,fe),T-M>16&&B.buffer&&xt)return xt.decode(B.subarray(M,T));for(fe="";M<T;){var H=B[M++];if(H&128){var Oe=B[M++]&63;if((H&224)==192)fe+=String.fromCharCode((H&31)<<6|Oe);else{var At=B[M++]&63;H=(H&240)==224?(H&15)<<12|Oe<<6|At:(H&7)<<18|Oe<<12|At<<6|B[M++]&63,H<65536?fe+=String.fromCharCode(H):(H-=65536,fe+=String.fromCharCode(55296|H>>10,56320|H&1023))}}else fe+=String.fromCharCode(H)}return fe},Wt=function(B,M,T){return B?ct(_t,B,M,T):""},ir=[],it=function(B){return ir.push(B)},y.printErr&&(Te=y.printErr),y.wasmBinary&&(je=y.wasmBinary),wt=y.preInit)for(typeof wt=="function"&&(y.preInit=wt=[wt]);wt.length>0;)wt.shift()();return Hi={a:dt,c:Yt,b:Cr},ce.yield(re(),2)}return ce.getNextAddressJsc()!=3?(Eo=ce.getYieldResultJsc(),ce.yield(Ae(),3)):(X.prototype=Object.create(X.prototype),X.prototype.constructor=X,X.prototype.__class__=X,X.__cache__={},y.WrapperObject=X,y.getCache=W,y.wrapPointer=J,y.castObject=z,y.NULL=J(0),y.destroy=K,y.compare=R,y.getPointer=j,y.getClass=G,ke={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ke.needed){for(var B=0;B<ke.temps.length;B++)y._webidl_free(ke.temps[B]);ke.temps.length=0,y._webidl_free(ke.buffer),ke.buffer=0,ke.size+=ke.needed,ke.needed=0}ke.buffer||(ke.size+=128,ke.buffer=y._webidl_malloc(ke.size),ke.buffer||he(void 0)),ke.pos=0},alloc:function(B,M){return ke.buffer||he(void 0),B=B.length*M.BYTES_PER_ELEMENT,B=kt(B,8),ke.pos+B>=ke.size?(B>0||he(void 0),ke.needed+=B,M=y._webidl_malloc(B),ke.temps.push(M)):(M=ke.buffer+ke.pos,ke.pos+=B),M}},S.prototype=Object.create(X.prototype),S.prototype.constructor=S,S.prototype.__class__=S,S.__cache__={},y.VoidPtr=S,S.prototype.__destroy__=S.prototype.__destroy__=function(){Tt(this.ptr)},v.prototype=Object.create(X.prototype),v.prototype.constructor=v,v.prototype.__class__=v,v.__cache__={},y.DecoderBuffer=v,v.prototype.Init=v.prototype.Init=function(B,M){var T=this.ptr;ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),Xt(T,B,M)},v.prototype.__destroy__=v.prototype.__destroy__=function(){Zt(this.ptr)},w.prototype=Object.create(X.prototype),w.prototype.constructor=w,w.prototype.__class__=w,w.__cache__={},y.AttributeTransformData=w,w.prototype.transform_type=w.prototype.transform_type=function(){return xr(this.ptr)},w.prototype.__destroy__=w.prototype.__destroy__=function(){wr(this.ptr)},m.prototype=Object.create(X.prototype),m.prototype.constructor=m,m.prototype.__class__=m,m.__cache__={},y.GeometryAttribute=m,m.prototype.__destroy__=m.prototype.__destroy__=function(){Dr(this.ptr)},Q.prototype=Object.create(X.prototype),Q.prototype.constructor=Q,Q.prototype.__class__=Q,Q.__cache__={},y.PointAttribute=Q,Q.prototype.size=Q.prototype.size=function(){return _r(this.ptr)},Q.prototype.GetAttributeTransformData=Q.prototype.GetAttributeTransformData=function(){return J(Sr(this.ptr),w)},Q.prototype.attribute_type=Q.prototype.attribute_type=function(){return Pr(this.ptr)},Q.prototype.data_type=Q.prototype.data_type=function(){return Gr(this.ptr)},Q.prototype.num_components=Q.prototype.num_components=function(){return ar(this.ptr)},Q.prototype.normalized=Q.prototype.normalized=function(){return!!Lt(this.ptr)},Q.prototype.byte_stride=Q.prototype.byte_stride=function(){return Rr(this.ptr)},Q.prototype.byte_offset=Q.prototype.byte_offset=function(){return Fr(this.ptr)},Q.prototype.unique_id=Q.prototype.unique_id=function(){return sr(this.ptr)},Q.prototype.__destroy__=Q.prototype.__destroy__=function(){Ur(this.ptr)},b.prototype=Object.create(X.prototype),b.prototype.constructor=b,b.prototype.__class__=b,b.__cache__={},y.AttributeQuantizationTransform=b,b.prototype.InitFromAttribute=b.prototype.InitFromAttribute=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),!!Ot(M,B)},b.prototype.quantization_bits=b.prototype.quantization_bits=function(){return kr(this.ptr)},b.prototype.min_value=b.prototype.min_value=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Nr(M,B)},b.prototype.range=b.prototype.range=function(){return lr(this.ptr)},b.prototype.__destroy__=b.prototype.__destroy__=function(){er(this.ptr)},I.prototype=Object.create(X.prototype),I.prototype.constructor=I,I.prototype.__class__=I,I.__cache__={},y.AttributeOctahedronTransform=I,I.prototype.InitFromAttribute=I.prototype.InitFromAttribute=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),!!Ht(M,B)},I.prototype.quantization_bits=I.prototype.quantization_bits=function(){return ur(this.ptr)},I.prototype.__destroy__=I.prototype.__destroy__=function(){C(this.ptr)},h.prototype=Object.create(X.prototype),h.prototype.constructor=h,h.prototype.__class__=h,h.__cache__={},y.PointCloud=h,h.prototype.num_attributes=h.prototype.num_attributes=function(){return k(this.ptr)},h.prototype.num_points=h.prototype.num_points=function(){return V(this.ptr)},h.prototype.__destroy__=h.prototype.__destroy__=function(){q(this.ptr)},d.prototype=Object.create(X.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},y.Mesh=d,d.prototype.num_faces=d.prototype.num_faces=function(){return ae(this.ptr)},d.prototype.num_attributes=d.prototype.num_attributes=function(){return se(this.ptr)},d.prototype.num_points=d.prototype.num_points=function(){return pe(this.ptr)},d.prototype.__destroy__=d.prototype.__destroy__=function(){ue(this.ptr)},f.prototype=Object.create(X.prototype),f.prototype.constructor=f,f.prototype.__class__=f,f.__cache__={},y.Metadata=f,f.prototype.__destroy__=f.prototype.__destroy__=function(){ve(this.ptr)},p.prototype=Object.create(X.prototype),p.prototype.constructor=p,p.prototype.__class__=p,p.__cache__={},y.Status=p,p.prototype.code=p.prototype.code=function(){return Fe(this.ptr)},p.prototype.ok=p.prototype.ok=function(){return!!Ke(this.ptr)},p.prototype.error_msg=p.prototype.error_msg=function(){return Wt(Ne(this.ptr))},p.prototype.__destroy__=p.prototype.__destroy__=function(){rt(this.ptr)},g.prototype=Object.create(X.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},y.DracoFloat32Array=g,g.prototype.GetValue=g.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),St(M,B)},g.prototype.size=g.prototype.size=function(){return ut(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){gr(this.ptr)},u.prototype=Object.create(X.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},y.DracoInt8Array=u,u.prototype.GetValue=u.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),cn(M,B)},u.prototype.size=u.prototype.size=function(){return ln(this.ptr)},u.prototype.__destroy__=u.prototype.__destroy__=function(){un(this.ptr)},l.prototype=Object.create(X.prototype),l.prototype.constructor=l,l.prototype.__class__=l,l.__cache__={},y.DracoUInt8Array=l,l.prototype.GetValue=l.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),pn(M,B)},l.prototype.size=l.prototype.size=function(){return fn(this.ptr)},l.prototype.__destroy__=l.prototype.__destroy__=function(){dn(this.ptr)},c.prototype=Object.create(X.prototype),c.prototype.constructor=c,c.prototype.__class__=c,c.__cache__={},y.DracoInt16Array=c,c.prototype.GetValue=c.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),mn(M,B)},c.prototype.size=c.prototype.size=function(){return In(this.ptr)},c.prototype.__destroy__=c.prototype.__destroy__=function(){Bn(this.ptr)},s.prototype=Object.create(X.prototype),s.prototype.constructor=s,s.prototype.__class__=s,s.__cache__={},y.DracoUInt16Array=s,s.prototype.GetValue=s.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),En(M,B)},s.prototype.size=s.prototype.size=function(){return yn(this.ptr)},s.prototype.__destroy__=s.prototype.__destroy__=function(){Cn(this.ptr)},a.prototype=Object.create(X.prototype),a.prototype.constructor=a,a.prototype.__class__=a,a.__cache__={},y.DracoInt32Array=a,a.prototype.GetValue=a.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),xn(M,B)},a.prototype.size=a.prototype.size=function(){return wn(this.ptr)},a.prototype.__destroy__=a.prototype.__destroy__=function(){vn(this.ptr)},i.prototype=Object.create(X.prototype),i.prototype.constructor=i,i.prototype.__class__=i,i.__cache__={},y.DracoUInt32Array=i,i.prototype.GetValue=i.prototype.GetValue=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Mn(M,B)},i.prototype.size=i.prototype.size=function(){return _n(this.ptr)},i.prototype.__destroy__=i.prototype.__destroy__=function(){Sn(this.ptr)},A.prototype=Object.create(X.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},y.MetadataQuerier=A,A.prototype.HasEntry=A.prototype.HasEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),!!Gn(T,B,M)},A.prototype.GetIntEntry=A.prototype.GetIntEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Rn(T,B,M)},A.prototype.GetIntEntryArray=A.prototype.GetIntEntryArray=function(B,M,T){var fe=this.ptr;ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),T&&typeof T=="object"&&(T=T.ptr),Fn(fe,B,M,T)},A.prototype.GetDoubleEntry=A.prototype.GetDoubleEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Un(T,B,M)},A.prototype.GetStringEntry=A.prototype.GetStringEntry=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Wt(kn(T,B,M))},A.prototype.NumEntries=A.prototype.NumEntries=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),Nn(M,B)},A.prototype.GetEntryName=A.prototype.GetEntryName=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),Wt(Tn(T,B,M))},A.prototype.__destroy__=A.prototype.__destroy__=function(){Ln(this.ptr)},o.prototype=Object.create(X.prototype),o.prototype.constructor=o,o.prototype.__class__=o,o.__cache__={},y.Decoder=o,o.prototype.DecodeArrayToPointCloud=o.prototype.DecodeArrayToPointCloud=function(B,M,T){var fe=this.ptr;return ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),J(Hn(fe,B,M,T),p)},o.prototype.DecodeArrayToMesh=o.prototype.DecodeArrayToMesh=function(B,M,T){var fe=this.ptr;return ke.prepare(),typeof B=="object"&&(B=N(B)),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),J(jn(fe,B,M,T),p)},o.prototype.GetAttributeId=o.prototype.GetAttributeId=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),Vn(T,B,M)},o.prototype.GetAttributeIdByName=o.prototype.GetAttributeIdByName=function(B,M){var T=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),Jn(T,B,M)},o.prototype.GetAttributeIdByMetadataEntry=o.prototype.GetAttributeIdByMetadataEntry=function(B,M,T){var fe=this.ptr;return ke.prepare(),B&&typeof B=="object"&&(B=B.ptr),M=M&&typeof M=="object"?M.ptr:_(M),T=T&&typeof T=="object"?T.ptr:_(T),Kn(fe,B,M,T)},o.prototype.GetAttribute=o.prototype.GetAttribute=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(zn(T,B,M),Q)},o.prototype.GetAttributeByUniqueId=o.prototype.GetAttributeByUniqueId=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Tr(T,B,M),Q)},o.prototype.GetMetadata=o.prototype.GetMetadata=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),J(Yn(M,B),f)},o.prototype.GetAttributeMetadata=o.prototype.GetAttributeMetadata=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(Lr(T,B,M),f)},o.prototype.GetFaceFromMesh=o.prototype.GetFaceFromMesh=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!De(fe,B,M,T)},o.prototype.GetTriangleStripsFromMesh=o.prototype.GetTriangleStripsFromMesh=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),ee(T,B,M)},o.prototype.GetTrianglesUInt16Array=o.prototype.GetTrianglesUInt16Array=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!E(fe,B,M,T)},o.prototype.GetTrianglesUInt32Array=o.prototype.GetTrianglesUInt32Array=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!D(fe,B,M,T)},o.prototype.GetAttributeFloat=o.prototype.GetAttributeFloat=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!P(fe,B,M,T)},o.prototype.GetAttributeFloatForAllPoints=o.prototype.GetAttributeFloatForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!Y(fe,B,M,T)},o.prototype.GetAttributeIntForAllPoints=o.prototype.GetAttributeIntForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!U(fe,B,M,T)},o.prototype.GetAttributeInt8ForAllPoints=o.prototype.GetAttributeInt8ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!Ce(fe,B,M,T)},o.prototype.GetAttributeUInt8ForAllPoints=o.prototype.GetAttributeUInt8ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ot(fe,B,M,T)},o.prototype.GetAttributeInt16ForAllPoints=o.prototype.GetAttributeInt16ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ei(fe,B,M,T)},o.prototype.GetAttributeUInt16ForAllPoints=o.prototype.GetAttributeUInt16ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ti(fe,B,M,T)},o.prototype.GetAttributeInt32ForAllPoints=o.prototype.GetAttributeInt32ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ri(fe,B,M,T)},o.prototype.GetAttributeUInt32ForAllPoints=o.prototype.GetAttributeUInt32ForAllPoints=function(B,M,T){var fe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),!!ni(fe,B,M,T)},o.prototype.GetAttributeDataArrayForAllPoints=o.prototype.GetAttributeDataArrayForAllPoints=function(B,M,T,fe,H){var Oe=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),T&&typeof T=="object"&&(T=T.ptr),fe&&typeof fe=="object"&&(fe=fe.ptr),H&&typeof H=="object"&&(H=H.ptr),!!oi(Oe,B,M,T,fe,H)},o.prototype.SkipAttributeTransform=o.prototype.SkipAttributeTransform=function(B){var M=this.ptr;B&&typeof B=="object"&&(B=B.ptr),Ai(M,B)},o.prototype.GetEncodedGeometryType_Deprecated=o.prototype.GetEncodedGeometryType_Deprecated=function(B){var M=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),ii(M,B)},o.prototype.DecodeBufferToPointCloud=o.prototype.DecodeBufferToPointCloud=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(ai(T,B,M),p)},o.prototype.DecodeBufferToMesh=o.prototype.DecodeBufferToMesh=function(B,M){var T=this.ptr;return B&&typeof B=="object"&&(B=B.ptr),M&&typeof M=="object"&&(M=M.ptr),J(si(T,B,M),p)},o.prototype.__destroy__=o.prototype.__destroy__=function(){ci(this.ptr)},(function(){function B(){y.ATTRIBUTE_INVALID_TRANSFORM=li(),y.ATTRIBUTE_NO_TRANSFORM=ui(),y.ATTRIBUTE_QUANTIZATION_TRANSFORM=gi(),y.ATTRIBUTE_OCTAHEDRON_TRANSFORM=pi(),y.INVALID=fi(),y.POSITION=di(),y.NORMAL=hi(),y.COLOR=mi(),y.TEX_COORD=Ii(),y.GENERIC=Bi(),y.INVALID_GEOMETRY_TYPE=bi(),y.POINT_CLOUD=Ei(),y.TRIANGULAR_MESH=yi(),y.DT_INVALID=Ci(),y.DT_INT8=Qi(),y.DT_UINT8=xi(),y.DT_INT16=wi(),y.DT_UINT16=vi(),y.DT_INT32=Di(),y.DT_UINT32=Mi(),y.DT_INT64=_i(),y.DT_UINT64=Si(),y.DT_FLOAT32=Pi(),y.DT_FLOAT64=Gi(),y.DT_BOOL=Ri(),y.DT_TYPES_COUNT=Fi(),y.OK=Ui(),y.DRACO_ERROR=ki(),y.IO_ERROR=Ni(),y.INVALID_PARAMETER=Ti(),y.UNSUPPORTED_VERSION=Li(),y.UNKNOWN_VERSION=Oi()}yt?B():it(B)})(),y.Decoder.prototype.GetEncodedGeometryType=function(B){if(B.__class__&&B.__class__===y.DecoderBuffer)return y.Decoder.prototype.GetEncodedGeometryType_Deprecated(B);if(B.byteLength<8)return y.INVALID_GEOMETRY_TYPE;switch(B[7]){case 0:return y.POINT_CLOUD;case 1:return y.TRIANGULAR_MESH;default:return y.INVALID_GEOMETRY_TYPE}},typeof y.onModuleParsed=="function"&&y.onModuleParsed(),ce.return(y))})}})();typeof fA=="object"&&typeof So=="object"?(So.exports=pA,So.exports.default=pA):typeof define=="function"&&define.amd&&define([],function(){return pA})});var Da=Wn((Pg,va)=>{$();var Ac=xa(),ic=wa();va.exports={createEncoderModule:Ac,createDecoderModule:ic}});var cs=Wn((td,ss)=>{$();var Xo=()=>new Proxy(function(){},{get:(e,t)=>t==="__esModule"?!0:t===Symbol.toPrimitive?()=>"":Xo(),apply:()=>Xo(),construct:()=>Xo()});ss.exports=Xo()});$();var ca=new Float32Array(2048);for(let e=0;e<2048;e++)ca[e]=.5*(1-Math.cos(2*Math.PI*e/2047));var la=new Uint16Array(2048);for(let e=0;e<2048;e++){let t=0,r=e;for(let n=0;n<11;n++)t=t<<1|r&1,r>>=1;la[e]=t}var ua=new Float32Array(2048/2),ga=new Float32Array(2048/2);for(let e=0;e<2048/2;e++){let t=-2*Math.PI*e/2048;ua[e]=Math.cos(t),ga[e]=Math.sin(t)}function Vs(e,t){for(let r=0;r<2048;r++){let n=la[r]??0;if(n>r){let o=e[r]??0;e[r]=e[n]??0,e[n]=o;let A=t[r]??0;t[r]=t[n]??0,t[n]=A}}for(let r=2;r<=2048;r<<=1){let n=r>>1,o=2048/r;for(let A=0;A<2048;A+=r)for(let i=0;i<n;i++){let a=i*o,s=ua[a]??1,c=ga[a]??0,l=e[A+i]??0,u=t[A+i]??0,g=e[A+i+n]??0,p=t[A+i+n]??0,f=g*s-p*c,d=g*c+p*s;e[A+i]=l+f,t[A+i]=u+d,e[A+i+n]=l-f,t[A+i+n]=u-d}}}var Co=class e{tempReal=new Float32Array(2048);tempImag=new Float32Array(2048);previousBins=new Float32Array(1024);extractAtTime(t,r,n){let o=t.length,A=o>0?t[0]?.length??0:0,a=Math.round(n*r)-1024;for(let w=0;w<2048;w++){let v=a+w,S=0;v>=0&&v<A&&(o===1?S=t[0]?.[v]??0:o>=2&&(S=((t[0]?.[v]??0)+(t[1]?.[v]??0))*.5)),this.tempReal[w]=S*(ca[w]??1),this.tempImag[w]=0}Vs(this.tempReal,this.tempImag);let s=new Float32Array(1024),c=2/2048;for(let w=0;w<1024;w++){let v=this.tempReal[w]??0,S=this.tempImag[w]??0;s[w]=Math.sqrt(v*v+S*S)*c*2}let l=r/2048,u=Math.max(1,Math.round(20/l)),g=Math.max(u+1,Math.round(150/l)),p=0;for(let w=u;w<=g&&w<1024;w++)p+=(s[w]??0)*(s[w]??0);let f=Math.min(1,Math.sqrt(p/(g-u+1))*4),d=0;for(let w=0;w<1024;w++){let v=(s[w]??0)-(this.previousBins[w]??0);v>0&&(d+=v),this.previousBins[w]=s[w]??0}let h=Math.min(1,d*.15),I=Math.round(300/l),b=Math.min(1023,Math.round(3400/l)),Q=0;for(let w=I;w<=b;w++)Q+=(s[w]??0)*(s[w]??0);let m=Math.min(1,Math.sqrt(Q/(b-I+1))*3.5);return{fftBins:s,bassEnergy:f,drumTransient:h,vocalEnergy:m,timeMs:n*1e3}}static packBufferData(t){let r=new Float32Array(1028);return r.set(t.fftBins,0),r[1024]=t.bassEnergy,r[1025]=t.drumTransient,r[1026]=t.vocalEnergy,r[1027]=t.timeMs,r}static createGpuBuffer(t,r){let n=r?e.packBufferData(r):new Float32Array(1028),o=t.createBuffer({label:"AudioLatentBuffer",size:4112,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST,mappedAtCreation:!0});return new Float32Array(o.getMappedRange()).set(n),o.unmap(),o}static updateGpuBuffer(t,r,n){let o=e.packBufferData(n);t.queue.writeBuffer(r,0,o)}},sa=class{constructor(t,r,n,o){this.channels=t;this.sampleRate=r;this.fps=n;this.totalFrames=o;let A=new Co,i=r||48e3,a=n||30,s=t[0]?.length??0,c=Math.max(10,Math.ceil(s/i*a)+10),l=typeof o=="number"&&Number.isFinite(o)&&o>0?Math.round(o):c;this.frames=new Array(l);for(let u=0;u<l;u++){let g=u/a;this.frames[u]=A.extractAtTime(t,i,g)}}channels;sampleRate;fps;totalFrames;frames=[];gpuBuffers=new WeakMap;getFrameData(t){let r=Math.max(0,Math.min(this.totalFrames-1,Math.round(t)));return this.frames[r]??{fftBins:new Float32Array(1024),bassEnergy:0,drumTransient:0,vocalEnergy:0,timeMs:r/this.fps*1e3}}getGpuBuffer(t,r){let n=this.gpuBuffers.get(t);n||(n=new Map,this.gpuBuffers.set(t,n));let o=Math.max(0,Math.min(this.totalFrames-1,Math.round(r))),A=n.get(o);if(!A){let i=this.getFrameData(o);A=Co.createGpuBuffer(t,i),n.set(o,A)}return A}};$();var Z={create(e=0,t=0,r=0){return[e,t,r]},copy(e){return[e[0],e[1],e[2]]},set(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e},add(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]},subtract(e,t){return[e[0]-t[0],e[1]-t[1],e[2]-t[2]]},multiplyScalar(e,t){return[e[0]*t,e[1]*t,e[2]*t]},dot(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},cross(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]},lengthSq(e){return e[0]*e[0]+e[1]*e[1]+e[2]*e[2]},length(e){return Math.hypot(e[0],e[1],e[2])},distance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])},normalize(e){let t=Math.hypot(e[0],e[1],e[2]);if(t===0)return[0,0,0];let r=1/t;return[e[0]*r,e[1]*r,e[2]*r]},lerp(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},equals(e,t,r=1e-6){return Math.abs(e[0]-t[0])<=r&&Math.abs(e[1]-t[1])<=r&&Math.abs(e[2]-t[2])<=r}};$();var Ee={identity(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},copy(e){return[...e]},multiply(e,t){let r=new Array(16);for(let n=0;n<4;n++)for(let o=0;o<4;o++)r[o*4+n]=e[0+n]*t[o*4+0]+e[4+n]*t[o*4+1]+e[8+n]*t[o*4+2]+e[12+n]*t[o*4+3];return r},translate(e,t,r=0){return[1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1]},scale(e,t,r=1){return[e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1]},rotateX(e){let t=Math.cos(e),r=Math.sin(e);return[1,0,0,0,0,t,r,0,0,-r,t,0,0,0,0,1]},rotateY(e){let t=Math.cos(e),r=Math.sin(e);return[t,0,-r,0,0,1,0,0,r,0,t,0,0,0,0,1]},rotateZ(e){let t=Math.cos(e),r=Math.sin(e);return[t,r,0,0,-r,t,0,0,0,0,1,0,0,0,0,1]},rotateAxis(e,t){let r=Z.normalize(e),n=r[0],o=r[1],A=r[2],i=Math.cos(t),a=Math.sin(t),s=1-i;return[s*n*n+i,s*n*o+a*A,s*n*A-a*o,0,s*n*o-a*A,s*o*o+i,s*o*A+a*n,0,s*n*A+a*o,s*o*A-a*n,s*A*A+i,0,0,0,0,1]},lookAt(e,t,r=[0,-1,0]){let n=Z.subtract(t,e);Z.lengthSq(n)===0?n=[0,0,1]:n=Z.normalize(n);let o=Z.cross(n,r);Z.lengthSq(o)===0?o=[1,0,0]:o=Z.normalize(o);let A=Z.cross(o,n);return[o[0],A[0],n[0],0,o[1],A[1],n[1],0,o[2],A[2],n[2],0,-Z.dot(o,e),-Z.dot(A,e),-Z.dot(n,e),1]},perspective(e,t,r,n){let o=1/Math.tan(e/2),A=1/(n-r);return[o/t,0,0,0,0,o,0,0,0,0,n*A,1,0,0,-r*n*A,0]},orthographic(e,t,r,n,o,A){let i=1/(t-e),a=1/(n-r),s=1/(A-o);return[2*i,0,0,0,0,2*a,0,0,0,0,s,0,-(t+e)*i,-(n+r)*a,-o*s,1]},invert(e){let t=new Array(16);t[0]=e[5]*e[10]*e[15]-e[5]*e[11]*e[14]-e[9]*e[6]*e[15]+e[9]*e[7]*e[14]+e[13]*e[6]*e[11]-e[13]*e[7]*e[10],t[4]=-e[4]*e[10]*e[15]+e[4]*e[11]*e[14]+e[8]*e[6]*e[15]-e[8]*e[7]*e[14]-e[12]*e[6]*e[11]+e[12]*e[7]*e[10],t[8]=e[4]*e[9]*e[15]-e[4]*e[11]*e[13]-e[8]*e[5]*e[15]+e[8]*e[7]*e[13]+e[12]*e[5]*e[11]-e[12]*e[7]*e[9],t[12]=-e[4]*e[9]*e[14]+e[4]*e[10]*e[13]+e[8]*e[5]*e[14]-e[8]*e[6]*e[13]-e[12]*e[5]*e[10]+e[12]*e[6]*e[9],t[1]=-e[1]*e[10]*e[15]+e[1]*e[11]*e[14]+e[9]*e[2]*e[15]-e[9]*e[3]*e[14]-e[13]*e[2]*e[11]+e[13]*e[3]*e[10],t[5]=e[0]*e[10]*e[15]-e[0]*e[11]*e[14]-e[8]*e[2]*e[15]+e[8]*e[3]*e[14]+e[12]*e[2]*e[11]-e[12]*e[3]*e[10],t[9]=-e[0]*e[9]*e[15]+e[0]*e[11]*e[13]+e[8]*e[1]*e[15]-e[8]*e[3]*e[13]-e[12]*e[1]*e[11]+e[12]*e[3]*e[9],t[13]=e[0]*e[9]*e[14]-e[0]*e[10]*e[13]-e[8]*e[1]*e[14]+e[8]*e[2]*e[13]+e[12]*e[1]*e[10]-e[12]*e[2]*e[9],t[2]=e[1]*e[6]*e[15]-e[1]*e[7]*e[14]-e[5]*e[2]*e[15]+e[5]*e[3]*e[14]+e[13]*e[2]*e[7]-e[13]*e[3]*e[6],t[6]=-e[0]*e[6]*e[15]+e[0]*e[7]*e[14]+e[4]*e[2]*e[15]-e[4]*e[3]*e[14]-e[12]*e[2]*e[7]+e[12]*e[3]*e[6],t[10]=e[0]*e[5]*e[15]-e[0]*e[7]*e[13]-e[4]*e[1]*e[15]+e[4]*e[3]*e[13]+e[12]*e[1]*e[7]-e[12]*e[3]*e[5],t[14]=-e[0]*e[5]*e[14]+e[0]*e[6]*e[13]+e[4]*e[1]*e[14]-e[4]*e[2]*e[13]-e[12]*e[1]*e[6]+e[12]*e[2]*e[5],t[3]=-e[1]*e[6]*e[11]+e[1]*e[7]*e[10]+e[5]*e[2]*e[11]-e[5]*e[3]*e[10]-e[9]*e[2]*e[7]+e[9]*e[3]*e[6],t[7]=e[0]*e[6]*e[11]-e[0]*e[7]*e[10]-e[4]*e[2]*e[11]+e[4]*e[3]*e[10]+e[8]*e[2]*e[7]-e[8]*e[3]*e[6],t[11]=-e[0]*e[5]*e[11]+e[0]*e[7]*e[9]+e[4]*e[1]*e[11]-e[4]*e[3]*e[9]-e[8]*e[1]*e[7]+e[8]*e[3]*e[5],t[15]=e[0]*e[5]*e[10]-e[0]*e[6]*e[9]-e[4]*e[1]*e[10]+e[4]*e[2]*e[9]+e[8]*e[1]*e[6]-e[8]*e[2]*e[5];let r=e[0]*t[0]+e[1]*t[4]+e[2]*t[8]+e[3]*t[12];if(Math.abs(r)<1e-12)return null;r=1/r;for(let n=0;n<16;n++)t[n]*=r;return t},transpose(e){return[e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]]},projectPoint(e,t){let r=t[0],n=t[1],o=t[2],A=e[0]*r+e[4]*n+e[8]*o+e[12],i=e[1]*r+e[5]*n+e[9]*o+e[13],a=e[2]*r+e[6]*n+e[10]*o+e[14],s=e[3]*r+e[7]*n+e[11]*o+e[15],c=Math.abs(s)>1e-6?1/s:1;return[A*c,i*c,a*c]},projectRectangle(e,t,r){return[Ee.projectPoint(e,[0,0,0]),Ee.projectPoint(e,[t,0,0]),Ee.projectPoint(e,[t,r,0]),Ee.projectPoint(e,[0,r,0])]},toFloat32Array(e){return new Float32Array(e)}};$();function qn(e,t,r=3){let n=0,o=1,A=1,i=0;for(let a=0;a<r;a++){let s=Math.sin(e*o*2*Math.PI+t+a*1.7),c=Math.cos(e*o*1.414*Math.PI+t*2.1+a*.9);n+=(s*.6+c*.4)*A,i+=A,o*=2,A*=.5}return i>0?n/i:0}var qr={createDefaultCamera(e,t,r=50){let n=r*Math.PI/180,o=t/2/Math.tan(n/2);return{eye:[e/2,t/2,-o],target:[e/2,t/2,0],up:[0,-1,0],fov:r,aspect:Math.max(1e-4,e/t),near:1,far:5e4,zoom:1,focusDistance:o,fStop:2.8,maxBlurRadius:32}},computeViewMatrix(e){return Ee.lookAt(e.eye,e.target,e.up)},computeProjectionMatrix(e){let t=e.fov*Math.PI/180,r=Ee.perspective(t,e.aspect,e.near,e.far);return e.zoom!==1&&e.zoom>0&&(r[0]*=e.zoom,r[5]*=e.zoom),r},computeViewProjectionMatrix(e){let t=qr.computeViewMatrix(e),r=qr.computeProjectionMatrix(e);return Ee.multiply(r,t)},dolly(e,t,r){let n=Z.normalize(Z.subtract(t,e)),o=Z.multiplyScalar(n,r);return{eye:Z.add(e,o),target:t}},truckPedestal(e,t,r,n,o){let A=Z.normalize(Z.subtract(t,e)),i=Z.normalize(Z.cross(A,r)),a=Z.cross(i,A),s=Z.multiplyScalar(i,n),c=Z.multiplyScalar(a,o),l=Z.add(s,c);return{eye:Z.add(e,l),target:Z.add(t,l)}},orbit(e,t,r,n){let o=r*Math.PI/180,A=n*Math.PI/180,i=Math.cos(A),a=Math.sin(A),s=Math.cos(o),c=Math.sin(o),l=e[0]+t*i*c,u=e[1]-t*a,g=e[2]-t*i*s;return[l,u,g]},applyOrientation(e,t,r,n){if(t===0&&r===0&&n===0)return e;let o=Z.normalize(Z.subtract(e.target,e.eye)),A=Z.normalize(Z.cross(o,e.up)),i=Z.cross(A,o),a=Z.distance(e.eye,e.target),s=o,c=i;if(r!==0){let g=r*Math.PI/180,p=Math.cos(g),f=Math.sin(g);s=Z.normalize(Z.subtract(Z.multiplyScalar(s,p),Z.multiplyScalar(A,f)))}let l=Z.normalize(Z.cross(s,c));if(t!==0){let g=t*Math.PI/180,p=Math.cos(g),f=Math.sin(g);s=Z.normalize(Z.add(Z.multiplyScalar(s,p),Z.multiplyScalar(c,f))),c=Z.normalize(Z.cross(l,s))}if(n!==0){let g=n*Math.PI/180,p=Math.cos(g),f=Math.sin(g);c=Z.normalize(Z.add(Z.multiplyScalar(c,p),Z.multiplyScalar(l,f)))}let u=Z.add(e.eye,Z.multiplyScalar(s,a));return{...e,target:u,up:c}},applyCameraShake(e,t,r){let{translationAmplitude:n,rotationAmplitude:o,frequency:A=2.5,octaves:i=3,seed:a=42}=r;if(n<=0&&o<=0)return e;let s=t*A,c=qn(s,a,i)*n,l=qn(s,a+101.5,i)*n,u=qn(s,a+203.7,i)*(n*.5),g=qn(s,a+307.1,i)*o,p=qn(s,a+409.3,i)*o,f=Z.normalize(Z.subtract(e.target,e.eye)),d=Z.normalize(Z.cross(f,e.up)),h=Z.cross(d,f),I=Z.add(Z.multiplyScalar(d,c),Z.add(Z.multiplyScalar(h,l),Z.multiplyScalar(f,u))),b=Z.add(e.eye,I),Q=Z.add(e.target,Z.add(Z.multiplyScalar(d,p*10),Z.multiplyScalar(h,g*10)));return{...e,eye:b,target:Q}},computeCircleOfConfusion(e,t,r,n,o=32){if(t<=0||n<=0||e<=0)return 0;let A=Math.abs(e-t),i=r/n,a=A/e*i*.5;return Math.min(o,Math.max(0,a))},computeCameraFrustumPlanes(e){let t=r=>{let n=Math.hypot(r[0],r[1],r[2]);return n===0?r:[r[0]/n,r[1]/n,r[2]/n,r[3]/n]};return{left:t([e[3]+e[0],e[7]+e[4],e[11]+e[8],e[15]+e[12]]),right:t([e[3]-e[0],e[7]-e[4],e[11]-e[8],e[15]-e[12]]),bottom:t([e[3]+e[1],e[7]+e[5],e[11]+e[9],e[15]+e[13]]),top:t([e[3]-e[1],e[7]-e[5],e[11]-e[9],e[15]-e[13]]),near:t([e[2],e[6],e[10],e[14]]),far:t([e[3]-e[2],e[7]-e[6],e[11]-e[10],e[15]-e[14]])}},isBoxInFrustum(e,t,r){let n=[r.left,r.right,r.bottom,r.top,r.near,r.far];for(let o of n){let A=o[0]>0?t[0]:e[0],i=o[1]>0?t[1]:e[1],a=o[2]>0?t[2]:e[2];if(o[0]*A+o[1]*i+o[2]*a+o[3]<0)return!1}return!0}};$();var Js={studio:{top:"#9da3ad",horizon:"#5d626b",bottom:"#202226",softboxes:3.5},soft:{top:"#f1efea",horizon:"#cfcac1",bottom:"#77726a",softboxes:1.2},sunset:{top:"#4d63a3",horizon:"#ff9a5c",bottom:"#3b2a28",softboxes:1},night:{top:"#121a3a",horizon:"#1f2950",bottom:"#05060b",softboxes:.5},neutral:{top:"#9a9a9a",horizon:"#808080",bottom:"#5c5c5c",softboxes:0}},Ks={none:0,aces:1,agx:2,neutral:3};function Or(e){let t=Zi(e)??[0,0,0,1],r=n=>n<=.04045?n/12.92:((n+.055)/1.055)**2.4;return[r(t[0]),r(t[1]),r(t[2])]}function pa(e){let t=Js[e.preset??"studio"],r=e.intensity??1,n=o=>[o[0]*r,o[1]*r,o[2]*r];return{top:n(Or(e.top??t.top)),horizon:n(Or(e.horizon??t.horizon)),bottom:n(Or(e.bottom??t.bottom)),softboxes:(e.softboxes??t.softboxes)*r,rotationRad:(e.rotation??0)*Math.PI/180,exposureMultiplier:2**(e.exposure??0),toneMapping:Ks[e.toneMapping??"neutral"],fog:e.fog?{color:Or(e.fog.color),start:e.fog.start,end:e.fog.end,opacity:Math.max(0,Math.min(1,e.fog.opacity??1))}:void 0,floor:e.floor?{y:e.floor.y,color:Or(e.floor.color??"#08070a"),reflectivity:Math.max(0,Math.min(1,e.floor.reflectivity??.35)),roughness:Math.max(0,Math.min(1,e.floor.roughness??.35)),fadeDistance:Math.max(0,e.floor.fadeDistance??900),opacity:Math.max(0,Math.min(1,e.floor.opacity??1))}:void 0}}$();var fa=8,sA=768;function aA(e){if(!e)return[1,1,1];if(Array.isArray(e)){let o=e[0]??1,A=e[1]??1,i=e[2]??1;return[o>1?o/255:o,A>1?A/255:A,i>1?i/255:i]}if(typeof e=="object"&&e!==null){let o=e.r??1,A=e.g??1,i=e.b??1;return[o>1?o/255:o,A>1?A/255:A,i>1?i/255:i]}if(typeof e!="string")return[1,1,1];let t=e.trim().toLowerCase();if(t.startsWith("#")){let o=t.slice(1);if(o.length===3){let A=Number.parseInt(o[0]+o[0],16)/255,i=Number.parseInt(o[1]+o[1],16)/255,a=Number.parseInt(o[2]+o[2],16)/255;return[A,i,a]}if(o.length>=6){let A=Number.parseInt(o.slice(0,2),16)/255,i=Number.parseInt(o.slice(2,4),16)/255,a=Number.parseInt(o.slice(4,6),16)/255;return[A,i,a]}}let r=t.match(/rgba?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/);if(r){let o=Number.parseFloat(r[1])/255,A=Number.parseFloat(r[2])/255,i=Number.parseFloat(r[3])/255;return[Math.max(0,Math.min(1,o)),Math.max(0,Math.min(1,A)),Math.max(0,Math.min(1,i))]}let n=t.match(/hsla?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)%?\s*,\s*([\d.]+)%?/);if(n){let o=Number.parseFloat(n[1])/360,A=Number.parseFloat(n[2])/100,i=Number.parseFloat(n[3])/100;return zs(o,A,i)}return[1,1,1]}function zs(e,t,r){if(t===0)return[r,r,r];let n=(i,a,s)=>{let c=s;return c<0&&(c+=1),c>1&&(c-=1),c<1/6?i+(a-i)*6*c:c<1/2?a:c<2/3?i+(a-i)*(2/3-c)*6:i},o=r<.5?r*(1+t):r+t-r*t,A=2*r-o;return[n(A,o,e+1/3),n(A,o,e),n(A,o,e-1/3)]}var vt={computeNormalMatrix(e){let t=Ee.invert(e);return t?[t[0],t[4],t[8],0,t[1],t[5],t[9],0,t[2],t[6],t[10],0,0,0,0,1]:Ee.identity()},processLight(e){let t=aA(e.color),r=e.intensity??1,n=e.position?e.position[0]:e.x??0,o=e.position?e.position[1]:e.y??0,A=e.position?e.position[2]:e.z??0,i=e.lightType??e.type??"directional",a=1;i==="ambient"?a=0:i==="directional"?a=1:i==="point"?a=2:i==="spot"&&(a=3);let s=[0,0,-1];if(e.direction)s=Z.normalize(e.direction);else if(e.target||e.targetX!==void 0||e.targetY!==void 0||e.targetZ!==void 0){let I=e.target?e.target[0]:e.targetX??n,b=e.target?e.target[1]:e.targetY??o,Q=e.target?e.target[2]:e.targetZ??A,m=[I,b,Q],w=Z.subtract(m,[n,o,A]);Z.length(w)>1e-4&&(s=Z.normalize(w))}let c=Math.max(1,e.radius??1e3),l=e.decay??2,u=Math.max(.1,Math.min(180,e.angle??45)),g=Math.max(0,Math.min(1,e.penumbra??.2)),p=u*Math.PI/180,f=p*(1-g),d=Math.cos(p),h=Math.cos(f);return{posType:[n,o,A,a],dirRadius:[s[0],s[1],s[2],c],colorIntensity:[t[0],t[1],t[2],r],spotParams:[d,h,l,0]}},packLightsUniforms(e,t,r,n=!1){let o=new Float32Array(sA/4);if(vt.packPhysicalBlock(o,e??[],t,r,n),(!e||e.length===0)&&!t)return o[4]=0,o[5]=0,o;let A=0,i=0,a=0,s=[];for(let l of e)if((l.lightType??l.type)==="ambient"){let g=aA(l.color),p=l.intensity??1;A+=g[0]*p,i+=g[1]*p,a+=g[2]*p}else s.push(vt.processLight(l));o[0]=A,o[1]=i,o[2]=a,o[3]=1,o[4]=s.length,o[5]=1;let c=8;for(let l=0;l<fa;l++){if(l<s.length){let u=s[l];o[c+0]=u.posType[0],o[c+1]=u.posType[1],o[c+2]=u.posType[2],o[c+3]=u.posType[3],o[c+4]=u.dirRadius[0],o[c+5]=u.dirRadius[1],o[c+6]=u.dirRadius[2],o[c+7]=u.dirRadius[3],o[c+8]=u.colorIntensity[0],o[c+9]=u.colorIntensity[1],o[c+10]=u.colorIntensity[2],o[c+11]=u.colorIntensity[3],o[c+12]=u.spotParams[0],o[c+13]=u.spotParams[1],o[c+14]=u.spotParams[2],o[c+15]=u.spotParams[3]}else for(let u=0;u<16;u++)o[c+u]=0;c+=16}return o},packDirectLights(e,t=[]){let r=e.filter(A=>(A.lightType??A.type)!=="ambient"),n=new Float32Array(Math.max(1,r.length)*40),o=new Map(t.map((A,i)=>[A.lightIndex,i]));for(let[A,i]of r.entries()){let a=vt.processLight(i),s=A*40;n.set(a.posType,s),n.set(a.dirRadius,s+4),n.set(a.colorIntensity,s+8),n.set(a.spotParams,s+12);let c=o.get(A),l=c===void 0?void 0:t[c];if(l&&c!==void 0){for(let u=0;u<16;u++)n[s+16+u]=l.matrix[u]??0;n.set([l.softness,l.mapSize,c,1],s+32),n.set([l.bias,l.normalOffset,l.darkness,0],s+36)}}return n},shadowCasterIndex(e){let t=0;for(let r of e){let n=r.lightType??r.type;if(n!=="ambient"){if(r.castShadow&&(n==="directional"||n==="spot"))return t;t++}}return-1},packPhysicalBlock(e,t,r,n,o=!1){let A=8+fa*16,i=0,a=0,s=0;for(let c of t){if((c.lightType??c.type)!=="ambient")continue;let[l,u,g]=aA(c.color),p=c.intensity??1,f=d=>d<=.04045?d/12.92:((d+.055)/1.055)**2.4;i+=f(l)*p,a+=f(u)*p,s+=f(g)*p}if(e[A+0]=i,e[A+1]=a,e[A+2]=s,e[A+3]=1,r){let c=pa(r);e[6]=1,e[7]=c.toneMapping,e[A+3]=c.exposureMultiplier,e.set([...c.top,c.rotationRad],A+4),e.set([...c.horizon,c.softboxes],A+8),e.set([...c.bottom,1],A+12),c.fog&&(e.set([...c.fog.color,1],A+16),e.set([c.fog.start,c.fog.end,c.fog.opacity,0],A+20))}if(n&&n.lightIndex>=0){e.set([1,n.lightIndex,n.softness,n.mapSize],A+24),e.set([n.bias,n.normalOffset,n.darkness,0],A+28);for(let c=0;c<16;c++)e[A+32+c]=n.matrix[c]??0}r?.floor?(e[A+48]=r.floor.y,e[A+49]=r.floor.fadeDistance??900,e[A+50]=o?1:0,e[A+51]=0):(e[A+48]=0,e[A+49]=0,e[A+50]=0,e[A+51]=0)}};$();var dr=class e{samples=[];frames=[];totalLength=0;constructor(t){if(t.length<2)throw new Error("Path3D requires at least 2 coordinate samples");this.samples=t,this.totalLength=t[t.length-1].distance,this.computeRotationMinimizingFrames()}computeRotationMinimizingFrames(){let t=this.samples.length;this.frames=new Array(t);let r=this.samples[0].tangent,n=[0,-1,0];Math.abs(Z.dot(r,n))>.95&&(n=[0,0,1]);let o=Z.normalize(Z.subtract(n,Z.multiplyScalar(r,Z.dot(n,r))));Z.lengthSq(o)<1e-4&&(o=[1,0,0]);let A=Z.normalize(Z.cross(r,o));this.frames[0]={normal:o,binormal:A,rotation:this.eulerFromFrame(r,o,A)};for(let i=0;i<t-1;i++){let a=this.samples[i].position,s=this.samples[i+1].position,c=this.samples[i].tangent,l=this.samples[i+1].tangent,u=this.frames[i].normal,g=Z.subtract(s,a),p=Z.dot(g,g),f;if(p>1e-8){let h=Z.subtract(c,Z.multiplyScalar(g,2*Z.dot(g,c)/p)),I=Z.subtract(u,Z.multiplyScalar(g,2*Z.dot(g,u)/p)),b=Z.subtract(l,h),Q=Z.dot(b,b);Q>1e-8?f=Z.subtract(I,Z.multiplyScalar(b,2*Z.dot(b,I)/Q)):f=I}else f=u;f=Z.normalize(Z.subtract(f,Z.multiplyScalar(l,Z.dot(l,f))));let d=Z.normalize(Z.cross(l,f));this.frames[i+1]={normal:f,binormal:d,rotation:this.eulerFromFrame(l,f,d)}}}eulerFromFrame(t,r,n){let o=Math.asin(Math.max(-1,Math.min(1,-t[1])))*(180/Math.PI),A=Math.atan2(t[0],t[2])*(180/Math.PI),i=Math.atan2(r[0],r[1])*(180/Math.PI);return[o,A,i]}getSamples(){return this.samples}getPoints(t=64){let r=Math.max(2,Math.round(t)),n=[];for(let o=0;o<r;o++)n.push(this.getPointAt(o/(r-1)).position);return n}getPointAt(t){let n=Math.max(0,Math.min(1,t))*this.totalLength;return this.getPointAtDistance(n)}getPointAtDistance(t){let r=Math.max(0,Math.min(this.totalLength,t)),n=this.samples.length,o=0,A=n-1;for(;o<A;){let Q=o+A>>1;this.samples[Q].distance<r?o=Q+1:A=Q}let i=Math.max(1,o),a=i-1,s=this.samples[a],c=this.samples[i],l=c.distance-s.distance,u=l>1e-6?(r-s.distance)/l:0,g=Z.lerp(s.position,c.position,u),p=Z.normalize(Z.lerp(s.tangent,c.tangent,u)),f=this.frames[a],d=this.frames[i],h=Z.normalize(Z.lerp(f.normal,d.normal,u)),I=Z.normalize(Z.cross(p,h)),b=[f.rotation[0]+(d.rotation[0]-f.rotation[0])*u,f.rotation[1]+(d.rotation[1]-f.rotation[1])*u,f.rotation[2]+(d.rotation[2]-f.rotation[2])*u];return{position:g,tangent:p,normal:h,binormal:I,distance:r,t:this.totalLength>0?r/this.totalLength:0,rotation:b}}static catmullRom(t,r={}){if(t.length<2)throw new Error("Catmull-Rom spline requires at least 2 waypoints");let n=!!r.closed,o=r.samplesPerSegment??40,A=[];if(n)A.push(t[t.length-1]),A.push(...t),A.push(t[0]),A.push(t[1]);else{let s=t[0],c=t[1],l=t[t.length-1],u=t[t.length-2];A.push(Z.subtract(s,Z.subtract(c,s))),A.push(...t),A.push(Z.add(l,Z.subtract(l,u)))}let i=n?t.length:t.length-1,a=[];for(let s=0;s<i;s++){let c=A[s],l=A[s+1],u=A[s+2],g=A[s+3],p=s===i-1?o:o-1;for(let f=0;f<=p;f++){let d=f/o,h=d*d,I=h*d,b=-.5*I+h-.5*d,Q=1.5*I-2.5*h+1,m=-1.5*I+2*h+.5*d,w=.5*I-.5*h,v=[b*c[0]+Q*l[0]+m*u[0]+w*g[0],b*c[1]+Q*l[1]+m*u[1]+w*g[1],b*c[2]+Q*l[2]+m*u[2]+w*g[2]],S=-1.5*h+2*d-.5,N=4.5*h-5*d,_=-4.5*h+4*d+.5,G=1.5*h-1*d,j=[S*c[0]+N*l[0]+_*u[0]+G*g[0],S*c[1]+N*l[1]+_*u[1]+G*g[1],S*c[2]+N*l[2]+_*u[2]+G*g[2]],R=Z.normalize(j);a.push({position:v,tangent:R})}}return e.fromRawSamples(a)}static fromRawSamples(t){let r=0,n=t.map((o,A)=>(A>0&&(r+=Z.distance(o.position,t[A-1].position)),{position:o.position,tangent:o.tangent,distance:r}));if(n.length===0)throw new TypeError("Path3D needs samples");return new e(n)}static bezier(t,r=50){if(t.length===0)throw new Error("Bezier path requires at least 1 segment");let n=[];for(let o=0;o<t.length;o++){let A=t[o],i=o===t.length-1?r:r-1;for(let a=0;a<=i;a++){let s=a/r,c=1-s,l=c*c,u=l*c,g=s*s,p=g*s,f=[u*A.p0[0]+3*l*s*A.p1[0]+3*c*g*A.p2[0]+p*A.p3[0],u*A.p0[1]+3*l*s*A.p1[1]+3*c*g*A.p2[1]+p*A.p3[1],u*A.p0[2]+3*l*s*A.p1[2]+3*c*g*A.p2[2]+p*A.p3[2]],d=[3*l*(A.p1[0]-A.p0[0])+6*c*s*(A.p2[0]-A.p1[0])+3*g*(A.p3[0]-A.p2[0]),3*l*(A.p1[1]-A.p0[1])+6*c*s*(A.p2[1]-A.p1[1])+3*g*(A.p3[1]-A.p2[1]),3*l*(A.p1[2]-A.p0[2])+6*c*s*(A.p2[2]-A.p1[2])+3*g*(A.p3[2]-A.p2[2])],h=Z.normalize(d);n.push({position:f,tangent:h})}}return e.fromRawSamples(n)}static helix(t){let{center:r,radius:n,pitch:o,turns:A,axis:i="z",samplesPerTurn:a=60}=t,s=Math.max(10,Math.round(A*a)),c=[];for(let l=0;l<=s;l++){let u=l/s,g=u*A*Math.PI*2,p=(u-.5)*o*A,f=Math.cos(g),d=Math.sin(g),h,I;i==="z"?(h=[r[0]+n*f,r[1]+n*d,r[2]+p],I=[-n*d,n*f,o*A/(A*Math.PI*2)]):i==="y"?(h=[r[0]+n*f,r[1]+p,r[2]+n*d],I=[-n*d,o*A/(A*Math.PI*2),n*f]):(h=[r[0]+p,r[1]+n*f,r[2]+n*d],I=[o*A/(A*Math.PI*2),-n*d,n*f]),c.push({position:h,tangent:Z.normalize(I)})}return e.fromRawSamples(c)}static circle(t){let{center:r,radius:n,startAngleDeg:o=0,endAngleDeg:A=360,samples:i=128}=t,a=o*Math.PI/180,s=A*Math.PI/180,c=[];for(let l=0;l<=i;l++){let u=a+(s-a)*(l/i),g=Math.cos(u),p=Math.sin(u),f=[r[0]+n*g,r[1],r[2]+n*p],d=[-n*p,0,n*g];c.push({position:f,tangent:Z.normalize(d)})}return e.fromRawSamples(c)}};$();Pt();$();Pt();var cA={".ktx2":"image/ktx2",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif",".tif":"image/tiff",".tiff":"image/tiff",".avif":"image/avif"};function Xn(e){return cA[$e.extname(e).toLowerCase()]??"image/png"}function Qo(e){let t=$e.extname(e.replace(/\\/g,"/")).toLowerCase();return!t||t in cA}function Zn(e,t){if(!e||typeof Re>"u"||!Re.existsSync||!Qo(e))return;let r=e.trim().replace(/^file:\/\//,"");try{r=decodeURIComponent(r)}catch{}let n=r.replace(/\\/g,"/"),o=n.split("/").pop()??n,A=[];if($e.isAbsolute(n)&&A.push(n),t){A.push($e.resolve(t,n)),A.push($e.join(t,o)),A.push($e.join(t,"textures",o));try{for(let i of Re.readdirSync(t))i.toLowerCase().endsWith(".fbm")&&A.push($e.join(t,i,o))}catch{}}for(let i of A)try{if(Re.existsSync(i)&&Re.statSync(i).isFile())return{bytes:new Uint8Array(Re.readFileSync(i)),mime:Xn(i)}}catch{}}function Xr(e,t,r){let n=Qo(r)?"was not found":`is in an unsupported format (use ${Object.keys(cA).join(", ")})`;console.warn(`[${e}] Texture "${r}" for material "${t}" ${n}; the material renders without it.`)}var $n=class e{static parse(t,r,n){let o=typeof r=="object"&&r!==null?r:n??{},A=typeof r=="string"?r:o.mtlText,i=[],a=[],s=[],c=[],l={materialName:"default",faces:[]};c.push(l);let u={};A&&Object.assign(u,e.loadTextures(e.parseMtl(A),o.basePath));let g=t.split(/\r?\n/);for(let y=0;y<g.length;y++){let ye=g[y]?.trim();if(!ye||ye.startsWith("#"))continue;let Qe=ye.split(/\s+/),xe=Qe[0]?.toLowerCase();if(xe==="mtllib"){let le=Qe.slice(1).join(" ").trim();if(o.basePath&&typeof Re<"u"&&Re.existsSync)try{let ge=$e.resolve(o.basePath,le);if(Re.existsSync(ge)){let be=Re.readFileSync(ge,"utf-8");Object.assign(u,e.loadTextures(e.parseMtl(be),$e.dirname(ge)))}}catch{}}else if(xe==="v"){let le=Number.parseFloat(Qe[1]??"0"),ge=Number.parseFloat(Qe[2]??"0"),be=Number.parseFloat(Qe[3]??"0");i.push([le,ge,be])}else if(xe==="vn"){let le=Number.parseFloat(Qe[1]??"0"),ge=Number.parseFloat(Qe[2]??"0"),be=Number.parseFloat(Qe[3]??"0");a.push([le,ge,be])}else if(xe==="vt"){let le=Number.parseFloat(Qe[1]??"0"),ge=Qe[2]!==void 0?Number.parseFloat(Qe[2]):0;s.push([le,ge])}else if(xe==="usemtl"){let le=Qe[1]??"default";l.faces.length>0?(l={materialName:le,faces:[]},c.push(l)):l.materialName=le}else if(xe==="f"){let le=[];for(let ge=1;ge<Qe.length;ge++){let be=Qe[ge];if(!be)continue;let we=be.split("/"),_e=Number.parseInt(we[0]??"0",10),Ge=we[1]&&we[1].length>0?Number.parseInt(we[1],10):0,Ue=we[2]&&we[2].length>0?Number.parseInt(we[2],10):0;_e<0&&(_e=i.length+_e+1),Ge<0&&(Ge=s.length+Ge+1),Ue<0&&(Ue=a.length+Ue+1),le.push({v:_e-1,vt:Ge-1,vn:Ue-1})}if(le.length>=3)for(let ge=1;ge<le.length-1;ge++){let be=le[0],we=le[ge],_e=le[ge+1];be&&we&&_e&&l.faces.push([be,we,_e])}}}let p=1/0,f=1/0,d=1/0,h=-1/0,I=-1/0,b=-1/0;for(let y of i){let[ye,Qe,xe]=y;ye===void 0||Qe===void 0||xe===void 0||(ye<p&&(p=ye),Qe<f&&(f=Qe),xe<d&&(d=xe),ye>h&&(h=ye),Qe>I&&(I=Qe),xe>b&&(b=xe))}Number.isFinite(p)||(p=-1,f=-1,d=-1,h=1,I=1,b=1);let Q=(p+h)*.5,m=(f+I)*.5,w=(d+b)*.5,v=Math.max(1e-4,h-p),S=Math.max(1e-4,I-f),N=Math.max(1e-4,b-d),_=Math.max(v,S,N),G=1;o.normalizeSize&&o.normalizeSize>0&&(G=o.normalizeSize/_),typeof o.scale=="number"&&(G*=o.scale);let j=o.center??!1,R=j?Q:0,K=j?m:0,z=j?w:0,J=[];for(let y=0;y<c.length;y++){let ye=c[y];if(!ye||ye.faces.length===0)continue;let Qe=new Map,xe=[],le=[],ge=[],be=[],we=!1;for(let Ue of ye.faces)for(let Me of Ue){let He=`${Me.v}_${Me.vt}_${Me.vn}`,Te=Qe.get(He);if(Te===void 0){Te=xe.length/3,Qe.set(He,Te);let je=i[Me.v]??[0,0,0],Le=((je[0]??0)-R)*G,Je=((je[1]??0)-K)*G,nt=((je[2]??0)-z)*G;if(xe.push(Le,Je,nt),Me.vt>=0&&s[Me.vt]){let qe=s[Me.vt];ge.push(qe[0]??0,1-(qe[1]??0))}else ge.push(0,0);if(Me.vn>=0&&a[Me.vn]){we=!0;let qe=a[Me.vn];le.push(qe[0]??0,qe[1]??0,qe[2]??0)}else le.push(0,0,0)}be.push(Te)}if(!we||o.smoothNormals){let Ue=new Float32Array(xe.length);for(let Me=0;Me<be.length;Me+=3){let He=be[Me],Te=be[Me+1],je=be[Me+2],Le=[xe[He*3],xe[He*3+1],xe[He*3+2]],Je=[xe[Te*3],xe[Te*3+1],xe[Te*3+2]],nt=[xe[je*3],xe[je*3+1],xe[je*3+2]],qe=Z.subtract(Je,Le),yt=Z.subtract(nt,Le),ze=Z.cross(qe,yt);Ue[He*3]+=ze[0],Ue[He*3+1]+=ze[1],Ue[He*3+2]+=ze[2],Ue[Te*3]+=ze[0],Ue[Te*3+1]+=ze[1],Ue[Te*3+2]+=ze[2],Ue[je*3]+=ze[0],Ue[je*3+1]+=ze[1],Ue[je*3+2]+=ze[2]}for(let Me=0;Me<xe.length/3;Me++){let He=Ue[Me*3],Te=Ue[Me*3+1],je=Ue[Me*3+2],Le=Math.hypot(He,Te,je)||1;le[Me*3]=He/Le,le[Me*3+1]=Te/Le,le[Me*3+2]=je/Le}}let Ge=xe.length/3>65535?new Uint32Array(be):new Uint16Array(be);J.push({id:`mesh_${y}`,name:ye.materialName,positions:new Float32Array(xe),normals:new Float32Array(le),uvs:new Float32Array(ge),indices:Ge,materialName:ye.materialName})}let W=(p-R)*G,X=(f-K)*G,Ae=(d-z)*G,re=(h-R)*G,oe=(I-K)*G,ne=(b-z)*G,ie=re-W,he=oe-X,F=ne-Ae,Be=(W+re)*.5,Se=(X+oe)*.5,Pe=(Ae+ne)*.5,Ie=Math.hypot(ie,he,F)*.5;return{meshes:J,materials:u,animations:[],bounds:{min:[W,X,Ae],max:[re,oe,ne],center:[Be,Se,Pe],size:[ie,he,F],boundingSphereRadius:Ie}}}static parseMtl(t){let r={},n=null,o=t.split(/\r?\n/);for(let A of o){let i=A.trim();if(!i||i.startsWith("#"))continue;let a=i.split(/\s+/),s=a[0]?.toLowerCase();if(s==="newmtl"){let c=a[1]??"default";n={name:c,diffuseColor:[1,1,1,1],specularColor:[1,1,1],ambientColor:[.2,.2,.2],shininess:32,opacity:1},r[c]=n}else if(n)if(s==="kd"){let c=Number.parseFloat(a[1]??"1"),l=Number.parseFloat(a[2]??"1"),u=Number.parseFloat(a[3]??"1");n.diffuseColor=[c,l,u,n.diffuseColor?.[3]??1]}else if(s==="ks"){let c=Number.parseFloat(a[1]??"1"),l=Number.parseFloat(a[2]??"1"),u=Number.parseFloat(a[3]??"1");n.specularColor=[c,l,u],n.specularIntensity=(c+l+u)/3}else if(s==="ka"){let c=Number.parseFloat(a[1]??"0.2"),l=Number.parseFloat(a[2]??"0.2"),u=Number.parseFloat(a[3]??"0.2");n.ambientColor=[c,l,u]}else if(s==="ns")n.shininess=Number.parseFloat(a[1]??"32");else if(s==="d"||s==="tr"){let c=Number.parseFloat(a[1]??"1");n.opacity=s==="d"?c:1-c,n.diffuseColor&&(n.diffuseColor[3]=n.opacity)}else if(s==="map_kd"){n.diffuseTexture=e.mapFileName(a);let c=a.findIndex(l=>l.toLowerCase()==="-clamp");n.textureWrap=c>0&&a[c+1]?.toLowerCase()==="on"?"clamp":"repeat"}else(s==="norm"||s==="map_kn")&&(n.normalTexture=e.mapFileName(a))}return r}static MAP_OPTION_ARGS={"-blendu":1,"-blendv":1,"-cc":1,"-clamp":1,"-texres":1,"-bm":1,"-boost":1,"-imfchan":1,"-type":1,"-mm":2};static mapFileName(t){let r=1;for(;r<t.length&&t[r]?.startsWith("-");){let n=t[r].toLowerCase();if(r++,n==="-o"||n==="-s"||n==="-t")for(let o=0;o<3&&r<t.length&&!Number.isNaN(Number(t[r]));o++)r++;else r+=e.MAP_OPTION_ARGS[n]??0}return t.slice(r).join(" ")}static loadTextures(t,r){if(!r)return t;for(let n of Object.values(t)){if(n.diffuseTexture&&!n.diffuseTextureBuffer){let o=Zn(n.diffuseTexture,r);o?(n.diffuseTextureBuffer=o.bytes,n.diffuseTextureMime=o.mime):Xr("ObjLoader",n.name,n.diffuseTexture)}if(n.normalTexture&&!n.normalTextureBuffer){let o=Zn(n.normalTexture,r);o?n.normalTextureBuffer=o.bytes:Xr("ObjLoader",n.name,n.normalTexture)}}return t}};function Ku(e,t,r={}){return $n.parse(e,t,r)}function zu(e){return $n.parseMtl(e)}function eo(e,t,r={}){let n;if(typeof e!="string")n=new TextDecoder().decode(e);else{let o=e.trim();if(!(o.startsWith("v ")||o.startsWith("#")||o.includes(`
|
|
2
2
|
v `)||o.includes("\rv "))&&typeof Re<"u"&&Re.existsSync)try{let i=e.startsWith("file://")?e.slice(7):e;try{i=decodeURIComponent(i)}catch{}Re.existsSync(i)?(n=Re.readFileSync(i,"utf-8"),r={basePath:r.basePath??$e.dirname(i),...r}):n=e}catch{n=e}else n=e}return $n.parse(n,t,r)}$();Pt();var ya=AA(ha(),1);$();function hr(e,t,r){let n=o=>[e[o*3],e[o*3+1],e[o*3+2]];for(let o=0;o<t.length;o+=3){let A=t[o],i=t[o+1],a=t[o+2],s=n(A),c=Z.cross(Z.subtract(n(i),s),Z.subtract(n(a),s));for(let l of[A,i,a])r[l*3]+=c[0],r[l*3+1]+=c[1],r[l*3+2]+=c[2]}for(let o=0;o<r.length;o+=3){let A=r[o],i=r[o+1],a=r[o+2],s=Math.hypot(A,i,a)||1;r[o]=A/s,r[o+1]=i/s,r[o+2]=a/s}}function jt(...e){let t=1/0,r=1/0,n=1/0,o=-1/0,A=-1/0,i=-1/0;for(let a of e)for(let s=0;s<a.length;s+=3){let c=a[s],l=a[s+1],u=a[s+2];c<t&&(t=c),c>o&&(o=c),l<r&&(r=l),l>A&&(A=l),u<n&&(n=u),u>i&&(i=u)}return Number.isFinite(t)||(t=r=n=0,o=A=i=0),{min:[t,r,n],max:[o,A,i],center:[(t+o)*.5,(r+A)*.5,(n+i)*.5],size:[o-t,A-r,i-n]}}function Dt(e,t){let r=Math.max(...e.size,1e-4),n=1;t.normalizeSize&&t.normalizeSize>0&&(n=t.normalizeSize/r);let o=[n,n,n];return typeof t.scale=="number"?(o[0]*=t.scale,o[1]*=t.scale,o[2]*=t.scale):Array.isArray(t.scale)&&(o[0]*=t.scale[0],o[1]*=t.scale[1],o[2]*=t.scale[2]),{offset:t.center?e.center:[0,0,0],scale:o}}function Vt(e,{offset:t,scale:r}){let n=new Float32Array(e.length);for(let o=0;o<e.length;o+=3)n[o]=(e[o]-t[0])*r[0],n[o+1]=(e[o+1]-t[1])*r[1],n[o+2]=(e[o+2]-t[2])*r[2];return n}function Jt(e,t){return t>65535?new Uint32Array(e):new Uint16Array(e)}function Kt(e,{offset:t,scale:r}){let n=[(e.min[0]-t[0])*r[0],(e.min[1]-t[1])*r[1],(e.min[2]-t[2])*r[2]],o=[(e.max[0]-t[0])*r[0],(e.max[1]-t[1])*r[1],(e.max[2]-t[2])*r[2]];return{min:n,max:o,center:[(n[0]+o[0])*.5,(n[1]+o[1])*.5,(n[2]+o[2])*.5],size:[o[0]-n[0],o[1]-n[1],o[2]-n[2]],boundingSphereRadius:Math.hypot(o[0]-n[0],o[1]-n[1],o[2]-n[2])*.5}}$();function Ys(e,t,r){let[n,o,A,i]=t,a=n*n,s=o*o,c=A*A,l=n*o,u=n*A,g=o*A,p=i*n,f=i*o,d=i*A;return[(1-2*(s+c))*r[0],2*(l+d)*r[0],2*(u-f)*r[0],0,2*(l-d)*r[1],(1-2*(a+c))*r[1],2*(g+p)*r[1],0,2*(u+f)*r[2],2*(g-p)*r[2],(1-2*(a+s))*r[2],0,e[0],e[1],e[2],1]}function ma(e){let t=Math.hypot(e[0],e[1],e[2],e[3])||1;return[e[0]/t,e[1]/t,e[2]/t,e[3]/t]}function Ws(e,t,r){let n=e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],o=n<0?-1:1;if(n*=o,n>.9995)return ma([e[0]+(o*t[0]-e[0])*r,e[1]+(o*t[1]-e[1])*r,e[2]+(o*t[2]-e[2])*r,e[3]+(o*t[3]-e[3])*r]);let A=Math.acos(n),i=Math.sin(A),a=Math.sin((1-r)*A)/i,s=o*Math.sin(r*A)/i;return[e[0]*a+t[0]*s,e[1]*a+t[1]*s,e[2]*a+t[2]*s,e[3]*a+t[3]*s]}function qs(e,t){let r=0,n=e.length-1;for(;r<n;){let o=r+n+1>>1;(e[o]??0)<=t?r=o:n=o-1}return r}function Hr(e,t,r,n,o=1){let A=n?(t*3+o)*r:t*r;return Array.from(e.subarray(A,A+r))}function wo(e,t,r,n,o=!1){let{times:A}=e,i=e.interpolation==="cubic",a=A.length-1;if(n<=(A[0]??0))return Hr(t,0,r,i);if(n>=(A[a]??0))return Hr(t,a,r,i);let s=qs(A,n);if(e.interpolation==="step")return Hr(t,s,r,i);let c=A[s]??0,l=(A[s+1]??c)-c,u=l>0?(n-c)/l:0,g=Hr(t,s,r,i),p=Hr(t,s+1,r,i);if(i){let f=Hr(t,s,r,!0,2),d=Hr(t,s+1,r,!0,0),h=u*u,I=h*u,b=g.map((Q,m)=>(2*I-3*h+1)*Q+(I-2*h+u)*l*(f[m]??0)+(-2*I+3*h)*(p[m]??0)+(I-h)*l*(d[m]??0));return o?ma(b):b}return o?Ws(g,p,u):g.map((f,d)=>f+((p[d]??f)-f)*u)}function rg(e,t,r){let n=e.morphTargets?.length??0;if(!n)return[];let o=t?.tracks.find(A=>A.node===e.node&&A.weights&&A.times.length>0);return o?.weights?wo(o,o.weights,n,r):e.morphWeights??Array(n).fill(0)}function Xs(e,t,r){let n=e.map(a=>[...a.translation]),o=e.map(a=>[...a.rotation]),A=e.map(a=>[...a.scale]),i=new Map(e.map((a,s)=>[a.name,s]));for(let a of t?.tracks??[]){let s=a.node??i.get(a.nodeName);s===void 0||!a.times.length||(a.translations&&(n[s]=wo(a,a.translations,3,r)),a.rotations&&(o[s]=wo(a,a.rotations,4,r,!0)),a.scales&&(A[s]=wo(a,a.scales,3,r)))}return e.map((a,s)=>a.matrix??Ys(n[s],o[s],A[s]))}function vo(e,t,r){let n=e.nodes??[],o=Xs(n,t,r),A=new Array(n.length),i=a=>{let s=A[a];if(s)return s;let c=n[a].parent,l=c<0?o[a]:Ee.multiply(i(c),o[a]);return A[a]=l,l};return n.map((a,s)=>i(s))}function ng(e,t,r){let n=e.skins?.[t];if(!n)throw new Error(`model has no skin ${t}`);let o=new Float32Array(Math.max(1,n.joints.length)*16);for(let A=0;A<Math.max(1,n.joints.length);A++){let i=n.joints[A];if(i===void 0){o.set(Ee.identity(),A*16);continue}let a=Array.from(n.inverseBindMatrices.subarray(A*16,A*16+16));o.set(Ee.multiply(r[i],a),A*16)}return o}var jr=class e{static FBX_KTIME=46186158e3;static parse(t,r={}){let n=typeof t=="string"?e.parseAscii(t):e.isBinary(t)?e.parseBinary(t):e.parseAscii(new TextDecoder().decode(t));return e.buildModelFromTree(n,r)}static isBinary(t){let r=t instanceof Uint8Array?t:new Uint8Array(t);if(r.length<27)return!1;let n="Kaydara FBX Binary \0\0";for(let o=0;o<n.length;o++)if(r[o]!==n.charCodeAt(o))return!1;return!0}static parseBinary(t){let r=t instanceof Uint8Array?t:new Uint8Array(t),n=new DataView(r.buffer,r.byteOffset,r.byteLength),A=n.getUint32(23,!0)>=7500,i=27,a={name:"Root",props:[],children:[]},s=()=>{if(i>=r.byteLength)return null;let c,l,u;if(A){if(i+25>r.byteLength)return null;c=Number(n.getBigUint64(i,!0)),l=Number(n.getBigUint64(i+8,!0)),u=n.getUint8(i+24),i+=25}else{if(i+13>r.byteLength)return null;c=n.getUint32(i,!0),l=n.getUint32(i+4,!0),u=n.getUint8(i+12),i+=13}if(c===0)return null;let g=new TextDecoder().decode(r.subarray(i,i+u));i+=u;let p=[];for(let d=0;d<l;d++){let h=String.fromCharCode(r[i]);switch(i+=1,h){case"Y":{p.push(n.getInt16(i,!0)),i+=2;break}case"C":case"B":{p.push(n.getUint8(i)!==0),i+=1;break}case"I":{p.push(n.getInt32(i,!0)),i+=4;break}case"F":{p.push(n.getFloat32(i,!0)),i+=4;break}case"D":{p.push(n.getFloat64(i,!0)),i+=8;break}case"L":{p.push(Number(n.getBigInt64(i,!0))),i+=8;break}case"S":{let I=n.getUint32(i,!0);i+=4;let b=new TextDecoder().decode(r.subarray(i,i+I));p.push(b),i+=I;break}case"R":{let I=n.getUint32(i,!0);i+=4;let b=r.subarray(i,i+I);p.push(b),i+=I;break}case"f":case"d":case"i":case"l":case"b":case"c":{let I=n.getUint32(i,!0),b=n.getUint32(i+4,!0),Q=n.getUint32(i+8,!0);i+=12;let m;if(b===1){let v=r.subarray(i,i+Q);m=(0,ya.inflateSync)(v),i+=Q}else{let S=I*(h==="d"||h==="l"?8:h==="f"||h==="i"?4:1);m=r.subarray(i,i+S),i+=S}let w=new DataView(m.buffer,m.byteOffset,m.byteLength);if(h==="f"){let v=new Float32Array(I);for(let S=0;S<I;S++)v[S]=w.getFloat32(S*4,!0);p.push(v)}else if(h==="d"){let v=new Float64Array(I);for(let S=0;S<I;S++)v[S]=w.getFloat64(S*8,!0);p.push(v)}else if(h==="i"){let v=new Int32Array(I);for(let S=0;S<I;S++)v[S]=w.getInt32(S*4,!0);p.push(v)}else if(h==="l"){let v=new Float64Array(I);for(let S=0;S<I;S++)v[S]=Number(w.getBigInt64(S*8,!0));p.push(v)}else if(h==="b"){let v=new Uint8Array(I);for(let S=0;S<I;S++)v[S]=w.getUint8(S);p.push(v)}else p.push(m);break}default:break}}let f=[];for(;i<c;){let d=s();if(d)f.push(d);else break}return i=c,{name:g,props:p,children:f}};for(;i<r.byteLength-(A?25:13);){let c=s();if(c)a.children.push(c);else break}return a}static parseAscii(t){let r={name:"Root",props:[],children:[]},n=[r],o=t.split(/\r?\n/);for(let A=0;A<o.length;A++){let i=o[A]?.trim();if(!i||i.startsWith(";"))continue;if(i==="}"){n.length>1&&n.pop();continue}let a=i.indexOf(":");if(a===-1)continue;let s=i.substring(0,a).trim(),c=i.substring(a+1).trim(),l=c.endsWith("{"),u=l?c.slice(0,-1).trim():c,g=[];if(u){let d=u.split(",").map(h=>h.trim());for(let h of d)h.startsWith('"')&&h.endsWith('"')?g.push(h.slice(1,-1)):Number.isNaN(Number(h))?g.push(h):g.push(Number(h))}let p={name:s,props:g,children:[]},f=n[n.length-1];f&&f.children.push(p),l&&n.push(p)}return r}static textureSlot(t){let r=t.toLowerCase();if(r==="diffusecolor"||r==="diffuse"||r.endsWith("|basecolor")||r.endsWith("|base_color")||r==="basecolor")return"diffuse";if(r==="normalmap"||r.endsWith("|normalcamera")||r.endsWith("|bump_map"))return"normal"}static attachTextures(t,r,n,o,A){let i=(a,s)=>{let c=a?.children.find(l=>l.name===s)?.props[0];return typeof c=="string"&&c?c:void 0};for(let a of o){if(a.parentId!==r||!a.propName)continue;let s=e.textureSlot(a.propName),c=n.get(a.childId);if(!s||c?.node.name!=="Texture"||(s==="diffuse"?t.diffuseTextureBuffer:t.normalTextureBuffer))continue;let l=o.filter(f=>f.parentId===a.childId&&!f.propName).map(f=>n.get(f.childId)?.node).find(f=>f?.name==="Video"),u=i(c.node,"RelativeFilename")??i(c.node,"FileName")??i(l,"RelativeFilename")??i(l,"Filename");if(u&&!Qo(u)){Xr("FbxLoader",t.name,u);continue}let g,p=l?.children.find(f=>f.name==="Content")?.props[0];if(p instanceof Uint8Array&&p.length>0?g=p:u&&(g=Zn(u,A)?.bytes),!g){u&&Xr("FbxLoader",t.name,u);continue}s==="diffuse"?(t.diffuseTextureBuffer=g,t.diffuseTextureMime=Xn(u??""),u&&(t.diffuseTexture=u),t.textureWrap="repeat"):(t.normalTextureBuffer=g,u&&(t.normalTexture=u))}}static buildModelFromTree(t,r={}){let n=t.children.find(_=>_.name==="Objects"),o=t.children.find(_=>_.name==="Connections"),A=new Map;if(n)for(let _ of n.children){let G=_.props[0]??0,R=String(_.props[1]??"").split("::"),K=R.length>1?R[1]:R[0],z=String(_.props[2]??_.name);A.set(G,{id:G,name:K,type:z,node:_})}let i=[];if(o){for(let _ of o.children)if(_.name==="C"||_.name==="Connect"){let G=String(_.props[0]),j=_.props[1]??0,R=_.props[2]??0,K=G==="OP"?String(_.props[3]):void 0;i.push({childId:j,parentId:R,propName:K})}}let a=_=>{for(let G of i){let j=G.parentId===_?A.get(G.childId):void 0;if(j?.node.name==="Material"&&!G.propName)return j.name}for(let G of i)if(!(G.childId!==_||G.propName))for(let j of i){if(j.parentId!==G.parentId||j.propName)continue;let R=A.get(j.childId);if(R?.node.name==="Material")return R.name}},s=[],c={};function l(_){if(!_)return[];if(_.props[0]instanceof Float32Array||_.props[0]instanceof Float64Array||_.props[0]instanceof Int32Array||Array.isArray(_.props[0]))return _.props[0];let G=_.children.find(j=>j.name==="a");return G&&G.props.length>0?G.props:Array.isArray(_.props)&&_.props.length>0&&typeof _.props[0]=="number"?_.props:[]}let u=[...A.values()].filter(_=>_.node.name==="Model").map(_=>_.id),g=new Map(u.map((_,G)=>[_,G])),p=u.map(_=>{let G=A.get(_),j=i.find(R=>R.childId===_&&!R.propName&&g.has(R.parentId));return{name:G.name,parent:j?g.get(j.parentId):-1,translation:to(G.node,"Lcl Translation",0),rotation:Ba(G.node,Do(to(G.node,"Lcl Rotation",0),Ca(G.node))),scale:to(G.node,"Lcl Scaling",1)}}),f=_=>i.find(G=>G.childId===_&&!G.propName&&g.has(G.parentId))?.parentId,d=[];for(let[_,G]of A)if(G.node.name==="Geometry"&&(G.type==="Mesh"||G.node.props[2]==="Mesh"||G.type==="")){let j=G.node,R=j.children.find(le=>le.name==="Vertices"),K=j.children.find(le=>le.name==="PolygonVertexIndex");if(!R||!K)continue;let z=l(R),J=l(K),W=(le,ge,be,we)=>{let _e=j.children.find(Ge=>Ge.name===le);if(_e)return Zs(_e,l(_e.children.find(Ge=>Ge.name===ge)),l(_e.children.find(Ge=>Ge.name===be)),we)},X=W("LayerElementNormal","Normals","NormalsIndex",3),Ae=W("LayerElementUV","UV","UVIndex",2),re=[],oe=[],ne=0;for(let le=0;le<J.length;le++){let ge=J[le];if(oe.push({cp:ge<0?-(ge+1):ge,pv:le}),!(ge>=0)){for(let be=1;be<oe.length-1;be++)for(let we of[oe[0],oe[be],oe[be+1]])re.push({...we,poly:ne});oe=[],ne++}}let ie=re.length,he=new Float32Array(ie*3),F=new Float32Array(ie*3),Be=new Float32Array(ie*2),Se=new Array(ie);re.forEach(({cp:le,pv:ge,poly:be},we)=>{he[we*3]=z[le*3]??0,he[we*3+1]=z[le*3+1]??0,he[we*3+2]=z[le*3+2]??0;let _e=X?.(le,ge,be);F.set(_e??[0,0,1],we*3);let Ge=Ae?.(le,ge,be);Be[we*2]=Ge?.[0]??0,Be[we*2+1]=1-(Ge?.[1]??0),Se[we]=we}),(!X||r.smoothNormals)&&(F.fill(0),hr(he,Se,F));let Pe=i.find(le=>le.parentId===_&&A.get(le.childId)?.node.name==="Deformer"&&A.get(le.childId)?.node.props[2]==="Skin"),Ie,y,ye;if(Pe){let le=[],ge=[],be=new Map;for(let we of i){let _e=A.get(we.childId);if(we.parentId!==Pe.childId||_e?.node.name!=="Deformer"||_e.node.props[2]!=="Cluster")continue;let Ge=i.find(Le=>Le.parentId===_e.id&&g.has(Le.childId))?.childId;if(Ge===void 0)continue;let Ue=le.length;le.push(g.get(Ge));let Me=ba(_e.node,"Transform"),He=ba(_e.node,"TransformLink");ge.push(...Ee.multiply(Ee.invert(He)??Ee.identity(),Me));let Te=l(_e.node.children.find(Le=>Le.name==="Indexes")),je=l(_e.node.children.find(Le=>Le.name==="Weights"));for(let Le=0;Le<Te.length;Le++){let Je=Number(je[Le]??0);if(!(Je>0))continue;let nt=Number(Te[Le]),qe=be.get(nt)??[];qe.push([Ue,Je]),be.set(nt,qe)}}le.length>0&&(ye=d.length,d.push({joints:le,inverseBindMatrices:new Float32Array(ge)}),Ie=new Float32Array(ie*4),y=new Float32Array(ie*4),re.forEach(({cp:we},_e)=>{let Ge=(be.get(we)??[]).sort((Me,He)=>He[1]-Me[1]).slice(0,4),Ue=Ge.reduce((Me,[,He])=>Me+He,0);Ge.forEach(([Me,He],Te)=>{Ie[_e*4+Te]=Me,y[_e*4+Te]=Ue>0?He/Ue:0})}))}let Qe=f(_),xe=ie>65535;s.push({id:`fbx_mesh_${_}`,name:G.name,positions:he,normals:F,uvs:Be,indices:xe?new Uint32Array(Se):new Uint16Array(Se),jointIndices:Ie,jointWeights:y,materialName:a(_)??G.name,node:Qe!==void 0?g.get(Qe):void 0,skin:ye})}for(let[,_]of A)if(_.node.name==="Material"){let j=_.node.children.find(W=>W.name==="Properties70"),R=[1,1,1,1],K=32,z=1;if(j){for(let W of j.children)if(W.name==="P"){let X=String(W.props[0]);if(X==="DiffuseColor"||X==="Color"){let Ae=Number(W.props[4]??1),re=Number(W.props[5]??1),oe=Number(W.props[6]??1);R=[Ae,re,oe,1]}else X==="Shininess"||X==="ShininessExponent"?K=Number(W.props[4]??32):X==="Opacity"&&(z=Number(W.props[4]??1),R[3]=z)}}let J={name:_.name,diffuseColor:R,shininess:K,opacity:z};e.attachTextures(J,_.id,A,i,r.basePath),c[_.name]=J}let h=[];for(let[_,G]of A)if(G.node.name==="AnimationStack"){let j=G.name||"Take 001",R=[],K=i.find(J=>J.parentId===_&&A.get(J.childId)?.node.name==="AnimationLayer");if(K){let J=i.filter(X=>X.parentId===K.childId&&A.get(X.childId)?.node.name==="AnimationCurveNode"),W=new Map;for(let X of J){let Ae=A.get(X.childId);if(!Ae)continue;let re=i.find(Be=>Be.childId===Ae.id&&A.get(Be.parentId)?.node.name==="Model"),oe=re?A.get(re.parentId):void 0,ne=Ea(re?.propName)??Ea(Ae.name);if(!ne)continue;let ie=`${oe?.id??Ae.id}|${ne}`,he=W.get(ie);if(!he){let Be=oe?.node;he={nodeName:oe?.name??Ae.name,modelId:oe?.id,model:Be,kind:ne,defaults:ec(Be,Ae.node,ne),channels:[void 0,void 0,void 0]},W.set(ie,he)}i.filter(Be=>Be.parentId===Ae.id&&A.get(Be.childId)?.node.name==="AnimationCurve").forEach((Be,Se)=>{let Pe=$s(Be.propName)??Se;if(Pe>2)return;let Ie=A.get(Be.childId)?.node,y=l(Ie?.children.find(xe=>xe.name==="KeyTime")),ye=l(Ie?.children.find(xe=>xe.name==="KeyValueFloat")),Qe=Math.min(y.length,ye.length);Qe!==0&&(he.channels[Pe]={times:Array.from(y.slice(0,Qe),xe=>Number(xe)),values:Array.from(ye.slice(0,Qe),xe=>Number(xe))})})}for(let X of W.values()){let Ae=nc(X);if(Ae){if(X.modelId!==void 0&&(Ae.node=g.get(X.modelId)),Ae.rotations&&X.model)for(let re=0;re<Ae.rotations.length;re+=4){let oe=Array.from(Ae.rotations.subarray(re,re+4));Ae.rotations.set(Ba(X.model,oe),re)}R.push(Ae)}}}let z=1;for(let J of R)if(J.times.length>0){let W=J.times[J.times.length-1]??0;W>z&&(z=W)}h.push({name:j,duration:z,fps:30,tracks:R})}let I={meshes:s,materials:c,animations:h,nodes:p,skins:d,bounds:{min:[0,0,0],max:[0,0,0],center:[0,0,0],size:[0,0,0],boundingSphereRadius:0}},b=vo(I,void 0,0),Q=[1/0,1/0,1/0],m=[-1/0,-1/0,-1/0];for(let _ of s){let G=_.node!==void 0?b[_.node]:void 0;for(let j=0;j<_.positions.length;j+=3){let R=[_.positions[j],_.positions[j+1],_.positions[j+2]],K=G?Ee.projectPoint(G,R):R;for(let z=0;z<3;z++)K[z]<Q[z]&&(Q[z]=K[z]),K[z]>m[z]&&(m[z]=K[z])}}Number.isFinite(Q[0])||(Q.fill(-1),m.fill(1));let{offset:w,scale:v}=Dt({min:Q,max:m,center:[(Q[0]+m[0])*.5,(Q[1]+m[1])*.5,(Q[2]+m[2])*.5],size:[m[0]-Q[0],m[1]-Q[1],m[2]-Q[2]]},r);I.rootTransform=Ee.multiply(Ee.scale(v[0],v[1],v[2]),Ee.translate(-w[0],-w[1],-w[2]));let S=[0,1,2].map(_=>(Q[_]-w[_])*v[_]),N=[0,1,2].map(_=>(m[_]-w[_])*v[_]);return I.bounds={min:S,max:N,center:[(S[0]+N[0])*.5,(S[1]+N[1])*.5,(S[2]+N[2])*.5],size:[N[0]-S[0],N[1]-S[1],N[2]-S[2]],boundingSphereRadius:Math.hypot(N[0]-S[0],N[1]-S[1],N[2]-S[2])*.5},I}};function to(e,t,r){let n=Zr(e,t);return[0,1,2].map(o=>{let A=n?.[o];return A!==void 0&&Number.isFinite(A)?A:r})}function Ia(e,t){return[e[3]*t[0]+e[0]*t[3]+e[1]*t[2]-e[2]*t[1],e[3]*t[1]-e[0]*t[2]+e[1]*t[3]+e[2]*t[0],e[3]*t[2]+e[0]*t[1]-e[1]*t[0]+e[2]*t[3],e[3]*t[3]-e[0]*t[0]-e[1]*t[1]-e[2]*t[2]]}function Ba(e,t){let r=Zr(e,"PreRotation"),n=Zr(e,"PostRotation"),o=t;if(r&&(o=Ia(Do(to(e,"PreRotation",0)),o)),n){let A=Do(to(e,"PostRotation",0));o=Ia(o,[-A[0],-A[1],-A[2],A[3]])}return o}function ba(e,t){let r=e.children.find(A=>A.name===t),n=r?.children.find(A=>A.name==="a")?.props??r?.props,o=n?.[0]instanceof Float64Array||n?.[0]instanceof Float32Array?Array.from(n[0]):(n??[]).map(Number);return o.length===16?o:Ee.identity()}function Zs(e,t,r,n){if(t.length===0)return;let o=a=>String(e.children.find(s=>s.name===a)?.props[0]??""),A=o("MappingInformationType"),i=/^Index/.test(o("ReferenceInformationType"))&&r.length>0;return(a,s,c)=>{let l=A==="ByPolygonVertex"?s:A==="ByPolygon"?c:A==="AllSame"?0:a;return i&&(l=Number(r[l]??l)),Array.from({length:n},(u,g)=>Number(t[l*n+g]??0))}}function Ea(e){switch(e){case"Lcl Translation":case"T":return"T";case"Lcl Rotation":case"R":return"R";case"Lcl Scaling":case"S":return"S";default:return}}function $s(e){switch(e){case"d|X":return 0;case"d|Y":return 1;case"d|Z":return 2;default:return}}function Zr(e,t){let n=e?.children.find(o=>o.name==="Properties70")?.children.find(o=>o.name==="P"&&o.props[0]===t);if(n)return n.props.slice(4).map(o=>Number(o))}function ec(e,t,r){let n=r==="S"?1:0,o=Zr(e,r==="T"?"Lcl Translation":r==="R"?"Lcl Rotation":"Lcl Scaling"),A=[n,n,n];for(let i=0;i<3;i++){let a=o?.[i],s=Zr(t,`d|${"XYZ"[i]}`)?.[0],c=a??s;c!==void 0&&Number.isFinite(c)&&(A[i]=c)}return A}var tc=["XYZ","XZY","YZX","YXZ","ZXY","ZYX"];function Ca(e){let t=Zr(e,"RotationOrder")?.[0]??0;return tc[t]??"XYZ"}function Do(e,t="XYZ"){let r=[0,0,0,1];for(let n of t){let o="XYZ".indexOf(n),A=(e[o]??0)*Math.PI/360,i=Math.sin(A),a=[0,0,0,Math.cos(A)];a[o]=i,r=[a[3]*r[0]+a[0]*r[3]+a[1]*r[2]-a[2]*r[1],a[3]*r[1]-a[0]*r[2]+a[1]*r[3]+a[2]*r[0],a[3]*r[2]+a[0]*r[1]-a[1]*r[0]+a[2]*r[3],a[3]*r[3]-a[0]*r[0]-a[1]*r[1]-a[2]*r[2]]}return r}function rc(e,t){let{times:r,values:n}=e,o=r.length-1;if(t<=r[0])return n[0];if(t>=r[o])return n[o];let A=0;for(;A<o-1&&r[A+1]<=t;)A++;let i=r[A],a=r[A+1],s=a>i?(t-i)/(a-i):0;return n[A]+(n[A+1]-n[A])*s}function nc(e){let t=new Set;for(let s of e.channels)for(let c of s?.times??[])t.add(c);if(t.size===0)return;let r=[...t].sort((s,c)=>s-c),n=new Float32Array(r.length),o=e.kind==="R",A=new Float32Array(r.length*(o?4:3)),i=o?Ca(e.model):"XYZ",a;return r.forEach((s,c)=>{n[c]=s/jr.FBX_KTIME;let l=[0,1,2].map(g=>{let p=e.channels[g];return p?rc(p,s):e.defaults[g]});if(!o){A.set(l,c*3);return}let u=Do(l,i);if(a&&a[0]*u[0]+a[1]*u[1]+a[2]*u[2]+a[3]*u[3]<0)for(let g=0;g<4;g++)u[g]=-u[g];a=u,A.set(u,c*4)}),{nodeName:e.nodeName,times:n,translations:e.kind==="T"?A:void 0,rotations:o?A:void 0,scales:e.kind==="S"?A:void 0}}function gg(e,t={}){return jr.parse(e,t)}function ro(e,t={}){let r=e;if(typeof e=="string"){let n=e.trim();if(!(n.includes("FBXHeaderExtension")||n.includes("Kaydara FBX"))&&typeof Re<"u"&&Re.existsSync)try{let A=e.startsWith("file://")?e.slice(7):e;try{A=decodeURIComponent(A)}catch{}if(Re.existsSync(A)){let i=Re.readFileSync(A);r=new Uint8Array(i.buffer,i.byteOffset,i.byteLength),t={basePath:$e.dirname(A),...t}}}catch{}}return jr.parse(r,t)}$();$();var Qa=`
|
|
3
3
|
struct AudioLatentBuffer {
|
|
4
4
|
fftBins : array<f32, 1024>,
|