@uptimizr/dashboard 0.4.6 → 0.4.8

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 (388) hide show
  1. package/out/404.html +1 -1
  2. package/out/__next.__PAGE__.txt +19 -5
  3. package/out/__next._full.txt +10 -10
  4. package/out/__next._tree.txt +1 -1
  5. package/out/_next/static/chunks/{3cp5nmtwxq4gr.js → 0-6mdj5wxsfid.js} +1 -1
  6. package/out/_next/static/chunks/{2clevl_9ayd0x.js → 0-qthfqvm1jyj.js} +1 -1
  7. package/out/_next/static/chunks/01viyuclp2gm9.js +1 -0
  8. package/out/_next/static/chunks/02aym4t2hgo5c.js +1 -0
  9. package/out/_next/static/chunks/{1fervgvgv10r-.js → 02ic9b5ejugow.js} +1 -1
  10. package/out/_next/static/chunks/03p70i4c7qt0v.js +1 -0
  11. package/out/_next/static/chunks/{3zv5kyos9vtmm.js → 03pjr-ivdicng.js} +1 -1
  12. package/out/_next/static/chunks/041a06-lxipy5.js +1 -0
  13. package/out/_next/static/chunks/{3-yhe6rcsjh88.js → 06dzkwetqis-5.js} +1 -1
  14. package/out/_next/static/chunks/{2mjjo0yj-4ro4.js → 06kvanz5-fo52.js} +1 -1
  15. package/out/_next/static/chunks/{28i3wgvgn_at1.js → 07y8ke_iy59dn.js} +1 -1
  16. package/out/_next/static/chunks/09jukc-4jl735.js +1 -0
  17. package/out/_next/static/chunks/{0cmyc-uvk93kl.js → 09khmdgez3t0a.js} +74 -74
  18. package/out/_next/static/chunks/{2x-7kbwq8tl-o.js → 0_dca4876jshu.js} +196 -196
  19. package/out/_next/static/chunks/0axcgnl5qzr6e.js +1 -0
  20. package/out/_next/static/chunks/0ay4fjomijs3n.js +1 -0
  21. package/out/_next/static/chunks/0c7fy79wlccat.js +1 -0
  22. package/out/_next/static/chunks/0cqe4-l3imct3.js +1 -0
  23. package/out/_next/static/chunks/0cssvelju788j.js +1 -0
  24. package/out/_next/static/chunks/{2-_a-v1xeo5hb.js → 0ctain5xq2wsd.js} +116 -115
  25. package/out/_next/static/chunks/{3yk0hzfq5rcs6.js → 0df-dr3otg_4w.js} +1 -1
  26. package/out/_next/static/chunks/{0i9wa8hjd-5tc.js → 0endw997j7ao9.js} +1 -1
  27. package/out/_next/static/chunks/0ev_pbit1v_qg.js +1 -0
  28. package/out/_next/static/chunks/0eyw9oiwipywb.js +1 -0
  29. package/out/_next/static/chunks/0fkzbuo1tex4u.js +1 -0
  30. package/out/_next/static/chunks/0govas0u0t4w3.js +1 -0
  31. package/out/_next/static/chunks/{287hakn2ijupp.js → 0guzhnususp3-.js} +2 -2
  32. package/out/_next/static/chunks/0h7bq_ysu17q7.js +3 -0
  33. package/out/_next/static/chunks/0hneh_3xzlo28.js +1 -0
  34. package/out/_next/static/chunks/0iaqwme19z_0s.js +1 -0
  35. package/out/_next/static/chunks/0ibmar10xndpn.js +1 -0
  36. package/out/_next/static/chunks/0ii8mqoteppgh.js +11 -0
  37. package/out/_next/static/chunks/{3ioxfi3bvznhh.js → 0ip6v64di_l6x.js} +1 -1
  38. package/out/_next/static/chunks/{184pz6z3dflfm.js → 0ixymgjgz3grn.js} +20 -20
  39. package/out/_next/static/chunks/0kuah8g7lt5ox.js +1 -0
  40. package/out/_next/static/chunks/0l3k4j19vxm17.js +1 -0
  41. package/out/_next/static/chunks/0l6hg0ohwh9-m.js +1 -0
  42. package/out/_next/static/chunks/0m4um4ylhlfan.js +1 -0
  43. package/out/_next/static/chunks/0mj837d4h0ddq.js +1 -0
  44. package/out/_next/static/chunks/0nyn-f4905o91.js +1 -0
  45. package/out/_next/static/chunks/0og6i9rsgkuif.js +1 -0
  46. package/out/_next/static/chunks/0os1x-fxzgnxs.js +1 -0
  47. package/out/_next/static/chunks/0otnra7mp0hog.js +1 -0
  48. package/out/_next/static/chunks/{3p03l0z65c8vc.js → 0oyf2xzv8ofkk.js} +253 -253
  49. package/out/_next/static/chunks/0qvsy3gcqjm12.js +1 -0
  50. package/out/_next/static/chunks/{0yd4_xh476fjn.js → 0rl4ddh2vgxyl.js} +97 -97
  51. package/out/_next/static/chunks/0rwpttmsmqvn_.js +1 -0
  52. package/out/_next/static/chunks/0so3wjp9ch93y.js +1 -0
  53. package/out/_next/static/chunks/{36pz_ews7u0xb.js → 0te4g160_rb5d.js} +1 -1
  54. package/out/_next/static/chunks/0uby-zvu799ef.js +1 -0
  55. package/out/_next/static/chunks/{2kk_vvmr2xm3d.js → 0uvn0op2mlr2u.js} +12 -12
  56. package/out/_next/static/chunks/0vwj4hxjm0igv.js +1 -0
  57. package/out/_next/static/chunks/{0r-x702_jvhud.js → 0w7c30w07uct2.js} +12 -12
  58. package/out/_next/static/chunks/0wm38z3u2133a.js +1 -0
  59. package/out/_next/static/chunks/0y7yk5al7_p8q.js +4 -0
  60. package/out/_next/static/chunks/0ycr0gi6fn6bt.js +1 -0
  61. package/out/_next/static/chunks/0ywvahq9t0tki.js +1 -0
  62. package/out/_next/static/chunks/0zh6nslagkby-.js +1 -0
  63. package/out/_next/static/chunks/{3twr9ds68-9us.js → 0zo8xa0nej3ex.js} +1 -1
  64. package/out/_next/static/chunks/{1lu7rjfvxj8yj.js → 0zsir95gpf3xw.js} +1 -1
  65. package/out/_next/static/chunks/{1j4c0nvdo5q68.js → 0zu6ryyj0ig-j.js} +1 -1
  66. package/out/_next/static/chunks/{1bv-jzy_2jiqs.js → 1-jv8k10q_1uw.js} +1 -1
  67. package/out/_next/static/chunks/{0xx7_7y5jdlh4.js → 1-s5ioie9a94e.js} +1 -1
  68. package/out/_next/static/chunks/{27z7j17kcrty_.js → 1-yos1h0qws5e.js} +11 -11
  69. package/out/_next/static/chunks/10o7brc3x027r.js +1 -0
  70. package/out/_next/static/chunks/{2xe4bgir5l-9b.js → 10pae4gb9i929.js} +504 -504
  71. package/out/_next/static/chunks/13p93itm8a3ym.js +1 -0
  72. package/out/_next/static/chunks/{2mrkv0z2i74pv.js → 147s8i_lktp4_.js} +2 -2
  73. package/out/_next/static/chunks/{3nwaovnpiyrt8.js → 14tgo5xt_3j4w.js} +3 -3
  74. package/out/_next/static/chunks/1699hx-vlak0n.js +22 -0
  75. package/out/_next/static/chunks/{2b5nt7yn-pq3a.js → 16d6n9e77rqti.js} +1 -1
  76. package/out/_next/static/chunks/{3nr48h9zwum-3.js → 16f3d5dv83rsr.js} +1 -1
  77. package/out/_next/static/chunks/16i_tpwn_cmr-.js +1 -0
  78. package/out/_next/static/chunks/{2117sv2qzo6yq.js → 16rfr165nbha0.js} +1 -1
  79. package/out/_next/static/chunks/16sl51pvzo4tf.js +1 -0
  80. package/out/_next/static/chunks/1760s-32qpwgg.js +1 -0
  81. package/out/_next/static/chunks/{3rj-5v0j_2-_2.js → 18kq07c5xy_4g.js} +4 -4
  82. package/out/_next/static/chunks/{2wgh5i70bzelt.js → 190tbzt861ao3.js} +392 -392
  83. package/out/_next/static/chunks/19bhv6cupnnyj.js +1 -0
  84. package/out/_next/static/chunks/1_14pn2wwebxy.js +1 -0
  85. package/out/_next/static/chunks/{2_lw4d7t-xcqi.js → 1_kikmeubh0wq.js} +523 -522
  86. package/out/_next/static/chunks/1ay3z6agelsvz.js +1 -0
  87. package/out/_next/static/chunks/1b-fi3bfmpe31.js +1 -0
  88. package/out/_next/static/chunks/1bae3tqv53x9_.js +1 -0
  89. package/out/_next/static/chunks/{2s4fzgzkwjluu.js → 1bf421g4peccx.js} +2 -2
  90. package/out/_next/static/chunks/1bfony5qsc5tp.js +1 -0
  91. package/out/_next/static/chunks/{3vtmucpx25o7q.js → 1ddt0ot7kl8vq.js} +584 -584
  92. package/out/_next/static/chunks/1emz2vjkgck4z.js +1 -0
  93. package/out/_next/static/chunks/1eogzzw8i1wsg.js +1 -0
  94. package/out/_next/static/chunks/1g9p2h1-31q8o.js +1 -0
  95. package/out/_next/static/chunks/1gcz1k1v1woca.js +1 -0
  96. package/out/_next/static/chunks/1h8lyicgqhpxa.js +1 -0
  97. package/out/_next/static/chunks/{0e5dcxmkprebg.js → 1hot663akaepl.js} +1 -1
  98. package/out/_next/static/chunks/1i7pgl3ks5ye0.js +1 -0
  99. package/out/_next/static/chunks/{0xzamrecplwzw.js → 1i8sk_qgpdjhs.js} +1 -1
  100. package/out/_next/static/chunks/1kk3ct7pkpf3b.js +1 -0
  101. package/out/_next/static/chunks/1kq9o8del67le.js +1 -0
  102. package/out/_next/static/chunks/1l7tzyx2mumlq.js +1 -0
  103. package/out/_next/static/chunks/1n_uwed9o--go.js +1 -0
  104. package/out/_next/static/chunks/1o351eldttogn.js +1 -0
  105. package/out/_next/static/chunks/{1f07l3q77zat1.js → 1ogs4_aj84bfn.js} +1 -1
  106. package/out/_next/static/chunks/{3_dm45k0vk1aa.js → 1p206txlluipi.js} +565 -565
  107. package/out/_next/static/chunks/1p2bt1w845v6c.js +1 -0
  108. package/out/_next/static/chunks/1p3rgz4aef1gk.js +1 -0
  109. package/out/_next/static/chunks/{0ypejzd74ixbw.js → 1qcgdx9yl0gfx.js} +15 -15
  110. package/out/_next/static/chunks/1ql3mm2w5r-m8.js +1 -0
  111. package/out/_next/static/chunks/1qvcyuyshi3ll.js +53 -0
  112. package/out/_next/static/chunks/1r0yyg5a_0knc.js +1 -0
  113. package/out/_next/static/chunks/{374lzksboll-t.js → 1sa6qiidtcyk2.js} +1 -1
  114. package/out/_next/static/chunks/1t-9vrdrsi8le.js +1 -0
  115. package/out/_next/static/chunks/1t97zo0tlpbnz.js +1 -0
  116. package/out/_next/static/chunks/1te2tinzqnwck.js +1 -0
  117. package/out/_next/static/chunks/{3j3ol_d1vsdhx.js → 1trt-m2nrck0v.js} +1 -1
  118. package/out/_next/static/chunks/{3vu5y270muh-7.js → 1ty9jpwr3o_st.js} +1 -1
  119. package/out/_next/static/chunks/{415g3asdds1ac.js → 1u6w6veke8rze.js} +1 -1
  120. package/out/_next/static/chunks/{0-laj-bivzp4x.js → 1u900urmrbv73.js} +1 -1
  121. package/out/_next/static/chunks/{0o73w0cn5n_vl.js → 1vz2gd8k74lpi.js} +1 -1
  122. package/out/_next/static/chunks/1wkpl9bfb0wn7.js +1 -0
  123. package/out/_next/static/chunks/1wrly9a9c3teq.js +1 -0
  124. package/out/_next/static/chunks/1x0m05155yy4e.js +1 -0
  125. package/out/_next/static/chunks/{1my968s78he8g.js → 1xf1wfow43ekc.js} +15 -15
  126. package/out/_next/static/chunks/1y10o40v9odam.js +1 -0
  127. package/out/_next/static/chunks/{3_gfl66zf638s.js → 1y_zykt3fpen4.js} +901 -906
  128. package/out/_next/static/chunks/1ye6xtbm16pg4.js +1 -0
  129. package/out/_next/static/chunks/1z6_57k5h31u7.js +1 -0
  130. package/out/_next/static/chunks/1zboqft0h6mop.js +1 -0
  131. package/out/_next/static/chunks/1zr3c351x0ri5.js +1 -0
  132. package/out/_next/static/chunks/2-5p2lcedvrli.js +1 -0
  133. package/out/_next/static/chunks/{1_4hh3dfop93j.js → 206hxrq60f1_e.js} +1 -1
  134. package/out/_next/static/chunks/20r05k3-studj.js +1 -0
  135. package/out/_next/static/chunks/22gs24kj2du56.js +1 -0
  136. package/out/_next/static/chunks/22x5pd1gyp7sf.js +1 -0
  137. package/out/_next/static/chunks/{3qo7e6b73mfxq.js → 22z-2t_yp1jzs.js} +1 -1
  138. package/out/_next/static/chunks/{3d43gd91r06y6.js → 23hmfdw6z5zfy.js} +507 -505
  139. package/out/_next/static/chunks/23y1krqnc-8sm.js +1 -0
  140. package/out/_next/static/chunks/{0gk5rnci1hznh.js → 24tbkj1qkux88.js} +2 -2
  141. package/out/_next/static/chunks/{2-i29-jdbwww6.js → 26cmri51v7497.js} +111 -111
  142. package/out/_next/static/chunks/27jalbk9zu-2b.js +1 -0
  143. package/out/_next/static/chunks/285d2s9096ryc.js +1 -0
  144. package/out/_next/static/chunks/296ykep2nvppv.js +1 -0
  145. package/out/_next/static/chunks/29nehg5cal-ug.js +1 -0
  146. package/out/_next/static/chunks/2_a56_k3x7to6.js +1 -0
  147. package/out/_next/static/chunks/2a-0l6eb1blh3.js +4 -0
  148. package/out/_next/static/chunks/{2oacwtbslo90t.js → 2a31-txop1jzg.js} +360 -360
  149. package/out/_next/static/chunks/2bse5vll1o-x0.js +1 -0
  150. package/out/_next/static/chunks/2ct40spu9wfj7.js +1 -0
  151. package/out/_next/static/chunks/{2epukrz6paj9n.js → 2ept01b7t-e03.js} +1 -1
  152. package/out/_next/static/chunks/{22yht3s7c-xih.js → 2ey5dqelco_g5.js} +1 -1
  153. package/out/_next/static/chunks/2fd_009hw7y0m.js +1 -0
  154. package/out/_next/static/chunks/{2fspbfbxbswzd.js → 2ftz9kaxrsgxh.js} +1 -1
  155. package/out/_next/static/chunks/2gefdnozflr7p.js +1 -0
  156. package/out/_next/static/chunks/{2as_br1awqk6k.js → 2gs-u1n5uv7iz.js} +496 -496
  157. package/out/_next/static/chunks/{1a94whad0y57f.js → 2hizqql79u-54.js} +1 -1
  158. package/out/_next/static/chunks/2iqf2dpdg_vfl.js +1 -0
  159. package/out/_next/static/chunks/2j7z127s_ycjd.js +1 -0
  160. package/out/_next/static/chunks/2kax7uslfxdnx.js +31 -0
  161. package/out/_next/static/chunks/{2laz1v9fg2a2z.js → 2lh_w9rzy3vek.js} +1 -1
  162. package/out/_next/static/chunks/{3mmy9zsb7zo-m.js → 2ln1na26qwp-3.js} +23 -23
  163. package/out/_next/static/chunks/2n08l1q5o_27e.js +1 -0
  164. package/out/_next/static/chunks/2n7268gyd9z-6.js +1 -0
  165. package/out/_next/static/chunks/2nq9cgjmtqwvp.js +1 -0
  166. package/out/_next/static/chunks/{25brs445bjbik.js → 2oj8qc_pv14nk.js} +2 -2
  167. package/out/_next/static/chunks/2q24e72-olbe8.js +1 -0
  168. package/out/_next/static/chunks/2qc4hscs26cro.js +1 -0
  169. package/out/_next/static/chunks/2qe46redkqhfg.js +1 -0
  170. package/out/_next/static/chunks/2qmfe0mqw150h.js +1 -0
  171. package/out/_next/static/chunks/2qtc0nbl_521e.js +1 -0
  172. package/out/_next/static/chunks/2rofu6gu1xzuq.js +1 -0
  173. package/out/_next/static/chunks/2tdi94rkq739i.js +1 -0
  174. package/out/_next/static/chunks/2u_2sacqa9xa7.js +1 -0
  175. package/out/_next/static/chunks/2ujqz6088shm5.js +1 -0
  176. package/out/_next/static/chunks/{3my05px5mv_s5.js → 2urh9qafp3fiw.js} +235 -235
  177. package/out/_next/static/chunks/{23-y1f_zw56vo.js → 2v06n4z8wsmn9.js} +1 -1
  178. package/out/_next/static/chunks/2vp-5skbk1nfu.js +1 -0
  179. package/out/_next/static/chunks/2vu973j_n6cpx.js +1 -0
  180. package/out/_next/static/chunks/2wwra56rehfcj.js +1 -0
  181. package/out/_next/static/chunks/2xpwr97h2asal.js +1 -0
  182. package/out/_next/static/chunks/3000-0b8n9t_2.js +1 -0
  183. package/out/_next/static/chunks/{0q0i4pdyq66gb.js → 30t3203d7p2da.js} +1 -1
  184. package/out/_next/static/chunks/{3t4ys6th6gf2w.js → 31kto7-dxkt3z.js} +1 -1
  185. package/out/_next/static/chunks/{0j0a0wvmmghxj.js → 32oflcl79d8mu.js} +1 -1
  186. package/out/_next/static/chunks/32ovg81ae0l03.js +1 -0
  187. package/out/_next/static/chunks/{2c8rmxz151fxa.js → 331kthnvoma7n.js} +224 -224
  188. package/out/_next/static/chunks/337kn1mn34rc6.js +1 -0
  189. package/out/_next/static/chunks/{336ckqpboqmbn.js → 33xug8kf0-a1o.js} +1 -1
  190. package/out/_next/static/chunks/34dcb7_flbrvo.js +1 -0
  191. package/out/_next/static/chunks/34zotyeqrz_nq.js +1 -0
  192. package/out/_next/static/chunks/351wsmi75l8db.js +1 -0
  193. package/out/_next/static/chunks/36yv-ialtpx98.js +1 -0
  194. package/out/_next/static/chunks/37hwasxtee5e0.js +1 -0
  195. package/out/_next/static/chunks/37t0iclgxes05.js +1 -0
  196. package/out/_next/static/chunks/{1x0j78ohufpul.js → 37xnvnx1jxfaf.js} +1 -1
  197. package/out/_next/static/chunks/{29hkkj9raxte9.js → 38w74ixqt-9co.js} +77 -77
  198. package/out/_next/static/chunks/{0jap7l5-bskj4.js → 39t2x_9zd2rst.js} +12 -12
  199. package/out/_next/static/chunks/{38q0enmlg5q9o.js → 39v73timmzwny.js} +2 -2
  200. package/out/_next/static/chunks/{3puu2_-t0lln9.js → 3_xqc3658d8sw.js} +12 -12
  201. package/out/_next/static/chunks/3ba8eudvlczwe.js +1 -0
  202. package/out/_next/static/chunks/3buezhxqc8n6n.js +1 -0
  203. package/out/_next/static/chunks/3c5iwwj-fhbue.js +1 -0
  204. package/out/_next/static/chunks/{2kmmk9coo9_b0.js → 3d8ot2tw6yqfq.js} +143 -143
  205. package/out/_next/static/chunks/3dc057ffe7ij-.js +1 -0
  206. package/out/_next/static/chunks/3djnlzwj9869o.js +1 -0
  207. package/out/_next/static/chunks/{2_6b9lraq-exh.js → 3fuqxjjf8o1v9.js} +5 -5
  208. package/out/_next/static/chunks/{0j2ygtc_-bo3m.js → 3gt6rzg9qw-an.js} +1 -1
  209. package/out/_next/static/chunks/{0rykrf_vofbad.js → 3h_05w5j8x538.js} +1 -1
  210. package/out/_next/static/chunks/{3txu-i5qn183a.js → 3hkhd1_k8xohv.js} +321 -321
  211. package/out/_next/static/chunks/{2h07np207nlx7.js → 3ijcc5tfisfnj.js} +1 -1
  212. package/out/_next/static/chunks/3j0dbpd9zop3p.js +1 -0
  213. package/out/_next/static/chunks/{14e4k-718qadd.js → 3ju83xk-ca7ma.js} +163 -168
  214. package/out/_next/static/chunks/3jxhl4apmhbm1.js +13 -0
  215. package/out/_next/static/chunks/{1h1gixjbjkbsl.js → 3la99oz_0p0r6.js} +5 -5
  216. package/out/_next/static/chunks/{1mt4cnd_d6jvf.js → 3n1b34fd5fdrh.js} +1 -1
  217. package/out/_next/static/chunks/3nq_hq4x3rn3r.js +1 -0
  218. package/out/_next/static/chunks/3pgb1kkqrdl9t.js +1 -0
  219. package/out/_next/static/chunks/3pik_-jj-zkfl.js +1 -0
  220. package/out/_next/static/chunks/{1zmx71cvc6ksk.js → 3q38kdbzd2nbd.js} +1 -1
  221. package/out/_next/static/chunks/3q5zl4ks17au2.js +1 -0
  222. package/out/_next/static/chunks/{1t2g1v0ubcsam.js → 3qr10445lte-n.js} +1 -1
  223. package/out/_next/static/chunks/3r-8bnguvxsyo.js +1 -0
  224. package/out/_next/static/chunks/3sg56j8boe-3o.js +1 -0
  225. package/out/_next/static/chunks/3u7zj1-jdg781.js +1 -0
  226. package/out/_next/static/chunks/{0o0qtv35dqv3i.js → 3wj5dmf6cywz8.js} +239 -239
  227. package/out/_next/static/chunks/{2iu0_3cx-ny74.js → 3wr_oijfsq8lr.js} +11 -11
  228. package/out/_next/static/chunks/3xu0dh1ikzwj2.js +1 -0
  229. package/out/_next/static/chunks/{0vzo-8t8c26k9.js → 3y5tpixt23-fl.js} +1 -1
  230. package/out/_next/static/chunks/40gjf-_jt8upu.js +5 -0
  231. package/out/_next/static/chunks/41f12o_5lf-i9.js +1 -0
  232. package/out/_next/static/chunks/42ma8lqduohlc.js +1 -0
  233. package/out/_next/static/chunks/43usshq2nc125.js +1 -0
  234. package/out/_next/static/chunks/{161yjxmdz9obc.js → 44bl4ufopbmyh.js} +1 -1
  235. package/out/_next/static/chunks/44iutzkw9r21x.js +1 -0
  236. package/out/_next/static/chunks/turbopack-1xrxa3noq196-.js +1 -0
  237. package/out/_not-found/__next._full.txt +11 -11
  238. package/out/_not-found/__next._not-found.__PAGE__.txt +19 -2
  239. package/out/_not-found/__next._tree.txt +1 -1
  240. package/out/_not-found.html +1 -1
  241. package/out/_not-found.txt +11 -11
  242. package/out/index.html +1 -1
  243. package/out/index.txt +10 -10
  244. package/package.json +11 -11
  245. package/out/__next._head.txt +0 -6
  246. package/out/__next._index.txt +0 -5
  247. package/out/_next/static/chunks/0-k4hp87gwues.js +0 -1
  248. package/out/_next/static/chunks/04zj0yf1qhk1o.js +0 -1
  249. package/out/_next/static/chunks/06fbalmyyfpsy.js +0 -1
  250. package/out/_next/static/chunks/07hgbbqksqd1g.js +0 -1
  251. package/out/_next/static/chunks/08ou2nvy48e0u.js +0 -1
  252. package/out/_next/static/chunks/08y5-irjbsiy8.js +0 -1
  253. package/out/_next/static/chunks/0_jrfk2u1u3fi.js +0 -1
  254. package/out/_next/static/chunks/0a475u_q5i_dd.js +0 -62
  255. package/out/_next/static/chunks/0aad2r4s4wl1x.js +0 -5
  256. package/out/_next/static/chunks/0d9pxx1w_zqr9.js +0 -1
  257. package/out/_next/static/chunks/0gnjtwq-474uc.js +0 -1
  258. package/out/_next/static/chunks/0gsh_d0m5xss1.js +0 -1
  259. package/out/_next/static/chunks/0ibzpjo0h731v.js +0 -1
  260. package/out/_next/static/chunks/0j_3k5qhv_mdx.js +0 -1
  261. package/out/_next/static/chunks/0jis2w2mfx062.js +0 -1
  262. package/out/_next/static/chunks/0jjvp2slpf7d6.js +0 -1
  263. package/out/_next/static/chunks/0ko10wo4rc9-b.js +0 -1
  264. package/out/_next/static/chunks/0lqmvz6k2h_of.js +0 -1
  265. package/out/_next/static/chunks/0lwjmr8efrlbt.js +0 -17
  266. package/out/_next/static/chunks/0noxyupihh8dk.js +0 -1
  267. package/out/_next/static/chunks/0o1vph7x9shzu.js +0 -1
  268. package/out/_next/static/chunks/0p6phe9kjlxn8.js +0 -1
  269. package/out/_next/static/chunks/0ptxb9dcwsw3o.js +0 -1
  270. package/out/_next/static/chunks/0q8pt8fd0ma30.js +0 -1
  271. package/out/_next/static/chunks/0qqx9aoz8l5d2.js +0 -1
  272. package/out/_next/static/chunks/0tsk32q-88t_7.js +0 -1
  273. package/out/_next/static/chunks/0u7577db_ivyr.js +0 -1
  274. package/out/_next/static/chunks/0unnrt0un064x.js +0 -1
  275. package/out/_next/static/chunks/0uygtr4mo3h0v.js +0 -1
  276. package/out/_next/static/chunks/0vf3facit951s.js +0 -1
  277. package/out/_next/static/chunks/0xyija62b6txc.js +0 -1
  278. package/out/_next/static/chunks/0zeb37703zcz3.js +0 -1
  279. package/out/_next/static/chunks/0zu5ato7-1-q9.js +0 -1
  280. package/out/_next/static/chunks/0zydv7y47dxgh.js +0 -1
  281. package/out/_next/static/chunks/103x4jwovb6d-.js +0 -1
  282. package/out/_next/static/chunks/107wfq84g9-kn.js +0 -1
  283. package/out/_next/static/chunks/10afagk8yn__n.js +0 -1
  284. package/out/_next/static/chunks/12ory_c78yl31.js +0 -1
  285. package/out/_next/static/chunks/133dqp8_7_yo6.js +0 -1
  286. package/out/_next/static/chunks/1365lgwdd4vuo.js +0 -1
  287. package/out/_next/static/chunks/146ou-ohb_qhs.js +0 -1
  288. package/out/_next/static/chunks/14orr68xgdykd.js +0 -1
  289. package/out/_next/static/chunks/15qfoj-vl9thu.js +0 -1
  290. package/out/_next/static/chunks/166yqx3_qvbpy.js +0 -1
  291. package/out/_next/static/chunks/16gwjao676ieb.js +0 -1
  292. package/out/_next/static/chunks/16rmmzhy2p7bw.js +0 -1
  293. package/out/_next/static/chunks/17_jjyx4jz9dd.js +0 -1
  294. package/out/_next/static/chunks/18h9ugdz6igdb.js +0 -1
  295. package/out/_next/static/chunks/19d8n5t7ka2fb.js +0 -1
  296. package/out/_next/static/chunks/1_rbzw3n4fk0g.js +0 -1
  297. package/out/_next/static/chunks/1aa9g197l4twm.js +0 -1
  298. package/out/_next/static/chunks/1bq0fcnt1wy86.js +0 -1
  299. package/out/_next/static/chunks/1c6mho7e0enta.js +0 -1
  300. package/out/_next/static/chunks/1dfaheve77dhi.js +0 -1
  301. package/out/_next/static/chunks/1dgf112ehnhm1.js +0 -1
  302. package/out/_next/static/chunks/1eirucr9s6-h5.js +0 -1
  303. package/out/_next/static/chunks/1fsof7un7igrn.js +0 -1
  304. package/out/_next/static/chunks/1gvu5a6ffbs7l.js +0 -1
  305. package/out/_next/static/chunks/1iel4pzhhh-c3.js +0 -1
  306. package/out/_next/static/chunks/1iojfx3-g4_n9.js +0 -1
  307. package/out/_next/static/chunks/1j4jt5q7px8sy.js +0 -1
  308. package/out/_next/static/chunks/1jjw9hxgi2vzi.js +0 -1
  309. package/out/_next/static/chunks/1k_8olnprvi8r.js +0 -1
  310. package/out/_next/static/chunks/1l0rt7d4m-xdk.js +0 -5
  311. package/out/_next/static/chunks/1s0dpdqy480hg.js +0 -1
  312. package/out/_next/static/chunks/1t-yolk97lmot.js +0 -12
  313. package/out/_next/static/chunks/1tbes2sv-qzcx.js +0 -1
  314. package/out/_next/static/chunks/1upy8a5cb75kt.js +0 -1
  315. package/out/_next/static/chunks/1xed71f608m4b.js +0 -1
  316. package/out/_next/static/chunks/1z790xxb46gxy.js +0 -1
  317. package/out/_next/static/chunks/219n3q-_eengm.js +0 -1
  318. package/out/_next/static/chunks/21wo3vdr_uby8.js +0 -1
  319. package/out/_next/static/chunks/25gep78-izw79.js +0 -4
  320. package/out/_next/static/chunks/26i7dn31afdtm.js +0 -1
  321. package/out/_next/static/chunks/27hbplu797elx.js +0 -1
  322. package/out/_next/static/chunks/2992eiy52nazj.js +0 -1
  323. package/out/_next/static/chunks/29_n5j-hg_gsa.js +0 -1
  324. package/out/_next/static/chunks/29bxq-67oazfg.js +0 -1
  325. package/out/_next/static/chunks/29ings58w7kp1.js +0 -1
  326. package/out/_next/static/chunks/2_n0cpkdsjzli.js +0 -1
  327. package/out/_next/static/chunks/2a3iy701j4r_y.js +0 -1
  328. package/out/_next/static/chunks/2al9dh3_1ixhv.js +0 -1
  329. package/out/_next/static/chunks/2awr1c_vfsutb.js +0 -1
  330. package/out/_next/static/chunks/2bxe3kjr17tdp.js +0 -1
  331. package/out/_next/static/chunks/2dvbzar93ooc-.js +0 -1
  332. package/out/_next/static/chunks/2e-vp0e11g9ew.js +0 -1
  333. package/out/_next/static/chunks/2exj9-0p6n9x-.js +0 -1
  334. package/out/_next/static/chunks/2gf8l6hbmt7v3.js +0 -1
  335. package/out/_next/static/chunks/2h9i_adbqaxs4.js +0 -1
  336. package/out/_next/static/chunks/2jio3sio-_43z.js +0 -1
  337. package/out/_next/static/chunks/2neieeo9g2u56.js +0 -1
  338. package/out/_next/static/chunks/2pb_uosb-aa8x.js +0 -1
  339. package/out/_next/static/chunks/2qu-gpm3ux1l6.js +0 -1
  340. package/out/_next/static/chunks/2rsi6v7qmqx2b.js +0 -1
  341. package/out/_next/static/chunks/2tdvuc-27khif.js +0 -1
  342. package/out/_next/static/chunks/2trolrgd7neax.js +0 -1
  343. package/out/_next/static/chunks/2uyuafmoe5wi0.js +0 -3
  344. package/out/_next/static/chunks/2w2e0pxgs-n8f.js +0 -1
  345. package/out/_next/static/chunks/2xujlsx3stqig.js +0 -1
  346. package/out/_next/static/chunks/30y71dxdpv52d.js +0 -1
  347. package/out/_next/static/chunks/32c-e_v8_2xkf.js +0 -1
  348. package/out/_next/static/chunks/32oj0iudhp8bm.js +0 -1
  349. package/out/_next/static/chunks/33p9du6y9eegg.js +0 -1
  350. package/out/_next/static/chunks/38om-j0h0rryk.js +0 -1
  351. package/out/_next/static/chunks/39cou9lia_g7l.js +0 -1
  352. package/out/_next/static/chunks/39pkya0_bvcaj.js +0 -1
  353. package/out/_next/static/chunks/39rhmj_32ujyj.js +0 -1
  354. package/out/_next/static/chunks/3_1zzmx92j9c0.js +0 -1
  355. package/out/_next/static/chunks/3_earszshuz4n.js +0 -1
  356. package/out/_next/static/chunks/3ap_uxc8lx7ni.js +0 -1
  357. package/out/_next/static/chunks/3b6na8zrex8jo.js +0 -1
  358. package/out/_next/static/chunks/3c0cxt72vilyz.js +0 -1
  359. package/out/_next/static/chunks/3g78x0pdaoi_4.js +0 -1
  360. package/out/_next/static/chunks/3gjvl1p-tugfe.js +0 -4
  361. package/out/_next/static/chunks/3i8iro1gas1vx.js +0 -1
  362. package/out/_next/static/chunks/3kpqfqr99vo7z.js +0 -1
  363. package/out/_next/static/chunks/3lladf_wemm-2.js +0 -1
  364. package/out/_next/static/chunks/3n62hbywoknop.js +0 -1
  365. package/out/_next/static/chunks/3o_dmzpahx-5g.js +0 -1
  366. package/out/_next/static/chunks/3r7v7un976sn7.js +0 -1
  367. package/out/_next/static/chunks/3rl_nhqwew40w.js +0 -1
  368. package/out/_next/static/chunks/3s7hqij6xp_4e.js +0 -1
  369. package/out/_next/static/chunks/3si3migsmvz9o.js +0 -1
  370. package/out/_next/static/chunks/3uarw1i1ij1er.js +0 -1
  371. package/out/_next/static/chunks/3un-w6wutw1qn.js +0 -1
  372. package/out/_next/static/chunks/3v8kgnjk27wbe.js +0 -1
  373. package/out/_next/static/chunks/3we1khqfexh3x.js +0 -1
  374. package/out/_next/static/chunks/3z35loj4i-id4.js +0 -1
  375. package/out/_next/static/chunks/42lqt7ig40wk5.js +0 -1
  376. package/out/_next/static/chunks/42s6ghsurq5q7.js +0 -1
  377. package/out/_next/static/chunks/42yctcfi2rfwr.js +0 -1
  378. package/out/_next/static/chunks/43_fau1gg69eo.js +0 -1
  379. package/out/_next/static/chunks/43ywrdzg_7af8.js +0 -31
  380. package/out/_next/static/chunks/44m1ijc5cv80x.js +0 -1
  381. package/out/_next/static/chunks/453_bg0lgesmp.js +0 -1
  382. package/out/_next/static/chunks/turbopack-1s36ieuku1ds3.js +0 -1
  383. package/out/_not-found/__next._head.txt +0 -6
  384. package/out/_not-found/__next._index.txt +0 -5
  385. package/out/_not-found/__next._not-found.txt +0 -5
  386. /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_buildManifest.js +0 -0
  387. /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_clientMiddlewareManifest.js +0 -0
  388. /package/out/_next/static/{5UjNvd7WCk97iC2cSmEGH → 4r0L0ZMJeBwOJCVDsvvZ4}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87851,e=>{"use strict";e.s(["IntersectionInfo",0,class{constructor(e,t,s){this.bu=e,this.bv=t,this.distance=s,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},68987,e=>{"use strict";var t=e.i(56173),s=e.i(10977);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,r=!0){let i;if(!this.pickedMesh||r&&!this.pickedMesh.isVerticesDataPresent(s.VertexBuffer.NormalKind))return null;let n=this.pickedMesh.getIndices();n?.length===0&&(n=null);let a=t.TmpVectors.Vector3[0],h=t.TmpVectors.Vector3[1],o=t.TmpVectors.Vector3[2];if(r){let e=this.pickedMesh.getVerticesData(s.VertexBuffer.NormalKind),r=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],h):h.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],o):o.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);r=r.scale(this.bu),l=l.scale(this.bv),c=c.scale(1-this.bu-this.bv),i=new t.Vector3(r.x+l.x+c.x,r.y+l.y+c.y,r.z+l.z+c.z)}else{let e=this.pickedMesh.getVerticesData(s.VertexBuffer.PositionKind),r=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],h):h.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],o):o.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=r.subtract(l),d=c.subtract(l);i=t.Vector3.Cross(u,d)}let l=(e,s)=>{if(-1!==this.thinInstanceIndex){let r=e._thinInstanceDataStorage.matrixData,i=this.thinInstanceIndex<<4;if(r&&r.length>i){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(r,i,e),t.Vector3.TransformNormalToRef(s,e,s)}}let r=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(r),(r=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),r.invert(),r.transposeToRef(t.TmpVectors.Matrix[1]),r=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(s,r,s)};if(e&&l(this.pickedMesh,i),this.ray){let s=t.TmpVectors.Vector3[0].copyFrom(i);e||l(this.pickedMesh,s),t.Vector3.Dot(s,this.ray.direction)>0&&i.negateInPlace()}return i.normalize(),i}getTextureCoordinates(e=s.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let r=this.pickedMesh.getIndices();if(!r)return null;let i=this.pickedMesh.getVerticesData(e);if(!i)return null;let n=t.Vector2.FromArray(i,2*r[3*this.faceId]),a=t.Vector2.FromArray(i,2*r[3*this.faceId+1]),h=t.Vector2.FromArray(i,2*r[3*this.faceId+2]);return n=n.scale(this.bu),a=a.scale(this.bv),h=h.scale(1-this.bu-this.bv),new t.Vector2(n.x+a.x+h.x,n.y+a.y+h.y)}}])},95284,e=>{"use strict";var t,s;(s=t||(t={}))[s.PointerMove=0]="PointerMove",s[s.PointerDown=1]="PointerDown",s[s.PointerUp=2]="PointerUp";class r{}r.DOM_DELTA_PIXEL=0,r.DOM_DELTA_LINE=1,r.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,r])},97021,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class s{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,s,"KeyboardInfoPre",0,class extends s{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(e){this.skipOnKeyboardObservable=e}constructor(e,t){super(e,t),this.type=e,this.event=t,this.skipOnKeyboardObservable=!1}}])},84289,e=>{"use strict";var t=e.i(56173);class s{}s.POINTERDOWN=1,s.POINTERUP=2,s.POINTERMOVE=4,s.POINTERWHEEL=8,s.POINTERPICK=16,s.POINTERTAP=32,s.POINTERDOUBLETAP=64;class r{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,s,"PointerInfo",0,class extends r{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,s,r=null){super(e,t),this._pickInfo=s,this._inputManager=r}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends r{constructor(e,s,r,i){super(e,s),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(r,i)}}])},61133,e=>{"use strict";var t=e.i(89435);e.s(["DrawWrapper",0,class{static GetEffect(e){return void 0===e.getPipelineContext?e.effect:e}constructor(e,t=!0){this._wasPreviouslyReady=!1,this._forceRebindOnNextCall=!0,this._wasPreviouslyUsingInstances=null,this.effect=null,this.defines=null,this.drawContext=e.createDrawContext(),t&&(this.materialContext=e.createMaterialContext())}setEffect(e,t,s=!0){this.effect=e,void 0!==t&&(this.defines=t),s&&this.drawContext?.reset()}dispose(e=!1){if(this.effect){let s=this.effect;e?s.dispose():t.TimingTools.SetImmediate(()=>{s.getEngine().onEndFrameObservable.addOnce(()=>{s.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},66528,e=>{"use strict";e.s(["EffectFallbacks",0,class{constructor(){this._defines={},this._currentRank=32,this._maxRank=-1,this._mesh=null}unBindMesh(){this._mesh=null}addFallback(e,t){this._defines[e]||(e<this._currentRank&&(this._currentRank=e),e>this._maxRank&&(this._maxRank=e),this._defines[e]=[]),this._defines[e].push(t)}addCPUSkinningFallback(e,t){this._mesh=t,e<this._currentRank&&(this._currentRank=e),e>this._maxRank&&(this._maxRank=e)}get hasMoreFallbacks(){return this._currentRank<=this._maxRank}reduce(e,t){if(this._mesh&&this._mesh.computeBonesUsingShaders&&this._mesh.numBoneInfluencers>0){this._mesh.computeBonesUsingShaders=!1,e=e.replace("#define NUM_BONE_INFLUENCERS "+this._mesh.numBoneInfluencers,"#define NUM_BONE_INFLUENCERS 0"),t._bonesComputationForcedToCPU=!0;let s=this._mesh.getScene();for(let e=0;e<s.meshes.length;e++){let r=s.meshes[e];if(!r.material){!this._mesh.material&&r.computeBonesUsingShaders&&r.numBoneInfluencers>0&&(r.computeBonesUsingShaders=!1);continue}if(r.computeBonesUsingShaders&&0!==r.numBoneInfluencers){if(r.material.getEffect()===t)r.computeBonesUsingShaders=!1;else if(r.subMeshes){for(let e of r.subMeshes)if(e.effect===t){r.computeBonesUsingShaders=!1;break}}}}}else{let t=this._defines[this._currentRank];if(t)for(let s=0;s<t.length;s++)e=e.replace("#define "+t[s],"");this._currentRank++}return e}}])},36918,e=>{"use strict";var t=e.i(56173),s=e.i(13279);class r extends s.Material{constructor(e,s,r=!0,i=!1){super(e,s,void 0,i),this._normalMatrix=new t.Matrix,this._storeEffectOnSubMeshes=r}getEffect(){return this._storeEffectOnSubMeshes?this._activeEffect:super.getEffect()}isReady(e,t){return!!e&&(!this._storeEffectOnSubMeshes||!e.subMeshes||0===e.subMeshes.length||this.isReadyForSubMesh(e,e.subMeshes[0],t))}_isReadyForSubMesh(e){let t=e.materialDefines;return!this.checkReadyOnEveryCall&&!!e.effect&&!!t&&t._renderId===this.getScene().getRenderId()}bindOnlyWorldMatrix(e){this._activeEffect.setMatrix("world",e)}bindOnlyNormalMatrix(e){this._activeEffect.setMatrix("normalMatrix",e)}bind(e,t){t&&this.bindForSubMesh(e,t,t.subMeshes[0])}_afterBind(e,t=null,s){super._afterBind(e,t,s),this.getScene()._cachedEffect=t,s?s._drawWrapper._forceRebindOnNextCall=!1:this._drawWrapper._forceRebindOnNextCall=!1}_mustRebind(e,t,s,r=1){return s._drawWrapper._forceRebindOnNextCall||e.isCachedMaterialInvalid(this,t,r)}dispose(e,t,s){this._activeEffect=void 0,super.dispose(e,t,s)}}e.s(["PushMaterial",0,r])},30319,e=>{"use strict";let t=new WeakMap;e.s(["BindVertexPullingUniforms",0,function(e,t){t.forEach((t,s)=>{let r=`vp_${s}_info`;e.setFloat4(r,t.offset,t.stride,t.type,+!!t.normalized)})},"PrepareVertexPullingUniforms",0,function(e){let s=e.getVertexBuffers();if(!s)return null;let r=t.get(e);if(r){let e=!1;for(let t in s)if(!r.has(t)){e=!0;break}if(!e)return r}else r=new Map,t.set(e,r);for(let e in s){let t=s[e];if(t){let s=t.byteOffset,i=t.byteStride,n=t.type,a=t.normalized;r.set(e,{offset:s,stride:i,type:n,normalized:a})}}return r}])},38788,e=>{"use strict";var t=e.i(38450);class s{static GetPlanes(e){let r=[];for(let e=0;e<6;e++)r.push(new t.Plane(0,0,0,0));return s.GetPlanesToRef(e,r),r}static GetNearPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[2],t.normal.y=s[7]+s[6],t.normal.z=s[11]+s[10],t.d=s[15]+s[14],t.normalize()}static GetFarPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[2],t.normal.y=s[7]-s[6],t.normal.z=s[11]-s[10],t.d=s[15]-s[14],t.normalize()}static GetLeftPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[0],t.normal.y=s[7]+s[4],t.normal.z=s[11]+s[8],t.d=s[15]+s[12],t.normalize()}static GetRightPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[0],t.normal.y=s[7]-s[4],t.normal.z=s[11]-s[8],t.d=s[15]-s[12],t.normalize()}static GetTopPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[1],t.normal.y=s[7]-s[5],t.normal.z=s[11]-s[9],t.d=s[15]-s[13],t.normalize()}static GetBottomPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[1],t.normal.y=s[7]+s[5],t.normal.z=s[11]+s[9],t.d=s[15]+s[13],t.normalize()}static GetPlanesToRef(e,t){s.GetNearPlaneToRef(e,t[0]),s.GetFarPlaneToRef(e,t[1]),s.GetLeftPlaneToRef(e,t[2]),s.GetRightPlaneToRef(e,t[3]),s.GetTopPlaneToRef(e,t[4]),s.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let s=0;s<6;s++)if(0>t[s].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,s])},76846,e=>{"use strict";var t=e.i(2103);class s{get min(){return this._min}get max(){return this._max}get average(){return this._average}get lastSecAverage(){return this._lastSecAverage}get current(){return this._current}get total(){return this._totalAccumulated}get count(){return this._totalValueCount}constructor(){this._startMonitoringTime=0,this._min=0,this._max=0,this._hasResult=!1,this._hasCurrentValue=!1,this._average=0,this._lastSecAverage=0,this._current=0,this._totalValueCount=0,this._totalAccumulated=0,this._lastSecAccumulated=0,this._lastSecTime=0,this._lastSecValueCount=0}fetchNewFrame(){this._totalValueCount++,this._current=0,this._hasCurrentValue=s.Enabled,this._lastSecValueCount++}addCount(e,t){s.Enabled&&(this._current+=e,this._hasCurrentValue=!0,t&&this._fetchResult())}beginMonitoring(){s.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!s.Enabled)return;e&&this.fetchNewFrame();let r=t.PrecisionDate.Now;this._current=r-this._startMonitoringTime,this._hasCurrentValue=!0,e&&this._fetchResult()}endFrame(){this._fetchResult()}_fetchResult(){if(!this._hasCurrentValue)return;this._totalAccumulated+=this._current,this._lastSecAccumulated+=this._current,this._hasResult?(this._min=Math.min(this._min,this._current),this._max=Math.max(this._max,this._current)):(this._min=this._current,this._max=this._current,this._hasResult=!0),this._average=this._totalAccumulated/this._totalValueCount;let e=t.PrecisionDate.Now;e-this._lastSecTime>1e3&&(this._lastSecAverage=this._lastSecAccumulated/this._lastSecValueCount,this._lastSecTime=e,this._lastSecAccumulated=0,this._lastSecValueCount=0)}}s.Enabled=!0,e.s(["PerfCounter",0,s])},55179,40839,e=>{"use strict";var t=e.i(10977),s=e.i(97991);e.s(["PostProcessManager",0,class{constructor(e){this._vertexBuffers={},this._activePostProcesses=[],this.onBeforeRenderObservable=new s.Observable,this._scene=e}_prepareBuffers(){if(this._vertexBuffers[t.VertexBuffer.PositionKind])return;let e=[];e.push(1,1),e.push(-1,1),e.push(-1,-1),e.push(1,-1),this._vertexBuffers[t.VertexBuffer.PositionKind]=new t.VertexBuffer(this._scene.getEngine(),e,t.VertexBuffer.PositionKind,!1,!1,2),this._buildIndexBuffer()}_buildIndexBuffer(){let e=[];e.push(0),e.push(1),e.push(2),e.push(0),e.push(2),e.push(3),this._indexBuffer=this._scene.getEngine().createIndexBuffer(e)}_getActivePostProcesses(e){let t=this._activePostProcesses;t.length=0;for(let s=0;s<e.length;s++){let r=e[s];r&&t.push(r)}return t}_rebuild(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e._rebuild(),this._buildIndexBuffer())}_prepareFrame(e=null,t=null){let s=this._scene.activeCamera;return!!s&&!!(t=t||this._getActivePostProcesses(s._postProcesses))&&0!==t.length&&!!this._scene.postProcessesEnabled&&(t[0].activate(s,e,null!=t),!0)}directRender(e,t=null,s=!1,r=0,i=0,n=!1,a=e.length){let h=this._scene.getEngine();for(let o=0;o<a;o++){o<e.length-1?e[o+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?h.bindFramebuffer(t,r,void 0,void 0,s,i):n||h.restoreDefaultFramebuffer(),h._debugInsertMarker?.(`post process ${e[o].name} output`));let a=e[o],l=a.apply();l&&(a.onBeforeRenderObservable.notifyObservers(l),this._prepareBuffers(),h.bindBuffers(this._vertexBuffers,this._indexBuffer,l),h.drawElementsType(0,0,6),a.onAfterRenderObservable.notifyObservers(l))}h.setDepthBuffer(!0),h.setDepthWrite(!0)}_finalizeFrame(e,t,s,r,i=!1){let n=this._scene.activeCamera;if(!n||(this.onBeforeRenderObservable.notifyObservers(this),0===(r=r||this._getActivePostProcesses(n._postProcesses)).length||!this._scene.postProcessesEnabled))return;let a=this._scene.getEngine();for(let h=0,o=r.length;h<o;h++){let l=r[h];if(h<o-1?l._outputTexture=r[h+1].activate(n,t?.texture):(t?(a.bindFramebuffer(t,s,void 0,void 0,i),l._outputTexture=t):(a.restoreDefaultFramebuffer(),l._outputTexture=null),a._debugInsertMarker?.(`post process ${r[h].name} output`)),e)break;let c=l.apply();c&&(l.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),a.bindBuffers(this._vertexBuffers,this._indexBuffer,c),a.drawElementsType(0,0,6),l.onAfterRenderObservable.notifyObservers(c))}a.setDepthBuffer(!0),a.setDepthWrite(!0),a.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],55179);var r=e.i(6895),i=e.i(56173);class n{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=n.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=n.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=n.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,s=null,i=null,n=null){this.index=e,this._opaqueSubMeshes=new r.SmartArray(256),this._transparentSubMeshes=new r.SmartArray(256),this._alphaTestSubMeshes=new r.SmartArray(256),this._depthOnlySubMeshes=new r.SmartArray(256),this._particleSystems=new r.SmartArray(256),this._spriteManagers=new r.SmartArray(256),this._empty=!0,this._edgesRenderers=new r.SmartArrayNoDuplicate(16),this.disableDepthPrePass=!1,this._scene=t,this.opaqueSortCompareFn=s,this.alphaTestSortCompareFn=i,this.transparentSortCompareFn=n}render(e,t,s,r,i=!0,n=!0,a=!0,h=!0,o){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let l=this._scene.getEngine();i&&0!==this._depthOnlySubMeshes.length&&(l.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),l.setColorWrite(!0)),n&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),a&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let c=l.getStencilBuffer();if(l.setStencilBuffer(!1),t&&this._renderSprites(),s&&this._renderParticles(r),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),h&&(o||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(l.setStencilBuffer(c),o)o(this._transparentSubMeshes,this);else if(this._scene.useOrderIndependentTransparency){let e=this._scene.depthPeelingRenderer.render(this._transparentSubMeshes);e.length&&this._renderTransparent(e)}else this._renderTransparent(this._transparentSubMeshes);l.setAlphaMode(0)}if(l.setStencilBuffer(!1),n&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();l.setAlphaMode(0)}l.setStencilBuffer(c)}_renderOpaqueSorted(e){n._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){n._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){n._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,s,r,a){let h,o=0,l=s?s.globalPosition:n._ZeroVector;if(r)for(;o<e.length;o++)(h=e.data[o])._alphaIndex=h.getMesh().alphaIndex,h._distanceToCamera=i.Vector3.Distance(h.getBoundingInfo().boundingSphere.centerWorld,l);let c=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&c.sort(t);let u=c[0].getMesh().getScene();for(o=0;o<c.length;o++)if(h=c[o],!u._activeMeshesFrozenButKeepClipping||h.isInFrustum(u._frustumPlanes)){if(r){let e=h.getMaterial();if(e&&e.needDepthPrePass&&!a){let t=e.getScene().getEngine();t.setColorWrite(!1),t.setAlphaMode(0),h.render(!1),t.setColorWrite(!0)}}h.render(r)}}static defaultTransparentSortCompare(e,t){return e._alphaIndex>t._alphaIndex?1:e._alphaIndex<t._alphaIndex?-1:n.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let s=e.getMesh(),r=t.getMesh();return s.material&&r.material?s.material.uniqueId-r.material.uniqueId:s.uniqueId-r.uniqueId}prepare(){this._opaqueSubMeshes.reset(),this._transparentSubMeshes.reset(),this._alphaTestSubMeshes.reset(),this._depthOnlySubMeshes.reset(),this._particleSystems.reset(),this.prepareSprites(),this._edgesRenderers.reset(),this._empty=!0}prepareSprites(){this._spriteManagers.reset()}dispose(){this._opaqueSubMeshes.dispose(),this._transparentSubMeshes.dispose(),this._alphaTestSubMeshes.dispose(),this._depthOnlySubMeshes.dispose(),this._particleSystems.dispose(),this._spriteManagers.dispose(),this._edgesRenderers.dispose()}dispatch(e,t,s){void 0===t&&(t=e.getMesh()),void 0===s&&(s=e.getMaterial()),null!=s&&(s.needAlphaBlendingForMesh(t)?this._transparentSubMeshes.push(e):s.needAlphaTestingForMesh(t)?(s.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._alphaTestSubMeshes.push(e)):(s.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._opaqueSubMeshes.push(e)),t._renderingGroup=this,t._edgesRenderer&&t.isEnabled()&&t.isVisible&&t._edgesRenderer.isEnabled&&this._edgesRenderers.pushNoDuplicate(t._edgesRenderer),this._empty=!1)}dispatchSprites(e){this._spriteManagers.push(e),this._empty=!1}dispatchParticles(e){this._particleSystems.push(e),this._empty=!1}_renderParticles(e){if(0===this._particleSystems.length)return;let t=this._scene.activeCamera;this._scene.onBeforeParticlesRenderingObservable.notifyObservers(this._scene);for(let s=0;s<this._particleSystems.length;s++){let r=this._particleSystems.data[s];if(0===(t&&t.layerMask&r.layerMask))continue;let i=r.emitter;i.position&&e&&-1===e.indexOf(i)||this._scene._activeParticles.addCount(r.render(),!1)}this._scene.onAfterParticlesRenderingObservable.notifyObservers(this._scene)}_renderSprites(){if(!this._scene.spritesEnabled||0===this._spriteManagers.length)return;let e=this._scene.activeCamera;this._scene.onBeforeSpritesRenderingObservable.notifyObservers(this._scene);for(let t=0;t<this._spriteManagers.length;t++){let s=this._spriteManagers.data[t];0!==(e&&e.layerMask&s.layerMask)&&s.render()}this._scene.onAfterSpritesRenderingObservable.notifyObservers(this._scene)}}n._ZeroVector=i.Vector3.Zero();class a{}class h{get disableDepthPrePass(){return this._disableDepthPrePass}set disableDepthPrePass(e){for(let t of(this._disableDepthPrePass=e,this._renderingGroups))t.disableDepthPrePass=e}get maintainStateBetweenFrames(){return this._maintainStateBetweenFrames}set maintainStateBetweenFrames(e){e!==this._maintainStateBetweenFrames&&(this._maintainStateBetweenFrames=e,this._maintainStateBetweenFrames||this.restoreDispachedFlags())}restoreDispachedFlags(){for(let e of this._scene.meshes)if(e.subMeshes)for(let t of e.subMeshes)t._wasDispatched=!1;if(this._scene.spriteManagers)for(let e of this._scene.spriteManagers)e._wasDispatched=!1;for(let e of this._scene.particleSystems)e._wasDispatched=!1}constructor(e){this._useSceneAutoClearSetup=!1,this._disableDepthPrePass=!1,this._renderingGroups=[],this._autoClearDepthStencil={},this._customOpaqueSortCompareFn={},this._customAlphaTestSortCompareFn={},this._customTransparentSortCompareFn={},this._renderingGroupInfo=new a,this._maintainStateBetweenFrames=!1,this._scene=e;for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++)this._autoClearDepthStencil[e]={autoClear:!0,depth:!0,stencil:!0}}get renderingGroups(){return this._renderingGroups}getRenderingGroup(e){let t=e||0;return this._prepareRenderingGroup(t),this._renderingGroups[t]}_clearDepthStencilBuffer(e=!0,t=!0){this._depthStencilBufferAlreadyCleaned||(this._scene.getEngine().clear(null,!1,e,t),this._depthStencilBufferAlreadyCleaned=!0)}render(e,t,s,r,i=!0,n=!0,a=!0,o=!0,l){let c=this._renderingGroupInfo;if(c.scene=this._scene,c.camera=this._scene.activeCamera,c.renderingManager=this,this._scene.spriteManagers&&r)for(let e=0;e<this._scene.spriteManagers.length;e++){let t=this._scene.spriteManagers[e];this.dispatchSprites(t)}for(let u=h.MIN_RENDERINGGROUPS;u<h.MAX_RENDERINGGROUPS;u++){this._depthStencilBufferAlreadyCleaned=u===h.MIN_RENDERINGGROUPS;let d=this._renderingGroups[u];if(!d||d._empty)continue;let p=1<<u;if(c.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(c,p),h.AUTOCLEAR){let e=this._useSceneAutoClearSetup?this._scene.getAutoClearDepthStencilSetup(u):this._autoClearDepthStencil[u];e&&e.autoClear&&this._clearDepthStencilBuffer(e.depth,e.stencil)}for(let e of this._scene._beforeRenderingGroupDrawStage)e.action(u);for(let h of(d.render(e,r,s,t,i,n,a,o,l),this._scene._afterRenderingGroupDrawStage))h.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(c,p)}}reset(){if(!this.maintainStateBetweenFrames)for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepare()}}resetSprites(){if(!this.maintainStateBetweenFrames)for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepareSprites()}}dispose(){this.freeRenderingGroups(),this._renderingGroups.length=0,this._renderingGroupInfo=null}freeRenderingGroups(){for(let e=h.MIN_RENDERINGGROUPS;e<h.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.dispose()}}_prepareRenderingGroup(e){void 0===this._renderingGroups[e]&&(this._renderingGroups[e]=new n(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,s){void 0===t&&(t=e.getMesh()),this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(t.renderingGroupId).dispatch(e,t,s))}setRenderingOrder(e,t=null,s=null,r=null){if(this._customOpaqueSortCompareFn[e]=t,this._customAlphaTestSortCompareFn[e]=s,this._customTransparentSortCompareFn[e]=r,this._renderingGroups[e]){let t=this._renderingGroups[e];t.opaqueSortCompareFn=this._customOpaqueSortCompareFn[e],t.alphaTestSortCompareFn=this._customAlphaTestSortCompareFn[e],t.transparentSortCompareFn=this._customTransparentSortCompareFn[e]}}setRenderingAutoClearDepthStencil(e,t,s=!0,r=!0){this._autoClearDepthStencil[e]={autoClear:t,depth:s,stencil:r}}getAutoClearDepthStencilSetup(e){return this._autoClearDepthStencil[e]}}h.MAX_RENDERINGGROUPS=4,h.MIN_RENDERINGGROUPS=0,h.AUTOCLEAR=!0,e.s(["RenderingManager",0,h],40839)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22247,e=>{"use strict";let t,i,s,n,a,r,o,h,l,d,_,c,u,g,I,m,f,p,b,y,S,M,E,T,L,D,N,O,v,A,C,P,x,R,z,w;var k,U,G=e.i(73403),H=e.i(5207),F=e.i(56173),W=e.i(24617),Y=e.i(43384),V=e.i(58607),B=e.i(68282),q=e.i(76972),X=e.i(69552);let j=(g=Y.Node,I=[],m=[],f=[],p=[],b=[],y=[],S=[],M=[],E=[],T=[],L=[],D=[],N=[],O=[],v=[],A=[],C=[],P=[],x=[],R=[],z=[],k=class extends g{get range(){return this._range}set range(e){this._range=e,this._inverseSquaredRange=1/(this.range*this.range)}get intensityMode(){return this._intensityMode}set intensityMode(e){this._intensityMode=e,this._computePhotometricScale()}get radius(){return this._radius}set radius(e){this._radius=e,this._computePhotometricScale()}get renderPriority(){return(0,G.__classPrivateFieldGet)(this,U,"f")}set renderPriority(e){(0,G.__classPrivateFieldSet)(this,U,e,"f")}get shadowEnabled(){return this._shadowEnabled}set shadowEnabled(e){this._shadowEnabled!==e&&(this._shadowEnabled=e,this._markMeshesAsLightDirty())}get includedOnlyMeshes(){return this._includedOnlyMeshes}set includedOnlyMeshes(e){this._includedOnlyMeshes=e,this._hookArrayForIncludedOnly(e)}get excludedMeshes(){return this._excludedMeshes}set excludedMeshes(e){this._excludedMeshes=e,this._hookArrayForExcluded(e)}get excludeWithLayerMask(){return this._excludeWithLayerMask}set excludeWithLayerMask(e){this._excludeWithLayerMask=e,this._resyncMeshes()}get includeOnlyWithLayerMask(){return this._includeOnlyWithLayerMask}set includeOnlyWithLayerMask(e){this._includeOnlyWithLayerMask=e,this._resyncMeshes()}get lightmapMode(){return this._lightmapMode}set lightmapMode(e){this._lightmapMode!==e&&(this._lightmapMode=e,this._markMeshesAsLightDirty())}getViewMatrix(e){return null}getProjectionMatrix(e,t){return null}constructor(e,t,i){super(e,t,!1),this.diffuse=((0,G.__runInitializers)(this,I),(0,G.__runInitializers)(this,m,new W.Color3(1,1,1))),this.specular=((0,G.__runInitializers)(this,f),(0,G.__runInitializers)(this,p,new W.Color3(1,1,1))),this.falloffType=((0,G.__runInitializers)(this,b),(0,G.__runInitializers)(this,y,k.FALLOFF_DEFAULT)),this.intensity=((0,G.__runInitializers)(this,S),(0,G.__runInitializers)(this,M,1)),this._range=((0,G.__runInitializers)(this,E),Number.MAX_VALUE),this._inverseSquaredRange=0,this._photometricScale=1,this._intensityMode=k.INTENSITYMODE_AUTOMATIC,this._radius=1e-5,this._renderPriority=(0,G.__runInitializers)(this,T,void 0),U.set(this,((0,G.__runInitializers)(this,L),(0,G.__runInitializers)(this,D,0))),this._shadowEnabled=((0,G.__runInitializers)(this,N),(0,G.__runInitializers)(this,O,!0)),this._includedOnlyMeshes=(0,G.__runInitializers)(this,v),this._excludeWithLayerMask=(0,G.__runInitializers)(this,A,0),this._includeOnlyWithLayerMask=((0,G.__runInitializers)(this,C),(0,G.__runInitializers)(this,P,0)),this._lightmapMode=((0,G.__runInitializers)(this,x),(0,G.__runInitializers)(this,R,0)),this._shadowGenerators=((0,G.__runInitializers)(this,z),null),this._excludedMeshesIds=[],this._includedOnlyMeshesIds=[],this._currentViewDepth=0,this._clusteredContainer=null,this._isLight=!0,i||this.getScene().addLight(this),this._uniformBuffer=new V.UniformBuffer(this.getScene().getEngine(),void 0,void 0,e),this._buildUniformLayout(),this.includedOnlyMeshes=[],this.excludedMeshes=[],i||this._resyncMeshes()}transferTexturesToEffect(e,t){return this}_bindLight(e,t,i,s,n=!0){let a=e.toString(),r=!1;if(this._uniformBuffer.bindToEffect(i,"Light"+a),this._renderId!==t.getRenderId()||this._lastUseSpecular!==s||!this._uniformBuffer.useUbo){this._renderId=t.getRenderId(),this._lastUseSpecular=s;let e=this.getScaledIntensity();this.transferToEffect(i,a),this.diffuse.scaleToRef(e,W.TmpColors.Color3[0]),this._uniformBuffer.updateColor4("vLightDiffuse",W.TmpColors.Color3[0],this.range,a),s&&(this.specular.scaleToRef(e,W.TmpColors.Color3[1]),this._uniformBuffer.updateColor4("vLightSpecular",W.TmpColors.Color3[1],this.radius,a)),r=!0}if(this.transferTexturesToEffect(i,a),t.shadowsEnabled&&this.shadowEnabled&&n){let e=this.getShadowGenerator(t.activeCamera)??this.getShadowGenerator();e&&(e.bindShadowLight(a,i),r=!0)}r?this._uniformBuffer.update():this._uniformBuffer.bindUniformBuffer()}getClassName(){return"Light"}toString(e){let t="Name: "+this.name;if(t+=", type: "+["Point","Directional","Spot","Hemispheric","Clustered"][this.getTypeID()],this.animations)for(let i=0;i<this.animations.length;i++)t+=", animation[0]: "+this.animations[i].toString(e);return t}_syncParentEnabledState(){super._syncParentEnabledState(),this.isDisposed()||this._resyncMeshes()}setEnabled(e){super.setEnabled(e),this._resyncMeshes()}getShadowGenerator(e=null){return null===this._shadowGenerators?null:this._shadowGenerators.get(e)??null}getShadowGenerators(){return this._shadowGenerators}getAbsolutePosition(){return F.Vector3.Zero()}canAffectMesh(e){return!e||(!this.includedOnlyMeshes||!(this.includedOnlyMeshes.length>0)||-1!==this.includedOnlyMeshes.indexOf(e))&&(!this.excludedMeshes||!(this.excludedMeshes.length>0)||-1===this.excludedMeshes.indexOf(e))&&(0===this.includeOnlyWithLayerMask||(this.includeOnlyWithLayerMask&e.layerMask)!=0)&&(0===this.excludeWithLayerMask||!(this.excludeWithLayerMask&e.layerMask))}dispose(e,t=!1){if(this._shadowGenerators){let e=this._shadowGenerators.values();for(let t=e.next();!0!==t.done;t=e.next())t.value.dispose();this._shadowGenerators=null}if(this.getScene().stopAnimation(this),this._parentContainer){let e=this._parentContainer.lights.indexOf(this);e>-1&&this._parentContainer.lights.splice(e,1),this._parentContainer=null}for(let e of this.getScene().meshes)e._removeLightSource(this,!0);this._uniformBuffer.dispose(),this.getScene().removeLight(this),super.dispose(e,t)}getTypeID(){return 0}getScaledIntensity(){return this._photometricScale*this.intensity}clone(e,t=null){let i=k.GetConstructorFromName(this.getTypeID(),e,this.getScene());if(!i)return null;let s=X.SerializationHelper.Clone(i,this);return e&&(s.name=e),t&&(s.parent=t),s.setEnabled(this.isEnabled()),this.onClonedObservable.notifyObservers(s),s}serialize(){let e=X.SerializationHelper.Serialize(this);if(e.uniqueId=this.uniqueId,e.type=this.getTypeID(),this.parent&&this.parent._serializeAsParent(e),this.excludedMeshes.length>0)for(let t of(e.excludedMeshesIds=[],this.excludedMeshes))e.excludedMeshesIds.push(t.id);if(this.includedOnlyMeshes.length>0)for(let t of(e.includedOnlyMeshesIds=[],this.includedOnlyMeshes))e.includedOnlyMeshesIds.push(t.id);return X.SerializationHelper.AppendSerializedAnimations(this,e),e.ranges=this.serializeAnimationRanges(),e.isEnabled=this.isEnabled(),e}static GetConstructorFromName(e,t,i){let s=Y.Node.Construct("Light_Type_"+e,t,i);return s||null}static Parse(e,t,i=""){let s=k.GetConstructorFromName(e.type,e.name,t);if(!s)return null;let n=X.SerializationHelper.Parse(s,e,t,i);if(e.excludedMeshesIds&&(n._excludedMeshesIds=e.excludedMeshesIds),e.includedOnlyMeshesIds&&(n._includedOnlyMeshesIds=e.includedOnlyMeshesIds),void 0!==e.parentId&&(n._waitingParentId=e.parentId),void 0!==e.parentInstanceIndex&&(n._waitingParentInstanceIndex=e.parentInstanceIndex),void 0!==e.falloffType&&(n.falloffType=e.falloffType),void 0!==e.lightmapMode&&(n.lightmapMode=e.lightmapMode),e.animations){for(let t=0;t<e.animations.length;t++){let i=e.animations[t],s=(0,B.GetClass)("BABYLON.Animation");s&&n.animations.push(s.Parse(i))}Y.Node.ParseAnimationRanges(n,e,t)}return e.autoAnimate&&t.beginAnimation(n,e.autoAnimateFrom,e.autoAnimateTo,e.autoAnimateLoop,e.autoAnimateSpeed||1),void 0!==e.isEnabled&&n.setEnabled(e.isEnabled),n._onParsed(e,t,i),n}_onParsed(e,t,i=""){}_hookArrayForExcluded(e){let t=e.push;e.push=(...i)=>{let s=t.apply(e,i);if(this._clusteredContainer)return s;for(let e of i)e._resyncLightSource(this);return s};let i=e.splice;e.splice=(t,s)=>{let n=i.call(e,t,s??e.length);if(this._clusteredContainer)return n;for(let e of n)e._resyncLightSource(this);return n},this._resyncMeshes()}_hookArrayForIncludedOnly(e){let t=e.push;e.push=(...i)=>{let s=t.apply(e,i);return this._resyncMeshes(),s};let i=e.splice;e.splice=(t,s)=>{let n=i.call(e,t,s??e.length);return this._resyncMeshes(),n},this._resyncMeshes()}_resyncMeshes(){if(!this._clusteredContainer)for(let e of this.getScene().meshes)e._resyncLightSource(this)}_markMeshesAsLightDirty(){for(let e of this.getScene().meshes)-1!==e.lightSources.indexOf(this)&&e._markSubMeshesAsLightDirty()}_computePhotometricScale(){this._photometricScale=this._getPhotometricScale(),this.getScene().resetCachedMaterial()}_getPhotometricScale(){let e=0,t=this.getTypeID(),i=this.intensityMode;switch(i===k.INTENSITYMODE_AUTOMATIC&&(i=t===k.LIGHTTYPEID_DIRECTIONALLIGHT?k.INTENSITYMODE_ILLUMINANCE:k.INTENSITYMODE_LUMINOUSINTENSITY),t){case k.LIGHTTYPEID_POINTLIGHT:case k.LIGHTTYPEID_SPOTLIGHT:switch(i){case k.INTENSITYMODE_LUMINOUSPOWER:e=1/(4*Math.PI);break;case k.INTENSITYMODE_LUMINOUSINTENSITY:e=1;break;case k.INTENSITYMODE_LUMINANCE:e=this.radius*this.radius}break;case k.LIGHTTYPEID_DIRECTIONALLIGHT:switch(i){case k.INTENSITYMODE_ILLUMINANCE:e=1;break;case k.INTENSITYMODE_LUMINANCE:{let t=this.radius;e=2*Math.PI*(1-Math.cos(t=Math.max(t,.001)))}}break;case k.LIGHTTYPEID_HEMISPHERICLIGHT:case k.LIGHTTYPEID_RECT_AREALIGHT:e=1}return e}_reorderLightsInScene(){let e=this.getScene();0!=this._renderPriority&&(e.requireLightSorting=!0),this.getScene().sortLightsByPriority()}areLightTexturesReady(){return!0}_isReady(){return!0}},U=new WeakMap,w="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0,t=[(0,H.serializeAsColor3)()],i=[(0,H.serializeAsColor3)()],s=[(0,H.serialize)()],n=[(0,H.serialize)()],a=[(0,H.serialize)()],r=[(0,H.serialize)()],o=[(0,H.serialize)()],h=[(0,H.serialize)()],l=[(0,H.expandToProperty)("_reorderLightsInScene")],d=[(0,H.serialize)("shadowEnabled")],_=[(0,H.serialize)("excludeWithLayerMask")],c=[(0,H.serialize)("includeOnlyWithLayerMask")],u=[(0,H.serialize)("lightmapMode")],(0,G.__esDecorate)(k,null,a,{kind:"getter",name:"range",static:!1,private:!1,access:{has:e=>"range"in e,get:e=>e.range},metadata:w},null,I),(0,G.__esDecorate)(k,null,r,{kind:"getter",name:"intensityMode",static:!1,private:!1,access:{has:e=>"intensityMode"in e,get:e=>e.intensityMode},metadata:w},null,I),(0,G.__esDecorate)(k,null,o,{kind:"getter",name:"radius",static:!1,private:!1,access:{has:e=>"radius"in e,get:e=>e.radius},metadata:w},null,I),(0,G.__esDecorate)(k,null,l,{kind:"accessor",name:"renderPriority",static:!1,private:!1,access:{has:e=>"renderPriority"in e,get:e=>e.renderPriority,set:(e,t)=>{e.renderPriority=t}},metadata:w},D,N),(0,G.__esDecorate)(null,null,t,{kind:"field",name:"diffuse",static:!1,private:!1,access:{has:e=>"diffuse"in e,get:e=>e.diffuse,set:(e,t)=>{e.diffuse=t}},metadata:w},m,f),(0,G.__esDecorate)(null,null,i,{kind:"field",name:"specular",static:!1,private:!1,access:{has:e=>"specular"in e,get:e=>e.specular,set:(e,t)=>{e.specular=t}},metadata:w},p,b),(0,G.__esDecorate)(null,null,s,{kind:"field",name:"falloffType",static:!1,private:!1,access:{has:e=>"falloffType"in e,get:e=>e.falloffType,set:(e,t)=>{e.falloffType=t}},metadata:w},y,S),(0,G.__esDecorate)(null,null,n,{kind:"field",name:"intensity",static:!1,private:!1,access:{has:e=>"intensity"in e,get:e=>e.intensity,set:(e,t)=>{e.intensity=t}},metadata:w},M,E),(0,G.__esDecorate)(null,null,h,{kind:"field",name:"_renderPriority",static:!1,private:!1,access:{has:e=>"_renderPriority"in e,get:e=>e._renderPriority,set:(e,t)=>{e._renderPriority=t}},metadata:w},T,L),(0,G.__esDecorate)(null,null,d,{kind:"field",name:"_shadowEnabled",static:!1,private:!1,access:{has:e=>"_shadowEnabled"in e,get:e=>e._shadowEnabled,set:(e,t)=>{e._shadowEnabled=t}},metadata:w},O,v),(0,G.__esDecorate)(null,null,_,{kind:"field",name:"_excludeWithLayerMask",static:!1,private:!1,access:{has:e=>"_excludeWithLayerMask"in e,get:e=>e._excludeWithLayerMask,set:(e,t)=>{e._excludeWithLayerMask=t}},metadata:w},A,C),(0,G.__esDecorate)(null,null,c,{kind:"field",name:"_includeOnlyWithLayerMask",static:!1,private:!1,access:{has:e=>"_includeOnlyWithLayerMask"in e,get:e=>e._includeOnlyWithLayerMask,set:(e,t)=>{e._includeOnlyWithLayerMask=t}},metadata:w},P,x),(0,G.__esDecorate)(null,null,u,{kind:"field",name:"_lightmapMode",static:!1,private:!1,access:{has:e=>"_lightmapMode"in e,get:e=>e._lightmapMode,set:(e,t)=>{e._lightmapMode=t}},metadata:w},R,z),w&&Object.defineProperty(k,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:w}),k.FALLOFF_DEFAULT=q.LightConstants.FALLOFF_DEFAULT,k.FALLOFF_PHYSICAL=q.LightConstants.FALLOFF_PHYSICAL,k.FALLOFF_GLTF=q.LightConstants.FALLOFF_GLTF,k.FALLOFF_STANDARD=q.LightConstants.FALLOFF_STANDARD,k.LIGHTMAP_DEFAULT=q.LightConstants.LIGHTMAP_DEFAULT,k.LIGHTMAP_SPECULAR=q.LightConstants.LIGHTMAP_SPECULAR,k.LIGHTMAP_SHADOWSONLY=q.LightConstants.LIGHTMAP_SHADOWSONLY,k.INTENSITYMODE_AUTOMATIC=q.LightConstants.INTENSITYMODE_AUTOMATIC,k.INTENSITYMODE_LUMINOUSPOWER=q.LightConstants.INTENSITYMODE_LUMINOUSPOWER,k.INTENSITYMODE_LUMINOUSINTENSITY=q.LightConstants.INTENSITYMODE_LUMINOUSINTENSITY,k.INTENSITYMODE_ILLUMINANCE=q.LightConstants.INTENSITYMODE_ILLUMINANCE,k.INTENSITYMODE_LUMINANCE=q.LightConstants.INTENSITYMODE_LUMINANCE,k.LIGHTTYPEID_POINTLIGHT=q.LightConstants.LIGHTTYPEID_POINTLIGHT,k.LIGHTTYPEID_DIRECTIONALLIGHT=q.LightConstants.LIGHTTYPEID_DIRECTIONALLIGHT,k.LIGHTTYPEID_SPOTLIGHT=q.LightConstants.LIGHTTYPEID_SPOTLIGHT,k.LIGHTTYPEID_HEMISPHERICLIGHT=q.LightConstants.LIGHTTYPEID_HEMISPHERICLIGHT,k.LIGHTTYPEID_RECT_AREALIGHT=q.LightConstants.LIGHTTYPEID_RECT_AREALIGHT,k);e.s(["Light",0,j])},43384,e=>{"use strict";let t,i,s,n,a,r,o,h,l,d,_,c,u,g,I,m;var f,p=e.i(73403),b=e.i(56173),y=e.i(5207),S=e.i(97991),M=e.i(71829),E=e.i(49399),T=e.i(69552);class L{constructor(){this._doNotSerialize=!1,this._isDisposed=!1,this._sceneRootNodesIndex=-1,this._isEnabled=!0,this._isParentEnabled=!0,this._isReady=!0,this._onEnabledStateChangedObservable=new S.Observable,this._onEffectiveEnabledStateChangedObservable=null,this._onClonedObservable=new S.Observable,this._inheritVisibility=!1,this._isVisible=!0}}let D=(r=[],o=[],h=[],l=[],d=[],_=[],c=[],u=[],g=[],I=[],f=class{static AddNodeConstructor(e,t){this._NodeConstructors[e]=t}static Construct(e,t,i,s){let n=this._NodeConstructors[e];return n?n(t,i,s):null}set accessibilityTag(e){this._accessibilityTag=e,this.onAccessibilityTagChangedObservable.notifyObservers(e)}get accessibilityTag(){return this._accessibilityTag}get doNotSerialize(){return!!this._nodeDataStorage._doNotSerialize||!!this._parentNode&&this._parentNode.doNotSerialize}set doNotSerialize(e){this._nodeDataStorage._doNotSerialize=e}isDisposed(){return this._nodeDataStorage._isDisposed}set parent(e){if(this._parentNode===e)return;let t=this._parentNode;if(this._parentNode&&void 0!==this._parentNode._children&&null!==this._parentNode._children){let t=this._parentNode._children.indexOf(this);-1!==t&&this._parentNode._children.splice(t,1),e||this._nodeDataStorage._isDisposed||this._addToSceneRootNodes()}this._parentNode=e,this._isDirty=!0,this._parentNode&&((void 0===this._parentNode._children||null===this._parentNode._children)&&(this._parentNode._children=[]),this._parentNode._children.push(this),t||this._removeFromSceneRootNodes()),this._syncParentEnabledState()}get parent(){return this._parentNode}get inheritVisibility(){return this._nodeDataStorage._inheritVisibility}set inheritVisibility(e){this._nodeDataStorage._inheritVisibility=e}get isVisible(){return(!this.inheritVisibility||!this._parentNode||!!this._parentNode.isVisible)&&this._nodeDataStorage._isVisible}set isVisible(e){this._nodeDataStorage._isVisible=e}_serializeAsParent(e){e.parentId=this.uniqueId}_addToSceneRootNodes(){-1===this._nodeDataStorage._sceneRootNodesIndex&&(this._nodeDataStorage._sceneRootNodesIndex=this._scene.rootNodes.length,this._scene.rootNodes.push(this))}_removeFromSceneRootNodes(){if(-1!==this._nodeDataStorage._sceneRootNodesIndex){let e=this._scene.rootNodes,t=e.length-1;e[this._nodeDataStorage._sceneRootNodesIndex]=e[t],e[this._nodeDataStorage._sceneRootNodesIndex]._nodeDataStorage._sceneRootNodesIndex=this._nodeDataStorage._sceneRootNodesIndex,this._scene.rootNodes.pop(),this._nodeDataStorage._sceneRootNodesIndex=-1}}get animationPropertiesOverride(){return this._animationPropertiesOverride?this._animationPropertiesOverride:this._scene.animationPropertiesOverride}set animationPropertiesOverride(e){this._animationPropertiesOverride=e}getClassName(){return"Node"}set onDispose(e){this._onDisposeObserver&&this.onDisposeObservable.remove(this._onDisposeObserver),this._onDisposeObserver=this.onDisposeObservable.add(e)}get onEnabledStateChangedObservable(){return this._nodeDataStorage._onEnabledStateChangedObservable}get onEffectiveEnabledStateChangedObservable(){var e;return(e=this._nodeDataStorage)._onEffectiveEnabledStateChangedObservable??(e._onEffectiveEnabledStateChangedObservable=new S.Observable)}get onClonedObservable(){return this._nodeDataStorage._onClonedObservable}constructor(e,t=null,i=!0){this._isDirty=!1,this._nodeDataStorage=new L,this.name=(0,p.__runInitializers)(this,r,void 0),this.id=((0,p.__runInitializers)(this,o),(0,p.__runInitializers)(this,h,void 0)),this.uniqueId=((0,p.__runInitializers)(this,l),(0,p.__runInitializers)(this,d,void 0)),this.state=((0,p.__runInitializers)(this,_),(0,p.__runInitializers)(this,c,"")),this.metadata=((0,p.__runInitializers)(this,u),(0,p.__runInitializers)(this,g,null)),this._internalMetadata=(0,p.__runInitializers)(this,I),this.reservedDataStore=null,this._accessibilityTag=null,this.onAccessibilityTagChangedObservable=new S.Observable,this._parentContainer=null,this.animations=[],this._ranges={},this.onReady=null,this._currentRenderId=-1,this._parentUpdateId=-1,this._childUpdateId=-1,this._waitingParentId=null,this._waitingParentInstanceIndex=null,this._waitingParsedUniqueId=null,this._cache={},this._parentNode=null,this._children=null,this._worldMatrix=b.Matrix.Identity(),this._worldMatrixDeterminant=0,this._worldMatrixDeterminantIsDirty=!0,this._animationPropertiesOverride=null,this._isNode=!0,this.onDisposeObservable=new S.Observable,this._onDisposeObserver=null,this._behaviors=[],this.name=e,this.id=e,this._scene=t||M.EngineStore.LastCreatedScene,this.uniqueId=this._scene.getUniqueId(),this._initCache(),i&&this._addToSceneRootNodes()}getScene(){return this._scene}getEngine(){return this._scene.getEngine()}addBehavior(e,t=!1){return -1!==this._behaviors.indexOf(e)||(e.init(),this._scene.isLoading&&!t?this._scene.onDataLoadedObservable.addOnce(()=>{this._behaviors.includes(e)&&e.attach(this)}):e.attach(this),this._behaviors.push(e)),this}removeBehavior(e){let t=this._behaviors.indexOf(e);return -1===t||(this._behaviors.splice(t,1),e.detach()),this}get behaviors(){return this._behaviors}getBehaviorByName(e){for(let t of this._behaviors)if(t.name===e)return t;return null}getWorldMatrix(){return this._currentRenderId!==this._scene.getRenderId()&&this.computeWorldMatrix(),this._worldMatrix}_getWorldMatrixDeterminant(){return this._worldMatrixDeterminantIsDirty&&(this._worldMatrixDeterminantIsDirty=!1,this._worldMatrixDeterminant=this._worldMatrix.determinant()),this._worldMatrixDeterminant}get worldMatrixFromCache(){return this._worldMatrix}_initCache(){this._cache={}}updateCache(e){!e&&this.isSynchronized()||this._updateCache()}_getActionManagerForTrigger(e,t=!0){return this.parent?this.parent._getActionManagerForTrigger(e,!1):null}_updateCache(e){}_isSynchronized(){return!0}_markSyncedWithParent(){this._parentNode&&(this._parentUpdateId=this._parentNode._childUpdateId)}isSynchronizedWithParent(){return!this._parentNode||!this._parentNode._isDirty&&this._parentUpdateId===this._parentNode._childUpdateId&&this._parentNode.isSynchronized()}isSynchronized(){return(!this._parentNode||!!this.isSynchronizedWithParent())&&this._isSynchronized()}isReady(e=!1){return this._nodeDataStorage._isReady}markAsDirty(e){return this._currentRenderId=Number.MAX_VALUE,this._isDirty=!0,this}isEnabled(e=!0){return!1===e?this._nodeDataStorage._isEnabled:!!this._nodeDataStorage._isEnabled&&this._nodeDataStorage._isParentEnabled}_hasEffectiveEnabledStateObservers(){let e=this._nodeDataStorage._onEffectiveEnabledStateChangedObservable;return!!e&&e.hasObservers()}_syncParentEnabledState(){let e=this._hasEffectiveEnabledStateObservers(),t=e?this.isEnabled():null;if(this._nodeDataStorage._isParentEnabled=!this._parentNode||this._parentNode.isEnabled(),this._children)for(let e of this._children)e._syncParentEnabledState();if(e){let e=this.isEnabled();e!==t&&this._nodeDataStorage._onEffectiveEnabledStateChangedObservable.notifyObservers(e)}}setEnabled(e){if(this._nodeDataStorage._isEnabled===e)return;let t=this._hasEffectiveEnabledStateObservers(),i=t?this.isEnabled():null;if(this._nodeDataStorage._isEnabled=e,this._syncParentEnabledState(),this._nodeDataStorage._onEnabledStateChangedObservable.notifyObservers(e),t){let e=this.isEnabled();e!==i&&this._nodeDataStorage._onEffectiveEnabledStateChangedObservable.notifyObservers(e)}}isDescendantOf(e){return!!this.parent&&(this.parent===e||this.parent.isDescendantOf(e))}_getDescendants(e,t=!1,i){if(this._children)for(let s=0;s<this._children.length;s++){let n=this._children[s];(!i||i(n))&&e.push(n),t||n._getDescendants(e,!1,i)}}getDescendants(e,t){let i=[];return this._getDescendants(i,e,t),i}getChildMeshes(e,t){let i=[];return this._getDescendants(i,e,e=>(!t||t(e))&&void 0!==e.cullingStrategy),i}getChildren(e,t=!0){return this.getDescendants(t,e)}_setReady(e){if(e!==this._nodeDataStorage._isReady){if(!e){this._nodeDataStorage._isReady=!1;return}this.onReady&&this.onReady(this),this._nodeDataStorage._isReady=!0}}getAnimationByName(e){for(let t=0;t<this.animations.length;t++){let i=this.animations[t];if(i.name===e)return i}return null}createAnimationRange(e,t,i){if(!this._ranges[e]){this._ranges[e]=f._AnimationRangeFactory(e,t,i);for(let s=0,n=this.animations.length;s<n;s++)this.animations[s]&&this.animations[s].createRange(e,t,i)}}deleteAnimationRange(e,t=!0){for(let i=0,s=this.animations.length;i<s;i++)this.animations[i]&&this.animations[i].deleteRange(e,t);this._ranges[e]=null}getAnimationRange(e){return this._ranges[e]||null}clone(e,t,i){let s=T.SerializationHelper.Clone(()=>new f(e,this.getScene()),this);if(t&&(s.parent=t),!i){let t=this.getDescendants(!0);for(let i=0;i<t.length;i++){let n=t[i];n.clone(e+"."+n.name,s)}}return s}getAnimationRanges(){let e,t=[];for(e in this._ranges)t.push(this._ranges[e]);return t}beginAnimation(e,t,i,s){let n=this.getAnimationRange(e);return n?this._scene.beginAnimation(this,n.from,n.to,t,i,s):null}serializeAnimationRanges(){let e=[];for(let t in this._ranges){let i=this._ranges[t];if(!i)continue;let s={};s.name=t,s.from=i.from,s.to=i.to,e.push(s)}return e}computeWorldMatrix(e){return this._worldMatrix||(this._worldMatrix=b.Matrix.Identity()),this._worldMatrix}dispose(e,t=!1){if(this._nodeDataStorage._isDisposed=!0,!e)for(let i of this.getDescendants(!0))i.dispose(e,t);for(let e of(this.parent?this.parent=null:this._removeFromSceneRootNodes(),this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear(),this.onEnabledStateChangedObservable.clear(),this._nodeDataStorage._onEffectiveEnabledStateChangedObservable?.clear(),this.onClonedObservable.clear(),this._behaviors))e.detach();this._behaviors.length=0,this.metadata=null}static ParseAnimationRanges(e,t,i){if(t.ranges)for(let i=0;i<t.ranges.length;i++){let s=t.ranges[i];e.createAnimationRange(s.name,s.from,s.to)}}getHierarchyBoundingVectors(e=!0,t=null){let i,s;if(this.getScene().incrementRenderId(),this.computeWorldMatrix(!0),this.getBoundingInfo&&this.subMeshes){let e=this.getBoundingInfo();i=e.boundingBox.minimumWorld.clone(),s=e.boundingBox.maximumWorld.clone()}else i=new b.Vector3(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),s=new b.Vector3(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);if(e)for(let e of this.getDescendants(!1)){if(e.computeWorldMatrix(!0),t&&!t(e)||!e.getBoundingInfo||0===e.getTotalVertices())continue;let n=e.getBoundingInfo().boundingBox,a=n.minimumWorld,r=n.maximumWorld;b.Vector3.CheckExtends(a,i,s),b.Vector3.CheckExtends(r,i,s)}return{min:i,max:s}}},m="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[(0,y.serialize)()],i=[(0,y.serialize)()],s=[(0,y.serialize)()],n=[(0,y.serialize)()],a=[(0,y.serialize)()],(0,p.__esDecorate)(null,null,t,{kind:"field",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:m},r,o),(0,p.__esDecorate)(null,null,i,{kind:"field",name:"id",static:!1,private:!1,access:{has:e=>"id"in e,get:e=>e.id,set:(e,t)=>{e.id=t}},metadata:m},h,l),(0,p.__esDecorate)(null,null,s,{kind:"field",name:"uniqueId",static:!1,private:!1,access:{has:e=>"uniqueId"in e,get:e=>e.uniqueId,set:(e,t)=>{e.uniqueId=t}},metadata:m},d,_),(0,p.__esDecorate)(null,null,n,{kind:"field",name:"state",static:!1,private:!1,access:{has:e=>"state"in e,get:e=>e.state,set:(e,t)=>{e.state=t}},metadata:m},c,u),(0,p.__esDecorate)(null,null,a,{kind:"field",name:"metadata",static:!1,private:!1,access:{has:e=>"metadata"in e,get:e=>e.metadata,set:(e,t)=>{e.metadata=t}},metadata:m},g,I),m&&Object.defineProperty(f,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:m}),f._AnimationRangeFactory=(e,t,i)=>{throw(0,E._WarnImport)("AnimationRange")},f._NodeConstructors={},f);e.s(["Node",0,D])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87851,e=>{"use strict";e.s(["IntersectionInfo",0,class{constructor(e,t,s){this.bu=e,this.bv=t,this.distance=s,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},68987,e=>{"use strict";var t=e.i(56173),s=e.i(10977);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,i=!0){let r;if(!this.pickedMesh||i&&!this.pickedMesh.isVerticesDataPresent(s.VertexBuffer.NormalKind))return null;let a=this.pickedMesh.getIndices();a?.length===0&&(a=null);let o=t.TmpVectors.Vector3[0],n=t.TmpVectors.Vector3[1],c=t.TmpVectors.Vector3[2];if(i){let e=this.pickedMesh.getVerticesData(s.VertexBuffer.NormalKind),i=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId],o):o.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+1],n):n.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),h=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+2],c):c.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);i=i.scale(this.bu),l=l.scale(this.bv),h=h.scale(1-this.bu-this.bv),r=new t.Vector3(i.x+l.x+h.x,i.y+l.y+h.y,i.z+l.z+h.z)}else{let e=this.pickedMesh.getVerticesData(s.VertexBuffer.PositionKind),i=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId],o):o.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),l=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+1],n):n.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),h=a?t.Vector3.FromArrayToRef(e,3*a[3*this.faceId+2],c):c.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),d=i.subtract(l),f=h.subtract(l);r=t.Vector3.Cross(d,f)}let l=(e,s)=>{if(-1!==this.thinInstanceIndex){let i=e._thinInstanceDataStorage.matrixData,r=this.thinInstanceIndex<<4;if(i&&i.length>r){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(i,r,e),t.Vector3.TransformNormalToRef(s,e,s)}}let i=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(i),(i=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),i.invert(),i.transposeToRef(t.TmpVectors.Matrix[1]),i=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(s,i,s)};if(e&&l(this.pickedMesh,r),this.ray){let s=t.TmpVectors.Vector3[0].copyFrom(r);e||l(this.pickedMesh,s),t.Vector3.Dot(s,this.ray.direction)>0&&r.negateInPlace()}return r.normalize(),r}getTextureCoordinates(e=s.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let i=this.pickedMesh.getIndices();if(!i)return null;let r=this.pickedMesh.getVerticesData(e);if(!r)return null;let a=t.Vector2.FromArray(r,2*i[3*this.faceId]),o=t.Vector2.FromArray(r,2*i[3*this.faceId+1]),n=t.Vector2.FromArray(r,2*i[3*this.faceId+2]);return a=a.scale(this.bu),o=o.scale(this.bv),n=n.scale(1-this.bu-this.bv),new t.Vector2(a.x+o.x+n.x,a.y+o.y+n.y)}}])},40672,e=>{"use strict";e.s(["useOpenGLOrientationForUV",()=>!1])},75751,e=>{"use strict";class t{static get ForceFullSceneLoadingForIncremental(){return t._ForceFullSceneLoadingForIncremental}static set ForceFullSceneLoadingForIncremental(e){t._ForceFullSceneLoadingForIncremental=e}static get ShowLoadingScreen(){return t._ShowLoadingScreen}static set ShowLoadingScreen(e){t._ShowLoadingScreen=e}static get loggingLevel(){return t._LoggingLevel}static set loggingLevel(e){t._LoggingLevel=e}static get CleanBoneMatrixWeights(){return t._CleanBoneMatrixWeights}static set CleanBoneMatrixWeights(e){t._CleanBoneMatrixWeights=e}}t._ForceFullSceneLoadingForIncremental=!1,t._ShowLoadingScreen=!0,t._CleanBoneMatrixWeights=!1,t._LoggingLevel=0,e.s(["SceneLoaderFlags",0,t])},61133,e=>{"use strict";var t=e.i(89435);e.s(["DrawWrapper",0,class{static GetEffect(e){return void 0===e.getPipelineContext?e.effect:e}constructor(e,t=!0){this._wasPreviouslyReady=!1,this._forceRebindOnNextCall=!0,this._wasPreviouslyUsingInstances=null,this.effect=null,this.defines=null,this.drawContext=e.createDrawContext(),t&&(this.materialContext=e.createMaterialContext())}setEffect(e,t,s=!0){this.effect=e,void 0!==t&&(this.defines=t),s&&this.drawContext?.reset()}dispose(e=!1){if(this.effect){let s=this.effect;e?s.dispose():t.TimingTools.SetImmediate(()=>{s.getEngine().onEndFrameObservable.addOnce(()=>{s.dispose()})}),this.effect=null}this.drawContext?.dispose()}}])},93663,e=>{"use strict";var t,s,i,r,a=e.i(56173);(t=i||(i={}))[t.LOCAL=0]="LOCAL",t[t.WORLD=1]="WORLD",t[t.BONE=2]="BONE";class o{}o.X=new a.Vector3(1,0,0),o.Y=new a.Vector3(0,1,0),o.Z=new a.Vector3(0,0,1),(s=r||(r={}))[s.X=0]="X",s[s.Y=1]="Y",s[s.Z=2]="Z",e.s(["Axis",0,o,"Coordinate",0,r,"Space",0,i])},38788,e=>{"use strict";var t=e.i(38450);class s{static GetPlanes(e){let i=[];for(let e=0;e<6;e++)i.push(new t.Plane(0,0,0,0));return s.GetPlanesToRef(e,i),i}static GetNearPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[2],t.normal.y=s[7]+s[6],t.normal.z=s[11]+s[10],t.d=s[15]+s[14],t.normalize()}static GetFarPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[2],t.normal.y=s[7]-s[6],t.normal.z=s[11]-s[10],t.d=s[15]-s[14],t.normalize()}static GetLeftPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[0],t.normal.y=s[7]+s[4],t.normal.z=s[11]+s[8],t.d=s[15]+s[12],t.normalize()}static GetRightPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[0],t.normal.y=s[7]-s[4],t.normal.z=s[11]-s[8],t.d=s[15]-s[12],t.normalize()}static GetTopPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]-s[1],t.normal.y=s[7]-s[5],t.normal.z=s[11]-s[9],t.d=s[15]-s[13],t.normalize()}static GetBottomPlaneToRef(e,t){let s=e.m;t.normal.x=s[3]+s[1],t.normal.y=s[7]+s[5],t.normal.z=s[11]+s[9],t.d=s[15]+s[13],t.normalize()}static GetPlanesToRef(e,t){s.GetNearPlaneToRef(e,t[0]),s.GetFarPlaneToRef(e,t[1]),s.GetLeftPlaneToRef(e,t[2]),s.GetRightPlaneToRef(e,t[3]),s.GetTopPlaneToRef(e,t[4]),s.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let s=0;s<6;s++)if(0>t[s].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,s])},44938,e=>{"use strict";e.s(["Viewport",0,class e{constructor(e,t,s,i){this.x=e,this.y=t,this.width=s,this.height=i}toGlobal(t,s){return new e(this.x*t,this.y*s,this.width*t,this.height*s)}toGlobalToRef(e,t,s){return s.x=this.x*e,s.y=this.y*t,s.width=this.width*e,s.height=this.height*t,this}clone(){return new e(this.x,this.y,this.width,this.height)}}])},60984,e=>{"use strict";e.i(71567);var t=e.i(10332);e.s(["Mesh",()=>t.Mesh,"RegisterMesh",()=>t.RegisterMesh,"_CreationDataStorage",()=>t._CreationDataStorage,"_InstancesBatch",()=>t._InstancesBatch])},71567,e=>{"use strict";(0,e.i(10332).RegisterMesh)(),e.s([])},12841,e=>{e.v(t=>Promise.all(["static/chunks/3h_05w5j8x538.js"].map(t=>e.l(t))).then(()=>t(92048)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89625,t=>{"use strict";var e=t.i(65678),i=t.i(82600),l=t.i(56173),a=t.i(68282);class s extends i.FlowGraphCachedOperationBlock{constructor(t){super(e.RichTypeVector3,t),this.body=this.registerDataInput("body",e.RichTypeAny)}_doOperation(t){let e=this.body.getValue(t);if(!e)return;let i=t._getExecutionVariable(this,"_cachedVelocity",null);return i||(i=new l.Vector3,t._setExecutionVariable(this,"_cachedVelocity",i)),e.getAngularVelocityToRef(i),i}getClassName(){return"FlowGraphGetAngularVelocityBlock"}}let u=!1;t.s(["FlowGraphGetAngularVelocityBlock",0,s,"RegisterFlowGraphGetAngularVelocityBlock",0,function(){u||(u=!0,(0,a.RegisterClass)("FlowGraphGetAngularVelocityBlock",s))}])},82600,t=>{"use strict";var e=t.i(60699),i=t.i(65678);let l="cachedOperationValue",a="cachedExecutionId";class s extends e.FlowGraphBlock{constructor(t,e){super(e),this._outputRichType=t,this.value=this.registerDataOutput("value",t),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean)}_getInvalidOutputValue(t){let e=this._outputRichType.defaultValue,i=e?.clone;return"function"==typeof i?i.call(e):e}_updateOutputs(t){let e=t._getExecutionVariable(this,a,-1),i=t._getExecutionVariable(this,l,null);if(null!=i&&e===t.executionId)this.isValid.setValue(!0,t),this.value.setValue(i,t);else try{let e=this._doOperation(t);if(null==e)return void this._setInvalid(t);t._setExecutionVariable(this,l,e),t._setExecutionVariable(this,a,t.executionId),this.value.setValue(e,t),this.isValid.setValue(!0,t)}catch(e){this._setInvalid(t)}}_setInvalid(t){this.isValid.setValue(!1,t),this.value.setValue(this._getInvalidOutputValue(t),t)}}t.s(["FlowGraphCachedOperationBlock",0,s])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,82600,t=>{"use strict";var e=t.i(60699),i=t.i(65678);let s="cachedOperationValue",a="cachedExecutionId";class l extends e.FlowGraphBlock{constructor(t,e){super(e),this._outputRichType=t,this.value=this.registerDataOutput("value",t),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean)}_getInvalidOutputValue(t){let e=this._outputRichType.defaultValue,i=e?.clone;return"function"==typeof i?i.call(e):e}_updateOutputs(t){let e=t._getExecutionVariable(this,a,-1),i=t._getExecutionVariable(this,s,null);if(null!=i&&e===t.executionId)this.isValid.setValue(!0,t),this.value.setValue(i,t);else try{let e=this._doOperation(t);if(null==e)return void this._setInvalid(t);t._setExecutionVariable(this,s,e),t._setExecutionVariable(this,a,t.executionId),this.value.setValue(e,t),this.isValid.setValue(!0,t)}catch(e){this._setInvalid(t)}}_setInvalid(t){this.isValid.setValue(!1,t),this.value.setValue(this._getInvalidOutputValue(t),t)}}t.s(["FlowGraphCachedOperationBlock",0,l])},96078,t=>{"use strict";var e=t.i(65678),i=t.i(82600),s=t.i(68282);class a extends i.FlowGraphCachedOperationBlock{constructor(t){super(e.RichTypeAny,t),this.config=t,this.object=this.registerDataInput("object",e.RichTypeAny,t.object),this.propertyName=this.registerDataInput("propertyName",e.RichTypeString,t.propertyName),this.customGetFunction=this.registerDataInput("customGetFunction",e.RichTypeAny)}_doOperation(t){let e,i=this.customGetFunction.getValue(t);if(i)e=i(this.object.getValue(t),this.propertyName.getValue(t),t);else{let i=this.object.getValue(t),s=this.propertyName.getValue(t);e=i&&s?this._getPropertyValue(i,s):void 0}return e}_getPropertyValue(t,e){let i=e.split("."),s=t;for(let t of i)if(void 0===(s=s[t]))return;return s}getClassName(){return"FlowGraphGetPropertyBlock"}}let l=!1;t.s(["FlowGraphGetPropertyBlock",0,a,"RegisterFlowGraphGetPropertyBlock",0,function(){l||(l=!0,(0,s.RegisterClass)("FlowGraphGetPropertyBlock",a))}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52193,t=>{"use strict";var e=t.i(17884),i=t.i(75105),n=t.i(44520);class o extends e.FlowGraphBlock{constructor(t){super(t),this.functionName=this.registerDataInput("functionName",i.RichTypeString),this.object=this.registerDataInput("object",i.RichTypeAny),this.context=this.registerDataInput("context",i.RichTypeAny,null),this.output=this.registerDataOutput("output",i.RichTypeAny)}_updateOutputs(t){let e=this.functionName.getValue(t),i=this.object.getValue(t),n=this.context.getValue(t);if(i&&e){let o=i[e];o&&"function"==typeof o&&this.output.setValue(o.bind(n),t)}}getClassName(){return"FlowGraphFunctionReference"}}let c=!1;function s(){c||(c=!0,(0,n.RegisterClass)("FlowGraphFunctionReference",o))}t.s(["FlowGraphFunctionReferenceBlock",0,o,"RegisterFlowGraphFunctionReferenceBlock",0,s],54670),s(),t.s([],73743),t.i(73743),t.i(54670),t.s(["FlowGraphFunctionReferenceBlock",0,o],52193)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40877,t=>{"use strict";var e=t.i(60699),i=t.i(65678),n=t.i(68282);class o extends e.FlowGraphBlock{constructor(t){super(t),this.functionName=this.registerDataInput("functionName",i.RichTypeString),this.object=this.registerDataInput("object",i.RichTypeAny),this.context=this.registerDataInput("context",i.RichTypeAny,null),this.output=this.registerDataOutput("output",i.RichTypeAny)}_updateOutputs(t){let e=this.functionName.getValue(t),i=this.object.getValue(t),n=this.context.getValue(t);if(i&&e){let o=i[e];o&&"function"==typeof o&&this.output.setValue(o.bind(n),t)}}getClassName(){return"FlowGraphFunctionReference"}}let u=!1;t.s(["FlowGraphFunctionReferenceBlock",0,o,"RegisterFlowGraphFunctionReferenceBlock",0,function(){u||(u=!0,(0,n.RegisterClass)("FlowGraphFunctionReference",o))}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,72256,e=>{"use strict";var t=e.i(18405);let r=!1;e.s(["RegisterAbstractEngineTexture",0,function(){r||(r=!0,t.AbstractEngine.prototype.createDepthStencilTexture=function(e,t,r){if(!t.isCube)return this._createDepthStencilTexture(e,t,r);{let r=e.width||e;return this._createDepthStencilCubeTexture(r,t)}})}])},21401,e=>{"use strict";var t=e.i(10977),r=e.i(44938),s=e.i(97991),a=e.i(30820),i=e.i(61133);let o={positions:[1,1,-1,1,-1,-1,1,-1],indices:[0,1,2,0,2,3]};class n{static RegisterShaderCodeProcessing(e,t){t?n._CustomShaderCodeProcessing[e??""]=t:delete n._CustomShaderCodeProcessing[e??""]}static _GetShaderCodeProcessing(e){return n._CustomShaderCodeProcessing[e]??n._CustomShaderCodeProcessing[""]}get name(){return this.options.name}set name(e){this.options.name=e}isReady(){return this._drawWrapper.effect?.isReady()??!1}get drawWrapper(){return this._drawWrapper}get effect(){return this._drawWrapper.effect}set effect(e){this._drawWrapper.effect=e}constructor(e){this.alphaMode=0,this.onEffectCreatedObservable=new s.Observable(void 0,!0),this.onApplyObservable=new s.Observable,this._shadersLoaded=!1,this._webGPUReady=!1,this._importPromises=[],this.options={...e,name:e.name||"effectWrapper",engine:e.engine,uniforms:e.uniforms||e.uniformNames||[],uniformNames:void 0,samplers:e.samplers||e.samplerNames||[],samplerNames:void 0,attributeNames:e.attributeNames||["position"],uniformBuffers:e.uniformBuffers||[],defines:e.defines||"",useShaderStore:e.useShaderStore||!1,vertexUrl:e.vertexUrl||e.vertexShader||"postprocess",vertexShader:void 0,fragmentShader:e.fragmentShader||"pass",indexParameters:e.indexParameters,blockCompilation:e.blockCompilation||!1,shaderLanguage:e.shaderLanguage||0,onCompiled:e.onCompiled||void 0,extraInitializations:e.extraInitializations||void 0,extraInitializationsAsync:e.extraInitializationsAsync||void 0,useAsPostProcess:e.useAsPostProcess??!1,allowEmptySourceTexture:e.allowEmptySourceTexture??!1},this.options.uniformNames=this.options.uniforms,this.options.samplerNames=this.options.samplers,this.options.vertexShader=this.options.vertexUrl,this.options.useAsPostProcess&&(this.options.allowEmptySourceTexture||-1!==this.options.samplers.indexOf("textureSampler")||this.options.samplers.push("textureSampler"),-1===this.options.uniforms.indexOf("scale")&&this.options.uniforms.push("scale")),e.vertexUrl||e.vertexShader?this._shaderPath={vertexSource:this.options.vertexShader}:(this.options.useAsPostProcess||(this.options.uniforms.push("scale"),this.onApplyObservable.add(()=>{this.effect.setFloat2("scale",1,1)})),this._shaderPath={vertex:this.options.vertexShader}),this._shaderPath.fragmentSource=this.options.fragmentShader,this._shaderPath.spectorName=this.options.name,this.options.useShaderStore&&(this._shaderPath.fragment=this._shaderPath.fragmentSource,this._shaderPath.vertex||(this._shaderPath.vertex=this._shaderPath.vertexSource),delete this._shaderPath.fragmentSource,delete this._shaderPath.vertexSource),this.onApplyObservable.add(()=>{this.bind()}),this.options.useShaderStore||(this._onContextRestoredObserver=this.options.engine.onContextRestoredObservable.add(()=>{this.effect._pipelineContext=null,this.effect._prepareEffect()})),this._drawWrapper=new i.DrawWrapper(this.options.engine),this._webGPUReady=1===this.options.shaderLanguage;const t=Array.isArray(this.options.defines)?this.options.defines.join("\n"):this.options.defines;this._postConstructor(this.options.blockCompilation,t,this.options.extraInitializations)}_gatherImports(e=!1,t){}_postConstructor(t,r=null,s,a){this._importPromises.length=0,a&&this._importPromises.push(...a);let i=this.options.engine.isWebGPU&&!n.ForceGLSL;this._gatherImports(i,this._importPromises),this.options.useShaderStore&&"postprocess"===this._shaderPath.vertex&&this._importPromises.push(i&&this._webGPUReady?e.A(88288):e.A(11106)),void 0!==s&&s(i,this._importPromises),i&&this._webGPUReady&&(this.options.shaderLanguage=1),t||this.updateEffect(r)}updateEffect(e=null,t=null,r=null,s,i,o,l,c){let h,d=n._GetShaderCodeProcessing(this.name);if(d?.defineCustomBindings){let s=t?.slice()??[];s.push(...this.options.uniforms);let a=r?.slice()??[];a.push(...this.options.samplers),e=d.defineCustomBindings(this.name,e,s,a),t=s,r=a}this.options.defines=e||"";let p=this._shadersLoaded||0===this._importPromises.length?void 0:async()=>{await Promise.all(this._importPromises),this._shadersLoaded=!0};h=this.options.extraInitializationsAsync?async()=>{await p?.(),await this.options.extraInitializationsAsync()}:p,this.options.useShaderStore?this._drawWrapper.effect=this.options.engine.createEffect({vertex:l??this._shaderPath.vertex,fragment:c??this._shaderPath.fragment},{attributes:this.options.attributeNames,uniformsNames:t||this.options.uniforms,uniformBuffersNames:this.options.uniformBuffers,samplers:r||this.options.samplers,defines:null!==e?e:"",fallbacks:null,onCompiled:i??this.options.onCompiled,onError:o??null,indexParameters:s||this.options.indexParameters,processCodeAfterIncludes:d?.processCodeAfterIncludes?(e,t)=>d.processCodeAfterIncludes(this.name,e,t):null,processFinalCode:d?.processFinalCode?(e,t)=>d.processFinalCode(this.name,e,t):null,shaderLanguage:this.options.shaderLanguage,extraInitializationsAsync:h},this.options.engine):this._drawWrapper.effect=new a.Effect(this._shaderPath,this.options.attributeNames,t||this.options.uniforms,r||this.options.samplerNames,this.options.engine,e,void 0,i||this.options.onCompiled,void 0,void 0,void 0,this.options.shaderLanguage,h),this.onEffectCreatedObservable.notifyObservers(this._drawWrapper.effect)}bind(e=!1){this.options.useAsPostProcess&&!e&&(this.options.engine.setAlphaMode(this.alphaMode),this.drawWrapper.effect.setFloat2("scale",1,1)),n._GetShaderCodeProcessing(this.name)?.bindCustomBindings?.(this.name,this._drawWrapper.effect)}dispose(e=!1){this._onContextRestoredObserver&&(this.effect.getEngine().onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null),this.onEffectCreatedObservable.clear(),this._drawWrapper.dispose(!0)}}n.ForceGLSL=!1,n._CustomShaderCodeProcessing={},e.s(["EffectRenderer",0,class{constructor(e,s=o){this._fullscreenViewport=new r.Viewport(0,0,1,1);const a=s.positions??o.positions,i=s.indices??o.indices;this.engine=e,this._vertexBuffers={[t.VertexBuffer.PositionKind]:new t.VertexBuffer(e,a,t.VertexBuffer.PositionKind,!1,!1,2)},this._indexBuffer=e.createIndexBuffer(i),this._indexBufferLength=i.length,this._onContextRestoredObserver=e.onContextRestoredObservable.add(()=>{for(let t in this._indexBuffer=e.createIndexBuffer(i),this._vertexBuffers)this._vertexBuffers[t]._rebuild()})}setViewport(e=this._fullscreenViewport){this.engine.setViewport(e)}bindBuffers(e){this.engine.bindBuffers(this._vertexBuffers,this._indexBuffer,e)}applyEffectWrapper(e,t=!1,r=!1){this.engine.setState(!0),this.engine.depthCullingState.depthTest=t,this.engine.stencilState.stencilTest=r,this.engine.enableEffect(e.drawWrapper),this.bindBuffers(e.effect),e.onApplyObservable.notifyObservers({})}saveStates(){this._savedStateDepthTest=this.engine.depthCullingState.depthTest,this._savedStateStencilTest=this.engine.stencilState.stencilTest}restoreStates(){this.engine.depthCullingState.depthTest=this._savedStateDepthTest,this.engine.stencilState.stencilTest=this._savedStateStencilTest}draw(){this.engine.drawElementsType(0,0,this._indexBufferLength)}_isRenderTargetTexture(e){return void 0!==e.renderTarget}render(e,t=null){if(!e.effect.isReady())return;this.saveStates(),this.setViewport();let r=null===t?null:this._isRenderTargetTexture(t)?t.renderTarget:t;r&&this.engine.bindFramebuffer(r),this.applyEffectWrapper(e),this.draw(),r&&this.engine.unBindFramebuffer(r),this.restoreStates()}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),delete this._vertexBuffers[t.VertexBuffer.PositionKind]),this._indexBuffer&&this.engine._releaseBuffer(this._indexBuffer),this._onContextRestoredObserver&&(this.engine.onContextRestoredObservable.remove(this._onContextRestoredObserver),this._onContextRestoredObserver=null)}},"EffectWrapper",0,n])},81705,e=>{"use strict";var t=e.i(56173);let r=[Math.sqrt(1/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(3/(4*Math.PI)),-Math.sqrt(3/(4*Math.PI)),Math.sqrt(15/(4*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(5/(16*Math.PI)),-Math.sqrt(15/(4*Math.PI)),Math.sqrt(15/(16*Math.PI))],s=[()=>1,e=>e.y,e=>e.z,e=>e.x,e=>e.x*e.y,e=>e.y*e.z,e=>3*e.z*e.z-1,e=>e.x*e.z,e=>e.x*e.x-e.y*e.y],a=(e,t)=>r[e]*s[e](t),i=[Math.PI,2*Math.PI/3,2*Math.PI/3,2*Math.PI/3,Math.PI/4,Math.PI/4,Math.PI/4,Math.PI/4,Math.PI/4];class o{constructor(){this.preScaled=!1,this.l00=t.Vector3.Zero(),this.l1_1=t.Vector3.Zero(),this.l10=t.Vector3.Zero(),this.l11=t.Vector3.Zero(),this.l2_2=t.Vector3.Zero(),this.l2_1=t.Vector3.Zero(),this.l20=t.Vector3.Zero(),this.l21=t.Vector3.Zero(),this.l22=t.Vector3.Zero()}addLight(e,r,s){t.TmpVectors.Vector3[0].set(r.r,r.g,r.b);let i=t.TmpVectors.Vector3[0],o=t.TmpVectors.Vector3[1];i.scaleToRef(s,o),o.scaleToRef(a(0,e),t.TmpVectors.Vector3[2]),this.l00.addInPlace(t.TmpVectors.Vector3[2]),o.scaleToRef(a(1,e),t.TmpVectors.Vector3[2]),this.l1_1.addInPlace(t.TmpVectors.Vector3[2]),o.scaleToRef(a(2,e),t.TmpVectors.Vector3[2]),this.l10.addInPlace(t.TmpVectors.Vector3[2]),o.scaleToRef(a(3,e),t.TmpVectors.Vector3[2]),this.l11.addInPlace(t.TmpVectors.Vector3[2]),o.scaleToRef(a(4,e),t.TmpVectors.Vector3[2]),this.l2_2.addInPlace(t.TmpVectors.Vector3[2]),o.scaleToRef(a(5,e),t.TmpVectors.Vector3[2]),this.l2_1.addInPlace(t.TmpVectors.Vector3[2]),o.scaleToRef(a(6,e),t.TmpVectors.Vector3[2]),this.l20.addInPlace(t.TmpVectors.Vector3[2]),o.scaleToRef(a(7,e),t.TmpVectors.Vector3[2]),this.l21.addInPlace(t.TmpVectors.Vector3[2]),o.scaleToRef(a(8,e),t.TmpVectors.Vector3[2]),this.l22.addInPlace(t.TmpVectors.Vector3[2])}scaleInPlace(e){this.l00.scaleInPlace(e),this.l1_1.scaleInPlace(e),this.l10.scaleInPlace(e),this.l11.scaleInPlace(e),this.l2_2.scaleInPlace(e),this.l2_1.scaleInPlace(e),this.l20.scaleInPlace(e),this.l21.scaleInPlace(e),this.l22.scaleInPlace(e)}convertIncidentRadianceToIrradiance(){this.l00.scaleInPlace(i[0]),this.l1_1.scaleInPlace(i[1]),this.l10.scaleInPlace(i[2]),this.l11.scaleInPlace(i[3]),this.l2_2.scaleInPlace(i[4]),this.l2_1.scaleInPlace(i[5]),this.l20.scaleInPlace(i[6]),this.l21.scaleInPlace(i[7]),this.l22.scaleInPlace(i[8])}convertIrradianceToLambertianRadiance(){this.scaleInPlace(1/Math.PI)}preScaleForRendering(){this.preScaled=!0,this.l00.scaleInPlace(r[0]),this.l1_1.scaleInPlace(r[1]),this.l10.scaleInPlace(r[2]),this.l11.scaleInPlace(r[3]),this.l2_2.scaleInPlace(r[4]),this.l2_1.scaleInPlace(r[5]),this.l20.scaleInPlace(r[6]),this.l21.scaleInPlace(r[7]),this.l22.scaleInPlace(r[8])}updateFromArray(e){return t.Vector3.FromArrayToRef(e[0],0,this.l00),t.Vector3.FromArrayToRef(e[1],0,this.l1_1),t.Vector3.FromArrayToRef(e[2],0,this.l10),t.Vector3.FromArrayToRef(e[3],0,this.l11),t.Vector3.FromArrayToRef(e[4],0,this.l2_2),t.Vector3.FromArrayToRef(e[5],0,this.l2_1),t.Vector3.FromArrayToRef(e[6],0,this.l20),t.Vector3.FromArrayToRef(e[7],0,this.l21),t.Vector3.FromArrayToRef(e[8],0,this.l22),this}updateFromFloatsArray(e){return t.Vector3.FromFloatsToRef(e[0],e[1],e[2],this.l00),t.Vector3.FromFloatsToRef(e[3],e[4],e[5],this.l1_1),t.Vector3.FromFloatsToRef(e[6],e[7],e[8],this.l10),t.Vector3.FromFloatsToRef(e[9],e[10],e[11],this.l11),t.Vector3.FromFloatsToRef(e[12],e[13],e[14],this.l2_2),t.Vector3.FromFloatsToRef(e[15],e[16],e[17],this.l2_1),t.Vector3.FromFloatsToRef(e[18],e[19],e[20],this.l20),t.Vector3.FromFloatsToRef(e[21],e[22],e[23],this.l21),t.Vector3.FromFloatsToRef(e[24],e[25],e[26],this.l22),this}static FromArray(e){return new o().updateFromArray(e)}static FromPolynomial(e){let t=new o;return t.l00=e.xx.scale(.376127).add(e.yy.scale(.376127)).add(e.zz.scale(.376126)),t.l1_1=e.y.scale(.977204),t.l10=e.z.scale(.977204),t.l11=e.x.scale(.977204),t.l2_2=e.xy.scale(1.16538),t.l2_1=e.yz.scale(1.16538),t.l20=e.zz.scale(1.34567).subtract(e.xx.scale(.672834)).subtract(e.yy.scale(.672834)),t.l21=e.zx.scale(1.16538),t.l22=e.xx.scale(1.16538).subtract(e.yy.scale(1.16538)),t.l1_1.scaleInPlace(-1),t.l11.scaleInPlace(-1),t.l2_1.scaleInPlace(-1),t.l21.scaleInPlace(-1),t.scaleInPlace(Math.PI),t}}e.s(["SphericalHarmonics",0,o,"SphericalPolynomial",0,class e{constructor(){this.x=t.Vector3.Zero(),this.y=t.Vector3.Zero(),this.z=t.Vector3.Zero(),this.xx=t.Vector3.Zero(),this.yy=t.Vector3.Zero(),this.zz=t.Vector3.Zero(),this.xy=t.Vector3.Zero(),this.yz=t.Vector3.Zero(),this.zx=t.Vector3.Zero()}get preScaledHarmonics(){return this._harmonics||(this._harmonics=o.FromPolynomial(this)),this._harmonics.preScaled||this._harmonics.preScaleForRendering(),this._harmonics}addAmbient(e){t.TmpVectors.Vector3[0].copyFromFloats(e.r,e.g,e.b);let r=t.TmpVectors.Vector3[0];this.xx.addInPlace(r),this.yy.addInPlace(r),this.zz.addInPlace(r)}scaleInPlace(e){this.x.scaleInPlace(e),this.y.scaleInPlace(e),this.z.scaleInPlace(e),this.xx.scaleInPlace(e),this.yy.scaleInPlace(e),this.zz.scaleInPlace(e),this.yz.scaleInPlace(e),this.zx.scaleInPlace(e),this.xy.scaleInPlace(e)}updateFromHarmonics(e){return this._harmonics=e,this.x.copyFrom(e.l11),this.x.scaleInPlace(1.02333).scaleInPlace(-1),this.y.copyFrom(e.l1_1),this.y.scaleInPlace(1.02333).scaleInPlace(-1),this.z.copyFrom(e.l10),this.z.scaleInPlace(1.02333),this.xx.copyFrom(e.l00),t.TmpVectors.Vector3[0].copyFrom(e.l20).scaleInPlace(.247708),t.TmpVectors.Vector3[1].copyFrom(e.l22).scaleInPlace(.429043),this.xx.scaleInPlace(.886277).subtractInPlace(t.TmpVectors.Vector3[0]).addInPlace(t.TmpVectors.Vector3[1]),this.yy.copyFrom(e.l00),this.yy.scaleInPlace(.886277).subtractInPlace(t.TmpVectors.Vector3[0]).subtractInPlace(t.TmpVectors.Vector3[1]),this.zz.copyFrom(e.l00),t.TmpVectors.Vector3[0].copyFrom(e.l20).scaleInPlace(.495417),this.zz.scaleInPlace(.886277).addInPlace(t.TmpVectors.Vector3[0]),this.yz.copyFrom(e.l2_1),this.yz.scaleInPlace(.858086).scaleInPlace(-1),this.zx.copyFrom(e.l21),this.zx.scaleInPlace(.858086).scaleInPlace(-1),this.xy.copyFrom(e.l2_2),this.xy.scaleInPlace(.858086),this.scaleInPlace(1/Math.PI),this}static FromHarmonics(t){return new e().updateFromHarmonics(t)}static FromArray(r){let s=new e;return t.Vector3.FromArrayToRef(r[0],0,s.x),t.Vector3.FromArrayToRef(r[1],0,s.y),t.Vector3.FromArrayToRef(r[2],0,s.z),t.Vector3.FromArrayToRef(r[3],0,s.xx),t.Vector3.FromArrayToRef(r[4],0,s.yy),t.Vector3.FromArrayToRef(r[5],0,s.zz),t.Vector3.FromArrayToRef(r[6],0,s.yz),t.Vector3.FromArrayToRef(r[7],0,s.zx),t.Vector3.FromArrayToRef(r[8],0,s.xy),s}}])},51833,e=>{"use strict";let t,r,s;var a,i=e.i(73403),o=e.i(21401),n=e.i(17814),l=e.i(76197),c=e.i(71829),h=e.i(8697),d=e.i(64781),p=e.i(5207);let u=null;async function f(){let t=c.EngineStore.LastCreatedEngine?.createCanvas(100,100)??new OffscreenCanvas(100,100);t instanceof OffscreenCanvas&&h.Logger.Warn("DumpData: OffscreenCanvas will be used for dumping data. This may result in lossy alpha values.");let{ThinEngine:r}=await e.A(66490);if(!r.IsSupported)throw Error("DumpData: No WebGL context available. Cannot dump data.");let s=new r(t,!1,{preserveDrawingBuffer:!0,depth:!1,stencil:!1,alpha:!0,premultipliedAlpha:!1,antialias:!1,failIfMajorPerformanceCaveat:!1});c.EngineStore.Instances.pop(),c.EngineStore.OnEnginesDisposedObservable.add(e=>{s&&e!==s&&!s.isDisposed&&0===c.EngineStore.Instances.length&&T()}),s.getCaps().parallelShaderCompile=void 0;let a=new o.EffectRenderer(s),{passPixelShader:i}=await e.A(89083),n=new o.EffectWrapper({engine:s,name:i.name,fragmentShader:i.shader,samplerNames:["textureSampler"]});return{canvas:t,dumpEngine:{engine:s,renderer:a,wrapper:n}}}async function m(){return u||(u=f()),await u}let y=(r=[],a=class{static async EncodeImageAsync(e,t,r,s,a,i){let o=await m(),l=o.dumpEngine;l.engine.setSize(t,r,!0);let c=l.engine.createRawTexture(e,t,r,5,!1,!a,1);return l.renderer.setViewport(),l.renderer.applyEffectWrapper(l.wrapper),l.wrapper.effect._bindTexture("textureSampler",c),l.renderer.draw(),c.dispose(),await new Promise((e,t)=>{n.Tools.ToBlob(o.canvas,r=>{r?e(r):t(Error("EncodeImageAsync: Failed to convert canvas to blob."))},s,i)})}},s="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,t=[p.nativeOverride],(0,i.__esDecorate)(a,null,t,{kind:"method",name:"EncodeImageAsync",static:!0,private:!1,access:{has:e=>"EncodeImageAsync"in e,get:e=>e.EncodeImageAsync},metadata:s},null,r),s&&Object.defineProperty(a,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s}),(0,i.__runInitializers)(a,r),a),g=y.EncodeImageAsync;async function x(e,t,r,s,a="image/png",i,o){let n=new Uint8Array((await r.readPixels(0,0,e,t)).buffer);_(e,t,n,s,a,i,!0,void 0,o)}async function P(e,t,r,s="image/png",a,i=!1,o=!1,c){if(r instanceof Float32Array){let e=new Uint8Array(r.length),t=r.length;for(;t--;){let s=r[t];e[t]=Math.round(255*(0,l.Clamp)(s))}r=e}let p=await y.EncodeImageAsync(r,e,t,s,i,c);void 0!==a&&n.Tools.DownloadBlob(p,a),p.type!==s&&h.Logger.Warn(`DumpData: The requested mimeType '${s}' is not supported. The result has mimeType '${p.type}' instead.`);let u=await p.arrayBuffer();return o?u:`data:${s};base64,${(0,d.EncodeArrayBufferToBase64)(u)}`}function _(e,t,r,s,a="image/png",i,o=!1,n=!1,l){void 0!==i||s||(i=""),P(e,t,r,a,i,o,n,l).then(e=>{s&&s(e)})}function T(){u&&(u?.then(e=>{e.canvas instanceof HTMLCanvasElement&&e.canvas.remove(),e.dumpEngine&&(e.dumpEngine.engine.dispose(),e.dumpEngine.renderer.dispose(),e.dumpEngine.wrapper.dispose())}),u=null)}let I=!1;e.s(["Dispose",0,T,"DumpData",0,_,"DumpDataAsync",0,P,"DumpFramebuffer",0,x,"DumpTools",0,{DumpData:_,DumpDataAsync:P,DumpFramebuffer:x,Dispose:T},"EncodeImageAsync",0,g,"RegisterDumpTools",0,function(){I||(I=!0,n.Tools.DumpData=_,n.Tools.DumpDataAsync=P,n.Tools.DumpFramebuffer=x)}])},79916,e=>{"use strict";var t=e.i(4696),r=e.i(56173),s=e.i(76197),a=e.i(81705),i=e.i(58724),o=e.i(65042),n=(e.i(17188),e.i(72238)),l=e.i(8697),c=e.i(16276),h=e.i(51833),d=e.i(74171);let p="image/png",u=[134,22,135,150,246,214,150,54];function f(e){if(e.version>2)throw Error(`Unsupported babylon environment map version "${e.version}". Latest supported version is "2".`);return 2===e.version?e:e={...e,version:2,imageType:p}}async function m(e,t,r,s,a,i,o,n,l,c,h){return await new Promise((d,p)=>{if(r){let r=t.createTexture(null,!0,!0,null,1,null,e=>{p(e)},e);s?.onEffectCreatedObservable.addOnce(n=>{n.executeWhenCompiled(()=>{s.externalTextureSamplerBinding=!0,s.onApply=s=>{s._bindTexture("textureSampler",r),s.setFloat2("scale",1,t._features.needsInvertingBitmap&&e instanceof ImageBitmap?-1:1)},t.scenes.length&&(t.scenes[0].postProcessManager.directRender([s],c,!0,i,o),t.restoreDefaultFramebuffer(),r.dispose(),URL.revokeObjectURL(a),d())})})}else{if(t._uploadImageToTexture(h,e,i,o),n){let r=l[o];r&&t._uploadImageToTexture(r._texture,e,i,0)}d()}})}async function y(e,t,r=p){let s=e.getEngine();e.format=5,e.type=0,e.generateMipMaps=!0,e._cachedAnisotropicFilteringLevel=null,s.updateTextureSamplingMode(3,e),await x(e,t,!0,r),e.isReady=!0}async function g(e,t,r,s=p,a=null){let n=e.getEngine(),l=new i.InternalTexture(n,5),c=new o.BaseTexture(n,l);e._irradianceTexture=c,c._dominantDirection=a,l.isCube=!0,l.format=5,l.type=0,l.generateMipMaps=!0,l._cachedAnisotropicFilteringLevel=null,l.generateMipMaps=!0,l.width=r,l.height=r,n.updateTextureSamplingMode(3,l),await x(l,[t],!1,s),n.generateMipMapsForCubemap(l),l.isReady=!0}async function x(r,a,l,c=p){if(!(0,t.IsExponentOfTwo)(r.width))throw Error("Texture size must be a power of two");let h=(0,s.ILog2)(r.width)+1,u=r.getEngine(),f=!1,y=!1,g=null,P=null,_=null,T=u.getCaps();T.textureLOD?u._features.supportRenderAndCopyToLodForFloatTextures?T.textureHalfFloatRender&&T.textureHalfFloatLinearFiltering?(f=!0,r.type=2):T.textureFloatRender&&T.textureFloatLinearFiltering&&(f=!0,r.type=1):f=!1:(f=!1,y=l);let I=0;if(f)u.isWebGPU?(I=1,await e.A(35837)):await e.A(53613),g=new n.PostProcess("rgbdDecode","rgbdDecode",null,null,1,null,3,u,!1,void 0,r.type,void 0,null,!1,void 0,I),r._isRGBD=!1,r.invertY=!1,P=u.createRenderTargetCubeTexture(r.width,{generateDepthBuffer:!1,generateMipMaps:!0,generateStencilBuffer:!1,samplingMode:3,type:r.type,format:5});else if(r._isRGBD=!0,r.invertY=!0,y){_={};let e=r._lodGenerationScale,t=r._lodGenerationOffset;for(let s=0;s<3;s++){let a=(h-1)*e+t,n=Math.round(Math.min(Math.max(t+(a-t)*(1-s/2),0),a)),l=new i.InternalTexture(u,2);l.isCube=!0,l.invertY=!0,l.generateMipMaps=!1,u.updateTextureSamplingMode(2,l);let c=new o.BaseTexture(null);switch(c._isCube=!0,c._texture=l,_[n]=c,s){case 0:r._lodTextureLow=c;break;case 1:r._lodTextureMid=c;break;case 2:r._lodTextureHigh=c}}}let b=[];for(let e=0;e<a.length;e++)for(let t=0;t<6;t++){let s,i=a[e][t],o=new Blob([(0,d.GetBlobBufferSource)(i)],{type:c}),n=URL.createObjectURL(o);if(u._features.forceBitmapOverHTMLImageElement)s=u.createImageBitmap(o,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(async s=>await m(s,u,f,g,n,t,e,y,_,P,r));else{let a=new Image;a.src=n,s=new Promise((s,i)=>{a.onload=()=>{m(a,u,f,g,n,t,e,y,_,P,r).then(()=>s()).catch(e=>{i(e)})},a.onerror=e=>{i(e)}})}b.push(s)}if(await Promise.all(b),a.length<h){let e,t=Math.pow(2,h-1-a.length),s=t*t*4;switch(r.type){case 0:e=new Uint8Array(s);break;case 2:e=new Uint16Array(s);break;case 1:e=new Float32Array(s)}for(let t=a.length;t<h;t++)for(let s=0;s<6;s++)u._uploadArrayBufferViewToTexture(P?.texture||r,e,s,t)}if(P){let e=r._irradianceTexture;r._irradianceTexture=null,u._releaseTexture(r),P._swapAndDie(r),r._irradianceTexture=e}g&&g.dispose(),y&&(r._lodTextureHigh&&r._lodTextureHigh._texture&&(r._lodTextureHigh._texture.isReady=!0),r._lodTextureMid&&r._lodTextureMid._texture&&(r._lodTextureMid._texture.isReady=!0),r._lodTextureLow&&r._lodTextureLow._texture&&(r._lodTextureLow._texture.isReady=!0))}e.s(["GetEnvInfo",0,function(e){let t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),s=0;for(let e=0;e<u.length;e++)if(r.getUint8(s++)!==u[e])return l.Logger.Error("Not a babylon environment map"),null;let a="";for(;t=r.getUint8(s++);)a+=String.fromCharCode(t);let i=JSON.parse(a);return(i=f(i)).binaryDataPosition=s,i.specular&&(i.specular.lodGenerationScale=i.specular.lodGenerationScale||.8),i},"UploadEnvLevelsAsync",0,function(e,t,s){let a=(s=f(s)).specular;if(!a)return Promise.resolve([]);e._lodGenerationScale=a.lodGenerationScale;let i=[],o=function(e,t){let r=(t=f(t)).specular,s=Math.log2(t.width);if(s=Math.round(s)+1,r.mipmaps.length!==6*s)throw Error(`Unsupported specular mipmaps number "${r.mipmaps.length}"`);let a=Array(s);for(let i=0;i<s;i++){a[i]=Array(6);for(let s=0;s<6;s++){let o=r.mipmaps[6*i+s];a[i][s]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+o.position,o.length)}}return a}(t,s);i.push(y(e,o,s.imageType));let n=s.irradiance?.irradianceTexture;if(n){let a=function(e,t){t=f(t);let r=Array(6),s=t.irradiance?.irradianceTexture;if(s){if(6!==s.faces.length)throw Error(`Incorrect irradiance texture faces number "${s.faces.length}"`);for(let a=0;a<6;a++){let i=s.faces[a];r[a]=new Uint8Array(e.buffer,e.byteOffset+t.binaryDataPosition+i.position,i.length)}}return r}(t,s),o=null;s.irradiance?.irradianceTexture?.dominantDirection&&(o=r.Vector3.FromArray(s.irradiance.irradianceTexture.dominantDirection)),i.push(g(e,a,n.size,s.imageType,o))}return Promise.all(i)},"UploadEnvSpherical",0,function(e,t){let s=(t=f(t)).irradiance;if(!s)return;let i=new a.SphericalPolynomial;r.Vector3.FromArrayToRef(s.x,0,i.x),r.Vector3.FromArrayToRef(s.y,0,i.y),r.Vector3.FromArrayToRef(s.z,0,i.z),r.Vector3.FromArrayToRef(s.xx,0,i.xx),r.Vector3.FromArrayToRef(s.yy,0,i.yy),r.Vector3.FromArrayToRef(s.zz,0,i.zz),r.Vector3.FromArrayToRef(s.yz,0,i.yz),r.Vector3.FromArrayToRef(s.zx,0,i.zx),r.Vector3.FromArrayToRef(s.xy,0,i.xy),e._sphericalPolynomial=i},"_UpdateRGBDAsync",0,function(e,t,r,s,a){let i=y(e.getEngine().createRawCubeTexture(null,e.width,e.format,e.type,e.generateMipMaps,e.invertY,e.samplingMode,e._compression),t).then(()=>e);return e.onRebuildCallback=e=>({proxy:i,isReady:!0,isAsync:!0}),e._source=13,e._bufferViewArrayArray=t,e._lodGenerationScale=s,e._lodGenerationOffset=a,e._sphericalPolynomial=r,y(e,t).then(()=>(e.isReady=!0,e))}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,64153,t=>{"use strict";var e=t.i(62478),o=t.i(75105),s=t.i(44520);class i extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.sound=this.registerDataInput("sound",o.RichTypeAny),this.volume=this.registerDataInput("volume",o.RichTypeNumber,1),this.startOffset=this.registerDataInput("startOffset",o.RichTypeNumber,0),this.loop=this.registerDataInput("loop",o.RichTypeBoolean,!1)}_execute(t,e){let o=this.sound.getValue(t);if(!o){this._reportError(t,"No sound provided"),this.out._activateSignal(t);return}let s=this.volume.getValue(t),i=this.startOffset.getValue(t),l=this.loop.getValue(t);o.play({volume:s,startOffset:i,loop:l}),this.out._activateSignal(t)}getClassName(){return"FlowGraphPlaySoundBlock"}}let l=!1;function a(){l||(l=!0,(0,s.RegisterClass)("FlowGraphPlaySoundBlock",i))}t.s(["FlowGraphPlaySoundBlock",0,i,"RegisterFlowGraphPlaySoundBlock",0,a],94611),a(),t.s([],35769),t.i(35769),t.i(94611),t.s(["FlowGraphPlaySoundBlock",0,i],64153)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65882,t=>{"use strict";var e=t.i(23422),o=t.i(65678),s=t.i(68282);class i extends e.FlowGraphExecutionBlockWithOutSignal{constructor(t){super(t),this.sound=this.registerDataInput("sound",o.RichTypeAny),this.volume=this.registerDataInput("volume",o.RichTypeNumber,1),this.startOffset=this.registerDataInput("startOffset",o.RichTypeNumber,0),this.loop=this.registerDataInput("loop",o.RichTypeBoolean,!1)}_execute(t,e){let o=this.sound.getValue(t);if(!o){this._reportError(t,"No sound provided"),this.out._activateSignal(t);return}let s=this.volume.getValue(t),i=this.startOffset.getValue(t),a=this.loop.getValue(t);o.play({volume:s,startOffset:i,loop:a}),this.out._activateSignal(t)}getClassName(){return"FlowGraphPlaySoundBlock"}}let a=!1;t.s(["FlowGraphPlaySoundBlock",0,i,"RegisterFlowGraphPlaySoundBlock",0,function(){a||(a=!0,(0,s.RegisterClass)("FlowGraphPlaySoundBlock",i))}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36796,e=>{"use strict";var t=e.i(23422),i=e.i(65678),o=e.i(80129),r=e.i(69194),a=e.i(8697),n=e.i(68282);class s extends t.FlowGraphExecutionBlockWithOutSignal{constructor(e){super(e),this.startIndex=this.registerDataInput("startIndex",i.RichTypeAny,0),this.endIndex=this.registerDataInput("endIndex",i.RichTypeAny),this.step=this.registerDataInput("step",i.RichTypeNumber,1),this.index=this.registerDataOutput("index",i.RichTypeFlowGraphInteger,new r.FlowGraphInteger((0,o.getNumericValue)(e?.initialIndex??0))),this.executionFlow=this._registerSignalOutput("executionFlow"),this.completed=this._registerSignalOutput("completed"),this._unregisterSignalOutput("out")}_execute(e){let t=(0,o.getNumericValue)(this.startIndex.getValue(e)),i=this.step.getValue(e),n=(0,o.getNumericValue)(this.endIndex.getValue(e)),l=this.config?.maxLoopIterations??s.MaxLoopIterations,u=0,h=!1;for(let a=t;a<n;a+=i)if(this.index.setValue(new r.FlowGraphInteger(a),e),this.executionFlow._activateSignal(e),n=(0,o.getNumericValue)(this.endIndex.getValue(e)),++u>=l){h=!0;break}h&&a.Logger.Warn(`FlowGraphForLoopBlock: loop stopped after reaching the ${l}-iteration safety cap before its range completed.`),this.config?.incrementIndexWhenLoopDone&&this.index.setValue(new r.FlowGraphInteger((0,o.getNumericValue)(this.index.getValue(e))+i),e),this.completed._activateSignal(e)}getClassName(){return"FlowGraphForLoopBlock"}}s.MaxLoopIterations=1e3;let l=!1;e.s(["FlowGraphForLoopBlock",0,s,"RegisterFlowGraphForLoopBlock",0,function(){l||(l=!0,(0,n.RegisterClass)("FlowGraphForLoopBlock",s))}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44209,t=>{"use strict";var e=t.i(69194),i=t.i(65678);class r{constructor(t,r){this.path=t,this.ownerBlock=r,this.templatedInputs=[],this.templateInfos=[];const o=new Set,n=(n,a)=>{let s=n.exec(t);for(;s;){let[,l]=s;if(o.has(l))throw Error("Duplicate template variable detected.");o.add(l);let u=r.registerDataInput(l,i.RichTypeAny,new e.FlowGraphInteger(0));this.templatedInputs.push(u),this.templateInfos.push({name:l,style:a,connection:u}),s=n.exec(t)}};n(new RegExp(/\/\{(\w+)\}(?=\/|$)/g),"curly"),n(new RegExp(/\/\[(\w+)\](?=\/|$)/g),"square")}getAccessor(t,i){let r=this.path;for(let t of this.templateInfos){let a=t.connection.getValue(i),s="curly"===t.style?`{${t.name}}`:`[${t.name}]`,l=function(t,i,r,a){if(r instanceof e.FlowGraphInteger)return o(r.value,i),r.value.toString();if("number"==typeof r)return o(r,i),r.toString();if("string"==typeof r){if(""===r)throw Error(`Templated reference input "${i}" is null.`);return n(t,i,r)}if(r&&"object"==typeof r){let e=a.getObjectReference(r,function(t,e){let i,r=(i=[`{${e}}`,`[${e}]`],t.split("/").findIndex(t=>i.indexOf(t)>=0));return r>0?t.split("/")[r-1]:void 0}(t,i));if(e)return n(t,i,e)}throw Error(`Invalid value for templated input "${i}": got ${typeof r}.`)}(this.path,t.name,a,i);r=r.replace(s,l)}return t.convert(r)}}function o(t,e){if("number"!=typeof t||t<0||!Number.isFinite(t))throw Error(`Invalid value for templated input "${e}": ${t}.`)}function n(t,e,i){let r=t.split("/"),o=[`{${e}}`,`[${e}]`],n=r.findIndex(t=>o.indexOf(t)>=0),a=i.split("/");if(n>=0&&n<a.length&&""!==a[n])return a[n];for(let t=a.length-1;t>=0;t--)if(""!==a[t])return a[t];return i}var a=t.i(56173),s=t.i(24617),l=t.i(82600),u=t.i(68282);class p extends l.FlowGraphCachedOperationBlock{constructor(t){super(i.RichTypeAny,t),this.config=t,this.object=this.registerDataOutput("object",i.RichTypeAny),this.propertyName=this.registerDataOutput("propertyName",i.RichTypeAny),this.setterFunction=this.registerDataOutput("setFunction",i.RichTypeAny,this._setPropertyValue.bind(this)),this.getterFunction=this.registerDataOutput("getFunction",i.RichTypeAny,this._getPropertyValue.bind(this)),this.generateAnimationsFunction=this.registerDataOutput("generateAnimationsFunction",i.RichTypeAny,this._getInterpolationAnimationPropertyInfo.bind(this)),this.templateComponent=new r(t.jsonPointer,this)}_doOperation(t){let e=this.templateComponent.getAccessor(this.config.pathConverter,t),i=e.info.get(e.object,void 0,t),r=e.info.getTarget?.(e.object),o=e.info.getPropertyName?.[0](e.object);if(r)this.object.setValue(r,t),o&&this.propertyName.setValue(o,t);else throw Error("Object is undefined");return i}_setPropertyValue(t,e,i,r){let o=this.templateComponent.getAccessor(this.config.pathConverter,r),n=o.info.type;n.startsWith("Color")&&(i=c(i,n)),"number"==typeof i?.value&&i?.getClassName?.()==="FlowGraphInteger"&&(i=i.value),o.info.set?.(i,o.object)}_getPropertyValue(t,e,i){let r=this.templateComponent.getAccessor(this.config.pathConverter,i),o=r.info.type,n=r.info.get(r.object,void 0,i);return o.startsWith("Color")?function(t){if(t instanceof s.Color3)return new a.Vector3(t.r,t.g,t.b);if(t instanceof s.Color4)return new a.Vector4(t.r,t.g,t.b,t.a);throw Error("Invalid color type")}(n):n}_getInterpolationAnimationPropertyInfo(t,e,i){let r=this.templateComponent.getAccessor(this.config.pathConverter,i);return(t,e,i,o)=>{let n=[],a=r.info.type;return a.startsWith("Color")&&(t=t.map(t=>({frame:t.frame,value:c(t.value,a)}))),r.info.interpolation?.forEach((e,a)=>{let s=r.info.getPropertyName?.[a](r.object)||"Animation-interpolation-"+a,l=t;for(let a of(i!==e.type&&(l=t.map(t=>({frame:t.frame,value:e.getValue(void 0,t.value.asArray?t.value.asArray():[t.value],0,1)}))),e.buildAnimations(r.object,s,60,l)))o&&a.babylonAnimation.setEasingFunction(o),n.push(a.babylonAnimation)}),n}}getClassName(){return"FlowGraphJsonPointerParserBlock"}}function c(t,e){return t.getClassName().startsWith("Color")?t:"Color3"===e?new s.Color3(t.x,t.y,t.z):"Color4"===e?new s.Color4(t.x,t.y,t.z,t.w):t}let h=!1;t.s(["FlowGraphJsonPointerParserBlock",0,p,"RegisterFlowGraphJsonPointerParserBlock",0,function(){h||(h=!0,(0,u.RegisterClass)("FlowGraphJsonPointerParserBlock",p))}],44209)},82600,t=>{"use strict";var e=t.i(60699),i=t.i(65678);let r="cachedOperationValue",o="cachedExecutionId";class n extends e.FlowGraphBlock{constructor(t,e){super(e),this._outputRichType=t,this.value=this.registerDataOutput("value",t),this.isValid=this.registerDataOutput("isValid",i.RichTypeBoolean)}_getInvalidOutputValue(t){let e=this._outputRichType.defaultValue,i=e?.clone;return"function"==typeof i?i.call(e):e}_updateOutputs(t){let e=t._getExecutionVariable(this,o,-1),i=t._getExecutionVariable(this,r,null);if(null!=i&&e===t.executionId)this.isValid.setValue(!0,t),this.value.setValue(i,t);else try{let e=this._doOperation(t);if(null==e)return void this._setInvalid(t);t._setExecutionVariable(this,r,e),t._setExecutionVariable(this,o,t.executionId),this.value.setValue(e,t),this.isValid.setValue(!0,t)}catch(e){this._setInvalid(t)}}_setInvalid(t){this.isValid.setValue(!1,t),this.value.setValue(this._getInvalidOutputValue(t),t)}}t.s(["FlowGraphCachedOperationBlock",0,n])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87851,e=>{"use strict";e.s(["IntersectionInfo",0,class{constructor(e,t,r){this.bu=e,this.bv=t,this.distance=r,this.faceId=0,this.subMeshId=0,this._internalSubMeshId=0}}])},68987,e=>{"use strict";var t=e.i(56173),r=e.i(10977);e.s(["PickingInfo",0,class{constructor(){this.hit=!1,this.distance=0,this.pickedPoint=null,this.pickedMesh=null,this.bu=0,this.bv=0,this.faceId=-1,this.subMeshFaceId=-1,this.subMeshId=0,this.pickedSprite=null,this.thinInstanceIndex=-1,this.ray=null,this.originMesh=null,this.aimTransform=null,this.gripTransform=null}getNormal(e=!1,i=!0){let s;if(!this.pickedMesh||i&&!this.pickedMesh.isVerticesDataPresent(r.VertexBuffer.NormalKind))return null;let n=this.pickedMesh.getIndices();n?.length===0&&(n=null);let a=t.TmpVectors.Vector3[0],o=t.TmpVectors.Vector3[1],h=t.TmpVectors.Vector3[2];if(i){let e=this.pickedMesh.getVerticesData(r.VertexBuffer.NormalKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]);i=i.scale(this.bu),c=c.scale(this.bv),l=l.scale(1-this.bu-this.bv),s=new t.Vector3(i.x+c.x+l.x,i.y+c.y+l.y,i.z+c.z+l.z)}else{let e=this.pickedMesh.getVerticesData(r.VertexBuffer.PositionKind),i=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId],a):a.copyFromFloats(e[3*this.faceId*3],e[3*this.faceId*3+1],e[3*this.faceId*3+2]),c=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+1],o):o.copyFromFloats(e[(3*this.faceId+1)*3],e[(3*this.faceId+1)*3+1],e[(3*this.faceId+1)*3+2]),l=n?t.Vector3.FromArrayToRef(e,3*n[3*this.faceId+2],h):h.copyFromFloats(e[(3*this.faceId+2)*3],e[(3*this.faceId+2)*3+1],e[(3*this.faceId+2)*3+2]),u=i.subtract(c),p=l.subtract(c);s=t.Vector3.Cross(u,p)}let c=(e,r)=>{if(-1!==this.thinInstanceIndex){let i=e._thinInstanceDataStorage.matrixData,s=this.thinInstanceIndex<<4;if(i&&i.length>s){let e=t.TmpVectors.Matrix[0];t.Matrix.FromArrayToRef(i,s,e),t.Vector3.TransformNormalToRef(r,e,r)}}let i=e.getWorldMatrix();e.nonUniformScaling&&(t.TmpVectors.Matrix[0].copyFrom(i),(i=t.TmpVectors.Matrix[0]).setTranslationFromFloats(0,0,0),i.invert(),i.transposeToRef(t.TmpVectors.Matrix[1]),i=t.TmpVectors.Matrix[1]),t.Vector3.TransformNormalToRef(r,i,r)};if(e&&c(this.pickedMesh,s),this.ray){let r=t.TmpVectors.Vector3[0].copyFrom(s);e||c(this.pickedMesh,r),t.Vector3.Dot(r,this.ray.direction)>0&&s.negateInPlace()}return s.normalize(),s}getTextureCoordinates(e=r.VertexBuffer.UVKind){if(!this.pickedMesh||!this.pickedMesh.isVerticesDataPresent(e))return null;let i=this.pickedMesh.getIndices();if(!i)return null;let s=this.pickedMesh.getVerticesData(e);if(!s)return null;let n=t.Vector2.FromArray(s,2*i[3*this.faceId]),a=t.Vector2.FromArray(s,2*i[3*this.faceId+1]),o=t.Vector2.FromArray(s,2*i[3*this.faceId+2]);return n=n.scale(this.bu),a=a.scale(this.bv),o=o.scale(1-this.bu-this.bv),new t.Vector2(n.x+a.x+o.x,n.y+a.y+o.y)}}])},76310,e=>{"use strict";var t=e.i(17188),r=e.i(32866),i=e.i(33491),s=e.i(56173),n=e.i(81978),a=e.i(87851),o=e.i(68987),h=e.i(71829),c=e.i(53190);let l={internalPickerForMesh:void 0};class u{constructor(e,t,r=Number.MAX_VALUE,s=i.Epsilon){this.origin=e,this.direction=t,this.length=r,this.epsilon=s}clone(){return new u(this.origin.clone(),this.direction.clone(),this.length)}intersectsBoxMinMax(e,t,r=0){let i,s,n,a,o=u._TmpVector3[0].copyFromFloats(e.x-r,e.y-r,e.z-r),h=u._TmpVector3[1].copyFromFloats(t.x+r,t.y+r,t.z+r),c=0,l=Number.MAX_VALUE;if(1e-7>Math.abs(this.direction.x)){if(this.origin.x<o.x||this.origin.x>h.x)return!1}else if(i=1/this.direction.x,s=(o.x-this.origin.x)*i,(n=(h.x-this.origin.x)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.y)){if(this.origin.y<o.y||this.origin.y>h.y)return!1}else if(i=1/this.direction.y,s=(o.y-this.origin.y)*i,(n=(h.y-this.origin.y)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;if(1e-7>Math.abs(this.direction.z)){if(this.origin.z<o.z||this.origin.z>h.z)return!1}else if(i=1/this.direction.z,s=(o.z-this.origin.z)*i,(n=(h.z-this.origin.z)*i)==-1/0&&(n=1/0),s>n&&(a=s,s=n,n=a),(c=Math.max(s,c))>(l=Math.min(n,l)))return!1;return!0}intersectsBox(e,t=0){return this.intersectsBoxMinMax(e.minimum,e.maximum,t)}intersectsSphere(e,t=0){let r=e.center.x-this.origin.x,i=e.center.y-this.origin.y,s=e.center.z-this.origin.z,n=r*r+i*i+s*s,a=e.radius+t,o=a*a;if(n<=o)return!0;let h=r*this.direction.x+i*this.direction.y+s*this.direction.z;return!(h<0)&&n-h*h<=o}intersectsTriangle(e,t,r){let i=u._TmpVector3[0],n=u._TmpVector3[1],o=u._TmpVector3[2],h=u._TmpVector3[3],c=u._TmpVector3[4];t.subtractToRef(e,i),r.subtractToRef(e,n),s.Vector3.CrossToRef(this.direction,n,o);let l=s.Vector3.Dot(i,o);if(0===l)return null;let p=1/l;this.origin.subtractToRef(e,h);let d=s.Vector3.Dot(h,o)*p;if(d<-this.epsilon||d>1+this.epsilon)return null;s.Vector3.CrossToRef(h,i,c);let f=s.Vector3.Dot(this.direction,c)*p;if(f<-this.epsilon||d+f>1+this.epsilon)return null;let _=s.Vector3.Dot(n,c)*p;return _>this.length||_<0?null:new a.IntersectionInfo(1-d-f,d,_)}intersectsPlane(e){let t,r=s.Vector3.Dot(e.normal,this.direction);if(999999997475243e-21>Math.abs(r))return null;{let i=s.Vector3.Dot(e.normal,this.origin);if((t=(-e.d-i)/r)<0)if(t<-999999997475243e-21)return null;else return 0;return t}}intersectsAxis(e,t=0){switch(e){case"y":{let e=(this.origin.y-t)/this.direction.y;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),t,this.origin.z+-(this.direction.z*e))}case"x":{let e=(this.origin.x-t)/this.direction.x;if(e>0)return null;return new s.Vector3(t,this.origin.y+-(this.direction.y*e),this.origin.z+-(this.direction.z*e))}case"z":{let e=(this.origin.z-t)/this.direction.z;if(e>0)return null;return new s.Vector3(this.origin.x+-(this.direction.x*e),this.origin.y+-(this.direction.y*e),t)}default:return null}}intersectsMesh(e,t,r,i=!1,n,a=!1){let o=s.TmpVectors.Matrix[0];return e.getWorldMatrix().invertToRef(o),this._tmpRay?u.TransformToRef(this,o,this._tmpRay):this._tmpRay=u.Transform(this,o),e.intersects(this._tmpRay,t,r,i,n,a)}intersectsMeshes(e,t,r){r?r.length=0:r=[];for(let i=0;i<e.length;i++){let s=this.intersectsMesh(e[i],t);s.hit&&r.push(s)}return r.sort(this._comparePickingInfo),r}_comparePickingInfo(e,t){return e.distance<t.distance?-1:+(e.distance>t.distance)}intersectionSegment(e,t,r){let i=this.origin,n=s.TmpVectors.Vector3[0],a=s.TmpVectors.Vector3[1],o=s.TmpVectors.Vector3[2],h=s.TmpVectors.Vector3[3];t.subtractToRef(e,n),this.direction.scaleToRef(u._Rayl,o),i.addToRef(o,a),e.subtractToRef(i,h);let c=s.Vector3.Dot(n,n),l=s.Vector3.Dot(n,o),p=s.Vector3.Dot(o,o),d=s.Vector3.Dot(n,h),f=s.Vector3.Dot(o,h),_=c*p-l*l,m,g=_,R,y=_;_<u._Smallnum?(m=0,g=1,R=f,y=p):(m=l*f-p*d,R=c*f-l*d,m<0?(m=0,R=f,y=p):m>g&&(m=g,R=f+l,y=p)),R<0?(R=0,0>-d?m=0:-d>c?m=g:(m=-d,g=c)):R>y&&(R=y,-d+l<0?m=0:-d+l>c?m=g:(m=-d+l,g=c));let T=Math.abs(m)<u._Smallnum?0:m/g,P=Math.abs(R)<u._Smallnum?0:R/y,S=s.TmpVectors.Vector3[4];o.scaleToRef(P,S);let M=s.TmpVectors.Vector3[5];n.scaleToRef(T,M),M.addInPlace(h);let b=s.TmpVectors.Vector3[6];return(M.subtractToRef(S,b),P>0&&P<=this.length&&b.lengthSquared()<r*r)?M.length():-1}update(e,t,r,i,n,a,o,h=!1){if(h){u._RayDistant||(u._RayDistant=u.Zero()),u._RayDistant.unprojectRayToRef(e,t,r,i,s.Matrix.IdentityReadOnly,a,o);let h=s.TmpVectors.Matrix[0];n.invertToRef(h),u.TransformToRef(u._RayDistant,h,this)}else this.unprojectRayToRef(e,t,r,i,n,a,o);return this}static Zero(){return new u(s.Vector3.Zero(),s.Vector3.Zero())}static CreateNew(e,t,r,i,s,n,a){return u.Zero().update(e,t,r,i,s,n,a)}static CreateNewFromTo(e,t,r=s.Matrix.IdentityReadOnly){let i=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.CreateFromToToRef(e,t,i,r)}static CreateFromToToRef(e,t,r,i=s.Matrix.IdentityReadOnly){r.origin.copyFrom(e);let n=t.subtractToRef(e,r.direction);return r.length=Math.sqrt(n.x*n.x+n.y*n.y+n.z*n.z),r.direction.normalize(),u.TransformToRef(r,i,r)}static Transform(e,t){let r=new u(new s.Vector3(0,0,0),new s.Vector3(0,0,0));return u.TransformToRef(e,t,r),r}static TransformToRef(e,t,r){s.Vector3.TransformCoordinatesToRef(e.origin,t,r.origin),s.Vector3.TransformNormalToRef(e.direction,t,r.direction),r.length=e.length,r.epsilon=e.epsilon;let i=r.direction,n=i.length();if(0!==n&&1!==n){let e=1/n;i.x*=e,i.y*=e,i.z*=e,r.length*=n}return r}unprojectRayToRef(e,t,r,i,n,a,o){let c=s.TmpVectors.Matrix[0];n.multiplyToRef(a,c),c.multiplyToRef(o,c),c.invert();let l=h.EngineStore.LastCreatedEngine,u=s.TmpVectors.Vector3[0];u.x=e/r*2-1,u.y=-(t/i*2-1),u.z=l?.useReverseDepthBuffer?1:l?.isNDCHalfZRange?0:-1;let p=s.TmpVectors.Vector3[1].copyFromFloats(u.x,u.y,1-1e-8),d=s.TmpVectors.Vector3[2],f=s.TmpVectors.Vector3[3];s.Vector3.TransformCoordinatesToRef(u,c,d),s.Vector3.TransformCoordinatesToRef(p,c,f),this.origin.copyFrom(d),f.subtractToRef(d,this.direction),this.direction.normalize()}}function p(e,t,r,i,s,n=!1){let a=u.Zero();return d(e,t,r,i,a,s,n),a}function d(e,t,r,i,n,a,o=!1,h=!1){let c=e.getEngine();if(!a&&!(a=e.activeCamera)&&!(a=e.cameraToUseForPointers))return e;let l=a.viewport,u=c.getRenderHeight(),{x:p,y:f,width:_,height:m}=l.toGlobal(c.getRenderWidth(),u),g=1/c.getHardwareScalingLevel();return t=t*g-p,r=r*g-(u-f-m),n.update(t,r,_,m,i||s.Matrix.IdentityReadOnly,o?s.Matrix.IdentityReadOnly:a.getViewMatrix(),a.getProjectionMatrix(),h),e}function f(e,t,r,i){let s=u.Zero();return _(e,t,r,s,i),s}function _(e,t,r,i,n){if(!o.PickingInfo)return e;let a=e.getEngine();if(!n&&!(n=e.activeCamera)&&!(n=e.cameraToUseForPointers))throw Error("Active camera not set");let h=n.viewport,c=a.getRenderHeight(),{x:l,y:u,width:p,height:d}=h.toGlobal(a.getRenderWidth(),c),f=s.Matrix.Identity(),_=1/a.getHardwareScalingLevel();return t=t*_-l,r=r*_-(c-u-d),i.update(t,r,p,d,f,f,n.getProjectionMatrix()),e}function m(e,t,r,i,s,n,a,o){let h=t(i,r.enableDistantPicking);return g(e,r,i,h,s,n,a,o)}function g(e,t,r,i,s,n,a,o){let h=t.intersects(i,s,a,n,r,o);return h&&h.hit&&(s||null==e||!(h.distance>=e.distance))?h:null}function R(e){let t=e.getClassName();if("GreasedLineMesh"===t)return{rawBoundingInfo:null,intersectionThreshold:0};let r=e.rawBoundingInfo;return{rawBoundingInfo:r,intersectionThreshold:r?"InstancedLinesMesh"===t||"LinesMesh"===t?e.intersectionThreshold:0:0}}function y(e,t,r,i,s){let n=e(r,t.enableDistantPicking);return n.intersectsSphere(i.boundingSphere,s)&&n.intersectsBox(i.boundingBox,s)?n:null}function T(e,t,r,i,n,a){let h=null,c=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),u=e.cameraToUseForPointers||e.activeCamera,p=l.internalPickerForMesh||m,d=p===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let f=c&&l.isWorldMatrixCameraDependent(),_=l.computeWorldMatrix(f,u);if(l.hasThinInstances&&l.thinInstanceEnablePicking){let e=p(h,t,l,_,!0,!0,a);if(e){if(n)return e;let{rawBoundingInfo:o,intersectionThreshold:c}=R(l),u=l._thinInstanceDataStorage.matrixData;if(u){let e=s.TmpVectors.Matrix[0],f=s.TmpVectors.Matrix[1],m=Math.min(l.thinInstanceCount,u.length>>4);for(let R=0;R<m;R++){if(r&&!r(l,R))continue;s.Matrix.FromArrayToRef(u,R<<4,e),e.multiplyToRef(_,f);let m=d&&o?y(t,l,f,o,c):null;if(d&&o&&!m)continue;let T=d&&m?g(h,l,f,m,i,n,a,!0):p(h,t,l,f,i,n,a,!0);if(T&&((h=T).thinInstanceIndex=R,i))return h}}}}else{let e=p(h,t,l,_,i,n,a);if(e&&(h=e,i))return h}}return h||new o.PickingInfo}function P(e,t,r,i){if(!o.PickingInfo)return null;let n=[],a=!!(e.activeCameras&&e.activeCameras.length>1&&e.cameraToUseForPointers!==e.activeCamera),h=e.cameraToUseForPointers||e.activeCamera,c=l.internalPickerForMesh||m,u=c===m;for(let o=0;o<e.meshes.length;o++){let l=e.meshes[o];if(r){if(!r(l,-1))continue}else if(!l.isEnabled()||!l.isVisible||!l.isPickable)continue;let p=a&&l.isWorldMatrixCameraDependent(),d=l.computeWorldMatrix(p,h);if(l.hasThinInstances&&l.thinInstanceEnablePicking){if(c(null,t,l,d,!0,!0,i)){let{rawBoundingInfo:e,intersectionThreshold:a}=R(l),o=l._thinInstanceDataStorage.matrixData;if(o){let h=s.TmpVectors.Matrix[0],p=s.TmpVectors.Matrix[1],f=Math.min(l.thinInstanceCount,o.length>>4);for(let _=0;_<f;_++){if(r&&!r(l,_))continue;s.Matrix.FromArrayToRef(o,_<<4,h),h.multiplyToRef(d,p);let f=u&&e?y(t,l,p,e,a):null;if(u&&e&&!f)continue;let m=u&&f?g(null,l,p,f,!1,!1,i,!0):c(null,t,l,p,!1,!1,i,!0);m&&(m.thinInstanceIndex=_,n.push(m))}}}}else{let e=c(null,t,l,d,!1,!1,i);e&&n.push(e)}}return n}function S(e,t,r,i,n,a){if(!o.PickingInfo)return null;let h=T(e,i=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null),e._tempPickingRay),i,n,!0);return h&&(h.ray=p(e,t,r,s.Matrix.Identity(),a||null)),h}function M(e,t,r,i,n,a,o,h=!1){let c=T(e,(i,s)=>(e._tempPickingRay||(e._tempPickingRay=u.Zero()),d(e,t,r,i,e._tempPickingRay,a||null,!1,s),e._tempPickingRay),i,n,!1,o);return c&&(c.ray=p(e,t,r,s.Matrix.Identity(),a||null)),c}function b(e,t,r,i,n){let a=T(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i,!1,n);return a&&(a.ray=t),a}function I(e,t,r,i,s,n){return P(e,i=>p(e,t,r,i,s||null),i,n)}function x(e,t,r,i){return P(e,r=>(e._pickWithRayInverseMatrix||(e._pickWithRayInverseMatrix=s.Matrix.Identity()),r.invertToRef(e._pickWithRayInverseMatrix),e._cachedRayForTransform||(e._cachedRayForTransform=u.Zero()),u.TransformToRef(t,e._pickWithRayInverseMatrix,e._cachedRayForTransform),e._cachedRayForTransform),r,i)}function C(e,t=100,r,i){return V(e,new u(s.Vector3.Zero(),s.Vector3.Zero(),t),t,r,i)}function V(e,t,r=100,i,n){i||(i=e.getWorldMatrix()),t.length=r,n?t.origin.copyFrom(n):t.origin.copyFrom(e.position);let a=s.TmpVectors.Vector3[2];a.set(0,0,e._scene.useRightHandedSystem?-1:1);let o=s.TmpVectors.Vector3[3];return s.Vector3.TransformNormalToRef(a,i,o),s.Vector3.NormalizeToRef(o,t.direction),t}function v(e,t){t&&(t.prototype.getForwardRay=function(e=100,t,r){return V(this,new u(s.Vector3.Zero(),s.Vector3.Zero(),e),e,t,r)},t.prototype.getForwardRayToRef=function(e,t=100,r,i){return V(this,e,t,r,i)}),e&&(c._ImportHelper._IsPickingAvailable=!0,e.prototype.createPickingRay=function(e,t,r,i,s=!1){return p(this,e,t,r,i,s)})}u._TmpVector3=(0,n.BuildArray)(6,s.Vector3.Zero),u._RayDistant=u.Zero(),u._Smallnum=1e-8,u._Rayl=1e9,e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,S,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u],83126);let F=!1;function k(){F||(F=!0,v(t.Scene,r.Camera),t.Scene.prototype.createPickingRayToRef=function(e,t,r,i,s,n=!1,a=!1){return d(this,e,t,r,i,s,n,a)},t.Scene.prototype.createPickingRayInCameraSpace=function(e,t,r){return f(this,e,t,r)},t.Scene.prototype.createPickingRayInCameraSpaceToRef=function(e,t,r,i){return _(this,e,t,r,i)},t.Scene.prototype.pickWithBoundingInfo=function(e,t,r,i,s){return S(this,e,t,r,i,s)},t.Scene.prototype.pick=function(e,t,r,i,s,n,a=!1){return M(this,e,t,r,i,s,n,a)},t.Scene.prototype.pickWithRay=function(e,t,r,i){return b(this,e,t,r,i)},t.Scene.prototype.multiPick=function(e,t,r,i,s){return I(this,e,t,r,i,s)},t.Scene.prototype.multiPickWithRay=function(e,t,r){return x(this,e,t,r)})}e.s(["RegisterRay",0,k],38824),k(),e.s([],60158),e.i(60158),e.i(38824),e.i(83126),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,S,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],11936),e.i(11936),e.s(["AddRayExtensions",0,v,"CreatePickingRay",0,p,"CreatePickingRayInCameraSpace",0,f,"CreatePickingRayInCameraSpaceToRef",0,_,"CreatePickingRayToRef",0,d,"GetForwardRay",0,C,"GetForwardRayToRef",0,V,"MultiPick",0,I,"MultiPickWithRay",0,x,"Pick",0,M,"PickWithBoundingInfo",0,S,"PickWithRay",0,b,"PickingCustomization",0,l,"Ray",0,u,"RegisterRay",0,k],76310)},95284,e=>{"use strict";var t,r;(r=t||(t={}))[r.PointerMove=0]="PointerMove",r[r.PointerDown=1]="PointerDown",r[r.PointerUp=2]="PointerUp";class i{}i.DOM_DELTA_PIXEL=0,i.DOM_DELTA_LINE=1,i.DOM_DELTA_PAGE=2,e.s(["EventConstants",0,i])},97021,e=>{"use strict";class t{}t.KEYDOWN=1,t.KEYUP=2;class r{constructor(e,t){this.type=e,this.event=t}}e.s(["KeyboardEventTypes",0,t,"KeyboardInfo",0,r,"KeyboardInfoPre",0,class extends r{get skipOnPointerObservable(){return this.skipOnKeyboardObservable}set skipOnPointerObservable(e){this.skipOnKeyboardObservable=e}constructor(e,t){super(e,t),this.type=e,this.event=t,this.skipOnKeyboardObservable=!1}}])},84289,e=>{"use strict";var t=e.i(56173);class r{}r.POINTERDOWN=1,r.POINTERUP=2,r.POINTERMOVE=4,r.POINTERWHEEL=8,r.POINTERPICK=16,r.POINTERTAP=32,r.POINTERDOUBLETAP=64;class i{constructor(e,t){this.type=e,this.event=t}}e.s(["PointerEventTypes",0,r,"PointerInfo",0,class extends i{get pickInfo(){return this._pickInfo||this._generatePickInfo(),this._pickInfo}constructor(e,t,r,i=null){super(e,t),this._pickInfo=r,this._inputManager=i}_generatePickInfo(){this._inputManager&&(this._pickInfo=this._inputManager._pickMove(this.event),this._inputManager._setRayOnPointerInfo(this._pickInfo,this.event),this._inputManager=null)}},"PointerInfoPre",0,class extends i{constructor(e,r,i,s){super(e,r),this.ray=null,this.originalPickingInfo=null,this.skipOnPointerObservable=!1,this.localPosition=new t.Vector2(i,s)}}])},38788,e=>{"use strict";var t=e.i(38450);class r{static GetPlanes(e){let i=[];for(let e=0;e<6;e++)i.push(new t.Plane(0,0,0,0));return r.GetPlanesToRef(e,i),i}static GetNearPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[2],t.normal.y=r[7]+r[6],t.normal.z=r[11]+r[10],t.d=r[15]+r[14],t.normalize()}static GetFarPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[2],t.normal.y=r[7]-r[6],t.normal.z=r[11]-r[10],t.d=r[15]-r[14],t.normalize()}static GetLeftPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[0],t.normal.y=r[7]+r[4],t.normal.z=r[11]+r[8],t.d=r[15]+r[12],t.normalize()}static GetRightPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[0],t.normal.y=r[7]-r[4],t.normal.z=r[11]-r[8],t.d=r[15]-r[12],t.normalize()}static GetTopPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]-r[1],t.normal.y=r[7]-r[5],t.normal.z=r[11]-r[9],t.d=r[15]-r[13],t.normalize()}static GetBottomPlaneToRef(e,t){let r=e.m;t.normal.x=r[3]+r[1],t.normal.y=r[7]+r[5],t.normal.z=r[11]+r[9],t.d=r[15]+r[13],t.normalize()}static GetPlanesToRef(e,t){r.GetNearPlaneToRef(e,t[0]),r.GetFarPlaneToRef(e,t[1]),r.GetLeftPlaneToRef(e,t[2]),r.GetRightPlaneToRef(e,t[3]),r.GetTopPlaneToRef(e,t[4]),r.GetBottomPlaneToRef(e,t[5])}static IsPointInFrustum(e,t){for(let r=0;r<6;r++)if(0>t[r].dotCoordinate(e))return!1;return!0}}e.s(["Frustum",0,r])},76846,e=>{"use strict";var t=e.i(2103);class r{get min(){return this._min}get max(){return this._max}get average(){return this._average}get lastSecAverage(){return this._lastSecAverage}get current(){return this._current}get total(){return this._totalAccumulated}get count(){return this._totalValueCount}constructor(){this._startMonitoringTime=0,this._min=0,this._max=0,this._hasResult=!1,this._hasCurrentValue=!1,this._average=0,this._lastSecAverage=0,this._current=0,this._totalValueCount=0,this._totalAccumulated=0,this._lastSecAccumulated=0,this._lastSecTime=0,this._lastSecValueCount=0}fetchNewFrame(){this._totalValueCount++,this._current=0,this._hasCurrentValue=r.Enabled,this._lastSecValueCount++}addCount(e,t){r.Enabled&&(this._current+=e,this._hasCurrentValue=!0,t&&this._fetchResult())}beginMonitoring(){r.Enabled&&(this._startMonitoringTime=t.PrecisionDate.Now)}endMonitoring(e=!0){if(!r.Enabled)return;e&&this.fetchNewFrame();let i=t.PrecisionDate.Now;this._current=i-this._startMonitoringTime,this._hasCurrentValue=!0,e&&this._fetchResult()}endFrame(){this._fetchResult()}_fetchResult(){if(!this._hasCurrentValue)return;this._totalAccumulated+=this._current,this._lastSecAccumulated+=this._current,this._hasResult?(this._min=Math.min(this._min,this._current),this._max=Math.max(this._max,this._current)):(this._min=this._current,this._max=this._current,this._hasResult=!0),this._average=this._totalAccumulated/this._totalValueCount;let e=t.PrecisionDate.Now;e-this._lastSecTime>1e3&&(this._lastSecAverage=this._lastSecAccumulated/this._lastSecValueCount,this._lastSecTime=e,this._lastSecAccumulated=0,this._lastSecValueCount=0)}}r.Enabled=!0,e.s(["PerfCounter",0,r])},55179,40839,e=>{"use strict";var t=e.i(10977),r=e.i(97991);e.s(["PostProcessManager",0,class{constructor(e){this._vertexBuffers={},this._activePostProcesses=[],this.onBeforeRenderObservable=new r.Observable,this._scene=e}_prepareBuffers(){if(this._vertexBuffers[t.VertexBuffer.PositionKind])return;let e=[];e.push(1,1),e.push(-1,1),e.push(-1,-1),e.push(1,-1),this._vertexBuffers[t.VertexBuffer.PositionKind]=new t.VertexBuffer(this._scene.getEngine(),e,t.VertexBuffer.PositionKind,!1,!1,2),this._buildIndexBuffer()}_buildIndexBuffer(){let e=[];e.push(0),e.push(1),e.push(2),e.push(0),e.push(2),e.push(3),this._indexBuffer=this._scene.getEngine().createIndexBuffer(e)}_getActivePostProcesses(e){let t=this._activePostProcesses;t.length=0;for(let r=0;r<e.length;r++){let i=e[r];i&&t.push(i)}return t}_rebuild(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e._rebuild(),this._buildIndexBuffer())}_prepareFrame(e=null,t=null){let r=this._scene.activeCamera;return!!r&&!!(t=t||this._getActivePostProcesses(r._postProcesses))&&0!==t.length&&!!this._scene.postProcessesEnabled&&(t[0].activate(r,e,null!=t),!0)}directRender(e,t=null,r=!1,i=0,s=0,n=!1,a=e.length){let o=this._scene.getEngine();for(let h=0;h<a;h++){h<e.length-1?e[h+1].activate(this._scene.activeCamera||this._scene,t?.texture):(t?o.bindFramebuffer(t,i,void 0,void 0,r,s):n||o.restoreDefaultFramebuffer(),o._debugInsertMarker?.(`post process ${e[h].name} output`));let a=e[h],c=a.apply();c&&(a.onBeforeRenderObservable.notifyObservers(c),this._prepareBuffers(),o.bindBuffers(this._vertexBuffers,this._indexBuffer,c),o.drawElementsType(0,0,6),a.onAfterRenderObservable.notifyObservers(c))}o.setDepthBuffer(!0),o.setDepthWrite(!0)}_finalizeFrame(e,t,r,i,s=!1){let n=this._scene.activeCamera;if(!n||(this.onBeforeRenderObservable.notifyObservers(this),0===(i=i||this._getActivePostProcesses(n._postProcesses)).length||!this._scene.postProcessesEnabled))return;let a=this._scene.getEngine();for(let o=0,h=i.length;o<h;o++){let c=i[o];if(o<h-1?c._outputTexture=i[o+1].activate(n,t?.texture):(t?(a.bindFramebuffer(t,r,void 0,void 0,s),c._outputTexture=t):(a.restoreDefaultFramebuffer(),c._outputTexture=null),a._debugInsertMarker?.(`post process ${i[o].name} output`)),e)break;let l=c.apply();l&&(c.onBeforeRenderObservable.notifyObservers(l),this._prepareBuffers(),a.bindBuffers(this._vertexBuffers,this._indexBuffer,l),a.drawElementsType(0,0,6),c.onAfterRenderObservable.notifyObservers(l))}a.setDepthBuffer(!0),a.setDepthWrite(!0),a.setAlphaMode(0)}dispose(){let e=this._vertexBuffers[t.VertexBuffer.PositionKind];e&&(e.dispose(),this._vertexBuffers[t.VertexBuffer.PositionKind]=null),this._indexBuffer&&(this._scene.getEngine()._releaseBuffer(this._indexBuffer),this._indexBuffer=null)}}],55179);var i=e.i(6895),s=e.i(56173);class n{set opaqueSortCompareFn(e){e?this._opaqueSortCompareFn=e:this._opaqueSortCompareFn=n.PainterSortCompare,this._renderOpaque=this._renderOpaqueSorted}set alphaTestSortCompareFn(e){e?this._alphaTestSortCompareFn=e:this._alphaTestSortCompareFn=n.PainterSortCompare,this._renderAlphaTest=this._renderAlphaTestSorted}set transparentSortCompareFn(e){e?this._transparentSortCompareFn=e:this._transparentSortCompareFn=n.defaultTransparentSortCompare,this._renderTransparent=this._renderTransparentSorted}constructor(e,t,r=null,s=null,n=null){this.index=e,this._opaqueSubMeshes=new i.SmartArray(256),this._transparentSubMeshes=new i.SmartArray(256),this._alphaTestSubMeshes=new i.SmartArray(256),this._depthOnlySubMeshes=new i.SmartArray(256),this._particleSystems=new i.SmartArray(256),this._spriteManagers=new i.SmartArray(256),this._empty=!0,this._edgesRenderers=new i.SmartArrayNoDuplicate(16),this.disableDepthPrePass=!1,this._scene=t,this.opaqueSortCompareFn=r,this.alphaTestSortCompareFn=s,this.transparentSortCompareFn=n}render(e,t,r,i,s=!0,n=!0,a=!0,o=!0,h){if(e)return void e(this._opaqueSubMeshes,this._alphaTestSubMeshes,this._transparentSubMeshes,this._depthOnlySubMeshes);let c=this._scene.getEngine();s&&0!==this._depthOnlySubMeshes.length&&(c.setColorWrite(!1),this._renderAlphaTest(this._depthOnlySubMeshes),c.setColorWrite(!0)),n&&0!==this._opaqueSubMeshes.length&&this._renderOpaque(this._opaqueSubMeshes),a&&0!==this._alphaTestSubMeshes.length&&this._renderAlphaTest(this._alphaTestSubMeshes);let l=c.getStencilBuffer();if(c.setStencilBuffer(!1),t&&this._renderSprites(),r&&this._renderParticles(i),this.onBeforeTransparentRendering&&this.onBeforeTransparentRendering(),o&&(h||0!==this._transparentSubMeshes.length||this._scene.useOrderIndependentTransparency)){if(c.setStencilBuffer(l),h)h(this._transparentSubMeshes,this);else if(this._scene.useOrderIndependentTransparency){let e=this._scene.depthPeelingRenderer.render(this._transparentSubMeshes);e.length&&this._renderTransparent(e)}else this._renderTransparent(this._transparentSubMeshes);c.setAlphaMode(0)}if(c.setStencilBuffer(!1),n&&this._edgesRenderers.length){for(let e=0;e<this._edgesRenderers.length;e++)this._edgesRenderers.data[e].render();c.setAlphaMode(0)}c.setStencilBuffer(l)}_renderOpaqueSorted(e){n._RenderSorted(e,this._opaqueSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderAlphaTestSorted(e){n._RenderSorted(e,this._alphaTestSortCompareFn,this._scene.activeCamera,!1,this.disableDepthPrePass)}_renderTransparentSorted(e){n._RenderSorted(e,this._transparentSortCompareFn,this._scene.activeCamera,!0,this.disableDepthPrePass)}static _RenderSorted(e,t,r,i,a){let o,h=0,c=r?r.globalPosition:n._ZeroVector;if(i)for(;h<e.length;h++)(o=e.data[h])._alphaIndex=o.getMesh().alphaIndex,o._distanceToCamera=s.Vector3.Distance(o.getBoundingInfo().boundingSphere.centerWorld,c);let l=e.length===e.data.length?e.data:e.data.slice(0,e.length);t&&l.sort(t);let u=l[0].getMesh().getScene();for(h=0;h<l.length;h++)if(o=l[h],!u._activeMeshesFrozenButKeepClipping||o.isInFrustum(u._frustumPlanes)){if(i){let e=o.getMaterial();if(e&&e.needDepthPrePass&&!a){let t=e.getScene().getEngine();t.setColorWrite(!1),t.setAlphaMode(0),o.render(!1),t.setColorWrite(!0)}}o.render(i)}}static defaultTransparentSortCompare(e,t){return e._alphaIndex>t._alphaIndex?1:e._alphaIndex<t._alphaIndex?-1:n.backToFrontSortCompare(e,t)}static backToFrontSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?1:e._distanceToCamera>t._distanceToCamera?-1:0}static frontToBackSortCompare(e,t){return e._distanceToCamera<t._distanceToCamera?-1:+(e._distanceToCamera>t._distanceToCamera)}static PainterSortCompare(e,t){let r=e.getMesh(),i=t.getMesh();return r.material&&i.material?r.material.uniqueId-i.material.uniqueId:r.uniqueId-i.uniqueId}prepare(){this._opaqueSubMeshes.reset(),this._transparentSubMeshes.reset(),this._alphaTestSubMeshes.reset(),this._depthOnlySubMeshes.reset(),this._particleSystems.reset(),this.prepareSprites(),this._edgesRenderers.reset(),this._empty=!0}prepareSprites(){this._spriteManagers.reset()}dispose(){this._opaqueSubMeshes.dispose(),this._transparentSubMeshes.dispose(),this._alphaTestSubMeshes.dispose(),this._depthOnlySubMeshes.dispose(),this._particleSystems.dispose(),this._spriteManagers.dispose(),this._edgesRenderers.dispose()}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),void 0===r&&(r=e.getMaterial()),null!=r&&(r.needAlphaBlendingForMesh(t)?this._transparentSubMeshes.push(e):r.needAlphaTestingForMesh(t)?(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._alphaTestSubMeshes.push(e)):(r.needDepthPrePass&&!this.disableDepthPrePass&&this._depthOnlySubMeshes.push(e),this._opaqueSubMeshes.push(e)),t._renderingGroup=this,t._edgesRenderer&&t.isEnabled()&&t.isVisible&&t._edgesRenderer.isEnabled&&this._edgesRenderers.pushNoDuplicate(t._edgesRenderer),this._empty=!1)}dispatchSprites(e){this._spriteManagers.push(e),this._empty=!1}dispatchParticles(e){this._particleSystems.push(e),this._empty=!1}_renderParticles(e){if(0===this._particleSystems.length)return;let t=this._scene.activeCamera;this._scene.onBeforeParticlesRenderingObservable.notifyObservers(this._scene);for(let r=0;r<this._particleSystems.length;r++){let i=this._particleSystems.data[r];if(0===(t&&t.layerMask&i.layerMask))continue;let s=i.emitter;s.position&&e&&-1===e.indexOf(s)||this._scene._activeParticles.addCount(i.render(),!1)}this._scene.onAfterParticlesRenderingObservable.notifyObservers(this._scene)}_renderSprites(){if(!this._scene.spritesEnabled||0===this._spriteManagers.length)return;let e=this._scene.activeCamera;this._scene.onBeforeSpritesRenderingObservable.notifyObservers(this._scene);for(let t=0;t<this._spriteManagers.length;t++){let r=this._spriteManagers.data[t];0!==(e&&e.layerMask&r.layerMask)&&r.render()}this._scene.onAfterSpritesRenderingObservable.notifyObservers(this._scene)}}n._ZeroVector=s.Vector3.Zero();class a{}class o{get disableDepthPrePass(){return this._disableDepthPrePass}set disableDepthPrePass(e){for(let t of(this._disableDepthPrePass=e,this._renderingGroups))t.disableDepthPrePass=e}get maintainStateBetweenFrames(){return this._maintainStateBetweenFrames}set maintainStateBetweenFrames(e){e!==this._maintainStateBetweenFrames&&(this._maintainStateBetweenFrames=e,this._maintainStateBetweenFrames||this.restoreDispachedFlags())}restoreDispachedFlags(){for(let e of this._scene.meshes)if(e.subMeshes)for(let t of e.subMeshes)t._wasDispatched=!1;if(this._scene.spriteManagers)for(let e of this._scene.spriteManagers)e._wasDispatched=!1;for(let e of this._scene.particleSystems)e._wasDispatched=!1}constructor(e){this._useSceneAutoClearSetup=!1,this._disableDepthPrePass=!1,this._renderingGroups=[],this._autoClearDepthStencil={},this._customOpaqueSortCompareFn={},this._customAlphaTestSortCompareFn={},this._customTransparentSortCompareFn={},this._renderingGroupInfo=new a,this._maintainStateBetweenFrames=!1,this._scene=e;for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++)this._autoClearDepthStencil[e]={autoClear:!0,depth:!0,stencil:!0}}get renderingGroups(){return this._renderingGroups}getRenderingGroup(e){let t=e||0;return this._prepareRenderingGroup(t),this._renderingGroups[t]}_clearDepthStencilBuffer(e=!0,t=!0){this._depthStencilBufferAlreadyCleaned||(this._scene.getEngine().clear(null,!1,e,t),this._depthStencilBufferAlreadyCleaned=!0)}render(e,t,r,i,s=!0,n=!0,a=!0,h=!0,c){let l=this._renderingGroupInfo;if(l.scene=this._scene,l.camera=this._scene.activeCamera,l.renderingManager=this,this._scene.spriteManagers&&i)for(let e=0;e<this._scene.spriteManagers.length;e++){let t=this._scene.spriteManagers[e];this.dispatchSprites(t)}for(let u=o.MIN_RENDERINGGROUPS;u<o.MAX_RENDERINGGROUPS;u++){this._depthStencilBufferAlreadyCleaned=u===o.MIN_RENDERINGGROUPS;let p=this._renderingGroups[u];if(!p||p._empty)continue;let d=1<<u;if(l.renderingGroupId=u,this._scene.onBeforeRenderingGroupObservable.notifyObservers(l,d),o.AUTOCLEAR){let e=this._useSceneAutoClearSetup?this._scene.getAutoClearDepthStencilSetup(u):this._autoClearDepthStencil[u];e&&e.autoClear&&this._clearDepthStencilBuffer(e.depth,e.stencil)}for(let e of this._scene._beforeRenderingGroupDrawStage)e.action(u);for(let o of(p.render(e,i,r,t,s,n,a,h,c),this._scene._afterRenderingGroupDrawStage))o.action(u);this._scene.onAfterRenderingGroupObservable.notifyObservers(l,d)}}reset(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepare()}}resetSprites(){if(!this.maintainStateBetweenFrames)for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.prepareSprites()}}dispose(){this.freeRenderingGroups(),this._renderingGroups.length=0,this._renderingGroupInfo=null}freeRenderingGroups(){for(let e=o.MIN_RENDERINGGROUPS;e<o.MAX_RENDERINGGROUPS;e++){let t=this._renderingGroups[e];t&&t.dispose()}}_prepareRenderingGroup(e){void 0===this._renderingGroups[e]&&(this._renderingGroups[e]=new n(e,this._scene,this._customOpaqueSortCompareFn[e],this._customAlphaTestSortCompareFn[e],this._customTransparentSortCompareFn[e]),this._renderingGroups[e].disableDepthPrePass=this._disableDepthPrePass)}dispatchSprites(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchSprites(e))}dispatchParticles(e){this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(e.renderingGroupId).dispatchParticles(e))}dispatch(e,t,r){void 0===t&&(t=e.getMesh()),this.maintainStateBetweenFrames&&e._wasDispatched||(e._wasDispatched=!0,this.getRenderingGroup(t.renderingGroupId).dispatch(e,t,r))}setRenderingOrder(e,t=null,r=null,i=null){if(this._customOpaqueSortCompareFn[e]=t,this._customAlphaTestSortCompareFn[e]=r,this._customTransparentSortCompareFn[e]=i,this._renderingGroups[e]){let t=this._renderingGroups[e];t.opaqueSortCompareFn=this._customOpaqueSortCompareFn[e],t.alphaTestSortCompareFn=this._customAlphaTestSortCompareFn[e],t.transparentSortCompareFn=this._customTransparentSortCompareFn[e]}}setRenderingAutoClearDepthStencil(e,t,r=!0,i=!0){this._autoClearDepthStencil[e]={autoClear:t,depth:r,stencil:i}}getAutoClearDepthStencilSetup(e){return this._autoClearDepthStencil[e]}}o.MAX_RENDERINGGROUPS=4,o.MIN_RENDERINGGROUPS=0,o.AUTOCLEAR=!0,e.s(["RenderingManager",0,o],40839)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25044,e=>{"use strict";class t{static GetShadersRepository(e=0){return 0===e?t.ShadersRepository:t.ShadersRepositoryWGSL}static GetShadersStore(e=0){return 0===e?t.ShadersStore:t.ShadersStoreWGSL}static GetIncludesShadersStore(e=0){return 0===e?t.IncludesShadersStore:t.IncludesShadersStoreWGSL}}t.ShadersRepository="src/Shaders/",t.ShadersStore={},t.IncludesShadersStore={},t.ShadersRepositoryWGSL="src/ShadersWGSL/",t.ShadersStoreWGSL={},t.IncludesShadersStoreWGSL={},e.s(["ShaderStore",0,t])},58724,e=>{"use strict";var t,r,i=e.i(97991);class s{get wrapU(){return this._cachedWrapU}set wrapU(e){this._cachedWrapU=e}get wrapV(){return this._cachedWrapV}set wrapV(e){this._cachedWrapV=e}get wrapR(){return this._cachedWrapR}set wrapR(e){this._cachedWrapR=e}get anisotropicFilteringLevel(){return this._cachedAnisotropicFilteringLevel}set anisotropicFilteringLevel(e){this._cachedAnisotropicFilteringLevel=e}get comparisonFunction(){return this._comparisonFunction}set comparisonFunction(e){this._comparisonFunction=e}get useMipMaps(){return this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}constructor(){this.samplingMode=-1,this._useMipMaps=!0,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this._comparisonFunction=0}setParameters(e=1,t=1,r=1,i=1,s=2,a=0){return this._cachedWrapU=e,this._cachedWrapV=t,this._cachedWrapR=r,this._cachedAnisotropicFilteringLevel=i,this.samplingMode=s,this._comparisonFunction=a,this}compareSampler(e){return this._cachedWrapU===e._cachedWrapU&&this._cachedWrapV===e._cachedWrapV&&this._cachedWrapR===e._cachedWrapR&&this._cachedAnisotropicFilteringLevel===e._cachedAnisotropicFilteringLevel&&this.samplingMode===e.samplingMode&&this._comparisonFunction===e._comparisonFunction&&this._useMipMaps===e._useMipMaps}}(t=r||(r={}))[t.Unknown=0]="Unknown",t[t.Url=1]="Url",t[t.Temp=2]="Temp",t[t.Raw=3]="Raw",t[t.Dynamic=4]="Dynamic",t[t.RenderTarget=5]="RenderTarget",t[t.MultiRenderTarget=6]="MultiRenderTarget",t[t.Cube=7]="Cube",t[t.CubeRaw=8]="CubeRaw",t[t.CubePrefiltered=9]="CubePrefiltered",t[t.Raw3D=10]="Raw3D",t[t.Raw2DArray=11]="Raw2DArray",t[t.DepthStencil=12]="DepthStencil",t[t.CubeRawRGBD=13]="CubeRawRGBD",t[t.Depth=14]="Depth",t[t.External=15]="External";class a extends s{get useMipMaps(){return null===this._useMipMaps?this.generateMipMaps:this._useMipMaps}set useMipMaps(e){this._useMipMaps=e}get uniqueId(){return this._uniqueId}_setUniqueId(e){this._uniqueId=e}getEngine(){return this._engine}get source(){return this._source}constructor(e,t,r=!1){super(),this.isReady=!1,this.isCube=!1,this.is3D=!1,this.is2DArray=!1,this.isMultiview=!1,this.url="",this.generateMipMaps=!1,this._useMipMaps=null,this.mipLevelCount=1,this.samples=0,this.type=-1,this.format=-1,this.onLoadedObservable=new i.Observable,this.onErrorObservable=new i.Observable,this.onRebuildCallback=null,this.width=0,this.height=0,this.depth=0,this.baseWidth=0,this.baseHeight=0,this.baseDepth=0,this.invertY=!1,this._invertVScale=!1,this._associatedChannel=-1,this._source=0,this._buffer=null,this._bufferView=null,this._bufferViewArray=null,this._bufferViewArrayArray=null,this._size=0,this._extension="",this._files=null,this._workingCanvas=null,this._workingContext=null,this._cachedCoordinatesMode=null,this._isDisabled=!1,this._compression=null,this._sphericalPolynomial=null,this._sphericalPolynomialPromise=null,this._sphericalPolynomialComputed=!1,this._lodGenerationScale=0,this._lodGenerationOffset=0,this._useSRGBBuffer=!1,this._creationFlags=0,this._lodTextureHigh=null,this._lodTextureMid=null,this._lodTextureLow=null,this._isRGBD=!1,this._linearSpecularLOD=!1,this._irradianceTexture=null,this._hardwareTexture=null,this._maxLodLevel=null,this._references=1,this._gammaSpace=null,this._premulAlpha=!1,this._dynamicTextureSource=null,this._autoMSAAManagement=!1,this._engine=e,this._source=t,this._uniqueId=a._Counter++,r||(this._hardwareTexture=e._createHardwareTexture())}incrementReferences(){this._references++}updateSize(e,t,r=1){this._engine.updateTextureDimensions(this,e,t,r),this.width=e,this.height=t,this.depth=r,this.baseWidth=e,this.baseHeight=t,this.baseDepth=r,this._size=e*t*r}_rebuild(){let e;if(this.isReady=!1,this._cachedCoordinatesMode=null,this._cachedWrapU=null,this._cachedWrapV=null,this._cachedWrapR=null,this._cachedAnisotropicFilteringLevel=null,this.onRebuildCallback){let e=this.onRebuildCallback(this),t=t=>{t._swapAndDie(this,!1),this.isReady=e.isReady};e.isAsync?e.proxy.then(t):t(e.proxy);return}switch(this.source){case 2:case 12:case 14:break;case 1:e=this._engine.createTexture(this._originalUrl??this.url,!this.generateMipMaps,this.invertY,null,this.samplingMode,e=>{e._swapAndDie(this,!1),this.isReady=!0},null,this._buffer,void 0,this.format,this._extension,void 0,void 0,void 0,this._useSRGBBuffer);return;case 3:if((e=this._engine.createRawTexture(this._bufferView,this.baseWidth,this.baseHeight,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this._useSRGBBuffer,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture(this,t,this.format,this.invertY,this._compression,this.type,this._useSRGBBuffer,e)}this.isReady=!0;break;case 10:(e=this._engine.createRawTexture3D(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type))._swapAndDie(this,!1),this.isReady=!0;break;case 11:if((e=this._engine.createRawTexture2DArray(this._bufferView,this.baseWidth,this.baseHeight,this.baseDepth,this.format,this.generateMipMaps,this.invertY,this.samplingMode,this._compression,this.type,this._creationFlags,this.mipLevelCount))._swapAndDie(this,!1),this._bufferViewArray)for(let e=0;e<this._bufferViewArray.length;e++){let t=this._bufferViewArray[e];t&&this._engine.updateRawTexture2DArray(this,t,this.format,this.invertY,this._compression,this.type,e)}this.isReady=!0;break;case 4:(e=this._engine.createDynamicTexture(this.baseWidth,this.baseHeight,this.generateMipMaps,this.samplingMode))._swapAndDie(this,!1),this._dynamicTextureSource&&this._engine.updateDynamicTexture(this,this._dynamicTextureSource,this.invertY,this._premulAlpha,this.format,!0);break;case 7:e=this._engine.createCubeTexture(this.url,null,this._files,!this.generateMipMaps,()=>{e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension,!1,0,0,null,void 0,this._useSRGBBuffer,ArrayBuffer.isView(this._buffer)?this._buffer:null);return;case 8:(e=this._engine.createRawCubeTexture(this._bufferViewArray,this.width,this._originalFormat??this.format,this.type,this.generateMipMaps,this.invertY,this.samplingMode,this._compression))._swapAndDie(this,!1),this.isReady=!0;break;case 13:return;case 9:(e=this._engine.createPrefilteredCubeTexture(this.url,null,this._lodGenerationScale,this._lodGenerationOffset,e=>{e&&e._swapAndDie(this,!1),this.isReady=!0},null,this.format,this._extension))._sphericalPolynomial=this._sphericalPolynomial;return}}_swapAndDie(e,t=!0){this._hardwareTexture?.setUsage(e._source,this.generateMipMaps,this.is2DArray,this.isCube,this.is3D,this.width,this.height,this.depth),e._hardwareTexture=this._hardwareTexture,e._setUniqueId(a._Counter++),t&&(e._isRGBD=this._isRGBD),this._lodTextureHigh&&(e._lodTextureHigh&&e._lodTextureHigh.dispose(),e._lodTextureHigh=this._lodTextureHigh),this._lodTextureMid&&(e._lodTextureMid&&e._lodTextureMid.dispose(),e._lodTextureMid=this._lodTextureMid),this._lodTextureLow&&(e._lodTextureLow&&e._lodTextureLow.dispose(),e._lodTextureLow=this._lodTextureLow),this._irradianceTexture&&(e._irradianceTexture&&e._irradianceTexture.dispose(),e._irradianceTexture=this._irradianceTexture);let r=this._engine.getLoadedTexturesCache(),i=r.indexOf(this);-1!==i&&r.splice(i,1),-1===(i=r.indexOf(e))&&r.push(e)}dispose(){this._references--,0===this._references&&(this.onLoadedObservable.clear(),this.onErrorObservable.clear(),this._engine._releaseTexture(this),this._hardwareTexture=null,this._dynamicTextureSource=null)}}a._Counter=0,e.s(["InternalTexture",0,a],58724)},38450,e=>{"use strict";var t=e.i(56173);class r{constructor(e,r,i,s){this.normal=new t.Vector3(e,r,i),this.d=s}asArray(){return[this.normal.x,this.normal.y,this.normal.z,this.d]}clone(){return new r(this.normal.x,this.normal.y,this.normal.z,this.d)}getClassName(){return"Plane"}getHashCode(){let e=this.normal.getHashCode();return 397*e^this.d}normalize(){let e=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y+this.normal.z*this.normal.z),t=0;return 0!==e&&(t=1/e),this.normal.x*=t,this.normal.y*=t,this.normal.z*=t,this.d*=t,this}transform(e){let t=r._TmpMatrix;e.invertToRef(t);let i=t.m,s=this.normal.x,a=this.normal.y,n=this.normal.z,o=this.d;return new r(s*i[0]+a*i[1]+n*i[2]+o*i[3],s*i[4]+a*i[5]+n*i[6]+o*i[7],s*i[8]+a*i[9]+n*i[10]+o*i[11],s*i[12]+a*i[13]+n*i[14]+o*i[15])}dotCoordinate(e){return this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z+this.d}copyFromPoints(e,t,r){let i,s=t.x-e.x,a=t.y-e.y,n=t.z-e.z,o=r.x-e.x,l=r.y-e.y,h=r.z-e.z,u=a*h-n*l,c=n*o-s*h,d=s*l-a*o,p=Math.sqrt(u*u+c*c+d*d);return i=0!==p?1/p:0,this.normal.x=u*i,this.normal.y=c*i,this.normal.z=d*i,this.d=-(this.normal.x*e.x+this.normal.y*e.y+this.normal.z*e.z),this}isFrontFacingTo(e,r){return t.Vector3.Dot(this.normal,e)<=r}signedDistanceTo(e){return t.Vector3.Dot(e,this.normal)+this.d}static FromArray(e){return new r(e[0],e[1],e[2],e[3])}static FromPoints(e,t,i){let s=new r(0,0,0,0);return s.copyFromPoints(e,t,i),s}static FromPositionAndNormal(e,t){let i=new r(0,0,0,0);return this.FromPositionAndNormalToRef(e,t,i)}static FromPositionAndNormalToRef(e,t,r){return r.normal.copyFrom(t),r.normal.normalize(),r.d=-e.dot(r.normal),r}static SignedDistanceToPlaneFromPositionAndNormal(e,r,i){let s=-(r.x*e.x+r.y*e.y+r.z*e.z);return t.Vector3.Dot(i,r)+s}}r._TmpMatrix=t.Matrix.Identity(),e.s(["Plane",0,r])},69552,88362,e=>{"use strict";var t=e.i(49399);class r{static Eval(e,t){return"true"===(e=e.match(/\([^()]*\)/g)?e.replace(/\([^()]*\)/g,e=>(e=e.slice(1,e.length-1),r._HandleParenthesisContent(e,t))):r._HandleParenthesisContent(e,t))||"false"!==e&&r.Eval(e,t)}static _HandleParenthesisContent(e,t){let i;t=t||(e=>"true"===e);let s=e.split("||");for(let e in s)if(Object.prototype.hasOwnProperty.call(s,e)){let a=r._SimplifyNegation(s[e].trim()),n=a.split("&&");if(n.length>1)for(let e=0;e<n.length;++e){let s=r._SimplifyNegation(n[e].trim());if(!(i="true"!==s&&"false"!==s?"!"===s[0]?!t(s.substring(1)):t(s):"true"===s)){a="false";break}}if(i||"true"===a){i=!0;break}i="true"!==a&&"false"!==a?"!"===a[0]?!t(a.substring(1)):t(a):"true"===a}return i?"true":"false"}static _SimplifyNegation(e){return"!true"===(e=(e=e.replace(/^[\s!]+/,e=>(e=e.replace(/[\s]/g,()=>"")).length%2?"!":"")).trim())?e="false":"!false"===e&&(e="true"),e}}class i{static EnableFor(e){e._tags=e._tags||{},e.hasTags=()=>i.HasTags(e),e.addTags=t=>i.AddTagsTo(e,t),e.removeTags=t=>i.RemoveTagsFrom(e,t),e.matchesTagsQuery=t=>i.MatchesQuery(e,t)}static DisableFor(e){delete e._tags,delete e.hasTags,delete e.addTags,delete e.removeTags,delete e.matchesTagsQuery}static HasTags(e){if(!e._tags)return!1;let t=e._tags;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}static GetTags(e,t=!0){if(!e._tags)return null;if(!t)return e._tags;{let t=[];for(let r in e._tags)Object.prototype.hasOwnProperty.call(e._tags,r)&&!0===e._tags[r]&&t.push(r);return t.join(" ")}}static AddTagsTo(e,t){if(t&&"string"==typeof t)for(let r of t.split(" "))i._AddTagTo(e,r)}static _AddTagTo(e,t){""===(t=t.trim())||"true"===t||"false"===t||t.match(/[\s]/)||t.match(/^([!]|([|]|[&]){2})/)||(i.EnableFor(e),e._tags[t]=!0)}static RemoveTagsFrom(e,t){if(!i.HasTags(e))return;let r=t.split(" ");for(let t in r)i._RemoveTagFrom(e,r[t])}static _RemoveTagFrom(e,t){delete e._tags[t]}static MatchesQuery(e,t){return void 0===t||(""===t?i.HasTags(e):r.Eval(t,t=>i.HasTags(e)&&e._tags[t]))}}e.s(["Tags",0,i],88362);var s=e.i(24617),a=e.i(56173),n=e.i(42898);let o=function(e,t,r,s={}){let a=e();i&&i.HasTags(t)&&i.AddTagsTo(a,i.GetTags(t,!0));let o=(0,n.GetMergedStore)(a),h={};for(let e in o){let i=o[e],n=t[e],u=i.type;if(null!=n&&("uniqueId"!==e||l.AllowLoadingUniqueId))switch(u){case 0:case 6:case 9:case 11:"function"==typeof n.slice?a[e]=n.slice():a[e]=n;break;case 1:s.cloneTexturesOnlyOnce&&h[n.uniqueId]?a[e]=h[n.uniqueId]:(a[e]=r||n.isRenderTarget?n:n.clone(),h[n.uniqueId]=a[e]);break;case 2:case 3:case 4:case 5:case 7:case 8:case 10:case 12:case 13:a[e]=r?n:n.clone()}}return a};class l{static AppendSerializedAnimations(e,t){if(e.animations){t.animations=[];for(let r=0;r<e.animations.length;r++){let i=e.animations[r];t.animations.push(i.serialize())}}}static Serialize(e,t){t||(t={}),i&&(t.tags=i.GetTags(e));let r=(0,n.GetMergedStore)(e);for(let i in r){let s=r[i],a=s.sourceName||i,n=s.type,o=e[i];if(null!=o&&("uniqueId"!==i||l.AllowLoadingUniqueId))switch(n){case 0:Array.isArray(o)?t[a]=o.slice():t[a]=o;break;case 1:case 3:case 7:case 9:t[a]=o.serialize();break;case 2:case 4:case 5:case 8:case 10:case 12:case 13:t[a]=o.asArray();break;case 6:case 11:t[a]=o.id}}return t}static ParseProperties(e,t,r,i){i||(i="");let o=(0,n.GetMergedStore)(t);for(let n in o){let h=o[n],u=e[h.sourceName||n],c=h.type;if(null!=u&&("uniqueId"!==n||l.AllowLoadingUniqueId))switch(c){case 0:t[n]=u;break;case 1:r&&(t[n]=l._TextureParser(u,r,i));break;case 2:t[n]=s.Color3.FromArray(u);break;case 3:t[n]=l._FresnelParametersParser(u);break;case 4:t[n]=a.Vector2.FromArray(u);break;case 5:t[n]=a.Vector3.FromArray(u);break;case 6:r&&(t[n]=r.getLastMeshById(u));break;case 7:t[n]=l._ColorCurvesParser(u);break;case 8:t[n]=s.Color4.FromArray(u);break;case 9:t[n]=l._ImageProcessingConfigurationParser(u);break;case 10:t[n]=a.Quaternion.FromArray(u);break;case 11:r&&(t[n]=r.getCameraById(u));break;case 12:t[n]=a.Matrix.FromArray(u);break;case 13:t[n]=a.Vector4.FromArray(u)}}}static Parse(e,t,r,s=null){let a=e();return i&&i.AddTagsTo(a,t.tags),l.ParseProperties(t,a,r,s),a}static Clone(e,t,r={}){return o(e,t,!1,r)}static Instanciate(e,t){return o(e,t,!0)}}l.AllowLoadingUniqueId=!1,l._ImageProcessingConfigurationParser=e=>{throw(0,t._WarnImport)("ImageProcessingConfiguration")},l._FresnelParametersParser=e=>{throw(0,t._WarnImport)("FresnelParameters")},l._ColorCurvesParser=e=>{throw(0,t._WarnImport)("ColorCurves")},l._TextureParser=(e,r,i)=>{throw(0,t._WarnImport)("Texture")},e.s(["SerializationHelper",0,l],69552)},73403,42898,5207,e=>{"use strict";let t;"function"==typeof SuppressedError&&SuppressedError,e.s(["__classPrivateFieldGet",0,function(e,t,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)},"__classPrivateFieldSet",0,function(e,t,r,i,s){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?s.call(e,r):s?s.value=r:t.set(e,r),r},"__esDecorate",0,function(e,t,r,i,s,a){function n(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var o,l=i.kind,h="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?i.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),d=!1,p=r.length-1;p>=0;p--){var _={};for(var f in i)_[f]="access"===f?{}:i[f];for(var f in i.access)_.access[f]=i.access[f];_.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");a.push(n(e||null))};var m=(0,r[p])("accessor"===l?{get:c.get,set:c.set}:c[h],_);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(o=n(m.get))&&(c.get=o),(o=n(m.set))&&(c.set=o),(o=n(m.init))&&s.unshift(o)}else(o=n(m))&&("field"===l?s.unshift(o):c[h]=o)}u&&Object.defineProperty(u,i.name,c),d=!0},"__runInitializers",0,function(e,t,r){for(var i=arguments.length>2,s=0;s<t.length;s++)r=i?t[s].call(e,r):t[s].call(e);return i?r:void 0}],73403);let r="__bjs_serializable__",i=new WeakMap;function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}let a=((t=Symbol.metadata)||Object.defineProperty(Symbol,"metadata",{configurable:!0,writable:!0,value:t=Symbol("Symbol.metadata")}),t);function n(e){if(!e)throw Error(`Decorator metadata is unavailable; the Symbol.metadata (${String(a)}) polyfill must run before decorated classes are evaluated.`);return s(e,r)||(e[r]={}),e[r]}function o(e,t){return(r,i)=>{if(!i.metadata)return;let s=String(i.name),a=n(i.metadata);a[s]||(a[s]={type:e,sourceName:t})}}function l(e,t,r){let i=String(t.name),s=null,a=function(...n){if(null===s){s=e,"u">typeof _native&&_native[i]&&(s=r(_native[i],e));let n=this&&(t.static?this:Object.getPrototypeOf(this));n?.[i]===a&&(n[i]=s)}return s.apply(this,n)};return a}function h(e,t){return l(e,t,e=>e)}e.s(["GetDirectStoreFromMetadata",0,n,"GetMergedStore",0,function(e){let t="function"==typeof e?e:e?.constructor,n=t?t[a]:void 0;if(!n)return{};let o=i.get(n);if(o)return o;let l={},h=[],u=n;for(;u;)h.push(u),u=Object.getPrototypeOf(u);for(let e of h)if(s(e,r)){let t=e[r];for(let e in t)l[e]=t[e]}return i.set(n,l),l}],42898),h.filter=function(e){return(t,r)=>l(t,r,(t,r)=>function(...i){return e(...i)?t(...i):r.apply(this,i)})},e.s(["addAccessorsForMaterialProperty",0,function(e,t=null){return(r,i)=>{let s=t||"_"+String(i.name);return{get(){return this[s]?.value},set(t){"function"==typeof this[s]?.value?.equals&&this[s].value.equals(t)||this[s].value!==t&&(this[s].value=t,this[e]())}}}},"expandToProperty",0,function(e,t=null){return function(e,t=null){return(r,i)=>{let s=t||"_"+String(i.name);return{init(e){return void 0===e&&s in this||(this[s]=e),e},get(){return this[s]},set(t){"function"==typeof this[s]?.equals&&this[s].equals(t)||this[s]!==t&&(this[s]=t,this[e]())}}}}(e,t)},"nativeOverride",0,h,"serialize",0,function(e){return o(0,e)},"serializeAsColor3",0,function(e){return o(2,e)},"serializeAsColor4",0,function(e){return o(8,e)},"serializeAsColorCurves",0,function(e){return o(7,e)},"serializeAsFresnelParameters",0,function(e){return o(3,e)},"serializeAsMatrix",0,function(e){return o(12,e)},"serializeAsMeshReference",0,function(e){return o(6,e)},"serializeAsQuaternion",0,function(e){return o(10,e)},"serializeAsTexture",0,function(e){return o(1,e)},"serializeAsVector2",0,function(e){return o(4,e)},"serializeAsVector3",0,function(e){return o(5,e)}],5207)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35386,e=>{"use strict";var t=e.i(8697);function r(e){let t=0;return{id_length:e[t++],colormap_type:e[t++],image_type:e[t++],colormap_index:e[t++]|e[t++]<<8,colormap_length:e[t++]|e[t++]<<8,colormap_size:e[t++],origin:[e[t++]|e[t++]<<8,e[t++]|e[t++]<<8],width:e[t++]|e[t++]<<8,height:e[t++]|e[t++]<<8,pixel_size:e[t++],flags:e[t]}}function i(e,i){let o,n,h,l,g,s,c,f;if(i.length<19)return void t.Logger.Error("Unable to load TGA file - Not enough data to contain header");let u=18,d=r(i);if(d.id_length+u>i.length)return void t.Logger.Error("Unable to load TGA file - Not enough data");u+=d.id_length;let w=!1,b=!1,_=!1;switch(d.image_type){case 9:w=!0;case 1:b=!0;break;case 10:w=!0;case 2:break;case 11:w=!0;case 3:_=!0}let p=d.pixel_size>>3,y=d.width*d.height*p;if(b&&(n=i.subarray(u,u+=d.colormap_length*(d.colormap_size>>3))),w){let e,t,r;o=new Uint8Array(y);let a=0,n=new Uint8Array(p);for(;u<y&&a<y;)if(t=(127&(e=i[u++]))+1,128&e){for(r=0;r<p;++r)n[r]=i[u++];for(r=0;r<t;++r)o.set(n,a+r*p);a+=p*t}else{for(t*=p,r=0;r<t;++r)o[a+r]=i[u++];a+=t}}else o=i.subarray(u,u+(b?d.width*d.height:y));switch((48&d.flags)>>4){default:case 2:h=0,g=1,f=d.width,l=0,s=1,c=d.height;break;case 0:h=0,g=1,f=d.width,l=d.height-1,s=-1,c=-1;break;case 3:h=d.width-1,g=-1,f=-1,l=0,s=1,c=d.height;break;case 1:h=d.width-1,g=-1,f=-1,l=d.height-1,s=-1,c=-1}let m=a["_getImageData"+(_?"Grey":"")+d.pixel_size+"bits"](d,n,o,l,s,c,h,g,f);e.getEngine()._uploadDataToTextureDirectly(e,m)}let a={GetTGAHeader:r,UploadContent:i,_getImageData8bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c,f=0,u,d,w=new Uint8Array(g*s*4);for(d=i;d!==o;d+=a)for(u=n;u!==l;u+=h,f++)c=r[f],w[(u+g*d)*4+3]=255,w[(u+g*d)*4+2]=t[3*c+0],w[(u+g*d)*4+1]=t[3*c+1],w[(u+g*d)*4+0]=t[3*c+2];return w},_getImageData16bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c,f=0,u,d,w=new Uint8Array(g*s*4);for(d=i;d!==o;d+=a)for(u=n;u!==l;u+=h,f+=2){let e=((31744&(c=r[f+0]+(r[f+1]<<8)))>>10)*255/31|0,t=((992&c)>>5)*255/31|0,i=(31&c)*255/31|0;w[(u+g*d)*4+0]=e,w[(u+g*d)*4+1]=t,w[(u+g*d)*4+2]=i,w[(u+g*d)*4+3]=32768&c?0:255}return w},_getImageData24bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c=0,f,u,d=new Uint8Array(g*s*4);for(u=i;u!==o;u+=a)for(f=n;f!==l;f+=h,c+=3)d[(f+g*u)*4+3]=255,d[(f+g*u)*4+2]=r[c+0],d[(f+g*u)*4+1]=r[c+1],d[(f+g*u)*4+0]=r[c+2];return d},_getImageData32bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c=0,f,u,d=new Uint8Array(g*s*4);for(u=i;u!==o;u+=a)for(f=n;f!==l;f+=h,c+=4)d[(f+g*u)*4+2]=r[c+0],d[(f+g*u)*4+1]=r[c+1],d[(f+g*u)*4+0]=r[c+2],d[(f+g*u)*4+3]=r[c+3];return d},_getImageDataGrey8bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c,f=0,u,d,w=new Uint8Array(g*s*4);for(d=i;d!==o;d+=a)for(u=n;u!==l;u+=h,f++)c=r[f],w[(u+g*d)*4+0]=c,w[(u+g*d)*4+1]=c,w[(u+g*d)*4+2]=c,w[(u+g*d)*4+3]=255;return w},_getImageDataGrey16bits:function(e,t,r,i,a,o,n,h,l){let g=e.width,s=e.height,c=0,f,u,d=new Uint8Array(g*s*4);for(u=i;u!==o;u+=a)for(f=n;f!==l;f+=h,c+=2)d[(f+g*u)*4+0]=r[c+0],d[(f+g*u)*4+1]=r[c+0],d[(f+g*u)*4+2]=r[c+0],d[(f+g*u)*4+3]=r[c+1];return d}};e.s(["_TGATextureLoader",0,class{constructor(){this.supportCascades=!1}loadCubeData(){throw".env not supported in Cube."}loadData(e,t,a){let o=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=r(o);a(n.width,n.height,t.generateMipMaps,!1,()=>{i(t,o)})}}],35386)}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46891,t=>{"use strict";var e=t.i(78992),s=t.i(75105),i=t.i(79105),r=t.i(44520);class n extends e.FlowGraphEventBlock{constructor(t){super(t),this.type="PointerOut",this.pointerId=this.registerDataOutput("pointerId",s.RichTypeNumber),this.targetMesh=this.registerDataInput("targetMesh",s.RichTypeAny,t?.targetMesh),this.meshOutOfPointer=this.registerDataOutput("meshOutOfPointer",s.RichTypeAny)}_executeEvent(t,e){let s=this.targetMesh.getValue(t);return this.meshOutOfPointer.setValue(e.mesh,t),this.pointerId.setValue(e.pointerId,t),!(!(e.over&&(0,i._IsDescendantOf)(e.mesh,s))&&(e.mesh===s||(0,i._IsDescendantOf)(e.mesh,s)))||(this._execute(t),!this.config?.stopPropagation)}_preparePendingTasks(t){}_cancelPendingTasks(t){}getClassName(){return"FlowGraphPointerOutEventBlock"}}let o=!1;function h(){o||(o=!0,(0,r.RegisterClass)("FlowGraphPointerOutEventBlock",n))}t.s(["FlowGraphPointerOutEventBlock",0,n,"RegisterFlowGraphPointerOutEventBlock",0,h],56884),h(),t.s([],65971),t.i(65971),t.i(56884),t.s(["FlowGraphPointerOutEventBlock",0,n],46891)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55242,t=>{"use strict";var e=t.i(87083),s=t.i(65678),i=t.i(80129),r=t.i(68282);class n extends e.FlowGraphEventBlock{constructor(t){super(t),this.type="PointerOut",this.pointerId=this.registerDataOutput("pointerId",s.RichTypeNumber),this.targetMesh=this.registerDataInput("targetMesh",s.RichTypeAny,t?.targetMesh),this.meshOutOfPointer=this.registerDataOutput("meshOutOfPointer",s.RichTypeAny)}_executeEvent(t,e){let s=this.targetMesh.getValue(t);return this.meshOutOfPointer.setValue(e.mesh,t),this.pointerId.setValue(e.pointerId,t),!(!(e.over&&(0,i._IsDescendantOf)(e.mesh,s))&&(e.mesh===s||(0,i._IsDescendantOf)(e.mesh,s)))||(this._execute(t),!this.config?.stopPropagation)}_preparePendingTasks(t){}_cancelPendingTasks(t){}getClassName(){return"FlowGraphPointerOutEventBlock"}}let o=!1;t.s(["FlowGraphPointerOutEventBlock",0,n,"RegisterFlowGraphPointerOutEventBlock",0,function(){o||(o=!0,(0,r.RegisterClass)("FlowGraphPointerOutEventBlock",n))}])}]);