@splinetool/runtime 1.12.98 → 2.0.1
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 +195 -22
- package/build/boolean.js +406 -2
- package/build/boolean.js.br +0 -0
- package/build/boolean.js.gz +0 -0
- package/build/boolean.wasm +0 -0
- package/build/boolean.wasm.br +0 -0
- package/build/boolean.wasm.gz +0 -0
- package/build/gaussian-splat-compression.js.br +0 -0
- package/build/gaussian-splat-compression.js.gz +0 -0
- package/build/hana-ui.js +4299 -0
- package/build/hana-ui.js.br +0 -0
- package/build/hana-ui.js.gz +0 -0
- package/build/hana-ui.wasm +0 -0
- package/build/hana-ui.wasm.br +0 -0
- package/build/hana-ui.wasm.gz +0 -0
- package/build/howler.js.br +0 -0
- package/build/howler.js.gz +0 -0
- package/build/navmesh.js.br +0 -0
- package/build/navmesh.js.gz +0 -0
- package/build/navmesh.wasm +0 -0
- package/build/navmesh.wasm.br +0 -0
- package/build/navmesh.wasm.gz +0 -0
- package/build/opentype.js.br +0 -0
- package/build/opentype.js.gz +0 -0
- package/build/physics.js +1 -1
- package/build/physics.js.br +0 -0
- package/build/physics.js.gz +0 -0
- package/build/physics.wasm +0 -0
- package/build/physics.wasm.br +0 -0
- package/build/physics.wasm.gz +0 -0
- package/build/process.js +2 -2
- package/build/process.js.br +0 -0
- package/build/process.js.gz +0 -0
- package/build/process.wasm +0 -0
- package/build/process.wasm.br +0 -0
- package/build/process.wasm.gz +0 -0
- package/build/runtime-DRACOLoader-TQHJ6SJB.js +1 -0
- package/build/runtime-DRACOLoader-TQHJ6SJB.js.br +0 -0
- package/build/runtime-DRACOLoader-TQHJ6SJB.js.gz +0 -0
- package/build/runtime-Perfs-KMJFDYHU.js +1 -0
- package/build/runtime-Perfs-KMJFDYHU.js.br +0 -0
- package/build/runtime-Perfs-KMJFDYHU.js.gz +0 -0
- package/build/runtime-aiAssistant-XJVJ7TQB.js +1 -0
- package/build/runtime-aiAssistant-XJVJ7TQB.js.br +0 -0
- package/build/runtime-aiAssistant-XJVJ7TQB.js.gz +0 -0
- package/build/runtime-apiServices-KAO5SQJZ.js +1 -0
- package/build/runtime-apiServices-KAO5SQJZ.js.br +0 -0
- package/build/runtime-apiServices-KAO5SQJZ.js.gz +0 -0
- package/build/runtime-audio-Y3GYW4YQ.js +1 -0
- package/build/runtime-audio-Y3GYW4YQ.js.br +0 -0
- package/build/runtime-audio-Y3GYW4YQ.js.gz +0 -0
- package/build/runtime-bloom-XRHHZNNT.js +1 -0
- package/build/runtime-bloom-XRHHZNNT.js.br +0 -0
- package/build/runtime-bloom-XRHHZNNT.js.gz +0 -0
- package/build/runtime-brightnessContrast-RHV6X2Z4.js +1 -0
- package/build/runtime-brightnessContrast-RHV6X2Z4.js.br +0 -0
- package/build/runtime-brightnessContrast-RHV6X2Z4.js.gz +0 -0
- package/build/runtime-chromaticAberration-LSGAMQAK.js +1 -0
- package/build/runtime-chromaticAberration-LSGAMQAK.js.br +0 -0
- package/build/runtime-chromaticAberration-LSGAMQAK.js.gz +0 -0
- package/build/runtime-chunk-23QOKH2J.js +1 -0
- package/build/runtime-chunk-23QOKH2J.js.br +0 -0
- package/build/runtime-chunk-23QOKH2J.js.gz +0 -0
- package/build/runtime-chunk-2VFLTNIU.js +1 -0
- package/build/runtime-chunk-2VFLTNIU.js.br +0 -0
- package/build/runtime-chunk-2VFLTNIU.js.gz +0 -0
- package/build/runtime-chunk-44SAPZDZ.js +1 -0
- package/build/runtime-chunk-44SAPZDZ.js.br +0 -0
- package/build/runtime-chunk-44SAPZDZ.js.gz +0 -0
- package/build/runtime-chunk-4KZXQGUQ.js +1 -0
- package/build/runtime-chunk-4KZXQGUQ.js.br +0 -0
- package/build/runtime-chunk-4KZXQGUQ.js.gz +0 -0
- package/build/runtime-chunk-4YV3EXSU.js +1 -0
- package/build/runtime-chunk-4YV3EXSU.js.br +0 -0
- package/build/runtime-chunk-4YV3EXSU.js.gz +0 -0
- package/build/runtime-chunk-5CH7XRKY.js +1 -0
- package/build/runtime-chunk-5CH7XRKY.js.br +0 -0
- package/build/runtime-chunk-5CH7XRKY.js.gz +0 -0
- package/build/runtime-chunk-5VJGAC3M.js +1 -0
- package/build/runtime-chunk-5VJGAC3M.js.br +0 -0
- package/build/runtime-chunk-5VJGAC3M.js.gz +0 -0
- package/build/runtime-chunk-7NBWIU4W.js +1 -0
- package/build/runtime-chunk-7NBWIU4W.js.br +0 -0
- package/build/runtime-chunk-7NBWIU4W.js.gz +0 -0
- package/build/runtime-chunk-ARTGMJ7O.js +1 -0
- package/build/runtime-chunk-ARTGMJ7O.js.br +0 -0
- package/build/runtime-chunk-ARTGMJ7O.js.gz +0 -0
- package/build/runtime-chunk-BXPWRF47.js +1 -0
- package/build/runtime-chunk-BXPWRF47.js.br +0 -0
- package/build/runtime-chunk-BXPWRF47.js.gz +0 -0
- package/build/runtime-chunk-CRYQVRO6.js +1 -0
- package/build/runtime-chunk-CRYQVRO6.js.br +0 -0
- package/build/runtime-chunk-CRYQVRO6.js.gz +0 -0
- package/build/runtime-chunk-CVUJ3GMH.js +1 -0
- package/build/runtime-chunk-CVUJ3GMH.js.br +0 -0
- package/build/runtime-chunk-CVUJ3GMH.js.gz +0 -0
- package/build/runtime-chunk-DJJZN367.js +1 -0
- package/build/runtime-chunk-DJJZN367.js.br +0 -0
- package/build/runtime-chunk-DJJZN367.js.gz +0 -0
- package/build/runtime-chunk-DZNU62CT.js +1 -0
- package/build/runtime-chunk-DZNU62CT.js.br +0 -0
- package/build/runtime-chunk-DZNU62CT.js.gz +0 -0
- package/build/runtime-chunk-EAXCCTR5.js +1 -0
- package/build/runtime-chunk-EAXCCTR5.js.br +0 -0
- package/build/runtime-chunk-EAXCCTR5.js.gz +0 -0
- package/build/runtime-chunk-EOV2DL2V.js +1 -0
- package/build/runtime-chunk-EOV2DL2V.js.br +0 -0
- package/build/runtime-chunk-EOV2DL2V.js.gz +0 -0
- package/build/runtime-chunk-FDRTCOJ5.js +1 -0
- package/build/runtime-chunk-FDRTCOJ5.js.br +0 -0
- package/build/runtime-chunk-FDRTCOJ5.js.gz +0 -0
- package/build/runtime-chunk-FQNSP44B.js +1 -0
- package/build/runtime-chunk-FQNSP44B.js.br +0 -0
- package/build/runtime-chunk-FQNSP44B.js.gz +0 -0
- package/build/runtime-chunk-FTVQTRM7.js +1 -0
- package/build/runtime-chunk-FTVQTRM7.js.br +0 -0
- package/build/runtime-chunk-FTVQTRM7.js.gz +0 -0
- package/build/runtime-chunk-GFTBNL2W.js +1 -0
- package/build/runtime-chunk-GFTBNL2W.js.br +0 -0
- package/build/runtime-chunk-GFTBNL2W.js.gz +0 -0
- package/build/runtime-chunk-H6BPTR74.js +1 -0
- package/build/runtime-chunk-H6BPTR74.js.br +0 -0
- package/build/runtime-chunk-H6BPTR74.js.gz +0 -0
- package/build/runtime-chunk-H6T5LPRN.js +1 -0
- package/build/runtime-chunk-H6T5LPRN.js.br +0 -0
- package/build/runtime-chunk-H6T5LPRN.js.gz +0 -0
- package/build/runtime-chunk-HER7UVU3.js +1 -0
- package/build/runtime-chunk-HER7UVU3.js.br +0 -0
- package/build/runtime-chunk-HER7UVU3.js.gz +0 -0
- package/build/runtime-chunk-J2I4VBHR.js +1 -0
- package/build/runtime-chunk-J2I4VBHR.js.br +0 -0
- package/build/runtime-chunk-J2I4VBHR.js.gz +0 -0
- package/build/runtime-chunk-JFAQQYSH.js +1 -0
- package/build/runtime-chunk-JFAQQYSH.js.br +0 -0
- package/build/runtime-chunk-JFAQQYSH.js.gz +0 -0
- package/build/runtime-chunk-KGZNRID6.js +1 -0
- package/build/runtime-chunk-KGZNRID6.js.br +1 -0
- package/build/runtime-chunk-KGZNRID6.js.gz +0 -0
- package/build/runtime-chunk-LATYCOUS.js +1 -0
- package/build/runtime-chunk-LATYCOUS.js.br +0 -0
- package/build/runtime-chunk-LATYCOUS.js.gz +0 -0
- package/build/runtime-chunk-MBBODDV7.js +1 -0
- package/build/runtime-chunk-MBBODDV7.js.br +0 -0
- package/build/runtime-chunk-MBBODDV7.js.gz +0 -0
- package/build/runtime-chunk-ML3Z74BL.js +1 -0
- package/build/runtime-chunk-ML3Z74BL.js.br +0 -0
- package/build/runtime-chunk-ML3Z74BL.js.gz +0 -0
- package/build/runtime-chunk-MM75L5X4.js +1 -0
- package/build/runtime-chunk-MM75L5X4.js.br +0 -0
- package/build/runtime-chunk-MM75L5X4.js.gz +0 -0
- package/build/runtime-chunk-N2ZRGNPR.js +1 -0
- package/build/runtime-chunk-N2ZRGNPR.js.br +0 -0
- package/build/runtime-chunk-N2ZRGNPR.js.gz +0 -0
- package/build/runtime-chunk-NBYTQLIB.js +1 -0
- package/build/runtime-chunk-NBYTQLIB.js.br +0 -0
- package/build/runtime-chunk-NBYTQLIB.js.gz +0 -0
- package/build/runtime-chunk-NSD7DU3P.js +1 -0
- package/build/runtime-chunk-NSD7DU3P.js.br +0 -0
- package/build/runtime-chunk-NSD7DU3P.js.gz +0 -0
- package/build/runtime-chunk-NTUTXO7Q.js +1 -0
- package/build/runtime-chunk-NTUTXO7Q.js.br +0 -0
- package/build/runtime-chunk-NTUTXO7Q.js.gz +0 -0
- package/build/runtime-chunk-O5NBGIBR.js +1 -0
- package/build/runtime-chunk-O5NBGIBR.js.br +0 -0
- package/build/runtime-chunk-O5NBGIBR.js.gz +0 -0
- package/build/runtime-chunk-OFPUAZKY.js +1 -0
- package/build/runtime-chunk-OFPUAZKY.js.br +0 -0
- package/build/runtime-chunk-OFPUAZKY.js.gz +0 -0
- package/build/runtime-chunk-OW6T4XFV.js +1 -0
- package/build/runtime-chunk-OW6T4XFV.js.br +0 -0
- package/build/runtime-chunk-OW6T4XFV.js.gz +0 -0
- package/build/runtime-chunk-QZ35BPGB.js +1 -0
- package/build/runtime-chunk-QZ35BPGB.js.br +0 -0
- package/build/runtime-chunk-QZ35BPGB.js.gz +0 -0
- package/build/runtime-chunk-R43XZP65.js +1 -0
- package/build/runtime-chunk-R43XZP65.js.br +0 -0
- package/build/runtime-chunk-R43XZP65.js.gz +0 -0
- package/build/runtime-chunk-T53JMQSH.js +1 -0
- package/build/runtime-chunk-T53JMQSH.js.br +0 -0
- package/build/runtime-chunk-T53JMQSH.js.gz +0 -0
- package/build/runtime-chunk-T6CHRQ6N.js +1 -0
- package/build/runtime-chunk-T6CHRQ6N.js.br +0 -0
- package/build/runtime-chunk-T6CHRQ6N.js.gz +0 -0
- package/build/runtime-chunk-TU4KDRKR.js +1 -0
- package/build/runtime-chunk-TU4KDRKR.js.br +0 -0
- package/build/runtime-chunk-TU4KDRKR.js.gz +0 -0
- package/build/runtime-chunk-TZCHGFVF.js +1 -0
- package/build/runtime-chunk-TZCHGFVF.js.br +3 -0
- package/build/runtime-chunk-TZCHGFVF.js.gz +0 -0
- package/build/runtime-chunk-UK4GQHMO.js +1 -0
- package/build/runtime-chunk-UK4GQHMO.js.br +0 -0
- package/build/runtime-chunk-UK4GQHMO.js.gz +0 -0
- package/build/runtime-chunk-USXMESRF.js +1 -0
- package/build/runtime-chunk-USXMESRF.js.br +0 -0
- package/build/runtime-chunk-USXMESRF.js.gz +0 -0
- package/build/runtime-chunk-VAVYZ35B.js +1 -0
- package/build/runtime-chunk-VAVYZ35B.js.br +0 -0
- package/build/runtime-chunk-VAVYZ35B.js.gz +0 -0
- package/build/runtime-chunk-VGN7YHB7.js +1 -0
- package/build/runtime-chunk-VGN7YHB7.js.br +0 -0
- package/build/runtime-chunk-VGN7YHB7.js.gz +0 -0
- package/build/runtime-chunk-W7QPV37Y.js +1 -0
- package/build/runtime-chunk-W7QPV37Y.js.br +1 -0
- package/build/runtime-chunk-W7QPV37Y.js.gz +0 -0
- package/build/runtime-chunk-WQXDDUFV.js +1 -0
- package/build/runtime-chunk-WQXDDUFV.js.br +0 -0
- package/build/runtime-chunk-WQXDDUFV.js.gz +0 -0
- package/build/runtime-chunk-XLOQIQSS.js +1 -0
- package/build/runtime-chunk-XLOQIQSS.js.br +0 -0
- package/build/runtime-chunk-XLOQIQSS.js.gz +0 -0
- package/build/runtime-chunk-Y3BMDVJ7.js +1 -0
- package/build/runtime-chunk-Y3BMDVJ7.js.br +0 -0
- package/build/runtime-chunk-Y3BMDVJ7.js.gz +0 -0
- package/build/runtime-chunk-YUK55LCN.js +1 -0
- package/build/runtime-chunk-YUK55LCN.js.br +0 -0
- package/build/runtime-chunk-YUK55LCN.js.gz +0 -0
- package/build/runtime-chunk-YVNDW5TV.js +1 -0
- package/build/runtime-chunk-YVNDW5TV.js.br +0 -0
- package/build/runtime-chunk-YVNDW5TV.js.gz +0 -0
- package/build/runtime-chunk-YXATXASV.js +1 -0
- package/build/runtime-chunk-YXATXASV.js.br +1 -0
- package/build/runtime-chunk-YXATXASV.js.gz +0 -0
- package/build/runtime-chunk-Z5OH244S.js +1 -0
- package/build/runtime-chunk-Z5OH244S.js.br +0 -0
- package/build/runtime-chunk-Z5OH244S.js.gz +0 -0
- package/build/runtime-classicRuntime-F5CEZRNL.js +1 -0
- package/build/runtime-classicRuntime-F5CEZRNL.js.br +0 -0
- package/build/runtime-classicRuntime-F5CEZRNL.js.gz +0 -0
- package/build/runtime-cloners-BLAFVALM.js +1 -0
- package/build/runtime-cloners-BLAFVALM.js.br +0 -0
- package/build/runtime-cloners-BLAFVALM.js.gz +0 -0
- package/build/runtime-collisionBVH-KXZNWTEK.js +1 -0
- package/build/runtime-collisionBVH-KXZNWTEK.js.br +0 -0
- package/build/runtime-collisionBVH-KXZNWTEK.js.gz +0 -0
- package/build/runtime-components-DYNXEVOC.js +1 -0
- package/build/runtime-components-DYNXEVOC.js.br +0 -0
- package/build/runtime-components-DYNXEVOC.js.gz +0 -0
- package/build/runtime-conditional-3A423CXW.js +1 -0
- package/build/runtime-conditional-3A423CXW.js.br +0 -0
- package/build/runtime-conditional-3A423CXW.js.gz +0 -0
- package/build/runtime-createDestroy-FUUG7UAK.js +1 -0
- package/build/runtime-createDestroy-FUUG7UAK.js.br +0 -0
- package/build/runtime-createDestroy-FUUG7UAK.js.gz +0 -0
- package/build/runtime-depthOfField-BBWDHJYP.js +1 -0
- package/build/runtime-depthOfField-BBWDHJYP.js.br +0 -0
- package/build/runtime-depthOfField-BBWDHJYP.js.gz +0 -0
- package/build/runtime-dragDrop-GPFMU3ZB.js +1 -0
- package/build/runtime-dragDrop-GPFMU3ZB.js.br +0 -0
- package/build/runtime-dragDrop-GPFMU3ZB.js.gz +0 -0
- package/build/runtime-fxBloom-IGFV4KJD.js +1 -0
- package/build/runtime-fxBloom-IGFV4KJD.js.br +0 -0
- package/build/runtime-fxBloom-IGFV4KJD.js.gz +0 -0
- package/build/runtime-fxDepthOfField-WX7WD3K4.js +1 -0
- package/build/runtime-fxDepthOfField-WX7WD3K4.js.br +0 -0
- package/build/runtime-fxDepthOfField-WX7WD3K4.js.gz +0 -0
- package/build/runtime-gameControls-TGEINRCX.js +1 -0
- package/build/runtime-gameControls-TGEINRCX.js.br +0 -0
- package/build/runtime-gameControls-TGEINRCX.js.gz +0 -0
- package/build/runtime-hair-YOTI2EFL.js +1 -0
- package/build/runtime-hair-YOTI2EFL.js.br +0 -0
- package/build/runtime-hair-YOTI2EFL.js.gz +0 -0
- package/build/runtime-hueSaturation-X3HAZK2G.js +1 -0
- package/build/runtime-hueSaturation-X3HAZK2G.js.br +0 -0
- package/build/runtime-hueSaturation-X3HAZK2G.js.gz +0 -0
- package/build/runtime-mergeStaticGeometries-JI7YWYGH.js +1 -0
- package/build/runtime-mergeStaticGeometries-JI7YWYGH.js.br +3 -0
- package/build/runtime-mergeStaticGeometries-JI7YWYGH.js.gz +0 -0
- package/build/runtime-miscActions-INSZA2CP.js +1 -0
- package/build/runtime-miscActions-INSZA2CP.js.br +0 -0
- package/build/runtime-miscActions-INSZA2CP.js.gz +0 -0
- package/build/runtime-mouseHover-GZW7KW6H.js +1 -0
- package/build/runtime-mouseHover-GZW7KW6H.js.br +0 -0
- package/build/runtime-mouseHover-GZW7KW6H.js.gz +0 -0
- package/build/runtime-navmesh-UJTUAHXM.js +1 -0
- package/build/runtime-navmesh-UJTUAHXM.js.br +0 -0
- package/build/runtime-navmesh-UJTUAHXM.js.gz +0 -0
- package/build/runtime-noise-UF5CMIO3.js +1 -0
- package/build/runtime-noise-UF5CMIO3.js.br +0 -0
- package/build/runtime-noise-UF5CMIO3.js.gz +0 -0
- package/build/runtime-particles-T2CREK6M.js +1 -0
- package/build/runtime-particles-T2CREK6M.js.br +0 -0
- package/build/runtime-particles-T2CREK6M.js.gz +0 -0
- package/build/runtime-paths-PRHQFJ3X.js +1 -0
- package/build/runtime-paths-PRHQFJ3X.js.br +0 -0
- package/build/runtime-paths-PRHQFJ3X.js.gz +0 -0
- package/build/runtime-pixelation-QFSF4L6X.js +1 -0
- package/build/runtime-pixelation-QFSF4L6X.js.br +0 -0
- package/build/runtime-pixelation-QFSF4L6X.js.gz +0 -0
- package/build/runtime-resize-SM6PZWJY.js +1 -0
- package/build/runtime-resize-SM6PZWJY.js.br +0 -0
- package/build/runtime-resize-SM6PZWJY.js.gz +0 -0
- package/build/runtime-sceneTransition-JUZVB2S3.js +1 -0
- package/build/runtime-sceneTransition-JUZVB2S3.js.br +0 -0
- package/build/runtime-sceneTransition-JUZVB2S3.js.gz +0 -0
- package/build/runtime-scroll-Q6NRRL4F.js +1 -0
- package/build/runtime-scroll-Q6NRRL4F.js.br +0 -0
- package/build/runtime-scroll-Q6NRRL4F.js.gz +0 -0
- package/build/runtime-shapeBlends-CPHLT3XC.js +1 -0
- package/build/runtime-shapeBlends-CPHLT3XC.js.br +0 -0
- package/build/runtime-shapeBlends-CPHLT3XC.js.gz +0 -0
- package/build/runtime-text-TBHPCNPL.js +1 -0
- package/build/runtime-text-TBHPCNPL.js.br +0 -0
- package/build/runtime-text-TBHPCNPL.js.gz +0 -0
- package/build/runtime-textInputs-4HQER44D.js +1 -0
- package/build/runtime-textInputs-4HQER44D.js.br +0 -0
- package/build/runtime-textInputs-4HQER44D.js.gz +0 -0
- package/build/runtime-timeline-UKR4DEQS.js +1 -0
- package/build/runtime-timeline-UKR4DEQS.js.br +0 -0
- package/build/runtime-timeline-UKR4DEQS.js.gz +0 -0
- package/build/runtime-tracking-5HISHPEY.js +1 -0
- package/build/runtime-tracking-5HISHPEY.js.br +0 -0
- package/build/runtime-tracking-5HISHPEY.js.gz +0 -0
- package/build/runtime-transitions-FBNOSFXY.js +1 -0
- package/build/runtime-transitions-FBNOSFXY.js.br +0 -0
- package/build/runtime-transitions-FBNOSFXY.js.gz +0 -0
- package/build/runtime-ui2d-3AMS3CSG.js +1 -0
- package/build/runtime-ui2d-3AMS3CSG.js.br +0 -0
- package/build/runtime-ui2d-3AMS3CSG.js.gz +0 -0
- package/build/runtime-updater-3ELP7WMM.js +1 -0
- package/build/runtime-updater-3ELP7WMM.js.br +1 -0
- package/build/runtime-updater-3ELP7WMM.js.gz +0 -0
- package/build/runtime-variables-U36KPJ5V.js +1 -0
- package/build/runtime-variables-U36KPJ5V.js.br +0 -0
- package/build/runtime-variables-U36KPJ5V.js.gz +0 -0
- package/build/runtime-vectorShapes-GIS26ELU.js +1 -0
- package/build/runtime-vectorShapes-GIS26ELU.js.br +0 -0
- package/build/runtime-vectorShapes-GIS26ELU.js.gz +0 -0
- package/build/runtime-video-TZNR7MEM.js +1 -0
- package/build/runtime-video-TZNR7MEM.js.br +0 -0
- package/build/runtime-video-TZNR7MEM.js.gz +0 -0
- package/build/runtime-vignette-3KJD4P5D.js +1 -0
- package/build/runtime-vignette-3KJD4P5D.js.br +0 -0
- package/build/runtime-vignette-3KJD4P5D.js.gz +0 -0
- package/build/runtime-webgpu-LYDFJW3X.js +1 -0
- package/build/runtime-webgpu-LYDFJW3X.js.br +0 -0
- package/build/runtime-webgpu-LYDFJW3X.js.gz +0 -0
- package/build/runtime.cjs +6283 -4577
- package/build/runtime.js +1 -8186
- package/build/runtime.js.br +0 -0
- package/build/runtime.js.gz +0 -0
- package/build/runtime.standalone.js +1 -0
- package/build/runtime.standalone.js.br +0 -0
- package/build/runtime.standalone.js.gz +0 -0
- package/build/runtime.standalone.webgl.js +1 -0
- package/build/runtime.standalone.webgl.js.br +0 -0
- package/build/runtime.standalone.webgl.js.gz +0 -0
- package/build/runtime.standalone.webgpu.js +1 -0
- package/build/runtime.standalone.webgpu.js.br +0 -0
- package/build/runtime.standalone.webgpu.js.gz +0 -0
- package/build/runtime.standalone.webgpu.micro.js +1 -0
- package/build/runtime.standalone.webgpu.micro.js.br +0 -0
- package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
- package/build/runtime.standalone.webgpu.min.js +1 -0
- package/build/runtime.standalone.webgpu.min.js.br +0 -0
- package/build/runtime.standalone.webgpu.min.js.gz +0 -0
- package/build/sky-alto.png +0 -0
- package/build/sky-cirrus.png +0 -0
- package/build/smaa-area.png +0 -0
- package/build/smaa-node-area.png +0 -0
- package/build/smaa-node-search.png +0 -0
- package/build/smaa-search.png +0 -0
- package/build/snippets/hana-82e9eb82a79dead4/js-imports.js +93 -0
- package/package.json +104 -89
- package/runtime.d.ts +301 -2
- package/build/ui.js +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Cc as e}from"./runtime-chunk-VGN7YHB7.js";import{c as t}from"./runtime-chunk-ML3Z74BL.js";function r(e){return Array.isArray(e)?e:[e]}function a(e,t){let r=0;for(;r<e.length&&r<t.length;){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1;r+=1}return r!==t.length?-1:r!==e.length?1:0}function i(e,t){return Object.setPrototypeOf(e,t),e}function n(e){let t={...e};return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),t}function o(e,t,r){if(void 0===e?void 0===t?(e=0,t=10):e=t-10:void 0===t&&(t=e+10),e>t){let r=e;e=t,t=r}let a=[],i=1/(r+1);for(let n=0;n<r;n++){let r=e+(t-e)*(n+.75+.5*Math.random())*i;a.push(r)}return a}function s(e){return e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array}function l(e){if(void 0!==e.deepFreeze)return void e.deepFreeze(e);let t=Object.getOwnPropertyNames(e);for(let r of t){let t=e[r];t&&"object"==typeof t&&l(t)}return Object.freeze(e)}function u(e){for(let t of Object.keys(e))void 0===e[t]&&delete e[t];return e}var c=class{},d=class extends c{constructor(e){super(),this.id=e}},p=class extends c{constructor(e){super(),this.data=e}},f=class{modifyById(e,t){let r=this;if(void 0===r[e])throw new Error("not expected");{let a={...r,[e]:t};return Object.setPrototypeOf(a,f.prototype),a}}add(e,t){return this.runOp({type:1,id:e,data:t})?.data??this}runOp(e){let t=this;if(1===e.type){let r,a=t[e.id];r=void 0===a?{type:2,id:e.id}:{type:1,id:e.id,data:a};let{id:i,data:n}=e,o={...t,[i]:n};return Object.setPrototypeOf(o,f.prototype),{data:o,actual:e,reverse:r}}if(2===e.type){let{id:r}=e,a=t[r];if(void 0===a)return null;{let i={...t};return Object.setPrototypeOf(i,f.prototype),delete i[r],{data:i,actual:e,reverse:{type:1,id:r,data:a}}}}return null}},h=class extends Error{};function y(e,t){for(let r of e)!0!==t(r.id,r.data)&&y(r.children,t)}function m(e,t){if(!0!==t(e.id,e.data))for(let r of e.children)m(r,t)}var g,b,v=class extends Array{constructor(...e){super(...e),t(this,"partialObjectCaches"),t(this,"objCaches"),t(this,"parentCaches"),Object.setPrototypeOf(this,v.prototype)}deepFreeze(){let e=0;for(;e<this.length;)l(this[e]),e++}fillCaches0(e,t){this.objCaches.set(e.id,e),this.parentCaches.set(e.id,t);for(let t of e.children)this.fillCaches0(t,e.id)}fillCaches(){if(void 0===this.objCaches){this.objCaches=new Map,this.parentCaches=new Map;for(let e of this)this.fillCaches0(e,null)}}randomId(){this.fillCaches();let e=Array.from(this.objCaches.keys());if(0!==e.length)return e[Math.max(0,Math.floor(Math.random()*e.length)-1)]}nonExistOrDescendantOf(e,t){if(!this.has(e))return!0;for(;e;){let r=this.parent(e);if(r===t)return!0;e=r}return!1}rootAcestor(e){for(;e;){let t=this.parent(e);if(!t)return e;e=t}return e}isDescendantOf(e,t){for(;e;){let r=this.parent(e);if(r===t)return!0;e=r}return!1}data(e){return this.get(e)?.data}has(e){return void 0!==this.childrenOf(e)}partialCache(e){void 0===this.partialObjectCaches&&(this.partialObjectCaches=new Map);let t=this.get(e);void 0!==t&&this.partialObjectCaches.set(e,t)}get(e){if(void 0!==this.partialObjectCaches){let t=this.partialObjectCaches.get(e);if(void 0!==t)return t}return this.fillCaches(),this.objCaches.get(e)}childrenOf(e){return null===e?this:this.get(e)?.children}traverseFrom(e,t){if(null===e)this.traverse(t);else{let r=this.get(e);r&&m(r,t)}}traverse(e){y(this,e)}totalSize(){return this.fillCaches(),this.objCaches.size}parent(e){return this.fillCaches(),this.parentCaches.get(e)}childrenArray(e){return null===e?this:this.get(e).children}modifyById(e,t){if(void 0===this.get(e))throw new Error("not expected");{let r=this.parent(e),a=this.childrenArray(r),i=a.findIndex(t=>t.id===e);if(i<0)throw new Error("not expected");let n=a[i];a=[...a],a[i]={...n,data:t};let o=new Map;return o.set(e,a[i]),this.modifyArrayBy(r,a,o)}}modifyArrayBy(e,t,r=void 0){let a=e,i=t;for(;null!==a;){let e=i,t=a;if(a=this.parent(a),void 0===a)throw new Error;i=this.childrenArray(a);let n=i.findIndex(e=>e.id===t);if(n<0)throw new Error;i=[...i],i[n]={...i[n],children:e},r&&r.set(t,i[n])}Object.setPrototypeOf(i,v.prototype);let n=i;if(r&&void 0!==this.objCaches&&void 0!==this.parentCaches){n.objCaches=this.objCaches;for(let[e,t]of r)n.objCaches.set(e,t);n.parentCaches=this.parentCaches,this.objCaches=void 0,this.parentCaches=void 0}else n.fillCaches();return n}runOp(e){switch(e.type){case 7:return this.addOp(e);case 8:return this.deleteOp(e);case 9:return this.moveOp(e)}return null}checkDuplicatedIdRec({id:e,children:t}){if(void 0!==this.get(e))return!0;for(let e of t)if(this.checkDuplicatedIdRec(e))return!0;return!1}addOp(e){let{parent:t,fi:r,id:a,data:i,children:n}=e;if(null!==t&&void 0===this.get(t))return null;if(this.checkDuplicatedIdRec(e))return null;{let o=t,s=this.childrenArray(o),l={fi:r,id:a,data:i,children:n};return s=[...s,l],s.sort((e,t)=>e.fi-t.fi),e.localIndex=s.indexOf(l),{data:this.modifyArrayBy(o,s),actual:e,reverse:{type:8,id:a}}}}deleteOp(e){let{id:t}=e;if(null===this.get(t))return null;{let r=this.parent(t);if(void 0===r)return null;let a=this.childrenArray(r),i=a.findIndex(e=>e.id===t);e.localIndex=i,a=[...a];let n=a.splice(i,1)[0];return{data:this.modifyArrayBy(r,a),actual:e,reverse:{type:7,...n,parent:r}}}}moveOp(e){let{parent:t,fi:r,id:a}=e;if(null!==t&&void 0===this.get(t))return this.deleteOp({type:8,id:a});if(null!==t){let e=t;for(;null!==e;){if(void 0===e)throw new Error;if(e===a)throw new h("cyclic tree");e=this.parent(e)}}let i=this.parent(a);if(void 0===i)return null;let n=i,o=this.childrenArray(i),s=o.findIndex(e=>e.id===a);o=[...o];let l=o.splice(s,1)[0],u=this.modifyArrayBy(i,o);i=t,o=u.childrenArray(i);let c=l.fi;return l={...l,fi:r},o=[...o,l],o.sort((e,t)=>e.fi-t.fi),e.localIndex=o.indexOf(l),u=u.modifyArrayBy(i,o),{data:u,actual:e,reverse:{type:9,parent:n,fi:c,id:a}}}previous(e,t){if(null===t){let t=this.childrenArray(e);return 0===t.length?null:t[t.length-1].id}let r=null;for(let a of this.childrenArray(e)){if(a.id===t)return r;r=a.id}return null}traverseSortNext(e){let t=this.parent(e);if(void 0!==t){let r=this.childrenArray(t),a=r.findIndex(t=>t.id===e)+1;if(a<r.length)return r[a].id;if(t)return this.traverseSortNext(t)}}sortNext(e){let t=this.childrenArray(e);return t.length>0?t[0].id:this.traverseSortNext(e)}traverseSortPrevious(e){let t=this.childrenArray(e);return t.length>0?this.traverseSortPrevious(t[t.length-1].id):e}sortPrevious(e){let t=this.parent(e);if(void 0!==t){let r=this.childrenArray(t),a=r.findIndex(t=>t.id===e)-1;return a>=0?this.traverseSortPrevious(r[a].id):t}}getAllSorted(e){let t=[];for(let r of e){let e=this.getWithSortKey(r.id);void 0!==e&&t.push({...r,...e})}t.sort((e,t)=>a(e.sortKey,t.sortKey));for(let e of t)delete e.sortKey;return t}getAllIdSorted(e){let t=[];for(let r of e){let e=this.getWithSortKey(r);void 0!==e&&t.push(e)}t.sort((e,t)=>a(e.sortKey,t.sortKey));for(let e of t)delete e.sortKey;return t.map(e=>e.id)}getWithSortKey(e){let t=e,r=[],a=this.get(t),i=a;if(void 0!==a){for(;t;)r.splice(0,0,a.fi),t=this.parent(t),null!==t&&(a=this.get(t));return{...i,sortKey:r}}}insertBeforeHelper(e,t,r){return this.insertAfterHelper(e,this.previous(e,t),r)}insertAfterHelper(e,t,r){let a=this.childrenArray(e);if(null===t){if(0===a.length)return o(0,r,r);{let e=a[0].fi;return o(e-r,e,r)}}{let i=this.get(t);if(void 0===i||this.parent(t)!==e)throw new Error("illegal args");let n=a.find(e=>e.fi>i.fi);if(void 0===n){let e=a[a.length-1].fi;return o(e,e+r,r)}return o(i.fi,n.fi,r)}}},w=null;(b=g||(g={})).setPreservePrototype=function(e){w=e},b.tryPreservePrototype=function(e,t){return Object.getPrototypeOf(e)===w&&Object.setPrototypeOf(t,w),t},b.runOp=function(e,t){if(0!==t.type)return null;if(Array.isArray(e)){let r=t.props,a={},i=[...e],n=!1;if(r)for(let e of Object.keys(r)){let t=parseInt(e);if(isNaN(t))throw new Error("wrong index");a[e]=i[t],i[t]=r[e],n=!0}return n?{data:i,actual:t,reverse:{type:0,props:a}}:null}{let r=t.props,a={},i={...e},n=!1;if(r)for(let e of Object.keys(r)){a[e]=i[e];let t=r[e];void 0===t?delete i[e]:i[e]=t,n=!0}return n?{data:b.tryPreservePrototype(e,i),actual:t,reverse:{type:0,props:a}}:null}};var D=class extends Array{constructor(...e){super(...e),t(this,"objCaches"),Object.setPrototypeOf(this,D.prototype)}deepFreeze(){let e=0;for(;e<this.length;)l(this[e]),e++}fillCaches0(e){this.objCaches.set(e.id,e)}fillCaches(){if(void 0===this.objCaches){this.objCaches=new Map,Object.getOwnPropertyDescriptor(this,"objCaches").enumerable=!1;for(let e of this)this.fillCaches0(e)}}randomId(){this.fillCaches();let e=Array.from(this.objCaches.keys());if(0!==e.length)return e[Math.max(0,Math.floor(Math.random()*e.length)-1)]}data(e){return this.get(e)?.data}get(e){return this.fillCaches(),this.objCaches.get(e)}modifyById(e,t){if(void 0===this.get(e))throw new Error("not expected");{let r=this,a=r.findIndex(t=>t.id===e);if(a<0)throw new Error("not expected");let i=r[a];return r=[...r],r[a]={...i,data:t},this.modifyArrayBy(r)}}modifyArrayBy(e){Object.setPrototypeOf(e,D.prototype);let t=e;return typeof process<"u"||t.fillCaches(),t}runOp(e){switch(e.type){case 4:return this.addOp(e);case 5:return this.deleteOp(e);case 6:return this.moveOp(e)}return null}addOp(e){let{fi:t,id:r,data:a}=e,i=this,n={fi:t,id:r,data:a};return i=[...i,n],i.sort((e,t)=>e.fi-t.fi),e.localIndex=i.indexOf(n),{data:this.modifyArrayBy(i),actual:e,reverse:{type:5,id:r}}}deleteOp(e){let{id:t}=e,r=this,a=r.findIndex(e=>e.id===t);if(-1===a)return null;e.localIndex=a,r=[...r];let i=r.splice(a,1)[0];return{data:this.modifyArrayBy(r),actual:e,reverse:{type:4,...i}}}moveOp(e){let{fi:t,id:r}=e,a=this;a=[...a];let i=a.findIndex(e=>e.id===r);if(-1===i)return null;let n=a[i].fi,o={...a[i],fi:t};return a[i]=o,a.sort((e,t)=>e.fi-t.fi),e.localIndex=a.indexOf(o),{data:this.modifyArrayBy(a),actual:e,reverse:{type:6,fi:n,id:r}}}previous(e){if(null===e)return 0===this.length?null:this[this.length-1].id;let t=null;for(let r of this){if(r.id===e)return t;t=r.id}return null}insertBeforeHelper(e,t){return this.insertAfterHelper(this.previous(e),t)}insertAfterHelper(e,t){let r=this;if(null===e){if(0===r.length)return o(0,t,t);{let e=r[0].fi;return o(e-t,e,t)}}{let a=this.get(e);if(void 0===a)throw new Error("illegal args");let i=r.find(e=>e.fi>a.fi);if(void 0===i){let e=r[r.length-1].fi;return o(e,e+t,t)}return o(a.fi,i.fi,t)}}};function S(e,t){return P(e,t,null)??e}function O(e,t){let r={cur:[],result:[],len:0};return[e=P(e,t,r)??e,r.result]}function A(e,t){return null===e?null:(e.cur[e.len]=t,e.len+=1,e)}function C(e){e&&(e.len-=1)}function j(e,t,r){let a=!1,i=e.map(e=>{let i=e.id,n=t[i];if(void 0!==n&&"string"==typeof n&&(a=!0,i=n,null!==r))throw new Error("not supported");let o=P(e.data,t,A(r,i));C(r),a=a||void 0!==o,void 0===o&&(o=e.data);let s=j(e.children,t,r);return void 0!==s?a=!0:s=e.children,{...e,id:i,data:o,children:s}});if(a)return i}function P(e,t,r){if(e instanceof v){let a=j(e,t,r);return void 0!==a&&Object.setPrototypeOf(a,Object.getPrototypeOf(e)),a}if(e instanceof D)return function(e,t,r){let a=!1,i=e.map(e=>{let i=e.id,n=t[i];if(void 0!==n&&"string"==typeof n&&(a=!0,i=n,null!==r))throw new Error("not supported");let o=P(e.data,t,A(r,i));return C(r),a=a||void 0!==o,void 0===o&&(o=e.data),{...e,id:i,data:o}});if(a)return Object.setPrototypeOf(i,Object.getPrototypeOf(e)),i}(e,t,r);if(Array.isArray(e)){let a=!1,i=e.map((e,i)=>{let n=P(e,t,A(r,i));return C(r),a=a||void 0!==n,void 0===n&&(n=e),n});return a?(Object.setPrototypeOf(i,Object.getPrototypeOf(e)),i):void 0}if(e&&"object"==typeof e&&!s(e)){let a={},i=!1;for(let[n,o]of Object.entries(e))if("name"!==n&&"variableId"!==n){let e=t[n];if("string"==typeof e){if(null!==r)throw new Error("not supported");i=!0,n=e}let s=P(o,t,A(r,n));C(r),i=i||void 0!==s,void 0===s&&(s=o),a[n]=s}else a[n]=o;return i?(Object.setPrototypeOf(a,Object.getPrototypeOf(e)),a):void 0}if("string"==typeof e){let a=t[e];return void 0!==a&&function(e){if(null===e)return null;e.result.push(e.cur.slice(0,e.len))}(r),a}}function x(e){return e&&"object"==typeof e&&e instanceof _}var M,T,E,I,_=class{unusedFunOverridesTable(e){}runOp(e){let t=[],r=this,a=0,i={};for(;a<e.path.length;){if(t.push(r),r=void 0===r?void 0:r[e.path[a]],void 0!==r&&!x(r))return null;a+=1}r=r?n(r):new _;for(let[t,a]of Object.entries(e.props)){let e=r[t];i[t]=e,void 0===a?delete r[t]:r[t]=a}for(;a>0;){if(0===Object.keys(r).length){let i=t[a-1];i&&(r=n(i),delete r[e.path[a-1]])}else{let i=t[a-1];if(i){let t=n(i);t[e.path[a-1]]=r,r=t}else{let t=new _;t[e.path[a-1]]=r,r=t}}a-=1}return{data:Object.setPrototypeOf(r,_.prototype),actual:e,reverse:{...e,props:i}}}};function k(e,t){if(void 0===t)return;let r=!1,a=e.map(e=>{let a=e.id,i=L(e.data,t[a]);if(r=r||void 0!==i,void 0===i&&(i=e.data),e.children){let n=k(e.children,t);return void 0!==n?r=!0:n=e.children,{...e,id:a,data:i,children:n}}return{...e,id:a,data:i}});return r?a:void 0}function L(e,t){if(!x(t))return t;if(e instanceof v){let r=k(e,t);return void 0!==r&&Object.setPrototypeOf(r,Object.getPrototypeOf(e)),r}if(e instanceof D)return function(e,t){if(void 0===t)return;let r=!1,a=e.map(e=>{let a=e.id,i=L(e.data,t[a]);return r=r||void 0!==i,void 0===i&&(i=e.data),{...e,id:a,data:i}});return r?(Object.setPrototypeOf(a,Object.getPrototypeOf(e)),a):void 0}(e,t);if(Array.isArray(e)){let r=!1,a=e.map((e,a)=>{let i=L(e,t[a]);return r=r||void 0!==i,void 0===i&&(i=e),i});return r?(Object.setPrototypeOf(a,Object.getPrototypeOf(e)),a):void 0}if(e instanceof _)return R(e,t);if(e&&"object"==typeof e){let r={},a=!1;for(let[i,n]of Object.entries(e)){let e=L(n,t[i]);a=a||void 0!==e,void 0===e&&(e=n),r[i]=e}return a?(Object.setPrototypeOf(r,Object.getPrototypeOf(e)),r):void 0}}function R(e,t){if(void 0===e)return t;if(void 0===t)return e;if(!x(t))return t;if(!x(e))return M.apply(e,t);let r=new Set;for(let t of Object.keys(e))r.add(t);for(let e of Object.keys(t))r.add(e);let a=new _;for(let i of r){let r=R(void 0===e?void 0:e[i],void 0===t?void 0:t[i]);a[i]=r}return a}(e=>{e.apply=function(e,t){return L(e,t)??e},e.merge=function(e,t){return R(e,t)},e.filterOp=function(e,t){let r=0,a=t.path,i=e;for(;r<a.length&&void 0!==i;){if(i=Y.zoomOnce(i,a[r]),void 0===i)return t;if(!x(i))return;r+=1}if(void 0===i)return t;if(x(i)){if(0===t.type){let e={...t.props};for(let t of Object.keys(i))delete e[t];return{...t,props:e}}if(1===t.type||4===t.type||7===t.type){let e=k([t],i);return e?e[0]:t}return t}}})(M||(M={})),(T||(T={})).replaceProps=function(e,t){let r=Y.zoom(t,e.path);if("object"==typeof r){let t={};for(let a of Object.keys(e.props))t[a]=r[a];return{...e,props:t}}return{...e,props:{}}},(e=>{function t(e,t){let r=t.path,a=[];for(;;){let i;if(e instanceof _&&0===t.type&&(i=e.runOp({...t,path:r.slice(a.length)}),null===i&&(i=void 0)),void 0===i&&a.length===r.length&&(i=e instanceof v||e instanceof D||e instanceof f?e.runOp(t):g.runOp(e,t)),void 0!==i){if(null!==i){let e=i.data;for(let t=a.length-1;t>=0;t--){let i=r[t],n=a[t];if(n instanceof v){if("number"==typeof i)throw new Error("illegal arg");e=n.modifyById(i,e)}else if(n instanceof D){if("number"==typeof i)throw new Error("illegal arg");e=n.modifyById(i,e)}else if(n instanceof f){if("number"==typeof i)throw new Error("illegal arg");e=n.modifyById(i,e)}else if(n instanceof _){let t={...n,[i]:e};e=Object.setPrototypeOf(t,_.prototype)}else{if("object"!=typeof n)return null;if(Array.isArray(n)){if("string"==typeof i&&(i=parseInt(i),isNaN(i)))throw new Error("Invalid path");let t=e;e=[...n],e[i]=t}else e=g.tryPreservePrototype(n,{...n,[i]:e})}}return{data:e,actual:{...i.actual,path:r},reverse:{...i.reverse,path:r}}}return null}let n,o=r[a.length];if(e instanceof v){if("number"==typeof o)throw new Error("");n=e.get(o)?.data}else if(e instanceof D){if("number"==typeof o)throw new Error("");n=e.get(o)?.data}else null!==e&&(n=e[o]);if(void 0===n)return null;a.push(e),e=n}}function r(e,t){for(let r=0;r<e.length&&r<t.length;r++)if(e[r]!==t[r])return!0;return!1}function a(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}e.drop=function(e,t){return{...e,path:e.path.slice(t)}},e.applySimple=function(e,r){return t(e,r)?.data??e},e.apply=t,e.pathDisjoint=r,e.pathEq=a,e.commutative=function(e,t){return r(e.path,t.path)},e.subsumed=function(e,t){return!(0!==e.type||0!==t.type||!a(e.path,t.path))&&Object.keys(e.props).every(e=>void 0!==t.props[e])}})(E||(E={})),(e=>{function t(e,t){let r=e,a=[],i=[];for(let e of t)try{if(3===e.type||5===e.type&&"variables"===e.path[e.path.length-1]){let t,n,o;if(3===e.type?(t=Y.zoom(r,[...e.path,e.id]),o=E.apply(r,{...e,type:2})):(t=Y.zoom(r,[...e.path,e.id,"value"]),o=E.apply(r,e)),null!==o){r=o.data;let[s,l]=O(r,{[e.id]:t});r=s;for(let o=0;o<l.length;o++){let s=l[o],u=s.pop();if("number"==typeof u){let a=[u];for(let e=o+1;e<l.length;e++){let t=l[e],r=t[t.length-1];if("number"!=typeof r||!Y.equal(s,t.slice(0,t.length-1)))break;a.push(r),l.splice(e,1)}let i=Y.zoom(r,s);n=i.map((t,r)=>a.includes(r)?e.id:t),t=i,u=s.pop()}else{if("alphaOverride"===u||"alpha"===u){t/=100;let e=t,a=Y.zoom(r,s.slice(0,s.length-2)),i=a.layers.map(t=>t.id===s[s.length-1]?{...t,data:{...t.data,[u]:e}}:t);Object.setPrototypeOf(i,Object.getPrototypeOf(a.layers)),a.layers=i}n=e.id}a.push({type:0,path:s,props:{[u]:t}}),i.push({type:0,path:s,props:{[u]:n}})}i.push(o.reverse),a.push(o.actual)}}else{let t=E.apply(r,e);null!==t&&(a.push(t.actual),r=t.data,i.push(t.reverse))}}catch(e){if(e instanceof h)return null;throw e}return{data:r,actual:a,reverse:i.reverse()}}e.empty=function(){return[]},e.removePrefix=function(e,t){let r=[];for(let a of e){let[e,...i]=a.path;e===t&&r.push({...a,path:i})}return r},e.addPrefix=function(e,t){return e.map(e=>({...e,path:[t,...e.path]}))},e.concat=function(e,t){return[...e,...t]},e.compress=function(e,t){return[...e.filter(e=>!t.some(t=>E.subsumed(e,t))),...t]},e.commutative=function(e,t){return e.every(e=>t.every(t=>E.commutative(e,t)))},e.applyAll=function(e,r){for(let a of r){let r=t(e,a);null!==r&&(e=r.data)}return e},e.apply=t})(I||(I={}));var B=Symbol(),z=Symbol(),U=Symbol(),F=class{reportOp(e,t,r=[]){let a=this;if(null===t)return;a._current=t.data;let i=r;for(;!(a instanceof $);){let e=a._path,t=a._current;if(""!==e&&i.splice(0,0,e),a=a._parent,null===a)return;a.update(e,t)}a.push(i,e,t.actual,t.reverse)}deleteChildren(e){if(this._children){let t=this._children[e];if(t){let r=t[U];r&&r(),delete this._children[e]}}}},V=class extends F{constructor(e,t,r){super(),this._parent=e,this._path=t,this._current=r}update(e,t){if(Array.isArray(this._current)){if("string"==typeof e&&(e=parseInt(e),isNaN(e)))throw new Error("Invalid path");this._current=[...this._current],this._current[e]=t}else this._current=g.tryPreservePrototype(this._current,{...this._current,[e]:t})}runOp(e){this.reportOp(e,g.runOp(this._current,e),e.path)}},G=class extends F{constructor(e,t,r){super(),this._parent=e,this._path=t,this._current=r}update(e,t){this._current={...this._current,[e]:t},Object.setPrototypeOf(this._current,f.prototype)}runOp(e){this.reportOp(e,this._current.runOp(e))}},H={get(e,t){if(t===U)return()=>{e._parent=null};if(t===B)return e._current;if(t===z)return e;let{_current:r,_children:a}=e;if("push"===t&&Array.isArray(r))throw new Error("not supported to expand array");let i=void 0===a?void 0:a[t];if(void 0!==i)return i;let n=r[t],o=Q(e,t,n);return o!==n?(void 0===a&&(a={},e._children=a),a[t]=o,o):n},has:(e,t)=>t in e._current,ownKeys:e=>Reflect.ownKeys(e._current),defineProperty(){throw Error("not supported")},getPrototypeOf:e=>Object.getPrototypeOf(e._current),setPrototypeOf(){throw Error("not supported")},getOwnPropertyDescriptor(e,t){let r=e._current,a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{writable:!0,configurable:!0,enumerable:a.enumerable,value:r[t]}}},N={...H,set(e,t,r){let a={type:0,props:{[t]:te(r)??r}};return e.deleteChildren(t),e.runOp(a),!0},deleteProperty(e,t){let r={type:0,props:{[t]:void 0}};return e.deleteChildren(t),e.runOp(r),!0}},K={...H,set(e,t,r){return void 0===r?this.deleteProperty(e,t):(e.deleteChildren(t),e.runOp({type:1,id:t,data:r})),!0},deleteProperty:(e,t)=>(e.runOp({type:2,id:t}),!0)},W=class extends F{constructor(e,t,r){super(),this._children={},this._parent=e,this._path=t,this._current=r,this[U]=()=>{this._parent=null}}unproxy(){return this._current}update(e,t){this._current=this._current.modifyById(e,t)}runOp(e){this.reportOp(e,this._current.runOp(e))}randomId(){return this._current.randomId()}isDescendantOf(e,t){return this._current.isDescendantOf(e,t)}childrenOf(e){return this._current.childrenOf(e)}get(e){return this._current.get(e)}parent(e){return this._current.parent(e)}traverse(e){this._current.traverse((t,r)=>{e(t,this.data(t))})}data(e){let{_current:t,_children:r}=this,a=void 0===r?void 0:r[e];if(void 0!==a)return a;let i=t.get(e)?.data,n=Q(this,e,i);return n!==i?(void 0===r&&(r={},this._children=r),r[e]=n,n):i}add(e,t,r,a,i){this.runOp({type:7,parent:e,fi:t,id:r,data:a,children:i})}move(e,t,r){this.runOp({type:9,parent:e,fi:t,id:r})}insertAfter(e,t,r){let a=this._current.insertAfterHelper(e,t,r.length);for(let t=0;t<r.length;t++){let i=r[t];this.add(e,a[t],i.id,i.data,i.children)}}insertBefore(e,t,r){let a=this._current.insertBeforeHelper(e,t,r.length);for(let t=0;t<r.length;t++){let i=r[t];this.add(e,a[t],i.id,i.data,i.children)}}moveAfter(e,t,r){let a=this._current.insertAfterHelper(e,t,r.length);for(let t=0;t<r.length;t++){let i=r[t];this.move(e,a[t],i)}}moveBefore(e,t,r){let a=this._current.insertBeforeHelper(e,t,r.length);for(let t=0;t<r.length;t++){let i=r[t];this.move(e,a[t],i)}}delete(e){this.deleteChildren(e),this.runOp({type:8,id:e})}sortNext(e){return this._current.sortNext(e)}sortPrevious(e){return this._current.sortPrevious(e)}getAllSorted(e){return this._current.getAllSorted(e)}},q=class extends F{constructor(e,t,r){super(),this._children={},this._parent=e,this._path=t,this._current=r,this[U]=()=>{this._parent=null}}unproxy(){return this._current}get length(){return this._current.length}forEach(e){let t=this.length;for(let r=0;r<t;r++){let t=this._current[r].id,a=this._current[r].fi;e(this.data(this._current[r].id),t,a,r)}}find(e){let t=this.length;for(let r=0;r<t;r++){let t=this._current[r].id;if(e(this.data(t),t))return this.get(t)}}update(e,t){this._current=this._current.modifyById(e,t)}randomId(){return this._current.randomId()}get(e){return{...this._current.get(e),data:this.data(e)}}at(e){let{id:t,fi:r}=this._current.at(e);return{id:t,fi:r,data:this.data(t)}}data(e){let{_current:t,_children:r}=this,a=void 0===r?void 0:r[e];if(void 0!==a)return a;let i=t.get(e)?.data,n=Q(this,e,i);return n!==i?(void 0===r&&(r={},this._children=r),r[e]=n,n):i}runOp(e){this.reportOp(e,this._current.runOp(e))}add(e,t,r){this.runOp({type:4,fi:e,id:t,data:r})}move(e,t){this.runOp({type:6,fi:e,id:t})}insertAfter(e,t){let r=this._current.insertAfterHelper(e,t.length);for(let e=0;e<t.length;e++){let a=t[e];this.add(r[e],a.id,a.data)}}insertBefore(e,t){let r=this._current.insertBeforeHelper(e,t.length);for(let e=0;e<t.length;e++){let a=t[e];this.add(r[e],a.id,a.data)}}moveAfter(e,t){let r=this._current.insertAfterHelper(e,t.length);for(let e=0;e<t.length;e++){let a=t[e];this.move(r[e],a)}}moveBefore(e,t){let r=this._current.insertBeforeHelper(e,t.length);for(let e=0;e<t.length;e++){let a=t[e];this.move(r[e],a)}}delete(e){this.deleteChildren(e),this.runOp({type:5,id:e})}};function Z(e,t,r){if(e.length>0){let a=e[e.length-1];if(0===a.type&&0===t.type&&Y.equal(a.path,r))return void Object.assign(a.props,t.props)}e.push({...t,path:r})}var Y,X,$=class extends F{constructor(e){super(),this.ts=[],this.actual=[],this.reverse=[],this._current=e}update(e,t){if(""!==e)throw new Error("");this._current=t}push(e,t,r,a){Z(this.ts,t,e),Z(this.actual,r,e),Z(this.reverse,a,e)}result(){return{data:this._current,ts:this.ts,actual:this.actual,reverse:this.reverse.reverse()}}};function Q(e,t,r){return r instanceof v?new W(e,t,r):r instanceof D?new q(e,t,r):r instanceof f?new Proxy(new G(e,t,r),K):null!==r&&"object"==typeof r?s(r)?r:new Proxy(new V(e,t,r),N):r}function J(e){let t=new $(e);return[Q(t,"",e),t]}function ee(e,t){let[r,a]=J(e);return t(r),a.result()}function te(e){return e instanceof W||e instanceof q?e._current:null!==e&&"object"==typeof e?e[B]:e}(e=>{function t(e,t){return(e instanceof v||e instanceof W)&&"string"==typeof t||(e instanceof D||e instanceof q)&&"string"==typeof t?e.data(t):"number"==typeof t&&Array.isArray(e)||"string"==typeof t&&"object"==typeof e&&null!==e?e[t]:void 0}function r(e,r,a=0){for(;a<r.length&&void 0!==e;)e=t(e,r[a]),a+=1;return e}e.equal=function(e,t){if(t.length!==e.length)return!1;{let r=0;for(;r<e.length;){if(e[r]!==t[r])return!1;r+=1}}return!0},e.removeOverridden=function(e,t,a){let i=r(a,e);if(void 0!==i&&"object"==typeof i&&null!==i){let e={...t};return Object.keys(i).forEach(t=>{delete e[t]}),e}return t},e.zoomOnce=t,e.zoom=r,e.findPathes=function(e,t){let r=[];return function e(a,i){if(a instanceof d&&a.id===t.id)r.push(i);else if(a instanceof D)for(let t=0;t<a.length;t++)e(a[t].data,[...i,a[t].id]);else if(a instanceof v)a.traverse((t,r)=>{e(t,[...i,r])});else if(Array.isArray(a))for(let t=0;t<a.length;t++)e(a[t],[...i,t]);else{if(s(a))return;if("object"==typeof a&&null!==a)for(let t in a)e(a[t],[...i,t])}}(e,[]),r}})(Y||(Y={}));try{X=new TextDecoder}catch{}var re,ae,ie,ne,oe,se,le,ue=0,ce=[],de=ce,pe=0,fe={},he=0,ye=0,me=[],ge={useRecords:!1,mapsAsObjects:!0},be=new class{};be.name="MessagePack 0xC1";var ve=!1,we=2,De=class{constructor(e){e&&(!1===e.useRecords&&void 0===e.mapsAsObjects&&(e.mapsAsObjects=!0),e.sequential&&!1!==e.trusted&&(e.trusted=!0,!e.structures&&0!=e.useRecords&&(e.structures=[],e.maxSharedStructures||(e.maxSharedStructures=0))),e.structures?e.structures.sharedLength=e.structures.length:e.getStructures&&((e.structures=[]).uninitialized=!0,e.structures.sharedLength=0),e.int64AsNumber&&(e.int64AsType="number")),Object.assign(this,e)}unpack(e,t){if(re)return Xe(()=>($e(),this?this.unpack(e,t):De.prototype.unpack.call(ge,e,t)));!e.buffer&&e.constructor===ArrayBuffer&&(e=typeof Buffer<"u"?Buffer.from(e):new Uint8Array(e)),"object"==typeof t?(ae=t.end||e.length,ue=t.start||0):(ue=0,ae=t>-1?t:e.length),pe=0,ye=0,ne=null,de=ce,oe=null,re=e;try{le=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(t){throw re=null,e instanceof Uint8Array?t:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&"object"==typeof e?e.constructor.name:typeof e))}if(this instanceof De){if(fe=this,this.structures)return ie=this.structures,Se();(!ie||ie.length>0)&&(ie=[])}else fe=ge,(!ie||ie.length>0)&&(ie=[]);return Se()}unpackMultiple(e,t){let r,a=0;try{ve=!0;let i=e.length,n=this?this.unpack(e,i):et.unpack(e,i);if(!t){for(r=[n];ue<i;)a=ue,r.push(Se());return r}if(!1===t(n,a,ue))return;for(;ue<i;)if(a=ue,!1===t(Se(),a,ue))return}catch(e){throw e.lastPosition=a,e.values=r,e}finally{ve=!1,$e()}}_mergeStructures(e,t){e=e||[],Object.isFrozen(e)&&(e=e.map(e=>e.slice(0)));for(let t=0,r=e.length;t<r;t++){let r=e[t];r&&(r.isShared=!0,t>=32&&(r.highByte=t-32>>5))}e.sharedLength=e.length;for(let r in t||[])if(r>=0){let a=e[r],i=t[r];i&&(a&&((e.restoreStructures||(e.restoreStructures=[]))[r]=a),e[r]=i)}return this.structures=e}decode(e,t){return this.unpack(e,t)}};function Se(e){try{if(!fe.trusted&&!ve){let e=ie.sharedLength||0;e<ie.length&&(ie.length=e)}let e;if(fe.randomAccessStructure&&re[ue]<64&&re[ue],e=Ae(),oe&&(ue=oe.postBundlePosition,oe=null),ve&&(ie.restoreStructures=null),ue==ae)ie&&ie.restoreStructures&&Oe(),ie=null,re=null,se&&(se=null);else{if(ue>ae)throw new Error("Unexpected end of MessagePack data");if(!ve){let t;try{t=JSON.stringify(e,(e,t)=>"bigint"==typeof t?`${t}n`:t).slice(0,100)}catch(e){t="(JSON view not available "+e+")"}throw new Error("Data read, but end of buffer not reached "+t)}}return e}catch(e){throw ie&&ie.restoreStructures&&Oe(),$e(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer")||ue>ae)&&(e.incomplete=!0),e}}function Oe(){for(let e in ie.restoreStructures)ie[e]=ie.restoreStructures[e];ie.restoreStructures=null}function Ae(){let e=re[ue++];if(e<160){if(e<128){if(e<64)return e;{let t=ie[63&e]||fe.getStructures&&xe()[63&e];return t?(t.read||(t.read=je(t,63&e)),t.read()):e}}if(e<144){if(e-=128,fe.mapsAsObjects){let t={};for(let r=0;r<e;r++){let e=He();"__proto__"===e&&(e="__proto_"),t[e]=Ae()}return t}{let t=new Map;for(let r=0;r<e;r++)t.set(Ae(),Ae());return t}}{e-=144;let t=new Array(e);for(let r=0;r<e;r++)t[r]=Ae();return fe.freezeData?Object.freeze(t):t}}if(e<192){let t=e-160;if(ye>=ue)return ne.slice(ue-he,(ue+=t)-he);if(0==ye&&ae<140){let e=t<16?ze(t):Be(t);if(null!=e)return e}return Me(t)}{let t;switch(e){case 192:return null;case 193:return oe?(t=Ae(),t>0?oe[1].slice(oe.position1,oe.position1+=t):oe[0].slice(oe.position0,oe.position0-=t)):be;case 194:return!1;case 195:return!0;case 196:if(t=re[ue++],void 0===t)throw new Error("Unexpected end of buffer");return Fe(t);case 197:return t=le.getUint16(ue),ue+=2,Fe(t);case 198:return t=le.getUint32(ue),ue+=4,Fe(t);case 199:return Ve(re[ue++]);case 200:return t=le.getUint16(ue),ue+=2,Ve(t);case 201:return t=le.getUint32(ue),ue+=4,Ve(t);case 202:if(t=le.getFloat32(ue),fe.useFloat32>2){let e=Je[(127&re[ue])<<1|re[ue+1]>>7];return ue+=4,(e*t+(t>0?.5:-.5)|0)/e}return ue+=4,t;case 203:return t=le.getFloat64(ue),ue+=8,t;case 204:return re[ue++];case 205:return t=le.getUint16(ue),ue+=2,t;case 206:return t=le.getUint32(ue),ue+=4,t;case 207:return"number"===fe.int64AsType?(t=4294967296*le.getUint32(ue),t+=le.getUint32(ue+4)):"string"===fe.int64AsType?t=le.getBigUint64(ue).toString():"auto"===fe.int64AsType?(t=le.getBigUint64(ue),t<=BigInt(2)<<BigInt(52)&&(t=Number(t))):t=le.getBigUint64(ue),ue+=8,t;case 208:return le.getInt8(ue++);case 209:return t=le.getInt16(ue),ue+=2,t;case 210:return t=le.getInt32(ue),ue+=4,t;case 211:return"number"===fe.int64AsType?(t=4294967296*le.getInt32(ue),t+=le.getUint32(ue+4)):"string"===fe.int64AsType?t=le.getBigInt64(ue).toString():"auto"===fe.int64AsType?(t=le.getBigInt64(ue),t>=BigInt(-2)<<BigInt(52)&&t<=BigInt(2)<<BigInt(52)&&(t=Number(t))):t=le.getBigInt64(ue),ue+=8,t;case 212:if(t=re[ue++],114==t)return Ke(63&re[ue++]);{let e=me[t];if(e)return e.read?(ue++,e.read(Ae())):e.noBuffer?(ue++,e()):e(re.subarray(ue,++ue));throw new Error("Unknown extension "+t)}case 213:return t=re[ue],114==t?(ue++,Ke(63&re[ue++],re[ue++])):Ve(2);case 214:return Ve(4);case 215:return Ve(8);case 216:return Ve(16);case 217:return t=re[ue++],ye>=ue?ne.slice(ue-he,(ue+=t)-he):Te(t);case 218:return t=le.getUint16(ue),ye>=(ue+=2)?ne.slice(ue-he,(ue+=t)-he):Ee(t);case 219:return t=le.getUint32(ue),ye>=(ue+=4)?ne.slice(ue-he,(ue+=t)-he):Ie(t);case 220:return t=le.getUint16(ue),ue+=2,ke(t);case 221:return t=le.getUint32(ue),ue+=4,ke(t);case 222:return t=le.getUint16(ue),ue+=2,Le(t);case 223:return t=le.getUint32(ue),ue+=4,Le(t);default:if(e>=224)return e-256;if(void 0===e){let e=new Error("Unexpected end of MessagePack data");throw e.incomplete=!0,e}throw new Error("Unknown MessagePack token "+e)}}}var Ce=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function je(e,t){function r(){if(r.count++>we){let a;try{a=e.read=new Function("r","return function(){return "+(fe.freezeData?"Object.freeze":"")+"({"+e.map(e=>"__proto__"===e?"__proto_:r()":Ce.test(e)?e+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"})}")(Ae)}catch{return we=1/0,r()}return e.read0=a,0===e.highByte&&(e.read=Pe(t,e.read)),a()}let a={};for(let t=0,r=e.length;t<r;t++){let r=e[t];"__proto__"===r&&(r="__proto_"),a[r]=Ae()}return fe.freezeData?Object.freeze(a):a}return r.count=0,e.read0=r,0===e.highByte?Pe(t,r):r}var Pe=(e,t)=>function(){let r=re[ue++];if(0===r)return t();let a=e<32?-(e+(r<<5)):e+(r<<5),i=ie[a]||xe()[a];if(!i)throw new Error("Record id is not defined for "+a);return i.read||(i.read=je(i,e)),i.read()};function xe(){let e=Xe(()=>(re=null,fe.getStructures()));return ie=fe._mergeStructures(e,ie)}var Me=_e,Te=_e,Ee=_e,Ie=_e;function _e(e){let t;if(e<16&&(t=ze(e)))return t;if(e>64&&X)return X.decode(re.subarray(ue,ue+=e));let r=ue+e,a=[];for(t="";ue<r;){let e=re[ue++];if(128&e)if(192==(224&e)){let t=(31&e)<<6|63&re[ue++];t<128?a.push(65533):a.push(t)}else if(224==(240&e)){let t=(31&e)<<12|(63&re[ue++])<<6|63&re[ue++];t<2048||t>=55296&&t<=57343?a.push(65533):a.push(t)}else if(240==(248&e)){let t=(7&e)<<18|(63&re[ue++])<<12|(63&re[ue++])<<6|63&re[ue++];t<65536||t>1114111?a.push(65533):(t>65535&&(t-=65536,a.push(t>>>10&1023|55296),t=56320|1023&t),a.push(t))}else a.push(65533);else a.push(e);a.length>=4096&&(t+=Re.apply(String,a),a.length=0)}return a.length>0&&(t+=Re.apply(String,a)),t}function ke(e){let t=new Array(e);for(let r=0;r<e;r++)t[r]=Ae();return fe.freezeData?Object.freeze(t):t}function Le(e){if(fe.mapsAsObjects){let t={};for(let r=0;r<e;r++){let e=He();"__proto__"===e&&(e="__proto_"),t[e]=Ae()}return t}{let t=new Map;for(let r=0;r<e;r++)t.set(Ae(),Ae());return t}}var Re=String.fromCharCode;function Be(e){let t=ue,r=new Array(e);for(let a=0;a<e;a++){let e=re[ue++];if((128&e)>0)return void(ue=t);r[a]=e}return Re.apply(String,r)}function ze(e){if(e<4){if(e<2){if(0===e)return"";{let e=re[ue++];return(128&e)>1?void(ue-=1):Re(e)}}{let t=re[ue++],r=re[ue++];if((128&t)>0||(128&r)>0)return void(ue-=2);if(e<3)return Re(t,r);let a=re[ue++];return(128&a)>0?void(ue-=3):Re(t,r,a)}}{let t=re[ue++],r=re[ue++],a=re[ue++],i=re[ue++];if((128&t)>0||(128&r)>0||(128&a)>0||(128&i)>0)return void(ue-=4);if(e<6){if(4===e)return Re(t,r,a,i);{let e=re[ue++];return(128&e)>0?void(ue-=5):Re(t,r,a,i,e)}}if(e<8){let n=re[ue++],o=re[ue++];if((128&n)>0||(128&o)>0)return void(ue-=6);if(e<7)return Re(t,r,a,i,n,o);let s=re[ue++];return(128&s)>0?void(ue-=7):Re(t,r,a,i,n,o,s)}{let n=re[ue++],o=re[ue++],s=re[ue++],l=re[ue++];if((128&n)>0||(128&o)>0||(128&s)>0||(128&l)>0)return void(ue-=8);if(e<10){if(8===e)return Re(t,r,a,i,n,o,s,l);{let e=re[ue++];return(128&e)>0?void(ue-=9):Re(t,r,a,i,n,o,s,l,e)}}if(e<12){let u=re[ue++],c=re[ue++];if((128&u)>0||(128&c)>0)return void(ue-=10);if(e<11)return Re(t,r,a,i,n,o,s,l,u,c);let d=re[ue++];return(128&d)>0?void(ue-=11):Re(t,r,a,i,n,o,s,l,u,c,d)}{let u=re[ue++],c=re[ue++],d=re[ue++],p=re[ue++];if((128&u)>0||(128&c)>0||(128&d)>0||(128&p)>0)return void(ue-=12);if(e<14){if(12===e)return Re(t,r,a,i,n,o,s,l,u,c,d,p);{let e=re[ue++];return(128&e)>0?void(ue-=13):Re(t,r,a,i,n,o,s,l,u,c,d,p,e)}}{let f=re[ue++],h=re[ue++];if((128&f)>0||(128&h)>0)return void(ue-=14);if(e<15)return Re(t,r,a,i,n,o,s,l,u,c,d,p,f,h);let y=re[ue++];return(128&y)>0?void(ue-=15):Re(t,r,a,i,n,o,s,l,u,c,d,p,f,h,y)}}}}}function Ue(){let e,t=re[ue++];if(t<192)e=t-160;else switch(t){case 217:e=re[ue++];break;case 218:e=le.getUint16(ue),ue+=2;break;case 219:e=le.getUint32(ue),ue+=4;break;default:throw new Error("Expected string")}return _e(e)}function Fe(e){return fe.copyBuffers?Uint8Array.prototype.slice.call(re,ue,ue+=e):re.subarray(ue,ue+=e)}function Ve(e){let t=re[ue++];if(me[t]){let r;return me[t](re.subarray(ue,r=ue+=e),e=>{ue=e;try{return Ae()}finally{ue=r}})}throw new Error("Unknown extension type "+t)}var Ge=new Array(4096);function He(){let e=re[ue++];if(!(e>=160&&e<192))return ue--,Ne(Ae());if(e-=160,ye>=ue)return ne.slice(ue-he,(ue+=e)-he);if(!(0==ye&&ae<180))return Me(e);let t,r=4095&(e<<5^(e>1?le.getUint16(ue):e>0?re[ue]:0)),a=Ge[r],i=ue,n=ue+e-3,o=0;if(a&&a.bytes==e){for(;i<n;){if(t=le.getUint32(i),t!=a[o++]){i=1879048192;break}i+=4}for(n+=3;i<n;)if(t=re[i++],t!=a[o++]){i=1879048192;break}if(i===n)return ue=i,a.string;n-=3,i=ue}for(a=[],Ge[r]=a,a.bytes=e;i<n;)t=le.getUint32(i),a.push(t),i+=4;for(n+=3;i<n;)t=re[i++],a.push(t);let s=e<16?ze(e):Be(e);return a.string=null!=s?s:Me(e)}function Ne(e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e||"bigint"==typeof e)return e.toString();if(null==e)return e+"";if(fe.allowArraysInMapKeys&&Array.isArray(e)&&e.flat().every(e=>["string","number","boolean","bigint"].includes(typeof e)))return e.flat().toString();throw new Error("Invalid property type for record: "+typeof e)}var Ke=(e,t)=>{let r=Ae().map(Ne),a=e;void 0!==t&&(e=e<32?-((t<<5)+e):(t<<5)+e,r.highByte=t);let i=ie[e];return i&&(i.isShared||ve)&&((ie.restoreStructures||(ie.restoreStructures=[]))[e]=i),ie[e]=r,r.read=je(r,a),(r.read0||r.read)()};me[0]=()=>{},me[0].noBuffer=!0,me[66]=e=>{let t=e.byteLength%8||8,r=BigInt(128&e[0]?e[0]-256:e[0]);for(let a=1;a<t;a++)r<<=BigInt(8),r+=BigInt(e[a]);if(e.byteLength!==t){let a=new DataView(e.buffer,e.byteOffset,e.byteLength),i=(e,t)=>{let r=t-e;if(r<=40){let r=a.getBigUint64(e);for(let i=e+8;i<t;i+=8)r<<=BigInt(64),r|=a.getBigUint64(i);return r}let n=e+(r>>4<<3),o=i(e,n),s=i(n,t);return o<<BigInt(8*(t-n))|s};r=r<<BigInt(8*(a.byteLength-t))|i(t,a.byteLength)}return r};var We={Error:Error,EvalError:EvalError,RangeError:RangeError,ReferenceError:ReferenceError,SyntaxError:SyntaxError,TypeError:TypeError,URIError:URIError,AggregateError:"function"==typeof AggregateError?AggregateError:null};me[101]=()=>{let e=Ae();if(!We[e[0]]){let t=Error(e[1],{cause:e[2]});return t.name=e[0],t}return We[e[0]](e[1],{cause:e[2]})},me[105]=e=>{if(!1===fe.structuredClone)throw new Error("Structured clone extension is disabled");let t=le.getUint32(ue-4);se||(se=new Map);let r,a=re[ue];r=a>=144&&a<160||220==a||221==a?[]:a>=128&&a<144||222==a||223==a?new Map:(a>=199&&a<=201||a>=212&&a<=216)&&115===re[ue+1]?new Set:{};let i={target:r};se.set(t,i);let n=Ae();if(!i.used)return i.target=n;if(Object.assign(r,n),r instanceof Map)for(let[e,t]of n.entries())r.set(e,t);if(r instanceof Set)for(let e of Array.from(n))r.add(e);return r},me[112]=e=>{if(!1===fe.structuredClone)throw new Error("Structured clone extension is disabled");let t=le.getUint32(ue-4),r=se.get(t);return r.used=!0,r.target},me[115]=()=>new Set(Ae());var qe=["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64","BigInt64","BigUint64"].map(e=>e+"Array"),Ze="object"==typeof globalThis?globalThis:window;me[116]=e=>{let t=e[0],r=Uint8Array.prototype.slice.call(e,1).buffer,a=qe[t];if(!a){if(16===t)return r;if(17===t)return new DataView(r);throw new Error("Could not find typed array for code "+t)}return new Ze[a](r)},me[120]=()=>{let e=Ae();return new RegExp(e[0],e[1])};var Ye=[];function Xe(e){let t=ae,r=ue,a=pe,i=he,n=ye,o=ne,s=de,l=se,u=oe,c=new Uint8Array(re.slice(0,ae)),d=ie,p=ie.slice(0,ie.length),f=fe,h=ve,y=e();return ae=t,ue=r,pe=a,he=i,ye=n,ne=o,de=s,se=l,oe=u,re=c,ve=h,(ie=d).splice(0,ie.length,...p),fe=f,le=new DataView(re.buffer,re.byteOffset,re.byteLength),y}function $e(){re=null,se=null,ie=null}function Qe(e){e.unpack?me[e.type]=e.unpack:me[e.type]=e}me[98]=e=>{let t=(e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3],r=ue;return ue+=t-e.length,oe=Ye,(oe=[Ue(),Ue()]).position0=0,oe.position1=0,oe.postBundlePosition=ue,ue=r,Ae()},me[255]=e=>4==e.length?new Date(1e3*(16777216*e[0]+(e[1]<<16)+(e[2]<<8)+e[3])):8==e.length?new Date(((e[0]<<22)+(e[1]<<14)+(e[2]<<6)+(e[3]>>2))/1e6+1e3*(4294967296*(3&e[3])+16777216*e[4]+(e[5]<<16)+(e[6]<<8)+e[7])):12==e.length?new Date(((e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3])/1e6+1e3*((128&e[4]?-281474976710656:0)+1099511627776*e[6]+4294967296*e[7]+16777216*e[8]+(e[9]<<16)+(e[10]<<8)+e[11])):new Date("invalid");var Je=new Array(147);for(let e=0;e<256;e++)Je[e]=+("1e"+Math.floor(45.15-.30103*e));var et=new De({useRecords:!1}),tt=(et.unpack,et.unpackMultiple,et.unpack,new Float32Array(1)),rt=(new Uint8Array(tt.buffer,0,4),[{Class:f.prototype.constructor,type:1,write:e=>({...e}),read:e=>(Object.setPrototypeOf(e,f.prototype),e)},{Class:D.prototype.constructor,type:2,write:e=>[...e],read:e=>(Object.setPrototypeOf(e,D.prototype),e)},{Class:v.prototype.constructor,type:3,write:e=>[...e],read:e=>(Object.setPrototypeOf(e,v.prototype),e)},{Class:d.prototype.constructor,type:4,write:e=>e.id,read:e=>new d(e)},{Class:p.prototype.constructor,type:5,write:e=>e.data,read:e=>new p(e)},{Class:_.prototype.constructor,type:6,write:e=>({...e}),read:e=>(Object.setPrototypeOf(e,_.prototype),e)}]);for(let e of rt)Qe(e);var at,it=new De({structuredClone:!0});(at||(at={})).deserialize=function(e){return it.unpack(e)};var nt,ot,st,lt=e=>()=>{throw new Error(e+" is not available in the runtime build (decode-only CollabSerialize)")},ut={deserialize:at.deserialize,serialize:lt("CollabSerialize.serialize"),checksum:lt("CollabSerialize.checksum")};function ct(e){let t=typeof e;return null!==e&&("object"===t||"function"===t)}(ot=nt||(nt={})).all=["PerspectiveCamera","OrthographicCamera"],ot.is=function(e){return ot.all.includes(e)},(e=>{e.DefaultUp=[0,1,0],e.DefaultTargetOffset=1e3,e.MinTargetOffset=.001,e.sanitizeTargetOffset=function(t){return void 0===t||!Number.isFinite(t)||t<e.MinTargetOffset?e.DefaultTargetOffset:t},e.DefaultAzimuth=-24,e.DefaultElevation=15;let t=e.DefaultAzimuth*Math.PI/180,r=e.DefaultElevation*Math.PI/180,a=180/Math.PI;e.DefaultPosition=[e.DefaultTargetOffset*Math.sin(t)*Math.cos(r),e.DefaultTargetOffset*Math.sin(r),e.DefaultTargetOffset*Math.cos(t)*Math.cos(r)],e.DefaultRotation=[Math.atan2(-Math.sin(r),Math.cos(t)*Math.cos(r))*a,Math.asin(Math.sin(t)*Math.cos(r))*a,Math.atan2(Math.sin(t)*Math.sin(r),Math.cos(t))*a],e.defaultData={far:1e5,type:"PerspectiveCamera",perspective:{near:70,fov:45,zoom:1},orthographic:{near:-1e5,zoom:1},up:e.DefaultUp,isUpVectorFlipped:!1,targetOffset:e.DefaultTargetOffset},e.getZoom=function(e){return"PerspectiveCamera"===e.type?e.perspective?.zoom??1:e.orthographic?.zoom??1}})(st||(st={}));var dt,pt,ft,ht,yt,mt,gt,bt,vt,wt,Dt,St,Ot="personal camera",At="a218fcc3-276b-49b9-b485-49037fd14f5f",Ct=5526619,jt=(e=>(e.x="x",e.y="y",e.z="z",e))(jt||{});(e=>{function t(e,t){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function r(e,r){return Math.sqrt(t(e,r))}function a(t,r,a){let i=e.sub(r,t),n=e.sub(a,t),o=e.dot(i,n)/e.dot(i,i),s=e.scalarMultiply(i,o);return e.add(t,s)}e.isEqual=function(e,t){return e[0]===t[0]&&e[1]===t[1]},e.lerp=function(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]},e.add=function(e,t){return[e[0]+t[0],e[1]+t[1]]},e.sub=function(e,t){return[e[0]-t[0],e[1]-t[1]]},e.multiply=function(e,t){return[e[0]*t[0],e[1]*t[1]]},e.divide=function(e,t){return[e[0]/t[0],e[1]/t[1]]},e.distanceSquared=t,e.distance=r,e.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},e.scalarMultiply=function(e,t){return[e[0]*t,e[1]*t]},e.projectionOnto=a,e.projectionOntoDistance=function(e,t,i){return r(e,a(e,t,i))},e.center=function(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}})(dt||(dt={})),(ft=pt||(pt={})).isEqual=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},ft.add=function(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]},ft.sub=function(e,t){return[e[0]-t[0],e[1]-t[1],e[2]-t[2]]},ft.div=function(e,t){return[e[0]/t[0],e[1]/t[1],e[2]/t[2]]},ft.mul=function(e,t){return[e[0]*t[0],e[1]*t[1],e[2]*t[2]]},ft.dist=function(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])},ft.lerp=function(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]},(e=>{e.isEqual=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},e.lerp=function(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,e[3]+(t[3]-e[3])*r]}})(ht||(ht={})),(e=>{let t=180/Math.PI,r=Math.PI/180;function a(e){return"number"==typeof e?e*t:e}function i(e){return"number"==typeof e?e*r:e}e.radToDeg=function(e){return[a(e[0]),a(e[1]),a(e[2])]},e.degToRad=function(e){return[i(e[0]),i(e[1]),i(e[2])]}})(yt||(yt={})),(gt=mt||(mt={})).identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],gt.isEqual=function(e,t){for(let r=0;r<16;r++)if(e[r]!==t[r])return!1;return!0},gt.simplify=function(e){return e??gt.identity},gt.applyMatrix4=function(e,t){let r=t.slice(0);for(let a=0,i=t.length;a<i;a+=3){let i=e[3]*t[a]+e[7]*t[a+1]+e[11]*t[a+2]+e[15];r[a]=(e[0]*t[a]+e[4]*t[a+1]+e[8]*t[a+2]+e[12])/i,r[a+1]=(e[1]*t[a]+e[5]*t[a+1]+e[9]*t[a+2]+e[13])/i,r[a+2]=(e[2]*t[a]+e[6]*t[a+1]+e[10]*t[a+2]+e[14])/i}return r},(vt=bt||(bt={})).isRGB=function(e){return"object"==typeof e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},vt.white={r:1,g:1,b:1},vt.red={r:1,g:0,b:0},vt.black={r:0,g:0,b:0},vt.toRgb255a1=function(e){return{r:Math.round(255*e.r),g:Math.round(255*e.g),b:Math.round(255*e.b),a:1}},vt.clone=function(e){return{r:e.r,g:e.g,b:e.b}},vt.fromHex=function(e){return{r:((e=Math.floor(e))>>16&255)/255,g:(e>>8&255)/255,b:(255&e)/255}},vt.toHex=function(e){return 65536*Math.round(255*e.r)+256*Math.round(255*e.g)+Math.round(255*e.b)},vt.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b},vt.equalsFixed=function(e,t){return e.r.toFixed(2)===t.r.toFixed(2)&&e.g.toFixed(2)===t.g.toFixed(2)&&e.b.toFixed(2)===t.b.toFixed(2)},vt.lerp=function(e,t,r){return{r:e.r+(t.r-e.r)*r,g:e.g+(t.g-e.g)*r,b:e.b+(t.b-e.b)*r}},vt.is=function(e){return!!ct(e)&&"r"in e&&"g"in e&&"b"in e&&!("a"in e)},(Dt=wt||(wt={})).white={...bt.white,a:1},Dt.is=function(e){return!!ct(e)&&"r"in e&&"g"in e&&"b"in e&&"a"in e},Dt.transparent={...bt.white,a:0},Dt.from0to1=function(e){return{r:e[0],g:e[1],b:e[2],a:e[3]}},Dt.fromHexAndA=function(e,t){return{...bt.fromHex(e),a:t}},Dt.toRgb255a1=function(e){return{r:Math.round(255*e.r),g:Math.round(255*e.g),b:Math.round(255*e.b),a:e.a}},Dt.equals=function(e,t){return bt.equals(e,t)&&e.a===t.a},Dt.equalsFixed=function(e,t){return bt.equalsFixed(e,t)&&e.a.toFixed(2)===t.a.toFixed(2)},Dt.lerp=function(e,t,r){return{r:e.r+(t.r-e.r)*r,g:e.g+(t.g-e.g)*r,b:e.b+(t.b-e.b)*r,a:e.a+(t.a-e.a)*r}},Dt.toStyle=function({r:e,g:t,b:r,a:a}=Dt.white){return`rgba(${255*e}, ${255*t}, ${255*r}, ${a})`},(St||(St={})).identity={position:[0,0,0],rotation:[0,0,0],scale:[1,1,1],pivot:[0,0,0],pivotRotation:[0,0,0]};var Pt,xt,Mt,Tt,Et,It,_t,kt,Lt,Rt,Bt=((xt=Bt||{})[xt.LINEAR=0]="LINEAR",xt[xt.EASE=1]="EASE",xt[xt.EASE_IN=2]="EASE_IN",xt[xt.EASE_OUT=3]="EASE_OUT",xt[xt.EASE_IN_OUT=4]="EASE_IN_OUT",xt[xt.CUBIC=5]="CUBIC",xt[xt.SPRING=6]="SPRING",xt[xt.ARC=7]="ARC",xt[xt.NONE=8]="NONE",xt);function zt(e){return"string"==typeof e&&36===e.length&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)}(Pt||(Pt={})).defaultData={mass:1,stiffness:80,damping:10,velocity:0},(Mt||(Mt={})).defaultData={control1:[.5,0],control2:[.5,1]},(Et=Tt||(Tt={})).linear=[0,0,1,1],Et.ease=[.25,.1,.25,1],Et.easeIn=[.42,0,1,1],Et.easeOut=[0,0,.58,1],Et.easeInOut=[.42,0,.58,1],(e=>{e.all=["PointLight","SpotLight","DirectionalLight","HemisphereLight"],e.is=function(t){return e.all.includes(t)}})(It||(It={})),(_t||(_t={})).defaultData=function(e){return function(e){if("PointLight"===e)return{type:e,color:wt.white,intensity:1,distance:2e3,decay:1,shadows:!0,shadowResolution:1024,shadowRadius:1,penumbraSize:.5,depth:1e5};if("SpotLight"===e)return{type:e,color:wt.white,intensity:1,distance:2e3,decay:1,shadows:!0,penumbra:0,angle:30/180*Math.PI,depth:1e5,penumbraSize:.5,shadowResolution:1024,shadowRadius:1};if("DirectionalLight"===e)return{type:e,color:wt.white,intensity:1,shadows:!0,size:2e3,depth:1e5,penumbraSize:.5,shadowResolution:1024,shadowRadius:1};throw new Error("not implemented")}(e)},(e=>{e.defaultShapeData={type:"PlaneEmitterShape",size:[100,100,100]},e.defaultCollisionData={colliderEntityId:null,collisionBounce:.75},e.defaultData={renderMaterial:{type:"particleMaterial",color:{r:1,g:.2,b:.545,a:1},color2:{r:.945,g:.714,b:.184,a:1},coloring:"gradient",ease:"linearFadeOut",easeSize:"linearFadeOut",transparent:!0,size:[40,40],texture:"pt_default_particle",spriteRotation:[0,0]},birthRatePerSec:50,gravity:1,noiseStrength:0,noiseScale:0,noiseSeed:1,noiseType:"curl",randomRotation:0,randomScale:.2,randomMass:.5,rootObjectType:"instancedMesh",life:1,direction:[0,0,0],directionMode:"axis",speed:10,shape:e.defaultShapeData,autoPlay:!0,emitTimeDelay:0,emitTimeCycle:"infinity",emitTimeDuration:1,...e.defaultCollisionData}})(kt||(kt={})),(e=>{e.defaultData={gravity:5,damping:.03,localStiffness:.67,globalStiffness:.5,globalRange:.15,stiffnessFalloff:.1,windStrength:3,vspCoefficient:.01,elasticity:.15,hairLength:.75,tipSeparation:.8,kink:0,kinkFrequency:0,clumpStrength:0,clumpSize:32,clumpTipScale:1.5,spreadRadius:.03,guideStrands:8192,headShape:"sphere",baseObjectId:null,hairColorSource:"custom",hairShadeRoot:.6,hairShadeTip:1.15,hairRootColor:{r:.29,g:.102,b:.039,a:1},hairMidColor:{r:.8,g:.267,b:.133,a:1},hairTipColor:{r:.545,g:.18,b:.18,a:1},headColor:{r:.325,g:.137,b:.114,a:1},noiseEnabled:!1,noiseColorA:{r:.545,g:.184,b:.788,a:1},noiseColorB:{r:.914,g:.188,b:.914,a:1},noiseColorC:{r:.2,g:.4,b:1,a:1},noiseColorD:{r:.2,g:1,b:.6,a:1},noiseScale:1.8,noiseMixHair:.75,noiseMixHead:.8,castShadow:!0,receiveShadow:!0,hairWidth:1.75,specularPower:40,specularIntensity:.4,diffuseIntensity:.6,ambientIntensity:.25,opacity:1,tipFade:.4,autoPlay:!0},e.regenProps=["hairLength","spreadRadius","guideStrands","headShape","baseObjectId"]})(Lt||(Lt={})),(Rt||(Rt={})).defaultData={enabled:"visibility",fusedBody:!0,rigidBody:"positioned",density:1,pointMass:0,gravityScale:1,friction:.5,damping:0,restitution:.2,colliderType:"convex",enabledRotation:[!0,!0,!0],enabledTranslation:[!0,!0,!0]};var Ut,Ft,Vt,Gt,Ht,Nt,Kt,Wt,qt,Zt=(e=>(e[e.Front=0]="Front",e[e.Back=1]="Back",e[e.Double=2]="Double",e))(Zt||{});(e=>{e.defaultData={castShadow:!0,receiveShadow:!0},e.equals=function(e,t){return e.castShadow===t.castShadow&&e.receiveShadow===t.receiveShadow}})(Ut||(Ut={})),(e=>{e.defaultData={flatShading:!1,wireframe:!1,side:0},e.equals=function(e,t){return e.flatShading===t.flatShading&&e.side===t.side&&e.wireframe===t.wireframe&&(e.shadowCatcher??!1)===(t.shadowCatcher??!1)}})(Ft||(Ft={})),(Vt||(Vt={})).defaultData={...Ft.defaultData,...Ut.defaultData},(Gt||(Gt={})).getMaterialData=function(e,t){let r=[];if("material"in e){let a="string"==typeof e.material?t.materials[e.material]??t.lib.materials[e.material]?.asset:e.material;a&&r.push(a)}else if("materials"in e)for(let a of e.materials){let e="string"==typeof a?t.materials[a]??t.lib.materials[a]?.asset:a;e&&r.push(e)}return r},(e=>{e.defaultVideo={data:"",thumb:"/_assets/_videos/catThumb.png",type:"video",name:"Cat video"},e.maxSize=3e7})(Ht||(Ht={})),(Nt||(Nt={})).is=function(e){return"texture"===e||"video"===e||"color"===e||"depth"===e||"normal"===e||"gradient"===e||"noise"===e||"fresnel"===e||"cavity"===e||"dust"===e||"rainbow"===e||"toon"===e||"outline"===e||"particle"===e||"transmission"===e||"reflection"===e||"matcap"===e||"displace"===e||"pattern"===e||"vertexColor"===e||"light"===e},(Kt||(Kt={})).is=function(e){return"luminance"===e||"r"===e||"g"===e||"b"===e||"a"===e},(Wt||(Wt={})).is=function(e){return"object"==typeof e&&null!==e&&null!=e.image},(qt||(qt={})).is=function(e){return"phong"===e||"toon"===e||"lambert"===e||"physical"===e};var Yt,Xt,$t,Qt,Jt=(e=>(e[e.Linear=0]="Linear",e[e.Radial=1]="Radial",e[e.Polar=2]="Polar",e))(Jt||{}),er=(e=>(e[e.RepeatWrapping=1e3]="RepeatWrapping",e[e.ClampToEdgeWrapping=1001]="ClampToEdgeWrapping",e[e.MirroredRepeatWrapping=1002]="MirroredRepeatWrapping",e))(er||{}),tr=(e=>(e[e.NearestFilter=1003]="NearestFilter",e[e.LinearFilter=1006]="LinearFilter",e[e.LinearMipmapLinearFilter=1008]="LinearMipmapLinearFilter",e))(tr||{}),rr=(e=>(e[e.UV=0]="UV",e[e.Planar=1]="Planar",e[e.Spherical=2]="Spherical",e[e.Cylindrical=3]="Cylindrical",e[e.Triplanar=4]="Triplanar",e))(rr||{}),ar=(($t=ar||{})[$t.Simplex=0]="Simplex",$t[$t.SimplexFractal=1]="SimplexFractal",$t[$t.Ashima=2]="Ashima",$t[$t.Fbm=3]="Fbm",$t[$t.Perlin=4]="Perlin",$t[$t.Voronoi=5]="Voronoi",$t),ir=((Xt=ir||{})[Xt.F1=0]="F1",Xt[Xt.F2=1]="F2",Xt[Xt.F2MinusF1=2]="F2MinusF1",Xt[Xt.SmoothBlend=3]="SmoothBlend",Xt[Xt.Edge=4]="Edge",Xt[Xt.Power=5]="Power",Xt[Xt.Lines=6]="Lines",Xt[Xt.Cells=7]="Cells",Xt),nr=(e=>(e[e.Lights=0]="Lights",e[e.Static=1]="Static",e[e.Camera=2]="Camera",e))(nr||{}),or=(e=>(e[e.Circle=0]="Circle",e[e.Ring=1]="Ring",e[e.Polygon=2]="Polygon",e[e.Cross=3]="Cross",e[e.Diamond=4]="Diamond",e[e.Checkerboard=5]="Checkerboard",e[e.Line=6]="Line",e[e.Wave=7]="Wave",e))(or||{}),sr=["mode","gradientType","noiseType","tracingMode","mirror","displacementType","projection","cnormal","crop","axis","side","roughnessMapChannel","metalnessMap","metalnessMapChannel","normalMap","aoMap","aoMapChannel","emissiveMap","style"],lr=["wrapping","image","video","name","minFilter","magFilter"];(e=>{e.patch=function(e,t){let{texture:r,...a}=t;if(Object.assign(e,a),r){let t=e.texture;t&&Object.assign(t,r)}},e.defaultColorLayer=function(t){return{...e.defaultData("color"),color:t}},e.defaultData=function(e,t){return"light"===e&&t?function(e){let t={mode:0,isMask:!1,visible:!0,bumpMap:void 0,bumpMapIntensity:5,roughnessMap:void 0,alphaOverride:1};switch(e){case"phong":return{...t,category:"phong",specular:{r:.2,g:.2,b:.2},shininess:5,type:"light",visible:!0,mode:0,occlusion:!0,alpha:.6};case"toon":return{...t,category:"toon",specular:{r:.2,g:.2,b:.2},shininess:10,type:"light",alpha:1};case"lambert":return{...t,category:"lambert",emissive:{r:0,g:0,b:0},type:"light",alpha:1,visible:!0,mode:0,occlusion:!0};case"physical":return{...t,category:"physical",roughness:.6,metalness:.2,reflectivity:.2,type:"light",alpha:.6,visible:!0,mode:0,occlusion:!0}}}(t):function(e){let t={alpha:1,mode:0,isMask:!1,visible:!0};switch(e){case"texture":return{...t,type:"texture",size:[128,128],blending:0,axis:"x",side:2,projection:0,texture:{image:"image_0",wrapping:1e3,repeat:[1,1],offset:[0,0],rotation:0,minFilter:1008,magFilter:1006},crop:!1};case"video":return{...t,type:"video",size:[128,128],blending:0,axis:"x",side:2,projection:0,texture:{video:Ht.defaultVideo,wrapping:1001,repeat:[1,1],offset:[0,0],rotation:0,minFilter:1008,magFilter:1006},crop:!1};case"color":return{...t,type:"color",color:bt.fromHex(Ct)};case"vertexColor":return{...t,type:"vertexColor"};case"depth":return{...t,type:"depth",gradientType:1,smooth:!1,isVector:!0,isWorldSpace:!1,origin:[0,0,0],direction:[1,0,0],colors:[[1,1,1,1],[0,0,0,1]],steps:[0,1],near:50,far:200};case"normal":return{...t,type:"normal",cnormal:[1,1,1]};case"gradient":return{...t,type:"gradient",gradientType:0,smooth:!1,colors:[[0,0,0,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1]],steps:[0,1,1,1,1,1,1,1,1,1],num:2,angle:0,offset:[0,0],morph:[0,0]};case"noise":return{...t,type:"noise",size:[100,100,100],noiseType:0,scale:1,move:1,colorA:{...bt.fromHex(6710886),a:1},colorB:{...bt.fromHex(6710886),a:1},colorC:{...bt.fromHex(16777215),a:1},colorD:{...bt.fromHex(16777215),a:1},distortion:[1,1],fA:[1.7,9.2],fB:[8.3,2.8],voronoiStyle:0,highCut:1,lowCut:0,smoothness:.3,seed:0,quality:1};case"cavity":return{...t,type:"cavity",mode:3,ridge:1,valley:1};case"fresnel":return{...t,type:"fresnel",color:wt.fromHexAndA(16777215,1),bias:.1,scale:1,intensity:2,factor:1};case"dust":return{...t,type:"dust",color:wt.fromHexAndA(10323813,1),coverage:.2,softness:.2,noiseStrength:.2,noiseScale:1};case"rainbow":return{...t,type:"rainbow",filmThickness:30,movement:0,wavelengths:[0,0,0],noiseStrength:0,noiseScale:1,offset:[0,0,0]};case"toon":return{...t,type:"toon",positioning:2,colors:[[0,0,0,1],[.5,.5,.5,1],[.5,.5,.5,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1],[1,1,1,1]],steps:[0,.475,.525,1,1,1,1,1,1,1],num:4,source:[0,1e3,0],isWorldSpace:!0,noiseStrength:0,noiseScale:1,shadowColor:wt.fromHexAndA(0,0),offset:[0,0,0]};case"outline":return{...t,type:"outline",outlineColor:wt.fromHexAndA(0,1),contourColor:wt.fromHexAndA(0,1),outlineWidth:2,contourWidth:5,outlineThreshold:.4,contourThreshold:0,outlineSmoothing:0,contourFrequency:10,contourDirection:[0,1,0],positionalLines:!1,compensation:!0};case"matcap":return{...t,type:"matcap",texture:{image:"matcap_0",wrapping:1001,repeat:[1,1],offset:[0,0],rotation:0,minFilter:1008,magFilter:1006}};case"transmission":return{...t,type:"transmission",thickness:10,ior:1.5,roughness:1};case"reflection":return{...t,type:"reflection",blur:0,thickness:.001,steps:60,stepSize:.005,tracingMode:1,mirror:0};case"displace":return{visible:!0,type:"displace",displacementType:"noise",noiseType:0,scale:10,movement:1,offset:[0,0,0],intensity:8,voronoiStyle:0,smoothness:.3,seed:0,highCut:1,lowCut:0,quality:1};case"pattern":return{...t,type:"pattern",style:0,projection:0,axis:"y",blending:0,offset:[0,0],colorA:{...bt.fromHex(0),a:1},colorB:{...bt.fromHex(16777215),a:1},frequency:[10,10],size:.5,variation:0,smoothness:.5,zigzag:0,rotation:0,vertical:[0,1],horizontal:[0,1],sides:6}}}(e)}})(Yt||(Yt={})),(e=>{function t(e,t="layer1",r="layer2",a=bt.fromHex(16777215)){let i=new D;return i.push({fi:0,data:Yt.defaultData("light",e),id:t}),i.push({fi:1,data:Yt.defaultData("color"),id:r}),{layers:i}}e.isMergable=function(e){return!e.layers.some(e=>"texture"===e.data.type&&0!==e.data.projection||"depth"===e.data.type&&!e.data.isWorldSpace||"noise"===e.data.type||"dust"===e.data.type&&0!==e.data.noiseStrength||"displace"===e.data.type)},e.getHash=function(e){let t="";return e.layers.forEach(e=>{Object.entries(e.data).forEach(([e,r])=>{t+=`${e}${r}`,Array.isArray(r)?r.forEach(e=>t+=`${e}`):"object"==typeof r?Object.values(r).forEach(e=>{t+="number"==typeof e?`${e.toFixed(4)}`:`${e}`}):t+=`${r}`})}),t},e.defaultEmptyData=function(){return{layers:new D}},e.defaultData=function(e="layer1",r="layer2"){return t("physical",e,r)},e.withName=function(e,t){return{...e,name:t}},e.defaultTwoLayerData=t,e.defaultColorMaterial=function(e,t,r="layer1",a="layer2"){let i=new D;return i.push({fi:0,data:Yt.defaultData("light",t),id:r}),i.push({fi:1,data:Yt.defaultColorLayer(e),id:a}),{layers:i}},e.defaultUIObjectMaterial=function(e){let t=Yt.defaultData("texture");e&&Object.assign(t.texture,{image:e});let r=new D;return r.push({fi:0,data:t,id:"layer1"}),r.push({fi:1,data:{...Yt.defaultData("transmission"),alpha:1},id:"layer2"}),r.push({fi:2,data:{...Yt.defaultData("light","lambert"),alpha:0},id:"layer3"}),{layers:r}},e.defaultTwoLayerTextureData=function(e,t="physical",r="layer1",a="layer2"){let i=Yt.defaultData("texture");Object.assign(i.texture,{image:e});let n=new D;return n.push({fi:0,data:i,id:r}),n.push({fi:1,data:Yt.defaultData("light",t),id:a}),{layers:n}},e.defaultTwoLayerVideoTextureData=function(e,t="physical",r="layer1",a="layer2"){let i=Yt.defaultData("video");Object.assign(i.texture,{video:e});let n=new D;return n.push({fi:0,data:i,id:r}),n.push({fi:1,data:Yt.defaultData("light",t),id:a}),{layers:n}}})(Qt||(Qt={}));var ur,cr,dr="Roboto_regular",pr="https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf";(ur||(ur={})).defaultData=function(){return{points:new D,roundness:0,shapeHoles:[],isClosed:!1}},(cr||(cr={})).defaultData=function(){return{points:new D,lastInsertionPlane:null,subdivisions:12,isClosed:!1,subdivisionMode:"parametric"}};var fr,hr={type:"Ellipse",width:50,height:50,spikes:16,angle:360,innerRadius:0};(fr||(fr={})).merge=function(e,t){let r={...e};return wr.forEach(a=>{Object.assign(r,{[a]:t[a]??e[a]})}),r};var yr,mr,gr,br,vr={shape:hr,depth:1,offset:0,bevel:50,bevelSides:6,angle:0,twist:0,startScale:1,endScale:1,capType:"flat"},wr=["depth","offset","angle","twist","startScale","endScale"];(e=>{e.is2DParametricMesh=function(e){return"PolygonGeometry"===e||"RectangleGeometry"===e||"StarGeometry"===e||"TriangleGeometry"===e||"EllipseGeometry"===e||"UIGeometry"===e},e.isParametricMesh=function(e){return"PolygonGeometry"===e||"RectangleGeometry"===e||"StarGeometry"===e||"TriangleGeometry"===e||"EllipseGeometry"===e||"PathGeometry"===e||"VectorGeometry"===e||"ConeGeometry"===e||"CubeGeometry"===e||"CylinderGeometry"===e||"DodecahedronGeometry"===e||"HelixGeometry"===e||"IcosahedronGeometry"===e||"LatheGeometry"===e||"PyramidGeometry"===e||"SphereGeometry"===e||"PlaneGeometry"===e||"BackdropGeometry"===e||"TorusGeometry"===e||"TorusKnotGeometry"===e||"BooleanGeometry"===e||"TextGeometry"===e||"InputGeometry"===e||"DecalGeometry"===e},e.isSwappableGeometry=function(e){return"PolygonGeometry"===e||"RectangleGeometry"===e||"StarGeometry"===e||"TriangleGeometry"===e||"EllipseGeometry"===e||"PathGeometry"===e||"VectorGeometry"===e||"ConeGeometry"===e||"CubeGeometry"===e||"CylinderGeometry"===e||"DodecahedronGeometry"===e||"HelixGeometry"===e||"IcosahedronGeometry"===e||"LatheGeometry"===e||"PyramidGeometry"===e||"SphereGeometry"===e||"PlaneGeometry"===e||"BackdropGeometry"===e||"TorusGeometry"===e||"TorusKnotGeometry"===e||"TextGeometry"===e||"SubdivGeometry"===e||"NonParametricGeometry"===e}})(yr||(yr={})),(mr||(mr={})).merge=function(e,t){let r={...e};return Object.assign(r,t),"PathGeometry"===r.type&&"extrusion"in t&&t.extrusion&&(r.extrusion={...e.extrusion},Object.assign(r.extrusion,fr.merge(r.extrusion,t.extrusion))),r},(br=gr||(gr={})).defaultData=function(e){if("RectangleGeometry"===e)return{width:320,height:320,type:e,cornerRadius:[0,0,0,0],cornerType:0,depth:0,extrudeBevelSize:0,extrudeBevelSegments:1};if("UIGeometry"===e)return{type:e,frame:"",cornerRadius:[0,0,0,0],cornerType:0,width:1,height:1};if("PathGeometry"===e)return{type:e,width:1,height:1,depth:1,path:cr.defaultData(),extrusion:vr};if("VectorGeometry"===e)return{width:1,height:1,type:e,subdivisions:12,shape:ur.defaultData(),depth:0,extrudeBevelSize:0,extrudeBevelSegments:1};if("BooleanGeometry"===e)return{type:e,operation:2,width:0,height:0,depth:0,phongAngle:35};if("ShapeBlendGeometry"===e)return{type:e,width:0,height:0,depth:0,resolutionLevel:6,blendRange:100,useChildrenColors:!1};if("DecalGeometry"===e)return{type:e,width:200,height:200,depth:200,offset:1};if("TextGeometry"===e)return{type:e,width:100,height:100,depth:0,horizontalAlign:1,verticalAlign:1,fontSize:16,lineHeight:1.2,letterSpacing:0,text:{textValue:""},textTransform:1,font:"Roboto_regular",editable:!1,extrudeBevelSize:0,extrudeBevelSegments:1};if("InputGeometry"===e)return{...br.defaultData("TextGeometry"),type:e,editable:!0};if("SphereGeometry"===e)return{type:"SphereGeometry",width:100,height:100,depth:100,widthSegments:64,heightSegments:64,phiStart:0,phiLength:2*Math.PI,thetaStart:0,thetaLength:180};throw new Error("not implemented")};var Dr,Sr,Or=["width","height","depth"];(e=>{e.defaultData=function(e,t=.1){return{disabled:!1,type:"linear",hideBase:!1,instanced:!1,count:3,radial:{radius:2*Math.max("number"==typeof e[0]?e[0]:1,"number"==typeof e[1]?e[1]:1),start:0,end:360,alignment:!1,axis:"y",scale:[1,1,1],rotation:[0,0,0],position:[0,0,0],pivot:[0,0,0],pivotRotation:[0,0,0]},toObject:{object:"",spreadType:"random",scale:[0,0,0],rotation:[0,0,0],position:[0,0,0],axis:"x",seed:0,count:99,align:"normal",pivot:[0,0,0],pivotRotation:[0,0,0]},linear:{scale:[1,1,1],rotation:[0,0,0],position:[("number"==typeof e[0]?e[0]+e[0]:1)*t,0,0],pivot:[0,0,0],pivotRotation:[0,0,0]},grid:{count:[2,2,2],size:e.map(e=>("number"==typeof e?e:1)*(1+t)),useCenter:!0},randomness:!1,randomnessObject:{strength:100,scale:[0,0,0],rotation:[0,0,0],position:[0,0,0],movement:1,seed:0,freqScale:10,noiseType:"perlin"}}},e.merge=function(e,t){let r={...e};if(zr.forEach(a=>{Object.assign(r,{[a]:t[a]??e[a]})}),r.radial={...e.radial},t.radial){let a=e.radial,i=t.radial;Ur.forEach(e=>{Object.assign(r.radial,{[e]:i[e]??a[e]})})}if(r.linear={...e.linear},t.linear){let a=e.linear,i=t.linear;Fr.forEach(e=>{Object.assign(r.linear,{[e]:i[e]??a[e]})})}if(r.grid={...e.grid},t.grid){let a=e.grid,i=t.grid;Vr.forEach(e=>{Object.assign(r.grid,{[e]:i[e]??a[e]})})}if(r.toObject={...e.toObject},t.toObject){let a=e.toObject,i=t.toObject;Gr.forEach(e=>{Object.assign(r.toObject,{[e]:i[e]??a[e]})})}if(r.randomnessObject={...e.randomnessObject},t.randomnessObject){let a=e.randomnessObject,i=t.randomnessObject;Hr.forEach(e=>{Object.assign(r.randomnessObject,{[e]:i[e]??a[e]})})}return r},e.isPartial=function(e){return!(!e.randomnessObject&&!e.toObject)}})(Dr||(Dr={})),(e=>{e.defaultData={radial:{},linear:{},grid:{},toObject:{},randomnessObject:{}};let t=["radial","linear","grid","toObject","randomnessObject"];e.toOps=function(e,r){let a=[];void 0!==e.count&&a.push({type:0,path:r,props:{count:e.count}});for(let i of t){let t=e[i];t&&Object.keys(t).length>0&&a.push({type:0,path:[...r,i],props:t})}return a}})(Sr||(Sr={}));var Ar,Cr,jr,Pr,xr,Mr,Tr,Er,Ir,_r,kr,Lr,Rr,Br,zr=["count"],Ur=["radius","start","end","position","scale","rotation"],Fr=["position","scale","rotation"],Vr=["count","size"],Gr=["count","position","scale","rotation"],Hr=["strength","scale","rotation","position","movement","seed","freqScale"];function Nr(e){let t="string"==typeof e?Number.parseInt(e,10):e;return"number"==typeof t&&Number.isFinite(t)?Math.min(5,Math.max(0,Math.round(t))):3}(e=>{function t(e){return e.mode??"linear"}e.defaultData={enabled:!1,useBackgroundColor:!1,color:bt.white,near:.1,far:2e3,mode:"linear",density:.005,heightFalloff:.01,heightBase:0},e.getMode=t,e.getModeIndex=function(e){let r=t(e);return"height"===r?1:"both"===r?2:0},e.getDensity=function(t){return t.density??e.defaultData.density},e.getHeightFalloff=function(t){return t.heightFalloff??e.defaultData.heightFalloff},e.getHeightBase=function(t){return t.heightBase??e.defaultData.heightBase}})(Ar||(Ar={})),(Cr||(Cr={})).defaultData={image:null,rotation:0,blur:32,showBackground:!0},(jr||(jr={})).defaultData={enabled:!1,mode:"hdri",hdri:Cr.defaultData,timeOfDay:10,weather:"partlyCloudy",lighting:!0,lightingIntensity:1,lightingQuality:"full",clouds:!0,windSpeed:2,animateWind:!0,exposure:1,seed:2},(()=>{let e={opacity:1,blendFunction:13,enabled:!1};(Pr||(Pr={})).defaultData={enabled:!1,pixelation:{...e,blendFunction:16,granularity:15},bloom:{...e,blendFunction:16,intensity:1,blurScale:1,luminanceThreshold:.25,luminanceSmoothing:.025,kernelSize:3},chromaticAberration:{...e,offset:[2,2]},vignette:{...e,darkness:1,offset:0},hueSaturation:{...e,hue:3,saturation:0},brightnessContrast:{...e,brightness:.25,contrast:0},depthOfField:{...e,focusDistance:100,focalLength:20,bokehScale:5},noise:{...e,blendFunction:16}}})(),(e=>{e.defaultData={type:"normal",softShadowQuality:"low"},e.isSoft=function(e){return null!=e&&(void 0===e.type||"soft"===e.type)}})(xr||(xr={})),(Mr||(Mr={})).defaultData={enabled:!0,color:{r:.8274509803921568,g:.8274509803921568,b:.8274509803921568},intensity:.75},(Tr||(Tr={})).defaultData={occlusion:!1,aoFullRes:!1,radius:256,bias:.5,aoColor:{r:.19607843137254902,g:.19607843137254902,b:.19607843137254902}},(e=>{e.defaultData={pipeline:"classic",toneMapping:"aces",exposure:1},e.isUntouched=function(e){return void 0===e||"classic"===e.pipeline&&("none"===e.toneMapping||"aces"===e.toneMapping)&&1===e.exposure}})(Er||(Er={})),(Ir||(Ir={})).defaultData={usePhysics:!1,gravity:-10},(_r||(_r={})).defaultData={playCamera:Ot,gameControlObject:null},(kr||(kr={})).defaultData={backgroundColor:wt.fromHexAndA(2500134,1),postprocessing:Pr.defaultData,fog:Ar.defaultData,sky:jr.defaultData,globalPhysics:Ir.defaultData,ambient:Mr.defaultData,ao:Tr.defaultData,shadow:xr.defaultData,publish:_r.defaultData,grading:Er.defaultData},(Lr||(Lr={})).defaultData={colliderType:"box",size:[100,100,100],colliderHelperVisible:!0,forceType:"collider",forceRange:"global",forceIntensity:.5,forceDambing:.95},(e=>{e.isComponentRelated=function(e){return"Component"===e||"Instance"===e},e.isEmptyOrComponent=function(e){return"Empty"===e||"Instance"===e}})(Rr||(Rr={})),(e=>{e.identity={...St.identity,hiddenMatrix:mt.identity},e.fromObject=function(e){return{position:e.position,rotation:e.rotation,scale:e.scale,pivot:e.pivot,pivotRotation:e.pivotRotation,hiddenMatrix:e.hiddenMatrix}},e.merge=function(e,t){return{position:t?.position||e.position,rotation:t?.rotation||e.rotation,pivot:t?.pivot||e.pivot,pivotRotation:t?.pivotRotation||e.pivotRotation,scale:t?.scale||e.scale,hiddenMatrix:t?.hiddenMatrix||e.hiddenMatrix}},e.diff=function(e,t){return u({position:pt.isEqual(e.position,t.position)?void 0:t.position,rotation:pt.isEqual(e.rotation,t.rotation)?void 0:t.rotation,scale:pt.isEqual(e.scale,t.scale)?null:t.scale,hiddenMatrix:mt.isEqual(e.hiddenMatrix,t.hiddenMatrix)?void 0:t.hiddenMatrix})}})(Br||(Br={}));var Kr,Wr,qr,Zr,Yr,Xr,$r,Qr,Jr,ea,ta,ra,aa,ia,na,oa,sa,la,ua,ca,da,pa,fa,ha,ya,ma,ga,ba,va,wa,Da,Sa,Oa=["slide","offset"];function Aa(e){return"MouseDown"===e||"MouseUp"===e||"KeyDown"===e||"KeyUp"===e||"Collision"===e||"Trigger"===e}(Kr||(Kr={})).defaultData={states:new D,events:new D,timelineAnimations:new f,visible:!0,raycastLock:!1,physics:Rt.defaultData,pathSnapping:{pathId:null,slide:0,offset:0,orientation:"tangential"},...Br.identity,cloner:null},(Wr||(Wr={})).defaultData={type:"Empty",...Kr.defaultData},(qr||(qr={})).defaultData={type:"ParticleCollider",...Lr.defaultData,...Kr.defaultData},(Zr||(Zr={})).defaultData={type:"Component",...Kr.defaultData},(Yr||(Yr={})).defaultData={type:"Particle",...Kr.defaultData,...kt.defaultData},(Xr||(Xr={})).defaultData={type:"Hair",...Kr.defaultData,...Lt.defaultData},($r||($r={})).defaultData={type:"Mesh",...Kr.defaultData,...Vt.defaultData},(Qr||(Qr={})).defaultData={...Kr.defaultData,...Br.identity,position:st.DefaultPosition,rotation:st.DefaultRotation,...st.defaultData},(e=>{e.defaultData=function(e){return{...Kr.defaultData,..._t.defaultData(e)}},e.defaultDirectionalLightData={...e.defaultData("DirectionalLight"),position:[200,300,300],name:"Directional Light",intensity:.7}})(Jr||(Jr={})),(e=>{function t(e,t,r=0){for(;r<t.length;){let a=e?e[t[r]]:void 0;if(t.length===r+1)return a;if(!a)return;e=a.descendants,r+=1}}e.resolveWithDes=t,e.resolve=function(e,r,a=0){let i=t(e,r,a);if(i){let e=Object.keys(i);if(1===e.length&&"descendants"===e[0])return}return i}})(ea||(ea={})),(e=>{function t(e,t){return{...Kr.defaultData,...t,component:e,overrides:new _,physics:void 0,events:void 0,type:"Instance"}}e.rootOverrideProps=["physics","events"],e.compositeNonOptionalOverrideProps=["geometry"],e.compositeEntireOverrideOverrideProps=["material"],e.ofComponent=t,e.fromComponentData=function(e){let r=Br.fromObject(e.data);return t(e.id,r)}})(ta||(ta={})),(e=>{e.defaultData={type:"Page",...Kr.defaultData,physics:{...Rt.defaultData,fusedBody:!1},...kr.defaultData,camera:Qr.defaultData},e.isUIPage=function(e){return void 0!==e.uiScene}})(ra||(ra={})),(e=>{e.defaultCamera={position:[0,0,1e3],scale:[1,1,1],rotation:[0,0,0],pivot:[0,0,0],pivotRotation:[0,0,0],hiddenMatrix:mt.identity,name:"Play Camera",visible:!0,raycastLock:!1,physics:Rt.defaultData,states:new D,events:new D,timelineAnimations:new f,cloner:null,pathSnapping:{pathId:null,orientation:"tangential",slide:0,offset:0},...st.defaultData},e.KeysByResetCategory={States:["states"],Events:["events"],Material:["material","materials"],Geometry:["geometry"],Position:["position"],Rotation:["rotation"],Scale:["scale"],Transform:["position","scale","rotation","hiddenMatrix"],Name:["name"],Visibility:["visible","raycastLock","flatShading","wireframe","side","shadowCatcher"],Shadows:["castShadow","receiveShadow"],Cloner:["cloner"],Physics:["physics"]},e.defaultMeshObject={name:"Rectangle",...Kr.defaultData,...$r.defaultData,geometry:gr.defaultData("RectangleGeometry"),material:Qt.defaultTwoLayerData("physical","layer1","layer2")},e.defaultBooleanObject={name:"Boolean",...Kr.defaultData,...$r.defaultData,geometry:gr.defaultData("BooleanGeometry"),material:Qt.defaultTwoLayerData("physical","layer1","layer2")},e.defaultShapeBlendObject={name:"Shape Blend",...Kr.defaultData,...$r.defaultData,geometry:gr.defaultData("ShapeBlendGeometry"),material:Qt.defaultTwoLayerData("physical","layer1","layer2")},e.defaultTextObject={name:"Text",...Kr.defaultData,...$r.defaultData,geometry:gr.defaultData("TextGeometry"),material:Qt.defaultTwoLayerData("physical","layer1","layer2")},e.defaultInputObject={name:"Input",...Kr.defaultData,...$r.defaultData,geometry:gr.defaultData("InputGeometry"),material:Qt.defaultTwoLayerData("physical","layer1","layer2")}})(aa||(aa={})),(e=>{e.newEmpty=function(e,t){let r={name:t};return"Mesh"===e.type?(r.geometry={},"material"in e&&(r.material={layers:new _}),"materials"in e&&(r.materials=e.materials.map(e=>({layers:new _})))):nt.is(e.type)&&(r.perspective={},r.orthographic={}),r},e.toOps=function(e,t){let r,a=[],i={orthographic:0,perspective:0,geometry:0};function n(e,t){for(let[r,i]of Object.entries(t.layers)){let{texture:t,...n}=i;if(void 0!==t&&Object.keys(t).length>0){let i={path:[...e,"layers",r,"texture"],props:t,type:0};a.push(i)}if(Object.keys(n).length>0){let t={path:[...e,"layers",r],props:n,type:0};a.push(t)}}}for(let[e,o]of Object.entries(t)){let t=o;if("name"!==e)if("cloner"===e)a.push(...Sr.toOps(t,["cloner"]));else if("pathSnapping"===e)a.push({path:[e],props:{slide:t.slide,offset:t.offset},type:0});else if("material"===e)n(["material"],t);else if("materials"===e)for(let[e,r]of Object.entries(t))n(["materials",e],r);else if(0===i[e]){if("geometry"===e&&void 0!==t.extrusion){let r={path:[e,"extrusion"],props:t.extrusion,type:0};a.push(r),t={...t},delete t.extrusion}if(Object.keys(t).length>0){let r={path:[e],props:t,type:0};a.push(r)}}else void 0===r&&(r={path:[],props:{},type:0},a.push(r)),r.props[e]=t}return a},e.patch=function(e,t){if(void 0===t)return e;let r={...e};if(Object.assign(r,Br.merge(r,t)),Object.assign(r,{pathSnapping:Object.assign({},r.pathSnapping,{slide:t.pathSnapping?.slide??r.pathSnapping?.slide??0,offset:t.pathSnapping?.offset??r.pathSnapping?.offset??0})}),nt.is(e.type)){r.orthographic={...r.orthographic},r.perspective={...r.perspective};let e=t;void 0!==e.orthographic?.zoom&&(r.orthographic.zoom=e.orthographic.zoom),void 0!==e.perspective?.zoom&&(r.perspective.zoom=e.perspective.zoom),void 0!==e.isUpVectorFlipped&&(r.isUpVectorFlipped=e.isUpVectorFlipped),void 0!==e.targetOffset&&(r.targetOffset=e.targetOffset)}else if("Mesh"===e.type)"geometry"in t&&Object.assign(r,{geometry:mr.merge(r.geometry,t.geometry)}),(t.material||t.materials)&&(r=function(e,t){if(void 0===t)return e;let r={...e};return"material"in r&&"material"in t&&t.material&&(r.material=ee(r.material,e=>{if("string"!=typeof e)for(let[r,a]of Object.entries(t.material.layers)){let t=e.layers.data(r);t&&Yt.patch(t,a)}}).data),r.materials&&t.materials&&(r.materials=ee(r.materials,e=>{for(let a=0;a<r.materials.length;a++){let r=t.materials[a];if("string"!=typeof r)for(let[t,i]of Object.entries(r.layers)){let r=e[a]?.layers?.data(t);r&&Yt.patch(r,i)}}}).data),r}(r,t)),r.cloner&&"cloner"in t&&Object.assign(r,{cloner:Dr.merge(r.cloner,t.cloner)});else if("Empty"===e.type)r.cloner&&"cloner"in t&&Object.assign(r,{cloner:Dr.merge(r.cloner,t.cloner)});else if(It.is(e.type)){let e=t;void 0!==e.intensity&&(r.intensity=e.intensity),void 0!==e.color&&("string"==typeof e.color?r.color=e.color:r.color=bt.clone(e.color))}return r}})(ia||(ia={})),(na||(na={})).defaultData={enablePan:!0,enableZoom:!0,enableRotate:!0,enableDamping:!0,rotationLimitsMode:0,rotationVerticalOffset:{min:Math.PI/4,max:Math.PI/4},rotationHorizontalOffset:{min:Math.PI/4,max:Math.PI/4},rotationSoftLimit:2,rotationSpeed:1,panLimitsMode:0,panVerticalOffset:{min:250,max:250},panHorizontalOffset:{min:250,max:250},panSoftLimit:2,zoomLimitsEnabled:!1,zoomLimits:{min:.1,max:2},autoRotate:!1,autoRotateSpeed:2,autoRotateClockwise:!0,hoverRotatePanMode:0,hoverRotatePanStrength:20,hoverRotateDamping:.125,isTouchZoom:!0,orbitTouches:2,panTouches:3,resetHoverEffectOnPointerLeave:!0},(oa||(oa={})).defaultData={orbitControls:na.defaultData,playPage:At,withBackground:!0,preventScroll:!1,preventTouchScroll:!1,hideCursor:!1,mouseEventTarget:"canvas",joystickSizeAndXYOffset:Array(12).fill(0).map((e,t)=>{let r=0,a=0;return t<5?a=-30:t<10&&(a=30),0===t||10===t||5===t?r=30:(4===t||11===t||9===t)&&(r=-30),[120,[r,a],"show"]}),settings:{image:{format:"jpg",ratio:1,colorSpace:"display-p3"},videoStatic:{fps:60,mbps:150,ratio:1,duration:1e3,format:"mp4",imageFormat:"jpg",activeTimeline:null,colorSpace:"display-p3"},web:{logo:!0,compress:!0,preset:1,preload:!0,hint:!1,imageQuality:70,pixelRatioMobile:0,pixelRatioDesktop:0}},stopRaycast:!0,hdTransmission:!1,renderer:"webgpu"},(sa||(sa={})).defaultData={id:"basic",label:"Basic",style:"None",prompt:""},(la||(la={})).defaultData={weather:0,shadows:0,lightOrigin:0,temperature:0,sun:0,camera:0,environment:0,particles:0,nature:0,floor:0},(e=>{e.defaultData=()=>({mode:"line-art-both",prompt:"",negativePrompt:"",style:{...sa.defaultData},isRandomSeed:!0,seed:e.generateSeed(),guessMode:!1,advanced:!1,steps:20,guidanceScale:7.5,controlNetScale:1,modifiers:la.defaultData}),e.generateSeed=()=>Math.round(1e5*Math.random())})(ua||(ua={})),(e=>{function t(e,t){let r=e.scene.objects.get(t);if(r&&"Component"===r.data.type)return r;{let r=e.shared.lib.components[t];if(r)return{...r.asset,id:t}}}e.physicsEnabled=function(e){return void 0!==e.find(e=>"Page"===e.data.type&&e.data.globalPhysics.usePhysics)},e.getComponentData=t,e.traverseModuleInstances=function(e,r,a){e.scene.objects.traverseFrom(r,(r,i)=>{if("Instance"===i.type){let n=t(e,i.component)?.data;n&&a(r,i,n.events)}else a(r,i,i.events)})}})(ca||(ca={})),(e=>{function t(t=!0,r=[]){let a=[];t&&a.push({...e.defaultLight}),a.push(...r);let i=new v;return i.push({fi:1,id:At,data:{...ra.defaultData,name:"Scene 1"},children:a}),i}function r(t){return{...e.defaultData,objects:i(t,v.prototype)}}e.TRASH_CAN_ID="830a2708-8ed9-49cf-a68e-085299892222",e.defaultLight={fi:-1,data:Jr.defaultDirectionalLightData,id:"830a2708-8ed9-49cf-a68e-085299899103",children:[]},e.createDefaultObjectTreeWithPage=t,e.defaultData={objects:t(),publish:oa.defaultData,styles:ua.defaultData()},e.emptyDataWithoutPage=function(){return{objects:new v,publish:oa.defaultData,styles:ua.defaultData()}},e.emptyDataWithPage=function(e=!0){return{objects:t(e),publish:oa.defaultData,styles:ua.defaultData()}},e.emptyData=function(){return{objects:new v,publish:{...oa.defaultData},styles:ua.defaultData()}},e.withObjs=r,e.withObj=function(e,t){return r([{id:e,data:t,children:[],fi:0}])}})(da||(da={})),(pa||(pa={})).defaultData={preset:"fullscreen",allowResponsive:!1,size:[512,512],coords:[0,0],sceneScale:1,color:{r:0,g:0,b:0,a:.5}},(e=>{e.defaultData=e=>({url:e,name:"New Webhook",parametersSchemas:new D}),e.defaultParameterValueByType=e=>"number"===e?0:"boolean"!==e&&""})(fa||(fa={})),(ha||(ha={})).defaultData=(e,t="GET")=>({url:e,method:t,name:"New API",headers:new D,queries:new D,autoStart:!0}),(e=>{function t(e){return void 0!==e.textValue}function r(e){return"boolean"==typeof e}e.isTextValue=t,e.isNumber=function(e){return"number"==typeof e},e.isBoolean=r,e.typeOfVariable=function(e){return t(e)?"string":r(e)?"boolean":"number"},e.getDisplayedValue=function(t){return e.isTextValue(t)?Array.isArray(t.textValue)?t.textValue.map(e=>e.toString().padStart(t.padding??2,"0")).join(t.deliminator??":")+(void 0!==t.suffix?" "+t.suffix:""):t.textValue.toString():e.isBoolean(t)?t?"True":"False":e.isNumber(t)?parseFloat(t.toFixed(3)).toString():t.toString()}})(ya||(ya={})),(ma||(ma={})).all=["images","videos","colors","audios","particles","fonts","materials","variables"],(ga||(ga={})).all=[...ma.all,"components"],(ba||(ba={})).defaultData=function(){return{images:new f,videos:new f,colors:new f,audios:new f,particles:new f,fonts:new f,materials:new f,components:new f,variables:new f,userAPIs:new f,userWebhooks:new f,timelineAnimations:new f}},(va||(va={})).defaultData=function(){return{images:new f,videos:new f,colors:new f,audios:new f,particles:new f,fonts:new f,materials:new f,components:new f,variables:new f,userAPIs:new f,userWebhooks:new f,timelineAnimations:new f}},(e=>{e.defaultColors=function(){return i({"89b10010-844c-11ec-a8a3-0242ac120002":{r:.5,g:.5,b:.5,a:1,name:"Default Color"}},f.prototype)},e.defaultImages=function(){return i({},f.prototype)},e.emptyData=function(){return{catelogs:new f,materials:new f,images:new f,videos:new f,colors:new f,timelineAnimations:new f,audios:new f,particles:new f,fonts:new f,variables:new D,userAPIs:new f,userWebhooks:new f,lib:va.defaultData()}},e.defaultVariables=function(e){switch(e){case"number":return{value:0,name:"Number"};case"boolean":return{value:!1,name:"Boolean"};case"string":return{value:{textValue:"String value"},name:"String"};case"time":{let e=[0,0,0];return{name:"Time",value:{textValue:e,deliminator:":",padding:2,suffix:"AM"},dynamicVariableType:"time",format:"HH:mm:ss",format12h24h:"12ampm",timeZone:null,hasEnd:!1,endValue:{textValue:e,deliminator:":",padding:2,suffix:"AM"},autoStart:!0,repeat:!1}}case"counter":return{name:"Counter",value:0,dynamicVariableType:"counter",updateInterval:1e3,increment:1,autoStart:!0,hasEnd:!0,endValue:60,repeat:!0,randomStart:!1,range:[0,100],decimals:0};case"random":return{name:"Random",value:0,dynamicVariableType:"random",updateInterval:1e3,increment:1,autoStart:!0,isStatic:!1,hasEnd:!0,endValue:60,repeat:!0,min:0,max:100,decimals:0};default:console.error("Unknown variable type",e)}},e.getFormattedTimerTime=function(e,t){if("HH:mm:ss"===t.format){let t=Math.floor(e/3600),r=Math.floor((e-3600*t)/60);return{textValue:[t,r,Math.round(e-3600*t-60*r)]}}if("mm:ss"===t.format){let t=Math.floor(e/60);return{textValue:[t,Math.round(e-60*t)]}}return"number"===t.format?Math.round(e):Math.round(1e3*e)/1e3}})(wa||(wa={})),(e=>{e.defaultData={schema:130,scene:da.defaultData,frames:(new f).add("72fc2993-2da3-4b6b-96ac-2879db3a28bd",pa.defaultData),shared:{...wa.emptyData(),colors:wa.defaultColors()}},e.createDefaultData=function(){return ut.deserialize(ut.serialize(e.defaultData))},e.emptyDataForImports=function(){return{schema:130,scene:da.emptyDataWithPage(),frames:(new f).add("72fc2993-2da3-4b6b-96ac-2879db3a28bd",pa.defaultData),shared:{...wa.emptyData(),colors:wa.defaultColors(),images:wa.defaultImages()}}},e.emptyData=function(){return{schema:130,scene:da.emptyDataWithPage(),frames:(new f).add("72fc2993-2da3-4b6b-96ac-2879db3a28bd",pa.defaultData),shared:wa.emptyData()}},e.clipboard2dData=function(){return{schema:130,scene:da.emptyData(),frames:new f,shared:wa.emptyData()}},e.withoutLib=function(e){return{...e,shared:{...e.shared,lib:va.defaultData()}}},e.getComponentData=function(e,t){return ca.getComponentData(e,t)},e.hasSensitiveData=function(e){let t=Object.values(e.shared.userAPIs);for(let e of t){let t=e.headers;for(let e of t)if("authorization"===e.data.key.toLowerCase()&&""!==e.data.value)return!0}return!1}})(Da||(Da={})),(e=>{e.toEventUIType=function(e){return"Conditional"===e.type?"Distance"===e.condition.type?"Distance":"StateChange":e.type},e.fromEventUIType=function(e){return"Distance"===e||"StateChange"===e?"Conditional":e}})(Sa||(Sa={}));var Ca,ja,Pa,xa,Ma,Ta,Ea,Ia,_a,ka,La,Ra,Ba,za,Ua,Fa,Va,Ga,Ha,Na,Ka,Wa={LookAt:[],Follow:["Create"],DragDrop:["Transition","Animation","Audio","Particles","Create","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],MouseHover:["Transition","Animation","TimelineAnimation","Particles","Create","Destroy","SwitchCamera","SceneTransition","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],Scroll:["Transition","Animation","TimelineAnimation","Create","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],Start:["Transition","Animation","TimelineAnimation","Audio","Particles","Video","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],Conditional:["Transition","Animation","TimelineAnimation","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],MouseDown:["Transition","Animation","TimelineAnimation","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],MouseUp:["Transition","Animation","TimelineAnimation","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],MousePress:["Transition","Animation","TimelineAnimation","Audio","Particles","Video","Link","Create","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],KeyDown:["Transition","Animation","TimelineAnimation","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],KeyUp:["Transition","Animation","TimelineAnimation","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],KeyPress:["Transition","Animation","Audio","Particles","Video","Link","Create","SwitchCamera","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],GameControl:["Transition","Animation","TimelineAnimation","Audio","Particles","Create","Conditional"],Collision:["Transition","Animation","TimelineAnimation","Audio","Particles","Video","Create","Destroy","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],Trigger:["Transition","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],Resize:["Transition","Animation","Audio","Particles","Video","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],VariableChange:["Transition","Animation","TimelineAnimation","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],API:["Transition","Animation","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],WEBHOOK:["Transition","Animation","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"],AIAssistantListener:["SetVariable"],AIAssistantTrigger:["Transition","Animation","Audio","Particles","Video","Link","Create","Destroy","SwitchCamera","SceneTransition","Reset","SetVariable","DynamicVariablePlay","Conditional","ClearLocalStorage","UserAPI"]};function qa(e,...t){let r={};for(let a of t.flat())null!=e&&a in e&&(r[a]=e[a]);return r}function Za(e){e.layers.forEach(e=>{if("depth"===e.type&&void 0!==e.colorA){let t=e.colorA,r=e.colorB,a=[[t.r,t.g,t.b,t.a],[r.r,r.g,r.b,r.a]],i=[0,1];for(let e=2;e<10;e++)a.push(a[1]),i.push(1);let n={...qa(te(e),"type","visible","isVector","isWorldSpace","origin","alpha","mode"),near:Math.max(0,e.near),far:Math.max(0,e.far),colors:a,steps:i,num:2,direction:[1,0,0],smooth:!1,gradientType:1};Object.assign(e,n)}else if("depth"===e.type&&1===e.gradientType&&(e.near<0||e.far<0)){let t={...te(e),near:Math.max(e.near,0),far:Math.max(e.far,0)};Object.assign(e,t)}})}function Ya(e,t){Object.values(e.shared.materials).forEach(e=>t(e))}function Xa(e,t){e.scene.objects.traverse((e,r)=>{"materials"in r?r.materials.forEach((e,a)=>{void 0===e&&(r.materials[a]=Qt.defaultTwoLayerData("phong"),e=r.materials[a]),"string"!=typeof e&&t(e)}):"material"in r?"string"!=typeof r.material&&(void 0===r.material&&(r.material=Qt.defaultTwoLayerData("phong")),t(r.material)):"Mesh"===r.type&&(void 0===r.material&&(r.material=Qt.defaultTwoLayerData("phong")),t(r.material)),"overrides"in r&&Object.values(r.overrides).forEach(e=>{e.material&&"string"!=typeof e.material&&Object.getPrototypeOf(e.material)!==_.prototype&&t(e.material)})})}function $a(e){void 0===e.layers&&Object.assign(e,Qt.defaultTwoLayerData("lambert"))}function Qa(e){!e.layers||e.layers.forEach(e=>{if("depth"===e.type&&10===e.colors.length){let t=[...e.colors];t.push(e.colors[9]);let r=[...e.steps];r.push(e.steps[9]);let a={...te(e),colors:t,steps:r};Object.assign(e,a)}})}function Ja(e){e.scene.objects.traverse((e,t)=>{"materials"in t?t.materials.forEach(e=>{"string"!=typeof e&&Qa(e)}):"material"in t&&"string"!=typeof t.material&&Qa(t.material)}),Object.values(e.shared.materials).forEach(e=>Qa(e))}function ei(e){e.layers&&e.layers.forEach(e=>{"depth"===e.type&&void 0!==e.num&&(e.colors=e.colors.slice(0,e.num),e.steps=e.steps.slice(0,e.num),delete e.num)})}function ti(e){e.layers&&e.layers.forEach(e=>{(function(e){return"displace"!==e.type})(e)&&void 0===e.isMask&&(e.isMask=!1),("texture"===e.type||"video"===e.type)&&void 0===e.blending&&(e.blending=0),("noise"===e.type||"displace"===e.type&&"noise"===e.displacementType)&&(void 0===e.voronoiStyle&&(e.voronoiStyle=0),void 0===e.highCut&&(e.highCut=1),void 0===e.lowCut&&(e.lowCut=0),void 0===e.smoothness&&(e.smoothness=.3),void 0===e.seed&&(e.seed=0),void 0===e.quality&&(e.quality=1))})}function ri(e){let t=e.layers.find(e=>"light"===e.type)?.data;if("basic"===t?.category){let e=Yt.defaultData("light","phong"),r=t;Object.assign(r,e),r.visible=!1}}function ai(e){Ya(e,ri),Xa(e,ri)}function ii(e){e.layers.forEach(e=>{"light"===e.type&&"toon"!==e.category&&void 0===e.occlusion&&(e.occlusion=!0)})}function ni(e){e.layers&&e.layers.forEach(e=>{"light"===e.type&&void 0===e.bumpMapIntensity&&(e.bumpMapIntensity=5)})}function oi(e){e.layers&&e.layers.forEach(e=>{"light"===e.type&&void 0===e.alphaOverride&&(e.alphaOverride=1)})}(e=>{e.is=function(e){return"MouseDown"===e.type||"MouseUp"===e.type||"MousePress"===e.type||"KeyDown"===e.type||"KeyUp"===e.type||"KeyPress"===e.type},e.defaultData=function(e){return"MouseDown"===e||"MouseUp"===e||"MousePress"===e?{type:e,mode:"Object",disabled:!1,name:"",actions:new D}:{type:e,disabled:!1,name:"",key:void 0,actions:new D}}})(Ca||(Ca={})),(e=>{e.propertyDefaultData=function(e){return{type:"Property",value:[e??null,"position","x"]}},e.valueDefaultData={type:"Literal",value:0}})(ja||(ja={})),(e=>{e.comparisonDefaultData=function(e){return{type:"Comparison",operator:"==",lOperand:ja.propertyDefaultData(e),rOperand:{...ja.valueDefaultData}}},e.distanceDefaultData=function(e){return{type:"Distance",toObject:e??null,fromObject:e??null,distance:200}},e.stateDefaultData=function(e,t){return{type:"State",object:e??null,state:t??null}}})(Pa||(Pa={})),(xa||(xa={})).isConditionalSubActions=function(e){return void 0!==e.find(e=>"ifActions"===e||"elseActions"===e)},(e=>{e.is=function(e){return"Conditional"===e.type},e.defaultData=function(e){return{type:"Conditional",disabled:!1,name:"",inActions:new D,outActions:new D,condition:Pa.distanceDefaultData(e)}}})(Ma||(Ma={})),(Ta||(Ta={})).defaultData={type:"DragDrop",name:"",cursor:"hand",disabled:!1,dampingFactor:1,objects:[],snapTo:"center",snapSurfaceMode:"bbox",snapSurfaceOffset:0,dropOn:"all",autoOrient:!0,dropDestinations:[],plane:"adaptive",planeMode:"locked",referenceFrame:"global",limits:[-1/0,1/0,-1/0,1/0,-1/0,1/0],drop:!1,resetOnSnapFail:!1,snapSpeed:20,resetSpeed:20,dragDropActions:{drag:new D,drop:new D}},(Ea||(Ea={})).defaultData={type:"Follow",disabled:!1,name:"",maxDelta:0,dampingFactor:1,target:"cursor",plane:"custom",resetOnPointerLeave:!0,resetAfterDistanceLimit:!0,enabledTranslation:[!0,!0,!0],limitDistanceEnabled:!1,limitDistance:1e3,snapDelay:0,resetSpeed:5,actions:new D},(Ia||(Ia={})).defaultData={type:"LookAt",disabled:!1,name:"",distance:1e3,dampingFactor:1,target:"cursor",tilt:"up",axis:"z",plane:"custom",resetOnPointerLeave:!0,resetAfterDistanceLimit:!0,enabledRotation:[!0,!0,!0],limitDistanceEnabled:!1,limitDistance:1e3,snapDelay:0,resetSpeed:5},(e=>{e.is=function(e){return"MouseHover"===e.type},e.defaultData=function(){return{type:"MouseHover",disabled:!1,name:"",actions:new D}}})(_a||(_a={})),(e=>{e.is=function(e){return"Scroll"===e.type},e.defaultData=function(){return{type:"Scroll",disabled:!1,name:"",steps:100,trigger:"load",startFrom:"enter",enterAnchor:"top",startOffset:0,endAfter:400,actions:new D}}})(ka||(ka={})),(e=>{e.is=function(e){return"Start"===e.type},e.defaultData=function(){return{type:"Start",disabled:!1,name:"",actions:new D}}})(La||(La={})),(e=>{e.is=function(e){return"Collision"===e.type},e.defaultData=function(){return{type:"Collision",disabled:!1,name:"",target:"character",actions:new D}}})(Ra||(Ra={})),(e=>{e.is=function(e){return"Trigger"===e.type},e.defaultData=function(e,t){return{type:"Trigger",name:"",disabled:!1,target:"all",triggeringObjects:[],actions:new D,triggerZone:"box",position:t.toArray(),rotation:[0,0,0],size:e.toArray(),radius:e.length()/2,helperVisible:!0}}})(Ba||(Ba={})),(t=>{t.defaultSizes={mobile:[480,480],tablet:[768,768],desktop:[1200,1200],custom:[769,1200]},t.is=function(e){return"Resize"===e.type},t.sizeToDevice=function(e){return"string"==typeof e?e:"custom"},t.deviceToSize=function(e){return"string"==typeof e?[...t.defaultSizes[e]]:[...e]},t.defaultData=function(){let r={size:"mobile",operator:"<",actions:new D},a={size:"tablet",operator:"<",actions:new D},i={size:[...t.defaultSizes.custom],operator:"<>",actions:new D},n=new D;return n.push({id:e.generateUUID(),fi:0,data:r},{id:e.generateUUID(),fi:1,data:a},{id:e.generateUUID(),fi:2,data:i}),{type:"Resize",disabled:!1,name:"",orientation:"horizontal",breakpoints:n}},t.defaultBreakpointData=function(){return{size:[...t.defaultSizes.custom],operator:"<>",actions:new D}}})(za||(za={})),(e=>{e.propertyPaths={Position:["position"],"Position X":["position","x"],"Position Y":["position","y"],"Position Z":["position","z"],Rotation:["rotation"],"Rotation X":["rotation","x"],"Rotation Y":["rotation","y"],"Rotation Z":["rotation","z"],Scale:["scale"],"Scale X":["scale","x"],"Scale Y":["scale","y"],"Scale Z":["scale","z"],Width:["width"],Height:["height"],Depth:["depth"],"Mouse Position X":["mouse","x"],"Mouse Position Y":["mouse","y"],"Mouse Pressed":["mouse","pressed"],"Screen Width":["mouse","width"],"Screen Height":["mouse","height"],"Hit Position X":["raycast","x"],"Hit Position Y":["raycast","y"],"Hit Position Z":["raycast","z"],"Hit Object Position X":["raycast","objX"],"Hit Object Position Y":["raycast","objY"],"Hit Object Position Z":["raycast","objZ"]},e.is=function(e){return"VariableChange"===e.type},e.defaultData=function(){return{disabled:!1,type:"VariableChange",name:"",actions:new D,variableId:"",objectId:null,property:"Position X"}}})(Ua||(Ua={})),(e=>{e.is=function(e){return"API"===e.type},e.defaultData=function(){return{disabled:!1,type:"API",name:"",successActions:new D,errorActions:new D,userAPIId:""}}})(Fa||(Fa={})),(e=>{e.is=function(e){return"WEBHOOK"===e.type},e.defaultData=function(){return{disabled:!1,type:"WEBHOOK",name:"",actions:new D,userWebhookId:""}}})(Va||(Va={})),(e=>{e.is=function(e){return"AIAssistantListener"===e.type},e.defaultData=function(){return{disabled:!1,type:"AIAssistantListener",name:"",actions:new D,analysis:"average",analysisRange:[0,71],analysisSingle:0}}})(Ga||(Ga={})),(e=>{e.is=function(e){return"AIAssistantTrigger"===e.type},e.defaultData=function(){return{disabled:!1,description:"",name:"",type:"AIAssistantTrigger",actions:new D}}})(Ha||(Ha={})),(Na||(Na={})).list=["idle","move","jump","run"],(e=>{e.defaultColliderData={type:"capsule",height:200,radius:50,position:[0,0,0],rotation:[0,0,0]},e.defaultDataThirdPerson={moveMode:"walk",forwardDirection:"+z",speedTranslate:1e3,speedRotate:100,runMultiplier:2,rotationMode:"normal",rotBy:"keys",rotByTouch:"drag",delayPos:[.3,.3],delayRot:[.3,.3],keyAssignments:[["moveNegZ","W"],["moveNegX","A"],["movePosZ","S"],["movePosX","D"],["rotPosX","▲"],["rotPosY","◀"],["rotNegX","▼"],["rotNegY","▶"],["jump","Space"],["run","⇧"],["none","Ctrl"]],touchControl:!0,joystickPosLoc:5,joystickRotLoc:11,jumpTouchButtonLoc:9,collider:e.defaultColliderData,colliderHelperVisible:!0,collisionEnabled:!0,jumpPower:100,resetYPosition:3e3,alignToGround:!1,autoOrientMove:!0,orientWith:"camera",orientMode:"radial",delayPosCamera:.3,delayRotCamera:.3,camera:"",cameraXAxis:"Limit",cameraYAxis:"Free",cameraRotXLimits:[0,Math.PI/2],cameraRotYLimits:[-Math.PI/2,Math.PI/2],gameActions:{idle:new D,move:new D,jump:new D,run:new D},navmesh:{enabled:!1,ch:6,cs:6,walkableClimb:5,walkableHeight:1,walkableRadius:0,zones:"all",objects:[],helperVisible:!0,destinationHelperRadius:0,destinationHelperColor:wt.fromHexAndA(3728051,1)}}})(Ka||(Ka={}));var si=180/Math.PI;function li(e){e.rotation=e.rotation.slice(0,3).map(e=>e*si)}function ui(e){li(e),"Page"===e.type&&li(e.camera),e.states?.forEach(e=>{void 0===e.rotation||null===e.rotation||(e.rotation=e.rotation.slice(0,3).map(e=>e*si))});let t=e.geometry;t&&"SphereGeometry"===t.type&&(t.thetaLength=(t.thetaLength??180)*si),t&&"TorusGeometry"===t.type&&(t.arc=t.arc*si),t&&"PathGeometry"===t.type&&(t.extrusion.angle*=si,t.extrusion.twist*=si),"Mesh"===e.type&&"TextGeometry"===e.geometry.type&&(e.geometry.text={textValue:e.geometry.text}),Array.isArray(te(e.events))&&e.events?.forEach(e=>{("MouseDown"===e.type||"MouseUp"===e.type||"MousePress"===e.type||"KeyDown"===e.type||"KeyUp"===e.type||"KeyPress"===e.type||"Collision"===e.type||"Trigger"===e.type)&&(e.runMode=e.toggle?"Toggle":"Repeat")})}function ci(e){e.scene.objects.traverse((e,t)=>{})}function di(e){let t=e.schema??104;130!==t&&t<130&&(yi(e.asset),e.schema=130)}function pi(e,t){t(e.data);for(let r of e.children)pi(r,t)}function fi(e){let t=e.schema??104;130!==t&&(t<105&&(pi(e.asset,ui),e.schema=105),t<118&&(pi(e.asset,gi),e.schema=118),t<121&&(pi(e.asset,bi),e.schema=121),t<130&&(pi(e.asset,mi),e.schema=130))}function hi(e,t){Xa(e,t),Ya(e,t),Object.values(e.shared.lib.materials).forEach(e=>t(e.asset))}function yi(e){void 0===e.layers&&Object.assign(e,Qt.defaultTwoLayerData("phong"))}function mi(e){"materials"in e?e.materials.forEach(e=>{void 0!==e&&"string"!=typeof e&&yi(e)}):"material"in e&&void 0!==e.material&&"string"!=typeof e.material&&yi(e.material)}function gi(e){e.timelineAnimations=i({},f.prototype)}function bi(e){e.pivot=[0,0,0],e.pivotRotation=[0,0,0]}function vi(e){}function wi(t){let r=t.schema??0;if(130!==r){console.warn("updating from ",r,"to ",130),function(t,r){if(r<1&&(Xa(t,Za),Ya(t,Za),t.schema=1),r<2&&(function(e){Object.assign(e.scene.publish,{orbitControls:{...na.defaultData,...te(e.scene.publish.orbitControls)}})}(t),t.schema=2),r<3&&(function(e){function t(e){if(e.layers)for(let t of Object.values(e.layers))if(t)for(let[e,r]of Object.entries(t))if((sr.includes(e)||"boolean"==typeof r)&&delete t[e],"texture"===e)for(let[e,t]of Object.entries(r))(lr.includes(e)||"boolean"==typeof t)&&delete r[e]}e.scene.objects.traverse((e,r)=>{r.states.forEach(e=>{let r=e;r.material?t(r.material):r.materials&&r.materials.forEach(e=>{t(e)})})})}(t),t.schema=3),r<4&&(function(e){e.scene.publish.withBackground=!0}(t),t.schema=4),r<5&&(function(e){e.scene.publish.settings.web={compress:!0,preload:!0,preset:1,logo:!0,hint:!1}}(t),t.schema=5),r<6&&(function(e){e.scene.objects.traverse((e,t)=>{let r=t.cloner;r&&(r.radial.scale=r.radial.scale.map(e=>e+1),r.linear.scale=r.linear.scale.map(e=>e+1))})}(t),t.schema=6),r<7&&(function(e){e.scene.objects.traverse((e,t)=>{let r=t.geometry;r&&("DodecahedronGeometry"===r.type||"IcosahedronGeometry"===r.type)&&(r.detail=Math.round(r.detail))})}(t),t.schema=7),r<8&&(t.schema=8),r<9&&(Ja(t),t.schema=9),r<10&&(function(e){e.scene.objects.traverse((e,t)=>{"Mesh"===t.type&&("BooleanGeometry"===t.geometry.type||"SubdivGeometry"===t.geometry.type)&&(t.geometry.phongAngle=35)})}(t),t.schema=10),r<11&&(function(e){e.scene.environment.ambientLight.softShadows=!1,e.scene.environment.ambientLight.softShadowQuality="low",e.scene.objects.traverse((e,t)=>{("DirectionalLight"===t.type||"SpotLight"===t.type)&&(t.shadowResolution=1024,t.shadowRadius=1,t.depth=1e5)}),e.shared.penumbraSize=new Array(5).fill(.5)}(t),t.schema=11),r<12&&(Ja(t),t.schema=12),r<13&&(function(e){e.shared.audios=i({},f.prototype)}(t),t.schema=13),r<14&&(function(e){let t=e.shared.materials;Object.entries(t).forEach(([e,r])=>{if(!r.layers){let r={name:"Untitled Material",layers:[{fi:0,data:{type:"light",category:"phong",alpha:.6,visible:!0,mode:0,specular:{r:.2,g:.2,b:.2},shininess:5},id:"layer1"},{fi:1,data:{type:"color",alpha:1,visible:!0,mode:0,color:{r:.2823529411764706,g:.2823529411764706,b:.30196078431372547}},id:"layer2"}]};Object.assign(t,{[e]:r})}})}(t),t.schema=14),r<15&&(function(e){Object.entries(te(e.shared.images)).filter(e=>!1===e[1].asset).map(e=>e[0]).forEach(t=>{delete e.shared.images[t]}),Object.entries(te(e.shared.audios)).filter(e=>!1===e[1].asset).map(e=>e[0]).forEach(t=>{delete e.shared.audios[t]})}(t),t.schema=15),r<16&&(function(e){e.scene.publish.settings.web.preload=!1}(t),t.schema=16),r<17&&(Xa(t,ei),Ya(t,ei),t.schema=17),r<18&&(Xa(t,$a),Ya(t,$a),t.schema=18),r<19&&(function(e){Object.assign(e.scene.publish.settings,{video:{...oa.defaultData.settings.video,...te(e.scene.publish.settings.video)}})}(t),t.schema=19),r<20&&(function(e){e.shared.fonts=i({},f.prototype)}(t),function(e){let t=[];e.scene.objects.traverse((r,a)=>{let i=a;if("TextFrame"===i.type){let a=Qt.defaultTwoLayerData("phong"),n="string"==typeof i.color?e.shared.colors[i.color]:i.color;a.layers[1].data.color={r:n.r,g:n.g,b:n.b},a.layers[1].data.alpha=i.alpha;let o=function(e){return e.replace(".typeface","").replace(/optimer/gi,"open sans").replace("space_mono","space mono").replace(/alma_mono/gi,"varela round").replace(/droid_sans_mono/gi,"noto sans mono").replace(/droid_sans|gentilis|gnomon_(simple|foreground)|helvetiker/gi,"roboto").replace(/droid_serif/gi,"roboto slab").replace("_sans"," sans").replace("crimson_text","crimson text").replace("medium_medium","medium").replace("fatface_fatface","fatface").replace("100hairline","thin").replace("200thin","extralight").replace("300light","light").replace("500medium","medium").replace("600semi","semibold").replace("800heavy","extrabold").replace("900black","black").replace(/bodoni_(11|16|24|36|48|72|96)([^_])/gi,"bodoni_$1_$2").replace(/bodoni_(11|16|24|36|48|72|96)/gi,"bodoni moda").replace(/(thin|hairline)(_regular)?/gi,"100").replace(/(extra|ultra)light(_regular)?/gi,"200").replace(/light(_regular)?/gi,"300").replace(/_book|_normal|_roman/gi,"_regular").replace(/medium(_regular)?/gi,"500").replace(/(semi|demi)bold(_regular)?/gi,"600").replace(/(extra|ultra)bold(_regular)?/gi,"800").replace(/bold(_regular)?/gi,"700").replace(/(black|heavy|fatface)(_regular)?/gi,"900").replace(/([1-9]00)_italic/gi,"$1italic").replace(/regularitalic/gi,"italic").replace(/regularitalic/gi,"italic").split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(i.font);void 0===e.shared.fonts[o]&&(e.shared.fonts[o]={name:o});let s={name:i.name,...Kr.defaultData,...$r.defaultData,flatShading:!1,wireframe:!1,geometry:{...gr.defaultData("TextGeometry"),width:i.width,height:i.height,font:o,depth:0,horizontalAlign:i.horizontalAlign,verticalAlign:i.verticalAlign,fontSize:1.40625*i.fontSize,lineHeight:i.lineHeight/1.40625,letterSpacing:i.letterSpacing-1,text:i.text,textTransform:i.textTransform,extrudeBevelSize:0,extrudeBevelSegments:1},material:a,states:te(i.states),events:te(i.events),visible:i.visible,raycastLock:i.raycastLock,position:i.position,rotation:i.rotation,scale:i.scale,hiddenMatrix:i.hiddenMatrix},l=te(e.scene.objects).parent(r);e.scene.objects.insertAfter(l??null,r,[{id:r+"new",data:s,children:[]}]),t.push(r)}}),t.forEach(t=>{e.scene.objects.delete(t)})}(t),t.schema=20),r<21&&(function(t){let r={0:"MouseDown",1:"MouseUp",2:"MouseHover",5:"KeyDown",6:"KeyUp",7:"Start",9:"LookAt",10:"Follow",11:"Scroll",12:"Audio",13:"GameControl"};t.scene.objects.traverse((t,a)=>{a.events.forEach(t=>{if(r[Number(t.type)])if(Object.assign(t,{type:r[Number(t.type)]}),"Audio"===t.type&&"audioEvent"in t&&(Object.assign(t,{playAudio:t.audioEvent}),delete t.audioEvent),"GameControl"===t.type)Object.assign(t,{gameActions:{idle:new D,move:new D,jump:new D}});else{let r=new D;Object.assign(t,{actions:r}),("MouseDown"===t.type||"MouseUp"===t.type||"KeyDown"===t.type||"KeyUp"===t.type)&&"url"in t&&r.push({fi:0,id:e.generateUUID(),data:{type:"Link",url:t.url,delay:0}}),"targets"in t&&(t.targets.forEach((t,a,i)=>{let n={easing:t.easing,duration:t.duration};6===t.easing?Object.assign(n,qa(t,"mass","stiffness","damping","velocity")):5===t.easing&&Object.assign(n,{control1:{...t.control1},control2:{...t.control2}});let o={repeat:t.repeat?-1:0,delay:t.delay,delayDirection:t.delayDirection,direction:t.cycle&&t.rewind?"pingpong-rewind":t.cycle?"pingpong":"normal"},s={state:t.state,...o,...n},l={allowSlerp:!0,type:"Transition",object:t.object,repeat:0,delay:0,delayDirection:void 0,direction:"normal",tweens:new D({fi:0,id:e.generateUUID(),data:{state:void 0,repeat:0,delay:0,delayDirection:void 0,direction:"normal",duration:0,easing:4}},{fi:1,id:e.generateUUID(),data:s})};r.push({fi:i,id:a,data:l})}),delete t.targets)}})})}(t),function(t){t.scene.objects.traverse((t,r)=>{function a(t,a){let i=new D,n=[];if(r.events.forEach((e,t,r)=>{if("Audio"===e.type&&e.trigger===a){let a;n.push(t),"play"===e.interaction?a={...qa(e,"interaction","audio","delay","volume","loop"),triggerAfter:"after"in e?e.after:void 0,toggle:"after"in e?e.toggle:void 0,type:"Audio"}:("pause"===e.interaction||"stop"===e.interaction)&&(a={...qa(e,"interaction","delay","object","playAudio"),type:"Audio"}),a&&i.push({fi:r,id:t,data:a})}}),n.forEach(e=>r.events.delete(e)),i.length){let a=r.events.find(e=>e.type===t)?.data;a?"actions"in a&&a.actions.insertBefore(null,i):r.events.insertBefore(null,[{id:e.generateUUID(),data:{type:t,actions:i}}])}}a("Start","start"),a("MouseDown","mouseDown"),a("MouseUp","mouseUp"),a("KeyDown","keyDown"),a("KeyUp","keyUp")})}(t),t.schema=21),r<22&&(ai(t),t.schema=22),r<23&&(function(e){e.scene.objects.traverse((e,t)=>{"Mesh"===t.type&&"SubdivGeometry"===t.geometry.type&&(t.geometry.scaleBaked||(t.geometry.scaleBaked=[1,1,1]))})}(t),t.schema=23),r<24&&(function(e){e.scene.objects.traverse((e,t)=>{("Empty"===t.type||"Mesh"===t.type)&&t.cloner&&!t.cloner.randomnessObject&&!t.cloner.toObject&&!t.cloner.randomness&&(t.cloner={...t.cloner,toObject:{object:"",spreadType:"random",scale:[0,0,0],rotation:[0,0,0],position:[0,0,0],axis:"x",seed:0,count:99,align:"normal"},randomness:!1,randomnessObject:{strength:100,scale:[0,0,0],rotation:[0,0,0],position:[0,0,0],movement:1,seed:0,freqScale:10,noiseType:"perlin"}})})}(t),t.schema=24),(r<25||void 0===t.shared.videos)&&(function(e){e.shared.videos=i({},f.prototype)}(t),r<25&&(t.schema=25)),r<26&&(function(e){e.scene.objects.traverse((t,r)=>{let a=e.scene.objects.unproxy().parent(t);if(a){let t=te(e.scene.objects.data(a));t&&"Mesh"===t.type&&"BooleanGeometry"===t.geometry.type&&"Mesh"===r.type&&(r.visible=!0!==te(r).booleanExclude)}})}(t),t.schema=26),r<27&&(function(e){e.scene.objects.traverse((e,t)=>{if("Mesh"===t.type){let e=t;"NonParametricGeometry"===t.geometry.type?void 0!==e.material&&delete e.material:void 0!==e.materials&&delete e.materials}})}(t),t.schema=27),r<28&&(ai(t),t.schema=28),r<29&&(function(e){function t(e){Object.setPrototypeOf(e,_.prototype),e.texture&&Object.setPrototypeOf(e.texture,_.prototype)}function r(e){Object.setPrototypeOf(e,_.prototype);for(let r in e)t(e[r])}e.scene.objects.traverse((e,t)=>{t.states.forEach(e=>{let t=e;if(t.material){let e=te(t.material).layers;r(e),t.material.layers=e}if(t.materials)for(let e=0;e<t.materials.length;e++){let a=t.materials[e],i=te(a).layers;r(i),a.layers=i}})})}(t),t.schema=29),r<30&&(function(e){e.scene.objects.traverse((e,t)=>{"Mesh"===t.type&&"NonParametricGeometry"===t.geometry.type&&!("material"in t)&&!("materials"in t)&&(t.material=Qt.defaultTwoLayerData("phong"))})}(t),t.schema=30),r<31&&(function(e){void 0===e.scene.publish.orbitControls.autoZoom&&(e.scene.publish.orbitControls.autoZoom=!1),e.scene.objects.traverse((e,t)=>{("OrthographicCamera"===t.type||"PerspectiveCamera"===t.type)&&(void 0===t.orthographic.autoZoom&&(t.orthographic.autoZoom=!1),void 0===t.orthographic.autoZoomFrustumSize&&(t.orthographic.autoZoomFrustumSize=790))})}(t),t.schema=31),r<33&&(function(e){e.scene.objects.traverse((e,t)=>{void 0===t.pathSnapping&&(t.pathSnapping={pathId:null,slide:0,offset:0,orientation:"tangential"}),void 0===t.pathSnapping.offset&&(t.pathSnapping.offset=0)})}(t),t.schema=33),r<34&&(function(e){void 0===e.scene.publish.mouseEventTarget&&(e.scene.publish.mouseEventTarget="canvas"),void 0===e.scene.publish.settings.web.hint&&(e.scene.publish.settings.web.hint=!1)}(t),t.schema=34),r<35&&(function(e){let{video:t}=e.scene.publish.settings;"gif"===t.format&&t.fps>48&&(t.fps=15)}(t),t.schema=35),r<36&&(function(e){e.scene.objects.traverse((e,t)=>{t.events.forEach(e=>{"GameControl"===e.type&&(e.resetYPosition=Math.abs(e.resetYPosition-t.position[1]))})})}(t),t.schema=36),r<37&&(function(e){let t=e.scene.environment.usePhysics;e.scene.objects.traverse((e,r)=>{t&&null===r.physics?r.collision=!1:r.collision="visibility"})}(t),t.schema=37),r<38&&(Xa(t,ti),Ya(t,ti),t.schema=38),r<39&&(function(e){e.scene.objects.traverse((e,t)=>{t.events.forEach(e=>{"GameControl"===e.type&&(e.navmesh=Ka.defaultDataThirdPerson.navmesh)})})}(t),t.schema=39),r<40&&(function(e){e.scene.styles||(e.scene.styles=ua.defaultData())}(t),t.schema=40),r<41&&(function(e){void 0===e.scene.environment.ambientLight.occlusion&&(e.scene.environment.ambientLight.occlusion=!1),void 0===e.scene.environment.ambientLight.aoFullRes&&(e.scene.environment.ambientLight.aoFullRes=!1),void 0===e.scene.environment.ambientLight.radius&&(e.scene.environment.ambientLight.radius=256),void 0===e.scene.environment.ambientLight.bias&&(e.scene.environment.ambientLight.bias=.5),void 0===e.scene.environment.ambientLight.aoColor&&(e.scene.environment.ambientLight.aoColor={r:.19607843137254902,g:.19607843137254902,b:.19607843137254902}),Xa(e,ii),Ya(e,ii)}(t),t.schema=41),r<42&&(function(e){e.scene.objects.traverse((e,t)=>{t.events.forEach(e=>{"GameControl"===e.type&&Object.assign(e.gameActions,{run:new D})})})}(t),t.schema=42),r<43&&(function(e){e.scene.objects.traverse((e,t)=>{t.events.forEach(e=>{"GameControl"===e.type&&(e.keyAssignments=[...e.keyAssignments,["run","⇧"],["none","Ctrl"]])})})}(t),t.schema=43),r<99){Xa(t,ni),Ya(t,ni),null===t.scene.publish.playCamera&&(t.scene.publish.playCamera=Ot);let e=te(t.scene.objects),r=t.scene.objects;t.scene.publish.playPage=At,r.insertBefore(null,null,[{id:At,data:{...ra.defaultData,backgroundColor:t.scene.backgroundColor,fog:t.scene.fog,postprocessing:t.scene.postprocessing,ao:qa(t.scene.environment.ambientLight,"occlusion","aoFullRes","radius","bias","aoColor"),publish:{playCamera:t.scene.publish.playCamera,gameControlObject:t.scene.publish.gameControlObject},shadow:qa(t.scene.environment.ambientLight,"softShadowQuality"),globalPhysics:{...Ir.defaultData,...qa(t.scene.environment,"usePhysics","gravity")},camera:te(t.scene.ownerCamera)??ra.defaultData.camera,name:"Scene"},children:[]}]);for(let t of e)t.id!==da.TRASH_CAN_ID&&r.move(At,t.fi,t.id);let a=0,i=0;t.shared.penumbraSize&&t.scene.objects.traverse((e,r)=>{"DirectionalLight"===r.type?(r.penumbraSize=t.shared.penumbraSize[Math.min(a,2)],a+=1):"SpotLight"===r.type&&(r.penumbraSize=t.shared.penumbraSize[3+Math.min(i,1)],i+=1),(void 0===r.physics||null===r.physics)&&"Instance"!==r.type&&(r.physics={},Object.assign(r.physics,Rt.defaultData)),void 0!==r.physics&&null!==r.physics&&(r.physics.enabled=r.collision??"visibility",delete r.collision)}),t.schema=99}}(t,r),r<100&&(void 0===t.scene.publish.joystickSizeAndXYOffset&&(t.scene.publish.joystickSizeAndXYOffset=oa.defaultData.joystickSizeAndXYOffset),t.schema=100),r<101&&(Xa(t,oi),Ya(t,oi),t.schema=101),r<102&&(function(e){e.scene.objects.traverse((e,t)=>{let r=t.geometry;r&&"PathGeometry"===r.type&&(r.extrusion.capType="flat",r.extrusion.bevel=50,r.extrusion.bevelSides=6,"Custom"===r.extrusion.shape.type&&(r.extrusion.shape.shapeQuality="low"))})}(t),t.schema=102),r<104&&(t.shared.catelogs=new f,t.shared.lib=va.defaultData(),t.schema=104),r<105&&(function(e){e.shared.variables=i({},f.prototype)}(t),t.scene.objects.traverse((e,t)=>{ui(t)}),t.schema=105);for(let e of Object.values(t.shared.lib.components))fi(e);r<106&&(function(e){let t=te(e.shared.variables);e.shared.variables=i(Object.entries(t??{}).map(([e,t],r)=>({fi:r,id:e,data:t})),D.prototype)}(t),t.schema=106),r<107&&(t.shared.lib.variables=va.defaultData().variables,t.schema=107),r<109&&(function(e){e.shared.particles=i({},f.prototype),e.shared.lib&&(e.shared.lib.particles=va.defaultData().particles)}(t),t.schema=109),r<110&&(function(e){e.scene.objects.traverse((e,t)=>{"Particle"===t.type&&"number"==typeof t.renderMaterial.size&&Object.assign(t.renderMaterial,{size:[t.renderMaterial.size,t.renderMaterial.size]})})}(t),t.schema=110),r<111&&(t.scene.objects.traverse((e,t)=>{!function(e){Array.isArray(te(e.events))&&e.events?.forEach(e=>{"disabled"in e||(e.disabled=!1),("MouseDown"===e.type||"MouseUp"===e.type||"MousePress"===e.type)&&(e.mode=e.mode||"Object")})}(t)}),t.schema=111),r<112&&(function(e){e.scene.objects.traverse((e,t)=>{"Page"===t.type&&(t.postprocessing.depthOfField.focusDistance=100,t.postprocessing.depthOfField.focalLength=20,t.postprocessing.depthOfField.bokehScale=5)})}(t),t.schema=112),r<113&&(function(e){e.scene.objects.traverse((e,t)=>{!1!==Array.isArray(te(t.events))&&t.events?.forEach(e=>{let t=e.runMode;"MouseDown"===e.type||"MouseUp"===e.type||"KeyDown"===e.type||"KeyUp"===e.type||"Collision"===e.type||"Trigger"===e.type?e.actions?.forEach(e=>{"Transition"===e.type&&(e.runMode=t??"Repeat"),("Animation"===e.type||"SwitchCamera"===e.type)&&(e.runMode="Toggle"===t?"Toggle":"Normal")}):"MouseHover"===e.type||"MousePress"===e.type||"KeyPress"===e.type?e.actions?.forEach(e=>{("Transition"===e.type||"Animation"===e.type||"SwitchCamera"===e.type)&&(e.runMode="Toggle")}):"GameControl"===e.type?(delete e.actions,Object.keys(e.gameActions).forEach(t=>{e.gameActions[t]?.forEach(e=>{"Transition"===e.type&&(e.runMode="Repeat"),"Animation"===e.type&&(e.runMode="Normal")})})):"DragDrop"===e.type?(delete e.actions,e.dragDropActions?.drag?.forEach(e=>{("Transition"===e.type||"Animation"===e.type||"SwitchCamera"===e.type)&&(e.runMode="Toggle")}),e.dragDropActions?.drop?.forEach(e=>{("Transition"===e.type||"Animation"===e.type||"SwitchCamera"===e.type)&&(e.runMode="Toggle")})):"Resize"===e.type?(delete e.actions,e.breakpoints?.forEach(e=>{e.actions?.forEach(e=>{("Transition"===e.type||"Animation"===e.type||"SwitchCamera"===e.type)&&(e.runMode="Toggle")})})):"Start"===e.type?e.actions?.forEach(e=>{"Transition"===e.type&&(e.runMode="Once"),("Animation"===e.type||"SwitchCamera"===e.type)&&(e.runMode="Normal")}):"VariableChange"===e.type||"Scroll"===e.type?e.actions?.forEach(e=>{"Transition"===e.type&&(e.runMode="Repeat"),("Animation"===e.type||"SwitchCamera"===e.type)&&(e.runMode="Normal")}):"Conditional"===e.type&&(delete e.actions,e.inActions?.forEach(e=>{"Transition"===e.type&&(e.runMode="Repeat"),("Animation"===e.type||"SwitchCamera"===e.type)&&(e.runMode="Normal")}),e.outActions?.forEach(e=>{"Transition"===e.type&&(e.runMode="Repeat"),("Animation"===e.type||"SwitchCamera"===e.type)&&(e.runMode="Normal")}))})})}(t),t.schema=113),r<114&&(void 0===t.scene.publish.settings.web.imageQuality&&(t.scene.publish.settings.web.imageQuality=70),t.schema=114),r<115&&(function(e){e.shared.userAPIs=i({},f.prototype),e.shared.userWebhooks=i({},f.prototype),e.shared.lib&&(e.shared.lib.userAPIs=va.defaultData().userAPIs,e.shared.lib.userWebhooks=va.defaultData().userWebhooks)}(t),t.schema=115),r<116&&(function(e){void 0===e.scene.publish.settings.videoStatic&&(e.scene.publish.settings.videoStatic=oa.defaultData.settings.videoStatic)}(t),t.schema=116),r<117&&(void 0===t.scene.publish.settings.web.pixelRatioMobile&&(t.scene.publish.settings.web.pixelRatioMobile=0),void 0===t.scene.publish.settings.web.pixelRatioDesktop&&(t.scene.publish.settings.web.pixelRatioDesktop=0),t.schema=117),r<118&&(t.shared.timelineAnimations=i({},f.prototype),t.scene.objects.traverse((e,t)=>{gi(t)}),t.schema=118),r<119&&(t.scene.publish.settings.videoStatic.format=Da.defaultData.scene.publish.settings.videoStatic.format,t.scene.publish.settings.videoStatic.imageFormat=Da.defaultData.scene.publish.settings.videoStatic.imageFormat,t.schema=119),r<120&&(t.scene.publish.settings.image.colorSpace="display-p3",t.scene.publish.settings.videoStatic.colorSpace="display-p3",t.schema=120),r<121&&(t.scene.objects.traverse((e,t)=>{bi(t),"Page"===t.type&&void 0!==t.camera&&bi(t.camera)}),t.schema=121),r<122&&(delete t.scene.publish.settings.video,t.scene.publish.orbitControls.rotationSpeed=Da.defaultData.scene.publish.orbitControls.rotationSpeed,t.schema=122),r<123&&(t.scene.objects.traverse((e,t)=>{"Page"===t.type&&void 0===t.sky&&(t.sky=jr.defaultData)}),t.schema=123),r<124&&(r>=123&&t.scene.objects.traverse((e,t)=>{let r=t.sky;"Page"===t.type&&void 0!==r&&("number"==typeof r.exposure&&(r.exposure=Math.round(r.exposure/5e-4*1e4)/1e4),void 0===r.lighting&&(r.lighting=jr.defaultData.lighting))}),t.schema=124),r<125&&(t.scene.objects.traverse((e,t)=>{let r=t.sky;"Page"===t.type&&void 0!==r&&void 0===r.lightingIntensity&&(r.lightingIntensity=jr.defaultData.lightingIntensity)}),t.schema=125),r<126&&(t.scene.objects.traverse((e,t)=>{let r=t.sky;"Page"===t.type&&void 0!==r&&(void 0===r.mode&&(r.mode="physical"),void 0===r.hdri?r.hdri={...jr.defaultData.hdri}:(void 0===r.hdri.blur&&(r.hdri.blur=jr.defaultData.hdri.blur),Array.isArray(r.hdri.rotation)&&(r.hdri.rotation=r.hdri.rotation[1]??0)))}),t.schema=126),r<127&&(t.scene.objects.traverse((e,t)=>{let r=t.sky;"Page"===t.type&&void 0!==r?.hdri&&void 0===r.hdri.showBackground&&(r.hdri.showBackground=!0)}),t.schema=127),r<128&&(t.scene.objects.traverse((e,t)=>{let r=t.sky;"Page"===t.type&&void 0!==r&&void 0===r.lightingQuality&&(r.lightingQuality="full")}),t.schema=128),r<129&&(t.scene.objects.traverse((e,t)=>{if("Page"===t.type){void 0===t.camera&&(t.camera=ra.defaultData.camera);let e=t.camera;e.far=1e5,e.perspective?e.perspective.near=70:e.perspective={near:70,fov:45,zoom:1}}}),t.schema=129),r<130&&(hi(t,yi),t.schema=130)}}export{r as a,a as b,i as c,u as d,f as e,v as f,D as g,S as h,_ as i,M as j,T as k,E as l,J as m,ee as n,Y as o,ut as p,Aa as q,Wa as r,Ea as s,Ia as t,za as u,Ua as v,Ot as w,Ct as x,jt as y,dt as z,pt as A,ht as B,mt as C,bt as D,wt as E,Bt as F,Pt as G,Mt as H,Tt as I,zt as J,nt as K,st as L,Dr as M,zr as N,Ur as O,Fr as P,Vr as Q,Gr as R,Hr as S,kt as T,Zt as U,Ht as V,Wt as W,Jt as X,er as Y,tr as Z,rr as _,ar as $,ir as aa,nr as ba,or as ca,sr as da,Yt as ea,Qt as fa,dr as ga,pr as ha,ur as ia,cr as ja,hr as ka,vr as la,wr as ma,yr as na,gr as oa,Or as pa,Ar as qa,Nr as ra,Pr as sa,xr as ta,Ir as ua,Oa as va,Kr as wa,Wr as xa,$r as ya,Qr as za,Jr as Aa,ea as Ba,ta as Ca,ra as Da,ia as Ea,ca as Fa,fa as Ga,ya as Ha,wa as Ia,Da as Ja,Na as Ka,Ka as La,ci as Ma,di as Na,pi as Oa,fi as Pa,hi as Qa,vi as Ra,wi as Sa};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(n){return!0===n?.isParticleSystem}function t(n){return!0===n?.isHairSystem}function e(n){return!0===n?.isShapeBlendEntity}function i(n){return!0===n?.isPathObject}function r(n){return!0===n?.isObject2D}function s(n){return!0===n?.isUIObject}function u(n){return!0===n?.isCloner}function c(n){return!0===n?.isClone}function a(n){return!0===n?.isComponentObject}export{n as a,t as b,e as c,i as d,r as e,s as f,u as g,c as h,a as i};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,timelineChangeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0,rewind:!0},n={duration:1e3,delay:0,endDelay:0,startOnceDelay:0,pingPongDelayCorrection:0,pingPongEndDelayCorrection:0,easing:"easeOutElastic(1, .5)",round:0},r=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],t={CSS:{},springs:{}};function a(e,n,r){return Math.min(Math.max(e,n),r)}function o(e,n){return e.indexOf(n)>-1}function i(e,n){return e.apply(null,n)}var u={arr:function(e){return Array.isArray(e)},obj:function(e){return o(Object.prototype.toString.call(e),"Object")},pth:function(e){return u.obj(e)&&Object.prototype.hasOwnProperty.call(e,"totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return!("isNode"in e)&&(e.nodeType||u.svg(e))},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return typeof e>"u"},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return u.hex(e)||u.rgb(e)||u.hsl(e)},key:function(r){return!Object.prototype.hasOwnProperty.call(e,r)&&!Object.prototype.hasOwnProperty.call(n,r)&&"targets"!==r&&"keyframes"!==r}};function c(e){var n=/\(([^)]+)\)/.exec(e);return n?n[1].split(",").map(function(e){return parseFloat(e)}):[]}function l(e,n){var r=c(e),o=a(u.und(r[0])?1:r[0],.1,100),i=a(u.und(r[1])?100:r[1],.1,100),l=a(u.und(r[2])?10:r[2],.1,100),s=a(u.und(r[3])?0:r[3],.1,100),f=Math.sqrt(i/o),d=l/(2*Math.sqrt(i*o)),p=d<1?f*Math.sqrt(1-d*d):0,g=d<1?(d*f-s)/p:-s+f;function v(e){var r=n?n*e/1e3:e;return r=d<1?Math.exp(-r*d*f)*(1*Math.cos(p*r)+g*Math.sin(p*r)):(1+g*r)*Math.exp(-r*f),0===e||1===e?e:1-r}return n?v:function(){var n=t.springs[e];if(n)return n;for(var r=1/6,a=0,o=0;;)if(1===v(a+=r)){if(++o>=16)break}else o=0;var i=a*r*1e3;return t.springs[e]=i,i}}function s(e){return void 0===e&&(e=10),function(n){return Math.ceil(a(n,1e-6,1)*e)*(1/e)}}var f,d,p=function(){var e=.1;function n(e,n){return 1-3*n+3*e}function r(e,n){return 3*n-6*e}function t(e){return 3*e}function a(e,a,o){return((n(a,o)*e+r(a,o))*e+t(a))*e}function o(e,a,o){return 3*n(a,o)*e*e+2*r(a,o)*e+t(a)}return function(n,r,t,i){if(0<=n&&n<=1&&0<=t&&t<=1){var u=new Float32Array(11);if(n!==r||t!==i)for(var c=0;c<11;++c)u[c]=a(c*e,n,t);return function(c){return n===r&&t===i||0===c||1===c?c:a(function(r){for(var i=0,c=1;10!==c&&u[c]<=r;++c)i+=e;--c;var l=i+(r-u[c])/(u[c+1]-u[c])*e,s=o(l,n,t);return s>=.001?function(e,n,r,t){for(var i=0;i<4;++i){var u=o(n,r,t);if(0===u)return n;n-=(a(n,r,t)-e)/u}return n}(r,l,n,t):0===s?l:function(e,n,r,t,o){var i,u,c=0;do{(i=a(u=n+(r-n)/2,t,o)-e)>0?r=u:n=u}while(Math.abs(i)>1e-7&&++c<10);return u}(r,i,i+e,n,t)}(c),r,i)}}}}(),g=(f={linear:function(){return function(e){return e}}},d={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var n,r=4;e<((n=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((3*n-2)/22-e,2)}},Elastic:function(e,n){void 0===e&&(e=1),void 0===n&&(n=.5);var r=a(e,1,10),t=a(n,.1,2);return function(e){return 0===e||1===e?e:-r*Math.pow(2,10*(e-1))*Math.sin((e-1-t/(2*Math.PI)*Math.asin(1/r))*(2*Math.PI)/t)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(e,n){d[e]=function(){return function(e){return Math.pow(e,n+2)}}}),Object.keys(d).forEach(function(e){var n=d[e];f["easeIn"+e]=n,f["easeOut"+e]=function(e,r){return function(t){return 1-n(e,r)(1-t)}},f["easeInOut"+e]=function(e,r){return function(t){return t<.5?n(e,r)(2*t)/2:1-n(e,r)(-2*t+2)/2}}}),f);function v(e,n){if(u.fnc(e))return e;var r=e.split("(")[0],t=g[r],a=c(e);switch(r){case"spring":return l(e,n);case"cubicBezier":return i(p,a);case"steps":return i(s,a);default:return i(t,a)}}function h(e){try{return document.querySelectorAll(e)}catch{return}}function m(e,n){for(var r=e.length,t=arguments.length>=2?arguments[1]:void 0,a=[],o=0;o<r;o++)if(o in e){var i=e[o];n.call(t,i,o,e)&&a.push(i)}return a}function y(e){return e.reduce(function(e,n){return e.concat(u.arr(n)?y(n):n)},[])}function b(e){return u.arr(e)?e:(u.str(e)&&(e=h(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function w(e,n){return e.some(function(e){return e===n})}function x(e){var n={};for(var r in e)n[r]=e[r];return n}function C(e,n){var r=x(e);for(var t in e)r[t]=Object.prototype.hasOwnProperty.call(n,t)?n[t]:e[t];return r}function M(e,n){var r=x(e);for(var t in n)r[t]=u.und(e[t])?n[t]:e[t];return r}function D(e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(n)return n[1]}function P(e,n){return u.fnc(e)?e(n.target,n.id,n.total):e}function O(e,n){return e.getAttribute(n)}function k(e,n,r){if(w([r,"deg","rad","turn"],D(n)))return n;var a=t.CSS[n+r];if(!u.und(a))return a;var o=document.createElement(e.tagName),i=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;i.appendChild(o),o.style.position="absolute",o.style.width=100+r;var c=100/o.offsetWidth;i.removeChild(o);var l=c*parseFloat(n);return t.CSS[n+r]=l,l}function E(e,n,r){if(n in e.style){var t=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=e.style[n]||getComputedStyle(e).getPropertyValue(t)||"0";return r?k(e,a,r):a}}function I(e,n){return u.dom(e)&&!u.inp(e)&&(O(e,n)||u.svg(e)&&e[n])?"attribute":u.dom(e)&&w(r,n)?"transform":u.dom(e)&&"transform"!==n&&E(e,n)?"css":null!=e[n]?"object":void 0}function B(e){if(u.dom(e)){for(var n,r=e.style.transform||"",t=/(\w+)\(([^)]*)\)/g,a=new Map;n=t.exec(r);)a.set(n[1],n[2]);return a}}function A(e,n,r,t){switch(I(e,n)){case"transform":return function(e,n,r,t){var a=o(n,"scale")?1:0+function(e){return o(e,"translate")||"perspective"===e?"px":o(e,"rotate")||o(e,"skew")?"deg":void 0}(n),i=B(e).get(n)||a;return r&&(r.transforms.list.set(n,i),r.transforms.last=n),t?k(e,i,t):i}(e,n,t,r);case"css":return E(e,n,r);case"attribute":return O(e,n);default:return e[n]||0}}function S(e,n){var r=/^(\*=|\+=|-=)/.exec(e);if(!r)return e;var t=D(e)||0,a=parseFloat(n),o=parseFloat(e.replace(r[0],""));switch(r[0][0]){case"+":return a+o+t;case"-":return a-o+t;case"*":return a*o+t}}function T(e,n){if(u.col(e))return function(e){return u.rgb(e)?function(e){var n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return n?"rgba("+n[1]+",1)":e}(e):u.hex(e)?function(e){var n=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,n,r,t){return n+n+r+r+t+t}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return"rgba("+parseInt(r[1],16)+","+parseInt(r[2],16)+","+parseInt(r[3],16)+",1)"}(e):u.hsl(e)?function(e){var n,r,t,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),o=parseInt(a[1],10)/360,i=parseInt(a[2],10)/100,u=parseInt(a[3],10)/100,c=a[4]||1;function l(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(n-e)*r:r<.5?n:r<2/3?e+(n-e)*(2/3-r)*6:e}if(0==i)n=r=t=u;else{var s=u<.5?u*(1+i):u+i-u*i,f=2*u-s;n=l(f,s,o+1/3),r=l(f,s,o),t=l(f,s,o-1/3)}return"rgba("+255*n+","+255*r+","+255*t+","+c+")"}(e):void 0}(e);if(/\s/g.test(e))return e;var r=D(e),t=r?e.substr(0,e.length-r.length):e;return n?t+n:t}function F(e,n){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function N(e){for(var n,r=e.points,t=0,a=0;a<r.numberOfItems;a++){var o=r.getItem(a);a>0&&(t+=F(n,o)),n=o}return t}function j(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*O(e,"r")}(e);case"rect":return function(e){return 2*O(e,"width")+2*O(e,"height")}(e);case"line":return function(e){return F({x:O(e,"x1"),y:O(e,"y1")},{x:O(e,"x2"),y:O(e,"y2")})}(e);case"polyline":return N(e);case"polygon":return function(e){var n=e.points;return N(e)+F(n.getItem(n.numberOfItems-1),n.getItem(0))}(e)}}function L(e,n){var r=n||{},t=r.el||function(e){for(var n=e.parentNode;u.svg(n)&&u.svg(n.parentNode);)n=n.parentNode;return n}(e),a=t.getBoundingClientRect(),o=O(t,"viewBox"),i=a.width,c=a.height,l=r.viewBox||(o?o.split(" "):[0,0,i,c]);return{el:t,viewBox:l,x:l[0]/1,y:l[1]/1,w:i/l[2],h:c/l[3]}}function q(e,n){function r(r){void 0===r&&(r=0);var t=n+r>=1?n+r:0;return e.el.getPointAtLength(t)}var t=L(e.el,e.svg),a=r(),o=r(-1),i=r(1);switch(e.property){case"x":return(a.x-t.x)*t.w;case"y":return(a.y-t.y)*t.h;case"angle":return 180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI}}function $(e,n){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,t=T(u.pth(e)?e.totalLength:e,n)+"";return{original:t,numbers:t.match(r)?t.match(r).map(Number):[0],strings:u.str(e)||n?t.split(r):[]}}function R(e){return m(e?y(u.arr(e)?e.map(b):b(e)):[],function(e,n,r){return r.indexOf(e)===n})}function U(e){var n=R(e);return n.map(function(e,r){return{target:e,id:r,total:n.length,transforms:{list:B(e)}}})}function X(e,n){var r=x(n);if(/^spring/.test(r.easing)&&(r.duration=l(r.easing)),u.arr(e)){var t=e.length;2!==t||u.obj(e[0])?u.fnc(n.duration)||(r.duration=n.duration/t):e={value:e}}var a=u.arr(e)?e:[e];return a.map(function(e,r){var t=u.obj(e)&&!u.pth(e)?e:{value:e};return u.und(t.delay)&&(t.delay=r?0:n.delay),u.und(t.endDelay)&&(t.endDelay=r===a.length-1?n.endDelay:0),t}).map(function(e){return M(e,r)})}var Y={css:function(e,n,r){return e.style[n]=r},attribute:function(e,n,r){return e.setAttribute(n,r)},object:function(e,n,r){return e[n]=r},transform:function(e,n,r,t,a){if(t.list.set(n,r),n===t.last||a){var o="";t.list.forEach(function(e,n){o+=n+"("+e+") "}),e.style.transform=o}}};function Z(e,n){U(e).forEach(function(e){for(var r in n){var t=P(n[r],e),a=e.target,o=D(t),i=A(a,r,o,e),u=S(T(t,o||D(i)),i),c=I(a,r);Y[c](a,r,u,e.transforms,!0)}})}function Q(e,n){return m(y(e.map(function(e){return n.map(function(n){return function(e,n){var r=I(e.target,n.name);if(r){var t=function(e,n){var r;return e.tweens.map(function(t){var a=function(e,n){var r={};for(var t in e){var a=P(e[t],n);u.arr(a)&&1===(a=a.map(function(e){return P(e,n)})).length&&(a=a[0]),r[t]=a}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}(t,n),o=a.value,i=u.arr(o)?o[1]:o,c=D(i),l=A(n.target,e.name,c,n),s=r?r.to.original:l,f=u.arr(o)?o[0]:s,d=D(f)||D(l),p=c||d;return u.und(i)&&(i=s),a.from=$(f,p),a.to=$(S(i,f),p),a.start=r?r.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=v(a.easing,a.duration),a.isPath=u.pth(o),a.isColor=u.col(a.from.original),a.isColor&&(a.round=1),r=a,a})}(n,e),a=t[t.length-1];return{type:r,property:n.name,animatable:e,tweens:t,duration:a.end,delay:t[0].delay,endDelay:a.endDelay}}}(e,n)})})),function(e){return!u.und(e)})}function V(e,n){var r=e.length,t=function(e){return e.timelineOffset?e.timelineOffset:0},a={};return a.duration=r?Math.max.apply(Math,e.map(function(e){let n=e.startOnceDelay??0,r=e.pingPongDelayCorrection??0,a=e.pingPongEndDelayCorrection??0;return t(e)+n+r+a+e.duration*(e.loop??1)})):n.duration,a.delay=r?Math.min.apply(Math,e.map(function(e){let n=e.startOnceDelay??0,r=e.pingPongDelayCorrection??0;return t(e)+n+r+e.delay})):n.delay,a.endDelay=r?a.duration-Math.max.apply(Math,e.map(function(e){let n=e.startOnceDelay??0,r=e.pingPongDelayCorrection??0,a=e.pingPongEndDelayCorrection??0;return t(e)+n+r+e.duration*(e.loop??1)-e.endDelay-a})):n.endDelay,a}var z,H=0,G=[],W=[],J=function(){let e=0,n=!0;function r(e){let t=G.length;if(t){let a=0;for(;a<t;){let n=G[a];n.paused?(G.splice(a,1),t--):(n.tick(e),a++)}n&&(z=requestAnimationFrame(r))}else z&&(cancelAnimationFrame(z),z=null)}return{get isUsingInternalRaf(){return n},set isUsingInternalRaf(e){n=e},play:function(){e=performance.now(),z=requestAnimationFrame(r)},update:function(n){e+=n,r(e)}}}();function K(e){!J.isUsingInternalRaf||(document.hidden?(G.forEach(function(n){return n.pause(e.timeStamp)}),W=G.slice(0),_.running=G=[]):(W.forEach(function(n){return n.play(e.timeStamp)}),W=[]))}function _(r){void 0===r&&(r={});var t,o,i=0,c=0,l=0,s=0,f=null;function d(e){var n=window.Promise&&new Promise(function(e){return f=e});return e.finished=n,n}var p=function(r){var t=C(e,r),a=C(n,r),o=function(e,n){var r=[],t=n.keyframes;for(var a in t&&(n=M(function(e){for(var n=m(y(e.map(function(e){return Object.keys(e)})),function(e){return u.key(e)}).reduce(function(e,n){return e.indexOf(n)<0&&e.push(n),e},[]),r={},t=function(t){var a=n[t];r[a]=e.map(function(e){var n={};for(var r in e)u.key(r)?r==a&&(n.value=e[r]):n[r]=e[r];return n})},a=0;a<n.length;a++)t(a);return r}(t),n)),n)u.key(a)&&r.push({name:a,tweens:X(n[a],e)});return r}(a,r),i=U(r.targets),c=Q(i,o),l=V(c,a),s=H;return H++,M(t,{id:s,children:[],animatables:i,animations:c,duration:l.duration,delay:l.delay,endDelay:l.endDelay,startOnceDelay:a.startOnceDelay,pingPongDelayCorrection:a.pingPongDelayCorrection,pingPongEndDelayCorrection:a.pingPongEndDelayCorrection})}(r);function g(){var e=p.direction;"alternate"!==e&&(p.direction="normal"!==e?"normal":"reverse"),p.reversed=!p.reversed,o.forEach(function(e){(1===e.loop||e.loop%2==0)&&(e.reversed=p.reversed)})}function v(e,n,r=!1){n&&(p.reversed?n.seek(n.duration*n.loop-(e-n.timelineOffset-n.pingPongDelayCorrection),r):n.seek(e-n.timelineOffset-n.startOnceDelay-n.pingPongDelayCorrection,r))}function h(e){var n=0,r=p.animations,t=r.length;for("alternate"!==p.direction&&"alternate"===p.parent?.direction?!1===p.parent?.rewind&&!0===p.reversePlayback&&!1===p.rewind&&(e=p.parent?.reversed&&"alternate"===p.direction?p.duration-p.delay+p.endDelay-e:p.duration+p.delay-p.endDelay-e):x(!1,p.parent?.rewind,p.rewind,p.parent?.reversePlayback,p.reversePlayback)&&(e=p.parent?.reversed&&"alternate"===p.direction?p.duration-p.delay+p.endDelay-e:p.duration+p.delay-p.endDelay-e);n<t;){var o=r[n],i=o.animatable,u=o.tweens,c=u.length-1,l=u[c];let t;c&&(l=m(u,function(n){return e<n.end})[0]||l),t=p.parent?.reversed&&"alternate"===p.direction?a(e-l.start-l.endDelay,0,l.duration)/l.duration:a(e-l.start-l.delay,0,l.duration)/l.duration;for(var s=isNaN(t)?1:l.easing(t),f=l.to.strings,d=l.round,g=[],v=l.to.numbers.length,h=void 0,y=0;y<v;y++){var b=void 0;let e,n;"alternate"!==p.direction?!1===p.parent?.rewind&&!0===p.reversePlayback&&!1===p.rewind?(e=l.to.numbers[y],n=l.from.numbers[y]||0):(n=l.to.numbers[y],e=l.from.numbers[y]||0):x(!0,p.parent?.rewind,p.rewind,p.parent?.reversePlayback,p.reversePlayback)?(e=l.to.numbers[y],n=l.from.numbers[y]||0):(n=l.to.numbers[y],e=l.from.numbers[y]||0),b=l.isPath?q(l.value,s*n):e+s*(n-e),d&&(l.isColor&&y>2||(b=Math.round(b*d)/d)),g.push(b)}var w=f.length;if(w){h=f[0];for(var C=0;C<w;C++){var M=f[C+1],D=g[C];isNaN(D)||(h+=M?D+M:D+" ")}}else h=g[0];Y[o.type](i.target,o.property,h,i.transforms),o.currentValue=h,n++}}function b(e){p[e]&&!p.passThrough&&p[e](p)}d(p);let w={0:!1,1:!0,2:!1,3:!0,4:!1,5:!1,6:!1,7:!1,8:!1,9:!0,10:!0,11:!1,12:!1,13:!1,14:!0,15:!0,16:!1,17:!0,18:!0,19:!1,20:!1,21:!1,22:!0,23:!0,24:!1,25:!0,26:!1,27:!0,28:!1,29:!1,30:!1,31:!1};function x(e,n,r,t,a){return w[e<<4|n<<3|r<<2|t<<1|a]}function D(e,n=!1){var r=p.duration;let t=p.delay,u=r-p.endDelay;p.parent?.reversed&&"alternate"===p.direction&&(t=p.endDelay,u=r-p.delay);var c=function(e){return p.reversed?p.duration-e:e}(e);if(p.progress=a(c/r*100,0,100),n||(p.reversePlayback=c<p.currentTime),s&&function(e,n=!1){if(p.reversed)for(var r=s;r--;)v(e,o[r],n);else for(var t=0;t<s;t++)v(e,o[t],n)}(c,n),!p.began&&c>=t&&(p.began=!0),!p.loopBegan&&p.currentTime>0&&(p.loopBegan=!0,b("loopBegin")),(p.reversed||c>=0)&&c<=t&&0!==p.currentTime&&(h(0),b("change")),(c>=u&&p.currentTime!==r+p.pingPongDelayCorrection||!r)&&(h(r),b("change")),c>t&&c<u?(p.changeBegan||(p.changeBegan=!0,p.changeCompleted=!1,b("changeBegin")),h(c),b("change")):p.changeBegan?(p.changeCompleted=!0,p.changeBegan=!1,b("change"),s&&b("timelineChangeComplete")):p.began&&c>u&&b("changeComplete"),p.currentTime=a(c,0,r+p.pingPongDelayCorrection),p.began&&b("update"),e>=r)if(p.remaining&&!0!==p.remaining&&p.remaining--,p.remaining){i+=s?p.duration/_.speed:p.duration;for(let e of o)e.setStartTime(0),e.remaining=e.loop;b("loopComplete"),p.loopBegan=!1,"alternate"===p.direction?g():s&&(p.direction="normal",p.reversed=!1,o.forEach(function(e){return e.reversed=!1}))}else p.paused=!0,p.completed||(p.completed=!0,b("loopComplete"),b("complete"),!p.passThrough&&"Promise"in window&&(f(),d(p)))}return p.reset=function(){var e=p.direction;p.passThrough=!1,p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.loopBegan=!1,p.changeBegan=!1,p.completed=!1,p.changeCompleted=!1,p.reversed="reverse"===e,p.remaining=p.loop,o=p.children;for(var n=s=o.length;n--;)p.children[n].reset();h(p.reversed?p.duration:0)},p.setStartTime=function(e){i=e},p.set=function(e,n){return Z(e,n),p},p.tick=function(e){l=e,i||(i=l),D((l+(c-i))*_.speed)},p.seek=function(e,n=!1){D(e-i,n)},p.pause=function(e){p.paused=!0,s&&(t=e??performance.now())},p.play=function(e){!p.paused||(p.completed&&p.reset(),p.paused=!1,G.push(p),s&&void 0!==t&&(i+=(e??performance.now())-t),!z&&J.isUsingInternalRaf&&J.play())},p.reverse=function(e=0){g(),p.completed=!p.reversed,i=void 0,c=e},p.restart=function(){p.reset(),i=void 0,c=0,p.play()},p.destroy=function(){p.paused=!0;var e=G.indexOf(p);e>-1&&G.splice(e,1),(e=W.indexOf(p))>-1&&W.splice(e,1),p.children&&p.children.forEach(function(e){e.destroy&&e.destroy()}),p.animations=[],p.animatables=[],p.children=[],p.update=null,p.begin=null,p.complete=null,p.loopBegin=null,p.loopComplete=null,p.change=null,p.changeBegin=null,p.changeComplete=null,p.timelineChangeComplete=null,p.parent=null,f=null,o=[],s=0},p.reset(),p.autoplay&&p.play(),p}function ee(e,n){for(var r=n.length;r--;)w(e,n[r].animatable.target)&&n.splice(r,1)}_.version="3.2.0",_.speed=1,_.running=G,_.remove=function(e){for(var n=R(e),r=G.length;r--;){var t=G[r],a=t.animations,o=t.children;ee(n,a);for(var i=o.length;i--;){var u=o[i],c=u.animations;ee(n,c),!c.length&&!u.children.length&&o.splice(i,1)}!a.length&&!o.length&&t.pause()}},_.get=A,_.set=Z,_.convertPx=k,_.path=function(e,n){var r=u.str(e)?h(e)[0]:e,t=n||100;return function(e){return{property:e,el:r,svg:L(r),totalLength:j(r)*(t/100)}}},_.setDashoffset=function(e){var n=j(e);return e.setAttribute("stroke-dasharray",n),n},_.stagger=function(e,n){void 0===n&&(n={});var r=n.direction||"normal",t=n.easing?v(n.easing):null,a=n.grid,o=n.axis,i=n.from||0,c="first"===i,l="center"===i,s="last"===i,f=u.arr(e),d=parseFloat(f?e[0]:e),p=f?parseFloat(e[1]):0,g=D(f?e[1]:e)||0,h=n.start||0+(f?d:0),m=[],y=0;return function(e,n,u){if(c&&(i=0),l&&(i=(u-1)/2),s&&(i=u-1),!m.length){for(var v=0;v<u;v++){if(a){var b=l?(a[0]-1)/2:i%a[0],w=l?(a[1]-1)/2:Math.floor(i/a[0]),x=b-v%a[0],C=w-Math.floor(v/a[0]),M=Math.sqrt(x*x+C*C);"x"===o&&(M=-x),"y"===o&&(M=-C),m.push(M)}else m.push(Math.abs(i-v));y=Math.max.apply(Math,m)}t&&(m=m.map(function(e){return t(e/y)*y})),"reverse"===r&&(m=m.map(function(e){return o?e<0?-1*e:-e:Math.abs(y-e)}))}return h+(f?(p-d)/y:d)*(Math.round(100*m[n])/100)+g}},_.timeline=function(e){void 0===e&&(e={});var r=_(e);return r.duration=0,r.add=function(t,a){var o=G.indexOf(r),i=r.children;function c(e){e.passThrough=!0}o>-1&&G.splice(o,1);for(var l=0;l<i.length;l++)c(i[l]);var s=M(t,C(n,e));s.targets=s.targets||e.targets;var f=r.duration;s.autoplay=!1,s.timelineOffset=u.und(a)?f:S(a,f),c(r);var d=_(s);c(d),i.push(d),d.parent=r;var p=V(i,e);return r.delay=p.delay,r.endDelay=p.endDelay,r.duration=p.duration,!0===d.loop&&(r.duration=1/0),r.seek(0),r.reset(),r.autoplay&&r.play(),r},r},_.easing=v,_.penner=g,_.random=function(e,n){return Math.floor(Math.random()*(n-e+1))+e},_.removeAll=function(){G.forEach(function(e){e.destroy&&e.destroy()}),G=[],W=[],_.running=G,z&&(cancelAnimationFrame(z),z=null)},_.clearCache=function(){t.CSS={},t.springs={}},_.init=function(){typeof document<"u"&&(document.removeEventListener("visibilitychange",K),document.addEventListener("visibilitychange",K))},_.dispose=function(e){_.removeAll(),_.clearCache(),document.removeEventListener("visibilitychange",K)};var ne=_;export{ne as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a,n,t=!1,e=new Promise(n=>{a=n}),i=!1;function o(){if(t=!0,!i)return n||(n=async function(){let n=await import("./opentype.js");a(n),i=!0}())}export{t as a,e as b,o as c};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./runtime-chunk-NTUTXO7Q.js";import{b as e}from"./runtime-chunk-DJJZN367.js";import{a as i,c as r,d as s,e as n,f as a}from"./runtime-chunk-Z5OH244S.js";import{E as h,b as o,k as l,o as d}from"./runtime-chunk-OW6T4XFV.js";import{a as u,b as c}from"./runtime-chunk-ML3Z74BL.js";var p,f,x,g=u((t,e)=>{function i(t,e,r,s){this.message=t,this.expected=e,this.found=r,this.location=s,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}!function(t,e){function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i}(i,Error),i.buildMessage=function(t,e){var i,r={literal:function(t){return'"'+n(t.text)+'"'},class:function(t){var e,i="";for(e=0;e<t.parts.length;e++)i+=t.parts[e]instanceof Array?a(t.parts[e][0])+"-"+a(t.parts[e][1]):a(t.parts[e]);return"["+(t.inverted?"^":"")+i+"]"},any:function(t){return"any character"},end:function(t){return"end of input"},other:function(t){return t.description}};function s(t){return t.charCodeAt(0).toString(16).toUpperCase()}function n(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(t){return"\\x0"+s(t)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(t){return"\\x"+s(t)})}function a(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(t){return"\\x0"+s(t)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(t){return"\\x"+s(t)})}function h(t){return r[t.type](t)}return"Expected "+function(t){var e,i,r=new Array(t.length);for(e=0;e<t.length;e++)r[e]=h(t[e]);if(r.sort(),r.length>0){for(e=1,i=1;e<r.length;e++)r[e-1]!==r[e]&&(r[i]=r[e],i++);r.length=i}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+((i=e)?'"'+n(i)+'"':"end of input")+" found."},e.exports={SyntaxError:i,parse:function(t,e){e=void 0!==e?e:{};var r,s={},n={svg_path:xt},a=xt,h=function(t){if(!t)return[];for(var e=[],i=0;i<t.length;i++)e=e.concat.apply(e,t[i]);var r=e[0];return r&&"m"==r.code&&(delete r.relative,r.code="M"),e},o=function(t,e){return function(t,e){if(!e)return[t];for(var i=[t],r=0,s=e.length;r<s;r++)i[r+1]=e[r][1];return i}(t,e)},l=/^[Mm]/,d=ut(["M","m"],!1,!1),u=function(t,e,i){var r=jt(t,[e]);return i&&(r=r.concat(jt("M"==t?"L":"l",i[1]))),r},c=/^[Zz]/,p=ut(["Z","z"],!1,!1),f=function(){return jt("Z")},x=/^[Ll]/,g=ut(["L","l"],!1,!1),m=function(t,e){return jt(t,e)},y=/^[Hh]/,v=ut(["H","h"],!1,!1),w=function(t,e){return jt(t,e.map(function(t){return{x:t}}))},_=/^[Vv]/,S=ut(["V","v"],!1,!1),B=function(t,e){return jt(t,e.map(function(t){return{y:t}}))},b=/^[Cc]/,M=ut(["C","c"],!1,!1),C=function(t,e,i){return{x1:t.x,y1:t.y,x2:e.x,y2:e.y,x:i.x,y:i.y}},k=/^[Ss]/,A=ut(["S","s"],!1,!1),T=function(t,e){return{x2:t.x,y2:t.y,x:e.x,y:e.y}},P=/^[Qq]/,z=ut(["Q","q"],!1,!1),R=function(t,e){return{x1:t.x,y1:t.y,x:e.x,y:e.y}},O=/^[Tt]/,E=ut(["T","t"],!1,!1),H=/^[Aa]/,L=ut(["A","a"],!1,!1),F=function(t,e,i,r,s,n){return{rx:t,ry:e,xAxisRotation:i,largeArc:r,sweep:s,x:n.x,y:n.y}},N=function(t,e){return{x:t,y:e}},U=function(t){return 1*t},j=function(t){return 1*t.join("")},I=/^[01]/,W=ut(["0","1"],!1,!1),D=function(t){return"1"==t},X=function(){return""},V=",",q=dt(",",!1),Y=function(t){return t.join("")},$=".",G=dt(".",!1),Q=/^[eE]/,Z=ut(["e","E"],!1,!1),J=/^[+\-]/,K=ut(["+","-"],!1,!1),tt=/^[0-9]/,et=ut([["0","9"]],!1,!1),it=function(t){return t.join("")},rt=/^[ \t\n\r]/,st=ut([" ","\t","\n","\r"],!1,!1),nt=0,at=[{line:1,column:1}],ht=0,ot=[],lt=0;if("startRule"in e){if(!(e.startRule in n))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=n[e.startRule]}function dt(t,e){return{type:"literal",text:t,ignoreCase:e}}function ut(t,e,i){return{type:"class",parts:t,inverted:e,ignoreCase:i}}function ct(e){var i,r=at[e];if(r)return r;for(i=e-1;!at[i];)i--;for(r={line:(r=at[i]).line,column:r.column};i<e;)10===t.charCodeAt(i)?(r.line++,r.column=1):r.column++,i++;return at[e]=r,r}function pt(t,e){var i=ct(t),r=ct(e);return{start:{offset:t,line:i.line,column:i.column},end:{offset:e,line:r.line,column:r.column}}}function ft(t){nt<ht||(nt>ht&&(ht=nt,ot=[]),ot.push(t))}function xt(){var t,e,i,r,n;for(t=nt,e=[],i=Et();i!==s;)e.push(i),i=Et();if(e!==s)if(i=function(){var t,e,i,r,n,a;if(t=nt,(e=gt())!==s){for(i=[],r=nt,n=[],a=Et();a!==s;)n.push(a),a=Et();for(n!==s&&(a=gt())!==s?r=n=[n,a]:(nt=r,r=s);r!==s;){for(i.push(r),r=nt,n=[],a=Et();a!==s;)n.push(a),a=Et();n!==s&&(a=gt())!==s?r=n=[n,a]:(nt=r,r=s)}i!==s?t=e=o(e,i):(nt=t,t=s)}else nt=t,t=s;return t}(),i===s&&(i=null),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s?t=e=h(i):(nt=t,t=s)}else nt=t,t=s;else nt=t,t=s;return t}function gt(){var e,i,r,n,a,h;if(e=nt,i=function(){var e,i,r,n,a,h,o;if(e=nt,l.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(d)),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s&&(n=bt())!==s?(a=nt,(h=At())===s&&(h=null),h!==s&&(o=yt())!==s?a=h=[h,o]:(nt=a,a=s),a===s&&(a=null),a!==s?e=i=u(i,n,a):(nt=e,e=s)):(nt=e,e=s)}else nt=e,e=s;return e}(),i!==s){for(r=[],n=nt,a=[],h=Et();h!==s;)a.push(h),h=Et();for(a!==s&&(h=mt())!==s?n=a=[a,h]:(nt=n,n=s);n!==s;){for(r.push(n),n=nt,a=[],h=Et();h!==s;)a.push(h),h=Et();a!==s&&(h=mt())!==s?n=a=[a,h]:(nt=n,n=s)}r!==s?e=i=o(i,r):(nt=e,e=s)}else nt=e,e=s;return e}function mt(){var e,i;return c.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(p)),i!==s&&(i=f()),(e=i)===s&&(e=function(){var e,i,r,n;if(e=nt,x.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(g)),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s&&(n=yt())!==s?e=i=m(i,n):(nt=e,e=s)}else nt=e,e=s;return e}())===s&&(e=function(){var e,i,r,n;if(e=nt,y.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(v)),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s&&(n=vt())!==s?e=i=w(i,n):(nt=e,e=s)}else nt=e,e=s;return e}())===s&&(e=function(){var e,i,r,n;if(e=nt,_.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(S)),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s&&(n=vt())!==s?e=i=B(i,n):(nt=e,e=s)}else nt=e,e=s;return e}())===s&&(e=function(){var e,i,r,n;if(e=nt,b.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(M)),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s?(n=function(){var t,e,i,r,n,a;if(t=nt,(e=wt())!==s){for(i=[],r=nt,(n=At())===s&&(n=null),n!==s&&(a=wt())!==s?r=n=[n,a]:(nt=r,r=s);r!==s;)i.push(r),r=nt,(n=At())===s&&(n=null),n!==s&&(a=wt())!==s?r=n=[n,a]:(nt=r,r=s);i!==s?t=e=o(e,i):(nt=t,t=s)}else nt=t,t=s;return t}(),n!==s?e=i=m(i,n):(nt=e,e=s)):(nt=e,e=s)}else nt=e,e=s;return e}())===s&&(e=function(){var e,i,r,n;if(e=nt,k.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(A)),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s?(n=function(){var t,e,i,r,n,a;if(t=nt,(e=_t())!==s){for(i=[],r=nt,(n=At())===s&&(n=null),n!==s&&(a=_t())!==s?r=n=[n,a]:(nt=r,r=s);r!==s;)i.push(r),r=nt,(n=At())===s&&(n=null),n!==s&&(a=_t())!==s?r=n=[n,a]:(nt=r,r=s);i!==s?t=e=o(e,i):(nt=t,t=s)}else nt=t,t=s;return t}(),n!==s?e=i=m(i,n):(nt=e,e=s)):(nt=e,e=s)}else nt=e,e=s;return e}())===s&&(e=function(){var e,i,r,n;if(e=nt,P.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(z)),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s?(n=function(){var t,e,i,r,n,a;if(t=nt,(e=St())!==s){for(i=[],r=nt,(n=At())===s&&(n=null),n!==s&&(a=St())!==s?r=n=[n,a]:(nt=r,r=s);r!==s;)i.push(r),r=nt,(n=At())===s&&(n=null),n!==s&&(a=St())!==s?r=n=[n,a]:(nt=r,r=s);i!==s?t=e=o(e,i):(nt=t,t=s)}else nt=t,t=s;return t}(),n!==s?e=i=m(i,n):(nt=e,e=s)):(nt=e,e=s)}else nt=e,e=s;return e}())===s&&(e=function(){var e,i,r,n;if(e=nt,O.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(E)),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s?(n=function(){var t,e,i,r,n,a;if(t=nt,(e=bt())!==s){for(i=[],r=nt,(n=At())===s&&(n=null),n!==s&&(a=bt())!==s?r=n=[n,a]:(nt=r,r=s);r!==s;)i.push(r),r=nt,(n=At())===s&&(n=null),n!==s&&(a=bt())!==s?r=n=[n,a]:(nt=r,r=s);i!==s?t=e=o(e,i):(nt=t,t=s)}else nt=t,t=s;return t}(),n!==s?e=i=m(i,n):(nt=e,e=s)):(nt=e,e=s)}else nt=e,e=s;return e}())===s&&(e=function(){var e,i,r,n;if(e=nt,H.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(L)),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s?(n=function(){var t,e,i,r,n,a;if(t=nt,(e=Bt())!==s){for(i=[],r=nt,(n=At())===s&&(n=null),n!==s&&(a=Bt())!==s?r=n=[n,a]:(nt=r,r=s);r!==s;)i.push(r),r=nt,(n=At())===s&&(n=null),n!==s&&(a=Bt())!==s?r=n=[n,a]:(nt=r,r=s);i!==s?t=e=o(e,i):(nt=t,t=s)}else nt=t,t=s;return t}(),n!==s?e=i=m(i,n):(nt=e,e=s)):(nt=e,e=s)}else nt=e,e=s;return e}()),e}function yt(){var t,e,i,r,n,a;if(t=nt,(e=bt())!==s){for(i=[],r=nt,(n=At())===s&&(n=null),n!==s&&(a=bt())!==s?r=n=[n,a]:(nt=r,r=s);r!==s;)i.push(r),r=nt,(n=At())===s&&(n=null),n!==s&&(a=bt())!==s?r=n=[n,a]:(nt=r,r=s);i!==s?t=e=o(e,i):(nt=t,t=s)}else nt=t,t=s;return t}function vt(){var t,e,i,r,n,a;if(t=nt,(e=Ct())!==s){for(i=[],r=nt,(n=At())===s&&(n=null),n!==s&&(a=Ct())!==s?r=n=[n,a]:(nt=r,r=s);r!==s;)i.push(r),r=nt,(n=At())===s&&(n=null),n!==s&&(a=Ct())!==s?r=n=[n,a]:(nt=r,r=s);i!==s?t=e=o(e,i):(nt=t,t=s)}else nt=t,t=s;return t}function wt(){var t,e,i,r,n,a;return t=nt,(e=bt())!==s?((i=At())===s&&(i=null),i!==s&&(r=bt())!==s?((n=At())===s&&(n=null),n!==s&&(a=bt())!==s?t=e=C(e,r,a):(nt=t,t=s)):(nt=t,t=s)):(nt=t,t=s),t}function _t(){var t,e,i,r;return t=nt,(e=bt())!==s?((i=At())===s&&(i=null),i!==s&&(r=bt())!==s?t=e=T(e,r):(nt=t,t=s)):(nt=t,t=s),t}function St(){var t,e,i,r;return t=nt,(e=bt())!==s?((i=At())===s&&(i=null),i!==s&&(r=bt())!==s?t=e=R(e,r):(nt=t,t=s)):(nt=t,t=s),t}function Bt(){var t,e,i,r,n,a,h,o,l,d,u;return t=nt,(e=Mt())!==s?((i=At())===s&&(i=null),i!==s&&(r=Mt())!==s?((n=At())===s&&(n=null),n!==s&&(a=Ct())!==s&&At()!==s&&(h=kt())!==s?((o=At())===s&&(o=null),o!==s&&(l=kt())!==s?((d=At())===s&&(d=null),d!==s&&(u=bt())!==s?t=e=F(e,r,a,h,l,u):(nt=t,t=s)):(nt=t,t=s)):(nt=t,t=s)):(nt=t,t=s)):(nt=t,t=s),t}function bt(){var t,e,i,r;return t=nt,(e=Ct())!==s?((i=At())===s&&(i=null),i!==s&&(r=Ct())!==s?t=e=N(e,r):(nt=t,t=s)):(nt=t,t=s),t}function Mt(){var t;return(t=Pt())===s&&(t=Ot()),t!==s&&(t=U(t)),t}function Ct(){var t,e,i;return t=nt,(e=Rt())===s&&(e=null),e!==s&&(i=Pt())!==s?t=e=[e,i]:(nt=t,t=s),t===s&&(t=nt,(e=Rt())===s&&(e=null),e!==s&&(i=Ot())!==s?t=e=[e,i]:(nt=t,t=s)),t!==s&&(t=j(t)),t}function kt(){var e;return I.test(t.charAt(nt))?(e=t.charAt(nt),nt++):(e=s,0===lt&&ft(W)),e!==s&&(e=D(e)),e}function At(){var t,e,i,r,n;if(t=nt,e=[],(i=Et())!==s)for(;i!==s;)e.push(i),i=Et();else e=s;if(e!==s)if((i=Tt())===s&&(i=null),i!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s?t=e=[e,i,r]:(nt=t,t=s)}else nt=t,t=s;else nt=t,t=s;if(t===s){if(t=nt,e=nt,(i=Tt())!==s){for(r=[],n=Et();n!==s;)r.push(n),n=Et();r!==s?e=i=[i,r]:(nt=e,e=s)}else nt=e,e=s;e!==s&&(e=X()),t=e}return t}function Tt(){var e;return 44===t.charCodeAt(nt)?(e=V,nt++):(e=s,0===lt&&ft(q)),e}function Pt(){var e,i,r;return e=nt,i=function(){var e,i,r,n;return e=nt,(i=Ot())===s&&(i=null),i!==s?(46===t.charCodeAt(nt)?(r=$,nt++):(r=s,0===lt&&ft(G)),r!==s&&(n=Ot())!==s?e=i=[i,r,n]:(nt=e,e=s)):(nt=e,e=s),e===s&&(e=nt,(i=Ot())!==s?(46===t.charCodeAt(nt)?(r=$,nt++):(r=s,0===lt&&ft(G)),r!==s?e=i=[i,r]:(nt=e,e=s)):(nt=e,e=s)),e!==s&&(e=Y(e)),e}(),i!==s?((r=zt())===s&&(r=null),r!==s?e=i=[i,r]:(nt=e,e=s)):(nt=e,e=s),e===s&&(e=nt,(i=Ot())!==s&&(r=zt())!==s?e=i=[i,r]:(nt=e,e=s)),e!==s&&(e=Y(e)),e}function zt(){var e,i,r,n;return e=nt,Q.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(Z)),i!==s?((r=Rt())===s&&(r=null),r!==s&&(n=Ot())!==s?e=i=[i,r,n]:(nt=e,e=s)):(nt=e,e=s),e!==s&&(e=Y(e)),e}function Rt(){var e;return J.test(t.charAt(nt))?(e=t.charAt(nt),nt++):(e=s,0===lt&&ft(K)),e}function Ot(){var e,i;if(e=[],tt.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(et)),i!==s)for(;i!==s;)e.push(i),tt.test(t.charAt(nt))?(i=t.charAt(nt),nt++):(i=s,0===lt&&ft(et));else e=s;return e!==s&&(e=it(e)),e}function Et(){var e;return rt.test(t.charAt(nt))?(e=t.charAt(nt),nt++):(e=s,0===lt&&ft(st)),e!==s&&(e=X()),e}var Ht,Lt,Ft,Nt={m:"moveto",l:"lineto",h:"horizontal lineto",v:"vertical lineto",c:"curveto",s:"smooth curveto",q:"quadratic curveto",t:"smooth quadratic curveto",a:"elliptical arc",z:"closepath"};for(var Ut in Nt)Nt[Ut.toUpperCase()]=Nt[Ut];function jt(t,e){e||(e=[{}]);for(var i=e.length;i--;){var r={code:t,command:Nt[t]};for(var s in t==t.toLowerCase()&&(r.relative=!0),e[i])r[s]=e[i][s];e[i]=r}return e}if((r=a())!==s&&nt===t.length)return r;throw r!==s&&nt<t.length&&ft({type:"end"}),Ht=ot,Lt=ht<t.length?t.charAt(ht):null,Ft=ht<t.length?pt(ht,ht+1):pt(ht,ht),new i(i.buildMessage(Ht,Lt),Ht,Lt,Ft)}}}),m=u((t,e)=>{var i=g().parse;i.parseSVG=i,i.makeAbsolute=function(t){var e,i={x:0,y:0},r={x:"x0",y:"y0",x1:"x0",y1:"y0",x2:"x0",y2:"y0"};return t.forEach(function(t){for(var s in"moveto"===t.command&&(e=t),t.x0=i.x,t.y0=i.y,r)s in t&&(t[s]+=t.relative?t[r[s]]:0);"x"in t||(t.x=i.x),"y"in t||(t.y=i.y),t.relative=!1,t.code=t.code.toUpperCase(),"closepath"==t.command&&(t.x=e.x,t.y=e.y),i=t}),t},e.exports=i});function y(){if(!f){if(!p)return Promise.reject(new Error("HanaRenderer: no Hana UI loader registered. Call setHanaUILoader() from the host app before initializing a HanaRenderer."));(f=p()).catch(()=>{f=void 0})}return f}function v(t){x=t}function w(){return p||(p=async()=>async function(t,e){return await t.default(e?{module_or_path:e}:void 0),Object.getOwnPropertyDescriptor(t.Engine.prototype,"scene")||Object.defineProperty(t.Engine.prototype,"scene",{get:function(){let e=Object.create(t.SceneController.prototype);return e.__wbg_ptr=this.__wbg_ptr,e}}),{createEngine:e=>t.Engine.create(e,JSON.parse('{"schema":13,"scenes":[{"fi":0,"id":"32603ebf4-bd9a-54ba-c1e9-6645c3ee7a53","data":{"name":"Page","backgroundColor":[0,0,0,0],"objects":[]}}],"assets":{"images":{},"videos":{},"colors":{},"audios":{},"numbers":{},"booleans":{},"strings":{},"dynamicVariables":{"counters":{},"randoms":{},"timers":{},"times":{}},"fonts":{},"animations":{},"geometries":{},"emojiArt":{}},"publish":{"logo":true,"presentationSizing":"Contain","allowPageScroll":true,"showBackground":true},"framePublish":{},"components":{}}'),!0)}}(await import("./hana-ui.js"),x??function(){let t=typeof process<"u"?"2.0.1":void 0;return`https://cdn.spline.design/@splinetool/runtime${t?`@${t}`:""}/build/hana-ui.wasm`}())),y().then(()=>{})}var _=Math.PI/180;Math.PI;var S,B=1e-10;function b(t,e){let[[i,r],[s,n]]=t,[[a,h],[o,l]]=e,d=(i-s)*(h-l)-(r-n)*(a-o);if(0===d)return!1;let u=((i-a)*(h-l)-(r-h)*(a-o))/d,c=-((i-s)*(r-h)-(r-n)*(i-a))/d;return u>=0&&u<=1&&c>=0&&c<=1}(t=>{function e(t){return[t[0],t[3],t[1],t[4],t[2],t[5]]}t.identity=function(){return[1,0,0,0,1,0,0,0,1]},t.copy=function(e,i=t.identity()){for(let t=0,r=e.length;t<r;t++)i[t]=e[t];return i},t.create=function(e,i,r,s,n,a){return t.setAbcdef(t.identity(),e,i,r,s,n,a)},t.setAbcdef=function(t,e,i,r,s,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=s,t[5]=a,t},t.append=function(i,r){let[s,n,a,h,o,l]=e(i),[d,u,c,p,f,x]=e(r),g=d*s+u*a,m=d*n+u*h,y=c*s+p*a,v=c*n+p*h,w=f*s+x*a+o,_=f*n+x*h+l;return t.create(g,m,y,v,w,_)},t.prepend=function(i,r){let[s,n,a,h,o,l]=e(i),[d,u,c,p,f,x]=e(r),g=s,m=n,y=a,v=h;(1!==d||0!==u||0!==c||1!==p)&&(g=s*d+n*c,m=s*u+n*p,y=a*d+h*c,v=a*u+h*p);let w=o*d+l*c+f,_=o*u+l*p+x;return t.create(g,m,y,v,w,_)},t.getAbcdef=e,t.invert=function(e){let[i,r,s,n,a,h]=t.getAbcdef(e),o=i*n-r*s,l=n/o,d=-r/o,u=-s/o,c=i/o,p=(s*h-n*a)/o,f=-(i*h-r*a)/o;return t.create(l,d,u,c,p,f)},t.apply=function([e,i],r){let[s,n,a,h,o,l]=t.getAbcdef(r);return[s*e+a*i+o,n*e+h*i+l]},t.applyInverse=function(e,i){let[r,s,n,a,h,o]=t.getAbcdef(i),l=1/(r*a+n*-s),[d,u]=e;return[a*l*d+-n*l*u+(o*n-h*a)*l,r*l*u+-s*l*d+(-o*r+h*s)*l]},t.scale=function(e,i,r=i){let[s,n,a,h,o,l]=t.getAbcdef(e);return t.setAbcdef(e,s*i,n*r,a*i,h*r,o*i,l*r),e},t.rotate=function(e,i){let r=Math.cos(i),s=Math.sin(i),[n,a,h,o,l,d]=t.getAbcdef(e);return t.setAbcdef(e,n*r-a*s,n*s+a*r,h*r-o*s,h*s+o*r,l*r-d*s,l*s+d*r),e},t.rotateAround=function(e,i,r){let[s,n]=r,a=t.translate(e,-s,-n);return a=t.rotate(a,i),a=t.translate(a,s,n),a},t.translate=function(e,i,r){let[s,n,a,h,o,l]=t.getAbcdef(e);return t.setAbcdef(e,s,n,a,h,o+i,l+r),e},t.setTranslate=function(e,i,r){let[s,n,a,h]=t.getAbcdef(e);return t.setAbcdef(e,s,n,a,h,i,r),e},t.setPosition=function(e,i,r){let[s,n,a,h]=t.getAbcdef(e);return t.setAbcdef(e,s,n,a,h,i,r),e},t.getScale=function(e){let[i,r,s,n]=t.getAbcdef(e);return[Math.sqrt(i*i+r*r),Math.sqrt(s*s+n*n)]},t.getPosition=function(e){let[,,,,i,r]=t.getAbcdef(e);return[i,r]},t.getRotation=function(e,i){return t.decompose(e,i).rotation},t.decompose=function(e,i){let[r,s,n,a,h,o]=t.getAbcdef(e),{rotation:l,scale:d,shear:u}=function(t){let e=t[0][0],i=t[1][0],r=t[0][1],s=t[1][1],n=Math.sqrt(e*e+i*i),a=n>B?e/n:1,h=n>B?i/n:0,o=a*e+h*i,l=a*s-h*r,d=a*r+h*s;return{rotation:Math.atan2(h,a),scale:[o,l],shear:[Math.abs(l)>B?d/l:0,0]}}([[r,n],[s,a]]);return{position:[h+(i[0]*r+i[1]*n)-i[0],o+(i[0]*s+i[1]*a)-i[1]],scale:d,rotation:l,shear:u,pivot:i}},t.compose=function(e,i,r,s,n=[0,0]){let[a,h]=e,[o,l]=s,[d,u,c,p]=function({rotation:t,scale:e,shear:i}){let r=Math.cos(t),s=Math.sin(t),n=i[0]*e[1],a=i[1]*e[0];return[r*e[0]-s*a,s*e[0]+r*a,r*n-s*e[1],s*n+r*e[1]]}({rotation:r,scale:i,shear:n}),f=a-(o*d+l*c)+o,x=h-(o*u+l*p)+l;return t.create(d,u,c,p,f,x)}})(S||(S={}));var M,C,k,A,T,P=[[-1,1],[-1,-1],[1,-1],[1,1]],z=(t,e,i)=>{let r=t.getCenter(),s=t.getHalfSize(),n=S.append(e,t.worldMatrix);0===s[0]&&0===s[1]?i.push(S.apply(r,n)):P.forEach(t=>{let e=[t[0]*s[0]+r[0],t[1]*s[1]+r[1]];i.push(S.apply(e,n))})},R=class{constructor(){this.matrix=S.identity(),this.min=[1/0,1/0],this.max=[-1/0,-1/0],this.vertices=[],this.edges=[]}setFromObjectSize(t,e=!1){t.updateWorldMatrix(),this.makeEmpty(),S.copy(t.worldMatrix,this.matrix);let i=S.invert(t.worldMatrix);this.expandByObjectSize(t,i,e)}expandByObjectSize(t,e,i=!1){let r=[],s=!0===t.isBaseGroup?t:void 0;!0===i&&void 0!==s?s.traverse(t=>{t.visible&&z(t,e,r)}):z(t,e,r),this.setFromPoints(r)}setFromSize(t,e,i){this.makeEmpty(),S.copy(i,this.matrix),this.expandBySize(t,e,i)}expandBySize(t,e,i){[S.apply([0,0],i),S.apply([0,e],i),S.apply([t,e],i),S.apply([t,0],i)].forEach(t=>this.expandByPoint(t))}getCenter(){let[t,e]=this.min,[i,r]=this.getHalfSize();return S.apply([t+i,e+r],this.matrix)}getSize(){return[this.max[0]-this.min[0],this.max[1]-this.min[1]]}getHalfSize(){return[.5*(this.max[0]-this.min[0]),.5*(this.max[1]-this.min[1])]}makeEmpty(){this.min=[1/0,1/0],this.max=[-1/0,-1/0]}setFromPoints(t){this.makeEmpty();for(let e of t)this.expandByPoint(e)}expandByPoint(t){this.min=[Math.min(this.min[0],t[0]),Math.min(this.min[1],t[1])],this.max=[Math.max(this.max[0],t[0]),Math.max(this.max[1],t[1])]}computeVertices(){let[t,e]=this.getHalfSize(),i=this.getCenter(),[r,s,n,a]=S.getAbcdef(this.matrix),h=S.create(r,s,n,a,i[0],i[1]);this.vertices=P.map(([i,r])=>S.apply([i*t,r*e],h))}computeEdges(){this.edges=[];for(let t=0,e=this.vertices.length;t<e;++t)this.edges.push([this.vertices[t],this.vertices[(t+1)%e]])}project(t,e){let i=this.matrix;return e&&(i=S.append(e.worldMatrix,i)),S.applyInverse(t,i)}intersects(t,e,i){return this.intersectsInLocalSpace(...this.project([t,e],i))}intersectsInLocalSpace(t,e){let{min:i,max:r}=this;return t>=i[0]&&t<=r[0]&&e>=i[1]&&e<=r[1]}containsPoint(t){let[e,i]=t,[r,s]=this.min,[n,a]=this.max;return e>=r&&e<=n&&i>=s&&i<=a}intersectsBBox2D(t){for(let e=0,i=this.edges.length;e<i;e++){let i=this.edges[e];for(let e=0,r=t.edges.length;e<r;e++)if(b(i,t.edges[e]))return!0}for(let e=0,i=t.vertices.length;e<i;e++){let i=t.vertices[e];if(this.containsPoint(i))return!0}return!1}ensureMinMax(){let t=this.min,e=this.max;this.min=[Math.min(t[0],e[0]),Math.min(t[1],e[1])],this.max=[Math.max(t[0],e[0]),Math.max(t[1],e[1])]}copy(t){this.min=[...t.min],this.max=[...t.max],S.copy(t.matrix,this.matrix),this.computeVertices(),this.computeEdges()}clone(){let t=new R;return t.copy(this),t}},O=class{constructor(e,i,r){this.uuid=e,this.data=i,this.isObject2D=!0,this.localMatrix=S.identity(),this.worldMatrix=S.identity(),this.ignoreCameraZoom=!1,this.visible=!0,this._singleBBox=new R,this._recursiveBBox=new R,this.singleBBoxNeedsUpdate=!0,this.recursiveBBoxNeedsUpdate=!0,this.stateSelection=null,this.prevState=null,this.currentState=null,this.reversibleToState=null,this.currentTransitionEvent=null,this.previousAction=null,this.name="",this.position=[0,0],this.scale=[1,1],this.rotation=0,this.shear=[0,0],this.emitter=t(),this.dpr=r.dpr??1,this.dataPatched=i}project(t,e){let i=this.worldMatrix;return e&&(i=S.append(e.worldMatrix,i)),S.applyInverse(t,i)}intersects(t,e,i,r=!1){return this.visible&&!this.data.raycastLock&&this.intersectsInLocalSpace(...this.project([t,e],i),r)}intersectsInLocalSpace(t,e,i=!1){let{min:r,max:s}=i?this.recursiveBBox:this.singleBBox;return t>=r[0]&&t<=s[0]&&e>=r[1]&&e<=s[1]}applyTransforms(t){t.setTransform(this.worldMatrix,this.ignoreCameraZoom)}get singleBBox(){return this.singleBBoxNeedsUpdate&&(this.singleBBoxNeedsUpdate=!1,this._singleBBox.setFromObjectSize(this,!1),this._singleBBox.computeVertices(),this._singleBBox.computeEdges()),this._singleBBox}get recursiveBBox(){return this.recursiveBBoxNeedsUpdate&&(this.recursiveBBoxNeedsUpdate=!1,this._recursiveBBox.setFromObjectSize(this,!0),this._recursiveBBox.computeVertices(),this._recursiveBBox.computeEdges()),this._recursiveBBox}updateLocalMatrix(){this.localMatrix=S.compose(this.position,this.scale,this.rotation*_,a.getPivot(this.dataPatched),this.shear)}updateWorldMatrix(t,e,i){let r=this.parent;e&&null!=r&&r.updateWorldMatrix(t,!0,!1),t&&this.updateLocalMatrix(),this.parent?this.worldMatrix=S.append(this.parent.worldMatrix,this.localMatrix):this.worldMatrix=S.copy(this.localMatrix),this.singleBBoxNeedsUpdate=!0,this.recursiveBBoxNeedsUpdate=!0}get pivot(){return a.getPivot(this.data)}getCenter(){return[0,0]}getHalfSize(){return[0,0]}get id(){return this.uuid}resetBBoxNeedsUpdateSelf(){this.singleBBoxNeedsUpdate=!0,this.recursiveBBoxNeedsUpdate=!0}resetBBoxNeedsUpdate(){this.resetBBoxNeedsUpdateSelf(),this.traverseAncestors(t=>{t.resetBBoxNeedsUpdateSelf()})}updateTransformState(t){let e=!1;void 0!==t.position&&(e=!0,this.position=t.position),void 0!==t.rotation&&(e=!0,this.rotation=t.rotation),void 0!==t.scale&&(e=!0,this.scale=t.scale),void 0!==t.shear&&(e=!0,this.shear=t.shear),e&&(this.updateWorldMatrix(!0,!1,!0),this.resetBBoxNeedsUpdate())}updateByOp(t,i,s){0===t.type&&void 0!==t.props.visible&&(this.visible=t.props.visible),this.data=i,this.data=i;let n=t,a=e(t.path,["states","*"]);if(null!==a){if(0===t.type){let[e]=a;if(this?.stateSelection===e){let e={...t.props};if(delete e.name,Object.values(t.props).some(t=>void 0===t)){let i=this.data;if(void 0!==i){let r=d.zoom(i,t.path.slice(2));if(r)for(let i in t.props)void 0===t.props[i]&&i in r&&(e[i]=r[i])}}n={...t,props:e,path:t.path.slice(2)}}}}else if(0===t.type){let e=this.stateSelection?this.data.states.data(this.stateSelection):void 0;if(void 0!==e){if(void 0!==t.props.name&&e.name){let{name:t,...i}=e;e=i}let i=d.removeOverridden(t.path,t.props,e);n={...t,props:i}}}this.updateByPatchedOpBase(n,r.patch(this.data,this.stateSelection?this.data.states.data(this.stateSelection):void 0),s)}changeSelectedState(t,e,i=!1){if(0!==this.data.states.length||i){for(let t of this.data.states)r.toOps(this.data,t.data).forEach(t=>{let i=l.replaceProps(t,this.data);this.dataPatched=this.data,this.updateByPatchedOp(i,this.data,e)});if(null!==t){let i=this.data.states.data(t);i&&(this.dataPatched=r.patch(this.data,i),r.toOps(this.data,i).forEach(t=>{this.updateByPatchedOp(t,this.dataPatched,e)}))}i&&this.updateTransformState(this.dataPatched),this.stateSelection=t}}updateState(t,e){void 0!==t.name&&(this.name=t.name),void 0!==t.visible&&(this.visible=t.visible),this.updateTransformState(t)}updateByPatchedOpBase(t,e,i){this.dataPatched=e,this.updateByPatchedOp(t,e,i)}updateByPatchedOp(t,e,i){0===t.path.length&&0===t.type&&this.updateState(t.props,i),this.requestRender()}traverseFrameAncestors(t){this.traverseAncestors(e=>{"frame2d"===e.data.type&&t(e)})}traverseAncestors(t){let e=this.parent;for(;e;)t(e),e=e.parent}requestRender(){this.traverseFrameAncestors(t=>{t.requestRender()})}clone(t){let e=new O(this.uuid,this.data,t);return e.parent=void 0,e}addEventListener(t,e){this.emitter.on(t,e)}removeEventListener(t,e){this.emitter.off(t,e)}dispatchEvent(t){this.emitter.emit(t.type,{...t,target:t.target??this})}traverseSortNextHelper(){let t=this.parent;if(t){let e=t.children;if(e){let i=e.indexOf(this)+1;return e[i]?e[i]:t.traverseSortNextHelper()}}}sortNext(){let t=this.children;return t&&t.length>0&&t[0]?t[0]:this.traverseSortNextHelper()}isDescendantOf(t){t instanceof O&&(t=t.uuid);let e=this;for(;e.parent;){if(e.parent.uuid===t)return!0;e=e.parent}return!1}},E=class{constructor(t,e,i){this.uuid=t,this.data=e,this.enabled=!1,this.color=h.transparent,this.blurRadius=0,this.offset=[0,0],this.spread=0,this.update(e)}update(t){void 0!==t.color&&(this.color=t.color),void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.blurRadius&&(this.blurRadius=t.blurRadius),void 0!==t.offset&&(this.offset=t.offset),void 0!==t.spread&&(this.spread=t.spread)}},H=class{constructor(t,e,i){this.uuid=t,this.data=e,this.enabled=!1,this.radius=0,this.update(e)}update(t){void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.radius&&(this.radius=t.radius)}},L=class{constructor(t,e,i){this.uuid=t,this.data=e,this.enabled=!1,this.color=h.transparent,this.update(e)}update(t){void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.color&&(this.color=t.color)}},F=class{constructor(t,e,i){this.uuid=t,this.data=e,this.enabled=!1,this.color=h.transparent,this.thickness=0,this.mode="inside",this.update(e)}update(t){void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.color&&(this.color=t.color),void 0!==t.thickness&&(this.thickness=t.thickness),void 0!==t.mode&&(this.mode=t.mode)}},N=class extends O{constructor(t,e,i){super(t,e,i),this.uuid=t,this.data=e,this.autoClose=!0,this.fill=new L(t+"-fill",e.fill,i),this.stroke=new F(t+"-stroke",e.stroke,i),this.dropShadow=new E(t+"-dropShadow",e.dropShadow,i),this.innerShadow=new E(t+"-innerShadow",e.innerShadow,i),this.backgroundBlur=new H(t+"-backgroundBlur",e.backgroundBlur,i),this.layerBlur=new H(t+"-layerBlur",e.layerBlur,i)}applyFillStroke(t){t.fillColor=this.fill.enabled?this.fill.color:h.transparent,t.strokeColor=this.stroke.enabled&&this.stroke.thickness>0?this.stroke.color:h.transparent,t.strokeMode=this.stroke.mode,t.lineWidth=this.stroke.thickness}applyFilters(t){this.layerBlur.enabled?t.layerBlur=5*this.layerBlur.radius:t.layerBlur=0,this.backgroundBlur.enabled?t.backgroundBlur=5*this.backgroundBlur.radius:t.backgroundBlur=0,this.dropShadow.enabled?(t.dropShadowBlur=5*this.dropShadow.blurRadius,t.dropShadowColor=this.dropShadow.color,t.dropShadowOffsetX=this.dropShadow.offset[0],t.dropShadowOffsetY=this.dropShadow.offset[1]):t.dropShadowColor=h.transparent,this.innerShadow.enabled?(t.innerShadowSpread=this.innerShadow.spread,t.innerShadowBlur=5*this.innerShadow.blurRadius,t.innerShadowColor=this.innerShadow.color,t.innerShadowOffsetX=this.innerShadow.offset[0],t.innerShadowOffsetY=this.innerShadow.offset[1]):t.innerShadowColor=h.transparent}innerDraw(t){}draw(t){!this.visible||(t.save(),this.applyTransforms(t),this.applyFilters(t),this.applyFillStroke(t),t.beginPath(),this.innerDraw(t),this.autoClose&&t.closePath(),this.fill.enabled&&t.fill(),this.stroke.enabled&&t.stroke(),t.restore())}updateByPatchedOp(t,i,r){super.updateByPatchedOp(t,i,r),0===t.type&&(e(t.path,["fill"])?this.fill.update(t.props):e(t.path,["stroke"])?this.stroke.update(t.props):e(t.path,["dropShadow"])?this.dropShadow.update(t.props):e(t.path,["innerShadow"])?this.innerShadow.update(t.props):e(t.path,["layerBlur"])?this.layerBlur.update(t.props):e(t.path,["backgroundBlur"])?this.backgroundBlur.update(t.props):this.resetBBoxNeedsUpdate())}updateState(t,e){super.updateState(t,e),void 0!==t.fill&&this.fill.update(t.fill),void 0!==t.stroke&&this.stroke.update(t.stroke),void 0!==t.dropShadow&&this.dropShadow.update(t.dropShadow),void 0!==t.innerShadow&&this.innerShadow.update(t.innerShadow),void 0!==t.layerBlur&&this.layerBlur.update(t.layerBlur),void 0!==t.backgroundBlur&&this.backgroundBlur.update(t.backgroundBlur)}clone(t){let e=new N(this.uuid,this.data,t);return e.parent=void 0,e}},U=class extends N{constructor(t,e,i){super(t,e,i),this.uuid=t,this.data=e,this.width=0,this.height=0,this.updateState(e,i)}innerDraw(t){t.ellipse(.5*this.width,.5*this.height,.5*this.width,.5*this.height,0,0,2*Math.PI)}intersectsInLocalSpace(t,e){return function(t,e,i,r,s,n){let a=t-i,h=e-r;return a*a/(s*s)+h*h/(n*n)<=1}(t,e,.5*this.width,.5*this.height,.5*this.width,.5*this.height)}getCenter(){return[.5*this.width,.5*this.height]}getHalfSize(){return[.5*this.width,.5*this.height]}updateSizeState(t){let e=!1;void 0!==t.width&&(this.width="number"==typeof t.width?t.width:this.width,e=!0),void 0!==t.height&&(this.height="number"==typeof t.height?t.height:this.height,e=!0),e&&this.updateWorldMatrix(!0,!1,!0)}updateState(t,e){super.updateState(t,e),this.updateSizeState(t)}clone(t){let e=new U(this.uuid,this.data,t);return e.parent=void 0,e}},j=class extends N{constructor(t,e,i){super(t,e,i),this.uuid=t,this.data=e,this.width=0,this.height=0,this.cornerRadius=[0,0,0,0],this.updateState(e,i)}innerDraw(t){t.rect(0,0,this.width,this.height,...this.cornerRadius)}getCenter(){return[.5*this.width,.5*this.height]}getHalfSize(){return[.5*this.width,.5*this.height]}updateCornerState(t){void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}updateSizeState(t){let e=!1;void 0!==t.width&&(this.width="number"==typeof t.width?t.width:this.width,e=!0),void 0!==t.height&&(this.height="number"==typeof t.height?t.height:this.height,e=!0),e&&this.updateWorldMatrix(!0,!1,!0)}updateState(t,e){super.updateState(t,e),this.updateSizeState(t),this.updateCornerState(t)}clone(t){let e=new j(this.uuid,this.data,t);return e.parent=void 0,e}},I=class extends N{constructor(t,e,i){super(t,e,i),this.uuid=t,this.data=e,this._textHeight=0,this._textHeightDirty=!0,this.width=0,this.height=0,this.updateState(e,i)}get textHeight(){return this._textHeight}applyFillStroke(t){t.fillColor=this.fill.enabled?this.fill.color:h.transparent,t.strokeColor=this.stroke.enabled&&this.stroke.thickness>0?this.stroke.color:h.transparent,t.strokeMode="center",t.lineWidth=this.stroke.thickness}innerDraw(t){this._fontHolder?.arrayBuffer&&this._fontHolder.arrayBuffer.byteLength>1&&this.data.font&&t.registerFont(this._fontHolder.arrayBuffer,this.data.font);let e=this.data.textTransform,i=this.data.text.textValue.toString(),r=2===e?i.toUpperCase():3===e?i.toLowerCase():i,{height:s}=t.drawText(r,{x:0,y:0,width:this.width,height:this.height,fontSize:this.data.fontSize,lineHeight:this.data.lineHeight??1,letterSpacing:this.data.letterSpacing??0,horizontalAlign:this.data.horizontalAlign,verticalAlign:this.data.verticalAlign,font:this.data.font});this._textHeight=s}getCenter(){return[.5*this.width,.5*this.height]}getHalfSize(){return[.5*this.width,.5*this.height]}updateSizeState(t){let e=!1;void 0!==t.width&&(this.width="number"==typeof t.width?t.width:this.width,e=!0),void 0!==t.height&&(this.height="number"==typeof t.height?t.height:this.height,e=!0),e&&this.updateWorldMatrix(!0,!1,!0)}updateFontState(t,{shared:e}){void 0!==t.font&&(this._fontHolder=e.getFont(t.font),this._fontHolder&&!this._fontHolder.isLoaded&&this._fontHolder.loadingPromise.then(()=>{this.requestRender()}))}updateState(t,e){super.updateState(t,e),this.updateSizeState(t),this.updateFontState(t,e)}clone(t){let e=new I(this.uuid,this.data,t);return e.parent=void 0,e}},W=class extends N{constructor(t,e,i){super(t,e,i),this.uuid=t,this.data=e,this.curves=[],this.extremasBBox={min:[0,0],max:[0,0]},this.updateState(e,i)}computeExtremas(){0===this.curves.length&&this.computeCurves();let t=this.curves.map(t=>M.extremas(t)),e=[1/0,1/0],i=[-1/0,-1/0];for(let r=0,s=t.length;r<s;r++){let s=t[r];s[0][0]<e[0]&&(e[0]=s[0][0]),s[0][1]<e[1]&&(e[1]=s[0][1]),s[1][0]>i[0]&&(i[0]=s[1][0]),s[1][1]>i[1]&&(i[1]=s[1][1])}return this.extremasBBox.min=[e[0],e[1]],this.extremasBBox.max=[i[0],i[1]],this.extremasBBox}computeCurves(){this.curves=[];for(let t=1,e=this.data.points.length;t<e;t++){let e=this.data.points[t].data,i=this.data.points[t-1].data,r={start:i.position,cp1:i.controlNext.position,cp2:e.controlPrevious.position,end:e.position};this.curves.push(r)}let t=this.data.points[0].data,e=this.data.points[this.data.points.length-1].data;if(this.data.isClosed){let i={start:e.position,cp1:e.controlNext.position,cp2:t.controlPrevious.position,end:t.position};this.curves.push(i)}}getCenter(){let[t,e]=this.extremasBBox.min,[i,r]=this.getHalfSize();return[t+i,e+r]}getHalfSize(){let{min:t,max:e}=this.extremasBBox;return[.5*(e[0]-t[0]),.5*(e[1]-t[1])]}innerDraw(t){for(let e=0,i=this.data.points.length;e<i;e++){let i=this.data.points[e].data;if(0===e){let[e,r]=i.position;t.moveTo(e,r)}else{let r=this.data.points[e-1].data,[s,n]=r.controlNext.position,[a,h]=i.controlPrevious.position,[o,l]=i.position,d={start:r.position,cp1:r.controlNext.position,cp2:i.controlPrevious.position,end:i.position};M.derive(d),t.bezierCurveTo(s,n,a,h,o,l)}}let e=this.data.points[0].data,i=this.data.points[this.data.points.length-1].data;if(this.data.isClosed){let[r,s]=i.controlNext.position,[n,a]=e.controlPrevious.position,[h,o]=e.position;t.bezierCurveTo(r,s,n,a,h,o)}}updateState(t,e){super.updateState(t,e),this.computeExtremas()}clone(t){let e=new W(this.uuid,this.data,t);return e.parent=void 0,e}};(t=>{function e(t,e,i,r=!1){let s=t-2*e+i;if(0!==s){let r=-Math.sqrt(Math.abs(e*e-t*i)),n=-t+e;return[-(r+n)/s,-(-r+n)/s]}return e!==i&&0===s?[(2*e-i)/(2*(e-i))]:[]}t.derive=function(t){let e=t.start,i=t.cp1,r=t.cp2,s=t.end,n={start:[3*(i[0]-e[0]),3*(i[1]-e[1])],cp:[3*(r[0]-i[0]),3*(r[1]-i[1])],end:[3*(s[0]-r[0]),3*(s[1]-r[1])]};return t.derivative=n,n.derivative=C.derive(n),n},t.droot=function(i){let r=i.derivative??t.derive(i),s=r.start,n=r.cp,a=r.end;return[e(s[0],n[0],a[0]),e(s[1],n[1],a[1])]},t.extremas=function(e){let[i,r]=t.droot(e),s=[e.start[0],e.end[0]],n=[e.start[1],e.end[1]];for(let r of i)s.push(t.compute(e,Math.min(1,Math.max(0,r)))[0]);for(let i of r)n.push(t.compute(e,Math.min(1,Math.max(0,i)))[1]);return s.sort((t,e)=>t-e),n.sort((t,e)=>t-e),[[s[0],n[0]],[s[s.length-1],n[n.length-1]]]},t.compute=function(t,e){if(0===e)return[...t.start];if(1===e)return[...t.end];let i=1-e,r=i*i,s=e*e,n=r*i,a=r*e*3,h=i*s*3,o=e*s;return[n*t.start[0]+a*t.cp1[0]+h*t.cp2[0]+o*t.end[0],n*t.start[1]+a*t.cp1[1]+h*t.cp2[1]+o*t.end[1]]}})(M||(M={})),(k=C||(C={})).derive=function(t){let e=t.start,i=t.cp,r=t.end,s={start:[2*(i[0]-e[0]),2*(i[1]-e[1])],end:[2*(r[0]-i[0]),2*(r[1]-i[1])]};return s.derivative=A.derive(s),t.derivative=s,s},k.droot=function(t){let e=t.derivative??k.derive(t),i=e.start,r=e.end;return[i[0]!==r[0]?i[0]/(i[0]-r[0]):0,i[1]!==r[1]?i[1]/(i[1]-r[1]):0]},k.compute=function(t,e){if(0===e)return[...t.start];if(1===e)return[...t.end];let i=1-e,r=i*i,s=i*e*2,n=e*e;return[r*t.start[0]+s*t.cp[0]+n*t.end[0],r*t.start[1]+s*t.cp[1]+n*t.end[1]]},(T=A||(A={})).derive=function(t){let e=t.start,i=t.end,r=[i[0]-e[0],i[1]-e[1]];return t.derivative=r,t.derivative},T.compute=function(t,e){if(0===e)return[...t.start];if(1===e)return[...t.end];let i=t.start,r=t.end;return[i[0]+(r[0]-i[0])*e,i[1]+(r[1]-i[1])*e]};var D=class extends O{constructor(t,e,i){super(t,e,i),this.uuid=t,this.data=e,this.context=i,this.isBaseGroup=!0,this.children=[]}add(t){t.parent&&t.parent instanceof D&&t.parent.remove(t),this.children.push(t),t.parent=this}remove(t){let e=this.children.indexOf(t);e>=0&&(this.children.splice(e,1),t.parent=void 0)}traverse(t){let e=t(this);if(!0!==e)for(let i of this.children)i instanceof D?i.traverse(t):e=t(i)}intersectsChildrenHelper(t,e,i,r,s){for(let n of this.children)if(n.intersects(t,e,i,!1)&&(s.push(n),r)||n instanceof D&&n.intersectsChildrenHelper(t,e,i,r,s))return!0;return!1}intersectsChildren(t,e,i,r=!1,s=[],n=!1){return this.intersectsChildrenHelper(t,e,i,r,s),s}intersectsChildrenHelperReverse(t,e,i,r,s){for(let n of this.children)if(n instanceof D&&n.intersectsChildrenHelperReverse(t,e,i,r,s)||n.intersects(t,e,i,!1)&&(s.push(n),r))return!0;return!1}intersectsChildrenReverse(t,e,i,r=!1,s=[],n=!1){return this.intersectsChildrenHelperReverse(t,e,i,r,s),s}updateWorldMatrix(t,e,i){if(super.updateWorldMatrix(t,e,i),i&&this.children)for(let e of this.children)e.updateWorldMatrix(t,!1,!0)}find(t){let e;return this.traverse(i=>{i.uuid===t&&(e=i)}),e}innerDrawChildren(t){for(let e=this.children.length-1;e>=0;e--)this.children[e].draw(t)}resetBBoxNeedsUpdate(){super.resetBBoxNeedsUpdate(),this.traverse(t=>{t.resetBBoxNeedsUpdateSelf()})}clone(t){let e=new D(this.uuid,this.data,t);e.parent=void 0;for(let i of this.children)e.add(i.clone(t));return e}},X=class extends D{constructor(t,e,i){super(t,e,i),this.uuid=t,this.data=e,this.updateState(e,i)}draw(t){!this.visible||(t.save(),this.applyTransforms(t),this.innerDrawChildren(t),t.restore())}clone(t){let e=new X(this.uuid,this.data,t);e.parent=void 0;for(let i of this.children)e.add(i.clone(t));return e}},V=class extends D{constructor(t,e,i){super(t,e,i),this.uuid=t,this.width=0,this.height=0,this.clipped=!0,this.background=new j(t+"-background",s.defaultData,i),this.background.parent=this,this.updateState(e,i)}get fill(){return this.background.fill}get stroke(){return this.background.stroke}get backgroundBlur(){return this.background.backgroundBlur}get layerBlur(){return this.background.layerBlur}get dropShadow(){return this.background.dropShadow}get innerShadow(){return this.background.innerShadow}get cornerRadius(){return this.background.cornerRadius}set cornerRadius(t){this.background.cornerRadius=t}updateLocalMatrix(){super.updateLocalMatrix(),this.background?.updateLocalMatrix()}updateWorldMatrix(t,e,i){super.updateWorldMatrix(t,e,i),this.background?.updateWorldMatrix(t,e,i)}draw(t){if(!this.visible)return;t.save();let e=this.width,i=this.height;this.applyTransforms(t),this.background.width=e,this.background.height=i,this.background.draw(t),this.clipped&&t.clipRect(0,0,e,i,...this.cornerRadius),this.innerDrawChildren(t),t.restore()}getCenter(){return[.5*this.width,.5*this.height]}getHalfSize(){return[.5*this.width,.5*this.height]}updateCornerState(t){void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}updateSizeState(t){let e=!1;void 0!==t.width&&(this.width="number"==typeof t.width?t.width:this.width,e=!0),void 0!==t.height&&(this.height="number"==typeof t.height?t.height:this.height,e=!0),e&&this.updateWorldMatrix(!0,!1,!0)}updateState(t,e){super.updateState(t,e),this.updateSizeState(t),this.updateCornerState(t),void 0!==t.fill&&this.fill.update(t.fill),void 0!==t.stroke&&this.stroke.update(t.stroke),void 0!==t.dropShadow&&this.dropShadow.update(t.dropShadow),void 0!==t.innerShadow&&this.innerShadow.update(t.innerShadow),void 0!==t.layerBlur&&this.layerBlur.update(t.layerBlur),void 0!==t.backgroundBlur&&this.backgroundBlur.update(t.backgroundBlur),void 0!==t.clipped&&(this.clipped=t.clipped)}requestRender(){super.requestRender(),this.dispatchEvent({type:"render"})}dispose(){this.removeEventListener("render")}updateByPatchedOp(t,i,r){super.updateByPatchedOp(t,i,r),0===t.type&&(e(t.path,["fill"])?this.fill.update(t.props):e(t.path,["stroke"])?this.stroke.update(t.props):e(t.path,["dropShadow"])?this.dropShadow.update(t.props):e(t.path,["innerShadow"])?this.innerShadow.update(t.props):e(t.path,["layerBlur"])?this.layerBlur.update(t.props):e(t.path,["backgroundBlur"])?this.backgroundBlur.update(t.props):this.resetBBoxNeedsUpdate())}clone(t){let e=new V(this.uuid,this.data,t);e.parent=void 0;for(let i of this.children)e.add(i.clone(t));return e}},q=c(m(),1),Y=class extends N{constructor(t,e,i){super(t,e,i),this.uuid=t,this.data=e,this._pathBBox=new DOMRect,this.path="",this.updateState(e,i),this.autoClose=!1,this.computeSVGBBox()}computeSVGBBox(){let t=this.path;$(this.path)&&(console.warn("Invalid SVG path",this.uuid),t="");let e=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=document.createElementNS("http://www.w3.org/2000/svg","path");document.body.appendChild(e),i.setAttribute("d",t),e.appendChild(i),this._pathBBox=i.getBBox(),e.remove()}innerDraw(t){t.path(this.path)}intersectsInLocalSpace(t,e){return t>=this._pathBBox.x&&t<=this._pathBBox.x+this._pathBBox.width&&e>=this._pathBBox.y&&e<=this._pathBBox.y+this._pathBBox.height}getCenter(){return[(this._pathBBox.x+this._pathBBox.width)/2,(this._pathBBox.y+this._pathBBox.height)/2]}getHalfSize(){return[(this._pathBBox.x+this._pathBBox.width)/2,(this._pathBBox.y+this._pathBBox.height)/2]}updateState(t,e){super.updateState(t,e),void 0!==t.path&&(this.path=t.path,this.computeSVGBBox())}clone(t){let e=new Y(this.uuid,this.data,t);return e.parent=void 0,e}};function $(t){return/NaN/.test(t)}function G(t,e=1,i=1){if(e<=0||i<=0)return t;if($(t))return console.warn("Cannot scale invalid path",t),Q([]);try{return Q((0,q.parseSVG)(t).map(t=>{let r={...t};return"x"in r&&(r.x=r.x*e),"y"in r&&(r.y=r.y*i),"x1"in r&&(r.x1=r.x1*e),"x2"in r&&(r.x2=r.x2*e),"y1"in r&&(r.y1=r.y1*i),"y2"in r&&(r.y2=r.y2*i),"rx"in r&&(r.rx=r.rx*e),"ry"in r&&(r.ry=r.ry*i),r}))}catch(t){return console.warn("Error parsing SVG path",t),Q([])}}function Q(t){let e,i=["rx","ry","xAxisRotation","largeArc","sweep","x1","y1","x2","y2","x","y"];return t.map(t=>{let r=[];i.forEach(e=>{if(e in t){let i=1*t[e];r.length&&i>=0&&r.push(","),r.push(i)}});let s=(e===t.code?r[0]<0?"":",":t.code)+r.join("");return e=t.code,s}).join("")}var Z=class{constructor(t,e,i){this.uuid=t,this.data=e,this.group=new X(Z.GROUP_ID,{...n.defaultData},i),this.createChildrenObjects(e.objects,this.group,i)}createObject(t,e,i,r,s,n){let a=function(t,e,i){switch(e.type){case"ellipse2d":return new U(t,e,i);case"rectangle2d":return new j(t,e,i);case"text2d":return new I(t,e,i);case"vector2d":return new W(t,e,i);case"path2d":return new Y(t,e,i);case"frame2d":return new V(t,e,i);default:return new X(t,e,i)}}(t,e,n);a&&(r.add(a),r.children.splice(s,0,r.children.pop()),a.updateWorldMatrix(),i.length>0&&(a instanceof X||a instanceof V)&&this.createChildrenObjects(i,a,n))}createChildrenObjects(t,e,i){let r=0;for(let s of t)this.createObject(s.id,s.data,s.children,e,r,i),r+=1}draw(t){this.group.draw(t)}updateEntityByOp(t,e,i,r){let s=this.find(t);if(s)try{s.updateByOp(e,i,{shared:r})}catch(t){console.error(t)}}updateTreeByOp(t,e){if(0===t.path.length&&7===t.type){let i=null===t.parent?this.group:this.find(t.parent);void 0!==i&&i instanceof D&&(this.createObject(t.id,t.data,t.children,i,t.localIndex,e),i.requestRender())}else if(0===t.path.length&&8===t.type){let e=this.find(t.id);if(void 0!==e&&void 0!==e.parent&&e.parent instanceof D){let t=e.parent;e.resetBBoxNeedsUpdate(),t?.remove(e),t?.requestRender()}}else if(0===t.path.length&&9===t.type){let e=this.find(t.id);if(void 0!==e){let r=e.parent,s=null===t.parent?this:this.find(t.parent);if(void 0===s&&i&&console.error("unexpected",s,t),s instanceof D||s===this){s.add(e);let i=t.localIndex;s.children.splice(i,0,s.children.pop()),e.updateWorldMatrix(!0,!1,!0),r?.requestRender(),e.requestRender()}e.resetBBoxNeedsUpdate()}}}add(t){this.group.add(t)}remove(t){this.group.remove(t)}traverse(t){this.group.traverse(e=>{e!==this.group&&t(e)})}intersectsChildren(t,e,i,r=!1,s=[]){return this.group.intersectsChildren(t,e,i,r,s,!0)}intersectsChildrenReverse(t,e,i,r=!1,s=[]){return this.group.intersectsChildrenReverse(t,e,i,r,s,!0)}find(t){return this.group.find(t)}get children(){return this.group.children}project(t,e){return this.group.project(t,e)}getWithSortKey(t){let e=this.find(t);if(void 0===e)return;let i=[],r=e;for(;r!==this.group;){let t=r;r=r.parent;let e=r.children.indexOf(t);i.splice(0,0,e)}return{entity:e,sortKey:i}}getAllSorted(t){let e=[];for(let i of t){let t=this.getWithSortKey(i.id);void 0!==t&&e.push(t)}return e.sort((t,e)=>o(t.sortKey,e.sortKey)),e.map(t=>t.entity)}},J=Z;J.GROUP_ID="scene2d";var K=c(m(),1);function tt(t,e,i,r,s,n,a,h,o,l){if(e===o&&i===l)return;if(r=Math.abs(r),s=Math.abs(s),0===r||0===s)return void t.push({LineTo:{x:o,y:l}});let d=n*Math.PI/180,u=Math.cos(d),c=Math.sin(d),p=(e-o)/2,f=(i-l)/2,x=u*p+c*f,g=-c*p+u*f,m=x*x/(r*r)+g*g/(s*s);if(m>1){let t=Math.sqrt(m);r*=t,s*=t}let y=r*r,v=s*s,w=y*v-y*g*g-v*x*x,_=y*g*g+v*x*x,S=(a!==h?1:-1)*Math.sqrt(Math.max(0,w/_)),B=S*(r*g)/s,b=S*(-s*x)/r,M=u*B-c*b+(e+o)/2,C=c*B+u*b+(i+l)/2,k=Math.atan2((g-b)/s,(x-B)/r),A=Math.atan2((-g-b)/s,(-x-B)/r)-k;!h&&A>0?A-=2*Math.PI:h&&A<0&&(A+=2*Math.PI);let T=Math.max(1,Math.ceil(Math.abs(A)/(Math.PI/2))),P=A/T,z=4/3*Math.tan(P/4),R=k,O=e,E=i;for(let e=0;e<T;e++){let e=R+P,i=Math.cos(R),n=Math.sin(R),a=Math.cos(e),h=Math.sin(e),o=M+r*a*u-s*h*c,l=C+r*a*c+s*h*u,d=-r*n*u-s*i*c,p=-r*n*c+s*i*u,f=-r*h*u-s*a*c,x=-r*h*c+s*a*u;t.push({CurveTo:[{x:O+z*d,y:E+z*p},{x:o-z*f,y:l-z*x},{x:o,y:l}]}),R=e,O=o,E=l}}var et=.5522847498307936,it=3408/2816,rt=1536/2816,st=!1;function nt(){st||(st=!0,console.warn("[HanaRenderer] clipRect: precise clipping of rotated/complex content is not supported by the Hana UI overlay yet; drawing unclipped. (Axis-aligned rectangles are clipped geometrically.)"))}var at=class{constructor(t,e=1){this.canvas=t,this._dpr=e,this._width=0,this._height=0,this._isSizeDirty=!1,this._crashed=!1,this._shapes=[],this._lastPushedJSON="",this._ctm=S.identity(),this._stack=[],this._clips=[],this._pathEls=[],this._simpleShape=null,this._pathPrimitives=0,this._fillColor=h.transparent,this._strokeColor=h.transparent,this._lineWidth=1,this._strokeMode="inside",this._layerBlur=0,this._backgroundBlur=0,this._dropShadowBlur=0,this._dropShadowOffsetX=0,this._dropShadowOffsetY=0,this._dropShadowColor=h.transparent,this._innerShadowBlur=0,this._innerShadowOffsetX=0,this._innerShadowOffsetY=0,this._innerShadowSpread=0,this._innerShadowColor=h.transparent,this._fonts=new Map,this._fontsFlushed=new Set,this._fontXPerEm=new Map,this._measureCache=new Map;try{let i=t.getBoundingClientRect();t.width=i.width*e,t.height=i.height*e}catch{console.log(t.width,e)}}get dpr(){return this._dpr}set dpr(t){this._dpr=t,this._isSizeDirty=!0}get width(){return this._width}get height(){return this._height}async init(){if(!this._engine&&!this._crashed){try{this._context=await y(),this._engine=await this._context.createEngine(this.canvas)}catch(t){return this._crashed=!0,void console.error("[HanaRenderer] Failed to load the Hana UI engine; UI scenes will not render.",t)}if(this._width>0&&this._height>0)this._syncViewport();else{let t=this.canvas.getBoundingClientRect();t.width>0&&t.height>0&&(this._width=t.width,this._height=t.height,this._syncViewport())}this._flushFonts()}}_syncViewport(){let t=this._engine;if(!t||this._crashed)return;let e=this._width,i=this._height;this.canvas.style.width=e+"px",this.canvas.style.height=i+"px",this.canvas.width=Math.max(1,Math.ceil(e*this._dpr)),this.canvas.height=Math.max(1,Math.ceil(i*this._dpr)),this._guard(()=>{t.resize([e,i],this._dpr),t.scene.updateCamera({position:[e/2,i/2],zoom:1})})}setSize(t,e){!this._isSizeDirty&&t===this._width&&e===this._height||(this._isSizeDirty=!1,this._width=t,this._height=e,this._engine?this._syncViewport():(this.canvas.style.width=t+"px",this.canvas.style.height=e+"px",this.canvas.width=Math.max(1,Math.ceil(t*this._dpr)),this.canvas.height=Math.max(1,Math.ceil(e*this._dpr))))}_guard(t){if(!this._crashed)try{t()}catch(t){this._crashed=!0,console.error("[HanaRenderer] Hana engine call failed; disabling this renderer instance.",t)}}async loadFont(t,e){try{let i=await fetch(t);if(!i.ok)return void console.error(`[HanaRenderer] loadFont: ${t} returned HTTP ${i.status}; skipping "${e}"`);let r=await i.arrayBuffer();if(0===r.byteLength)return void console.error(`[HanaRenderer] loadFont: ${t} was empty; skipping "${e}"`);this.registerFont(r,e)}catch(i){console.error(`[HanaRenderer] loadFont failed for "${e}" (${t}):`,i)}}registerFont(t,e){if(this._fonts.has(e))return;this._fonts.set(e,t);let i=function(t){try{let e=new DataView(t),i=e.getUint32(0);if(65536!==i&&1330926671!==i&&1953658213!==i)return;let r=e.getUint16(4),s=-1,n=-1;for(let t=0;t<r;t++){let i=12+16*t,r=e.getUint32(i);1751474532===r&&(s=e.getUint32(i+8)),1330851634===r&&(n=e.getUint32(i+8))}if(s<0||n<0)return;let a=e.getUint16(s+18),h=e.getUint16(n);if(0===a||h<2)return;let o=e.getInt16(n+86);return o>0?o/a:void 0}catch{return}}(t);void 0!==i&&this._fontXPerEm.set(e,i),this._flushFonts()}_flushFonts(){let t=this._engine;if(t)for(let[e,i]of this._fonts)this._fontsFlushed.has(e)||(this._fontsFlushed.add(e),this._guard(()=>{t.scene.addLocalFont(e,new Uint8Array(i))}))}set strokeColor(t){this._strokeColor=t}set fillColor(t){this._fillColor=t}set lineWidth(t){this._lineWidth=t}set strokeMode(t){this._strokeMode=t}set dropShadowBlur(t){this._dropShadowBlur=t}set dropShadowColor(t){this._dropShadowColor=t}set dropShadowOffsetX(t){this._dropShadowOffsetX=t}set dropShadowOffsetY(t){this._dropShadowOffsetY=t}set innerShadowBlur(t){this._innerShadowBlur=t}set innerShadowColor(t){this._innerShadowColor=t}set innerShadowOffsetX(t){this._innerShadowOffsetX=t}set innerShadowOffsetY(t){this._innerShadowOffsetY=t}set innerShadowSpread(t){this._innerShadowSpread=t}set layerBlur(t){this._layerBlur=t}set backgroundBlur(t){this._backgroundBlur=t}save(){this._stack.push({ctm:S.copy(this._ctm),clipLen:this._clips.length})}restore(){let t=this._stack.pop();!t||(this._ctm=t.ctm,this._clips.length=t.clipLen)}setTransform(t,e=!1){let i=S.identity();if(this.camera?.enabled&&(i=S.append(i,this.camera.worldMatrix),e)){let t=S.getScale(this.camera.worldMatrix);i=S.scale(i,1/t[0],1/t[1])}this._ctm=S.append(i,t)}transform(t){this._ctm=S.append(this._ctm,t)}beginPath(){this._pathEls=[],this._simpleShape=null,this._pathPrimitives=0}closePath(){0!==this._pathEls.length&&"ClosePath"!==this._pathEls[this._pathEls.length-1]&&this._pathEls.push("ClosePath")}_startFreeform(){this._simpleShape=null,this._pathPrimitives++}moveTo(t,e){this._startFreeform(),this._pathEls.push({MoveTo:{x:t,y:e}})}lineTo(t,e){this._startFreeform(),this._pathEls.push({LineTo:{x:t,y:e}})}bezierCurveTo(t,e,i,r,s,n){this._startFreeform(),this._pathEls.push({CurveTo:[{x:t,y:e},{x:i,y:r},{x:s,y:n}]})}quadraticCurveTo(t,e,i,r){this._startFreeform(),this._pathEls.push({QuadTo:[{x:t,y:e},{x:i,y:r}]})}path(t){this._startFreeform(),this._pathEls.push(...function(t){let e,i=[];try{e=(0,K.makeAbsolute)((0,K.parseSVG)(t))}catch(t){return console.error("[HanaRenderer] Failed to parse SVG path:",t),i}let r=0,s=0,n=0,a=0,h=null,o=null;for(let t of e){let e=null,l=null;switch(t.code){case"M":r=n=t.x,s=a=t.y,i.push({MoveTo:{x:r,y:s}});break;case"L":r=t.x,s=t.y,i.push({LineTo:{x:r,y:s}});break;case"H":r=t.x,i.push({LineTo:{x:r,y:s}});break;case"V":s=t.y,i.push({LineTo:{x:r,y:s}});break;case"C":{let n={x:t.x1,y:t.y1},a={x:t.x2,y:t.y2};r=t.x,s=t.y,i.push({CurveTo:[n,a,{x:r,y:s}]}),e=a;break}case"S":{let n=h?{x:2*r-h.x,y:2*s-h.y}:{x:r,y:s},a={x:t.x2,y:t.y2};r=t.x,s=t.y,i.push({CurveTo:[n,a,{x:r,y:s}]}),e=a;break}case"Q":{let e={x:t.x1,y:t.y1};r=t.x,s=t.y,i.push({QuadTo:[e,{x:r,y:s}]}),l=e;break}case"T":{let e=o?{x:2*r-o.x,y:2*s-o.y}:{x:r,y:s};r=t.x,s=t.y,i.push({QuadTo:[e,{x:r,y:s}]}),l=e;break}case"A":{let e=r,n=s;r=t.x,s=t.y,tt(i,e,n,t.rx,t.ry,t.xAxisRotation,t.largeArc,t.sweep,r,s);break}case"Z":r=n,s=a,i.push("ClosePath")}h=e,o=l}return i}(t))}rect(t,e,i,r,s=0,n=0,a=0,h=0){if(!ut([t,e,i,r]))return;let o={x:t,y:e,w:i,h:r,radii:[s,n,a,h]};this._pathPrimitives++,this._simpleShape=1===this._pathPrimitives&&0===this._pathEls.length?{kind:"rect",rect:o,smoothing:0}:null,xt(this._pathEls,o)}ellipse(t,e,i,r,s,n,a,h){if(ut([t,e,i,r])){if(i<0||r<0)throw Error("radii cannot be negative");this._pathPrimitives++,this._simpleShape=1===this._pathPrimitives&&0===this._pathEls.length?{kind:"ellipse",cx:t,cy:e,rx:i,ry:r}:null,function(t,e,i,r,s){let n=r*et,a=s*et;t.push({MoveTo:{x:e+r,y:i}},{CurveTo:[{x:e+r,y:i+a},{x:e+n,y:i+s},{x:e,y:i+s}]},{CurveTo:[{x:e-n,y:i+s},{x:e-r,y:i+a},{x:e-r,y:i}]},{CurveTo:[{x:e-r,y:i-a},{x:e-n,y:i-s},{x:e,y:i-s}]},{CurveTo:[{x:e+n,y:i-s},{x:e+r,y:i-a},{x:e+r,y:i}]},"ClosePath")}(this._pathEls,t,e,i,r)}}clipRect(t,e,i,r,s=0,n=0,a=0,h=0){let o=S.invert(this._ctm);!o||this._clips.push({m:S.copy(this._ctm),inv:o,rect:{x:t,y:e,w:i,h:r,radii:[s,n,a,h]}})}fill(){this._emit(!0)}stroke(){this._strokeColor.a<=0||this._lineWidth<=0||this._emit(!1)}_emit(t){let e=this._effectChain(t);if(t&&this._fillColor.a<=0&&!e)return;let i=this._classifyShape();if(!i)return;let r=this._applyClips(i);if("skip"===r)return;if(!t&&r!==i){let t=pt(i);if(t)return void this._emitClippedRectStroke(t,e)}i=r;let s={shape:i,color:t?dt(this._fillColor):[0,0,0,0],transform:S.getAbcdef(this._ctm)};t||(s.stroke=this._strokeDesc()),e&&(s.effect_chain=e),this._shapes.push(s)}_emitClippedRectStroke(t,e){let i=this._lineWidth,r="outside"===this._strokeMode?i:"center"===this._strokeMode?i/2:0,s=i-r,n=Math.min(t.w,t.h)/2,a=t.radii.map(t=>Math.max(0,Math.min(t,n))),h={x:t.x-r,y:t.y-r,w:t.w+2*r,h:t.h+2*r,radii:a.map(t=>t>0?t+r:0)},o=t.w-2*s,l=t.h-2*s,d=o>0&&l>0?{x:t.x+s,y:t.y+s,w:o,h:l,radii:a.map(t=>Math.max(0,t-s))}:null,u=this._applyClips(ct(h,0));if("skip"===u)return;let c=pt(u)??h,p=null;if(d){let t=this._applyClips(ct(d,0));p="skip"===t?null:pt(t)??d}let f=[];xt(f,c),p&&function(t,e){let{x:i,y:r,w:s,h:n}=e,a=Math.min(s,n)/2,[h,o,l,d]=e.radii.map(t=>Math.max(0,Math.min(t,a)));if(0===h&&0===o&&0===l&&0===d)return void t.push({MoveTo:{x:i,y:r}},{LineTo:{x:i,y:r+n}},{LineTo:{x:i+s,y:r+n}},{LineTo:{x:i+s,y:r}},"ClosePath");let u=1-et;t.push({MoveTo:{x:i+h,y:r}}),h>0&&t.push({CurveTo:[{x:i+h*u,y:r},{x:i,y:r+h*u},{x:i,y:r+h}]}),t.push({LineTo:{x:i,y:r+n-d}}),d>0&&t.push({CurveTo:[{x:i,y:r+n-d*u},{x:i+d*u,y:r+n},{x:i+d,y:r+n}]}),t.push({LineTo:{x:i+s-l,y:r+n}}),l>0&&t.push({CurveTo:[{x:i+s-l*u,y:r+n},{x:i+s,y:r+n-l*u},{x:i+s,y:r+n-l}]}),t.push({LineTo:{x:i+s,y:r+o}}),o>0&&t.push({CurveTo:[{x:i+s,y:r+o*u},{x:i+s-o*u,y:r},{x:i+s-o,y:r}]}),t.push("ClosePath")}(f,p);let x={shape:{Custom:f},color:dt(this._strokeColor),transform:S.getAbcdef(this._ctm)};e&&(x.effect_chain=e),this._shapes.push(x)}_classifyShape(){let t=this._simpleShape;return t?"rect"===t.kind?ct(t.rect,t.smoothing):{Ellipse:{center_x:t.cx,center_y:t.cy,rx:t.rx,ry:t.ry}}:0===this._pathEls.length?null:{Custom:this._pathEls.slice()}}_strokeDesc(){return{width:this._lineWidth,line_join:"Miter",color:dt(this._strokeColor),align:ht[this._strokeMode],cap:"Butt"}}_effectChain(t){let e=this.camera?.scale??1,i=[];if(t&&this._dropShadowColor.a>0&&i.push({DropShadow:{position:[this._dropShadowOffsetX*e,this._dropShadowOffsetY*e],blur:{Uniform:{size:2*this._dropShadowBlur*e}},spread:0,color:dt(this._dropShadowColor)}}),t&&this._backgroundBlur>0){let[t,e]=S.getScale(this._ctm),r=(t+e)/2;i.push({BackgroundBlur:{blur:{Uniform:{size:2*this._backgroundBlur*r}}}})}if(this._layerBlur>0&&i.push({LayerBlur:{blur:{Uniform:{size:2*this._layerBlur*e}}}}),t&&this._innerShadowColor.a>0){let[t,r,s,n]=S.getAbcdef(this._ctm),a=this._innerShadowOffsetX,h=this._innerShadowOffsetY;i.push({InnerShadow:{position:[t*a+s*h,r*a+n*h],blur:{Uniform:{size:2*this._innerShadowBlur*e}},spread:this._innerShadowSpread*e,color:dt(this._innerShadowColor)}})}return i.length>0?i:void 0}_applyClips(t){if(0===this._clips.length)return t;let e=t;for(let t of this._clips){let i=S.append(t.inv,this._ctm),[r,s,n,a,h,o]=S.getAbcdef(i),l=Math.abs(s)<=1e-6*(Math.abs(r)+Math.abs(a))&&Math.abs(n)<=1e-6*(Math.abs(r)+Math.abs(a)),d=ft(e);if(!d)return e;if(!l){nt();continue}let u=r*d.minX+h,c=r*d.maxX+h,p=a*d.minY+o,f=a*d.maxY+o,x=Math.min(u,c),g=Math.max(u,c),m=Math.min(p,f),y=Math.max(p,f),v=t.rect,w=Math.max(x,v.x),_=Math.max(m,v.y),B=Math.min(g,v.x+v.w),b=Math.min(y,v.y+v.h);if(w>=B||_>=b)return"skip";if(w===x&&_===m&&B===g&&b===y)continue;let M=pt(e);if(!M||0===r||0===a){nt();continue}let C=(w-h)/r,k=(B-h)/r,A=(_-o)/a,T=(b-o)/a,P=Math.min(C,k),z=Math.min(A,T),R=Math.abs(k-C),O=Math.abs(T-A),[E,H,L,F]=M.radii,N=P!==M.x,U=z!==M.y,j=P+R!==M.x+M.w,I=z+O!==M.y+M.h,W=Math.min(R,O)/2;e=ct({x:P,y:z,w:R,h:O,radii:[N||U?0:Math.min(E,W),j||U?0:Math.min(H,W),j||I?0:Math.min(L,W),N||I?0:Math.min(F,W)]},0)}return e}drawText(t,e){let i=this._fontXPerEm.get(e.font),r=i?i/rt:1,s={TextSimple:{text:t,font_size:e.fontSize*it*r,size:[e.width,e.height],horizontal_align:ot[e.horizontalAlign]??"Left",vertical_align:lt[e.verticalAlign]??"Top"}},n=this._effectChain(!0),a=this._fillColor.a>0,h=this._strokeColor.a>0&&this._lineWidth>0;if(a||h||n){let t={shape:s,color:a?dt(this._fillColor):[0,0,0,0],transform:S.getAbcdef(S.append(this._ctm,S.translate(S.identity(),e.x,e.y)))};h&&(t.stroke=this._strokeDesc()),n&&(t.effect_chain=n),this._shapes.push(t)}return{height:this._measureTextHeight(t,e)}}_measureTextHeight(t,e){let i=`${e.font}|${e.fontSize}|${e.lineHeight}|${e.letterSpacing}|${e.width}|${t}`,r=this._measureCache.get(i);if(void 0!==r)return r;let s=0,n=this._engine;if(n&&!this._crashed&&this._fontsFlushed.has(e.font))try{let[,i]=n.scene.measureTextNaturalSize({size:[e.width,e.height],text:t,fontSize:e.fontSize,horizontalAlign:ot[e.horizontalAlign]??"Left",verticalAlign:lt[e.verticalAlign]??"Top",lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,textTransform:"None",font:e.font,version:0,autoSize:"None",truncate:"None"});s=i}catch{}if(!(s>0)){let i=.55*e.fontSize+Math.max(0,e.letterSpacing),r=Math.max(1,Math.floor(e.width/i)),n=0;for(let e of t.split("\n"))n+=Math.max(1,Math.ceil(e.length/r));s=n*e.fontSize*e.lineHeight}return this._measureCache.size>512&&this._measureCache.clear(),this._measureCache.set(i,s),s}clear(){this._shapes=[],this._ctm=S.identity(),this._stack.length=0,this._clips.length=0}render(){let t=this._engine;if(!t||this._crashed)return;let e=JSON.stringify(this._shapes);e!==this._lastPushedJSON&&(this._guard(()=>t.scene.updateUiShapes(this._shapes)),this._lastPushedJSON=e),this._guard(()=>t.onFrame())}},ht={inside:"Inside",outside:"Outside",center:"Center"},ot={1:"Left",2:"Right",3:"Center",4:"Justify"},lt={1:"Top",2:"Center",3:"Bottom"};function dt({r:t,g:e,b:i,a:r}){return[t,e,i,r]}function ut(t){for(let e=0;e<t.length;e++)if(void 0!==t[e]&&!Number.isFinite(t[e]))return!1;return!0}function ct(t,e){let[i,r,s,n]=t.radii;return 0===i&&0===r&&0===s&&0===n?{Rectangle:{x:t.x,y:t.y,width:t.w,height:t.h}}:{RoundedRectangle:{x:t.x,y:t.y,width:t.w,height:t.h,radius:[i,r,s,n],corner_smoothing:e}}}function pt(t){if("Rectangle"in t){let e=t.Rectangle;return{x:e.x,y:e.y,w:e.width,h:e.height,radii:[0,0,0,0]}}if("RoundedRectangle"in t){let e=t.RoundedRectangle;return{x:e.x,y:e.y,w:e.width,h:e.height,radii:[e.radius[0],e.radius[1],e.radius[2],e.radius[3]]}}return null}function ft(t){let e=pt(t);if(e)return{minX:e.x,minY:e.y,maxX:e.x+e.w,maxY:e.y+e.h};if("Ellipse"in t){let e=t.Ellipse;return{minX:e.center_x-e.rx,minY:e.center_y-e.ry,maxX:e.center_x+e.rx,maxY:e.center_y+e.ry}}if("TextSimple"in t){let e=t.TextSimple;return{minX:0,minY:0,maxX:e.size[0],maxY:e.size[1]}}if("Custom"in t){let e=1/0,i=1/0,r=-1/0,s=-1/0,n=t=>{t.x<e&&(e=t.x),t.y<i&&(i=t.y),t.x>r&&(r=t.x),t.y>s&&(s=t.y)};for(let e of t.Custom)"ClosePath"!==e&&("MoveTo"in e?n(e.MoveTo):"LineTo"in e?n(e.LineTo):"QuadTo"in e?e.QuadTo.forEach(n):"CurveTo"in e&&e.CurveTo.forEach(n));return e===1/0?null:{minX:e,minY:i,maxX:r,maxY:s}}return null}function xt(t,e){let{x:i,y:r,w:s,h:n}=e,a=Math.min(s,n)/2,[h,o,l,d]=e.radii.map(t=>Math.max(0,Math.min(t,a)));if(0===h&&0===o&&0===l&&0===d)return void t.push({MoveTo:{x:i,y:r}},{LineTo:{x:i+s,y:r}},{LineTo:{x:i+s,y:r+n}},{LineTo:{x:i,y:r+n}},"ClosePath");let u=1-et;t.push({MoveTo:{x:i+h,y:r}}),t.push({LineTo:{x:i+s-o,y:r}}),o>0&&t.push({CurveTo:[{x:i+s-o*u,y:r},{x:i+s,y:r+o*u},{x:i+s,y:r+o}]}),t.push({LineTo:{x:i+s,y:r+n-l}}),l>0&&t.push({CurveTo:[{x:i+s,y:r+n-l*u},{x:i+s-l*u,y:r+n},{x:i+s-l,y:r+n}]}),t.push({LineTo:{x:i+d,y:r+n}}),d>0&&t.push({CurveTo:[{x:i+d*u,y:r+n},{x:i,y:r+n-d*u},{x:i,y:r+n-d}]}),t.push({LineTo:{x:i,y:r+h}}),h>0&&t.push({CurveTo:[{x:i,y:r+h*u},{x:i+h*u,y:r},{x:i+h,y:r}]}),t.push("ClosePath")}function gt({constraints:t,newParentWidth:e,newParentHeight:i,initialParentWidth:r,initialParentHeight:s,objectInitialWidth:n,objectInitialHeight:a,objectInitialPosition:h}){let{horizontalConstraint:o,verticalConstraint:l}=t,d=e-r,u=i-s,c=n,p=a,f=h[0],x=h[1];if(0!==o)if(1===o)f+=d;else if(3===o)f+=d/2;else if(2===o)c=Math.max(1,c+d);else if(4===o){let t=e/r;c*=t,f*=t}if(0!==l)if(1===l)x+=u;else if(3===l)x+=u/2;else if(2===l)p=Math.max(1,p+u);else if(4===l){let t=i/s;p*=t,x*=t}return{width:c,height:p,position:[f,x]}}c(m(),1);export{S as a,v as b,w as c,at as d,N as e,U as f,j as g,I as h,X as i,V as j,Y as k,G as l,J as m,gt as n};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){return t.color(e)}function t(e=new Date,t){let a=t.format,r=e.getSeconds(),n=e;t&&null!==t.timeZone&&(n=function(e,t){try{let a=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}).formatToParts(e),r=e=>Number(a.find(t=>t.type===e)?.value);return new Date(r("year"),r("month")-1,r("day"),r("hour"),r("minute"),r("second"),e.getMilliseconds())}catch{return new Date(NaN)}}(new Date,t.timeZone));let o,i=n.getHours(),m=n.getMinutes();"12ampm"===t.format12h24h&&(o=i>=12?"PM":"AM");let s,c,u=i;switch("24"!==t.format12h24h&&(u=i%12,0===u&&(u=12)),a){case"HH:mm:ss":s=[u,m,r];break;case"HH:mm":s=[u,m];break;case"HH":s=[u],o=void 0;break;case"mm":s=[m],o=void 0;break;case"ss":s=[r],o=void 0;break;case"year":c=n.getFullYear();break;case"month":c=n.getMonth()+1;break;case"dayOfYear":c=Math.floor((n.getTime()-new Date(n.getFullYear(),0,0).getTime())/864e5);break;case"dayOfMonth":c=n.getDate();break;case"secondOfDay":c=60*i*60+60*m+r;break;default:console.error("Unknown time format",a),c=0}return void 0!==s?{textValue:s,suffix:o}:c}export{e as a,t as b};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=new Set;function a(a){n.add(a)}function t(a){return n.has(a)}var e=new Set;function s(n,a){let t=`${n}:${a}`;e.has(t)||e.add(t)}var u=new Map,r=new Map;function c(n,a){u.set(n,a)}function f(n){return u.get(n)}function i(n,a){r.set(n,a)}function o(n){return r.get(n)}var l=new Map;function v(n,a){l.set(n,a)}function w(n){return l.get(n)}var d=null,g=null;function p(n){d=n,null!==g&&n.setHanaUIWasmUrl(g)}function U(n){g=n,d?.setHanaUIWasmUrl(n)}function h(){return d}export{a,t as b,s as c,c as d,f as e,i as f,o as g,v as h,w as i,p as j,U as k,h as l};
|