@uptimizr/dashboard 0.2.0 → 0.3.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 (355) hide show
  1. package/README.md +1 -1
  2. package/out/404.html +1 -1
  3. package/out/__next.__PAGE__.txt +4 -4
  4. package/out/__next._full.txt +11 -11
  5. package/out/__next._head.txt +4 -4
  6. package/out/__next._index.txt +4 -4
  7. package/out/__next._tree.txt +2 -2
  8. package/out/_next/static/chunks/0-29qf-q72olu.js +1 -0
  9. package/out/_next/static/chunks/0-tk5ptli--r0.js +1 -0
  10. package/out/_next/static/chunks/006nix8mv66z_.js +1 -0
  11. package/out/_next/static/chunks/01aeari2x_tlz.js +1 -0
  12. package/out/_next/static/chunks/0296l8lzd69ns.js +1 -0
  13. package/out/_next/static/chunks/02tc9r3sc7fgc.js +1 -0
  14. package/out/_next/static/chunks/{256k1jw1m--l7.js → 03st_hmor6qju.js} +1 -1
  15. package/out/_next/static/chunks/{2ue1wo4ryk87z.js → 04pk6n3z75dcy.js} +1 -1
  16. package/out/_next/static/chunks/05l3dluxivcor.js +1 -0
  17. package/out/_next/static/chunks/06ljadw2-i91-.js +1 -0
  18. package/out/_next/static/chunks/{2ycvtdd68gub7.js → 08bm3ye5govev.js} +1 -1
  19. package/out/_next/static/chunks/{32ahba5ezp467.js → 08rk1dp1wb-gm.js} +38 -38
  20. package/out/_next/static/chunks/091ll-lp6spu3.js +1 -0
  21. package/out/_next/static/chunks/09p5fltt7o3to.js +1 -0
  22. package/out/_next/static/chunks/{3mbnfpufs2-7e.js → 0_tqu60oxaj7q.js} +1 -1
  23. package/out/_next/static/chunks/{3riekaxl3uxfb.js → 0_ux41xcoea3u.js} +40 -40
  24. package/out/_next/static/chunks/0b7-mrrg7ryj2.js +1 -0
  25. package/out/_next/static/chunks/{29tfeb6amdkjb.js → 0c2k-gvwph4qs.js} +1 -1
  26. package/out/_next/static/chunks/0e7xuupmrw4-e.js +1 -0
  27. package/out/_next/static/chunks/0f_nv15a8q415.js +1 -0
  28. package/out/_next/static/chunks/0fxfsshoxnnh6.js +4 -0
  29. package/out/_next/static/chunks/0g6u34xkzrpjn.js +1 -0
  30. package/out/_next/static/chunks/0g7p8zp2kxve5.js +1 -0
  31. package/out/_next/static/chunks/0gblbgw7w7r9w.js +1 -0
  32. package/out/_next/static/chunks/0gwa154w_0wuh.js +1 -0
  33. package/out/_next/static/chunks/0h-ohf4gntwtj.js +1 -0
  34. package/out/_next/static/chunks/0h1o0cr3327tt.js +1 -0
  35. package/out/_next/static/chunks/0i9oqg-xbq-a9.js +1 -0
  36. package/out/_next/static/chunks/0ioyy42h35hnd.js +1 -0
  37. package/out/_next/static/chunks/{242xhzxxetctz.js → 0jf3n5n5yrr4o.js} +1 -1
  38. package/out/_next/static/chunks/{3idaz_s77e-j_.js → 0jxklh_ayjd4b.js} +12 -12
  39. package/out/_next/static/chunks/{07eeopuufsqp-.js → 0k79ryqehst0b.js} +11 -11
  40. package/out/_next/static/chunks/{3be6s4_kn9q-o.js → 0kcbdjbdxu_wa.js} +1 -1
  41. package/out/_next/static/chunks/0kr-bd6fuqc2s.js +1 -0
  42. package/out/_next/static/chunks/0l3wwyl93sqh9.js +1 -0
  43. package/out/_next/static/chunks/{3l1dr_qm_x5kp.js → 0m0n7kjzscx0y.js} +1 -1
  44. package/out/_next/static/chunks/0m3yjobjg36ce.js +1 -0
  45. package/out/_next/static/chunks/{1a9l89j7e6mqu.js → 0mk8tangq9equ.js} +1 -1
  46. package/out/_next/static/chunks/0mqi0xn_c010j.js +1 -0
  47. package/out/_next/static/chunks/0msckddycfy76.js +1 -0
  48. package/out/_next/static/chunks/0ngai1_zxwsk8.js +1 -0
  49. package/out/_next/static/chunks/0ngiuj5k-or6g.js +1 -0
  50. package/out/_next/static/chunks/0nx_t8iq-324h.js +1 -0
  51. package/out/_next/static/chunks/0oap0o8a8a_cl.js +1 -0
  52. package/out/_next/static/chunks/{3tm-pqpmq_ppw.js → 0ostjlqtwkhqr.js} +1 -1
  53. package/out/_next/static/chunks/{1uu-rt_8p1edp.js → 0ptp4ne7j6yg6.js} +11 -11
  54. package/out/_next/static/chunks/0rruvj1cyflrh.js +1 -0
  55. package/out/_next/static/chunks/{0o_mp98xzqfyf.js → 0tl8j9f8lt0yf.js} +1 -1
  56. package/out/_next/static/chunks/{0sqys6o2pbe1q.js → 0ufakw529sr9d.js} +38 -38
  57. package/out/_next/static/chunks/{3ne77mjdz2y7o.js → 0vddljjnmozzx.js} +1 -1
  58. package/out/_next/static/chunks/{0dm32-jq30tg8.js → 0w0sx062qmcsh.js} +1 -1
  59. package/out/_next/static/chunks/{0rys92_73hdb0.js → 0x4-zyy8pzmlq.js} +1 -1
  60. package/out/_next/static/chunks/0x6i6e6863tir.js +1 -0
  61. package/out/_next/static/chunks/{3k9d4ylc3li2t.js → 0zcdc17ie6lmh.js} +10 -10
  62. package/out/_next/static/chunks/{44nxswtahaq4w.js → 0zo4x1j8ug-kb.js} +5 -5
  63. package/out/_next/static/chunks/{0jmn7u31w95ly.js → 0zwkmsojeuekb.js} +2 -2
  64. package/out/_next/static/chunks/{3m6nmp2dca6un.js → 1--aypw9o8yng.js} +37 -37
  65. package/out/_next/static/chunks/1--kelnig7pxx.js +1 -0
  66. package/out/_next/static/chunks/1-ud6hztxiazp.js +1 -0
  67. package/out/_next/static/chunks/10v4rskkrjgd_.js +1 -0
  68. package/out/_next/static/chunks/117ys3lltfmcu.js +1 -0
  69. package/out/_next/static/chunks/14klj_i6-l-10.js +1 -0
  70. package/out/_next/static/chunks/159u-hx80yfaw.js +1 -0
  71. package/out/_next/static/chunks/{3gimb3z_mteou.js → 168r9r65o9jnc.js} +1 -1
  72. package/out/_next/static/chunks/{0w8_1yjvol1f0.js → 16d4a4iopj2if.js} +5 -5
  73. package/out/_next/static/chunks/{2z_jn9ud28fk7.js → 17d1isrw8gtnb.js} +1 -1
  74. package/out/_next/static/chunks/17dabmbnkkplu.js +1 -0
  75. package/out/_next/static/chunks/17dmbt396_tyq.js +1 -0
  76. package/out/_next/static/chunks/17ev44x54_jrd.js +1 -0
  77. package/out/_next/static/chunks/17svumd4o0qnc.js +1 -0
  78. package/out/_next/static/chunks/17v12p4sfraa0.js +1 -0
  79. package/out/_next/static/chunks/18avgwx9nlxp9.js +1 -0
  80. package/out/_next/static/chunks/{0tw4dyl-cp-hd.js → 18k-0jn63_5ie.js} +1 -1
  81. package/out/_next/static/chunks/18r387bj9iv0j.js +1 -0
  82. package/out/_next/static/chunks/18ss4ls60s31e.js +1 -0
  83. package/out/_next/static/chunks/1a7cup181rjod.js +1 -0
  84. package/out/_next/static/chunks/1ajmblsp0wj0_.js +1 -0
  85. package/out/_next/static/chunks/{1dsy2ngmfflis.js → 1b2tkk7e_2o0k.js} +2 -2
  86. package/out/_next/static/chunks/{1ltux4lwz7muf.js → 1bv97vf67p_ri.js} +33 -33
  87. package/out/_next/static/chunks/1e1zozntzsx42.js +1 -0
  88. package/out/_next/static/chunks/1ek5rtpo6rxev.js +1 -0
  89. package/out/_next/static/chunks/1evp209qbr4cr.js +5 -0
  90. package/out/_next/static/chunks/1f1vq3goue1w4.js +1 -0
  91. package/out/_next/static/chunks/{296w2ke-v5tbm.js → 1f92k-xa0pl-3.js} +1 -1
  92. package/out/_next/static/chunks/1fa265388524p.js +1 -0
  93. package/out/_next/static/chunks/{1_qzlkuxukhpq.js → 1fvlbwp6r93wo.js} +22 -22
  94. package/out/_next/static/chunks/1g3z43o3h-024.js +31 -0
  95. package/out/_next/static/chunks/1g_27texazqcj.js +1 -0
  96. package/out/_next/static/chunks/1iaxzjly2pap1.js +1 -0
  97. package/out/_next/static/chunks/{0c83pe1mpx456.js → 1j--a56ji33_x.js} +1 -1
  98. package/out/_next/static/chunks/{112hws17nz665.js → 1kl5xxohpr6-4.js} +1 -1
  99. package/out/_next/static/chunks/1kmsg9ef5djl3.js +1 -0
  100. package/out/_next/static/chunks/1kq86iv41cet4.js +1 -0
  101. package/out/_next/static/chunks/1l12hkz1g7uhf.js +1 -0
  102. package/out/_next/static/chunks/{3figbil1t4ssj.js → 1ll0ta8a2qx1p.js} +16 -16
  103. package/out/_next/static/chunks/1my2rhysaxjw4.js +3 -0
  104. package/out/_next/static/chunks/{1ynju1jqfrcv0.js → 1oara6fkfvgs3.js} +1 -1
  105. package/out/_next/static/chunks/1par9m038tiov.js +1 -0
  106. package/out/_next/static/chunks/1rcfy_gzean3n.js +1 -0
  107. package/out/_next/static/chunks/{35h5n42wxwgzk.js → 1rne-b-ktit5c.js} +2 -2
  108. package/out/_next/static/chunks/1t60cososq7b0.js +1 -0
  109. package/out/_next/static/chunks/1tdg_eolxlcdl.js +1 -0
  110. package/out/_next/static/chunks/1vkww9l6lgqag.js +1 -0
  111. package/out/_next/static/chunks/1vpcaaf-0dn7q.js +1 -0
  112. package/out/_next/static/chunks/1vuq3dos1406d.css +3 -0
  113. package/out/_next/static/chunks/1vzmzrjhlm1q5.js +1 -0
  114. package/out/_next/static/chunks/1w9xu1qa9-wmv.js +1 -0
  115. package/out/_next/static/chunks/1wyr4at61q29n.js +1 -0
  116. package/out/_next/static/chunks/{3_mu-4rdjajna.js → 1y12bjsbq18_t.js} +34 -34
  117. package/out/_next/static/chunks/1y20bv6vl4ylk.js +1 -0
  118. package/out/_next/static/chunks/{0tnlbw78tgaxp.js → 1zcrrq1fx8g2y.js} +2 -2
  119. package/out/_next/static/chunks/229mkx-mtfcgf.js +1 -0
  120. package/out/_next/static/chunks/{3yfrsm8lfi6ls.js → 22qzld31fbhbv.js} +1 -1
  121. package/out/_next/static/chunks/245h82k-g1nxr.js +1 -0
  122. package/out/_next/static/chunks/24cqjhy669845.js +1 -0
  123. package/out/_next/static/chunks/25ctnyh7njp-d.js +4 -0
  124. package/out/_next/static/chunks/2716si10ouwu-.js +1 -0
  125. package/out/_next/static/chunks/286ggpetqnwyo.js +3 -0
  126. package/out/_next/static/chunks/28f1onw3nywbz.js +1 -0
  127. package/out/_next/static/chunks/28ycc-1519hl2.js +1 -0
  128. package/out/_next/static/chunks/{17xd8hnazzr0g.js → 29v8falcmjvev.js} +34 -33
  129. package/out/_next/static/chunks/{0o6ayai0s01js.js → 2_7dp91937mqi.js} +1 -1
  130. package/out/_next/static/chunks/2ab-99frxpah-.js +1 -0
  131. package/out/_next/static/chunks/2apt1vh-7rl2l.js +1 -0
  132. package/out/_next/static/chunks/2bn9u9r0rfhvc.js +1 -0
  133. package/out/_next/static/chunks/{45bwefvdpztfs.js → 2btqzk0tj0gz6.js} +1 -1
  134. package/out/_next/static/chunks/2cvvxifoedn6j.js +1 -0
  135. package/out/_next/static/chunks/2dhv35o59yzao.js +1 -0
  136. package/out/_next/static/chunks/{17q0c2h5ui10r.js → 2dolerz81xb52.js} +1 -1
  137. package/out/_next/static/chunks/{2xwy0-qfho1iz.js → 2dqg85hsevk3c.js} +2 -2
  138. package/out/_next/static/chunks/{41wt50z9tx9cx.js → 2enlv4yy0t-9j.js} +12 -12
  139. package/out/_next/static/chunks/2ey30qeaob985.js +1 -0
  140. package/out/_next/static/chunks/2f0r-df7tb3pu.js +1 -0
  141. package/out/_next/static/chunks/2gh4z57fem0_v.js +1 -0
  142. package/out/_next/static/chunks/2gtebfttq1v0o.js +1 -0
  143. package/out/_next/static/chunks/{1ua15kzid0_8p.js → 2h051-1hu4co_.js} +9 -9
  144. package/out/_next/static/chunks/2h1uw3cluvmmo.js +1 -0
  145. package/out/_next/static/chunks/2ib62lnqqaf4p.js +1 -0
  146. package/out/_next/static/chunks/2j-sax2xfdv7l.js +1 -0
  147. package/out/_next/static/chunks/{3z84au-mitjjw.js → 2k4s5rt7-l8jr.js} +1 -1
  148. package/out/_next/static/chunks/2kje_jvmwsvwo.js +1 -0
  149. package/out/_next/static/chunks/{2cbmf9m7lqv6k.js → 2kn_dqzbyabtn.js} +1 -1
  150. package/out/_next/static/chunks/2l_oqx9idxcs8.js +1 -0
  151. package/out/_next/static/chunks/{1xpwp4m1tqugp.js → 2mleh3pbge181.js} +1 -1
  152. package/out/_next/static/chunks/{31u5lbu1vxznh.js → 2npk7tr63h7rl.js} +1 -1
  153. package/out/_next/static/chunks/2op88btas-hl8.js +1 -0
  154. package/out/_next/static/chunks/{1gs-5722l4u59.js → 2p8dbh81chhon.js} +1 -1
  155. package/out/_next/static/chunks/{2yph6f7khgqii.js → 2reukv9c7cq_9.js} +1 -1
  156. package/out/_next/static/chunks/{14ggsmqwej_tt.js → 2rjc8yn50ducj.js} +34 -34
  157. package/out/_next/static/chunks/2s0dwzg7kq36n.js +1 -0
  158. package/out/_next/static/chunks/2vaoftqgc44cg.js +1 -0
  159. package/out/_next/static/chunks/{3_gku1pwluoo0.js → 2vmybybb3dvia.js} +1 -1
  160. package/out/_next/static/chunks/2w7yf7ouyrlkb.js +1 -0
  161. package/out/_next/static/chunks/{3218lp8l0a5g_.js → 2y75diyxqlhzl.js} +1 -1
  162. package/out/_next/static/chunks/{0fh-9h9ylxskr.js → 2yr9wt421xdjr.js} +17 -17
  163. package/out/_next/static/chunks/{0otsec99kdkt7.js → 2yzui3v-besdu.js} +4 -4
  164. package/out/_next/static/chunks/{3wi9gzq2mtr_q.js → 2z9ot-w1x60fv.js} +1 -1
  165. package/out/_next/static/chunks/2zljunurdji0q.js +1 -0
  166. package/out/_next/static/chunks/{38x3c1ra5slhe.js → 3043pprgv9ors.js} +23 -23
  167. package/out/_next/static/chunks/31nbg0n1q43p2.js +1 -0
  168. package/out/_next/static/chunks/340pg0qkv5tqq.js +1 -0
  169. package/out/_next/static/chunks/{37epa8fz59vba.js → 348hdbpkkcq_2.js} +22 -21
  170. package/out/_next/static/chunks/34gp3hvr3j6um.js +1 -0
  171. package/out/_next/static/chunks/38ea9kqlbxt86.js +1 -0
  172. package/out/_next/static/chunks/38g9jpxjoxn2x.js +1 -0
  173. package/out/_next/static/chunks/390fogn9oz13i.js +1 -0
  174. package/out/_next/static/chunks/{3w9go565cjhq3.js → 39lxb7c--3_2u.js} +30 -30
  175. package/out/_next/static/chunks/{2bjlls8-qe05r.js → 3_bzxvqtk1t53.js} +12 -12
  176. package/out/_next/static/chunks/3ajhvedcs_lzb.js +1 -0
  177. package/out/_next/static/chunks/3bsvp8qhjqdu0.js +1 -0
  178. package/out/_next/static/chunks/{023axeoslq39i.js → 3d0ejsnhbzi-j.js} +1 -1
  179. package/out/_next/static/chunks/3d5yb9ybkz7hx.js +1 -0
  180. package/out/_next/static/chunks/{0echnagbkyx79.js → 3efuvh_35yhes.js} +39 -39
  181. package/out/_next/static/chunks/3fx3sriw1w3sa.js +1 -0
  182. package/out/_next/static/chunks/{2qq3uzsbiicw3.js → 3fz7tc-4j13uv.js} +21 -21
  183. package/out/_next/static/chunks/3g4e2txsrb2p2.js +1 -0
  184. package/out/_next/static/chunks/{1m_buecgcq67j.js → 3g5ae-38cepwm.js} +199 -199
  185. package/out/_next/static/chunks/3g_h_00xs9u59.js +1 -0
  186. package/out/_next/static/chunks/3gi0f1kg72xsf.js +1 -0
  187. package/out/_next/static/chunks/{38fhw7fatsyvd.js → 3he9bxsc67ivq.js} +1 -1
  188. package/out/_next/static/chunks/3hr-mlwi78nov.js +1 -0
  189. package/out/_next/static/chunks/3kr1polwvt6o_.js +1 -0
  190. package/out/_next/static/chunks/{0j__xaq_8_di1.js → 3mwoauxszd3mn.js} +1 -1
  191. package/out/_next/static/chunks/3ovd8o_usay7j.js +1 -0
  192. package/out/_next/static/chunks/3pdpaqzwhhijn.js +1 -0
  193. package/out/_next/static/chunks/3pyggl13glbdc.js +1 -0
  194. package/out/_next/static/chunks/{0927l-ygd5c8d.js → 3qw6q7d74g5wp.js} +1 -1
  195. package/out/_next/static/chunks/3rl45k759wfi1.js +1 -0
  196. package/out/_next/static/chunks/3s2d9ymcd0l4e.js +1 -0
  197. package/out/_next/static/chunks/{0flc7nppbmsl1.js → 3sbm1ak54_2ep.js} +1 -1
  198. package/out/_next/static/chunks/3sg4zff4-h3t1.js +1 -0
  199. package/out/_next/static/chunks/3urd7r018nel4.js +1 -0
  200. package/out/_next/static/chunks/3v0td-ziuai2i.js +1 -0
  201. package/out/_next/static/chunks/3vaho-xrtuchd.js +2 -0
  202. package/out/_next/static/chunks/3vxkkhs0vi_xa.js +1 -0
  203. package/out/_next/static/chunks/{1g7emwu85bifo.js → 3w1a2o8nevap8.js} +18 -18
  204. package/out/_next/static/chunks/3wqs57qehored.js +1 -0
  205. package/out/_next/static/chunks/3x6wpv_z5m6rz.js +1 -0
  206. package/out/_next/static/chunks/{1qg_etglhvp9h.js → 3y9c26fv1poq_.js} +199 -199
  207. package/out/_next/static/chunks/{0ql-s-tsmel_u.js → 404f_93w2e8ty.js} +1 -1
  208. package/out/_next/static/chunks/40acif2eh_unv.js +1 -0
  209. package/out/_next/static/chunks/{1hatz-jlztrn0.js → 4227p7752rnny.js} +1 -1
  210. package/out/_next/static/chunks/42oyfkhdvb-u3.js +1 -0
  211. package/out/_next/static/chunks/44gsjajjdhf51.js +1 -0
  212. package/out/_next/static/chunks/{turbopack-19105pdhzxp1x.js → turbopack-16ab30_1p4vhq.js} +1 -1
  213. package/out/_not-found/__next._full.txt +9 -9
  214. package/out/_not-found/__next._head.txt +4 -4
  215. package/out/_not-found/__next._index.txt +4 -4
  216. package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  217. package/out/_not-found/__next._not-found.txt +3 -3
  218. package/out/_not-found/__next._tree.txt +2 -2
  219. package/out/_not-found.html +1 -1
  220. package/out/_not-found.txt +9 -9
  221. package/out/index.html +1 -1
  222. package/out/index.txt +11 -11
  223. package/package.json +8 -8
  224. package/out/_next/static/chunks/002cjeoit6-up.js +0 -1
  225. package/out/_next/static/chunks/02n1uiltexy3w.js +0 -1
  226. package/out/_next/static/chunks/03ab2khhe8-x5.js +0 -1
  227. package/out/_next/static/chunks/04_yytpc2paxy.js +0 -1
  228. package/out/_next/static/chunks/06qot1qvlsqaz.js +0 -1
  229. package/out/_next/static/chunks/08a5xek662n8n.js +0 -1
  230. package/out/_next/static/chunks/08wuc9--s8zn_.js +0 -1
  231. package/out/_next/static/chunks/09510356f0lad.js +0 -1
  232. package/out/_next/static/chunks/0_eu72k69lxj7.js +0 -1
  233. package/out/_next/static/chunks/0beajlqy8p8b5.js +0 -1
  234. package/out/_next/static/chunks/0dn0yx0rn6mpf.js +0 -1
  235. package/out/_next/static/chunks/0eh1ml86u8dh7.js +0 -1
  236. package/out/_next/static/chunks/0fzmc1up21g1i.js +0 -1
  237. package/out/_next/static/chunks/0grlb9lo8e502.js +0 -1
  238. package/out/_next/static/chunks/0h22pg-0xrxnm.js +0 -1
  239. package/out/_next/static/chunks/0j6p1pmc14t96.js +0 -1
  240. package/out/_next/static/chunks/0j_6dx-sttgsy.js +0 -1
  241. package/out/_next/static/chunks/0kfd-cvj5fvtz.js +0 -1
  242. package/out/_next/static/chunks/0r47gs_e93cka.js +0 -1
  243. package/out/_next/static/chunks/0titqrn1qmcsv.js +0 -1
  244. package/out/_next/static/chunks/0tl_moiyi2txt.js +0 -1
  245. package/out/_next/static/chunks/0v82oqyoy9zol.js +0 -1
  246. package/out/_next/static/chunks/0vbce-8omgurc.js +0 -1
  247. package/out/_next/static/chunks/0vfsg5byzep_0.js +0 -1
  248. package/out/_next/static/chunks/0xh144a5fz58h.js +0 -1
  249. package/out/_next/static/chunks/0xjltg_pph0c8.js +0 -1
  250. package/out/_next/static/chunks/0yeqgh0dnas8d.js +0 -1
  251. package/out/_next/static/chunks/101-7e_7up7rk.js +0 -1
  252. package/out/_next/static/chunks/128e51hj_04r0.js +0 -1
  253. package/out/_next/static/chunks/12kv810lohbsx.js +0 -5
  254. package/out/_next/static/chunks/137xbvd4nd41j.js +0 -3
  255. package/out/_next/static/chunks/14bws-suyy5zu.js +0 -1
  256. package/out/_next/static/chunks/15s7425ffrec9.js +0 -3
  257. package/out/_next/static/chunks/17genz6pkmty_.js +0 -1
  258. package/out/_next/static/chunks/18dczy9ylt2s_.js +0 -1
  259. package/out/_next/static/chunks/18xs_kvsaolb0.js +0 -1
  260. package/out/_next/static/chunks/19016f8-ry0z6.js +0 -1
  261. package/out/_next/static/chunks/1_6oejyxj39li.js +0 -1
  262. package/out/_next/static/chunks/1_aon8nz9p1fr.js +0 -1
  263. package/out/_next/static/chunks/1akaj5rhgitn3.js +0 -1
  264. package/out/_next/static/chunks/1bvl1ws7b_3gn.js +0 -1
  265. package/out/_next/static/chunks/1cdbk6kxyr1c9.js +0 -1
  266. package/out/_next/static/chunks/1fbjkk55uu4_g.js +0 -1
  267. package/out/_next/static/chunks/1furcfsgrw_3g.js +0 -1
  268. package/out/_next/static/chunks/1g0-f1g3gn_rs.js +0 -1
  269. package/out/_next/static/chunks/1gt4kh0_xmigy.js +0 -1
  270. package/out/_next/static/chunks/1h8xzuuhhglu9.js +0 -1
  271. package/out/_next/static/chunks/1iioifo7i0t0_.js +0 -1
  272. package/out/_next/static/chunks/1iiz7jqgj20z0.js +0 -1
  273. package/out/_next/static/chunks/1kujmd5n0j9nk.js +0 -1
  274. package/out/_next/static/chunks/1n9sy0yt5d2vq.js +0 -1
  275. package/out/_next/static/chunks/1nj82er7msdto.js +0 -2
  276. package/out/_next/static/chunks/1p1gz6dseck--.js +0 -1
  277. package/out/_next/static/chunks/1p1xtsfwvpuqo.js +0 -1
  278. package/out/_next/static/chunks/1p8f6okk2ewbz.js +0 -1
  279. package/out/_next/static/chunks/1pdep2_c530sg.js +0 -1
  280. package/out/_next/static/chunks/1th_t5ujeqlkf.js +0 -1
  281. package/out/_next/static/chunks/1thr-mdzbu96v.js +0 -1
  282. package/out/_next/static/chunks/1tta1a064979p.js +0 -1
  283. package/out/_next/static/chunks/1u_riwm0nfww7.js +0 -1
  284. package/out/_next/static/chunks/1uu93wuxigx4k.js +0 -1
  285. package/out/_next/static/chunks/1zfojlgb15okk.js +0 -1
  286. package/out/_next/static/chunks/1zj8x5wbgnzz-.js +0 -1
  287. package/out/_next/static/chunks/1zl6t15gh34nn.js +0 -1
  288. package/out/_next/static/chunks/223vrr_4sfhsj.js +0 -1
  289. package/out/_next/static/chunks/22cr2b04btguf.js +0 -1
  290. package/out/_next/static/chunks/24essz5mmvx-6.js +0 -1
  291. package/out/_next/static/chunks/259obyrpxcv6r.js +0 -1
  292. package/out/_next/static/chunks/26v9yqicofqba.js +0 -1
  293. package/out/_next/static/chunks/2712627rfsmwn.js +0 -1
  294. package/out/_next/static/chunks/290d93hmm_e8b.js +0 -1
  295. package/out/_next/static/chunks/2_2fk7iddrs43.js +0 -1
  296. package/out/_next/static/chunks/2ckd7f1wbfod-.js +0 -1
  297. package/out/_next/static/chunks/2d6hru4qo23tt.js +0 -1
  298. package/out/_next/static/chunks/2ejvntxtvf5o9.js +0 -1
  299. package/out/_next/static/chunks/2f7_3tzf7xhps.js +0 -1
  300. package/out/_next/static/chunks/2gxd_o1g89_bv.js +0 -1
  301. package/out/_next/static/chunks/2hd2txb4-m9k1.js +0 -1
  302. package/out/_next/static/chunks/2hpxou_cnp4f_.js +0 -1
  303. package/out/_next/static/chunks/2izioctrfc0s5.js +0 -1
  304. package/out/_next/static/chunks/2jhnk4h4n0udv.js +0 -1
  305. package/out/_next/static/chunks/2jpkhkk9zi8-f.js +0 -1
  306. package/out/_next/static/chunks/2kpet_l1kq2sx.js +0 -1
  307. package/out/_next/static/chunks/2mdbvf1b5h00_.css +0 -3
  308. package/out/_next/static/chunks/2nck5w4c7leb7.js +0 -1
  309. package/out/_next/static/chunks/2our10fwtj87e.js +0 -1
  310. package/out/_next/static/chunks/2qqqpu0ahfdda.js +0 -1
  311. package/out/_next/static/chunks/2u-f7mmxvk8wj.js +0 -1
  312. package/out/_next/static/chunks/2uk-vwlxe9-xr.js +0 -1
  313. package/out/_next/static/chunks/2ur5-lxdvv1jm.js +0 -1
  314. package/out/_next/static/chunks/2veqsohwfhfqc.js +0 -1
  315. package/out/_next/static/chunks/2vqlv9wnewhu9.js +0 -1
  316. package/out/_next/static/chunks/2wzshintp5lf8.js +0 -1
  317. package/out/_next/static/chunks/2x-00glogc485.js +0 -1
  318. package/out/_next/static/chunks/2yfxy0f5fqs4o.js +0 -1
  319. package/out/_next/static/chunks/2z88mt3ixktu3.js +0 -1
  320. package/out/_next/static/chunks/3-eswqjobiqk1.js +0 -1
  321. package/out/_next/static/chunks/30-tbi7pys6fp.js +0 -4
  322. package/out/_next/static/chunks/30c-nsedy_ce0.js +0 -1
  323. package/out/_next/static/chunks/337hn35kts7ud.js +0 -1
  324. package/out/_next/static/chunks/33dgpebv-tf73.js +0 -1
  325. package/out/_next/static/chunks/36jkdhq6kb-cf.js +0 -1
  326. package/out/_next/static/chunks/3833xfnz0a-ub.js +0 -1
  327. package/out/_next/static/chunks/38awrh_qxn22k.js +0 -1
  328. package/out/_next/static/chunks/39idqlqlcp5b9.js +0 -1
  329. package/out/_next/static/chunks/3coacc4-g-g5c.js +0 -1
  330. package/out/_next/static/chunks/3e00fzdfkclzq.js +0 -1
  331. package/out/_next/static/chunks/3e8fmlq0k5wkg.js +0 -1
  332. package/out/_next/static/chunks/3e9tzyrt4_98z.js +0 -1
  333. package/out/_next/static/chunks/3edelqkq92pil.js +0 -1
  334. package/out/_next/static/chunks/3j-4wuhs5weba.js +0 -1
  335. package/out/_next/static/chunks/3jjfnwvybayy7.js +0 -1
  336. package/out/_next/static/chunks/3jwm5dfk_78gc.js +0 -1
  337. package/out/_next/static/chunks/3l3_0ack3gy4k.js +0 -1
  338. package/out/_next/static/chunks/3lwhs5ja7tun3.js +0 -1
  339. package/out/_next/static/chunks/3mcd08gmt038z.js +0 -1
  340. package/out/_next/static/chunks/3mt5th7b1i_u9.js +0 -1
  341. package/out/_next/static/chunks/3puhrqtujktyv.js +0 -1
  342. package/out/_next/static/chunks/3rdifucupcgkg.js +0 -1
  343. package/out/_next/static/chunks/3sdoskq_buttj.js +0 -1
  344. package/out/_next/static/chunks/3sjq_xoi4rbyg.js +0 -31
  345. package/out/_next/static/chunks/3tg-ma9tv9xu4.js +0 -1
  346. package/out/_next/static/chunks/3xagd_2_9zft2.js +0 -1
  347. package/out/_next/static/chunks/3xsq_anpad-fb.js +0 -1
  348. package/out/_next/static/chunks/3ycv2qq7vpbua.js +0 -1
  349. package/out/_next/static/chunks/4030dhur2h70-.js +0 -1
  350. package/out/_next/static/chunks/40ffffml4h_3r.js +0 -4
  351. package/out/_next/static/chunks/431slrqh0wa0g.js +0 -1
  352. package/out/_next/static/chunks/43s_lbd1i2krj.js +0 -1
  353. /package/out/_next/static/{M9ZSIaKJeBgkjz1qktYio → -UlF345C3V4TG3ZtvR-5_}/_buildManifest.js +0 -0
  354. /package/out/_next/static/{M9ZSIaKJeBgkjz1qktYio → -UlF345C3V4TG3ZtvR-5_}/_clientMiddlewareManifest.js +0 -0
  355. /package/out/_next/static/{M9ZSIaKJeBgkjz1qktYio → -UlF345C3V4TG3ZtvR-5_}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87898,17606,64187,70972,t=>{"use strict";var e=t.i(16147),i=t.i(40220),o=t.i(18311),a=t.i(10534),r=t.i(26722),s=t.i(91095);class n{constructor(t,e,i){this._cameraPosition=e,this._behavior=i,this.activeInput=!1,this.speed=1,this.zoomSpeed=1,this.panSpeed=1,this.rotationXSpeed=1,this.rotationYSpeed=1,this._zoomSpeedMultiplier=1,this._panSpeedMultiplier=1,this.zoomInertia=.9,this.panInertia=.9,this.rotationInertia=.9,this.zoomAccumulatedPixels=0,this.panAccumulatedPixels=new a.Vector3,this.rotationAccumulatedPixels=new a.Vector3,this.zoomDeltaCurrentFrame=0,this.panDeltaCurrentFrame=a.Vector3.Zero(),this.rotationDeltaCurrentFrame=a.Vector3.Zero(),this._zoomVelocity=0,this._panVelocity=new a.Vector3,this.referenceFrameRate=60,this._rotationVelocity=new a.Vector3,this._prevFrameTimeMs=0,this._scene=t}computeCurrentFrameDeltas(){let t=this._scene.getEngine().getDeltaTime(),e=this._getEffectiveDeltaMs(t);if(0===this._zoomVelocity&&0===this.zoomAccumulatedPixels&&0===this._panVelocity.x&&0===this._panVelocity.y&&0===this._panVelocity.z&&0===this.panAccumulatedPixels.x&&0===this.panAccumulatedPixels.y&&0===this.panAccumulatedPixels.z&&0===this._rotationVelocity.x&&0===this._rotationVelocity.y&&0===this._rotationVelocity.z&&0===this.rotationAccumulatedPixels.x&&0===this.rotationAccumulatedPixels.y&&0===this.rotationAccumulatedPixels.z&&!this.activeInput){this.panDeltaCurrentFrame.setAll(0),this.rotationDeltaCurrentFrame.setAll(0),this.zoomDeltaCurrentFrame=0,t>0&&(this._prevFrameTimeMs=t);return}this.panDeltaCurrentFrame.setAll(0),this.rotationDeltaCurrentFrame.setAll(0),this.zoomDeltaCurrentFrame=0,(this.panAccumulatedPixels.lengthSquared()>0||this.rotationAccumulatedPixels.lengthSquared()>0||0!==this.zoomAccumulatedPixels)&&this._behavior?.isInterpolating&&this._behavior.stopAllAnimations(),this._panVelocity.copyFromFloats(this._calculateCurrentVelocity(this._panVelocity.x,this.panAccumulatedPixels.x,this.panInertia),this._calculateCurrentVelocity(this._panVelocity.y,this.panAccumulatedPixels.y,this.panInertia),this._calculateCurrentVelocity(this._panVelocity.z,this.panAccumulatedPixels.z,this.panInertia)),this._panVelocity.scaleToRef(this.speed*this.panSpeed*this._panSpeedMultiplier*e,this.panDeltaCurrentFrame),this._rotationVelocity.copyFromFloats(this._calculateCurrentVelocity(this._rotationVelocity.x,this.rotationAccumulatedPixels.x,this.rotationInertia),this._calculateCurrentVelocity(this._rotationVelocity.y,this.rotationAccumulatedPixels.y,this.rotationInertia),this._calculateCurrentVelocity(this._rotationVelocity.z,this.rotationAccumulatedPixels.z,this.rotationInertia)),this.rotationDeltaCurrentFrame.copyFromFloats(this._rotationVelocity.x*this.speed*this.rotationXSpeed*e,this._rotationVelocity.y*this.speed*this.rotationYSpeed*e,0),this._zoomVelocity=this._calculateCurrentVelocity(this._zoomVelocity,this.zoomAccumulatedPixels,this.zoomInertia),this.zoomDeltaCurrentFrame=this._zoomVelocity*(this.speed*this.zoomSpeed*this._zoomSpeedMultiplier)*e,t>0&&(this._prevFrameTimeMs=t),this.zoomAccumulatedPixels=0,this.panAccumulatedPixels.setAll(0),this.rotationAccumulatedPixels.setAll(0),this.activeInput=!1}resetRotationVelocity(){this._rotationVelocity.setAll(0),this.rotationAccumulatedPixels.setAll(0)}resetPanVelocity(){this._panVelocity.setAll(0),this.panAccumulatedPixels.setAll(0)}resetZoomVelocity(){this._zoomVelocity=0,this.zoomAccumulatedPixels=0}get isInterpolating(){return!!this._behavior?.isInterpolating}getFrameIndependentDecay(t){let e=this._scene.getEngine().getDeltaTime();return Math.pow(t,this._getEffectiveDeltaMs(e)/(1e3/this.referenceFrameRate))}getFrameIndependentInputScale(t){let e=1-t;return e<=0?1:(1-this.getFrameIndependentDecay(t))/e}_getEffectiveDeltaMs(t){return t>0?t:this._prevFrameTimeMs>0?this._prevFrameTimeMs:1e3/this.referenceFrameRate}_calculateCurrentVelocity(t,e,i){let o=t,a=this._scene.getEngine().getDeltaTime(),r=this._getEffectiveDeltaMs(a);if(0===r)return o;let s=this.getFrameIndependentDecay(i);if(o*=s,0!==e||this.activeInput){let t=1-i;o+=e/r*(t>0?(1-s)/t:1)}else 1e-6>Math.abs(o)&&(o=0);return o}}t.s(["CameraMovement",0,n],17606);class h{constructor(t,e){this.inputMap=[],this.handlers=t,this._createDefaultEntries=e,this.resetInputMap()}resolveInteraction(t,e){for(let i of this.inputMap)if(i.source===t&&this._entryMatches(i,e))return i;return null}resetInputMap(){this.inputMap=this._createDefaultEntries?.()??[]}getEntry(t,e,i){let o=this.inputMap;for(let a=0;a<o.length;a++){let r=o[a];if(r.source===t&&r.interaction===e&&this._entryConditionsMatch(r,i))return r}}getEntries(t,e,i){let o=[],a=this.inputMap;for(let r=0;r<a.length;r++){let s=a[r];s.source===t&&s.interaction===e&&this._entryConditionsMatch(s,i)&&o.push(s)}return o}addEntry(t){let e=this._entrySpecificity(t),i=this.inputMap.length;for(let t=0;t<this.inputMap.length;t++)if(this._entrySpecificity(this.inputMap[t])<e){i=t;break}this.inputMap.splice(i,0,t)}setInteraction(t,e,i){let o=this.resolveInteraction(t,e);return o&&this._entryCoversAllConditionsOf(o,e)?o.interaction=i:this.addEntry({source:t,...e??{},interaction:i}),!0}_entryCoversAllConditionsOf(t,e){if(!e)return!0;for(let i of Object.keys(e)){let o=e[i];if(void 0!==o){if("modifiers"===i){let e=t.modifiers??{};for(let t of Object.keys(o))if(void 0!==o[t]&&void 0===e[t])return!1}else if(void 0===t[i])return!1}}return!0}setInteractions(t,e,i){let o=0,a=this.inputMap;for(let r=0;r<a.length;r++){let s=a[r];s.source===t&&this._entryMatches(s,e)&&(s.interaction=i,o++)}return o}_entryMatches(t,e){switch(t.source){case"pointer":if(void 0!==t.button&&t.button!==e?.button)return!1;return this._matchModifiers(t.modifiers,e?.modifiers);case"wheel":return this._matchModifiers(t.modifiers,e?.modifiers);case"touch":if(void 0!==t.touchCount&&t.touchCount!==e?.touchCount)return!1;return!0;case"keyboard":if(void 0!==t.key&&(Array.isArray(t.key)?-1===t.key.indexOf(e?.key??-1):t.key!==e?.key))return!1;return this._matchModifiers(t.modifiers,e?.modifiers)}}_entryConditionsMatch(t,e){if(!e)return!0;switch(t.source){case"pointer":if("button"in e&&t.button!==e.button)return!1;return!("modifiers"in e)||this._entryModifiersMatch(t.modifiers,e.modifiers);case"wheel":return!("modifiers"in e)||this._entryModifiersMatch(t.modifiers,e.modifiers);case"touch":return!("touchCount"in e)||t.touchCount===e.touchCount;case"keyboard":if("key"in e){if(void 0===t.key)return void 0===e.key;if(void 0===e.key||(Array.isArray(t.key)?-1===t.key.indexOf(e.key):t.key!==e.key))return!1}return!("modifiers"in e)||this._entryModifiersMatch(t.modifiers,e.modifiers)}}_entrySpecificity(t){let e=0;return"button"in t&&void 0!==t.button&&e++,"key"in t&&void 0!==t.key&&e++,"touchCount"in t&&void 0!==t.touchCount&&e++,"modifiers"in t&&t.modifiers&&e++,e}_matchModifiers(t,e){return!t||(void 0===t.ctrl||t.ctrl===(e?.ctrl??!1))&&(void 0===t.shift||t.shift===(e?.shift??!1))&&(void 0===t.alt||t.alt===(e?.alt??!1))}_entryModifiersMatch(t,e){return e?void 0===e.ctrl&&void 0===e.shift&&void 0===e.alt?!t||void 0===t.ctrl&&void 0===t.shift&&void 0===t.alt:(void 0===e.ctrl||t?.ctrl===e.ctrl)&&(void 0===e.shift||t?.shift===e.shift)&&(void 0===e.alt||t?.alt===e.alt):!t}}t.s(["InputMapper",0,h],64187);class l extends n{constructor(t,e,i){super(t,e,i),this.input=new h({translate:(t,e,i)=>{this.panAccumulatedPixels.x+=t,this.panAccumulatedPixels.y+=e,this.panAccumulatedPixels.z+=i},rotate:(t,e)=>{this.rotationAccumulatedPixels.x+=t,this.rotationAccumulatedPixels.y+=e}},()=>this._createDefaultInputMap())}_createDefaultInputMap(){return[{source:"pointer",interaction:"rotate"},{source:"keyboard",interaction:"translate"},{source:"keyboard",interaction:"rotate"},{source:"touch",interaction:"rotate"},{source:"touch",interaction:"translate"}]}}let c=a.Matrix.Zero(),d=a.Quaternion.Identity();class u extends o.Camera{get inertia(){return this._targetInertia}set inertia(t){this._targetInertia=t,this.movement&&(this.movement.panInertia=t,this.movement.rotationInertia=t)}constructor(t,e,i,o=!0){super(t,e,i,o),this.cameraDirection=new a.Vector3(0,0,0),this.cameraRotation=new a.Vector2(0,0),this._targetInertia=.9,this.updateUpVectorFromRotation=!1,this.speed=2,this.noRotationConstraint=!1,this.invertRotation=!1,this.inverseRotationSpeed=.2,this._panningEpsilon=r.Epsilon,this._rotationEpsilon=r.Epsilon,this.lockedTarget=null,this._currentTarget=a.Vector3.Zero(),this._initialFocalDistance=1,this._viewMatrix=a.Matrix.Zero(),this._cameraTransformMatrix=a.Matrix.Zero(),this._cameraRotationMatrix=a.Matrix.Zero(),this._transformedReferencePoint=a.Vector3.Zero(),this._deferredPositionUpdate=new a.Vector3,this._deferredRotationQuaternionUpdate=new a.Quaternion,this._deferredRotationUpdate=new a.Vector3,this._deferredUpdated=!1,this._deferOnly=!1,this._cachedRotationZ=0,this._cachedQuaternionRotationZ=0,this._referencePoint=a.Vector3.Forward(this.getScene().useRightHandedSystem),this.rotation=new a.Vector3(0,this.getScene().useRightHandedSystem?Math.PI:0,0),this.movement=new l(this.getScene(),this.position),this.movement.panInertia=this.inertia,this.movement.rotationInertia=this.inertia}getFrontPosition(t){this.getWorldMatrix();let e=a.TmpVectors.Vector3[0],i=a.TmpVectors.Vector3[1];return i.set(0,0,this._scene.useRightHandedSystem?-1:1),this.getDirectionToRef(i,e),e.scaleInPlace(t),this.globalPosition.add(e)}_getLockedTargetPosition(){if(!this.lockedTarget)return null;if(this.lockedTarget.absolutePosition){let t=this.lockedTarget;t.computeWorldMatrix().getTranslationToRef(t.absolutePosition)}return this.lockedTarget.absolutePosition||this.lockedTarget}storeState(){return this._storedPosition=this.position.clone(),this._storedRotation=this.rotation.clone(),this.rotationQuaternion&&(this._storedRotationQuaternion=this.rotationQuaternion.clone()),super.storeState()}_restoreStateValues(){return!!super._restoreStateValues()&&(this.position=this._storedPosition.clone(),this.rotation=this._storedRotation.clone(),this.rotationQuaternion&&this._storedRotationQuaternion&&(this.rotationQuaternion=this._storedRotationQuaternion.clone()),this.cameraDirection.copyFromFloats(0,0,0),this.cameraRotation.copyFromFloats(0,0),!0)}_initCache(){super._initCache(),this._cache.lockedTarget=new a.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.rotation=new a.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),this._cache.rotationQuaternion=new a.Quaternion(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE)}_updateCache(t){t||super._updateCache();let e=this._getLockedTargetPosition();e?this._cache.lockedTarget?this._cache.lockedTarget.copyFrom(e):this._cache.lockedTarget=e.clone():this._cache.lockedTarget=null,this._cache.rotation.copyFrom(this.rotation),this.rotationQuaternion&&this._cache.rotationQuaternion.copyFrom(this.rotationQuaternion)}_isSynchronizedViewMatrix(){if(!super._isSynchronizedViewMatrix())return!1;let t=this._getLockedTargetPosition();return(this._cache.lockedTarget?this._cache.lockedTarget.equals(t):!t)&&(this.rotationQuaternion?this.rotationQuaternion.equals(this._cache.rotationQuaternion):this._cache.rotation.equals(this.rotation))}_computeLocalCameraSpeed(){let t=this.getEngine();return this.speed*Math.sqrt(t.getDeltaTime()/(100*t.getFps()))}setTarget(t){this.upVector.normalize(),this._initialFocalDistance=t.subtract(this.position).length(),this.position.z===t.z&&(this.position.z+=r.Epsilon),this._referencePoint.normalize().scaleInPlace(this._initialFocalDistance),this.getScene().useRightHandedSystem?a.Matrix.LookAtRHToRef(this.position,t,a.Vector3.UpReadOnly,c):a.Matrix.LookAtLHToRef(this.position,t,a.Vector3.UpReadOnly,c),c.invert();let e=this.rotationQuaternion||d;a.Quaternion.FromRotationMatrixToRef(c,e),e.toEulerAnglesToRef(this.rotation),this.rotation.z=0}get target(){return this.getTarget()}set target(t){this.setTarget(t)}getTarget(){return this._currentTarget}_decideIfNeedsToMove(){return Math.abs(this.cameraDirection.x)>0||Math.abs(this.cameraDirection.y)>0||Math.abs(this.cameraDirection.z)>0}_updatePosition(){if(this.parent){this.parent.getWorldMatrix().invertToRef(a.TmpVectors.Matrix[0]),a.Vector3.TransformNormalToRef(this.cameraDirection,a.TmpVectors.Matrix[0],a.TmpVectors.Vector3[0]),this._deferredPositionUpdate.addInPlace(a.TmpVectors.Vector3[0]),this._deferOnly?this._deferredUpdated=!0:this.position.copyFrom(this._deferredPositionUpdate);return}this._deferredPositionUpdate.addInPlace(this.cameraDirection),this._deferOnly?this._deferredUpdated=!0:this.position.copyFrom(this._deferredPositionUpdate)}_checkInputs(){let t=this.movement,e=0!==this.cameraDirection.x||0!==this.cameraDirection.y||0!==this.cameraDirection.z;t.panAccumulatedPixels.addInPlace(this.cameraDirection),t.rotationAccumulatedPixels.x+=this.cameraRotation.x,t.rotationAccumulatedPixels.y+=this.cameraRotation.y,t.computeCurrentFrameDeltas(),this.cameraDirection.copyFrom(t.panDeltaCurrentFrame),this.cameraRotation.set(t.rotationDeltaCurrentFrame.x,t.rotationDeltaCurrentFrame.y);let i=this.speed*this._panningEpsilon;!e&&Math.abs(this.cameraDirection.x)<i&&Math.abs(this.cameraDirection.y)<i&&Math.abs(this.cameraDirection.z)<i&&(this.cameraDirection.setAll(0),t.resetPanVelocity());let o=this.invertRotation?-this.inverseRotationSpeed:1,r=this._decideIfNeedsToMove(),s=!!(this.cameraRotation.x||this.cameraRotation.y);this._deferredUpdated=!1,this._deferredRotationUpdate.copyFrom(this.rotation),this._deferredPositionUpdate.copyFrom(this.position),this.rotationQuaternion&&this._deferredRotationQuaternionUpdate.copyFrom(this.rotationQuaternion),r&&this._updatePosition(),s&&(this.rotationQuaternion&&this.rotationQuaternion.toEulerAnglesToRef(this._deferredRotationUpdate),this._deferredRotationUpdate.x+=this.cameraRotation.x*o,this._deferredRotationUpdate.y+=this.cameraRotation.y*o,!this.noRotationConstraint&&(this._deferredRotationUpdate.x>1.570796&&(this._deferredRotationUpdate.x=1.570796),this._deferredRotationUpdate.x<-1.570796&&(this._deferredRotationUpdate.x=-1.570796)),this._deferOnly?this._deferredUpdated=!0:this.rotation.copyFrom(this._deferredRotationUpdate),this.rotationQuaternion&&this._deferredRotationUpdate.lengthSquared()&&(a.Quaternion.RotationYawPitchRollToRef(this._deferredRotationUpdate.y,this._deferredRotationUpdate.x,this._deferredRotationUpdate.z,this._deferredRotationQuaternionUpdate),this._deferOnly?this._deferredUpdated=!0:this.rotationQuaternion.copyFrom(this._deferredRotationQuaternionUpdate))),this.cameraDirection.setAll(0),this.cameraRotation.set(0,0),super._checkInputs()}_updateCameraRotationMatrix(){this.rotationQuaternion?this.rotationQuaternion.toRotationMatrix(this._cameraRotationMatrix):a.Matrix.RotationYawPitchRollToRef(this.rotation.y,this.rotation.x,this.rotation.z,this._cameraRotationMatrix)}_rotateUpVectorWithCameraRotationMatrix(){return a.Vector3.TransformNormalToRef(a.Vector3.UpReadOnly,this._cameraRotationMatrix,this.upVector),this}_getViewMatrix(){return this.lockedTarget&&this.setTarget(this._getLockedTargetPosition()),this._updateCameraRotationMatrix(),this.rotationQuaternion&&this._cachedQuaternionRotationZ!=this.rotationQuaternion.z?(this._rotateUpVectorWithCameraRotationMatrix(),this._cachedQuaternionRotationZ=this.rotationQuaternion.z):this._cachedRotationZ!==this.rotation.z&&(this._rotateUpVectorWithCameraRotationMatrix(),this._cachedRotationZ=this.rotation.z),a.Vector3.TransformCoordinatesToRef(this._referencePoint,this._cameraRotationMatrix,this._transformedReferencePoint),this.position.addToRef(this._transformedReferencePoint,this._currentTarget),this.updateUpVectorFromRotation&&(this.rotationQuaternion?s.Axis.Y.rotateByQuaternionToRef(this.rotationQuaternion,this.upVector):(a.Quaternion.FromEulerVectorToRef(this.rotation,d),s.Axis.Y.rotateByQuaternionToRef(d,this.upVector))),this._computeViewMatrix(this.position,this._currentTarget,this.upVector),this._viewMatrix}_computeViewMatrix(t,e,i){if(this.getScene().useRightHandedSystem?a.Matrix.LookAtRHToRef(t,e,i,this._viewMatrix):a.Matrix.LookAtLHToRef(t,e,i,this._viewMatrix),this.parent){let t=this.parent.getWorldMatrix();this._viewMatrix.invert(),this._viewMatrix.multiplyToRef(t,this._viewMatrix),this._viewMatrix.invert(),this._markSyncedWithParent()}}createRigCamera(t,e){if(this.cameraRigMode!==o.Camera.RIG_MODE_NONE){let e=new u(t,this.position.clone(),this.getScene());return e.isRigCamera=!0,e.rigParent=this,this.cameraRigMode===o.Camera.RIG_MODE_VR&&(this.rotationQuaternion||(this.rotationQuaternion=new a.Quaternion),e._cameraRigParams={},e.rotationQuaternion=new a.Quaternion),e.mode=this.mode,e.orthoLeft=this.orthoLeft,e.orthoRight=this.orthoRight,e.orthoTop=this.orthoTop,e.orthoBottom=this.orthoBottom,e}return null}_updateRigCameras(){let t=this._rigCameras[0],e=this._rigCameras[1];switch(this.computeWorldMatrix(),this.cameraRigMode){case o.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH:case o.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL:case o.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED:case o.Camera.RIG_MODE_STEREOSCOPIC_OVERUNDER:case o.Camera.RIG_MODE_STEREOSCOPIC_INTERLACED:{let i=this.cameraRigMode===o.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED?1:-1,a=this.cameraRigMode===o.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED?-1:1;this._getRigCamPositionAndTarget(this._cameraRigParams.stereoHalfAngle*i,t),this._getRigCamPositionAndTarget(this._cameraRigParams.stereoHalfAngle*a,e);break}case o.Camera.RIG_MODE_VR:t.rotationQuaternion&&e.rotationQuaternion&&this.rotationQuaternion?(t.rotationQuaternion.copyFrom(this.rotationQuaternion),e.rotationQuaternion.copyFrom(this.rotationQuaternion)):(t.rotation.copyFrom(this.rotation),e.rotation.copyFrom(this.rotation)),t.position.copyFrom(this.position),e.position.copyFrom(this.position)}super._updateRigCameras()}_getRigCamPositionAndTarget(t,e){this.getTarget().subtractToRef(this.position,u._TargetFocalPoint),u._TargetFocalPoint.normalize().scaleInPlace(this._initialFocalDistance);let i=u._TargetFocalPoint.addInPlace(this.position);a.Matrix.TranslationToRef(-i.x,-i.y,-i.z,u._TargetTransformMatrix),u._TargetTransformMatrix.multiplyToRef(a.Matrix.RotationAxis(e.upVector,t),u._RigCamTransformMatrix),a.Matrix.TranslationToRef(i.x,i.y,i.z,u._TargetTransformMatrix),u._RigCamTransformMatrix.multiplyToRef(u._TargetTransformMatrix,u._RigCamTransformMatrix),a.Vector3.TransformCoordinatesToRef(this.position,u._RigCamTransformMatrix,e.position),e.setTarget(i)}getClassName(){return"TargetCamera"}}u._RigCamTransformMatrix=new a.Matrix,u._TargetTransformMatrix=new a.Matrix,u._TargetFocalPoint=new a.Vector3,(0,e.__decorate)([(0,i.serialize)()],u.prototype,"updateUpVectorFromRotation",void 0),(0,e.__decorate)([(0,i.serializeAsVector3)()],u.prototype,"rotation",void 0),(0,e.__decorate)([(0,i.serialize)()],u.prototype,"speed",void 0),(0,e.__decorate)([(0,i.serializeAsMeshReference)("lockedTargetId")],u.prototype,"lockedTarget",void 0),t.s(["TargetCamera",0,u],87898);var _=t.i(83464),p=t.i(95397),m={};t.s(["CameraInputTypes",0,m,"CameraInputsManager",0,class{constructor(t){this.attachedToElement=!1,this.attached={},this.camera=t,this.checkInputs=()=>{}}add(t){let e=t.getSimpleName();this.attached[e]?_.Logger.Warn("camera input of type "+e+" already exists on camera"):(this.attached[e]=t,t.camera=this.camera,t.checkInputs&&(this.checkInputs=this._addCheckInputs(t.checkInputs.bind(t))),this.attachedToElement&&t.attachControl(this.noPreventDefault))}remove(t){for(let e in this.attached){let i=this.attached[e];if(i===t){i.detachControl(),i.camera=null,delete this.attached[e],this.rebuildInputCheck();return}}}removeByType(t){for(let e in this.attached){let i=this.attached[e];i.getClassName()===t&&(i.detachControl(),i.camera=null,delete this.attached[e],this.rebuildInputCheck())}}_addCheckInputs(t){let e=this.checkInputs;return()=>{e(),t()}}attachInput(t){this.attachedToElement&&t.attachControl(this.noPreventDefault)}attachElement(t=!1){if(!this.attachedToElement)for(let e in t=!o.Camera.ForceAttachControlToAlwaysPreventDefault&&t,this.attachedToElement=!0,this.noPreventDefault=t,this.attached)this.attached[e].attachControl(t)}detachElement(t=!1){for(let e in this.attached)this.attached[e].detachControl(),t&&(this.attached[e].camera=null);this.attachedToElement=!1}rebuildInputCheck(){for(let t in this.checkInputs=()=>{},this.attached){let e=this.attached[t];e.checkInputs&&(this.checkInputs=this._addCheckInputs(e.checkInputs.bind(e)))}}clear(){this.attachedToElement&&this.detachElement(!0),this.attached={},this.attachedToElement=!1,this.checkInputs=()=>{}}serialize(t){let e={};for(let t in this.attached){let i=this.attached[t],o=p.SerializationHelper.Serialize(i);e[i.getClassName()]=o}t.inputsmgr=e}parse(t){let e=t.inputsmgr;if(e)for(let t in this.clear(),e){let i=m[t];if(i){let o=e[t],a=p.SerializationHelper.Parse(()=>new i,o,null);this.add(a)}}else for(let e in this.attached){let i=m[this.attached[e].getClassName()];if(i){let o=p.SerializationHelper.Parse(()=>new i,t,null);this.remove(this.attached[e]),this.add(o)}}}}],70972)},14769,t=>{"use strict";var e,i,o,a,r,s=t.i(16147),n=t.i(40220),h=t.i(10534),l=t.i(87898),c=t.i(70972),d=t.i(70463),u=t.i(29711);class _{constructor(){this.keysUp=[38],this.keysUpward=[33],this.keysDown=[40],this.keysDownward=[34],this.keysLeft=[37],this.keysRight=[39],this.rotationSpeed=.5,this.keysRotateLeft=[],this.keysRotateRight=[],this.keysRotateUp=[],this.keysRotateDown=[],this._keys=[]}attachControl(t){t=u.Tools.BackCompatCameraNoPreventDefault(arguments),this._onCanvasBlurObserver||(this._scene=this.camera.getScene(),this._engine=this._scene.getEngine(),this._onCanvasBlurObserver=this._engine.onCanvasBlurObservable.add(()=>{this._keys.length=0}),this._onKeyboardObserver=this._scene.onKeyboardObservable.add(e=>{let i=e.event;if(!i.metaKey){if(e.type===d.KeyboardEventTypes.KEYDOWN)(-1!==this.keysUp.indexOf(i.keyCode)||-1!==this.keysDown.indexOf(i.keyCode)||-1!==this.keysLeft.indexOf(i.keyCode)||-1!==this.keysRight.indexOf(i.keyCode)||-1!==this.keysUpward.indexOf(i.keyCode)||-1!==this.keysDownward.indexOf(i.keyCode)||-1!==this.keysRotateLeft.indexOf(i.keyCode)||-1!==this.keysRotateRight.indexOf(i.keyCode)||-1!==this.keysRotateUp.indexOf(i.keyCode)||-1!==this.keysRotateDown.indexOf(i.keyCode))&&(-1===this._keys.indexOf(i.keyCode)&&this._keys.push(i.keyCode),t||i.preventDefault());else if(-1!==this.keysUp.indexOf(i.keyCode)||-1!==this.keysDown.indexOf(i.keyCode)||-1!==this.keysLeft.indexOf(i.keyCode)||-1!==this.keysRight.indexOf(i.keyCode)||-1!==this.keysUpward.indexOf(i.keyCode)||-1!==this.keysDownward.indexOf(i.keyCode)||-1!==this.keysRotateLeft.indexOf(i.keyCode)||-1!==this.keysRotateRight.indexOf(i.keyCode)||-1!==this.keysRotateUp.indexOf(i.keyCode)||-1!==this.keysRotateDown.indexOf(i.keyCode)){let e=this._keys.indexOf(i.keyCode);e>=0&&this._keys.splice(e,1),t||i.preventDefault()}}}))}detachControl(){this._scene&&(this._onKeyboardObserver&&this._scene.onKeyboardObservable.remove(this._onKeyboardObserver),this._onCanvasBlurObserver&&this._engine.onCanvasBlurObservable.remove(this._onCanvasBlurObserver),this._onKeyboardObserver=null,this._onCanvasBlurObserver=null),this._keys.length=0}checkInputs(){if(this._onKeyboardObserver){let t=this.camera,e=t.movement.input,i=e.getEntry("keyboard","translate"),o=e.getEntry("keyboard","rotate"),a=o?.sensitivity??1;for(let e=0;e<this._keys.length;e++){let r=this._keys[e],s=t._computeLocalCameraSpeed()*(i?.sensitivity??1);-1!==this.keysLeft.indexOf(r)?t._localDirection.copyFromFloats(-s,0,0):-1!==this.keysUp.indexOf(r)?t._localDirection.copyFromFloats(0,0,s):-1!==this.keysRight.indexOf(r)?t._localDirection.copyFromFloats(s,0,0):-1!==this.keysDown.indexOf(r)?t._localDirection.copyFromFloats(0,0,-s):-1!==this.keysUpward.indexOf(r)?t._localDirection.copyFromFloats(0,s,0):-1!==this.keysDownward.indexOf(r)?t._localDirection.copyFromFloats(0,-s,0):-1!==this.keysRotateLeft.indexOf(r)?(t._localDirection.copyFromFloats(0,0,0),o&&(t.cameraRotation.y-=this._getLocalRotation()*a)):-1!==this.keysRotateRight.indexOf(r)?(t._localDirection.copyFromFloats(0,0,0),o&&(t.cameraRotation.y+=this._getLocalRotation()*a)):-1!==this.keysRotateUp.indexOf(r)?(t._localDirection.copyFromFloats(0,0,0),o&&(t.cameraRotation.x-=this._getLocalRotation()*a)):-1!==this.keysRotateDown.indexOf(r)&&(t._localDirection.copyFromFloats(0,0,0),o&&(t.cameraRotation.x+=this._getLocalRotation()*a)),i||t._localDirection.copyFromFloats(0,0,0),t.getScene().useRightHandedSystem&&(t._localDirection.z*=-1),t.getViewMatrix().invertToRef(t._cameraTransformMatrix),h.Vector3.TransformNormalToRef(t._localDirection,t._cameraTransformMatrix,t._transformedDirection),t.cameraDirection.addInPlace(t._transformedDirection)}}}getClassName(){return"FreeCameraKeyboardMoveInput"}_onLostFocus(){this._keys.length=0}getSimpleName(){return"keyboard"}_getLocalRotation(){let t=this.camera._calculateHandednessMultiplier();return this.rotationSpeed*this._engine.getDeltaTime()/1e3*t}}(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysUp",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysUpward",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysDown",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysDownward",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysLeft",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysRight",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"rotationSpeed",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysRotateLeft",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysRotateRight",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysRotateUp",void 0),(0,s.__decorate)([(0,n.serialize)()],_.prototype,"keysRotateDown",void 0),c.CameraInputTypes.FreeCameraKeyboardMoveInput=_;var p=t.i(57554),m=t.i(11437);class y{_applyPointerRotation(t,e){this._pointerConditions.button=this._currentActiveButton;let i=this.camera.movement.input.resolveInteraction("pointer",this._pointerConditions);if(!i||"rotate"!==i.interaction)return;let o=i.sensitivityX??i.sensitivity??1/this.angularSensibility,a=i.sensitivityY??i.sensitivity??1/this.angularSensibility;this.camera.cameraRotation.y+=t*o,this.camera.cameraRotation.x+=e*a}constructor(t=!0){this.touchEnabled=t,this.buttons=[0,1,2],this.angularSensibility=2e3,this._previousPosition=null,this.onPointerMovedObservable=new p.Observable,this._allowCameraRotation=!0,this._currentActiveButton=-1,this._activePointerId=-1,this._pointerConditions={}}attachControl(t){t=u.Tools.BackCompatCameraNoPreventDefault(arguments);let e=this.camera.getEngine(),i=e.getInputElement();this._pointerInput||(this._pointerInput=o=>{let a=o.event,r="touch"===a.pointerType;if(!this.touchEnabled&&r||o.type!==m.PointerEventTypes.POINTERMOVE&&-1===this.buttons.indexOf(a.button))return;let s=a.target;if(o.type===m.PointerEventTypes.POINTERDOWN){if(r&&-1!==this._activePointerId||!r&&-1!==this._currentActiveButton)return;this._activePointerId=a.pointerId;try{s?.setPointerCapture(a.pointerId)}catch(t){}-1===this._currentActiveButton&&(this._currentActiveButton=a.button),this._previousPosition={x:a.clientX,y:a.clientY},!t&&(a.preventDefault(),i&&i.focus()),e.isPointerLock&&this._onMouseMove&&this._onMouseMove(o.event)}else if(o.type===m.PointerEventTypes.POINTERUP){if(r&&this._activePointerId!==a.pointerId||!r&&this._currentActiveButton!==a.button)return;try{s?.releasePointerCapture(a.pointerId)}catch(t){}this._currentActiveButton=-1,this._previousPosition=null,t||a.preventDefault(),this._activePointerId=-1}else if(o.type===m.PointerEventTypes.POINTERMOVE&&(this._activePointerId===a.pointerId||!r)){if(e.isPointerLock&&this._onMouseMove)this._onMouseMove(o.event);else if(this._previousPosition){let e=this.camera._calculateHandednessMultiplier(),i=(a.clientX-this._previousPosition.x)*e,o=(a.clientY-this._previousPosition.y)*e;this._allowCameraRotation&&this._applyPointerRotation(i,o),this.onPointerMovedObservable.notifyObservers({offsetX:i,offsetY:o}),this._previousPosition={x:a.clientX,y:a.clientY},t||a.preventDefault()}}}),this._onMouseMove=i=>{if(!e.isPointerLock)return;let o=this.camera._calculateHandednessMultiplier();this._applyPointerRotation(i.movementX*o,i.movementY*o),this._previousPosition=null,t||i.preventDefault()},this._observer=this.camera.getScene()._inputManager._addCameraPointerObserver(this._pointerInput,m.PointerEventTypes.POINTERDOWN|m.PointerEventTypes.POINTERUP|m.PointerEventTypes.POINTERMOVE),i&&(this._contextMenuBind=t=>this.onContextMenu(t),i.addEventListener("contextmenu",this._contextMenuBind,!1))}onContextMenu(t){t.preventDefault()}detachControl(){if(this._observer){if(this.camera.getScene()._inputManager._removeCameraPointerObserver(this._observer),this._contextMenuBind){let t=this.camera.getEngine().getInputElement();t&&t.removeEventListener("contextmenu",this._contextMenuBind)}this.onPointerMovedObservable&&this.onPointerMovedObservable.clear(),this._observer=null,this._onMouseMove=null,this._previousPosition=null}this._activePointerId=-1,this._currentActiveButton=-1}getClassName(){return"FreeCameraMouseInput"}getSimpleName(){return"mouse"}}(0,s.__decorate)([(0,n.serialize)()],y.prototype,"buttons",void 0),(0,s.__decorate)([(0,n.serialize)()],y.prototype,"angularSensibility",void 0),c.CameraInputTypes.FreeCameraMouseInput=y;var v=t.i(24423);class f{constructor(){this.wheelPrecisionX=3,this.wheelPrecisionY=3,this.wheelPrecisionZ=3,this.onChangedObservable=new p.Observable,this._wheelDeltaX=0,this._wheelDeltaY=0,this._wheelDeltaZ=0,this._ffMultiplier=12,this._normalize=120}attachControl(t){t=u.Tools.BackCompatCameraNoPreventDefault(arguments),this._wheel=e=>{if(e.type!==m.PointerEventTypes.POINTERWHEEL)return;let i=e.event,o=i.deltaMode===v.EventConstants.DOM_DELTA_LINE?this._ffMultiplier:1;this._wheelDeltaX+=this.wheelPrecisionX*o*i.deltaX/this._normalize,this._wheelDeltaY-=this.wheelPrecisionY*o*i.deltaY/this._normalize,this._wheelDeltaZ+=this.wheelPrecisionZ*o*i.deltaZ/this._normalize,i.preventDefault&&!t&&i.preventDefault()},this._observer=this.camera.getScene()._inputManager._addCameraPointerObserver(this._wheel,m.PointerEventTypes.POINTERWHEEL)}detachControl(){this._observer&&(this.camera.getScene()._inputManager._removeCameraPointerObserver(this._observer),this._observer=null,this._wheel=null),this.onChangedObservable&&this.onChangedObservable.clear()}checkInputs(){this.onChangedObservable.notifyObservers({wheelDeltaX:this._wheelDeltaX,wheelDeltaY:this._wheelDeltaY,wheelDeltaZ:this._wheelDeltaZ}),this._wheelDeltaX=0,this._wheelDeltaY=0,this._wheelDeltaZ=0}getClassName(){return"BaseCameraMouseWheelInput"}getSimpleName(){return"mousewheel"}}(0,s.__decorate)([(0,n.serialize)()],f.prototype,"wheelPrecisionX",void 0),(0,s.__decorate)([(0,n.serialize)()],f.prototype,"wheelPrecisionY",void 0),(0,s.__decorate)([(0,n.serialize)()],f.prototype,"wheelPrecisionZ",void 0),(e=i||(i={}))[e.MoveRelative=0]="MoveRelative",e[e.RotateRelative=1]="RotateRelative",e[e.MoveScene=2]="MoveScene";class R extends f{constructor(){super(...arguments),this._moveRelative=h.Vector3.Zero(),this._rotateRelative=h.Vector3.Zero(),this._moveScene=h.Vector3.Zero(),this._wheelXAction=i.MoveRelative,this._wheelXActionCoordinate=0,this._wheelYAction=i.MoveRelative,this._wheelYActionCoordinate=2,this._wheelZAction=null,this._wheelZActionCoordinate=null}getClassName(){return"FreeCameraMouseWheelInput"}set wheelXMoveRelative(t){(null!==t||this._wheelXAction===i.MoveRelative)&&(this._wheelXAction=i.MoveRelative,this._wheelXActionCoordinate=t)}get wheelXMoveRelative(){return this._wheelXAction!==i.MoveRelative?null:this._wheelXActionCoordinate}set wheelYMoveRelative(t){(null!==t||this._wheelYAction===i.MoveRelative)&&(this._wheelYAction=i.MoveRelative,this._wheelYActionCoordinate=t)}get wheelYMoveRelative(){return this._wheelYAction!==i.MoveRelative?null:this._wheelYActionCoordinate}set wheelZMoveRelative(t){(null!==t||this._wheelZAction===i.MoveRelative)&&(this._wheelZAction=i.MoveRelative,this._wheelZActionCoordinate=t)}get wheelZMoveRelative(){return this._wheelZAction!==i.MoveRelative?null:this._wheelZActionCoordinate}set wheelXRotateRelative(t){(null!==t||this._wheelXAction===i.RotateRelative)&&(this._wheelXAction=i.RotateRelative,this._wheelXActionCoordinate=t)}get wheelXRotateRelative(){return this._wheelXAction!==i.RotateRelative?null:this._wheelXActionCoordinate}set wheelYRotateRelative(t){(null!==t||this._wheelYAction===i.RotateRelative)&&(this._wheelYAction=i.RotateRelative,this._wheelYActionCoordinate=t)}get wheelYRotateRelative(){return this._wheelYAction!==i.RotateRelative?null:this._wheelYActionCoordinate}set wheelZRotateRelative(t){(null!==t||this._wheelZAction===i.RotateRelative)&&(this._wheelZAction=i.RotateRelative,this._wheelZActionCoordinate=t)}get wheelZRotateRelative(){return this._wheelZAction!==i.RotateRelative?null:this._wheelZActionCoordinate}set wheelXMoveScene(t){(null!==t||this._wheelXAction===i.MoveScene)&&(this._wheelXAction=i.MoveScene,this._wheelXActionCoordinate=t)}get wheelXMoveScene(){return this._wheelXAction!==i.MoveScene?null:this._wheelXActionCoordinate}set wheelYMoveScene(t){(null!==t||this._wheelYAction===i.MoveScene)&&(this._wheelYAction=i.MoveScene,this._wheelYActionCoordinate=t)}get wheelYMoveScene(){return this._wheelYAction!==i.MoveScene?null:this._wheelYActionCoordinate}set wheelZMoveScene(t){(null!==t||this._wheelZAction===i.MoveScene)&&(this._wheelZAction=i.MoveScene,this._wheelZActionCoordinate=t)}get wheelZMoveScene(){return this._wheelZAction!==i.MoveScene?null:this._wheelZActionCoordinate}checkInputs(){if(0===this._wheelDeltaX&&0===this._wheelDeltaY&&0==this._wheelDeltaZ)return;this._moveRelative.setAll(0),this._rotateRelative.setAll(0),this._moveScene.setAll(0),this._updateCamera(),this.camera.getScene().useRightHandedSystem&&(this._moveRelative.z*=-1);let t=h.Matrix.Zero();this.camera.getViewMatrix().invertToRef(t);let e=h.Vector3.Zero();h.Vector3.TransformNormalToRef(this._moveRelative,t,e),this.camera.cameraRotation.x+=this._rotateRelative.x/200,this.camera.cameraRotation.y+=this._rotateRelative.y/200,this.camera.cameraDirection.addInPlace(e),this.camera.cameraDirection.addInPlace(this._moveScene),super.checkInputs()}_updateCamera(){this._updateCameraProperty(this._wheelDeltaX,this._wheelXAction,this._wheelXActionCoordinate),this._updateCameraProperty(this._wheelDeltaY,this._wheelYAction,this._wheelYActionCoordinate),this._updateCameraProperty(this._wheelDeltaZ,this._wheelZAction,this._wheelZActionCoordinate)}_updateCameraProperty(t,e,o){if(0===t||null===e||null===o)return;let a=null;switch(e){case i.MoveRelative:a=this._moveRelative;break;case i.RotateRelative:a=this._rotateRelative;break;case i.MoveScene:a=this._moveScene}switch(o){case 0:a.set(t,0,0);break;case 1:a.set(0,t,0);break;case 2:a.set(0,0,t)}}}(0,s.__decorate)([(0,n.serialize)()],R.prototype,"wheelXMoveRelative",null),(0,s.__decorate)([(0,n.serialize)()],R.prototype,"wheelYMoveRelative",null),(0,s.__decorate)([(0,n.serialize)()],R.prototype,"wheelZMoveRelative",null),(0,s.__decorate)([(0,n.serialize)()],R.prototype,"wheelXRotateRelative",null),(0,s.__decorate)([(0,n.serialize)()],R.prototype,"wheelYRotateRelative",null),(0,s.__decorate)([(0,n.serialize)()],R.prototype,"wheelZRotateRelative",null),(0,s.__decorate)([(0,n.serialize)()],R.prototype,"wheelXMoveScene",null),(0,s.__decorate)([(0,n.serialize)()],R.prototype,"wheelYMoveScene",null),(0,s.__decorate)([(0,n.serialize)()],R.prototype,"wheelZMoveScene",null),c.CameraInputTypes.FreeCameraMouseWheelInput=R;class g{constructor(t=!1){this.allowMouse=t,this.touchAngularSensibility=2e5,this.touchMoveSensibility=250,this.singleFingerRotate=!1,this._offsetX=null,this._offsetY=null,this._pointerPressed=[],this._isSafari=u.Tools.IsSafari()}attachControl(t){t=u.Tools.BackCompatCameraNoPreventDefault(arguments);let e=null;if(void 0===this._pointerInput&&(this._onLostFocus=()=>{this._offsetX=null,this._offsetY=null},this._pointerInput=i=>{let o=i.event,a="mouse"===o.pointerType||this._isSafari&&void 0===o.pointerType;if(this.allowMouse||!a){if(i.type===m.PointerEventTypes.POINTERDOWN){if(t||o.preventDefault(),this._pointerPressed.push(o.pointerId),1!==this._pointerPressed.length)return;e={x:o.clientX,y:o.clientY}}else if(i.type===m.PointerEventTypes.POINTERUP){t||o.preventDefault();let i=this._pointerPressed.indexOf(o.pointerId);if(-1===i||(this._pointerPressed.splice(i,1),0!=i))return;e=null,this._offsetX=null,this._offsetY=null}else if(i.type===m.PointerEventTypes.POINTERMOVE){if(t||o.preventDefault(),!e||0!=this._pointerPressed.indexOf(o.pointerId))return;this._offsetX=o.clientX-e.x,this._offsetY=-(o.clientY-e.y)}}}),this._observer=this.camera.getScene()._inputManager._addCameraPointerObserver(this._pointerInput,m.PointerEventTypes.POINTERDOWN|m.PointerEventTypes.POINTERUP|m.PointerEventTypes.POINTERMOVE),this._onLostFocus){let t=this.camera.getEngine().getInputElement();t&&t.addEventListener("blur",this._onLostFocus)}}detachControl(){if(this._pointerInput){if(this._observer&&(this.camera.getScene()._inputManager._removeCameraPointerObserver(this._observer),this._observer=null),this._onLostFocus){let t=this.camera.getEngine().getInputElement();t&&t.removeEventListener("blur",this._onLostFocus),this._onLostFocus=null}this._pointerPressed.length=0,this._offsetX=null,this._offsetY=null}}checkInputs(){if(null===this._offsetX||null===this._offsetY||0===this._offsetX&&0===this._offsetY)return;let t=this.camera,e=t.movement.input,i=e.getEntry("touch","rotate"),o=e.getEntry("touch","translate"),a=t._calculateHandednessMultiplier(),r=this.singleFingerRotate&&1===this._pointerPressed.length||!this.singleFingerRotate&&this._pointerPressed.length>1;if(i){let e=i.sensitivity??1/this.touchAngularSensibility;t.cameraRotation.y=this._offsetX*a*e,r&&(t.cameraRotation.x=-(this._offsetY*a)*e)}if(!r&&o){let e=t._computeLocalCameraSpeed(),i=o.sensitivity??(0!==this.touchMoveSensibility?1/this.touchMoveSensibility:0),a=h.TmpVectors.Vector3[0];a.copyFromFloats(0,0,e*this._offsetY*i),h.Matrix.RotationYawPitchRollToRef(t.rotation.y,t.rotation.x,0,t._cameraRotationMatrix),h.Vector3.TransformCoordinatesToRef(a,t._cameraRotationMatrix,a),t.cameraDirection.addInPlace(a)}}getClassName(){return"FreeCameraTouchInput"}getSimpleName(){return"touch"}}(0,s.__decorate)([(0,n.serialize)()],g.prototype,"touchAngularSensibility",void 0),(0,s.__decorate)([(0,n.serialize)()],g.prototype,"touchMoveSensibility",void 0),c.CameraInputTypes.FreeCameraTouchInput=g;var M=t.i(54670);class C extends c.CameraInputsManager{constructor(t){super(t),this._mouseInput=null,this._mouseWheelInput=null}addKeyboard(){return this.add(new _),this}addMouse(t=!0){return this._mouseInput||(this._mouseInput=new y(t),this.add(this._mouseInput)),this}removeMouse(){return this._mouseInput&&this.remove(this._mouseInput),this}addMouseWheel(){return this._mouseWheelInput||(this._mouseWheelInput=new R,this.add(this._mouseWheelInput)),this}removeMouseWheel(){return this._mouseWheelInput&&this.remove(this._mouseWheelInput),this}addTouch(){return this.add(new g),this}clear(){super.clear(),this._mouseInput=null}}(o=C.prototype).addDeviceOrientation??(o.addDeviceOrientation=(0,M._MissingSideEffect)("FreeCameraInputsManager","addDeviceOrientation")),(a=C.prototype).addVirtualJoystick??(a.addVirtualJoystick=(0,M._MissingSideEffect)("FreeCameraInputsManager","addVirtualJoystick")),(r=C.prototype).addGamepad??(r.addGamepad=(0,M._MissingSideEffect)("FreeCameraInputsManager","addGamepad"));var k=t.i(20307),w=t.i(48477);class P extends l.TargetCamera{get angularSensibility(){let t=this.inputs.attached.mouse;return t?t.angularSensibility:0}set angularSensibility(t){let e=this.inputs.attached.mouse;e&&(e.angularSensibility=t)}get keysUp(){let t=this.inputs.attached.keyboard;return t?t.keysUp:[]}set keysUp(t){let e=this.inputs.attached.keyboard;e&&(e.keysUp=t)}get keysUpward(){let t=this.inputs.attached.keyboard;return t?t.keysUpward:[]}set keysUpward(t){let e=this.inputs.attached.keyboard;e&&(e.keysUpward=t)}get keysDown(){let t=this.inputs.attached.keyboard;return t?t.keysDown:[]}set keysDown(t){let e=this.inputs.attached.keyboard;e&&(e.keysDown=t)}get keysDownward(){let t=this.inputs.attached.keyboard;return t?t.keysDownward:[]}set keysDownward(t){let e=this.inputs.attached.keyboard;e&&(e.keysDownward=t)}get keysLeft(){let t=this.inputs.attached.keyboard;return t?t.keysLeft:[]}set keysLeft(t){let e=this.inputs.attached.keyboard;e&&(e.keysLeft=t)}get keysRight(){let t=this.inputs.attached.keyboard;return t?t.keysRight:[]}set keysRight(t){let e=this.inputs.attached.keyboard;e&&(e.keysRight=t)}get keysRotateLeft(){let t=this.inputs.attached.keyboard;return t?t.keysRotateLeft:[]}set keysRotateLeft(t){let e=this.inputs.attached.keyboard;e&&(e.keysRotateLeft=t)}get keysRotateRight(){let t=this.inputs.attached.keyboard;return t?t.keysRotateRight:[]}set keysRotateRight(t){let e=this.inputs.attached.keyboard;e&&(e.keysRotateRight=t)}get keysRotateUp(){let t=this.inputs.attached.keyboard;return t?t.keysRotateUp:[]}set keysRotateUp(t){let e=this.inputs.attached.keyboard;e&&(e.keysRotateUp=t)}get keysRotateDown(){let t=this.inputs.attached.keyboard;return t?t.keysRotateDown:[]}set keysRotateDown(t){let e=this.inputs.attached.keyboard;e&&(e.keysRotateDown=t)}constructor(t,e,i,o=!0){super(t,e,i,o),this.ellipsoid=new h.Vector3(.5,1,.5),this.ellipsoidOffset=new h.Vector3(0,0,0),this.checkCollisions=!1,this.applyGravity=!1,this._needMoveForGravity=!1,this._oldPosition=h.Vector3.Zero(),this._diffPosition=h.Vector3.Zero(),this._newPosition=h.Vector3.Zero(),this._collisionMask=-1,this._onCollisionPositionChange=(t,e,i=null)=>{this._newPosition.copyFrom(e),this._newPosition.subtractToRef(this._oldPosition,this._diffPosition),this._diffPosition.length()>k.AbstractEngine.CollisionsEpsilon&&(this.position.addToRef(this._diffPosition,this._deferredPositionUpdate),this._deferOnly?this._deferredUpdated=!0:this.position.copyFrom(this._deferredPositionUpdate),this.onCollide&&i&&this.onCollide(i))},this.inputs=new C(this),this.inputs.addKeyboard().addMouse()}attachControl(t,e){e=u.Tools.BackCompatCameraNoPreventDefault(arguments),this.inputs.attachElement(e)}detachControl(){this.inputs.detachElement(),this.cameraDirection=new h.Vector3(0,0,0),this.cameraRotation=new h.Vector2(0,0)}get collisionMask(){return this._collisionMask}set collisionMask(t){this._collisionMask=isNaN(t)?-1:t}_collideWithWorld(t){(this.parent?h.Vector3.TransformCoordinates(this.position,this.parent.getWorldMatrix()):this.position).subtractFromFloatsToRef(0,this.ellipsoid.y,0,this._oldPosition),this._oldPosition.addInPlace(this.ellipsoidOffset);let e=this.getScene().collisionCoordinator;this._collider||(this._collider=e.createCollider()),this._collider._radius=this.ellipsoid,this._collider.collisionMask=this._collisionMask;let i=t;this.applyGravity&&(i=t.add(this.getScene().gravity)),e.getNewPosition(this._oldPosition,i,this._collider,3,null,this._onCollisionPositionChange,this.uniqueId)}_checkInputs(){this._localDirection||(this._localDirection=h.Vector3.Zero(),this._transformedDirection=h.Vector3.Zero()),this.inputs.checkInputs(),super._checkInputs()}set needMoveForGravity(t){this._needMoveForGravity=t}get needMoveForGravity(){return this._needMoveForGravity}_decideIfNeedsToMove(){return this._needMoveForGravity||Math.abs(this.cameraDirection.x)>0||Math.abs(this.cameraDirection.y)>0||Math.abs(this.cameraDirection.z)>0}_updatePosition(){this.checkCollisions&&this.getScene().collisionsEnabled?this._collideWithWorld(this.cameraDirection):super._updatePosition()}dispose(){this.inputs.clear(),super.dispose()}getClassName(){return"FreeCamera"}}(0,s.__decorate)([(0,n.serializeAsVector3)()],P.prototype,"ellipsoid",void 0),(0,s.__decorate)([(0,n.serializeAsVector3)()],P.prototype,"ellipsoidOffset",void 0),(0,s.__decorate)([(0,n.serialize)()],P.prototype,"checkCollisions",void 0),(0,s.__decorate)([(0,n.serialize)()],P.prototype,"applyGravity",void 0);let T=!1;t.s(["FreeCamera",0,P,"RegisterFreeCamera",0,function(){T||(T=!0,(0,w.RegisterClass)("BABYLON.FreeCamera",P))}],14769)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28538,e=>{"use strict";var t=e.i(28100),n=e.i(11623);e.i(82665);var i=e.i(20880),r=e.i(89339),s=e.i(88725),l=e.i(62238),a=e.i(93425),o=e.i(42279);let c=new Set,u=[{key:"interaction",label:"Clicks & picks",color:"#fb923c",types:new Set(["pointer_click","mesh_interaction"])},{key:"actors",label:"Scene actors",color:"#e879f9",types:new Set(["node_transform"])},{key:"custom",label:"Custom",color:"#34d399",types:new Set(["custom"])},{key:"camera",label:"Camera",color:"#38bdf8",types:new Set(["camera_sample"])},{key:"pointer",label:"Pointer",color:"#94a3b8",types:new Set(["pointer_move","pointer_down","pointer_up"])},{key:"perf",label:"Perf",color:"#a78bfa",types:new Set(["frame_perf"])},{key:"lifecycle",label:"Lifecycle",color:"#f472b6",types:new Set(["session_start","session_end","scene_change","focus_change","visibility_change","viewport_resize","context_lost","context_restored","runtime_error","capability_change","input_action","resource_sample","compile_stall","mesh_visibility","hover_dwell"])}];function h(e,t,n){let i=Math.max(1,n),r=new Map;u.forEach((e,t)=>{for(let n of e.types)r.set(n,t)});let s=u.map(()=>new Set);for(let n of e){let e=r.get(n.type);if(void 0===e)continue;let l=Math.min(1,Math.max(0,(n.ts-t)/i));s[e].add(Math.round(600*l))}return u.map((e,t)=>({key:e.key,label:e.label,color:e.color,marks:[...s[t]].sort((e,t)=>e-t).map(e=>e/600)})).filter(e=>e.marks.length>0)}function d(e){let t=Math.max(0,Math.round(e/1e3)),n=Math.floor(t/60);return`${n}:${(t%60).toString().padStart(2,"0")}`}function p(e){let t=e.slice(e.lastIndexOf("/")+1);return t.length>20?`${t.slice(0,19)}\u2026`:t}function m({lanes:e,duration:n,progress:i,onSeek:r,hiddenTypes:s}){let l=e.filter(e=>{let t=u.find(t=>t.key===e.key);if(!t)return!0;for(let e of t.types)if(!s.has(e))return!0;return!1});if(0===l.length)return null;let a=`${Math.min(100,Math.max(0,i/Math.max(1,n)*100))}%`;return(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("div",{className:"mb-1.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[10px] text-fg-muted",children:l.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"inline-block h-2 w-2 rounded-sm",style:{backgroundColor:e.color}}),e.label,(0,t.jsxs)("span",{className:"tabular-nums text-fg-muted",children:["(",e.marks.length,")"]})]},e.key))}),(0,t.jsxs)("button",{type:"button","aria-label":"Event timeline — click to seek",className:"relative block w-full cursor-pointer select-none rounded-md border border-edge bg-ink/60 p-1.5 text-left",onClick:e=>{var t;let i;return t=e.clientX,void r(Math.min(1,Math.max(0,(t-(i=e.currentTarget.getBoundingClientRect()).left)/(i.width||1)))*n)},children:[(0,t.jsx)("div",{className:"flex flex-col gap-1",children:l.map(e=>(0,t.jsx)("div",{className:"relative h-2.5 rounded-sm bg-white/5",children:e.marks.map((n,i)=>(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute top-0 h-full w-px",style:{left:`${100*n}%`,backgroundColor:e.color,opacity:.85}},i))},e.key))}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-1 w-px bg-saffron",style:{left:a}})]})]})}e.s(["SessionReplay",0,function({baseUrl:u,apiKey:f,sessionId:g,hiddenTypes:b,isLive:y=!1}){let x=(0,n.useRef)(null),w=(0,n.useRef)(null),v=(0,n.useRef)(0),k=(0,n.useRef)(b??c),j=(0,n.useRef)(!1),M=(0,n.useRef)(null),C=(0,n.useRef)(!1),_=(0,n.useRef)(!1),S=(0,n.useRef)(null),N=(0,n.useRef)(0),P=(0,n.useRef)([]),R=(0,n.useRef)([]),$=(0,n.useRef)([]),z=(0,n.useRef)(!0),I=(0,n.useRef)("birdview"),L=(0,n.useRef)(null),V=(0,n.useRef)(null),A=(0,n.useRef)([]),q=(0,n.useRef)(null),E=(0,n.useRef)(null),[T,F]=(0,n.useState)("idle"),[W,B]=(0,n.useState)(null),[Z,O]=(0,n.useState)(0),[K,H]=(0,n.useState)(0),[G,U]=(0,n.useState)(!1),[X,D]=(0,n.useState)([]),[J,Q]=(0,n.useState)([]),[Y,ee]=(0,n.useState)([]),[et,en]=(0,n.useState)(!0),[ei,er]=(0,n.useState)(!1),[es,el]=(0,n.useState)("birdview"),[ea,eo]=(0,n.useState)(null),[ec,eu]=(0,n.useState)(!1),[eh,ed]=(0,n.useState)(!1),[ep,em]=(0,n.useState)(null);(0,n.useEffect)(()=>{z.current=et},[et]),(0,n.useEffect)(()=>{_.current=G},[G]),(0,n.useEffect)(()=>{C.current=ei},[ei]),(0,n.useEffect)(()=>{I.current=es,j.current=!0},[es]),(0,n.useEffect)(()=>{k.current=b??c,j.current=!0},[b]),(0,n.useEffect)(()=>{let t=x.current;if(!t)return;let n=!1,s=null;return F("loading"),B(null),U(!1),O(0),H(0),D([]),Q([]),ee([]),eo(null),L.current=null,P.current=[],R.current=[],$.current=[],v.current=0,q.current=null,A.current=[],V.current=null,eu(!1),ed(!1),em(null),(async()=>{try{let[{Engine:a},{Scene:o},{ArcRotateCamera:c},{UniversalCamera:d},{HemisphericLight:p},{Vector3:m,Color3:b,Color4:x,Matrix:E},{MeshBuilder:T},{StandardMaterial:W},{fetchSessionEvents:B,ReplayPlayer:Z}]=await Promise.all([e.A(3905),e.A(94432),e.A(59694),e.A(68480),e.A(88004),e.A(27940),e.A(27124),e.A(14074),e.A(85461),e.A(18561)]),K=await B({endpoint:u,apiKey:f,sessionId:g});if(n)return;if(0===K.length)return void F("empty");let G=K[0].ts,X=K[0].ts;for(let e of K)e.ts<G&&(G=e.ts),e.ts>X&&(X=e.ts);let J=new i.CollectorApi(u,f),Y=await (0,r.mergeSceneProxies)(J,{since:G-1,until:X+1});if(n)return;let et=[...K].sort((e,t)=>e.ts-t.ts),en=et[0].ts,ei=[],es=[],el=new Map,ea=null;for(let e of et){let t=e.ts-en;if("camera_sample"===e.type){ea=[e.position[0],e.position[1],e.position[2]],ei.push({at:t,position:ea,direction:[e.direction[0],e.direction[1],e.direction[2]],..."number"==typeof e.fov?{fov:e.fov}:{}});continue}if("node_transform"===e.type){if(e.boneId)continue;let n=e.childPath?`${e.nodeId}/${e.childPath}`:e.nodeId,i=el.get(n);i||(i=[],el.set(n,i)),i.push({at:t,position:[e.position[0],e.position[1],e.position[2]]});continue}if("pointer_click"===e.type&&e.hitPoint){let n=e.ray?.origin??ea;if(!n)continue;es.push({at:t,type:"pointer_click",origin:[n[0],n[1],n[2]],hit:[e.hitPoint[0],e.hitPoint[1],e.hitPoint[2]],...e.hitMesh?{mesh:e.hitMesh}:{}});continue}if("mesh_interaction"===e.type&&e.point){if(!ea)continue;es.push({at:t,type:"mesh_interaction",origin:[ea[0],ea[1],ea[2]],hit:[e.point[0],e.point[1],e.point[2]],...e.mesh?{mesh:e.mesh}:{}})}}if(0===ei.length&&0===es.length&&0===el.size)return void F("empty");let ec=new a(t,!0,{preserveDrawingBuffer:!1}),eu=new o(ec);eu.clearColor=new x(.04,.05,.07,1),V.current=eu;let eh=new c("birdview-cam",-Math.PI/2,.22,12,m.Zero(),eu);eh.attachControl(t,!0),(0,l.disableWheelZoom)(eh),w.current=eh,new p("replay-light",new m(0,1,0),eu);let ed=new d("replay-follow-cam",m.Zero(),eu);ed.minZ=.05,ed.fov=Math.PI/3,eu.activeCamera=eh;let ep="birdview",em=T.CreateGround("replay-ground",{width:20,height:20,subdivisions:20},eu),ef=new W("replay-ground-mat",eu);ef.diffuseColor=new b(.12,.14,.18),ef.wireframe=!0,em.material=ef;let eg=new Set(el.keys()),eb=new Set(Array.from(eg,e=>e.slice(e.lastIndexOf("/")+1))),ey=[],ex=[],ew=new Set,ev=e=>{if(ew.has(e.name)||(e=>{if(e.path){for(let t of eg)if(e.path===t||e.path.endsWith(`/${t}`))return!0}return eb.has(e.name)})(e))return!1;ew.add(e.name);let t=e.aabb,n=Math.max(t[3]-t[0],.001),i=Math.max(t[4]-t[1],.001),r=Math.max(t[5]-t[2],.001),s=T.CreateBox(`replay-proxy-${e.name}`,{width:n,height:i,depth:r},eu);s.position=new m((t[0]+t[3])/2,(t[1]+t[4])/2,(t[2]+t[5])/2);let l=new W(`replay-proxy-mat-${e.name}`,eu);return l.wireframe=!0,l.disableLighting=!0,l.emissiveColor=new b(.32,.4,.52),l.alpha=.35,s.material=l,s.isPickable=!1,q.current&&s.setEnabled(!1),ex.push(s),ey.push({name:e.name,center:new m((t[0]+t[3])/2,t[4],(t[2]+t[5])/2)}),!0};for(let e of Y)ev(e);P.current=ey,R.current=ey.map(()=>null),Q(ey.map(e=>e.name)),A.current=ex;let ek=async()=>{let e=await (0,r.mergeSceneProxies)(J,{since:G-1}).catch(()=>null);if(n||!e)return;let t=!1;for(let n of e)ev(n)&&(t=!0);t&&(P.current=ey,R.current=ey.map((e,t)=>R.current[t]??null),Q(ey.map(e=>e.name)),j.current=!0)},ej=[[.91,.47,.98],[.4,.95,.6],[.98,.8,.3],[.45,.85,1]],eM=e=>{let t=e.indexOf("/");return -1===t?e:e.slice(0,t)},eC=[],e_=new Map,eS=0,eN=(e,t,n)=>{let i=T.CreateSphere(`replay-actor-${e}`,{diameter:.5,segments:12},eu),r=new W(`replay-actor-mat-${e}`,eu);r.disableLighting=!0;let s=ej[eS%ej.length];r.emissiveColor=new b(s[0],s[1],s[2]),i.material=r,i.isPickable=!1,i.isVisible=!1,eS++;let l={key:e,mesh:i,samples:n,driveKey:t};return eC.push(l),e_.set(e,l),l},eP=new Map,eR=new Map;for(let[e,t]of el){if(0===t.length)continue;let n=eM(e);if(e===n)eP.set(n,t);else{let i=eR.get(n);(!i||t.length>i.samples.length)&&eR.set(n,{key:e,samples:t})}}for(let e of new Set([...eP.keys(),...eR.keys()])){let t=eP.get(e);if(t)eN(e,e,t);else{let t=eR.get(e);eN(e,t.key,t.samples)}}$.current=eC.map(()=>null),ee(eC.map(e=>e.key));let e$=(e,t)=>{if(0===e.length||t<e[0].at)return null;let n=0,i=e.length-1,r=-1;for(;n<=i;){let s=n+i>>1;e[s].at<=t?(r=s,n=s+1):i=s-1}if(r<0)return null;let s=e[r],l=e[r+1];if(!l)return s.position;let a=l.at-s.at;if(a<=0)return s.position;let o=Math.max(0,Math.min(1,(t-s.at)/a));return[s.position[0]+(l.position[0]-s.position[0])*o,s.position[1]+(l.position[1]-s.position[1])*o,s.position[2]+(l.position[2]-s.position[2])*o]},ez=1,eI=1.4,eL=T.CreateSphere("replay-camera-origin",{diameter:.35,segments:12},eu),eV=new W("replay-camera-origin-mat",eu);eV.disableLighting=!0,eV.emissiveColor=new b(.6,.9,1),eL.material=eV;let eA=T.CreateLines("replay-camera-frustum",{points:[m.Zero(),new m(0,0,1)]},eu);eA.color=new b(.7,.95,1),eA.isPickable=!1;let eq=T.CreateCylinder("replay-camera-cone",{height:1,diameterTop:0,diameterBottom:1,tessellation:24},eu);eq.bakeTransformIntoVertices(E.RotationX(-Math.PI/2).multiply(E.Translation(0,0,.5)));let eE=new W("replay-camera-cone-mat",eu);eE.disableLighting=!0,eE.emissiveColor=new b(.4,.78,1),eE.alpha=.16,eE.backFaceCulling=!1,eq.material=eE,eq.isPickable=!1,eq.isVisible=!1;let eT=(e,t,n,i)=>{if(e?.dispose(),0===n.length)return null;let r=T.CreateLineSystem(t,{lines:n,...i?{colors:i,useVertexAlpha:!0}:{}},eu);return r.isPickable=!1,r},eF=null,eW=null,eB=null,eZ=()=>{let e=k.current,t=[],n=[];for(let i of es){if(e.has(i.type))continue;let[r,s,l]=i.hit,a="mesh_interaction"===i.type?new x(.45,.85,1,.32):new x(1,.7,.35,.32);t.push([new m(r-.1,s,l),new m(r+.1,s,l)]),t.push([new m(r,s-.1,l),new m(r,s+.1,l)]),t.push([new m(r,s,l-.1),new m(r,s,l+.1)]),n.push([a,a],[a,a],[a,a])}eB=eT(eB,"replay-persistent-marks",t,n)};eZ();let eO=T.CreateSphere("replay-glow",{diameter:1,segments:12},eu),eK=new W("replay-glow-mat",eu);eK.disableLighting=!0,eK.emissiveColor=new b(1,.62,.2),eK.alpha=0,eO.material=eK,eO.isPickable=!1,eO.isVisible=!1;let eH=1/0,eG=1/0,eU=1/0,eX=-1/0,eD=-1/0,eJ=-1/0,eQ=!1,eY=e=>{eH=Math.min(eH,e[0]),eG=Math.min(eG,e[1]),eU=Math.min(eU,e[2]),eX=Math.max(eX,e[0]),eD=Math.max(eD,e[1]),eJ=Math.max(eJ,e[2])},e0=()=>{let e;if(eQ||!Number.isFinite(eH))return;let t=(eH+eX)/2,n=(eG+eD)/2,i=(eU+eJ)/2,r=eX-eH,s=eD-eG,l=eJ-eU,a=Math.sqrt(r*r+s*s+l*l);eh.setTarget(new m(t,n,i)),e=1.3*a,eh.radius=Number.isFinite(e)?Math.max(8,e):12,eQ=!0};for(let e of ei)eY(e.position);for(let e of es)eY(e.origin),eY(e.hit);for(let e of el.values())for(let t of e)eY(t.position);for(let e of Y)eY(e.aabb.slice(0,3)),eY(e.aabb.slice(3,6));e0();{let e=eX-eH,t=eD-eG,n=eJ-eU,i=Number.isFinite(e)?Math.sqrt(e*e+t*t+n*n):0,r=Math.min(Math.max(.035*i,.45),Math.max(.45,.18*i));ez=r/.35,eI=Math.max(.16*i,3.2*r,1.4),eL.scaling.setAll(ez)}let e1=-1,e2=e=>{var i;let r=j.current;if(!r&&e===e1)return;j.current=!1,e1=e,r&&eZ();let s=k.current;(i=I.current)!==ep&&(ep=i,"follow"===i?(eh.detachControl(),eu.activeCamera=ed):(eu.activeCamera=eh,eh.attachControl(t,!0)));let l="follow"===I.current,a=s.has("camera_sample")?null:(e=>{if(0===ei.length)return null;let t=0,n=ei.length-1,i=-1;for(;t<=n;){let r=t+n>>1;ei[r].at<=e?(i=r,t=r+1):n=r-1}return i>=0?ei[i]:null})(e);if(a){eL.position.set(a.position[0],a.position[1],a.position[2]);let e=a.direction,t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])||1,n=eI,i=new m(a.position[0]+e[0]/t*n,a.position[1]+e[1]/t*n,a.position[2]+e[2]/t*n);if(l)eL.isVisible=!1,eA.isVisible=!1,eq.isVisible=!1,ed.position.set(a.position[0],a.position[1],a.position[2]),ed.setTarget(i),a.fov&&a.fov>0&&(ed.fov=a.fov);else{eL.isVisible=!0,eA.isVisible=!0,eA=T.CreateLines("replay-camera-frustum",{points:[eL.position.clone(),i],instance:eA},eu);let e=(a.fov&&a.fov>0?a.fov:Math.PI/3)/2,t=n*Math.tan(e);eq.isVisible=!0,eq.position.copyFrom(eL.position),eq.lookAt(i),eq.scaling.set(2*t,2*t,n)}}else eL.isVisible=!1,eA.isVisible=!1,eq.isVisible=!1;let o=s.has("node_transform");for(let t of eC){let n=o?null:e$(t.samples,e);if(!n){t.mesh.isVisible=!1;continue}t.mesh.isVisible=!0,t.mesh.position.set(n[0],n[1],n[2])}let c=es.filter(t=>!s.has(t.type)&&t.at<=e&&t.at>=e-2200),u=[],h=[],d=[],p=[],f=null;for(let t of c){let n=e-t.at,i=Math.max(0,Math.min(1,1-n/2200)),r=new x(1,.62,.2,.18+.72*i),s=new m(t.origin[0],t.origin[1],t.origin[2]),l=new m(t.hit[0],t.hit[1],t.hit[2]);u.push([s,l]),h.push([r,r]);let a=.12+.08*i;d.push([new m(l.x-a,l.y,l.z),new m(l.x+a,l.y,l.z)]),d.push([new m(l.x,l.y-a,l.z),new m(l.x,l.y+a,l.z)]),d.push([new m(l.x,l.y,l.z-a),new m(l.x,l.y,l.z+a)]);let o=new x(1,.78,.42,.22+.72*i);if(p.push([o,o],[o,o],[o,o]),n<=900){let e=1-n/900;(!f||e>f.t)&&(f={hit:t.hit,t:e})}}if(f){let e=.25+.9*f.t;eO.isVisible=!0,eO.scaling.set(e,e,e),eO.position.set(f.hit[0],f.hit[1],f.hit[2]),eK.alpha=.12+.5*f.t}else eO.isVisible=!1;let g=null,b=-1/0;for(let e of c)e.mesh&&e.at>b&&(b=e.at,g=e.mesh);g!==L.current&&(L.current=g,n||eo(g)),eF=eT(eF,"replay-trail-lines",u,h),eW=eT(eW,"replay-trail-hits",d,p)},e3=et.length>0?et[et.length-1].ts-en:0,e5=e3,e4=et.length>0?et[et.length-1].ts:-1/0,e8=et.map(e=>({type:e.type,ts:e.ts})),e9=0,e6=null;if(y)M.current=null,S.current=e=>{if(n)return;let t="number"==typeof e.ts?e.ts:NaN;if(!Number.isFinite(t)||t<=e4)return;e4=t;let i=t-en;if(i>e5&&(e5=i),i>e3&&(e3=i),e8.push({type:e.type,ts:t}),"camera_sample"===e.type){let t=e.position,n=e.direction;if(t&&n){let r=[t[0],t[1],t[2]];ea=r;let s="number"==typeof e.fov?e.fov:void 0;ei.push({at:i,position:r,direction:[n[0],n[1],n[2]],...void 0!==s?{fov:s}:{}}),eY(r),e0()}}else if("pointer_click"===e.type){let t=e.hitPoint,n=e.ray,r=n?.origin??ea;if(t&&r){let n="string"==typeof e.hitMesh?e.hitMesh:void 0;es.push({at:i,type:"pointer_click",origin:[r[0],r[1],r[2]],hit:[t[0],t[1],t[2]],...n?{mesh:n}:{}}),eY(t),j.current=!0}}else if("mesh_interaction"===e.type){let t=e.point;if(t&&ea){let n="string"==typeof e.mesh?e.mesh:void 0;es.push({at:i,type:"mesh_interaction",origin:[ea[0],ea[1],ea[2]],hit:[t[0],t[1],t[2]],...n?{mesh:n}:{}}),eY(t),j.current=!0}}else if("node_transform"===e.type){let t=e.position;if(e.boneId||"string"!=typeof e.nodeId||!t)return;let n="string"==typeof e.childPath?e.childPath:void 0,r=n?`${e.nodeId}/${n}`:e.nodeId;((e,t)=>{let n=eM(e),i=e_.get(n);if(!i){i=eN(n,e,[]);let t=$.current;$.current=eC.map((e,n)=>t[n]??null),ee(eC.map(e=>e.key))}e===i.driveKey?i.samples.push(t):e===n&&i.driveKey!==n&&(i.driveKey=n,i.samples.length=0,i.samples.push(t))})(r,{at:i,position:[t[0],t[1],t[2]]}),eY(t)}let r=performance.now();r-e9>250&&(e9=r,D(h(e8,en,Math.max(1,e3)))),C.current&&i>v.current&&(v.current=i)},N.current=e3,v.current=e3,C.current=!0,er(!0),U(!1),O(e3),H(e3),D(h(e8,en,Math.max(1,e3))),e2(e3),e6=setInterval(()=>void ek(),4e3);else{let e=new Z(K,{reset(){},apply(){}},{onProgress:e=>{n||(v.current=e,H(e))},onComplete:()=>{n||U(!1)}});M.current=e,O(e.durationMs),D(h(et,en,e.durationMs)),e.update(0),e2(0)}let e7=E.Identity(),te=new Map,tt=e=>{let t=te.get(e);if(t)return t;let n={w:e.offsetWidth||60,h:e.offsetHeight||16};return e.offsetWidth>0&&te.set(e,n),n},tn=performance.now(),ti=0;ec.runRenderLoop(()=>{if(y){let e=performance.now(),t=e-tn;if(tn=e,C.current)v.current+=t,v.current>e3&&(e3=v.current),N.current=e3,H(v.current),e-ti>250&&(ti=e,O(e3));else if(_.current){let e=v.current+t;e>=e3&&(e=e3),v.current=e,H(e)}}e2(v.current),eu.render(),(()=>{if(!z.current)return;let e=t.clientWidth||ec.getRenderWidth(),n=t.clientHeight||ec.getRenderHeight(),i=eh.viewport.toGlobal(e,n),r=eu.getTransformMatrix(),s=L.current,l=e=>e.slice(e.lastIndexOf("/")+1),a=e=>!!s&&(s===e||l(s)===l(e)||e.endsWith(`/${s}`)||s.endsWith(`/${e}`)),o=[],c=P.current,u=R.current;for(let e=0;e<c.length;e++){let t=u[e];if(!t)continue;let n=m.Project(c[e].center,e7,r,i);if(n.z<0||n.z>1){t.style.opacity="0";continue}o.push({el:t,x:n.x,y:n.y,liftPct:140,highlighted:a(c[e].name)})}let h=$.current;for(let e=0;e<eC.length;e++){let t=h[e];if(!t)continue;let n=eC[e].mesh;if(!n.isVisible){t.style.opacity="0";continue}let s=m.Project(n.position,e7,r,i);if(s.z<0||s.z>1){t.style.opacity="0";continue}o.push({el:t,x:s.x,y:s.y,liftPct:180,highlighted:a(eC[e].key)})}o.sort((e,t)=>e.highlighted!==t.highlighted?e.highlighted?-1:1:e.y-t.y||e.x-t.x);let d=[];for(let e of o){let{w:t,h:n}=tt(e.el),i=e.x-t/2,r=e.x+t/2,s=e.y-e.liftPct/100*n,l=s,a=!0,o=0;for(;a&&o++<256;)for(let e of(a=!1,d))i<e.right&&r>e.left&&l<e.bottom&&l+n>e.top&&(l=e.bottom+1,a=!0);d.push({left:i,right:r,top:l,bottom:l+n});let c=l-s;e.el.style.opacity="1",e.el.style.zIndex=e.highlighted?"10":"",e.el.style.transform=`translate(${e.x}px, ${e.y+c}px) translate(-50%, -${e.liftPct}%)`}})()});let tr=()=>ec.resize();window.addEventListener("resize",tr),F("ready"),s=()=>{window.removeEventListener("resize",tr),e6&&clearInterval(e6),S.current=null,M.current?.pause(),eA.dispose(),eq.dispose(),eF?.dispose(),eW?.dispose(),eB?.dispose(),eO.dispose(),q.current?.dispose(),q.current=null,A.current=[],V.current=null,eu.dispose(),ec.dispose(),w.current=null,M.current=null}}catch(e){if(n)return;F("error"),B(e instanceof Error?e.message:"Failed to load replay.")}})(),()=>{n=!0,s?.()}},[u,f,g,y]);let ef=(0,n.useCallback)(()=>{if(y){er(!1),C.current=!1,U(e=>{let t=!e;return _.current=t,t});return}let e=M.current;e&&U(t=>(t?e.pause():e.play(),!t))},[y]),eg=(0,n.useCallback)(e=>{if(y){er(!1),C.current=!1,U(!1),_.current=!1,v.current=e,H(e);return}let t=M.current;t&&(t.pause(),t.seek(e),U(!1),v.current=e,H(e))},[y]),eb=(0,n.useCallback)(()=>{er(!0),C.current=!0,U(!1),_.current=!1,v.current=N.current,H(N.current)},[]),{gated:ey}=(0,s.useLiveSession)(u,f,g,y&&"ready"===T,e=>S.current?.(e),()=>{}),ex=(0,n.useCallback)(e=>{if(!ea)return!1;if(ea===e)return!0;let t=e=>e.slice(e.lastIndexOf("/")+1);return t(ea)===t(e)||e.endsWith(`/${ea}`)||ea.endsWith(`/${e}`)},[ea]),ew=(0,n.useCallback)(async t=>{let n=V.current;if(n){ed(!0),em(`Loading ${t.name}…`);try{let[{loadSceneBackdrop:i}]=await Promise.all([e.A(3633),e.A(91064)]);if(V.current!==n)return;q.current?.dispose();let r=await i(n,t);if(V.current!==n)return void r.dispose();for(let e of(q.current=r,A.current))e.setEnabled(!1);j.current=!0,eu(!0),em(`Loaded ${t.name} (${r.meshes.length} meshes).`)}catch(e){em(e instanceof Error?e.message:"Could not load model.")}finally{ed(!1)}}},[]),ev=(0,n.useCallback)(e=>{let t=e.target.files?.[0];e.target.value="",t&&ew(t)},[ew]),ek=(0,n.useCallback)(()=>{for(let e of(q.current?.dispose(),q.current=null,A.current))e.setEnabled(!0);j.current=!0,eu(!1),em(null)},[]);return(0,t.jsxs)(a.Panel,{title:y?"Session replay · live":"Session replay (birdview timeline)",subtitle:y?"Following this session live — new camera moves and interactions stream in and the timeline grows. Scrub back to review, then press ● LIVE to return to the edge.":"Scrub the camera path and interaction rays; every click stays marked and glows as the playhead passes it. The color-coded strip marks when each event fired (click to seek).",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("canvas",{ref:x,className:"aspect-video w-full rounded-lg border border-edge bg-ink"}),(0,t.jsxs)("div",{className:`pointer-events-none absolute inset-0 overflow-hidden ${et?"":"hidden"}`,children:[J.map((e,n)=>(0,t.jsx)("div",{title:e,ref:e=>{e&&(R.current[n]=e)},className:`absolute left-0 top-0 whitespace-nowrap rounded px-1.5 py-0.5 text-[10px] font-medium opacity-0 transition-colors ${ex(e)?"bg-amber/30 text-white ring-2 ring-amber shadow-lg shadow-amber/30":"bg-ink/80 text-saffron ring-1 ring-amber/30"}`,children:p(e)},e)),Y.map((e,n)=>(0,t.jsx)("div",{title:e,ref:e=>{e&&($.current[n]=e)},className:`absolute left-0 top-0 whitespace-nowrap rounded px-1.5 py-0.5 text-[10px] font-medium opacity-0 transition-colors ${ex(e)?"bg-fuchsia-400/30 text-white ring-2 ring-fuchsia-300 shadow-lg shadow-fuchsia-500/30":"bg-ink/80 text-fuchsia-300 ring-1 ring-fuchsia-400/30"}`,children:p(e)},`actor-${e}`))]}),"ready"===T&&(J.length>0||Y.length>0)?(0,t.jsx)("button",{type:"button",onClick:()=>en(e=>!e),className:"absolute left-3 top-3 rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs font-medium text-fg transition hover:bg-ink hover:text-white","aria-pressed":et?"true":"false",children:et?"Hide labels":"Show labels"}):null,"ready"===T&&"birdview"===es?(0,t.jsx)(o.ZoomButtons,{onZoom:e=>w.current&&(0,l.stepZoom)(w.current,e)}):null,"ready"!==T?(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center text-sm text-fg-muted",children:"loading"===T?"Loading replay…":"empty"===T?"No replayable events (raw retention may be disabled).":"error"===T?W??"Replay unavailable.":null}):null]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:ef,disabled:"ready"!==T,className:"rounded-md bg-amber px-3 py-1.5 text-sm font-medium text-ink transition hover:bg-ember disabled:opacity-40",children:G?"Pause":"Play"}),y?(0,t.jsxs)("button",{type:"button",onClick:eb,disabled:"ready"!==T,"aria-pressed":ei?"true":"false",className:`flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium transition disabled:opacity-40 ${ei?"bg-rose-500/20 text-rose-300 ring-1 ring-rose-400/40":"border border-edge text-fg hover:bg-ink hover:text-white"}`,children:[(0,t.jsx)("span",{className:`inline-block h-2 w-2 rounded-full ${ei?"animate-pulse bg-rose-400":"bg-fg-muted"}`}),ei?"LIVE":"Resume live"]}):null,(0,t.jsxs)("div",{role:"group","aria-label":"Camera view",className:"flex items-center rounded-md border border-edge p-0.5 text-xs font-medium",children:[(0,t.jsx)("button",{type:"button",onClick:()=>el("birdview"),disabled:"ready"!==T,"aria-pressed":"birdview"===es?"true":"false",className:`rounded px-2 py-1 transition disabled:opacity-40 ${"birdview"===es?"bg-amber text-ink":"text-fg hover:text-white"}`,children:"Birdview"}),(0,t.jsx)("button",{type:"button",onClick:()=>el("follow"),disabled:"ready"!==T,"aria-pressed":"follow"===es?"true":"false",className:`rounded px-2 py-1 transition disabled:opacity-40 ${"follow"===es?"bg-amber text-ink":"text-fg hover:text-white"}`,children:"Follow camera"})]}),(0,t.jsx)("span",{className:"w-12 text-right font-mono text-xs tabular-nums text-fg-muted",children:d(K)}),(0,t.jsx)("input",{type:"range",min:0,max:Math.max(1,Z),step:50,value:Math.min(K,Z),onChange:e=>eg(Number(e.target.value)),disabled:"ready"!==T,className:"flex-1 accent-amber"}),(0,t.jsx)("span",{className:"w-12 font-mono text-xs tabular-nums text-fg-muted",children:d(Z)})]}),"ready"===T?(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[(0,t.jsx)("input",{ref:E,type:"file",accept:".glb,.gltf,model/gltf-binary,model/gltf+json",onChange:ev,className:"hidden"}),(0,t.jsx)("button",{type:"button",onClick:()=>E.current?.click(),disabled:eh,className:"rounded-md border border-edge bg-ink/80 px-2.5 py-1.5 text-xs font-medium text-fg transition hover:bg-ink hover:text-white disabled:opacity-40",children:eh?"Loading model…":ec?"Replace model (.glb)":"Load model (.glb)"}),ec?(0,t.jsx)("button",{type:"button",onClick:ek,disabled:eh,className:"rounded-md border border-edge px-2.5 py-1.5 text-xs font-medium text-fg transition hover:bg-ink hover:text-white disabled:opacity-40",children:"Remove model"}):null,ep?(0,t.jsx)("span",{className:"text-xs text-fg-muted",role:"status",children:ep}):(0,t.jsx)("span",{className:"text-xs text-fg-muted",children:"Load a glTF model to replace the wireframe boxes with your real scene."})]}):null,"ready"===T?(0,t.jsx)(m,{lanes:X,duration:Z,progress:K,onSeek:eg,hiddenTypes:b??c}):null,y&&ey&&"ready"===T?(0,t.jsx)("p",{className:"mt-2 text-xs text-fg-muted",children:"Live follow is unavailable — raw session retention is disabled on the collector."}):null]})}])},12449,e=>{e.n(e.i(28538))},68480,e=>{e.v(t=>Promise.all(["static/chunks/1--kelnig7pxx.js","static/chunks/1j--a56ji33_x.js","static/chunks/1vkww9l6lgqag.js","static/chunks/3pdpaqzwhhijn.js","static/chunks/2vaoftqgc44cg.js","static/chunks/3vaho-xrtuchd.js","static/chunks/3rl45k759wfi1.js","static/chunks/25ctnyh7njp-d.js"].map(t=>e.l(t))).then(()=>t(25062)))},85461,e=>{e.v(t=>Promise.all(["static/chunks/0n8n481szj90g.js"].map(t=>e.l(t))).then(()=>t(57092)))},3633,e=>{e.v(t=>Promise.all(["static/chunks/2l_oqx9idxcs8.js","static/chunks/25ctnyh7njp-d.js"].map(t=>e.l(t))).then(()=>t(97900)))},91064,e=>{e.v(t=>Promise.all(["static/chunks/17v12p4sfraa0.js","static/chunks/1j--a56ji33_x.js","static/chunks/340pg0qkv5tqq.js","static/chunks/0oap0o8a8a_cl.js","static/chunks/17dmbt396_tyq.js","static/chunks/0vddljjnmozzx.js","static/chunks/17d1isrw8gtnb.js","static/chunks/0gwa154w_0wuh.js","static/chunks/3g4e2txsrb2p2.js","static/chunks/3urd7r018nel4.js","static/chunks/2zljunurdji0q.js","static/chunks/3pdpaqzwhhijn.js","static/chunks/2h1uw3cluvmmo.js","static/chunks/3vaho-xrtuchd.js","static/chunks/2npk7tr63h7rl.js","static/chunks/3g_h_00xs9u59.js","static/chunks/0f_nv15a8q415.js","static/chunks/1vpcaaf-0dn7q.js","static/chunks/40acif2eh_unv.js","static/chunks/3bsvp8qhjqdu0.js","static/chunks/25ctnyh7njp-d.js","static/chunks/3pyggl13glbdc.js","static/chunks/3rl45k759wfi1.js","static/chunks/0fxfsshoxnnh6.js"].map(t=>e.l(t))).then(()=>t(83572)))}]);
@@ -1,3 +1,3 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1753,e=>{"use strict";var t=e.i(12423);let r="lod3DPixelShader",o=`const GammaEncodePowerApprox=1.0/2.2;varying vUV: vec2f;var textureSampler: texture_3d<f32>;uniform lod: f32;uniform slice: f32;uniform gamma: i32;@fragment
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20009,e=>{"use strict";var t=e.i(1719);let r="lod3DPixelShader",o=`const GammaEncodePowerApprox=1.0/2.2;varying vUV: vec2f;var textureSampler: texture_3d<f32>;uniform lod: f32;uniform slice: f32;uniform gamma: i32;@fragment
2
2
  fn main(input: FragmentInputs)->FragmentOutputs {let textureSize=textureDimensions(textureSampler,0);let textureCoordinates=vec3i(vec2i(fragmentInputs.vUV*vec2f(textureSize.xy)),i32(uniforms.slice));fragmentOutputs.color=textureLoad(textureSampler,textureCoordinates,i32(uniforms.lod));if (uniforms.gamma==0) {fragmentOutputs.color=vec4f(pow(fragmentOutputs.color.rgb,vec3f(GammaEncodePowerApprox)),fragmentOutputs.color.a);}}
3
3
  `;t.ShaderStore.ShadersStoreWGSL[r]||(t.ShaderStore.ShadersStoreWGSL[r]=o),e.s(["lod3DPixelShaderWGSL",0,{name:r,shader:o}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27116,e=>{"use strict";var t=e.i(82531),i=e.i(82350);let a="cachedOperationValue",l="cachedExecutionId";class s extends t.FlowGraphBlock{constructor(e,t){super(t),this.value=this.registerDataOutput("value",e),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean)}_updateOutputs(e){let t=e._getExecutionVariable(this,l,-1),i=e._getExecutionVariable(this,a,null);if(null!=i&&t===e.executionId)this.isValid.setValue(!0,e),this.value.setValue(i,e);else try{let t=this._doOperation(e);if(null==t)return void this.isValid.setValue(!1,e);e._setExecutionVariable(this,a,t),e._setExecutionVariable(this,l,e.executionId),this.value.setValue(t,e),this.isValid.setValue(!0,e)}catch(t){this.isValid.setValue(!1,e)}}}e.s(["FlowGraphCachedOperationBlock",0,s])},40542,e=>{"use strict";var t=e.i(82350),i=e.i(27116),a=e.i(10534),l=e.i(48477);class s extends i.FlowGraphCachedOperationBlock{constructor(e){super(t.RichTypeVector3,e),this.body=this.registerDataInput("body",t.RichTypeAny)}_doOperation(e){let t=this.body.getValue(e);if(!t)return;let i=e._getExecutionVariable(this,"_cachedVelocity",null);return i||(i=new a.Vector3,e._setExecutionVariable(this,"_cachedVelocity",i)),t.getLinearVelocityToRef(i),i}getClassName(){return"FlowGraphGetLinearVelocityBlock"}}let o=!1;function r(){o||(o=!0,(0,l.RegisterClass)("FlowGraphGetLinearVelocityBlock",s))}e.s(["FlowGraphGetLinearVelocityBlock",0,s,"RegisterFlowGraphGetLinearVelocityBlock",0,r],65010),r(),e.s([],44564),e.i(44564),e.i(65010),e.s(["FlowGraphGetLinearVelocityBlock",0,s],40542)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58667,39316,e=>{"use strict";var t=e.i(10534),i=e.i(75053),n=e.i(35270);class o{constructor(e,t,i){this.name=e,this.from=t,this.to=i}clone(){return new o(this.name,this.from,this.to)}}e.s(["AnimationRange",0,o],39316);var a=e.i(98491),r=e.i(95180),s=e.i(72491),l=e.i(95397),u=e.i(48477);let c=Object.freeze(new t.Quaternion(0,0,0,0)),h=Object.freeze(t.Vector3.Zero()),T=Object.freeze(t.Vector2.Zero()),m=Object.freeze(r.Size.Zero()),A=Object.freeze(i.Color3.Black()),p=Object.freeze(new i.Color4(0,0,0,0)),_={key:0,repeatCount:0,loopMode:2};class d{static _PrepareAnimation(e,n,o,a,s,l,u,c){let h;if(!isNaN(parseFloat(s))&&isFinite(s)?h=d.ANIMATIONTYPE_FLOAT:s instanceof t.Quaternion?h=d.ANIMATIONTYPE_QUATERNION:s instanceof t.Vector3?h=d.ANIMATIONTYPE_VECTOR3:s instanceof t.Vector2?h=d.ANIMATIONTYPE_VECTOR2:s instanceof i.Color3?h=d.ANIMATIONTYPE_COLOR3:s instanceof i.Color4?h=d.ANIMATIONTYPE_COLOR4:s instanceof r.Size&&(h=d.ANIMATIONTYPE_SIZE),void 0==h)return null;let T=new d(e,n,o,h,u);return T.setKeys([{frame:0,value:s},{frame:a,value:l}]),void 0!==c&&T.setEasingFunction(c),T}get runtimeAnimations(){return this._runtimeAnimations}get hasRunningRuntimeAnimations(){for(let e of this._runtimeAnimations)if(!e.isStopped())return!0;return!1}constructor(e,t,i,n,o,a){this.name=e,this.targetProperty=t,this.framePerSecond=i,this.dataType=n,this.loopMode=o,this.enableBlending=a,this._easingFunction=null,this._runtimeAnimations=[],this._events=[],this.blendingSpeed=.01,this._ranges={},this._coreAnimation=null,this.targetPropertyPath=t.split("."),this.dataType=n,this.loopMode=void 0===o?d.ANIMATIONLOOPMODE_CYCLE:o,this.uniqueId=d._UniqueIdGenerator++}toString(e){let t="Name: "+this.name+", property: "+this.targetProperty;if(t+=", datatype: "+["Float","Vector3","Quaternion","Matrix","Color3","Vector2"][this.dataType],t+=", nKeys: "+(this._keys?this._keys.length:"none"),t+=", nRanges: "+(this._ranges?Object.keys(this._ranges).length:"none"),e){t+=", Ranges: {";let e=!0;for(let i in this._ranges)e||(t+=", "),e=!1,t+=i;t+="}"}return t}addEvent(e){this._events.push(e),this._events.sort((e,t)=>e.frame-t.frame)}removeEvents(e){for(let t=0;t<this._events.length;t++)this._events[t].frame===e&&(this._events.splice(t,1),t--)}getEvents(){return this._events}createRange(e,t,i){this._ranges[e]||(this._ranges[e]=new o(e,t,i))}deleteRange(e,t=!0){let i=this._ranges[e];if(i){if(t){let e=i.from,t=i.to;for(let i=this._keys.length-1;i>=0;i--)this._keys[i].frame>=e&&this._keys[i].frame<=t&&this._keys.splice(i,1)}this._ranges[e]=null}}getRange(e){return this._ranges[e]}getKeys(){return this._keys}getHighestFrame(){let e=0;for(let t=0,i=this._keys.length;t<i;t++)e<this._keys[t].frame&&(e=this._keys[t].frame);return e}getEasingFunction(){return this._easingFunction}setEasingFunction(e){this._easingFunction=e}floatInterpolateFunction(e,t,i){return(0,n.Lerp)(e,t,i)}floatInterpolateFunctionWithTangents(e,t,i,o,a){return(0,n.Hermite)(e,t,i,o,a)}quaternionInterpolateFunction(e,i,n){return t.Quaternion.Slerp(e,i,n)}quaternionInterpolateFunctionWithTangents(e,i,n,o,a){return t.Quaternion.Hermite(e,i,n,o,a).normalize()}vector3InterpolateFunction(e,i,n){return t.Vector3.Lerp(e,i,n)}vector3InterpolateFunctionWithTangents(e,i,n,o,a){return t.Vector3.Hermite(e,i,n,o,a)}vector2InterpolateFunction(e,i,n){return t.Vector2.Lerp(e,i,n)}vector2InterpolateFunctionWithTangents(e,i,n,o,a){return t.Vector2.Hermite(e,i,n,o,a)}sizeInterpolateFunction(e,t,i){return r.Size.Lerp(e,t,i)}color3InterpolateFunction(e,t,n){return i.Color3.Lerp(e,t,n)}color3InterpolateFunctionWithTangents(e,t,n,o,a){return i.Color3.Hermite(e,t,n,o,a)}color4InterpolateFunction(e,t,n){return i.Color4.Lerp(e,t,n)}color4InterpolateFunctionWithTangents(e,t,n,o,a){return i.Color4.Hermite(e,t,n,o,a)}_getKeyValue(e){return"function"==typeof e?e():e}evaluate(e){return _.key=0,this._interpolate(e,_)}_interpolate(e,t,i=!1){let n;if(t.loopMode===d.ANIMATIONLOOPMODE_CONSTANT&&t.repeatCount>0)return t.highLimitValue.clone?t.highLimitValue.clone():t.highLimitValue;let o=this._keys;if(this._coreAnimation)n=this._coreAnimation._key;else{let a=o.length;for(n=t.key;n>=0&&e<o[n].frame;)--n;for(;n+1<=a-1&&e>=o[n+1].frame;)++n;if(t.key=n,n<0)return i?void 0:this._getKeyValue(o[0].value);if(n+1>a-1)return i?void 0:this._getKeyValue(o[a-1].value);this._key=n}let a=o[n],r=o[n+1];if(i&&(e===a.frame||e===r.frame))return;let s=this._getKeyValue(a.value),l=this._getKeyValue(r.value);if(1===a.interpolation)if(r.frame>e)return s;else return l;let u=void 0!==a.outTangent&&void 0!==r.inTangent,_=r.frame-a.frame,O=(e-a.frame)/_,M=a.easingFunction||this.getEasingFunction();switch(M&&(O=M.ease(O)),this.dataType){case d.ANIMATIONTYPE_FLOAT:{let e=u?this.floatInterpolateFunctionWithTangents(s,a.outTangent*_,l,r.inTangent*_,O):this.floatInterpolateFunction(s,l,O);switch(t.loopMode){case d.ANIMATIONLOOPMODE_CYCLE:case d.ANIMATIONLOOPMODE_CONSTANT:case d.ANIMATIONLOOPMODE_YOYO:return e;case d.ANIMATIONLOOPMODE_RELATIVE:case d.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return(t.offsetValue??0)*t.repeatCount+e}break}case d.ANIMATIONTYPE_QUATERNION:{let e=u?this.quaternionInterpolateFunctionWithTangents(s,a.outTangent.scale(_),l,r.inTangent.scale(_),O):this.quaternionInterpolateFunction(s,l,O);switch(t.loopMode){case d.ANIMATIONLOOPMODE_CYCLE:case d.ANIMATIONLOOPMODE_CONSTANT:case d.ANIMATIONLOOPMODE_YOYO:break;case d.ANIMATIONLOOPMODE_RELATIVE:case d.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.addInPlace((t.offsetValue||c).scale(t.repeatCount))}return e}case d.ANIMATIONTYPE_VECTOR3:{let e=u?this.vector3InterpolateFunctionWithTangents(s,a.outTangent.scale(_),l,r.inTangent.scale(_),O):this.vector3InterpolateFunction(s,l,O);switch(t.loopMode){case d.ANIMATIONLOOPMODE_CYCLE:case d.ANIMATIONLOOPMODE_CONSTANT:case d.ANIMATIONLOOPMODE_YOYO:return e;case d.ANIMATIONLOOPMODE_RELATIVE:case d.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.add((t.offsetValue||h).scale(t.repeatCount))}break}case d.ANIMATIONTYPE_VECTOR2:{let e=u?this.vector2InterpolateFunctionWithTangents(s,a.outTangent.scale(_),l,r.inTangent.scale(_),O):this.vector2InterpolateFunction(s,l,O);switch(t.loopMode){case d.ANIMATIONLOOPMODE_CYCLE:case d.ANIMATIONLOOPMODE_CONSTANT:case d.ANIMATIONLOOPMODE_YOYO:return e;case d.ANIMATIONLOOPMODE_RELATIVE:case d.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.add((t.offsetValue||T).scale(t.repeatCount))}break}case d.ANIMATIONTYPE_SIZE:switch(t.loopMode){case d.ANIMATIONLOOPMODE_CYCLE:case d.ANIMATIONLOOPMODE_CONSTANT:case d.ANIMATIONLOOPMODE_YOYO:return this.sizeInterpolateFunction(s,l,O);case d.ANIMATIONLOOPMODE_RELATIVE:case d.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return this.sizeInterpolateFunction(s,l,O).add((t.offsetValue||m).scale(t.repeatCount))}break;case d.ANIMATIONTYPE_COLOR3:{let e=u?this.color3InterpolateFunctionWithTangents(s,a.outTangent.scale(_),l,r.inTangent.scale(_),O):this.color3InterpolateFunction(s,l,O);switch(t.loopMode){case d.ANIMATIONLOOPMODE_CYCLE:case d.ANIMATIONLOOPMODE_CONSTANT:case d.ANIMATIONLOOPMODE_YOYO:return e;case d.ANIMATIONLOOPMODE_RELATIVE:case d.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.add((t.offsetValue||A).scale(t.repeatCount))}break}case d.ANIMATIONTYPE_COLOR4:{let e=u?this.color4InterpolateFunctionWithTangents(s,a.outTangent.scale(_),l,r.inTangent.scale(_),O):this.color4InterpolateFunction(s,l,O);switch(t.loopMode){case d.ANIMATIONLOOPMODE_CYCLE:case d.ANIMATIONLOOPMODE_CONSTANT:case d.ANIMATIONLOOPMODE_YOYO:return e;case d.ANIMATIONLOOPMODE_RELATIVE:case d.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return e.add((t.offsetValue||p).scale(t.repeatCount))}break}case d.ANIMATIONTYPE_MATRIX:switch(t.loopMode){case d.ANIMATIONLOOPMODE_CYCLE:case d.ANIMATIONLOOPMODE_CONSTANT:case d.ANIMATIONLOOPMODE_YOYO:if(d.AllowMatricesInterpolation)return this.matrixInterpolateFunction(s,l,O,t.workValue);return s;case d.ANIMATIONLOOPMODE_RELATIVE:case d.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT:return s}}return 0}matrixInterpolateFunction(e,i,n,o){return d.AllowMatrixDecomposeForInterpolation?o?(t.Matrix.DecomposeLerpToRef(e,i,n,o),o):t.Matrix.DecomposeLerp(e,i,n):o?(t.Matrix.LerpToRef(e,i,n,o),o):t.Matrix.Lerp(e,i,n)}clone(e=!1){let t=new d(this.name,this.targetPropertyPath.join("."),this.framePerSecond,this.dataType,this.loopMode);if(t.enableBlending=this.enableBlending,t.blendingSpeed=this.blendingSpeed,this._keys&&t.setKeys(this._keys,!1,e),this._ranges)for(let e in t._ranges={},this._ranges){let i=this._ranges[e];i&&(t._ranges[e]=i.clone())}return t}setKeys(e,t=!1,i=!1){if(t)this._keys=e;else if(this._keys=e.slice(0),i)for(let e=0;e<this._keys.length;e++){let t=this._keys[e];this._keys[e]={frame:t.frame,value:t.value.clone?t.value.clone():t.value,inTangent:t.inTangent&&t.inTangent.clone?t.inTangent.clone():t.inTangent,outTangent:t.outTangent&&t.outTangent.clone?t.outTangent.clone():t.outTangent,interpolation:t.interpolation,lockedTangent:t.lockedTangent,easingFunction:t.easingFunction}}}createKeyForFrame(e){_.key=0;let t=this._interpolate(e,_,!0);if(!t)return this._keys[_.key].frame===e?_.key:_.key+1;let i={frame:e,value:t.clone?t.clone():t};return this._keys.splice(_.key+1,0,i),_.key+1}serialize(){let e={};e.name=this.name,e.property=this.targetProperty,e.framePerSecond=this.framePerSecond,e.dataType=this.dataType,e.loopBehavior=this.loopMode,e.enableBlending=this.enableBlending,e.blendingSpeed=this.blendingSpeed;let t=this.dataType;e.keys=[];let i=this.getKeys();for(let n=0;n<i.length;n++){let o=i[n],a={};switch(a.frame=o.frame,t){case d.ANIMATIONTYPE_FLOAT:a.values=[o.value],void 0!==o.inTangent&&a.values.push(o.inTangent),void 0!==o.outTangent&&(void 0===o.inTangent&&a.values.push(void 0),a.values.push(o.outTangent)),void 0!==o.interpolation&&(void 0===o.inTangent&&a.values.push(void 0),void 0===o.outTangent&&a.values.push(void 0),a.values.push(o.interpolation));break;case d.ANIMATIONTYPE_QUATERNION:case d.ANIMATIONTYPE_MATRIX:case d.ANIMATIONTYPE_VECTOR3:case d.ANIMATIONTYPE_COLOR3:case d.ANIMATIONTYPE_COLOR4:a.values=o.value.asArray(),void 0!=o.inTangent&&a.values.push(o.inTangent.asArray()),void 0!=o.outTangent&&(void 0===o.inTangent&&a.values.push(void 0),a.values.push(o.outTangent.asArray())),void 0!==o.interpolation&&(void 0===o.inTangent&&a.values.push(void 0),void 0===o.outTangent&&a.values.push(void 0),a.values.push(o.interpolation))}e.keys.push(a)}for(let t in e.ranges=[],this._ranges){let i=this._ranges[t];if(!i)continue;let n={};n.name=t,n.from=i.from,n.to=i.to,e.ranges.push(n)}return e}static _UniversalLerp(e,t,i){let n=e.constructor;return n.Lerp?n.Lerp(e,t,i):n.Slerp?n.Slerp(e,t,i):e.toFixed?e*(1-i)+i*t:t}}function O(e,i,n,o=!1,a){let r,s=e;(r="object"==typeof i?i:{referenceFrame:i??0,range:n,cloneOriginalAnimation:o,clonedAnimationName:a}).cloneOriginalAnimation&&((s=e.clone()).name=r.clonedAnimationName||s.name);let l=s.getKeys();if(!l.length)return s;let u=r.referenceFrame&&r.referenceFrame>=0?r.referenceFrame:0,c=0,h=l[0],T=l.length-1,m=l[T],A={referenceValue:h.value,referencePosition:t.TmpVectors.Vector3[0],referenceQuaternion:t.TmpVectors.Quaternion[0],referenceScaling:t.TmpVectors.Vector3[1],keyPosition:t.TmpVectors.Vector3[2],keyQuaternion:t.TmpVectors.Quaternion[1],keyScaling:t.TmpVectors.Vector3[3]},p=h.frame,M=m.frame;if(r.range){let e=s.getRange(r.range);e&&(p=e.from,M=e.to)}else p=r.fromFrame??p,M=r.toFrame??M;p!==h.frame&&(c=s.createKeyForFrame(p)),M!==m.frame&&(T=s.createKeyForFrame(M));let g=s.getKeys();if(1===g.length){let e=s._getKeyValue(g[0]);A.referenceValue=e.clone?e.clone():e}else if(u<=h.frame){let e=s._getKeyValue(h.value);A.referenceValue=e.clone?e.clone():e}else if(u>=m.frame){let e=s._getKeyValue(m.value);A.referenceValue=e.clone?e.clone():e}else{_.key=0;let e=s._interpolate(u,_);A.referenceValue=e.clone?e.clone():e}s.dataType===d.ANIMATIONTYPE_QUATERNION?A.referenceValue.normalize().conjugateInPlace():s.dataType===d.ANIMATIONTYPE_MATRIX&&(A.referenceValue.decompose(A.referenceScaling,A.referenceQuaternion,A.referencePosition),A.referenceQuaternion.normalize().conjugateInPlace());let f=Number.MAX_VALUE,I=r.clipKeys?[]:null;for(let e=c;e<=T;e++){let i=g[e];if((I||r.cloneOriginalAnimation)&&(i={frame:i.frame,value:i.value.clone?i.value.clone():i.value,inTangent:i.inTangent,outTangent:i.outTangent,interpolation:i.interpolation,lockedTangent:i.lockedTangent,easingFunction:i.easingFunction},I&&(f===Number.MAX_VALUE&&(f=i.frame),i.frame-=f,I.push(i))),!e||s.dataType===d.ANIMATIONTYPE_FLOAT||i.value!==h.value)switch(s.dataType){case d.ANIMATIONTYPE_MATRIX:i.value.decompose(A.keyScaling,A.keyQuaternion,A.keyPosition),A.keyPosition.subtractInPlace(A.referencePosition),A.keyScaling.divideInPlace(A.referenceScaling),A.referenceQuaternion.multiplyToRef(A.keyQuaternion,A.keyQuaternion),t.Matrix.ComposeToRef(A.keyScaling,A.keyQuaternion,A.keyPosition,i.value);break;case d.ANIMATIONTYPE_QUATERNION:A.referenceValue.multiplyToRef(i.value,i.value);break;case d.ANIMATIONTYPE_VECTOR2:case d.ANIMATIONTYPE_VECTOR3:case d.ANIMATIONTYPE_COLOR3:case d.ANIMATIONTYPE_COLOR4:i.value.subtractToRef(A.referenceValue,i.value);break;case d.ANIMATIONTYPE_SIZE:i.value.width-=A.referenceValue.width,i.value.height-=A.referenceValue.height;break;default:i.value-=A.referenceValue}}return I&&s.setKeys(I,!0),s}function M(e,t,i,n){let o=new d(e+"Animation",e,i,t,d.ANIMATIONLOOPMODE_CONSTANT);return o.setEasingFunction(n),o}function g(e,t,i,n,o,a,r,s,l,u,c){let h=d._PrepareAnimation(e,i,n,o,a,r,s,l);return h&&(t.getScene&&(c=t.getScene()),c)?c.beginDirectAnimation(t,[h],0,o,h.loopMode!==d.ANIMATIONLOOPMODE_CONSTANT,1,u):null}function f(e,t,i,n,o,a,r,s,l,u,c){let h=d._PrepareAnimation(e,n,o,a,r,s,l,u);return h?t.getScene().beginDirectHierarchyAnimation(t,i,[h],0,a,1===h.loopMode,1,c):null}function I(e,t,i,n,o,a,r,s,l,u){let c=d._PrepareAnimation(e,i,n,o,a,r,s,l);return c?(t.animations.push(c),t.getScene().beginAnimation(t,0,o,1===c.loopMode,1,u)):null}function N(e,t,i,n,o,a,r,s=null,l=!0,u){if(r<=0)return i[e]=t,s&&s(),null;let c=r/1e3*o;return a.setKeys(u??[{frame:0,value:i[e].clone?i[e].clone():i[e]},{frame:c,value:t}]),i.animations||(i.animations=[]),i.animations.push(a),n.beginAnimation(i,0,c,!1,1,s??void 0,void 0,l)}function y(e,t){l.SerializationHelper.AppendSerializedAnimations(e,t)}function R(e){let n,o,a=new d(e.name,e.property,e.framePerSecond,e.dataType,e.loopBehavior),r=e.dataType,s=[];for(e.enableBlending&&(a.enableBlending=e.enableBlending),e.blendingSpeed&&(a.blendingSpeed=e.blendingSpeed),o=0;o<e.keys.length;o++){let a,l,u,c=e.keys[o];switch(r){case d.ANIMATIONTYPE_FLOAT:n=c.values[0],c.values.length>=2&&(a=c.values[1]),c.values.length>=3&&(l=c.values[2]),c.values.length>=4&&(u=c.values[3]);break;case d.ANIMATIONTYPE_QUATERNION:if(n=t.Quaternion.FromArray(c.values),c.values.length>=8){let e=t.Quaternion.FromArray(c.values.slice(4,8));e.equals(t.Quaternion.Zero())||(a=e)}if(c.values.length>=12){let e=t.Quaternion.FromArray(c.values.slice(8,12));e.equals(t.Quaternion.Zero())||(l=e)}c.values.length>=13&&(u=c.values[12]);break;case d.ANIMATIONTYPE_MATRIX:n=t.Matrix.FromArray(c.values),c.values.length>=17&&(u=c.values[16]);break;case d.ANIMATIONTYPE_COLOR3:n=i.Color3.FromArray(c.values),c.values[3]&&(a=i.Color3.FromArray(c.values[3])),c.values[4]&&(l=i.Color3.FromArray(c.values[4])),c.values[5]&&(u=c.values[5]);break;case d.ANIMATIONTYPE_COLOR4:n=i.Color4.FromArray(c.values),c.values[4]&&(a=i.Color4.FromArray(c.values[4])),c.values[5]&&(l=i.Color4.FromArray(c.values[5])),c.values[6]&&(u=i.Color4.FromArray(c.values[6]));break;case d.ANIMATIONTYPE_VECTOR3:default:n=t.Vector3.FromArray(c.values),c.values[3]&&(a=t.Vector3.FromArray(c.values[3])),c.values[4]&&(l=t.Vector3.FromArray(c.values[4])),c.values[5]&&(u=c.values[5])}let h={};h.frame=c.frame,h.value=n,void 0!=a&&(h.inTangent=a),void 0!=l&&(h.outTangent=l),void 0!=u&&(h.interpolation=u),s.push(h)}if(a.setKeys(s),e.ranges)for(o=0;o<e.ranges.length;o++)n=e.ranges[o],a.createRange(n.name,n.from,n.to);return a}async function E(e,t){return await new Promise((i,n)=>{let o=new s.WebRequest;o.addEventListener("readystatechange",()=>{if(4==o.readyState)if(200==o.status){let t=JSON.parse(o.responseText);if(t.animations&&(t=t.animations),t.length){let e=[];for(let i of t)e.push(R(i));i(e)}else{let n=R(t);e&&(n.name=e),i(n)}}else n("Unable to load the animation")}),o.open("GET",t),o.send()})}async function x(e){let t=this?.SnippetUrl??d.SnippetUrl;return await new Promise((i,n)=>{let o=new s.WebRequest;o.addEventListener("readystatechange",()=>{if(4==o.readyState)if(200==o.status){let t=JSON.parse(JSON.parse(o.responseText).jsonPayload);if(t.animations){let n=JSON.parse(t.animations),o=[];for(let t of n.animations){let i=R(t);i.snippetId=e,o.push(i)}i(o)}else{let n=R(JSON.parse(t.animation));n.snippetId=e,i(n)}}else n("Unable to load the snippet "+e)}),o.open("GET",t+"/"+e.replace(/#/g,"/")),o.send()})}d._UniqueIdGenerator=0,d.AllowMatricesInterpolation=!1,d.AllowMatrixDecomposeForInterpolation=!0,d.InheritOriginalValueFromActiveAnimations=!1,d.SnippetUrl="https://snippet.babylonjs.com",d.ANIMATIONTYPE_FLOAT=0,d.ANIMATIONTYPE_VECTOR3=1,d.ANIMATIONTYPE_QUATERNION=2,d.ANIMATIONTYPE_MATRIX=3,d.ANIMATIONTYPE_COLOR3=4,d.ANIMATIONTYPE_COLOR4=7,d.ANIMATIONTYPE_VECTOR2=5,d.ANIMATIONTYPE_SIZE=6,d.ANIMATIONLOOPMODE_RELATIVE=0,d.ANIMATIONLOOPMODE_CYCLE=1,d.ANIMATIONLOOPMODE_CONSTANT=2,d.ANIMATIONLOOPMODE_YOYO=4,d.ANIMATIONLOOPMODE_RELATIVE_FROM_CURRENT=5;let P=!1;e.s(["Animation",0,d,"AnimationCreateAnimation",0,M,"AnimationMakeAnimationAdditive",0,O,"AnimationParse",0,R,"RegisterAnimation",0,function(){P||(P=!0,d.Parse=R,d.ParseFromFileAsync=E,d.ParseFromSnippetAsync=x,d.CreateFromSnippetAsync=x,d.CreateAnimation=M,d.CreateAndStartAnimation=g,d.CreateAndStartHierarchyAnimation=f,d.CreateMergeAndStartAnimation=I,d.MakeAnimationAdditive=O,d.TransitionTo=N,d.AppendSerializedAnimations=y,(0,u.RegisterClass)("BABYLON.Animation",d),a.Node._AnimationRangeFactory=(e,t,i)=>new o(e,t,i))},"_StaticOffsetValueColor3",0,A,"_StaticOffsetValueColor4",0,p,"_StaticOffsetValueQuaternion",0,c,"_StaticOffsetValueSize",0,m,"_StaticOffsetValueVector2",0,T,"_StaticOffsetValueVector3",0,h],58667)},14975,e=>{"use strict";var t,i=e.i(10534),n=e.i(27745),o=e.i(98491),a=e.i(54670);class r extends o.Node{get _matrix(){return this._compose(),this._localMatrix}set _matrix(e){(e.updateFlag!==this._localMatrix.updateFlag||this._needToCompose)&&(this._needToCompose=!1,this._localMatrix.copyFrom(e),this._markAsDirtyAndDecompose())}constructor(e,t,n=null,o=null,a=null,r=null,s=null){super(e,t.getScene(),!1),this.name=e,this.children=[],this.animations=[],this._index=null,this._scalingDeterminant=1,this._needToDecompose=!0,this._needToCompose=!1,this._linkedTransformNode=null,this._waitingTransformNodeId=null,this._waitingTransformNodeUniqueId=null,this._skeleton=t,this._localMatrix=o?.clone()??i.Matrix.Identity(),this._restMatrix=a??this._localMatrix.clone(),this._bindMatrix=r??this._localMatrix.clone(),this._index=s,this._absoluteMatrix=new i.Matrix,this._absoluteBindMatrix=new i.Matrix,this._absoluteInverseBindMatrix=new i.Matrix,this._finalMatrix=new i.Matrix,t.bones.push(this),this.setParent(n,!1),this._updateAbsoluteBindMatrices()}getClassName(){return"Bone"}getSkeleton(){return this._skeleton}get parent(){return this._parentNode}getParent(){return this.parent}getChildren(){return this.children}getIndex(){return null===this._index?this.getSkeleton().bones.indexOf(this):this._index}set parent(e){this.setParent(e)}setParent(e,t=!0){if(this.parent!==e){if(this.parent){let e=this.parent.children.indexOf(this);-1!==e&&this.parent.children.splice(e,1)}this._parentNode=e,this.parent&&this.parent.children.push(this),t&&this._updateAbsoluteBindMatrices(),this.markAsDirty()}}getLocalMatrix(){return this._compose(),this._localMatrix}getBindMatrix(){return this._bindMatrix}getBaseMatrix(){return this.getBindMatrix()}getRestMatrix(){return this._restMatrix}getRestPose(){return this.getRestMatrix()}setRestMatrix(e){this._restMatrix.copyFrom(e)}setRestPose(e){this.setRestMatrix(e)}getBindPose(){return this.getBindMatrix()}setBindMatrix(e){this.updateMatrix(e)}setBindPose(e){this.setBindMatrix(e)}getFinalMatrix(){return this._finalMatrix}getWorldMatrix(){return this.getFinalMatrix()}returnToRest(){if(this._linkedTransformNode){let e=i.TmpVectors.Vector3[0],t=i.TmpVectors.Quaternion[0],n=i.TmpVectors.Vector3[1];this.getRestMatrix().decompose(e,t,n),this._linkedTransformNode.position.copyFrom(n),this._linkedTransformNode.rotationQuaternion=this._linkedTransformNode.rotationQuaternion??i.Quaternion.Identity(),this._linkedTransformNode.rotationQuaternion.copyFrom(t),this._linkedTransformNode.scaling.copyFrom(e)}else this._matrix=this._restMatrix}getAbsoluteInverseBindMatrix(){return this._absoluteInverseBindMatrix}getInvertedAbsoluteTransform(){return this.getAbsoluteInverseBindMatrix()}getAbsoluteMatrix(){return this._skeleton.computeAbsoluteMatrices(),this._absoluteMatrix}getAbsoluteTransform(){return this.getAbsoluteMatrix()}linkTransformNode(e){this._linkedTransformNode&&this._skeleton._numBonesWithLinkedTransformNode--,this._linkedTransformNode=e,this._linkedTransformNode&&this._skeleton._numBonesWithLinkedTransformNode++}getTransformNode(){return this._linkedTransformNode}get position(){return this._decompose(),this._localPosition}set position(e){this._decompose(),this._localPosition.copyFrom(e),this._markAsDirtyAndCompose()}get rotation(){return this.getRotation()}set rotation(e){this.setRotation(e)}get rotationQuaternion(){return this._decompose(),this._localRotation}set rotationQuaternion(e){this.setRotationQuaternion(e)}get scaling(){return this.getScale()}set scaling(e){this.setScale(e)}get animationPropertiesOverride(){return this._skeleton.animationPropertiesOverride}_decompose(){this._needToDecompose&&(this._needToDecompose=!1,this._localScaling||(this._localScaling=i.Vector3.Zero(),this._localRotation=i.Quaternion.Zero(),this._localPosition=i.Vector3.Zero()),this._localMatrix.decompose(this._localScaling,this._localRotation,this._localPosition))}_compose(){if(this._needToCompose){if(!this._localScaling){this._needToCompose=!1;return}this._needToCompose=!1,i.Matrix.ComposeToRef(this._localScaling,this._localRotation,this._localPosition,this._localMatrix)}}updateMatrix(e,t=!0,i=!0){this._bindMatrix.copyFrom(e),t&&this._updateAbsoluteBindMatrices(),i?this._matrix=e:this.markAsDirty()}_updateAbsoluteBindMatrices(e,t=!0){if(e||(e=this._bindMatrix),this.parent?e.multiplyToRef(this.parent._absoluteBindMatrix,this._absoluteBindMatrix):this._absoluteBindMatrix.copyFrom(e),this._absoluteBindMatrix.invertToRef(this._absoluteInverseBindMatrix),t)for(let e=0;e<this.children.length;e++)this.children[e]._updateAbsoluteBindMatrices();this._scalingDeterminant=0>this._absoluteBindMatrix.determinant()?-1:1}markAsDirty(){return this._currentRenderId++,this._childUpdateId++,this._skeleton._markAsDirty(),this}_markAsDirtyAndCompose(){this.markAsDirty(),this._needToCompose=!0}_markAsDirtyAndDecompose(){this.markAsDirty(),this._needToDecompose=!0}_updatePosition(e,t=0,n,o=!0){let a=this.getLocalMatrix();if(0==t)o?(a.addAtIndex(12,e.x),a.addAtIndex(13,e.y),a.addAtIndex(14,e.z)):a.setTranslationFromFloats(e.x,e.y,e.z);else{let t=r._TmpMats[0],s=r._TmpVecs[0];this.parent?(t.copyFrom(this.parent.getAbsoluteMatrix()),n&&t.multiplyToRef(n.getWorldMatrix(),t)):i.Matrix.IdentityToRef(t),o&&t.setTranslationFromFloats(0,0,0),t.invert(),i.Vector3.TransformCoordinatesToRef(e,t,s),o?(a.addAtIndex(12,s.x),a.addAtIndex(13,s.y),a.addAtIndex(14,s.z)):a.setTranslationFromFloats(s.x,s.y,s.z)}this._markAsDirtyAndDecompose()}translate(e,t=0,i){this._updatePosition(e,t,i,!0)}setPosition(e,t=0,i){this._updatePosition(e,t,i,!1)}setAbsolutePosition(e,t){this.setPosition(e,1,t)}scale(e,t,n,o=!1){let a=this.getLocalMatrix(),s=r._TmpMats[0];for(let o of(i.Matrix.ScalingToRef(e,t,n,s),s.multiplyToRef(a,a),s.invert(),this.children)){let i=o.getLocalMatrix();i.multiplyToRef(s,i),i.multiplyAtIndex(12,e),i.multiplyAtIndex(13,t),i.multiplyAtIndex(14,n),o._markAsDirtyAndDecompose()}if(this._markAsDirtyAndDecompose(),o)for(let i of this.children)i.scale(e,t,n,o)}setScale(e){this._decompose(),this._localScaling.copyFrom(e),this._markAsDirtyAndCompose()}getScale(){return this._decompose(),this._localScaling}getScaleToRef(e){this._decompose(),e.copyFrom(this._localScaling)}setYawPitchRoll(e,t,n,o=0,a){if(0===o){let s=r._TmpQuat;i.Quaternion.RotationYawPitchRollToRef(e,t,n,s),this.setRotationQuaternion(s,o,a);return}let s=r._TmpMats[0];if(!this._getAbsoluteInverseMatrixUnscaledToRef(s,a))return;let l=r._TmpMats[1];i.Matrix.RotationYawPitchRollToRef(e,t,n,l),s.multiplyToRef(l,l),this._rotateWithMatrix(l,o,a)}rotate(e,t,n=0,o){let a=r._TmpMats[0];a.setTranslationFromFloats(0,0,0),i.Matrix.RotationAxisToRef(e,t,a),this._rotateWithMatrix(a,n,o)}setAxisAngle(e,t,n=0,o){if(0===n){let a=r._TmpQuat;i.Quaternion.RotationAxisToRef(e,t,a),this.setRotationQuaternion(a,n,o);return}let a=r._TmpMats[0];if(!this._getAbsoluteInverseMatrixUnscaledToRef(a,o))return;let s=r._TmpMats[1];i.Matrix.RotationAxisToRef(e,t,s),a.multiplyToRef(s,s),this._rotateWithMatrix(s,n,o)}setRotation(e,t=0,i){this.setYawPitchRoll(e.y,e.x,e.z,t,i)}setRotationQuaternion(e,t=0,n){if(0===t){this._decompose(),this._localRotation.copyFrom(e),this._markAsDirtyAndCompose();return}let o=r._TmpMats[0];if(!this._getAbsoluteInverseMatrixUnscaledToRef(o,n))return;let a=r._TmpMats[1];i.Matrix.FromQuaternionToRef(e,a),o.multiplyToRef(a,a),this._rotateWithMatrix(a,t,n)}setRotationMatrix(e,t=0,n){if(0===t){let o=r._TmpQuat;i.Quaternion.FromRotationMatrixToRef(e,o),this.setRotationQuaternion(o,t,n);return}let o=r._TmpMats[0];if(!this._getAbsoluteInverseMatrixUnscaledToRef(o,n))return;let a=r._TmpMats[1];a.copyFrom(e),o.multiplyToRef(e,a),this._rotateWithMatrix(a,t,n)}_rotateWithMatrix(e,t=0,i){let n=this.getLocalMatrix(),o=n.m[12],a=n.m[13],s=n.m[14],l=this.getParent(),u=r._TmpMats[3],c=r._TmpMats[4];l&&1==t?(i?(u.copyFrom(i.getWorldMatrix()),l.getAbsoluteMatrix().multiplyToRef(u,u)):u.copyFrom(l.getAbsoluteMatrix()),c.copyFrom(u),c.invert(),n.multiplyToRef(u,n),n.multiplyToRef(e,n),n.multiplyToRef(c,n)):1==t&&i?(u.copyFrom(i.getWorldMatrix()),c.copyFrom(u),c.invert(),n.multiplyToRef(u,n),n.multiplyToRef(e,n),n.multiplyToRef(c,n)):n.multiplyToRef(e,n),n.setTranslationFromFloats(o,a,s),this._markAsDirtyAndDecompose()}_getAbsoluteInverseMatrixUnscaledToRef(e,t){let n=r._TmpMats[2];return e.copyFrom(this.getAbsoluteMatrix()),t?(e.multiplyToRef(t.getWorldMatrix(),e),i.Matrix.ScalingToRef(t.scaling.x,t.scaling.y,t.scaling.z,n)):i.Matrix.IdentityToRef(n),e.invert(),!isNaN(e.m[0])&&(n.multiplyAtIndex(0,this._scalingDeterminant),e.multiplyToRef(n,e),!0)}getPosition(e=0,t=null){let n=i.Vector3.Zero();return this.getPositionToRef(e,t,n),n}getPositionToRef(e=0,t,i){if(0==e){let e=this.getLocalMatrix();i.x=e.m[12],i.y=e.m[13],i.z=e.m[14]}else{let e=r._TmpMats[0].copyFrom(this.getAbsoluteMatrix());t&&e.multiplyToRef(t.getWorldMatrix(),e),i.x=e.m[12],i.y=e.m[13],i.z=e.m[14]}}getAbsolutePosition(e=null){let t=i.Vector3.Zero();return this.getPositionToRef(1,e,t),t}getAbsolutePositionToRef(e,t){this.getPositionToRef(1,e,t)}computeAbsoluteMatrices(){if(this._compose(),this.parent)this._localMatrix.multiplyToRef(this.parent._absoluteMatrix,this._absoluteMatrix);else{this._absoluteMatrix.copyFrom(this._localMatrix);let e=this._skeleton.getPoseMatrix();e&&this._absoluteMatrix.multiplyToRef(e,this._absoluteMatrix)}let e=this.children,t=e.length;for(let i=0;i<t;i++)e[i].computeAbsoluteMatrices()}computeAbsoluteTransforms(){this.computeAbsoluteMatrices()}getDirection(e,t=null){let n=i.Vector3.Zero();return this.getDirectionToRef(e,t,n),n}getDirectionToRef(e,t=null,n){let o=r._TmpMats[0].copyFrom(this.getAbsoluteMatrix());t&&o.multiplyToRef(t.getWorldMatrix(),o),i.Vector3.TransformNormalToRef(e,o,n),n.normalize()}getRotation(e=0,t=null){let n=i.Vector3.Zero();return this.getRotationToRef(e,t,n),n}getRotationToRef(e=0,t=null,i){let n=r._TmpQuat;this.getRotationQuaternionToRef(e,t,n),n.toEulerAnglesToRef(i)}getRotationQuaternion(e=0,t=null){let n=i.Quaternion.Identity();return this.getRotationQuaternionToRef(e,t,n),n}getRotationQuaternionToRef(e=0,t=null,i){if(0==e)this._decompose(),i.copyFrom(this._localRotation);else{let e=r._TmpMats[0],n=this.getAbsoluteMatrix();t?n.multiplyToRef(t.getWorldMatrix(),e):e.copyFrom(n),e.multiplyAtIndex(0,this._scalingDeterminant),e.multiplyAtIndex(1,this._scalingDeterminant),e.multiplyAtIndex(2,this._scalingDeterminant),e.decompose(void 0,i,void 0)}}getRotationMatrix(e=0,t){let n=i.Matrix.Identity();return this.getRotationMatrixToRef(e,t,n),n}getRotationMatrixToRef(e=0,t,i){if(0==e)this.getLocalMatrix().getRotationMatrixToRef(i);else{let e=r._TmpMats[0],n=this.getAbsoluteMatrix();t?n.multiplyToRef(t.getWorldMatrix(),e):e.copyFrom(n),e.multiplyAtIndex(0,this._scalingDeterminant),e.multiplyAtIndex(1,this._scalingDeterminant),e.multiplyAtIndex(2,this._scalingDeterminant),e.getRotationMatrixToRef(i)}}getAbsolutePositionFromLocal(e,t=null){let n=i.Vector3.Zero();return this.getAbsolutePositionFromLocalToRef(e,t,n),n}getAbsolutePositionFromLocalToRef(e,t=null,n){let o=r._TmpMats[0].copyFrom(this.getAbsoluteMatrix());t&&o.multiplyToRef(t.getWorldMatrix(),o),i.Vector3.TransformCoordinatesToRef(e,o,n)}getLocalPositionFromAbsolute(e,t=null){let n=i.Vector3.Zero();return this.getLocalPositionFromAbsoluteToRef(e,t,n),n}getLocalPositionFromAbsoluteToRef(e,t=null,n){let o=r._TmpMats[0].copyFrom(this.getAbsoluteMatrix());t&&o.multiplyToRef(t.getWorldMatrix(),o),o.invert(),i.Vector3.TransformCoordinatesToRef(e,o,n)}setCurrentPoseAsRest(){this.setRestMatrix(this.getLocalMatrix())}dispose(){this._linkedTransformNode=null;let e=this._skeleton.bones.indexOf(this);if(-1!==e&&this._skeleton.bones.splice(e,1),this._parentNode&&this._parentNode.children){let e=this._parentNode.children,t=e.indexOf(this);-1!==t&&e.splice(t,1)}super.dispose()}}r._TmpVecs=(0,n.BuildArray)(2,i.Vector3.Zero),r._TmpQuat=i.Quaternion.Identity(),r._TmpMats=(0,n.BuildArray)(5,i.Matrix.Identity),(t=r.prototype).copyAnimationRange??(t.copyAnimationRange=(0,a._MissingSideEffect)("Bone","copyAnimationRange")),e.s(["Bone",0,r])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,92430,t=>{"use strict";var e=t.i(82531),s=t.i(82350),a=t.i(87986),i=t.i(48477);class u extends e.FlowGraphBlock{constructor(t){for(let e of(super(t),this.config=t,this._inputCases=new Map,this.case=this.registerDataInput("case",s.RichTypeAny,NaN),this.default=this.registerDataInput("default",s.RichTypeAny),this.value=this.registerDataOutput("value",s.RichTypeAny),this.config.cases||[])){if(e=(0,a.getNumericValue)(e),this.config.treatCasesAsIntegers&&(e|=0,this._inputCases.has(e)))return;this._inputCases.set(e,this.registerDataInput(`in_${e}`,s.RichTypeAny))}}_updateOutputs(t){let e,s=this.case.getValue(t);(0,a.isNumeric)(s)&&(e=this._getOutputValueForCase((0,a.getNumericValue)(s),t)),e||(e=this.default.getValue(t)),this.value.setValue(e,t)}_getOutputValueForCase(t,e){return this._inputCases.get(t)?.getValue(e)}getClassName(){return"FlowGraphDataSwitchBlock"}}let r=!1;function h(){r||(r=!0,(0,i.RegisterClass)("FlowGraphDataSwitchBlock",u))}t.s(["FlowGraphDataSwitchBlock",0,u,"RegisterFlowGraphDataSwitchBlock",0,h],23796),h(),t.s([],25648),t.i(25648),t.i(23796),t.s(["FlowGraphDataSwitchBlock",0,u],92430)}]);
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20307,31008,68934,18851,7642,5313,28885,e=>{"use strict";var t,i,s,r,n,a,o,l,h,c,u,p,d,f,_,g,m,b,S,C,E,y,x,F,A,v,D,P,O,T,R,M,B,k,w,I,L,U,N,V,G,W,H,q,z,j,$,Z,K,Q,X,Y,J,ee,et,ei,es,er,en,ea,eo,el,eh,ec,eu,ep,ed,ef,e_,eg,em,eb,eS,eC,eE,ey,ex,eF,eA,ev,eD,eP,eO,eT,eR,eM,eB,ek,ew,eI,eL,eU,eN,eV,eG,eW,eH,eq,ez,ej,e$,eZ,eK,eQ,eX,eY,eJ,e0=e.i(57554),e1=e.i(83464),e2=e.i(1719),e3=e.i(75865);class e4{constructor(){this._valueCache={},this.vertexCompilationError=null,this.fragmentCompilationError=null,this.programLinkError=null,this.programValidationError=null,this._isDisposed=!1}get isAsync(){return this.isParallelCompiled}get isReady(){return!!this.program&&(!this.isParallelCompiled||this.engine._isRenderingStateCompiled(this))}_handlesSpectorRebuildCallback(e){e&&this.program&&e(this.program)}setEngine(e){this.engine=e}_fillEffectInformation(e,t,i,s,r,n,a,o){let l,h=this.engine;if(h.supportsUniformBuffers)for(let i in t)e.bindUniformBlock(i,t[i]);for(this.engine.getUniforms(this,i).forEach((e,t)=>{s[i[t]]=e}),this._uniforms=s,l=0;l<r.length;l++)null==e.getUniform(r[l])&&(r.splice(l,1),l--);for(let e of(r.forEach((e,t)=>{n[e]=t}),h.getAttributes(this,a)))o.push(e)}dispose(){this._uniforms={},this._isDisposed=!0}_cacheMatrix(e,t){let i=this._valueCache[e],s=t.updateFlag;return(void 0===i||i!==s)&&(this._valueCache[e]=s,!0)}_cacheFloat2(e,t,i){let s=this._valueCache[e];if(!s||2!==s.length)return s=[t,i],this._valueCache[e]=s,!0;let r=!1;return s[0]!==t&&(s[0]=t,r=!0),s[1]!==i&&(s[1]=i,r=!0),r}_cacheFloat3(e,t,i,s){let r=this._valueCache[e];if(!r||3!==r.length)return r=[t,i,s],this._valueCache[e]=r,!0;let n=!1;return r[0]!==t&&(r[0]=t,n=!0),r[1]!==i&&(r[1]=i,n=!0),r[2]!==s&&(r[2]=s,n=!0),n}_cacheFloat4(e,t,i,s,r){let n=this._valueCache[e];if(!n||4!==n.length)return n=[t,i,s,r],this._valueCache[e]=n,!0;let a=!1;return n[0]!==t&&(n[0]=t,a=!0),n[1]!==i&&(n[1]=i,a=!0),n[2]!==s&&(n[2]=s,a=!0),n[3]!==r&&(n[3]=r,a=!0),a}setInt(e,t){let i=this._valueCache[e];(void 0===i||i!==t)&&this.engine.setInt(this._uniforms[e],t)&&(this._valueCache[e]=t)}setInt2(e,t,i){this._cacheFloat2(e,t,i)&&!this.engine.setInt2(this._uniforms[e],t,i)&&(this._valueCache[e]=null)}setInt3(e,t,i,s){this._cacheFloat3(e,t,i,s)&&!this.engine.setInt3(this._uniforms[e],t,i,s)&&(this._valueCache[e]=null)}setInt4(e,t,i,s,r){this._cacheFloat4(e,t,i,s,r)&&!this.engine.setInt4(this._uniforms[e],t,i,s,r)&&(this._valueCache[e]=null)}setIntArray(e,t){this._valueCache[e]=null,this.engine.setIntArray(this._uniforms[e],t)}setIntArray2(e,t){this._valueCache[e]=null,this.engine.setIntArray2(this._uniforms[e],t)}setIntArray3(e,t){this._valueCache[e]=null,this.engine.setIntArray3(this._uniforms[e],t)}setIntArray4(e,t){this._valueCache[e]=null,this.engine.setIntArray4(this._uniforms[e],t)}setUInt(e,t){let i=this._valueCache[e];(void 0===i||i!==t)&&this.engine.setUInt(this._uniforms[e],t)&&(this._valueCache[e]=t)}setUInt2(e,t,i){this._cacheFloat2(e,t,i)&&!this.engine.setUInt2(this._uniforms[e],t,i)&&(this._valueCache[e]=null)}setUInt3(e,t,i,s){this._cacheFloat3(e,t,i,s)&&!this.engine.setUInt3(this._uniforms[e],t,i,s)&&(this._valueCache[e]=null)}setUInt4(e,t,i,s,r){this._cacheFloat4(e,t,i,s,r)&&!this.engine.setUInt4(this._uniforms[e],t,i,s,r)&&(this._valueCache[e]=null)}setUIntArray(e,t){this._valueCache[e]=null,this.engine.setUIntArray(this._uniforms[e],t)}setUIntArray2(e,t){this._valueCache[e]=null,this.engine.setUIntArray2(this._uniforms[e],t)}setUIntArray3(e,t){this._valueCache[e]=null,this.engine.setUIntArray3(this._uniforms[e],t)}setUIntArray4(e,t){this._valueCache[e]=null,this.engine.setUIntArray4(this._uniforms[e],t)}setArray(e,t){this._valueCache[e]=null,this.engine.setArray(this._uniforms[e],t)}setArray2(e,t){this._valueCache[e]=null,this.engine.setArray2(this._uniforms[e],t)}setArray3(e,t){this._valueCache[e]=null,this.engine.setArray3(this._uniforms[e],t)}setArray4(e,t){this._valueCache[e]=null,this.engine.setArray4(this._uniforms[e],t)}setMatrices(e,t){t&&(this._valueCache[e]=null,this.engine.setMatrices(this._uniforms[e],t))}setMatrix(e,t){this._cacheMatrix(e,t)&&!this.engine.setMatrices(this._uniforms[e],t.asArray())&&(this._valueCache[e]=null)}setMatrix3x3(e,t){this._valueCache[e]=null,this.engine.setMatrix3x3(this._uniforms[e],t)}setMatrix2x2(e,t){this._valueCache[e]=null,this.engine.setMatrix2x2(this._uniforms[e],t)}setFloat(e,t){let i=this._valueCache[e];(void 0===i||i!==t)&&this.engine.setFloat(this._uniforms[e],t)&&(this._valueCache[e]=t)}setVector2(e,t){this._cacheFloat2(e,t.x,t.y)&&!this.engine.setFloat2(this._uniforms[e],t.x,t.y)&&(this._valueCache[e]=null)}setFloat2(e,t,i){this._cacheFloat2(e,t,i)&&!this.engine.setFloat2(this._uniforms[e],t,i)&&(this._valueCache[e]=null)}setVector3(e,t){this._cacheFloat3(e,t.x,t.y,t.z)&&!this.engine.setFloat3(this._uniforms[e],t.x,t.y,t.z)&&(this._valueCache[e]=null)}setFloat3(e,t,i,s){this._cacheFloat3(e,t,i,s)&&!this.engine.setFloat3(this._uniforms[e],t,i,s)&&(this._valueCache[e]=null)}setVector4(e,t){this._cacheFloat4(e,t.x,t.y,t.z,t.w)&&!this.engine.setFloat4(this._uniforms[e],t.x,t.y,t.z,t.w)&&(this._valueCache[e]=null)}setQuaternion(e,t){this._cacheFloat4(e,t.x,t.y,t.z,t.w)&&!this.engine.setFloat4(this._uniforms[e],t.x,t.y,t.z,t.w)&&(this._valueCache[e]=null)}setFloat4(e,t,i,s,r){this._cacheFloat4(e,t,i,s,r)&&!this.engine.setFloat4(this._uniforms[e],t,i,s,r)&&(this._valueCache[e]=null)}setColor3(e,t){this._cacheFloat3(e,t.r,t.g,t.b)&&!this.engine.setFloat3(this._uniforms[e],t.r,t.g,t.b)&&(this._valueCache[e]=null)}setColor4(e,t,i){this._cacheFloat4(e,t.r,t.g,t.b,i)&&!this.engine.setFloat4(this._uniforms[e],t.r,t.g,t.b,i)&&(this._valueCache[e]=null)}setDirectColor4(e,t){this._cacheFloat4(e,t.r,t.g,t.b,t.a)&&!this.engine.setFloat4(this._uniforms[e],t.r,t.g,t.b,t.a)&&(this._valueCache[e]=null)}_getVertexShaderCode(){return this.vertexShader?this.engine._getShaderSource(this.vertexShader):null}_getFragmentShaderCode(){return this.fragmentShader?this.engine._getShaderSource(this.fragmentShader):null}}var e7=e.i(25746);let e5={};function e8(e,t,i=""){return i+(t?t+"\n":"")+e}function e6(e,t,i,s,r,n,a){return(a||e5.loadFile||e7.LoadFile)(e,t,i,s,r,n)}function e9(e,t,i,s){if(e){t?e.IS_NDC_HALF_ZRANGE="":delete e.IS_NDC_HALF_ZRANGE,i?e.USE_REVERSE_DEPTHBUFFER="":delete e.USE_REVERSE_DEPTHBUFFER,s?e.USE_EXACT_SRGB_CONVERSIONS="":delete e.USE_EXACT_SRGB_CONVERSIONS;return}{let e="";return t&&(e+="#define IS_NDC_HALF_ZRANGE"),i&&(e&&(e+="\n"),e+="#define USE_REVERSE_DEPTHBUFFER"),s&&(e&&(e+="\n"),e+="#define USE_EXACT_SRGB_CONVERSIONS"),e}}e.s(["EngineFunctionContext",0,e5,"_ConcatenateShader",0,e8,"_GetGlobalDefines",0,e9,"_LoadFile",0,e6,"allocateAndCopyTypedBuffer",0,function(e,t,i=!1,s){switch(e){case 3:{let e=new Int8Array(t);return s&&e.set(new Int8Array(s)),e}case 0:{let e=new Uint8Array(t);return s&&e.set(new Uint8Array(s)),e}case 4:{let e=new Int16Array("number"!=typeof t?t:i?t/2:t);return s&&e.set(new Int16Array(s)),e}case 5:case 8:case 9:case 10:case 2:{let e=new Uint16Array("number"!=typeof t?t:i?t/2:t);return s&&e.set(new Uint16Array(s)),e}case 6:{let e=new Int32Array("number"!=typeof t?t:i?t/4:t);return s&&e.set(new Int32Array(s)),e}case 7:case 11:case 12:case 13:case 14:case 15:{let e=new Uint32Array("number"!=typeof t?t:i?t/4:t);return s&&e.set(new Uint32Array(s)),e}case 1:{let e=new Float32Array("number"!=typeof t?t:i?t/4:t);return s&&e.set(new Float32Array(s)),e}}let r=new Uint8Array(t);return s&&r.set(new Uint8Array(s)),r}],31008);let te=new WeakMap,tt={_webGLVersion:2,cachedPipelines:{}};function ti(e){let t=te.get(e);if(!t){if(!e)return tt;t={_webGLVersion:e.TEXTURE_BINDING_3D?2:1,_context:e,parallelShaderCompile:e.getExtension("KHR_parallel_shader_compile")||void 0,cachedPipelines:{}},te.set(e,t)}return t}function ts(e,t,i,s,r,n){let a=ti(s);return n||(n=a._createShaderProgramInjection??tn),n(e,to(t,"vertex",s,a._contextWasLost),to(i,"fragment",s,a._contextWasLost),s,r,a.validateShaderPrograms)}function tr(e,t,i,s,r,n=null,a){var o,l,h,c,u,p,d,f,_,g,m,b;let S=ti(r);a||(a=S._createShaderProgramInjection??tn);let C=S._webGLVersion>1?"#version 300 es\n#define WEBGL2 \n":"";return a(e,(o=t,l="vertex",h=s,c=C,u=r,p=S._contextWasLost,to(e8(o,h,c),l,u,p)),(d=i,f="fragment",_=s,g=C,m=r,b=S._contextWasLost,to(e8(d,_,g),f,m,b)),r,n,S.validateShaderPrograms)}function tn(e,t,i,s,r=null,n){let a=s.createProgram();if(e.program=a,!a)throw Error("Unable to create program");return s.attachShader(a,t),s.attachShader(a,i),s.linkProgram(a),e.context=s,e.vertexShader=t,e.fragmentShader=i,e.isParallelCompiled||ta(e,s,n),a}function ta(e,t,i){let s=e.context,r=e.vertexShader,n=e.fragmentShader,a=e.program;if(!s.getProgramParameter(a,s.LINK_STATUS)){if(!t.getShaderParameter(r,t.COMPILE_STATUS)){let i=t.getShaderInfoLog(r);if(i)throw e.vertexCompilationError=i,Error("VERTEX SHADER "+i)}if(!t.getShaderParameter(n,t.COMPILE_STATUS)){let i=t.getShaderInfoLog(n);if(i)throw e.fragmentCompilationError=i,Error("FRAGMENT SHADER "+i)}let i=s.getProgramInfoLog(a);if(i)throw e.programLinkError=i,Error(i)}if(i&&(s.validateProgram(a),!s.getProgramParameter(a,s.VALIDATE_STATUS))){let t=s.getProgramInfoLog(a);if(t)throw e.programValidationError=t,Error(t)}s.deleteShader(r),s.deleteShader(n),e.vertexShader=void 0,e.fragmentShader=void 0,e.onCompiled&&(e.onCompiled(),e.onCompiled=void 0)}function to(e,t,i,s){let r=i.createShader("vertex"===t?i.VERTEX_SHADER:i.FRAGMENT_SHADER);if(!r){let e,r=i.NO_ERROR;for(;(e=i.getError())!==i.NO_ERROR;)r=e;throw Error(`Something went wrong while creating a gl ${t} shader object. gl error=${r}, gl isContextLost=${i.isContextLost()}, _contextWasLost=${s}`)}return i.shaderSource(r,e),i.compileShader(r),r}e.s(["_createShaderProgram",0,tn,"_executeWhenRenderingStateIsCompiled",0,function(e,t){if(!e.isParallelCompiled)return void t(e);let i=e.onCompiled;e.onCompiled=()=>{i?.(),t(e)}},"_finalizePipelineContext",0,ta,"_isRenderingStateCompiled",0,function(e,t,i){if(e._isDisposed)return!1;let s=ti(t);return!!(s&&s.parallelShaderCompile&&s.parallelShaderCompile.COMPLETION_STATUS_KHR&&e.program&&t.getProgramParameter(e.program,s.parallelShaderCompile.COMPLETION_STATUS_KHR))&&(ta(e,t,i),!0)},"_preparePipelineContext",0,function(e,t,i,s,r,n,a,o,l,h="",c,u,p){let d=ti(e.context);u||(u=d.createRawShaderProgramInjection??ts),p||(p=d.createShaderProgramInjection??tr),s?e.program=u(e,t,i,e.context,l):e.program=p(e,t,i,o,e.context,l),e.program.__SPECTOR_rebuildProgram=a,c()},"_setProgram",0,function(e,t){t.useProgram(e)},"createPipelineContext",0,function(e,t){let i=new e4,s=ti(e);return s.parallelShaderCompile&&!s.disableParallelShaderCompile&&(i.isParallelCompiled=!0),i.context=s._context,i},"createRawShaderProgram",0,ts,"createShaderProgram",0,tr,"deleteStateObject",0,function(e){te.delete(e)},"getStateObject",0,ti],68934);class tl{constructor(){this.children=[]}isValid(e){return!0}process(e,t,i){let s="";if(this.line){let i=this.line,r=t.processor;if(r){r.lineProcessor&&(i=r.lineProcessor(i,t.isFragment,t.processingContext));let s=t.processor?.attributeKeywordName??"attribute",n=t.isFragment&&t.processor?.varyingFragmentKeywordName?t.processor?.varyingFragmentKeywordName:!t.isFragment&&t.processor?.varyingVertexKeywordName?t.processor?.varyingVertexKeywordName:"varying";!t.isFragment&&r.attributeProcessor&&this.line.startsWith(s)?i=r.attributeProcessor(this.line,e,t.processingContext):r.varyingProcessor&&(r.varyingCheck?.(this.line,t.isFragment)||!r.varyingCheck&&this.line.startsWith(n))?i=r.varyingProcessor(this.line,t.isFragment,e,t.processingContext):r.uniformProcessor&&r.uniformRegexp&&r.uniformRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(i=r.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):r.uniformBufferProcessor&&r.uniformBufferRegexp&&r.uniformBufferRegexp.test(this.line)?t.lookForClosingBracketForUniformBuffer||(i=r.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0):r.textureProcessor&&r.textureRegexp&&r.textureRegexp.test(this.line)?i=r.textureProcessor(this.line,t.isFragment,e,t.processingContext):(r.uniformProcessor||r.uniformBufferProcessor)&&this.line.startsWith("uniform")&&!t.lookForClosingBracketForUniformBuffer&&(/uniform\s+(?:(?:highp)?|(?:lowp)?)\s*(\S+)\s+(\S+)\s*;/.test(this.line)?r.uniformProcessor&&(i=r.uniformProcessor(this.line,t.isFragment,e,t.processingContext)):r.uniformBufferProcessor&&(i=r.uniformBufferProcessor(this.line,t.isFragment,t.processingContext),t.lookForClosingBracketForUniformBuffer=!0)),t.lookForClosingBracketForUniformBuffer&&-1!==this.line.indexOf("}")&&(t.lookForClosingBracketForUniformBuffer=!1,r.endOfUniformBufferProcessor&&(i=r.endOfUniformBufferProcessor(this.line,t.isFragment,t.processingContext)))}s+=i+"\n"}for(let r of this.children)s+=r.process(e,t,i);return this.additionalDefineKey&&(e[this.additionalDefineKey]=this.additionalDefineValue||"true",i[this.additionalDefineKey]=e[this.additionalDefineKey]),s}}class th{constructor(){this._lines=[]}get currentLine(){return this._lines[this.lineIndex]}get canRead(){return this.lineIndex<this._lines.length-1}set lines(e){for(let t of(this._lines.length=0,e)){if(!t||"\r"===t)continue;if("#"===t[0]){this._lines.push(t);continue}let e=t.trim();if(!e)continue;if(e.startsWith("//")){this._lines.push(t);continue}let i=e.indexOf(";");if(-1===i)this._lines.push(e);else if(i===e.length-1)e.length>1&&this._lines.push(e);else{let e=t.split(";");for(let t=0;t<e.length;t++){let i=e[t];i&&(i=i.trim())&&this._lines.push(i+(t!==e.length-1?";":""))}}}}}class tc extends tl{process(e,t,i){for(let s=0;s<this.children.length;s++){let r=this.children[s];if(r.isValid(e))return r.process(e,t,i)}return""}}class tu extends tl{isValid(e){return this.testExpression.isTrue(e)}}class tp{isTrue(e){return!0}static postfixToInfix(e){let t=[];for(let i of e)if(void 0===tp._OperatorPriority[i])t.push(i);else{let e=t[t.length-1],s=t[t.length-2];t.length-=2,t.push(`(${s}${i}${e})`)}return t[t.length-1]}static infixToPostfix(e){let t=tp._InfixToPostfixCache.get(e);if(t)return t.accessTime=Date.now(),t.result;if(!e.includes("&&")&&!e.includes("||")&&!e.includes(")")&&!e.includes("("))return[e];let i=[],s=-1,r=()=>{""!==(h=h.trim())&&(i.push(h),h="")},n=e=>{s<tp._Stack.length-1&&(tp._Stack[++s]=e)},a=()=>tp._Stack[s],o=()=>-1===s?"!!INVALID EXPRESSION!!":tp._Stack[s--],l=0,h="";for(;l<e.length;){let t=e.charAt(l),c=l<e.length-1?e.substring(l,2+l):"";if("("===t)h="",n(t);else if(")"===t){for(r();-1!==s&&"("!==a();)i.push(o());o()}else if(tp._OperatorPriority[c]>1){for(r();-1!==s&&tp._OperatorPriority[a()]>=tp._OperatorPriority[c];)i.push(o());n(c),l++}else h+=t;l++}for(r();-1!==s;)"("===a()?o():i.push(o());return tp._InfixToPostfixCache.size>=tp.InfixToPostfixCacheLimitSize&&tp.ClearCache(),tp._InfixToPostfixCache.set(e,{result:i,accessTime:Date.now()}),i}static ClearCache(){let e=Array.from(tp._InfixToPostfixCache.entries()).sort((e,t)=>e[1].accessTime-t[1].accessTime);for(let t=0;t<tp.InfixToPostfixCacheCleanupSize;t++)tp._InfixToPostfixCache.delete(e[t][0])}}tp.InfixToPostfixCacheLimitSize=5e4,tp.InfixToPostfixCacheCleanupSize=25e3,tp._InfixToPostfixCache=new Map,tp._OperatorPriority={")":0,"(":1,"||":2,"&&":3},tp._Stack=["","","","","","","","","","","","","","","","","","","",""];class td extends tp{constructor(e,t=!1){super(),this.define=e,this.not=t}isTrue(e){let t=void 0!==e[this.define];return this.not&&(t=!t),t}}class tf extends tp{isTrue(e){return this.leftOperand.isTrue(e)||this.rightOperand.isTrue(e)}}class t_ extends tp{isTrue(e){return this.leftOperand.isTrue(e)&&this.rightOperand.isTrue(e)}}class tg extends tp{constructor(e,t,i){super(),this.define=e,this.operand=t,this.testValue=i}toString(){return`${this.define} ${this.operand} ${this.testValue}`}isTrue(e){let t=!1,i=parseInt(void 0!=e[this.define]?e[this.define]:this.define),s=parseInt(void 0!=e[this.testValue]?e[this.testValue]:this.testValue);if(isNaN(i)||isNaN(s))return!1;switch(this.operand){case">":t=i>s;break;case"<":t=i<s;break;case"<=":t=i<=s;break;case">=":t=i>=s;break;case"==":t=i===s;break;case"!=":t=i!==s}return t}}let tm=/defined\s*?\((.+?)\)/g,tb=/defined\s*?\[(.+?)\]/g,tS=/#include\s?<(.+)>(\((.*)\))*(\[(.*)\])*/g,tC=/__decl__/,tE=/light\{X\}.(\w*)/g,ty=/\{X\}/g,tx=[],tF=/(#ifdef)|(#else)|(#elif)|(#endif)|(#ifndef)|(#if)/;function tA(e){e.processor&&e.processor.initializeShaders&&e.processor.initializeShaders(e.processingContext)}function tv(e,t,i,s){t.processor?.preProcessShaderCode&&(e=t.processor.preProcessShaderCode(e,t.isFragment)),tM(e,t,e=>{t.processCodeAfterIncludes&&(e=t.processCodeAfterIncludes(t.isFragment?"fragment":"vertex",e,t.defines)),i(function(e,t,i){var s;let r,n,a=function(e,t){if(t.processor?.noPrecision)return e;let i=t.shouldUseHighPrecisionShader;return -1===e.indexOf("precision highp float")?e=i?"precision highp float;\n"+e:"precision mediump float;\n"+e:i||(e=e.replace("precision highp float","precision mediump float")),e}(e,t);if(!t.processor||0===t.processor.shaderLanguage&&-1!==a.indexOf("#version 3")&&(a=a.replace("#version 300 es",""),!t.processor.parseGLES3))return a;let o=t.defines,l=function(e,t){let i=e.defines,s={};for(let e of i){let t=e.replace("#define","").replace(";","").trim().split(" ");s[t[0]]=t.length>1?t[1]:""}return e.processor?.shaderLanguage===0&&(s.GL_ES="true"),s.__VERSION__=e.version,s[e.platformName]="true",e9(s,t?.isNDCHalfZRange,t?.useReverseDepthBuffer,t?.useExactSrgbConversions),s}(t,i);t.processor.preProcessor&&(a=t.processor.preProcessor(a,o,l,t.isFragment,t.processingContext));let h={};return s=a,r=new tl,(n=new th).lineIndex=-1,n.lines=s.split("\n"),tR(n,r,h),a=r.process(l,t,h),t.processor.postProcessor&&(a=t.processor.postProcessor(a,o,t.isFragment,t.processingContext,i?{drawBuffersExtensionDisabled:!i.getCaps().drawBuffersExtension}:{},l,h)),i?._features.needShaderCodeInlining&&(a=i.inlineShaderCode(a)),a}(e,t,s),e)})}function tD(e,t,i){return i.processor&&i.processor.finalizeShaders?i.processor.finalizeShaders(e,t,i.processingContext):{vertexCode:e,fragmentCode:t}}function tP(e){let t=/defined\((.+)\)/.exec(e);if(t&&t.length)return new td(t[1].trim(),"!"===e[0]);let i="",s=0;for(i of["==","!=",">=","<=","<",">"])if((s=e.indexOf(i))>-1)break;if(-1===s)return new td(e);let r=e.substring(0,s).trim(),n=e.substring(s+i.length).trim();return new tg(r,i,n)}function tO(e,t){let i=new tu,s=e.substring(0,t),r=e.substring(t);return r=r.substring(0,(r.indexOf("//")+1||r.length+1)-1).trim(),"#ifdef"===s?i.testExpression=new td(r):"#ifndef"===s?i.testExpression=new td(r,!0):i.testExpression=function(e){e=e.replace(tm,"defined[$1]");let t=tp.infixToPostfix(e),i=[];for(let e of t)if("||"!==e&&"&&"!==e)i.push(e);else if(i.length>=2){let t=i[i.length-1],s=i[i.length-2];i.length-=2;let r="&&"==e?new t_:new tf;"string"==typeof t&&(t=t.replace(tb,"defined($1)")),"string"==typeof s&&(s=s.replace(tb,"defined($1)")),r.leftOperand="string"==typeof s?tP(s):s,r.rightOperand="string"==typeof t?tP(t):t,i.push(r)}let s=i[i.length-1];return"string"==typeof s&&(s=s.replace(tb,"defined($1)")),"string"==typeof s?tP(s):s}(r),i}function tT(e,t,i,s){let r;for(;tR(e,i,s);){let n=(r=e.currentLine).substring(0,5).toLowerCase();if("#else"===n){let i=new tl;t.children.push(i),tR(e,i,s);return}if("#elif"===n){let e=tO(r,5);t.children.push(e),i=e}}}function tR(e,t,i){for(;e.canRead;){e.lineIndex++;let s=e.currentLine;if(s.indexOf("#")>=0){let r=tF.exec(s);if(r&&r.length){switch(r[0]){case"#ifdef":{let r=new tc;t.children.push(r);let n=tO(s,6);r.children.push(n),tT(e,r,n,i);break}case"#else":case"#elif":return!0;case"#endif":return!1;case"#ifndef":{let r=new tc;t.children.push(r);let n=tO(s,7);r.children.push(n),tT(e,r,n,i);break}case"#if":{let r=new tc,n=tO(s,3);t.children.push(r),r.children.push(n),tT(e,r,n,i)}}continue}}let r=new tl;if(r.line=s,t.children.push(r),"#"===s[0]&&"d"===s[1]){let e=s.replace(";","").split(" ");r.additionalDefineKey=e[1],3===e.length&&(r.additionalDefineValue=e[2])}}return!1}function tM(e,t,i){let s;for(tx.length=0;null!==(s=tS.exec(e));)tx.push(s);let r=[e],n=!1;for(let e of tx){let s=e[1];if(-1!==s.indexOf("__decl__")&&(s=s.replace(tC,""),t.supportsUniformBuffers&&(s=s.replace("Vertex","Ubo").replace("Fragment","Ubo")),s+="Declaration"),t.includesShadersStore[s]){let i=t.includesShadersStore[s];if(e[2]){let t=e[3].split(",");for(let e=0;e<t.length;e+=2){let s=RegExp(t[e],"g"),r=t[e+1];i=i.replace(s,r)}}if(e[4]){let s=e[5];if(-1!==s.indexOf("..")){let e=s.split(".."),r=parseInt(e[0]),n=parseInt(e[1]),a=i.slice(0);i="",isNaN(n)&&(n=t.indexParameters[e[1]]);for(let e=r;e<n;e++)t.supportsUniformBuffers||(a=a.replace(tE,(e,t)=>t+"{X}")),i+=a.replace(ty,e.toString())+"\n"}else t.supportsUniformBuffers||(i=i.replace(tE,(e,t)=>t+"{X}")),i=i.replace(ty,s)}let a=[];for(let t of r){let s=t.split(e[0]);for(let e=0;e<s.length-1;e++)a.push(s[e]),a.push(i);a.push(s[s.length-1])}r=a,n=n||i.indexOf("#include<")>=0||i.indexOf("#include <")>=0}else{let e=t.shadersRepository+"ShadersInclude/"+s+".fx";(0,e7.LoadFile)(e,e=>{t.includesShadersStore[s]=e,tM(r.join(""),t,i)});return}}tx.length=0;let a=r.join("");n?tM(a.toString(),t,i):i(a)}function tB(e,t){return ti(t).cachedPipelines[e]}function tk(e){let t=e._name,i=e.context;if(t&&i){let e=ti(i),s=e.cachedPipelines[t];s?.dispose(),delete e.cachedPipelines[t]}}function tw(e,t,i,s,r,n,a){let o,l,h=(0,e3.IsWindowObjectExist)()?n?.getHostDocument():null;o="string"==typeof t?t:"string"==typeof t.vertexSource?"source:"+t.vertexSource:"string"==typeof t.vertexElement?h?.getElementById(t.vertexElement)||t.vertexElement:t.vertex||t,l="string"==typeof t?t:"string"==typeof t.fragmentSource?"source:"+t.fragmentSource:"string"==typeof t.fragmentElement?h?.getElementById(t.fragmentElement)||t.fragmentElement:t.fragment||t;let c=[void 0,void 0],u=()=>{if(c[0]&&c[1]){let[o,l]=c;tA(e),tv(o,e,(o,h)=>{a&&(a._vertexSourceCodeBeforeMigration=h),i&&(o=i("vertex",o)),e.isFragment=!0,tv(l,e,(n,l)=>{var h,c,u,p;a&&(a._fragmentSourceCodeBeforeMigration=l),i&&(n=i("fragment",n));let d=tD(o,n,e);e=null;let f=(h=d.vertexCode,c=d.fragmentCode,u=t,p=r,u?{vertexSourceCode:(1===p?"//":"")+"#define SHADER_NAME vertex:"+(u.vertexElement||u.vertex||u.spectorName||u)+"\n"+h,fragmentSourceCode:(1===p?"//":"")+"#define SHADER_NAME fragment:"+(u.fragmentElement||u.fragment||u.spectorName||u)+"\n"+c}:{vertexSourceCode:h,fragmentSourceCode:c});s?.(f.vertexSourceCode,f.fragmentSourceCode)},n)},n)}};tI(o,"Vertex","",e=>{a&&(a._rawVertexSourceCode=e),c[0]=e,u()},r),tI(l,"Fragment","Pixel",e=>{a&&(a._rawFragmentSourceCode=e),c[1]=e,u()},r)}function tI(e,t,i,s,r,n){let a;if("u">typeof HTMLElement&&e instanceof HTMLElement)return void s((0,e3.GetDOMTextContent)(e));if("source:"===e.substring(0,7))return void s(e.substring(7));if("base64:"===e.substring(0,7))return void s(window.atob(e.substring(7)));let o=e2.ShaderStore.GetShadersStore(r);if(o[e+t+"Shader"])return void s(o[e+t+"Shader"]);if(i&&o[e+i+"Shader"])return void s(o[e+i+"Shader"]);if(a="."===e[0]||"/"===e[0]||e.indexOf("http")>-1?e:e2.ShaderStore.GetShadersRepository(r)+e,!(n=n||e6))throw Error("loadFileInjection is not defined");n(a+"."+t.toLowerCase()+".fx",s)}e7.LoadFile,e.s(["Finalize",0,tD,"Initialize",0,tA,"Process",0,tv,"ProcessIncludes",0,tM],18851);let tL=(e,t,i,s)=>{try{let r=e.context?ti(e.context):null;r&&(r.disableParallelShaderCompile=e.disableParallelCompilation);let n=e.existingPipelineContext||t(e.shaderProcessingContext);return n._name=e.name,e.name&&r&&(r.cachedPipelines[e.name]=n),i(n,e.vertex,e.fragment,!!e.createAsRaw,"","",e.rebuildRebind,e.defines,e.transformFeedbackVaryings,"",()=>{s(n,()=>{e.onRenderingStateCompiled?.(n)})}),n}catch(e){throw e1.Logger.Error("Error compiling effect"),e}};e.s(["_ProcessShaderCode",0,tw,"createAndPreparePipelineContext",0,tL,"getCachedPipeline",0,tB,"resetCachedPipeline",0,tk],7642);var tU=e.i(4775),tN=e.i(54670);class tV{static get ShadersRepository(){return e2.ShaderStore.ShadersRepository}static set ShadersRepository(e){e2.ShaderStore.ShadersRepository=e}get isDisposed(){return this._isDisposed}get onBindObservable(){return this._onBindObservable||(this._onBindObservable=new e0.Observable),this._onBindObservable}get shaderLanguage(){return this._shaderLanguage}constructor(e,t,i,s=null,r,n=null,a=null,o=null,l=null,h,c="",u=0,p){let d;this.defines="",this.onCompiled=null,this.onError=null,this.onBind=null,this.uniqueId=0,this.onCompileObservable=new e0.Observable,this.onErrorObservable=new e0.Observable,this._onBindObservable=null,this._isDisposed=!1,this._refCount=1,this._bonesComputationForcedToCPU=!1,this._uniformBuffersNames={},this._multiTarget=!1,this._samplers={},this._isReady=!1,this._compilationError="",this._allFallbacksProcessed=!1,this._uniforms={},this._key="",this._fallbacks=null,this._vertexSourceCodeOverride="",this._fragmentSourceCodeOverride="",this._transformFeedbackVaryings=null,this._disableParallelShaderCompilation=!1,this._pipelineContext=null,this._vertexSourceCode="",this._fragmentSourceCode="",this._vertexSourceCodeBeforeMigration="",this._fragmentSourceCodeBeforeMigration="",this._rawVertexSourceCode="",this._rawFragmentSourceCode="",this._processCodeAfterIncludes=void 0,this._processFinalCode=null,this._onReleaseEffectsObserver=null,this.name=e,this._key=c;const f=this._key.replace(/\r/g,"").replace(/\n/g,"|");if(t.attributes){if(this._engine=i,this._attributesNames=t.attributes,this._uniformsNames=t.uniformsNames.concat(t.samplers),this._samplerList=t.samplers.slice(),this.defines=t.defines,this.onError=t.onError,this.onCompiled=t.onCompiled,this._fallbacks=t.fallbacks,this._indexParameters=t.indexParameters,this._transformFeedbackVaryings=t.transformFeedbackVaryings||null,this._multiTarget=!!t.multiTarget,this._shaderLanguage=t.shaderLanguage??0,this._disableParallelShaderCompilation=!!t.disableParallelShaderCompilation,t.uniformBuffersNames){this._uniformBuffersNamesList=t.uniformBuffersNames.slice();for(let e=0;e<t.uniformBuffersNames.length;e++)this._uniformBuffersNames[t.uniformBuffersNames[e]]=e}this._processFinalCode=t.processFinalCode??null,this._processCodeAfterIncludes=t.processCodeAfterIncludes??void 0,p=t.extraInitializationsAsync,d=t.existingPipelineContext}else this._engine=r,this.defines=null==n?"":n,this._uniformsNames=i.concat(s),this._samplerList=s?s.slice():[],this._attributesNames=t,this._uniformBuffersNamesList=[],this._shaderLanguage=u,this.onError=l,this.onCompiled=o,this._indexParameters=h,this._fallbacks=a;"WEBGL2"===this._engine.shaderPlatformName&&(d=tB(f,this._engine._gl)??d),this._attributeLocationByName={},this.uniqueId=tV._UniqueIdSeed++,d?(this._pipelineContext=d,this._pipelineContext.setEngine(this._engine),this._onRenderingStateCompiled(this._pipelineContext),this._pipelineContext.program&&(this._pipelineContext.program.__SPECTOR_rebuildProgram=this._rebuildProgram.bind(this))):this._processShaderCodeAsync(null,!1,null,p).catch(e=>{let t=e?.message??String(e),i=Error(`Effect async shader preparation failed for "${String(this.name)}": ${t}`);e&&"string"==typeof e.stack&&(i.stack=`${i.message}
2
+ Caused by: ${e.stack}`),this._processCompilationErrors(i)}),this._onReleaseEffectsObserver=this._engine.onReleaseEffectsObservable.addOnce(()=>{this._onReleaseEffectsObserver=null,this.isDisposed||this.dispose(!0)})}async _processShaderCodeAsync(e=null,t=!1,i=null,s){s&&await s(),this._processingContext=i||this._engine._getShaderProcessingContext(this._shaderLanguage,!1),tw({defines:this.defines.split("\n"),indexParameters:this._indexParameters,isFragment:!1,shouldUseHighPrecisionShader:this._engine._shouldUseHighPrecisionShader,processor:e??this._engine._getShaderProcessor(this._shaderLanguage),supportsUniformBuffers:this._engine.supportsUniformBuffers,shadersRepository:e2.ShaderStore.GetShadersRepository(this._shaderLanguage),includesShadersStore:e2.ShaderStore.GetIncludesShadersStore(this._shaderLanguage),version:(100*this._engine.version).toString(),platformName:this._engine.shaderPlatformName,processingContext:this._processingContext,isNDCHalfZRange:this._engine.isNDCHalfZRange,useReverseDepthBuffer:this._engine.useReverseDepthBuffer,processCodeAfterIncludes:this._processCodeAfterIncludes},this.name,this._processFinalCode,(e,i)=>{this._vertexSourceCode=e,this._fragmentSourceCode=i,this._prepareEffect(t)},this._shaderLanguage,this._engine,this)}get key(){return this._key}isReady(){try{return this._isReadyInternal()}catch{return!1}}_isReadyInternal(){return!!this._engine.isDisposed||!!this._isReady||!!this._pipelineContext&&this._pipelineContext.isReady}getEngine(){return this._engine}getPipelineContext(){return this._pipelineContext}getAttributesNames(){return this._attributesNames}getAttributeLocation(e){return this._attributes[e]}getAttributeLocationByName(e){return this._attributeLocationByName[e]}getAttributesCount(){return this._attributes.length}getUniformIndex(e){return this._uniformsNames.indexOf(e)}getUniform(e){return this._uniforms[e]}getSamplers(){return this._samplerList}getUniformNames(){return this._uniformsNames}getUniformBuffersNames(){return this._uniformBuffersNamesList}getIndexParameters(){return this._indexParameters}getCompilationError(){return this._compilationError}allFallbacksProcessed(){return this._allFallbacksProcessed}async whenCompiledAsync(){return await new Promise(e=>{this.executeWhenCompiled(e)})}executeWhenCompiled(e){this.isReady()?e(this):(this.onCompileObservable.add(t=>{e(t)}),(!this._pipelineContext||this._pipelineContext.isAsync)&&this._checkIsReady(null))}_checkIsReady(e){(0,tU._RetryWithInterval)(()=>this._isReadyInternal()||this._isDisposed,()=>{},t=>{this._processCompilationErrors(t,e)},16,12e4,!0,` - Effect: ${"string"==typeof this.name?this.name:this.key}`)}get vertexSourceCode(){return this._vertexSourceCodeOverride&&this._fragmentSourceCodeOverride?this._vertexSourceCodeOverride:this._pipelineContext?._getVertexShaderCode()??this._vertexSourceCode}get fragmentSourceCode(){return this._vertexSourceCodeOverride&&this._fragmentSourceCodeOverride?this._fragmentSourceCodeOverride:this._pipelineContext?._getFragmentShaderCode()??this._fragmentSourceCode}get vertexSourceCodeBeforeMigration(){return this._vertexSourceCodeBeforeMigration}get fragmentSourceCodeBeforeMigration(){return this._fragmentSourceCodeBeforeMigration}get rawVertexSourceCode(){return this._rawVertexSourceCode}get rawFragmentSourceCode(){return this._rawFragmentSourceCode}getPipelineGenerationOptions(){return{platformName:this._engine.shaderPlatformName,shaderLanguage:this._shaderLanguage,shaderNameOrContent:this.name,key:this._key,defines:this.defines.split("\n"),addGlobalDefines:!1,extendedProcessingOptions:{indexParameters:this._indexParameters,isNDCHalfZRange:this._engine.isNDCHalfZRange,useReverseDepthBuffer:this._engine.useReverseDepthBuffer,supportsUniformBuffers:this._engine.supportsUniformBuffers},extendedCreatePipelineOptions:{transformFeedbackVaryings:this._transformFeedbackVaryings,createAsRaw:!!(this._vertexSourceCodeOverride&&this._fragmentSourceCodeOverride)}}}_rebuildProgram(e,t,i,s){this._isReady=!1,this._vertexSourceCodeOverride=e,this._fragmentSourceCodeOverride=t,this.onError=(e,t)=>{s&&s(t)},this.onCompiled=()=>{let e=this.getEngine().scenes;if(e)for(let t=0;t<e.length;t++)e[t].markAllMaterialsAsDirty(127);this._pipelineContext._handlesSpectorRebuildCallback?.(i)},this._fallbacks=null,this._prepareEffect()}_onRenderingStateCompiled(e){if(this._pipelineContext=e,this._pipelineContext.setEngine(this._engine),this._attributes=[],this._pipelineContext._fillEffectInformation(this,this._uniformBuffersNames,this._uniformsNames,this._uniforms,this._samplerList,this._samplers,this._attributesNames,this._attributes),this._attributesNames)for(let e=0;e<this._attributesNames.length;e++){let t=this._attributesNames[e];this._attributeLocationByName[t]=this._attributes[e]}this._engine.bindSamplers(this),this._compilationError="",this._isReady=!0,this.onCompiled&&this.onCompiled(this),this.onCompileObservable.notifyObservers(this),this.onCompileObservable.clear(),this._fallbacks&&this._fallbacks.unBindMesh(),tV.AutomaticallyClearCodeCache&&this.clearCodeCache()}_prepareEffect(e=!1){let t=this._pipelineContext;this._isReady=!1;try{let i=!!(this._vertexSourceCodeOverride&&this._fragmentSourceCodeOverride),s=i?null:this.defines,r=i?this._vertexSourceCodeOverride:this._vertexSourceCode,n=i?this._fragmentSourceCodeOverride:this._fragmentSourceCode,a=this._engine;this._pipelineContext=tL({existingPipelineContext:e?t:null,vertex:r,fragment:n,context:"WEBGL2"===a.shaderPlatformName||"WEBGL1"===a.shaderPlatformName?a._gl:void 0,rebuildRebind:(e,t,i,s)=>this._rebuildProgram(e,t,i,s),defines:s,transformFeedbackVaryings:this._transformFeedbackVaryings,name:this._key.replace(/\r/g,"").replace(/\n/g,"|"),createAsRaw:i,disableParallelCompilation:this._disableParallelShaderCompilation,shaderProcessingContext:this._processingContext,onRenderingStateCompiled:i=>{t&&!e&&this._engine._deletePipelineContext(t),i&&this._onRenderingStateCompiled(i)}},this._engine.createPipelineContext.bind(this._engine),this._engine._preparePipelineContextAsync.bind(this._engine),this._engine._executeWhenRenderingStateIsCompiled.bind(this._engine)),this._pipelineContext.isAsync&&this._checkIsReady(t)}catch(e){this._processCompilationErrors(e,t)}}_getShaderCodeAndErrorLine(e,t,i){let s=null;if(t&&e){let r=t.match(i?/FRAGMENT SHADER ERROR: 0:(\d+?):/:/VERTEX SHADER ERROR: 0:(\d+?):/);if(r&&2===r.length){let t=parseInt(r[1]),n=e.split("\n",-1);n.length>=t&&(s=`Offending line [${t}] in ${i?"fragment":"vertex"} code: ${n[t-1]}`)}}return[e,s]}_processCompilationErrors(e,t=null){this._compilationError="string"==typeof e?.stack?e.stack:e?.message??String(e);let i=this._attributesNames,s=this._fallbacks;if(e1.Logger.Error("Unable to compile effect:"),e1.Logger.Error(`Uniforms: ${this._uniformsNames.join(" ")}`),e1.Logger.Error(`Attributes: ${i.join(" ")}`),e1.Logger.Error("Defines:\n"+this.defines),tV.LogShaderCodeOnCompilationError){let e,t=null,i=null;this._pipelineContext?._getVertexShaderCode()&&([e,t]=this._getShaderCodeAndErrorLine(this._pipelineContext._getVertexShaderCode(),this._compilationError,!1),e&&(e1.Logger.Error("Vertex code:"),e1.Logger.Error(e))),this._pipelineContext?._getFragmentShaderCode()&&([e,i]=this._getShaderCodeAndErrorLine(this._pipelineContext?._getFragmentShaderCode(),this._compilationError,!0),e&&(e1.Logger.Error("Fragment code:"),e1.Logger.Error(e))),t&&e1.Logger.Error(t),i&&e1.Logger.Error(i)}e1.Logger.Error("Error: "+this._compilationError);let r=()=>{this.onError&&this.onError(this,this._compilationError),this.onErrorObservable.notifyObservers(this),this._engine.onEffectErrorObservable.notifyObservers({effect:this,errors:this._compilationError})};t&&(this._pipelineContext=t,this._isReady=!0,r()),s?(this._pipelineContext=null,s.hasMoreFallbacks?(this._allFallbacksProcessed=!1,e1.Logger.Error("Trying next fallback."),this.defines=s.reduce(this.defines,this),this._prepareEffect()):(this._allFallbacksProcessed=!0,r(),this.onErrorObservable.clear(),this._fallbacks&&this._fallbacks.unBindMesh())):(this._allFallbacksProcessed=!0,t||r())}get isSupported(){return""===this._compilationError}_bindTexture(e,t){this._engine._bindTexture(this._samplers[e],t,e)}setTexture(e,t){this._engine.setTexture(this._samplers[e],this._uniforms[e],t,e)}setTextureArray(e,t){let i=e+"Ex";if(-1===this._samplerList.indexOf(i+"0")){let s=this._samplerList.indexOf(e);for(let e=1;e<t.length;e++){let t=i+(e-1).toString();this._samplerList.splice(s+e,0,t)}let r=0;for(let e of this._samplerList)this._samplers[e]=r,r+=1}this._engine.setTextureArray(this._samplers[e],this._uniforms[e],t,e)}bindUniformBuffer(e,t){let i=this._uniformBuffersNames[t];void 0===i||tV._BaseCache[i]===e&&this._engine._features.useUBOBindingCache||(tV._BaseCache[i]=e,this._engine.bindUniformBufferBase(e,i,t))}bindUniformBlock(e,t){this._engine.bindUniformBlock(this._pipelineContext,e,t)}setInt(e,t){return this._pipelineContext.setInt(e,t),this}setInt2(e,t,i){return this._pipelineContext.setInt2(e,t,i),this}setInt3(e,t,i,s){return this._pipelineContext.setInt3(e,t,i,s),this}setInt4(e,t,i,s,r){return this._pipelineContext.setInt4(e,t,i,s,r),this}setIntArray(e,t){return this._pipelineContext.setIntArray(e,t),this}setIntArray2(e,t){return this._pipelineContext.setIntArray2(e,t),this}setIntArray3(e,t){return this._pipelineContext.setIntArray3(e,t),this}setIntArray4(e,t){return this._pipelineContext.setIntArray4(e,t),this}setUInt(e,t){return this._pipelineContext.setUInt(e,t),this}setUInt2(e,t,i){return this._pipelineContext.setUInt2(e,t,i),this}setUInt3(e,t,i,s){return this._pipelineContext.setUInt3(e,t,i,s),this}setUInt4(e,t,i,s,r){return this._pipelineContext.setUInt4(e,t,i,s,r),this}setUIntArray(e,t){return this._pipelineContext.setUIntArray(e,t),this}setUIntArray2(e,t){return this._pipelineContext.setUIntArray2(e,t),this}setUIntArray3(e,t){return this._pipelineContext.setUIntArray3(e,t),this}setUIntArray4(e,t){return this._pipelineContext.setUIntArray4(e,t),this}setFloatArray(e,t){return this._pipelineContext.setArray(e,t),this}setFloatArray2(e,t){return this._pipelineContext.setArray2(e,t),this}setFloatArray3(e,t){return this._pipelineContext.setArray3(e,t),this}setFloatArray4(e,t){return this._pipelineContext.setArray4(e,t),this}setArray(e,t){return this._pipelineContext.setArray(e,t),this}setArray2(e,t){return this._pipelineContext.setArray2(e,t),this}setArray3(e,t){return this._pipelineContext.setArray3(e,t),this}setArray4(e,t){return this._pipelineContext.setArray4(e,t),this}setMatrices(e,t){return this._pipelineContext.setMatrices(e,t),this}setMatrix(e,t){return this._pipelineContext.setMatrix(e,t),this}setMatrix3x3(e,t){return this._pipelineContext.setMatrix3x3(e,t),this}setMatrix2x2(e,t){return this._pipelineContext.setMatrix2x2(e,t),this}setFloat(e,t){return this._pipelineContext.setFloat(e,t),this}setBool(e,t){return this._pipelineContext.setInt(e,+!!t),this}setVector2(e,t){return this._pipelineContext.setVector2(e,t),this}setFloat2(e,t,i){return this._pipelineContext.setFloat2(e,t,i),this}setVector3(e,t){return this._pipelineContext.setVector3(e,t),this}setFloat3(e,t,i,s){return this._pipelineContext.setFloat3(e,t,i,s),this}setVector4(e,t){return this._pipelineContext.setVector4(e,t),this}setQuaternion(e,t){return this._pipelineContext.setQuaternion(e,t),this}setFloat4(e,t,i,s,r){return this._pipelineContext.setFloat4(e,t,i,s,r),this}setColor3(e,t){return this._pipelineContext.setColor3(e,t),this}setColor4(e,t,i){return this._pipelineContext.setColor4(e,t,i),this}setDirectColor4(e,t){return this._pipelineContext.setDirectColor4(e,t),this}clearCodeCache(){this._vertexSourceCode="",this._fragmentSourceCode="",this._fragmentSourceCodeBeforeMigration="",this._vertexSourceCodeBeforeMigration=""}dispose(e=!1){if(e)this._refCount=0;else{if(tV.PersistentMode)return;this._refCount--}this._refCount>0||this._isDisposed||(this._onReleaseEffectsObserver&&(this._engine.onReleaseEffectsObservable.remove(this._onReleaseEffectsObserver),this._onReleaseEffectsObserver=null),this._pipelineContext&&tk(this._pipelineContext),this._engine._releaseEffect(this),this.clearCodeCache(),this._isDisposed=!0)}static RegisterShader(e,t,i,s=0){t&&(e2.ShaderStore.GetShadersStore(s)[`${e}PixelShader`]=t),i&&(e2.ShaderStore.GetShadersStore(s)[`${e}VertexShader`]=i)}static ResetCache(){tV._BaseCache={}}}tV.LogShaderCodeOnCompilationError=!0,tV.PersistentMode=!1,tV.AutomaticallyClearCodeCache=!1,tV._UniqueIdSeed=0,tV._BaseCache={},tV.ShadersStore=e2.ShaderStore.ShadersStore,tV.IncludesShadersStore=e2.ShaderStore.IncludesShadersStore,(t=tV.prototype).setDepthStencilTexture??(t.setDepthStencilTexture=(0,tN._MissingSideEffect)("Effect","setDepthStencilTexture")),(i=tV.prototype).setTextureFromPostProcess??(i.setTextureFromPostProcess=(0,tN._MissingSideEffect)("Effect","setTextureFromPostProcess")),(s=tV.prototype).setTextureFromPostProcessOutput??(s.setTextureFromPostProcessOutput=(0,tN._MissingSideEffect)("Effect","setTextureFromPostProcessOutput")),e.s(["Effect",0,tV],5313);var tG=e.i(47867),tW=e.i(7438),tH=e.i(85240);class tq{constructor(e=!0){this._isDepthTestDirty=!1,this._isDepthMaskDirty=!1,this._isDepthFuncDirty=!1,this._isCullFaceDirty=!1,this._isCullDirty=!1,this._isZOffsetDirty=!1,this._isFrontFaceDirty=!1,e&&this.reset()}get isDirty(){return this._isDepthFuncDirty||this._isDepthTestDirty||this._isDepthMaskDirty||this._isCullFaceDirty||this._isCullDirty||this._isZOffsetDirty||this._isFrontFaceDirty}get zOffset(){return this._zOffset}set zOffset(e){this._zOffset!==e&&(this._zOffset=e,this._isZOffsetDirty=!0)}get zOffsetUnits(){return this._zOffsetUnits}set zOffsetUnits(e){this._zOffsetUnits!==e&&(this._zOffsetUnits=e,this._isZOffsetDirty=!0)}get cullFace(){return this._cullFace}set cullFace(e){this._cullFace!==e&&(this._cullFace=e,this._isCullFaceDirty=!0)}get cull(){return this._cull}set cull(e){this._cull!==e&&(this._cull=e,this._isCullDirty=!0)}get depthFunc(){return this._depthFunc}set depthFunc(e){this._depthFunc!==e&&(this._depthFunc=e,this._isDepthFuncDirty=!0)}get depthMask(){return this._depthMask}set depthMask(e){this._depthMask!==e&&(this._depthMask=e,this._isDepthMaskDirty=!0)}get depthTest(){return this._depthTest}set depthTest(e){this._depthTest!==e&&(this._depthTest=e,this._isDepthTestDirty=!0)}get frontFace(){return this._frontFace}set frontFace(e){this._frontFace!==e&&(this._frontFace=e,this._isFrontFaceDirty=!0)}reset(){this._depthMask=!0,this._depthTest=!0,this._depthFunc=null,this._cullFace=null,this._cull=null,this._zOffset=0,this._zOffsetUnits=0,this._frontFace=null,this._isDepthTestDirty=!0,this._isDepthMaskDirty=!0,this._isDepthFuncDirty=!1,this._isCullFaceDirty=!1,this._isCullDirty=!1,this._isZOffsetDirty=!0,this._isFrontFaceDirty=!1}apply(e){this.isDirty&&(this._isCullDirty&&(this.cull?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this._isCullDirty=!1),this._isCullFaceDirty&&(e.cullFace(this.cullFace),this._isCullFaceDirty=!1),this._isDepthMaskDirty&&(e.depthMask(this.depthMask),this._isDepthMaskDirty=!1),this._isDepthTestDirty&&(this.depthTest?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this._isDepthTestDirty=!1),this._isDepthFuncDirty&&(e.depthFunc(this.depthFunc),this._isDepthFuncDirty=!1),this._isZOffsetDirty&&(this.zOffset||this.zOffsetUnits?(e.enable(e.POLYGON_OFFSET_FILL),e.polygonOffset(this.zOffset,this.zOffsetUnits)):e.disable(e.POLYGON_OFFSET_FILL),this._isZOffsetDirty=!1),this._isFrontFaceDirty&&(e.frontFace(this.frontFace),this._isFrontFaceDirty=!1))}}class tz{get isDirty(){return this._isStencilTestDirty||this._isStencilMaskDirty||this._isStencilFuncDirty||this._isStencilOpDirty}get func(){return this._func}set func(e){this._func!==e&&(this._func=e,this._isStencilFuncDirty=!0)}get backFunc(){return this._func}set backFunc(e){this._backFunc!==e&&(this._backFunc=e,this._isStencilFuncDirty=!0)}get funcRef(){return this._funcRef}set funcRef(e){this._funcRef!==e&&(this._funcRef=e,this._isStencilFuncDirty=!0)}get funcMask(){return this._funcMask}set funcMask(e){this._funcMask!==e&&(this._funcMask=e,this._isStencilFuncDirty=!0)}get opStencilFail(){return this._opStencilFail}set opStencilFail(e){this._opStencilFail!==e&&(this._opStencilFail=e,this._isStencilOpDirty=!0)}get opDepthFail(){return this._opDepthFail}set opDepthFail(e){this._opDepthFail!==e&&(this._opDepthFail=e,this._isStencilOpDirty=!0)}get opStencilDepthPass(){return this._opStencilDepthPass}set opStencilDepthPass(e){this._opStencilDepthPass!==e&&(this._opStencilDepthPass=e,this._isStencilOpDirty=!0)}get backOpStencilFail(){return this._backOpStencilFail}set backOpStencilFail(e){this._backOpStencilFail!==e&&(this._backOpStencilFail=e,this._isStencilOpDirty=!0)}get backOpDepthFail(){return this._backOpDepthFail}set backOpDepthFail(e){this._backOpDepthFail!==e&&(this._backOpDepthFail=e,this._isStencilOpDirty=!0)}get backOpStencilDepthPass(){return this._backOpStencilDepthPass}set backOpStencilDepthPass(e){this._backOpStencilDepthPass!==e&&(this._backOpStencilDepthPass=e,this._isStencilOpDirty=!0)}get mask(){return this._mask}set mask(e){this._mask!==e&&(this._mask=e,this._isStencilMaskDirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&(this._enabled=e,this._isStencilTestDirty=!0)}constructor(e=!0){this._isStencilTestDirty=!1,this._isStencilMaskDirty=!1,this._isStencilFuncDirty=!1,this._isStencilOpDirty=!1,this.useStencilGlobalOnly=!1,e&&this.reset()}reset(){this.stencilMaterial=void 0,this.stencilGlobal?.reset(),this._isStencilTestDirty=!0,this._isStencilMaskDirty=!0,this._isStencilFuncDirty=!0,this._isStencilOpDirty=!0}apply(e){if(!e)return;let t=!this.useStencilGlobalOnly&&!!this.stencilMaterial?.enabled;this.enabled=t?this.stencilMaterial.enabled:this.stencilGlobal.enabled,this.func=t?this.stencilMaterial.func:this.stencilGlobal.func,this.backFunc=t?this.stencilMaterial.backFunc:this.stencilGlobal.backFunc,this.funcRef=t?this.stencilMaterial.funcRef:this.stencilGlobal.funcRef,this.funcMask=t?this.stencilMaterial.funcMask:this.stencilGlobal.funcMask,this.opStencilFail=t?this.stencilMaterial.opStencilFail:this.stencilGlobal.opStencilFail,this.opDepthFail=t?this.stencilMaterial.opDepthFail:this.stencilGlobal.opDepthFail,this.opStencilDepthPass=t?this.stencilMaterial.opStencilDepthPass:this.stencilGlobal.opStencilDepthPass,this.backOpStencilFail=t?this.stencilMaterial.backOpStencilFail:this.stencilGlobal.backOpStencilFail,this.backOpDepthFail=t?this.stencilMaterial.backOpDepthFail:this.stencilGlobal.backOpDepthFail,this.backOpStencilDepthPass=t?this.stencilMaterial.backOpStencilDepthPass:this.stencilGlobal.backOpStencilDepthPass,this.mask=t?this.stencilMaterial.mask:this.stencilGlobal.mask,this.isDirty&&(this._isStencilTestDirty&&(this.enabled?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this._isStencilTestDirty=!1),this._isStencilMaskDirty&&(e.stencilMask(this.mask),this._isStencilMaskDirty=!1),this._isStencilFuncDirty&&(e.stencilFuncSeparate(e.FRONT,this.func,this.funcRef,this.funcMask),e.stencilFuncSeparate(e.BACK,this.backFunc,this.funcRef,this.funcMask),this._isStencilFuncDirty=!1),this._isStencilOpDirty&&(e.stencilOpSeparate(e.FRONT,this.opStencilFail,this.opDepthFail,this.opStencilDepthPass),e.stencilOpSeparate(e.BACK,this.backOpStencilFail,this.backOpDepthFail,this.backOpStencilDepthPass),this._isStencilOpDirty=!1))}}class tj{constructor(){this.reset()}reset(){this.enabled=!1,this.mask=255,this.funcRef=1,this.funcMask=255,this.func=tj.ALWAYS,this.opStencilFail=tj.KEEP,this.opDepthFail=tj.KEEP,this.opStencilDepthPass=tj.REPLACE,this.backFunc=tj.ALWAYS,this.backOpStencilFail=tj.KEEP,this.backOpDepthFail=tj.KEEP,this.backOpStencilDepthPass=tj.REPLACE}get stencilFunc(){return this.func}set stencilFunc(e){this.func=e}get stencilBackFunc(){return this.backFunc}set stencilBackFunc(e){this.backFunc=e}get stencilFuncRef(){return this.funcRef}set stencilFuncRef(e){this.funcRef=e}get stencilFuncMask(){return this.funcMask}set stencilFuncMask(e){this.funcMask=e}get stencilOpStencilFail(){return this.opStencilFail}set stencilOpStencilFail(e){this.opStencilFail=e}get stencilOpDepthFail(){return this.opDepthFail}set stencilOpDepthFail(e){this.opDepthFail=e}get stencilOpStencilDepthPass(){return this.opStencilDepthPass}set stencilOpStencilDepthPass(e){this.opStencilDepthPass=e}get stencilBackOpStencilFail(){return this.backOpStencilFail}set stencilBackOpStencilFail(e){this.backOpStencilFail=e}get stencilBackOpDepthFail(){return this.backOpDepthFail}set stencilBackOpDepthFail(e){this.backOpDepthFail=e}get stencilBackOpStencilDepthPass(){return this.backOpStencilDepthPass}set stencilBackOpStencilDepthPass(e){this.backOpStencilDepthPass=e}get stencilMask(){return this.mask}set stencilMask(e){this.mask=e}get stencilTest(){return this.enabled}set stencilTest(e){this.enabled=e}}tj.ALWAYS=519,tj.KEEP=7680,tj.REPLACE=7681;class t${constructor(e){this._supportBlendParametersPerTarget=e,this._blendFunctionParameters=Array(32),this._blendEquationParameters=Array(16),this._blendConstants=[,,,,],this._isBlendConstantsDirty=!1,this._alphaBlend=Array(8).fill(!1),this._numTargetEnabled=0,this._isAlphaBlendDirty=!1,this._isBlendFunctionParametersDirty=!1,this._isBlendEquationParametersDirty=!1,this.reset()}get isDirty(){return this._isAlphaBlendDirty||this._isBlendFunctionParametersDirty||this._isBlendEquationParametersDirty}get alphaBlend(){return this._numTargetEnabled>0}set alphaBlend(e){this.setAlphaBlend(e)}setAlphaBlend(e,t=0){this._alphaBlend[t]!==e&&(e?this._numTargetEnabled++:this._numTargetEnabled--,this._alphaBlend[t]=e,this._isAlphaBlendDirty=!0)}setAlphaBlendConstants(e,t,i,s){(this._blendConstants[0]!==e||this._blendConstants[1]!==t||this._blendConstants[2]!==i||this._blendConstants[3]!==s)&&(this._blendConstants[0]=e,this._blendConstants[1]=t,this._blendConstants[2]=i,this._blendConstants[3]=s,this._isBlendConstantsDirty=!0)}setAlphaBlendFunctionParameters(e,t,i,s,r=0){let n=4*r;(this._blendFunctionParameters[n+0]!==e||this._blendFunctionParameters[n+1]!==t||this._blendFunctionParameters[n+2]!==i||this._blendFunctionParameters[n+3]!==s)&&(this._blendFunctionParameters[n+0]=e,this._blendFunctionParameters[n+1]=t,this._blendFunctionParameters[n+2]=i,this._blendFunctionParameters[n+3]=s,this._isBlendFunctionParametersDirty=!0)}setAlphaEquationParameters(e,t,i=0){let s=2*i;(this._blendEquationParameters[s+0]!==e||this._blendEquationParameters[s+1]!==t)&&(this._blendEquationParameters[s+0]=e,this._blendEquationParameters[s+1]=t,this._isBlendEquationParametersDirty=!0)}reset(){this._alphaBlend.fill(!1),this._numTargetEnabled=0,this._blendFunctionParameters.fill(null),this._blendEquationParameters.fill(null),this._blendConstants[0]=null,this._blendConstants[1]=null,this._blendConstants[2]=null,this._blendConstants[3]=null,this._isAlphaBlendDirty=!0,this._isBlendFunctionParametersDirty=!1,this._isBlendEquationParametersDirty=!1,this._isBlendConstantsDirty=!1}apply(e,t=1){if(this.isDirty){if(this._isBlendConstantsDirty&&(e.blendColor(this._blendConstants[0],this._blendConstants[1],this._blendConstants[2],this._blendConstants[3]),this._isBlendConstantsDirty=!1),1===t||!this._supportBlendParametersPerTarget){this._isAlphaBlendDirty&&(this._alphaBlend[0]?e.enable(e.BLEND):e.disable(e.BLEND),this._isAlphaBlendDirty=!1),this._isBlendFunctionParametersDirty&&(e.blendFuncSeparate(this._blendFunctionParameters[0],this._blendFunctionParameters[1],this._blendFunctionParameters[2],this._blendFunctionParameters[3]),this._isBlendFunctionParametersDirty=!1),this._isBlendEquationParametersDirty&&(e.blendEquationSeparate(this._blendEquationParameters[0],this._blendEquationParameters[1]),this._isBlendEquationParametersDirty=!1);return}if(this._isAlphaBlendDirty){for(let i=0;i<t;i++){let t=i<this._numTargetEnabled?i:0;this._alphaBlend[t]?e.enableIndexed(e.BLEND,i):e.disableIndexed(e.BLEND,i)}this._isAlphaBlendDirty=!1}if(this._isBlendFunctionParametersDirty){for(let i=0;i<t;i++){let t=i<this._numTargetEnabled?4*i:0;e.blendFuncSeparateIndexed(i,this._blendFunctionParameters[t+0],this._blendFunctionParameters[t+1],this._blendFunctionParameters[t+2],this._blendFunctionParameters[t+3])}this._isBlendFunctionParametersDirty=!1}if(this._isBlendEquationParametersDirty){for(let i=0;i<t;i++){let t=i<this._numTargetEnabled?2*i:0;e.blendEquationSeparateIndexed(i,this._blendEquationParameters[t+0],this._blendEquationParameters[t+1])}this._isBlendEquationParametersDirty=!1}}}setAlphaMode(e,t){let i=32774;switch(e){case 0:break;case 7:this.setAlphaBlendFunctionParameters(1,771,1,1,t);break;case 8:case 14:this.setAlphaBlendFunctionParameters(1,771,1,771,t);break;case 2:this.setAlphaBlendFunctionParameters(770,771,1,1,t);break;case 6:this.setAlphaBlendFunctionParameters(1,1,0,1,t);break;case 1:this.setAlphaBlendFunctionParameters(770,1,0,1,t);break;case 3:this.setAlphaBlendFunctionParameters(0,769,1,1,t);break;case 4:this.setAlphaBlendFunctionParameters(774,0,1,1,t);break;case 5:this.setAlphaBlendFunctionParameters(770,769,1,1,t);break;case 9:this.setAlphaBlendFunctionParameters(32769,32770,32771,32772,t);break;case 10:this.setAlphaBlendFunctionParameters(1,769,1,771,t);break;case 11:this.setAlphaBlendFunctionParameters(1,1,1,1,t);break;case 12:this.setAlphaBlendFunctionParameters(772,1,0,0,t);break;case 13:this.setAlphaBlendFunctionParameters(775,769,773,771,t);break;case 15:this.setAlphaBlendFunctionParameters(1,1,1,0,t);break;case 16:this.setAlphaBlendFunctionParameters(775,769,0,1,t);break;case 17:this.setAlphaBlendFunctionParameters(770,771,1,771,t);break;case 18:this.setAlphaBlendFunctionParameters(1,1,1,1,t),i=32775;break;case 19:this.setAlphaBlendFunctionParameters(1,1,1,1,t),i=32776;break;case 20:this.setAlphaBlendFunctionParameters(1,35065,0,1,t)}this.setAlphaEquationParameters(i,i,t)}}e.s(["AlphaState",0,t$],28885);var tZ=e.i(58727);function tK(e,t){if(t){let{requestAnimationFrame:i}=t;if("function"==typeof i)return i(e)}if((0,e3.IsWindowObjectExist)()){let{requestAnimationFrame:i}=t||window;if("function"==typeof i)return i(e)}else if("function"==typeof requestAnimationFrame)return requestAnimationFrame(e);return setTimeout(e,16)}class tQ{get frameId(){return this._frameId}get isWebGPU(){return this._isWebGPU}_getShaderProcessor(e){return this._shaderProcessor}_resetAlphaMode(){this._alphaMode.fill(-1),this._alphaEquation.fill(-1)}get shaderPlatformName(){return this._shaderPlatformName}_clearEmptyResources(){this._emptyTexture=null,this._emptyCubeTexture=null,this._emptyTexture3D=null,this._emptyTexture2DArray=null}get useReverseDepthBuffer(){return this._useReverseDepthBuffer}set useReverseDepthBuffer(e){e!==this._useReverseDepthBuffer&&(this._useReverseDepthBuffer=e,e?this._depthCullingState.depthFunc=518:this._depthCullingState.depthFunc=515)}setColorWrite(e){e!==this._colorWrite&&(this._colorWriteChanged=!0,this._colorWrite=e)}getColorWrite(){return this._colorWrite}get depthCullingState(){return this._depthCullingState}get alphaState(){return this._alphaState}get stencilState(){return this._stencilState}get stencilStateComposer(){return this._stencilStateComposer}_getGlobalDefines(e){if(e){this.isNDCHalfZRange?e.IS_NDC_HALF_ZRANGE="":delete e.IS_NDC_HALF_ZRANGE,this.useReverseDepthBuffer?e.USE_REVERSE_DEPTHBUFFER="":delete e.USE_REVERSE_DEPTHBUFFER,this.useExactSrgbConversions?e.USE_EXACT_SRGB_CONVERSIONS="":delete e.USE_EXACT_SRGB_CONVERSIONS;return}{let e="";return this.isNDCHalfZRange&&(e+="#define IS_NDC_HALF_ZRANGE"),this.useReverseDepthBuffer&&(e&&(e+="\n"),e+="#define USE_REVERSE_DEPTHBUFFER"),this.useExactSrgbConversions&&(e&&(e+="\n"),e+="#define USE_EXACT_SRGB_CONVERSIONS"),e}}_rebuildInternalTextures(){for(let e of this._internalTexturesCache.slice())e._rebuild()}_rebuildRenderTargetWrappers(){for(let e of this._renderTargetWrapperCache.slice())e.textures?.some(e=>15===e.source)||e._rebuild()}_rebuildEffects(){for(let e in this._compiledEffects){let t=this._compiledEffects[e];t._pipelineContext=null,t._prepareEffect()}tV.ResetCache()}_rebuildGraphicsResources(){this.wipeCaches(!0),this._rebuildEffects(),this._rebuildComputeEffects?.(),this._rebuildBuffers(),this._rebuildInternalTextures(),this._rebuildTextures(),this._rebuildRenderTargetWrappers(),this.wipeCaches(!0)}_flagContextRestored(){e1.Logger.Warn(this.name+" context successfully restored."),this.onContextRestoredObservable.notifyObservers(this),this._contextWasLost=!1}_restoreEngineAfterContextLost(e){setTimeout(()=>{this._clearEmptyResources();let t=this._depthCullingState.depthTest,i=this._depthCullingState.depthFunc,s=this._depthCullingState.depthMask,r=this._stencilState.stencilTest;e(),this._rebuildGraphicsResources(),this._depthCullingState.depthTest=t,this._depthCullingState.depthFunc=i,this._depthCullingState.depthMask=s,this._stencilState.stencilTest=r,this._flagContextRestored()},0)}get isDisposed(){return this._isDisposed}get snapshotRendering(){return!1}set snapshotRendering(e){}get snapshotRenderingMode(){return 0}set snapshotRenderingMode(e){}getClassName(){return"AbstractEngine"}get emptyTexture(){return this._emptyTexture||(this._emptyTexture=this.createRawTexture(new Uint8Array(4),1,1,5,!1,!1,1)),this._emptyTexture}get emptyTexture3D(){return this._emptyTexture3D||(this._emptyTexture3D=this.createRawTexture3D(new Uint8Array(4),1,1,1,5,!1,!1,1)),this._emptyTexture3D}get emptyTexture2DArray(){return this._emptyTexture2DArray||(this._emptyTexture2DArray=this.createRawTexture2DArray(new Uint8Array(4),1,1,1,5,!1,!1,1)),this._emptyTexture2DArray}get emptyCubeTexture(){if(!this._emptyCubeTexture){let e=new Uint8Array(4);this._emptyCubeTexture=this.createRawCubeTexture([e,e,e,e,e,e],1,5,0,!1,!1,1)}return this._emptyCubeTexture}get activeRenderLoops(){return this._activeRenderLoops}stopRenderLoop(e){if(!e){this._activeRenderLoops.length=0,this._cancelFrame();return}let t=this._activeRenderLoops.indexOf(e);t>=0&&(this._activeRenderLoops.splice(t,1),0==this._activeRenderLoops.length&&this._cancelFrame())}_cancelFrame(){if(this.customAnimationFrameRequester){if(0!==this._frameHandler){this._frameHandler=0;let{cancelAnimationFrame:e}=this.customAnimationFrameRequester;e&&e(this.customAnimationFrameRequester.requestID),delete this.customAnimationFrameRequester.requestID}return}if(0!==this._frameHandler){let e=this._frameHandler;if(this._frameHandler=0,(0,e3.IsWindowObjectExist)()){let{cancelAnimationFrame:t}=this.getHostWindow()||window;if("function"==typeof t)return t(e)}else if("function"==typeof cancelAnimationFrame)return cancelAnimationFrame(e);return clearTimeout(e)}}beginFrame(){this.onBeginFrameObservable.notifyObservers(this)}endFrame(){this._frameId++,this.onEndFrameObservable.notifyObservers(this)}get maxFPS(){return this._maxFPS}set maxFPS(e){if(this._maxFPS=e,void 0!==e){if(e<=0){this._minFrameTime=Number.MAX_VALUE;return}this._minFrameTime=1e3/e}}_isOverFrameTime(e){if(!e||void 0===this._maxFPS)return!1;let t=e-this._lastFrameTime;return this._lastFrameTime=e,this._renderAccumulator+=t,this._renderAccumulator<this._minFrameTime||(this._renderAccumulator-=this._minFrameTime,this._renderAccumulator>this._minFrameTime&&(this._renderAccumulator=this._minFrameTime),!1)}_processFrame(e){if(this._frameHandler=0,!this._contextWasLost&&!this._isOverFrameTime(e)){let e=!0;(this.isDisposed||!this.renderEvenInBackground&&this._windowIsBackground)&&(e=!1),e&&(this.beginFrame(),this.skipFrameRender||this._renderViews()||this._renderFrame(),this.endFrame())}}_renderLoop(e){this._processFrame(e),this._activeRenderLoops.length>0&&0===this._frameHandler&&this._queueNewFrameForRenderLoop()}_renderFrame(){for(let e=0;e<this._activeRenderLoops.length;e++)(0,this._activeRenderLoops[e])()}_renderViews(){return!1}_queueNewFrame(e,t){return tK(e,t)}_queueNewFrameForRenderLoop(){this.customAnimationFrameRequester?(this.customAnimationFrameRequester.requestID=this._queueNewFrame(this.customAnimationFrameRequester.renderFunction||this._boundRenderFunction,this.customAnimationFrameRequester),this._frameHandler=this.customAnimationFrameRequester.requestID):this._frameHandler=this._queueNewFrame(this._boundRenderFunction,this.getHostWindow())}runRenderLoop(e){-1===this._activeRenderLoops.indexOf(e)&&(this._activeRenderLoops.push(e),1===this._activeRenderLoops.length&&0===this._frameHandler&&this._queueNewFrameForRenderLoop())}getDepthBuffer(){return this._depthCullingState.depthTest}setDepthBuffer(e){this._depthCullingState.depthTest=e}setZOffset(e){this._depthCullingState.zOffset=this.useReverseDepthBuffer?-e:e}getZOffset(){let e=this._depthCullingState.zOffset;return this.useReverseDepthBuffer?-e:e}setZOffsetUnits(e){this._depthCullingState.zOffsetUnits=this.useReverseDepthBuffer?-e:e}getZOffsetUnits(){let e=this._depthCullingState.zOffsetUnits;return this.useReverseDepthBuffer?-e:e}getHostWindow(){return(0,e3.IsWindowObjectExist)()?this._renderingCanvas&&this._renderingCanvas.ownerDocument&&this._renderingCanvas.ownerDocument.defaultView?this._renderingCanvas.ownerDocument.defaultView:window:null}get compatibilityMode(){return this._compatibilityMode}set compatibilityMode(e){this._compatibilityMode=!0}_rebuildTextures(){for(let e of this.scenes)e._rebuildTextures();for(let e of this._virtualScenes)e._rebuildTextures()}_releaseRenderTargetWrapper(e){let t=this._renderTargetWrapperCache.indexOf(e);-1!==t&&this._renderTargetWrapperCache.splice(t,1)}get currentViewport(){return this._cachedViewport}setViewport(e,t,i){let s=t||this.getRenderWidth(),r=i||this.getRenderHeight(),n=e.x||0,a=e.y||0;this._cachedViewport=e,this._viewport(n*s,a*r,s*e.width,r*e.height)}createCanvasImage(){return document.createElement("img")}createCanvasPath2D(e){return new Path2D(e)}get description(){let e=this.name+this.version;return this._caps.parallelShaderCompile&&(e+=" - Parallel shader compilation"),e}_createTextureBase(e,t,i,s,r=3,n=null,a=null,o,l,h=null,c=null,u=null,p=null,d,f,_){let g="data:"===(e=e||"").substring(0,5),m="blob:"===e.substring(0,5),b=g&&-1!==e.indexOf(";base64,"),S=c||new tZ.InternalTexture(this,1);S!==c&&(S.label=e.substring(0,60));let C=e;!this._transformTextureUrl||b||c||h||(e=this._transformTextureUrl(e)),C!==e&&(S._originalUrl=C);let E=e.lastIndexOf("."),y=p||(E>-1?e.substring(E).toLowerCase():"");y.indexOf("?")>-1&&(y=y.split("?")[0]);let x=tQ.GetCompatibleTextureLoader(y,d);s&&s.addPendingData(S),S.url=e,S.generateMipMaps=!t,S.samplingMode=r,S.invertY=i,S._useSRGBBuffer=this._getUseSRGBBuffer(!!_,t),this._doNotHandleContextLost||(S._buffer=h);let F=null;n&&!c&&(F=S.onLoadedObservable.add(n)),c||this._internalTexturesCache.push(S);let A=(i,c)=>{s&&s.removePendingData(S),e===C?(F&&S.onLoadedObservable.remove(F),tG.EngineStore.UseFallbackTexture&&e!==tG.EngineStore.FallbackTexture&&this._createTextureBase(tG.EngineStore.FallbackTexture,t,S.invertY,s,r,null,a,o,l,h,S),i=(i||"Unknown error")+(tG.EngineStore.UseFallbackTexture?" - Fallback texture was used":""),S.onErrorObservable.notifyObservers({message:i,exception:c}),a&&a(i,c)):(e1.Logger.Warn(`Failed to load ${e}, falling back to ${C}`),this._createTextureBase(C,t,S.invertY,s,r,n,a,o,l,h,S,u,p,d,f,_))};if(x){let t=async e=>{(await x).loadData(e,S,(e,t,i,n,a,l)=>{l?A("TextureLoader failed to load data"):o(S,y,s,{width:e,height:t},S.invertY,!i,n,()=>(a(),!1),r)},f)};if(h){let e=async e=>{try{await t(e)}catch(e){A("Failed to parse texture data",e)}};h instanceof ArrayBuffer?e(new Uint8Array(h)):ArrayBuffer.isView(h)?e(h):a&&a("Unable to load: only ArrayBuffer or ArrayBufferView is supported",null)}else this._loadFile(e,async e=>{try{await t(new Uint8Array(e))}catch(e){A("Failed to parse texture data",e)}},void 0,s?s.offlineProvider:void 0,!0,(e,t)=>{A("Unable to load "+(e&&e.responseURL,t))})}else{let i=e=>{m&&!this._doNotHandleContextLost&&(S._buffer=e),o(S,y,s,e,S.invertY,t,!1,l,r)};!g||b?h&&("string"==typeof h.decoding||h.close)?i(h):(0,e7.LoadImage)(e||"",i,A,s?s.offlineProvider:null,d,S.invertY&&this._features.needsInvertingBitmap?{imageOrientation:"flipY"}:void 0,this):"string"==typeof h||h instanceof ArrayBuffer||ArrayBuffer.isView(h)||h instanceof Blob?(0,e7.LoadImage)(h,i,A,s?s.offlineProvider:null,d,S.invertY&&this._features.needsInvertingBitmap?{imageOrientation:"flipY"}:void 0,this):h&&i(h)}return S}_rebuildBuffers(){for(let e of this._uniformBuffers)e._rebuildAfterContextLost()}get _shouldUseHighPrecisionShader(){return!!(this._caps.highPrecisionShaderSupported&&this._highPrecisionShadersAllowed)}getHostDocument(){return this._renderingCanvas&&this._renderingCanvas.ownerDocument?this._renderingCanvas.ownerDocument:(0,e3.IsDocumentAvailable)()?document:null}getLoadedTexturesCache(){return this._internalTexturesCache}clearInternalTexturesCache(){this._internalTexturesCache.length=0}getCaps(){return this._caps}resetTextureCache(){for(let e in this._boundTexturesCache)Object.prototype.hasOwnProperty.call(this._boundTexturesCache,e)&&(this._boundTexturesCache[e]=null);this._currentTextureChannel=-1}get name(){return this._name}set name(e){this._name=e}static get NpmPackage(){return"babylonjs@9.14.0"}static get Version(){return"9.14.0"}getRenderingCanvas(){return this._renderingCanvas}getAudioContext(){return this._audioContext}getAudioDestination(){return this._audioDestination}setHardwareScalingLevel(e){this._hardwareScalingLevel=e,this.resize()}getHardwareScalingLevel(){return this._hardwareScalingLevel}get doNotHandleContextLost(){return this._doNotHandleContextLost}set doNotHandleContextLost(e){this._doNotHandleContextLost=e}get isStencilEnable(){return this._isStencilEnable}getCreationOptions(){return this._creationOptions}constructor(e,t,i){this._colorWrite=!0,this._colorWriteChanged=!0,this._depthCullingState=new tq,this._stencilStateComposer=new tz,this._stencilState=new tj,this._alphaState=new t$(!1),this._alphaMode=Array(8).fill(-1),this._alphaEquation=Array(8).fill(-1),this._activeRequests=[],this._badOS=!1,this._badDesktopOS=!1,this._compatibilityMode=!0,this._internalTexturesCache=[],this._currentRenderTarget=null,this._boundTexturesCache={},this._activeChannel=0,this._currentTextureChannel=-1,this._viewportCached={x:0,y:0,z:0,w:0},this._isWebGPU=!1,this._enableGPUDebugMarkers=!1,this.onCanvasBlurObservable=new e0.Observable,this.onCanvasFocusObservable=new e0.Observable,this.onNewSceneAddedObservable=new e0.Observable,this.onResizeObservable=new e0.Observable,this.onCanvasPointerOutObservable=new e0.Observable,this.onEffectErrorObservable=new e0.Observable,this.disablePerformanceMonitorInBackground=!1,this.disableVertexArrayObjects=!1,this._frameId=0,this.hostInformation={isMobile:!1},this.isFullscreen=!1,this.enableOfflineSupport=!1,this.disableManifestCheck=!1,this.disableContextMenu=!0,this.currentRenderPassId=0,this.isPointerLock=!1,this.postProcesses=[],this.canvasTabIndex=1,this._contextWasLost=!1,this._useReverseDepthBuffer=!1,this.isNDCHalfZRange=!1,this.hasOriginBottomLeft=!0,this._renderTargetWrapperCache=[],this._compiledEffects={},this._isDisposed=!1,this.scenes=[],this._virtualScenes=[],this.onBeforeTextureInitObservable=new e0.Observable,this.renderEvenInBackground=!0,this.preventCacheWipeBetweenFrames=!1,this._frameHandler=0,this._activeRenderLoops=[],this.customAnimationFrameRequester=null,this._windowIsBackground=!1,this._boundRenderFunction=e=>this._renderLoop(e),this._lastFrameTime=0,this._renderAccumulator=0,this.skipFrameRender=!1,this.onBeforeShaderCompilationObservable=new e0.Observable,this.onAfterShaderCompilationObservable=new e0.Observable,this.onBeginFrameObservable=new e0.Observable,this.onEndFrameObservable=new e0.Observable,this._transformTextureUrl=null,this._uniformBuffers=[],this._storageBuffers=[],this._highPrecisionShadersAllowed=!0,this.onContextLostObservable=new e0.Observable,this.onContextRestoredObservable=new e0.Observable,this._name="",this.premultipliedAlpha=!0,this.adaptToDeviceRatio=!1,this._lastDevicePixelRatio=1,this._doNotHandleContextLost=!1,this.cullBackFaces=null,this._renderPassNames=["main"],this._fps=60,this._deltaTime=0,this._deterministicLockstep=!1,this._lockstepMaxSteps=4,this._timeStep=1/60,this.onDisposeObservable=new e0.Observable,this.onReleaseEffectsObservable=new e0.Observable,tG.EngineStore.Instances.push(this),this.startTime=tH.PrecisionDate.Now,this._stencilStateComposer.stencilGlobal=this._stencilState,tW.PerformanceConfigurator.SetMatrixPrecision(!!t.useLargeWorldRendering||!!t.useHighPrecisionMatrix),(0,e3.IsNavigatorAvailable)()&&navigator.userAgent&&(this._badOS=/iPad/i.test(navigator.userAgent)||/iPhone/i.test(navigator.userAgent),this._badDesktopOS=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),t.antialias=e??t.antialias,t.deterministicLockstep=t.deterministicLockstep??!1,t.lockstepMaxSteps=t.lockstepMaxSteps??4,t.timeStep=t.timeStep??1/60,t.stencil=t.stencil??!0,this._audioContext=t.audioEngineOptions?.audioContext??null,this._audioDestination=t.audioEngineOptions?.audioDestination??null,this.premultipliedAlpha=t.premultipliedAlpha??!0,this._doNotHandleContextLost=!!t.doNotHandleContextLost,this._isStencilEnable=!!t.stencil,this.useExactSrgbConversions=t.useExactSrgbConversions??!1,this.canvasTabIndex=t.canvasTabIndex??this.canvasTabIndex;const s=(0,e3.IsWindowObjectExist)()&&window.devicePixelRatio||1,r=t.limitDeviceRatio||s;i=i||t.adaptToDeviceRatio||!1,this.adaptToDeviceRatio=i,this._hardwareScalingLevel=i?1/Math.min(r,s):1,this._lastDevicePixelRatio=s,this._creationOptions=t}resize(e=!1){let t,i;if(this.adaptToDeviceRatio){let e=(0,e3.IsWindowObjectExist)()&&window.devicePixelRatio||1,t=this._lastDevicePixelRatio/e;this._lastDevicePixelRatio=e,this._hardwareScalingLevel*=t}if((0,e3.IsWindowObjectExist)()&&(0,e3.IsDocumentAvailable)())if(this._renderingCanvas){let e=this._renderingCanvas.getBoundingClientRect?.();t=this._renderingCanvas.clientWidth||e?.width||this._renderingCanvas.width*this._hardwareScalingLevel||100,i=this._renderingCanvas.clientHeight||e?.height||this._renderingCanvas.height*this._hardwareScalingLevel||100}else t=window.innerWidth,i=window.innerHeight;else t=this._renderingCanvas?this._renderingCanvas.width:100,i=this._renderingCanvas?this._renderingCanvas.height:100;this.setSize(t/this._hardwareScalingLevel,i/this._hardwareScalingLevel,e)}setSize(e,t,i=!1){if(!this._renderingCanvas||(e|=0,t|=0,!i&&this._renderingCanvas.width===e&&this._renderingCanvas.height===t))return!1;if(this._renderingCanvas.width=e,this._renderingCanvas.height=t,this.scenes){for(let e=0;e<this.scenes.length;e++){let t=this.scenes[e];for(let e=0;e<t.cameras.length;e++)t.cameras[e]._currentRenderId=0}this.onResizeObservable.hasObservers()&&this.onResizeObservable.notifyObservers(this)}return!0}createRawTexture(e,t,i,s,r,n,a,o,l,h,c,u){throw(0,tN._WarnImport)("engine.rawTexture")}createRawCubeTexture(e,t,i,s,r,n,a,o){throw(0,tN._WarnImport)("engine.rawTexture")}createRawTexture3D(e,t,i,s,r,n,a,o,l,h,c){throw(0,tN._WarnImport)("engine.rawTexture")}createRawTexture2DArray(e,t,i,s,r,n,a,o,l,h,c,u){throw(0,tN._WarnImport)("engine.rawTexture")}_sharedInit(e){this._renderingCanvas=e}_setupMobileChecks(){navigator&&navigator.userAgent&&(this._checkForMobile=()=>{let e=navigator.userAgent;this.hostInformation.isMobile=-1!==e.indexOf("Mobile")||-1!==e.indexOf("Mac")&&(0,e3.IsDocumentAvailable)()&&"ontouchend"in document},this._checkForMobile(),(0,e3.IsWindowObjectExist)()&&window.addEventListener("resize",this._checkForMobile))}createVideoElement(e){return document.createElement("video")}_reportDrawCall(e=1){this._drawCalls?.addCount(e,!1)}getFps(){return this._fps}getDeltaTime(){return this._deltaTime}isDeterministicLockStep(){return this._deterministicLockstep}getLockstepMaxSteps(){return this._lockstepMaxSteps}getTimeStep(){return 1e3*this._timeStep}_createImageBitmapFromSource(e,t){throw Error("createImageBitmapFromSource is not implemented")}createImageBitmap(e,t){return createImageBitmap(e,t)}resizeImageBitmap(e,t,i){throw Error("resizeImageBitmap is not implemented")}getFontOffset(e){throw Error("getFontOffset is not implemented")}static _CreateCanvas(e,t){if("u"<typeof document)return new OffscreenCanvas(e,t);let i=document.createElement("canvas");return i.width=e,i.height=t,i}createCanvas(e,t){return tQ._CreateCanvas(e,t)}static _FileToolsLoadImage(e,t,i,s,r,n,a){return(0,e7.LoadImage)(e,t,i,s,r,n,a)}_loadFile(e,t,i,s,r,n){let a=e6(e,t,i,s,r,n);return this._activeRequests.push(a),a.onCompleteObservable.add(()=>{let e=this._activeRequests.indexOf(a);-1!==e&&this._activeRequests.splice(e,1)}),a}static _FileToolsLoadFile(e,t,i,s,r,n){return e5.loadFile?e5.loadFile(e,t,i,s,r,n):(0,e7.LoadFile)(e,t,i,s,r,n)}dispose(){for(this.releaseEffects(),this._isDisposed=!0,this.stopRenderLoop(),this._emptyTexture&&(this._releaseTexture(this._emptyTexture),this._emptyTexture=null),this._emptyCubeTexture&&(this._releaseTexture(this._emptyCubeTexture),this._emptyCubeTexture=null),this._renderingCanvas=null,this.onBeforeTextureInitObservable&&this.onBeforeTextureInitObservable.clear();this.postProcesses.length;)this.postProcesses[0].dispose();for(;this.scenes.length;)this.scenes[0].dispose();for(;this._virtualScenes.length;)this._virtualScenes[0].dispose();for(let e of(this.releaseComputeEffects?.(),tV.ResetCache(),this._activeRequests))e.abort();this._boundRenderFunction=null,this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.onResizeObservable.clear(),this.onCanvasBlurObservable.clear(),this.onCanvasFocusObservable.clear(),this.onCanvasPointerOutObservable.clear(),this.onNewSceneAddedObservable.clear(),this.onEffectErrorObservable.clear(),(0,e3.IsWindowObjectExist)()&&window.removeEventListener("resize",this._checkForMobile);let e=tG.EngineStore.Instances.indexOf(this);e>=0&&tG.EngineStore.Instances.splice(e,1),tG.EngineStore.Instances.length||(tG.EngineStore.OnEnginesDisposedObservable.notifyObservers(this),tG.EngineStore.OnEnginesDisposedObservable.clear()),this.onBeginFrameObservable.clear(),this.onEndFrameObservable.clear()}static DefaultLoadingScreenFactory(e){throw(0,tN._WarnImport)("LoadingScreen")}static MarkAllMaterialsAsDirty(e,t){for(let i=0;i<tG.EngineStore.Instances.length;i++){let s=tG.EngineStore.Instances[i];for(let i=0;i<s.scenes.length;i++)s.scenes[i].markAllMaterialsAsDirty(e,t)}}static GetCompatibleTextureLoader(e,t){return null}}tQ._RenderPassIdCounter=0,tQ._RescalePostProcessFactory=null,tQ.CollisionsEpsilon=.001,tQ.QueueNewFrame=tK,(r=tQ.prototype).setAlphaEquation??(r.setAlphaEquation=(0,tN._MissingSideEffect)("AbstractEngine","setAlphaEquation")),(n=tQ.prototype).createCubeTextureBase??(n.createCubeTextureBase=(0,tN._MissingSideEffect)("AbstractEngine","createCubeTextureBase")),(a=tQ.prototype).getInputElement??(a.getInputElement=(0,tN._MissingSideEffect)("AbstractEngine","getInputElement")),(o=tQ.prototype).getRenderingCanvasClientRect??(o.getRenderingCanvasClientRect=(0,tN._MissingSideEffect)("AbstractEngine","getRenderingCanvasClientRect")),(l=tQ.prototype).getInputElementClientRect??(l.getInputElementClientRect=(0,tN._MissingSideEffect)("AbstractEngine","getInputElementClientRect")),(h=tQ.prototype).getAspectRatio??(h.getAspectRatio=(0,tN._MissingSideEffect)("AbstractEngine","getAspectRatio")),(c=tQ.prototype).getScreenAspectRatio??(c.getScreenAspectRatio=(0,tN._MissingSideEffect)("AbstractEngine","getScreenAspectRatio")),(u=tQ.prototype).switchFullscreen??(u.switchFullscreen=(0,tN._MissingSideEffect)("AbstractEngine","switchFullscreen")),(p=tQ.prototype).enterFullscreen??(p.enterFullscreen=(0,tN._MissingSideEffect)("AbstractEngine","enterFullscreen")),(d=tQ.prototype).exitFullscreen??(d.exitFullscreen=(0,tN._MissingSideEffect)("AbstractEngine","exitFullscreen")),(f=tQ.prototype).displayLoadingUI??(f.displayLoadingUI=(0,tN._MissingSideEffect)("AbstractEngine","displayLoadingUI")),(_=tQ.prototype).hideLoadingUI??(_.hideLoadingUI=(0,tN._MissingSideEffect)("AbstractEngine","hideLoadingUI")),(g=tQ.prototype).createQuery??(g.createQuery=(0,tN._MissingSideEffect)("AbstractEngine","createQuery")),(m=tQ.prototype).deleteQuery??(m.deleteQuery=(0,tN._MissingSideEffect)("AbstractEngine","deleteQuery")),(b=tQ.prototype).isQueryResultAvailable??(b.isQueryResultAvailable=(0,tN._MissingSideEffect)("AbstractEngine","isQueryResultAvailable")),(S=tQ.prototype).getQueryResult??(S.getQueryResult=(0,tN._MissingSideEffect)("AbstractEngine","getQueryResult")),(C=tQ.prototype).beginOcclusionQuery??(C.beginOcclusionQuery=(0,tN._MissingSideEffect)("AbstractEngine","beginOcclusionQuery")),(E=tQ.prototype).endOcclusionQuery??(E.endOcclusionQuery=(0,tN._MissingSideEffect)("AbstractEngine","endOcclusionQuery")),(y=tQ.prototype).getRenderPassNames??(y.getRenderPassNames=(0,tN._MissingSideEffect)("AbstractEngine","getRenderPassNames")),(x=tQ.prototype).getCurrentRenderPassName??(x.getCurrentRenderPassName=(0,tN._MissingSideEffect)("AbstractEngine","getCurrentRenderPassName")),(F=tQ.prototype).createRenderPassId??(F.createRenderPassId=(0,tN._MissingSideEffect)("AbstractEngine","createRenderPassId")),(A=tQ.prototype).releaseRenderPassId??(A.releaseRenderPassId=(0,tN._MissingSideEffect)("AbstractEngine","releaseRenderPassId")),(v=tQ.prototype).getDepthFunction??(v.getDepthFunction=(0,tN._MissingSideEffect)("AbstractEngine","getDepthFunction")),(D=tQ.prototype).setDepthFunction??(D.setDepthFunction=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunction")),(P=tQ.prototype).setDepthFunctionToGreater??(P.setDepthFunctionToGreater=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunctionToGreater")),(O=tQ.prototype).setDepthFunctionToGreaterOrEqual??(O.setDepthFunctionToGreaterOrEqual=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunctionToGreaterOrEqual")),(T=tQ.prototype).setDepthFunctionToLess??(T.setDepthFunctionToLess=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunctionToLess")),(R=tQ.prototype).setDepthFunctionToLessOrEqual??(R.setDepthFunctionToLessOrEqual=(0,tN._MissingSideEffect)("AbstractEngine","setDepthFunctionToLessOrEqual")),(M=tQ.prototype).getDepthWrite??(M.getDepthWrite=(0,tN._MissingSideEffect)("AbstractEngine","getDepthWrite")),(B=tQ.prototype).setDepthWrite??(B.setDepthWrite=(0,tN._MissingSideEffect)("AbstractEngine","setDepthWrite")),(k=tQ.prototype).setAlphaConstants??(k.setAlphaConstants=(0,tN._MissingSideEffect)("AbstractEngine","setAlphaConstants")),(w=tQ.prototype).getAlphaMode??(w.getAlphaMode=(0,tN._MissingSideEffect)("AbstractEngine","getAlphaMode")),(I=tQ.prototype).getAlphaEquation??(I.getAlphaEquation=(0,tN._MissingSideEffect)("AbstractEngine","getAlphaEquation")),(L=tQ.prototype).getStencilOperationPass??(L.getStencilOperationPass=(0,tN._MissingSideEffect)("AbstractEngine","getStencilOperationPass")),(U=tQ.prototype).getStencilBackOperationPass??(U.getStencilBackOperationPass=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBackOperationPass")),(N=tQ.prototype).getStencilBuffer??(N.getStencilBuffer=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBuffer")),(V=tQ.prototype).setStencilBuffer??(V.setStencilBuffer=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBuffer")),(G=tQ.prototype).getStencilMask??(G.getStencilMask=(0,tN._MissingSideEffect)("AbstractEngine","getStencilMask")),(W=tQ.prototype).setStencilMask??(W.setStencilMask=(0,tN._MissingSideEffect)("AbstractEngine","setStencilMask")),(H=tQ.prototype).getStencilFunction??(H.getStencilFunction=(0,tN._MissingSideEffect)("AbstractEngine","getStencilFunction")),(q=tQ.prototype).getStencilBackFunction??(q.getStencilBackFunction=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBackFunction")),(z=tQ.prototype).getStencilFunctionReference??(z.getStencilFunctionReference=(0,tN._MissingSideEffect)("AbstractEngine","getStencilFunctionReference")),(j=tQ.prototype).getStencilFunctionMask??(j.getStencilFunctionMask=(0,tN._MissingSideEffect)("AbstractEngine","getStencilFunctionMask")),($=tQ.prototype).setStencilFunction??($.setStencilFunction=(0,tN._MissingSideEffect)("AbstractEngine","setStencilFunction")),(Z=tQ.prototype).setStencilBackFunction??(Z.setStencilBackFunction=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBackFunction")),(K=tQ.prototype).setStencilFunctionReference??(K.setStencilFunctionReference=(0,tN._MissingSideEffect)("AbstractEngine","setStencilFunctionReference")),(Q=tQ.prototype).setStencilFunctionMask??(Q.setStencilFunctionMask=(0,tN._MissingSideEffect)("AbstractEngine","setStencilFunctionMask")),(X=tQ.prototype).getStencilOperationFail??(X.getStencilOperationFail=(0,tN._MissingSideEffect)("AbstractEngine","getStencilOperationFail")),(Y=tQ.prototype).getStencilBackOperationFail??(Y.getStencilBackOperationFail=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBackOperationFail")),(J=tQ.prototype).getStencilOperationDepthFail??(J.getStencilOperationDepthFail=(0,tN._MissingSideEffect)("AbstractEngine","getStencilOperationDepthFail")),(ee=tQ.prototype).getStencilBackOperationDepthFail??(ee.getStencilBackOperationDepthFail=(0,tN._MissingSideEffect)("AbstractEngine","getStencilBackOperationDepthFail")),(et=tQ.prototype).setStencilOperationFail??(et.setStencilOperationFail=(0,tN._MissingSideEffect)("AbstractEngine","setStencilOperationFail")),(ei=tQ.prototype).setStencilBackOperationFail??(ei.setStencilBackOperationFail=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBackOperationFail")),(es=tQ.prototype).setStencilOperationDepthFail??(es.setStencilOperationDepthFail=(0,tN._MissingSideEffect)("AbstractEngine","setStencilOperationDepthFail")),(er=tQ.prototype).setStencilBackOperationDepthFail??(er.setStencilBackOperationDepthFail=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBackOperationDepthFail")),(en=tQ.prototype).setStencilOperationPass??(en.setStencilOperationPass=(0,tN._MissingSideEffect)("AbstractEngine","setStencilOperationPass")),(ea=tQ.prototype).setStencilBackOperationPass??(ea.setStencilBackOperationPass=(0,tN._MissingSideEffect)("AbstractEngine","setStencilBackOperationPass")),(eo=tQ.prototype).cacheStencilState??(eo.cacheStencilState=(0,tN._MissingSideEffect)("AbstractEngine","cacheStencilState")),(el=tQ.prototype).restoreStencilState??(el.restoreStencilState=(0,tN._MissingSideEffect)("AbstractEngine","restoreStencilState")),(eh=tQ.prototype).createDepthStencilTexture??(eh.createDepthStencilTexture=(0,tN._MissingSideEffect)("AbstractEngine","createDepthStencilTexture")),(ec=tQ.prototype).setCompressedTextureExclusions??(ec.setCompressedTextureExclusions=(0,tN._MissingSideEffect)("AbstractEngine","setCompressedTextureExclusions")),(eu=tQ.prototype).setTextureFormatToUse??(eu.setTextureFormatToUse=(0,tN._MissingSideEffect)("AbstractEngine","setTextureFormatToUse")),(ep=tQ.prototype).getGPUFrameTimeCounter??(ep.getGPUFrameTimeCounter=(0,tN._MissingSideEffect)("AbstractEngine","getGPUFrameTimeCounter")),(ed=tQ.prototype).captureGPUFrameTime??(ed.captureGPUFrameTime=(0,tN._MissingSideEffect)("AbstractEngine","captureGPUFrameTime")),(ef=tQ.prototype).registerView??(ef.registerView=(0,tN._MissingSideEffect)("AbstractEngine","registerView")),(e_=tQ.prototype).unRegisterView??(e_.unRegisterView=(0,tN._MissingSideEffect)("AbstractEngine","unRegisterView")),(eg=tQ.prototype).setAlphaMode??(eg.setAlphaMode=(0,tN._MissingSideEffect)("AbstractEngine","setAlphaMode")),(em=tQ.prototype).createComputeEffect??(em.createComputeEffect=(0,tN._MissingSideEffect)("AbstractEngine","createComputeEffect")),(eb=tQ.prototype).createComputePipelineContext??(eb.createComputePipelineContext=(0,tN._MissingSideEffect)("AbstractEngine","createComputePipelineContext")),(eS=tQ.prototype).createComputeContext??(eS.createComputeContext=(0,tN._MissingSideEffect)("AbstractEngine","createComputeContext")),(eC=tQ.prototype).computeDispatch??(eC.computeDispatch=(0,tN._MissingSideEffect)("AbstractEngine","computeDispatch")),(eE=tQ.prototype).computeDispatchIndirect??(eE.computeDispatchIndirect=(0,tN._MissingSideEffect)("AbstractEngine","computeDispatchIndirect")),(ey=tQ.prototype).areAllComputeEffectsReady??(ey.areAllComputeEffectsReady=(0,tN._MissingSideEffect)("AbstractEngine","areAllComputeEffectsReady")),(ex=tQ.prototype).releaseComputeEffects??(ex.releaseComputeEffects=(0,tN._MissingSideEffect)("AbstractEngine","releaseComputeEffects")),(eF=tQ.prototype).createCubeTexture??(eF.createCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","createCubeTexture")),(eA=tQ.prototype).generateMipMapsForCubemap??(eA.generateMipMapsForCubemap=(0,tN._MissingSideEffect)("AbstractEngine","generateMipMapsForCubemap")),(ev=tQ.prototype).updateDynamicIndexBuffer??(ev.updateDynamicIndexBuffer=(0,tN._MissingSideEffect)("AbstractEngine","updateDynamicIndexBuffer")),(eD=tQ.prototype).updateDynamicVertexBuffer??(eD.updateDynamicVertexBuffer=(0,tN._MissingSideEffect)("AbstractEngine","updateDynamicVertexBuffer")),(eP=tQ.prototype).createDynamicTexture??(eP.createDynamicTexture=(0,tN._MissingSideEffect)("AbstractEngine","createDynamicTexture")),(eO=tQ.prototype).updateDynamicTexture??(eO.updateDynamicTexture=(0,tN._MissingSideEffect)("AbstractEngine","updateDynamicTexture")),(eT=tQ.prototype).unBindMultiColorAttachmentFramebuffer??(eT.unBindMultiColorAttachmentFramebuffer=(0,tN._MissingSideEffect)("AbstractEngine","unBindMultiColorAttachmentFramebuffer")),(eR=tQ.prototype).createMultipleRenderTarget??(eR.createMultipleRenderTarget=(0,tN._MissingSideEffect)("AbstractEngine","createMultipleRenderTarget")),(eM=tQ.prototype).updateMultipleRenderTargetTextureSampleCount??(eM.updateMultipleRenderTargetTextureSampleCount=(0,tN._MissingSideEffect)("AbstractEngine","updateMultipleRenderTargetTextureSampleCount")),(eB=tQ.prototype).generateMipMapsMultiFramebuffer??(eB.generateMipMapsMultiFramebuffer=(0,tN._MissingSideEffect)("AbstractEngine","generateMipMapsMultiFramebuffer")),(ek=tQ.prototype).resolveMultiFramebuffer??(ek.resolveMultiFramebuffer=(0,tN._MissingSideEffect)("AbstractEngine","resolveMultiFramebuffer")),(ew=tQ.prototype).bindAttachments??(ew.bindAttachments=(0,tN._MissingSideEffect)("AbstractEngine","bindAttachments")),(eI=tQ.prototype).buildTextureLayout??(eI.buildTextureLayout=(0,tN._MissingSideEffect)("AbstractEngine","buildTextureLayout")),(eL=tQ.prototype).restoreSingleAttachment??(eL.restoreSingleAttachment=(0,tN._MissingSideEffect)("AbstractEngine","restoreSingleAttachment")),(eU=tQ.prototype).restoreSingleAttachmentForRenderTarget??(eU.restoreSingleAttachmentForRenderTarget=(0,tN._MissingSideEffect)("AbstractEngine","restoreSingleAttachmentForRenderTarget")),(eN=tQ.prototype).createPrefilteredCubeTexture??(eN.createPrefilteredCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","createPrefilteredCubeTexture")),(eV=tQ.prototype).updateRawTexture??(eV.updateRawTexture=(0,tN._MissingSideEffect)("AbstractEngine","updateRawTexture")),(eG=tQ.prototype).updateRawCubeTexture??(eG.updateRawCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","updateRawCubeTexture")),(eW=tQ.prototype).createRawCubeTextureFromUrl??(eW.createRawCubeTextureFromUrl=(0,tN._MissingSideEffect)("AbstractEngine","createRawCubeTextureFromUrl")),(eH=tQ.prototype).updateRawTexture3D??(eH.updateRawTexture3D=(0,tN._MissingSideEffect)("AbstractEngine","updateRawTexture3D")),(eq=tQ.prototype).updateRawTexture2DArray??(eq.updateRawTexture2DArray=(0,tN._MissingSideEffect)("AbstractEngine","updateRawTexture2DArray")),(ez=tQ.prototype).createRenderTargetTexture??(ez.createRenderTargetTexture=(0,tN._MissingSideEffect)("AbstractEngine","createRenderTargetTexture")),(ej=tQ.prototype).updateRenderTargetTextureSampleCount??(ej.updateRenderTargetTextureSampleCount=(0,tN._MissingSideEffect)("AbstractEngine","updateRenderTargetTextureSampleCount")),(e$=tQ.prototype).createRenderTargetCubeTexture??(e$.createRenderTargetCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","createRenderTargetCubeTexture")),(eZ=tQ.prototype).setDepthStencilTexture??(eZ.setDepthStencilTexture=(0,tN._MissingSideEffect)("AbstractEngine","setDepthStencilTexture")),(eK=tQ.prototype).updateVideoTexture??(eK.updateVideoTexture=(0,tN._MissingSideEffect)("AbstractEngine","updateVideoTexture")),(eQ=tQ.prototype).createRawCubeTexture??(eQ.createRawCubeTexture=(0,tN._MissingSideEffect)("AbstractEngine","createRawCubeTexture")),(eX=tQ.prototype).createEffectForParticles??(eX.createEffectForParticles=(0,tN._MissingSideEffect)("AbstractEngine","createEffectForParticles")),(eY=tQ.prototype).setTextureFromPostProcess??(eY.setTextureFromPostProcess=(0,tN._MissingSideEffect)("AbstractEngine","setTextureFromPostProcess")),(eJ=tQ.prototype).setTextureFromPostProcessOutput??(eJ.setTextureFromPostProcessOutput=(0,tN._MissingSideEffect)("AbstractEngine","setTextureFromPostProcessOutput")),Object.getOwnPropertyDescriptor(tQ.prototype,"loadingScreen")||Object.defineProperty(tQ.prototype,"loadingScreen",(0,tN._MissingSideEffectProperty)("AbstractEngine","loadingScreen")),Object.getOwnPropertyDescriptor(tQ.prototype,"loadingUIText")||Object.defineProperty(tQ.prototype,"loadingUIText",(0,tN._MissingSideEffectProperty)("AbstractEngine","loadingUIText")),Object.getOwnPropertyDescriptor(tQ.prototype,"loadingUIBackgroundColor")||Object.defineProperty(tQ.prototype,"loadingUIBackgroundColor",(0,tN._MissingSideEffectProperty)("AbstractEngine","loadingUIBackgroundColor")),Object.getOwnPropertyDescriptor(tQ.prototype,"inputElement")||Object.defineProperty(tQ.prototype,"inputElement",(0,tN._MissingSideEffectProperty)("AbstractEngine","inputElement")),Object.getOwnPropertyDescriptor(tQ.prototype,"activeView")||Object.defineProperty(tQ.prototype,"activeView",(0,tN._MissingSideEffectProperty)("AbstractEngine","activeView")),Object.getOwnPropertyDescriptor(tQ.prototype,"views")||Object.defineProperty(tQ.prototype,"views",(0,tN._MissingSideEffectProperty)("AbstractEngine","views")),e.s(["AbstractEngine",0,tQ],20307)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56138,e=>{"use strict";var t=e.i(92719),i=e.i(87986),s=e.i(82350),n=e.i(48477);class r extends t.FlowGraphEventBlock{constructor(e){super(e),this.type="PointerMove",this.targetMesh=this.registerDataInput("targetMesh",s.RichTypeAny,e?.targetMesh),this.pointerId=this.registerDataOutput("pointerId",s.RichTypeNumber),this.meshUnderPointer=this.registerDataOutput("meshUnderPointer",s.RichTypeAny),this.pickedPoint=this.registerDataOutput("pickedPoint",s.RichTypeAny)}_executeEvent(e,t){let s=this.targetMesh.getValue(e),n=t.pickInfo?.pickedMesh;return!(!s||n===s||n&&(0,i._IsDescendantOf)(n,s))||(this.pointerId.setValue(t.event.pointerId,e),this.meshUnderPointer.setValue(n??null,e),this.pickedPoint.setValue(t.pickInfo?.pickedPoint??null,e),this._execute(e),!this.config?.stopPropagation)}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphPointerMoveEventBlock"}}let o=!1;function a(){o||(o=!0,(0,n.RegisterClass)("FlowGraphPointerMoveEventBlock",r))}e.s(["FlowGraphPointerMoveEventBlock",0,r,"RegisterFlowGraphPointerMoveEventBlock",0,a],76391),a(),e.s([],75799),e.i(75799),e.i(76391),e.s(["FlowGraphPointerMoveEventBlock",0,r],56138)}]);