@needle-tools/engine 4.5.0-alpha.7 → 4.5.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.
Files changed (1066) hide show
  1. package/CHANGELOG.md +3729 -3729
  2. package/LICENSE.md +10 -10
  3. package/README.md +64 -64
  4. package/components.needle.json +1 -1
  5. package/dist/{needle-engine.bundle-e4d45a4b.light.umd.cjs → needle-engine.bundle-2d3f9594.light.umd.cjs} +5 -5
  6. package/dist/{needle-engine.bundle-b3f8f528.umd.cjs → needle-engine.bundle-4dbc6bd8.umd.cjs} +5 -5
  7. package/dist/{needle-engine.bundle-b0b656a0.js → needle-engine.bundle-55f7e76b.js} +9 -10
  8. package/dist/{needle-engine.bundle-794a5cc4.light.min.js → needle-engine.bundle-7a7b6e91.light.min.js} +3 -3
  9. package/dist/{needle-engine.bundle-ac188401.min.js → needle-engine.bundle-c7347339.min.js} +3 -3
  10. package/dist/{needle-engine.bundle-61f52fd3.light.js → needle-engine.bundle-f56361b5.light.js} +689 -690
  11. package/dist/needle-engine.d.ts +129 -130
  12. package/dist/needle-engine.js +2 -2
  13. package/dist/needle-engine.light.d.ts +129 -130
  14. package/dist/needle-engine.light.js +2 -2
  15. package/dist/needle-engine.light.min.js +1 -1
  16. package/dist/needle-engine.light.umd.cjs +1 -1
  17. package/dist/needle-engine.min.js +1 -1
  18. package/dist/needle-engine.umd.cjs +1 -1
  19. package/lib/asap/needle-asap.d.ts +1 -1
  20. package/lib/asap/needle-asap.js +95 -95
  21. package/lib/asap/sessiongranted.d.ts +3 -3
  22. package/lib/asap/sessiongranted.js +65 -65
  23. package/lib/asap/utils.d.ts +1 -1
  24. package/lib/asap/utils.js +3 -3
  25. package/lib/engine/analytics/index.d.ts +6 -6
  26. package/lib/engine/analytics/index.js +12 -12
  27. package/lib/engine/analytics/lcp.d.ts +3 -3
  28. package/lib/engine/analytics/lcp.js +34 -34
  29. package/lib/engine/api.d.ts +82 -82
  30. package/lib/engine/api.js +81 -81
  31. package/lib/engine/api.js.map +1 -1
  32. package/lib/engine/assets/index.d.ts +11 -11
  33. package/lib/engine/assets/index.js +47 -47
  34. package/lib/engine/assets/static.d.ts +1 -1
  35. package/lib/engine/assets/static.js +4 -4
  36. package/lib/engine/codegen/register_types.d.ts +1 -1
  37. package/lib/engine/codegen/register_types.js +300 -300
  38. package/lib/engine/debug/debug.d.ts +15 -15
  39. package/lib/engine/debug/debug.js +44 -44
  40. package/lib/engine/debug/debug_console.d.ts +2 -2
  41. package/lib/engine/debug/debug_console.js +307 -307
  42. package/lib/engine/debug/debug_overlay.d.ts +22 -22
  43. package/lib/engine/debug/debug_overlay.js +316 -316
  44. package/lib/engine/debug/debug_spatial_console.d.ts +2 -2
  45. package/lib/engine/debug/debug_spatial_console.js +390 -390
  46. package/lib/engine/debug/index.d.ts +2 -2
  47. package/lib/engine/debug/index.js +2 -2
  48. package/lib/engine/engine_addressables.d.ts +166 -166
  49. package/lib/engine/engine_addressables.js +608 -608
  50. package/lib/engine/engine_animation.d.ts +43 -43
  51. package/lib/engine/engine_animation.js +133 -133
  52. package/lib/engine/engine_application.d.ts +45 -45
  53. package/lib/engine/engine_application.js +104 -104
  54. package/lib/engine/engine_assetdatabase.d.ts +25 -25
  55. package/lib/engine/engine_assetdatabase.js +344 -344
  56. package/lib/engine/engine_audio.d.ts +4 -4
  57. package/lib/engine/engine_audio.js +23 -23
  58. package/lib/engine/engine_camera.d.ts +13 -13
  59. package/lib/engine/engine_camera.js +30 -30
  60. package/lib/engine/engine_components.d.ts +110 -110
  61. package/lib/engine/engine_components.js +374 -374
  62. package/lib/engine/engine_components_internal.d.ts +9 -9
  63. package/lib/engine/engine_components_internal.js +36 -36
  64. package/lib/engine/engine_constants.d.ts +10 -10
  65. package/lib/engine/engine_constants.js +41 -41
  66. package/lib/engine/engine_context.d.ts +472 -472
  67. package/lib/engine/engine_context.js +1664 -1664
  68. package/lib/engine/engine_context_registry.d.ts +71 -71
  69. package/lib/engine/engine_context_registry.js +117 -117
  70. package/lib/engine/engine_coroutine.d.ts +35 -35
  71. package/lib/engine/engine_coroutine.js +52 -52
  72. package/lib/engine/engine_create_objects.d.ts +118 -118
  73. package/lib/engine/engine_create_objects.js +308 -308
  74. package/lib/engine/engine_default_parameters.d.ts +2 -2
  75. package/lib/engine/engine_default_parameters.js +3 -3
  76. package/lib/engine/engine_editor-sync.d.ts +21 -21
  77. package/lib/engine/engine_editor-sync.js +4 -4
  78. package/lib/engine/engine_fileloader.d.ts +2 -2
  79. package/lib/engine/engine_fileloader.js +8 -8
  80. package/lib/engine/engine_gameobject.d.ts +68 -68
  81. package/lib/engine/engine_gameobject.js +596 -596
  82. package/lib/engine/engine_generic_utils.d.ts +1 -1
  83. package/lib/engine/engine_generic_utils.js +13 -13
  84. package/lib/engine/engine_gizmos.d.ts +149 -149
  85. package/lib/engine/engine_gizmos.js +530 -530
  86. package/lib/engine/engine_gltf.d.ts +12 -12
  87. package/lib/engine/engine_gltf.js +15 -15
  88. package/lib/engine/engine_gltf_builtin_components.d.ts +11 -11
  89. package/lib/engine/engine_gltf_builtin_components.js +341 -341
  90. package/lib/engine/engine_gltf_builtin_components.js.map +1 -1
  91. package/lib/engine/engine_hot_reload.d.ts +8 -8
  92. package/lib/engine/engine_hot_reload.js +197 -197
  93. package/lib/engine/engine_input.d.ts +362 -362
  94. package/lib/engine/engine_input.js +1294 -1294
  95. package/lib/engine/engine_input_utils.d.ts +2 -2
  96. package/lib/engine/engine_input_utils.js +22 -22
  97. package/lib/engine/engine_instancing.d.ts +19 -19
  98. package/lib/engine/engine_instancing.js +39 -39
  99. package/lib/engine/engine_license.d.ts +11 -11
  100. package/lib/engine/engine_license.js +361 -361
  101. package/lib/engine/engine_lifecycle_api.d.ts +83 -83
  102. package/lib/engine/engine_lifecycle_api.js +106 -106
  103. package/lib/engine/engine_lifecycle_functions_internal.d.ts +32 -32
  104. package/lib/engine/engine_lifecycle_functions_internal.js +146 -146
  105. package/lib/engine/engine_lightdata.d.ts +23 -23
  106. package/lib/engine/engine_lightdata.js +91 -91
  107. package/lib/engine/engine_loaders.callbacks.d.ts +96 -96
  108. package/lib/engine/engine_loaders.callbacks.js +85 -85
  109. package/lib/engine/engine_loaders.callbacks.js.map +1 -1
  110. package/lib/engine/engine_loaders.d.ts +48 -48
  111. package/lib/engine/engine_loaders.gltf.d.ts +13 -13
  112. package/lib/engine/engine_loaders.gltf.js +62 -62
  113. package/lib/engine/engine_loaders.js +335 -335
  114. package/lib/engine/engine_loaders.js.map +1 -1
  115. package/lib/engine/engine_lods.d.ts +31 -31
  116. package/lib/engine/engine_lods.js +146 -146
  117. package/lib/engine/engine_mainloop_utils.d.ts +32 -32
  118. package/lib/engine/engine_mainloop_utils.js +466 -466
  119. package/lib/engine/engine_math.d.ts +114 -114
  120. package/lib/engine/engine_math.js +247 -247
  121. package/lib/engine/engine_modules.d.ts +36 -36
  122. package/lib/engine/engine_modules.js +85 -85
  123. package/lib/engine/engine_networking.d.ts +260 -260
  124. package/lib/engine/engine_networking.js +764 -764
  125. package/lib/engine/engine_networking_auto.d.ts +24 -24
  126. package/lib/engine/engine_networking_auto.js +310 -310
  127. package/lib/engine/engine_networking_blob.d.ts +48 -48
  128. package/lib/engine/engine_networking_blob.js +228 -228
  129. package/lib/engine/engine_networking_files.d.ts +35 -35
  130. package/lib/engine/engine_networking_files.js +172 -172
  131. package/lib/engine/engine_networking_files_default_components.d.ts +6 -6
  132. package/lib/engine/engine_networking_files_default_components.js +42 -42
  133. package/lib/engine/engine_networking_instantiate.d.ts +100 -100
  134. package/lib/engine/engine_networking_instantiate.js +345 -345
  135. package/lib/engine/engine_networking_peer.d.ts +15 -15
  136. package/lib/engine/engine_networking_peer.js +132 -132
  137. package/lib/engine/engine_networking_streams.d.ts +123 -123
  138. package/lib/engine/engine_networking_streams.js +645 -645
  139. package/lib/engine/engine_networking_types.d.ts +22 -22
  140. package/lib/engine/engine_networking_types.js +7 -7
  141. package/lib/engine/engine_networking_utils.d.ts +2 -2
  142. package/lib/engine/engine_networking_utils.js +20 -20
  143. package/lib/engine/engine_networking_websocket.d.ts +1 -1
  144. package/lib/engine/engine_networking_websocket.js +2 -2
  145. package/lib/engine/engine_patcher.d.ts +10 -10
  146. package/lib/engine/engine_patcher.js +142 -142
  147. package/lib/engine/engine_physics.d.ts +152 -152
  148. package/lib/engine/engine_physics.js +645 -645
  149. package/lib/engine/engine_physics.types.d.ts +40 -40
  150. package/lib/engine/engine_physics.types.js +33 -33
  151. package/lib/engine/engine_physics_rapier.d.ts +147 -147
  152. package/lib/engine/engine_physics_rapier.js +1433 -1433
  153. package/lib/engine/engine_playerview.d.ts +26 -26
  154. package/lib/engine/engine_playerview.js +64 -64
  155. package/lib/engine/engine_scenelighting.d.ts +71 -71
  156. package/lib/engine/engine_scenelighting.js +226 -226
  157. package/lib/engine/engine_serialization.d.ts +3 -3
  158. package/lib/engine/engine_serialization.js +3 -3
  159. package/lib/engine/engine_serialization_builtin_serializer.d.ts +72 -72
  160. package/lib/engine/engine_serialization_builtin_serializer.js +403 -403
  161. package/lib/engine/engine_serialization_core.d.ts +85 -85
  162. package/lib/engine/engine_serialization_core.js +606 -606
  163. package/lib/engine/engine_serialization_decorator.d.ts +23 -23
  164. package/lib/engine/engine_serialization_decorator.js +66 -66
  165. package/lib/engine/engine_setup.d.ts +1 -1
  166. package/lib/engine/engine_setup.js +2 -2
  167. package/lib/engine/engine_shaders.d.ts +53 -53
  168. package/lib/engine/engine_shaders.js +252 -252
  169. package/lib/engine/engine_shims.d.ts +4 -4
  170. package/lib/engine/engine_shims.js +24 -24
  171. package/lib/engine/engine_test_utils.d.ts +39 -39
  172. package/lib/engine/engine_test_utils.js +83 -83
  173. package/lib/engine/engine_texture.d.ts +28 -28
  174. package/lib/engine/engine_texture.js +64 -64
  175. package/lib/engine/engine_three_utils.d.ts +201 -201
  176. package/lib/engine/engine_three_utils.js +731 -731
  177. package/lib/engine/engine_time.d.ts +51 -51
  178. package/lib/engine/engine_time.js +82 -82
  179. package/lib/engine/engine_time_utils.d.ts +88 -88
  180. package/lib/engine/engine_time_utils.js +215 -215
  181. package/lib/engine/engine_tonemapping.d.ts +2 -2
  182. package/lib/engine/engine_tonemapping.js +194 -194
  183. package/lib/engine/engine_types.d.ts +578 -578
  184. package/lib/engine/engine_types.js +95 -95
  185. package/lib/engine/engine_typestore.d.ts +28 -28
  186. package/lib/engine/engine_typestore.js +55 -55
  187. package/lib/engine/engine_util_decorator.d.ts +13 -13
  188. package/lib/engine/engine_util_decorator.js +116 -116
  189. package/lib/engine/engine_utils.d.ts +266 -266
  190. package/lib/engine/engine_utils.js +878 -878
  191. package/lib/engine/engine_utils_format.d.ts +23 -23
  192. package/lib/engine/engine_utils_format.js +212 -212
  193. package/lib/engine/engine_utils_screenshot.d.ts +159 -159
  194. package/lib/engine/engine_utils_screenshot.js +513 -513
  195. package/lib/engine/engine_utils_screenshot.xr.d.ts +5 -5
  196. package/lib/engine/engine_utils_screenshot.xr.js +90 -90
  197. package/lib/engine/engine_xr.d.ts +1 -1
  198. package/lib/engine/engine_xr.js +1 -1
  199. package/lib/engine/export/gltf/Writers.d.ts +19 -19
  200. package/lib/engine/export/gltf/Writers.js +24 -24
  201. package/lib/engine/export/gltf/index.d.ts +11 -11
  202. package/lib/engine/export/gltf/index.js +123 -123
  203. package/lib/engine/export/index.d.ts +2 -2
  204. package/lib/engine/export/index.js +2 -2
  205. package/lib/engine/export/state.d.ts +7 -7
  206. package/lib/engine/export/state.js +17 -17
  207. package/lib/engine/export/utils.d.ts +2 -2
  208. package/lib/engine/export/utils.js +7 -7
  209. package/lib/engine/extensions/EXT_texture_exr.d.ts +8 -8
  210. package/lib/engine/extensions/EXT_texture_exr.js +32 -32
  211. package/lib/engine/extensions/NEEDLE_animator_controller_model.d.ts +122 -122
  212. package/lib/engine/extensions/NEEDLE_animator_controller_model.js +95 -95
  213. package/lib/engine/extensions/NEEDLE_components.d.ts +35 -35
  214. package/lib/engine/extensions/NEEDLE_components.js +220 -220
  215. package/lib/engine/extensions/NEEDLE_gameobject_data.d.ts +10 -10
  216. package/lib/engine/extensions/NEEDLE_gameobject_data.js +57 -57
  217. package/lib/engine/extensions/NEEDLE_lighting_settings.d.ts +37 -37
  218. package/lib/engine/extensions/NEEDLE_lighting_settings.js +157 -157
  219. package/lib/engine/extensions/NEEDLE_lightmaps.d.ts +18 -18
  220. package/lib/engine/extensions/NEEDLE_lightmaps.js +99 -99
  221. package/lib/engine/extensions/NEEDLE_persistent_assets.d.ts +11 -11
  222. package/lib/engine/extensions/NEEDLE_persistent_assets.js +63 -63
  223. package/lib/engine/extensions/NEEDLE_progressive.d.ts +1 -1
  224. package/lib/engine/extensions/NEEDLE_progressive.js +1 -1
  225. package/lib/engine/extensions/NEEDLE_render_objects.d.ts +13 -13
  226. package/lib/engine/extensions/NEEDLE_render_objects.js +159 -159
  227. package/lib/engine/extensions/NEEDLE_techniques_webgl.d.ts +38 -38
  228. package/lib/engine/extensions/NEEDLE_techniques_webgl.js +564 -564
  229. package/lib/engine/extensions/extension_resolver.d.ts +4 -4
  230. package/lib/engine/extensions/extension_resolver.js +1 -1
  231. package/lib/engine/extensions/extension_utils.d.ts +12 -12
  232. package/lib/engine/extensions/extension_utils.js +152 -152
  233. package/lib/engine/extensions/extensions.d.ts +32 -32
  234. package/lib/engine/extensions/extensions.js +107 -107
  235. package/lib/engine/extensions/index.d.ts +6 -6
  236. package/lib/engine/extensions/index.js +6 -6
  237. package/lib/engine/extensions/usage_tracker.d.ts +13 -13
  238. package/lib/engine/extensions/usage_tracker.js +65 -65
  239. package/lib/engine/js-extensions/Camera.d.ts +1 -1
  240. package/lib/engine/js-extensions/Camera.js +39 -39
  241. package/lib/engine/js-extensions/ExtensionUtils.d.ts +9 -9
  242. package/lib/engine/js-extensions/ExtensionUtils.js +67 -67
  243. package/lib/engine/js-extensions/Layers.d.ts +6 -6
  244. package/lib/engine/js-extensions/Layers.js +22 -22
  245. package/lib/engine/js-extensions/Object3D.d.ts +120 -120
  246. package/lib/engine/js-extensions/Object3D.js +136 -136
  247. package/lib/engine/js-extensions/RGBAColor.d.ts +23 -23
  248. package/lib/engine/js-extensions/RGBAColor.js +111 -111
  249. package/lib/engine/js-extensions/Vector.d.ts +3 -3
  250. package/lib/engine/js-extensions/Vector.js +13 -13
  251. package/lib/engine/js-extensions/index.d.ts +5 -5
  252. package/lib/engine/js-extensions/index.js +5 -5
  253. package/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.d.ts +4 -4
  254. package/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js +79 -79
  255. package/lib/engine/shaders/shaderData.d.ts +55 -55
  256. package/lib/engine/shaders/shaderData.js +58 -58
  257. package/lib/engine/tests/test_utils.d.ts +2 -2
  258. package/lib/engine/tests/test_utils.js +53 -53
  259. package/lib/engine/webcomponents/WebXRButtons.d.ts +56 -56
  260. package/lib/engine/webcomponents/WebXRButtons.js +230 -230
  261. package/lib/engine/webcomponents/api.d.ts +5 -5
  262. package/lib/engine/webcomponents/api.js +4 -4
  263. package/lib/engine/webcomponents/buttons.d.ts +51 -51
  264. package/lib/engine/webcomponents/buttons.js +263 -263
  265. package/lib/engine/webcomponents/fonts.d.ts +9 -9
  266. package/lib/engine/webcomponents/fonts.js +32 -32
  267. package/lib/engine/webcomponents/icons.d.ts +9 -9
  268. package/lib/engine/webcomponents/icons.js +52 -52
  269. package/lib/engine/webcomponents/index.d.ts +1 -1
  270. package/lib/engine/webcomponents/index.js +1 -1
  271. package/lib/engine/webcomponents/logo-element.d.ts +10 -10
  272. package/lib/engine/webcomponents/logo-element.js +67 -67
  273. package/lib/engine/webcomponents/needle menu/needle-menu-spatial.d.ts +37 -37
  274. package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js +513 -513
  275. package/lib/engine/webcomponents/needle menu/needle-menu.d.ts +155 -155
  276. package/lib/engine/webcomponents/needle menu/needle-menu.js +1029 -1029
  277. package/lib/engine/webcomponents/needle-button.d.ts +34 -34
  278. package/lib/engine/webcomponents/needle-button.js +161 -161
  279. package/lib/engine/webcomponents/needle-engine.ar-overlay.d.ts +21 -21
  280. package/lib/engine/webcomponents/needle-engine.ar-overlay.js +166 -166
  281. package/lib/engine/webcomponents/needle-engine.attributes.d.ts +69 -69
  282. package/lib/engine/webcomponents/needle-engine.attributes.js +1 -1
  283. package/lib/engine/webcomponents/needle-engine.d.ts +113 -113
  284. package/lib/engine/webcomponents/needle-engine.extras.d.ts +6 -6
  285. package/lib/engine/webcomponents/needle-engine.extras.js +13 -13
  286. package/lib/engine/webcomponents/needle-engine.js +831 -831
  287. package/lib/engine/webcomponents/needle-engine.loading.d.ts +44 -44
  288. package/lib/engine/webcomponents/needle-engine.loading.js +341 -341
  289. package/lib/engine/xr/NeedleXRController.d.ts +313 -313
  290. package/lib/engine/xr/NeedleXRController.js +1007 -1007
  291. package/lib/engine/xr/NeedleXRSession.d.ts +339 -339
  292. package/lib/engine/xr/NeedleXRSession.js +1448 -1448
  293. package/lib/engine/xr/NeedleXRSync.d.ts +22 -22
  294. package/lib/engine/xr/NeedleXRSync.js +188 -188
  295. package/lib/engine/xr/SceneTransition.d.ts +18 -18
  296. package/lib/engine/xr/SceneTransition.js +69 -69
  297. package/lib/engine/xr/TempXRContext.d.ts +34 -34
  298. package/lib/engine/xr/TempXRContext.js +187 -187
  299. package/lib/engine/xr/XRRig.d.ts +7 -7
  300. package/lib/engine/xr/XRRig.js +1 -1
  301. package/lib/engine/xr/api.d.ts +6 -6
  302. package/lib/engine/xr/api.js +6 -6
  303. package/lib/engine/xr/events.d.ts +66 -66
  304. package/lib/engine/xr/events.js +93 -93
  305. package/lib/engine/xr/internal.d.ts +12 -12
  306. package/lib/engine/xr/internal.js +25 -25
  307. package/lib/engine/xr/usdz.d.ts +12 -12
  308. package/lib/engine/xr/usdz.js +29 -29
  309. package/lib/engine/xr/utils.d.ts +11 -11
  310. package/lib/engine/xr/utils.js +34 -34
  311. package/lib/engine-components/AlignmentConstraint.d.ts +10 -10
  312. package/lib/engine-components/AlignmentConstraint.js +39 -39
  313. package/lib/engine-components/Animation.d.ts +156 -156
  314. package/lib/engine-components/Animation.js +508 -508
  315. package/lib/engine-components/AnimationCurve.d.ts +40 -40
  316. package/lib/engine-components/AnimationCurve.js +159 -159
  317. package/lib/engine-components/AnimationUtils.d.ts +8 -8
  318. package/lib/engine-components/AnimationUtils.js +27 -27
  319. package/lib/engine-components/AnimationUtilsAutoplay.d.ts +1 -1
  320. package/lib/engine-components/AnimationUtilsAutoplay.js +39 -39
  321. package/lib/engine-components/Animator.d.ts +217 -217
  322. package/lib/engine-components/Animator.js +354 -354
  323. package/lib/engine-components/AnimatorController.d.ts +227 -227
  324. package/lib/engine-components/AnimatorController.js +1152 -1152
  325. package/lib/engine-components/AudioListener.d.ts +33 -33
  326. package/lib/engine-components/AudioListener.js +86 -86
  327. package/lib/engine-components/AudioSource.d.ts +217 -217
  328. package/lib/engine-components/AudioSource.js +634 -634
  329. package/lib/engine-components/AvatarLoader.d.ts +80 -80
  330. package/lib/engine-components/AvatarLoader.js +231 -231
  331. package/lib/engine-components/AxesHelper.d.ts +32 -32
  332. package/lib/engine-components/AxesHelper.js +67 -67
  333. package/lib/engine-components/BasicIKConstraint.d.ts +9 -9
  334. package/lib/engine-components/BasicIKConstraint.js +43 -43
  335. package/lib/engine-components/BoxCollider.d.ts +2 -2
  336. package/lib/engine-components/BoxCollider.js +2 -2
  337. package/lib/engine-components/BoxHelperComponent.d.ts +47 -47
  338. package/lib/engine-components/BoxHelperComponent.js +102 -102
  339. package/lib/engine-components/Camera.d.ts +231 -231
  340. package/lib/engine-components/Camera.js +700 -700
  341. package/lib/engine-components/CameraUtils.d.ts +1 -1
  342. package/lib/engine-components/CameraUtils.js +121 -121
  343. package/lib/engine-components/CharacterController.d.ts +55 -55
  344. package/lib/engine-components/CharacterController.js +236 -236
  345. package/lib/engine-components/Collider.d.ts +188 -188
  346. package/lib/engine-components/Collider.js +369 -369
  347. package/lib/engine-components/Component.d.ts +792 -792
  348. package/lib/engine-components/Component.js +920 -920
  349. package/lib/engine-components/Component.js.map +1 -1
  350. package/lib/engine-components/ContactShadows.d.ts +94 -94
  351. package/lib/engine-components/ContactShadows.js +453 -453
  352. package/lib/engine-components/DeleteBox.d.ts +19 -19
  353. package/lib/engine-components/DeleteBox.js +58 -58
  354. package/lib/engine-components/DeviceFlag.d.ts +16 -16
  355. package/lib/engine-components/DeviceFlag.js +47 -47
  356. package/lib/engine-components/DragControls.d.ts +170 -170
  357. package/lib/engine-components/DragControls.js +1421 -1421
  358. package/lib/engine-components/DropListener.d.ts +215 -215
  359. package/lib/engine-components/DropListener.js +630 -630
  360. package/lib/engine-components/Duplicatable.d.ts +35 -35
  361. package/lib/engine-components/Duplicatable.js +202 -202
  362. package/lib/engine-components/EventList.d.ts +54 -54
  363. package/lib/engine-components/EventList.js +232 -232
  364. package/lib/engine-components/EventTrigger.d.ts +33 -33
  365. package/lib/engine-components/EventTrigger.js +75 -75
  366. package/lib/engine-components/EventType.d.ts +22 -22
  367. package/lib/engine-components/EventType.js +23 -23
  368. package/lib/engine-components/Fog.d.ts +22 -22
  369. package/lib/engine-components/Fog.js +61 -61
  370. package/lib/engine-components/Gizmos.d.ts +17 -17
  371. package/lib/engine-components/Gizmos.js +64 -64
  372. package/lib/engine-components/GridHelper.d.ts +20 -20
  373. package/lib/engine-components/GridHelper.js +54 -54
  374. package/lib/engine-components/GroundProjection.d.ts +67 -67
  375. package/lib/engine-components/GroundProjection.js +343 -343
  376. package/lib/engine-components/Interactable.d.ts +12 -12
  377. package/lib/engine-components/Interactable.js +12 -12
  378. package/lib/engine-components/Joints.d.ts +19 -19
  379. package/lib/engine-components/Joints.js +51 -51
  380. package/lib/engine-components/LODGroup.d.ts +35 -35
  381. package/lib/engine-components/LODGroup.js +152 -152
  382. package/lib/engine-components/Light.d.ts +180 -180
  383. package/lib/engine-components/Light.js +535 -535
  384. package/lib/engine-components/LookAtConstraint.d.ts +19 -19
  385. package/lib/engine-components/LookAtConstraint.js +35 -35
  386. package/lib/engine-components/NeedleMenu.d.ts +50 -50
  387. package/lib/engine-components/NeedleMenu.js +92 -92
  388. package/lib/engine-components/NestedGltf.d.ts +25 -25
  389. package/lib/engine-components/NestedGltf.js +88 -88
  390. package/lib/engine-components/Networking.d.ts +54 -54
  391. package/lib/engine-components/Networking.js +112 -112
  392. package/lib/engine-components/OffsetConstraint.d.ts +14 -14
  393. package/lib/engine-components/OffsetConstraint.js +65 -65
  394. package/lib/engine-components/OrbitControls.d.ts +268 -268
  395. package/lib/engine-components/OrbitControls.js +1015 -1015
  396. package/lib/engine-components/PlayerColor.d.ts +19 -19
  397. package/lib/engine-components/PlayerColor.js +94 -94
  398. package/lib/engine-components/ReflectionProbe.d.ts +27 -27
  399. package/lib/engine-components/ReflectionProbe.js +201 -201
  400. package/lib/engine-components/Renderer.d.ts +153 -153
  401. package/lib/engine-components/Renderer.js +830 -830
  402. package/lib/engine-components/RendererInstancing.d.ts +140 -140
  403. package/lib/engine-components/RendererInstancing.js +744 -744
  404. package/lib/engine-components/RendererLightmap.d.ts +24 -24
  405. package/lib/engine-components/RendererLightmap.js +182 -182
  406. package/lib/engine-components/RigidBody.d.ts +155 -155
  407. package/lib/engine-components/RigidBody.js +517 -517
  408. package/lib/engine-components/SceneSwitcher.d.ts +263 -263
  409. package/lib/engine-components/SceneSwitcher.js +971 -971
  410. package/lib/engine-components/ScreenCapture.d.ts +144 -144
  411. package/lib/engine-components/ScreenCapture.js +547 -547
  412. package/lib/engine-components/ShadowCatcher.d.ts +33 -33
  413. package/lib/engine-components/ShadowCatcher.js +166 -166
  414. package/lib/engine-components/Skybox.d.ts +82 -82
  415. package/lib/engine-components/Skybox.js +448 -448
  416. package/lib/engine-components/SmoothFollow.d.ts +34 -34
  417. package/lib/engine-components/SmoothFollow.js +82 -82
  418. package/lib/engine-components/SpatialTrigger.d.ts +102 -102
  419. package/lib/engine-components/SpatialTrigger.js +225 -225
  420. package/lib/engine-components/SpectatorCamera.d.ts +111 -111
  421. package/lib/engine-components/SpectatorCamera.js +715 -715
  422. package/lib/engine-components/SphereCollider.d.ts +2 -2
  423. package/lib/engine-components/SphereCollider.js +2 -2
  424. package/lib/engine-components/SpriteRenderer.d.ts +132 -132
  425. package/lib/engine-components/SpriteRenderer.js +472 -472
  426. package/lib/engine-components/SyncedCamera.d.ts +41 -41
  427. package/lib/engine-components/SyncedCamera.js +199 -199
  428. package/lib/engine-components/SyncedRoom.d.ts +106 -106
  429. package/lib/engine-components/SyncedRoom.js +371 -371
  430. package/lib/engine-components/SyncedTransform.d.ts +94 -94
  431. package/lib/engine-components/SyncedTransform.js +331 -331
  432. package/lib/engine-components/TestRunner.d.ts +16 -16
  433. package/lib/engine-components/TestRunner.js +102 -102
  434. package/lib/engine-components/TransformGizmo.d.ts +75 -75
  435. package/lib/engine-components/TransformGizmo.js +209 -209
  436. package/lib/engine-components/VideoPlayer.d.ts +184 -184
  437. package/lib/engine-components/VideoPlayer.js +978 -978
  438. package/lib/engine-components/Voip.d.ts +67 -67
  439. package/lib/engine-components/Voip.js +360 -360
  440. package/lib/engine-components/api.d.ts +51 -51
  441. package/lib/engine-components/api.js +50 -50
  442. package/lib/engine-components/avatar/AvatarBlink_Simple.d.ts +11 -11
  443. package/lib/engine-components/avatar/AvatarBlink_Simple.js +76 -76
  444. package/lib/engine-components/avatar/AvatarEyeLook_Rotation.d.ts +14 -14
  445. package/lib/engine-components/avatar/AvatarEyeLook_Rotation.js +68 -68
  446. package/lib/engine-components/avatar/Avatar_Brain_LookAt.d.ts +29 -29
  447. package/lib/engine-components/avatar/Avatar_Brain_LookAt.js +121 -121
  448. package/lib/engine-components/avatar/Avatar_MouthShapes.d.ts +15 -15
  449. package/lib/engine-components/avatar/Avatar_MouthShapes.js +79 -79
  450. package/lib/engine-components/avatar/Avatar_MustacheShake.d.ts +9 -9
  451. package/lib/engine-components/avatar/Avatar_MustacheShake.js +29 -29
  452. package/lib/engine-components/codegen/components.d.ts +216 -216
  453. package/lib/engine-components/codegen/components.js +218 -218
  454. package/lib/engine-components/debug/LogStats.d.ts +5 -5
  455. package/lib/engine-components/debug/LogStats.js +18 -18
  456. package/lib/engine-components/export/gltf/GltfExport.d.ts +30 -30
  457. package/lib/engine-components/export/gltf/GltfExport.js +246 -246
  458. package/lib/engine-components/export/gltf/index.d.ts +1 -1
  459. package/lib/engine-components/export/gltf/index.js +1 -1
  460. package/lib/engine-components/export/index.d.ts +1 -1
  461. package/lib/engine-components/export/index.js +1 -1
  462. package/lib/engine-components/export/usdz/Extension.d.ts +22 -22
  463. package/lib/engine-components/export/usdz/Extension.js +1 -1
  464. package/lib/engine-components/export/usdz/ThreeUSDZExporter.d.ts +160 -160
  465. package/lib/engine-components/export/usdz/ThreeUSDZExporter.js +1782 -1782
  466. package/lib/engine-components/export/usdz/USDZExporter.d.ts +130 -130
  467. package/lib/engine-components/export/usdz/USDZExporter.js +663 -663
  468. package/lib/engine-components/export/usdz/extensions/Animation.d.ts +106 -106
  469. package/lib/engine-components/export/usdz/extensions/Animation.js +1071 -1071
  470. package/lib/engine-components/export/usdz/extensions/DocumentExtension.d.ts +5 -5
  471. package/lib/engine-components/export/usdz/extensions/DocumentExtension.js +6 -6
  472. package/lib/engine-components/export/usdz/extensions/USDZText.d.ts +54 -54
  473. package/lib/engine-components/export/usdz/extensions/USDZText.js +203 -203
  474. package/lib/engine-components/export/usdz/extensions/USDZUI.d.ts +8 -8
  475. package/lib/engine-components/export/usdz/extensions/USDZUI.js +158 -158
  476. package/lib/engine-components/export/usdz/extensions/behavior/Actions.d.ts +30 -30
  477. package/lib/engine-components/export/usdz/extensions/behavior/Actions.js +88 -88
  478. package/lib/engine-components/export/usdz/extensions/behavior/AudioExtension.d.ts +10 -10
  479. package/lib/engine-components/export/usdz/extensions/behavior/AudioExtension.js +86 -86
  480. package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.d.ts +28 -28
  481. package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.js +290 -290
  482. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.d.ts +190 -190
  483. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +1060 -1060
  484. package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.d.ts +135 -135
  485. package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.js +548 -548
  486. package/lib/engine-components/export/usdz/extensions/behavior/PhysicsExtension.d.ts +7 -7
  487. package/lib/engine-components/export/usdz/extensions/behavior/PhysicsExtension.js +115 -115
  488. package/lib/engine-components/export/usdz/index.d.ts +3 -3
  489. package/lib/engine-components/export/usdz/index.js +2 -2
  490. package/lib/engine-components/export/usdz/utils/animationutils.d.ts +7 -7
  491. package/lib/engine-components/export/usdz/utils/animationutils.js +163 -163
  492. package/lib/engine-components/export/usdz/utils/quicklook.d.ts +2 -2
  493. package/lib/engine-components/export/usdz/utils/quicklook.js +43 -43
  494. package/lib/engine-components/particlesystem/ParticleSystem.d.ts +177 -177
  495. package/lib/engine-components/particlesystem/ParticleSystem.js +1176 -1176
  496. package/lib/engine-components/particlesystem/ParticleSystemModules.d.ts +526 -526
  497. package/lib/engine-components/particlesystem/ParticleSystemModules.js +1930 -1930
  498. package/lib/engine-components/particlesystem/ParticleSystemSubEmitter.d.ts +25 -25
  499. package/lib/engine-components/particlesystem/ParticleSystemSubEmitter.js +87 -87
  500. package/lib/engine-components/particlesystem/api.d.ts +2 -2
  501. package/lib/engine-components/particlesystem/api.js +2 -2
  502. package/lib/engine-components/postprocessing/Effects/Antialiasing.d.ts +17 -17
  503. package/lib/engine-components/postprocessing/Effects/Antialiasing.js +50 -50
  504. package/lib/engine-components/postprocessing/Effects/BloomEffect.d.ts +46 -46
  505. package/lib/engine-components/postprocessing/Effects/BloomEffect.js +113 -113
  506. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.d.ts +11 -11
  507. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.js +39 -39
  508. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.d.ts +15 -15
  509. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.js +92 -92
  510. package/lib/engine-components/postprocessing/Effects/DepthOfField.d.ts +25 -25
  511. package/lib/engine-components/postprocessing/Effects/DepthOfField.js +104 -104
  512. package/lib/engine-components/postprocessing/Effects/EffectWrapper.d.ts +12 -12
  513. package/lib/engine-components/postprocessing/Effects/EffectWrapper.js +18 -18
  514. package/lib/engine-components/postprocessing/Effects/Pixelation.d.ts +11 -11
  515. package/lib/engine-components/postprocessing/Effects/Pixelation.js +32 -32
  516. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.d.ts +18 -18
  517. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.js +91 -91
  518. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.d.ts +70 -70
  519. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js +175 -175
  520. package/lib/engine-components/postprocessing/Effects/Sharpening.d.ts +17 -17
  521. package/lib/engine-components/postprocessing/Effects/Sharpening.js +123 -123
  522. package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.d.ts +17 -17
  523. package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.js +70 -70
  524. package/lib/engine-components/postprocessing/Effects/Tonemapping.d.ts +26 -26
  525. package/lib/engine-components/postprocessing/Effects/Tonemapping.js +138 -138
  526. package/lib/engine-components/postprocessing/Effects/Vignette.d.ts +15 -15
  527. package/lib/engine-components/postprocessing/Effects/Vignette.js +60 -60
  528. package/lib/engine-components/postprocessing/PostProcessingEffect.d.ts +72 -72
  529. package/lib/engine-components/postprocessing/PostProcessingEffect.js +149 -149
  530. package/lib/engine-components/postprocessing/PostProcessingHandler.d.ts +25 -25
  531. package/lib/engine-components/postprocessing/PostProcessingHandler.js +350 -350
  532. package/lib/engine-components/postprocessing/Volume.d.ts +89 -89
  533. package/lib/engine-components/postprocessing/Volume.js +367 -367
  534. package/lib/engine-components/postprocessing/VolumeParameter.d.ts +26 -26
  535. package/lib/engine-components/postprocessing/VolumeParameter.js +136 -136
  536. package/lib/engine-components/postprocessing/VolumeProfile.d.ts +15 -15
  537. package/lib/engine-components/postprocessing/VolumeProfile.js +60 -60
  538. package/lib/engine-components/postprocessing/index.d.ts +5 -5
  539. package/lib/engine-components/postprocessing/index.js +5 -5
  540. package/lib/engine-components/postprocessing/utils.d.ts +11 -11
  541. package/lib/engine-components/postprocessing/utils.js +37 -37
  542. package/lib/engine-components/timeline/PlayableDirector.d.ts +163 -163
  543. package/lib/engine-components/timeline/PlayableDirector.js +686 -686
  544. package/lib/engine-components/timeline/SignalAsset.d.ts +24 -24
  545. package/lib/engine-components/timeline/SignalAsset.js +130 -130
  546. package/lib/engine-components/timeline/TimelineModels.d.ts +89 -89
  547. package/lib/engine-components/timeline/TimelineModels.js +22 -22
  548. package/lib/engine-components/timeline/TimelineTracks.d.ts +110 -110
  549. package/lib/engine-components/timeline/TimelineTracks.js +879 -879
  550. package/lib/engine-components/timeline/index.d.ts +4 -4
  551. package/lib/engine-components/timeline/index.js +3 -3
  552. package/lib/engine-components/ui/BaseUIComponent.d.ts +48 -48
  553. package/lib/engine-components/ui/BaseUIComponent.js +170 -170
  554. package/lib/engine-components/ui/Button.d.ts +64 -64
  555. package/lib/engine-components/ui/Button.js +315 -315
  556. package/lib/engine-components/ui/Canvas.d.ts +74 -74
  557. package/lib/engine-components/ui/Canvas.js +407 -407
  558. package/lib/engine-components/ui/CanvasGroup.d.ts +19 -19
  559. package/lib/engine-components/ui/CanvasGroup.js +58 -58
  560. package/lib/engine-components/ui/EventSystem.d.ts +125 -125
  561. package/lib/engine-components/ui/EventSystem.js +765 -765
  562. package/lib/engine-components/ui/Graphic.d.ts +55 -55
  563. package/lib/engine-components/ui/Graphic.js +255 -255
  564. package/lib/engine-components/ui/Image.d.ts +35 -35
  565. package/lib/engine-components/ui/Image.js +116 -116
  566. package/lib/engine-components/ui/InputField.d.ts +42 -42
  567. package/lib/engine-components/ui/InputField.js +268 -268
  568. package/lib/engine-components/ui/Interfaces.d.ts +38 -38
  569. package/lib/engine-components/ui/Interfaces.js +12 -12
  570. package/lib/engine-components/ui/Layout.d.ts +84 -84
  571. package/lib/engine-components/ui/Layout.js +330 -330
  572. package/lib/engine-components/ui/Outline.d.ts +7 -7
  573. package/lib/engine-components/ui/Outline.js +20 -20
  574. package/lib/engine-components/ui/PointerEvents.d.ts +115 -115
  575. package/lib/engine-components/ui/PointerEvents.js +145 -145
  576. package/lib/engine-components/ui/RaycastUtils.d.ts +11 -11
  577. package/lib/engine-components/ui/RaycastUtils.js +67 -67
  578. package/lib/engine-components/ui/Raycaster.d.ts +30 -30
  579. package/lib/engine-components/ui/Raycaster.js +95 -95
  580. package/lib/engine-components/ui/RectTransform.d.ts +61 -61
  581. package/lib/engine-components/ui/RectTransform.js +356 -356
  582. package/lib/engine-components/ui/SpatialHtml.d.ts +8 -8
  583. package/lib/engine-components/ui/SpatialHtml.js +79 -79
  584. package/lib/engine-components/ui/Symbols.d.ts +1 -1
  585. package/lib/engine-components/ui/Symbols.js +1 -1
  586. package/lib/engine-components/ui/Text.d.ts +78 -78
  587. package/lib/engine-components/ui/Text.js +539 -539
  588. package/lib/engine-components/ui/Utils.d.ts +24 -24
  589. package/lib/engine-components/ui/Utils.js +90 -90
  590. package/lib/engine-components/ui/index.d.ts +1 -1
  591. package/lib/engine-components/ui/index.js +1 -1
  592. package/lib/engine-components/utils/EnvironmentScene.d.ts +5 -5
  593. package/lib/engine-components/utils/EnvironmentScene.js +205 -205
  594. package/lib/engine-components/utils/LookAt.d.ts +31 -31
  595. package/lib/engine-components/utils/LookAt.js +82 -82
  596. package/lib/engine-components/utils/OpenURL.d.ts +42 -42
  597. package/lib/engine-components/utils/OpenURL.js +119 -119
  598. package/lib/engine-components/webxr/Avatar.d.ts +25 -25
  599. package/lib/engine-components/webxr/Avatar.js +255 -255
  600. package/lib/engine-components/webxr/TeleportTarget.d.ts +7 -7
  601. package/lib/engine-components/webxr/TeleportTarget.js +7 -7
  602. package/lib/engine-components/webxr/WebARCameraBackground.d.ts +30 -30
  603. package/lib/engine-components/webxr/WebARCameraBackground.js +155 -155
  604. package/lib/engine-components/webxr/WebARSessionRoot.d.ts +98 -98
  605. package/lib/engine-components/webxr/WebARSessionRoot.js +770 -770
  606. package/lib/engine-components/webxr/WebXR.d.ts +232 -232
  607. package/lib/engine-components/webxr/WebXR.js +561 -561
  608. package/lib/engine-components/webxr/WebXRAvatar.d.ts +27 -27
  609. package/lib/engine-components/webxr/WebXRAvatar.js +44 -44
  610. package/lib/engine-components/webxr/WebXRImageTracking.d.ts +86 -86
  611. package/lib/engine-components/webxr/WebXRImageTracking.js +470 -470
  612. package/lib/engine-components/webxr/WebXRPlaneTracking.d.ts +92 -92
  613. package/lib/engine-components/webxr/WebXRPlaneTracking.js +500 -500
  614. package/lib/engine-components/webxr/WebXRRig.d.ts +32 -32
  615. package/lib/engine-components/webxr/WebXRRig.js +72 -72
  616. package/lib/engine-components/webxr/XRFlag.d.ts +38 -38
  617. package/lib/engine-components/webxr/XRFlag.js +139 -139
  618. package/lib/engine-components/webxr/controllers/XRControllerFollow.d.ts +47 -47
  619. package/lib/engine-components/webxr/controllers/XRControllerFollow.js +120 -120
  620. package/lib/engine-components/webxr/controllers/XRControllerModel.d.ts +43 -43
  621. package/lib/engine-components/webxr/controllers/XRControllerModel.js +352 -352
  622. package/lib/engine-components/webxr/controllers/XRControllerMovement.d.ts +78 -78
  623. package/lib/engine-components/webxr/controllers/XRControllerMovement.js +506 -506
  624. package/lib/engine-components/webxr/index.d.ts +3 -3
  625. package/lib/engine-components/webxr/index.js +3 -3
  626. package/lib/engine-components/webxr/types.d.ts +3 -3
  627. package/lib/engine-components/webxr/types.js +1 -1
  628. package/lib/engine-components-experimental/Presentation.d.ts +6 -6
  629. package/lib/engine-components-experimental/Presentation.js +9 -9
  630. package/lib/engine-components-experimental/api.d.ts +4 -4
  631. package/lib/engine-components-experimental/api.js +4 -4
  632. package/lib/engine-components-experimental/networking/PlayerSync.d.ts +156 -156
  633. package/lib/engine-components-experimental/networking/PlayerSync.js +377 -377
  634. package/lib/engine-schemes/api.d.ts +12 -12
  635. package/lib/engine-schemes/api.js +12 -12
  636. package/lib/engine-schemes/schemes.d.ts +7 -7
  637. package/lib/engine-schemes/schemes.js +19 -19
  638. package/lib/engine-schemes/synced-camera-model.d.ts +25 -25
  639. package/lib/engine-schemes/synced-camera-model.js +67 -67
  640. package/lib/engine-schemes/synced-transform-model.d.ts +31 -31
  641. package/lib/engine-schemes/synced-transform-model.js +66 -66
  642. package/lib/engine-schemes/transform.d.ts +12 -12
  643. package/lib/engine-schemes/transform.js +39 -39
  644. package/lib/engine-schemes/vec2.d.ts +10 -10
  645. package/lib/engine-schemes/vec2.js +25 -25
  646. package/lib/engine-schemes/vec3.d.ts +11 -11
  647. package/lib/engine-schemes/vec3.js +29 -29
  648. package/lib/engine-schemes/vec4.d.ts +12 -12
  649. package/lib/engine-schemes/vec4.js +33 -33
  650. package/lib/engine-schemes/vr-user-state-buffer.d.ts +37 -37
  651. package/lib/engine-schemes/vr-user-state-buffer.js +110 -110
  652. package/lib/include/three/EXT_mesh_gpu_instancing_exporter.d.ts +6 -6
  653. package/lib/include/three/EXT_mesh_gpu_instancing_exporter.js +45 -45
  654. package/lib/needle-engine.d.ts +7 -7
  655. package/lib/needle-engine.js +64 -64
  656. package/package.json +1 -1
  657. package/plugins/common/buildinfo.js +64 -64
  658. package/plugins/common/cloud.js +1 -1
  659. package/plugins/common/config.cjs +31 -31
  660. package/plugins/common/config.js +35 -35
  661. package/plugins/common/files.js +31 -31
  662. package/plugins/common/generator.js +10 -10
  663. package/plugins/common/license.js +417 -417
  664. package/plugins/common/npm.js +15 -15
  665. package/plugins/common/timers.js +7 -7
  666. package/plugins/common/version.js +37 -37
  667. package/plugins/gltf-packer.mjs +1 -1
  668. package/plugins/next/alias.cjs +39 -39
  669. package/plugins/next/license.cjs +24 -24
  670. package/plugins/next/meshbvhworker.cjs +18 -18
  671. package/plugins/next/next.js +141 -141
  672. package/plugins/types/index.d.ts +2 -2
  673. package/plugins/types/license.d.ts +24 -24
  674. package/plugins/types/needleConfig.d.ts +27 -27
  675. package/plugins/types/next.d.ts +2 -2
  676. package/plugins/types/userconfig.d.ts +113 -113
  677. package/plugins/types/vite.d.ts +13 -13
  678. package/plugins/types/webmanifest.d.ts +32 -32
  679. package/plugins/vite/alias.js +174 -174
  680. package/plugins/vite/asap.js +245 -245
  681. package/plugins/vite/build-pipeline.js +371 -355
  682. package/plugins/vite/build.js +19 -19
  683. package/plugins/vite/buildinfo.js +41 -41
  684. package/plugins/vite/config.js +106 -106
  685. package/plugins/vite/copyfiles.js +138 -138
  686. package/plugins/vite/defines.js +68 -68
  687. package/plugins/vite/dependencies.js +232 -232
  688. package/plugins/vite/dependency-watcher.js +231 -231
  689. package/plugins/vite/drop-client.js +76 -76
  690. package/plugins/vite/drop.js +87 -87
  691. package/plugins/vite/editor-connection.js +124 -124
  692. package/plugins/vite/facebook-instant-games.js +102 -102
  693. package/plugins/vite/gzip.js +5 -5
  694. package/plugins/vite/imports-logger.js +143 -143
  695. package/plugins/vite/index.js +139 -139
  696. package/plugins/vite/license.js +56 -56
  697. package/plugins/vite/meta.js +163 -163
  698. package/plugins/vite/npm.js +7 -7
  699. package/plugins/vite/peer.js +29 -29
  700. package/plugins/vite/poster-client.js +73 -73
  701. package/plugins/vite/poster.js +79 -79
  702. package/plugins/vite/pwa.js +604 -604
  703. package/plugins/vite/reload-client.js +15 -15
  704. package/plugins/vite/reload.js +351 -351
  705. package/plugins/vite/server.js +66 -66
  706. package/plugins/vite/transform-codegen.js +55 -55
  707. package/plugins/vite/transform.js +31 -31
  708. package/plugins/vite/vite-4.4-hack.js +31 -31
  709. package/src/asap/needle-asap.ts +111 -111
  710. package/src/asap/sessiongranted.ts +75 -75
  711. package/src/asap/utils.ts +4 -4
  712. package/src/engine/analytics/index.ts +10 -10
  713. package/src/engine/analytics/lcp.ts +35 -35
  714. package/src/engine/api.ts +82 -82
  715. package/src/engine/assets/index.ts +59 -59
  716. package/src/engine/assets/static.js +5 -5
  717. package/src/engine/codegen/register_types.ts +300 -300
  718. package/src/engine/debug/debug.ts +51 -51
  719. package/src/engine/debug/debug_console.ts +333 -333
  720. package/src/engine/debug/debug_overlay.ts +332 -332
  721. package/src/engine/debug/debug_spatial_console.ts +429 -429
  722. package/src/engine/debug/index.ts +1 -1
  723. package/src/engine/engine_addressables.ts +680 -680
  724. package/src/engine/engine_animation.ts +145 -145
  725. package/src/engine/engine_application.ts +113 -113
  726. package/src/engine/engine_assetdatabase.ts +387 -387
  727. package/src/engine/engine_audio.ts +24 -24
  728. package/src/engine/engine_camera.ts +39 -39
  729. package/src/engine/engine_components.ts +366 -366
  730. package/src/engine/engine_components_internal.ts +40 -40
  731. package/src/engine/engine_constants.ts +52 -52
  732. package/src/engine/engine_context.ts +1811 -1811
  733. package/src/engine/engine_context_registry.ts +129 -129
  734. package/src/engine/engine_coroutine.ts +54 -54
  735. package/src/engine/engine_create_objects.ts +398 -398
  736. package/src/engine/engine_default_parameters.ts +3 -3
  737. package/src/engine/engine_editor-sync.ts +28 -28
  738. package/src/engine/engine_fileloader.js +9 -9
  739. package/src/engine/engine_gameobject.ts +691 -691
  740. package/src/engine/engine_generic_utils.js +13 -13
  741. package/src/engine/engine_gizmos.ts +577 -577
  742. package/src/engine/engine_gltf.ts +29 -29
  743. package/src/engine/engine_gltf_builtin_components.ts +403 -403
  744. package/src/engine/engine_hot_reload.ts +210 -210
  745. package/src/engine/engine_input.ts +1500 -1500
  746. package/src/engine/engine_input_utils.ts +23 -23
  747. package/src/engine/engine_instancing.ts +45 -45
  748. package/src/engine/engine_license.ts +378 -378
  749. package/src/engine/engine_lifecycle_api.ts +113 -113
  750. package/src/engine/engine_lifecycle_functions_internal.ts +193 -193
  751. package/src/engine/engine_lightdata.ts +117 -117
  752. package/src/engine/engine_loaders.callbacks.ts +135 -134
  753. package/src/engine/engine_loaders.gltf.ts +82 -82
  754. package/src/engine/engine_loaders.ts +375 -375
  755. package/src/engine/engine_lods.ts +168 -168
  756. package/src/engine/engine_mainloop_utils.ts +472 -472
  757. package/src/engine/engine_math.ts +282 -282
  758. package/src/engine/engine_modules.ts +83 -83
  759. package/src/engine/engine_networking.ts +862 -862
  760. package/src/engine/engine_networking_auto.ts +352 -352
  761. package/src/engine/engine_networking_blob.ts +275 -275
  762. package/src/engine/engine_networking_files.ts +217 -217
  763. package/src/engine/engine_networking_files_default_components.ts +58 -58
  764. package/src/engine/engine_networking_instantiate.ts +419 -419
  765. package/src/engine/engine_networking_peer.ts +159 -159
  766. package/src/engine/engine_networking_streams.ts +713 -713
  767. package/src/engine/engine_networking_types.ts +24 -24
  768. package/src/engine/engine_networking_utils.ts +23 -23
  769. package/src/engine/engine_networking_websocket.ts +2 -2
  770. package/src/engine/engine_patcher.ts +199 -199
  771. package/src/engine/engine_physics.ts +783 -783
  772. package/src/engine/engine_physics.types.ts +46 -46
  773. package/src/engine/engine_physics_rapier.ts +1577 -1577
  774. package/src/engine/engine_playerview.ts +80 -80
  775. package/src/engine/engine_scenelighting.ts +294 -294
  776. package/src/engine/engine_serialization.ts +2 -2
  777. package/src/engine/engine_serialization_builtin_serializer.ts +473 -473
  778. package/src/engine/engine_serialization_core.ts +710 -710
  779. package/src/engine/engine_serialization_decorator.ts +80 -80
  780. package/src/engine/engine_setup.ts +1 -1
  781. package/src/engine/engine_shaders.ts +267 -267
  782. package/src/engine/engine_shims.ts +32 -32
  783. package/src/engine/engine_test_utils.ts +109 -109
  784. package/src/engine/engine_texture.ts +82 -82
  785. package/src/engine/engine_three_utils.ts +849 -849
  786. package/src/engine/engine_time.ts +94 -94
  787. package/src/engine/engine_time_utils.ts +237 -237
  788. package/src/engine/engine_tonemapping.ts +210 -210
  789. package/src/engine/engine_types.ts +730 -730
  790. package/src/engine/engine_typestore.ts +63 -63
  791. package/src/engine/engine_util_decorator.ts +136 -136
  792. package/src/engine/engine_utils.ts +972 -972
  793. package/src/engine/engine_utils_format.ts +244 -244
  794. package/src/engine/engine_utils_screenshot.ts +698 -698
  795. package/src/engine/engine_utils_screenshot.xr.ts +103 -103
  796. package/src/engine/export/gltf/Writers.ts +34 -34
  797. package/src/engine/export/gltf/index.ts +158 -158
  798. package/src/engine/export/index.ts +2 -2
  799. package/src/engine/export/state.ts +19 -19
  800. package/src/engine/export/utils.ts +9 -9
  801. package/src/engine/extensions/EXT_texture_exr.ts +50 -50
  802. package/src/engine/extensions/NEEDLE_animator_controller_model.ts +195 -195
  803. package/src/engine/extensions/NEEDLE_components.ts +268 -268
  804. package/src/engine/extensions/NEEDLE_gameobject_data.ts +81 -81
  805. package/src/engine/extensions/NEEDLE_lighting_settings.ts +185 -185
  806. package/src/engine/extensions/NEEDLE_lightmaps.ts +119 -119
  807. package/src/engine/extensions/NEEDLE_persistent_assets.ts +76 -76
  808. package/src/engine/extensions/NEEDLE_render_objects.ts +209 -209
  809. package/src/engine/extensions/NEEDLE_techniques_webgl.ts +640 -640
  810. package/src/engine/extensions/extension_resolver.ts +4 -4
  811. package/src/engine/extensions/extension_utils.ts +166 -166
  812. package/src/engine/extensions/extensions.ts +140 -140
  813. package/src/engine/extensions/index.ts +5 -5
  814. package/src/engine/extensions/usage_tracker.ts +100 -100
  815. package/src/engine/js-extensions/Camera.ts +37 -37
  816. package/src/engine/js-extensions/ExtensionUtils.ts +85 -85
  817. package/src/engine/js-extensions/Layers.ts +23 -23
  818. package/src/engine/js-extensions/Object3D.ts +296 -296
  819. package/src/engine/js-extensions/RGBAColor.ts +126 -126
  820. package/src/engine/js-extensions/Vector.ts +18 -18
  821. package/src/engine/js-extensions/index.ts +4 -4
  822. package/src/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js +125 -125
  823. package/src/engine/shaders/shaderData.ts +67 -67
  824. package/src/engine/tests/test_utils.ts +63 -63
  825. package/src/engine/webcomponents/WebXRButtons.ts +260 -260
  826. package/src/engine/webcomponents/api.ts +6 -6
  827. package/src/engine/webcomponents/buttons.ts +291 -291
  828. package/src/engine/webcomponents/fonts.ts +41 -41
  829. package/src/engine/webcomponents/icons.ts +57 -57
  830. package/src/engine/webcomponents/index.ts +1 -1
  831. package/src/engine/webcomponents/logo-element.ts +78 -78
  832. package/src/engine/webcomponents/needle menu/needle-menu-spatial.ts +573 -573
  833. package/src/engine/webcomponents/needle menu/needle-menu.ts +1118 -1118
  834. package/src/engine/webcomponents/needle-button.ts +181 -181
  835. package/src/engine/webcomponents/needle-engine.ar-overlay.ts +186 -186
  836. package/src/engine/webcomponents/needle-engine.attributes.ts +82 -82
  837. package/src/engine/webcomponents/needle-engine.extras.ts +16 -16
  838. package/src/engine/webcomponents/needle-engine.loading.ts +373 -373
  839. package/src/engine/webcomponents/needle-engine.ts +871 -871
  840. package/src/engine/xr/NeedleXRController.ts +1125 -1125
  841. package/src/engine/xr/NeedleXRSession.ts +1609 -1609
  842. package/src/engine/xr/NeedleXRSync.ts +220 -220
  843. package/src/engine/xr/SceneTransition.ts +78 -78
  844. package/src/engine/xr/TempXRContext.ts +216 -216
  845. package/src/engine/xr/XRRig.ts +9 -9
  846. package/src/engine/xr/api.ts +5 -5
  847. package/src/engine/xr/events.ts +102 -102
  848. package/src/engine/xr/internal.ts +34 -34
  849. package/src/engine/xr/usdz.ts +30 -30
  850. package/src/engine/xr/utils.ts +39 -39
  851. package/src/engine-components/AlignmentConstraint.ts +36 -36
  852. package/src/engine-components/Animation.ts +557 -557
  853. package/src/engine-components/AnimationCurve.ts +150 -150
  854. package/src/engine-components/AnimationUtils.ts +28 -28
  855. package/src/engine-components/AnimationUtilsAutoplay.ts +43 -43
  856. package/src/engine-components/Animator.ts +397 -397
  857. package/src/engine-components/AnimatorController.ts +1293 -1293
  858. package/src/engine-components/AudioListener.ts +92 -92
  859. package/src/engine-components/AudioSource.ts +644 -644
  860. package/src/engine-components/AvatarLoader.ts +263 -263
  861. package/src/engine-components/AxesHelper.ts +59 -59
  862. package/src/engine-components/BasicIKConstraint.ts +54 -54
  863. package/src/engine-components/BoxCollider.ts +1 -1
  864. package/src/engine-components/BoxHelperComponent.ts +114 -114
  865. package/src/engine-components/Camera.ts +719 -719
  866. package/src/engine-components/CameraUtils.ts +136 -136
  867. package/src/engine-components/CharacterController.ts +253 -253
  868. package/src/engine-components/Collider.ts +374 -374
  869. package/src/engine-components/Component.ts +1297 -1297
  870. package/src/engine-components/ContactShadows.ts +506 -506
  871. package/src/engine-components/DeleteBox.ts +62 -62
  872. package/src/engine-components/DeviceFlag.ts +46 -46
  873. package/src/engine-components/DragControls.ts +1623 -1623
  874. package/src/engine-components/DropListener.ts +698 -698
  875. package/src/engine-components/Duplicatable.ts +198 -198
  876. package/src/engine-components/EventList.ts +266 -266
  877. package/src/engine-components/EventTrigger.ts +74 -74
  878. package/src/engine-components/EventType.ts +22 -22
  879. package/src/engine-components/Fog.ts +60 -60
  880. package/src/engine-components/Gizmos.ts +56 -56
  881. package/src/engine-components/GridHelper.ts +48 -48
  882. package/src/engine-components/GroundProjection.ts +356 -356
  883. package/src/engine-components/Interactable.ts +14 -14
  884. package/src/engine-components/Joints.ts +52 -52
  885. package/src/engine-components/LODGroup.ts +153 -153
  886. package/src/engine-components/Light.ts +558 -558
  887. package/src/engine-components/LookAtConstraint.ts +25 -25
  888. package/src/engine-components/NeedleMenu.ts +84 -84
  889. package/src/engine-components/NestedGltf.ts +86 -86
  890. package/src/engine-components/Networking.ts +114 -114
  891. package/src/engine-components/OffsetConstraint.ts +60 -60
  892. package/src/engine-components/OrbitControls.ts +1074 -1074
  893. package/src/engine-components/PlayerColor.ts +103 -103
  894. package/src/engine-components/ReflectionProbe.ts +216 -216
  895. package/src/engine-components/Renderer.ts +900 -900
  896. package/src/engine-components/RendererInstancing.ts +855 -855
  897. package/src/engine-components/RendererLightmap.ts +198 -198
  898. package/src/engine-components/RigidBody.ts +526 -526
  899. package/src/engine-components/SceneSwitcher.ts +1030 -1030
  900. package/src/engine-components/ScreenCapture.ts +592 -592
  901. package/src/engine-components/ShadowCatcher.ts +172 -172
  902. package/src/engine-components/Skybox.ts +455 -455
  903. package/src/engine-components/SmoothFollow.ts +76 -76
  904. package/src/engine-components/SpatialTrigger.ts +229 -229
  905. package/src/engine-components/SpectatorCamera.ts +787 -787
  906. package/src/engine-components/SphereCollider.ts +1 -1
  907. package/src/engine-components/SpriteRenderer.ts +468 -468
  908. package/src/engine-components/SyncedCamera.ts +220 -220
  909. package/src/engine-components/SyncedRoom.ts +380 -380
  910. package/src/engine-components/SyncedTransform.ts +383 -383
  911. package/src/engine-components/TestRunner.ts +118 -118
  912. package/src/engine-components/TransformGizmo.ts +219 -219
  913. package/src/engine-components/VideoPlayer.ts +1025 -1025
  914. package/src/engine-components/Voip.ts +363 -363
  915. package/src/engine-components/api.ts +60 -60
  916. package/src/engine-components/avatar/AvatarBlink_Simple.ts +69 -69
  917. package/src/engine-components/avatar/AvatarEyeLook_Rotation.ts +63 -63
  918. package/src/engine-components/avatar/Avatar_Brain_LookAt.ts +139 -139
  919. package/src/engine-components/avatar/Avatar_MouthShapes.ts +83 -83
  920. package/src/engine-components/avatar/Avatar_MustacheShake.ts +31 -31
  921. package/src/engine-components/codegen/components.ts +217 -217
  922. package/src/engine-components/debug/LogStats.ts +21 -21
  923. package/src/engine-components/export/gltf/GltfExport.ts +265 -265
  924. package/src/engine-components/export/usdz/Extension.ts +24 -24
  925. package/src/engine-components/export/usdz/ThreeUSDZExporter.ts +2413 -2413
  926. package/src/engine-components/export/usdz/USDZExporter.ts +705 -705
  927. package/src/engine-components/export/usdz/extensions/Animation.ts +1204 -1204
  928. package/src/engine-components/export/usdz/extensions/DocumentExtension.ts +9 -9
  929. package/src/engine-components/export/usdz/extensions/USDZText.ts +240 -240
  930. package/src/engine-components/export/usdz/extensions/USDZUI.ts +189 -189
  931. package/src/engine-components/export/usdz/extensions/behavior/Actions.ts +99 -99
  932. package/src/engine-components/export/usdz/extensions/behavior/AudioExtension.ts +102 -102
  933. package/src/engine-components/export/usdz/extensions/behavior/Behaviour.ts +320 -320
  934. package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +1225 -1225
  935. package/src/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.ts +646 -646
  936. package/src/engine-components/export/usdz/extensions/behavior/PhysicsExtension.ts +132 -132
  937. package/src/engine-components/export/usdz/index.ts +2 -2
  938. package/src/engine-components/export/usdz/utils/animationutils.ts +191 -191
  939. package/src/engine-components/export/usdz/utils/quicklook.ts +50 -50
  940. package/src/engine-components/particlesystem/ParticleSystem.ts +1287 -1287
  941. package/src/engine-components/particlesystem/ParticleSystemModules.ts +1765 -1765
  942. package/src/engine-components/particlesystem/ParticleSystemSubEmitter.ts +111 -111
  943. package/src/engine-components/particlesystem/api.ts +1 -1
  944. package/src/engine-components/postprocessing/Effects/Antialiasing.ts +55 -55
  945. package/src/engine-components/postprocessing/Effects/BloomEffect.ts +116 -116
  946. package/src/engine-components/postprocessing/Effects/ChromaticAberration.ts +37 -37
  947. package/src/engine-components/postprocessing/Effects/ColorAdjustments.ts +95 -95
  948. package/src/engine-components/postprocessing/Effects/DepthOfField.ts +103 -103
  949. package/src/engine-components/postprocessing/Effects/EffectWrapper.ts +25 -25
  950. package/src/engine-components/postprocessing/Effects/Pixelation.ts +32 -32
  951. package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.ts +90 -90
  952. package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.ts +191 -191
  953. package/src/engine-components/postprocessing/Effects/Sharpening.ts +138 -138
  954. package/src/engine-components/postprocessing/Effects/TiltShiftEffect.ts +61 -61
  955. package/src/engine-components/postprocessing/Effects/Tonemapping.ts +155 -155
  956. package/src/engine-components/postprocessing/Effects/Vignette.ts +59 -59
  957. package/src/engine-components/postprocessing/PostProcessingEffect.ts +172 -172
  958. package/src/engine-components/postprocessing/PostProcessingHandler.ts +398 -398
  959. package/src/engine-components/postprocessing/Volume.ts +410 -410
  960. package/src/engine-components/postprocessing/VolumeParameter.ts +158 -158
  961. package/src/engine-components/postprocessing/VolumeProfile.ts +61 -61
  962. package/src/engine-components/postprocessing/index.ts +5 -5
  963. package/src/engine-components/postprocessing/utils.ts +52 -52
  964. package/src/engine-components/timeline/PlayableDirector.ts +722 -722
  965. package/src/engine-components/timeline/SignalAsset.ts +144 -144
  966. package/src/engine-components/timeline/TimelineModels.ts +92 -92
  967. package/src/engine-components/timeline/TimelineTracks.ts +967 -967
  968. package/src/engine-components/timeline/index.ts +3 -3
  969. package/src/engine-components/ui/BaseUIComponent.ts +203 -203
  970. package/src/engine-components/ui/Button.ts +307 -307
  971. package/src/engine-components/ui/Canvas.ts +419 -419
  972. package/src/engine-components/ui/CanvasGroup.ts +54 -54
  973. package/src/engine-components/ui/EventSystem.ts +854 -854
  974. package/src/engine-components/ui/Graphic.ts +275 -275
  975. package/src/engine-components/ui/Image.ts +112 -112
  976. package/src/engine-components/ui/InputField.ts +321 -321
  977. package/src/engine-components/ui/Interfaces.ts +57 -57
  978. package/src/engine-components/ui/Layout.ts +334 -334
  979. package/src/engine-components/ui/Outline.ts +13 -13
  980. package/src/engine-components/ui/PointerEvents.ts +206 -206
  981. package/src/engine-components/ui/RaycastUtils.ts +69 -69
  982. package/src/engine-components/ui/Raycaster.ts +102 -102
  983. package/src/engine-components/ui/RectTransform.ts +375 -375
  984. package/src/engine-components/ui/SpatialHtml.ts +79 -79
  985. package/src/engine-components/ui/Symbols.ts +1 -1
  986. package/src/engine-components/ui/Text.ts +578 -578
  987. package/src/engine-components/ui/Utils.ts +113 -113
  988. package/src/engine-components/utils/EnvironmentScene.ts +245 -245
  989. package/src/engine-components/utils/LookAt.ts +88 -88
  990. package/src/engine-components/utils/OpenURL.ts +114 -114
  991. package/src/engine-components/webxr/Avatar.ts +265 -265
  992. package/src/engine-components/webxr/TeleportTarget.ts +9 -9
  993. package/src/engine-components/webxr/WebARCameraBackground.ts +175 -175
  994. package/src/engine-components/webxr/WebARSessionRoot.ts +880 -880
  995. package/src/engine-components/webxr/WebXR.ts +585 -585
  996. package/src/engine-components/webxr/WebXRAvatar.ts +66 -66
  997. package/src/engine-components/webxr/WebXRImageTracking.ts +518 -518
  998. package/src/engine-components/webxr/WebXRPlaneTracking.ts +570 -570
  999. package/src/engine-components/webxr/WebXRRig.ts +77 -77
  1000. package/src/engine-components/webxr/XRFlag.ts +147 -147
  1001. package/src/engine-components/webxr/controllers/XRControllerFollow.ts +118 -118
  1002. package/src/engine-components/webxr/controllers/XRControllerModel.ts +373 -373
  1003. package/src/engine-components/webxr/controllers/XRControllerMovement.ts +550 -550
  1004. package/src/engine-components/webxr/index.ts +2 -2
  1005. package/src/engine-components/webxr/types.ts +3 -3
  1006. package/src/engine-components-experimental/Presentation.ts +12 -12
  1007. package/src/engine-components-experimental/api.ts +4 -4
  1008. package/src/engine-components-experimental/networking/PlayerSync.ts +401 -401
  1009. package/src/engine-schemes/COMPILE_SCHEMES.bat +3 -3
  1010. package/src/engine-schemes/COMPILE_TS.bat +11 -11
  1011. package/src/engine-schemes/README.md +1 -1
  1012. package/src/engine-schemes/api.ts +12 -12
  1013. package/src/engine-schemes/dist/api.js +17 -0
  1014. package/src/engine-schemes/dist/api.js.meta +7 -0
  1015. package/src/engine-schemes/dist/schemes.js +25 -0
  1016. package/src/engine-schemes/dist/schemes.js.meta +7 -0
  1017. package/src/engine-schemes/dist/synced-camera-model.js +74 -0
  1018. package/src/engine-schemes/dist/synced-camera-model.js.meta +7 -0
  1019. package/src/engine-schemes/dist/synced-transform-model.js +73 -0
  1020. package/src/engine-schemes/dist/synced-transform-model.js.meta +7 -0
  1021. package/src/engine-schemes/dist/transform.js +46 -0
  1022. package/src/engine-schemes/dist/transform.js.meta +7 -0
  1023. package/src/engine-schemes/dist/vec2.js +32 -0
  1024. package/src/engine-schemes/dist/vec2.js.meta +7 -0
  1025. package/src/engine-schemes/dist/vec3.js +36 -0
  1026. package/src/engine-schemes/dist/vec3.js.meta +7 -0
  1027. package/src/engine-schemes/dist/vec4.js +40 -0
  1028. package/src/engine-schemes/dist/vec4.js.meta +7 -0
  1029. package/src/engine-schemes/dist/vr-user-state-buffer.js +110 -0
  1030. package/src/engine-schemes/dist/vr-user-state-buffer.js.meta +7 -0
  1031. package/src/engine-schemes/schemes.ts +28 -28
  1032. package/src/engine-schemes/synced-camera-model.ts +92 -92
  1033. package/src/engine-schemes/synced-transform-model.ts +90 -90
  1034. package/src/engine-schemes/syncedCamera.fbs +10 -10
  1035. package/src/engine-schemes/transform.ts +50 -50
  1036. package/src/engine-schemes/transforms.fbs +25 -25
  1037. package/src/engine-schemes/vec.fbs +19 -19
  1038. package/src/engine-schemes/vec2.ts +33 -33
  1039. package/src/engine-schemes/vec3.ts +38 -38
  1040. package/src/engine-schemes/vec4.ts +43 -43
  1041. package/src/engine-schemes/vr-user-state-buffer.ts +145 -145
  1042. package/src/engine-schemes/vrUserStateBuffer.fbs +17 -17
  1043. package/src/include/draco/draco_decoder.js +34 -34
  1044. package/src/include/ktx2/basis_transcoder.js +21 -21
  1045. package/src/include/needle/arial-msdf.json +1471 -1471
  1046. package/src/include/three/DragControls.js +231 -231
  1047. package/src/include/three/EXT_mesh_gpu_instancing_exporter.js +66 -66
  1048. package/src/needle-engine.ts +70 -70
  1049. package/lib/engine/engine_element.d.ts +0 -113
  1050. package/lib/engine/engine_element.js +0 -833
  1051. package/lib/engine/engine_element.js.map +0 -1
  1052. package/lib/engine/engine_element_attributes.d.ts +0 -72
  1053. package/lib/engine/engine_element_attributes.js +0 -2
  1054. package/lib/engine/engine_element_attributes.js.map +0 -1
  1055. package/lib/engine/engine_element_extras.d.ts +0 -6
  1056. package/lib/engine/engine_element_extras.js +0 -14
  1057. package/lib/engine/engine_element_extras.js.map +0 -1
  1058. package/lib/engine/engine_element_loading.d.ts +0 -44
  1059. package/lib/engine/engine_element_loading.js +0 -350
  1060. package/lib/engine/engine_element_loading.js.map +0 -1
  1061. package/lib/engine/engine_element_overlay.d.ts +0 -21
  1062. package/lib/engine/engine_element_overlay.js +0 -167
  1063. package/lib/engine/engine_element_overlay.js.map +0 -1
  1064. package/lib/engine/engine_scenetools.d.ts +0 -62
  1065. package/lib/engine/engine_scenetools.js +0 -337
  1066. package/lib/engine/engine_scenetools.js.map +0 -1
@@ -10,7 +10,7 @@ var fe = (s, t, e) => (Pf(s, t, "read from private field"), e ? e.call(s) : t.ge
10
10
  t instanceof WeakSet ? t.add(s) : t.set(s, e);
11
11
  }, cn = (s, t, e, i) => (Pf(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e);
12
12
  var Cl = (s, t, e) => (Pf(s, t, "access private method"), e);
13
- import { Vector2 as oe, Vector3 as v, Vector4 as ge, Quaternion as W, PlaneGeometry as Xn, PerspectiveCamera as be, Scene as Ri, ShaderMaterial as wn, Uniform$1 as po, Mesh as q, WebGLRenderer as Rr, Texture as Fe, Euler as Bt, Box3 as Oi, MeshStandardMaterial as Tt, Color as le, ShadowMaterial as t0, Box3Helper as Rx, GridHelper as ng, Material as Se, Matrix3 as i0, Matrix4 as se, Layers as Co, Object3D as I, Ray as Po, MathUtils as Ps, AxesHelper as Mi, MeshBasicMaterial as Me, DoubleSide as ki, BufferGeometry as Wn, Group as mo, SphereGeometry as xu, BoxGeometry as Ia, SpriteMaterial as kx, Sprite as Tx, Shape as Ax, ExtrudeGeometry as Ex, Fog as n0, DirectionalLight as Yp, PointLight as sg, Line as Lc, BufferAttribute as pt, CylinderGeometry as Ix, EdgesGeometry as Lx, LineSegments as s0, LineBasicMaterial as o0, Sphere as Su, Plane as wr, Raycaster as Cu, ArrayCamera as Dx, SkinnedMesh as Os, InterleavedBufferAttribute as r0, Skeleton as jx, Bone as Bx, Source as Fx, WebGLCubeRenderTarget as zx, CubeCamera as Ux, AnimationClip as go, FileLoader as og, TextureLoader as xa, PropertyBinding as La, LinearSRGBColorSpace as Es, ShaderChunk as Jt, UniformsLib as Nx, DataTexture as rg, RGBAFormat as Pu, EquirectangularReflectionMapping as Ms, SRGBColorSpace as Is, Clock as $x, NoToneMapping as Da, PCFSoftShadowMap$1 as Wx, BasicNodeLibrary as Vx, WebGLRenderTarget as Ls, DepthTexture as Hx, NearestFilter as jd, LoopRepeat as Gx, LoopOnce as Kp, AnimationMixer as ag, CompressedTexture as qx, FrontSide as Oo, Camera as Xx, Frustum as Fy, OrthographicCamera as lg, AudioListener as Qx, PositionalAudio as Yx, AudioLoader as Zp, EventDispatcher as cg, BackSide as Ou, MeshDepthMaterial as Kx, CustomBlending as Zx, MaxEquation as Jx, AmbientLight as e1, HemisphereLight as t1, InvertStencilOp as i1, DecrementWrapStencilOp as n1, IncrementWrapStencilOp as s1, DecrementStencilOp as o1, IncrementStencilOp as r1, ReplaceStencilOp as a1, ZeroStencilOp as l1, KeepStencilOp as c1, AlwaysStencilFunc as h1, GreaterEqualStencilFunc as d1, NotEqualStencilFunc as u1, GreaterStencilFunc as f1, LessEqualStencilFunc as p1, EqualStencilFunc as m1, LessStencilFunc as g1, NeverStencilFunc as zy, RawShaderMaterial as a0, GLSL3 as y1, AlwaysDepth as _1, GreaterEqualDepth as b1, GreaterDepth as v1, LessEqualDepth as w1, LessDepth as x1, NotEqualDepth as S1, EqualDepth as C1, BatchedMesh as Uy, MeshPhysicalMaterial as Jp, UnsignedByteType as P1, LinearFilter as Ny, RingGeometry as O1, Line3 as M1, AdditiveBlending as l0, BoxHelper as R1, SpotLight as k1, DirectionalLightHelper as T1, CameraHelper as A1, LOD as E1, Triangle as I1, NormalBlending as L1, NeutralToneMapping as Dc, AgXToneMapping as Mu, ACESFilmicToneMapping as hg, ReinhardToneMapping as dg, LinearToneMapping as Ru, HalfFloatType as D1, VideoTexture as j1, CubeTexture as B1, CompressedCubeTexture as F1, EquirectangularRefractionMapping as z1, VectorKeyframeTrack as U1, QuaternionKeyframeTrack as N1, Audio as $1, MirroredRepeatWrapping as $y, UniformsUtils as c0, ShaderLib as Bd, MeshNormalMaterial as W1, AudioContext as V1, PMREMGenerator$1 as H1 } from "./three-3fd45ef1.light.js";
13
+ import { Vector2 as oe, Vector3 as v, Vector4 as ge, Quaternion as W, PlaneGeometry as Xn, PerspectiveCamera as be, Scene as Ri, ShaderMaterial as wn, Uniform$1 as po, Mesh as q, WebGLRenderer as Rr, Texture as Fe, Euler as Bt, Box3 as Oi, MeshStandardMaterial as Tt, Color as le, ShadowMaterial as t0, Box3Helper as Rx, GridHelper as ng, Material as Se, Matrix3 as i0, Matrix4 as se, Layers as Co, Object3D as I, Ray as Po, MathUtils as Ps, AxesHelper as Mi, MeshBasicMaterial as Me, DoubleSide as ki, BufferGeometry as Wn, Group as mo, SphereGeometry as xu, BoxGeometry as Ia, SpriteMaterial as kx, Sprite as Tx, Shape as Ex, ExtrudeGeometry as Ax, Fog as n0, DirectionalLight as Yp, PointLight as sg, Line as Lc, BufferAttribute as pt, CylinderGeometry as Ix, EdgesGeometry as Lx, LineSegments as s0, LineBasicMaterial as o0, Sphere as Su, Plane as wr, Raycaster as Cu, ArrayCamera as Dx, SkinnedMesh as Os, InterleavedBufferAttribute as r0, Skeleton as jx, Bone as Bx, Source as Fx, WebGLCubeRenderTarget as zx, CubeCamera as Ux, AnimationClip as go, FileLoader as og, TextureLoader as xa, PropertyBinding as La, LinearSRGBColorSpace as As, ShaderChunk as Jt, UniformsLib as Nx, DataTexture as rg, RGBAFormat as Pu, EquirectangularReflectionMapping as Ms, SRGBColorSpace as Is, Clock as $x, NoToneMapping as Da, PCFSoftShadowMap$1 as Wx, BasicNodeLibrary as Vx, WebGLRenderTarget as Ls, DepthTexture as Hx, NearestFilter as jd, LoopRepeat as Gx, LoopOnce as Kp, AnimationMixer as ag, CompressedTexture as qx, FrontSide as Oo, Camera as Xx, Frustum as Fy, OrthographicCamera as lg, AudioListener as Qx, PositionalAudio as Yx, AudioLoader as Zp, EventDispatcher as cg, BackSide as Ou, MeshDepthMaterial as Kx, CustomBlending as Zx, MaxEquation as Jx, AmbientLight as e1, HemisphereLight as t1, InvertStencilOp as i1, DecrementWrapStencilOp as n1, IncrementWrapStencilOp as s1, DecrementStencilOp as o1, IncrementStencilOp as r1, ReplaceStencilOp as a1, ZeroStencilOp as l1, KeepStencilOp as c1, AlwaysStencilFunc as h1, GreaterEqualStencilFunc as d1, NotEqualStencilFunc as u1, GreaterStencilFunc as f1, LessEqualStencilFunc as p1, EqualStencilFunc as m1, LessStencilFunc as g1, NeverStencilFunc as zy, RawShaderMaterial as a0, GLSL3 as y1, AlwaysDepth as _1, GreaterEqualDepth as b1, GreaterDepth as v1, LessEqualDepth as w1, LessDepth as x1, NotEqualDepth as S1, EqualDepth as C1, BatchedMesh as Uy, MeshPhysicalMaterial as Jp, UnsignedByteType as P1, LinearFilter as Ny, RingGeometry as O1, Line3 as M1, AdditiveBlending as l0, BoxHelper as R1, SpotLight as k1, DirectionalLightHelper as T1, CameraHelper as E1, LOD as A1, Triangle as I1, NormalBlending as L1, NeutralToneMapping as Dc, AgXToneMapping as Mu, ACESFilmicToneMapping as hg, ReinhardToneMapping as dg, LinearToneMapping as Ru, HalfFloatType as D1, VideoTexture as j1, CubeTexture as B1, CompressedCubeTexture as F1, EquirectangularRefractionMapping as z1, VectorKeyframeTrack as U1, QuaternionKeyframeTrack as N1, Audio as $1, MirroredRepeatWrapping as $y, UniformsUtils as c0, ShaderLib as Bd, MeshNormalMaterial as W1, AudioContext as V1, PMREMGenerator$1 as H1 } from "./three-3fd45ef1.light.js";
14
14
  import { createLoaders as ug, getRaycastMesh as h0, LODsManager as Vr, NEEDLE_progressive as Ke, addDracoAndKTX2Loaders as G1, configureLoader as q1, setDracoDecoderLocation as X1, setKTX2TranscoderLocation as Q1 } from "./gltf-progressive-13de1400.light.js";
15
15
  import { GroundedSkybox as ja, Font as Y1, TextGeometry as K1, FontLoader as Z1, GLTFLoader as Ds, TransformControlsGizmo as d0, EXRLoader as Fd, RGBELoader as em, Stats as J1, nodeFrame as eS, OrbitControls as u0, PositionalAudioHelper as tS, HorizontalBlurShader as iS, VerticalBlurShader as nS, GLTFExporter as f0, strToU8 as p0, zipSync as sS, XRControllerModelFactory as oS, XRHandMeshModel as rS, Line2 as aS, LineGeometry as lS, LineMaterial as cS, KTX2Loader as hS, TransformControls as dS, InteractiveGroup as uS, HTMLMesh as fS, VertexNormalsHelper as pS, OBJLoader as fg, FBXLoader as m0, mergeVertices as mS } from "./three-examples-ae5d9997.light.js";
16
16
  import { fetchProfile as gS, MotionController as yS, $70d766613f57b014$export$2e2bcd8739ae039 as Wy, ByteBuffer as _S, v5 as Vy, md5 as Hy, SIZE_PREFIX_LENGTH as g0, Builder as pg, createNoise4D as bS, Matrix4 as Of, BatchedParticleRenderer as vS, ParticleSystem as wS, RenderMode as ps, TrailParticle as Gy, ConstantColor as xS, Vector4 as SS, ConstantValue as CS, WorkerBase as PS, MeshBVH as OS } from "./vendor-3f0ec7ec.light.js";
@@ -158,12 +158,12 @@ function QI(s, t) {
158
158
  }
159
159
  function zd(s, t, e = !0) {
160
160
  const i = ku();
161
- i.has(s) ? t === null ? i.delete(s) : i.set(s, t) : t !== null && i.append(s, t), e ? AS(s, i) : b0(s, i);
161
+ i.has(s) ? t === null ? i.delete(s) : i.set(s, t) : t !== null && i.append(s, t), e ? ES(s, i) : b0(s, i);
162
162
  }
163
163
  function Yy(s, t, e) {
164
164
  s.has(t) ? s.set(t, e.toString()) : s.append(t, e.toString());
165
165
  }
166
- function AS(s, t, e) {
166
+ function ES(s, t, e) {
167
167
  window.history.pushState(e, s, "?" + t.toString());
168
168
  }
169
169
  function b0(s, t, e) {
@@ -178,7 +178,7 @@ function KI(s, t) {
178
178
  return Math.floor(Math.random() * (t - s + 1)) + s;
179
179
  }
180
180
  const Ky = ["smol", "tiny", "giant", "interesting", "smart", "bright", "dull", "extreme", "beautiful", "pretty", "dark", "epic", "salty", "silly", "funny", "lame", "lazy", "loud", "lucky", "mad", "mean", "mighty", "mysterious", "nasty", "odd", "old", "powerful", "quiet", "rapid", "scary", "shiny", "shy", "silly", "smooth", "sour", "spicy", "stupid", "sweet", "tasty", "terrible", "ugly", "unusual", "vast", "wet", "wild", "witty", "wrong", "zany", "zealous", "zippy", "zombie", "zorro"], Zy = ["cat", "dog", "mouse", "pig", "cow", "horse", "sheep", "chicken", "duck", "goat", "panda", "tiger", "lion", "elephant", "monkey", "bird", "fish", "snake", "frog", "turtle", "hamster", "penguin", "kangaroo", "whale", "dolphin", "crocodile", "snail", "ant", "bee", "beetle", "butterfly", "dragon", "eagle", "fish", "giraffe", "lizard", "panda", "penguin", "rabbit", "snake", "spider", "tiger", "zebra"];
181
- function ES() {
181
+ function AS() {
182
182
  const s = Ky[Math.floor(Math.random() * Ky.length)], t = Zy[Math.floor(Math.random() * Zy.length)];
183
183
  return s + "_" + t;
184
184
  }
@@ -230,7 +230,7 @@ function Hn(s) {
230
230
  setTimeout(t, s);
231
231
  });
232
232
  }
233
- function Au(s, t) {
233
+ function Eu(s, t) {
234
234
  if (s <= 0)
235
235
  return Promise.resolve();
236
236
  if (t || (t = pe.Current), !t)
@@ -435,19 +435,19 @@ var X;
435
435
  return O !== void 0 ? O : O = navigator.userAgent.includes("OculusBrowser");
436
436
  }
437
437
  s.isQuest = R;
438
- let E;
438
+ let A;
439
439
  function F() {
440
- return E !== void 0 || (E = document.createElement("a").relList.supports("ar")), E;
440
+ return A !== void 0 || (A = document.createElement("a").relList.supports("ar")), A;
441
441
  }
442
442
  s.supportsQuickLookAR = F;
443
- async function A() {
443
+ async function E() {
444
444
  try {
445
445
  return (await navigator.permissions.query({ name: "microphone" })).state !== "denied";
446
446
  } catch (j) {
447
447
  return console.error("Error querying `microphone` permissions.", j), !1;
448
448
  }
449
449
  }
450
- s.microphonePermissionsGranted = A;
450
+ s.microphonePermissionsGranted = E;
451
451
  let z;
452
452
  function U() {
453
453
  if (z !== void 0)
@@ -886,7 +886,7 @@ class t_ {
886
886
  this.y = t, this.s = t;
887
887
  }
888
888
  }
889
- class Af {
889
+ class Ef {
890
890
  /** Create a new OneEuroFilter
891
891
  * @param freq - An estimate of the frequency in Hz of the signal (> 0), if timestamps are not available.
892
892
  * @param minCutOff - Min cutoff frequency in Hz (> 0). Lower values allow to remove more jitter.
@@ -951,7 +951,7 @@ class M0 {
951
951
  r(this, "x");
952
952
  r(this, "y");
953
953
  r(this, "z");
954
- this.x = new Af(t, e, i, n), this.y = new Af(t, e, i, n), this.z = new Af(t, e, i, n);
954
+ this.x = new Ef(t, e, i, n), this.y = new Ef(t, e, i, n), this.z = new Ef(t, e, i, n);
955
955
  }
956
956
  filter(t, e, i = null) {
957
957
  e.x = this.x.filter(t.x, i), e.y = this.y.filter(t.y, i), e.z = this.z.filter(t.z, i);
@@ -978,24 +978,24 @@ function mL(s, t, e) {
978
978
  const i = s.length(), n = t.length(), o = $.lerp(i, n, e);
979
979
  return s.lerp(t, e).normalize().multiplyScalar(o);
980
980
  }
981
- const Ef = new W(), R0 = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
981
+ const Af = new W(), R0 = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
982
982
  function gL(s, t) {
983
983
  s.lookAt(t), s.quaternion.multiply(R0);
984
984
  }
985
- function Eu(s, t, e = !0, i = !1) {
985
+ function Au(s, t, e = !0, i = !1) {
986
986
  if (s === t)
987
987
  return;
988
- Ef.copy(s.quaternion);
988
+ Af.copy(s.quaternion);
989
989
  const n = ie(t), o = ie(s);
990
990
  if (i) {
991
991
  if (xn(s, Ce(t)), e) {
992
992
  const a = o.y, l = o.sub(lC(s));
993
993
  l.y = a, s.lookAt(l), s.quaternion.multiply(R0);
994
994
  }
995
- Number.isNaN(s.quaternion.x) && s.quaternion.copy(Ef);
995
+ Number.isNaN(s.quaternion.x) && s.quaternion.copy(Af);
996
996
  return;
997
997
  }
998
- e && (n.y = o.y), s.lookAt(n), Number.isNaN(s.quaternion.x) && s.quaternion.copy(Ef);
998
+ e && (n.y = o.y), s.lookAt(n), Number.isNaN(s.quaternion.x) && s.quaternion.copy(Af);
999
999
  }
1000
1000
  function yL(s, t, e, i = 1) {
1001
1001
  if (e) {
@@ -1088,7 +1088,7 @@ function T0(s) {
1088
1088
  const t = Nd.get();
1089
1089
  return s.getWorldQuaternion(t), a_.setFromQuaternion(t), a_;
1090
1090
  }
1091
- function A0(s, t) {
1091
+ function E0(s, t) {
1092
1092
  const e = Nd.get();
1093
1093
  xn(s, e.setFromEuler(t));
1094
1094
  }
@@ -1219,7 +1219,7 @@ function pC(s) {
1219
1219
  const t = s.type;
1220
1220
  return t === "Mesh" || t === "SkinnedMesh";
1221
1221
  }
1222
- function E0(s, t) {
1222
+ function A0(s, t) {
1223
1223
  t ? s["needle:rendercustomshadow"] = !0 : s["needle:rendercustomshadow"] = !1;
1224
1224
  }
1225
1225
  function mC(s) {
@@ -1316,20 +1316,20 @@ function I0(s, t, e, i) {
1316
1316
  const o = t;
1317
1317
  return o && (o.map ? n.color.set(1, 1, 1) : n.color.copyLinearToSRGB(o.color), n.emissive.copyLinearToSRGB(o.emissive), n.emissiveIntensity = o.emissiveIntensity, n.opacity = o.opacity, n.displacementScale = o.displacementScale, n.transparent = o.transparent, n.bumpMap = o.bumpMap, n.aoMap = o.aoMap, n.map = o.map, n.displacementMap = o.displacementMap, n.emissiveMap = o.emissiveMap, n.normalMap = o.normalMap, n.envMap = o.envMap, n.alphaMap = o.alphaMap, n.metalness = o.reflectivity, n.vertexColors = o.vertexColors, o.shininess && (n.roughness = 1 - Math.sqrt(o.shininess) / 10), n.needsUpdate = !0), e === void 0 ? s.material = n : i[e] = n, !0;
1318
1318
  }
1319
- let Ah = !1;
1319
+ let Eh = !1;
1320
1320
  NS((...s) => {
1321
1321
  var t;
1322
1322
  B() && ((t = pe.Current) != null && t.isInXR) && (Sa(!0), L0("error", ...s));
1323
1323
  });
1324
1324
  function Sa(s) {
1325
1325
  if (s) {
1326
- if (Ah)
1326
+ if (Eh)
1327
1327
  return;
1328
- Ah = !0, bC();
1328
+ Eh = !0, bC();
1329
1329
  } else {
1330
- if (!Ah)
1330
+ if (!Eh)
1331
1331
  return;
1332
- Ah = !1, vC();
1332
+ Eh = !1, vC();
1333
1333
  }
1334
1334
  }
1335
1335
  const lc = {
@@ -1355,7 +1355,7 @@ class _C {
1355
1355
  const n = this.getRoot();
1356
1356
  Number.isNaN(n.position.x) && n.position.set(0, 0, 0), Number.isNaN(n.quaternion.x) && n.quaternion.set(0, 0, 0, 1), this.context.scene.add(this.targetObject);
1357
1357
  const o = ((i = this.context.xr) == null ? void 0 : i.rigScale) ?? 1, a = 3.5 * o, l = t.worldForward;
1358
- l.y = 0, l.normalize().multiplyScalar(a), this.userForwardViewPoint.copy(t.worldPosition).sub(l), this.targetObject.position.distanceTo(this.userForwardViewPoint) > 2 * o && (this.targetObject.position.copy(this.userForwardViewPoint), Eu(this.targetObject, t, !0, !0), this.targetObject.rotateY(Math.PI)), this.oneEuroFilter.filter(this.targetObject.position, n.position, this.context.time.time);
1358
+ l.y = 0, l.normalize().multiplyScalar(a), this.userForwardViewPoint.copy(t.worldPosition).sub(l), this.targetObject.position.distanceTo(this.userForwardViewPoint) > 2 * o && (this.targetObject.position.copy(this.userForwardViewPoint), Au(this.targetObject, t, !0, !0), this.targetObject.rotateY(Math.PI)), this.oneEuroFilter.filter(this.targetObject.position, n.position, this.context.time.time);
1359
1359
  const h = this.context.time.deltaTime;
1360
1360
  if (n.quaternion.slerp(this.targetObject.quaternion, h * 5), n.scale.setScalar(o), this.targetObject.removeFromParent(), this.context.scene.add(n), this.context.time.time - this._lastElementRemoveTime > 0.1) {
1361
1361
  this._lastElementRemoveTime = this.context.time.time;
@@ -1792,18 +1792,18 @@ function TC() {
1792
1792
  return s || null;
1793
1793
  }
1794
1794
  const z0 = x("debugdefines");
1795
- Ro('if(!globalThis[""4.5.0-alpha.7""]) globalThis[""4.5.0-alpha.7""] = "0.0.0";');
1795
+ Ro('if(!globalThis[""4.5.1""]) globalThis[""4.5.1""] = "0.0.0";');
1796
1796
  Ro('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
1797
- Ro('if(!globalThis[""Wed May 14 2025 21:53:49 GMT+0700 (Indochina Time)""]) globalThis[""Wed May 14 2025 21:53:49 GMT+0700 (Indochina Time)""] = "unknown";');
1798
- Ro('if(!globalThis[""npk_ad8e492e31253a2800d563522e42a7311d0d7b766ac4ec1f64d3b425f06eacbd""]) globalThis[""npk_ad8e492e31253a2800d563522e42a7311d0d7b766ac4ec1f64d3b425f06eacbd""] = "unknown";');
1799
- Ro('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.5.0-alpha.7";');
1797
+ Ro('if(!globalThis[""Fri May 30 2025 11:00:29 GMT+0200 (Central European Summer Time)""]) globalThis[""Fri May 30 2025 11:00:29 GMT+0200 (Central European Summer Time)""] = "unknown";');
1798
+ Ro('if(!globalThis[""npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9""]) globalThis[""npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9""] = "unknown";');
1799
+ Ro('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.5.1";');
1800
1800
  Ro('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
1801
- Ro('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed May 14 2025 21:53:49 GMT+0700 (Indochina Time)";');
1802
- Ro('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_ad8e492e31253a2800d563522e42a7311d0d7b766ac4ec1f64d3b425f06eacbd";');
1803
- const Vn = "4.5.0-alpha.7", bg = "undefined", U0 = "Wed May 14 2025 21:53:49 GMT+0700 (Indochina Time)";
1801
+ Ro('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri May 30 2025 11:00:29 GMT+0200 (Central European Summer Time)";');
1802
+ Ro('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9";');
1803
+ const Vn = "4.5.1", bg = "undefined", U0 = "Fri May 30 2025 11:00:29 GMT+0200 (Central European Summer Time)";
1804
1804
  z0 && console.log(`Engine version: ${Vn} (generator: ${bg})
1805
1805
  Project built at ${U0}`);
1806
- const md = "npk_ad8e492e31253a2800d563522e42a7311d0d7b766ac4ec1f64d3b425f06eacbd", _o = "needle_isActiveInHierarchy", sa = "builtin_components", gd = "needle_editor_guid";
1806
+ const md = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9", _o = "needle_isActiveInHierarchy", sa = "builtin_components", gd = "needle_editor_guid";
1807
1807
  function Ro(s) {
1808
1808
  try {
1809
1809
  (0, eval)(s);
@@ -1822,13 +1822,13 @@ function $0(s) {
1822
1822
  }
1823
1823
  h_ !== s && (h_ = s, N0 = new s());
1824
1824
  }
1825
- const xi = Symbol("shadowDomOwner"), AC = x("debugpatch");
1825
+ const xi = Symbol("shadowDomOwner"), EC = x("debugpatch");
1826
1826
  function vg(s, t, e, i) {
1827
- const n = AC === t;
1827
+ const n = EC === t;
1828
1828
  if (!e && !i)
1829
1829
  return;
1830
1830
  const o = t + "___needle";
1831
- EC(s, t, e, i);
1831
+ AC(s, t, e, i);
1832
1832
  const a = Object.getOwnPropertyDescriptor(s, t), l = s[t];
1833
1833
  n && console.log("Patch", s.constructor.name, t, a, l), a ? (n && console.log("Apply patch with existing descriptor", s.constructor.name, t, a), typeof a.value == "function" && (s[t] = u_(a.value, s, t))) : (n && console.log("Create patch with new property", s.constructor.name, t, a), Object.defineProperty(s, t, {
1834
1834
  set: function(c) {
@@ -1872,7 +1872,7 @@ function wg(s, t) {
1872
1872
  const e = cm().get(s);
1873
1873
  return e ? e.get(t) : null;
1874
1874
  }
1875
- function EC(s, t, e, i) {
1875
+ function AC(s, t, e, i) {
1876
1876
  let n = cm().get(s);
1877
1877
  n || (n = /* @__PURE__ */ new Map(), cm().set(s, n));
1878
1878
  let o = n.get(t);
@@ -2019,7 +2019,7 @@ class eo extends PointerEvent {
2019
2019
  this._propagationStopped = !0, super.stopPropagation(), (e = this.source) == null || e.stopPropagation(), at && console.warn("Stop propagation...", this.pointerId, this.pointerType);
2020
2020
  }
2021
2021
  }
2022
- class Eh extends KeyboardEvent {
2022
+ class Ah extends KeyboardEvent {
2023
2023
  constructor(e, i, n) {
2024
2024
  super(e, n);
2025
2025
  r(this, "source");
@@ -2109,7 +2109,7 @@ class DC {
2109
2109
  if (e && e.pressed)
2110
2110
  return;
2111
2111
  this.keysPressed[t.code] = { pressed: !0, frame: this.context.time.frameCount + 1, startFrame: this.context.time.frameCount + 1, key: t.key, code: t.code };
2112
- const i = new Eh("keydown", t, t);
2112
+ const i = new Ah("keydown", t, t);
2113
2113
  this.onDispatchEvent(i);
2114
2114
  });
2115
2115
  r(this, "onKeyPressed", (t) => {
@@ -2119,7 +2119,7 @@ class DC {
2119
2119
  if (!e)
2120
2120
  return;
2121
2121
  e.pressed = !0, e.frame = this.context.time.frameCount + 1;
2122
- const i = new Eh("keypress", t, t);
2122
+ const i = new Ah("keypress", t, t);
2123
2123
  this.onDispatchEvent(i);
2124
2124
  });
2125
2125
  r(this, "onKeyUp", (t) => {
@@ -2129,7 +2129,7 @@ class DC {
2129
2129
  if (!e)
2130
2130
  return;
2131
2131
  e.pressed = !1, e.frame = this.context.time.frameCount + 1;
2132
- const i = new Eh("keyup", t, t);
2132
+ const i = new Ah("keyup", t, t);
2133
2133
  this.onDispatchEvent(i);
2134
2134
  });
2135
2135
  r(this, "onWheelWindow", (t) => {
@@ -2229,7 +2229,7 @@ class DC {
2229
2229
  dispatchEvent(t) {
2230
2230
  var i, n, o, a;
2231
2231
  let e = !1;
2232
- if (t instanceof Eh) {
2232
+ if (t instanceof Ah) {
2233
2233
  const l = this._eventListeners[t.type];
2234
2234
  if (l)
2235
2235
  for (const c of l)
@@ -3123,8 +3123,8 @@ Pinch: ${(o = this.getGesture("pinch")) == null ? void 0 : o.value.toFixed(3)}`)
3123
3123
  if (O) {
3124
3124
  const R = O.transform;
3125
3125
  if (i = G(R.position), n = In(R.orientation), this._gripMatrix.fromArray(R.matrix).premultiply(Ca), this._gripMatrix.decompose(this._gripPosition, this._gripQuaternion, G(1, 1, 1)), "linearVelocity" in O && O.linearVelocity) {
3126
- const E = O.linearVelocity;
3127
- this._linearVelocity.set(E.x, E.y, E.z);
3126
+ const A = O.linearVelocity;
3127
+ this._linearVelocity.set(A.x, A.y, A.z);
3128
3128
  }
3129
3129
  }
3130
3130
  }
@@ -3132,15 +3132,15 @@ Pinch: ${(o = this.getGesture("pinch")) == null ? void 0 : o.value.toFixed(3)}`)
3132
3132
  const l = this.hand;
3133
3133
  if (l) {
3134
3134
  let O = !1;
3135
- const R = l.get("wrist"), E = R && this.getHandJointPose(R, t);
3136
- if (E) {
3135
+ const R = l.get("wrist"), A = R && this.getHandJointPose(R, t);
3136
+ if (A) {
3137
3137
  O = !0;
3138
- const z = E.transform.position, U = E.transform.orientation;
3138
+ const z = A.transform.position, U = A.transform.orientation;
3139
3139
  this._object.position.set(z.x, z.y, z.z), this._object.quaternion.set(U.x, U.y, U.z, U.w).multiply(Xi);
3140
3140
  }
3141
3141
  O || (this._object.position.copy(this._rayPosition), this._object.quaternion.copy(this._rayQuaternion).multiply(Xi));
3142
- const F = l.get("middle-finger-metacarpal"), A = F && this.getHandJointPose(F, t);
3143
- A && (this._gripMatrix.fromArray(A.transform.matrix).premultiply(Ca), this._gripMatrix.decompose(this._gripPosition, this._gripQuaternion, G(1, 1, 1)), i = G().copy(A.transform.position), n = In().copy(A.transform.orientation), n.multiply(UC), i.add(G(NC).applyQuaternion(n)));
3142
+ const F = l.get("middle-finger-metacarpal"), E = F && this.getHandJointPose(F, t);
3143
+ E && (this._gripMatrix.fromArray(E.transform.matrix).premultiply(Ca), this._gripMatrix.decompose(this._gripPosition, this._gripQuaternion, G(1, 1, 1)), i = G().copy(E.transform.position), n = In().copy(E.transform.orientation), n.multiply(UC), i.add(G(NC).applyQuaternion(n)));
3144
3144
  } else
3145
3145
  this.inputSource.gripSpace && this.targetRayMode === "transient-pointer" && i && n ? (this._object.position.copy(i), this._object.quaternion.copy(n).multiply(Xi)) : o && a && (this._object.position.copy(o), this._object.quaternion.copy(a).multiply(Xi));
3146
3146
  ns && (o && a && ((_ = this._raySpaceObject) == null || _.position.copy(o), (b = this._raySpaceObject) == null || b.quaternion.copy(a).multiply(Xi)), i && n && ((w = this._gripSpaceObject) == null || w.position.copy(i), (C = this._gripSpaceObject) == null || C.quaternion.copy(n).multiply(Xi)));
@@ -4311,7 +4311,7 @@ class v_ {
4311
4311
  }
4312
4312
  }
4313
4313
  var Ua = /* @__PURE__ */ ((s) => (s[s.Quad = 0] = "Quad", s[s.Cube = 1] = "Cube", s[s.Sphere = 2] = "Sphere", s[s.RoundedCube = 10] = "RoundedCube", s))(Ua || {}), Xc, um;
4314
- class Ar {
4314
+ class Er {
4315
4315
  /**
4316
4316
  * Creates a 3D text object
4317
4317
  * @param text The text to display
@@ -4400,11 +4400,11 @@ Xc = new WeakSet(), um = function(t, e, i) {
4400
4400
  bevelOffset: 0.01,
4401
4401
  bevelSize: 0.01
4402
4402
  });
4403
- }, Ui(Ar, Xc);
4403
+ }, Ui(Er, Xc);
4404
4404
  function ZC(s, t, e, i, n) {
4405
- const o = new Ax(), a = 1e-5, l = i - a;
4405
+ const o = new Ex(), a = 1e-5, l = i - a;
4406
4406
  o.absarc(a, a, a, -Math.PI / 2, -Math.PI, !0), o.absarc(a, t - l * 2, a, Math.PI, Math.PI / 2, !0), o.absarc(s - l * 2, t - l * 2, a, Math.PI / 2, 0, !0), o.absarc(s - l * 2, a, a, 0, -Math.PI / 2, !0);
4407
- const c = new Ex(o, {
4407
+ const c = new Ax(o, {
4408
4408
  bevelEnabled: !0,
4409
4409
  bevelSegments: n * 2,
4410
4410
  steps: 1,
@@ -4471,7 +4471,7 @@ function w_(s, t) {
4471
4471
  }
4472
4472
  }
4473
4473
  function x_() {
4474
- return new mo().add(Ar.createPrimitive("Sphere", { material: new Me({ transparent: !0, opacity: 0.1 }) }));
4474
+ return new mo().add(Er.createPrimitive("Sphere", { material: new Me({ transparent: !0, opacity: 0.1 }) }));
4475
4475
  }
4476
4476
  const ky = class {
4477
4477
  constructor(t, e, i) {
@@ -4555,7 +4555,7 @@ const ky = class {
4555
4555
  roughness: 0.8
4556
4556
  });
4557
4557
  this.isAR && (a.emissive = new le(Math.random(), Math.random(), Math.random()), a.emissiveIntensity = Math.random());
4558
- const l = $.random(0, 1) > 0.5 ? Ua.Sphere : Ua.Cube, c = Ar.createPrimitive(l, {
4558
+ const l = $.random(0, 1) > 0.5 ? Ua.Sphere : Ua.Cube, c = Er.createPrimitive(l, {
4559
4559
  material: a
4560
4560
  });
4561
4561
  c.position.x = $.random(-n, n), c.position.y = $.random(-2, n), c.position.z = $.random(-n, n), c.rotation.x = $.random(0, Math.PI * 2), c.rotation.y = $.random(0, Math.PI * 2), c.rotation.z = $.random(0, Math.PI * 2), c.scale.multiplyScalar(0.5 + Math.random() * 10);
@@ -5852,7 +5852,7 @@ class Ie {
5852
5852
  if ($a(n))
5853
5853
  continue;
5854
5854
  const o = t.isInVR, a = !1, l = !o;
5855
- Eu(n, t.mainCamera, a, l);
5855
+ Au(n, t.mainCamera, a, l);
5856
5856
  }
5857
5857
  }
5858
5858
  }
@@ -6099,22 +6099,22 @@ function dP(s, t, e) {
6099
6099
  var Wd;
6100
6100
  ((s) => {
6101
6101
  function t(b, w, C, k) {
6102
- var R, E, F;
6102
+ var R, A, F;
6103
6103
  if (!w.geometry || !w.geometry.hasAttribute("position"))
6104
6104
  return !1;
6105
6105
  const O = w.geometry;
6106
6106
  if (w != null && w.isSkinnedMesh) {
6107
- const A = w, z = A.bvhNeedsUpdate;
6108
- if (!A.staticGenerator)
6109
- l(), o && (A.staticGenerator = new o(w), A.staticGenerator.applyWorldTransforms = !1, A.staticGeometry = A.staticGenerator.generate(), O.boundsTree = a == null ? void 0 : a.call(A.staticGeometry), A.staticGeometryLastUpdate = performance.now() + Math.random() * 200, A.autoUpdateMeshBVH === void 0 && (A.autoUpdateMeshBVH = !1));
6110
- else if (O.boundsTree && (A.autoUpdateMeshBVH === !0 || z === !0)) {
6111
- const U = performance.now(), K = U - A.staticGeometryLastUpdate;
6112
- (z || K > 100) && (A.bvhNeedsUpdate = !1, A.staticGeometryLastUpdate = U, (R = A.staticGenerator) == null || R.generate(A.staticGeometry), O.boundsTree.refit());
6107
+ const E = w, z = E.bvhNeedsUpdate;
6108
+ if (!E.staticGenerator)
6109
+ l(), o && (E.staticGenerator = new o(w), E.staticGenerator.applyWorldTransforms = !1, E.staticGeometry = E.staticGenerator.generate(), O.boundsTree = a == null ? void 0 : a.call(E.staticGeometry), E.staticGeometryLastUpdate = performance.now() + Math.random() * 200, E.autoUpdateMeshBVH === void 0 && (E.autoUpdateMeshBVH = !1));
6110
+ else if (O.boundsTree && (E.autoUpdateMeshBVH === !0 || z === !0)) {
6111
+ const U = performance.now(), K = U - E.staticGeometryLastUpdate;
6112
+ (z || K > 100) && (E.bvhNeedsUpdate = !1, E.staticGeometryLastUpdate = U, (R = E.staticGenerator) == null || R.generate(E.staticGeometry), O.boundsTree.refit());
6113
6113
  }
6114
6114
  } else if (!O.boundsTree) {
6115
6115
  h || _();
6116
- let A = !0;
6117
- if ((k.xr || O[m] === !1 || (E = O.getAttribute("position")) != null && E.isInterleavedBufferAttribute || O.index && ((F = O.index) != null && F.isInterleavedBufferAttribute)) && (A = !1), A && u) {
6116
+ let E = !0;
6117
+ if ((k.xr || O[m] === !1 || (A = O.getAttribute("position")) != null && A.isInterleavedBufferAttribute || O.index && ((F = O.index) != null && F.isInterleavedBufferAttribute)) && (E = !1), E && u) {
6118
6118
  if (O[p] === void 0) {
6119
6119
  let z = null;
6120
6120
  if (y.length > 0) {
@@ -6140,18 +6140,18 @@ var Wd;
6140
6140
  _i && console.warn("No worker available");
6141
6141
  }
6142
6142
  } else
6143
- (!d || !A) && (l(), n && (performance.mark("bvh.create.start"), O.boundsTree = new n(O), performance.mark("bvh.create.end"), performance.measure("bvh.create", "bvh.create.start", "bvh.create.end")));
6143
+ (!d || !E) && (l(), n && (performance.mark("bvh.create.start"), O.boundsTree = new n(O), performance.mark("bvh.create.end"), performance.measure("bvh.create", "bvh.create.start", "bvh.create.end")));
6144
6144
  }
6145
6145
  if (b instanceof Cu) {
6146
- const A = b, z = w.raycast;
6146
+ const E = b, z = w.raycast;
6147
6147
  O.boundsTree ? (l(), i && (w.acceleratedRaycast || (w.acceleratedRaycast = i.bind(w), _i && console.debug(`Physics: bind acceleratedRaycast fn to "${w.name}"`)), w.raycast = w.acceleratedRaycast)) : _i && console.warn("No bounds tree found for mesh", w.name, { workerTask: O[p], hasAcceleratedRaycast: i != null });
6148
- const U = A.firstHitOnly;
6149
- return A.firstHitOnly = !1, A.intersectObject(w, !1, C), A.firstHitOnly = U, w.raycast = z, !0;
6148
+ const U = E.firstHitOnly;
6149
+ return E.firstHitOnly = !1, E.intersectObject(w, !1, C), E.firstHitOnly = U, w.raycast = z, !0;
6150
6150
  } else if (b instanceof Su) {
6151
- const A = O.boundsTree;
6152
- if (A) {
6151
+ const E = O.boundsTree;
6152
+ if (E) {
6153
6153
  const z = b;
6154
- if (c.copy(w.matrixWorld).invert(), z.applyMatrix4(c), A.intersectsSphere(z)) {
6154
+ if (c.copy(w.matrixWorld).invert(), z.applyMatrix4(c), E.intersectsSphere(z)) {
6155
6155
  const K = ie(w), T = K.distanceTo(z.center), j = new Z0(w, T, K);
6156
6156
  C.push(j);
6157
6157
  }
@@ -6246,23 +6246,23 @@ const Du = x("trackresources");
6246
6246
  function J0() {
6247
6247
  return Du === "dispose";
6248
6248
  }
6249
- let Er = !0;
6250
- Du === 0 && (Er = !1);
6251
- function AL(s) {
6252
- Er = s;
6249
+ let Ar = !0;
6250
+ Du === 0 && (Ar = !1);
6251
+ function EL(s) {
6252
+ Ar = s;
6253
6253
  }
6254
6254
  function pP() {
6255
- return Er;
6255
+ return Ar;
6256
6256
  }
6257
6257
  const ev = Symbol("disposable");
6258
6258
  function tv(s, t) {
6259
6259
  s && (s[ev] = t, fr && console.warn("Set disposable", t, s));
6260
6260
  }
6261
6261
  const iv = Symbol("disposed");
6262
- function EL(s) {
6262
+ function AL(s) {
6263
6263
  return s[iv] === !0;
6264
6264
  }
6265
- function Ee(s) {
6265
+ function Ae(s) {
6266
6266
  var t;
6267
6267
  if (s) {
6268
6268
  if (s[ev] === !1) {
@@ -6270,33 +6270,33 @@ function Ee(s) {
6270
6270
  return;
6271
6271
  }
6272
6272
  if (s[iv] = !0, s instanceof Ri)
6273
- Ee(s.environment), Ee(s.background), Ee(s.customDepthMaterial), Ee(s.customDistanceMaterial);
6273
+ Ae(s.environment), Ae(s.background), Ae(s.customDepthMaterial), Ae(s.customDistanceMaterial);
6274
6274
  else if (s instanceof Os)
6275
- Ee(s.geometry), Ee(s.material), Ee(s.skeleton), Ee(s.bindMatrix), Ee(s.bindMatrixInverse), Ee(s.customDepthMaterial), Ee(s.customDistanceMaterial), s.geometry = null, s.material = null, s.visible = !1;
6275
+ Ae(s.geometry), Ae(s.material), Ae(s.skeleton), Ae(s.bindMatrix), Ae(s.bindMatrixInverse), Ae(s.customDepthMaterial), Ae(s.customDistanceMaterial), s.geometry = null, s.material = null, s.visible = !1;
6276
6276
  else if (s instanceof q)
6277
- Ee(s.geometry), Ee(s.material), Ee(s.customDepthMaterial), Ee(s.customDistanceMaterial), s.geometry = null, s.material = null, s.visible = !1;
6277
+ Ae(s.geometry), Ae(s.material), Ae(s.customDepthMaterial), Ae(s.customDistanceMaterial), s.geometry = null, s.material = null, s.visible = !1;
6278
6278
  else if (s instanceof Wn) {
6279
6279
  Hr(s);
6280
6280
  for (const e of Object.keys(s.attributes)) {
6281
6281
  const i = s.attributes[e];
6282
- Ee(i);
6282
+ Ae(i);
6283
6283
  }
6284
6284
  } else if (s instanceof pt || s instanceof r0)
6285
6285
  fr && console.warn("BufferAttribute dispose not supported", s.count);
6286
6286
  else if (s instanceof Array)
6287
6287
  for (const e of s)
6288
- e instanceof Se && Ee(e);
6288
+ e instanceof Se && Ae(e);
6289
6289
  else if (s instanceof Se) {
6290
6290
  Hr(s);
6291
6291
  for (const i of Object.keys(s)) {
6292
6292
  const n = s[i];
6293
- n instanceof Fe && (Ee(n), s[i] = null);
6293
+ n instanceof Fe && (Ae(n), s[i] = null);
6294
6294
  }
6295
6295
  const e = s.uniforms;
6296
6296
  if (e)
6297
6297
  for (const i of Object.keys(e)) {
6298
6298
  const n = e[i];
6299
- n instanceof Fe ? (Ee(n), e[i] = null) : n instanceof po && (Ee(n.value), n.value = null);
6299
+ n instanceof Fe ? (Ae(n), e[i] = null) : n instanceof po && (Ae(n.value), n.value = null);
6300
6300
  }
6301
6301
  } else
6302
6302
  s instanceof Fe ? (Hr(s), Hr(s.source), ((t = s.source) == null ? void 0 : t.data) instanceof ImageBitmap && Hr(s.source.data)) : s instanceof jx ? (Hr(s.boneTexture), s.boneTexture = null) : s instanceof Bx || !(s instanceof I) && fr && console.warn("Unknown object type", s);
@@ -6324,19 +6324,19 @@ function IL(s) {
6324
6324
  const fr = x("debugresourceusers") || x("debugmemory"), Uc = Symbol("needle-resource-users"), ql = Symbol("needle-resource-users-count");
6325
6325
  function Vt(s, t) {
6326
6326
  vg(s, t, function(e, i) {
6327
- Er && !hc.raycasting && (Vd(Uc, this, e, !1), Vd(Uc, this, i, !0));
6327
+ Ar && !hc.raycasting && (Vd(Uc, this, e, !1), Vd(Uc, this, i, !0));
6328
6328
  });
6329
6329
  }
6330
- Er && (Vt(q.prototype, "material"), Vt(q.prototype, "geometry"), Vt(Se.prototype, "map"), Vt(Se.prototype, "bumpMap"), Vt(Se.prototype, "alphaMap"), Vt(Se.prototype, "normalMap"), Vt(Se.prototype, "displacementMap"), Vt(Se.prototype, "roughnessMap"), Vt(Se.prototype, "metalnessMap"), Vt(Se.prototype, "emissiveMap"), Vt(Se.prototype, "specularMap"), Vt(Se.prototype, "envMap"), Vt(Se.prototype, "lightMap"), Vt(Se.prototype, "aoMap"), Vt(Se.prototype, "gradientMap"));
6330
+ Ar && (Vt(q.prototype, "material"), Vt(q.prototype, "geometry"), Vt(Se.prototype, "map"), Vt(Se.prototype, "bumpMap"), Vt(Se.prototype, "alphaMap"), Vt(Se.prototype, "normalMap"), Vt(Se.prototype, "displacementMap"), Vt(Se.prototype, "roughnessMap"), Vt(Se.prototype, "metalnessMap"), Vt(Se.prototype, "emissiveMap"), Vt(Se.prototype, "specularMap"), Vt(Se.prototype, "envMap"), Vt(Se.prototype, "lightMap"), Vt(Se.prototype, "aoMap"), Vt(Se.prototype, "gradientMap"));
6331
6331
  function yP(s) {
6332
- if (Er === !1)
6332
+ if (Ar === !1)
6333
6333
  return;
6334
6334
  const t = s[Uc];
6335
6335
  if (t)
6336
6336
  for (const e of t)
6337
6337
  Vd(Uc, e, s, !1);
6338
6338
  }
6339
- Er && vg(Se.prototype, "dispose", function() {
6339
+ Ar && vg(Se.prototype, "dispose", function() {
6340
6340
  yP(this);
6341
6341
  });
6342
6342
  let pm = 0;
@@ -6360,7 +6360,7 @@ function Vd(s, t, e, i) {
6360
6360
  } else if (t && n.has(t)) {
6361
6361
  n.delete(t);
6362
6362
  let o = e[ql] || 0;
6363
- o > 0 && (o -= 1, e[ql] = o), fr && console.warn(`🔴 Removed user of "${e.type}"`, t, e, o, "users:", n), o <= 0 && (dc.isLoading(e) || (Du && console.warn(`🔴 Removed all user of "${e.type}"`, e), J0() && Ee(e)));
6363
+ o > 0 && (o -= 1, e[ql] = o), fr && console.warn(`🔴 Removed user of "${e.type}"`, t, e, o, "users:", n), o <= 0 && (dc.isLoading(e) || (Du && console.warn(`🔴 Removed all user of "${e.type}"`, e), J0() && Ae(e)));
6364
6364
  }
6365
6365
  e[s] = n;
6366
6366
  }
@@ -6592,7 +6592,7 @@ function xP(s, t) {
6592
6592
  return;
6593
6593
  _d.has(t) || _d.set(t, []), s[gm] = !0, _d.get(t).push(s), ym && console.debug("register prewarm", s.name);
6594
6594
  }
6595
- let T_ = null, A_ = null;
6595
+ let T_ = null, E_ = null;
6596
6596
  function SP(s) {
6597
6597
  if (!s)
6598
6598
  return;
@@ -6605,7 +6605,7 @@ function SP(s) {
6605
6605
  const i = s.renderer;
6606
6606
  if (i.compile) {
6607
6607
  const n = s.scene;
6608
- i.compile(n, e), T_ ?? (T_ = new zx(64)), A_ ?? (A_ = new Ux(1e-3, 9999999, T_)), A_.update(i, n);
6608
+ i.compile(n, e), T_ ?? (T_ = new zx(64)), E_ ?? (E_ = new Ux(1e-3, 9999999, T_)), E_.update(i, n);
6609
6609
  for (const o of t)
6610
6610
  o[lv] = !0, o[gm] = !1;
6611
6611
  t.length = 0, ym && console.log("prewarm done");
@@ -6616,7 +6616,7 @@ pe.registerCallback(me.ContextCreated, (s) => {
6616
6616
  const t = s.context;
6617
6617
  kP(t), OP(t);
6618
6618
  });
6619
- const Gd = x("debugcomponents"), E_ = "eff8ba80-635d-11ec-90d6-0242ac120003";
6619
+ const Gd = x("debugcomponents"), A_ = "eff8ba80-635d-11ec-90d6-0242ac120003";
6620
6620
  class Ft {
6621
6621
  constructor(t) {
6622
6622
  r(this, "_originalSeed");
@@ -6634,9 +6634,9 @@ class Ft {
6634
6634
  }
6635
6635
  generateUUID(t) {
6636
6636
  if (typeof t == "string")
6637
- return Vy(t, E_);
6637
+ return Vy(t, A_);
6638
6638
  const e = this._seed;
6639
- return this._seed -= 1, Vy(e.toString(), E_);
6639
+ return this._seed -= 1, Vy(e.toString(), A_);
6640
6640
  }
6641
6641
  initialize(t) {
6642
6642
  typeof t == "string" ? this._seed = Ft.hash(t) : this._seed = t;
@@ -6746,7 +6746,7 @@ function RP() {
6746
6746
  const oa = new Array();
6747
6747
  function kP(s) {
6748
6748
  s.connection.beginListen("new-instance-created", async (t) => {
6749
- const e = await EP(t.originalGuid, s.scene);
6749
+ const e = await AP(t.originalGuid, s.scene);
6750
6750
  if (t.preventCreation === !0)
6751
6751
  return;
6752
6752
  if (!e) {
@@ -6773,10 +6773,10 @@ function TP(s, t) {
6773
6773
  return { seed: e, instance: n };
6774
6774
  }
6775
6775
  const dv = {};
6776
- function AP(s, t) {
6776
+ function EP(s, t) {
6777
6777
  dv[s] = t;
6778
6778
  }
6779
- async function EP(s, t) {
6779
+ async function AP(s, t) {
6780
6780
  const e = dv[s];
6781
6781
  if (e != null) {
6782
6782
  const i = await e(s);
@@ -7428,7 +7428,7 @@ function Fu(s, t, e) {
7428
7428
  }
7429
7429
  const bv = new Ft("addComponentIdProvider");
7430
7430
  function Ma(s, t, e = !0) {
7431
- s.userData || (s.userData = {}), s.userData.components || (s.userData.components = []), s.userData.components.push(t), t.gameObject = s, (t.guid === void 0 || t.guid === "invalid") && (t.guid = bv.generateUUID()), Ag(s), Dg(t, t.context);
7431
+ s.userData || (s.userData = {}), s.userData.components || (s.userData.components = []), s.userData.components.push(t), t.gameObject = s, (t.guid === void 0 || t.guid === "invalid") && (t.guid = bv.generateUUID()), Eg(s), Dg(t, t.context);
7432
7432
  try {
7433
7433
  e && t.__internalAwake && (uc(s), t.activeAndEnabled && t.__internalAwake()), ju.dispatchComponentLifecycleEvent("component-added", t);
7434
7434
  } catch (i) {
@@ -7560,7 +7560,7 @@ function sO(s, t, e = void 0) {
7560
7560
  const i = e;
7561
7561
  return i && Zc(i, s, t, !1), t;
7562
7562
  }
7563
- function Ag(s) {
7563
+ function Eg(s) {
7564
7564
  s && s.isObject3D === !0 && KP(s, I);
7565
7565
  }
7566
7566
  I.prototype.SetActive = function(s) {
@@ -7753,12 +7753,12 @@ function xd(s, t) {
7753
7753
  return typeof t == "number" && (t = t > 0.5), s.visible = t, s.visible;
7754
7754
  }
7755
7755
  function oO(s) {
7756
- return s[_o] || Eg(s);
7756
+ return s[_o] || Ag(s);
7757
7757
  }
7758
7758
  function rO(s, t) {
7759
7759
  s[sv] = t;
7760
7760
  }
7761
- function Eg(s) {
7761
+ function Ag(s) {
7762
7762
  return bn.isUsingInstancing(s);
7763
7763
  }
7764
7764
  function wv(s, t) {
@@ -7781,7 +7781,7 @@ function sn(s, t = !0, e = !1) {
7781
7781
  for (const i of Sd)
7782
7782
  i.gameObject = null, i.context = null;
7783
7783
  for (const i of Cd)
7784
- aO(i, !0), e && Ee(i), mP(i);
7784
+ aO(i, !0), e && Ae(i), mP(i);
7785
7785
  Cd.length = 0, Sd.length = 0;
7786
7786
  }
7787
7787
  function Sm(s, t = !0, e = !0) {
@@ -7887,7 +7887,7 @@ function Cv(s, t, e, i, n, o) {
7887
7887
  const l = t.children;
7888
7888
  t.children = [];
7889
7889
  const c = t.clone(!1);
7890
- if (Ag(c), t.userData = a, t.children = l, n[t.uuid] = { original: t, clone: c }, wd && console.log("ADD", t, c), t.type === "SkinnedMesh" && (o[t.uuid] = { original: t, clone: c }), (e == null ? void 0 : e.visible) !== void 0 && (c.visible = e.visible), e != null && e.idProvider) {
7890
+ if (Eg(c), t.userData = a, t.children = l, n[t.uuid] = { original: t, clone: c }, wd && console.log("ADD", t, c), t.type === "SkinnedMesh" && (o[t.uuid] = { original: t, clone: c }), (e == null ? void 0 : e.visible) !== void 0 && (c.visible = e.visible), e != null && e.idProvider) {
7891
7891
  c.uuid = e.idProvider.generateUUID();
7892
7892
  const u = c;
7893
7893
  u && (u.guid = c.uuid);
@@ -8061,9 +8061,9 @@ var Ha;
8061
8061
  if ("error" in w)
8062
8062
  return console.error(w.error), null;
8063
8063
  if ("upload" in w && w.upload) {
8064
- let k = function(E) {
8065
- var A;
8066
- return (A = u == null ? void 0 : u.onProgress) == null || A.call(null, { progress01: 0, state: "inprogress" }), fetch(E, {
8064
+ let k = function(A) {
8065
+ var E;
8066
+ return (E = u == null ? void 0 : u.onProgress) == null || E.call(null, { progress01: 0, state: "inprogress" }), fetch(A, {
8067
8067
  method: "PUT",
8068
8068
  headers: b,
8069
8069
  body: m,
@@ -8075,14 +8075,14 @@ var Ha;
8075
8075
  };
8076
8076
  console.debug("Uploading file", w.upload);
8077
8077
  let O = !1, R = null;
8078
- for (let E = 0; E < 3; E++)
8078
+ for (let A = 0; A < 3; A++)
8079
8079
  try {
8080
8080
  if (O)
8081
8081
  break;
8082
8082
  if ((C = u == null ? void 0 : u.abort) != null && C.aborted)
8083
8083
  return console.debug("Aborted upload"), null;
8084
8084
  const F = await k(w.upload);
8085
- F instanceof Error ? (R = F, await Hn(1e3 * E)) : F.ok && (console.debug("File uploaded successfully"), O = !0);
8085
+ F instanceof Error ? (R = F, await Hn(1e3 * A)) : F.ok && (console.debug("File uploaded successfully"), O = !0);
8086
8086
  } catch (F) {
8087
8087
  console.error(F);
8088
8088
  }
@@ -8173,7 +8173,7 @@ const Hf = Symbol("assetReference"), ir = class {
8173
8173
  o >= 0 && (this._urlName = this._urlName.substring(0, o));
8174
8174
  } else
8175
8175
  this._urlName = t;
8176
- this._hash = e, t.includes("?v=") ? this._hashedUri = t : this._hashedUri = e ? t + "?v=" + e : t, i !== null && (this.asset = i), AP(this._url, this.onResolvePrefab.bind(this));
8176
+ this._hash = e, t.includes("?v=") ? this._hashedUri = t : this._hashedUri = e ? t + "?v=" + e : t, i !== null && (this.asset = i), EP(this._url, this.onResolvePrefab.bind(this));
8177
8177
  }
8178
8178
  /**
8179
8179
  * Get an AssetReference for a URL to be easily loaded.
@@ -8637,7 +8637,7 @@ class yO {
8637
8637
  }
8638
8638
  resolveTexture(t, e) {
8639
8639
  const i = e;
8640
- Rl && console.log("Lightmap loaded:", i), i != null && i.isTexture && (this.registry ? (i.colorSpace = Es, this.registry.registerTexture(this.source, t.type, i, t.index)) : console.log(uo[t.type], t.pointer, i));
8640
+ Rl && console.log("Lightmap loaded:", i), i != null && i.isTexture && (this.registry ? (i.colorSpace = As, this.registry.registerTexture(this.source, t.type, i, t.index)) : console.log(uo[t.type], t.pointer, i));
8641
8641
  }
8642
8642
  }
8643
8643
  const N_ = !!x("debuglightmaps");
@@ -8775,8 +8775,8 @@ TEX ` + i.texture_lod;
8775
8775
  ` + (n.lastScreenCoverage * 100).toFixed(1) + `% cov
8776
8776
  ` + (n.lastCentrality * 100).toFixed(1) + `% centr
8777
8777
  ` + (zh.min.x.toFixed(2) + "-" + zh.max.x.toFixed(2) + "x" + zh.min.y.toFixed(2) + "-" + zh.max.y.toFixed(2)) + " scr"), n.lastScreenCoverage > 0.1) {
8778
- const C = t, k = C.worldForward, O = C.worldPosition, E = G(k).multiplyScalar(p * 0.7).add(u), F = E.distanceTo(O), A = m[Math.min(m.length - 1, Math.max(0, o))] + "88", z = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, U = t.isPerspectiveCamera ? Math.tan(t.fov * Math.PI / 180 / 2) : 1;
8779
- V.DrawLabel(E, w, F * 0.012 * z * U, void 0, 16777215, A);
8778
+ const C = t, k = C.worldForward, O = C.worldPosition, A = G(k).multiplyScalar(p * 0.7).add(u), F = A.distanceTo(O), E = m[Math.min(m.length - 1, Math.max(0, o))] + "88", z = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, U = t.isPerspectiveCamera ? Math.tan(t.fov * Math.PI / 180 / 2) : 1;
8779
+ V.DrawLabel(A, w, F * 0.012 * z * U, void 0, 16777215, E);
8780
8780
  }
8781
8781
  }
8782
8782
  }
@@ -9112,7 +9112,7 @@ class TO {
9112
9112
  const V_ = x("timescale");
9113
9113
  let Pm = 1;
9114
9114
  typeof V_ == "number" && (Pm = V_);
9115
- class AO {
9115
+ class EO {
9116
9116
  constructor() {
9117
9117
  r(this, "_time", 0);
9118
9118
  r(this, "_deltaTime", 0);
@@ -9192,10 +9192,10 @@ class AO {
9192
9192
  }
9193
9193
  let H_ = !1;
9194
9194
  function Ov(s) {
9195
- H_ || (H_ = !0, EO(), IO());
9195
+ H_ || (H_ = !0, AO(), IO());
9196
9196
  }
9197
9197
  Ov();
9198
- function EO() {
9198
+ function AO() {
9199
9199
  const s = `
9200
9200
  float startCompression = 0.8;
9201
9201
  float desaturation = 0.5;
@@ -9681,7 +9681,7 @@ class VO {
9681
9681
  const l = e.worldPosition, c = e.worldForward.multiplyScalar(-1), h = c.y > 0.6, d = c.y > 0.4, u = (t.visible ? d : h) || this.userRequestedMenu, p = !t.visible && u;
9682
9682
  t.visible = u || X.isDesktop() && Xf, c.multiplyScalar(3 * n), l.add(c), (p || !1) && (t.position.copy(this._menuTarget.position), t.position.y += 0.25, this._menuTarget.position.copy(t.position), this.positionFilter.reset(t.position), t.quaternion.copy(this._menuTarget.quaternion), this.markDirty());
9683
9683
  const g = this._menuTarget.position.distanceTo(l);
9684
- (p || g > 1.5 * n) && (this.ensureRenderOnTop(this.menu), this._menuTarget.position.copy(l), this._context.scene.add(this._menuTarget), Eu(this._menuTarget, this._context.mainCamera, !0, !0), this._menuTarget.removeFromParent()), this.positionFilter.filter(this._menuTarget.position, t.position, this._context.time.time);
9684
+ (p || g > 1.5 * n) && (this.ensureRenderOnTop(this.menu), this._menuTarget.position.copy(l), this._context.scene.add(this._menuTarget), Au(this._menuTarget, this._context.mainCamera, !0, !0), this._menuTarget.removeFromParent()), this.positionFilter.filter(this._menuTarget.position, t.position, this._context.time.time);
9685
9685
  const y = 5;
9686
9686
  (o = this.menu) == null || o.quaternion.slerp(this._menuTarget.quaternion, this._context.time.deltaTime * y), (a = this.menu) == null || a.scale.setScalar(n);
9687
9687
  }
@@ -10868,7 +10868,7 @@ const ke = class {
10868
10868
  r(this, "_contextRestoreTries", 0);
10869
10869
  /** returns true if we should return out of the frame loop */
10870
10870
  r(this, "_wasPaused", !1);
10871
- this.name = (t == null ? void 0 : t.name) || "", this.alias = t == null ? void 0 : t.alias, this.domElement = (t == null ? void 0 : t.domElement) || document.body, this.hash = t == null ? void 0 : t.hash, t != null && t.renderer && (this.renderer = t.renderer, this.isManagedExternally = !0), (t == null ? void 0 : t.runInBackground) !== void 0 && (this.runInBackground = t.runInBackground), t != null && t.scene ? this.scene = t.scene : this.scene = new Ri(), t != null && t.camera && (this._mainCamera = t.camera), this.application = new _n(this), this.time = new AO(), this.input = new DC(this), this.physics = new hc(this), this.connection = new YC(this), this.assets = new fP(), this.sceneLighting = new kO(this), this.addressables = new hO(this), this.lightmaps = new _O(this), this.players = new xO(this), this.menu = new GO(this), this.lodsManager = new bO(this), this.animations = new mO(this);
10871
+ this.name = (t == null ? void 0 : t.name) || "", this.alias = t == null ? void 0 : t.alias, this.domElement = (t == null ? void 0 : t.domElement) || document.body, this.hash = t == null ? void 0 : t.hash, t != null && t.renderer && (this.renderer = t.renderer, this.isManagedExternally = !0), (t == null ? void 0 : t.runInBackground) !== void 0 && (this.runInBackground = t.runInBackground), t != null && t.scene ? this.scene = t.scene : this.scene = new Ri(), t != null && t.camera && (this._mainCamera = t.camera), this.application = new _n(this), this.time = new EO(), this.input = new DC(this), this.physics = new hc(this), this.connection = new YC(this), this.assets = new fP(), this.sceneLighting = new kO(this), this.addressables = new hO(this), this.lightmaps = new _O(this), this.players = new xO(this), this.menu = new GO(this), this.lodsManager = new bO(this), this.animations = new mO(this);
10872
10872
  const e = () => this._needsUpdateSize = !0;
10873
10873
  window.addEventListener("resize", e), this._disposeCallbacks.push(() => window.removeEventListener("resize", e));
10874
10874
  const i = new ResizeObserver((n) => this._needsUpdateSize = !0);
@@ -11410,7 +11410,7 @@ Possible solutions:
11410
11410
  continue;
11411
11411
  for (let y = 0; y < m.file.parser.json.materials.length; y++) {
11412
11412
  const _ = await m.file.parser.getDependency("material", y), b = new I();
11413
- b.position.x = y * 1.1, b.position.y = g, this.scene.add(b), Ar.createPrimitive("ShaderBall", {
11413
+ b.position.x = y * 1.1, b.position.y = g, this.scene.add(b), Er.createPrimitive("ShaderBall", {
11414
11414
  parent: b,
11415
11415
  material: _
11416
11416
  });
@@ -11912,7 +11912,7 @@ async function iM() {
11912
11912
  }
11913
11913
  const nM = x("debugdecoders");
11914
11914
  let Yf = null;
11915
- function Av() {
11915
+ function Ev() {
11916
11916
  if (!Yf) {
11917
11917
  const s = ug(null);
11918
11918
  Yf = { dracoLoader: s.dracoLoader, ktx2Loader: s.ktx2Loader, meshoptDecoder: s.meshoptDecoder };
@@ -11924,7 +11924,7 @@ function Y_(s) {
11924
11924
  }
11925
11925
  function K_(s) {
11926
11926
  if (s !== void 0 && typeof s == "string" && s !== "js") {
11927
- const t = Av();
11927
+ const t = Ev();
11928
11928
  nM && console.log("Setting draco decoder type to", s), t.dracoLoader.setDecoderConfig({ type: s });
11929
11929
  }
11930
11930
  }
@@ -11932,7 +11932,7 @@ function Z_(s) {
11932
11932
  s !== void 0 && typeof s == "string" && Q1(s);
11933
11933
  }
11934
11934
  function Bg(s, t) {
11935
- const e = Av();
11935
+ const e = Ev();
11936
11936
  return t.renderer ? e.ktx2Loader.detectSupport(t.renderer) : console.warn("No renderer provided to detect ktx2 support - loading KTX2 textures will probably fail"), G1(s), s.dracoLoader || s.setDRACOLoader(e.dracoLoader), s.ktx2Loader || s.setKTX2Loader(e.ktx2Loader), s.meshoptDecoder || s.setMeshoptDecoder(e.meshoptDecoder), q1(s, {
11937
11937
  progressive: !0
11938
11938
  }), s;
@@ -12124,7 +12124,7 @@ class S extends I {
12124
12124
  * @returns True if the GameObject is using instanced rendering
12125
12125
  */
12126
12126
  static isUsingInstancing(e) {
12127
- return Eg(e);
12127
+ return Ag(e);
12128
12128
  }
12129
12129
  /**
12130
12130
  * Executes a callback for all components of the provided type on the provided object and its children
@@ -12699,7 +12699,7 @@ const kc = class {
12699
12699
  * @param val The world rotation Euler angles to set
12700
12700
  */
12701
12701
  set worldEuler(t) {
12702
- A0(this.gameObject, t);
12702
+ E0(this.gameObject, t);
12703
12703
  }
12704
12704
  /**
12705
12705
  * Gets the rotation of this component's GameObject in world space as Euler angles (in degrees)
@@ -12784,7 +12784,7 @@ const $L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12784
12784
  Component: L,
12785
12785
  GameObject: S
12786
12786
  }, Symbol.toStringTag, { value: "Module" }));
12787
- var aM = Object.defineProperty, lM = Object.getOwnPropertyDescriptor, Ev = (s, t, e, i) => {
12787
+ var aM = Object.defineProperty, lM = Object.getOwnPropertyDescriptor, Av = (s, t, e, i) => {
12788
12788
  for (var n = i > 1 ? void 0 : i ? lM(t, e) : t, o = s.length - 1, a; o >= 0; o--)
12789
12789
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
12790
12790
  return i && n && aM(t, e, n), n;
@@ -12808,10 +12808,10 @@ class Wu extends L {
12808
12808
  this._centerPos.copy(e), this._centerPos.add(i), this._centerPos.multiplyScalar(0.5), yt(this.gameObject, this.centered ? this._centerPos : e), this.gameObject.lookAt(ie(this.to).clone()), this.gameObject.scale.set(this.width, this.width, n);
12809
12809
  }
12810
12810
  }
12811
- Ev([
12811
+ Av([
12812
12812
  f(S)
12813
12813
  ], Wu.prototype, "from", 2);
12814
- Ev([
12814
+ Av([
12815
12815
  f(S)
12816
12816
  ], Wu.prototype, "to", 2);
12817
12817
  var cM = Object.defineProperty, hM = Object.getOwnPropertyDescriptor, Ir = (s, t, e, i) => {
@@ -14307,7 +14307,7 @@ class Ns extends L {
14307
14307
  }
14308
14308
  /** @internal */
14309
14309
  async onLeaveXR() {
14310
- this.activeAndEnabled && (await Au(1), this.updateProjection());
14310
+ this.activeAndEnabled && (await Eu(1), this.updateProjection());
14311
14311
  }
14312
14312
  /** @internal */
14313
14313
  onBeforeRender() {
@@ -14347,7 +14347,7 @@ class Ns extends L {
14347
14347
  console.error("Error creating three GroundProjection", p);
14348
14348
  return;
14349
14349
  }
14350
- this._projection.position.y = this._height - n, this._projection.name = "GroundProjection", E0(this._projection, !1);
14350
+ this._projection.position.y = this._height - n, this._projection.name = "GroundProjection", A0(this._projection, !1);
14351
14351
  } else
14352
14352
  i = !1;
14353
14353
  if (this._projection.parent || this.gameObject.add(this._projection), this.autoFit && i) {
@@ -14751,7 +14751,7 @@ const YL = function(s) {
14751
14751
  });
14752
14752
  };
14753
14753
  };
14754
- var RM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, Ai = (s, t, e, i) => {
14754
+ var RM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, Ei = (s, t, e, i) => {
14755
14755
  for (var n = i > 1 ? void 0 : i ? kM(t, e) : t, o = s.length - 1, a; o >= 0; o--)
14756
14756
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
14757
14757
  return i && n && RM(t, e, n), n;
@@ -14926,7 +14926,7 @@ const Od = (Bp = class extends L {
14926
14926
  onEnable() {
14927
14927
  this._watch || (this._watch = new TM(this.gameObject, this.context)), this._watch.start(!0, !0), this.startCoroutine(this.beforePhysics(), Re.LateUpdate), B() && (globalThis.false ? D.RAPIER_PHYSICS.ready().then(async () => {
14928
14928
  var t;
14929
- await Au(3), (t = this.context.physics.engine) != null && t.getBody(this) || console.warn(`Rigidbody could not be created. Ensure "${this.name}" has a Collider component.`);
14929
+ await Eu(3), (t = this.context.physics.engine) != null && t.getBody(this) || console.warn(`Rigidbody could not be created. Ensure "${this.name}" has a Collider component.`);
14930
14930
  }) : console.warn("Rigidbody could not be created: Rapier physics are explicitly disabled."));
14931
14931
  }
14932
14932
  onDisable() {
@@ -15061,51 +15061,51 @@ const Od = (Bp = class extends L {
15061
15061
  }
15062
15062
  }, r(Bp, "tempPosition", new v()), Bp);
15063
15063
  let _e = Od;
15064
- Ai([
15064
+ Ei([
15065
15065
  $t()
15066
15066
  ], _e.prototype, "autoMass", 2);
15067
- Ai([
15067
+ Ei([
15068
15068
  f()
15069
15069
  ], _e.prototype, "mass", 1);
15070
- Ai([
15070
+ Ei([
15071
15071
  $t(),
15072
15072
  f()
15073
15073
  ], _e.prototype, "useGravity", 2);
15074
- Ai([
15074
+ Ei([
15075
15075
  f(v)
15076
15076
  ], _e.prototype, "centerOfMass", 2);
15077
- Ai([
15077
+ Ei([
15078
15078
  $t(),
15079
15079
  f()
15080
15080
  ], _e.prototype, "constraints", 2);
15081
- Ai([
15081
+ Ei([
15082
15082
  $t(),
15083
15083
  f()
15084
15084
  ], _e.prototype, "isKinematic", 2);
15085
- Ai([
15085
+ Ei([
15086
15086
  $t(),
15087
15087
  f()
15088
15088
  ], _e.prototype, "drag", 2);
15089
- Ai([
15089
+ Ei([
15090
15090
  $t(),
15091
15091
  f()
15092
15092
  ], _e.prototype, "angularDrag", 2);
15093
- Ai([
15093
+ Ei([
15094
15094
  $t(),
15095
15095
  f()
15096
15096
  ], _e.prototype, "detectCollisions", 2);
15097
- Ai([
15097
+ Ei([
15098
15098
  $t(),
15099
15099
  f()
15100
15100
  ], _e.prototype, "sleepThreshold", 2);
15101
- Ai([
15101
+ Ei([
15102
15102
  $t(),
15103
15103
  f()
15104
15104
  ], _e.prototype, "collisionDetectionMode", 2);
15105
- Ai([
15105
+ Ei([
15106
15106
  $t()
15107
15107
  ], _e.prototype, "_gravityScale", 2);
15108
- Ai([
15108
+ Ei([
15109
15109
  $t()
15110
15110
  ], _e.prototype, "dominanceGroup", 2);
15111
15111
  new v();
@@ -15221,7 +15221,7 @@ class Bs extends L {
15221
15221
  const o = n.position();
15222
15222
  o && (this.interpolatePosition && ((i = this._targetPosition) == null || i.set(o.x(), o.y(), o.z())), (!this.interpolatePosition || !this._receivedDataBefore) && this.setWorldPosition(o.x(), o.y(), o.z()));
15223
15223
  const a = n.rotation();
15224
- a && (this.tempEuler.set(a.x(), a.y(), a.z()), this.interpolateRotation && this._targetRotation.setFromEuler(this.tempEuler), (!this.interpolateRotation || !this._receivedDataBefore) && A0(this.gameObject, this.tempEuler));
15224
+ a && (this.tempEuler.set(a.x(), a.y(), a.z()), this.interpolateRotation && this._targetRotation.setFromEuler(this.tempEuler), (!this.interpolateRotation || !this._receivedDataBefore) && E0(this.gameObject, this.tempEuler));
15225
15225
  const l = n.scale();
15226
15226
  l && this.gameObject.scale.set(l.x(), l.y(), l.z());
15227
15227
  }
@@ -15442,7 +15442,7 @@ class ro {
15442
15442
  }
15443
15443
  }
15444
15444
  }
15445
- const AM = (s) => /^[A-Z]*$/.test(s);
15445
+ const EM = (s) => /^[A-Z]*$/.test(s);
15446
15446
  class Ug extends Event {
15447
15447
  constructor() {
15448
15448
  super(...arguments);
@@ -15497,7 +15497,7 @@ class xe {
15497
15497
  if (this.key = t, this.target = e, this.key !== void 0) {
15498
15498
  let i = "", n = !1;
15499
15499
  for (const o of this.key)
15500
- n && AM(o) && (i += "-"), n = !0, i += o.toLowerCase();
15500
+ n && EM(o) && (i += "-"), n = !0, i += o.toLowerCase();
15501
15501
  this.key = i;
15502
15502
  }
15503
15503
  }
@@ -15550,7 +15550,7 @@ class xe {
15550
15550
  this.methods.length = 0;
15551
15551
  }
15552
15552
  }
15553
- class EM extends an {
15553
+ class AM extends an {
15554
15554
  constructor() {
15555
15555
  super([le, ce], "ColorSerializer");
15556
15556
  }
@@ -15563,7 +15563,7 @@ class EM extends an {
15563
15563
  return t.a !== void 0 ? { r: t.r, g: t.g, b: t.b, a: t.a } : { r: t.r, g: t.g, b: t.b };
15564
15564
  }
15565
15565
  }
15566
- const KL = new EM();
15566
+ const KL = new AM();
15567
15567
  class IM extends an {
15568
15568
  constructor() {
15569
15569
  super([Bt], "EulerSerializer");
@@ -15782,7 +15782,7 @@ class zM extends an {
15782
15782
  let i = t;
15783
15783
  Jd.has(i) && (i = Jd.get(i)), i.isRenderTargetTexture = !0, i.flipY = !0, i.offset.y = 1, i.repeat.y = -1, i.needsUpdate = !0, i.mipmaps = [], i instanceof qx && (i.isCompressedTexture = !1, i.format = Pu);
15784
15784
  const n = new mr(i.image.width, i.image.height, {
15785
- colorSpace: Es
15785
+ colorSpace: As
15786
15786
  });
15787
15787
  return n.texture = i, n;
15788
15788
  }
@@ -15851,15 +15851,15 @@ class Ng extends on {
15851
15851
  super(), this.ignoreSkinnedMeshes = !0;
15852
15852
  }
15853
15853
  }
15854
- const Ay = class extends Ga {
15854
+ const Ey = class extends Ga {
15855
15855
  performRaycast(t) {
15856
- if (!Z.active || !Ay.allow || !(t != null && t.ray))
15856
+ if (!Z.active || !Ey.allow || !(t != null && t.ray))
15857
15857
  return null;
15858
15858
  const e = t.ray.origin, i = 0.015;
15859
15859
  return this.context.physics.sphereOverlap(e, i, !1, !0);
15860
15860
  }
15861
15861
  };
15862
- let yr = Ay;
15862
+ let yr = Ey;
15863
15863
  /**
15864
15864
  * Use to disable SpatialGrabRaycaster globally
15865
15865
  */
@@ -15942,7 +15942,7 @@ function HM(s, t, e = Re.OnBeforeRender) {
15942
15942
  o[n] = c;
15943
15943
  }
15944
15944
  const io = x("debugeventsystem");
15945
- var Am = /* @__PURE__ */ ((s) => (s.BeforeHandleInput = "BeforeHandleInput", s.AfterHandleInput = "AfterHandleInput", s))(Am || {});
15945
+ var Em = /* @__PURE__ */ ((s) => (s.BeforeHandleInput = "BeforeHandleInput", s.AfterHandleInput = "AfterHandleInput", s))(Em || {});
15946
15946
  CM((s) => {
15947
15947
  di.createIfNoneExists(s);
15948
15948
  });
@@ -16519,12 +16519,12 @@ class we extends L {
16519
16519
  }
16520
16520
  /** @internal */
16521
16521
  start() {
16522
- this._eventSystem = di.get(this.context) ?? void 0, this._eventSystem && (this._afterHandleInputFn = this.afterHandleInput.bind(this), this._eventSystem.addEventListener(Am.AfterHandleInput, this._afterHandleInputFn));
16522
+ this._eventSystem = di.get(this.context) ?? void 0, this._eventSystem && (this._afterHandleInputFn = this.afterHandleInput.bind(this), this._eventSystem.addEventListener(Em.AfterHandleInput, this._afterHandleInputFn));
16523
16523
  }
16524
16524
  /** @internal */
16525
16525
  onDestroy() {
16526
16526
  var e, i;
16527
- (e = this._controls) == null || e.dispose(), (i = this._eventSystem) == null || i.removeEventListener(Am.AfterHandleInput, this._afterHandleInputFn);
16527
+ (e = this._controls) == null || e.dispose(), (i = this._eventSystem) == null || i.removeEventListener(Em.AfterHandleInput, this._afterHandleInputFn);
16528
16528
  }
16529
16529
  /** @internal */
16530
16530
  onEnable() {
@@ -16777,15 +16777,15 @@ class we extends L {
16777
16777
  }
16778
16778
  const b = i.fov || o.fov, w = 2 * Math.atan(Math.tan(b * Math.PI / 360 / 2) * o.aspect) / Math.PI * 360, C = p.y / (2 * Math.atan(Math.PI * b / 360)), k = p.x / (2 * Math.atan(Math.PI * w / 360)), O = d * Math.max(C, k) + p.z / 2;
16779
16779
  kl && console.log("Fit camera to objects", { fitHeightDistance: C, fitWidthDistance: k, distance: O, verticalFov: b, horizontalFov: w }), this.maxZoom = O * 10, this.minZoom = O * 0.01;
16780
- const R = 0.05, E = m.clone();
16781
- if (E.y -= p.y * R, this.setLookTargetPosition(E, l), this.setFieldOfView(i.fov, l), h == null || h == "auto") {
16780
+ const R = 0.05, A = m.clone();
16781
+ if (A.y -= p.y * R, this.setLookTargetPosition(A, l), this.setFieldOfView(i.fov, l), h == null || h == "auto") {
16782
16782
  const j = S.findObjectOfType(Ns), H = j ? j.radius : 0, J = Math.max(_.x, _.y, _.z, H);
16783
16783
  o.near = O / 100, o.far = J + O * 10, j && (this.maxZoom = Math.max(Math.min(this.maxZoom, H * 0.5), O));
16784
16784
  }
16785
16785
  const F = a.getDistance();
16786
16786
  F < this.minZoom && (this.minZoom = F * 0.9), F > this.maxZoom && (this.maxZoom = F * 1.1), o.updateMatrixWorld(), o.updateProjectionMatrix();
16787
- const A = ie(o), z = m.clone();
16788
- z.sub(A), c === "y" && (z.y = 0), z.normalize(), z.multiplyScalar(O), c === "y" && (z.y += -R * 4 * O);
16787
+ const E = ie(o), z = m.clone();
16788
+ z.sub(E), c === "y" && (z.y = 0), z.normalize(), z.multiplyScalar(O), c === "y" && (z.y += -R * 4 * O);
16789
16789
  let U = m.clone().sub(z);
16790
16790
  o.parent && (U = o.parent.worldToLocal(U)), this.setCameraTargetPosition(U, l), (kl || i.debug) && (V.DrawWireBox3(g, 16777011, 10), V.DrawWireBox3(y, 65280, 10), !this._haveAttachedKeyboardEvents && kl && (this._haveAttachedKeyboardEvents = !0, document.body.addEventListener("keydown", (j) => {
16791
16791
  if (j.code === "KeyF") {
@@ -18527,7 +18527,7 @@ var bR = Object.defineProperty, vR = Object.getOwnPropertyDescriptor, wR = (s, t
18527
18527
  const aa = x("debugxrflags"), Nv = x("disablexrflags");
18528
18528
  Nv && console.warn("XRFlags are disabled");
18529
18529
  var xs = /* @__PURE__ */ ((s) => (s[s.Never = 0] = "Never", s[s.Browser = 1] = "Browser", s[s.AR = 2] = "AR", s[s.VR = 4] = "VR", s[s.FirstPerson = 8] = "FirstPerson", s[s.ThirdPerson = 16] = "ThirdPerson", s[s.All = 4294967295] = "All", s))(xs || {});
18530
- const Ey = class {
18530
+ const Ay = class {
18531
18531
  constructor() {
18532
18532
  r(this, "Mask", 17);
18533
18533
  }
@@ -18553,8 +18553,8 @@ const Ey = class {
18553
18553
  this.Mask = 0, Yi.Apply();
18554
18554
  }
18555
18555
  };
18556
- let ei = Ey;
18557
- r(ei, "Global", new Ey());
18556
+ let ei = Ay;
18557
+ r(ei, "Global", new Ay());
18558
18558
  var Wl;
18559
18559
  const cs = (Wl = class extends L {
18560
18560
  constructor() {
@@ -18820,12 +18820,12 @@ const RR = x("gizmos"), kR = x("debugboxhelper"), pn = class extends L {
18820
18820
  };
18821
18821
  let wi = pn;
18822
18822
  r(wi, "testBox", new Oi()), r(wi, "_position", new v()), r(wi, "_size", new v(0.01, 0.01, 0.01)), r(wi, "_emptyObjectSize", new v(0.01, 0.01, 0.01));
18823
- var TR = Object.defineProperty, AR = Object.getOwnPropertyDescriptor, fi = (s, t, e, i) => {
18824
- for (var n = i > 1 ? void 0 : i ? AR(t, e) : t, o = s.length - 1, a; o >= 0; o--)
18823
+ var TR = Object.defineProperty, ER = Object.getOwnPropertyDescriptor, fi = (s, t, e, i) => {
18824
+ for (var n = i > 1 ? void 0 : i ? ER(t, e) : t, o = s.length - 1, a; o >= 0; o--)
18825
18825
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
18826
18826
  return i && n && TR(t, e, n), n;
18827
18827
  };
18828
- class Ei extends L {
18828
+ class Ai extends L {
18829
18829
  constructor() {
18830
18830
  super(...arguments);
18831
18831
  r(this, "attachedRigidbody", null);
@@ -18885,20 +18885,20 @@ class Ei extends L {
18885
18885
  }
18886
18886
  fi([
18887
18887
  f(_e)
18888
- ], Ei.prototype, "attachedRigidbody", 2);
18888
+ ], Ai.prototype, "attachedRigidbody", 2);
18889
18889
  fi([
18890
18890
  f()
18891
- ], Ei.prototype, "isTrigger", 2);
18891
+ ], Ai.prototype, "isTrigger", 2);
18892
18892
  fi([
18893
18893
  f()
18894
- ], Ei.prototype, "sharedMaterial", 2);
18894
+ ], Ai.prototype, "sharedMaterial", 2);
18895
18895
  fi([
18896
18896
  f()
18897
- ], Ei.prototype, "membership", 2);
18897
+ ], Ai.prototype, "membership", 2);
18898
18898
  fi([
18899
18899
  f()
18900
- ], Ei.prototype, "filter", 2);
18901
- class sh extends Ei {
18900
+ ], Ai.prototype, "filter", 2);
18901
+ class sh extends Ai {
18902
18902
  constructor() {
18903
18903
  super(...arguments);
18904
18904
  r(this, "radius", 0.5);
@@ -18931,7 +18931,7 @@ fi([
18931
18931
  fi([
18932
18932
  f(v)
18933
18933
  ], sh.prototype, "center", 2);
18934
- const Vv = class extends Ei {
18934
+ const Vv = class extends Ai {
18935
18935
  constructor() {
18936
18936
  super(...arguments);
18937
18937
  r(this, "size", new v(1, 1, 1));
@@ -18989,7 +18989,7 @@ fi([
18989
18989
  fi([
18990
18990
  f(v)
18991
18991
  ], oh.prototype, "center", 2);
18992
- class Dr extends Ei {
18992
+ class Dr extends Ai {
18993
18993
  constructor() {
18994
18994
  super(...arguments);
18995
18995
  r(this, "sharedMesh");
@@ -19038,7 +19038,7 @@ fi([
19038
19038
  fi([
19039
19039
  f()
19040
19040
  ], Dr.prototype, "convex", 2);
19041
- class Mo extends Ei {
19041
+ class Mo extends Ai {
19042
19042
  constructor() {
19043
19043
  super(...arguments);
19044
19044
  r(this, "center", new v(0, 0, 0));
@@ -19062,10 +19062,10 @@ fi([
19062
19062
  fi([
19063
19063
  f()
19064
19064
  ], Mo.prototype, "height", 2);
19065
- var ER = Object.defineProperty, IR = Object.getOwnPropertyDescriptor, $s = (s, t, e, i) => {
19065
+ var AR = Object.defineProperty, IR = Object.getOwnPropertyDescriptor, $s = (s, t, e, i) => {
19066
19066
  for (var n = i > 1 ? void 0 : i ? IR(t, e) : t, o = s.length - 1, a; o >= 0; o--)
19067
19067
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
19068
- return i && n && ER(t, e, n), n;
19068
+ return i && n && AR(t, e, n), n;
19069
19069
  };
19070
19070
  const lb = x("debugcharactercontroller");
19071
19071
  class Ja extends L {
@@ -20004,16 +20004,16 @@ class np {
20004
20004
  const C = w[0];
20005
20005
  if (this._draggedOverObject === C.object ? this._draggedOverObjectDuration += this.context.time.deltaTime : (this._draggedOverObject = C.object, this._draggedOverObjectDuration = 0), C.face) {
20006
20006
  this._hasLastSurfaceHitPoint = !0, this._lastSurfaceHitPoint.copy(C.point);
20007
- const k = 0.15, O = this._draggedOverObjectDuration >= k, R = 1e-3, E = this._totalMovement.length() >= R, F = G(C.normal || C.face.normal).applyQuaternion(C.object.worldQuaternion);
20008
- if ((O || E) && (this._draggedOverObjectLastSetUp !== this._draggedOverObject || this._draggedOverObjectLastNormal.dot(F) < 0.999999 || this.context.time.frame % 60 === 0)) {
20007
+ const k = 0.15, O = this._draggedOverObjectDuration >= k, R = 1e-3, A = this._totalMovement.length() >= R, F = G(C.normal || C.face.normal).applyQuaternion(C.object.worldQuaternion);
20008
+ if ((O || A) && (this._draggedOverObjectLastSetUp !== this._draggedOverObject || this._draggedOverObjectLastNormal.dot(F) < 0.999999 || this.context.time.frame % 60 === 0)) {
20009
20009
  this._draggedOverObjectLastSetUp = this._draggedOverObject, this._draggedOverObjectLastNormal.copy(C.face.normal);
20010
- const A = G(), z = G();
20011
- this._bounds.getCenter(A), this._bounds.getSize(z), A.sub(z.multiplyScalar(0.5).multiply(F)), this._hitPointInLocalSpace.copy(A), this._hitNormalInLocalSpace.copy(C.face.normal), this._bounds.getCenter(A), this._bounds.getSize(z), A.add(z.multiplyScalar(0.5).multiply(C.face.normal));
20012
- const U = G(this._hitPointInLocalSpace).add(A);
20010
+ const E = G(), z = G();
20011
+ this._bounds.getCenter(E), this._bounds.getSize(z), E.sub(z.multiplyScalar(0.5).multiply(F)), this._hitPointInLocalSpace.copy(E), this._hitNormalInLocalSpace.copy(C.face.normal), this._bounds.getCenter(E), this._bounds.getSize(z), E.add(z.multiplyScalar(0.5).multiply(C.face.normal));
20012
+ const U = G(this._hitPointInLocalSpace).add(E);
20013
20013
  this._followObject.localToWorld(U);
20014
20014
  const K = C.point;
20015
20015
  this._dragPlane.setFromNormalAndCoplanarPoint(F, K);
20016
- } else if (!(O || E))
20016
+ } else if (!(O || A))
20017
20017
  return;
20018
20018
  }
20019
20019
  } else
@@ -20246,7 +20246,7 @@ class GR extends CustomEvent {
20246
20246
  }
20247
20247
  }
20248
20248
  const qR = "blob";
20249
- class Ao extends L {
20249
+ class Eo extends L {
20250
20250
  constructor() {
20251
20251
  super(...arguments);
20252
20252
  r(this, "useNetworking", !0);
@@ -20523,22 +20523,22 @@ class Ao extends L {
20523
20523
  }
20524
20524
  tl([
20525
20525
  f()
20526
- ], Ao.prototype, "useNetworking", 2);
20526
+ ], Eo.prototype, "useNetworking", 2);
20527
20527
  tl([
20528
20528
  f(I)
20529
- ], Ao.prototype, "dropArea", 2);
20529
+ ], Eo.prototype, "dropArea", 2);
20530
20530
  tl([
20531
20531
  f()
20532
- ], Ao.prototype, "fitIntoVolume", 2);
20532
+ ], Eo.prototype, "fitIntoVolume", 2);
20533
20533
  tl([
20534
20534
  f(v)
20535
- ], Ao.prototype, "fitVolumeSize", 2);
20535
+ ], Eo.prototype, "fitVolumeSize", 2);
20536
20536
  tl([
20537
20537
  f()
20538
- ], Ao.prototype, "placeAtHitPosition", 2);
20538
+ ], Eo.prototype, "placeAtHitPosition", 2);
20539
20539
  tl([
20540
20540
  f(xe)
20541
- ], Ao.prototype, "onDropped", 2);
20541
+ ], Eo.prototype, "onDropped", 2);
20542
20542
  function XR(s) {
20543
20543
  if (!s.startsWith("https://polyhaven.com/"))
20544
20544
  return s;
@@ -20751,7 +20751,7 @@ class Kv extends Yv {
20751
20751
  t.isRenderTargetTexture && (e.newTexture = Lg(new ce(1, 1, 1, 0)));
20752
20752
  }
20753
20753
  }
20754
- function Em(s) {
20754
+ function Am(s) {
20755
20755
  const t = Wg.DontExport;
20756
20756
  return !(s.hideFlags & t);
20757
20757
  }
@@ -20895,7 +20895,7 @@ class Zv {
20895
20895
  console.error("Could not find object for node index: " + h, c, e);
20896
20896
  continue;
20897
20897
  }
20898
- Ag(p), o.push(this.createComponents(p, u));
20898
+ Eg(p), o.push(this.createComponents(p, u));
20899
20899
  }
20900
20900
  }
20901
20901
  }
@@ -21107,7 +21107,7 @@ const ak = Symbol("stencils"), nr = class {
21107
21107
  const o = i[n];
21108
21108
  if (rk(o.layer, t)) {
21109
21109
  rp && console.log(o), setTimeout(() => {
21110
- ui() && Eg(t.gameObject) && (ve("Stencil not supported on instanced objects"), console.warn("Stencil not supported on instanced objects", t));
21110
+ ui() && Ag(t.gameObject) && (ve("Stencil not supported on instanced objects"), console.warn("Stencil not supported on instanced objects", t));
21111
21111
  }, 500);
21112
21112
  for (let a = 0; a < t.sharedMaterials.length; a++) {
21113
21113
  let l = t.sharedMaterials[a];
@@ -21181,7 +21181,7 @@ function lk(s) {
21181
21181
  }
21182
21182
  const ck = "NEEDLE_render_objects";
21183
21183
  var Jv = /* @__PURE__ */ ((s) => (s[s.INT = 5124] = "INT", s[s.FLOAT = 5126] = "FLOAT", s[s.FLOAT_VEC2 = 35664] = "FLOAT_VEC2", s[s.FLOAT_VEC3 = 35665] = "FLOAT_VEC3", s[s.FLOAT_VEC4 = 35666] = "FLOAT_VEC4", s[s.INT_VEC2 = 35667] = "INT_VEC2", s[s.INT_VEC3 = 35668] = "INT_VEC3", s[s.INT_VEC4 = 35669] = "INT_VEC4", s[s.BOOL = 35670] = "BOOL", s[s.BOOL_VEC2 = 35671] = "BOOL_VEC2", s[s.BOOL_VEC3 = 35672] = "BOOL_VEC3", s[s.BOOL_VEC4 = 35673] = "BOOL_VEC4", s[s.FLOAT_MAT2 = 35674] = "FLOAT_MAT2", s[s.FLOAT_MAT3 = 35675] = "FLOAT_MAT3", s[s.FLOAT_MAT4 = 35676] = "FLOAT_MAT4", s[s.SAMPLER_2D = 35678] = "SAMPLER_2D", s[s.SAMPLER_3D = 35680] = "SAMPLER_3D", s[s.SAMPLER_CUBE = 35681] = "SAMPLER_CUBE", s[s.UNKNOWN = 0] = "UNKNOWN", s))(Jv || {});
21184
- const En = x("debugcustomshader"), Gr = "NEEDLE_techniques_webgl";
21184
+ const An = x("debugcustomshader"), Gr = "NEEDLE_techniques_webgl";
21185
21185
  class hk {
21186
21186
  constructor() {
21187
21187
  r(this, "objectToWorldMatrix", new se());
@@ -21230,7 +21230,7 @@ const Be = class extends a0 {
21230
21230
  r(this, "_viewProjectionName", "hlslcc_mtx4x4unity_MatrixVP");
21231
21231
  r(this, "_viewMatrixName", "hlslcc_mtx4x4unity_MatrixV");
21232
21232
  r(this, "_rendererData", new hk());
21233
- this.identifier = e, En && console.log(this), this.type = "NEEDLE_CUSTOM_SHADER", this.uniforms[this._objToWorldName] || (this.uniforms[this._objToWorldName] = { value: [] }), this.uniforms[this._worldToObjectName] || (this.uniforms[this._worldToObjectName] = { value: [] }), this.uniforms[this._viewProjectionName] || (this.uniforms[this._viewProjectionName] = { value: [] }), this.uniforms[this._sphericalHarmonicsName], (this.depthTextureUniform || this.opaqueTextureUniform) && ee.Current.pre_render_callbacks.push(this.onBeforeRenderSceneCallback);
21233
+ this.identifier = e, An && console.log(this), this.type = "NEEDLE_CUSTOM_SHADER", this.uniforms[this._objToWorldName] || (this.uniforms[this._objToWorldName] = { value: [] }), this.uniforms[this._worldToObjectName] || (this.uniforms[this._worldToObjectName] = { value: [] }), this.uniforms[this._viewProjectionName] || (this.uniforms[this._viewProjectionName] = { value: [] }), this.uniforms[this._sphericalHarmonicsName], (this.depthTextureUniform || this.opaqueTextureUniform) && ee.Current.pre_render_callbacks.push(this.onBeforeRenderSceneCallback);
21234
21234
  }
21235
21235
  clone() {
21236
21236
  const e = super.clone();
@@ -21322,24 +21322,24 @@ class dk {
21322
21322
  loadMaterial(t) {
21323
21323
  const e = this.parser.json.materials[t];
21324
21324
  if (!e)
21325
- return En && console.log(t, this.parser.json.materials), null;
21325
+ return An && console.log(t, this.parser.json.materials), null;
21326
21326
  if (!e.extensions || !e.extensions[Gr])
21327
- return En && console.log(`Material ${t} does not use NEEDLE_techniques_webgl`), null;
21328
- En && console.log(`Material ${t} uses NEEDLE_techniques_webgl`, e);
21327
+ return An && console.log(`Material ${t} does not use NEEDLE_techniques_webgl`), null;
21328
+ An && console.log(`Material ${t} uses NEEDLE_techniques_webgl`, e);
21329
21329
  const i = e.extensions[Gr].technique;
21330
21330
  if (i < 0)
21331
21331
  return console.debug(`Material ${t} does not have a valid technique index`), null;
21332
21332
  const n = this.parser.json.extensions[Gr];
21333
21333
  if (!n)
21334
- return En ? console.error("Missing shader data", this.parser.json.extensions) : console.debug("Missing custom shader data in parser.json.extensions"), null;
21335
- En && console.log(n);
21334
+ return An ? console.error("Missing shader data", this.parser.json.extensions) : console.debug("Missing custom shader data in parser.json.extensions"), null;
21335
+ An && console.log(n);
21336
21336
  const o = n.techniques[i];
21337
21337
  return o ? new Promise(async (a, l) => {
21338
21338
  var b, w, C;
21339
21339
  const c = await MO(n, o.program), h = c == null ? void 0 : c.fragmentShader, d = c == null ? void 0 : c.vertexShader;
21340
21340
  if (!h || !d)
21341
21341
  return l();
21342
- En && console.log("loadMaterial", e, c);
21342
+ An && console.log("loadMaterial", e, c);
21343
21343
  const u = {}, p = o.uniforms;
21344
21344
  (d.includes("_Time") || h.includes("_Time")) && (u._Time = { value: new ge(0, 0, 0, 0) }), (d.includes("_SinTime") || h.includes("_SinTime")) && (u._SinTime = { value: new ge(0, 0, 0, 0) }), (d.includes("_CosTime") || h.includes("_CosTime")) && (u._CosTime = { value: new ge(0, 0, 0, 0) }), (d.includes("unity_DeltaTime") || h.includes("unity_DeltaTime")) && (u.unity_DeltaTime = { value: new ge(0, 0, 0, 0) });
21345
21345
  for (const k in p) {
@@ -21379,15 +21379,15 @@ class dk {
21379
21379
  if (e.extensions && e.extensions[Gr]) {
21380
21380
  const k = e.extensions[Gr];
21381
21381
  if (k.technique === i) {
21382
- En && console.log(e.name, "Material Properties", k);
21382
+ An && console.log(e.name, "Material Properties", k);
21383
21383
  for (const O in k.values) {
21384
21384
  const R = k.values[O];
21385
21385
  if (typeof R == "string") {
21386
21386
  if (R.startsWith("/textures/")) {
21387
- const E = R.substring(10), F = Number.parseInt(E);
21387
+ const A = R.substring(10), F = Number.parseInt(A);
21388
21388
  if (F >= 0) {
21389
- const A = await this.parser.getDependency("texture", F);
21390
- A instanceof Fe && (A.colorSpace = Es, A.needsUpdate = !0), u[O] = { value: A };
21389
+ const E = await this.parser.getDependency("texture", F);
21390
+ E instanceof Fe && (E.colorSpace = As, E.needsUpdate = !0), u[O] = { value: E };
21391
21391
  continue;
21392
21392
  }
21393
21393
  }
@@ -21468,13 +21468,13 @@ class dk {
21468
21468
  break;
21469
21469
  }
21470
21470
  }
21471
- En && console.log(g.uuid, u), ew(g), a(g);
21471
+ An && console.log(g.uuid, u), ew(g), a(g);
21472
21472
  }) : null;
21473
21473
  }
21474
21474
  }
21475
21475
  function ew(s) {
21476
21476
  if (s.uniforms) {
21477
- En && console.log("Uniforms:", s.uniforms);
21477
+ An && console.log("Uniforms:", s.uniforms);
21478
21478
  for (const e in s.uniforms)
21479
21479
  switch (t(e, e), e) {
21480
21480
  case "_Color":
@@ -21567,7 +21567,7 @@ var gk = Object.defineProperty, yk = Object.getOwnPropertyDescriptor, sw = (s, t
21567
21567
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
21568
21568
  return i && n && gk(t, e, n), n;
21569
21569
  };
21570
- const Al = x("debugreflectionprobe"), fb = x("noreflectionprobe"), _k = Symbol("reflectionProbeKey"), bk = Symbol("original material");
21570
+ const El = x("debugreflectionprobe"), fb = x("noreflectionprobe"), _k = Symbol("reflectionProbeKey"), bk = Symbol("original material");
21571
21571
  var cd;
21572
21572
  const ds = (cd = class extends L {
21573
21573
  constructor() {
@@ -21590,10 +21590,10 @@ const ds = (cd = class extends L {
21590
21590
  if (a.gameObject === n)
21591
21591
  return a;
21592
21592
  } else if (a.isInBox(t))
21593
- return Al && console.log("Found reflection probe", t.name, a.name), a;
21593
+ return El && console.log("Found reflection probe", t.name, a.name), a;
21594
21594
  }
21595
21595
  }
21596
- return Al && console.debug("Did not find reflection probe", t.name, i, t), null;
21596
+ return El && console.debug("Did not find reflection probe", t.name, i, t), null;
21597
21597
  }
21598
21598
  // @serializable(Texture)
21599
21599
  set texture(t) {
@@ -21601,7 +21601,7 @@ const ds = (cd = class extends L {
21601
21601
  console.error("ReflectionProbe.texture must be a Texture", t);
21602
21602
  return;
21603
21603
  }
21604
- this._texture = t, t && (t.mapping = Ms, t.colorSpace = Es, t.needsUpdate = !0);
21604
+ this._texture = t, t && (t.mapping = Ms, t.colorSpace = As, t.needsUpdate = !0);
21605
21605
  }
21606
21606
  get texture() {
21607
21607
  return this._texture;
@@ -21611,7 +21611,7 @@ const ds = (cd = class extends L {
21611
21611
  return (e = this._boxHelper) == null ? void 0 : e.isInBox(t);
21612
21612
  }
21613
21613
  awake() {
21614
- this._boxHelper = this.gameObject.addComponent(wi), this._boxHelper.updateBox(!0), Al && this._boxHelper.showHelper(5592320, !0), this._texture && (this._texture.mapping = Ms, this._texture.colorSpace = Es, this._texture.needsUpdate = !0);
21614
+ this._boxHelper = this.gameObject.addComponent(wi), this._boxHelper.updateBox(!0), El && this._boxHelper.showHelper(5592320, !0), this._texture && (this._texture.mapping = Ms, this._texture.colorSpace = As, this._texture.needsUpdate = !0);
21615
21615
  }
21616
21616
  start() {
21617
21617
  !this._texture && B() && (console.warn(`[ReflectionProbe] Missing texture. Please assign a custom cubemap texture. To use reflection probes assign them to your renderer's "anchor" property.`), ve("ReflectionProbe configuration hint: See browser console for details"));
@@ -21636,7 +21636,7 @@ const ds = (cd = class extends L {
21636
21636
  let a = e[n];
21637
21637
  const l = o === (a == null ? void 0 : a.copy), c = !a || a.material.uuid !== o.uuid || a.copy.version !== o.version;
21638
21638
  if (!l && c) {
21639
- if (Al) {
21639
+ if (El) {
21640
21640
  let u = "";
21641
21641
  a ? a.material !== o ? u = "reference changed; cached instance?: " + l : a.copy.version !== o.version && (u = "version changed") : u = "not cached", console.warn("Cloning material", o.name, o.version, "Reason:", u, `
21642
21642
  `, o.uuid, `
@@ -21647,7 +21647,7 @@ const ds = (cd = class extends L {
21647
21647
  d.version = o.version, a ? (a.copy = d, a.material = o) : (a = {
21648
21648
  material: o,
21649
21649
  copy: d
21650
- }, e.push(a)), d[_k] = this, d[bk] = o, Al && console.log("Set reflection", t.name, t.guid);
21650
+ }, e.push(a)), d[_k] = this, d[bk] = o, El && console.log("Set reflection", t.name, t.guid);
21651
21651
  }
21652
21652
  a && a.copy && (a.copy.onBeforeCompile = o.onBeforeCompile);
21653
21653
  const h = a == null ? void 0 : a.copy;
@@ -21715,7 +21715,7 @@ const ci = x("debuginstancing"), pu = class {
21715
21715
  let l = pu.getStartInstanceCount(t);
21716
21716
  (!l || l < 0) && (l = 4);
21717
21717
  let c = t.name;
21718
- c != null && c.length || (c = ES());
21718
+ c != null && c.length || (c = AS());
21719
21719
  const h = new ow(c, o.geometry, a, l, e);
21720
21720
  return this.objs.push(h), h.addInstance(o);
21721
21721
  }
@@ -21738,7 +21738,7 @@ r(or, "instance", new pu()), /** This is the initial instance count when creatin
21738
21738
  * @returns The initial instance count
21739
21739
  * */
21740
21740
  r(or, "getStartInstanceCount", (t) => 4);
21741
- const Ac = class {
21741
+ const Ec = class {
21742
21742
  constructor(t, e) {
21743
21743
  /** The object that is being instanced */
21744
21744
  r(this, "object");
@@ -21753,7 +21753,7 @@ const Ac = class {
21753
21753
  r(this, "__geometryIndex", -1);
21754
21754
  /** The mesh information of the object - this tries to also calculate the LOD info */
21755
21755
  r(this, "meshInformation");
21756
- this.__instanceIndex = -1, this.object = t, this.renderer = e, t[ov] = e, this.meshInformation = er(t.geometry), Ac.all.push(this);
21756
+ this.__instanceIndex = -1, this.object = t, this.renderer = e, t[ov] = e, this.meshInformation = er(t.geometry), Ec.all.push(this);
21757
21757
  }
21758
21758
  /** The name of the object */
21759
21759
  get name() {
@@ -21818,12 +21818,12 @@ const Ac = class {
21818
21818
  */
21819
21819
  remove(t) {
21820
21820
  if (!(this.__instanceIndex < 0) && (this.renderer.remove(this, t), S.markAsInstancedRendered(this.object, !1), t)) {
21821
- const e = Ac.all.indexOf(this);
21822
- e >= 0 && Ac.all.splice(e, 1);
21821
+ const e = Ec.all.indexOf(this);
21822
+ e >= 0 && Ec.all.splice(e, 1);
21823
21823
  }
21824
21824
  }
21825
21825
  };
21826
- let vc = Ac;
21826
+ let vc = Ec;
21827
21827
  r(vc, "all", []);
21828
21828
  class ow {
21829
21829
  constructor(t, e, i, n, o) {
@@ -22706,10 +22706,10 @@ const ca = class extends L {
22706
22706
  ...e
22707
22707
  }, o = new Array(), a = new I();
22708
22708
  e != null && e.pivot && a.position.sub(e.pivot), Xh && console.log("EXPORT", t), t.forEach((h) => {
22709
- h && Em(h) && (a.children.push(h), h.matrixAutoUpdate = !1, h.matrix.copy(h.matrixWorld), S.getComponentsInChildren(h, Ze).forEach((d) => {
22709
+ h && Am(h) && (a.children.push(h), h.matrixAutoUpdate = !1, h.matrix.copy(h.matrixWorld), S.getComponentsInChildren(h, Ze).forEach((d) => {
22710
22710
  S.isActiveInHierarchy(d.gameObject) && d.setInstancingEnabled(!1);
22711
22711
  }), h.traverse((d) => {
22712
- if (!Em(d)) {
22712
+ if (!Am(d)) {
22713
22713
  const u = d.parent;
22714
22714
  d.removeFromParent(), o.push(() => {
22715
22715
  u && u.add(d);
@@ -22971,7 +22971,7 @@ function dw(s) {
22971
22971
  }
22972
22972
  return e;
22973
22973
  }
22974
- const Tk = new v(), Ak = new W(), Ek = new v(1, 1, 1), sr = class {
22974
+ const Tk = new v(), Ek = new W(), Ak = new v(1, 1, 1), sr = class {
22975
22975
  constructor(t, e, i = null, n = null, o = null, a = null, l = null, c = null) {
22976
22976
  r(this, "uuid");
22977
22977
  r(this, "name");
@@ -23007,7 +23007,7 @@ const Tk = new v(), Ak = new W(), Ek = new v(1, 1, 1), sr = class {
23007
23007
  if (!this.transform)
23008
23008
  return new se();
23009
23009
  const { position: t, quaternion: e, scale: i } = this.transform, n = new se();
23010
- return n.compose(t || Tk, e || Ak, i || Ek), n;
23010
+ return n.compose(t || Tk, e || Ek, i || Ak), n;
23011
23011
  }
23012
23012
  setMatrix(t) {
23013
23013
  if (!t || !(t instanceof se)) {
@@ -23248,14 +23248,14 @@ let Dk = class {
23248
23248
  if (!(!e.exportInvisible && !k.visible) && k instanceof Os) {
23249
23249
  const O = k.skeleton.bones, R = hw(O);
23250
23250
  if (R) {
23251
- const E = { object: k, originalParent: k.parent, newParent: R };
23252
- c.push(E), h.add(E.object.uuid), E.newParent && h.add(E.newParent.uuid), E.originalParent && h.add(E.originalParent.uuid);
23251
+ const A = { object: k, originalParent: k.parent, newParent: R };
23252
+ c.push(A), h.add(A.object.uuid), A.newParent && h.add(A.newParent.uuid), A.originalParent && h.add(A.originalParent.uuid);
23253
23253
  }
23254
23254
  }
23255
23255
  });
23256
23256
  for (const k of c) {
23257
- const { object: O, originalParent: R, newParent: E } = k;
23258
- E.add(O);
23257
+ const { object: O, originalParent: R, newParent: A } = k;
23258
+ A.add(O);
23259
23259
  }
23260
23260
  de.report("export-usdz", "Traversing hierarchy"), t && fw(t, i.document, i, this.keepObject), de.report("export-usdz", "Invoking onAfterBuildDocument"), await Rd(i, "onAfterBuildDocument");
23261
23261
  const d = i.extensions.find((k) => k.extensionName === "Behaviour"), u = (d == null ? void 0 : d.getAllTargetUuids()) ?? /* @__PURE__ */ new Set();
@@ -23271,7 +23271,7 @@ let Dk = class {
23271
23271
  this.debug && console.log("Pruning of empty nodes is disabled. This may result in a larger USDZ file.");
23272
23272
  de.report("export-usdz", { message: "Parsing document", autoStep: 10 }), await jk(i, () => (de.report("export-usdz", "Building materials"), Gk(a, l, e.quickLookCompatible))), de.report("export-usdz", "Invoking onAfterSerialize"), await Rd(i, "onAfterSerialize");
23273
23273
  for (const k of c) {
23274
- const { object: O, originalParent: R, newParent: E } = k;
23274
+ const { object: O, originalParent: R, newParent: A } = k;
23275
23275
  R && R.add(O);
23276
23276
  }
23277
23277
  (C = (w = i.exporter) == null ? void 0 : w.beforeWritingDocument) == null || C.call(w);
@@ -23286,20 +23286,20 @@ let Dk = class {
23286
23286
  }), y = Object.keys(l).length;
23287
23287
  de.report("export-usdz-textures", { totalSteps: y * 3, currentStep: 0 });
23288
23288
  const _ = async (k) => {
23289
- const O = l[k], R = O.texture, E = _w.includes(R.format);
23289
+ const O = l[k], R = O.texture, A = _w.includes(R.format);
23290
23290
  let F = {
23291
23291
  imageData: R.image
23292
23292
  };
23293
23293
  de.report("export-usdz-textures", { message: "read back texture", autoStep: !0 });
23294
- const A = O.scale !== void 0 && O.scale.x !== 1 && O.scale.y !== 1 && O.scale.z !== 1 && O.scale.w !== 1;
23295
- (R.isCompressedTexture || R.isRenderTargetTexture || A) && (F = await Bk(R, e.maxTextureSize, g, O.scale)), de.report("export-usdz-textures", { message: "convert texture to canvas", autoStep: !0 });
23294
+ const E = O.scale !== void 0 && O.scale.x !== 1 && O.scale.y !== 1 && O.scale.z !== 1 && O.scale.w !== 1;
23295
+ (R.isCompressedTexture || R.isRenderTargetTexture || E) && (F = await Bk(R, e.maxTextureSize, g, O.scale)), de.report("export-usdz-textures", { message: "convert texture to canvas", autoStep: !0 });
23296
23296
  const z = await zk(F.imageBitmap || F.imageData, e.maxTextureSize).catch((U) => {
23297
23297
  console.error("Error converting texture to canvas", R, U);
23298
23298
  });
23299
23299
  if (z) {
23300
23300
  de.report("export-usdz-textures", { message: "convert canvas to blob", autoStep: !0 });
23301
- const U = await z.convertToBlob({ type: E ? "image/png" : "image/jpeg", quality: 0.95 });
23302
- n[`textures/${k}.${E ? "png" : "jpg"}`] = new Uint8Array(await U.arrayBuffer());
23301
+ const U = await z.convertToBlob({ type: A ? "image/png" : "image/jpeg", quality: 0.95 });
23302
+ n[`textures/${k}.${A ? "png" : "jpg"}`] = new Uint8Array(await U.arrayBuffer());
23303
23303
  } else
23304
23304
  console.warn("Can`t export texture: ", R);
23305
23305
  };
@@ -23310,10 +23310,10 @@ let Dk = class {
23310
23310
  for (const k in n) {
23311
23311
  const O = n[k], R = 34 + k.length;
23312
23312
  b += R;
23313
- const E = b & 63;
23314
- if (E !== 4) {
23315
- const F = 64 - E, A = new Uint8Array(F);
23316
- n[k] = [O, { extra: { 12345: A } }];
23313
+ const A = b & 63;
23314
+ if (A !== 4) {
23315
+ const F = 64 - A, E = new Uint8Array(F);
23316
+ n[k] = [O, { extra: { 12345: E } }];
23317
23317
  }
23318
23318
  b = O.length;
23319
23319
  }
@@ -23804,9 +23804,9 @@ function qk(s, t, e = !1) {
23804
23804
  return qn(b.name) + "_" + (((w = b.source) == null ? void 0 : w.id) ?? b.id);
23805
23805
  }
23806
23806
  function d(b, w, C = void 0, k = void 0) {
23807
- const O = h(b), R = O + (k !== void 0 && k !== 1 ? "_" + k : ""), E = e && k !== void 0 && k !== 1, F = E ? new ge(1, 1, 1, k) : void 0;
23808
- k === void 0 && (k = 1), E && (k = 1), F && F.w <= 0.05 && (F.w = 0.05), t[R] = { texture: b, scale: F };
23809
- const A = b.channel > 0 ? "st" + b.channel : "st";
23807
+ const O = h(b), R = O + (k !== void 0 && k !== 1 ? "_" + k : ""), A = e && k !== void 0 && k !== 1, F = A ? new ge(1, 1, 1, k) : void 0;
23808
+ k === void 0 && (k = 1), A && (k = 1), F && F.w <= 0.05 && (F.w = 0.05), t[R] = { texture: b, scale: F };
23809
+ const E = b.channel > 0 ? "st" + b.channel : "st";
23810
23810
  c.add(b.channel);
23811
23811
  const z = _w.includes(b.format), U = {
23812
23812
  1e3: "repeat",
@@ -23817,7 +23817,7 @@ function qk(s, t, e = !1) {
23817
23817
  // MirroredRepeatWrapping
23818
23818
  }, K = b.repeat.clone(), T = b.offset.clone(), j = b.rotation, H = Math.sin(j), J = Math.cos(j);
23819
23819
  T.y = 1 - T.y - K.y, e ? (K.x === 0 && (K.x = 1e-4), K.y === 0 && (K.y = 1e-4), T.x = T.x / K.x, T.y = T.y / K.y, T.x += H / K.x, T.y += J - 1) : (T.x += H * K.x, T.y += (1 - J) * K.y);
23820
- const te = K.x != 1 || K.y != 1 || T.x != 0 || T.y != 0 || j != 0, ae = `${Ht}/${i}/${"uvReader_" + A}.outputs:result>`, ue = `${Ht}/${i}/Transform2d_${w}.outputs:result>`, De = w !== "normal" && C && (C.r !== 1 || C.g !== 1 || C.b !== 1 || k !== 1) || !1, St = w === "normal", ai = s instanceof Tt && s.normalScale ? s.normalScale.x * 2 : 2, Wt = ai.toFixed(Le), Wr = (-1 * (ai / 2)).toFixed(Le), qs = (1 - ai).toFixed(Le);
23820
+ const te = K.x != 1 || K.y != 1 || T.x != 0 || T.y != 0 || j != 0, ae = `${Ht}/${i}/${"uvReader_" + E}.outputs:result>`, ue = `${Ht}/${i}/Transform2d_${w}.outputs:result>`, De = w !== "normal" && C && (C.r !== 1 || C.g !== 1 || C.b !== 1 || k !== 1) || !1, St = w === "normal", ai = s instanceof Tt && s.normalScale ? s.normalScale.x * 2 : 2, Wt = ai.toFixed(Le), Wr = (-1 * (ai / 2)).toFixed(Le), qs = (1 - ai).toFixed(Le);
23821
23821
  return `
23822
23822
  ${te ? `def Shader "Transform2d_${w}" (
23823
23823
  sdrMetadata = {
@@ -23994,8 +23994,8 @@ const Ly = class {
23994
23994
  i.appendLine(), this.action.writeTo(e, i), i.closeBlock();
23995
23995
  }
23996
23996
  };
23997
- let At = Ly;
23998
- r(At, "global_id", 0);
23997
+ let Et = Ly;
23998
+ r(Et, "global_id", 0);
23999
23999
  const Yr = /* @__PURE__ */ new Set();
24000
24000
  function Bm(s, t) {
24001
24001
  var i, n;
@@ -24380,7 +24380,7 @@ class ar {
24380
24380
  return t;
24381
24381
  }
24382
24382
  }
24383
- const Ec = class {
24383
+ const Ac = class {
24384
24384
  constructor(t, e, i) {
24385
24385
  r(this, "clip");
24386
24386
  r(this, "pos");
@@ -24390,7 +24390,7 @@ const Ec = class {
24390
24390
  r(this, "target");
24391
24391
  r(this, "duration", 0);
24392
24392
  r(this, "useRootMotion", !1);
24393
- if (this.root = t, this.target = e, this.clip = i, i ? this.duration = i.duration : this.duration = Ec.restPoseClipDuration, i && i.tracks) {
24393
+ if (this.root = t, this.target = e, this.clip = i, i ? this.duration = i.duration : this.duration = Ac.restPoseClipDuration, i && i.tracks) {
24394
24394
  const o = Math.max(...i.tracks.map((a) => a.times[a.times.length - 1]));
24395
24395
  o !== this.duration && (console.warn("USDZExporter: Animation clip duration does not match the maximum time value in the tracks.", i, o, this.duration), this.duration = o);
24396
24396
  }
@@ -24444,7 +24444,7 @@ const Ec = class {
24444
24444
  const p = 0;
24445
24445
  for (let _ = 0 - p; _ < t.length + p; _++) {
24446
24446
  let b = 0, w = 0;
24447
- if (_ < 0 ? (b = t[0], w = b - Ec.animationDurationPadding / 2 + 1 / 60) : _ >= t.length ? (b = t[t.length - 1], w = b + Ec.animationDurationPadding / 2 - 1 / 60) : (b = t[_], w = b), h) {
24447
+ if (_ < 0 ? (b = t[0], w = b - Ac.animationDurationPadding / 2 + 1 / 60) : _ >= t.length ? (b = t[t.length - 1], w = b + Ac.animationDurationPadding / 2 - 1 / 60) : (b = t[_], w = b), h) {
24448
24448
  const C = h.evaluate(b);
24449
24449
  o.set(C[0], C[1], C[2]);
24450
24450
  }
@@ -24464,7 +24464,7 @@ const Ec = class {
24464
24464
  }
24465
24465
  }
24466
24466
  };
24467
- let $e = Ec;
24467
+ let $e = Ac;
24468
24468
  /** This value can theoretically be anything – a value of 1 is good to clearly see animation gaps.
24469
24469
  * For production, a value of 1/60 is enough, since the files can then still properly play back at 60fps.
24470
24470
  */
@@ -24816,14 +24816,14 @@ class Yk {
24816
24816
  _.push({ bone: T, inverse: T.matrixWorld.clone().invert() });
24817
24817
  const k = _[0].bone.parent;
24818
24818
  k || console.error("No bone parent found for skinned mesh during USDZ export", n.skinnedMesh), _.sort((T, j) => Ta(T.bone, k) > Ta(j.bone, k) ? 1 : -1);
24819
- const O = e.quickLookCompatible, R = [], E = [], F = [], A = [];
24819
+ const O = e.quickLookCompatible, R = [], A = [], F = [], E = [];
24820
24820
  for (const { bone: T } of _) {
24821
24821
  if (O) {
24822
24822
  const j = T.scale;
24823
24823
  j.x == 0 && (j.x = 1e-5), j.y == 0 && (j.y = 1e-5), j.z == 0 && (j.z = 1e-5), R.push(new se().compose(T.position, T.quaternion, T.scale));
24824
24824
  } else
24825
24825
  R.push(T.matrix.clone());
24826
- E.push(T.position), F.push(T.quaternion), A.push(T.scale);
24826
+ A.push(T.position), F.push(T.quaternion), E.push(T.scale);
24827
24827
  }
24828
24828
  const z = _.map((T) => '"' + Ta(T.bone, k) + '"').join(", "), U = _.map((T) => bb(T.inverse.clone().invert())).join(", ");
24829
24829
  t.beginBlock('def Skeleton "Rig"'), t.appendLine(`uniform matrix4d[] bindTransforms = [${U}]`), t.appendLine(`uniform token[] joints = [${z}]`), t.appendLine('uniform token purpose = "guide"'), t.appendLine(`uniform matrix4d[] restTransforms = [${R.map((T) => bb(T)).join(", ")}]`);
@@ -24841,14 +24841,14 @@ class Yk {
24841
24841
  t.appendLine(j);
24842
24842
  t.closeBlock();
24843
24843
  }
24844
- if (t.appendLine(`half3[] scales = [${u(A)}]`), K && K.scale) {
24844
+ if (t.appendLine(`half3[] scales = [${u(E)}]`), K && K.scale) {
24845
24845
  t.beginBlock("half3[] scales.timeSamples = {", "");
24846
24846
  const T = l(K.scale);
24847
24847
  for (const j of T)
24848
24848
  t.appendLine(j);
24849
24849
  t.closeBlock();
24850
24850
  }
24851
- if (t.appendLine(`float3[] translations = [${u(E)}]`), K && K.position) {
24851
+ if (t.appendLine(`float3[] translations = [${u(A)}]`), K && K.position) {
24852
24852
  t.beginBlock("float3[] translations.timeSamples = {", "");
24853
24853
  const T = l(K.position);
24854
24854
  for (const j of T)
@@ -24905,23 +24905,23 @@ class Yk {
24905
24905
  }
24906
24906
  const w = !y.clip, C = u === "position" && (y.pos || w), k = u === "rotation" && (y.rot || w), O = u === "scale" && (y.scale || w);
24907
24907
  if (C || k || O) {
24908
- const R = ((m = y.clip) == null ? void 0 : m.name) ?? "rest", E = y.getDuration();
24909
- jn && console.log("Write .timeSamples:", R, _, E, d), t.appendLine("# " + R + ": start=" + c.format(_ * $e.frameRate) + ", length=" + c.format(E * $e.frameRate) + ", frames=" + y.getFrames());
24908
+ const R = ((m = y.clip) == null ? void 0 : m.name) ?? "rest", A = y.getDuration();
24909
+ jn && console.log("Write .timeSamples:", R, _, A, d), t.appendLine("# " + R + ": start=" + c.format(_ * $e.frameRate) + ", length=" + c.format(A * $e.frameRate) + ", frames=" + y.getFrames());
24910
24910
  }
24911
24911
  if (C)
24912
- for (const { time: R, translation: E } of y.getValues(b, !0, !1, !1)) {
24913
- const A = `${c.format((_ + R) * $e.frameRate)}: (${he(E.x)}, ${he(E.y)}, ${he(E.z)}),`;
24914
- t.appendLine(A);
24912
+ for (const { time: R, translation: A } of y.getValues(b, !0, !1, !1)) {
24913
+ const E = `${c.format((_ + R) * $e.frameRate)}: (${he(A.x)}, ${he(A.y)}, ${he(A.z)}),`;
24914
+ t.appendLine(E);
24915
24915
  }
24916
24916
  if (k)
24917
- for (const { time: R, rotation: E } of y.getValues(b, !1, !0, !1)) {
24918
- const A = `${c.format((_ + R) * $e.frameRate)}: (${he(E.w)}, ${he(E.x)}, ${he(E.y)}, ${he(E.z)}),`;
24919
- t.appendLine(A);
24917
+ for (const { time: R, rotation: A } of y.getValues(b, !1, !0, !1)) {
24918
+ const E = `${c.format((_ + R) * $e.frameRate)}: (${he(A.w)}, ${he(A.x)}, ${he(A.y)}, ${he(A.z)}),`;
24919
+ t.appendLine(E);
24920
24920
  }
24921
24921
  if (O)
24922
- for (const { time: R, scale: E } of y.getValues(b, !1, !1, !0)) {
24923
- const A = `${c.format((_ + R) * $e.frameRate)}: (${he(E.x)}, ${he(E.y)}, ${he(E.z)}),`;
24924
- t.appendLine(A);
24922
+ for (const { time: R, scale: A } of y.getValues(b, !1, !1, !0)) {
24923
+ const E = `${c.format((_ + R) * $e.frameRate)}: (${he(A.x)}, ${he(A.y)}, ${he(A.z)}),`;
24924
+ t.appendLine(E);
24925
24925
  }
24926
24926
  }
24927
24927
  t.closeBlock();
@@ -25026,7 +25026,7 @@ class nl extends L {
25026
25026
  beforeCreateDocument(e) {
25027
25027
  var i;
25028
25028
  if (this.target && this.object && this.gameObject) {
25029
- const n = new At(
25029
+ const n = new Et(
25030
25030
  "Move to " + ((i = this.target) == null ? void 0 : i.name),
25031
25031
  zt.tapTrigger(this.gameObject),
25032
25032
  ye.transformAction(this.object, this.target, this.duration, this.relativeMotion ? "relative" : "absolute")
@@ -25117,12 +25117,12 @@ const Xt = (ea = class extends L {
25117
25117
  createAndAttachBehaviors(t, e, i) {
25118
25118
  const n = [], o = Math.max(0, this.fadeDuration);
25119
25119
  n.push(ye.fadeAction([...this.targetModels, ...i], o, !1)), n.push(ye.fadeAction(e, o, !0)), t.addBehavior(
25120
- new At(
25120
+ new Et(
25121
25121
  "Select_" + this.selfModel.name,
25122
25122
  zt.tapTrigger(this.selfModel),
25123
25123
  ye.parallel(...n)
25124
25124
  )
25125
- ), Xt._parallelStartHiddenActions.push(...e), Xt._startHiddenBehaviour || (Xt._startHiddenBehaviour = new At(
25125
+ ), Xt._parallelStartHiddenActions.push(...e), Xt._startHiddenBehaviour || (Xt._startHiddenBehaviour = new Et(
25126
25126
  "StartHidden_" + this.selfModel.name,
25127
25127
  zt.sceneStartTrigger(),
25128
25128
  ye.fadeAction(Xt._parallelStartHiddenActions, o, !1)
@@ -25204,13 +25204,13 @@ const Ue = (ta = class extends L {
25204
25204
  if (this.toggleModel) {
25205
25205
  if (this.toggleOnClick) {
25206
25206
  const l = [];
25207
- l.push(ye.fadeAction(n, 0, !1)), l.push(ye.fadeAction(this.toggleModel, 0, !0)), l.push(ye.fadeAction(this.targetModel, 0, o)), t.addBehavior(new At(
25207
+ l.push(ye.fadeAction(n, 0, !1)), l.push(ye.fadeAction(this.toggleModel, 0, !0)), l.push(ye.fadeAction(this.targetModel, 0, o)), t.addBehavior(new Et(
25208
25208
  "Toggle_" + n.name + "_ToggleTo" + (o ? "On" : "Off"),
25209
25209
  zt.tapTrigger(n),
25210
25210
  ye.parallel(...l)
25211
25211
  ));
25212
25212
  const c = [];
25213
- c.push(ye.fadeAction(this.toggleModel, 0, !1)), c.push(ye.fadeAction(n, 0, !0)), c.push(ye.fadeAction(this.targetModel, 0, !o)), t.addBehavior(new At(
25213
+ c.push(ye.fadeAction(this.toggleModel, 0, !1)), c.push(ye.fadeAction(n, 0, !0)), c.push(ye.fadeAction(this.targetModel, 0, !o)), t.addBehavior(new Et(
25214
25214
  "Toggle_" + n.name + "_ToggleTo" + (o ? "Off" : "On"),
25215
25215
  zt.tapTrigger(this.toggleModel),
25216
25216
  ye.parallel(...c)
@@ -25218,7 +25218,7 @@ const Ue = (ta = class extends L {
25218
25218
  }
25219
25219
  } else {
25220
25220
  const l = [];
25221
- this.hideSelf && l.push(ye.fadeAction(n, 0, !1)), l.push(ye.fadeAction(this.targetModel, 0, o)), t.addBehavior(new At(
25221
+ this.hideSelf && l.push(ye.fadeAction(n, 0, !1)), l.push(ye.fadeAction(this.targetModel, 0, o)), t.addBehavior(new Et(
25222
25222
  "Toggle_" + n.name + "_ToggleTo" + (o ? "On" : "Off"),
25223
25223
  zt.tapTrigger(n),
25224
25224
  l.length > 1 ? ye.parallel(...l) : l[0]
@@ -25254,7 +25254,7 @@ const gs = class extends L {
25254
25254
  const n = Array.isArray(e) ? e : [e];
25255
25255
  for (const o of n)
25256
25256
  gs._fadeObjects.includes(o) || (console.log("adding hide on start", o), gs._fadeObjects.push(o));
25257
- gs._fadeBehaviour === void 0 && (gs._fadeBehaviour = new At(
25257
+ gs._fadeBehaviour === void 0 && (gs._fadeBehaviour = new Et(
25258
25258
  "HideOnStart",
25259
25259
  zt.sceneStartTrigger(),
25260
25260
  //@ts-ignore
@@ -25284,7 +25284,7 @@ class hh extends L {
25284
25284
  }
25285
25285
  createBehaviours(e, i, n) {
25286
25286
  if (this.target && i.uuid === this.gameObject.uuid) {
25287
- const o = new At(
25287
+ const o = new Et(
25288
25288
  "emphasize " + this.name,
25289
25289
  zt.tapTrigger(this.gameObject),
25290
25290
  ye.emphasize(this.target, this.duration, this.motionType, void 0, "basic")
@@ -25344,7 +25344,7 @@ class Sr extends L {
25344
25344
  const p = this.name ? "_" + this.name : "";
25345
25345
  if (h && this.trigger === "tap") {
25346
25346
  this.toggleOnClick && (u.multiplePerformOperation = "stop");
25347
- const m = new At(
25347
+ const m = new Et(
25348
25348
  "playAudio" + p,
25349
25349
  zt.tapTrigger(i),
25350
25350
  u
@@ -25355,7 +25355,7 @@ class Sr extends L {
25355
25355
  if (h && this.trigger === "tap")
25356
25356
  console.warn("USDZExport: Audio sources that are played on tap can't also auto-play at scene start due to a QuickLook bug.");
25357
25357
  else {
25358
- const m = new At(
25358
+ const m = new Et(
25359
25359
  "playAudioOnStart" + p,
25360
25360
  zt.sceneStartTrigger(),
25361
25361
  u
@@ -25375,7 +25375,7 @@ Ve([
25375
25375
  f()
25376
25376
  ], Sr.prototype, "toggleOnClick", 2);
25377
25377
  var hd;
25378
- const An = (hd = class extends L {
25378
+ const En = (hd = class extends L {
25379
25379
  constructor() {
25380
25380
  super(...arguments);
25381
25381
  r(this, "animator");
@@ -25408,11 +25408,11 @@ const An = (hd = class extends L {
25408
25408
  }
25409
25409
  // Cleanup. TODO This is not the best way as it's called multiple times (once for each component).
25410
25410
  afterSerialize() {
25411
- if (An.rootsWithExclusivePlayback.size > 1) {
25411
+ if (En.rootsWithExclusivePlayback.size > 1) {
25412
25412
  const t = 'Multiple root objects targeted by more than one animation. To work around QuickLook bug FB13410767, animations will be set as "exclusive" and activating them will stop other animations being marked as exclusive.';
25413
- B() && ve(t), console.warn(t, ...An.rootsWithExclusivePlayback);
25413
+ B() && ve(t), console.warn(t, ...En.rootsWithExclusivePlayback);
25414
25414
  }
25415
- An.animationActions = [], An.rootsWithExclusivePlayback = /* @__PURE__ */ new Set();
25415
+ En.animationActions = [], En.rootsWithExclusivePlayback = /* @__PURE__ */ new Set();
25416
25416
  }
25417
25417
  afterCreateDocument(t, e) {
25418
25418
  if (this.animationSequence === void 0 && this.animationLoopAfterSequence === void 0 || !this.stateAnimationModel || !this.target)
@@ -25421,18 +25421,18 @@ const An = (hd = class extends L {
25421
25421
  if (!n)
25422
25422
  return;
25423
25423
  const o = n.getClipCount(this.target) > 1;
25424
- o && (B() && console.warn("Setting exclusive playback for " + this.target.name + "@" + this.stateName + " because it has " + n.getClipCount(this.target) + " animations. This works around QuickLook bug FB13410767."), An.rootsWithExclusivePlayback.add(this.target));
25424
+ o && (B() && console.warn("Setting exclusive playback for " + this.target.name + "@" + this.stateName + " because it has " + n.getClipCount(this.target) + " animations. This works around QuickLook bug FB13410767."), En.rootsWithExclusivePlayback.add(this.target));
25425
25425
  const a = this.name ? this.name : "";
25426
25426
  i.traverse((l) => {
25427
25427
  var c, h;
25428
25428
  if (l.uuid === ((c = this.target) == null ? void 0 : c.uuid)) {
25429
- const d = An.getActionForSequences(
25429
+ const d = En.getActionForSequences(
25430
25430
  i,
25431
25431
  l,
25432
25432
  this.animationSequence,
25433
25433
  this.animationLoopAfterSequence,
25434
25434
  this.randomOffsetNormalized
25435
- ), u = new At(
25435
+ ), u = new Et(
25436
25436
  this.trigger + "_" + a + "_toPlayAnimation_" + this.stateName + "_on_" + ((h = this.target) == null ? void 0 : h.name),
25437
25437
  this.trigger == "tap" ? zt.tapTrigger(this.selfModel) : zt.sceneStartTrigger(),
25438
25438
  d
@@ -25443,8 +25443,8 @@ const An = (hd = class extends L {
25443
25443
  }
25444
25444
  static getActionForSequences(t, e, i, n, o) {
25445
25445
  const a = (c, h) => {
25446
- let d = An.animationActions.find((u) => u.affectedObjects == c && u.start == h.start && u.duration == h.duration && u.animationSpeed == h.speed);
25447
- return d || (d = ye.startAnimationAction(c, h), An.animationActions.push(d)), d;
25446
+ let d = En.animationActions.find((u) => u.affectedObjects == c && u.start == h.start && u.duration == h.duration && u.animationSpeed == h.speed);
25447
+ return d || (d = ye.startAnimationAction(c, h), En.animationActions.push(d)), d;
25448
25448
  }, l = ye.sequence();
25449
25449
  if (i && i.length > 0)
25450
25450
  for (const c of i)
@@ -25470,15 +25470,15 @@ const An = (hd = class extends L {
25470
25470
  if (o) {
25471
25471
  const R = t.registerAnimation(e, o.clip);
25472
25472
  R && (o.loop ? l.push(R) : a.push(R));
25473
- let E = 0;
25473
+ let A = 0;
25474
25474
  if (o.minMaxOffsetNormalized) {
25475
- const F = o.minMaxOffsetNormalized.x, A = o.minMaxOffsetNormalized.y;
25476
- E = (((g = o.clip) == null ? void 0 : g.duration) || 1) * (F + Math.random() * (A - F));
25475
+ const F = o.minMaxOffsetNormalized.x, E = o.minMaxOffsetNormalized.y;
25476
+ A = (((g = o.clip) == null ? void 0 : g.duration) || 1) * (F + Math.random() * (E - F));
25477
25477
  }
25478
25478
  return {
25479
25479
  animationSequence: a,
25480
25480
  animationLoopAfterSequence: l,
25481
- randomTimeOffset: E
25481
+ randomTimeOffset: A
25482
25482
  };
25483
25483
  }
25484
25484
  const c = n == null ? void 0 : n.runtimeAnimatorController;
@@ -25486,46 +25486,46 @@ const An = (hd = class extends L {
25486
25486
  if (c && h) {
25487
25487
  const R = new Array();
25488
25488
  R.push(h);
25489
- let E = !1;
25489
+ let A = !1;
25490
25490
  for (; R.length < 100; ) {
25491
25491
  if (!h || h === null || !h.transitions || h.transitions.length === 0) {
25492
- (y = h.motion) != null && y.isLooping && (E = !0);
25492
+ (y = h.motion) != null && y.isLooping && (A = !0);
25493
25493
  break;
25494
25494
  }
25495
- const F = h.transitions.find((z) => z.conditions.length === 0), A = F ? c.getState(F.destinationState, 0) : null;
25496
- if (A && R.includes(A)) {
25497
- h = A, E = !0;
25495
+ const F = h.transitions.find((z) => z.conditions.length === 0), E = F ? c.getState(F.destinationState, 0) : null;
25496
+ if (E && R.includes(E)) {
25497
+ h = E, A = !0;
25498
25498
  break;
25499
25499
  } else if (F) {
25500
- if (h = A, !h)
25500
+ if (h = E, !h)
25501
25501
  break;
25502
25502
  R.push(h);
25503
25503
  } else {
25504
- E = ((_ = h.motion) == null ? void 0 : _.isLooping) ?? !1;
25504
+ A = ((_ = h.motion) == null ? void 0 : _.isLooping) ?? !1;
25505
25505
  break;
25506
25506
  }
25507
25507
  }
25508
- if (E && h) {
25508
+ if (A && h) {
25509
25509
  const F = R.indexOf(h);
25510
25510
  d = R.slice(0, F), u = R.slice(F), Cb && console.log("found loop from " + i, "states until loop", d, "states looping", u);
25511
25511
  } else
25512
25512
  d = R, u = [], Cb && console.log("found no loop from " + i, "states", d);
25513
25513
  if (!u.length) {
25514
- const F = d[d.length - 1], A = (b = F.motion) == null ? void 0 : b.clip;
25515
- if (A) {
25514
+ const F = d[d.length - 1], E = (b = F.motion) == null ? void 0 : b.clip;
25515
+ if (E) {
25516
25516
  let z;
25517
- if (t.holdClipMap.has(A))
25518
- z = t.holdClipMap.get(A);
25517
+ if (t.holdClipMap.has(E))
25518
+ z = t.holdClipMap.get(E);
25519
25519
  else {
25520
25520
  const U = F.name + "_hold";
25521
- z = A.clone(), z.duration = 1, z.name = U;
25522
- const K = A.duration;
25523
- z.tracks = A.tracks.map((T) => {
25521
+ z = E.clone(), z.duration = 1, z.name = U;
25522
+ const K = E.duration;
25523
+ z.tracks = E.tracks.map((T) => {
25524
25524
  const j = T.clone();
25525
25525
  j.times = new Float32Array([0, K]);
25526
25526
  const H = T.values.length, J = T.getValueSize(), te = T.values.slice(H - J, H);
25527
25527
  return j.values = new Float32Array(2 * J), j.values.set(te, 0), j.values.set(te, J), j;
25528
- }), z.name = U, t.holdClipMap.set(A, z);
25528
+ }), z.name = U, t.holdClipMap.set(E, z);
25529
25529
  }
25530
25530
  if (z) {
25531
25531
  const U = {
@@ -25548,20 +25548,20 @@ const An = (hd = class extends L {
25548
25548
  return;
25549
25549
  }
25550
25550
  if (d = d.filter((R) => {
25551
- var E, F, A;
25552
- return ((E = R.motion) == null ? void 0 : E.clip) && ((A = (F = R.motion) == null ? void 0 : F.clip.tracks) == null ? void 0 : A.length) > 0;
25551
+ var A, F, E;
25552
+ return ((A = R.motion) == null ? void 0 : A.clip) && ((E = (F = R.motion) == null ? void 0 : F.clip.tracks) == null ? void 0 : E.length) > 0;
25553
25553
  }), u = u.filter((R) => {
25554
- var E, F, A;
25555
- return ((E = R.motion) == null ? void 0 : E.clip) && ((A = (F = R.motion) == null ? void 0 : F.clip.tracks) == null ? void 0 : A.length) > 0;
25554
+ var A, F, E;
25555
+ return ((A = R.motion) == null ? void 0 : A.clip) && ((E = (F = R.motion) == null ? void 0 : F.clip.tracks) == null ? void 0 : E.length) > 0;
25556
25556
  }), d.length === 0 && u.length === 0) {
25557
25557
  console.warn("No clips found for state " + i + " on " + (n == null ? void 0 : n.name) + ", can't export animation data");
25558
25558
  return;
25559
25559
  }
25560
- const p = (R, E) => {
25560
+ const p = (R, A) => {
25561
25561
  if (!e)
25562
25562
  return;
25563
25563
  const F = t.registerAnimation(e, R.motion.clip ?? null);
25564
- F ? (F.speed = R.speed, E.push(F)) : console.warn("Couldn't register animation for state " + R.name + " on " + (n == null ? void 0 : n.name));
25564
+ F ? (F.speed = R.speed, A.push(F)) : console.warn("Couldn't register animation for state " + R.name + " on " + (n == null ? void 0 : n.name));
25565
25565
  };
25566
25566
  if (d.length > 0) {
25567
25567
  a = new Array();
@@ -25575,8 +25575,8 @@ const An = (hd = class extends L {
25575
25575
  }
25576
25576
  let m = 0;
25577
25577
  if (n && c && n.minMaxOffsetNormalized) {
25578
- const R = n.minMaxOffsetNormalized.x, E = n.minMaxOffsetNormalized.y, F = d.length ? d[0] : u.length ? u[0] : null;
25579
- m = (((O = F == null ? void 0 : F.motion.clip) == null ? void 0 : O.duration) || 1) * (R + Math.random() * (E - R));
25578
+ const R = n.minMaxOffsetNormalized.x, A = n.minMaxOffsetNormalized.y, F = d.length ? d[0] : u.length ? u[0] : null;
25579
+ m = (((O = F == null ? void 0 : F.motion.clip) == null ? void 0 : O.duration) || 1) * (R + Math.random() * (A - R));
25580
25580
  }
25581
25581
  return {
25582
25582
  animationSequence: a,
@@ -25587,11 +25587,11 @@ const An = (hd = class extends L {
25587
25587
  createAnimation(t, e, i) {
25588
25588
  if (!this.target || !this.animator && !this.animation)
25589
25589
  return;
25590
- const n = An.getAndRegisterAnimationSequences(t, this.target, this.stateName);
25590
+ const n = En.getAndRegisterAnimationSequences(t, this.target, this.stateName);
25591
25591
  n && (this.animationSequence = n.animationSequence, this.animationLoopAfterSequence = n.animationLoopAfterSequence, this.randomOffsetNormalized = n.randomTimeOffset, this.stateAnimationModel = e);
25592
25592
  }
25593
25593
  }, r(hd, "animationActions", []), r(hd, "rootsWithExclusivePlayback", /* @__PURE__ */ new Set()), hd);
25594
- let qa = An;
25594
+ let qa = En;
25595
25595
  Ve([
25596
25596
  f(Ut)
25597
25597
  ], qa.prototype, "animator", 2);
@@ -25808,7 +25808,7 @@ class n2 {
25808
25808
  function ww(s) {
25809
25809
  s && (s.colorSpace != Is && (s.colorSpace = Is, s.needsUpdate = !0), s.minFilter == jd && s.magFilter == jd && (s.anisotropy = 1, s.needsUpdate = !0));
25810
25810
  }
25811
- let Eo = class {
25811
+ let Ao = class {
25812
25812
  constructor(t) {
25813
25813
  r(this, "guid");
25814
25814
  r(this, "texture");
@@ -25847,19 +25847,19 @@ let Eo = class {
25847
25847
  };
25848
25848
  bt([
25849
25849
  f()
25850
- ], Eo.prototype, "guid", 2);
25850
+ ], Ao.prototype, "guid", 2);
25851
25851
  bt([
25852
25852
  f(Fe)
25853
- ], Eo.prototype, "texture", 2);
25853
+ ], Ao.prototype, "texture", 2);
25854
25854
  bt([
25855
25855
  Ya()
25856
- ], Eo.prototype, "triangles", 2);
25856
+ ], Ao.prototype, "triangles", 2);
25857
25857
  bt([
25858
25858
  Ya()
25859
- ], Eo.prototype, "uv", 2);
25859
+ ], Ao.prototype, "uv", 2);
25860
25860
  bt([
25861
25861
  Ya()
25862
- ], Eo.prototype, "vertices", 2);
25862
+ ], Ao.prototype, "vertices", 2);
25863
25863
  const fp = Symbol("spriteOwner");
25864
25864
  class Hc {
25865
25865
  constructor() {
@@ -25868,7 +25868,7 @@ class Hc {
25868
25868
  }
25869
25869
  }
25870
25870
  bt([
25871
- f(Eo)
25871
+ f(Ao)
25872
25872
  ], Hc.prototype, "sprites", 2);
25873
25873
  const zm = class {
25874
25874
  // we don't assign anything here because it's used by the serialization system.
@@ -25978,7 +25978,7 @@ class Ii extends L {
25978
25978
  const i = Math.floor(e);
25979
25979
  this.spriteIndex = i;
25980
25980
  } else
25981
- e instanceof Eo ? (this._spriteSheet || (this._spriteSheet = vr.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e), this.updateSprite()) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
25981
+ e instanceof Ao ? (this._spriteSheet || (this._spriteSheet = vr.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e), this.updateSprite()) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
25982
25982
  }
25983
25983
  /**
25984
25984
  * Set the index of the sprite to be rendered in the currently assigned sprite sheet
@@ -26893,7 +26893,7 @@ var m2 = Object.defineProperty, g2 = Object.getOwnPropertyDescriptor, ty = (s, t
26893
26893
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
26894
26894
  return i && n && m2(t, e, n), n;
26895
26895
  };
26896
- const El = x("debugwebxr"), Ob = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
26896
+ const Al = x("debugwebxr"), Ob = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
26897
26897
  class Cr extends L {
26898
26898
  constructor() {
26899
26899
  super(...arguments);
@@ -26907,7 +26907,7 @@ class Cr extends L {
26907
26907
  async onEnterXR(e) {
26908
26908
  if (!this.activeAndEnabled)
26909
26909
  return;
26910
- El && console.warn("AVATAR ENTER XR", this.guid, this.sourceId, this, this.activeAndEnabled), this._syncTransforms && (this._syncTransforms.length = 0), await this.prepareAvatar();
26910
+ Al && console.warn("AVATAR ENTER XR", this.guid, this.sourceId, this, this.activeAndEnabled), this._syncTransforms && (this._syncTransforms.length = 0), await this.prepareAvatar();
26911
26911
  const i = en.getFor(this);
26912
26912
  if (i != null && i.owner) {
26913
26913
  const n = this.gameObject.addComponent(gt);
@@ -26988,20 +26988,20 @@ class Cr extends L {
26988
26988
  else {
26989
26989
  const n = new I();
26990
26990
  n.name = "Head";
26991
- const o = Ar.createPrimitive(Ua.Cube);
26992
- n.add(o), this.gameObject.add(n), this.head = new re("", this.sourceId, n), El && console.log("Create head", n);
26991
+ const o = Er.createPrimitive(Ua.Cube);
26992
+ n.add(o), this.gameObject.add(n), this.head = new re("", this.sourceId, n), Al && console.log("Create head", n);
26993
26993
  }
26994
26994
  if (this.rightHand)
26995
26995
  this.rightHand instanceof I && (this.rightHand = new re("", this.sourceId, this.rightHand));
26996
26996
  else {
26997
26997
  const n = new I();
26998
- n.name = "Right Hand", this.gameObject.add(n), this.rightHand = new re("", this.sourceId, n), El && console.log("Create right hand", n);
26998
+ n.name = "Right Hand", this.gameObject.add(n), this.rightHand = new re("", this.sourceId, n), Al && console.log("Create right hand", n);
26999
26999
  }
27000
27000
  if (this.leftHand)
27001
27001
  this.leftHand instanceof I && (this.leftHand = new re("", this.sourceId, this.leftHand));
27002
27002
  else {
27003
27003
  const n = new I();
27004
- n.name = "Left Hand", this.gameObject.add(n), this.leftHand = new re("", this.sourceId, n), El && console.log("Create left hand", n);
27004
+ n.name = "Left Hand", this.gameObject.add(n), this.leftHand = new re("", this.sourceId, n), Al && console.log("Create left hand", n);
27005
27005
  }
27006
27006
  await this.loadAvatarObjects(this.head, this.leftHand, this.rightHand), this._leftHandMeshes = [], (e = this.leftHand.asset) == null || e.traverse((n) => {
27007
27007
  n != null && n.isMesh && this._leftHandMeshes.push(n);
@@ -27013,7 +27013,7 @@ class Cr extends L {
27013
27013
  const o = e.loadAssetAsync(), a = i.loadAssetAsync(), l = n.loadAssetAsync(), c = new Array();
27014
27014
  o && c.push(o), a && c.push(a), l && c.push(l);
27015
27015
  const h = await w0(c);
27016
- El && console.log("Avatar loaded results:", h);
27016
+ Al && console.log("Avatar loaded results:", h);
27017
27017
  }
27018
27018
  }
27019
27019
  ty([
@@ -27632,7 +27632,7 @@ const da = (Up = class extends L {
27632
27632
  ei.Global.Set(this._previousXRState), (i = this._playerSync) == null || i.destroyInstance();
27633
27633
  for (const n of this._createdComponentsInSession)
27634
27634
  n.destroy();
27635
- this._createdComponentsInSession.length = 0, this._activeWebARSessionRoot = null, this.handleOfferSession(), Au(1).then(() => da.activeWebXRComponent = null);
27635
+ this._createdComponentsInSession.length = 0, this._activeWebARSessionRoot = null, this.handleOfferSession(), Eu(1).then(() => da.activeWebXRComponent = null);
27636
27636
  }
27637
27637
  }
27638
27638
  /** Call to enable or disable default controller behaviour */
@@ -27951,7 +27951,7 @@ class Pw {
27951
27951
  return "Physics";
27952
27952
  }
27953
27953
  onExportObject(t, e, i) {
27954
- const n = S.getComponents(t, _e).filter((c) => c.enabled), o = S.getComponents(t, Ei).filter((c) => c.enabled && !c.isTrigger);
27954
+ const n = S.getComponents(t, _e).filter((c) => c.enabled), o = S.getComponents(t, Ai).filter((c) => c.enabled && !c.isTrigger);
27955
27955
  let a = n.length > 0 ? n[0] : null;
27956
27956
  const l = o.length > 0 ? o[0] : null;
27957
27957
  l && !a && (a = new _e(), a.isKinematic = !0), a && e.addEventListener("serialize", (c, h) => {
@@ -28322,8 +28322,8 @@ fh([
28322
28322
  fh([
28323
28323
  f(oe)
28324
28324
  ], ii.prototype, "anchorMax", 2);
28325
- var T2 = Object.defineProperty, A2 = Object.getOwnPropertyDescriptor, Mw = (s, t, e, i) => {
28326
- for (var n = i > 1 ? void 0 : i ? A2(t, e) : t, o = s.length - 1, a; o >= 0; o--)
28325
+ var T2 = Object.defineProperty, E2 = Object.getOwnPropertyDescriptor, Mw = (s, t, e, i) => {
28326
+ for (var n = i > 1 ? void 0 : i ? E2(t, e) : t, o = s.length - 1, a; o >= 0; o--)
28327
28327
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
28328
28328
  return i && n && T2(t, e, n), n;
28329
28329
  };
@@ -28340,10 +28340,10 @@ Mw([
28340
28340
  Mw([
28341
28341
  f(oe)
28342
28342
  ], ph.prototype, "effectDistance", 2);
28343
- var E2 = Object.defineProperty, I2 = Object.getOwnPropertyDescriptor, Rw = (s, t, e, i) => {
28343
+ var A2 = Object.defineProperty, I2 = Object.getOwnPropertyDescriptor, Rw = (s, t, e, i) => {
28344
28344
  for (var n = i > 1 ? void 0 : i ? I2(t, e) : t, o = s.length - 1, a; o >= 0; o--)
28345
28345
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
28346
- return i && n && E2(t, e, n), n;
28346
+ return i && n && A2(t, e, n), n;
28347
28347
  };
28348
28348
  const td = {
28349
28349
  backgroundColor: new le(1, 1, 1),
@@ -28447,7 +28447,7 @@ const tc = (Np = class extends Sn {
28447
28447
  t = tc.textureCache.get(t);
28448
28448
  else if (!t.isRenderTargetTexture) {
28449
28449
  const e = t.clone();
28450
- e.colorSpace = Es, tc.textureCache.set(t, e), t = e;
28450
+ e.colorSpace = As, tc.textureCache.set(t, e), t = e;
28451
28451
  }
28452
28452
  this.setOptions({ backgroundImage: t, borderRadius: 0, backgroundOpacity: this.color.alpha, backgroundSize: "stretch" }), Ke.assignTextureLOD(t, 0).then((e) => {
28453
28453
  e instanceof Fe && (t && tc.textureCache.set(t, e), this.setOptions({ backgroundImage: e }), this.markDirty());
@@ -29084,21 +29084,21 @@ class Lo extends Li {
29084
29084
  let b = 0;
29085
29085
  c ? b += this.padding.left : b += this.padding.top;
29086
29086
  let w = 0, C = 0;
29087
- for (let A = 0; A < this.gameObject.children.length; A++) {
29088
- const z = this.gameObject.children[A], U = S.getComponent(z, ii);
29087
+ for (let E = 0; E < this.gameObject.children.length; E++) {
29088
+ const z = this.gameObject.children[E], U = S.getComponent(z, ii);
29089
29089
  U != null && U.activeAndEnabled && (C += 1, c ? w += U.width : w += U.height);
29090
29090
  }
29091
29091
  let k = 0;
29092
29092
  const O = this.spacing * (C - 1);
29093
29093
  if (p || d) {
29094
- let A = 0;
29095
- c ? A = o -= O : A = l -= O, C > 0 && (k = A / C);
29094
+ let E = 0;
29095
+ c ? E = o -= O : E = l -= O, C > 0 && (k = E / C);
29096
29096
  }
29097
29097
  let R = 0;
29098
29098
  R += this.padding.left, R -= this.padding.right, _ !== 0 && (b = y - w, b *= _, b -= O * _, c ? (b -= this.padding.right * _, b += this.padding.left * (1 - _), b < this.padding.left && (b = this.padding.left)) : (b -= this.padding.bottom * _, b += this.padding.top * (1 - _), b < this.padding.top && (b = this.padding.top)));
29099
- let E = 1;
29100
- for (let A = 0; A < this.gameObject.children.length; A++) {
29101
- const z = this.gameObject.children[A], U = S.getComponent(z, ii);
29099
+ let A = 1;
29100
+ for (let E = 0; E < this.gameObject.children.length; E++) {
29101
+ const z = this.gameObject.children[E], U = S.getComponent(z, ii);
29102
29102
  if (U != null && U.activeAndEnabled) {
29103
29103
  (F = U.pivot) == null || F.set(0.5, 0.5), U.anchorMin.set(0, 1), U.anchorMax.set(0, 1);
29104
29104
  const K = n * 0.5 + R * 0.5;
@@ -29107,11 +29107,11 @@ class Lo extends Li {
29107
29107
  U.anchoredPosition.y !== T && (U.anchoredPosition.y = T), m && u && U.sizeDelta[h] !== g && (U.sizeDelta[h] = g), p && d && U.sizeDelta[i] !== k && (U.sizeDelta[i] = k);
29108
29108
  const j = c ? U.width : U.height, H = j * 0.5;
29109
29109
  if (b += H, p) {
29110
- const te = k * E - k * 0.5;
29110
+ const te = k * A - k * 0.5;
29111
29111
  te > b && (b = te - k * 0.5 + j + this.padding.left, b -= H);
29112
29112
  }
29113
29113
  let J = b;
29114
- i === "y" && (J = -J), U.anchoredPosition[i] !== J && (U.anchoredPosition[i] = J), b += H, b += this.spacing, E += 1;
29114
+ i === "y" && (J = -J), U.anchoredPosition[i] !== J && (U.anchoredPosition[i] = J), b += H, b += this.spacing, A += 1;
29115
29115
  }
29116
29116
  }
29117
29117
  }
@@ -29134,12 +29134,12 @@ st([
29134
29134
  st([
29135
29135
  f()
29136
29136
  ], Lo.prototype, "childScaleWidth", 2);
29137
- class Aw extends Lo {
29137
+ class Ew extends Lo {
29138
29138
  get primaryAxis() {
29139
29139
  return "y";
29140
29140
  }
29141
29141
  }
29142
- class Ew extends Lo {
29142
+ class Aw extends Lo {
29143
29143
  get primaryAxis() {
29144
29144
  return "x";
29145
29145
  }
@@ -29296,7 +29296,7 @@ const bp = x("debuguilayout"), Dw = class extends nf {
29296
29296
  e !== -1 && this._receivers.splice(e, 1);
29297
29297
  }
29298
29298
  async onEnterXR(t) {
29299
- this.screenspace ? (t.xr.isVR || t.xr.isPassThrough) && (this.gameObject.visible = !1) : (this.gameObject.visible = !1, await Au(1).then(() => {
29299
+ this.screenspace ? (t.xr.isVR || t.xr.isPassThrough) && (this.gameObject.visible = !1) : (this.gameObject.visible = !1, await Eu(1).then(() => {
29300
29300
  this.gameObject.visible = !0;
29301
29301
  }));
29302
29302
  }
@@ -29490,10 +29490,10 @@ class jw {
29490
29490
  if (g instanceof q && !b) {
29491
29491
  const O = g.geometry.clone();
29492
29492
  O.scale(1, 1, -1), this.flipWindingOrder(O), y.geometry = O;
29493
- const R = new le(), E = g.material.opacity;
29493
+ const R = new le(), A = g.material.opacity;
29494
29494
  R.copy(g.material.color), y.material = new Me({
29495
29495
  color: R,
29496
- opacity: E * w,
29496
+ opacity: A * w,
29497
29497
  map: g.material.map,
29498
29498
  transparent: !0
29499
29499
  });
@@ -29593,7 +29593,7 @@ function G2(s, t) {
29593
29593
  return o;
29594
29594
  }
29595
29595
  function q2(s) {
29596
- return new At(
29596
+ return new Et(
29597
29597
  "DisableAtStart",
29598
29598
  zt.sceneStartTrigger(),
29599
29599
  ye.fadeAction(s, 0, !1)
@@ -29612,7 +29612,7 @@ function Rb(s, t) {
29612
29612
  const a = document.createElement("img");
29613
29613
  return a.id = "button", o.appendChild(a), s.domElement.shadowRoot.appendChild(i), o;
29614
29614
  }
29615
- var X2 = Object.defineProperty, Q2 = Object.getOwnPropertyDescriptor, Et = (s, t, e, i) => {
29615
+ var X2 = Object.defineProperty, Q2 = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
29616
29616
  for (var n = i > 1 ? void 0 : i ? Q2(t, e) : t, o = s.length - 1, a; o >= 0; o--)
29617
29617
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
29618
29618
  return i && n && X2(t, e, n), n;
@@ -29626,16 +29626,16 @@ class ll {
29626
29626
  r(this, "callToActionURL");
29627
29627
  }
29628
29628
  }
29629
- Et([
29629
+ At([
29630
29630
  f()
29631
29631
  ], ll.prototype, "callToAction", 2);
29632
- Et([
29632
+ At([
29633
29633
  f()
29634
29634
  ], ll.prototype, "checkoutTitle", 2);
29635
- Et([
29635
+ At([
29636
29636
  f()
29637
29637
  ], ll.prototype, "checkoutSubtitle", 2);
29638
- Et([
29638
+ At([
29639
29639
  f()
29640
29640
  ], ll.prototype, "callToActionURL", 2);
29641
29641
  var dd;
@@ -29744,20 +29744,20 @@ const Um = (dd = class extends L {
29744
29744
  for (const O of i) {
29745
29745
  for (const R of O.sharedMeshes)
29746
29746
  if (R) {
29747
- const E = Ke.assignMeshLOD(R, 0);
29748
- E instanceof Promise && n.push(new Promise((F, A) => {
29749
- E.then(() => {
29747
+ const A = Ke.assignMeshLOD(R, 0);
29748
+ A instanceof Promise && n.push(new Promise((F, E) => {
29749
+ A.then(() => {
29750
29750
  o++, de.report("export-usdz-textures", { message: "Loaded progressive mesh", currentStep: o, totalSteps: n.length }), F();
29751
- }).catch((z) => A(z));
29751
+ }).catch((z) => E(z));
29752
29752
  }));
29753
29753
  }
29754
29754
  for (const R of O.sharedMaterials)
29755
29755
  if (R) {
29756
- const E = Ke.assignTextureLOD(R, 0);
29757
- E instanceof Promise && n.push(new Promise((F, A) => {
29758
- E.then(() => {
29756
+ const A = Ke.assignTextureLOD(R, 0);
29757
+ A instanceof Promise && n.push(new Promise((F, E) => {
29758
+ A.then(() => {
29759
29759
  o++, de.report("export-usdz-textures", { message: "Loaded progressive texture", currentStep: o, totalSteps: n.length }), F();
29760
- }).catch((z) => A(z));
29760
+ }).catch((z) => E(z));
29761
29761
  }));
29762
29762
  }
29763
29763
  }
@@ -29775,14 +29775,14 @@ const Um = (dd = class extends L {
29775
29775
  const y = or.instance.objs.map((O) => O.batchedMesh);
29776
29776
  l.keepObject = (O) => {
29777
29777
  let R = !0;
29778
- const E = S.getComponent(O, Ze);
29779
- return E && !E.enabled && (R = !1), R && y.includes(O) && (R = !1), R && S.getComponentInParent(O, Yn) && (R = !1), R && S.getComponentInParent(O, Ns) && (R = !1), pi && !R && console.log("USDZExporter: Discarding object", O), R;
29778
+ const A = S.getComponent(O, Ze);
29779
+ return A && !A.enabled && (R = !1), R && y.includes(O) && (R = !1), R && S.getComponentInParent(O, Yn) && (R = !1), R && S.getComponentInParent(O, Ns) && (R = !1), pi && !R && console.log("USDZExporter: Discarding object", O), R;
29780
29780
  }, l.beforeWritingDocument = () => {
29781
29781
  if (B() && c && h) {
29782
29782
  const O = c.animatedRoots;
29783
29783
  for (const R of O) {
29784
- const E = S.getComponentsInChildren(R, _e).filter((A) => A.enabled), F = S.getComponents(R, Ei).filter((A) => A.enabled && !A.isTrigger);
29785
- (E.length > 0 || F.length > 0) && console.error("An animated object has physics components in its child hierarchy. This can lead to undefined behaviour due to a bug in Apple's QuickLook (FB15925487). Remove the physics components from child objects or verify that you get the expected results.", R);
29784
+ const A = S.getComponentsInChildren(R, _e).filter((E) => E.enabled), F = S.getComponents(R, Ai).filter((E) => E.enabled && !E.isTrigger);
29785
+ (A.length > 0 || F.length > 0) && console.error("An animated object has physics components in its child hierarchy. This can lead to undefined behaviour due to a bug in Apple's QuickLook (FB15925487). Remove the physics components from child objects or verify that you get the expected results.", R);
29786
29786
  }
29787
29787
  }
29788
29788
  };
@@ -29881,43 +29881,43 @@ const Um = (dd = class extends L {
29881
29881
  }
29882
29882
  }, r(dd, "invertForwardMatrix", new se().makeRotationY(Math.PI)), r(dd, "invertForwardQuaternion", new W().setFromEuler(new Bt(0, Math.PI, 0))), dd);
29883
29883
  let Ge = Um;
29884
- Et([
29884
+ At([
29885
29885
  f(I)
29886
29886
  ], Ge.prototype, "objectToExport", 2);
29887
- Et([
29887
+ At([
29888
29888
  f()
29889
29889
  ], Ge.prototype, "autoExportAnimations", 2);
29890
- Et([
29890
+ At([
29891
29891
  f()
29892
29892
  ], Ge.prototype, "autoExportAudioSources", 2);
29893
- Et([
29893
+ At([
29894
29894
  f()
29895
29895
  ], Ge.prototype, "exportFileName", 2);
29896
- Et([
29896
+ At([
29897
29897
  f(URL)
29898
29898
  ], Ge.prototype, "customUsdzFile", 2);
29899
- Et([
29899
+ At([
29900
29900
  f(ll)
29901
29901
  ], Ge.prototype, "customBranding", 2);
29902
- Et([
29902
+ At([
29903
29903
  f()
29904
29904
  ], Ge.prototype, "anchoringType", 2);
29905
- Et([
29905
+ At([
29906
29906
  f()
29907
29907
  ], Ge.prototype, "maxTextureSize", 2);
29908
- Et([
29908
+ At([
29909
29909
  f()
29910
29910
  ], Ge.prototype, "planeAnchoringAlignment", 2);
29911
- Et([
29911
+ At([
29912
29912
  f()
29913
29913
  ], Ge.prototype, "interactive", 2);
29914
- Et([
29914
+ At([
29915
29915
  f()
29916
29916
  ], Ge.prototype, "physics", 2);
29917
- Et([
29917
+ At([
29918
29918
  f()
29919
29919
  ], Ge.prototype, "allowCreateQuicklookButton", 2);
29920
- Et([
29920
+ At([
29921
29921
  f()
29922
29922
  ], Ge.prototype, "quickLookCompatible", 2);
29923
29923
  var K2 = Object.defineProperty, Z2 = Object.getOwnPropertyDescriptor, oy = (s, t, e, i) => {
@@ -30310,7 +30310,7 @@ class Di extends L {
30310
30310
  const n = this.gameObject.scale.y;
30311
30311
  i.top *= n, i.bottom *= n;
30312
30312
  }
30313
- this.light.shadow.needsUpdate = !0, Ks && this.context.scene.add(new A1(i));
30313
+ this.light.shadow.needsUpdate = !0, Ks && this.context.scene.add(new E1(i));
30314
30314
  }
30315
30315
  this.isBaked ? this.light.removeFromParent() : e || this.gameObject.add(this.light);
30316
30316
  }
@@ -30431,7 +30431,7 @@ class rf extends L {
30431
30431
  }
30432
30432
  this._lodsHandler = new Array();
30433
30433
  for (let n = 0; n < e.length; n++) {
30434
- const o = new E1();
30434
+ const o = new A1();
30435
30435
  this._lodsHandler.push(o), this.gameObject.add(o);
30436
30436
  }
30437
30437
  const i = new I();
@@ -31755,7 +31755,7 @@ class tt {
31755
31755
  return;
31756
31756
  const c = a / l, h = this.speedModifier.evaluate(c) * this.speedModifierMultiplier, d = this.x.evaluate(c), u = this.y.evaluate(c), p = this.z.evaluate(c);
31757
31757
  if (this._temp.set(-d, u, p), this._system && this._system.main.simulationSpace === 1 && this._temp.applyQuaternion(this._system.worldQuaternion), this._hasOrbital && ((m = this._system) == null ? void 0 : m.worldPos)) {
31758
- const y = this._temp2.set(i.x, i.y, i.z), _ = this.orbitalXMultiplier, b = this.orbitalYMultiplier, w = this.orbitalZMultiplier, C = h * Math.PI * 2 * 10, k = Math.cos(C * _), O = Math.sin(C * _), R = Math.cos(C * b), E = Math.sin(C * b), F = Math.cos(C * w), A = Math.sin(C * w), z = y.x * (R * F) + y.y * (R * A) + y.z * -E, U = y.x * (O * E * F - k * A) + y.y * (O * E * A + k * F) + y.z * (O * R), K = y.x * (k * E * F + O * A) + y.y * (k * E * A - O * F) + y.z * (k * R), T = this._temp3.set(y.x - z, y.y - U, y.z - K);
31758
+ const y = this._temp2.set(i.x, i.y, i.z), _ = this.orbitalXMultiplier, b = this.orbitalYMultiplier, w = this.orbitalZMultiplier, C = h * Math.PI * 2 * 10, k = Math.cos(C * _), O = Math.sin(C * _), R = Math.cos(C * b), A = Math.sin(C * b), F = Math.cos(C * w), E = Math.sin(C * w), z = y.x * (R * F) + y.y * (R * E) + y.z * -A, U = y.x * (O * A * F - k * E) + y.y * (O * A * E + k * F) + y.z * (O * R), K = y.x * (k * A * F + O * E) + y.y * (k * A * E - O * F) + y.z * (k * R), T = this._temp3.set(y.x - z, y.y - U, y.z - K);
31759
31759
  T.normalize(), T.multiplyScalar(0.2 / o * Math.max(this.orbitalXMultiplier, this.orbitalYMultiplier, this.orbitalZMultiplier)), n.x += T.x, n.y += T.y, n.z += T.z;
31760
31760
  }
31761
31761
  n.x += this._temp.x, n.y += this._temp.y, n.z += this._temp.z, n.x *= h, n.y *= h, n.z *= h;
@@ -32301,11 +32301,11 @@ class On extends L {
32301
32301
  let i = e === !0 && this.trailMaterial ? this.trailMaterial : this.particleMaterial;
32302
32302
  if (i) {
32303
32303
  if (i.type === "MeshStandardMaterial") {
32304
- oo && console.debug("ParticleSystemRenderer.getMaterial: MeshStandardMaterial detected, converting to MeshBasicMaterial. See https://github.com/Alchemist0823/three.quarks/issues/101"), "map" in i && i.map && (i.map.colorSpace = Es, i.map.premultiplyAlpha = !1);
32304
+ oo && console.debug("ParticleSystemRenderer.getMaterial: MeshStandardMaterial detected, converting to MeshBasicMaterial. See https://github.com/Alchemist0823/three.quarks/issues/101"), "map" in i && i.map && (i.map.colorSpace = As, i.map.premultiplyAlpha = !1);
32305
32305
  const n = new Me();
32306
32306
  n.copy(i), e ? this.trailMaterial = n : this.particleMaterial = n;
32307
32307
  }
32308
- i.map && (i.map.colorSpace = Es, i.map.premultiplyAlpha = !1), e && i.side === Oo && (i = i.clone(), i.side = Ou, e ? this.trailMaterial = i : this.particleMaterial = i);
32308
+ i.map && (i.map.colorSpace = As, i.map.premultiplyAlpha = !1), e && i.side === Oo && (i = i.clone(), i.side = Ou, e ? this.trailMaterial = i : this.particleMaterial = i);
32309
32309
  }
32310
32310
  return i && !PT && i._didRequestTextureLOD === void 0 && (i._didRequestTextureLOD = 0, OT && console.log("Load material LOD", i.name), Ke.assignTextureLOD(i, 0)), i;
32311
32311
  }
@@ -32454,7 +32454,7 @@ class TT extends Br {
32454
32454
  }
32455
32455
  }
32456
32456
  const Tb = Symbol("particleRotation");
32457
- class AT extends Br {
32457
+ class ET extends Br {
32458
32458
  constructor() {
32459
32459
  super(...arguments);
32460
32460
  r(this, "type", "NeedleRotation");
@@ -32472,7 +32472,7 @@ class AT extends Br {
32472
32472
  }
32473
32473
  }
32474
32474
  }
32475
- const Ab = Symbol("sizeLerpFactor"), ET = new v();
32475
+ const Eb = Symbol("sizeLerpFactor"), AT = new v();
32476
32476
  class IT extends Br {
32477
32477
  constructor() {
32478
32478
  super(...arguments);
@@ -32481,29 +32481,29 @@ class IT extends Br {
32481
32481
  r(this, "_maxSize", 1);
32482
32482
  }
32483
32483
  initialize(e) {
32484
- e[Ab] = Math.random(), this._minSize = this.system.renderer.minParticleSize, this._maxSize = this.system.renderer.maxParticleSize;
32484
+ e[Eb] = Math.random(), this._minSize = this.system.renderer.minParticleSize, this._maxSize = this.system.renderer.maxParticleSize;
32485
32485
  }
32486
32486
  update(e, i) {
32487
32487
  const n = e.age / e.life;
32488
32488
  let o = 1;
32489
- this.system.sizeOverLifetime.enabled && (o *= this.system.sizeOverLifetime.evaluate(n, void 0, e[Ab]).x);
32489
+ this.system.sizeOverLifetime.enabled && (o *= this.system.sizeOverLifetime.evaluate(n, void 0, e[Eb]).x);
32490
32490
  let a = 1;
32491
32491
  this.system.renderer.renderMode !== ys.Mesh && (a = this.system.worldScale.x / this.system.cameraScale);
32492
32492
  const l = G(e.startSize).multiplyScalar(o * a);
32493
32493
  if (e.size.set(l.x, l.y, l.z), this.system.localspace) {
32494
- const c = Uw(this.system, ET);
32494
+ const c = Uw(this.system, AT);
32495
32495
  e.size.x *= c.x, e.size.y *= c.y, e.size.z *= c.z;
32496
32496
  }
32497
32497
  }
32498
32498
  }
32499
- const ma = Symbol("particleLife"), xp = Symbol("trailLifetime"), Eb = Symbol("trailStartLength"), Sp = Symbol("trailWidthRandom");
32499
+ const ma = Symbol("particleLife"), xp = Symbol("trailLifetime"), Ab = Symbol("trailStartLength"), Sp = Symbol("trailWidthRandom");
32500
32500
  class LT extends Br {
32501
32501
  constructor() {
32502
32502
  super(...arguments);
32503
32503
  r(this, "type", "NeedleTrail");
32504
32504
  }
32505
32505
  initialize(e) {
32506
- e instanceof Gy && (e[ma] = e.life, this.system.trails.enabled && this.system.trails.dieWithParticles === !1 && (e[xp] = this.system.trails.lifetime.evaluate(Math.random(), Math.random()), e.life += e[xp]), e[Eb] = e.length, e[Sp] = Math.random());
32506
+ e instanceof Gy && (e[ma] = e.life, this.system.trails.enabled && this.system.trails.dieWithParticles === !1 && (e[xp] = this.system.trails.lifetime.evaluate(Math.random(), Math.random()), e.life += e[xp]), e[Ab] = e.length, e[Sp] = Math.random());
32507
32507
  }
32508
32508
  update(e) {
32509
32509
  var i;
@@ -32520,7 +32520,7 @@ class LT extends Br {
32520
32520
  if (e.age > e[ma]) {
32521
32521
  e.velocity.set(0, 0, 0);
32522
32522
  const c = (e.age - e[ma]) / e[xp];
32523
- n.length = $.lerp(e[Eb], 0, c);
32523
+ n.length = $.lerp(e[Ab], 0, c);
32524
32524
  }
32525
32525
  }
32526
32526
  }
@@ -32683,7 +32683,7 @@ class BT {
32683
32683
  const e = t.map;
32684
32684
  if (this.clonedTexture.original !== e || !this.clonedTexture.clone) {
32685
32685
  const i = e.clone();
32686
- i.premultiplyAlpha = !1, i.colorSpace = Es, this.clonedTexture.original = e, this.clonedTexture.clone = i;
32686
+ i.premultiplyAlpha = !1, i.colorSpace = As, this.clonedTexture.original = e, this.clonedTexture.clone = i;
32687
32687
  }
32688
32688
  return this.clonedTexture.clone;
32689
32689
  }
@@ -32934,7 +32934,7 @@ const Td = class extends L {
32934
32934
  awake() {
32935
32935
  if (this._worldPositionFrame = -1, this._renderer = this.gameObject.getComponent(On), !this.main)
32936
32936
  throw new Error("Not Supported: ParticleSystem needs a serialized MainModule. Creating new particle systems at runtime is currently not supported.");
32937
- this._container = new I(), this._container.matrixAutoUpdate = !1, this.context.scene.add(this._container), this._batchSystem = new vS(), this._batchSystem.name = this.gameObject.name, this._container.add(this._batchSystem), this._interface = new BT(this), this._particleSystem = new wS(this._interface), this._particleSystem.addBehavior(new IT(this)), this._particleSystem.addBehavior(new jT(this)), this._particleSystem.addBehavior(new TT(this)), this._particleSystem.addBehavior(new AT(this)), this._particleSystem.addBehavior(new DT(this)), this._particleSystem.addBehavior(new LT(this)), this._batchSystem.addSystem(this._particleSystem);
32937
+ this._container = new I(), this._container.matrixAutoUpdate = !1, this.context.scene.add(this._container), this._batchSystem = new vS(), this._batchSystem.name = this.gameObject.name, this._container.add(this._batchSystem), this._interface = new BT(this), this._particleSystem = new wS(this._interface), this._particleSystem.addBehavior(new IT(this)), this._particleSystem.addBehavior(new jT(this)), this._particleSystem.addBehavior(new TT(this)), this._particleSystem.addBehavior(new ET(this)), this._particleSystem.addBehavior(new DT(this)), this._particleSystem.addBehavior(new LT(this)), this._batchSystem.addSystem(this._particleSystem);
32938
32938
  const t = this._particleSystem.emitter;
32939
32939
  this.context.scene.add(t), this.inheritVelocity.system && this.inheritVelocity.system !== this && (this.inheritVelocity = this.inheritVelocity.clone()), this.inheritVelocity.awake(this), oo && (console.log(this), this.gameObject.add(new Mi(1)));
32940
32940
  }
@@ -33369,10 +33369,10 @@ class py {
33369
33369
  KT([
33370
33370
  Ya([(s) => JT(s), ht])
33371
33371
  ], py.prototype, "components", 2);
33372
- var eA = Object.defineProperty, tA = Object.getOwnPropertyDescriptor, iA = (s, t, e, i) => {
33373
- for (var n = i > 1 ? void 0 : i ? tA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33372
+ var eE = Object.defineProperty, tE = Object.getOwnPropertyDescriptor, iE = (s, t, e, i) => {
33373
+ for (var n = i > 1 ? void 0 : i ? tE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33374
33374
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33375
- return i && n && eA(t, e, n), n;
33375
+ return i && n && eE(t, e, n), n;
33376
33376
  };
33377
33377
  class lf extends ht {
33378
33378
  constructor() {
@@ -33393,14 +33393,14 @@ class lf extends ht {
33393
33393
  }, e;
33394
33394
  }
33395
33395
  }
33396
- iA([
33396
+ iE([
33397
33397
  f(N)
33398
33398
  ], lf.prototype, "preset", 2);
33399
33399
  Mn("Antialiasing", lf);
33400
- var nA = Object.defineProperty, sA = Object.getOwnPropertyDescriptor, my = (s, t, e, i) => {
33401
- for (var n = i > 1 ? void 0 : i ? sA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33400
+ var nE = Object.defineProperty, sE = Object.getOwnPropertyDescriptor, my = (s, t, e, i) => {
33401
+ for (var n = i > 1 ? void 0 : i ? sE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33402
33402
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33403
- return i && n && nA(t, e, n), n;
33403
+ return i && n && nE(t, e, n), n;
33404
33404
  }, $p;
33405
33405
  const Ww = ($p = class extends ht {
33406
33406
  constructor() {
@@ -33464,10 +33464,10 @@ my([
33464
33464
  f(N)
33465
33465
  ], pl.prototype, "scatter", 2);
33466
33466
  Mn("Bloom", pl);
33467
- var oA = Object.defineProperty, rA = Object.getOwnPropertyDescriptor, aA = (s, t, e, i) => {
33468
- for (var n = i > 1 ? void 0 : i ? rA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33467
+ var oE = Object.defineProperty, rE = Object.getOwnPropertyDescriptor, aE = (s, t, e, i) => {
33468
+ for (var n = i > 1 ? void 0 : i ? rE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33469
33469
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33470
- return i && n && oA(t, e, n), n;
33470
+ return i && n && oE(t, e, n), n;
33471
33471
  };
33472
33472
  class cf extends ht {
33473
33473
  constructor() {
@@ -33484,17 +33484,17 @@ class cf extends ht {
33484
33484
  }, e;
33485
33485
  }
33486
33486
  }
33487
- aA([
33487
+ aE([
33488
33488
  f(N)
33489
33489
  ], cf.prototype, "intensity", 2);
33490
33490
  Mn("ChromaticAberration", cf);
33491
- var lA = Object.defineProperty, cA = Object.getOwnPropertyDescriptor, Vw = (s, t, e, i) => {
33492
- for (var n = i > 1 ? void 0 : i ? cA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33491
+ var lE = Object.defineProperty, cE = Object.getOwnPropertyDescriptor, Vw = (s, t, e, i) => {
33492
+ for (var n = i > 1 ? void 0 : i ? cE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33493
33493
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33494
- return i && n && lA(t, e, n), n;
33494
+ return i && n && lE(t, e, n), n;
33495
33495
  };
33496
33496
  const jb = x("debugpost");
33497
- var Ad = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Neutral = 1] = "Neutral", s[s.ACES = 2] = "ACES", s[s.AgX = 3] = "AgX", s[s.KhronosNeutral = 4] = "KhronosNeutral", s))(Ad || {});
33497
+ var Ed = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Neutral = 1] = "Neutral", s[s.ACES = 2] = "ACES", s[s.AgX = 3] = "AgX", s[s.KhronosNeutral = 4] = "KhronosNeutral", s))(Ed || {});
33498
33498
  function Op(s) {
33499
33499
  switch (s) {
33500
33500
  case 0:
@@ -33511,7 +33511,7 @@ function Op(s) {
33511
33511
  return Dc;
33512
33512
  }
33513
33513
  }
33514
- function hA(s) {
33514
+ function hE(s) {
33515
33515
  switch (s) {
33516
33516
  case Ru:
33517
33517
  return 0;
@@ -33554,7 +33554,7 @@ const Hw = class extends ht {
33554
33554
  }
33555
33555
  /** Set the tonemapping mode to e.g. "agx" */
33556
33556
  setMode(t) {
33557
- const e = Ad[t];
33557
+ const e = Ed[t];
33558
33558
  return e === void 0 ? (console.error("Invalid ToneMapping mode", t), this) : (this.mode.value = e, this);
33559
33559
  }
33560
33560
  get isToneMapping() {
@@ -33575,7 +33575,7 @@ const Hw = class extends ht {
33575
33575
  }
33576
33576
  }
33577
33577
  if (this.mode.isInitialized == !1) {
33578
- const i = hA(this.context.renderer.toneMapping);
33578
+ const i = hE(this.context.renderer.toneMapping);
33579
33579
  this.mode.initialize(i);
33580
33580
  }
33581
33581
  const t = Op(this.mode.value), e = new D.POSTPROCESSING.MODULE.ToneMappingEffect({
@@ -33583,8 +33583,8 @@ const Hw = class extends ht {
33583
33583
  });
33584
33584
  return this.mode.onValueChanged = (i) => {
33585
33585
  const n = Op(i);
33586
- e.mode = Bb(n), jb && console.log("ToneMapping mode changed to", Ad[i], n, e.mode);
33587
- }, jb && console.log("Use ToneMapping", Ad[this.mode.value], t, e.mode, "renderer.tonemapping: " + this.context.renderer.toneMapping), this.exposure.onValueChanged = (i) => {
33586
+ e.mode = Bb(n), jb && console.log("ToneMapping mode changed to", Ed[i], n, e.mode);
33587
+ }, jb && console.log("Use ToneMapping", Ed[this.mode.value], t, e.mode, "renderer.tonemapping: " + this.context.renderer.toneMapping), this.exposure.onValueChanged = (i) => {
33588
33588
  this.context.renderer.toneMappingExposure = i;
33589
33589
  }, e;
33590
33590
  }
@@ -33600,10 +33600,10 @@ Vw([
33600
33600
  f(N)
33601
33601
  ], Or.prototype, "exposure", 2);
33602
33602
  Mn("Tonemapping", Or);
33603
- var dA = Object.defineProperty, uA = Object.getOwnPropertyDescriptor, hf = (s, t, e, i) => {
33604
- for (var n = i > 1 ? void 0 : i ? uA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33603
+ var dE = Object.defineProperty, uE = Object.getOwnPropertyDescriptor, hf = (s, t, e, i) => {
33604
+ for (var n = i > 1 ? void 0 : i ? uE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33605
33605
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33606
- return i && n && dA(t, e, n), n;
33606
+ return i && n && dE(t, e, n), n;
33607
33607
  };
33608
33608
  class Fr extends ht {
33609
33609
  constructor() {
@@ -33649,12 +33649,12 @@ hf([
33649
33649
  f(N)
33650
33650
  ], Fr.prototype, "saturation", 2);
33651
33651
  Mn("ColorAdjustments", Fr);
33652
- var fA = Object.defineProperty, pA = Object.getOwnPropertyDescriptor, zr = (s, t, e, i) => {
33653
- for (var n = i > 1 ? void 0 : i ? pA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33652
+ var fE = Object.defineProperty, pE = Object.getOwnPropertyDescriptor, zr = (s, t, e, i) => {
33653
+ for (var n = i > 1 ? void 0 : i ? pE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33654
33654
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33655
- return i && n && fA(t, e, n), n;
33655
+ return i && n && fE(t, e, n), n;
33656
33656
  };
33657
- const mA = x("debugpost");
33657
+ const mE = x("debugpost");
33658
33658
  class es extends ht {
33659
33659
  constructor() {
33660
33660
  super(...arguments);
@@ -33682,7 +33682,7 @@ class es extends ht {
33682
33682
  }
33683
33683
  onCreateEffect() {
33684
33684
  if (this.mode === 0) {
33685
- mA && console.warn("DepthOfField: Mode is set to Off");
33685
+ mE && console.warn("DepthOfField: Mode is set to Off");
33686
33686
  return;
33687
33687
  }
33688
33688
  const e = new D.POSTPROCESSING.MODULE.DepthOfFieldEffect(this.context.mainCamera, {
@@ -33733,10 +33733,10 @@ class ru extends ht {
33733
33733
  return this.effect;
33734
33734
  }
33735
33735
  }
33736
- var gA = Object.defineProperty, yA = Object.getOwnPropertyDescriptor, _A = (s, t, e, i) => {
33737
- for (var n = i > 1 ? void 0 : i ? yA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33736
+ var gE = Object.defineProperty, yE = Object.getOwnPropertyDescriptor, _E = (s, t, e, i) => {
33737
+ for (var n = i > 1 ? void 0 : i ? yE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33738
33738
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33739
- return i && n && gA(t, e, n), n;
33739
+ return i && n && gE(t, e, n), n;
33740
33740
  };
33741
33741
  class df extends ht {
33742
33742
  constructor() {
@@ -33753,14 +33753,14 @@ class df extends ht {
33753
33753
  }, e;
33754
33754
  }
33755
33755
  }
33756
- _A([
33756
+ _E([
33757
33757
  f(N)
33758
33758
  ], df.prototype, "granularity", 2);
33759
33759
  Mn("PixelationEffect", df);
33760
- var bA = Object.defineProperty, vA = Object.getOwnPropertyDescriptor, xh = (s, t, e, i) => {
33761
- for (var n = i > 1 ? void 0 : i ? vA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33760
+ var bE = Object.defineProperty, vE = Object.getOwnPropertyDescriptor, xh = (s, t, e, i) => {
33761
+ for (var n = i > 1 ? void 0 : i ? vE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33762
33762
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33763
- return i && n && bA(t, e, n), n;
33763
+ return i && n && bE(t, e, n), n;
33764
33764
  };
33765
33765
  class Bo extends ht {
33766
33766
  constructor() {
@@ -33828,12 +33828,12 @@ xh([
33828
33828
  f(N)
33829
33829
  ], Bo.prototype, "luminanceInfluence", 2);
33830
33830
  Mn("ScreenSpaceAmbientOcclusion", Bo);
33831
- var wA = Object.defineProperty, xA = Object.getOwnPropertyDescriptor, Ur = (s, t, e, i) => {
33832
- for (var n = i > 1 ? void 0 : i ? xA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33831
+ var wE = Object.defineProperty, xE = Object.getOwnPropertyDescriptor, Ur = (s, t, e, i) => {
33832
+ for (var n = i > 1 ? void 0 : i ? xE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33833
33833
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33834
- return i && n && wA(t, e, n), n;
33834
+ return i && n && wE(t, e, n), n;
33835
33835
  };
33836
- const SA = x("debugN8AO");
33836
+ const SE = x("debugN8AO");
33837
33837
  var Ym = /* @__PURE__ */ ((s) => (s[s.Performance = 0] = "Performance", s[s.Low = 1] = "Low", s[s.Medium = 2] = "Medium", s[s.High = 3] = "High", s[s.Ultra = 4] = "Ultra", s))(Ym || {});
33838
33838
  class ts extends ht {
33839
33839
  constructor() {
@@ -33865,7 +33865,7 @@ class ts extends ht {
33865
33865
  ), a = Ym[this.quality];
33866
33866
  o.setQualityMode(a), o.configuration.transparencyAware = !1;
33867
33867
  const l = new Ls(i, n);
33868
- return o.configuration.beautyRenderTarget = l, o.configuration.autoRenderBeauty = !1, o.configuration.gammaCorrection = this.gammaCorrection, o.configuration.screenSpaceRadius = this.screenspaceRadius, SA && (o.enableDebugMode(), console.log(o), setInterval(() => {
33868
+ return o.configuration.beautyRenderTarget = l, o.configuration.autoRenderBeauty = !1, o.configuration.gammaCorrection = this.gammaCorrection, o.configuration.screenSpaceRadius = this.screenspaceRadius, SE && (o.enableDebugMode(), console.log(o), setInterval(() => {
33869
33869
  console.log("SSAO", o.lastTime);
33870
33870
  }, 1e3), setInterval(() => {
33871
33871
  console.log("SSAO", o.enabled, { ssao: o, autoRenderBeauty: o.configuration.autoRenderBeauty });
@@ -33905,10 +33905,10 @@ Ur([
33905
33905
  f()
33906
33906
  ], ts.prototype, "quality", 2);
33907
33907
  Mn("ScreenSpaceAmbientOcclusionN8", ts);
33908
- var CA = Object.defineProperty, PA = Object.getOwnPropertyDescriptor, Gw = (s, t, e, i) => {
33909
- for (var n = i > 1 ? void 0 : i ? PA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33908
+ var CE = Object.defineProperty, PE = Object.getOwnPropertyDescriptor, Gw = (s, t, e, i) => {
33909
+ for (var n = i > 1 ? void 0 : i ? PE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
33910
33910
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
33911
- return i && n && CA(t, e, n), n;
33911
+ return i && n && CE(t, e, n), n;
33912
33912
  };
33913
33913
  class uf extends ht {
33914
33914
  constructor() {
@@ -33921,7 +33921,7 @@ class uf extends ht {
33921
33921
  return "Sharpening";
33922
33922
  }
33923
33923
  onCreateEffect() {
33924
- return this._effect ?? (this._effect = new (OA())()), this.effect;
33924
+ return this._effect ?? (this._effect = new (OE())()), this.effect;
33925
33925
  }
33926
33926
  get effect() {
33927
33927
  return this._effect;
@@ -33952,7 +33952,7 @@ Gw([
33952
33952
  Gw([
33953
33953
  f()
33954
33954
  ], uf.prototype, "radius", 1);
33955
- function OA() {
33955
+ function OE() {
33956
33956
  const s = `
33957
33957
  void mainSupport() {
33958
33958
  vUv = uv;
@@ -34013,10 +34013,10 @@ function OA() {
34013
34013
  }
34014
34014
  return e;
34015
34015
  }
34016
- var MA = Object.defineProperty, RA = Object.getOwnPropertyDescriptor, ml = (s, t, e, i) => {
34017
- for (var n = i > 1 ? void 0 : i ? RA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
34016
+ var ME = Object.defineProperty, RE = Object.getOwnPropertyDescriptor, ml = (s, t, e, i) => {
34017
+ for (var n = i > 1 ? void 0 : i ? RE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
34018
34018
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
34019
- return i && n && MA(t, e, n), n;
34019
+ return i && n && ME(t, e, n), n;
34020
34020
  };
34021
34021
  class Gs extends ht {
34022
34022
  constructor() {
@@ -34064,10 +34064,10 @@ ml([
34064
34064
  f(N)
34065
34065
  ], Gs.prototype, "resolutionScale", 2);
34066
34066
  Mn("TiltShiftEffect", Gs);
34067
- var kA = Object.defineProperty, TA = Object.getOwnPropertyDescriptor, gy = (s, t, e, i) => {
34068
- for (var n = i > 1 ? void 0 : i ? TA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
34067
+ var kE = Object.defineProperty, TE = Object.getOwnPropertyDescriptor, gy = (s, t, e, i) => {
34068
+ for (var n = i > 1 ? void 0 : i ? TE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
34069
34069
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
34070
- return i && n && kA(t, e, n), n;
34070
+ return i && n && kE(t, e, n), n;
34071
34071
  };
34072
34072
  class gl extends ht {
34073
34073
  constructor() {
@@ -34106,7 +34106,7 @@ gy([
34106
34106
  ], gl.prototype, "center", 2);
34107
34107
  Mn("Vignette", gl);
34108
34108
  globalThis.false = globalThis.false !== void 0 ? globalThis.false : !0;
34109
- const as = x("debugpost"), AA = x("debugpostpasses"), Mp = Symbol("needle:postprocessing-handler"), Rp = Symbol("needle:previous-autoclear-state");
34109
+ const as = x("debugpost"), EE = x("debugpostpasses"), Mp = Symbol("needle:postprocessing-handler"), Rp = Symbol("needle:previous-autoclear-state");
34110
34110
  class qw {
34111
34111
  constructor(t) {
34112
34112
  r(this, "_composer", null);
@@ -34193,7 +34193,7 @@ class qw {
34193
34193
  h.dispose();
34194
34194
  l.removeAllPasses();
34195
34195
  const c = new D.POSTPROCESSING.MODULE.RenderPass(o, a);
34196
- if (c.name = "Render To Screen", c.mainScene = o, l.addPass(c), AA) {
34196
+ if (c.name = "Render To Screen", c.mainScene = o, l.addPass(c), EE) {
34197
34197
  this.orderEffects();
34198
34198
  for (const h of e)
34199
34199
  if (h instanceof D.POSTPROCESSING.MODULE.Effect) {
@@ -34283,10 +34283,10 @@ class qw {
34283
34283
  }
34284
34284
  }
34285
34285
  let kp = null;
34286
- var EA = Object.defineProperty, IA = Object.getOwnPropertyDescriptor, Xw = (s, t, e, i) => {
34287
- for (var n = i > 1 ? void 0 : i ? IA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
34286
+ var AE = Object.defineProperty, IE = Object.getOwnPropertyDescriptor, Xw = (s, t, e, i) => {
34287
+ for (var n = i > 1 ? void 0 : i ? IE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
34288
34288
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
34289
- return i && n && EA(t, e, n), n;
34289
+ return i && n && AE(t, e, n), n;
34290
34290
  };
34291
34291
  const Kr = x("debugpost");
34292
34292
  class Sh extends L {
@@ -34473,13 +34473,13 @@ async function yy(s) {
34473
34473
  const { NeedleEngineHTMLElement: t } = await Promise.resolve().then(() => RI);
34474
34474
  t.observedAttributes.includes(s) || t.observedAttributes.push(s);
34475
34475
  }
34476
- var LA = Object.defineProperty, DA = Object.getOwnPropertyDescriptor, xt = (s, t, e, i) => {
34477
- for (var n = i > 1 ? void 0 : i ? DA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
34476
+ var LE = Object.defineProperty, DE = Object.getOwnPropertyDescriptor, xt = (s, t, e, i) => {
34477
+ for (var n = i > 1 ? void 0 : i ? DE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
34478
34478
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
34479
- return i && n && LA(t, e, n), n;
34479
+ return i && n && LE(t, e, n), n;
34480
34480
  };
34481
- const Lt = x("debugsceneswitcher"), jA = x("sceneswitcher:clearscene"), Ed = "scene";
34482
- yy(Ed);
34481
+ const Lt = x("debugsceneswitcher"), jE = x("sceneswitcher:clearscene"), Ad = "scene";
34482
+ yy(Ad);
34483
34483
  const Zs = Promise.resolve(!1);
34484
34484
  class ot extends L {
34485
34485
  constructor() {
@@ -34602,14 +34602,14 @@ class ot extends L {
34602
34602
  async onEnable() {
34603
34603
  if (globalThis.addEventListener("popstate", this.onPopState), this.context.input.addEventListener(Ne.KeyDown, this.onInputKeyDown), this.context.input.addEventListener(Ne.PointerMove, this.onInputPointerMove), this.context.input.addEventListener(Ne.PointerUp, this.onInputPointerUp), this._engineElementOverserver || (this._engineElementOverserver = new MutationObserver((e) => {
34604
34604
  for (const i of e)
34605
- if (i.type === "attributes" && i.attributeName === Ed) {
34606
- const n = this.context.domElement.getAttribute(Ed);
34605
+ if (i.type === "attributes" && i.attributeName === Ad) {
34606
+ const n = this.context.domElement.getAttribute(Ad);
34607
34607
  n !== null && this.trySelectSceneFromValue(n);
34608
34608
  }
34609
34609
  })), this._engineElementOverserver.observe(this.context.domElement, {
34610
34610
  attributes: !0
34611
- }), this._preloadScheduler || (this._preloadScheduler = new BA(this)), this._preloadScheduler.maxLoadAhead = this.preloadNext, this._preloadScheduler.maxLoadBehind = this.preloadPrevious, this._preloadScheduler.maxConcurrent = this.preloadConcurrent, this._preloadScheduler.begin(2e3), this.autoLoadFirstScene && this._currentIndex === -1 && !await this.tryLoadFromQueryParam()) {
34612
- const e = this.context.domElement.getAttribute(Ed);
34611
+ }), this._preloadScheduler || (this._preloadScheduler = new BE(this)), this._preloadScheduler.maxLoadAhead = this.preloadNext, this._preloadScheduler.maxLoadBehind = this.preloadPrevious, this._preloadScheduler.maxConcurrent = this.preloadConcurrent, this._preloadScheduler.begin(2e3), this.autoLoadFirstScene && this._currentIndex === -1 && !await this.tryLoadFromQueryParam()) {
34612
+ const e = this.context.domElement.getAttribute(Ad);
34613
34613
  try {
34614
34614
  (e === null || !await this.trySelectSceneFromValue(e)) && this._currentIndex === -1 && this.select(0);
34615
34615
  } finally {
@@ -34788,7 +34788,7 @@ class ot extends L {
34788
34788
  if (!e.asset)
34789
34789
  return Lt && console.warn("Failed loading scene:", e), !1;
34790
34790
  if (this._currentIndex === i) {
34791
- if (Lt && console.log("ADD", e.url), this._currentScene = e, jA) {
34791
+ if (Lt && console.log("ADD", e.url), this._currentScene = e, jE) {
34792
34792
  const m = ((a = this.context.mainCameraComponent) == null ? void 0 : a.gameObject) || this.context.mainCamera;
34793
34793
  m == null || m.removeFromParent();
34794
34794
  const g = this.gameObject.removeFromParent();
@@ -34969,7 +34969,7 @@ function Fb(s) {
34969
34969
  const t = s.split("/").pop(), e = t == null ? void 0 : t.split(".").shift();
34970
34970
  return e != null && e.length ? e : s;
34971
34971
  }
34972
- class BA {
34972
+ class BE {
34973
34973
  /**
34974
34974
  * Creates a new PreLoadScheduler instance
34975
34975
  * @param rooms The SceneSwitcher that this scheduler belongs to
@@ -35015,7 +35015,7 @@ class BA {
35015
35015
  const d = c ? e + i : e - i;
35016
35016
  if (!(d < 0) && !(d < 0 || d >= o.length) && !this._loadTasks.some((u) => u.index === d)) {
35017
35017
  const u = o[d];
35018
- Lt && console.log("Preload scene", { roomIndex: d, searchForward: c, lastRoom: e, currentIndex: this._switcher.currentIndex, tasks: this._loadTasks.length }, u == null ? void 0 : u.url), new FA(d, u, this._loadTasks);
35018
+ Lt && console.log("Preload scene", { roomIndex: d, searchForward: c, lastRoom: e, currentIndex: this._switcher.currentIndex, tasks: this._loadTasks.length }, u == null ? void 0 : u.url), new FE(d, u, this._loadTasks);
35019
35019
  }
35020
35020
  }, 200);
35021
35021
  }
@@ -35045,7 +35045,7 @@ class BA {
35045
35045
  return !0;
35046
35046
  }
35047
35047
  }
35048
- class FA {
35048
+ class FE {
35049
35049
  /**
35050
35050
  * Creates a new LoadTask and begins loading immediately
35051
35051
  * @param index The index of the scene in the scenes array
@@ -35070,7 +35070,7 @@ class FA {
35070
35070
  t >= 0 && this.tasks.splice(t, 1);
35071
35071
  }
35072
35072
  }
35073
- function zA() {
35073
+ function zE() {
35074
35074
  return new Promise((s, t) => {
35075
35075
  const i = () => {
35076
35076
  i != null && (document.removeEventListener("pointerdown", i), document.removeEventListener("click", i), document.removeEventListener("dragstart", i), document.removeEventListener("touchstart", i), s());
@@ -35078,13 +35078,13 @@ function zA() {
35078
35078
  document.addEventListener("pointerdown", i), document.addEventListener("click", i), document.addEventListener("dragstart", i), document.addEventListener("touchstart", i);
35079
35079
  });
35080
35080
  }
35081
- async function UA(s) {
35082
- await zA(), s();
35081
+ async function UE(s) {
35082
+ await zE(), s();
35083
35083
  }
35084
- var NA = Object.defineProperty, $A = Object.getOwnPropertyDescriptor, Fi = (s, t, e, i) => {
35085
- for (var n = i > 1 ? void 0 : i ? $A(t, e) : t, o = s.length - 1, a; o >= 0; o--)
35084
+ var NE = Object.defineProperty, $E = Object.getOwnPropertyDescriptor, Fi = (s, t, e, i) => {
35085
+ for (var n = i > 1 ? void 0 : i ? $E(t, e) : t, o = s.length - 1, a; o >= 0; o--)
35086
35086
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
35087
- return i && n && NA(t, e, n), n;
35087
+ return i && n && NE(t, e, n), n;
35088
35088
  };
35089
35089
  const ft = x("debugvideo");
35090
35090
  var Qw = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.AdjustHeight = 1] = "AdjustHeight", s[s.AdjustWidth = 2] = "AdjustWidth", s))(Qw || {}), Yw = /* @__PURE__ */ ((s) => (s[s.VideoClip = 0] = "VideoClip", s[s.Url = 1] = "Url", s))(Yw || {}), Kw = /* @__PURE__ */ ((s) => (s[s.CameraFarPlane = 0] = "CameraFarPlane", s[s.CameraNearPlane = 1] = "CameraNearPlane", s[s.RenderTexture = 2] = "RenderTexture", s[s.MaterialOverride = 3] = "MaterialOverride", s))(Kw || {});
@@ -35137,7 +35137,7 @@ class _t extends L {
35137
35137
  var e;
35138
35138
  ft && console.log("HLS: available", this.clip), !(!this.shouldUseM3U || !this.url) && (this._hls || (this._hls = new Hls()), this.videoElement.autoplay = !0, this._hls.loadSource(this.url), this._hls.attachMedia(this.videoElement), (e = this._videoElement) == null || e.play(), ft && console.log("HLS: loaded", this.clip));
35139
35139
  });
35140
- UA(() => {
35140
+ UE(() => {
35141
35141
  this._receivedInput = !0, this.updateVideoElementSettings();
35142
35142
  }), this._targetObjects = [], x("videoscreenspace") && window.addEventListener("keydown", (e) => {
35143
35143
  e.key === "f" && (this.screenspace = !this.screenspace);
@@ -35347,7 +35347,7 @@ class _t extends L {
35347
35347
  if (e) {
35348
35348
  if (!this._videoTexture)
35349
35349
  return;
35350
- this._overlay || (this._overlay = new WA(this.context)), this._overlay.add(this._videoTexture);
35350
+ this._overlay || (this._overlay = new WE(this.context)), this._overlay.add(this._videoTexture);
35351
35351
  } else
35352
35352
  (i = this._overlay) == null || i.remove(this._videoTexture);
35353
35353
  this._overlay && (this._overlay.enabled = e);
@@ -35495,14 +35495,14 @@ Fi([
35495
35495
  Fi([
35496
35496
  f()
35497
35497
  ], _t.prototype, "audioOutputMode", 1);
35498
- class WA {
35498
+ class WE {
35499
35499
  constructor(t) {
35500
35500
  r(this, "context");
35501
35501
  r(this, "_videos", []);
35502
35502
  r(this, "_screenspaceModeQuad");
35503
35503
  r(this, "_isInScreenspaceMode", !1);
35504
35504
  r(this, "_input");
35505
- this.context = t, this._input = new VA(this);
35505
+ this.context = t, this._input = new VE(this);
35506
35506
  }
35507
35507
  get enabled() {
35508
35508
  return this._isInScreenspaceMode;
@@ -35527,8 +35527,8 @@ class WA {
35527
35527
  if (!t)
35528
35528
  return;
35529
35529
  if (this._isInScreenspaceMode = !0, !this._screenspaceModeQuad) {
35530
- if (this._screenspaceModeQuad = Ar.createPrimitive(Ua.Quad, {
35531
- material: new HA(t)
35530
+ if (this._screenspaceModeQuad = Er.createPrimitive(Ua.Quad, {
35531
+ material: new HE(t)
35532
35532
  }), !this._screenspaceModeQuad)
35533
35533
  return;
35534
35534
  this._screenspaceModeQuad.geometry.scale(2, 2, 2);
@@ -35548,7 +35548,7 @@ class WA {
35548
35548
  t && (t.screenAspect = this.context.domElement.clientWidth / this.context.domElement.clientHeight);
35549
35549
  }
35550
35550
  }
35551
- class VA {
35551
+ class VE {
35552
35552
  constructor(t) {
35553
35553
  r(this, "_onResizeScreenFn");
35554
35554
  r(this, "_onKeyUpFn");
@@ -35601,7 +35601,7 @@ class VA {
35601
35601
  this._onResizeScreenFn && (window.removeEventListener("resize", this._onResizeScreenFn), this._onResizeScreenFn = void 0), this._onKeyUpFn && (window.removeEventListener("keyup", this._onKeyUpFn), this._onKeyUpFn = void 0), this._onMouseWheelFn && (window.removeEventListener("wheel", this._onMouseWheelFn), this._onMouseWheelFn = void 0);
35602
35602
  }
35603
35603
  }
35604
- class HA extends wn {
35604
+ class HE extends wn {
35605
35605
  // maxZoom : number = 10
35606
35606
  constructor(e) {
35607
35607
  super();
@@ -35687,10 +35687,10 @@ class HA extends wn {
35687
35687
  this.offset = this.offset.set(0, 0), this.zoom = 1, this.needsUpdate = !0;
35688
35688
  }
35689
35689
  }
35690
- var GA = Object.defineProperty, qA = Object.getOwnPropertyDescriptor, Ch = (s, t, e, i) => {
35691
- for (var n = i > 1 ? void 0 : i ? qA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
35690
+ var GE = Object.defineProperty, qE = Object.getOwnPropertyDescriptor, Ch = (s, t, e, i) => {
35691
+ for (var n = i > 1 ? void 0 : i ? qE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
35692
35692
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
35693
- return i && n && GA(t, e, n), n;
35693
+ return i && n && GE(t, e, n), n;
35694
35694
  };
35695
35695
  const Pt = x("debugscreensharing");
35696
35696
  var Zw = /* @__PURE__ */ ((s) => (s[s.Screen = 0] = "Screen", s[s.Camera = 1] = "Camera", s[s.Canvas = 2] = "Canvas", s[s.Microphone = 3] = "Microphone", s))(Zw || {});
@@ -35988,10 +35988,10 @@ Ch([
35988
35988
  Ch([
35989
35989
  f()
35990
35990
  ], Nr.prototype, "deviceName", 2);
35991
- var XA = Object.defineProperty, QA = Object.getOwnPropertyDescriptor, Jw = (s, t, e, i) => {
35992
- for (var n = i > 1 ? void 0 : i ? QA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
35991
+ var XE = Object.defineProperty, QE = Object.getOwnPropertyDescriptor, Jw = (s, t, e, i) => {
35992
+ for (var n = i > 1 ? void 0 : i ? QE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
35993
35993
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
35994
- return i && n && XA(t, e, n), n;
35994
+ return i && n && XE(t, e, n), n;
35995
35995
  };
35996
35996
  class ff extends L {
35997
35997
  constructor() {
@@ -36005,7 +36005,7 @@ class ff extends L {
36005
36005
  if (this.gameObject instanceof q)
36006
36006
  this.gameObject instanceof q && this.gameObject.material && (this.gameObject.material = this.gameObject.material.clone(), this.targetMesh = this.gameObject, this.targetMesh.receiveShadow = !0);
36007
36007
  else {
36008
- const e = Ar.createPrimitive(Ua.Quad, {
36008
+ const e = Er.createPrimitive(Ua.Quad, {
36009
36009
  name: "ShadowCatcher",
36010
36010
  material: new Tt({
36011
36011
  // HACK heuristic to get approx. the same colors out as with the current default ShadowCatcher material
@@ -36093,10 +36093,10 @@ Jw([
36093
36093
  Jw([
36094
36094
  f(ce)
36095
36095
  ], ff.prototype, "shadowColor", 2);
36096
- var YA = Object.defineProperty, KA = Object.getOwnPropertyDescriptor, Ph = (s, t, e, i) => {
36097
- for (var n = i > 1 ? void 0 : i ? KA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
36096
+ var YE = Object.defineProperty, KE = Object.getOwnPropertyDescriptor, Ph = (s, t, e, i) => {
36097
+ for (var n = i > 1 ? void 0 : i ? KE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
36098
36098
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
36099
- return i && n && YA(t, e, n), n;
36099
+ return i && n && YE(t, e, n), n;
36100
36100
  };
36101
36101
  const Qi = x("debugskybox");
36102
36102
  yy("skybox-image");
@@ -36136,15 +36136,15 @@ function Ub(s) {
36136
36136
  const e = ex().find((i) => i.src === s);
36137
36137
  return e ? (Qi && console.log("Skybox: Found previously loaded texture for " + s), e.texture) : null;
36138
36138
  }
36139
- async function ZA(s) {
36139
+ async function ZE(s) {
36140
36140
  const t = await s;
36141
- tv(t, !0), Ee(t);
36141
+ tv(t, !0), Ae(t);
36142
36142
  }
36143
- function JA(s, t) {
36143
+ function JE(s, t) {
36144
36144
  const e = ex();
36145
36145
  for (; e.length > 5; ) {
36146
36146
  const i = e.shift();
36147
- i && ZA(i.texture);
36147
+ i && ZE(i.texture);
36148
36148
  }
36149
36149
  t.then((i) => tv(i, !1)), e.push({ src: s, texture: t });
36150
36150
  }
@@ -36234,7 +36234,7 @@ class zs extends L {
36234
36234
  */
36235
36235
  async setSkybox(e, i) {
36236
36236
  var a;
36237
- if (!this.activeAndEnabled || (e = eE(e, this.environment, this.background), !e))
36237
+ if (!this.activeAndEnabled || (e = eA(e, this.environment, this.background), !e))
36238
36238
  return !1;
36239
36239
  if (i ?? (i = e), this.isValidTextureType(i) || console.warn("Potentially invalid skybox url", i, "on", this.name), Qi && console.log("Set remote skybox url: " + e), this._prevUrl === e && this._prevLoadedEnvironment)
36240
36240
  return this.applySkybox(), !0;
@@ -36271,7 +36271,7 @@ class zs extends L {
36271
36271
  this._loader instanceof xa || (this._loader = new xa());
36272
36272
  Qi && console.log("Loading skybox: " + e);
36273
36273
  const c = this._loader.loadAsync(e);
36274
- return JA(i, c), await c;
36274
+ return JE(i, c), await c;
36275
36275
  }
36276
36276
  applySkybox() {
36277
36277
  var i;
@@ -36310,7 +36310,7 @@ Ph([
36310
36310
  Ph([
36311
36311
  f()
36312
36312
  ], zs.prototype, "allowNetworking", 2);
36313
- function eE(s, t, e) {
36313
+ function eA(s, t, e) {
36314
36314
  const i = t && !e;
36315
36315
  switch (s == null ? void 0 : s.toLowerCase()) {
36316
36316
  case "studio":
@@ -36324,10 +36324,10 @@ function eE(s, t, e) {
36324
36324
  }
36325
36325
  return s === void 0 ? null : s;
36326
36326
  }
36327
- var tE = Object.defineProperty, iE = Object.getOwnPropertyDescriptor, pf = (s, t, e, i) => {
36328
- for (var n = i > 1 ? void 0 : i ? iE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
36327
+ var tA = Object.defineProperty, iA = Object.getOwnPropertyDescriptor, pf = (s, t, e, i) => {
36328
+ for (var n = i > 1 ? void 0 : i ? iA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
36329
36329
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
36330
- return i && n && tE(t, e, n), n;
36330
+ return i && n && tA(t, e, n), n;
36331
36331
  }, Wp;
36332
36332
  const tx = (Wp = class extends L {
36333
36333
  constructor() {
@@ -36374,16 +36374,16 @@ pf([
36374
36374
  pf([
36375
36375
  f()
36376
36376
  ], $r.prototype, "positionAxes", 2);
36377
- var nE = Object.defineProperty, sE = Object.getOwnPropertyDescriptor, Oh = (s, t, e, i) => {
36378
- for (var n = i > 1 ? void 0 : i ? sE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
36377
+ var nA = Object.defineProperty, sA = Object.getOwnPropertyDescriptor, Oh = (s, t, e, i) => {
36378
+ for (var n = i > 1 ? void 0 : i ? sA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
36379
36379
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
36380
- return i && n && nE(t, e, n), n;
36380
+ return i && n && nA(t, e, n), n;
36381
36381
  };
36382
36382
  const xc = x("debugspatialtrigger"), Nb = new Co(), $b = new Co();
36383
- function oE(s, t) {
36383
+ function oA(s, t) {
36384
36384
  return Nb.mask = s, $b.mask = t, Nb.test($b);
36385
36385
  }
36386
- class As extends L {
36386
+ class Es extends L {
36387
36387
  constructor() {
36388
36388
  super(...arguments);
36389
36389
  r(this, "triggerMask", 0);
@@ -36410,7 +36410,7 @@ class As extends L {
36410
36410
  update() {
36411
36411
  this.currentIntersected.length = 0;
36412
36412
  for (const e of mf.triggers)
36413
- oE(e.triggerMask, this.triggerMask) && e.test(this.gameObject) && this.currentIntersected.push(e);
36413
+ oA(e.triggerMask, this.triggerMask) && e.test(this.gameObject) && this.currentIntersected.push(e);
36414
36414
  for (let e = this.lastIntersected.length - 1; e >= 0; e--) {
36415
36415
  const i = this.lastIntersected[e];
36416
36416
  this.currentIntersected.indexOf(i) < 0 && (this.onExitTrigger(i), this.lastIntersected.splice(e, 1));
@@ -36446,16 +36446,16 @@ class As extends L {
36446
36446
  }
36447
36447
  Oh([
36448
36448
  f()
36449
- ], As.prototype, "triggerMask", 2);
36449
+ ], Es.prototype, "triggerMask", 2);
36450
36450
  Oh([
36451
36451
  f(xe)
36452
- ], As.prototype, "onEnter", 2);
36452
+ ], Es.prototype, "onEnter", 2);
36453
36453
  Oh([
36454
36454
  f(xe)
36455
- ], As.prototype, "onStay", 2);
36455
+ ], Es.prototype, "onStay", 2);
36456
36456
  Oh([
36457
36457
  f(xe)
36458
- ], As.prototype, "onExit", 2);
36458
+ ], Es.prototype, "onExit", 2);
36459
36459
  var Vp;
36460
36460
  const Id = (Vp = class extends L {
36461
36461
  constructor() {
@@ -36498,7 +36498,7 @@ const Id = (Vp = class extends L {
36498
36498
  */
36499
36499
  raiseOnEnterEvent(t) {
36500
36500
  S.foreachComponent(this.gameObject, (e) => {
36501
- e !== t && e instanceof As && e.onEnterTrigger(this);
36501
+ e !== t && e instanceof Es && e.onEnterTrigger(this);
36502
36502
  }, !1);
36503
36503
  }
36504
36504
  /**
@@ -36507,7 +36507,7 @@ const Id = (Vp = class extends L {
36507
36507
  */
36508
36508
  raiseOnStayEvent(t) {
36509
36509
  S.foreachComponent(this.gameObject, (e) => {
36510
- e !== t && e instanceof As && e.onStayTrigger(this);
36510
+ e !== t && e instanceof Es && e.onStayTrigger(this);
36511
36511
  }, !1);
36512
36512
  }
36513
36513
  /**
@@ -36516,7 +36516,7 @@ const Id = (Vp = class extends L {
36516
36516
  */
36517
36517
  raiseOnExitEvent(t) {
36518
36518
  S.foreachComponent(this.gameObject, (e) => {
36519
- e !== t && e instanceof As && e.onExitTrigger(this);
36519
+ e !== t && e instanceof Es && e.onExitTrigger(this);
36520
36520
  }, !1);
36521
36521
  }
36522
36522
  }, /** Global registry of all active spatial triggers in the scene */
@@ -36525,10 +36525,10 @@ let mf = Id;
36525
36525
  Oh([
36526
36526
  f()
36527
36527
  ], mf.prototype, "triggerMask", 2);
36528
- var rE = Object.defineProperty, aE = Object.getOwnPropertyDescriptor, lE = (s, t, e, i) => {
36529
- for (var n = i > 1 ? void 0 : i ? aE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
36528
+ var rA = Object.defineProperty, aA = Object.getOwnPropertyDescriptor, lA = (s, t, e, i) => {
36529
+ for (var n = i > 1 ? void 0 : i ? aA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
36530
36530
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
36531
- return i && n && rE(t, e, n), n;
36531
+ return i && n && rA(t, e, n), n;
36532
36532
  };
36533
36533
  const Si = x("debugspectator");
36534
36534
  class _y extends L {
@@ -36622,11 +36622,11 @@ class _y extends L {
36622
36622
  return this.isSpectating && ((e = this.target) == null ? void 0 : e.currentObject) === ((i = this.context.players.getPlayerView(this.localId)) == null ? void 0 : i.currentObject);
36623
36623
  }
36624
36624
  awake() {
36625
- if (this._debug = new dE(this.context, this), this._networking = new pE(this.context, this), this._networking.awake(), S.setActive(this.gameObject, !1), this.cam = S.getComponent(this.gameObject, Pe), !this.cam) {
36625
+ if (this._debug = new dA(this.context, this), this._networking = new pA(this.context, this), this._networking.awake(), S.setActive(this.gameObject, !1), this.cam = S.getComponent(this.gameObject, Pe), !this.cam) {
36626
36626
  console.warn("SpectatorCamera: Spectator camera needs camera component on the same object.", this);
36627
36627
  return;
36628
36628
  }
36629
- !this._handler && this.cam && (this._handler = new cE(this.context, this.cam, this)), this.orbit = S.getComponent(this.context.mainCamera, we);
36629
+ !this._handler && this.cam && (this._handler = new cA(this.context, this.cam, this)), this.orbit = S.getComponent(this.context.mainCamera, we);
36630
36630
  }
36631
36631
  onDestroy() {
36632
36632
  var e, i;
@@ -36734,10 +36734,10 @@ class _y extends L {
36734
36734
  }
36735
36735
  }
36736
36736
  }
36737
- lE([
36737
+ lA([
36738
36738
  f()
36739
36739
  ], _y.prototype, "useKeys", 2);
36740
- class cE {
36740
+ class cA {
36741
36741
  constructor(t, e, i) {
36742
36742
  r(this, "context");
36743
36743
  r(this, "cam");
@@ -36799,12 +36799,12 @@ class cE {
36799
36799
  this.follow.followFactor = 3, this.follow.rotateFactor = 2, i.position.set(0, 0.5, 1.5);
36800
36800
  break;
36801
36801
  }
36802
- this.follow.flipForward = !1, ((h = this.view) == null ? void 0 : h.viewDevice) !== pr.Browser ? i.quaternion.copy(hE) : i.quaternion.identity();
36802
+ this.follow.flipForward = !1, ((h = this.view) == null ? void 0 : h.viewDevice) !== pr.Browser ? i.quaternion.copy(hA) : i.quaternion.identity();
36803
36803
  }
36804
36804
  }
36805
36805
  }
36806
- const hE = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
36807
- class dE {
36806
+ const hA = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
36807
+ class dA {
36808
36808
  constructor(t, e) {
36809
36809
  r(this, "context");
36810
36810
  r(this, "spectator");
@@ -36841,7 +36841,7 @@ class dE {
36841
36841
  }
36842
36842
  }
36843
36843
  }
36844
- class uE {
36844
+ class uA {
36845
36845
  constructor(t, e, i) {
36846
36846
  /** The user ID that is following */
36847
36847
  r(this, "guid");
@@ -36853,14 +36853,14 @@ class uE {
36853
36853
  this.guid = t, this.targetUserId = e, this.stoppedFollowing = i;
36854
36854
  }
36855
36855
  }
36856
- class fE {
36856
+ class fA {
36857
36857
  constructor(t, e) {
36858
36858
  r(this, "guid");
36859
36859
  r(this, "userId");
36860
36860
  this.guid = t.guid, this.userId = e;
36861
36861
  }
36862
36862
  }
36863
- class pE {
36863
+ class pA {
36864
36864
  constructor(t, e) {
36865
36865
  /** List of user IDs currently following this player */
36866
36866
  r(this, "followers", []);
@@ -36894,7 +36894,7 @@ class pE {
36894
36894
  */
36895
36895
  onSpectatedObjectChanged(t, e) {
36896
36896
  if (Si && console.log(this.context.connection.connectionId, "onSpectatedObjectChanged", t, e), this.context.connection.connectionId) {
36897
- const i = (t == null ? void 0 : t.userId) === void 0, n = i ? e : t == null ? void 0 : t.userId, o = new uE(this.context.connection.connectionId, n, i);
36897
+ const i = (t == null ? void 0 : t.userId) === void 0, n = i ? e : t == null ? void 0 : t.userId, o = new uA(this.context.connection.connectionId, n, i);
36898
36898
  this.context.connection.send("spectator-follower-changed", o);
36899
36899
  }
36900
36900
  }
@@ -36905,7 +36905,7 @@ class pE {
36905
36905
  onRequestFollowMe(t = !1) {
36906
36906
  if (Si && console.log("Request follow", this.context.connection.connectionId), this.context.connection.connectionId) {
36907
36907
  this.spectator.stopSpectating();
36908
- const e = t ? void 0 : this.context.connection.connectionId, i = new fE(this.spectator, e);
36908
+ const e = t ? void 0 : this.context.connection.connectionId, i = new fA(this.spectator, e);
36909
36909
  this.context.connection.send("spectator-request-follow", i);
36910
36910
  }
36911
36911
  }
@@ -37027,15 +37027,15 @@ class Bn {
37027
37027
  t.finish(e, void 0, !0);
37028
37028
  }
37029
37029
  }
37030
- var mE = Object.defineProperty, gE = Object.getOwnPropertyDescriptor, yE = (s, t, e, i) => {
37031
- for (var n = i > 1 ? void 0 : i ? gE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
37030
+ var mA = Object.defineProperty, gA = Object.getOwnPropertyDescriptor, yA = (s, t, e, i) => {
37031
+ for (var n = i > 1 ? void 0 : i ? gA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
37032
37032
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
37033
- return i && n && mE(t, e, n), n;
37033
+ return i && n && mA(t, e, n), n;
37034
37034
  };
37035
37035
  const lu = "SCAM";
37036
37036
  Q0(lu, Bn.getRootAsSyncedCameraModel);
37037
37037
  const mi = new pg();
37038
- class _E {
37038
+ class _A {
37039
37039
  // dontSave: boolean = true;
37040
37040
  // pos: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
37041
37041
  // rot: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
@@ -37105,7 +37105,7 @@ const Km = (Hp = class extends L {
37105
37105
  }
37106
37106
  if (!this.context.connection.isConnected || this.context.connection.connectionId === null)
37107
37107
  return;
37108
- this._model === null && (this._model = new _E(this.context.connection.connectionId, this.context.connection.connectionId + "_camera"));
37108
+ this._model === null && (this._model = new _A(this.context.connection.connectionId, this.context.connection.connectionId + "_camera"));
37109
37109
  const e = ie(t), i = Ce(t);
37110
37110
  (e.distanceTo(this._lastWorldPosition) > 1e-3 || i.angleTo(this._lastWorldQuaternion) > 0.01) && (this._needsUpdate = !0), this._lastWorldPosition.copy(e), this._lastWorldQuaternion.copy(i), !((!this._needsUpdate || this.context.time.frameCount % 2 !== 0) && !(this.context.time.realtimeSinceStartup - this._lastUpdateTime > this._camTimeoutInSeconds * 0.5)) && (this._lastUpdateTime = this.context.time.realtimeSinceStartup, this._needsUpdate = !1, this._model.send(t, this.context.connection), this.context.isInXR || this.context.players.setPlayerView(this.context.connection.connectionId, t, pr.Browser));
37111
37111
  }
@@ -37136,15 +37136,15 @@ const Km = (Hp = class extends L {
37136
37136
  }
37137
37137
  }, r(Hp, "instances", []), Hp);
37138
37138
  let by = Km;
37139
- yE([
37139
+ yA([
37140
37140
  f([I, re])
37141
37141
  ], by.prototype, "cameraPrefab", 2);
37142
- var bE = Object.defineProperty, vE = Object.getOwnPropertyDescriptor, Fo = (s, t, e, i) => {
37143
- for (var n = i > 1 ? void 0 : i ? vE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
37142
+ var bA = Object.defineProperty, vA = Object.getOwnPropertyDescriptor, Fo = (s, t, e, i) => {
37143
+ for (var n = i > 1 ? void 0 : i ? vA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
37144
37144
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
37145
- return i && n && bE(t, e, n), n;
37145
+ return i && n && bA(t, e, n), n;
37146
37146
  };
37147
- const Tp = "view", Ap = x("debugsyncedroom");
37147
+ const Tp = "view", Ep = x("debugsyncedroom");
37148
37148
  class is extends L {
37149
37149
  constructor() {
37150
37150
  super(...arguments);
@@ -37198,7 +37198,7 @@ class is extends L {
37198
37198
  /** @internal */
37199
37199
  awake() {
37200
37200
  var e;
37201
- this.joinRandomRoom === void 0 && ((e = this.roomName) == null ? void 0 : e.length) <= 0 && (this.joinRandomRoom = !0), Ap && console.log(`SyncedRoom roomName:${this.roomName}, urlParamName:${this.urlParameterName}, joinRandomRoom:${this.joinRandomRoom}`);
37201
+ this.joinRandomRoom === void 0 && ((e = this.roomName) == null ? void 0 : e.length) <= 0 && (this.joinRandomRoom = !0), Ep && console.log(`SyncedRoom roomName:${this.roomName}, urlParamName:${this.urlParameterName}, joinRandomRoom:${this.joinRandomRoom}`);
37202
37202
  }
37203
37203
  /** @internal */
37204
37204
  onEnable() {
@@ -37241,12 +37241,12 @@ class is extends L {
37241
37241
  return this.tryJoinRoom(e + 1);
37242
37242
  } else
37243
37243
  this.joinRandomRoom && (this.roomName === null || this.roomName === void 0 || this.roomName.length <= 0) && (this.roomName = this.generateRoomName());
37244
- return this.requireRoomParameter && !i ? ((Ap || B()) && console.warn('[SyncedRoom] Missing required room parameter "' + this.urlParameterName + `" in url - will not connect.
37244
+ return this.requireRoomParameter && !i ? ((Ep || B()) && console.warn('[SyncedRoom] Missing required room parameter "' + this.urlParameterName + `" in url - will not connect.
37245
37245
  To allow joining a room without a query parameter you can set "requireRoomParameter" to false.`), !1) : (this.context.connection.isConnected || this.context.connection.connect(), this._lastJoinedRoom = this.roomName, this._roomPrefix && (this.roomName = this._roomPrefix + this.roomName), this.roomName.length <= 0 ? (console.warn(`[SyncedRoom] Room name is not set so we can not join a networked room.
37246
37246
  Please choose one of the following options to fix this:
37247
37247
  A) Set a room name in the SyncedRoom component
37248
37248
  B) Set a room name in the URL parameter "?` + this.urlParameterName + `=my_room"
37249
- C) Set "joinRandomRoom" to true`), !1) : (Ap && console.log("Join " + this.roomName), this._userWantsToBeInARoom = !0, this.context.connection.joinRoom(this.roomName), !0));
37249
+ C) Set "joinRandomRoom" to true`), !1) : (Ep && console.log("Join " + this.roomName), this._userWantsToBeInARoom = !0, this.context.connection.joinRoom(this.roomName), !0));
37250
37250
  }
37251
37251
  /** @internal */
37252
37252
  update() {
@@ -37323,11 +37323,11 @@ Fo([
37323
37323
  Fo([
37324
37324
  f()
37325
37325
  ], is.prototype, "roomPrefix", 1);
37326
- function wE() {
37326
+ function wA() {
37327
37327
  const s = x("testwindowcount") || 0;
37328
- s && s > 0 && xE(s);
37328
+ s && s > 0 && xA(s);
37329
37329
  }
37330
- function xE(s) {
37330
+ function xA(s) {
37331
37331
  if (x("testwindow"))
37332
37332
  return null;
37333
37333
  const t = new URL(window.location.href);
@@ -37362,7 +37362,7 @@ function xE(s) {
37362
37362
  }
37363
37363
  class ix extends L {
37364
37364
  awake() {
37365
- wE();
37365
+ wA();
37366
37366
  }
37367
37367
  }
37368
37368
  class nx extends L {
@@ -37429,12 +37429,12 @@ class sx {
37429
37429
  }
37430
37430
  }
37431
37431
  r(sx, "temp", new v());
37432
- var SE = Object.defineProperty, CE = Object.getOwnPropertyDescriptor, gf = (s, t, e, i) => {
37433
- for (var n = i > 1 ? void 0 : i ? CE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
37432
+ var SA = Object.defineProperty, CA = Object.getOwnPropertyDescriptor, gf = (s, t, e, i) => {
37433
+ for (var n = i > 1 ? void 0 : i ? CA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
37434
37434
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
37435
- return i && n && SE(t, e, n), n;
37435
+ return i && n && SA(t, e, n), n;
37436
37436
  };
37437
- const PE = x("debugsignals");
37437
+ const PA = x("debugsignals");
37438
37438
  class vy {
37439
37439
  constructor() {
37440
37440
  r(this, "guid");
@@ -37472,7 +37472,7 @@ const us = (Gp = class extends L {
37472
37472
  }
37473
37473
  /** @internal */
37474
37474
  awake() {
37475
- PE && console.log("SignalReceiver awake", this);
37475
+ PA && console.log("SignalReceiver awake", this);
37476
37476
  }
37477
37477
  /** @internal */
37478
37478
  onEnable() {
@@ -37577,7 +37577,7 @@ class _f {
37577
37577
  return 0;
37578
37578
  }
37579
37579
  }
37580
- class OE {
37580
+ class OA {
37581
37581
  constructor(t) {
37582
37582
  r(this, "clip");
37583
37583
  r(this, "rootPositionOffset");
@@ -37685,7 +37685,7 @@ class wy extends _f {
37685
37685
  if (!this._didBind) {
37686
37686
  this._didBind = !0, $n && console.log(this.models), this.mixer ? this.target = this.mixer.getRoot() : console.warn("No mixer was assigned to animation track");
37687
37687
  for (const e of this.actions) {
37688
- const i = new OE(e);
37688
+ const i = new OA(e);
37689
37689
  this._actionOffsets.push(i);
37690
37690
  }
37691
37691
  this.target && (this._animator = S.getComponent(this.target, Ut) ?? null, this._animator && ib(this._animator.gameObject, this, !0));
@@ -37714,10 +37714,10 @@ class wy extends _f {
37714
37714
  const _ = this.models[y], b = this.actions[y], w = _.asset;
37715
37715
  b.weight = 0;
37716
37716
  const C = e >= _.start && e <= _.end, k = _.preExtrapolationMode, O = _.postExtrapolationMode, R = y < this.clips.length - 1 ? this.models[y + 1] : null;
37717
- let E = C, F = !1;
37718
- if (!E && !o && _.end < e && O !== fs.None ? (!R || R.start > e) && (E = !0, o = !0) : y == 0 && !E && !a && _.start > e && k !== fs.None && (!R || R.start < e) && (E = !0, F = !0, a = !0), E) {
37719
- let A = this.weight;
37720
- A *= this.evaluateWeight(e, y, this.models, E), A *= this.director.weight;
37717
+ let A = C, F = !1;
37718
+ if (!A && !o && _.end < e && O !== fs.None ? (!R || R.start > e) && (A = !0, o = !0) : y == 0 && !A && !a && _.start > e && k !== fs.None && (!R || R.start < e) && (A = !0, F = !0, a = !0), A) {
37719
+ let E = this.weight;
37720
+ E *= this.evaluateWeight(e, y, this.models, A), E *= this.director.weight;
37721
37721
  let z = C;
37722
37722
  if (F)
37723
37723
  switch (k) {
@@ -37750,12 +37750,12 @@ class wy extends _f {
37750
37750
  break;
37751
37751
  }
37752
37752
  _.reversed === !0 ? b.time = b.getClip().duration - U : b.time = U, b.timeScale = 0;
37753
- const j = Math.max(0, A);
37753
+ const j = Math.max(0, E);
37754
37754
  if (b.weight = j, l += j, b.clampWhenFinished = !1, b.isRunning() || b.play(), this._useclipOffsets) {
37755
37755
  const H = i == 0 ? this._totalOffsetPosition : this._totalOffsetPosition2, J = i == 0 ? this._totalOffsetRotation : this._totalOffsetRotation2;
37756
- i < 1 && (n = 1 - A), i += 1;
37756
+ i < 1 && (n = 1 - E), i += 1;
37757
37757
  const te = this._summedPos.set(0, 0, 0), ae = this._tempPos.set(0, 0, 0), ue = this._summedRot.identity(), De = this._tempRot.identity(), St = w.rotation;
37758
- St && (this._clipRotQuat.identity(), this._clipRotQuat.slerp(St, A));
37758
+ St && (this._clipRotQuat.identity(), this._clipRotQuat.slerp(St, E));
37759
37759
  const ai = this._actionOffsets[y];
37760
37760
  if (ai.hasOffsets)
37761
37761
  for (let Wt = 0; Wt < K; Wt++)
@@ -37806,7 +37806,7 @@ class wy extends _f {
37806
37806
  };
37807
37807
  }
37808
37808
  }
37809
- const ME = x("mutetimeline"), wa = class extends _f {
37809
+ const MA = x("mutetimeline"), wa = class extends _f {
37810
37810
  constructor() {
37811
37811
  super(...arguments);
37812
37812
  r(this, "models", []);
@@ -37868,7 +37868,7 @@ const ME = x("mutetimeline"), wa = class extends _f {
37868
37868
  this._playableDirectorResumed = this.director.isPlaying;
37869
37869
  }
37870
37870
  evaluate(e) {
37871
- if (ME || this.track.muted || this.director.speed < 0)
37871
+ if (MA || this.track.muted || this.director.speed < 0)
37872
37872
  return;
37873
37873
  const i = this.director.context.application.muted, n = this._playableDirectorResumed;
37874
37874
  this._playableDirectorResumed = !1;
@@ -37940,8 +37940,8 @@ const ME = x("mutetimeline"), wa = class extends _f {
37940
37940
  return wa._audioBuffers.set(n, o), o;
37941
37941
  }
37942
37942
  };
37943
- let Aa = wa;
37944
- r(Aa, "_audioBuffers", /* @__PURE__ */ new Map());
37943
+ let Ea = wa;
37944
+ r(Ea, "_audioBuffers", /* @__PURE__ */ new Map());
37945
37945
  class cu extends _f {
37946
37946
  constructor() {
37947
37947
  super(...arguments);
@@ -38027,10 +38027,10 @@ class xy extends _f {
38027
38027
  }
38028
38028
  }
38029
38029
  }
38030
- var RE = Object.defineProperty, kE = Object.getOwnPropertyDescriptor, rx = (s, t, e, i) => {
38031
- for (var n = i > 1 ? void 0 : i ? kE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38030
+ var RA = Object.defineProperty, kA = Object.getOwnPropertyDescriptor, rx = (s, t, e, i) => {
38031
+ for (var n = i > 1 ? void 0 : i ? kA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38032
38032
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
38033
- return i && n && RE(t, e, n), n;
38033
+ return i && n && RA(t, e, n), n;
38034
38034
  };
38035
38035
  const ls = x("debugtimeline");
38036
38036
  var qp;
@@ -38397,7 +38397,7 @@ const Zm = (qp = class extends L {
38397
38397
  } else if (o.type === Gi.Audio) {
38398
38398
  if (!o.clips || o.clips.length <= 0)
38399
38399
  continue;
38400
- const c = new Aa();
38400
+ const c = new Ea();
38401
38401
  c.director = this, c.track = o, c.audioSource = o.outputs.find((h) => h instanceof qe), this._audioTracks.push(c), t || (t = (n = this.context.mainCameraComponent) == null ? void 0 : n.gameObject.addComponent(fo)), c.listener = t.listener;
38402
38402
  for (let h = 0; h < o.clips.length; h++) {
38403
38403
  const d = o.clips[h];
@@ -38454,10 +38454,10 @@ rx([
38454
38454
  rx([
38455
38455
  f()
38456
38456
  ], Mr.prototype, "extrapolationMode", 2);
38457
- var TE = Object.defineProperty, AE = Object.getOwnPropertyDescriptor, bf = (s, t, e, i) => {
38458
- for (var n = i > 1 ? void 0 : i ? AE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38457
+ var TA = Object.defineProperty, EA = Object.getOwnPropertyDescriptor, bf = (s, t, e, i) => {
38458
+ for (var n = i > 1 ? void 0 : i ? EA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38459
38459
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
38460
- return i && n && TE(t, e, n), n;
38460
+ return i && n && TA(t, e, n), n;
38461
38461
  };
38462
38462
  class yl extends L {
38463
38463
  constructor() {
@@ -38599,10 +38599,10 @@ bf([
38599
38599
  bf([
38600
38600
  f()
38601
38601
  ], yl.prototype, "scaleSnap", 2);
38602
- var EE = Object.defineProperty, IE = Object.getOwnPropertyDescriptor, vf = (s, t, e, i) => {
38603
- for (var n = i > 1 ? void 0 : i ? IE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38602
+ var AA = Object.defineProperty, IA = Object.getOwnPropertyDescriptor, vf = (s, t, e, i) => {
38603
+ for (var n = i > 1 ? void 0 : i ? IA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38604
38604
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
38605
- return i && n && EE(t, e, n), n;
38605
+ return i && n && AA(t, e, n), n;
38606
38606
  };
38607
38607
  class Sy {
38608
38608
  constructor() {
@@ -38676,10 +38676,10 @@ class Cy extends sf {
38676
38676
  vf([
38677
38677
  f(Fe)
38678
38678
  ], Cy.prototype, "mainTexture", 1);
38679
- var LE = Object.defineProperty, DE = Object.getOwnPropertyDescriptor, zi = (s, t, e, i) => {
38680
- for (var n = i > 1 ? void 0 : i ? DE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38679
+ var LA = Object.defineProperty, DA = Object.getOwnPropertyDescriptor, zi = (s, t, e, i) => {
38680
+ for (var n = i > 1 ? void 0 : i ? DA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38681
38681
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
38682
- return i && n && LE(t, e, n), n;
38682
+ return i && n && LA(t, e, n), n;
38683
38683
  };
38684
38684
  const Xo = x("debugbutton");
38685
38685
  class zo {
@@ -38714,7 +38714,7 @@ zi([
38714
38714
  zi([
38715
38715
  f(ce)
38716
38716
  ], zo.prototype, "selectedColor", 2);
38717
- class jE {
38717
+ class jA {
38718
38718
  constructor() {
38719
38719
  r(this, "disabledTrigger");
38720
38720
  r(this, "highlightedTrigger");
@@ -38855,7 +38855,7 @@ zi([
38855
38855
  f()
38856
38856
  ], Uo.prototype, "transition", 2);
38857
38857
  zi([
38858
- f(jE)
38858
+ f(jA)
38859
38859
  ], Uo.prototype, "animationTriggers", 2);
38860
38860
  zi([
38861
38861
  f(Ut)
@@ -38863,10 +38863,10 @@ zi([
38863
38863
  zi([
38864
38864
  f()
38865
38865
  ], Uo.prototype, "interactable", 1);
38866
- var BE = Object.defineProperty, FE = Object.getOwnPropertyDescriptor, wf = (s, t, e, i) => {
38867
- for (var n = i > 1 ? void 0 : i ? FE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38866
+ var BA = Object.defineProperty, FA = Object.getOwnPropertyDescriptor, wf = (s, t, e, i) => {
38867
+ for (var n = i > 1 ? void 0 : i ? FA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
38868
38868
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
38869
- return i && n && BE(t, e, n), n;
38869
+ return i && n && BA(t, e, n), n;
38870
38870
  };
38871
38871
  const Js = x("debuginputfield");
38872
38872
  var ia;
@@ -39029,10 +39029,10 @@ wf([
39029
39029
  wf([
39030
39030
  f(xe)
39031
39031
  ], _l.prototype, "onEndEdit", 2);
39032
- var zE = Object.defineProperty, UE = Object.getOwnPropertyDescriptor, ax = (s, t, e, i) => {
39033
- for (var n = i > 1 ? void 0 : i ? UE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39032
+ var zA = Object.defineProperty, UA = Object.getOwnPropertyDescriptor, ax = (s, t, e, i) => {
39033
+ for (var n = i > 1 ? void 0 : i ? UA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39034
39034
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
39035
- return i && n && zE(t, e, n), n;
39035
+ return i && n && zA(t, e, n), n;
39036
39036
  };
39037
39037
  class xf extends L {
39038
39038
  constructor() {
@@ -39100,7 +39100,7 @@ ax([
39100
39100
  * See the License for the specific language governing permissions and
39101
39101
  * limitations under the License.
39102
39102
  */
39103
- const NE = {
39103
+ const NA = {
39104
39104
  topLight: {
39105
39105
  intensity: 500,
39106
39106
  position: [0.418, 16.199, 0.3]
@@ -39173,7 +39173,7 @@ const NE = {
39173
39173
  scale: [1, 0.1, 1]
39174
39174
  }
39175
39175
  ]
39176
- }, $E = {
39176
+ }, $A = {
39177
39177
  topLight: {
39178
39178
  intensity: 400,
39179
39179
  position: [0.5, 14, 0.5]
@@ -39257,7 +39257,7 @@ class Py extends Ri {
39257
39257
  super(), this.position.y = -3.5;
39258
39258
  const e = new Ia();
39259
39259
  e.deleteAttribute("uv");
39260
- const i = new Tt({ metalness: 0, side: Ou }), n = new Tt({ metalness: 0 }), o = t == "legacy" ? NE : $E, a = new sg(16777215, o.topLight.intensity, 28, 2);
39260
+ const i = new Tt({ metalness: 0, side: Ou }), n = new Tt({ metalness: 0 }), o = t == "legacy" ? NA : $A, a = new sg(16777215, o.topLight.intensity, 28, 2);
39261
39261
  a.position.set(...o.topLight.position), this.add(a);
39262
39262
  const l = new q(e, i);
39263
39263
  l.position.set(...o.room.position), l.scale.set(...o.room.scale), this.add(l);
@@ -39275,10 +39275,10 @@ class Py extends Ri {
39275
39275
  return e.color.setScalar(t), e;
39276
39276
  }
39277
39277
  }
39278
- var WE = Object.defineProperty, VE = Object.getOwnPropertyDescriptor, Sf = (s, t, e, i) => {
39279
- for (var n = i > 1 ? void 0 : i ? VE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39278
+ var WA = Object.defineProperty, VA = Object.getOwnPropertyDescriptor, Sf = (s, t, e, i) => {
39279
+ for (var n = i > 1 ? void 0 : i ? VA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39280
39280
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
39281
- return i && n && WE(t, e, n), n;
39281
+ return i && n && WA(t, e, n), n;
39282
39282
  }, Xp;
39283
39283
  const lx = (Xp = class extends L {
39284
39284
  constructor() {
@@ -39294,7 +39294,7 @@ const lx = (Xp = class extends L {
39294
39294
  if (t || (t = this.context.mainCamera), !t)
39295
39295
  return;
39296
39296
  let e = this.copyTargetRotation;
39297
- (this.context.isInVR || this.context.isInPassThrough) && (e = !1), Eu(this.gameObject, t, this.keepUpDirection, e), this.invertForward && this.gameObject.quaternion.multiply(lx.flipYQuat);
39297
+ (this.context.isInVR || this.context.isInPassThrough) && (e = !1), Au(this.gameObject, t, this.keepUpDirection, e), this.invertForward && this.gameObject.quaternion.multiply(lx.flipYQuat);
39298
39298
  }
39299
39299
  /** @internal */
39300
39300
  createBehaviours(t, e, i) {
@@ -39306,7 +39306,7 @@ const lx = (Xp = class extends L {
39306
39306
  const l = this.invertForward ? -1 : 1;
39307
39307
  a.setMatrix(a.getMatrix().multiply(new se().makeRotationZ(Math.PI / 2 * l))), e.setMatrix(e.getMatrix().multiply(new se().makeRotationZ(-Math.PI / 2 * l)));
39308
39308
  }
39309
- const o = new At(
39309
+ const o = new Et(
39310
39310
  "lookat " + this.name,
39311
39311
  zt.sceneStartTrigger(),
39312
39312
  ye.lookAtCameraAction(
@@ -39333,10 +39333,10 @@ Sf([
39333
39333
  Sf([
39334
39334
  f()
39335
39335
  ], bl.prototype, "copyTargetRotation", 2);
39336
- var HE = Object.defineProperty, GE = Object.getOwnPropertyDescriptor, Oy = (s, t, e, i) => {
39337
- for (var n = i > 1 ? void 0 : i ? GE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39336
+ var HA = Object.defineProperty, GA = Object.getOwnPropertyDescriptor, Oy = (s, t, e, i) => {
39337
+ for (var n = i > 1 ? void 0 : i ? GA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39338
39338
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
39339
- return i && n && HE(t, e, n), n;
39339
+ return i && n && HA(t, e, n), n;
39340
39340
  };
39341
39341
  class kh extends L {
39342
39342
  constructor() {
@@ -39397,10 +39397,10 @@ Oy([
39397
39397
  Oy([
39398
39398
  f()
39399
39399
  ], kh.prototype, "clickable", 2);
39400
- var qE = Object.defineProperty, XE = Object.getOwnPropertyDescriptor, vl = (s, t, e, i) => {
39401
- for (var n = i > 1 ? void 0 : i ? XE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39400
+ var qA = Object.defineProperty, XA = Object.getOwnPropertyDescriptor, vl = (s, t, e, i) => {
39401
+ for (var n = i > 1 ? void 0 : i ? XA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39402
39402
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
39403
- return i && n && qE(t, e, n), n;
39403
+ return i && n && qA(t, e, n), n;
39404
39404
  };
39405
39405
  class No extends L {
39406
39406
  constructor() {
@@ -39484,7 +39484,7 @@ NeedleXRSession.onSessionRequestStart(evt => {
39484
39484
  if (a || (a = new XRWebGLBinding(e.session, s.getContext())), a) {
39485
39485
  let l = null;
39486
39486
  if ("getCameraImage" in a) {
39487
- QE(s, t);
39487
+ QA(s, t);
39488
39488
  const c = s.properties.get(t);
39489
39489
  if (c)
39490
39490
  return l = a.getCameraImage(o.camera), c.__webglTexture = l, !0;
@@ -39499,7 +39499,7 @@ NeedleXRSession.onSessionRequestStart(evt => {
39499
39499
  return !1;
39500
39500
  }
39501
39501
  const Wb = /* @__PURE__ */ new WeakMap();
39502
- function QE(s, t) {
39502
+ function QA(s, t) {
39503
39503
  const e = Wb.get(t) || /* @__PURE__ */ new WeakSet();
39504
39504
  if (e.has(s))
39505
39505
  return;
@@ -39524,7 +39524,7 @@ function hx(s) {
39524
39524
  const l = i.renderer, c = l.xr.enabled && l.xr.isPresenting;
39525
39525
  if (c && i.currentFrameEvent != Re.EarlyUpdate)
39526
39526
  return console.warn("Screenshot: defer to access XR frame"), new Promise((F) => {
39527
- Us((A) => {
39527
+ Us((E) => {
39528
39528
  const z = hx(s);
39529
39529
  F(z);
39530
39530
  }, Re.EarlyUpdate, { once: !0 });
@@ -39537,8 +39537,8 @@ function hx(s) {
39537
39537
  l.xr.enabled = !1, l.xr.isPresenting = !1, h.style.width = `${n}px`, h.style.height = `${o}px`;
39538
39538
  const _ = l.getRenderTarget(), b = l.getClearColor(new le()), w = l.getClearAlpha(), C = i.scene.background, k = "aspect" in a ? a.aspect : null;
39539
39539
  try {
39540
- const E = s.render_events !== !1, F = new Array();
39541
- E && (Zc(i.scene, Ze, F), F.forEach((T) => {
39540
+ const A = s.render_events !== !1, F = new Array();
39541
+ A && (Zc(i.scene, Ze, F), F.forEach((T) => {
39542
39542
  var j;
39543
39543
  if (T == null || T.onBeforeRender(), T.isInstancingActive && T.instances)
39544
39544
  for (let H = 0; H < ((j = T.instances) == null ? void 0 : j.length); H++) {
@@ -39546,9 +39546,9 @@ function hx(s) {
39546
39546
  vs(J.object, !0);
39547
39547
  }
39548
39548
  })), t && (i.scene.background = null, l.setClearColor(0, 0)), s.background && (i.scene.background = null, l.setClearColor(s.background), s.background instanceof ce && l.setClearAlpha(s.background.a)), t && l.setClearAlpha(0), l.setSize(n, o, !1), "cam" in a && (a = a.threeCamera), a instanceof be && (a.aspect = n / o, a.updateProjectionMatrix());
39549
- const A = "type" in s && s.type === "texture";
39549
+ const E = "type" in s && s.type === "texture";
39550
39550
  let z = null;
39551
- A && (z = new Ls(n, o, {
39551
+ E && (z = new Ls(n, o, {
39552
39552
  wrapS: $y,
39553
39553
  wrapT: $y,
39554
39554
  format: 1023
@@ -39560,7 +39560,7 @@ function hx(s) {
39560
39560
  scene: i.scene,
39561
39561
  camera: a,
39562
39562
  renderer: l
39563
- })) : i.renderNow(a || null), a instanceof be && k != null && (a.aspect = k, a.updateProjectionMatrix()), E && F.forEach((T) => T.onAfterRender()), !e && "download_filename" in s && s.download_filename)
39563
+ })) : i.renderNow(a || null), a instanceof be && k != null && (a.aspect = k, a.updateProjectionMatrix()), A && F.forEach((T) => T.onAfterRender()), !e && "download_filename" in s && s.download_filename)
39564
39564
  switch ((O = s.download_filename.split(".").pop()) == null ? void 0 : O.toLowerCase()) {
39565
39565
  case "png":
39566
39566
  e = "image/png";
@@ -39574,7 +39574,7 @@ function hx(s) {
39574
39574
  break;
39575
39575
  }
39576
39576
  if (t && s.trim === !0) {
39577
- const T = YE(U);
39577
+ const T = YA(U);
39578
39578
  T && (U = T);
39579
39579
  }
39580
39580
  if ("type" in s) {
@@ -39619,7 +39619,7 @@ function hx(s) {
39619
39619
  let te = 0;
39620
39620
  localStorage.getItem(j) && (te = parseInt(sessionStorage.getItem(j) || "0")), te > 0 && (T = `${H.join()}-${te}.${J}`), te += 1, sessionStorage.setItem(j, te.toString());
39621
39621
  }
39622
- KE(K, T);
39622
+ KA(K, T);
39623
39623
  }
39624
39624
  return K;
39625
39625
  } finally {
@@ -39627,7 +39627,7 @@ function hx(s) {
39627
39627
  }
39628
39628
  return null;
39629
39629
  }
39630
- function YE(s) {
39630
+ function YA(s) {
39631
39631
  if (!("document" in globalThis))
39632
39632
  return null;
39633
39633
  const t = document.createElement("canvas");
@@ -39647,7 +39647,7 @@ function YE(s) {
39647
39647
  return g ? (m.width = u, m.height = p, g.drawImage(t, c, l, u, p, 0, 0, u, p), m) : null;
39648
39648
  }
39649
39649
  let Dl = null;
39650
- function KE(s, t) {
39650
+ function KA(s, t) {
39651
39651
  if (s) {
39652
39652
  if (!s.startsWith("data:image")) {
39653
39653
  console.error("Can not save image: Data url is not an image", s);
@@ -39717,10 +39717,10 @@ void main() {
39717
39717
  }
39718
39718
  s.makeFullscreenPlane = c;
39719
39719
  })(hu || (hu = {}));
39720
- var ZE = Object.defineProperty, JE = Object.getOwnPropertyDescriptor, eI = (s, t, e, i) => {
39721
- for (var n = i > 1 ? void 0 : i ? JE(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39720
+ var ZA = Object.defineProperty, JA = Object.getOwnPropertyDescriptor, eI = (s, t, e, i) => {
39721
+ for (var n = i > 1 ? void 0 : i ? JA(t, e) : t, o = s.length - 1, a; o >= 0; o--)
39722
39722
  (a = s[o]) && (n = (i ? a(t, e, n) : a(n)) || n);
39723
- return i && n && ZE(t, e, n), n;
39723
+ return i && n && ZA(t, e, n), n;
39724
39724
  };
39725
39725
  const Vb = x("debugarcamera");
39726
39726
  class Cf extends L {
@@ -40261,11 +40261,11 @@ class Vo extends L {
40261
40261
  this.dataTemplate.loadAssetAsync();
40262
40262
  else {
40263
40263
  const m = S.instantiate(this.dataTemplate.asset);
40264
- if (m.name = "xr-tracked-plane", p = m, E0(m, !1), m instanceof q)
40265
- Ee(m.geometry), m.geometry = this.createGeometry(h), this.makeOccluder(m, m.material, this.occluder && !this.dataTemplate);
40264
+ if (m.name = "xr-tracked-plane", p = m, A0(m, !1), m instanceof q)
40265
+ Ae(m.geometry), m.geometry = this.createGeometry(h), this.makeOccluder(m, m.material, this.occluder && !this.dataTemplate);
40266
40266
  else if (m instanceof mo)
40267
40267
  for (const _ of m.children)
40268
- _ instanceof q && (Ee(_.geometry), _.geometry = this.createGeometry(h), this.makeOccluder(_, _.material, this.occluder && !this.dataTemplate));
40268
+ _ instanceof q && (Ae(_.geometry), _.geometry = this.createGeometry(h), this.makeOccluder(_, _.material, this.occluder && !this.dataTemplate));
40269
40269
  const g = m.getComponent(Dr);
40270
40270
  if (g) {
40271
40271
  const _ = m;
@@ -40451,7 +40451,7 @@ M.add("BoxHelperComponent", wi);
40451
40451
  M.add("Camera", Pe);
40452
40452
  M.add("CharacterController", Ja);
40453
40453
  M.add("CharacterControllerInput", To);
40454
- M.add("Collider", Ei);
40454
+ M.add("Collider", Ai);
40455
40455
  M.add("SphereCollider", sh);
40456
40456
  M.add("BoxCollider", oh);
40457
40457
  M.add("MeshCollider", Dr);
@@ -40462,7 +40462,7 @@ M.add("DeleteBox", ka);
40462
40462
  M.add("Deletable", qv);
40463
40463
  M.add("DeviceFlag", qg);
40464
40464
  M.add("DragControls", Ci);
40465
- M.add("DropListener", Ao);
40465
+ M.add("DropListener", Eo);
40466
40466
  M.add("Duplicatable", rh);
40467
40467
  M.add("EventListEvent", Ug);
40468
40468
  M.add("EventTrigger", Kg);
@@ -40525,7 +40525,7 @@ M.add("ScreenCapture", Nr);
40525
40525
  M.add("ShadowCatcher", ff);
40526
40526
  M.add("RemoteSkybox", zs);
40527
40527
  M.add("SmoothFollow", $r);
40528
- M.add("SpatialTriggerReceiver", As);
40528
+ M.add("SpatialTriggerReceiver", Es);
40529
40529
  M.add("SpatialTrigger", mf);
40530
40530
  M.add("SpectatorCamera", _y);
40531
40531
  M.add("SpriteRenderer", Ii);
@@ -40537,7 +40537,7 @@ M.add("TestSimulateUserData", nx);
40537
40537
  M.add("PlayableDirector", Mr);
40538
40538
  M.add("SignalReceiver", Mh);
40539
40539
  M.add("AnimationTrackHandler", wy);
40540
- M.add("AudioTrackHandler", Aa);
40540
+ M.add("AudioTrackHandler", Ea);
40541
40541
  M.add("SignalTrackHandler", cu);
40542
40542
  M.add("ControlTrackHandler", xy);
40543
40543
  M.add("TransformGizmo", yl);
@@ -40552,8 +40552,8 @@ M.add("MaskableGraphic", sf);
40552
40552
  M.add("Image", Rh);
40553
40553
  M.add("RawImage", Cy);
40554
40554
  M.add("InputField", _l);
40555
- M.add("VerticalLayoutGroup", Aw);
40556
- M.add("HorizontalLayoutGroup", Ew);
40555
+ M.add("VerticalLayoutGroup", Ew);
40556
+ M.add("HorizontalLayoutGroup", Aw);
40557
40557
  M.add("GridLayoutGroup", Iw);
40558
40558
  M.add("Outline", ph);
40559
40559
  M.add("ObjectRaycaster", on);
@@ -40589,7 +40589,7 @@ function uI(s, t) {
40589
40589
  const i = WP(s, t);
40590
40590
  return i !== void 0 ? i : null;
40591
40591
  }
40592
- const fI = new $P(), Ep = Symbol("deserialize-queue");
40592
+ const fI = new $P(), Ap = Symbol("deserialize-queue");
40593
40593
  async function pI(s, t, e, i = null, n) {
40594
40594
  if (!e) {
40595
40595
  console.debug("Can not create component instances: gltf is null");
@@ -40601,15 +40601,15 @@ async function pI(s, t, e, i = null, n) {
40601
40601
  t = a === -1 ? t : t.substring(0, a);
40602
40602
  const l = new pv(e.scene);
40603
40603
  l.gltfId = t, l.context = s, l.gltf = e, l.nodeToObject = n == null ? void 0 : n.nodeToObjectMap, l.implementationInformation = fI;
40604
- let c = s[Ep];
40605
- if (c || (c = s[Ep] = []), e.scenes)
40604
+ let c = s[Ap];
40605
+ if (c || (c = s[Ap] = []), e.scenes)
40606
40606
  for (const h of e.scenes)
40607
40607
  await tg(l, h, c);
40608
40608
  if (e.children)
40609
40609
  for (const h of e.children)
40610
40610
  await tg(l, h, c);
40611
40611
  s.new_scripts_pre_setup_callbacks.push(() => {
40612
- const h = s[Ep];
40612
+ const h = s[Ap];
40613
40613
  if (h) {
40614
40614
  for (const d of h)
40615
40615
  mI(d, l);
@@ -40839,8 +40839,7 @@ async function fx(s, t) {
40839
40839
  const e = await gI(s, { useExtension: !0 }) || "unknown";
40840
40840
  _I && console.debug(`Determined file type: '${e}' for url '${s}'`, { registeredModelLoaderCallbacks: ya });
40841
40841
  for (const i of ya) {
40842
- const { callback: n } = i;
40843
- let o = n({ context: t, url: s, mimetype: e });
40842
+ const { callback: n } = i, o = n({ context: t, url: s, mimetype: e });
40844
40843
  if (o instanceof Promise && await o, o)
40845
40844
  return console.debug(`Using custom loader (${i.name || "unnamed"}) for ${e} at '${s}'`), o;
40846
40845
  }
@@ -41241,7 +41240,7 @@ CLICK HERE TO GET A LICENSE`, i.style.cursor = "pointer", i.style.userSelect = "
41241
41240
  let Dd = bu;
41242
41241
  r(Dd, "LoadingContainerClassName", "loading");
41243
41242
  $0(dx);
41244
- const Ae = x("debugwebcomponent"), Yb = "needle-engine", _x = "vr", bx = "desktop", PI = [gx, _x, bx], Ul = "ar-session-active", Nl = "desktop-session-active", OI = [
41243
+ const Ee = x("debugwebcomponent"), Yb = "needle-engine", _x = "vr", bx = "desktop", PI = [gx, _x, bx], Ul = "ar-session-active", Nl = "desktop-session-active", OI = [
41245
41244
  "public-key",
41246
41245
  "version",
41247
41246
  "hash",
@@ -41424,11 +41423,11 @@ class vx extends HTMLElement {
41424
41423
  * @internal
41425
41424
  */
41426
41425
  async connectedCallback() {
41427
- if (Ae && console.log("<needle-engine> connected"), this.setPublicKey(), this.setVersion(), this.addEventListener("xr-session-started", this.onXRSessionStarted), this.onSetupDesktop(), !this.getAttribute("src")) {
41426
+ if (Ee && console.log("<needle-engine> connected"), this.setPublicKey(), this.setVersion(), this.addEventListener("xr-session-started", this.onXRSessionStarted), this.onSetupDesktop(), !this.getAttribute("src")) {
41428
41427
  const i = globalThis["needle:codegen_files"];
41429
- Ae && console.log('src is null, trying to load from globalThis["needle:codegen_files"]', i), i && (Ae && console.log('globalThis["needle:codegen_files"]', i), this.setAttribute("src", i));
41428
+ Ee && console.log('src is null, trying to load from globalThis["needle:codegen_files"]', i), i && (Ee && console.log('globalThis["needle:codegen_files"]', i), this.setAttribute("src", i));
41430
41429
  }
41431
- Ae && console.log("src", this.getAttribute("src"));
41430
+ Ee && console.log("src", this.getAttribute("src"));
41432
41431
  const e = this._loadId;
41433
41432
  setTimeout(() => {
41434
41433
  this.isConnected !== !1 && e === this._loadId && this.onLoad();
@@ -41441,15 +41440,15 @@ class vx extends HTMLElement {
41441
41440
  var n;
41442
41441
  this.removeEventListener("xr-session-started", this.onXRSessionStarted), this._didFullyLoad = !1;
41443
41442
  const e = this.getAttribute("keep-alive"), i = e == null || (e == null ? void 0 : e.length) > 0 && e !== "true" && e !== "1";
41444
- Ae && console.warn('<needle-engine> disconnected, keep-alive: "' + e + '"', typeof e, "Dispose=", i), i ? (Ae && console.warn("<needle-engine> dispose"), (n = this._context) == null || n.dispose(), this._context = null, this._lastSourceFiles = null, this._loadId += 1) : Ae && console.warn("<needle-engine> is not disposed because keep-alive is set");
41443
+ Ee && console.warn('<needle-engine> disconnected, keep-alive: "' + e + '"', typeof e, "Dispose=", i), i ? (Ee && console.warn("<needle-engine> dispose"), (n = this._context) == null || n.dispose(), this._context = null, this._lastSourceFiles = null, this._loadId += 1) : Ee && console.warn("<needle-engine> is not disposed because keep-alive is set");
41445
41444
  }
41446
41445
  /**
41447
41446
  * @internal
41448
41447
  */
41449
41448
  attributeChangedCallback(e, i, n) {
41450
- switch (Ae && console.log("attributeChangedCallback", e, i, n), e) {
41449
+ switch (Ee && console.log("attributeChangedCallback", e, i, n), e) {
41451
41450
  case "src":
41452
- Ae && console.warn(`<needle-engine src>
41451
+ Ee && console.warn(`<needle-engine src>
41453
41452
  changed from "`, i, '" to "', n, '"'), this.onLoad();
41454
41453
  break;
41455
41454
  case "hash":
@@ -41458,16 +41457,16 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
41458
41457
  case "loadstart":
41459
41458
  case "progress":
41460
41459
  case "loadfinished":
41461
- typeof n == "string" && n.length > 0 && (Ae && console.log(e + " attribute changed", n), this.registerEventFromAttribute(e, n));
41460
+ typeof n == "string" && n.length > 0 && (Ee && console.log(e + " attribute changed", n), this.registerEventFromAttribute(e, n));
41462
41461
  break;
41463
41462
  case "dracoDecoderPath":
41464
- Ae && console.log("dracoDecoderPath", n), Y_(n);
41463
+ Ee && console.log("dracoDecoderPath", n), Y_(n);
41465
41464
  break;
41466
41465
  case "dracoDecoderType":
41467
- n === "wasm" || n === "js" ? (Ae && console.log("dracoDecoderType", n), K_(n)) : console.error("Invalid dracoDecoderType", n, "expected js or wasm");
41466
+ n === "wasm" || n === "js" ? (Ee && console.log("dracoDecoderType", n), K_(n)) : console.error("Invalid dracoDecoderType", n, "expected js or wasm");
41468
41467
  break;
41469
41468
  case "ktx2DecoderPath":
41470
- Ae && console.log("ktx2DecoderPath", n), Z_(n);
41469
+ Ee && console.log("ktx2DecoderPath", n), Z_(n);
41471
41470
  break;
41472
41471
  case "tone-mapping": {
41473
41472
  this.applyAttributes();
@@ -41500,16 +41499,16 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
41500
41499
  var y, _;
41501
41500
  if (!this.isConnected)
41502
41501
  return;
41503
- if (this._context || (Ae && console.warn("Create new context"), this._context = new ee({ domElement: this })), !this._context) {
41502
+ if (this._context || (Ee && console.warn("Create new context"), this._context = new ee({ domElement: this })), !this._context) {
41504
41503
  console.error("Needle Engine: Context not initialized");
41505
41504
  return;
41506
41505
  }
41507
41506
  const e = this.getSourceFiles();
41508
41507
  if (!this.checkIfSourceHasChanged(e, this._lastSourceFiles))
41509
41508
  return;
41510
- this._abortController && (Ae && console.warn("Abort previous loading process"), this._abortController.abort(), this._abortController = null), this._lastSourceFiles = e;
41509
+ this._abortController && (Ee && console.warn("Abort previous loading process"), this._abortController.abort(), this._abortController = null), this._lastSourceFiles = e;
41511
41510
  const i = ++this._loadId;
41512
- if ((e == null || e.length <= 0) && (Ae && console.warn("Clear scene", e), this._context.clear(), i !== this._loadId))
41511
+ if ((e == null || e.length <= 0) && (Ee && console.warn("Clear scene", e), this._context.clear(), i !== this._loadId))
41513
41512
  return;
41514
41513
  const n = this.getAttribute("alias");
41515
41514
  this.classList.add("loading");
@@ -41528,7 +41527,7 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
41528
41527
  }
41529
41528
  a === !1 && !o && (B() || (a = !0), console.warn("Needle Engine: You need a commercial license to override the default loading view. Visit https://needle.tools/pricing"), B() && ve('You need a <a target="_blank" href="https://needle.tools/pricing">commercial license</a> to override the default loading view. This will not work in production.')), !this._loadingView && a && (this._loadingView = new Dd(this)), a && (this._didFullyLoad !== !0 ? (y = this._loadingView) == null || y.onLoadingBegin("begin load") : setTimeout(() => {
41530
41529
  this._loadingView && this._loadingProgress01 < 0.3 && this._loadId === i && this._loadingView.onLoadingBegin("begin load");
41531
- }, 300)), Ae && console.warn(`--------------
41530
+ }, 300)), Ee && console.warn(`--------------
41532
41531
  Needle Engine: Begin loading ` + i + `
41533
41532
  `, e), this.onBeforeBeginLoading();
41534
41533
  const l = [], c = {
@@ -41545,13 +41544,13 @@ Needle Engine: Begin loading ` + i + `
41545
41544
  abortSignal: u.signal,
41546
41545
  onLoadingProgress: (b) => {
41547
41546
  var C;
41548
- if (Ae && console.debug("Loading progress: ", b), u.signal.aborted)
41547
+ if (Ee && console.debug("Loading progress: ", b), u.signal.aborted)
41549
41548
  return;
41550
41549
  const w = b.index;
41551
41550
  !d[w] && b.name && (d[w] = MI(b.name)), b.name = d[w], a && ((C = this._loadingView) == null || C.onLoadingUpdate(b)), c.name = b.name, c.progress = b.progress, this._loadingProgress01 = yx(b), c.totalProgress01 = this._loadingProgress01, this.dispatchEvent(h);
41552
41551
  },
41553
41552
  onLoadingFinished: (b, w, C) => {
41554
- Ae && console.debug(`Finished loading "${w}" (aborted? ${u.signal.aborted})`), !u.signal.aborted && C && l.push({
41553
+ Ee && console.debug(`Finished loading "${w}" (aborted? ${u.signal.aborted})`), !u.signal.aborted && C && l.push({
41555
41554
  src: w,
41556
41555
  file: C
41557
41556
  });
@@ -41559,7 +41558,7 @@ Needle Engine: Begin loading ` + i + `
41559
41558
  }, m = this.getAttribute("hash");
41560
41559
  m != null && (this._context.hash = m), this._context.alias = n, this._createContextPromise = this._context.create(p);
41561
41560
  const g = await this._createContextPromise;
41562
- if (this.applyAttributes(), Ae && console.warn(`--------------
41561
+ if (this.applyAttributes(), Ee && console.warn(`--------------
41563
41562
  Needle Engine: finished loading ` + i + `
41564
41563
  `, e, `Aborted? ${u.signal.aborted}`), u.signal.aborted) {
41565
41564
  console.log("Loading finished but aborted...");
@@ -41611,7 +41610,7 @@ Needle Engine: finished loading ` + i + `
41611
41610
  const i = this.getAttribute("background-color");
41612
41611
  if ((o = this._context) != null && o.renderer && typeof i == "string" && i.length > 0) {
41613
41612
  const a = ce.fromColorRepresentation(i);
41614
- Ae && console.debug("<needle-engine> background-color changed, str:", i, "→", a), this._context.renderer.setClearColor(a, a.alpha), this.context.scene.background = null;
41613
+ Ee && console.debug("<needle-engine> background-color changed, str:", i, "→", a), this._context.renderer.setClearColor(a, a.alpha), this.context.scene.background = null;
41615
41614
  }
41616
41615
  }
41617
41616
  internalSetLoadingMessage(e) {
@@ -41709,7 +41708,7 @@ Needle Engine: finished loading ` + i + `
41709
41708
  onSetupAR() {
41710
41709
  this.classList.add(Ul), this.classList.remove(Nl);
41711
41710
  const e = this.getAROverlayContainer();
41712
- Ae && console.warn("onSetupAR:", e), e && (e.classList.add(Ul), e.classList.remove(Nl)), this.foreachHtmlElement((i) => this.setupElementsForMode(i, gx));
41711
+ Ee && console.warn("onSetupAR:", e), e && (e.classList.add(Ul), e.classList.remove(Nl)), this.foreachHtmlElement((i) => this.setupElementsForMode(i, gx));
41713
41712
  }
41714
41713
  onSetupVR() {
41715
41714
  this.classList.remove(Ul), this.classList.remove(Nl), this.foreachHtmlElement((e) => this.setupElementsForMode(e, _x));
@@ -41737,11 +41736,11 @@ Needle Engine: finished loading ` + i + `
41737
41736
  }
41738
41737
  onBeforeBeginLoading() {
41739
41738
  const e = this.getAttribute("dracoDecoderPath");
41740
- e && (Ae && console.log("using custom draco decoder path", e), Y_(e));
41739
+ e && (Ee && console.log("using custom draco decoder path", e), Y_(e));
41741
41740
  const i = this.getAttribute("dracoDecoderType");
41742
- i && (Ae && console.log("using custom draco decoder type", i), K_(i));
41741
+ i && (Ee && console.log("using custom draco decoder type", i), K_(i));
41743
41742
  const n = this.getAttribute("ktx2DecoderPath");
41744
- n && (Ae && console.log("using custom ktx2 decoder path", n), Z_(n));
41743
+ n && (Ee && console.log("using custom ktx2 decoder path", n), Z_(n));
41745
41744
  }
41746
41745
  }
41747
41746
  typeof window < "u" && !window.customElements.get(Yb) && window.customElements.define(Yb, vx);
@@ -42317,7 +42316,7 @@ Error:`, l), null;
42317
42316
  }
42318
42317
  }
42319
42318
  postStep() {
42320
- this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new AI(this.world, this.eventQueue)), this.collisionHandler && (this.collisionHandler.handleCollisionEvents(), this.collisionHandler.update()), this.updateDebugRendering(this.world));
42319
+ this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new EI(this.world, this.eventQueue)), this.collisionHandler && (this.collisionHandler.handleCollisionEvents(), this.collisionHandler.update()), this.updateDebugRendering(this.world));
42321
42320
  }
42322
42321
  updateDebugRendering(t) {
42323
42322
  var e, i, n, o;
@@ -42434,7 +42433,7 @@ Error:`, l), null;
42434
42433
  };
42435
42434
  let Jr = Ic;
42436
42435
  r(Jr, "_didLoadPhysicsEngine", !1), r(Jr, "_matricesBuffer", []), r(Jr, "centerConnectionPos", { x: 0, y: 0, z: 0 }), r(Jr, "centerConnectionRot", { x: 0, y: 0, z: 0, w: 1 });
42437
- class AI {
42436
+ class EI {
42438
42437
  constructor(t, e) {
42439
42438
  r(this, "world");
42440
42439
  r(this, "eventQueue");
@@ -42618,7 +42617,7 @@ function Zb(s) {
42618
42617
  function uD() {
42619
42618
  return ig > 0;
42620
42619
  }
42621
- const EI = {
42620
+ const AI = {
42622
42621
  binary: !0,
42623
42622
  animations: !0
42624
42623
  };
@@ -42627,7 +42626,7 @@ async function fD(s) {
42627
42626
  throw new Error("No context provided to exportAsGLTF");
42628
42627
  s.scene || (s.scene = s.context.scene);
42629
42628
  const t = {
42630
- ...EI,
42629
+ ...AI,
42631
42630
  ...s
42632
42631
  }, { context: e } = t, i = new f0();
42633
42632
  i.register((l) => new nw(l)), i.register((l) => new JR(l)), i.register((l) => new Kv(l)), iw(i, t.context);
@@ -42667,7 +42666,7 @@ class II {
42667
42666
  }
42668
42667
  e.update(0);
42669
42668
  }), t.context.scene.traverse((e) => {
42670
- if (!Em(e)) {
42669
+ if (!Am(e)) {
42671
42670
  const i = e.parent;
42672
42671
  i && (e.removeFromParent(), this._undo.push(() => i.add(e)));
42673
42672
  }
@@ -42692,7 +42691,7 @@ function LI(s, t, e) {
42692
42691
  return Array.from(i);
42693
42692
  }
42694
42693
  const e0 = "needle-button", jp = B();
42695
- var cr, hr, dr, Qt, _s, Ea, vu, xx, wu, Sx, Yc;
42694
+ var cr, hr, dr, Qt, _s, Aa, vu, xx, wu, Sx, Yc;
42696
42695
  class wx extends HTMLElement {
42697
42696
  constructor() {
42698
42697
  super();
@@ -42706,7 +42705,7 @@ class wx extends HTMLElement {
42706
42705
  Ui(this, Qt, void 0);
42707
42706
  /** If AR or VR is requested we create and use the webxr button factory to create a button with default behaviour */
42708
42707
  Ui(this, _s, void 0);
42709
- Ui(this, Ea, void 0);
42708
+ Ui(this, Aa, void 0);
42710
42709
  Ui(this, Yc, (e) => {
42711
42710
  jp && console.log("Needle Button clicked"), !e.defaultPrevented && fe(this, Qt) && fe(this, Qt).click();
42712
42711
  });
@@ -42716,7 +42715,7 @@ class wx extends HTMLElement {
42716
42715
  Cl(this, vu, xx).call(this);
42717
42716
  }
42718
42717
  }
42719
- cr = new WeakMap(), hr = new WeakMap(), dr = new WeakMap(), Qt = new WeakMap(), _s = new WeakMap(), Ea = new WeakMap(), vu = new WeakSet(), xx = function() {
42718
+ cr = new WeakMap(), hr = new WeakMap(), dr = new WeakMap(), Qt = new WeakMap(), _s = new WeakMap(), Aa = new WeakMap(), vu = new WeakSet(), xx = function() {
42720
42719
  var i, n;
42721
42720
  if ((i = fe(this, Qt)) == null || i.remove(), this.getAttribute("ar") != null)
42722
42721
  fe(this, _s) ?? cn(this, _s, new So()), cn(this, Qt, fe(this, _s).createARButton());
@@ -42762,7 +42761,7 @@ cr = new WeakMap(), hr = new WeakMap(), dr = new WeakMap(), Qt = new WeakMap(),
42762
42761
  justify-content: center;
42763
42762
  gap: .5rem;
42764
42763
  }
42765
- `), fe(this, hr).innerHTML = fe(this, Qt).innerHTML, fe(this, hr).style.cssText = "display: flex; align-items: center; justify-content: center;", fe(this, Qt).innerHTML = fe(this, hr).outerHTML, fe(this, cr).innerHTML = fe(this, Qt).outerHTML, fe(this, cr).prepend(fe(this, dr)), Yd(Om, { element: fe(this, cr) }), (n = fe(this, Ea)) == null || n.disconnect(), fe(this, Ea) ?? cn(this, Ea, new MutationObserver(() => Cl(this, wu, Sx).call(this))), fe(this, Ea).observe(fe(this, Qt), { attributes: !0 }), jp && console.log("Needle Button updated");
42764
+ `), fe(this, hr).innerHTML = fe(this, Qt).innerHTML, fe(this, hr).style.cssText = "display: flex; align-items: center; justify-content: center;", fe(this, Qt).innerHTML = fe(this, hr).outerHTML, fe(this, cr).innerHTML = fe(this, Qt).outerHTML, fe(this, cr).prepend(fe(this, dr)), Yd(Om, { element: fe(this, cr) }), (n = fe(this, Aa)) == null || n.disconnect(), fe(this, Aa) ?? cn(this, Aa, new MutationObserver(() => Cl(this, wu, Sx).call(this))), fe(this, Aa).observe(fe(this, Qt), { attributes: !0 }), jp && console.log("Needle Button updated");
42766
42765
  }, wu = new WeakSet(), Sx = function() {
42767
42766
  fe(this, Qt) && (fe(this, Qt).style.display === "none" ? this.style.display = "none" : this.style.display === "none" && (this.style.display = ""));
42768
42767
  }, Yc = new WeakMap(), r(wx, "observedAttributes", ["ar", "vr", "quicklook"]);
@@ -42951,7 +42950,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42951
42950
  AudioExtension: il,
42952
42951
  AudioListener: fo,
42953
42952
  AudioSource: qe,
42954
- AudioTrackHandler: Aa,
42953
+ AudioTrackHandler: Ea,
42955
42954
  Avatar: Cr,
42956
42955
  AvatarBlink_Simple: Za,
42957
42956
  AvatarEyeLook_Rotation: ih,
@@ -42966,7 +42965,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42966
42965
  BaseUIComponent: Sn,
42967
42966
  BasicIKConstraint: Wv,
42968
42967
  BehaviorExtension: Cw,
42969
- BehaviorModel: At,
42968
+ BehaviorModel: Et,
42970
42969
  BloomEffect: pl,
42971
42970
  BoxCollider: oh,
42972
42971
  BoxGizmo: cl,
@@ -42983,7 +42982,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42983
42982
  CharacterController: Ja,
42984
42983
  CharacterControllerInput: To,
42985
42984
  ChromaticAberration: cf,
42986
- Collider: Ei,
42985
+ Collider: Ai,
42987
42986
  ColorAdjustments: Fr,
42988
42987
  ColorBySpeedModule: wh,
42989
42988
  ColorOverLifetimeModule: uy,
@@ -42996,7 +42995,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42996
42995
  DeviceFlag: qg,
42997
42996
  DocumentExtension: jI,
42998
42997
  DragControls: Ci,
42999
- DropListener: Ao,
42998
+ DropListener: Eo,
43000
42999
  Duplicatable: rh,
43001
43000
  EffectWrapper: ru,
43002
43001
  EmissionModule: jo,
@@ -43020,7 +43019,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43020
43019
  GroupActionModel: rr,
43021
43020
  HideOnStart: lr,
43022
43021
  HingeJoint: of,
43023
- HorizontalLayoutGroup: Ew,
43022
+ HorizontalLayoutGroup: Aw,
43024
43023
  Image: Rh,
43025
43024
  InheritVelocityModule: fl,
43026
43025
  InputField: _l,
@@ -43096,10 +43095,10 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43096
43095
  SpatialGrabRaycaster: yr,
43097
43096
  SpatialHtml: xf,
43098
43097
  SpatialTrigger: mf,
43099
- SpatialTriggerReceiver: As,
43098
+ SpatialTriggerReceiver: Es,
43100
43099
  SpectatorCamera: _y,
43101
43100
  SphereCollider: sh,
43102
- Sprite: Eo,
43101
+ Sprite: Ao,
43103
43102
  SpriteData: vr,
43104
43103
  SpriteRenderer: Ii,
43105
43104
  SpriteSheet: Hc,
@@ -43130,7 +43129,7 @@ const pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43130
43129
  UsageMarker: Qu,
43131
43130
  VariantAction: bw,
43132
43131
  VelocityOverLifetimeModule: tt,
43133
- VerticalLayoutGroup: Aw,
43132
+ VerticalLayoutGroup: Ew,
43134
43133
  VideoPlayer: _t,
43135
43134
  Vignette: gl,
43136
43135
  VisibilityAction: Ju,
@@ -43296,7 +43295,7 @@ export {
43296
43295
  il as AudioExtension,
43297
43296
  fo as AudioListener,
43298
43297
  qe as AudioSource,
43299
- Aa as AudioTrackHandler,
43298
+ Ea as AudioTrackHandler,
43300
43299
  Cr as Avatar,
43301
43300
  Za as AvatarBlink_Simple,
43302
43301
  ih as AvatarEyeLook_Rotation,
@@ -43313,7 +43312,7 @@ export {
43313
43312
  Sn as BaseUIComponent,
43314
43313
  Wv as BasicIKConstraint,
43315
43314
  Cw as BehaviorExtension,
43316
- At as BehaviorModel,
43315
+ Et as BehaviorModel,
43317
43316
  Ha as BlobStorage,
43318
43317
  pl as BloomEffect,
43319
43318
  oh as BoxCollider,
@@ -43336,7 +43335,7 @@ export {
43336
43335
  nn as CircularBuffer,
43337
43336
  _r as ClearFlags,
43338
43337
  fs as ClipExtrapolation,
43339
- Ei as Collider,
43338
+ Ai as Collider,
43340
43339
  rR as Collision,
43341
43340
  zg as CollisionDetectionMode,
43342
43341
  Fr as ColorAdjustments,
@@ -43365,7 +43364,7 @@ export {
43365
43364
  jI as DocumentExtension,
43366
43365
  Ci as DragControls,
43367
43366
  Xv as DragMode,
43368
- Ao as DropListener,
43367
+ Eo as DropListener,
43369
43368
  rh as Duplicatable,
43370
43369
  ru as EffectWrapper,
43371
43370
  jo as EmissionModule,
@@ -43400,7 +43399,7 @@ export {
43400
43399
  Wg as HideFlags,
43401
43400
  lr as HideOnStart,
43402
43401
  of as HingeJoint,
43403
- Ew as HorizontalLayoutGroup,
43402
+ Aw as HorizontalLayoutGroup,
43404
43403
  LL as HostData,
43405
43404
  Rh as Image,
43406
43405
  fc as ImageReference,
@@ -43441,7 +43440,7 @@ export {
43441
43440
  Yu as MeshRenderer,
43442
43441
  Q as MinMaxCurve,
43443
43442
  ji as MinMaxGradient,
43444
- Eh as NEKeyboardEvent,
43443
+ Ah as NEKeyboardEvent,
43445
43444
  eo as NEPointerEvent,
43446
43445
  wx as NeedleButtonElement,
43447
43446
  vx as NeedleEngineHTMLElement,
@@ -43460,9 +43459,9 @@ export {
43460
43459
  MP as NewInstanceModel,
43461
43460
  Oe as NoiseModule,
43462
43461
  on as ObjectRaycaster,
43463
- Ar as ObjectUtils,
43462
+ Er as ObjectUtils,
43464
43463
  hl as OffsetConstraint,
43465
- Af as OneEuroFilter,
43464
+ Ef as OneEuroFilter,
43466
43465
  M0 as OneEuroFilterXYZ,
43467
43466
  kh as OpenURL,
43468
43467
  we as OrbitControls,
@@ -43545,12 +43544,12 @@ export {
43545
43544
  yr as SpatialGrabRaycaster,
43546
43545
  xf as SpatialHtml,
43547
43546
  mf as SpatialTrigger,
43548
- As as SpatialTriggerReceiver,
43547
+ Es as SpatialTriggerReceiver,
43549
43548
  _y as SpectatorCamera,
43550
43549
  sh as SphereCollider,
43551
43550
  Z0 as SphereIntersection,
43552
43551
  aR as SphereOverlapResult,
43553
- Eo as Sprite,
43552
+ Ao as Sprite,
43554
43553
  vr as SpriteData,
43555
43554
  Ii as SpriteRenderer,
43556
43555
  Hc as SpriteSheet,
@@ -43571,7 +43570,7 @@ export {
43571
43570
  ny as TextExtension,
43572
43571
  ri as TextureSheetAnimationModule,
43573
43572
  Gs as TiltShiftEffect,
43574
- AO as Time,
43573
+ EO as Time,
43575
43574
  Or as ToneMappingEffect,
43576
43575
  _f as TrackHandler,
43577
43576
  Gi as TrackType,
@@ -43596,7 +43595,7 @@ export {
43596
43595
  Vn as VERSION,
43597
43596
  bw as VariantAction,
43598
43597
  tt as VelocityOverLifetimeModule,
43599
- Aw as VerticalLayoutGroup,
43598
+ Ew as VerticalLayoutGroup,
43600
43599
  _t as VideoPlayer,
43601
43600
  pr as ViewDevice,
43602
43601
  gl as Vignette,
@@ -43632,7 +43631,7 @@ export {
43632
43631
  iD as addCustomExtensionPlugin,
43633
43632
  Ma as addNewComponent,
43634
43633
  vg as addPatch,
43635
- Ag as apply,
43634
+ Eg as apply,
43636
43635
  NL as applyHMRChanges,
43637
43636
  KP as applyPrototypeExtensions,
43638
43637
  OP as beginListenDestroy,
@@ -43652,11 +43651,11 @@ export {
43652
43651
  Bk as decompressGpuTexture,
43653
43652
  Tu as deepClone,
43654
43653
  Hn as delay,
43655
- Au as delayForFrames,
43654
+ Eu as delayForFrames,
43656
43655
  bm as deserializeObject,
43657
43656
  sn as destroy,
43658
43657
  nO as destroyComponentInstance,
43659
- Ee as disposeObjectResources,
43658
+ Ae as disposeObjectResources,
43660
43659
  Cs as disposeStream,
43661
43660
  gd as editorGuidKeyName,
43662
43661
  Sa as enableSpatialConsole,
@@ -43725,7 +43724,7 @@ export {
43725
43724
  JI as isDesktop,
43726
43725
  $a as isDestroyed,
43727
43726
  B as isDevEnvironment,
43728
- EL as isDisposed,
43727
+ AL as isDisposed,
43729
43728
  uD as isExporting,
43730
43729
  nR as isGLTFModel,
43731
43730
  kS as isHostedOnGlitch,
@@ -43740,17 +43739,17 @@ export {
43740
43739
  lL as isQuest,
43741
43740
  pP as isResourceTrackingEnabled,
43742
43741
  aL as isSafari,
43743
- Eg as isUsingInstancing,
43742
+ Ag as isUsingInstancing,
43744
43743
  rL as isiOS,
43745
43744
  iL as isiPad,
43746
43745
  cD as loadAsset,
43747
43746
  px as loadSync,
43748
43747
  rm as logHierarchy,
43749
43748
  gL as lookAtInverse,
43750
- Eu as lookAtObject,
43749
+ Au as lookAtObject,
43751
43750
  yL as lookAtScreenPoint,
43752
43751
  YI as makeId,
43753
- ES as makeIdFromRandomWords,
43752
+ AS as makeIdFromRandomWords,
43754
43753
  qn as makeNameSafe,
43755
43754
  rO as markAsInstancedRendered,
43756
43755
  cL as microphonePermissionsGranted,
@@ -43772,7 +43771,7 @@ export {
43772
43771
  yC as placeOnSurface,
43773
43772
  I0 as postprocessFBXMaterials,
43774
43773
  YL as prefix,
43775
- AS as pushState,
43774
+ ES as pushState,
43776
43775
  KI as randomNumber,
43777
43776
  Q0 as registerBinaryType,
43778
43777
  Dg as registerComponent,
@@ -43782,7 +43781,7 @@ export {
43782
43781
  Lm as registerExtensions,
43783
43782
  sM as registerHotReloadType,
43784
43783
  $0 as registerLoader,
43785
- AP as registerPrefabProvider,
43784
+ EP as registerPrefabProvider,
43786
43785
  ZP as registerPrototypeExtensions,
43787
43786
  DL as registerType,
43788
43787
  LS as relativePathPrefix,
@@ -43792,7 +43791,7 @@ export {
43792
43791
  xL as removePatch,
43793
43792
  kr as resolveUrl,
43794
43793
  IS as sanitizeString,
43795
- KE as saveImage,
43794
+ KA as saveImage,
43796
43795
  lD as screenshot,
43797
43796
  hx as screenshot2,
43798
43797
  cv as sendDestroyed,
@@ -43812,10 +43811,10 @@ export {
43812
43811
  QI as setParam,
43813
43812
  zd as setParamWithoutReload,
43814
43813
  ML as setPeerOptions,
43815
- AL as setResourceTrackingEnabled,
43814
+ EL as setResourceTrackingEnabled,
43816
43815
  b0 as setState,
43817
- E0 as setVisibleInCustomShadowRendering,
43818
- A0 as setWorldEuler,
43816
+ A0 as setVisibleInCustomShadowRendering,
43817
+ E0 as setWorldEuler,
43819
43818
  yt as setWorldPosition,
43820
43819
  Ba as setWorldPositionXYZ,
43821
43820
  xn as setWorldQuaternion,